/* Score Transcriber — mobile prototype
   Paper & ink: warm neutrals, one vermilion accent (also the universal "record" colour).
   Sheet music always sits on light paper, in both themes. */

:root {
  --paper: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #efebe2;
  --ink: #1b1915;
  --ink-2: #6a6358;
  --ink-3: #9a9286;
  --line: #e4ded2;
  --accent: #e4572e;
  --accent-press: #c9461f;
  --accent-ink: #ffffff;
  --accent-soft: #fbe5dc;
  --ok: #2f7d5b;
  --sheet: #fffdf8;
  --shadow: 0 1px 2px rgb(27 25 21 / 0.06), 0 8px 24px rgb(27 25 21 / 0.06);
  --scrim: rgb(20 18 15 / 0.38);

  --font: "Albert Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 160ms;
  --t-med: 320ms;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121110;
    --surface: #1c1a17;
    --surface-2: #26231f;
    --ink: #f2eee6;
    --ink-2: #a8a093;
    --ink-3: #7c756b;
    --line: #34302a;
    --accent: #ff6a40;
    --accent-press: #ff825f;
    --accent-ink: #1b0d08;
    --accent-soft: #3b2219;
    --ok: #5fbf91;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
    --scrim: rgb(0 0 0 / 0.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121110;
  --surface: #1c1a17;
  --surface-2: #26231f;
  --ink: #f2eee6;
  --ink-2: #a8a093;
  --ink-3: #7c756b;
  --line: #34302a;
  --accent: #ff6a40;
  --accent-press: #ff825f;
  --accent-ink: #1b0d08;
  --accent-soft: #3b2219;
  --ok: #5fbf91;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
  --scrim: rgb(0 0 0 / 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ---------- Presentation stage (desktop only) ---------- */
.stage { min-height: 100%; display: flex; align-items: center; justify-content: center; gap: 64px; padding: 32px 16px; }
.stage-note { max-width: 280px; color: var(--ink-2); }
.stage-note h2 { margin: 4px 0 12px; font: 600 40px/1.05 var(--serif); color: var(--ink); }
.stage-link { display: inline-block; margin-top: 16px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.stage-kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

.device {
  position: relative; width: 390px; height: 844px; flex: none; overflow: hidden;
  background: var(--paper); border-radius: 52px;
  box-shadow: 0 0 0 10px #1b1915, 0 0 0 11px #3a3630, 0 40px 80px rgb(0 0 0 / 0.25);
  --safe-top: 47px; --safe-bottom: 34px;
}
.statusbar {
  position: absolute; inset: 0 0 auto; z-index: 50; height: 47px; padding: 16px 30px 0 36px;
  display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; pointer-events: none;
}
.statusbar svg { fill: currentColor; stroke: none; }
.statusbar-icons { display: flex; gap: 6px; align-items: center; }
.device::after { /* home indicator */
  content: ""; position: absolute; z-index: 60; left: 50%; bottom: 8px; width: 134px; height: 5px;
  margin-left: -67px; border-radius: 3px; background: var(--ink); opacity: 0.85; pointer-events: none;
}

@media (max-width: 899px) { .stage-note { display: none; } }
/* On a real phone the prototype *is* the app: no frame. */
@media (max-width: 500px) {
  .stage { padding: 0; display: block; }
  .device { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none;
            --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); }
  .statusbar, .device::after { display: none; }
}

/* ---------- Screens ---------- */
.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: var(--paper); visibility: hidden; opacity: 0;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.screen.is-active { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.screen.modal { z-index: 20; transform: translateY(32px); }
.screen.modal.is-active { transform: none; }
.scroll {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--safe-top) + 8px) 20px calc(var(--safe-bottom) + 96px);
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }

/* ---------- Home ---------- */
.home-header { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--paper); }
.brand-mark svg { width: 18px; height: 18px; stroke-width: 2; }
.brand-name { font: 600 24px/1 var(--serif); letter-spacing: 0.01em; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; }

.display { margin: 16px 0 24px; font: 500 38px/1.05 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.display em { font-style: italic; color: var(--accent); }
.display.small { margin: 8px 0 16px; font-size: 34px; }

.hero-card {
  position: relative; width: 100%; min-height: 148px; padding: 20px; overflow: hidden;
  display: flex; align-items: flex-end; gap: 14px; text-align: left;
  border: 0; border-radius: var(--r-lg); background: var(--accent); color: var(--accent-ink);
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.hero-card:active { transform: scale(0.98); background: var(--accent-press); }
.hero-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: rgb(255 255 255 / 0.2); }
.hero-icon svg { width: 26px; height: 26px; stroke-width: 2; }
.hero-text { display: flex; flex-direction: column; }
.hero-title { font: 600 28px/1.1 var(--serif); }
.hero-sub { font-size: 15px; opacity: 0.85; }
.hero-wave { position: absolute; top: 22px; right: 20px; display: flex; gap: 4px; align-items: center; height: 44px; opacity: 0.5; }
.hero-wave i { width: 4px; border-radius: 2px; background: currentColor; animation: bar 1.4s var(--ease) infinite alternate; }
.hero-wave i:nth-child(odd) { animation-duration: 1.1s; }
.hero-wave i:nth-child(1) { height: 30%; } .hero-wave i:nth-child(2) { height: 60%; animation-delay: -.2s; }
.hero-wave i:nth-child(3) { height: 90%; animation-delay: -.5s; } .hero-wave i:nth-child(4) { height: 45%; animation-delay: -.1s; }
.hero-wave i:nth-child(5) { height: 75%; animation-delay: -.7s; } .hero-wave i:nth-child(6) { height: 35%; animation-delay: -.3s; }
.hero-wave i:nth-child(7) { height: 100%; animation-delay: -.9s; } .hero-wave i:nth-child(8) { height: 55%; animation-delay: -.4s; }
.hero-wave i:nth-child(9) { height: 80%; animation-delay: -.6s; } .hero-wave i:nth-child(10) { height: 40%; animation-delay: -.8s; }
.hero-wave i:nth-child(11) { height: 65%; animation-delay: -.15s; } .hero-wave i:nth-child(12) { height: 25%; animation-delay: -.45s; }
@keyframes bar { to { transform: scaleY(0.4); } }

.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 120px; padding: 16px;
  text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer;
  transition: transform var(--t-fast) var(--ease);
}
.tile:active { transform: scale(0.97); }
.tile:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: auto; border-radius: 12px; background: var(--surface-2); }
.tile-icon svg { width: 20px; height: 20px; }
.tile-title { margin-top: 12px; font-weight: 600; font-size: 16px; }
.tile-sub { font-size: 13px; color: var(--ink-2); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 8px; }
.section-head h2 { margin: 0; font: 600 22px/1.2 var(--serif); }
.text-btn { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent); font-size: 15px; font-weight: 600; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
}
.list li:last-child .item { border-bottom: 0; }
.thumb { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--line); overflow: hidden; }
.thumb svg { width: 100%; height: 100%; stroke: #1b1915; }
.item-main { flex: 1; min-width: 0; }
.item-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 19px/1.2 var(--serif); }
.item-meta { display: block; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.status { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.status.processing { background: var(--accent-soft); color: var(--accent); }
.mini-progress { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.mini-progress i { display: block; height: 100%; background: var(--accent); }

/* ---------- Library / settings ---------- */
.large-header { min-height: 52px; }
.search {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; margin-bottom: 12px;
  border-radius: 12px; background: var(--surface-2); color: var(--ink-2);
}
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 17px; color: var(--ink); }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; gap: 8px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.empty { padding: 48px 16px; text-align: center; }
.empty-title { margin: 0; font: 600 22px/1.2 var(--serif); }
.empty-sub { margin: 4px 0 16px; color: var(--ink-2); font-size: 15px; }

.group-label { margin: 24px 0 8px 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.group { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px;
  border-bottom: 1px solid var(--line); font-size: 16px;
}
.group .row:last-child { border-bottom: 0; }
.row-value { color: var(--ink-2); font-size: 15px; }
.row-btn { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--accent); font-weight: 600; }
.chev { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.switch {
  appearance: none; position: relative; width: 51px; height: 31px; margin: 0; flex: none; cursor: pointer;
  border-radius: 999px; background: var(--line); transition: background-color var(--t-fast) var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / 0.2); transition: transform var(--t-fast) var(--ease);
}
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(20px); }
.fine { margin: 24px 4px 0; font-size: 12px; color: var(--ink-3); }

/* ---------- Tab bar ---------- */
.tabbar {
  position: absolute; inset: auto 0 0; z-index: 10; display: flex; justify-content: space-around;
  padding: 6px 8px calc(var(--safe-bottom) + 4px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; min-height: 48px; padding: 4px 8px;
  border: 0; background: none; color: var(--ink-3); font-size: 11px; font-weight: 600;
}
.tab svg { width: 26px; height: 26px; }
.tab.is-on { color: var(--ink); }
.tab.is-on svg { color: var(--accent); }

/* ---------- Bars & buttons ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(var(--safe-top) + 4px) 12px 8px; min-height: calc(var(--safe-top) + 56px);
}
.bar-center { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.bar-title { font-size: 17px; font-weight: 600; }
.bar-title.serif { font: 600 21px/1.1 var(--serif); }
.bar-sub { font-size: 12px; color: var(--ink-2); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn-spacer { width: 44px; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s steps(2, start) infinite; }
.is-paused .rec-dot { animation: none; opacity: 0.4; }
@keyframes blink { to { visibility: hidden; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border-radius: 14px; font-size: 17px; font-weight: 600; border: 0; }
.btn.wide { width: 100%; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:active { background: var(--accent-press); }
.btn.ghost { background: var(--surface-2); color: var(--ink); }

/* ---------- Record ---------- */
.record-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 20px; }
.timer { margin: 0; font: 300 76px/1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.record-hint { margin: 8px 0 32px; font-size: 15px; color: var(--ok); font-weight: 600; }
.record-hint.is-low { color: var(--ink-3); }
.wave { width: 100%; height: 140px; }
.tip { display: flex; gap: 8px; align-items: flex-start; max-width: 300px; margin: 32px 0 0; font-size: 14px; color: var(--ink-2); }
.tip svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.record-controls { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 0 20px 8px; }
.round-btn { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--surface-2); }
.round-btn svg { width: 22px; height: 22px; }
.stop-btn {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; padding: 0;
  border: 4px solid var(--ink); background: var(--paper);
}
.stop-btn span { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); transition: transform var(--t-fast) var(--ease); }
.stop-btn:active span { transform: scale(0.9); }
.record-cta-label { margin: 0 0 calc(var(--safe-bottom) + 20px); text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ---------- Processing ---------- */
.proc-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 24px 28px 0; }
.ring { position: relative; width: 168px; height: 168px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { stroke: var(--surface-2); stroke-width: 8; }
.ring-fill { stroke: var(--accent); stroke-width: 8; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 400ms var(--ease); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; font: 300 40px/1 var(--font); font-variant-numeric: tabular-nums; }
.proc-name { margin: 24px 0 0; font: 600 26px/1.15 var(--serif); text-align: center; overflow-wrap: anywhere; }
.proc-meta { margin: 2px 0 28px; font-size: 14px; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 300px; }
.steps li { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 16px; color: var(--ink-3); transition: color var(--t-fast); }
.step-dot { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line); }
.steps li.is-active { color: var(--ink); font-weight: 600; }
.steps li.is-active .step-dot { border-color: var(--accent); border-right-color: transparent; animation: spin 0.9s linear infinite; }
.steps li.is-done { color: var(--ink-2); }
.steps li.is-done .step-dot { border-color: var(--ok); background: var(--ok); }
.steps li.is-done .step-dot::after {
  content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px;
  border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@keyframes spin { to { transform: rotate(360deg); } }
.proc-foot { padding: 0 20px calc(var(--safe-bottom) + 16px); text-align: center; }
.proc-foot p { margin: 0 auto 12px; max-width: 280px; font-size: 14px; color: var(--ink-2); }

/* ---------- Result ---------- */
.meta-chips { display: flex; gap: 8px; padding: 0 20px 12px; overflow-x: auto; scrollbar-width: none; flex: none; }
.meta { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.meta b { color: var(--ink); font-weight: 600; }
.score-scroll { position: relative; flex: 1; overflow-y: auto; padding: 0 12px 120px; scrollbar-width: none; }
.score-sheet { position: relative; min-height: 420px; border-radius: 14px; background: var(--sheet); box-shadow: var(--shadow); overflow: hidden; }
.score { padding: 4px 0 12px; }
.score svg { stroke: initial; stroke-width: initial; }
.score-skeleton { position: absolute; inset: 24px 20px; display: grid; gap: 40px; align-content: start; }
.score-skeleton i {
  height: 56px; border-radius: 6px;
  background: repeating-linear-gradient(to bottom, #e6e0d4 0 1px, transparent 1px 11px);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }

.player {
  position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 12px); z-index: 5;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px;
  border-radius: 22px; background: var(--ink); color: var(--paper); box-shadow: 0 12px 32px rgb(0 0 0 / 0.25);
}
.play-btn { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.play-btn svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.player-mid { flex: 1; min-width: 0; }
.scrub { height: 4px; border-radius: 2px; background: color-mix(in srgb, currentColor 22%, transparent); overflow: hidden; }
.scrub-fill { width: 0; height: 100%; background: currentColor; }
.player-times { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.speed-btn { min-width: 48px; height: 44px; border: 0; border-radius: 12px; background: rgb(127 127 127 / 0.2); color: inherit; font-size: 14px; font-weight: 700; }

/* ---------- Bottom sheets ---------- */
.scrim { position: absolute; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; transition: opacity var(--t-med) var(--ease); }
.scrim.is-open { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; padding: 8px 20px calc(var(--safe-bottom) + 20px);
  border-radius: 28px 28px 0 0; background: var(--surface); box-shadow: 0 -8px 32px rgb(0 0 0 / 0.12);
  transform: translateY(100%); transition: transform var(--t-med) var(--ease);
}
.sheet.is-open { transform: none; }
.grabber { display: block; width: 36px; height: 5px; margin: 0 auto 16px; border-radius: 3px; background: var(--line); }
.sheet-title { margin: 0 0 16px; font: 600 26px/1.15 var(--serif); }
.field-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field { display: flex; align-items: center; height: 52px; padding: 0 6px 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); }
.field:focus-within { border-color: var(--accent); }
.field.is-invalid { border-color: #d03a2c; }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 17px; }
.field-action { min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.field-error { margin: 8px 0 0; font-size: 14px; color: #d03a2c; }
.field-error button { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.field-help { margin: 8px 0 20px; font-size: 14px; color: var(--ink-2); }
.export-list { list-style: none; margin: 0; padding: 0; }
.export-list button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 8px 0;
  border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
}
.export-list li:last-child button { border-bottom: 0; }
.export-list button:disabled { opacity: 0.45; cursor: default; }
.ex-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--surface-2); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.ex-icon svg { width: 20px; height: 20px; }
.ex-text { flex: 1; display: flex; flex-direction: column; }
.ex-text b { font-weight: 600; font-size: 16px; }
.ex-text span { font-size: 13px; color: var(--ink-2); }

.toast {
  position: absolute; left: 50%; top: calc(var(--safe-top) + 8px); z-index: 70; transform: translate(-50%, -12px);
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.2); opacity: 0; transition: opacity var(--t-fast), transform var(--t-fast) var(--ease); white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .screen.modal { transform: none; }
}
