@font-face {
  font-family: Rubik;
  src: url("/assets/rubik.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --paper:#f2f5f8; --surface:#fff; --ink:#15213a; --muted:#526177; --line:#cbd4df;
  --soft:#e8eef4; --accent:#155e61; --accent-bg:#d8efec; --focus:#b76216;
  --error:#a42737; --error-bg:#fff0f1; --shadow:0 12px 36px rgb(0 0 0 / 14%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:#101a2b; --surface:#18263b; --ink:#edf3fb; --muted:#b6c4d6; --line:#41536c;
    --soft:#203148; --accent:#a9ded8; --accent-bg:#213f47; --focus:#f8c988;
    --error:#ffafba; --error-bg:#402531; --shadow:0 12px 42px rgb(0 0 0 / 42%);
  }
}
* { box-sizing:border-box }
[hidden] { display:none !important }
body { margin:0; background:var(--paper); color:var(--ink); font:400 16px/1.6 Rubik,Arial,sans-serif; }
a { color:var(--accent); text-underline-offset:.2em }
a,button,input,select,textarea { -webkit-tap-highlight-color:transparent }
button,input,select,textarea { font:inherit }
button,select { cursor:pointer }
button:disabled { opacity:.62; cursor:wait }
:focus-visible { outline:3px solid var(--focus); outline-offset:4px }
h1,h2,h3,h4,p { margin:0 }
h1,h2,h3,h4 { line-height:1.22 }
.wrap { width:min(1160px,100% - 72px); margin-inline:auto }
.skip,.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.skip:focus { width:auto; height:auto; z-index:6; margin:8px; padding:8px 16px; clip-path:none; background:white; color:#101c36 }
.mast { background:#101c36; color:#e9eff9; border-bottom:1px solid #344460 }
.mast-inner { min-height:67px; display:flex; align-items:center; gap:clamp(22px,5vw,84px) }
.brand { display:inline-flex; align-items:center; gap:.48em; font-size:26px; font-weight:650; letter-spacing:-1.6px; direction:ltr; white-space:nowrap; text-decoration:none; color:#f5f8ff }
.brand i { width:24px; height:24px; border-radius:100%; display:block; background:radial-gradient(circle at 73% 29%,#101c36 0 44%,transparent 46%),#f8c988; transform:rotate(13deg) }
.mast nav { display:flex; align-items:stretch; gap:26px; align-self:stretch }
.mast nav a { color:#c7d4e5; font-size:14px; display:grid; align-content:center; position:relative; text-decoration:none; white-space:nowrap }
.mast nav a[aria-current="page"] { color:white;font-weight:600 }
.mast nav a[aria-current="page"]::after { content:""; background:#a9ded8; position:absolute; bottom:0; inset-inline:0; height:3px }
.mast a:hover { color:white }
.nav-action { margin-inline-start:auto; text-decoration:none; color:#e7f2f6; border:1px solid #75839c; padding:6px 15px; border-radius:7px; font-size:14px; white-space:nowrap }
.nav-action span {margin-inline-start:6px}
.hero { background:#101c36; color:#f3f6fa; overflow:hidden; isolation:isolate }
.hero-inner { display:grid; grid-template-columns:minmax(0, 1.14fr) minmax(0, .86fr); align-items:center; min-height:370px; gap:clamp(12px, 3vw, 54px) }
.hero-copy { min-width:0; padding-block:42px 46px }
.hero h1 { max-width:15ch; font-size:clamp(43px,4.8vw,71px); font-weight:560; line-height:1.04; letter-spacing:-.052em; text-wrap:balance }
.hero p { font-size:clamp(15px,1.55vw,19px); line-height:1.65; max-width:48ch; color:#cbd7e6; margin:15px 0 21px }
.hero-action,.primary { display:inline-flex; align-items:center; justify-content:center; gap:15px; padding:9px 19px; background:#f8c988; border:1px solid transparent; color:#192538; font-weight:600; text-decoration:none; border-radius:7px; min-height:42px }
.hero-action:hover,.primary:hover { background:#ffdaa7 }
.hero-actions { display:flex; flex-wrap:wrap; gap:8px 20px; align-items:center }
.hero-api { display:inline-flex; align-items:center; gap:7px; min-height:40px; color:#b8e7df; font-size:15px; text-decoration:none; white-space:nowrap }
.hero-api:hover { text-decoration:underline }
.guide-tools { margin:14px 0; padding-inline-start:20px }
.guide-tools li + li { margin-top:6px }
.moon-field { position:relative; align-self:stretch; overflow:hidden; min-width:0; pointer-events:none; mix-blend-mode:screen }
.moon-field img { display:block; position:absolute; width:min(84%,355px); height:auto; right:6%; top:50%; transform:translateY(-47%) rotate(-15deg); border-radius:100%; filter:grayscale(.84) contrast(1.08) brightness(.83); mix-blend-mode:screen }
.orbit { position:absolute; width:84%; aspect-ratio:1; border:1px solid #52607a; border-radius:50%; right:9%; top:49%; transform:translateY(-50%) scaleX(1.18) rotate(-20deg); opacity:.55 }
.board { padding-block:34px 47px; min-height:400px; scroll-margin:16px }
.section-head,.unit-heading,.record-top { display:flex; justify-content:space-between; align-items:center; gap:14px }
.section-head { margin-bottom:19px }
.section-head h2 { font-size:clamp(27px,3.1vw,42px); font-weight:560; letter-spacing:-.045em }
.muted,.fine { color:var(--muted) }
.section-head p { margin-top:4px }
.pilot { display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); white-space:nowrap }
.pilot i {width:9px;height:9px;border:2px solid var(--accent);border-radius:50%}
.filters { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:16px }
.filters label { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted) }
input,textarea,select { border:1px solid var(--line); color:var(--ink); background:var(--surface); border-radius:7px; max-width:100%; line-height:1.45; padding:9px 12px }
select { min-height:41px; padding-inline-end:22px }
input::placeholder,textarea::placeholder { color:var(--muted); opacity:.91 }
.search-field { position:relative; flex:1 1 210px; max-width:410px }
.search-field input { width:100%; padding-inline-start:37px; min-height:41px }
.search-field i { position:absolute; pointer-events:none; width:13px; height:13px; border:1.5px solid var(--muted); border-radius:50%; inset-inline-start:13px; top:12px }
.search-field i::after { content:""; position:absolute; width:6px; height:1.5px; background:var(--muted); transform:rotate(45deg); right:-4px; bottom:-2px }
.problem-row { display:grid; grid-template-columns:minmax(84px,105px) 1fr auto; align-items:center; gap:24px; padding:19px 22px; background:var(--surface); border:1px solid var(--line); border-bottom:0; color:var(--ink); text-decoration:none; position:relative }
.problem-row:first-child { border-radius:12px 12px 0 0 }
.problem-row:last-child { border-bottom:1px solid var(--line); border-radius:0 0 12px 12px }
.problem-row:only-child { border-radius:12px }
.problem-row:hover { background:var(--soft) }
.problem-row h3 { font-size:clamp(17px,1.8vw,22px); font-weight:540; letter-spacing:-.027em; overflow-wrap:anywhere }
.problem-row p { margin-top:4px; color:var(--muted); font-size:14px; line-height:1.55; overflow-wrap:anywhere }
.domain { display:inline-flex; align-items:center; gap:7px; font-weight:550; font-size:13px; color:var(--ink); overflow-wrap:anywhere }
.domain::before { content:""; display:inline-block; width:10px; height:10px; background:#589b99; border-radius:3px; flex:none }
.tone2::before { background:#be874d;border-radius:50% }
.tone3::before { background:#7c79b1;transform:rotate(45deg);border-radius:2px }
.tone4::before { background:#6696c1;border-radius:50% 50% 2px 2px }
.row-action { display:flex; align-items:center; gap:16px; font-size:13px; color:var(--accent); white-space:nowrap; font-weight:540 }
.row-arrow { font-size:20px; font-weight:400; color:var(--muted) }
.provenance { display:block; color:var(--muted); font-size:11px; margin-top:3px; font-weight:400 }
.empty { border:1px dashed var(--line); border-radius:10px; padding:30px; color:var(--muted); background:var(--surface) }
.empty p { margin-bottom:10px }
.foot { display:flex; align-items:center; gap:18px; padding-block:21px 30px; border-top:1px solid var(--line); font-size:13px; color:var(--muted) }
.foot-brand { font-size:17px; color:var(--ink); font-weight:600; letter-spacing:-.055em }
.foot>div { margin-inline-start:auto; display:flex; gap:20px }
.foot a { color:var(--muted) }
dialog { padding:0; width:min(700px,calc(100% - 36px)); max-height:88dvh; border:1px solid var(--line); border-radius:16px; color:var(--ink); background:var(--surface); box-shadow:var(--shadow); overflow:auto; overscroll-behavior:contain }
dialog::backdrop { background:#081120ac }
body:has(dialog[open]) { overflow:hidden }
.sheet-head { position:sticky; z-index:2; top:0; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:21px 26px 17px; background:var(--surface); border-bottom:1px solid var(--line) }
.sheet-head h2 { font-size:clamp(22px,3.2vw,31px); font-weight:560; letter-spacing:-.035em; overflow-wrap:anywhere }
.sheet-head .domain { margin-bottom:5px }
.close { border:1px solid var(--line); border-radius:50%; width:37px; height:37px; flex:none; color:var(--ink); background:var(--surface); font-size:25px; line-height:1 }
.sheet-body { padding:22px 26px 27px }
.sheet-body h3 { font-size:20px; margin:0 0 7px; font-weight:570 }
.sheet-body h4 { font-size:16px; margin:14px 0 4px }
.sheet-body p,.sheet-body li { overflow-wrap:anywhere }
.sheet-body p+p { margin-top:9px }
.lead { font-size:17px; line-height:1.6 }
.block { margin-top:22px }
.fine { font-size:13px; line-height:1.55 }
.unit-tabs { display:grid; gap:5px; margin-top:8px }
.unit-tabs a { display:flex; gap:10px; align-items:baseline; color:var(--ink); background:var(--soft); border:1px solid transparent; border-radius:7px; padding:8px 11px; font-size:14px; line-height:1.45; text-decoration:none; overflow-wrap:anywhere }
.unit-tabs a[aria-current="true"] { border-color:var(--accent); background:var(--accent-bg) }
.unit-tabs a span { color:var(--muted); font-size:12px; flex:none }
.task-panel { background:var(--paper); padding:16px 18px; border-radius:10px; margin-top:20px }
.task-panel .definition { font-weight:550; font-size:18px; margin:8px 0 }
.tag { display:inline-block; border-radius:20px; padding:2px 9px; background:var(--accent-bg); color:var(--accent); font-size:12px; font-weight:550; white-space:nowrap }
.raw { white-space:pre-wrap; line-height:1.7; overflow-wrap:anywhere; unicode-bidi:plaintext }
.raw a { overflow-wrap:anywhere }
details { margin-top:12px }
summary { cursor:pointer; color:var(--accent); font-weight:550; width:fit-content }
details .raw { padding-block:8px 4px }
.secondary,.plain { display:inline-flex; align-items:center; justify-content:center; min-height:40px; color:var(--accent); border:1px solid var(--line); border-radius:7px; padding:6px 14px; text-decoration:none; background:var(--surface) }
.secondary:hover,.plain:hover,.close:hover { background:var(--soft) }
.plain { font-size:14px; min-height:34px }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:14px }
.stack { display:grid; gap:15px }
.stack label { display:grid; gap:5px; font-weight:550; font-size:14px }
.stack input,.stack textarea { width:100%; font-weight:400 }
.stack textarea { resize:vertical; min-height:76px }
.stack .fine { font-weight:400 }
.stack fieldset { padding:15px; margin:2px 0 0; border:1px solid var(--line); border-radius:9px }
.stack fieldset legend { font-weight:550; padding-inline:5px }
.form-error { background:var(--error-bg); color:var(--error); border-radius:6px; padding:8px 12px; margin-top:12px }
.record { border-block-start:1px solid var(--line); margin:10px 0; padding:12px 0 3px }
.record.mine .record-top strong { color:var(--accent) }
.unit-heading { align-items:baseline }
.recent { margin-top:26px }
.recent h3 { font-size:18px; font-weight:550; margin-bottom:6px }
.recent ul { list-style:none; padding:0; margin:0 }
.recent li { padding:6px 0; color:var(--muted); font-size:14px }
.recent li a { margin-inline-end:6px }
.steps { padding-inline-start:22px }
.steps li { padding-inline-start:4px; margin-bottom:8px }
#toast { position:fixed; bottom:18px; inset-inline-start:50%; transform:translateX(-50%); z-index:5; max-width:calc(100% - 32px); border-radius:8px; background:#142947; color:white; padding:10px 17px; box-shadow:var(--shadow); pointer-events:none }
#toast:empty { display:none }
@media (max-width:760px) {
  .wrap { width:calc(100% - 36px) }
  .mast-inner { gap:14px; flex-wrap:wrap; padding-top:11px; min-height:0 }
  .brand { font-size:23px }
  .mast nav { gap:20px; order:3; width:100%; overflow:auto }
  .mast nav a { padding-bottom:9px }
  .nav-action { padding:4px 11px }
  .hero-inner { min-height:285px }
  .hero-copy { padding-block:30px }
  .hero-inner { grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) }
  .moon-field img { width:94%; right:1% }
  .orbit { width:112%; top:51%; right:1% }
  .problem-row { gap:12px;grid-template-columns:82px 1fr auto;padding:15px }
  .row-action { gap:7px }
  .filters { gap:8px }
  .board { padding-block:24px 32px }
}
@media (max-width:540px) {
  .wrap { width:calc(100% - 30px) }
  .hero-inner { min-height:250px }
  .hero h1 { font-size:clamp(33px,7.7vw,42px); max-width:14ch }
  .hero-copy { padding-block:25px 28px }
  .hero p { font-size:14px; max-width:24ch; margin:10px 0 14px }
  .hero-action { font-size:14px; min-height:38px;padding:6px 13px }
  .hero-inner { grid-template-columns:minmax(0,1.9fr) minmax(0,1fr); gap:5px }
  .section-head { align-items:flex-start; margin-bottom:13px }
  .section-head p { font-size:13px }
  .pilot { font-size:11px;margin-top:5px }
  .filters { align-items:flex-end }
  .search-field { flex-basis:100%; max-width:none }
  .filters label { display:grid;gap:3px; flex:1;min-width:0;font-size:12px }
  .filters select {width:100%; min-width:0; min-height:36px;font-size:13px;padding:5px}
  .problem-row {grid-template-columns:1fr auto;gap:6px 10px;padding:13px}
  .row-domain {grid-column:1;grid-row:1;display:flex;align-items:center;gap:8px}
  .provenance {margin:0}
  .row-copy { grid-column:1/-1;grid-row:2 }
  .row-action { grid-column:2;grid-row:1;font-size:12px }
  .row-arrow { font-size:16px }
  .sheet-head,.sheet-body { padding:15px }
  dialog { width:calc(100% - 16px); max-height:93dvh; border-radius:11px }
  .foot { flex-wrap:wrap;gap:8px }
  .foot>div { flex-wrap:wrap; gap:7px 13px; justify-content:flex-end }
  .task-panel { padding:13px }
}
@media (prefers-reduced-motion:reduce) { *,*::after,*::before { scroll-behavior:auto!important } }
.sheet-notice:not(:empty) { margin-top:12px; color:var(--accent) }
.brief-manual { display:block; width:100%; margin-top:8px }

.foot-brand { text-decoration:none }
.sheet-body > .block, .sheet-body h3.block { margin-top:22px }
.facts { margin:18px 0; border-top:1px solid var(--line) }
.facts > div { padding:9px 0; border-bottom:1px solid var(--line) }
.facts dt { font-size:13px; font-weight:550; color:var(--muted) }
.facts dd { margin:3px 0 0; overflow-wrap:anywhere }
code { overflow-wrap:anywhere; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.9em }
.code-sample { overflow:auto; padding:12px 14px; line-height:1.7; border-radius:8px; background:var(--paper); border:1px solid var(--line); }
.code-sample code { overflow-wrap:normal; font-size:13px }
.packet-meta { margin-top:12px }
.import-area { display:grid; gap:6px; padding:13px 15px; margin:15px 0; background:var(--paper); border-radius:8px }
.import-area label { font-weight:550; font-size:14px }
.import-area input { width:100%; font-size:13px }
.import-area input::file-selector-button { margin-inline-end:8px; cursor:pointer; border:1px solid var(--line); padding:5px 9px; background:var(--soft); color:var(--ink); border-radius:5px }
.record-top { align-items:baseline; flex-wrap:wrap; gap:4px 12px }
#manual-copy label { display:block; margin-top:12px }
.unit-tabs a { display:grid; grid-template-columns:auto minmax(0,1fr) auto }
@media (max-width:400px) {
  .mast nav { gap:15px }
  .mast nav a { font-size:13px }
  .mast-inner { gap:8px }
  .brand { font-size:21px }
  .nav-action { font-size:12px }
  .unit-tabs a { grid-template-columns:auto minmax(0,1fr) }
  .unit-tabs a span:last-child { grid-column:2 }
  .foot>div { margin-inline-start:0 }
}

.beta-label { color:#b8e7df; font-size:12px; letter-spacing:.03em; font-weight:550; align-self:center }
.review-route { margin-top:12px; font-size:14px }
.review-desk { max-width:940px; padding-block:38px 52px; min-height:74vh }
.desk-heading h1 { font-size:clamp(36px,5vw,58px); letter-spacing:-.05em; font-weight:560 }
.desk-heading p:first-child { font-size:14px; margin-bottom:6px }
.desk-heading p:last-child { margin-top:10px }
.desk-nav { display:flex; flex-wrap:wrap; gap:4px 18px; margin:22px 0 9px; border-bottom:1px solid var(--line) }
.desk-nav a { padding:9px 2px; color:var(--muted); text-decoration:none }
.desk-nav a[aria-current] { color:var(--accent); font-weight:600; text-decoration:underline; text-underline-offset:7px }
.desk-panel { margin-top:24px }
.desk-panel h2 { font-weight:570; font-size:clamp(25px,4vw,35px); letter-spacing:-.035em }
.desk-panel h3 { font-size:20px; font-weight:550 }
.desk-panel .intro { max-width:70ch; margin:9px 0 18px }
.desk-panel .fine,.desk-panel p+p { margin-top:9px }
.job-row,.desk-result,.desk-event { padding:17px 0; border-top:1px solid var(--line) }
.job-row p,.desk-result p { max-width:78ch; margin:4px 0 9px }
.job-row .domain { margin-right:10px }
.job-row select { max-width:100%; margin:4px 8px }
.desk-steps { display:grid; gap:9px; padding-left:23px; max-width:70ch }
.review-input { display:grid; gap:7px; margin-block:15px; max-width:520px }
.review-input label,.desk-result label { font-weight:550 }
.review-desk input,.review-desk select,.review-desk textarea { color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:6px; padding:9px; max-width:100% }
.review-desk textarea { width:100%; display:block; margin:8px 0; font:inherit }
.desk-result { margin-top:18px }.desk-result pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; max-width:74ch }
.review-table-wrap { overflow-x:auto; margin:8px 0 14px }
.review-table-wrap table { border-collapse:collapse; width:100%; min-width:365px; font-size:14px; font-variant-numeric:tabular-nums }
.review-table-wrap td,.review-table-wrap th { text-align:left; padding:7px; border-bottom:1px solid var(--line) }
.desk-event time { color:var(--muted); margin-right:12px; font-variant-numeric:tabular-nums }
@media (max-width:540px) { .desk-nav {gap:0 12px; font-size:14px}.review-desk {padding-block:25px 35px}.job-row .actions {gap:6px}.mast nav{gap:14px} }

.fleet-totals {display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line);margin-block:1.5rem 2rem}
.fleet-totals div {display:grid;gap:.25rem;padding:1rem .5rem}
.fleet-totals strong {font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.1;font-variant-numeric:tabular-nums}
.fleet-totals span,.fleet-row p {color:var(--muted)}
.fleet-row {display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding:1.15rem 0;border-bottom:1px solid var(--line)}
.fleet-row strong {color:var(--accent)}
#join pre {white-space:pre-wrap;overflow-wrap:anywhere;max-height:27rem;overflow:auto;font: .88rem/1.65 ui-monospace,monospace;padding:.9rem;background:var(--soft);border-radius:.4rem}
#join h3,#join form {margin-top:1rem}
@media(max-width:600px){.fleet-row{align-items:flex-start;flex-direction:column;gap:.5rem}.fleet-totals span{font-size:.83rem}}
.desk-panel pre {white-space:pre-wrap;overflow-wrap:anywhere}
.desk-panel > h3 {margin-block:1.1rem .35rem}
