/* ═══════════════════════════════════════════════════════════════════════════
 *  GHub · "Concourse" Design System
 *
 *  Aviation-grade UI language for the whole app:
 *    · Night Apron (dark)  · Terminal Daylight (light)
 *    · Signal yellow wayfinding accent, approach-light dots
 *    · Boarding passes, split-flap departure boards, flight-path progress
 *    · Revolut-style hierarchy: big numbers, round quick actions, clean lists
 *
 *  Single source of truth — every page uses these tokens + components.
 *  Loaded by head.php. JS counterpart: assets/gh/gh.js
 * ═══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

@property --gh-p    { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --gh-ring { syntax: "<number>"; inherits: true; initial-value: 0; }

/* ─── 1 · TOKENS ───────────────────────────────────────────────────────────── */
:root {
    --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

    --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;

    --gutter: 16px;
    --page-max: 640px;
    --appbar-h: 56px;
    --tabbar-h: 66px;
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --spring-soft: cubic-bezier(.22, 1.18, .36, 1);

    /* Terminal Daylight (light) */
    color-scheme: light;
    --bg: #EEF0F4;
    --bg-glow: rgba(31, 107, 255, .10);
    --surface: #FFFFFF;
    --surface-2: #F5F6F9;
    --surface-3: #E9ECF1;
    --surface-inv: #0B0F19;
    --text: #0A0E18;
    --text-2: #485063;
    --text-3: #5E6679;
    --text-4: #8F97A6;
    --text-inv: #F3F5F9;
    --line: rgba(10, 14, 24, .07);
    --line-2: rgba(10, 14, 24, .12);
    --line-3: rgba(10, 14, 24, .22);
    --fill: rgba(10, 14, 24, .045);
    --fill-2: rgba(10, 14, 24, .075);

    --signal: #FFCC00;
    --signal-ink: #0A0E18;
    --signal-text: #7A5500;
    --signal-soft: rgba(255, 204, 0, .22);
    --signal-glow: rgba(255, 204, 0, .55);

    --blue: #1458E6;   --blue-soft: rgba(20, 88, 230, .10);
    --green: #06714F;  --green-soft: rgba(6, 122, 83, .11);
    --amber: #975200;  --amber-soft: rgba(214, 125, 0, .14);
    --red: #B3333A;    --red-soft: rgba(229, 72, 77, .12);
    --violet: #5A3FE0; --violet-soft: rgba(110, 86, 248, .12);
    --teal: #066E7E;   --teal-soft: rgba(11, 142, 166, .13);

    --glass: rgba(255, 255, 255, .76);
    --glass-line: rgba(10, 14, 24, .08);
    --overlay: rgba(8, 11, 18, .40);

    --shadow-1: 0 1px 2px rgba(10, 14, 24, .05);
    --shadow-2: 0 12px 32px -14px rgba(10, 14, 24, .22), 0 2px 6px -2px rgba(10, 14, 24, .06);
    --shadow-3: 0 30px 80px -22px rgba(10, 14, 24, .38), 0 10px 24px -12px rgba(10, 14, 24, .18);

    /* Boarding pass (paper in daylight) */
    --pass-bg: #FFFFFF;
    --pass-bg-2: #FFFFFF;
    --pass-text: #0A0E18;
    --pass-dim: #5F687B;
    --pass-line: rgba(10, 14, 24, .14);

    /* Departure board — always a dark object, like the real thing */
    --board-bg: #0A0D15;
    --board-row: #0E121C;
    --board-cell: #171D2A;
    --board-line: rgba(255, 255, 255, .06);
    --board-text: #FFD21F;
    --board-text-2: #E9EDF5;
    --board-dim: #8089A0;
}

/* Night Apron (dark) */
html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #05070C;
    --bg-glow: rgba(77, 141, 255, .13);
    --surface: #0E1219;
    --surface-2: #141924;
    --surface-3: #1B212E;
    --surface-inv: #F3F5F9;
    --text: #F3F5F9;
    --text-2: #A3ABBB;
    --text-3: #8089A0;
    --text-4: #5A6378;
    --text-inv: #0A0E18;
    --line: rgba(255, 255, 255, .065);
    --line-2: rgba(255, 255, 255, .11);
    --line-3: rgba(255, 255, 255, .19);
    --fill: rgba(255, 255, 255, .05);
    --fill-2: rgba(255, 255, 255, .085);

    --signal: #FFD21F;
    --signal-ink: #0A0E18;
    --signal-text: #FFD21F;
    --signal-soft: rgba(255, 210, 31, .14);
    --signal-glow: rgba(255, 210, 31, .5);

    --blue: #5B95FF;   --blue-soft: rgba(91, 149, 255, .15);
    --green: #34D399;  --green-soft: rgba(52, 211, 153, .14);
    --amber: #FFB224;  --amber-soft: rgba(255, 178, 36, .15);
    --red: #FF6369;    --red-soft: rgba(255, 99, 105, .15);
    --violet: #A291FF; --violet-soft: rgba(162, 145, 255, .15);
    --teal: #2DD4BF;   --teal-soft: rgba(45, 212, 191, .14);

    --glass: rgba(11, 14, 21, .74);
    --glass-line: rgba(255, 255, 255, .08);
    --overlay: rgba(0, 0, 0, .62);

    --shadow-1: 0 0 0 rgba(0, 0, 0, 0);
    --shadow-2: 0 18px 44px -20px rgba(0, 0, 0, .85);
    --shadow-3: 0 40px 100px -24px rgba(0, 0, 0, .92);

    --pass-bg: #121A2E;
    --pass-bg-2: #0C1120;
    --pass-text: #F3F5F9;
    --pass-dim: #94A0B8;
    --pass-line: rgba(255, 255, 255, .14);
}

/* ─── 2 · BASE ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
    background: var(--bg);
    scroll-padding-top: calc(var(--appbar-h) + var(--sat) + 12px);
}
body {
    min-height: 100vh; min-height: 100dvh;
    font-family: var(--font);
    font-size: 15px; line-height: 1.45; font-weight: 400;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}
body::before {
    content: ""; position: fixed; inset: 0 0 auto 0; height: 480px; z-index: -1; pointer-events: none;
    background: radial-gradient(120% 75% at 50% -12%, var(--bg-glow), transparent 72%);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; } /* prevents iOS zoom */
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--signal-soft); color: var(--text); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phosphor icon baseline */
.ph, .ph-fill, .ph-bold { line-height: 1; vertical-align: -.125em; }

