/* Score — v2 "Dial" mobile prototype
   Light minimal, in the spirit of Design Monks' Music App UI on Dribbble (cool off-white, white
   cards, soft shadows, heavy two-tone grotesk headlines) but with its own core object: a
   circular staff that fills with the notes it hears.
   Monochrome; one small red accent only for "live" (record dot, playhead). */

:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --ink: #0e0e10;
  --ink-2: #6f7180;
  --ink-3: #a7a9b4;
  --line: #e7e8ee;
  --live: #ff4b36;
  --sheet: #ffffff;
  --shadow: 0 1px 2px rgb(20 22 40 / 0.04), 0 12px 32px rgb(20 22 40 / 0.07);
  --shadow-lg: 0 2px 6px rgb(20 22 40 / 0.06), 0 24px 60px rgb(20 22 40 / 0.12);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --r-md: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 160ms;
  --t-med: 340ms;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: linear-gradient(160deg, #eceef6, #f7f7fa 60%); color: var(--ink); font: 500 16px/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.6; 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(--ink); outline-offset: 3px; border-radius: 12px; }

.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* ---------- Stage ---------- */
.stage { min-height: 100%; display: flex; align-items: center; justify-content: center; gap: 72px; padding: 32px 16px; }
.stage-note { max-width: 300px; color: var(--ink-2); }
.stage-note h2 { margin: 8px 0 14px; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.stage-note h2 span { color: var(--ink-3); }
.stage-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.stage-link { display: inline-block; margin-top: 16px; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.device { position: relative; width: 390px; height: 844px; flex: none; overflow: hidden; background: var(--bg); border-radius: 54px; box-shadow: 0 0 0 10px #fff, 0 0 0 11px #dcdde5, var(--shadow-lg); --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: 700; pointer-events: none; }
.statusbar svg { fill: currentColor; stroke: none; }
.statusbar-icons { display: flex; gap: 6px; align-items: center; }
.device::after { content: ""; position: absolute; z-index: 60; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--ink); pointer-events: none; }
@media (max-width: 899px) { .stage-note { display: none; } }
@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(--bg); 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(24px); }
.screen.modal.is-active { transform: none; }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--safe-top) + 6px) 20px calc(var(--safe-bottom) + 96px); scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* ---------- The dial: a circular staff (the product's own object) ----------
   A paper disc with five concentric staff lines. While listening, heard notes are written
   onto the ring at 12 o'clock and the disc turns, so the recording becomes a circle of music. */
.dial {
  --ink-line: rgb(14 14 16 / 0.82);
  position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(20 22 40 / 0.05), 0 18px 44px rgb(20 22 40 / 0.12);
}
.dial-lines { position: absolute; inset: 0; width: 100%; height: 100%; stroke: var(--ink-line); stroke-width: 0.32; fill: none; }
.dial-notes { position: absolute; inset: 0; border-radius: 50%; }
.dial-notes > i { position: absolute; inset: 0; pointer-events: none; } /* an "arm" rotated to the note's angle */
.dial-notes .nh { position: absolute; left: 50%; width: 4.6%; height: 3.3%; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%) rotate(-24deg); }
.dial-notes .nh.new { animation: ink-in 420ms var(--ease); }
.dial-notes .bl { position: absolute; left: 50%; top: 7%; width: 1px; height: 13%; background: var(--ink-line); }
@keyframes ink-in { from { opacity: 0; transform: translate(-50%, -50%) rotate(-24deg) scale(0.3); } }
.hub { position: relative; display: grid; place-items: center; width: 32%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgb(0 0 0 / 0.18); }
.hub svg { width: 34%; height: 34%; stroke-width: 2; }
.hub b { font-size: 15px; font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.hub .rec-dot { position: absolute; top: 22%; }
.dial.is-spinning .dial-notes { animation: spin 24s linear infinite; }
.dial.is-spinning.slow .dial-notes { animation-duration: 40s; }
.is-paused .dial.is-spinning .dial-notes { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Home ---------- */
.top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.icon-btn.plain { background: none; box-shadow: none; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn-spacer { width: 44px; flex: none; }
.display { margin: 10px 0 22px; font-size: 44px; line-height: 0.98; font-weight: 800; letter-spacing: -0.05em; }
.display .tone { color: var(--ink-3); }
.display.small { margin: 4px 0 16px; font-size: 36px; }

.deck { position: relative; padding: 22px 22px 18px; }
.deck .dial { width: 86%; margin: 4px auto 0; transition: transform var(--t-med) var(--ease); }
.deck .dial:active { transform: scale(0.97); }
.deck .dial:hover .hub { background: #26262b; }
.deck-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 18px; }
.deck-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.deck-sub { margin: 0; font-size: 13px; color: var(--ink-2); }
.pill-outline { flex: none; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }

.row-2 { 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: 108px; padding: 16px; border: 0; text-align: left; cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.tile:active { transform: scale(0.97); }
.tile:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.tile svg { width: 22px; height: 22px; margin-bottom: auto; }
.tile-title { margin-top: 14px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.tile-sub { font-size: 12px; color: var(--ink-2); }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 6px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.text-btn { min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--ink-2); font-size: 14px; font-weight: 700; }

/* Track-style list rows with a disc thumbnail */
.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 8px 0; border: 0; background: none; text-align: left; }
.disc { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.disc svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: rgb(14 14 16 / 0.7); stroke-width: 1.2; fill: none; }
.item-main { flex: 1; min-width: 0; }
.item-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.item-meta { display: block; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.progress-line { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress-line i { display: block; height: 100%; background: var(--ink); }
.item .pill-outline { min-width: 58px; text-align: center; }
.item .pill-outline.live { border-color: var(--line); color: var(--ink-2); }

/* Library / settings */
.search { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; margin-bottom: 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink-3); }
.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: 16px; font-weight: 600; color: var(--ink); }
.search:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.chips { display: flex; gap: 8px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.chip { min-height: 36px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: none; font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--ink-2); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { padding: 48px 16px; text-align: center; }
.empty-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.empty-sub { margin: 4px 0 16px; color: var(--ink-2); font-size: 14px; }
.group-label { margin: 22px 0 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.group { border-radius: var(--r-md); overflow: hidden; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.group .row:last-child { border-bottom: 0; }
.row-value { color: var(--ink-2); font-size: 14px; }
.row-btn { width: 100%; border: 0; background: none; text-align: left; font-weight: 800; }
.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 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 6px rgb(0 0 0 / 0.18); transition: transform var(--t-med) var(--ease); }
.switch:checked { background: var(--ink); }
.switch:checked::after { transform: translateX(20px); }
.fine { margin: 24px 6px 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: 8px 12px calc(var(--safe-bottom) + 6px); background: rgb(255 255 255 / 0.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); transition: opacity var(--t-med); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 76px; min-height: 48px; padding: 4px 8px 8px; border: 0; background: none; color: var(--ink-3); font-size: 11px; font-weight: 700; }
.tab svg { width: 24px; height: 24px; }
.tab.is-on { color: var(--ink); }
.tab.is-on::after { content: ""; position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.tabbar[inert] { opacity: 0; }

/* ---------- Bars & buttons ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(var(--safe-top) + 4px) 16px 8px; min-height: calc(var(--safe-top) + 56px); }
.bar-center { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.bar-title { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.bar-sub { font-size: 12px; color: var(--ink-2); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); 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: 54px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.btn.wide { width: 100%; }
.btn.primary { border: 0; background: var(--ink); color: #fff; }
.btn.primary:active { background: #2b2b30; }
.btn.outline { border: 1.5px solid var(--ink); background: none; }

/* ---------- Record ---------- */
.record-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px; }
.platter { position: relative; width: 100%; padding: 22px; }
.platter { display: grid; place-items: center; }
.platter .dial { width: 86%; }
.rec-title { margin: 22px 0 0; font-size: 44px; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.rec-sub { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.rec-sub:not(.is-low) { color: var(--ink); }
.hearing { display: flex; align-items: center; gap: 10px; min-height: 30px; margin-bottom: 8px; }
.hearing-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.note-chips { display: flex; gap: 6px; }
.note-chips span { padding: 4px 10px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 800; }
.wave { width: 100%; height: 52px; }
.record-controls { display: flex; align-items: center; justify-content: center; gap: 36px; padding: 6px 20px calc(var(--safe-bottom) + 24px); }
.round-btn { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.round-btn svg { width: 22px; height: 22px; }
.stop-btn { display: grid; place-items: center; width: 80px; height: 80px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 12px 28px rgb(0 0 0 / 0.25); transition: transform var(--t-fast) var(--ease); }
.stop-btn:active { transform: scale(0.94); }
.stop-btn span { width: 26px; height: 26px; border-radius: 6px; background: #fff; }

/* ---------- Processing ---------- */
.proc-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 16px 20px 0; }
.proc-disc { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.proc-disc .dial { width: 196px; }
.proc-disc .hub b { font-size: 18px; letter-spacing: -0.02em; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { stroke: var(--line); stroke-width: 2.5; }
.ring-fill { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 351.9; stroke-dashoffset: 351.9; transition: stroke-dashoffset 400ms var(--ease); }
.proc-name { margin: 20px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.04em; text-align: center; overflow-wrap: anywhere; }
.proc-meta { margin: 0 0 20px; font-size: 13px; color: var(--ink-2); }
.steps { list-style: none; width: 100%; margin: 0; padding: 6px 18px; border-radius: var(--r-md); }
.steps li { display: flex; align-items: center; gap: 12px; min-height: 50px; color: var(--ink-3); font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li > span:nth-child(2) { flex: 1; }
.step-time { font-size: 12px; font-weight: 600; }
.step-dot { position: relative; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); }
.steps li.is-active { color: var(--ink); }
.steps li.is-active .step-dot { border-color: var(--ink); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.steps li.is-done { color: var(--ink-2); }
.steps li.is-done .step-dot { border-color: var(--ink); background: var(--ink); }
.steps li.is-done .step-dot::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.proc-foot { padding: 16px 20px calc(var(--safe-bottom) + 16px); }

/* ---------- Result ---------- */
.meta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 20px 12px; padding: 12px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex: none; }
.meta-row div { text-align: center; }
.meta-row div + div { border-left: 1px solid var(--line); }
.meta-row dt { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.meta-row dd { margin: 2px 0 0; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.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: 24px; 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, #e7e8ee 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 10px 10px 12px; border-radius: 999px; box-shadow: var(--shadow-lg); }
.dial.mini { width: 44px; flex: none; box-shadow: var(--shadow); }
.dial.mini .hub { width: 30%; box-shadow: none; }
.is-playing .dial.mini { animation: spin 4s linear infinite; }
.player-mid { flex: 1; min-width: 0; }
.scrub { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.scrub-fill { width: 0; height: 100%; background: var(--ink); }
.player-times { display: flex; gap: 4px; margin-top: 6px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.player-times b { color: var(--ink); font-weight: 800; }
.speed-btn { min-width: 44px; height: 36px; border: 1.5px solid var(--line); border-radius: 999px; background: none; font-size: 13px; font-weight: 800; }
.play-btn { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: var(--ink); color: #fff; }
.play-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }

/* ---------- Sheets ---------- */
.scrim { position: absolute; inset: 0; z-index: 40; background: rgb(14 14 16 / 0.28); 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 22px calc(var(--safe-bottom) + 18px); border-radius: 32px 32px 0 0; background: var(--surface); box-shadow: 0 -12px 40px rgb(20 22 40 / 0.14); transform: translateY(105%); 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-size: 28px; font-weight: 800; letter-spacing: -0.05em; }
.field-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field { display: flex; align-items: center; height: 54px; padding: 0 6px 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); }
.field:focus-within { border-color: var(--ink); }
.field.is-invalid { border-color: var(--live); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; font-weight: 600; }
.field input::placeholder { color: var(--ink-3); }
.field-action { min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; font-weight: 800; }
.field-error { margin: 8px 4px 0; font-size: 14px; font-weight: 600; color: #d23a2a; }
.field-error button { padding: 0; border: 0; background: none; color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.field-help { margin: 8px 4px 18px; font-size: 13px; 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: 66px; 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.4; cursor: default; }
.ex-text { flex: 1; display: flex; flex-direction: column; }
.ex-text b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.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 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity var(--t-fast), transform var(--t-med) 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; }
}
