/* ==========================================================================
   MD Fitness Metrik: görsel dil
   "test skill" referans kitinden: beyaz sayfa > gri tray > gölgeli beyaz kart,
   tek canlı mavi vurgu, sahneyi taşıyan siyah "inverse" kartlar, her rakam
   Geist Mono, kapsül butonlar. Açık tema varsayılan; koyu tema aynı sistem.
   ========================================================================== */

@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- açık tema ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --tray: #f4f4f5; --tray-2: #ececee;
  --panel: #ffffff; --panel-2: #f4f4f5;
  --overlay: rgba(12, 12, 13, .36);
  --inverse: #111113; --inverse-2: #1e1e21; --inverse-ink: #ffffff; --inverse-muted: #a1a1a8; --inverse-line: rgba(255, 255, 255, .12); --inverse-accent: #6ea8ff;
  --ink: #0c0c0d; --ink-2: #66666c; --ink-3: #9a9aa1;
  --fill-1: rgba(12, 12, 13, .12); --fill-2: rgba(12, 12, 13, .07); --fill-3: rgba(12, 12, 13, .045);
  --line: rgba(12, 12, 13, .07); --line-strong: rgba(12, 12, 13, .14);
  --accent: #1466ff; --accent-hover: #0d5cf0; --accent-ink: #ffffff; --accent-text: #0f5ae6; --accent-soft: #e8f0ff; --focus: rgba(20, 102, 255, .45);
  --good: #12a36d; --good-text: #0c7a4d; --good-soft: #e3f6ee;
  --top: #0b8457;
  --warning: #f5852b; --warning-text: #b54708; --warning-soft: #fff0e2;
  --critical: #f0503c; --critical-text: #c9271b; --critical-soft: #fde9e6;
  --danger-fill: #d92d20;
  --wa: #1fa855;
  --mat-sidebar: #fafafa; --mat-toolbar: rgba(255, 255, 255, .82); --mat-blur: 20px;
  --card-shadow: 0 0 0 1px rgba(12, 12, 13, .045), 0 1px 2px rgba(12, 12, 13, .04), 0 6px 14px -6px rgba(12, 12, 13, .07);
  --card-shadow-hover: 0 0 0 1px rgba(12, 12, 13, .06), 0 2px 4px rgba(12, 12, 13, .05), 0 14px 26px -10px rgba(12, 12, 13, .14);
  --shadow-pop: 0 0 0 1px rgba(12, 12, 13, .06), 0 16px 40px -12px rgba(12, 12, 13, .22), 0 2px 6px rgba(12, 12, 13, .05);
  --shadow-sheet: 0 0 0 1px rgba(12, 12, 13, .06), 0 30px 80px -20px rgba(12, 12, 13, .3);
  --thumb: #ffffff; --thumb-shadow: 0 0 0 1px rgba(12, 12, 13, .04), 0 1px 2px rgba(12, 12, 13, .08), 0 3px 8px -2px rgba(12, 12, 13, .1);

  --font: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs-md: .875rem; --fs-lg: 1rem;
  --r-md: 12px; --r-row: 14px; --r-in: 18px; --r-lg: 24px;
  --ctl-h: 38px; --ctl-h-sm: 32px; --tap: 38px;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-enter: cubic-bezier(.22, 1, .36, 1);
  --sidebar-w: 248px; --topbar-h: 56px; --tabbar-h: 62px;
}
/* ---------- koyu tema ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000; --tray: #111113; --tray-2: #1c1c1f; --panel: #1c1c1f; --panel-2: #232326; --overlay: rgba(0, 0, 0, .64);
    --inverse: #f4f4f5; --inverse-2: #e4e4e7; --inverse-ink: #0c0c0d; --inverse-muted: #5c5c63; --inverse-line: rgba(12, 12, 13, .12); --inverse-accent: #0f5ae6;
    --ink: #f5f5f7; --ink-2: #a1a1a8; --ink-3: #6e6e75;
    --fill-1: rgba(255, 255, 255, .16); --fill-2: rgba(255, 255, 255, .1); --fill-3: rgba(255, 255, 255, .07);
    --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
    --accent-hover: #2b76ff; --accent-text: #5b9bff; --accent-soft: rgba(20, 102, 255, .2); --focus: rgba(91, 155, 255, .55);
    --good: #2ecf8f; --good-text: #3ddc9c; --good-soft: rgba(46, 207, 143, .16); --top: #3ddc9c;
    --warning: #ff9a4a; --warning-text: #ffb070; --warning-soft: rgba(255, 154, 74, .16);
    --critical: #ff6a57; --critical-text: #ff8576; --critical-soft: rgba(255, 106, 87, .18);
    --mat-sidebar: #0a0a0b; --mat-toolbar: rgba(0, 0, 0, .72);
    --card-shadow: 0 0 0 1px rgba(255, 255, 255, .06); --card-shadow-hover: 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 26px -10px rgba(0, 0, 0, .8);
    --shadow-pop: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px -12px rgba(0, 0, 0, .85); --shadow-sheet: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px -20px rgba(0, 0, 0, .9);
    --thumb: #3a3a3f; --thumb-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 3px 8px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --tray: #111113; --tray-2: #1c1c1f; --panel: #1c1c1f; --panel-2: #232326; --overlay: rgba(0, 0, 0, .64);
  --inverse: #f4f4f5; --inverse-2: #e4e4e7; --inverse-ink: #0c0c0d; --inverse-muted: #5c5c63; --inverse-line: rgba(12, 12, 13, .12); --inverse-accent: #0f5ae6;
  --ink: #f5f5f7; --ink-2: #a1a1a8; --ink-3: #6e6e75;
  --fill-1: rgba(255, 255, 255, .16); --fill-2: rgba(255, 255, 255, .1); --fill-3: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
  --accent-hover: #2b76ff; --accent-text: #5b9bff; --accent-soft: rgba(20, 102, 255, .2); --focus: rgba(91, 155, 255, .55);
  --good: #2ecf8f; --good-text: #3ddc9c; --good-soft: rgba(46, 207, 143, .16); --top: #3ddc9c;
  --warning: #ff9a4a; --warning-text: #ffb070; --warning-soft: rgba(255, 154, 74, .16);
  --critical: #ff6a57; --critical-text: #ff8576; --critical-soft: rgba(255, 106, 87, .18);
  --mat-sidebar: #0a0a0b; --mat-toolbar: rgba(0, 0, 0, .72);
  --card-shadow: 0 0 0 1px rgba(255, 255, 255, .06); --card-shadow-hover: 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 26px -10px rgba(0, 0, 0, .8);
  --shadow-pop: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px -12px rgba(0, 0, 0, .85); --shadow-sheet: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px -20px rgba(0, 0, 0, .9);
  --thumb: #3a3a3f; --thumb-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 3px 8px rgba(0, 0, 0, .4);
}
@media (pointer: coarse), (max-width: 767px) {
  :root { --ctl-h: 44px; --ctl-h-sm: 38px; --tap: 44px; --fs-md: .9375rem; }
}

/* kategori tonları: kötü → mükemmel */
.t-bad { --tone: var(--critical); --tone-soft: var(--critical-soft); --tone-text: var(--critical-text); }
.t-low { --tone: var(--warning); --tone-soft: var(--warning-soft); --tone-text: var(--warning-text); }
.t-mid { --tone: var(--accent); --tone-soft: var(--accent-soft); --tone-text: var(--accent-text); }
.t-good { --tone: var(--good); --tone-soft: var(--good-soft); --tone-text: var(--good-text); }
.t-top { --tone: var(--top); --tone-soft: var(--good-soft); --tone-text: var(--good-text); }