/* ─── 3 · TYPOGRAPHY ───────────────────────────────────────────────────────── */
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.num  { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.dim  { color: var(--text-3); }
.t-signal { color: var(--signal-text); }
.t-green { color: var(--green); } .t-red { color: var(--red); } .t-amber { color: var(--amber); } .t-blue { color: var(--blue); } .t-violet { color: var(--violet); } .t-teal { color: var(--teal); }
.eyebrow {
    font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1.2;
    letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.h1 { font-size: 30px; font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.h2 { font-size: 22px; font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.h3 { font-size: 17px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.b { font-weight: 650; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prose { color: var(--text-2); line-height: 1.6; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: .8em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose b, .prose strong { color: var(--text); font-weight: 650; }
.prose h2, .prose h3 { color: var(--text); letter-spacing: -.02em; margin: 1.2em 0 .45em; }
.prose a { color: var(--blue); }
kbd, .kbd {
    font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text-3);
    border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--surface);
}

/* ─── 4 · LAYOUT ───────────────────────────────────────────────────────────── */
.page {
    width: 100%; max-width: var(--page-max); margin: 0 auto;
    padding: 4px var(--gutter) calc(var(--tabbar-h) + var(--sab) + 36px);
}
.page--wide { --page-max: 920px; }
.page--wide ~ * .appbar-inner, body:has(.page--wide) .appbar-inner { --page-max: 920px; }
.page--bare { padding-bottom: calc(var(--sab) + 32px); }
.page-head { padding: 10px 4px 20px; }
.page-head .eyebrow { display: flex; align-items: center; gap: 8px; }
.page-title { font-size: clamp(30px, 8.4vw, 36px); font-weight: 700; letter-spacing: -.038em; line-height: 1.04; margin-top: 8px; }
.page-title .soft { color: var(--text-3); font-weight: 600; }
.page-sub { color: var(--text-2); margin-top: 8px; font-size: 15px; max-width: 46ch; }
.page-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.section { margin-top: 30px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 12px; }
.section-title { font-size: 19px; font-weight: 650; letter-spacing: -.022em; display: flex; align-items: center; gap: 10px; }
.section-link { font-size: 14px; font-weight: 550; color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.section-link:active { opacity: .6; }
.section-link { padding-block: 10px; margin-block: -10px; } /* ≥40px hit area without shifting layout */

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.cluster { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.span-2 { grid-column: span 2; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* ─── 5 · APP BAR ──────────────────────────────────────────────────────────── */
.appbar {
    position: sticky; top: 0; z-index: 50;
    padding-top: var(--sat);
    border-bottom: 1px solid transparent;
    transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), -webkit-backdrop-filter .3s, backdrop-filter .3s;
    view-transition-name: gh-appbar;
}
.appbar.is-scrolled {
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
    border-bottom-color: var(--line);
}
.appbar-inner {
    position: relative; height: var(--appbar-h); max-width: var(--page-max); margin: 0 auto;
    padding: 0 var(--gutter); display: flex; align-items: center; gap: 10px;
}
.appbar-title {
    position: absolute; left: 50%; top: 50%; max-width: 56%;
    transform: translate(-50%, -30%); opacity: 0; pointer-events: none;
    font-size: 16px; font-weight: 650; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: opacity .25s var(--ease-out), transform .35s var(--ease-out);
}
.appbar.is-scrolled .appbar-title { opacity: 1; transform: translate(-50%, -50%); }
.appbar-spacer { flex: 1; }
.appbar-search {
    flex: 1; height: 40px; min-width: 0; display: flex; align-items: center; gap: 8px;
    padding: 0 14px; border-radius: var(--r-pill); border: 0;
    background: var(--fill-2); color: var(--text-2); font-size: 15px; font-weight: 500; text-align: left;
    transition: background .2s, transform .25s var(--spring);
}
.appbar-search i { font-size: 18px; }
.appbar-search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-search:active { transform: scale(.98); }
.appbar.is-scrolled .appbar-search { background: var(--fill); }
.appbar-back { margin-left: -6px; }

.avatar {
    --size: 40px;
    width: var(--size); height: var(--size); flex: none; border-radius: 50%;
    display: grid; place-items: center; text-decoration: none;
    font-size: calc(var(--size) * .36); font-weight: 700; letter-spacing: -.02em;
    color: var(--signal-ink);
    background: linear-gradient(140deg, #FFE266 0%, var(--signal) 45%, #FF9F1C 100%);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--line-2);
    transition: transform .3s var(--spring);
}
.avatar:active { transform: scale(.92); }

/* ─── 6 · TAB BAR / NAV RAIL ───────────────────────────────────────────────── */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 0 12px calc(var(--sab) + 10px);
    pointer-events: none;
    view-transition-name: gh-tabbar;
}
.tabbar-inner {
    pointer-events: auto; position: relative;
    max-width: 440px; height: var(--tabbar-h); margin: 0 auto; padding: 6px;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(26px); backdrop-filter: saturate(180%) blur(26px);
    border: 1px solid var(--glass-line); border-radius: var(--r-pill);
    box-shadow: var(--shadow-3);
}
.tab-pill {
    position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px;
    width: calc((100% - 12px) / 5); border-radius: var(--r-pill);
    background: var(--fill-2);
    transform: translateX(calc(var(--tab-i, 0) * 100%));
    transition: transform .55s var(--spring-soft);
}
.tabbar.no-anim .tab-pill { transition: none; }
.tab {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--text-3); text-decoration: none; border-radius: var(--r-pill);
    font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
    transition: color .25s var(--ease-out);
}
.tab i { font-size: 23px; transition: transform .4s var(--spring); }
.tab:active i { transform: scale(.84); }
.tab.is-active { color: var(--text); }
.tab.is-active::before { /* approach light */
    content: ""; position: absolute; top: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
    background: var(--signal); box-shadow: 0 0 8px 1px var(--signal-glow);
    animation: gh-beacon 2.4s ease-in-out infinite;
}
.tab .badge { position: absolute; top: 4px; left: calc(50% + 6px); }
.tab--rail { display: none; }
.rail-brand, .rail-sep, .rail-foot { display: none; }

@media (min-width: 1080px) {
    body:has(.tabbar) { padding-left: 264px; }
    .tabbar {
        top: 0; right: auto; width: 264px; padding: calc(var(--sat) + 18px) 14px 18px;
    }
    .tabbar-inner {
        height: 100%; max-width: none; display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 14px 10px; border-radius: var(--r-xl); box-shadow: var(--shadow-2); overflow-y: auto;
    }
    .tab-pill { display: none; }
    .tab, .tab--rail {
        display: flex; flex-direction: row; justify-content: flex-start; gap: 12px;
        padding: 11px 14px; font-size: 14.5px; font-weight: 550; letter-spacing: -.005em; border-radius: var(--r-sm); color: var(--text-2);
    }
    .tab i { font-size: 20px; }
    .tab:hover { background: var(--fill); }
    .tab.is-active { background: var(--fill-2); color: var(--text); }
    .tab.is-active::before { top: 50%; left: 4px; margin: -2px 0 0; }
    .tab .badge { position: static; margin-left: auto; }
    .rail-brand { display: flex; align-items: center; gap: 10px; padding: 6px 12px 18px; text-decoration: none; }
    .rail-sep { display: block; margin: 14px 12px 6px; }
    .rail-foot { display: block; margin-top: auto; padding: 12px; }
    :root { --page-max: 760px; }
    .page--wide, body:has(.page--wide) .appbar-inner { --page-max: 1040px; }
}

/* ─── 7 · SURFACES ─────────────────────────────────────────────────────────── */
.card {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}
a.card, button.card { display: block; text-decoration: none; color: inherit; text-align: left; width: 100%; font: inherit; }
.card-pad { padding: 18px; }
.card-pad-lg { padding: 22px; }
.card-title { font-size: 16px; font-weight: 650; letter-spacing: -.012em; }
.card-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.card--flat { background: var(--fill); border-color: transparent; box-shadow: none; }

/* Hero gradient card — "golden hour on the apron" */
.card.card--hero {
    color: #fff; border: 0;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 210, 31, .35), transparent 55%),
        radial-gradient(90% 80% at 0% 100%, rgba(91, 149, 255, .45), transparent 60%),
        linear-gradient(150deg, #1A2346 0%, #0E1428 60%, #0A0E1C 100%);
    box-shadow: var(--shadow-2);
}
.card--hero .dim, .card--hero .eyebrow { color: rgba(255, 255, 255, .62); }
.card--hero::after { /* moving light sheen */
    content: ""; position: absolute; inset: -40% -60%; pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .07) 50%, transparent 58%);
    animation: gh-sheen 7s var(--ease-in-out) infinite;
}

/* Tappable surfaces press like hardware buttons */
.tap { transition: transform .35s var(--spring), background-color .2s, box-shadow .2s; }
.tap:active { transform: scale(.975); transition-duration: .12s; }

/* ─── 8 · LISTS (Revolut-style rows) ──────────────────────────────────────── */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.list--plain { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.row {
    position: relative; display: flex; align-items: center; gap: 14px;
    width: 100%; min-height: 64px; padding: 12px 16px;
    background: none; border: 0; text-align: left; text-decoration: none; color: inherit; font: inherit;
    transition: background-color .15s;
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; height: 1px; background: var(--line); }
.list > form + .row::before, .list > * + form > .row::before, .list > form + form > .row::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; height: 1px; background: var(--line); }
.list > form { display: block; }
.row.no-ico + .row::before, .row.no-ico::before, .list--flush .row + .row::before { left: 16px; }
a.row:active, button.row:active, label.row:active { background: var(--fill); }
@media (hover: hover) { a.row:hover, button.row:hover { background: var(--fill); } }
.row-ico {
    width: 40px; height: 40px; flex: none; border-radius: 50%;
    display: grid; place-items: center; font-size: 20px;
    background: var(--fill-2); color: var(--text);
}
.row-ico.sq { border-radius: 12px; }
.row-ico.sign { display: grid; place-items: center; gap: 0; border-radius: 9px; background: var(--signal); color: var(--signal-ink); } /* beats the later .sign signage rule */
.row-main { flex: 1; min-width: 0; }
.row-title, .row-sub { display: block; }
.row-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title.wrap { white-space: normal; }
.row-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub.wrap { white-space: normal; }
.row-trail { flex: none; text-align: right; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.row-trail .v { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.row-trail .s { font-size: 12.5px; color: var(--text-3); }
.row-chev { color: var(--text-4); font-size: 16px; flex: none; }
.row--compact { min-height: 52px; padding-top: 10px; padding-bottom: 10px; }

/* Icon colour helpers (for .row-ico, .qa-ico, .tile-ico …) */
.i-blue   { background: var(--blue-soft)   !important; color: var(--blue)   !important; }
.i-green  { background: var(--green-soft)  !important; color: var(--green)  !important; }
.i-amber  { background: var(--amber-soft)  !important; color: var(--amber)  !important; }
.i-red    { background: var(--red-soft)    !important; color: var(--red)    !important; }
.i-violet { background: var(--violet-soft) !important; color: var(--violet) !important; }
.i-teal   { background: var(--teal-soft)   !important; color: var(--teal)   !important; }
.i-signal { background: var(--signal)      !important; color: var(--signal-ink) !important; }
.i-ink    { background: var(--surface-inv) !important; color: var(--text-inv) !important; }

/* Key/value pairs */
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--text-3); }
.kv dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kv .sep { grid-column: 1 / -1; height: 1px; background: var(--line); }
.kv .total { font-size: 16px; font-weight: 700; color: var(--text); }

/* ─── 9 · BUTTONS ──────────────────────────────────────────────────────────── */
.btn {
    --h: 50px;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: var(--h); padding: 0 22px; border-radius: var(--r-pill); border: 0;
    background: var(--fill-2); color: var(--text);
    font-size: 15px; font-weight: 600; letter-spacing: -.008em; line-height: 1;
    text-decoration: none; white-space: nowrap; user-select: none; -webkit-user-select: none;
    transition: transform .3s var(--spring), background-color .2s, box-shadow .25s, opacity .2s, color .2s;
}
.btn i { font-size: 1.2em; }
.btn:active { transform: scale(.955); transition-duration: .1s; }
.btn-primary { background: var(--signal); color: var(--signal-ink); box-shadow: 0 10px 26px -12px var(--signal-glow); }
@media (hover: hover) { .btn-primary:hover { box-shadow: 0 14px 32px -12px var(--signal-glow); } }
.btn-ink { background: var(--surface-inv); color: var(--text-inv); }
.btn-secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--fill); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger-solid { background: var(--red); color: #fff; }
html[data-theme="dark"] .btn-danger-solid { background: #C9363C; }
.btn-success { background: var(--green-soft); color: var(--green); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-block { width: 100%; }
.btn-lg { --h: 56px; font-size: 16px; padding: 0 26px; }
.btn-sm { --h: 40px; padding: 0 15px; font-size: 13.5px; }
.btn-xs { --h: 28px; padding: 0 11px; font-size: 12.5px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid currentColor; border-color: var(--text-3) transparent var(--text-3) transparent;
    animation: gh-spin .8s linear infinite;
}
.btn-primary.is-loading::after { border-color: var(--signal-ink) transparent var(--signal-ink) transparent; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }

.icon-btn {
    --size: 40px;
    width: var(--size); height: var(--size); flex: none; border-radius: 50%; border: 0;
    display: inline-grid; place-items: center; font-size: 20px; text-decoration: none;
    background: var(--fill-2); color: var(--text);
    transition: transform .3s var(--spring), background-color .2s;
}
.icon-btn:active { transform: scale(.88); }
.icon-btn.plain { background: transparent; }
.icon-btn.sm { --size: 32px; font-size: 16px; }
.icon-btn.lg { --size: 48px; font-size: 22px; }
.icon-btn.is-disabled, .icon-btn[disabled], .icon-btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.icon-btn .badge { position: absolute; top: -2px; right: -2px; }
.icon-btn { position: relative; }

/* Round quick actions (Revolut signature) */
.qa-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.qa {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: none; border: 0; text-decoration: none; color: var(--text);
    font-size: 12.5px; font-weight: 550; letter-spacing: -.005em; text-align: center; line-height: 1.15;
}
.qa-ico {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 23px;
    background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-1);
    transition: transform .35s var(--spring), background-color .2s;
}
.qa:active .qa-ico { transform: scale(.86); }
.card--hero .qa { color: #fff; }
.card--hero .qa-ico { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ─── 10 · CHIPS & BADGES ──────────────────────────────────────────────────── */
.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
    border-radius: var(--r-pill); background: var(--fill-2); color: var(--text-2);
    font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    white-space: nowrap; line-height: 1;
}
.chip i { font-size: 13px; }
.chip.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip.live::before { animation: gh-live 1.6s ease-in-out infinite; box-shadow: 0 0 0 0 currentColor; }
.chip-plain { text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 12.5px; font-weight: 600; }
.chip-green  { background: var(--green-soft);  color: var(--green); }
.chip-amber  { background: var(--amber-soft);  color: var(--amber); }
.chip-red    { background: var(--red-soft);    color: var(--red); }
.chip-blue   { background: var(--blue-soft);   color: var(--blue); }
.chip-violet { background: var(--violet-soft); color: var(--violet); }
.chip-teal   { background: var(--teal-soft);   color: var(--teal); }
.chip-signal { background: var(--signal);      color: var(--signal-ink); }
.chip-ink    { background: var(--surface-inv); color: var(--text-inv); }
.chip-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.badge {
    display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--red); color: #fff;
    font-size: 10.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 2px var(--bg);
}
html[data-theme="dark"] .badge { color: #1C0306; }
.badge-signal { background: var(--signal); color: var(--signal-ink); }

/* Filter chips (scrollable) */
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.chips-scroll::-webkit-scrollbar { display: none; }
.fchip {
    flex: none; height: 40px; padding: 0 15px; border-radius: var(--r-pill); border: 0;
    background: var(--surface); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2);
    font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
    transition: background-color .2s, color .2s, transform .3s var(--spring);
}
.fchip:active { transform: scale(.95); }
.fchip.is-active { background: var(--surface-inv); color: var(--text-inv); box-shadow: none; }

/* ─── 11 · NUMBERS & METRICS ──────────────────────────────────────────────── */
.amount {
    display: inline-flex; align-items: baseline; font-size: clamp(42px, 12vw, 54px); font-weight: 700;
    letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums;
}
.amount .dec { font-size: .52em; letter-spacing: -.02em; margin-left: 1px; }
.amount .cur { font-size: .52em; margin-left: .22em; letter-spacing: 0; opacity: .9; }
.amount .approx { font-size: .6em; opacity: .7; margin-right: .08em; font-weight: 500; }
.amount--md { font-size: 34px; }

.stat {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 6px; min-height: 124px; padding: 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
    text-decoration: none; color: inherit;
}
.stat-label { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.stat-label i { font-size: 14px; }
.stat-value { margin-top: auto; font-size: 28px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-value small { font-size: .52em; font-weight: 600; letter-spacing: -.01em; color: var(--text-3); margin-left: 2px; }
.stat-sub { font-size: 12.5px; color: var(--text-3); line-height: 1.3; }
.stat .bar { margin-top: 4px; }
.stat-corner { position: absolute; top: 14px; right: 14px; }

.bar { position: relative; height: 6px; border-radius: 99px; background: var(--fill-2); overflow: hidden; }
.bar > i { display: block; height: 100%; width: var(--v, 0%); border-radius: inherit; background: var(--signal); transition: width 1.1s var(--ease-out); }
.bar.green > i { background: var(--green); } .bar.blue > i { background: var(--blue); } .bar.red > i { background: var(--red); } .bar.violet > i { background: var(--violet); } .bar.ink > i { background: var(--text); }
.bar-lg { height: 10px; }
.bar.runway > i { /* runway lights moving along the fill */
    background: var(--signal) repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 2px, transparent 2px 14px);
    background-size: 28px 100%; animation: gh-runway 1.4s linear infinite;
}

.ring {
    --size: 64px; --w: 7px; --c: var(--signal);
    position: relative; width: var(--size); height: var(--size); flex: none; border-radius: 50%;
    background: conic-gradient(var(--c) calc(var(--gh-ring) * 1%), var(--fill-2) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--w)), #000 calc(100% - var(--w) + 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - var(--w)), #000 calc(100% - var(--w) + 1px));
    transition: --gh-ring 1.2s var(--ease-out);
}
.ring-wrap { position: relative; display: inline-grid; place-items: center; }
.ring-wrap > .ring-label { position: absolute; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Segmented control */
.seg {
    position: relative; isolation: isolate;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 3px; border-radius: var(--r-pill); background: var(--fill-2);
}
.seg > button, .seg > a, .seg > label {
    position: relative; z-index: 1; height: 40px; padding: 0 10px; border: 0; background: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r-pill); text-decoration: none; cursor: pointer;
    color: var(--text-2); font-size: 13.5px; font-weight: 600; white-space: nowrap;
    transition: color .25s var(--ease-out);
}
.seg > .is-active { color: var(--text); }
.seg-thumb {
    position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0;
    border-radius: var(--r-pill); background: var(--surface);
    box-shadow: 0 2px 10px -2px rgba(0, 0, 0, .18), 0 0 0 1px var(--line);
    transition: transform .5s var(--spring-soft), width .5s var(--spring-soft);
}
html[data-theme="dark"] .seg-thumb { background: var(--surface-3); }
.seg.no-anim .seg-thumb { transition: none; }

/* ─── 12 · FORMS ───────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); padding-left: 2px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-hint { font-size: 12.5px; color: var(--text-3); padding-left: 2px; line-height: 1.4; }
.field-error { font-size: 12.5px; color: var(--red); padding-left: 2px; }
.input, .select, .textarea {
    width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-md);
    background: var(--fill); border: 1px solid transparent; color: var(--text);
    font-size: 16px; font-weight: 500; outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color .2s, background-color .2s, box-shadow .25s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-4); font-weight: 450; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--signal); background: var(--surface); box-shadow: 0 0 0 4px var(--signal-soft); }
.input[readonly] { color: var(--text-2); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.input-sm { height: 42px; border-radius: var(--r-sm); font-size: 15px; padding: 0 12px; }
.input.mono { font-family: var(--mono); letter-spacing: .02em; }
.textarea { height: auto; min-height: 104px; padding: 14px 16px; line-height: 1.45; resize: vertical; }
.select {
    padding-right: 42px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 256 256'%3E%3Cpath fill='%23778095' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.input[type="time"], .input[type="date"], .input[type="month"] { font-variant-numeric: tabular-nums; }
.input[type="time"]::-webkit-calendar-picker-indicator, .input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
html[data-theme="dark"] .input[type="time"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] .input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] .input[type="month"]::-webkit-calendar-picker-indicator { filter: invert(1); }
html[data-theme="dark"] .select option { background: #141924; color: #F3F5F9; }
.input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset; transition: background-color 9999s; }

.input-wrap { position: relative; }
.input-wrap > i:first-child { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--text-3); pointer-events: none; }
.input-wrap > i:first-child + .input { padding-left: 46px; }
.input-wrap > .input-end { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.input-wrap .suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-weight: 600; pointer-events: none; }

.search {
    display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
    border-radius: var(--r-pill); background: var(--fill-2); color: var(--text-3);
}
.search i { font-size: 19px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--text); font-size: 16px; font-weight: 500; }
.search input::placeholder { color: var(--text-3); }

/* iOS-style switch */
.switch {
    -webkit-appearance: none; appearance: none; position: relative; flex: none;
    width: 51px; height: 31px; border-radius: 99px; background: var(--fill-2); cursor: pointer;
    transition: background-color .3s var(--ease-out); outline-offset: 3px;
}
.switch::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
    background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .18), 0 1px 1px rgba(0, 0, 0, .1);
    transition: transform .4s var(--spring);
}
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }
.switch:active::after { width: 31px; }
.switch:checked:active::after { transform: translateX(16px); }
.switch:disabled { opacity: .45; cursor: not-allowed; }

.check { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-3); background: var(--surface); cursor: pointer; display: inline-grid; place-items: center; transition: background-color .2s, border-color .2s; }
.check:checked { background: var(--signal); border-color: var(--signal); }
.check:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--signal-ink); border-bottom: 2px solid var(--signal-ink); transform: translateY(-1px) rotate(-45deg); }
.radio { border-radius: 50%; }
.radio:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--signal-ink); transform: none; }

