/* ODDNU QR 웹. 디자인 캔버스 'ODDNU QR 발견자 화면'을 옮겼다. 색과 서체는 brand/tokens 를 따른다. */
:root {
    --cream: #F3EBDD;
    --morning: #AEC4D0;
    --navy: #24364A;
    --coral: #CB7769;
    --paper: #FBF8F2;
    --stone: #6B655C;
    --hearth: #A44E40;
    --sky: #4F6B7C;
    --line: #E2D6C2;
    --sky-tint: rgba(174, 196, 208, .24);
    --font-display: "Gowun Batang", serif;
    --font-body: "Pretendard Variable", Pretendard, -apple-system, "Noto Sans KR", system-ui, sans-serif;
    --ease-rise: cubic-bezier(.2, .8, .2, 1);
    --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
    --ease-draw: cubic-bezier(.65, 0, .35, 1);
    --ease-travel: cubic-bezier(.45, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--paper);
    color: var(--navy);
    font-family: var(--font-body);
    -webkit-text-size-adjust: 100%;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

body { min-height: 100vh; min-height: 100svh; }
h1, h2, p, dl, dd, ol, ul { margin: 0; }
button, input { font: inherit; color: inherit; }
a { color: var(--sky); }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
h1:focus, h2:focus, .sheet:focus { outline: none; }

/* 한 화면 = 휴대폰 한 장. 큰 화면에서는 가운데 480px 기둥으로 보인다. */
.screen {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    /* 아래에서 올라오는 요소(.rise)가 잠깐 밖으로 밀려 스크롤이 생겼다 사라지지 않게 자른다. */
    overflow: clip;
}

.topbar {
    position: relative;
    height: 56px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar__brand { width: 64px; height: auto; display: block; }

.topbar__back, .topbar__guardian {
    position: absolute;
    top: 6px;
    height: 44px;
    display: flex;
    align-items: center;
    border-radius: 14px;
    text-decoration: none;
}

.topbar__back { left: 8px; width: 44px; justify-content: center; color: var(--navy); }
.topbar__guardian { right: 8px; padding: 0 10px; gap: 4px; font-size: 13px; font-weight: 500; color: var(--stone); }

.hero {
    flex: none;
    height: 260px;
    /* 그림을 뺀 내용이 약 500px 이다(등록 전·등록 완료). 작은 휴대폰에서는 그림을 줄여 버튼을 첫 화면에 들인다. */
    height: clamp(120px, 100vh - 500px, 260px);
    height: clamp(120px, 100svh - 500px, 260px);
    margin: 0 16px;
    border-radius: 28px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero--short { height: clamp(150px, 100svh - 560px, 210px); margin-top: 8px; }
.hero .symbol { width: auto; height: min(157px, 100% - 24px); }
.hero .symbol--medium { height: min(128px, 100% - 24px); }

.intro { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.intro--tight { padding-top: 12px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--hearth); }
.title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.38; letter-spacing: -0.01em; }
.title--form { font-size: 24px; }
.title--sheet { font-size: 24px; line-height: 1.4; }
.title--md { font-size: 26px; }
.lead { font-size: 15px; line-height: 1.6; color: var(--stone); }
.meta { font-size: 13px; font-weight: 500; color: var(--sky); }

.actions { margin-top: auto; padding: 24px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.actions--tight { gap: 4px; }

.button {
    width: 100%;
    height: 60px;
    border: 0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button--primary, .button--primary:hover { background: var(--navy); color: var(--paper); }
.button--danger, .button--danger:hover { background: var(--hearth); color: var(--paper); }
.button--sheet { height: 56px; }
.button--soft { height: 56px; border: 1.5px solid var(--line); background: var(--cream); color: var(--navy); font-size: 16px; font-weight: 600; }
.button--soft:hover { color: var(--navy); }
.button--outline-danger { height: 52px; border: 1.5px solid var(--hearth); background: transparent; color: var(--hearth); font-size: 15px; }
.button--outline-danger:hover { color: var(--hearth); }
.button:disabled { opacity: .35; cursor: default; }
.button[aria-busy="true"] { opacity: .7; cursor: progress; }

.chip { font-size: 12px; font-weight: 500; color: var(--stone); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; background: var(--paper); }

.textlink {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sky);
    text-decoration: none;
    cursor: pointer;
}

.textlink--danger { color: var(--hearth); }
.textlink--center { align-self: center; font-size: 15px; }
.linkrow { display: flex; justify-content: space-between; align-items: center; }

/* 전화 버튼 바로 위의 안심번호 안내 */
.safe-note {
    align-self: center;
    margin: 0 0 -2px;
    padding: 7px 14px 7px 11px;
    border-radius: 999px;
    background: var(--sky-tint);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--sky);
}

.notice {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--cream);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.55;
}

.notice svg { flex: none; margin-top: 2px; }
.notice--blue { background: var(--sky-tint); color: var(--sky); font-weight: 500; }
.notice--single { margin-top: 8px; align-items: center; }
.notice--single svg { margin-top: 0; }

.icon { flex: none; display: block; }

/* 움직임: 기본 상태를 '다 보인 상태'로 두고 backwards 로 시작 상태만 채운다. 애니메이션이 돌지 않아도 내용은 보인다. */
.rise { animation: rise .6s var(--ease-rise) var(--d, 0s) backwards; }

.symbol { display: block; width: 184px; height: auto; overflow: visible; }
.symbol__road { fill: none; stroke: var(--coral); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.symbol__house { fill: var(--coral); fill-rule: evenodd; }
.symbol__house--muted { fill: var(--line); }
.symbol__glow { fill: var(--coral); fill-opacity: .22; }
.symbol__ring { fill: none; stroke: var(--coral); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.symbol__outline { fill: var(--cream); fill-rule: evenodd; stroke: var(--hearth); stroke-opacity: .55; stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 3 2.5; }
.symbol__outline--paper { fill: var(--paper); stroke-width: 1.8; }
.symbol__route { fill: none; stroke: var(--morning); stroke-width: 5; stroke-linecap: round; stroke-dasharray: .1 8.9; }
.symbol__route--muted { stroke: var(--line); }
.symbol__trail { fill: none; stroke: var(--coral); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.symbol__dot { fill: none; stroke-linecap: round; stroke-dasharray: .01 99.99; stroke-dashoffset: -99.99; }
.symbol__dot--halo { stroke: var(--navy); stroke-opacity: .12; stroke-width: 22; }
.symbol__dot--ring { stroke: var(--paper); stroke-width: 12; }
.symbol__dot--core { stroke: var(--navy); stroke-width: 8; }
.symbol__badge { transform-box: fill-box; transform-origin: center; }
.symbol__badge-ring { fill: var(--cream); }
.symbol__badge-ring--paper { fill: var(--paper); }
.symbol__badge-fill { fill: var(--navy); }
.symbol__badge-fill--alert { fill: var(--hearth); }
.symbol__badge-mark { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.symbol__badge-mark--thin { stroke-width: 1.5; }
.symbol__pin-halo { fill: var(--navy); fill-opacity: .12; }
.symbol__pin-ring { fill: var(--paper); }
.symbol__pin { fill: var(--navy); }

.symbol--arrive .symbol__road { stroke-dasharray: 100; animation: draw-in 1.3s var(--ease-draw) .2s backwards; }
.symbol--arrive .symbol__house { transform-box: fill-box; transform-origin: 50% 100%; animation: house-in .55s var(--ease-pop) 1.25s backwards; }
.symbol--arrive .symbol__glow { animation: fade-in .8s ease 1.6s backwards; }
.symbol--arrive .symbol__ring { animation: ring 2.8s cubic-bezier(.2, .6, .3, 1) 1.9s; }
.symbol--arrive .symbol__ring--late { animation-delay: 2.6s; }

.symbol--empty .symbol__road { stroke-dasharray: 100; animation: draw-in 1.3s var(--ease-draw) .2s backwards; }
.symbol--empty .symbol__outline { animation: fade-in .6s ease .9s backwards, march 1.6s linear 1.6s 3; }
.symbol--empty .symbol__badge { animation: pop .45s var(--ease-pop) 1.5s backwards; }

.symbol--fill .symbol__outline { opacity: 0; animation: fade-out .4s ease .35s backwards; }
.symbol--fill .symbol__house { transform-box: fill-box; transform-origin: 50% 100%; animation: house-in .55s var(--ease-pop) .3s backwards; }
.symbol--fill .symbol__glow { animation: fade-in .8s ease .8s backwards; }
.symbol--fill .symbol__badge { animation: pop .45s var(--ease-pop) 1s backwards; }
.symbol--fill .symbol__ring { animation: ring 2.8s cubic-bezier(.2, .6, .3, 1) 1.2s; }
.symbol--fill .symbol__ring--late { animation-delay: 1.9s; }

.symbol--release .symbol__glow { opacity: 0; animation: fade-out .6s ease .2s backwards; }
.symbol--release .symbol__house { opacity: 0; animation: fade-out .5s ease .5s backwards; }
.symbol--release .symbol__outline { animation: fade-in .5s ease .7s backwards; }

.symbol--guardian .symbol__badge { animation: pop .45s var(--ease-pop) .3s backwards; }

.symbol--route .symbol__badge { animation: pop .5s var(--ease-pop) .5s backwards; }

.symbol--travel .symbol__glow { animation: fade-in .6s ease 1.3s backwards; }
.symbol--travel .symbol__trail { animation: draw-in 1.2s var(--ease-travel) .2s backwards; }
.symbol--travel .symbol__dot { opacity: 0; animation: travel 1.2s var(--ease-travel) .2s backwards; }
.symbol--travel .symbol__badge { animation: pop .45s var(--ease-pop) 1.4s backwards; }

.symbol--failed .symbol__badge { animation: pop .45s var(--ease-pop) .25s backwards; }

.symbol__badge-mark--alert { stroke-width: 2.2; }
.symbol__badge-dot { fill: var(--paper); }

.symbol--medium { width: 150px; }
.symbol--small { width: 92px; }
.symbol--tiny { width: 40px; }
.symbol--mini .symbol__road { stroke-width: 8; }

/* 발견자 첫 화면: 944px 이상에서는 그림과 버튼이 좌우로, 그보다 좁으면 위아래로 쌓인다. */
.finder {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    overflow: clip;
}

.finder__body { flex: 1; display: flex; flex-wrap: wrap; }

.finder__hero {
    flex: 1 1 440px;
    min-height: clamp(160px, 100vh - 400px, 300px);
    min-height: clamp(160px, 100svh - 400px, 300px);
    margin: 0 16px 16px;
    border-radius: 28px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    container-type: inline-size;
}

.finder__hero .symbol { width: clamp(184px, 46cqi, 320px); }

.finder__main {
    flex: 1 1 472px;
    padding: 12px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.finder__column { width: 100%; max-width: 440px; }
.finder__intro { padding: 0 4px; display: flex; flex-direction: column; gap: 10px; }
.finder .title { font-size: clamp(28px, 22px + 1.25cqi, 40px); }
.finder .lead { font-size: clamp(15px, 1.15cqi, 17px); }
.finder__actions { margin-top: clamp(32px, 3cqi, 44px); display: flex; flex-direction: column; gap: 12px; }

.finder .topbar__guardian { right: 16px; }

/* 그림을 뺀 내용이 약 520px 이다. 작은 휴대폰에서는 그림을 줄여 문자·위치 버튼까지 첫 화면에 들인다. */
@media (max-width: 599.98px) {
    .finder__body { flex-direction: column; flex-wrap: nowrap; }
    .finder__hero { flex: none; min-height: 0; height: clamp(120px, 100vh - 520px, 300px); height: clamp(120px, 100svh - 520px, 300px); margin: 0 16px; }
    .finder__hero .symbol { width: auto; height: min(157px, 100% - 24px); }
    .finder__main { flex: 1; align-items: stretch; justify-content: flex-start; padding: 28px 20px 24px; }
    .finder__column { flex: 1; max-width: none; display: flex; flex-direction: column; }
    .finder__actions { margin-top: auto; padding-top: 24px; }
    .finder .topbar__guardian { right: 8px; }
}

/* 아래에서 올라오는 시트 */
.sheet-layer { position: fixed; inset: 0; z-index: 10; background: rgba(36, 54, 74, .42); animation: fade-in .35s ease backwards; }

.sheet {
    position: fixed;
    z-index: 11;
    left: 50%;
    bottom: 0;
    width: min(100%, 480px);
    max-height: 100svh;
    overflow-y: auto;
    padding: 10px 24px calc(16px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    background: var(--paper);
    box-shadow: 0 -10px 40px rgba(36, 54, 74, .18);
    transform: translateX(-50%);
    animation: sheet-up .55s var(--ease-rise) .05s backwards;
}

.sheet__handle { width: 40px; height: 4px; margin: 0 auto 20px; border-radius: 2px; background: var(--line); }
.sheet__title { margin-top: 18px; }
.sheet__actions { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.sheet__caption { margin-top: 6px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--stone); }
.sheet__actions--call { margin-top: 24px; }
.sheet__lead { margin-top: 10px; }
.sheet__lead--loose { margin-top: 12px; }
.sheet__meta { margin-top: 6px; }
.sheet__notice { margin-top: 16px; }
.safe-note--sheet { margin: 0 0 6px; }

.checklist {
    list-style: none;
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.checklist svg { flex: none; margin-top: 1px; }
.checklist__dot { flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--hearth); }
.checklist--tight { margin-top: 14px; }

/* 연락이 닿지 않을 때 */
.steps { list-style: none; margin: 28px 0 0; padding: 0 24px; display: flex; flex-direction: column; gap: 22px; }
.step { position: relative; display: flex; gap: 14px; }

.step__number {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.step__number--alert { border-color: var(--hearth); background: var(--paper); color: var(--hearth); }

.step__line {
    position: absolute;
    left: 14px;
    top: 34px;
    bottom: -18px;
    width: 2px;
    border-radius: 1px;
    background: var(--line);
    transform-origin: top;
    animation: grow .4s var(--ease-draw) var(--d, 0s) backwards;
}

.step__body { padding-top: 4px; min-width: 0; flex: 1; }
.step__title { font-size: 16px; font-weight: 600; line-height: 1.45; text-wrap: balance; }
.step__text { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--stone); text-wrap: balance; }
.step__actions { margin-top: 12px; display: flex; gap: 8px; }

.pill {
    flex: 1;
    height: 44px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--cream);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.pill:hover { color: var(--navy); }
.pill--danger, .pill--danger:hover { flex: none; padding: 0 18px; border: 0; background: var(--hearth); color: var(--paper); font-weight: 700; }

/* 등록 전 첫 화면의 발견자 안내 */
.finder-box { padding: 14px 14px 14px 16px; border-radius: 18px; background: var(--cream); display: flex; align-items: center; gap: 12px; }
.finder-box__text { flex: 1; min-width: 0; }
.finder-box__title { font-size: 14px; font-weight: 600; }
.finder-box__lead { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--stone); }
.finder-box .pill--danger { padding: 0 14px; }

/* Google 로그인 버튼. Google 브랜드 가이드의 밝은 버튼 색(흰 바탕, #747775 테두리, #1F1F1F 글자)을 쓴다. */
.google-signin { display: flex; flex-direction: column; gap: 10px; }

.google-button {
    width: 100%;
    height: 56px;
    border-radius: 18px;
    border: 1px solid #747775;
    background: #FFFFFF;
    color: #1F1F1F;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.google-button:disabled { opacity: .6; cursor: progress; }
.caption { text-align: center; font-size: 13px; line-height: 1.5; color: var(--stone); }
.signin { padding: 24px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.signin--loose { padding-top: 28px; }
.footnote { margin: auto 0 0; padding: 24px 20px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; color: var(--stone); }
.footnote a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }

/* 등록 양식 */
.account-chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    background: var(--cream);
    font-size: 13px;
    color: var(--stone);
}

.account-chip strong { font-weight: 600; color: var(--navy); }

.avatar {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sky);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.avatar--muted { background: var(--stone); }
.form-head { padding: 4px 24px 0; display: flex; flex-direction: column; align-items: flex-start; }
.form-head .title { margin-top: 14px; }
.form-head .lead { margin-top: 6px; font-size: 14px; line-height: 1.55; }
.code-step { margin-top: 8px; animation-duration: .4s; }
.form { padding: 20px 24px 0; display: flex; flex-direction: column; gap: 18px; }
.field__label { display: flex; align-items: baseline; gap: 6px; margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.field__hint { font-size: 12px; font-weight: 500; color: var(--stone); }
.field__hint--required { font-weight: 600; color: var(--hearth); }
.field__note { margin-top: 6px; font-size: 13px; color: var(--stone); }
.field__note strong { font-weight: 600; color: var(--hearth); }
.field__error { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--hearth); }

.input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: #FFFFFF;
    font-size: 16px;
    color: var(--navy);
}

.input--code { letter-spacing: .08em; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.input-row + .input-row { margin-top: 8px; }

.input-button {
    flex: none;
    height: 52px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1.5px solid var(--navy);
    background: var(--paper);
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.input-button--soft { border-color: var(--line); background: var(--cream); font-weight: 600; }
.input-button--solid { border: 0; padding: 0 20px; background: var(--navy); color: var(--paper); font-size: 15px; }
.input-button:disabled { opacity: .5; cursor: default; }

.verified {
    height: 52px;
    padding: 0 8px 0 16px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 16px;
}

.verified__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(174, 196, 208, .32);
    color: var(--sky);
    font-size: 13px;
    font-weight: 700;
    animation: pop .45s var(--ease-pop) backwards;
}

.consent { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.consent label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.consent .textlink { flex: none; font-size: 13px; }
.consent__required { font-weight: 600; color: var(--hearth); }
.form-hint { margin: 0 0 -2px; text-align: center; font-size: 13px; color: var(--stone); }
.form-hint.field__error { color: var(--hearth); }

/* 개인정보 수집·이용 동의 내용 */
.terms { margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--cream); display: flex; flex-direction: column; gap: 12px; }
.terms dt { font-size: 13px; font-weight: 600; color: var(--stone); }
.terms dd { margin: 2px 0 0; font-size: 14px; line-height: 1.55; }

/* 개발 모드에서만 보이는 인증번호. 운영 api는 이 값을 보내지 않는다. */
.dev-code { margin-top: 8px; padding: 8px 12px; border: 1.5px dashed var(--line); border-radius: 12px; font-size: 13px; color: var(--stone); }
.dev-code strong { letter-spacing: .12em; color: var(--navy); }

/* 등록 정보 */
.card { padding: 18px; border-radius: 22px; background: var(--cream); }
.card__head { display: flex; align-items: center; gap: 14px; }
.card__icon { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.card__title { flex: 1; min-width: 0; }
.card__name { font-size: 17px; font-weight: 700; line-height: 1.4; }
.manage-head { padding: 8px 24px 0; }
.summary { padding: 20px 20px 0; }

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(174, 196, 208, .32);
    font-size: 12px;
    font-weight: 700;
    color: var(--sky);
}

.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.facts {
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.facts dt { color: var(--stone); }
.facts dd { text-align: right; font-weight: 600; }
.facts--plain { margin: 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #FFFFFF; gap: 8px 16px; }
.stack { padding: 6px 20px 0; display: flex; flex-direction: column; gap: 10px; }

.rowlink {
    min-height: 52px;
    padding: 0 12px 0 16px;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

.rowlink:hover { color: var(--navy); }
.account-line { margin-top: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--stone); }
.account-line .textlink { font-size: 13px; font-weight: 400; text-decoration: underline; }
.danger-zone { padding-top: 18px; border-top: 1px solid var(--line); }
.danger-zone__title { font-size: 15px; font-weight: 700; }
.danger-zone__text { margin: 4px 0 12px; font-size: 13px; line-height: 1.55; color: var(--stone); }

/* 가운데 정렬 안내 화면(다른 계정, 찾을 수 없음, 오류) */
.center { padding: 48px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }

.icon-circle {
    width: 88px;
    height: 88px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pop .5s var(--ease-pop) .1s backwards;
}

.center .account-chip { align-self: center; margin-top: 10px; }

.boot__text { padding: 28px 24px; text-align: center; font-size: 14px; color: var(--stone); animation: fade-in .6s ease 1s backwards; }

/* 로딩 화면(index.html #boot). 페이지는 다 불러온 뒤 한 번에 보인다. 그동안 페이지의 움직임은 멈춰 두었다가
   로딩 화면을 걷을 때(html.loading 을 뺄 때) 처음부터 돈다. */
html.loading #app *, html.loading #app *::before, html.loading #app *::after { animation-play-state: paused; }

.loader {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 24px;
    background: var(--paper);
    transition: opacity .3s ease;
}

.loader--leaving { opacity: 0; pointer-events: none; }
.loader__mark { position: relative; width: 140px; }
.loader__symbol { display: block; width: 100%; height: auto; overflow: visible; }
.loader__track { fill: none; stroke: var(--morning); stroke-width: 5; stroke-linecap: round; stroke-dasharray: .1 8.9; }
.loader__road {
    fill: none;
    stroke: var(--coral);
    stroke-width: 5.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset .5s var(--ease-draw);
}
.loader__outline { fill: var(--cream); fill-rule: evenodd; stroke: var(--hearth); stroke-opacity: .55; stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 3 2.5; transition: opacity .3s ease; }
.loader__house { fill: var(--coral); fill-rule: evenodd; opacity: 0; transition: opacity .3s ease; }
.loader__glow { fill: var(--coral); fill-opacity: .22; opacity: 0; transition: opacity .3s ease; }
.loader--done .loader__house, .loader--done .loader__glow { opacity: 1; }
.loader--done .loader__outline { opacity: 0; }

/* 집 둘레로 퍼지는 신호 고리. transform·opacity 만 움직여서 메인 스레드가 막혀도 계속 돈다. */
.loader__pulse {
    position: absolute;
    left: 80.6%;
    top: 23.9%;
    width: 33.3%;
    aspect-ratio: 1;
    border: 1.5px solid var(--coral);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.6);
    animation: loader-pulse 1.6s cubic-bezier(.2, .6, .3, 1) infinite;
}

.loader--done .loader__pulse { animation: none; }
.loader__wordmark { width: 72px; height: auto; display: block; }
.loader .boot__text { padding: 0; }

@keyframes loader-pulse {
    0% { opacity: .55; transform: translate(-50%, -50%) scale(.6); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.1); }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes draw-in { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes house-in { from { opacity: 0; transform: translateY(4px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ring { 0% { opacity: .55; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes march { to { stroke-dashoffset: -11; } }
@keyframes travel { 0% { stroke-dashoffset: 0; opacity: 1; } 70% { opacity: 1; } 100% { stroke-dashoffset: -99.99; opacity: 0; } }
@keyframes sheet-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }

/* '동작 줄이기'를 켠 휴대폰에서는 움직임 없이 완성된 화면을 바로 보여 준다. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: var(--cream);
    color: var(--navy);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 14px;
}

#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