/* ---------- temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-md); line-height: 1.45; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-text); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1:focus, [tabindex="-1"]:focus { outline: none; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.muted { color: var(--ink-2); }
.hint { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.5; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--inverse); color: var(--inverse-ink); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 8px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.spacer { flex: 1; }

/* ---------- marka işareti: yükselen üç çubuk ---------- */
.mark { --m: 32px; width: var(--m); height: var(--m); border-radius: calc(var(--m) * .26); background: var(--accent); display: inline-flex; align-items: flex-end; justify-content: center; gap: calc(var(--m) * .07); padding: calc(var(--m) * .22) calc(var(--m) * .2); flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.mark i { display: block; width: calc(var(--m) * .14); border-radius: 99px; background: #fff; }
.mark i:nth-child(1) { height: 45%; opacity: .55; }
.mark i:nth-child(2) { height: 72%; opacity: .8; }
.mark i:nth-child(3) { height: 100%; }
.mark--xs { --m: 18px; vertical-align: -4px; }
.mark--sm { --m: 26px; }
.mark--lg { --m: 48px; }
.mark--xl { --m: 56px; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 50; }
.boot .mark { animation: pulse 1.2s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .75; } }

/* ---------- kabuk ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 6px; padding: 16px 12px 14px;
  background: var(--mat-sidebar); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.brand__text small { font-size: 12px; color: var(--ink-2); font-weight: 550; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 11px; color: var(--ink-2); font-weight: 560; transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav__item .i { color: var(--ink-3); }
@media (hover: hover) { .nav__item:hover { background: var(--fill-3); color: var(--ink); } }
.nav__item.is-active { background: var(--panel); color: var(--ink); box-shadow: var(--card-shadow); }
.nav__item.is-active .i { color: var(--accent); }
.sidebar__cta { margin-top: 14px; }
.sidebar__foot { margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 8px 4px 0; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 6px; }
.me__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.me__text b, .me__text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me__text b { font-size: 13px; font-weight: 620; }
.me__text small { font-size: 12px; color: var(--ink-2); }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h);
  display: flex; align-items: center; gap: 10px; padding: 0 28px;
  background: var(--mat-toolbar); -webkit-backdrop-filter: saturate(180%) blur(var(--mat-blur)); backdrop-filter: saturate(180%) blur(var(--mat-blur));
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: none; }
.topbar__title { font-weight: 650; font-size: 15px; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__spacer { flex: 1; }
.topbar__actions { display: flex; gap: 6px; }
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 32px 64px; }
.page:focus { outline: none; }
.view { display: flex; flex-direction: column; gap: 18px; animation: viewIn .28s var(--ease-enter); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

.tabbar { display: none; }
@media (max-width: 899px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { padding: 0 12px 0 16px; padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
  .topbar__brand { display: inline-flex; }
  .page { padding: 18px 16px calc(var(--tabbar-h) + 36px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 4px 6px env(safe-area-inset-bottom);
    background: var(--mat-toolbar); -webkit-backdrop-filter: saturate(180%) blur(var(--mat-blur)); backdrop-filter: saturate(180%) blur(var(--mat-blur));
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: 10.5px; font-weight: 600; border-radius: 12px; }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar a.is-active { color: var(--accent-text); }
  .tabbar__plus { width: 40px; height: 30px; border-radius: 999px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px -4px rgba(20, 102, 255, .6); }
  .tabbar__plus .i { width: 20px !important; height: 20px !important; stroke-width: 2.4; }
  .tabbar a.tabbar__cta { color: var(--ink-2); }
  body.in-wizard .tabbar { display: none; }
  body.in-wizard .page { padding-bottom: 24px; }
}

/* ---------- sayfa başlığı ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1, .wtest__title h1 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
.page-sub { color: var(--ink-2); margin-top: 4px; max-width: 62ch; }
.page-head__actions { display: flex; gap: 8px; }
.eyebrow { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.eyebrow--inv { color: var(--inverse-muted); }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); font-weight: 560; margin: -6px 0 -6px -6px; padding: 6px; border-radius: 10px; width: fit-content; }
@media (hover: hover) { .back:hover { color: var(--ink); background: var(--fill-3); } }
@media (max-width: 599px) { .page-head h1, .wtest__title h1 { font-size: 1.6rem; } }

/* ---------- butonlar ---------- */
.btn {
  --btn-bg: var(--fill-2); --btn-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: var(--ctl-h); padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: var(--fs-md); white-space: nowrap; text-decoration: none;
  transition: background-color .12s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
  user-select: none; -webkit-user-select: none;
}
.btn .i { width: 17px; height: 17px; stroke-width: 2.1; }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 80, 170, .25); }
.btn--secondary { --btn-bg: var(--accent-soft); --btn-fg: var(--accent-text); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--accent-text); padding: 0 10px; }
.btn--danger { --btn-bg: var(--danger-fill); --btn-fg: #fff; }
.btn--danger-soft { --btn-bg: var(--critical-soft); --btn-fg: var(--critical-text); }
.btn--inv { --btn-bg: var(--inverse-line); --btn-fg: var(--inverse-ink); }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #fff; }
.btn--sm { height: var(--ctl-h-sm); padding: 0 12px; font-size: var(--fs-sm); }
.btn--lg { height: 46px; padding: 0 20px; font-size: 15px; }
.btn--xl { height: 56px; padding: 0 22px; font-size: 16px; border-radius: 18px; }
.btn--round { width: 56px; height: 56px; padding: 0; border-radius: 18px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: var(--fill-1); }
  .btn--primary:hover { --btn-bg: var(--accent-hover); }
  .btn--secondary:hover { --btn-bg: color-mix(in oklab, var(--accent) 18%, transparent); }
  .btn--ghost:hover { --btn-bg: var(--fill-3); }
  .btn--danger:hover { --btn-bg: #c00013; }
  .btn--inv:hover { --btn-bg: color-mix(in oklab, var(--inverse-ink) 20%, transparent); }
  .btn--wa:hover { --btn-bg: #1a9149; }
}
.btn:active { transform: scale(.97); transition-duration: 90ms; }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); flex: none; border: 0; border-radius: 999px; background: transparent; color: var(--ink); transition: background-color .12s var(--ease), transform .16s var(--ease); }
@media (hover: hover) { .icon-btn:hover { background: var(--fill-2); } }
.icon-btn:active { transform: scale(.92); }
.icon-btn--sm { width: 32px; height: 32px; color: var(--ink-2); }
.icon-btn--inv { color: var(--inverse-ink); background: var(--inverse-line); }