/* Option cards (radio-as-card) */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r-md); background: var(--fill); cursor: pointer; transition: background-color .2s, box-shadow .2s, transform .3s var(--spring); }
.opt:active { transform: scale(.97); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt i { font-size: 22px; }
.opt b { font-size: 14px; font-weight: 650; }
.opt span { font-size: 12px; color: var(--text-3); }
.opt:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.opt:has(input:checked) { background: var(--surface); box-shadow: inset 0 0 0 2px var(--signal), 0 6px 18px -10px var(--signal-glow); }

/* Stepper */
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: var(--r-pill); background: var(--fill-2); }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); font-size: 18px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.stepper output, .stepper span { min-width: 64px; text-align: center; font-family: var(--mono); font-weight: 600; font-size: 14px; }

/* ─── 13 · NOTICES / EMPTY / LOADING ──────────────────────────────────────── */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--fill); color: var(--text-2); font-size: 14px; line-height: 1.45; }
.notice > i { font-size: 20px; flex: none; margin-top: -1px; }
.notice b { color: var(--text); }
.notice-info { background: var(--blue-soft); } .notice-info > i { color: var(--blue); }
.notice-success { background: var(--green-soft); } .notice-success > i { color: var(--green); }
.notice-warn { background: var(--amber-soft); } .notice-warn > i { color: var(--amber); }
.notice-error { background: var(--red-soft); } .notice-error > i { color: var(--red); }
.notice-signal { background: var(--signal-soft); } .notice-signal > i { color: var(--signal-text); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 20px; color: var(--text-3); }
.empty-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--fill-2); color: var(--text-2); position: relative; }
.empty-ico::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed var(--line-3); animation: gh-spin 18s linear infinite; }
.empty-title { font-size: 16px; font-weight: 650; color: var(--text); }
.empty-text { font-size: 14px; max-width: 32ch; line-height: 1.45; }

