/* Meridian: jet lag planner */

:root {
  --bg: #f6f4ef;
  --bg-2: #efebe2;
  --surface: #ffffff;
  --surface-2: #f7f5f0;
  --ink: #1b2238;
  --ink-2: #454d68;
  --muted: #6f7690;
  --line: #e4e0d6;
  --line-2: #d6d1c4;
  --accent: #c7661a;
  --accent-ink: #a14f0e;
  --accent-soft: #fbe9d6;
  --focus: #3b5bdb;
  --sleep: #4f54b3;
  --seek: #d97c16;
  --seek-soft: #fbe3c4;
  --avoid: #7b8194;
  --mel: #9b5de5;
  --flight: #9aa6c2;
  --daylight: rgba(247, 196, 70, 0.16);
  --good: #2f7d4f;
  --warn: #a15c07;
  --bad: #b3261e;
  --hero-a: #fde7c8;
  --hero-b: #f4d6d9;
  --hero-c: #c9cdef;
  --shadow: 0 1px 2px rgba(27, 34, 56, 0.05), 0 6px 24px -10px rgba(27, 34, 56, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1424;
    --bg-2: #121a2e;
    --surface: #161e33;
    --surface-2: #1b2440;
    --ink: #eceff7;
    --ink-2: #b9c0d6;
    --muted: #8a93ae;
    --line: #273154;
    --line-2: #34406a;
    --accent: #e89a45;
    --accent-ink: #f0b06b;
    --accent-soft: #3a2a1a;
    --focus: #8ea2ff;
    --sleep: #6f75dc;
    --seek: #c9822b;
    --seek-soft: #3b2c1a;
    --avoid: #8a92a8;
    --mel: #a275e6;
    --flight: #56648a;
    --daylight: rgba(247, 196, 70, 0.08);
    --good: #6cc792;
    --warn: #f0b35a;
    --bad: #ff8a80;
    --hero-a: #2a2340;
    --hero-b: #1d2548;
    --hero-c: #111a33;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1424;
  --bg-2: #121a2e;
  --surface: #161e33;
  --surface-2: #1b2440;
  --ink: #eceff7;
  --ink-2: #b9c0d6;
  --muted: #8a93ae;
  --line: #273154;
  --line-2: #34406a;
  --accent: #e89a45;
  --accent-ink: #f0b06b;
  --accent-soft: #3a2a1a;
  --focus: #8ea2ff;
  --sleep: #6f75dc;
  --seek: #c9822b;
  --seek-soft: #3b2c1a;
  --avoid: #8a92a8;
  --mel: #a275e6;
  --flight: #56648a;
  --daylight: rgba(247, 196, 70, 0.08);
  --good: #6cc792;
  --warn: #f0b35a;
  --bad: #ff8a80;
  --hero-a: #2a2340;
  --hero-b: #1d2548;
  --hero-c: #111a33;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); }
small { font-size: .85em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.2em; }
.ic-lg { width: 2.2rem; height: 2.2rem; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 600; color: var(--accent-ink); margin: 0 0 .6rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.bm-ring { fill: none; stroke: var(--line-2); stroke-width: 2; }
.bm-arc { fill: none; stroke: var(--sleep); stroke-width: 2.4; stroke-linecap: round; }
.bm-sun { fill: var(--seek); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.brand-tag { font-size: .78rem; color: var(--muted); display: none; }
@media (min-width: 520px) { .brand-tag { display: inline; } }
.site-nav { display: none; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--ink); }
@media (min-width: 820px) { .site-nav { display: flex; } }
.header-tools { display: flex; gap: 6px; margin-left: auto; }
@media (min-width: 820px) { .header-tools { margin-left: 18px; } }
.icon-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 .78rem var(--font-body); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 28px; background: radial-gradient(1200px 400px at 85% -10%, var(--accent-soft), transparent 70%); }
.hero-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 48px; } .hero { padding: 64px 0 40px; } }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 38rem; }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .hero-points { grid-template-columns: 1fr 1fr; } }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.hero-points .ic { color: var(--accent); margin-top: 3px; }
.hero-art { margin: 0; }
.hero-svg { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: var(--shadow); }
.sky-a { stop-color: var(--hero-a); } .sky-b { stop-color: var(--hero-b); } .sky-c { stop-color: var(--hero-c); }
.hero-grid line { stroke: var(--ink); stroke-opacity: .08; stroke-dasharray: 2 5; }
.hero-path { fill: none; stroke: var(--ink); stroke-opacity: .35; stroke-width: 2; stroke-dasharray: 6 7; }
.hero-sun { fill: var(--seek); }
.hero-moon { fill: var(--sleep); }
.hero-plane path { fill: var(--ink); }
@media (max-width: 899px) { .hero-art { max-width: 460px; } }
@media (max-width: 599px) { .hero-art { display: none; } .hero { padding: 28px 0 20px; } }