/* segment */
.seg { position: relative; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--fill-2); max-width: 100%; }
.seg__btn { height: calc(var(--ctl-h) - 6px); padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 580; font-size: var(--fs-sm); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease); }
.seg__btn[aria-checked="true"] { background: var(--thumb); color: var(--ink); box-shadow: var(--thumb-shadow); font-weight: 650; }
.seg--block { display: flex; }
.seg--block .seg__btn { flex: 1; }

/* anahtar */
.switch { position: relative; display: inline-flex; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--fill-1); transition: background-color .2s var(--ease); }
.switch span::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .22s var(--ease); }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus); }

/* form */
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: var(--fs-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.field__label .i { width: 15px; height: 15px; color: var(--ink-2); }
.field__label .opt { color: var(--ink-2); font-weight: 450; }
.field__hint { font-size: var(--fs-xs); color: var(--ink-2); }
.field__error { font-size: var(--fs-sm); color: var(--critical-text); font-weight: 550; }
.field__error:empty { display: none; }
.input, .textarea {
  width: 100%; min-width: 0; height: var(--ctl-h); padding: 0 12px;
  background: var(--fill-3); border: 0; border-radius: var(--r-md); color: var(--ink);
  transition: background-color .14s var(--ease), box-shadow .14s var(--ease);
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:focus, .textarea:focus { outline: none; background: var(--panel); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 55%, transparent), 0 0 0 4px var(--focus); }
input[type="date"].input { padding-right: 8px; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .i { position: absolute; left: 12px; color: var(--ink-2); pointer-events: none; z-index: 1; }
.input-wrap > .i ~ .input { padding-left: 38px; }
.input-suffix { position: absolute; right: 14px; color: var(--ink-2); pointer-events: none; font-size: var(--fs-sm); font-weight: 550; }
.input--xl { height: 64px; font-size: 1.75rem; font-weight: 650; padding-right: 84px; border-radius: 16px; }
@media (max-width: 767px) { .input, .textarea { font-size: 16px; } .input--xl { font-size: 1.75rem; } }
.toolbar { display: flex; gap: 8px; }
.search { flex: 1; max-width: 420px; }

/* ---------- tray > panel ---------- */
.tray { background: var(--tray); border-radius: var(--r-lg); padding: 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tray__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px 4px 12px; min-height: 40px; }
.tray__title { font-size: .875rem; font-weight: 650; letter-spacing: -0.012em; display: flex; align-items: center; gap: 7px; }
.tray__title .i { width: 16px; height: 16px; color: var(--ink-2); }
.tray__sub { font-size: var(--fs-xs); color: var(--ink-2); margin-top: 1px; }
.tray > .search { max-width: none; margin: 0 0 2px; }
.tray > .search .input { background: var(--panel); box-shadow: var(--card-shadow); }
.panel { background: var(--panel); border-radius: var(--r-in); box-shadow: var(--card-shadow); padding: 16px; min-width: 0; }
.tile-inverse { background: var(--inverse); color: var(--inverse-ink); border-radius: var(--r-lg); }
.block { display: flex; flex-direction: column; gap: 10px; }
.block__title { font-size: 1.05rem; font-weight: 680; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.block__title .i { color: var(--accent); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-row); background: var(--accent-soft); color: var(--ink); }
.note .i { color: var(--accent-text); margin-top: 1px; }
.note p { white-space: pre-line; }

/* satırlar */
.rows { display: flex; flex-direction: column; gap: 6px; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 10px 12px;
  background: var(--panel); border: 0; border-radius: var(--r-row); box-shadow: var(--card-shadow);
  color: var(--ink); text-align: left; text-decoration: none;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
@media (hover: hover) { a.row:hover, button.row:hover { box-shadow: var(--card-shadow-hover); } }
.row:active { transform: scale(.995); }
.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__main b { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__main small { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__side { text-align: right; display: flex; flex-direction: column; line-height: 1.25; flex: none; }
.row__side b { font-size: 13px; font-weight: 600; }
.row__side small { font-size: 12px; color: var(--ink-2); }
.row__tags { display: flex; gap: 4px; flex: none; align-items: center; }
.row__ring { flex: none; }
.row__chev { color: var(--ink-3); width: 16px; height: 16px; }
.row__date { width: 44px; height: 44px; border-radius: 12px; background: var(--tray); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: none; }
.row__date b { font-size: 17px; font-weight: 650; }
.row__date small { font-size: 10.5px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.row .val b { font-size: 1.05rem; }
.row .res__no { width: 34px; height: 34px; font-size: 12px; }
.row__radio { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; transition: all .15s var(--ease); }
.row__radio .i { width: 14px; height: 14px; stroke-width: 3; }
.rows--pick { max-height: 420px; overflow-y: auto; padding: 2px; margin: -2px; }
.row[aria-checked="true"] { box-shadow: 0 0 0 2px var(--accent); }
.row[aria-checked="true"] .row__radio { background: var(--accent); box-shadow: none; color: #fff; }
@media (max-width: 599px) { .row__tags { display: none; } }

.tag { font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: var(--tone-soft); color: var(--tone-text); }
.pip { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); display: inline-block; }

/* avatar */
.avatar { --a: 40px; width: var(--a); height: var(--a); border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 680; font-size: calc(var(--a) * .36); letter-spacing: -0.02em; }
.avatar--sm { --a: 32px; }
.avatar--lg { --a: 56px; }
.avatar--xl { --a: 72px; }

/* rozet, değişim, çip */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--fill-2); color: var(--ink-2); flex: none; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--bad { background: var(--critical-soft); color: var(--critical-text); }
.badge--low { background: var(--warning-soft); color: var(--warning-text); }
.badge--mid { background: var(--accent-soft); color: var(--accent-text); }
.badge--good, .badge--top { background: var(--good-soft); color: var(--good-text); }
.badge--top .dot { box-shadow: 0 0 0 2px color-mix(in oklab, var(--good) 35%, transparent); }
.badge--none { background: var(--fill-3); color: var(--ink-3); }
.delta { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--panel); box-shadow: var(--card-shadow); white-space: nowrap; flex: none; }
.delta .i { width: 13px; height: 13px; stroke-width: 2.6; }
.delta--good { color: var(--good-text); }
.delta--bad { color: var(--critical-text); }
.delta--same { color: var(--ink-2); padding: 0 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--tone-soft); font-size: 13px; }
.chip b { font-weight: 620; color: var(--ink); }
.chip span { color: var(--tone-text); font-weight: 650; font-size: 12px; }

/* boş durum ve yükleniyor */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 32px 20px; background: var(--panel); border-radius: var(--r-in); box-shadow: var(--card-shadow); color: var(--ink-2); }
.empty > .i { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--tray); color: var(--ink-2); }
.empty--sm { padding: 20px; flex-direction: row; gap: 10px; justify-content: flex-start; text-align: left; }
.empty--sm > .i { width: 34px; height: 34px; padding: 8px; border-radius: 10px; }
.empty--page { min-height: 50vh; background: transparent; box-shadow: none; }
.empty--page h2 { color: var(--ink); font-size: 1.25rem; }
.loading { display: flex; justify-content: center; gap: 6px; padding: 48px 0; }
.loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); animation: dot 1s var(--ease) infinite; }
.loading span:nth-child(2) { animation-delay: .15s; }
.loading span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-6px); opacity: .5; } }

