/* ==========================================================================
   sheets-secondary.css — share, stereo, pricing, atlas, beta, why and 404.
   Linked after site.css and opal.css on those seven pages only; each carries body.sx.
   The brand (omniblick-brand, Opal with a little Celadon): porcelain, pearl and wash grounds,
   frosted white glass cards, radii 28 (cards) / 18 (panels, tiles) / 12–14 (fields, small) / 999 (pills).
   Colour lives only in the glass and the data; the drawings stay technical line drawings inside the cards.
   Both themes: light by default, dark from the nav switch (no drafting grid, no square corners).
   ========================================================================== */

/* ---------- tokens ---------- */
.sx {
  --sx-pearl: #fafcfd;
  --sx-wash: #e6f0f3;
  --sx-lines: #d3e3e8;
  --sx-field: #f6fafb;
  --sx-glass: linear-gradient(165deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
  --sx-sh: inset 0 0 0 1px rgba(255, 255, 255, 0.92), 0 0 0 1px rgba(23, 49, 61, 0.07), 0 1px 2px rgba(23, 49, 61, 0.05), 0 26px 50px -32px rgba(23, 49, 61, 0.34);
  --sx-sh-up: inset 0 0 0 1px rgba(255, 255, 255, 0.92), 0 0 0 1px rgba(23, 49, 61, 0.08), 0 2px 6px rgba(23, 49, 61, 0.07), 0 34px 64px -30px rgba(23, 49, 61, 0.42);
  --sx-hair: #e4eff2;
  --sx-r1: 28px;
  --sx-r2: 18px;
  --sx-r3: 12px;
}
:root[data-theme="dark"] .sx {
  --sx-pearl: #0e1011;
  --sx-wash: #131617;
  --sx-lines: #2b3133;
  --sx-field: #121516;
  --sx-glass: linear-gradient(165deg, rgba(36, 40, 42, 0.92), rgba(25, 28, 29, 0.86));
  --sx-sh: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.32), 0 1px 2px rgba(0, 0, 0, 0.3), 0 26px 50px -32px rgba(0, 0, 0, 0.75);
  --sx-sh-up: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.36), 0 2px 6px rgba(0, 0, 0, 0.3), 0 34px 64px -28px rgba(0, 0, 0, 0.8);
  --sx-hair: #2a2f31;
  /* components written for paper (the comparison table, the stat bar labels) read the ink tokens: in the dark they follow the text */
  --ink: var(--text);
  --ink-2: var(--text-2);
  --ink-3: var(--text-3);
  --accent-ink: var(--accent);
  --paper-line: var(--line);
}