/* ---------- Cards / form ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-title { font-size: 1.5rem; margin-bottom: .2em; }
.card-title-sm { font-family: var(--font-body); font-size: 1rem; font-weight: 650; margin: 0 0 4px; letter-spacing: 0; }
.card-sub { color: var(--muted); font-size: .88rem; margin: 0 0 12px; }
.planner { display: grid; gap: 20px; padding-top: 8px; padding-bottom: 48px; align-items: start; }
@media (min-width: 980px) { .planner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; } .preview-card { position: sticky; top: 80px; } }
.form-card { padding: 22px 18px; }
@media (min-width: 600px) { .form-card { padding: 28px; } }
.group { border: 0; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); min-width: 0; }
.group:first-of-type { border-top: 0; padding-top: 10px; }
.group legend { font-weight: 650; font-size: .95rem; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.group legend + * { clear: both; }
.legend-hint { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.field label { font-size: .84rem; font-weight: 500; color: var(--ink-2); }
.hint { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="date"], input[type="time"], input[type="number"] {
  width: 100%; min-width: 0; height: 46px; padding: 0 12px; font: 500 1rem var(--font-body); color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); appearance: none; -webkit-appearance: none;
}
input[type="date"], input[type="time"] { padding-right: 6px; }
input::-webkit-date-and-time-value { text-align: left; }
input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
input[aria-invalid="true"] { border-color: var(--bad); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.grid-2 + .grid-2, .seg + .grid-2, .grid-2 + .seg { margin-top: 12px; }
.field-note { color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
.field-note:empty { display: none; }
.route-row { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: end; }
.swap-btn { justify-self: center; transform: rotate(90deg); }
@media (min-width: 600px) { .route-row { grid-template-columns: 1fr auto 1fr; gap: 12px; } .swap-btn { transform: none; margin-bottom: 3px; } }

.combo-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); max-height: 320px; overflow: auto; }
.combo-list li { padding: 9px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--surface-2); }
.combo-list .c-name { font-weight: 550; }
.combo-list .c-meta { color: var(--muted); font-size: .8rem; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-list .c-empty { color: var(--muted); cursor: default; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 38px; padding: 0 6px; border-radius: 9px; font-size: .9rem; font-weight: 550; color: var(--ink-2); text-align: center; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); }

.goal-grid { display: grid; gap: 8px; }
@media (min-width: 600px) { .goal-grid { grid-template-columns: 1fr 1fr; } .goal-grid .goal:first-child { grid-column: 1 / -1; } }
.goal { position: relative; display: block; cursor: pointer; }
.goal input { position: absolute; opacity: 0; }
.goal span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 40px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); height: 100%; position: relative; }
.goal span::before { content: ''; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.goal strong { font-weight: 600; font-size: .95rem; }
.goal small { color: var(--muted); font-size: .82rem; }
.goal input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.goal input:checked + span::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, var(--surface) 50%); }
.goal input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
#event-fields { margin-top: 12px; }

.switch { display: flex; align-items: center; gap: 12px; padding: 6px 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .15s; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch small { color: var(--muted); }

.form-error { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad); border-radius: 10px; padding: 10px 14px; font-weight: 500; margin: 8px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 599px) {
  .form-actions { position: sticky; bottom: 0; margin: 18px -18px -22px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
  .form-actions .btn-primary { flex: 1; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; font: 600 .95rem var(--font-body); cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--accent)); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-soft { background: var(--surface); color: var(--ink); border-color: var(--line-2); min-height: 40px; padding: 0 14px; font-size: .9rem; }
.btn-soft:hover { border-color: var(--ink-2); }

/* ---------- Preview card ---------- */
.preview-card { padding: 22px; min-height: 180px; }
.preview-empty { display: grid; place-items: center; text-align: center; gap: 10px; color: var(--muted); padding: 24px 8px; }
.preview-empty p { margin: 0; max-width: 20rem; }
.pv-clocks { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.pv-clock { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.pv-city { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-time { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pv-day { color: var(--muted); font-size: .8rem; }
.pv-arrow { color: var(--muted); }
.pv-gap { margin-top: 16px; display: flex; gap: 14px; align-items: center; }
.pv-gap-num { white-space: nowrap; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.pv-gap-text { color: var(--ink-2); font-size: .95rem; }
.pv-dial { margin: 18px auto 4px; display: block; width: 100%; max-width: 300px; }
.pv-dial .d-ring { fill: none; stroke: var(--line); stroke-width: 10; }
.pv-dial .d-arc { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; }
.pv-dial .d-arc.alt { stroke: var(--line-2); stroke-dasharray: 2 6; stroke-width: 4; }
.pv-dial .d-dot { fill: var(--surface); stroke-width: 3; }
.pv-dial .d-dot.from { stroke: var(--sleep); }
.pv-dial .d-dot.to { stroke: var(--seek); }
.pv-dial text { fill: var(--muted); font: 500 10px var(--font-body); text-anchor: middle; }
.pv-dial .d-label { fill: var(--ink); font-weight: 600; font-size: 11px; }
.pv-tip { display: block; margin-top: 8px; font-size: .84rem; color: var(--muted); }
.pv-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; color: var(--ink-2); }

/* ---------- Results ---------- */
.results { padding: 12px 0 56px; border-top: 1px solid var(--line); background: linear-gradient(var(--bg-2), var(--bg) 320px); }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 28px 0 18px; }
.results-head h2 { margin: 0; }
.results-links { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--muted); }
.results-links .link-btn { font-size: .88rem; padding: 2px 0; }
.results-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.results-actions .btn { min-height: 44px; }
@media (max-width: 599px) {
  .results-head { align-items: stretch; }
  .results-title { width: 100%; }
  .results-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .results-actions #print-btn { grid-column: 1 / -1; }
}
.schedule-tools { display: flex; gap: 8px; align-items: center; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: .86rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 16px; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 550; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 650; line-height: 1.15; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.stat-sub { color: var(--ink-2); font-size: .85rem; }
.callout { margin-top: 14px; padding: 18px; display: grid; gap: 6px 14px; grid-template-columns: auto 1fr; align-items: start; }
.callout .ic-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.callout h3 { font-family: var(--font-body); font-weight: 650; font-size: 1.02rem; margin: 2px 0 4px; }
.callout p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.callout p + p { margin-top: 6px; }
.callout p.rule-flip { margin-top: 8px; font-size: .85rem; font-weight: 550; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px; border-radius: 10px; }
.callout p.callout-note { margin-top: 6px; font-size: .82rem; color: var(--muted); }

.now { margin-top: 14px; padding: 16px 18px; display: grid; gap: 12px; }
@media (min-width: 720px) { .now { grid-template-columns: auto 1fr auto; align-items: center; } }
.now-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.now-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.now-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.now-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.now-icon.seek { background: var(--seek-soft); color: var(--accent-ink); }
.now-icon.avoid { background: color-mix(in srgb, var(--avoid) 18%, var(--surface)); color: var(--ink-2); }
.now-icon.sleep { background: color-mix(in srgb, var(--sleep) 18%, var(--surface)); color: var(--sleep); }
.now-icon.neutral, .now-icon.flight { background: var(--surface-2); color: var(--ink-2); }
.now-title { font-weight: 650; }
.now-sub { color: var(--ink-2); font-size: .9rem; }
.now-next { color: var(--muted); font-size: .88rem; }
@media (min-width: 720px) { .now-next { text-align: right; } }

.event-card { margin-top: 14px; padding: 18px; }
.event-top { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.event-score { display: flex; align-items: center; gap: 12px; }
.meter { width: 120px; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.pill.sharp { color: var(--good); } .pill.good { color: var(--good); } .pill.groggy { color: var(--warn); } .pill.night { color: var(--bad); }
.compare { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .9rem; }
.compare th, .compare td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.compare th { font-weight: 550; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.compare tr.chosen td { font-weight: 650; }
.event-tips { margin: 10px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .9rem; display: grid; gap: 4px; }

.leg-tabs { display: inline-flex; margin-top: 22px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 4px; gap: 4px; }
.leg-tabs button { border: 0; background: transparent; font: 600 .92rem var(--font-body); color: var(--ink-2); padding: 9px 16px; border-radius: 9px; cursor: pointer; }
.leg-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.two-col { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.6fr 1fr; } }
.chart-card, .habits-card, .schedule-card { padding: 18px; }
.schedule-card { margin-top: 14px; }
.schedule-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.schedule-head .card-sub { margin-bottom: 8px; }
.seg-sm { padding: 3px; border-radius: 10px; }
.seg-sm span { min-height: 32px; padding: 0 14px; font-size: .86rem; border-radius: 8px; }
.legend-inline { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .82rem; color: var(--ink-2); }
.legend-inline li { display: inline-flex; align-items: center; gap: 6px; }
.legend-inline .sw { width: 16px; height: 10px; border-radius: 3px; }
.legend-inline .sw-mel { width: 10px; height: 10px; margin: 0 3px; box-shadow: none; }
.habits { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; color: var(--ink-2); }
.habits li { display: flex; gap: 10px; align-items: flex-start; }
.habits .ic { color: var(--accent-ink); margin-top: 3px; }

/* schedule table */
.table-wrap { overflow-x: auto; margin: 0 -2px; }
.sched { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.sched th, .sched td { text-align: left; vertical-align: top; padding: 9px 10px; border-top: 1px solid var(--line); }
.sched thead th { border-top: 0; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 4px; white-space: nowrap; }
.sched tbody th { font-weight: 400; min-width: 8.5rem; }
@media (min-width: 720px) { .sched { table-layout: fixed; } .sched thead th:first-child { width: 24%; } }
.sched tbody th b { display: block; font-weight: 650; white-space: nowrap; }
.sched small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.sched small.ev { color: var(--ink); font-weight: 600; }
.sched .t { display: block; font-weight: 600; white-space: nowrap; }
.sched .t + small + .t, .sched small + .t { margin-top: 4px; }
.sched .none { color: var(--line-2); }
.sched td.c-sleep .t { color: var(--sleep); }
.sched td.c-seek .t { color: var(--accent-ink); }
.sched td.c-mel .t { color: var(--mel); }
.sched tr.flight-row td { background: var(--surface-2); color: var(--ink-2); font-size: .86rem; }
.flight-row td > span { vertical-align: middle; }
.fr-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; color: var(--ink-2); }
.flight-row small { display: inline; }
.sched tr.adjusted-row th small { color: var(--good); }
.sched tr.adjusted-row th b { white-space: normal; }
.table-key { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.table-key b { color: var(--ink-2); font-weight: 600; }
.sched tr.adjusted-row td { color: var(--ink-2); }
@media (max-width: 719px) {
  /* stack each day into a compact block on phones */
  .sched thead { display: none; }
  .sched, .sched tbody, .sched tr { display: block; }
  .sched tbody tr { border-top: 1px solid var(--line); padding: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .sched tbody th { grid-column: 1 / -1; border: 0; padding: 0; }
  .sched tbody th b, .sched tbody th small { display: inline; margin-right: 8px; }
  .sched td { display: block; border: 0; padding: 0; }
  .sched td::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
  .sched tr.flight-row, .sched tr.adjusted-row { display: block; }
  .sched tr.flight-row td { padding: 8px 10px; border-radius: 10px; }
  .sched tr.flight-row td::before, .sched tr.adjusted-row td::before { content: none; }
  .sched tr.adjusted-row td { margin-top: 4px; }
  .sched td.empty { display: none; }
}
.sw { width: 26px; height: 12px; border-radius: 4px; flex: none; display: inline-block; }
.sw-sleep { background: var(--sleep); }
.sw-seek { background: var(--seek); }
.sw-avoid { background: repeating-linear-gradient(135deg, var(--avoid) 0 2px, transparent 2px 5px); border: 1px solid var(--avoid); }
.sw-flight { background: repeating-linear-gradient(45deg, var(--flight) 0 2px, transparent 2px 6px); border: 1px solid var(--flight); }
.sw-mel { width: 12px; height: 12px; border-radius: 50%; background: var(--mel); margin: 0 7px; box-shadow: 0 0 0 2px var(--surface); }
.sw-day { background: var(--daylight); border: 1px dashed color-mix(in srgb, var(--seek) 50%, transparent); }

/* progress chart */
.progress-chart { position: relative; }
.progress-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.pc-grid { stroke: var(--line); stroke-width: 1; }
.pc-axis { fill: var(--muted); font: 500 11px var(--font-body); }
.pc-bar { fill: var(--sleep); }
.pc-bar.prep { fill: color-mix(in srgb, var(--sleep) 55%, var(--surface)); }
.pc-bar.done { fill: var(--good); }
.pc-target { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; }
.pc-target-label { fill: var(--accent-ink); font: 600 11px var(--font-body); }
.pc-hit { fill: transparent; cursor: default; }
.pc-hit:hover + .pc-bar, .pc-hit:focus + .pc-bar { opacity: .8; }
.pc-hit:focus { outline: none; }
.pc-label { fill: var(--ink-2); font: 600 11px var(--font-body); }

/* timeline */
.timeline { display: grid; gap: 0; margin-top: 8px; }
.tl-scale, .tl-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
.tl-row { padding: 10px 0; border-top: 1px dashed var(--line); }
.tl-scale + .tl-row { border-top: 0; }
@media (min-width: 720px) { .tl-scale, .tl-row { grid-template-columns: 150px 1fr; gap: 14px; align-items: start; } }
.tl-scale .tl-ticks { position: relative; height: 18px; }
.tl-scale .tl-ticks span { position: absolute; transform: translateX(-50%); font-size: .74rem; font-weight: 550; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl-scale .tl-ticks span:first-child { transform: none; }
.tl-scale .tl-ticks span:last-child { transform: translateX(-100%); }
.tl-scale > :first-child { display: none; }
.tl-row + .tl-scale { margin-top: 6px; }
@media (min-width: 720px) { .tl-scale > :first-child { display: block; } }
.tl-label { display: flex; gap: 8px; align-items: baseline; font-size: .86rem; min-width: 0; }
@media (min-width: 720px) { .tl-label { flex-direction: column; gap: 0; padding-top: 2px; } }
.tl-date { font-weight: 600; white-space: nowrap; }
.tl-kind { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-main { min-width: 0; }
.tl-track { position: relative; height: 32px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); overflow: hidden; }
/* hour gridlines drawn over the bars, so every start and stop can be read against the scale */
.tl-track::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 30%, transparent) 1px, transparent 1px),
    linear-gradient(to right, color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 1px);
  background-size: calc(100% / 8) 100%, calc(100% / 24) 100%;
  background-position: -0.5px 0, -0.5px 0;
}
.tl-seg { position: absolute; top: 0; bottom: 0; }
.tl-day { background: var(--daylight); }
.tl-sleep { background: var(--sleep); top: 5px; bottom: 5px; border-radius: 4px; box-shadow: 0 0 0 1px var(--surface-2); }
.tl-sleep.flight-sleep { top: 8px; bottom: 8px; opacity: .85; }
.tl-seek { background: var(--seek); top: 5px; bottom: 5px; border-radius: 4px; box-shadow: 0 0 0 1px var(--surface-2); }
.tl-avoid { top: 5px; bottom: 5px; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--avoid) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--avoid); }
.tl-flight { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--flight) 70%, transparent) 0 2px, transparent 2px 7px); border-left: 2px solid var(--flight); border-right: 2px solid var(--flight); }
.tl-off { background: var(--surface-2); opacity: .9; }
.tl-mel { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--mel); box-shadow: 0 0 0 2px var(--surface-2); z-index: 2; }
.tl-event { position: absolute; top: 2px; bottom: 2px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; z-index: 2; }
.tl-now { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--bad); z-index: 4; }
.tl-seg.hl, .tl-mel.hl, .tl-event.hl { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 2; }
.tl-row.adjusted .tl-kind:not(.tl-clock)::after { content: ' ✓'; color: var(--good); }
.tl-clock { font-size: .74rem; }
@media (max-width: 719px) { .tl-label { flex-wrap: wrap; column-gap: 8px; row-gap: 0; } }
.tl-chips { list-style: none; margin: 7px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px 16px; font-size: .82rem; color: var(--ink-2); }
.tl-chips li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: default; border-radius: 6px; }
.tl-chips li.hl { background: var(--surface-2); box-shadow: 0 0 0 4px var(--surface-2); }
.tl-chips b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-chips .sw { width: 16px; height: 10px; border-radius: 3px; }
.tl-chips .sw-mel { width: 10px; height: 10px; margin: 0 3px; box-shadow: none; }
.sw-event { width: 4px !important; height: 14px !important; border-radius: 2px; background: var(--ink); margin: 0 6px; }
.tl-more { font-size: .85rem; color: var(--muted); padding: 8px 0 0; margin: 0; border-top: 1px dashed var(--line); }
@media (min-width: 720px) { .tl-more { padding-left: 164px; } }