/* ---------- panel (dashboard) ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hero { padding: 24px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--accent) 55%, transparent), transparent 68%); opacity: .55; pointer-events: none; }
.hero__text { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.hero__text h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
.hero__text p { color: var(--inverse-muted); max-width: 46ch; }
.hero__text .btn-row { margin-top: 8px; }
.hero__tests { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; align-self: center; }
.hero__tests li { display: grid; grid-template-columns: 28px 1fr auto; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--inverse-line); font-size: 13.5px; }
.hero__tests li:last-child { border-bottom: 0; }
.hero__tests .num { color: var(--inverse-accent); font-size: 12px; font-weight: 600; }
.hero__tests b { font-weight: 600; }
.hero__tests small { color: var(--inverse-muted); font-size: 11.5px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--tray); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat__top { display: flex; align-items: center; justify-content: space-between; }
.stat__label { font-size: var(--fs-sm); font-weight: 550; color: var(--ink-2); }
.stat__icon { width: 30px; height: 30px; border-radius: 10px; background: var(--panel); box-shadow: var(--card-shadow); color: var(--accent); display: grid; place-items: center; }
.stat__icon .i { width: 16px; height: 16px; }
.stat__value { font-size: 2rem; font-weight: 650; letter-spacing: -0.06em; line-height: 1.1; margin-top: 6px; }
.stat__sub { font-size: 12px; color: var(--ink-2); }
.stat--warn .stat__icon { color: var(--warning-text); }
.stat--warn .stat__value { color: var(--warning-text); }
@media (max-width: 1099px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .hero__tests { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat__value { font-size: 1.7rem; }
}

/* ---------- danışan profili ---------- */
.profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile__text { flex: 1; min-width: 200px; }
.profile__text h1 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); margin-top: 6px; }
.profile__meta > * { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.profile__meta .i { width: 15px; height: 15px; }
@media (max-width: 599px) {
  .profile__text h1 { font-size: 1.55rem; }
  .profile__actions { width: 100%; }
  .profile__actions .btn--primary { flex: 1; }
}
.latest__grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 6px; }
.latest__mob { display: flex; align-items: center; gap: 12px; }
.latest__mob b { display: block; font-weight: 650; }
.latest__mob small { color: var(--ink-2); font-size: 12px; }
.latest__cell { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.latest__label { font-size: 12.5px; color: var(--ink-2); font-weight: 560; }
@media (max-width: 767px) { .latest__grid { grid-template-columns: repeat(2, 1fr); } .latest__mob { grid-column: 1 / -1; } }

/* grafikler */
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.chart__body { padding: 14px 14px 10px; }
.chart__now { font-size: 1.6rem; font-weight: 650; letter-spacing: -0.06em; display: block; margin-bottom: 4px; }
.chart__now small { font-size: .55em; color: var(--ink-2); margin-left: 2px; }
.line { width: 100%; height: 96px; display: block; overflow: visible; }
.line__area { fill: color-mix(in oklab, var(--accent) 12%, transparent); }
.line__path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.line__dot { fill: var(--panel); stroke: var(--accent); stroke-width: 2; }
.line__dot.is-last { fill: var(--accent); }
.line__axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ---------- sonuç bileşenleri ---------- */
.val { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.val b { font-family: var(--mono); font-size: 1.5rem; font-weight: 650; letter-spacing: -0.06em; line-height: 1; }
.val small { font-size: 12px; color: var(--ink-2); font-weight: 560; }
.val--lg b { font-size: 2.1rem; }
.val--xl b { font-size: 3.2rem; }
.val--empty b { color: var(--ink-3); }
.scale { width: 100%; }
.scale__bar { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; align-items: center; }
.scale__seg { height: 8px; border-radius: 999px; background: color-mix(in oklab, var(--tone) 22%, transparent); transition: all .3s var(--ease); }
.scale__seg.is-on { height: 12px; background: var(--tone); box-shadow: 0 0 0 3px color-mix(in oklab, var(--tone) 22%, transparent); }
.scale__labels { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; margin-top: 8px; font-size: 11px; line-height: 1.2; color: var(--ink-3); text-align: center; }
.scale__labels .is-on { color: var(--ink); font-weight: 680; }
.scale--compact .scale__seg { height: 6px; }
.scale--compact .scale__seg.is-on { height: 8px; box-shadow: none; }
@media (max-width: 599px) { .scale__labels { font-size: 10px; } }

.ring { position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; display: block; }
.ring__track { fill: none; stroke: var(--fill-2); }
.ring__fill { fill: none; stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease-enter); }
.tile-inverse .ring__track { stroke: var(--inverse-line); }
.ring__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring__center b { font-size: calc(var(--size, 112px) * .3); font-weight: 650; letter-spacing: -0.06em; }
.ring__center small { font-size: calc(var(--size, 112px) * .12); color: var(--ink-2); margin-top: 2px; }
.tile-inverse .ring__center small, .tile-inverse .ring__center span { color: var(--inverse-muted); }
.ring__center span { font-size: 11px; color: var(--ink-2); margin-top: 6px; font-weight: 600; }
.ring--xs .ring__center b { font-size: 13px; letter-spacing: -0.04em; }
.ring--xs .ring__center small, .ring--xs .ring__center span { display: none; }

/* ---------- test görselleri ve protokol ---------- */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--1 { grid-template-columns: minmax(0, 1fr); }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery__item { position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery--1 .gallery__item { aspect-ratio: 16 / 10; }
.gallery__item img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); }
@media (hover: hover) { .gallery__item:hover img { transform: scale(1.03); } }
.gallery__cap { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 9px; border-radius: 999px; background: rgba(17, 17, 19, .74); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gallery__zoom { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(17, 17, 19, .55); color: #fff; opacity: .85; }
.gallery__zoom .i { width: 14px; height: 14px; }
@media (max-width: 599px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; scrollbar-width: none; padding-bottom: 2px; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item { flex: 0 0 82%; scroll-snap-align: start; }
  .gallery--1 .gallery__item { flex-basis: 100%; }
}
.protocol { display: flex; flex-direction: column; gap: 14px; }
.protocol__desc { font-size: 15px; line-height: 1.55; }
.cues { display: flex; flex-wrap: wrap; gap: 6px; }
.cues li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 600; }
.cues .i { width: 14px; height: 14px; stroke-width: 2.6; }
.faults { background: var(--critical-soft); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.faults__title { display: flex; align-items: center; gap: 6px; font-weight: 680; color: var(--critical-text); font-size: 13.5px; }
.faults__title .i { width: 17px; height: 17px; }
.faults ul { display: flex; flex-direction: column; gap: 4px; padding-left: 23px; }
.faults li { position: relative; font-size: 14px; }
.faults li::before { content: ""; position: absolute; left: -13px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--critical); }
.faults__note { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; font-weight: 600; color: var(--ink); padding-top: 6px; border-top: 1px solid color-mix(in oklab, var(--critical) 18%, transparent); margin-top: 2px; }
.faults__note .i { width: 15px; height: 15px; color: var(--critical-text); margin-top: 2px; }

/* ---------- sihirbaz ---------- */
.wiz { display: flex; flex-direction: column; gap: 14px; }
.wiz__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wiz__who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.wiz__who-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wiz__who-text b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz__who-text small { font-size: 12.5px; color: var(--ink-2); }
.wiz__who-empty { font-weight: 650; color: var(--ink-2); }
.wiz__steps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; scroll-padding: 0 24px; }
.wiz__steps::-webkit-scrollbar { display: none; }
.wstep { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 6px; border: 0; border-radius: 999px; background: var(--tray); color: var(--ink-2); font-weight: 600; font-size: 13px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.wstep__no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); box-shadow: var(--card-shadow); font-size: 11.5px; color: var(--ink-2); font-weight: 650; }
.wstep__no .i { width: 15px; height: 15px; stroke-width: 2.6; }
.wstep.is-done .wstep__no { background: var(--tone); color: #fff; box-shadow: none; }
.wstep.is-done { color: var(--ink); }
.wstep[aria-current] { background: var(--inverse); color: var(--inverse-ink); }
.wstep[aria-current] .wstep__no { box-shadow: 0 0 0 2px var(--inverse-line); }
.wstep[aria-current]:not(.is-done) .wstep__no { background: var(--accent); color: #fff; }
.wstep:disabled { opacity: .45; cursor: default; }
@media (hover: hover) { .wstep:not([aria-current]):not(:disabled):hover { background: var(--tray-2); color: var(--ink); } }
.wiz__bar {
  position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px -32px 0; padding: 14px 32px calc(14px + env(safe-area-inset-bottom));
  background: var(--mat-toolbar); -webkit-backdrop-filter: saturate(180%) blur(var(--mat-blur)); backdrop-filter: saturate(180%) blur(var(--mat-blur));
  border-top: 1px solid var(--line);
}
.wiz__bar .btn { min-width: 120px; }
.wiz__count { color: var(--ink-2); font-size: 13px; font-weight: 600; }
@media (max-width: 899px) { .wiz__bar { margin: 4px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); } .wiz__bar .btn { min-width: 0; flex: 1; max-width: 200px; } }
@media (max-width: 420px) { .hide-sm { display: none; } }

.wtest { display: flex; flex-direction: column; gap: 16px; }
.wtest__title { display: flex; align-items: center; gap: 14px; }
.wtest__no { width: 54px; height: 54px; border-radius: 16px; background: var(--inverse); color: var(--inverse-ink); display: grid; place-items: center; font-size: 20px; font-weight: 650; flex: none; }
.wtest__title .eyebrow { margin-bottom: 2px; }
.wtest__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 16px; align-items: start; }
.wtest__measure { position: sticky; top: calc(var(--topbar-h) + 16px); }
@media (max-width: 1023px) { .wtest__grid { grid-template-columns: minmax(0, 1fr); } .wtest__measure { position: static; } }
.measure { display: flex; flex-direction: column; gap: 14px; }

