/* Physio Atlas: system wizualny. Kolor niesie znaczenie tkanek (mięsień, nerw, naczynie, kość) i statusów; reszta to atrament i papier. */
:root {
  --bg: #f6f7f7;
  --surface: #ffffff;
  --sunken: #f0f2f2;
  --ink: #121a1f;
  --ink-2: #4a565e;
  --ink-3: #85909a;
  --line: #e2e6e7;
  --line-2: #eceff0;
  --line-strong: #cdd3d6;
  --primary: #0e5e63;
  --primary-hover: #0a4b4f;
  --primary-ink: #ffffff;
  --primary-soft: #e5efef;
  --muscle: #c2412d; --muscle-soft: #f9e7e3;
  --nerve: #a8780a; --nerve-soft: #f8efd6;
  --vessel: #2c56a8; --vessel-soft: #e4eaf6;
  --bone: #85754c; --bone-soft: #f1ece0;
  --ok: #23774a; --ok-soft: #e2f1e8;
  --warn: #965800; --warn-soft: #fbefdb;
  --bad: #b42318; --bad-soft: #fbe5e3;
  --focus: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent);
  --pop: 0 12px 32px -8px rgba(18, 26, 31, .22), 0 2px 6px rgba(18, 26, 31, .08);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --latin: "Spectral", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1416; --surface: #151d20; --sunken: #1b2427; --ink: #e7eded; --ink-2: #a9b5b9; --ink-3: #75838a;
    --line: #253034; --line-2: #1f2a2d; --line-strong: #34444a; --primary: #58bdb5; --primary-hover: #6fd0c8; --primary-ink: #04201f; --primary-soft: #16312f;
    --muscle: #ec8a74; --muscle-soft: #3a211b; --nerve: #e2b850; --nerve-soft: #362c12; --vessel: #8eaaf0; --vessel-soft: #1b2744; --bone: #cdbd92; --bone-soft: #2f2a1d;
    --ok: #6ccb8c; --ok-soft: #15301f; --warn: #eeb15a; --warn-soft: #372810; --bad: #f08a80; --bad-soft: #3a1b19; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1416; --surface: #151d20; --sunken: #1b2427; --ink: #e7eded; --ink-2: #a9b5b9; --ink-3: #75838a;
  --line: #253034; --line-2: #1f2a2d; --line-strong: #34444a; --primary: #58bdb5; --primary-hover: #6fd0c8; --primary-ink: #04201f; --primary-soft: #16312f;
  --muscle: #ec8a74; --muscle-soft: #3a211b; --nerve: #e2b850; --nerve-soft: #362c12; --vessel: #8eaaf0; --vessel-soft: #1b2744; --bone: #cdbd92; --bone-soft: #2f2a1d;
  --ok: #6ccb8c; --ok-soft: #15301f; --warn: #eeb15a; --warn-soft: #372810; --bad: #f08a80; --bad-soft: #3a1b19; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1 { font-size: 27px; line-height: 1.2; font-weight: 640; letter-spacing: -.022em; }
