:root {
  --brand: #245fd1;
  --brand-dark: #1c4fac;
  --brand-soft: #eaf2ff;
  --canvas: #f5f7fb;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --text: #172033;
  --text-body: #243043;
  --muted: #5f6b7a;
  --border: #e3e8f1;
  --border-strong: #cbd3e0;
  --danger: #b42318;
  --danger-soft: #fff1f2;
  --warning: #b45309;
  --warning-soft: #fff4df;
  --success: #16825d;
  --success-soft: #e8f7f1;
  --shadow: 0 10px 28px rgba(23, 32, 51, .07);
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: var(--text-body);
  background: var(--canvas);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { width: 100%; margin: 0; min-height: 100%; background: var(--canvas); }
body { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; overscroll-behavior-y: none; }
button, input, textarea, select { font: inherit; }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { margin: 0 0 3px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: var(--text); font-size: 25px; line-height: 1.25; }
h2 { margin-bottom: 12px; color: var(--text); font-size: 16px; }
.brand-subtitle { margin: 0; color: var(--text); font-size: 16px; font-weight: 800; letter-spacing: .02em; }

.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; align-items: start; justify-items: center; padding: calc(56px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left)); background: radial-gradient(circle at top, #e9f1ff, var(--canvas) 58%); }
.login-card { width: min(100%, 420px); padding: 24px 20px; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border-radius: 13px; background: var(--brand); color: white; font-size: 21px; font-weight: 800; }
.security-note, .privacy-banner { padding: 12px 14px; border: 1px solid #f5d69b; border-radius: 10px; background: var(--warning-soft); color: #7a4508; font-size: 12px; line-height: 1.6; }
.security-note { margin-top: 18px; }
.text-button.full { width: 100%; }
.login-footnote { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.registration-options summary { color: var(--muted); font-size: 13px; cursor: pointer; }
.registration-options label { margin-top: 12px; }
.privacy-banner { margin-top: 22px; }
.privacy-banner strong { display: block; margin-bottom: 4px; }
.privacy-banner p { margin: 0; }

.app-shell { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: calc(60px + env(safe-area-inset-top)); padding: calc(9px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 9px calc(16px + env(safe-area-inset-left)); border-bottom: 1px solid rgba(227,232,241,.85); background: rgba(247,248,251,.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.topbar-brand { display: flex; align-items: center; min-width: 0; gap: 10px; }
.topbar-mark { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: white; font-size: 16px; font-weight: 800; }
.topbar-brand div { display: flex; min-width: 0; flex-direction: column; }
.topbar-brand strong { color: var(--text); font-size: 14px; line-height: 1.2; }
.topbar-brand small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
main { width: min(100%, 720px); margin: 0 auto; }
.page { display: none; padding: 18px calc(16px + env(safe-area-inset-right)) 30px calc(16px + env(safe-area-inset-left)); animation: enter .18s ease-out; }
.page.active { display: block; }
@keyframes enter { from { opacity: .25; transform: translateY(4px); } }
.welcome { padding: 2px 2px 12px; }
.welcome p { margin-bottom: 4px; font-size: 13px; }
.welcome h1 { margin-bottom: 0; font-size: 27px; letter-spacing: -.02em; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-heading h1, .page-heading h2 { margin: 0; }

.record-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 152px; padding: 20px; overflow: hidden; border: 0; border-radius: 20px; background: linear-gradient(145deg, #3477ef, #1c4fac); color: white; box-shadow: 0 12px 26px rgba(36,95,209,.2); }
.record-main::before { content: ""; position: absolute; width: 142px; height: 142px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.record-main-icon { z-index: 1; width: 50px; height: 50px; margin-bottom: 10px; border: 8px solid rgba(255,255,255,.2); border-radius: 50%; background: white; background-clip: padding-box; }
.record-main > span:nth-child(2) { z-index: 1; font-size: 21px; font-weight: 800; }
.record-main small { z-index: 1; margin-top: 7px; opacity: .8; }
.record-main:active { transform: scale(.99); }

.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.home-action { display: flex; min-width: 0; min-height: 106px; flex-direction: column; justify-content: space-between; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); text-align: left; box-shadow: 0 4px 14px rgba(23,32,51,.035); }
.home-action:active { transform: scale(.98); }
.home-action-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); font-size: 24px; font-weight: 500; }
.pending-action .home-action-icon { background: var(--warning-soft); color: var(--warning); }
.home-action > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.home-action strong { color: var(--text); font-size: 16px; line-height: 1.25; }
.home-action small { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.home-privacy { margin: 18px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: center; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.quick-grid.quick-grid-four { grid-template-columns: repeat(2, 1fr); }
.quick-grid button { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 14px 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text); text-align: left; }
.quick-grid button > span { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.quick-grid strong { font-size: 13px; white-space: nowrap; }
.quick-grid small { margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.material-upload-card { padding: 12px; border: 1px solid #c7d7f6; border-radius: 14px; background: #f7faff; }
.upload-picker { position: relative; display: flex; min-height: 112px; flex-direction: column; align-items: center; justify-content: center; padding: 15px; overflow: hidden; border: 1px dashed #94afe3; border-radius: 12px; background: white; color: var(--text); text-align: center; }
.upload-picker input[type="file"] { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.upload-picker-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 26px; }
.upload-picker strong { font-size: 16px; }
.upload-picker small { margin-top: 5px; color: var(--muted); font-weight: 400; }
.material-upload-card .small { margin: 8px 0 0; line-height: 1.5; }
.summons-mode-info { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid #b8ccf5; border-radius: 11px; background: #eef5ff; color: #244a86; }
.summons-mode-info strong { font-size: 13px; }
.summons-mode-info span { font-size: 12px; line-height: 1.55; }
.page[data-page="record"]:not(.upload-mode):not(.has-material) .upload-only { display: none; }
.page[data-page="record"].upload-mode .recorder-card,
.page[data-page="record"].upload-mode .record-only { display: none; }

.button { min-height: 48px; padding: 10px 16px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; touch-action: manipulation; }
.button.primary { background: var(--brand); color: white; }
.button.primary:active { background: var(--brand-dark); }
.button.secondary { border-color: var(--border-strong); background: var(--surface); color: var(--text-body); }
.button.ghost { min-height: 36px; padding: 6px 10px; background: transparent; color: var(--brand); }
.button.danger { border-color: #f0b5ae; background: var(--danger-soft); color: var(--danger); }
.button:disabled { opacity: .5; }
.button.full { width: 100%; }
.button-row { display: flex; gap: 9px; }
.button-row .button { flex: 1; }
.icon-button, .text-button { min-height: 44px; border: 0; background: transparent; color: var(--brand); font-size: 13px; font-weight: 700; }
.text-button { padding: 8px; }

.recorder-card, .form-card, .list-card { margin-bottom: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 14px rgba(23,32,51,.03); }
.recorder-card { text-align: center; }
.timer { margin: 4px 0 2px; color: var(--text); font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 32px; }
.wave i { display: block; width: 4px; height: 9px; border-radius: 4px; background: #9ebaf0; }
.recording .wave i { animation: wave .8s ease-in-out infinite alternate; }
.recording .wave i:nth-child(2), .recording .wave i:nth-child(6) { animation-delay: .15s; }
.recording .wave i:nth-child(3), .recording .wave i:nth-child(5) { animation-delay: .3s; }
.recording .wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wave { to { height: 34px; background: var(--brand); } }
.record-controls { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.record-controls .button { min-width: 104px; min-height: 48px; }
audio { width: 100%; margin-top: 14px; }

.stack-md > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 16px; }
label, .field-label { display: block; color: var(--text-body); font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; min-height: 48px; margin-top: 6px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 11px; outline: none; background: var(--surface); color: var(--text); font-size: 16px; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(40,104,223,.11); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border-radius: 10px; background: var(--surface-subtle); }
.switch-row span { flex: 1; }
.switch-row strong, .switch-row small { display: block; }
.switch-row small { margin-top: 3px; color: var(--muted); font-weight: 400; line-height: 1.45; }
.switch-row input[type="checkbox"] { position: relative; flex: 0 0 auto; width: 44px; min-height: 26px; height: 26px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; outline: none; background: #d2d9e4; box-shadow: none; cursor: pointer; transition: background .18s ease; }
.switch-row input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(23,32,51,.2); transition: transform .18s ease; }
.switch-row input[type="checkbox"]:checked { background: var(--brand); }
.switch-row input[type="checkbox"]:checked::after { transform: translateX(18px); }
.switch-row input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px rgba(40,104,223,.16); }
.advanced-options { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-subtle); }
.advanced-options > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; cursor: pointer; list-style: none; }
.advanced-options > summary::-webkit-details-marker { display: none; }
.advanced-options > summary span, .advanced-options > summary strong, .advanced-options > summary small { display: block; }
.advanced-options > summary small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.advanced-options > summary b { color: var(--brand); font-size: 12px; }
.advanced-options[open] > summary b { transform: rotate(180deg); }

.advanced-content { padding: 13px; border-top: 1px solid var(--border); background: var(--surface); border-radius: 0 0 12px 12px; }
.choice-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 45px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--muted); text-align: left; }
.choice-button.selected { border-color: #98b7f3; background: var(--brand-soft); color: var(--text); }
.choice-button b { color: var(--brand); font-size: 12px; }
.field-block .text-button { margin-top: 4px; }
.option-box { padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-subtle); }
.option-box > strong, .option-box > small { display: block; }
.option-box label { margin-top: 9px; font-weight: 500; }
.option-box input { min-height: 16px; height: 16px; width: 16px; margin: 0 5px 0 0; accent-color: var(--brand); }
.option-box small { margin-top: 8px; color: var(--muted); line-height: 1.5; }
.inline-message { padding: 10px 12px; border-radius: 9px; background: var(--warning-soft); color: #7a4508; font-size: 12px; line-height: 1.5; }
.ai-preview { padding: 14px; border: 1px solid #c7d7fe; border-radius: 12px; background: #f8fbff; }
.ai-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--border); }
.ai-metrics span { display: flex; min-width: 0; flex-direction: column; padding: 8px; background: white; color: var(--muted); font-size: 10px; }
.ai-metrics b { margin-top: 3px; overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.context-summary { margin-top: 10px; padding: 9px 10px; border-radius: 8px; background: var(--brand-soft); color: #244a86; font-size: 12px; line-height: 1.5; }
.ai-preview details { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 9px; }
.ai-preview summary { color: var(--text); font-size: 13px; font-weight: 800; cursor: pointer; }
.ai-copy { margin-top: 8px; color: var(--text-body); font-size: 12px; line-height: 1.65; }
.pre-wrap { white-space: pre-wrap; }
.status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.status.neutral { background: #eef1f5; color: var(--muted); }
.status.warning { background: var(--warning-soft); color: var(--warning); }
.status.success { background: var(--success-soft); color: var(--success); }
.status.danger { background: var(--danger-soft); color: var(--danger); }
.progress { position: relative; height: 32px; overflow: hidden; border-radius: 8px; background: #eef1f5; }
.progress span { display: block; width: 0; height: 100%; background: #dbe8ff; transition: width .2s; }
.progress small { position: absolute; inset: 0; display: grid; place-items: center; color: #244a86; font-weight: 700; }

.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); }
.summary-strip span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; background: white; color: var(--muted); font-size: 11px; }
.summary-strip b { color: var(--text); font-size: 20px; }
.list-card h2 { margin-bottom: 8px; }
.list-card.risk { border-left: 3px solid var(--danger); }
.list-item { padding: 11px 0; border-top: 1px solid var(--border); }
.list-item:first-child { border-top: 0; }
.list-item strong { display: block; color: var(--text); font-size: 14px; line-height: 1.4; }
.list-item small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; }
.empty-inline, .empty-state { padding: 20px 12px; color: var(--muted); text-align: center; font-size: 13px; }

.record-list { margin-top: 14px; }
.record-section-title { margin: 18px 2px 8px; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.record-item { margin-bottom: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.record-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.record-item h2 { margin: 0; font-size: 15px; }
.record-item p { margin: 9px 0; color: var(--text-body); font-size: 13px; line-height: 1.5; }
.record-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: 11px; }
.ai-status-line { margin-top: 9px; padding: 7px 9px; border-radius: 8px; background: var(--brand-soft); color: #244a86; font-size: 11px; line-height: 1.45; }

.profile-card { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.profile-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--brand); color: white; font-size: 20px; font-weight: 800; }
.profile-card > div { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.profile-card strong { overflow: hidden; color: var(--text); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.profile-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.tool-card { overflow: hidden; margin-bottom: 14px; padding: 6px 16px 2px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.tool-card h2 { margin: 10px 0 5px; }
.tool-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 66px; padding: 10px 0; border: 0; border-top: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; }
.tool-card h2 + .tool-button { border-top: 0; }
.tool-button span { display: flex; min-width: 0; flex-direction: column; }
.tool-button b { font-size: 14px; }
.tool-button small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.tool-button i { color: #98a2b3; font-size: 25px; font-style: normal; }
.privacy-banner.compact { margin-top: 0; }
.logout-button { margin-top: 14px; color: var(--danger); }

.bottom-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: calc(68px + env(safe-area-inset-bottom)); padding: 6px calc(8px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left)); border-top: 1px solid rgba(227,232,241,.9); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transform: translateZ(0); }
.bottom-nav button { display: flex; min-width: 0; min-height: 56px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 0; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.bottom-nav svg { width: 24px; height: 24px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav button:first-child svg path { fill: currentColor; stroke-width: 0; }
.bottom-nav span { display: block; }
.bottom-nav button.active { color: var(--brand); }
.bottom-nav button.active { background: var(--brand-soft); }

.case-dialog { width: 100%; max-width: 720px; height: min(78dvh, 720px); max-height: calc(100dvh - env(safe-area-inset-top) - 12px); margin: auto 0 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: var(--surface); }
.case-dialog::backdrop { background: rgba(23,32,51,.42); }
.dialog-sheet { height: 100%; padding: 10px calc(16px + env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dialog-handle { width: 42px; height: 4px; margin: 0 auto 16px; border-radius: 4px; background: #c7cfdb; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-row input { margin: 0; }
.case-results { margin-top: 14px; }
.case-result { width: 100%; padding: 13px 2px; border: 0; border-top: 1px solid var(--border); background: transparent; text-align: left; }
.case-result strong, .case-result small { display: block; }
.case-result strong { color: var(--text); }
.case-result small { margin-top: 4px; color: var(--muted); }
.case-result.client strong::before { content: "客户"; margin-right: 7px; padding: 2px 5px; border-radius: 5px; background: var(--success-soft); color: var(--success); font-size: 10px; }

.toast { position: fixed; z-index: 50; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); left: 16px; max-width: 560px; margin: auto; padding: 12px 15px; border-radius: 11px; background: #172033; color: white; box-shadow: var(--shadow); font-size: 13px; text-align: center; }
.toast.error { background: #8f1d16; }

@media (min-width: 680px) {
  .page { padding-right: 24px; padding-left: 24px; }
  .case-dialog { margin-right: auto; margin-left: auto; border-radius: 20px; }
}
@media (max-width: 360px) {
  .home-actions { gap: 9px; }
  .home-action { min-height: 116px; padding: 13px; }
  .home-action strong { font-size: 15px; }
  .button-row { flex-direction: column; }
}
@media (display-mode: standalone) {
  .topbar { padding-top: calc(10px + env(safe-area-inset-top)); }
}
@supports (-webkit-touch-callout: none) {
  body { min-height: -webkit-fill-available; }
  input, textarea, select { font-size: 16px; }
  .bottom-nav { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* 3.9.3: consistent focus, readable disclosure and balanced wide-screen layout. */
button:focus-visible, summary:focus-visible { outline: 3px solid #8baeea; outline-offset: 3px; }
.advanced-options > summary strong { font-size: 13px; }
.advanced-options > summary b { font-size: 20px; line-height: 1; transition: transform .18s ease; }
.upload-picker:focus-within { outline: 3px solid #8baeea; outline-offset: 3px; }
.home-action { gap: 12px; }
@media (min-width: 760px) {
  .login-shell { align-items: center; padding-top: 40px; padding-bottom: 40px; }
  .topbar { padding-right: max(24px, calc((100vw - 672px) / 2)); padding-left: max(24px, calc((100vw - 672px) / 2)); }
  .bottom-nav { max-width: 672px; margin: 0 auto 16px; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
  .page { padding-top: 28px; }
}

.icp-footer { margin: 16px 0 0; text-align: center; font-size: 12px; line-height: 1.6; }
.icp-footer a { color: var(--muted); text-decoration: none; display: inline-block; padding: 8px 4px; }
.icp-footer a:hover { color: var(--brand); text-decoration: underline; }
.icp-footer a:focus-visible { outline: 3px solid #8baeea; outline-offset: 3px; border-radius: 4px; }