.result { display: flex; flex-direction: column; gap: 12px; }
.result__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result__label { font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); }
.result__norm { font-size: 12.5px; color: var(--ink-2); }
.result__note { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--warning-text); font-weight: 560; }
.result__note .i { width: 15px; height: 15px; margin-top: 2px; }
.result__empty { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 13.5px; }
.result__empty .i { color: var(--accent); margin-top: 1px; }

/* tekrar sayacı */
.counter { display: flex; flex-direction: column; align-items: center; padding: 4px 0 0; }
.counter__val { width: 100%; max-width: 260px; height: 96px; text-align: center; font-size: 5rem; font-weight: 650; letter-spacing: -0.07em; border: 0; background: transparent; color: var(--ink); padding: 0; border-radius: 20px; transition: background-color .15s var(--ease); }
.counter__val::placeholder { color: var(--ink-3); }
.counter__val:focus { outline: none; background: var(--fill-3); }
.counter__val.bump { animation: bump .22s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); } }
.counter__unit { font-size: 13px; color: var(--ink-2); font-weight: 560; }
.counter__row { display: flex; gap: 10px; }
.counter__tap { flex: 1; height: 64px; font-size: 18px; border-radius: 20px; }
.counter__tap .i { width: 20px; height: 20px; stroke-width: 2.6; }
.counter__row .btn--round { width: 64px; height: 64px; border-radius: 20px; }