/* Radar loader */
.radar { --size: 44px; position: relative; width: var(--size); height: var(--size); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; flex: none; }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 72%, var(--signal-soft) 88%, var(--signal) 100%); animation: gh-spin 1.6s linear infinite; }
.radar::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px; color: var(--text-3); font-size: 13.5px; }

/* ─── 14 · SHEETS, DIALOGS, TOASTS ────────────────────────────────────────── */
dialog.sheet {
    position: fixed; inset: auto 0 0 0; margin: 0 auto;
    width: 100%; max-width: 560px; max-height: calc(100dvh - var(--sat) - 20px);
    padding: 0; border: 0; border-radius: 30px 30px 0 0;
    background: var(--surface); color: var(--text);
    box-shadow: var(--shadow-3);
    overflow: hidden; flex-direction: column;
    transform: translateY(105%);
    transition: transform .52s var(--ease-out);
}
dialog.sheet[open] { display: flex; }
dialog.sheet.is-open { transform: translateY(0); }
dialog.sheet.is-dragging { transition: none; }
dialog.sheet:focus-visible { outline: none; }
dialog.sheet::backdrop { background: var(--overlay); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s var(--ease-out); }
dialog.sheet.is-open::backdrop { opacity: 1; }
html[data-theme="dark"] dialog.sheet { background: var(--surface-2); box-shadow: 0 -1px 0 var(--line-2), var(--shadow-3); }
.sheet-grab { flex: none; display: flex; justify-content: center; padding: 10px 0 2px; cursor: grab; touch-action: none; }
.sheet-grab::before { content: ""; width: 38px; height: 5px; border-radius: 3px; background: var(--line-3); }
/* Inhalt mit flex-basis auto: Safari misst eine Spalte ohne feste Höhe nach der flex-basis –
   bei „flex: 1“ (Basis 0) klappte der Sheet-Inhalt auf dem iPhone auf 0 zusammen. */