h2 { font-size: 18px; line-height: 1.3; font-weight: 620; letter-spacing: -.012em; }
h3 { font-size: 15px; line-height: 1.35; font-weight: 620; letter-spacing: -.006em; }
p { margin: 0; }
ul, ol { margin: 0; }
.la { font-family: var(--latin); font-style: italic; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.meta { font-size: 13px; color: var(--ink-3); }
.tiny { font-size: 12px; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 10px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 14px 12px 12px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; flex: none; }
.mark .svg { width: 18px; height: 18px; stroke-width: 2; }
.brand-name { font-weight: 680; font-size: 15.5px; letter-spacing: -.02em; line-height: 1.1; }
.brand-org { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.nav-label { font-size: 12px; color: var(--ink-3); padding: 16px 10px 6px; font-weight: 500; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 7px; color: var(--ink-2); font-weight: 500; font-size: 14px; position: relative; }
.nav a:hover { background: var(--sunken); color: var(--ink); }
.nav a.on { background: var(--primary-soft); color: var(--primary); }
.nav a.on .svg { color: var(--primary); }
.nav a .svg { color: var(--ink-3); }
.nav .count { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--sunken); border-radius: 5px; padding: 0 6px; font-variant-numeric: tabular-nums; }
.nav a.on .count { background: var(--surface); color: var(--primary); }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--ink); }
.me:hover { background: var(--sunken); color: var(--ink); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 650; font-size: 12px; flex: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 32px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.search { flex: 1; max-width: 460px; height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 10px 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink-3); cursor: text; text-align: left; font-size: 14px; }
.search:hover { border-color: var(--line-strong); }
.search kbd { margin-left: auto; font: 500 11.5px var(--font); color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--sunken); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.env { font-size: 12px; font-weight: 560; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.select { height: 34px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2385909a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.icon-btn { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--sunken); color: var(--ink); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--muscle); box-shadow: 0 0 0 2px var(--bg); }
.content { padding: 30px 32px 56px; width: 100%; max-width: 1280px; }
.foot-note { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); max-width: 80ch; }
.tabbar { display: none; }
.top-brand { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* menu na telefonie */
.drawer-wrap { position: fixed; inset: 0; z-index: 55; background: rgba(12, 20, 22, .4); animation: fade .12s ease-out; }
.drawer { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; background: var(--surface); border-radius: 16px 16px 0 0; padding: 14px 12px calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--pop); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; border-bottom: 1px solid var(--line-2); }
.drawer-head .spacer { flex: 1; }
.drawer .nav a { padding: 10px; font-size: 15px; }
.drawer .nav form { margin: 0; }
.drawer .nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; background: none; border-radius: 7px; color: var(--ink-2); font-weight: 500; font-size: 15px; cursor: pointer; text-align: left; }
.drawer .nav button:hover { background: var(--sunken); color: var(--ink); }
.drawer .nav button .svg { color: var(--ink-3); }
.nav form { margin: 0; }
.nav .nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; border: 0; background: none; border-radius: 7px; color: var(--ink-2); font-weight: 500; font-size: 14px; cursor: pointer; text-align: left; }
.nav .nav-btn:hover { background: var(--sunken); color: var(--ink); }
.nav .nav-btn .svg { color: var(--ink-3); }