/* kronometre */
.sw { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.sw__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.sw__state { font-size: 12.5px; font-weight: 650; color: var(--inverse-muted); display: inline-flex; align-items: center; gap: 7px; }
.sw__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--inverse-muted); }
[data-state="running"] .sw__state { color: var(--inverse-ink); }
[data-state="running"] .sw__state::before { background: var(--critical); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.sw__level { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tone); color: #fff; }
.sw__level:empty { display: none; }
.sw__time { font-size: clamp(3.4rem, 12vw, 4.6rem); font-weight: 600; letter-spacing: -0.07em; line-height: 1; text-align: center; padding: 6px 0 14px; }
.sw__time small { font-size: .45em; color: var(--inverse-muted); letter-spacing: -0.04em; }
.sw__track { position: relative; height: 10px; border-radius: 999px; display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin-bottom: 20px; }
.sw__zone { background: var(--tone); }
.sw__zone:first-child { border-radius: 999px 0 0 999px; }
.sw__zone:nth-child(5) { border-radius: 0 999px 999px 0; }
.sw__fill { position: absolute; right: 0; top: -1px; bottom: -1px; width: 100%; background: color-mix(in oklab, var(--inverse) 72%, transparent); border-radius: 0 999px 999px 0; transition: width .1s linear; }
.sw__mark { position: absolute; top: -3px; height: 16px; width: 2px; margin-left: -1px; background: var(--inverse); font-style: normal; }
.sw__mark b { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--inverse-muted); }
.sw__ctrl { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; }
.field--inline { grid-template-columns: 1fr 150px; align-items: center; }
@media (max-width: 420px) { .field--inline { grid-template-columns: 1fr; } }

/* sağ/sol derece */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.side { display: flex; flex-direction: column; gap: 6px; }
.side__label { font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); }
.side__input { position: relative; display: flex; }
.side__input input { width: 100%; height: 84px; border: 0; border-radius: 18px; background: var(--fill-3); text-align: center; font-size: 2.6rem; font-weight: 650; letter-spacing: -0.06em; padding: 0 28px 0 8px; color: var(--ink); transition: background-color .14s var(--ease), box-shadow .14s var(--ease); }
.side__input input:focus { outline: none; background: var(--panel); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 55%, transparent), 0 0 0 4px var(--focus); }
.side__input span { position: absolute; right: 18px; top: 18px; font-size: 1.4rem; color: var(--ink-3); font-weight: 600; pointer-events: none; }