/* a page's identity: Share is the network (opal mint, the signal), Stereo the optical bench (opal rose, the red eye) */
.page--share { --id: #0f8f76; --id-soft: #a8e6d1; --id-wash: #dcf1ea; --id-tint: #eef8f4; }
.page--stereo { --id: #b0487e; --id-soft: #f7d6e6; --id-wash: #f5e4ed; --id-tint: #fbf4f8; }
:root[data-theme="dark"] .page--share { --id: #7fd9bd; --id-wash: #0f1d19; --id-tint: #0c1513; }
:root[data-theme="dark"] .page--stereo { --id: #f0a9cb; --id-wash: #1f1219; --id-tint: #140e11; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- grounds: porcelain body, pearl and wash bands, a soft tint behind the cover ---------- */
.sx-band { background: var(--sx-pearl); }
.sx-wash { background: var(--sx-wash); }
.sx-head {
  position: relative;
  background:
    radial-gradient(55% 65% at 82% 38%, var(--id-wash, rgba(169, 216, 245, 0.18)), transparent 72%),
    linear-gradient(180deg, var(--id-tint, var(--bg)), var(--bg));
}
:root[data-theme="dark"] .sx-head { background: radial-gradient(55% 65% at 82% 38%, var(--id-wash, rgba(126, 196, 239, 0.06)), transparent 72%), linear-gradient(180deg, var(--id-tint, var(--bg)), var(--bg)); }

/* ---------- the cover's figure: a glass card holding the line drawing ---------- */
.sx .frame { border-radius: var(--sx-r1); padding: 14px; background: var(--sx-glass); box-shadow: var(--sx-sh); }
.sx .frame__tag { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; border-radius: 14px; }
.sx .frame > [data-svg], .sx .frame video { border-radius: var(--sx-r2); }
.sx-fig { width: 100%; aspect-ratio: var(--ar); }
.sx-fig > svg { width: 100%; height: 100%; }
@media (max-width: 600px) { .sx-fig { aspect-ratio: var(--ar-p, var(--ar)); } }
/* the drawings read their colours from the card: pearl paper, petrol ink, the page's own accent */
.sx .frame > .sx-fig { --paper: var(--sx-pearl); --line: var(--sx-lines); --accent: var(--id, var(--accent)); }
.sx-head .display { font-size: clamp(44px, 5.4vw, 84px); }
/* the cover says what it does in words, as chips — no bar of bare numbers (owner, 30 Oct 2026) */
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sx-chips li {
  display: inline-flex; align-items: center; gap: 9px; min-height: 36px; max-width: 100%; padding: 6px 15px 6px 12px;
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card); font-size: 14px; line-height: 1.3; color: var(--text-2);
}
.sx-chips li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--id, var(--accent)); opacity: 0.85; }

/* a note's label hangs above it: inside a tight stack it needs room under the heading */
.sx .stack > .note[data-n] { margin-top: 18px; }

/* a ledger's command id wraps at its dots rather than being cut short */
.sx .ledger__id { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* ---------- notes as small glass tiles (Why clause 05, Beta missions) ---------- */
.sx-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.sx-notes .note {
  max-width: none; padding: 46px 24px 24px; border: 0; border-radius: var(--sx-r2);
  background: var(--surface); box-shadow: var(--shadow-card); color: var(--text-2); font-size: 15.5px; line-height: 1.55;
}
.sx-notes .note::before { left: 24px; top: 20px; color: var(--id, var(--accent)); }

/* ==========================================================================
   SHARE — a network schematic; the statuses as a schedule of three signal states
   ========================================================================== */
.sx-sched { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); gap: 16px; align-items: start; }
.sx-sched__grp { display: flex; flex-direction: column; padding: 8px 24px 10px; border-radius: var(--sx-r1); background: var(--sx-glass); box-shadow: var(--sx-sh); min-width: 0; }
.sx-sched__h {
  display: flex; align-items: center; gap: 12px; padding: 16px 0 14px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
}
.sx-sched__h span { margin-left: auto; min-width: 30px; padding: 3px 10px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-fg); text-align: center; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.sx-sched__row { display: flex; flex-direction: column; gap: 4px; padding: 15px 0 16px; border-top: 1px solid var(--sx-hair); }
.sx-sched__row b { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--text); }
.sx-sched__row span { font-size: 15px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
/* the signal: solid = carrying today, dashed = when the service opens, dotted = not yet — as on the drawing */
.sx-sig { flex: none; position: relative; width: 14px; height: 14px; border-radius: 50%; }
.sx-sig--beta { background: var(--id, var(--mint)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--id, var(--mint)) 18%, transparent); }
.sx-sig--next { border: 1.5px dashed var(--id, var(--accent)); }
.sx-sig--later { border: 1.5px dotted var(--text-3); }

/* what a browser opens: one tile per family */
.sx-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; }
.sx-formats > div { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; border-radius: var(--sx-r2); background: var(--surface); box-shadow: var(--shadow-card); min-width: 0; }
.sx-formats span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.sx-formats span::before { content: ""; width: 18px; height: 1.5px; border-radius: 2px; background: var(--id, var(--accent)); }
.sx-formats p { font-family: var(--font-display); font-weight: 300; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }

/* ==========================================================================
   STEREO — the optical bench; one dark section to look through
   ========================================================================== */