/* day cards */
.days-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 30px 0 12px; }
.days-head .section-sub { margin: 0; }
.section-sub { font-size: 1.35rem; margin: 30px 0 12px; }
.link-btn { background: none; border: 0; padding: 4px 2px; font: 600 .9rem var(--font-body); color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.days { display: grid; gap: 10px; align-items: start; }
.days .day-body > * { max-width: 760px; }
.day { padding: 0; }
.day-head { display: grid; grid-template-columns: 1fr auto 20px; gap: 10px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.day-head::-webkit-details-marker { display: none; }
.day-head > span:first-child { display: flex; flex-direction: column; }
.day-kicker { font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .09em; color: var(--accent-ink); }
.day-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.day-zone { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; justify-self: center; }
details[open] > .day-head .chev { transform: rotate(225deg); margin-top: 4px; }
.day-body { padding: 0 18px 14px; border-top: 1px solid var(--line); }
.day-body-clock { margin: 10px 0 6px; font-size: .85rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.day-body-clock .ic { color: var(--muted); }
.day-tip { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--ink-2); }
.day-tip .ic { color: var(--muted); margin-top: 2px; }
.actions { list-style: none; margin: 0; padding: 0; display: grid; }
.act { display: grid; grid-template-columns: 20px 86px 26px 1fr; gap: 8px; align-items: start; padding: 7px 0; border-top: 1px dashed var(--line); }
.act:first-child { border-top: 0; }
.act-check { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--good); cursor: pointer; }
.act-time { font-weight: 600; font-size: .88rem; font-variant-numeric: tabular-nums; padding-top: 1px; color: var(--ink); white-space: nowrap; }
.act-time small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.act-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.act-icon .ic { width: 1rem; height: 1rem; }
.act-icon.seek { background: var(--seek-soft); color: var(--accent-ink); }
.act-icon.avoid { background: color-mix(in srgb, var(--avoid) 16%, var(--surface)); }
.act-icon.sleep { background: color-mix(in srgb, var(--sleep) 16%, var(--surface)); color: var(--sleep); }
.act-icon.mel { background: color-mix(in srgb, var(--mel) 16%, var(--surface)); color: var(--mel); }
.act-icon.event { background: var(--ink); color: var(--bg); }
.act-text { font-size: .92rem; min-width: 0; padding-top: 1px; }
.act-text b { font-weight: 600; }
.act-note { display: block; color: var(--ink-2); font-size: .84rem; }
.act-text details { display: inline; }
.act-text summary { cursor: pointer; color: var(--muted); font-size: .78rem; list-style: none; display: inline; }
.act-text summary::-webkit-details-marker { display: none; }
.act-text summary::before { content: 'Why?'; text-decoration: underline dotted; text-underline-offset: 3px; }
.act-text details[open] summary::before { content: 'Why: '; text-decoration: none; }
.act-text details p { display: inline; color: var(--muted); font-size: .8rem; margin: 0; }
.act.done .act-text, .act.done .act-time { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
@media (max-width: 420px) { .act { grid-template-columns: 20px 74px 1fr; } .act-icon { display: none; } }
.day-collapsed { padding: 14px 18px; display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: .92rem; }
.day-collapsed .ic { color: var(--good); width: 1.4rem; height: 1.4rem; }
.flight-card { border-style: dashed; border-color: var(--line-2); background: color-mix(in srgb, var(--surface) 70%, var(--surface-2)); }
.disclaimer-inline { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .85rem; margin: 22px 0 0; }

/* ---------- Science / protocol / faq ---------- */
.prose-section { padding-top: 56px; padding-bottom: 8px; }
.science-grid { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 820px) { .science-grid { grid-template-columns: 1fr 1fr; } }
.sci-card { padding: 20px; }
.sci-card h3 { font-size: 1.15rem; }
.sci-card p { color: var(--ink-2); margin: 0; }
.prc { margin: 14px 0 0; }
.prc svg { width: 100%; max-width: 380px; height: auto; display: block; }
.prc-delay { fill: color-mix(in srgb, var(--sleep) 18%, var(--surface)); stroke: var(--sleep); }
.prc-adv { fill: var(--seek-soft); stroke: var(--seek); }
.prc-axis { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 3; }
.prc-t { fill: var(--ink-2); font: 500 12px var(--font-body); text-anchor: middle; }
.prc-t.strong { fill: var(--ink); font-weight: 650; }
.prc-l { fill: var(--muted); font: 500 11px var(--font-body); text-anchor: middle; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { padding: 22px 20px 18px 20px; position: relative; }
.step-n { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem var(--font-display); background: var(--accent-soft); color: var(--accent-ink); }
.step h3 { padding-right: 44px; }
.step h3 small { display: block; font: 500 .82rem var(--font-body); color: var(--muted); margin-top: 4px; }
.step ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); display: grid; gap: 6px; }
.step-sub { margin: 10px 0 6px; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.faq { display: grid; gap: 10px; margin-top: 18px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
.faq details p { color: var(--ink-2); margin: 0 0 14px; }

.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .9rem; color: var(--ink-2); }
.site-footer p { margin: 0 0 6px; }

a.ref { font-size: .72em; vertical-align: super; line-height: 0; text-decoration: none; margin-left: 1px; color: var(--accent-ink); }
a.ref:hover { text-decoration: underline; }
.refs { margin: 18px 0 0; padding-left: 1.4em; max-width: 860px; display: grid; gap: 10px; color: var(--ink-2); font-size: .92rem; }
.refs li { padding-left: 4px; }
.refs li:target { background: var(--accent-soft); border-radius: 6px; }
.refs a { word-break: break-word; }

/* ---------- Tooltip & toast ---------- */
.tooltip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--bg); padding: 8px 10px; border-radius: 8px; font-size: .82rem; line-height: 1.35; max-width: 240px; box-shadow: var(--shadow); }
.tooltip b { font-weight: 650; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 550; font-size: .92rem; box-shadow: var(--shadow); }