/* 3'lü seçim */
.choices__q { font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); margin-bottom: -4px; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: grid; grid-template-columns: 54px minmax(0, 1fr) 28px; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 0; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-strong); text-align: left; transition: box-shadow .15s var(--ease), background-color .15s var(--ease), transform .15s var(--ease); }
.choice:active { transform: scale(.99); }
.choice__pts { width: 54px; height: 54px; border-radius: 14px; background: var(--tone-soft); color: var(--tone-text); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.choice__pts b { font-size: 22px; font-weight: 700; }
.choice__pts small { font-size: 10px; font-weight: 650; margin-top: 2px; }
.choice__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice__body b { font-size: 16px; font-weight: 650; letter-spacing: -0.015em; }
.choice__body small { font-size: 12.5px; color: var(--ink-2); }
.choice__tick { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; color: transparent; }
.choice__tick .i { width: 15px; height: 15px; stroke-width: 3; }
.choice[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--tone); background: color-mix(in oklab, var(--tone-soft) 55%, var(--panel)); }
.choice[aria-checked="true"] .choice__tick { background: var(--tone); color: #fff; box-shadow: none; }
@media (hover: hover) { .choice:not([aria-checked="true"]):hover { box-shadow: inset 0 0 0 1px var(--fill-1), var(--card-shadow-hover); } }

/* step testi */
.st { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; --ph: var(--accent); }
.st[data-phase="ready"] { --ph: var(--inverse-muted); }
.st[data-phase="rest"] { --ph: var(--warning); }
.st[data-phase="pulse"] { --ph: var(--critical); }
.st[data-phase="done"] { --ph: var(--good); }
.st__top { display: flex; align-items: center; justify-content: space-between; }
.st__phase { display: inline-flex; align-items: center; gap: 8px; font-weight: 680; font-size: 14px; }
.st__phase::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ph); }
.st[data-phase="step"] .st__phase::before, .st[data-phase="pulse"] .st__phase::before { animation: blink 1s steps(2) infinite; }
.st__dial { position: relative; width: min(240px, 70vw); aspect-ratio: 1; margin: 0 auto; }
.st__dial svg { width: 100%; height: 100%; display: block; }
.st__track { fill: none; stroke: var(--inverse-line); stroke-width: 10; }
.st__prog { fill: none; stroke: var(--ph); stroke-width: 10; stroke-linecap: round; transition: stroke .3s var(--ease); }
.st__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 0 30px; }
.st__center b { font-size: 3.4rem; font-weight: 600; letter-spacing: -0.07em; line-height: 1; }
.st__center small { font-size: 12.5px; color: var(--inverse-muted); line-height: 1.3; }
.st__beats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.st__beat { text-align: center; padding: 8px 0; border-radius: 12px; background: var(--inverse-line); color: var(--inverse-muted); font-size: 12.5px; font-weight: 650; transition: background-color 60ms linear, color 60ms linear, transform 90ms var(--ease); }
.st__beat.is-on { background: var(--accent); color: #fff; transform: scale(1.05); }
.st:not([data-phase="step"]) .st__beats { opacity: .45; }
.st__plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st__plan li { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 10px; color: var(--inverse-muted); font-size: 12px; }
.st__plan b { font-weight: 650; }
.st__plan li.is-on { color: var(--inverse-ink); box-shadow: inset 0 0 0 1px var(--ph); }
.st__plan li.is-done { opacity: .55; text-decoration: line-through; }
.st__ctrl { display: flex; flex-direction: column; gap: 10px; }
.st__bpm { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.st__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }

/* özet ve kurulum */
.wiz__setup, .wsum { display: flex; flex-direction: column; gap: 16px; }
.setup { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 899px) { .setup { grid-template-columns: minmax(0, 1fr); } }
.setup__locked { display: flex; align-items: center; gap: 12px; }
.wsum__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.wsum__side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--topbar-h) + 16px); }
@media (max-width: 899px) { .wsum__grid { grid-template-columns: minmax(0, 1fr); } .wsum__side { position: static; } }

/* ---------- rapor ---------- */
.report { display: flex; flex-direction: column; gap: 16px; }
.report__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: end; }
.report__brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.report__brand b { color: var(--ink); font-weight: 680; }
.report__brand span:last-child::before { content: "·"; margin-right: 8px; }
.report__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.report__who h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.report__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); margin-top: 6px; }
.report__meta span { display: inline-flex; align-items: center; gap: 5px; }
.report__meta .i { width: 15px; height: 15px; }
@media (max-width: 767px) {
  .report__head { grid-template-columns: minmax(0, 1fr); }
  .report__who h1 { font-size: 1.6rem; }
  .report__actions .btn--primary { flex: 1; }
}
.report__summary { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--tray); border-radius: var(--r-lg); padding: 6px; }
.mob { display: flex; align-items: center; gap: 20px; padding: 20px; }
.mob__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.mob__lead { font-size: 13px; color: var(--inverse-muted); }
.mob__prev { font-size: 12.5px; color: var(--inverse-muted); }
.mob__prev b { color: var(--inverse-ink); }
.mob__list { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.mob__list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.mob__pts { display: inline-flex; gap: 4px; }
.mob__pts i { width: 16px; height: 6px; border-radius: 99px; background: var(--inverse-line); }
.mob__pts i.on { background: var(--tone); }
.mob--sm { padding: 16px; }
.sum { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sum__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sum__label .i { width: 16px; height: 16px; color: var(--accent); }
.sum__value { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sum .scale { margin-top: auto; }
@media (max-width: 1099px) { .report__summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .report__summary .mob { grid-column: 1 / -1; } }
@media (max-width: 599px) {
  .report__summary { grid-template-columns: minmax(0, 1fr); }
  .mob { flex-direction: column; align-items: stretch; text-align: left; }
  .mob .ring { align-self: center; }
  .sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; }
  .sum__label { grid-column: 1 / -1; }
  .sum .scale { grid-column: 1 / -1; }
}
.report__focus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767px) { .report__focus { grid-template-columns: minmax(0, 1fr); } }
.focus .tray__title .i { color: var(--accent); }
.focus > .panel { flex: 1; }
.res-list { display: flex; flex-direction: column; gap: 6px; }
.res { display: flex; flex-direction: column; gap: 14px; }
.res.is-empty { opacity: .6; }
.res__head { display: flex; align-items: center; gap: 12px; }
.res__no { width: 36px; height: 36px; border-radius: 11px; background: var(--tray); display: grid; place-items: center; font-size: 12.5px; font-weight: 650; color: var(--ink-2); flex: none; }
.res__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.res__title b { font-weight: 650; letter-spacing: -0.015em; font-size: 15px; }
.res__title small { color: var(--ink-2); font-size: 12.5px; }
.res__body { display: grid; grid-template-columns: minmax(150px, auto) minmax(0, 1fr); gap: 16px 24px; align-items: center; }
.res__value { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.res__foot { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-2); }
.res__foot:empty { display: none; }
.res__foot b { color: var(--ink); font-weight: 620; }
.res__note { display: inline-flex; align-items: center; gap: 5px; color: var(--warning-text); font-weight: 560; }
.res__note .i { width: 14px; height: 14px; }
@media (max-width: 599px) { .res__body { grid-template-columns: minmax(0, 1fr); } }
.report__note { white-space: pre-line; font-size: 15px; line-height: 1.6; }
.report__foot { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 12px 0 4px; font-size: 12.5px; }
.report__foot p:first-child { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.report__foot .muted { max-width: 70ch; font-size: 12px; }

.copy { display: flex; gap: 8px; }
.copy .input { flex: 1; font-size: 13px; }

/* ---------- testler ve normlar ---------- */
.jump { display: flex; gap: 6px; flex-wrap: wrap; }
.jump__btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: var(--tray); font-weight: 600; font-size: 13px; color: var(--ink); }
.jump__btn .num { color: var(--accent-text); font-size: 11.5px; }
@media (hover: hover) { .jump__btn:hover { background: var(--tray-2); } }
.docs { display: flex; flex-direction: column; gap: 18px; }
.doc { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.doc__title { display: flex; align-items: center; gap: 12px; }
.doc__title h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.025em; }
.doc__title .res__no { background: var(--inverse); color: var(--inverse-ink); }
.doc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
@media (max-width: 899px) { .doc__grid { grid-template-columns: minmax(0, 1fr); } }
.doc__norm { display: flex; flex-direction: column; gap: 12px; }
.doc__h { font-size: 14px; font-weight: 680; }
.norm { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.norm .table-wrap { width: 100%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; }
.table .num { text-align: right; }
.table th.num { text-align: right; }
.table tbody th.num { text-align: left; }
.table--wide { min-width: 680px; }
.table--sm { font-size: 13px; margin-top: 8px; max-width: 360px; }
.table-note, .source-line { font-size: 12px; color: var(--ink-2); }
.source { font-size: 13px; color: var(--ink-2); }
.source summary { cursor: pointer; font-weight: 600; color: var(--accent-text); width: fit-content; }
.source p { margin-top: 8px; }

/* ---------- ayarlar ---------- */
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 899px) { .settings { grid-template-columns: minmax(0, 1fr); } }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.setting b { display: block; font-weight: 620; }
.setting small { color: var(--ink-2); font-size: 12.5px; }

/* ---------- pencere ---------- */
dialog.sheet { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sheet); overflow: hidden; animation: sheetIn .26s var(--ease-enter); }
dialog.sheet::backdrop { background: var(--overlay); animation: fade .2s var(--ease); }
dialog.sheet.is-closing { animation: sheetOut .16s var(--ease) forwards; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.sheet__box { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 8px; }
.sheet__title { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.025em; }
.sheet__sub { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.sheet__body { padding: 8px 20px 16px; overflow-y: auto; }
.sheet__text { color: var(--ink-2); line-height: 1.55; }
.sheet__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 20px; flex-wrap: wrap; }
@media (max-width: 599px) {
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92dvh; animation-name: sheetUp; }
  dialog.sheet.is-closing { animation-name: sheetDown; }
  .sheet__box { max-height: 92dvh; }
  .sheet__foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .sheet__foot .btn { flex: 1; }
  .sheet__foot .spacer { display: none; }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  @keyframes sheetDown { to { transform: translateY(100%); } }
}