.sx-bench { background: radial-gradient(70% 55% at 50% 0%, rgba(176, 72, 126, 0.16), transparent 70%), radial-gradient(50% 60% at 100% 100%, rgba(126, 196, 239, 0.08), transparent 70%), #0b0c0d; }
.sx-viewer {
  padding: 14px; border-radius: var(--sx-r1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.sx-viewer canvas { border-radius: var(--sx-r2); }
.sx-viewer .mono { padding: 0 6px 2px; }
.sx-frame--dark { --tag-bg: rgba(255, 255, 255, 0.08); --tag-fg: #bcc3c6; }
.sx .sx-frame--dark { background: linear-gradient(165deg, #1d2022, #111314); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -32px rgba(11, 12, 13, 0.7); }
.sx-frame--dark video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* ==========================================================================
   PRICING — the schedule of editions: pill controls, glass edition cards
   ========================================================================== */
.sx-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.sx-controls .seg { padding: 5px; }
.sx-controls .seg button { min-height: 40px; }
.sx-seats { display: inline-flex; align-items: center; gap: 4px; min-height: 52px; padding: 5px 5px 5px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card); }
.sx-seats > span:first-child { margin-right: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.sx-seats button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(var(--fg-rgb), 0.07); color: var(--text); font-size: 20px; line-height: 1; transition: background var(--t-fast) var(--ease); }
.sx-seats button:hover { background: rgba(var(--fg-rgb), 0.13); }
.sx-seats__n { min-width: 2.2ch; text-align: center; font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; color: var(--text); }
.sx-check { display: inline-flex; align-items: flex-start; gap: 12px; max-width: 520px; padding: 13px 18px; border-radius: var(--sx-r2); background: var(--surface); box-shadow: var(--shadow-card); font-size: 14.5px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.sx-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }

.sx-eds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; align-items: stretch; padding-top: 8px; }
.sx-ed {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 26px 24px 28px;
  border-radius: var(--sx-r1); background: var(--sx-glass); box-shadow: var(--sx-sh);
  transition: box-shadow var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.sx-ed__no { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.sx-ed h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.05; letter-spacing: -0.01em; color: var(--text); }
.sx-ed__what { font-size: 15px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; min-height: 4.65em; }
@media (min-width: 1100px) { .sx-ed__what { min-height: 6.2em; } }
.sx-ed__price { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 15px; border-radius: var(--sx-r2); background: rgba(var(--fg-rgb), 0.04); }
.sx-ed__v { font-family: var(--font-display); font-weight: 300; font-size: clamp(38px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.sx-ed__u { font-size: 14px; line-height: 1.4; color: var(--text-2); min-height: 1.4em; }
.sx-ed__n { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; color: var(--text-3); }
.sx-ed__n:empty { display: none; }
.sx-ed .btn { align-self: stretch; justify-content: center; }
.sx-ed ul { display: flex; flex-direction: column; gap: 9px; margin: 2px 0 0; padding: 14px 0 0; border-top: 1px solid var(--sx-hair); font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.sx-ed li { position: relative; padding-left: 24px; }
.sx-ed li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--opal-rim); }
.sx-ed em { font-style: normal; color: var(--amber); font-size: 0.92em; }
/* the edition that covers the ticked jobs: an opal rim, lifted, and named */
.sx-ed.is-fit { transform: translateY(-6px); box-shadow: var(--sx-sh-up); }
.sx-ed.is-fit::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--opal-rim); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.sx-ed.is-fit::after {
  content: "Fits your jobs"; position: absolute; top: 22px; right: 20px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #17313d; background: var(--opal-soft);
}
@media (prefers-reduced-motion: reduce) { .sx-ed, .sx-ed.is-fit { transition: none; transform: none; } }

/* the job picker: pill toggles with a check, and the edition they need in a glass card */
.sx-pick { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
@media (max-width: 960px) { .sx-pick { grid-template-columns: minmax(0, 1fr); } }
.sx-jobs { display: flex; flex-wrap: wrap; gap: 10px; }
.sx-jobs button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; max-width: 100%; padding: 8px 18px 8px 12px;
  border: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card); color: var(--text);
  font-size: 15px; line-height: 1.3; text-align: left; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.sx-jobs button i { flex: none; position: relative; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(var(--fg-rgb), 0.3); }
.sx-jobs button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.sx-jobs button[aria-pressed="true"] i { background: var(--opal-rim); box-shadow: none; }
.sx-jobs button[aria-pressed="true"] i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #17313d; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.sx-jobs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sx-rec { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 28px; border-radius: var(--sx-r1); background: var(--sx-glass); box-shadow: var(--sx-sh); }
.sx-rec__k { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.sx-rec__k::before { content: ""; width: 22px; height: 1.5px; border-radius: 2px; background: var(--opal-rim); }
.sx-rec__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 3.6vw, 54px); line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.sx-rec__price { font-family: var(--font-display); font-weight: 300; font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.sx-rec__why { font-size: 15px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 960px) { .sx-rec { position: static; } }

/* every edition side by side: a glass table; on a phone the edition names shorten to letters */
.sx-cmp { padding: 6px 24px 10px; border-radius: var(--sx-r1); background: var(--sx-glass); box-shadow: var(--sx-sh); }
.sx-cmp table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sx-cmp col.c { width: 12%; }
.sx-cmp th, .sx-cmp td { padding: 14px 8px; border-bottom: 1px solid var(--sx-hair); vertical-align: baseline; }
.sx-cmp tbody tr:last-child th, .sx-cmp tbody tr:last-child td { border-bottom: 0; }
.sx-cmp thead th { padding-top: 16px; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); text-align: center; }
.sx-cmp thead th:first-child { text-align: left; padding-left: 0; }
.sx-cmp tbody th { padding-left: 0; font-weight: 400; font-size: 15.5px; line-height: 1.45; color: var(--text); text-align: left; text-wrap: pretty; }
.sx-cmp td { text-align: center; font-size: 15px; color: var(--text); }
.sx-cmp tbody tr:hover th, .sx-cmp tbody tr:hover td { background: rgba(var(--fg-rgb), 0.025); }
.sx-cmp .sf { display: none; }
@media (max-width: 700px) {
  .sx-cmp { padding: 4px 14px 8px; }
  .sx-cmp col.c { width: 34px; }
  .sx-cmp th, .sx-cmp td { padding: 12px 4px; }
  .sx-cmp tbody th { font-size: 14.5px; padding-right: 10px; }
  .sx-cmp .lf { display: none; }
  .sx-cmp .sf { display: inline; }
}
.sx-tag { display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-fg); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }

/* before you buy: four tiles */
.sx-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.sx-faq__q { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; border-radius: var(--sx-r2); background: var(--surface); box-shadow: var(--shadow-card); }
.sx-faq__q h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.25; color: var(--text); }
.sx-faq__q p { font-size: 15.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* ==========================================================================
   ATLAS — the register: category chips, workspace cards, a glass search bar, glass row cards
   ========================================================================== */
.atl-row__k kbd, .atl-search__keys kbd { font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--text-2); background: var(--surface); border: 1px solid var(--sx-lines); border-bottom-width: 2px; border-radius: 7px; padding: 3px 6px; }

/* the key: every category as a chip with its count */
.atl-key { display: flex; flex-wrap: wrap; gap: 8px; }
.atl-key__e {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; max-width: 100%; padding: 0 6px 0 16px; border: 0; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-card); color: var(--text); font-size: 14.5px; text-align: left;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-panel) var(--ease);
}
.atl-key__e i { display: none; }
.atl-key__n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atl-key__c { flex: none; min-width: 34px; padding: 4px 9px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-fg); font-family: var(--font-mono); font-size: 11.5px; text-align: center; font-variant-numeric: tabular-nums; }
.atl-key__e:hover { box-shadow: var(--shadow-float); }
.atl-key__e[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.atl-key__e[aria-pressed="true"] .atl-key__c { background: rgba(var(--veil-rgb), 0.16); color: inherit; }
.atl-key__e.is-zero { opacity: 0.4; }
.atl-key__e:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* the entry points: one glass card per workspace */
.atl-ws { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.atl-ws__st { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-content: start; padding: 22px 22px 24px 24px; border-radius: var(--sx-r1); background: var(--sx-glass); box-shadow: var(--sx-sh); min-width: 0; }
.atl-ws__no { grid-column: 1; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-3); }
.atl-ws__ic { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--tag-bg); color: var(--accent); }
.atl-ws__name { grid-column: 1; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: -0.005em; color: var(--text); }
.atl-ws__d { grid-column: 1 / -1; font-size: 15px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.atl-ws__id { grid-column: 1 / -1; justify-self: start; max-width: 100%; margin-top: 4px; padding: 4px 11px; border-radius: 999px; background: var(--tag-bg); font-family: var(--font-mono); font-size: 12px; color: var(--accent); overflow-wrap: anywhere; }
.atl-ws__id:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
[data-ws-foot] a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* the search bar: a sticky glass panel under the floating nav */
.atl-bar {
  position: sticky; top: calc(var(--bar-top, var(--nav-h)) + 8px); z-index: 20;
  display: flex; flex-direction: column; gap: 8px; padding: 10px 18px 12px;
  border-radius: var(--sx-r2); background: var(--glass); box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  transition: top var(--t-slow) var(--ease);
}
.atl-search { display: flex; align-items: center; gap: 12px; min-width: 0; border-radius: var(--sx-r3); }
.atl-search svg { width: 22px; height: 22px; flex: none; color: var(--text-3); }
.atl-search input { flex: 1; min-width: 0; min-height: 46px; border: 0; outline: none; background: none; color: var(--text); font: inherit; font-family: var(--font-display); font-weight: 300; font-size: clamp(21px, 2.2vw, 30px); letter-spacing: -0.01em; }
.atl-search input::placeholder { color: var(--text-3); opacity: 0.85; }
.atl-search:focus-within svg { color: var(--accent); }
.atl-search__keys { display: flex; align-items: center; gap: 5px; flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
@media (hover: none), (max-width: 560px) { .atl-search__keys { display: none; } }
.atl-bar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 8px; border-top: 1px solid var(--sx-hair); }
.atl-select { position: relative; min-width: 0; max-width: 100%; }
.atl-select select { min-height: 40px; max-width: 100%; padding: 0 38px 0 16px; border-radius: 999px; border: 1px solid var(--sx-lines); background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; appearance: none; -webkit-appearance: none; }
.atl-select::after { content: ""; position: absolute; right: 17px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.atl-select select option { background: var(--surface); color: var(--text); }
.atl-only { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-2); cursor: pointer; }
.atl-only input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.atl-read { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .atl-read { margin-left: 0; width: 100%; } .atl-bar { padding: 8px 14px 10px; } }

/* the register itself: a heading per category, its commands in one glass card */
.atl-list { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); }
.atl-grp { display: flex; flex-direction: column; gap: 14px; }
.atl-grp__h { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 0 4px; }
.atl-grp__h h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.02em; color: var(--text); }
.atl-grp__c { padding: 4px 11px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-fg); font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.atl-grp__bar { grid-column: 1 / -1; display: block; height: 4px; width: var(--w); min-width: 8px; border-radius: 999px; background: var(--opal-rim); opacity: 0.7; }
.atl-grp__rows { container-type: inline-size; padding: 2px 22px; border-radius: var(--sx-r2); background: var(--surface); box-shadow: var(--shadow-card); }
.atl-row {
  display: grid; grid-template-columns: minmax(170px, 0.95fr) minmax(150px, 1fr) minmax(0, 2.1fr) 128px 64px; gap: 6px 22px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--sx-hair);
  content-visibility: auto; contain-intrinsic-size: auto 60px;
  scroll-margin-top: calc(var(--nav-h) + 160px);
}
.atl-row:last-child { border-bottom: 0; }
.atl-row[hidden] { display: none; }
.atl-row__id { font-family: var(--font-mono); font-size: 12px; color: var(--accent); overflow-wrap: anywhere; }
.atl-row__id:hover { text-decoration: underline; text-underline-offset: 3px; }
.atl-row__t { font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--text); }
.atl-row__d { font-size: 14.5px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.atl-row__k { justify-self: end; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.atl-row__copy { justify-self: end; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--text-3); font-family: var(--font-mono); font-size: 11px; opacity: 0.55; transition: opacity var(--t-fast) var(--ease), color var(--t-fast), background var(--t-fast); }
.atl-row__copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.atl-row:hover .atl-row__copy, .atl-row__copy:focus-visible, .atl-row.is-target .atl-row__copy { opacity: 1; }
.atl-row__copy:hover { color: var(--accent); background: var(--tag-bg); }
.atl-row__copy.is-done { opacity: 1; color: var(--accent); background: var(--tag-bg); }
.atl-row.is-target { margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--sx-r3); border-bottom-color: transparent; background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.atl-row mark { background: color-mix(in srgb, var(--accent) 18%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
@container (max-width: 820px) {
  .atl-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; contain-intrinsic-size: auto 120px; }
  .atl-row__id { grid-column: 1; grid-row: 1; }
  .atl-row__copy { grid-column: 2; grid-row: 1; opacity: 0.8; }
  .atl-row__t { grid-column: 1; grid-row: 2; }
  .atl-row__k { grid-column: 2; grid-row: 2; }
  .atl-row__d { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 560px) { .atl-grp__rows { padding: 2px 16px; } }
.atl-empty { padding: 26px 28px; border-radius: var(--sx-r2); background: var(--surface); box-shadow: var(--shadow-card); font-size: 17px; color: var(--text-2); }
.atl-empty[hidden] { display: none; }

/* a phone on its side: the sticky search bar keeps to a slim strip */
@media (max-height: 520px) and (orientation: landscape) {
  .atl-bar { padding: 4px 14px 6px; gap: 4px; }
  .atl-search input { min-height: 36px; font-size: 19px; }
  .atl-select select { min-height: 32px; }
  .atl-bar__row { padding-top: 4px; }
}

/* ==========================================================================
   BETA — a transmittal: the schedule and missions as ledgers, the form as one glass card
   ========================================================================== */
.bt-sign__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
@media (max-width: 1000px) { .bt-sign__grid { grid-template-columns: minmax(0, 1fr); } }
.bt-form { position: relative; display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: clamp(22px, 3vw, 36px); border-radius: var(--sx-r1); background: var(--sx-glass); box-shadow: var(--sx-sh); }
.bt-form__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--sx-hair); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.bt-form__head span:first-child { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.bt-form__head span:first-child::before { content: ""; width: 22px; height: 1.5px; border-radius: 2px; background: var(--opal-rim); }
.bt-form__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 22px 20px; }
.bt-form .field { min-width: 0; }
.bt-form .field label, .bt-form legend { color: var(--text); }
.bt-form .field label .mono, .bt-form legend .mono { font-weight: 400; font-size: 11.5px; margin-left: 6px; color: var(--text-3); }
.bt-form .input, .bt-form .select { width: 100%; min-width: 0; border-radius: 14px; border: 1px solid var(--sx-lines); background: var(--sx-field); color: var(--text); }
.bt-form .input:focus, .bt-form .select:focus { border-color: var(--accent); background: var(--sx-field); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.bt-form .input::placeholder { color: var(--text-3); }
.bt-form .select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.bt-form .select option { background: var(--surface); color: var(--text); }
.bt-select { position: relative; display: block; }
.bt-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.bt-form [aria-invalid="true"] { border-color: var(--amber); }
.bt-e { font-size: 13.5px; color: var(--amber); }
.bt-e:empty { display: none; }
.bt-form__err { padding: 14px 18px; border-radius: var(--sx-r2); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); background: color-mix(in srgb, var(--amber) 7%, transparent); font-size: 14.5px; color: var(--text); }
.bt-form__err[hidden] { display: none; }
.bt-form__err ul { margin: 6px 0 0; padding-left: 18px; }
.bt-form__err a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.bt-areas { margin: 0; padding: 0; border: 0; min-width: 0; }
.bt-areas legend { padding: 0; margin-bottom: 10px; }
.bt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-chips label { position: relative; display: inline-flex; cursor: pointer; }
.bt-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bt-chips span { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px 0 13px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--sx-lines); font-size: 14.5px; color: var(--text); transition: background var(--t-fast) var(--ease), color var(--t-fast), box-shadow var(--t-fast); }
.bt-chips span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--text-3); transition: background var(--t-fast); }
.bt-chips input:checked + span { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }
.bt-chips input:checked + span::before { background: var(--opal-rim); box-shadow: none; }
.bt-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.bt-form__checks { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; border-top: 1px solid var(--sx-hair); }
.bt-form__checks .check { padding-top: 12px; }
.bt-form__checks .check input { accent-color: var(--accent); }
.bt-form__checks a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.bt-form__go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bt-form__go[hidden] { display: none; }
.bt-form__go .btn { max-width: 100%; white-space: normal; text-align: center; }
.bt-form__go .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.bt-state { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: var(--sx-r2); border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent); background: color-mix(in srgb, var(--mint) 7%, transparent); outline: none; }
.bt-state[hidden] { display: none; }
.bt-state__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); }
.bt-state__t { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; color: var(--text); }
.bt-state__p { color: var(--text-2); font-size: 15.5px; }
.bt-state__echo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 24px; margin: 4px 0 6px; }
.bt-state__echo div { display: grid; grid-template-columns: minmax(5.5em, 0.45fr) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sx-hair); }
.bt-state__echo dt { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.bt-state__echo dd { margin: 0; font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; }
.bt-state .btn { align-self: flex-start; }
.bt-form textarea.input { min-height: 7.5em; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.bt-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bt-ts:empty, .bt-ts[hidden] { display: none; }
.bt-privacy { font-size: 13.5px; line-height: 1.5; color: var(--text-3); }
.bt-privacy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.bt-form__go .btn[aria-busy="true"] { cursor: progress; }

/* ==========================================================================
   404 — a small sheet, not issued
   ========================================================================== */
.sx-404 { min-height: calc(100svh - 120px); display: flex; align-items: center; }
.sx-404 .dhead__grid { width: 100%; }
.sx-404 .frame { max-width: 640px; justify-self: end; width: 100%; }
@media (max-width: 1060px) { .sx-404 .frame { justify-self: start; } }