/* ---------- Print: a compact summary ---------- */
#print-sheet { display: none; }
@media print {
  @page { margin: 16mm 15mm 16mm; }
  :root:not(#print-sheet) {
    --bg: #fff; --surface: #fff; --surface-2: #f2f2f2; --ink: #111; --ink-2: #333; --muted: #666;
    --line: #d6d6d6; --line-2: #b5b5b5; --sleep: #4f54b3; --seek: #d97c16; --avoid: #555; --mel: #8a4fd6;
    --flight: #8791ad; --daylight: rgba(247, 196, 70, 0.22); --accent-ink: #8a430b; --good: #2f7d4f; --shadow: none;
    color-scheme: light;
  }
  html, body { background: #fff; }
  body { font-size: 10pt; line-height: 1.4; }
  body.has-print-sheet > *:not(#print-sheet):not(svg) { display: none !important; }
  body:not(.has-print-sheet) .site-header, body:not(.has-print-sheet) .skip { display: none !important; }
  /* side padding keeps content off the paper edge even where a browser ignores @page margins */
  #print-sheet { display: block; color: var(--ink); padding: 0 3mm; max-width: 100%; }
  #print-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; }
}
.ps-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 5px; }
.ps-head h1 { font-size: 18pt; margin: 0; }
.ps-brand { font-size: 8.5pt; color: var(--muted); }
.ps-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0; border: 1px solid var(--line-2); border-radius: 5px; }
.ps-facts div { padding: 5px 8px; border-left: 1px solid var(--line-2); }
.ps-facts div:first-child { border-left: 0; }
.ps-facts dt { font-size: 7pt; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ps-facts dd { margin: 1px 0 0; font-weight: 650; font-size: 10pt; }
.ps-rules { margin: 0 0 4px; padding-left: 1.1em; font-size: 9pt; columns: 2; column-gap: 8mm; }
.ps-rules li { margin: 0 0 2px; break-inside: avoid; }
.ps-leg { margin-top: 10px; }
.ps-section { margin: 0 0 4px; font: 650 11pt var(--font-body); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; break-after: avoid; }
.ps-section small { font-weight: 400; font-size: 8.5pt; color: var(--ink-2); }
.ps-legend { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 8pt; color: var(--ink-2); margin: 0 0 4px; padding: 0; list-style: none; }
.ps-legend li { display: inline-flex; align-items: center; gap: 5px; }
.ps-legend .sw { width: 14px; height: 9px; }
.ps-legend .sw-mel { width: 9px; height: 9px; margin: 0 2px; box-shadow: none; }
#print-sheet .table-wrap { overflow: visible; margin: 0; }
#print-sheet .sched { font-size: 8.8pt; table-layout: fixed; }
#print-sheet .sched thead th:first-child { width: 19%; }
#print-sheet .sched .t, #print-sheet .sched tbody th b { white-space: normal; }
#print-sheet .sched th, #print-sheet .sched td { padding: 4px 6px; }
#print-sheet .sched thead th { font-size: 7pt; padding-bottom: 3px; border-bottom: 1.5px solid var(--ink); }
#print-sheet .sched tbody th { min-width: 0; }
#print-sheet .sched small { font-size: 7.5pt; }
#print-sheet .sched tr { break-inside: avoid; }
#print-sheet .table-key { font-size: 7.5pt; margin-top: 4px; }
#print-sheet .sched tr.flight-row td { font-size: 8.3pt; padding: 3px 6px; }
#print-sheet .fr-ic { width: 16px; height: 16px; margin-right: 3px; }
#print-sheet .timeline { margin-top: 0; }
#print-sheet .tl-scale, #print-sheet .tl-row { grid-template-columns: 105px 1fr; gap: 8px; align-items: start; }
#print-sheet .tl-scale > :first-child { display: block; }
#print-sheet .tl-row { padding: 4px 0; break-inside: avoid; }
#print-sheet .tl-label { flex-direction: column; gap: 0; font-size: 8.5pt; }
#print-sheet .tl-kind { font-size: 7.5pt; }
#print-sheet .tl-track { height: 18px; border-radius: 4px; }
#print-sheet .tl-sleep, #print-sheet .tl-seek, #print-sheet .tl-avoid { top: 3px; bottom: 3px; border-radius: 2px; }
#print-sheet .tl-sleep.flight-sleep { top: 5px; bottom: 5px; }
#print-sheet .tl-mel { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
#print-sheet .tl-chips { margin-top: 3px; font-size: 8pt; gap: 1px 12px; }
#print-sheet .tl-chips .sw { width: 12px; height: 8px; }
#print-sheet .tl-scale .tl-ticks span { font-size: 7.5pt; }
#print-sheet .tl-more { padding-left: 113px; font-size: 8pt; }
.ps-foot { margin-top: 10px; padding-top: 5px; border-top: 1px solid var(--line-2); font-size: 7.5pt; color: var(--muted); word-break: break-all; }