dialog.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 9, .92); color: #fff; }
dialog.lightbox::backdrop { background: transparent; }
.lightbox__fig { position: absolute; inset: 56px 16px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 14px; background: #fff; }
.lightbox__fig figcaption { font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.lightbox__fig figcaption .num { color: rgba(255, 255, 255, .6); font-size: 12px; }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgba(255, 255, 255, .12); width: 44px; height: 44px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* bildirim */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--inverse); color: var(--inverse-ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .22s var(--ease), transform .22s var(--ease-enter); }
.toast .i { color: var(--good); width: 18px; height: 18px; }
.toast--error .i { color: var(--critical); }
.toast.is-in { opacity: 1; transform: none; }
@media (max-width: 899px) { .toasts { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); } body.in-wizard .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------- giriş ---------- */
.gate { min-height: 100vh; min-height: 100dvh; display: flex; }
.gate__wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.gate__form { display: flex; flex-direction: column; justify-content: center; gap: 14px; width: 100%; max-width: 420px; margin: 0 auto; padding: 48px 24px; }
.gate__title { font-size: 2.3rem; font-weight: 750; letter-spacing: -0.045em; line-height: 1.05; margin-top: 10px; }
.gate__title span { color: var(--accent-text); }
.gate__lead { color: var(--ink-2); font-size: 15px; margin-bottom: 10px; }
.gate__show { background: var(--tray); margin: 12px; border-radius: 32px; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 18px; align-items: center; }
.preview { width: 100%; max-width: 420px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.preview__head { display: flex; align-items: center; gap: 16px; }
.preview__name { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.preview__meta { font-size: 12.5px; color: var(--inverse-muted); }
.preview__list { display: flex; flex-direction: column; }
.preview__list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--inverse-line); font-size: 14px; }
.preview__list b { font-size: 1.2rem; font-weight: 650; }
.preview__list b small { font-size: 11px; color: var(--inverse-muted); margin-left: 4px; font-family: var(--font); letter-spacing: 0; }
.gate__tests { width: 100%; max-width: 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gate__tests li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 14px; background: var(--panel); box-shadow: var(--card-shadow); font-size: 12.5px; font-weight: 580; }
.gate__tests .num { color: var(--accent-text); font-size: 11.5px; }
@media (max-width: 899px) {
  .gate__wrap { grid-template-columns: minmax(0, 1fr); }
  .gate__form { padding: 40px 20px 20px; justify-content: flex-start; }
  .gate__show { margin: 0 12px 12px; padding: 20px 12px; border-radius: 28px; }
  .gate__tests { display: none; }
}

/* ---------- danışan görünümü (paylaşılan rapor) ---------- */
.public { min-height: 100vh; }
.public__page { max-width: 1080px; margin: 0 auto; padding: 28px 24px 48px; }
@media (max-width: 599px) { .public__page { padding: 18px 14px 40px; } }

/* ---------- yazdırma (A4) ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  :root { --bg: #fff; }
  body { background: #fff; font-size: 12px; }
  .sidebar, .topbar, .tabbar, .no-print, .back, .toasts, .boot, .skip { display: none !important; }
  .app { display: block; }
  .page, .public__page { padding: 0; max-width: none; }
  .view { animation: none; }
  .tray, .panel, .res, .mob, .report__summary, .report__head { break-inside: avoid; }
  .panel { box-shadow: 0 0 0 1px rgba(12, 12, 13, .1); }
  .tile-inverse, .scale__seg, .badge, .chip, .mob__pts i, .ring__fill, .tray, .avatar, .mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report__summary { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
  .report__summary .mob { grid-column: auto; }
  .report__focus { grid-template-columns: 1fr 1fr; }
  .res__body { grid-template-columns: 170px 1fr; }
  .sum { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