/* ---------- page structure ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .lead { margin-top: 6px; color: var(--ink-2); max-width: 64ch; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line-strong); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.tight { gap: 8px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.hr { height: 1px; background: var(--line); margin: 20px 0; border: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.panel.pad-0 { padding: 0; overflow: hidden; }
.panel.quiet { background: transparent; border-style: dashed; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head .meta a { color: var(--ink-2); }
.sec { padding: 22px 0; border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; padding-top: 0; }
.sec > h2 { margin-bottom: 12px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 540; font-size: 13.5px; cursor: pointer; color: var(--ink); white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--sunken); color: var(--ink); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--sunken); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn .svg { width: 16px; height: 16px; }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 540; background: var(--sunken); color: var(--ink-2); white-space: nowrap; }
.tag .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.muscle { background: var(--muscle-soft); color: var(--muscle); }
.tag.nerve { background: var(--nerve-soft); color: var(--nerve); }
.tag.vessel { background: var(--vessel-soft); color: var(--vessel); }
.tag.bone { background: var(--bone-soft); color: var(--bone); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.primary { background: var(--primary-soft); color: var(--primary); }
a.tag:hover { filter: brightness(.97); }
.dot-i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

.filter { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 520; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.filter:hover { border-color: var(--line-strong); color: var(--ink); }
.filter.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 560; color: var(--ink); }
.hint { font-size: 12.5px; color: var(--ink-3); }
.input { width: 100%; height: 38px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; transition: border-color .12s, box-shadow .12s; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
textarea.input { height: auto; min-height: 92px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2385909a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; padding-right: 32px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--primary); width: 15px; height: 15px; }
input[type="range"] { width: 100%; accent-color: var(--primary); }

.seg { display: inline-flex; background: var(--sunken); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 11px; border-radius: 6px; cursor: pointer; font-weight: 540; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18,26,31,.12), 0 0 0 1px var(--line); }

.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 0; cursor: pointer; font-weight: 540; font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-color: var(--ink); }
.tabs .n { font-size: 12px; color: var(--ink-3); margin-left: 4px; font-variant-numeric: tabular-nums; }

.bar { height: 6px; background: var(--sunken); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.bar.low > i { background: var(--muscle); }

/* ---------- data display ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 520; color: var(--ink-3); font-size: 12.5px; padding: 0 12px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td:first-child, table.t th:first-child { padding-left: 0; }
table.t td:last-child, table.t th:last-child { padding-right: 0; }
table.t .r { text-align: right; }
.table-wrap { overflow-x: auto; }

/* row list: tests, muscles, exercises */
.rows { display: flex; flex-direction: column; }
.rw { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 0; color: inherit; border-top: 1px solid var(--line-2); }
.rw:first-child { border-top: 0; }
.rw:hover { color: inherit; }
.rw:hover .rw-title { color: var(--primary); }
.rw-title { font-weight: 580; font-size: 14.5px; line-height: 1.35; }
.rw-sub { font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.rw-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rw-meta .tag { height: auto; min-height: 22px; padding: 3px 8px; white-space: normal; line-height: 1.35; }
.rw-end { font-size: 12.5px; color: var(--ink-3); text-align: right; line-height: 1.5; }
.thumb { width: 52px; height: 40px; border-radius: 6px; background: var(--sunken) center/cover no-repeat; display: grid; place-items: center; color: var(--ink-3); }
.thumb.muscle { background: var(--muscle-soft); color: var(--muscle); }

/* test index table */
.tidx { width: 100%; }
.tidx-h, .tidx-r { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.6fr) 84px 84px 132px; gap: 16px; align-items: center; }
.tidx-h { font-size: 12.5px; color: var(--ink-3); font-weight: 520; padding: 0 0 9px; border-bottom: 1px solid var(--line); }
.tidx-r { padding: 13px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.tidx-r:hover { color: var(--ink); background: linear-gradient(90deg, transparent, var(--sunken) 8%, var(--sunken) 92%, transparent); }
.tidx-r:hover .tn { color: var(--primary); }
.tidx-r .tn { font-weight: 590; }
.tidx-r .en { font-size: 12.5px; color: var(--ink-3); }
.tidx .c-num { text-align: right; font-variant-numeric: tabular-nums; }

/* media cards (exercises, recent) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.cards.c3 { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.card:hover { color: var(--ink); }
.card .img { position: relative; aspect-ratio: 4 / 3; border-radius: 9px; background: var(--sunken) center/cover no-repeat; overflow: hidden; border: 1px solid var(--line-2); }
.card:hover .img { border-color: var(--line-strong); }
.card .img.ph { display: grid; place-items: center; color: var(--ink-3); }
.card-t { font-weight: 600; font-size: 15px; letter-spacing: -.008em; }
.card .add { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 7px; border: 0; background: rgba(255,255,255,.94); color: #121a1f; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.card .add.on { background: var(--primary); color: var(--primary-ink); }

/* ---------- dashboard ---------- */
.greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.greet h1 { font-size: 30px; }
.statline { display: flex; gap: 28px; flex-wrap: wrap; }
.statline div { display: flex; flex-direction: column; }
.statline b { font-size: 21px; font-weight: 640; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.statline span { font-size: 12.5px; color: var(--ink-3); }
.agenda { display: flex; flex-direction: column; }
.ag { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); }
.ag:first-child { border-top: 0; padding-top: 4px; }
.ag .ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }
.ag .ic.muscle { background: var(--muscle-soft); color: var(--muscle); }
.ag .ic.nerve { background: var(--nerve-soft); color: var(--nerve); }
.ag .ic.primary { background: var(--primary-soft); color: var(--primary); }
.countdown { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 12px; }
.countdown b { font-size: 40px; font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.checklist { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.checklist li:first-child { border-top: 0; }
.ck { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.ck.done { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.ck.done .svg { width: 12px; height: 12px; stroke-width: 2.6; }
.ck.next { border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 9px var(--primary); }
.li-muted { color: var(--ink-3); }

/* ---------- atlas ---------- */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.stage { position: relative; background-color: #fbfcfc; background-image: radial-gradient(#d9dfe0 1px, transparent 1px); background-size: 18px 18px; border: 1px solid var(--line); border-radius: 12px; height: 700px; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; overflow: hidden; }
.figure { position: relative; height: 92%; aspect-ratio: 2 / 3; }
.figure img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; mix-blend-mode: multiply; transition: filter .25s; }
.figure.layer-bone img { filter: grayscale(1) sepia(.3) brightness(1.06) contrast(.9); }
.figure.layer-nerve img { filter: grayscale(.9) brightness(1.1) opacity(.6); }
.hot { position: absolute; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; background: #121a1f; box-shadow: 0 0 0 1px rgba(18,26,31,.25), 0 2px 6px rgba(0,0,0,.25); cursor: pointer; padding: 0; transition: transform .15s; }
.hot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.hot:hover { transform: translate(-50%, -50%) scale(1.25); }
.hot.on { background: var(--primary); width: 18px; height: 18px; box-shadow: 0 0 0 6px color-mix(in srgb, #0e5e63 22%, transparent), 0 2px 6px rgba(0,0,0,.25); }
.hot-label { position: absolute; transform: translate(16px, -50%); background: #121a1f; color: #fff; font-size: 12.5px; font-weight: 560; padding: 4px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.hot-label::before { content: ""; position: absolute; left: -4px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 8px; height: 8px; background: #121a1f; }
.figure.layer-nerve .hot.on { background: var(--nerve); }
.figure.layer-bone .hot.on { background: #85754c; }
.stage-cap { position: absolute; left: 16px; bottom: 12px; right: 16px; pointer-events: none; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #6a767e; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.region-head { padding-bottom: 14px; }
.region-head .la { font-size: 17px; }

/* ---------- monograph (test, muscle, exercise) ---------- */
.doc-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: 32px; letter-spacing: -.026em; }
.doc-head .sub { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.doc-head .la { font-size: 19px; }
.doc-head .row { margin-top: 14px; }
.doc { display: grid; grid-template-columns: 176px minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.doc.two { grid-template-columns: minmax(0, 1fr) 320px; }
.toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.toc .label { font-size: 12px; color: var(--ink-3); font-weight: 520; margin-bottom: 6px; }
.toc a { color: var(--ink-2); padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-color: var(--ink-3); }
.article { min-width: 0; }
.article > section { padding: 0 0 30px; scroll-margin-top: 80px; }
.article > section + section { padding-top: 28px; border-top: 1px solid var(--line); }
.article h2 { margin-bottom: 12px; }
.article p { max-width: 68ch; }
.aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.figure-media { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0d1a1b center/cover no-repeat; margin-bottom: 8px; }
.figure-media .play { position: absolute; left: 16px; bottom: 16px; height: 36px; padding: 0 14px 0 10px; border-radius: 8px; background: rgba(255,255,255,.95); border: 0; display: inline-flex; gap: 6px; align-items: center; font-weight: 580; font-size: 13.5px; color: #121a1f; cursor: pointer; }
.figcap { font-size: 12.5px; color: var(--ink-3); margin-bottom: 26px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: flex; flex-direction: column; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 9px 0; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--ink-2); font-weight: 600; font-size: 12px; display: grid; place-items: center; font-variant-numeric: tabular-nums; margin-top: 1px; }
.interp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.interp > div { padding: 16px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid; }
.interp .pos { border-top-color: var(--muscle); }
.interp .neg { border-top-color: var(--ok); }
.interp h3 { margin-bottom: 6px; }
.note { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); font-size: 14px; }
.note .svg { color: var(--warn); margin-top: 2px; }
.note.bad { background: var(--bad-soft); }
.note.bad .svg { color: var(--bad); }
.note.info { background: var(--primary-soft); }
.note.info .svg { color: var(--primary); }
.note b { display: block; margin-bottom: 2px; }
.bul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.spec { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.spec dt, .spec dd { padding: 12px 0; border-top: 1px solid var(--line-2); margin: 0; }
.spec dt:first-of-type, .spec dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.spec dt { color: var(--ink-2); font-weight: 540; font-size: 13.5px; display: flex; gap: 9px; align-items: baseline; }
.spec dt .dot-i { transform: translateY(-1px); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }

.stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stats > div { padding: 14px 16px; background: var(--surface); }
.stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.stats b { display: block; font-size: 24px; font-weight: 640; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stats span { font-size: 12.5px; color: var(--ink-3); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.calc-out > div { padding: 12px 14px; border-radius: 9px; }
.calc-out .p { background: var(--muscle-soft); }
.calc-out .n { background: var(--ok-soft); }
.calc-out b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.calc-out span { font-size: 12.5px; color: var(--ink-2); }
.plate { background: #fbfcfc; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; height: 340px; overflow: hidden; position: relative; }
.plate .fig { position: relative; height: 326px; aspect-ratio: 2 / 3; }
.plate img { width: 100%; height: 100%; display: block; mix-blend-mode: multiply; }
.plate .pin { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, #0e5e63 18%, transparent); }
.v3d-stage { height: 380px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #fbfcfc, #e9eef0); }
.v3d-stage > canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.v3d-stage .plate { height: 100%; border: 0; border-radius: 0; }
.v3d .pin, .v3d-alt, .v3d-bar, .v3d.ready .v3d-alt, .v3d.failed .v3d-cap, .v3d.failed .v3d-wait { display: none; }
.v3d.failed .pin, .v3d.failed .v3d-alt { display: block; }
.v3d:not(.ready):not(.failed) .v3d-cap { visibility: hidden; }
.v3d.ready .v3d-bar { display: inline-flex; flex-wrap: wrap; max-width: 100%; margin-top: 8px; }
.v3d-bar button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18,26,31,.12), 0 0 0 1px var(--line); }
.v3d-wait { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.v3d-stage { position: relative; }
.stage > .v3d-stage { position: absolute; inset: 0; height: auto; border: 0; border-radius: 0; background: none; display: grid; place-items: center; }
.stage > .v3d-stage .v3d-wait { bottom: 44px; }
.v3d-hots { position: absolute; inset: 0; pointer-events: none; }
.v3d-hots .hot { pointer-events: auto; }
.v3d-hots [hidden] { display: none; }
.v3d-callout { position: absolute; transform: translate(calc(-100% - 6px), -50%); font-size: 12px; color: #4a565e; display: flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: none; }
.v3d-callout::after { content: ""; display: block; height: 1px; width: 56px; background: #85909a; }
.v3d-callout::before { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #0e5e63; }
.v3d-tools { position: absolute; top: 12px; right: 12px; display: none; gap: 6px; }
.v3d.ready .v3d-tools { display: flex; }

/* ---------- learning ---------- */
.quiz { max-width: 720px; }
.quiz-q { font-size: 21px; font-weight: 600; line-height: 1.4; letter-spacing: -.012em; margin: 18px 0 20px; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { text-align: left; padding: 13px 14px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; display: flex; gap: 12px; align-items: center; font-size: 15px; width: 100%; color: var(--ink); }
.opt:hover:not(:disabled) { border-color: var(--ink-3); background: var(--sunken); }
.opt:disabled { cursor: default; }
.opt .key { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 600; font-size: 12px; color: var(--ink-2); flex: none; }
.opt.sel { border-color: var(--primary); background: var(--primary-soft); }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.right .key { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong .key { background: var(--bad); border-color: var(--bad); color: var(--surface); }
.explain { margin-top: 16px; padding: 16px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--primary); }
.flash { max-width: 560px; perspective: 1400px; }
.flash-card { position: relative; height: 300px; transition: transform .45s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; cursor: pointer; }
.flash-card.flip { transform: rotateY(180deg); }
.flash-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 12px; }
.flash-face.back { transform: rotateY(180deg); border-top: 3px solid var(--primary); }
.srs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 560px; margin-top: 14px; }
.srs button { padding: 10px 6px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 580; font-size: 14px; }
.srs button:hover { background: var(--sunken); }
.srs button small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match button { padding: 13px 14px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; text-align: left; font-weight: 540; min-height: 52px; width: 100%; }
.match button:hover { background: var(--sunken); }
.match button.sel { border-color: var(--primary); background: var(--primary-soft); }
.match button.done { border-color: transparent; background: var(--ok-soft); color: var(--ok); cursor: default; }
.match button.err { border-color: var(--bad); background: var(--bad-soft); }

.stepper { display: flex; margin-bottom: 26px; }
.stepper div { flex: 1; padding-top: 10px; border-top: 3px solid var(--line); font-size: 13px; color: var(--ink-3); font-weight: 540; }
.stepper div + div { margin-left: 4px; }
.stepper div.done { border-color: var(--primary); color: var(--ink-2); }
.stepper div.on { border-color: var(--primary); color: var(--ink); }
.stepper small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }

.mode { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-2); color: var(--ink); }
.mode:first-child { border-top: 0; padding-top: 0; }
.mode:hover { color: var(--ink); }
.mode:hover h3 { color: var(--primary); }
.mode .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 14px; min-height: 360px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 12px; line-height: 1.55; font-size: 14.5px; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--surface); border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--sunken); border-bottom-left-radius: 4px; }
.msg .src { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.composer { display: flex; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.col { display: flex; flex-direction: column; gap: 8px; min-height: 320px; }
.col-h { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 600; padding: 0 2px 8px; border-bottom: 2px solid var(--line); margin-bottom: 4px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 12px 13px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.kcard:hover { border-color: var(--line-strong); color: var(--ink); }

.heat { display: grid; gap: 3px; }
.heat .cell { border-radius: 5px; padding: 7px 4px; text-align: center; font-size: 12.5px; font-weight: 560; font-variant-numeric: tabular-nums; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; background: rgba(12, 20, 22, .4); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; background: var(--surface); border-radius: 12px; box-shadow: var(--pop); overflow: hidden; border: 1px solid var(--line); }
.modal-body { padding: 22px; }
.palette input { width: 100%; height: 52px; padding: 0 18px; border: 0; border-bottom: 1px solid var(--line); font-size: 16px; background: transparent; outline: none; }
.palette .res { max-height: 50vh; overflow-y: auto; padding: 6px; }
.palette .res a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 7px; color: var(--ink); font-size: 14px; }
.palette .res a .svg { color: var(--ink-3); }
.palette .res a:hover, .palette .res a.on { background: var(--sunken); }
.palette .grp { font-size: 12px; color: var(--ink-3); padding: 10px 12px 4px; font-weight: 520; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 9px; z-index: 60; font-weight: 520; font-size: 14px; box-shadow: var(--pop); display: flex; gap: 8px; align-items: center; animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 6px); } }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.auth-plate { position: relative; background-color: #f4f6f6; background-image: radial-gradient(#d9dfe0 1px, transparent 1px); background-size: 18px 18px; border-right: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; padding: 32px 40px; overflow: hidden; }
.auth-plate .brand { padding: 0; }
.auth-plate .brand-name { color: #121a1f; }
.auth-plate .mark { color: #ffffff; background: #0e5e63; }
.auth-plate .figwrap { display: grid; place-items: center; min-height: 0; position: relative; }
.auth-plate img { height: min(64vh, 620px); mix-blend-mode: multiply; }
.auth-plate .v3d-stage { height: min(64vh, 620px); width: 100%; border: 0; border-radius: 0; background: none; display: grid; place-items: center; }
.auth-plate .callout-l { position: absolute; font-size: 12px; color: #4a565e; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.auth-plate .callout-l i { display: block; height: 1px; width: 56px; background: #85909a; }
.auth-plate h1 { font-size: 26px; max-width: 22ch; color: #121a1f; }
.auth-plate p { color: #4a565e; margin-top: 8px; max-width: 52ch; font-size: 14px; }
.auth-form { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-theme { position: absolute; top: 16px; right: 16px; }
.auth-form .inner { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.auth-form h2 { font-size: 22px; letter-spacing: -.02em; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.choice { display: flex; flex-wrap: wrap; gap: 6px; }

/* phone preview */
.phones { display: flex; gap: 40px; justify-content: center; align-items: flex-start; flex-wrap: wrap; padding: 10px 0 20px; }
.phone { width: 390px; height: 820px; border-radius: 52px; padding: 11px; background: #0f1517; box-shadow: 0 40px 70px -30px rgba(0,0,0,.45), inset 0 0 0 1.5px #2d3638; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 42px; background: var(--bg); }
.phone-cap { text-align: center; margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* coverage map */
.cov { columns: 3 300px; column-gap: 20px; }
.cov .panel { break-inside: avoid; margin-bottom: 20px; }
.cov ul { padding: 0; list-style: none; margin-top: 4px; }
.cov li { padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.cov li:first-child { border-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .doc { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .toc { display: none; }
}
@media (max-width: 1080px) {
  .atlas, .split, .doc, .doc.two { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tidx-h, .tidx-r { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 70px 70px 120px; }
  .tidx .c-str { display: none; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 0 16px; height: 52px; }
  .search kbd, .env { display: none; }
  .search { min-width: 0; }
  .search span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-brand { display: grid; }
  .top-brand .mark { width: 28px; height: 28px; }
  .content { padding: 20px 16px 96px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .g2.keep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 24px; }
  .greet h1 { font-size: 25px; }
  .doc-head h1 { font-size: 26px; }
  .statline { gap: 20px; }
  .stage { height: 520px; }
  .stage:has(.stage-cap) .figure { height: 440px; align-self: start; margin-top: 12px; }
  .interp { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .spec dt { border-top: 1px solid var(--line-2); padding-bottom: 2px; }
  .spec dd { border-top: 0; padding-top: 2px; }
  .auth { grid-template-columns: 1fr; }
  .auth-plate { padding: 20px; grid-template-rows: auto auto auto; }
  .auth-plate img { height: 300px; }
  .auth-plate .figwrap { display: none; }
  .auth-plate p { display: none; }
  .auth-form { padding: 28px 20px 40px; align-items: flex-start; }
  .auth-plate .callout-l { display: none; }
  .auth-plate h1 { font-size: 21px; }
  .tidx-h { display: none; }
  .tidx-r { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .tidx .c-reg, .tidx .c-num { display: none; }
  .kanban { grid-template-columns: repeat(4, 80vw); }
  .msg { max-width: 92%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .rw { grid-template-columns: 44px minmax(0, 1fr); }
  .rw-end { display: none; }
  .thumb { width: 44px; height: 36px; }
  .mode { grid-template-columns: 36px minmax(0, 1fr); }
  .mode > :last-child { grid-column: 2; justify-self: start; }
  .split.even { grid-template-columns: minmax(0, 1fr); }
  .seg { flex-wrap: wrap; max-width: 100%; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--ink-3); padding: 3px 0; font-weight: 540; border: 0; background: none; cursor: pointer; font-family: inherit; }
  .tabbar a.on { color: var(--primary); }
  .tabbar .svg { width: 20px; height: 20px; }
  .phone { width: 300px; height: 620px; border-radius: 42px; padding: 9px; }
  .phone iframe { border-radius: 34px; }
}
@media (max-width: 480px) {
  .top .tag { display: none; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