dialog.sheet > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.sheet-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 20px 14px; touch-action: none; }
.sheet-head > .sheet-titles { flex: 1; min-width: 0; }
.sheet-title { font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.sheet-sub { font-size: 13.5px; color: var(--text-3); margin-top: 3px; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; -webkit-overflow-scrolling: touch; }
.sheet-foot { flex: none; display: flex; gap: 10px; padding: 12px 20px calc(var(--sab) + 16px); border-top: 1px solid var(--line); background: inherit; }
.sheet-foot > .btn { flex: 1; }
.sheet-body:last-child { padding-bottom: calc(var(--sab) + 24px); }
@media (min-width: 720px) {
    dialog.sheet {
        inset: 0; margin: auto; height: fit-content; max-height: min(86vh, 860px); border-radius: 28px;
        transform: translateY(18px) scale(.97); opacity: 0;
        transition: transform .45s var(--spring-soft), opacity .3s var(--ease-out);
    }
    dialog.sheet.is-open { transform: none; opacity: 1; }
    dialog.sheet .sheet-grab { display: none; }
    dialog.sheet .sheet-head { padding-top: 22px; }
    .sheet-foot { padding-bottom: 18px; }
}

/* Command palette */
dialog.cmdk { height: min(78dvh, 640px); }
.cmdk-search { flex: none; display: flex; align-items: center; gap: 10px; margin: 6px 16px 8px; padding: 0 6px 0 16px; height: 52px; border-radius: var(--r-pill); background: var(--fill-2); }
.cmdk-search > i { font-size: 20px; color: var(--text-3); }
.cmdk-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 17px; font-weight: 500; color: var(--text); -webkit-appearance: none; appearance: none; }
.cmdk-search input::-webkit-search-cancel-button { display: none; }
.cmdk-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px calc(var(--sab) + 16px); }
.cmdk-group { padding: 14px 12px 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cmdk-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-md); background: none; text-align: left; text-decoration: none; color: inherit; font: inherit; }
.cmdk-item .row-ico { width: 38px; height: 38px; font-size: 19px; }
.cmdk-item.is-active, .cmdk-item:active { background: var(--fill); }
@media (hover: hover) { .cmdk-item:hover { background: var(--fill); } }
.cmdk-go { color: var(--text-4); font-size: 16px; }
@media (min-width: 720px) {
    dialog.cmdk { inset: 10vh 0 auto 0; margin: 0 auto; height: auto; max-height: 70vh; }
    .cmdk-search { margin-top: 16px; }
}
@media (pointer: coarse) { .appbar-search kbd { display: none; } }
html.has-sheet, html.has-sheet body { overflow: hidden; }

