:root {
  color-scheme: light;
  --yellow: #fee500;
  --yellow-dark: #efcf00;
  --ink: #202126;
  --muted: #747780;
  --line: #eceef1;
  --surface: #f6f7f9;
  --chat: #bfd1df;
  --green: #28795a;
  --red: #be3e3e;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
/* 화면 전환·동의·전송 패널의 hidden 계약은 컴포넌트 display보다 우선합니다. */
[hidden] { display: none !important; }
html, body { margin: 0; width: 100%; min-height: 100%; overscroll-behavior: none; }
body { min-height: 100vh; min-height: 100dvh; background: #edf0f3; color: var(--ink); display: grid; place-items: center; padding: 24px; }
button, input { font: inherit; letter-spacing: -0.025em; }
button { cursor: pointer; border: 0; background: none; color: inherit; touch-action: manipulation; }
button:disabled { cursor: default; }
button, a, input { outline-offset: 4px; }
button:focus-visible, input:focus-visible { outline: 3px solid #467099; }
input { min-width: 0; }
h1, h2, h3, p { margin: 0; }
button svg { flex-shrink: 0; }
svg.icon { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.phone { width: min(100%, 460px); height: min(920px, calc(100vh - 48px)); height: min(920px, calc(100dvh - 48px)); min-height: 480px; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 14px 55px #20384c13, 0 0 0 1px #00000007; position: relative; isolation: isolate; }
.screen { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.app-header { min-height: 78px; flex-shrink: 0; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: max(16px, env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { font-size: 20px; font-weight: 750; letter-spacing: -0.05em; }
.brand img { border-radius: 10px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; padding: 0; flex: 0 0 44px; }
.icon-button:hover { background: #00000006; }
.primary { width: 100%; min-height: 56px; border-radius: 16px; background: var(--yellow); font-size: 16px; font-weight: 750; letter-spacing: -0.04em; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; transition: background .16s, transform .16s; }
.primary:hover { background: #f5dc00; }
.primary:active, .send-button:active { transform: scale(.98); }
.primary:disabled { background: #f1f1ec; color: #9b9b8f; }
.secondary { width: 100%; min-height: 48px; padding: 13px 16px; border-radius: 14px; font-weight: 650; font-size: 14px; background: var(--surface); margin-top: 10px; }
.profile-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.form-scroll { flex: 1; min-height: 0; overflow: auto; padding: 8px 28px 24px; scrollbar-width: thin; }
.setup-intro { padding: 14px 0 32px; text-align: center; }
.profile-avatar { width: 55px; height: 55px; background: #fff0a4; border-radius: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #6b5a23; }
.profile-avatar.large { width: 72px; height: 72px; border-radius: 27px; position: relative; margin: 0 auto 22px; background: #fff1a3; color: #655219; }
.profile-avatar.large > [data-icon="user"] svg { width: 37px; height: 37px; stroke-width: 1.6; }
.avatar-plus { position: absolute; bottom: -3px; right: -4px; width: 26px; height: 26px; background: var(--yellow); border: 3px solid #fff; border-radius: 10px; color: var(--ink); }
.avatar-plus svg { width: 16px; height: 16px; stroke-width: 2.2; }
.profile-avatar.small { width: 46px; height: 46px; border-radius: 16px; }
.setup-intro h2 { font-size: 24px; line-height: 1.4; letter-spacing: -0.055em; font-weight: 750; }
.setup-intro p { color: var(--muted); font-size: 13px; margin-top: 8px; letter-spacing: -0.035em; }
.field { margin-bottom: 21px; }
.field label { display: inline-block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.field input { width: 100%; height: 55px; border: 1px solid transparent; background: var(--surface); border-radius: 14px; padding: 0 16px; color: var(--ink); font-size: 16px; }
.field input::placeholder { color: #9b9da5; font-size: 14px; }
.field input:focus { background: #fff; border-color: #d4b927; outline: 3px solid #fff4a8; outline-offset: 0; }
.label-row { display: flex; align-items: center; justify-content: space-between; min-height: 29px; }
.text-button { display: inline-flex; align-items: center; gap: 4px; color: #555b63; font-size: 12px; font-weight: 650; padding: 6px 2px 8px 8px; margin-top: -7px; min-height: 40px; }
.text-button svg { width: 15px; height: 15px; }
.text-button:disabled { opacity: .5; }
.field-hint { font-size: 11px; color: #8d9098; line-height: 1.65; padding: 7px 1px 0; }
.field-hint.error { color: var(--red); }
.room-preview { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 20px 0 0; margin-top: 26px; }
.row-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.row-copy strong { font-size: 15px; letter-spacing: -0.045em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-copy > span { color: var(--muted); font-size: 12px; letter-spacing: -0.03em; line-height: 1.5; }
.muted-icon { color: #adb0b6; }
.muted-icon svg { width: 18px; height: 18px; }
.form-bottom { padding: 18px 28px calc(18px + var(--safe-bottom)); flex-shrink: 0; background: #fff; }
.consent-row { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: -0.035em; color: #74767c; margin: 0 0 17px; cursor: pointer; min-height: 26px; }
.consent-row input { accent-color: #d6b900; width: 17px; height: 17px; margin: 0; flex: 0 0 17px; }
.bottom-note { text-align: center; margin-top: 12px; color: #999ba2; font-size: 10px; letter-spacing: -0.03em; }
.form-error { font-size: 12px; color: var(--red); background: #fff4f3; padding: 12px; margin-top: 14px; border-radius: 10px; line-height: 1.6; }
.hub-content { flex: 1; padding: 22px; overflow: auto; }
.section-label { color: #94969b; font-size: 12px; border-top: 1px solid var(--line); padding-top: 23px; padding-bottom: 16px; }
.room-row { display: flex; gap: 14px; align-items: center; width: 100%; padding: 10px 0 20px; border-bottom: 1px solid var(--line); }
.room-row > [data-icon] { color: #8f9298; }
.hub-help { text-align: center; padding: 95px 0 40px; color: #a0a5ac; }
.hub-help > [data-icon] svg { width: 38px; height: 38px; stroke-width: 1.3; }
.hub-help h2 { font-size: 17px; margin: 18px 0 8px; color: #656c75; }
.hub-help p { font-size: 13px; line-height: 1.8; }
.hub-footer { border-top: 1px solid var(--line); min-height: 77px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; font-size: 10px; padding-bottom: var(--safe-bottom); }
.hub-footer [data-icon] { background: #fff2a3; border-radius: 12px; width: 42px; height: 30px; }
.hub-footer svg { width: 22px; height: 22px; }
.chat-screen { background: var(--chat); }
.chat-header { padding: 14px 10px 12px; padding-top: max(14px, env(safe-area-inset-top)); display: flex; align-items: center; min-height: 77px; gap: 3px; flex-shrink: 0; background: var(--chat); border-bottom: 1px solid #5067760a; }
.chat-heading { flex: 1; min-width: 0; padding: 0 8px; }
.chat-heading h1 { font-size: 17px; line-height: 1.4; letter-spacing: -0.04em; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-heading > span { display: block; margin-top: 2px; font-size: 11px; color: #607080; }
.network-banner { display: flex; align-items: center; gap: 7px; padding: 10px 18px; color: #614e27; background: #fff5d9; font-size: 12px; line-height: 1.5; }
.network-banner svg { width: 16px; height: 16px; }
.message-area { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 17px 18px 24px; overscroll-behavior-y: contain; scrollbar-width: thin; scroll-behavior: smooth; }
.date-pill { width: fit-content; max-width: 100%; border-radius: 20px; margin: 0 auto 28px; background: #6c879732; color: #fff; font-size: 10px; padding: 6px 12px; letter-spacing: -.02em; }
.incoming-row { display: flex; align-items: flex-start; gap: 9px; }
.bot-avatar { width: 36px; height: 36px; border-radius: 13px; background: var(--yellow); display: grid; place-items: center; flex: 0 0 36px; }
.bot-avatar svg { width: 21px; height: 21px; stroke-width: 1.65; }
.incoming-content { min-width: 0; }
.sender-name { display: block; font-size: 11px; color: #536472; margin: 2px 0 8px; }
.incoming-bubble { background: #fff; padding: 15px 17px; border-radius: 0 17px 17px 17px; box-shadow: 0 1px 0 #586d7c08; position: relative; }
.incoming-bubble::before { content: ''; position: absolute; top: 0; left: -5px; border-style: solid; border-width: 0 7px 8px 0; border-color: transparent #fff transparent transparent; }
.incoming-bubble > strong { font-size: 14px; font-weight: 700; letter-spacing: -0.025em; }
.incoming-bubble p { margin-top: 7px; font-size: 12px; line-height: 1.8; color: #555963; letter-spacing: -0.025em; }
.original-note { display: flex; align-items: center; gap: 4px; margin-top: 9px; color: #617585; font-size: 10px; }
.original-note svg { width: 12px; height: 12px; }
.batches { display: flex; flex-direction: column; gap: 22px; padding-top: 30px; }
.batch { width: min(292px, 86%); margin-left: auto; animation: appear .2s ease-out; }
.batch-card { background: #fff; border-radius: 18px 0 18px 18px; overflow: hidden; box-shadow: 0 2px 1px #53657509; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px; background: #fff; padding: 4px 4px 0; }
.photo-grid.single { grid-template-columns: 1fr; }
.photo-tile { aspect-ratio: 1.12; position: relative; background: #eef1f3; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; color: #86929d; }
.photo-grid.single .photo-tile { aspect-ratio: 1.35; }
.photo-tile img { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-tile > span:not([data-icon]) { font-size: 10px; }
.photo-tile .extra-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px ; font-weight: 700; background: #20303b85; color: #fff; }
.batch-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; }
.batch-info strong { font-size: 12px; font-weight: 700; }
.batch-info .file-size { font-size: 10px; color: #969aa0; }
.batch-progress { padding: 0 14px 12px; }
.batch-progress .batch-status { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; margin-top: 6px; color: #888f98; }
.batch-meta { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 7px 1px 0; color: #617687; font-size: 10px; }
.batch-meta .complete-tag { color: #354f44; display: flex; align-items: center; gap: 3px; }
.batch-meta svg { width: 12px; height: 12px; }
.batch-meta .failed-tag { color: #873c36; }
.batch-meta .small-link { min-height: 32px; padding: 4px; text-decoration: underline; text-underline-offset: 3px; font-size: 11px; }
.success-message { margin-top: 10px; background: #fef9ce; padding: 14px 16px; border-radius: 15px 0 15px 15px; display: flex; gap: 8px; align-items: center; font-size: 12px; line-height: 1.6; color: #565031; }
.success-message > [data-icon] { color: #54582f; }
.success-message svg { width: 20px; height: 20px; }
progress { width: 100%; height: 5px; border: 0; display: block; background: #f1f2f3; border-radius: 10px; overflow: hidden; appearance: none; -webkit-appearance: none; accent-color: var(--yellow-dark); }
progress::-webkit-progress-bar { background: #eef0f2; border-radius: 10px; }
progress::-webkit-progress-value { background: var(--yellow-dark); border-radius: 10px; transition: width .12s linear; }
progress::-moz-progress-bar { background: var(--yellow-dark); border-radius: 10px; }
.upload-panel { flex-shrink: 0; margin: 0 12px 10px; background: #ffffffed; border-radius: 18px; padding: 15px 17px 12px; box-shadow: 0 3px 16px #3c567412; }
.progress-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 12px; }
.progress-top > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.progress-top strong { font-size: 13px; letter-spacing: -0.045em; }
.progress-top > div > span { color: #8a8f98; font-size: 10px; line-height: 1.4; }
.progress-percent { display: flex; align-items: center; gap: 1px; font-variant-numeric: tabular-nums; font-size: 23px; font-weight: 750; letter-spacing: -0.06em; padding: 0; min-height: 44px; }
.progress-percent svg { width: 15px; height: 15px; color: #a2a6ad; }
.progress-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; color: #9c9fa5; font-size: 10px; }
.wake-status { display: flex; align-items: center; gap: 4px; color: #969b9f; font-size: 10px; padding: 4px 0; min-height: 24px; text-align: left; }
.wake-status svg { width: 12px; height: 12px; }
.wake-status.active { color: #738561; }
.staged-panel { background: #fff; border-bottom: 1px solid #f1f2f3; padding: 12px 18px 13px; flex: 0 0 auto; }
.staged-heading { display: flex; gap: 7px; align-items: center; margin-bottom: 10px; font-size: 11px; }
.staged-heading > span { color: #ac9100; font-size: 9px; background: #fff9d3; padding: 2px 5px; border-radius: 4px; }
.staged-list { display: flex; gap: 9px; overflow-x: auto; padding: 2px 1px; scrollbar-width: thin; }
.staged-item { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 10px; background: #f0f2f4; overflow: hidden; position: relative; display: grid; place-items: center; color: #96a1ac; }
.staged-item img { width: 100%; height: 100%; object-fit: cover; }
.staged-item > .remove-staged { position: absolute; right: 0; top: 0; width: 37px; height: 37px; padding: 0 0 10px 10px; display: grid; place-items: center; }
.remove-staged [data-icon] { width: 22px; height: 22px; background: #172633b0; color: #fff; border-radius: 50%; }
.remove-staged svg { width: 14px; height: 14px; stroke-width: 2; }
.composer { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 11px 16px calc(13px + var(--safe-bottom)); background: #fff; }
.add-button { width: 34px; height: 44px; display: grid; place-items: center; padding: 0; flex: 0 0 34px; color: #777b84; }
.add-button > [data-icon] { width: 29px; height: 29px; border: 1.5px solid #a0a3a9; border-radius: 50%; }
.add-button svg { width: 20px; height: 20px; stroke-width: 1.6; }
.composer-prompt { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-radius: 22px; height: 43px; background: #f5f5f7; padding: 0 14px; font-size: 12px; color: #a0a1a8; flex: 1; min-width: 0; white-space: nowrap; }
.composer-prompt svg { width: 19px; height: 19px; color: #9699a3; }
.send-button { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; flex: 0 0 43px; padding: 0; color: #27251b; background: var(--yellow); transition: transform .16s, opacity .16s; }
.send-button svg { width: 22px; height: 22px; stroke-width: 1.8; }
.send-button:disabled { background: #f0f1f3; color: #c5c7cd; }
.sheet { width: min(460px, calc(100% - 0px)); max-width: 460px; max-height: min(84dvh, 740px); border: 0; padding: 10px 24px calc(22px + var(--safe-bottom)); border-radius: 25px 25px 0 0; position: fixed; inset: auto 0 0; margin: 0 auto; color: var(--ink); background: #fff; box-shadow: 0 -10px 60px #15344715; }
.sheet[open] { animation: slide-up .19s ease-out; }
.sheet::backdrop { background: #16263260; backdrop-filter: blur(2px); }
.sheet-handle { width: 35px; height: 4px; background: #dedfe3; border-radius: 5px; margin: 0 auto 10px; }
.sheet-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -8px 17px 0; }
.sheet-title h2 { font-size: 18px; letter-spacing: -0.055em; }
.sheet-title .icon-button { color: #9a9ca4; }
.sheet-title svg { width: 21px; height: 21px; }
.source-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; padding: 8px 2px 22px; }
.source-button { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0; min-width: 0; }
.source-icon { width: 65px; height: 65px; border-radius: 23px; display: grid; place-items: center; }
.source-icon svg { width: 29px; height: 29px; stroke-width: 1.7; }
.source-icon.gallery { color: #e8798a; background: #fff0f2; }
.source-icon.camera { color: #756cf0; background: #f1efff; }
.source-icon.original { color: #e6a649; background: #fff5e6; }
.source-button strong { font-size: 13px; font-weight: 650; }
.source-button small { font-size: 10px; color: #a2a5ad; margin-top: -4px; }
.sheet-footnote { margin-top: 10px; color: #90949e; font-size: 11px; text-align: center; line-height: 1.7; }
.sheet-footnote.left { text-align: left; margin-bottom: 20px; }
.content-sheet[open] { display: flex; flex-direction: column; }
.content-sheet .sheet-handle, .content-sheet .sheet-title, .content-sheet > .primary, .content-sheet > .secondary { flex-shrink: 0; }
.sheet-scroll { overflow-y: auto; min-height: 0; overscroll-behavior: contain; padding-bottom: 16px; }
.notice-item { display: flex; align-items: flex-start; gap: 13px; margin: 7px 0 26px; }
.notice-item > [data-icon] { color: #9b8943; background: #fff9dc; width: 34px; height: 34px; border-radius: 11px; }
.notice-item > [data-icon] svg { width: 19px; height: 19px; }
.notice-item h3 { font-size: 13px; font-weight: 700; margin-bottom: 7px; line-height: 1.6; }
.notice-item p { font-size: 12px; color: #858992; line-height: 1.9; }
.dialog-description { font-size: 13px; color: #777b84; line-height: 1.9; padding: 0 0 21px; }
.location-disclosure { font-size: 11px; color: #92959b; padding-bottom: 20px; line-height: 1.8; }
.profile-details { margin: 0 0 8px; padding: 17px 16px; border-radius: 14px; background: var(--surface); }
.profile-details > div { display: flex; align-items: flex-start; gap: 16px; font-size: 13px; line-height: 1.6; }
.profile-details > div + div { margin-top: 10px; }
.profile-details dt { color: #8c919a; min-width: 28px; }
.profile-details dd { margin: 0; word-break: break-word; font-weight: 600; }
.settings-row { display: flex; align-items: center; width: 100%; gap: 11px; min-height: 53px; text-align: left; font-size: 13px; padding: 10px 0; }
.settings-row > span:nth-child(2) { flex: 1; }
.settings-row > [data-icon] { color: #8a919b; }
.settings-row > strong { font-size: 11px; color: #8d7c13; background: #fff8d1; border-radius: 8px; padding: 5px 9px; }
.transfer-list { max-height: 57dvh; }
.transfer-row { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.transfer-thumb { flex: 0 0 42px; width: 42px; height: 47px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; color: #9aabb8; overflow: hidden; }
.transfer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.transfer-copy { flex: 1; min-width: 0; }
.transfer-copy > strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 5px; }
.transfer-copy > span { display: block; font-size: 10px; color: #89909a; line-height: 1.6; }
.transfer-copy > .transfer-error { color: var(--red); font-size: 11px; white-space: normal; margin-top: 4px; }
.transfer-right { flex-shrink: 0; font-size: 12px; font-weight: 700; }
.retry-button { font-size: 11px; border-radius: 9px; background: #fff8d5; padding: 9px; min-height: 38px; font-weight: 650; max-width: 80px; }
.transfer-complete { color: var(--green); }
.receipt-folder { font-size: 10px; color: #7b8490; word-break: break-all; margin-top: 5px; }
.loading-screen { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; text-align: center; }
.loading-logo { border-radius: 25px; margin-bottom: 22px; }
.loading-screen h1 { font-size: 25px; letter-spacing: -.06em; }
.loading-screen p { color: #8a8d96; font-size: 13px; margin: 13px 0 25px; line-height: 1.8; }
.loading-screen .loading-detail { max-width: 330px; margin: -13px 0 20px; padding: 10px 12px; border-radius: 12px; background: #f6f7f8; color: #6f7780; font-size: 12px; line-height: 1.55; word-break: keep-all; }
.loading-screen .primary { margin-top: 12px; }
.toast { position: absolute; bottom: calc(91px + var(--safe-bottom)); left: 20px; right: 20px; background: #202930eb; color: #fff; z-index: 12; border-radius: 13px; padding: 13px 16px; font-size: 12px; line-height: 1.7; box-shadow: 0 5px 20px #172f3a12; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-up { from { opacity: .5; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 561px) { .sheet { bottom: max(24px, calc((100dvh - 920px) / 2)); border-radius: 25px; } }
@media (max-width: 560px) {
  body { padding: 0; display: block; background: #fff; height: 100vh; height: 100dvh; overflow: hidden; }
  .phone { width: 100%; max-width: 460px; height: 100vh; height: 100dvh; min-height: 0; margin: 0 auto; border-radius: 0; box-shadow: none; }
  .sheet { max-height: 90dvh; }
}
@media (max-width: 360px) {
  .form-scroll { padding-left: 22px; padding-right: 22px; }
  .form-bottom { padding-left: 22px; padding-right: 22px; }
  .app-header { padding-left: 18px; padding-right: 14px; }
  .message-area { padding-left: 13px; padding-right: 13px; }
  .incoming-bubble { padding: 13px 14px; }
  .incoming-bubble p { font-size: 11px; }
  .composer { gap: 7px; padding-left: 10px; padding-right: 12px; }
  .composer-prompt { font-size: 11px; padding: 0 12px; }
  .consent-row { font-size: 10px; gap: 6px; }
  .sheet { padding-left: 20px; padding-right: 20px; }
}
@media (max-height: 750px) {
  .setup-intro { padding-top: 5px; padding-bottom: 24px; }
  .profile-avatar.large { width: 58px; height: 58px; border-radius: 21px; margin-bottom: 16px; }
  .setup-intro h2 { font-size: 22px; }
  .field { margin-bottom: 16px; }
  .room-preview { margin-top: 18px; padding-top: 17px; }
  .form-bottom { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms ; transition-duration: .01ms ; scroll-behavior: auto ; }
}
.dialog-toast { background: #fff7d7; color: #73613a; border-radius: 11px; font-size: 12px; line-height: 1.7; padding: 11px 13px; margin-bottom: 15px; flex-shrink: 0; }

.consent-sheet { max-height: min(90dvh, 840px); }
.consent-sheet .consent-scroll { padding-bottom: 0; }
.consent-sheet.viewing-terms { height: min(86dvh, 780px); }
.consent-sheet.viewing-terms .consent-scroll { flex: 1 1 auto; padding-bottom: 18px; }
.consent-scroll:focus-visible { outline: 3px solid #467099; outline-offset: -3px; border-radius: 6px; }
.consent-selection { font-size: 13px; line-height: 1.7; color: #666c75; margin-bottom: 18px; overflow-wrap: anywhere; }
.consent-statement { font-size: 14px; line-height: 1.9; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; color: #333941; }
.terms-details { margin-top: 18px; border-top: 1px solid var(--line); }
.terms-body { font-size: 13px; line-height: 1.95; color: #4a5058; overflow-wrap: anywhere; word-break: normal; padding: 6px 0 18px; }
.terms-body h3 { font-size: 15px; color: var(--ink); line-height: 1.7; margin: 26px 0 12px; letter-spacing: -.03em; }
.terms-body p + p { margin-top: 14px; }
.terms-body ul { padding-left: 20px; margin: 14px 0; }
.terms-body li + li { margin-top: 9px; }
.consent-actions { flex: 0 0 auto; padding-top: 2px; border-top: 1px solid var(--line); }
.consent-checkline { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 4px 0 14px; }
.upload-consent-row { min-height: 48px; min-width: 0; align-items: center; font-size: 14px; font-weight: 550; color: var(--ink); gap: 8px; line-height: 1.6; padding: 6px 0; margin: 0; }
.upload-consent-row input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--yellow); }
.upload-consent-row span { word-break: keep-all; overflow-wrap: anywhere; }
.consent-terms-button { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; min-height: 48px; min-width: 72px; padding: 0 2px; font-size: 12px; font-weight: 500; color: #656b74; white-space: nowrap; border-radius: 6px; }
.consent-terms-button svg { width: 15px; height: 15px; }
.consent-terms-button:disabled { color: #9b9da3; }
.wake-status { min-height: 44px; font-size: 11px; }
.add-button { width: 44px; flex-basis: 44px; }
.send-button { width: 44px; height: 44px; flex-basis: 44px; }
.retry-button { min-height: 44px; }
@media (max-width: 360px) {
  .consent-checkline { gap: 6px; }
  .upload-consent-row { font-size: 14px; gap: 8px; }
  .consent-statement { font-size: 13px; }
}

.consent-sheet .consent-scroll { min-height: 0; overflow-y: auto; }


#upload-consent-title:focus { outline: none; }