/* Confirm dialog */
dialog.gh-confirm { max-width: 400px; }
.gh-confirm .sheet-body { text-align: center; padding-top: 10px; }
.gh-confirm-ico { width: 60px; height: 60px; margin: 6px auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--fill-2); }
.gh-confirm h3 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.gh-confirm p { color: var(--text-2); margin-top: 8px; font-size: 15px; line-height: 1.45; }

/* Dynamic-island toast */
.toast-host { position: fixed; top: calc(var(--sat) + 10px); left: 0; right: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 10px;
    min-height: 46px; max-width: min(100%, 440px); padding: 8px 18px 8px 10px;
    border-radius: var(--r-pill); background: #0B0F19; color: #F3F5F9;
    box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
    font-size: 14.5px; font-weight: 550; line-height: 1.3;
    transform-origin: top center; animation: gh-island-in .62s var(--spring-soft) both;
}
.toast > i { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: rgba(255, 255, 255, .1); }
.toast span { animation: gh-fade-in .3s .14s both; }
.toast.ok > i { background: rgba(52, 211, 153, .18); color: #34D399; }
.toast.err > i { background: rgba(255, 99, 105, .18); color: #FF6369; }
.toast.warn > i { background: rgba(255, 178, 36, .18); color: #FFB224; }
.toast.info > i { background: rgba(255, 210, 31, .16); color: #FFD21F; }
.toast.is-leaving { animation: gh-island-out .38s var(--ease-in-out) both; }

/* ─── 15 · AVIATION COMPONENTS ────────────────────────────────────────────── */

/* Signage — yellow pictogram squares like airport wayfinding */
.sign { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.sign-ico {
    width: 30px; height: 30px; flex: none; border-radius: 7px; display: grid; place-items: center; font-size: 18px;
    background: var(--signal); color: var(--signal-ink);
}
.sign-ico.ink { background: var(--surface-inv); color: var(--signal); }
html[data-theme="dark"] .sign-ico.ink { background: #1B2232; color: var(--signal); }
.sign-ico.sm { width: 24px; height: 24px; border-radius: 6px; font-size: 14px; }
.sign-ico.lg { width: 44px; height: 44px; border-radius: 10px; font-size: 24px; }
.gate { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; background: var(--surface-inv); color: var(--signal); }
html[data-theme="dark"] .gate { background: #1B2232; }

/* Concourse tiles (Hub) */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 132px; padding: 16px;
    border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
    text-decoration: none; color: inherit;
}
.tile .gate { position: absolute; top: 14px; right: 14px; }
.tile-title { margin-top: auto; font-size: 15.5px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.tile-sub { font-size: 12.5px; color: var(--text-3); line-height: 1.3; padding-right: 22px; }
.tile-arrow { position: absolute; right: 14px; bottom: 14px; font-size: 18px; color: var(--text-4); transition: transform .35s var(--spring), color .2s; }
.tile:active .tile-arrow { transform: translate(3px, -3px); color: var(--text); }
.tile.wide { grid-column: span 2; min-height: 0; flex-direction: row; align-items: center; padding-right: 64px; }
.tile.wide .gate { top: 50%; transform: translateY(-50%); right: 44px; }
.tile.wide .tile-arrow { bottom: auto; top: 50%; margin-top: -9px; }
.tile.wide .tile-title { margin-top: 0; }

/* Boarding pass */
.pass {
    --perf-y: 0px; --notch: 13px;
    position: relative; isolation: isolate; overflow: hidden;
    border-radius: var(--r-xl); color: var(--pass-text);
    background: linear-gradient(165deg, var(--pass-bg) 0%, var(--pass-bg-2) 100%);
    box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
}
html[data-theme="dark"] .pass {
    background:
        radial-gradient(100% 70% at 100% 0%, rgba(255, 210, 31, .12), transparent 60%),
        radial-gradient(80% 60% at 0% 100%, rgba(91, 149, 255, .16), transparent 60%),
        linear-gradient(165deg, var(--pass-bg) 0%, var(--pass-bg-2) 100%);
    box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .06);
}
*:has(> .pass.has-notch) { filter: drop-shadow(0 14px 22px rgba(10, 14, 24, .12)); }
html[data-theme="dark"] *:has(> .pass.has-notch) { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.pass.has-notch {
    -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--perf-y), transparent 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% var(--perf-y), transparent 98%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle var(--notch) at 0 var(--perf-y), transparent 98%, #000) left / 51% 100% no-repeat,
          radial-gradient(circle var(--notch) at 100% var(--perf-y), transparent 98%, #000) right / 51% 100% no-repeat;
}
.pass-stripe { height: 6px; background: repeating-linear-gradient(-45deg, var(--signal) 0 10px, #0A0E18 10px 20px); opacity: .95; }
.pass-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 0; }
.pass-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pass-dim); }
.pass-brand i { font-size: 16px; color: var(--signal-text); }
.pass-route { display: grid; grid-template-columns: auto minmax(64px, 1fr) auto; align-items: center; gap: 12px; padding: 18px 20px 6px; }
.pass-pt { display: flex; flex-direction: column; gap: 6px; }
.pass-pt.end { align-items: flex-end; text-align: right; }
.pass-time { font-family: var(--mono); font-size: clamp(23px, 7.2vw, 34px); font-weight: 650; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pass-lbl { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pass-dim); }
.pass-path { position: relative; height: 44px; margin: 0 8px; --gh-p: 0; }
.pass-path::before { /* dashed flight path */
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
    background: repeating-linear-gradient(90deg, var(--pass-line) 0 5px, transparent 5px 10px);
}
.pass-path::after { /* flown portion */
    content: ""; position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
    width: calc(var(--gh-p) * 100%); background: var(--signal); box-shadow: 0 0 10px var(--signal-glow);
    transition: width 1.2s var(--ease-out);
}
.pass-dot { position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--pass-bg); box-shadow: inset 0 0 0 2px var(--pass-line); z-index: 1; }
.pass-dot.a { left: -4px; } .pass-dot.b { right: -4px; }
.pass-plane {
    position: absolute; z-index: 2; top: 50%; left: calc(var(--gh-p) * 100%);
    width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
    display: grid; place-items: center; font-size: 16px;
    background: var(--signal); color: var(--signal-ink); box-shadow: 0 0 0 4px var(--signal-soft), 0 6px 16px -4px var(--signal-glow);
    transition: left 1.2s var(--ease-out);
}
.pass-plane i { transform: rotate(90deg); }
.pass.is-live .pass-plane { animation: gh-bob 3s ease-in-out infinite; }
.pass-dur { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--pass-dim); white-space: nowrap; }
.pass-perf { position: relative; height: 26px; }
.pass-perf::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed var(--pass-line); }
.pass-grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 14px 12px; padding: 0 20px 16px; }
.pass-grid.cols-3 { grid-template-columns: repeat(3, auto); }
.pass-k { display: block; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pass-dim); }
.pass-v { display: block; margin-top: 5px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pass-v.sig { color: var(--signal-text); }
.pass-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 18px; }
.pass-barcode { height: 34px; flex: 1; max-width: 220px; color: var(--pass-text); opacity: .85; background: currentColor; -webkit-mask: var(--bars) center / 100% 100%; mask: var(--bars) center / 100% 100%; }
.pass-msg { font-size: 13px; color: var(--pass-dim); }
.pass-msg b { color: var(--pass-text); }
.pass-big { padding: 18px 20px 8px; }
.pass-big .h1 { font-size: 32px; }

/* Split-flap characters */
.flap { display: inline-flex; gap: 1px; perspective: 400px; }
.flap-c {
    position: relative; display: inline-grid; place-items: center;
    min-width: .68em; height: 1.22em; padding: 0 .03em; border-radius: .14em;
    background: var(--board-cell); color: var(--board-text);
    font-family: var(--mono); font-weight: 600; line-height: 1;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05);
    transform-style: preserve-3d;
}
.flap-c::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.flap-c.sep { min-width: .34em; background: none; box-shadow: none; padding: 0; }
.pass .flap-c.sep { color: var(--pass-dim); }
.flap-c.sep::after { display: none; }
.flap-c.is-flip { animation: gh-flap .075s linear; }

/* Departure board (FIDS) */
.board {
    position: relative; overflow: hidden; border-radius: var(--r-lg);
    background: var(--board-bg); color: var(--board-text-2);
    box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.board::before { /* scanline gloss */
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 30%);
}
.board-title { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--board-text); }
.board-title i { font-size: 16px; }
.board-title .clock { color: var(--board-text-2); letter-spacing: .06em; }
.board-head, .board-row { display: grid; grid-template-columns: var(--board-cols, 78px minmax(0, 1fr) 44px 66px); align-items: center; gap: 10px; padding: 0 16px; }
.board-head { height: 28px; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--board-dim); border-top: 1px solid var(--board-line); border-bottom: 1px solid var(--board-line); }
.board-row {
    position: relative; min-height: 52px; text-decoration: none; color: inherit;
    border-bottom: 1px solid var(--board-line); background: var(--board-row);
    font-family: var(--mono); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
    transition: background-color .15s;
}
.board-row:last-child { border-bottom: 0; }
a.board-row:active { background: #151B28; }
.board-row .t { font-size: 14px; color: var(--board-text); white-space: nowrap; }
.board-row .d { color: var(--board-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .m { color: var(--board-dim); }
.board-row .s { text-align: right; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--board-text-2); white-space: nowrap; }
.board-row .s.go { color: #34D399; }
.board-row .s.soon { color: var(--board-text); animation: gh-blink 1.4s steps(2, jump-none) infinite; }
@keyframes gh-blink { 0% { opacity: 1; } 50% { opacity: .6; } }
.board-row .s.off { color: var(--board-dim); }
.board-row .s.red { color: #FF6369; }
.board-row .s.blue { color: #5B95FF; }
.board-empty { padding: 26px 16px; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--board-dim); }
.board .flap-c { background: var(--board-cell); }

/* Itinerary timeline (day plan legs) */
.itin { position: relative; }
.itin-leg { position: relative; display: grid; grid-template-columns: 54px 22px 1fr; gap: 0 10px; padding: 4px 0; }
.itin-time { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text-2); padding-top: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.itin-time small { display: block; font-size: 11px; color: var(--text-4); margin-top: 2px; }
.itin-rail { position: relative; }
.itin-rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--line-3) 0 4px, transparent 4px 9px); }
.itin-leg:first-child .itin-rail::before { top: 18px; }
.itin-leg:last-child .itin-rail::before { bottom: calc(100% - 22px); }
.itin-node { position: absolute; left: 50%; top: 17px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2.5px var(--c, var(--text-3)), 0 0 0 4px var(--bg); }
.itin-leg.is-now .itin-node { background: var(--c, var(--signal)); box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--signal-soft); }
.itin-card { margin: 4px 0; min-width: 0; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-wd { padding: 4px 0 6px; text-align: center; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.cal-wd.we { color: var(--text-3); }
.cal-d {
    position: relative; min-height: 62px; padding: 6px 2px 5px; border-radius: 13px; border: 0;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: var(--surface); color: var(--text); text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums;
    transition: transform .3s var(--spring), box-shadow .2s, background-color .2s;
}
.cal-d:active { transform: scale(.93); }
.cal-d .n { line-height: 1.1; }
.cal-d .t { font-family: var(--mono); font-size: 9.5px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--text-2); text-align: center; }
.cal-d .t + .t { color: var(--text-3); }
.cal-d.k-zusatz .t + .t, .cal-d.k-urlaub .t + .t, .cal-d.k-krank .t + .t { color: var(--text-2); } /* tinted cells need the stronger ink */
.cal-d .k { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .06em; margin-top: auto; }
.cal-d.is-empty { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); }
.cal-d.is-out { visibility: hidden; }
.cal-d.is-weekend:not(.has-shift) { color: var(--text-3); }
.cal-d.has-shift::before { content: ""; position: absolute; left: 50%; bottom: 5px; width: 14px; height: 3px; margin-left: -7px; border-radius: 2px; background: var(--c, var(--blue)); }
.cal-d.k-dienst { --c: var(--blue); }
.cal-d.k-zusatz { --c: var(--violet); background: var(--violet-soft); box-shadow: none; }
.cal-d.k-urlaub { --c: var(--teal); background: var(--teal-soft); box-shadow: none; }
.cal-d.k-krank  { --c: var(--red); background: var(--red-soft); box-shadow: none; }
.cal-d.k-urlaub .k { color: var(--teal); } .cal-d.k-krank .k { color: var(--red); } .cal-d.k-zusatz .k { color: var(--violet); }
.cal-d.is-holiday .n::after { content: "•"; color: var(--amber); margin-left: 1px; }
.cal-d.is-past:not(.k-urlaub):not(.k-krank):not(.k-zusatz) { background: transparent; }
.cal-d.is-past .n { color: var(--text-2); }
.cal-d.is-past .t { color: var(--text-3); }
.cal-d.is-today { box-shadow: inset 0 0 0 2px var(--signal), 0 6px 18px -8px var(--signal-glow); opacity: 1; }
.cal-d.is-today .n { color: var(--signal-text); }
.cal-d.is-selected { background: var(--surface-inv); color: var(--text-inv); box-shadow: none; }
.cal-d.is-selected .t, .cal-d.is-selected .n { color: var(--text-inv); }
.cal-d.is-selected .t { opacity: .75; }
.cal--mini .cal-d { min-height: 0; aspect-ratio: 1; padding: 0; justify-content: center; font-size: 13px; border-radius: 50%; }
.cal--mini .cal-d .t, .cal--mini .cal-d .k { display: none; }
.cal--mini .cal-d.has-shift::before { bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* Month / date switcher */
.switcher { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.switcher-label { text-align: center; flex: 1; min-width: 0; }
.switcher-label b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.switcher-label span { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

/* Accordion */
details.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
details.acc + details.acc { margin-top: 8px; }
details.acc > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; font-weight: 650; font-size: 15px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translateY(-3px); transition: transform .35s var(--spring); flex: none; }
details.acc[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
details.acc > .acc-body { padding: 0 16px 18px; animation: gh-rise .4s var(--ease-out); }

/* Data table */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 14px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Rolling digits (odometer) */
.roll { display: inline-flex; overflow: hidden; line-height: 1; vertical-align: baseline; }
.roll-col { display: inline-block; height: 1em; overflow: hidden; overflow: clip; position: relative; }
.roll-strip { display: flex; flex-direction: column; transition: transform 1.25s var(--ease-out); transition-delay: var(--d, 0ms); }
.roll-strip > span { height: 1em; display: block; text-align: center; }

/* ─── 16 · MOTION ──────────────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: gh-vt-out .2s var(--ease-in-out) both; }
::view-transition-new(root) { animation: gh-vt-in .42s var(--ease-out) both; }
::view-transition-group(gh-tabbar), ::view-transition-group(gh-appbar) { animation-duration: .3s; }

.rise { animation: gh-rise .62s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
[data-stagger] > * { animation: gh-rise .62s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + 40ms); }
.fade-in { animation: gh-fade-in .5s var(--ease-out) both; }
.pop { animation: gh-pop .5s var(--spring) both; }

@keyframes gh-rise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes gh-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gh-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes gh-spin { to { transform: rotate(360deg); } }
@keyframes gh-vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes gh-vt-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes gh-live { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes gh-beacon { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes gh-sheen { 0% { transform: translateX(-45%); } 55%, 100% { transform: translateX(45%); } }
@keyframes gh-runway { to { background-position: 28px 0; } }
@keyframes gh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes gh-flap { 0% { transform: rotateX(0); } 50% { transform: rotateX(-88deg); } 100% { transform: rotateX(0); } }
@keyframes gh-island-in { 0% { opacity: 0; transform: translateY(-14px) scale(.4, .55); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes gh-island-out { to { opacity: 0; transform: translateY(-12px) scale(.6, .7); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
    @view-transition { navigation: none; }
}
@media (prefers-reduced-transparency: reduce) {
    .appbar.is-scrolled, .tabbar-inner { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ─── 17 · PRINT ───────────────────────────────────────────────────────────── */
@media print {
    body::before, .appbar, .tabbar, .toast-host, dialog { display: none !important; }
    body { background: #fff; color: #000; padding: 0 !important; }
    .card, .list, .stat { box-shadow: none; border-color: #ddd; }
}
