/* Wilhelm Harbor product page. Hand-written, not generated.
   The page uses HTML67 elements (wl-tabs, wl-code, wl-card, wl-scrollytelling) but does not load
   /src/tokens.css: that sheet pulls in open-props (two more render-blocking files) for a handful of
   variables. The few --wl-* tokens those elements read are set here, with the page's own surfaces:
   white like the launcher's harbor by day, navy like it by night, and one accent. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --ink: #14171c;
  --soft: #586170;
  --faint: #646d7c;
  --line: #e4e7ec;
  --panel: #f5f6f8;
  --accent: #3355d6;
  --accent-ink: #ffffff;
  --ok: #2f9e5b; --warn: #c2841a; --err: #d14343;
  --glass: rgb(255 255 255 / .78);
  --float: 0 6px 22px rgb(30 40 55 / .10);
  --dim: #c9ced6;
  --dimtext: #697180;
  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --band: clamp(5rem, 11vw, 9rem);
  /* HTML67 elements on this page follow the page surface */
  --wl-bg: var(--bg); --wl-surface: var(--bg); --wl-surface-2: var(--panel); --wl-ink: var(--ink); --wl-ink-soft: var(--soft);
  --wl-border: var(--line); --wl-accent: var(--accent); --wl-radius: 10px; --wl-radius-lg: 18px; --wl-pad-card: 1.6rem; --wl-default-width: none;
  --wl-border-strong: var(--dim); --wl-shadow: 0 1px 3px rgb(20 30 50 / .12); --wl-shadow-lg: var(--float);
  --wl-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wl-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --wl-radius-sm: 6px; --wl-density: 1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121820;
    --ink: #eef1f5;
    --soft: #a9b2c0;
    --faint: #8792a3;
    --line: #27313f;
    --panel: #19212c;
    --dim: #3b4656;
    --dimtext: #7f8999;
    --accent: #93a8ff;
    --accent-ink: #0c111b;
    --glass: rgb(24 32 43 / .78);
    --float: 0 6px 22px rgb(0 0 0 / .35);
    --wl-bg: var(--bg); --wl-surface: var(--bg); --wl-surface-2: var(--panel); --wl-ink: var(--ink); --wl-ink-soft: var(--soft); --wl-border: var(--line); --wl-accent: var(--accent);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 3.25rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--wl-font, 'Inter', system-ui, -apple-system, sans-serif); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code { font: .9em var(--wl-mono); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: .08em .35em; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap.narrow { max-width: 800px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }

/* ── top bar ─────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: var(--glass); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 3.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { height: 1.15rem; width: auto; }
.brand small { color: var(--faint); font-weight: 400; font-size: .8rem; margin-left: .1rem; }
@media (max-width: 420px) { .brand small { display: none; } }
.top nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 1.8rem); font-size: .9rem; }
.top nav a { color: var(--soft); text-decoration: none; white-space: nowrap; padding: .5rem 0; }
.top nav a:hover { color: var(--ink); }
.top nav .nav-cta { color: var(--accent); font-weight: 500; }
@media (max-width: 640px) { .top nav a:not(.nav-cta) { display: none; } }

/* ── type ────────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; max-width: 18ch; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: .9rem; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; color: var(--soft); max-width: 40rem; margin-top: 1.4rem; text-wrap: pretty; letter-spacing: -.01em; }
.lead.small { font-size: 1.0625rem; margin-top: .6rem; }
.note { color: var(--faint); font-size: .95rem; margin-top: 1.5rem; max-width: 44rem; }
.sub { margin-top: 3.5rem; font-size: 1.5rem; letter-spacing: -.02em; }
.band { padding-block: var(--band); border-top: 1px solid var(--line); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0 1.4rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.btn:hover { border-color: var(--faint); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { border-color: var(--accent); filter: brightness(1.08); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(2.2rem, 5.5vw, 4.2rem); }
.hero-text { text-align: center; }
.hero-text h1 { font-size: clamp(2rem, 5.2vw, 4.2rem); line-height: 1.05; }
.hero-text h1 span { display: block; }
.hero-text .lead { margin-inline: auto; max-width: 52rem; margin-top: 1.1rem; }
.hero-text .cta { margin-top: 1.7rem; }
.hero-text .cta { justify-content: center; }
.scene { margin-top: clamp(.5rem, 2vw, 1.2rem); }
.scene-frame { position: relative; height: clamp(360px, 68vh, 780px); overflow: hidden; }
.poster, .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene .poster, .scene-host { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 90%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 90%, transparent 100%); }
.scene-host { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.scene.live .scene-host { opacity: 1; }
.scene.live .poster { opacity: 0; transition: opacity .9s ease .3s; }
.harbor-canvas, .stage-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; outline: none; }
.harbor-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.ship-plate, .landmark-pill { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 12px/1 var(--wl-font, system-ui); color: var(--ink); cursor: pointer; white-space: nowrap; box-shadow: var(--float); transition: opacity .3s; }
.ship-plate b { font-weight: 500; }
.landmark-pill b { font-weight: 600; }
.landmark-pill small { color: var(--soft); font-size: 11px; }
.landmark-pill .badge { display: none; }
.ship-plate.dim { opacity: .3; } .landmark-pill.dim { opacity: .4; }
.ship-plate.focus { opacity: 0; pointer-events: none; }
.scene-host.is-focused .ship-plate.dim, .scene-host.is-focused .landmark-pill.dim { opacity: 0; pointer-events: none; }
.lamp { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); display: inline-block; }
.lamp.ok { background: var(--ok); box-shadow: 0 0 0 3px rgb(47 158 91 / .16); }
.lamp.warn { background: var(--warn); box-shadow: 0 0 0 3px rgb(194 132 26 / .16); }
.lamp.down { background: var(--err); box-shadow: 0 0 0 3px rgb(209 67 67 / .16); }
@media (max-width: 640px) { .landmark-pill { display: none; } }

.ship-card { position: absolute; z-index: 3; left: var(--pad); bottom: 2.6rem; width: min(21rem, calc(100% - 2 * var(--pad))); padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--float); font-size: .9rem; line-height: 1.4; pointer-events: none; }
.ship-card[hidden] { display: none; }
.ship-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.ship-card .state { color: var(--soft); margin-top: .1rem; }
.ship-card dl { display: grid; grid-template-columns: auto 1fr; gap: .15rem .9rem; margin-top: .7rem; }
.ship-card dt { color: var(--soft); }
.ship-card dd { font-variant-numeric: tabular-nums; }
.ship-card .chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .75rem; }
.ship-card .chips span { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .5rem .12rem .2rem; border-radius: 999px; border: 1px solid var(--line); font-size: .78rem; background: var(--bg); }
.ship-card .chips span.hot { border-color: var(--accent); color: var(--accent); }
.ship-card .chips img { width: 16px; height: 16px; border-radius: 4px; background: #fff; }
.ship-card .chips .more { padding-left: .5rem; color: var(--soft); }

.scene-ui { position: absolute; z-index: 3; right: var(--pad); bottom: 2.6rem; display: flex; gap: .4rem; }
.scene-ui[hidden], .load-3d[hidden] { display: none; }
.scene-ui button { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font: 500 .85rem var(--wl-font, system-ui); cursor: pointer; box-shadow: var(--float); }
.scene-ui button.wide { padding: 0 1rem; }
.scene-ui svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.load-3d { position: absolute; z-index: 3; left: 50%; top: 4.2rem; transform: translateX(-50%); box-shadow: var(--float); white-space: nowrap; }
.scene figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 2rem; padding-top: .4rem; padding-bottom: clamp(3rem, 7vw, 5rem); color: var(--soft); font-size: .92rem; }
.hint { max-width: 38rem; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.legend li { display: inline-flex; align-items: center; gap: .5rem; }
@media (max-width: 640px) {
  .hero-text .lead { font-size: 1.0625rem; }
  .hero-text .cta { margin-top: 1.3rem; }
  .scene-frame { height: clamp(340px, 58vh, 520px); }
  .ship-card { top: 1.4rem; bottom: auto; padding: .7rem .9rem; }
  .ship-card dl { display: none; }
  .scene-ui { bottom: 1.2rem; }
}

/* ── how it works ────────────────────────────────────────────────────────── */
.diagram { display: grid; grid-template-columns: auto 3rem 1fr; align-items: center; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.d-node { display: grid; gap: .15rem; padding: .9rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); text-align: center; }
.d-node b { font-weight: 600; } .d-node small, .d-ship small { color: var(--soft); font-size: .82rem; font-variant-numeric: tabular-nums; }
.d-gate { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.d-arrow { height: 1px; background: var(--soft); position: relative; margin-inline: .5rem; }
.d-arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border: 4px solid transparent; border-left: 7px solid var(--faint); border-right: 0; }
.d-harbor { position: relative; display: grid; grid-template-columns: auto 3rem 1fr; align-items: center; padding: 3.2rem clamp(1rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem); border-radius: 22px; background: var(--panel); border: 1px dashed var(--line); }
.d-net { position: absolute; left: clamp(1rem, 3vw, 2rem); top: 1rem; color: var(--soft); font-size: .85rem; }
.d-net code { background: none; border: 0; padding: 0; color: var(--ink); }
.d-ships { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.d-ship { display: grid; gap: .15rem; padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.d-ship b { font-weight: 600; }
.d-apps { display: flex; gap: .3rem; margin-top: .6rem; flex-wrap: wrap; }
.d-apps img, .chip img, .cat img, .pillars img { background: #fff; border: 1px solid var(--line); }
.d-apps img { border-radius: 5px; }
@media (max-width: 860px) {
  .diagram, .d-harbor { grid-template-columns: 1fr; justify-items: center; }
  .d-arrow { width: 1px; height: 2rem; margin: .5rem 0; }
  .d-arrow::after { right: -4px; top: auto; bottom: -1px; border: 4px solid transparent; border-top: 7px solid var(--faint); border-bottom: 0; }
  .d-harbor { width: 100%; }
  .d-node { min-width: 12rem; }
  .d-ships { width: 100%; grid-template-columns: 1fr; }
}
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.three li { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.three p { color: var(--soft); margin-top: .6rem; }
@media (max-width: 760px) { .three { grid-template-columns: 1fr; } }

/* ── build (scrollytelling) and stages ───────────────────────────────────── */
.stage { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: var(--bg); }
.stage .stage-canvas { opacity: 0; transition: opacity .6s ease; cursor: grab; }
.stage.live .stage-canvas { opacity: 1; }
.stage.live .poster { opacity: 0; transition: opacity .6s ease .2s; }
wl-scrollytelling { margin-top: clamp(1rem, 3vw, 2rem); gap: clamp(1.5rem, 5vw, 5rem); grid-template-columns: 1.15fr .85fr; }
wl-scrollytelling:not(:defined) { display: grid; }
#build-stage { height: min(68vh, 560px); margin-top: 3.5rem; }
.steps .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; }
/* dimmed by color, not opacity: opacity would lift the text above the sticky ship on small screens */
.step .kicker, .step h3, .step p { transition: color .35s ease; }
.steps.live .step:not(.on) :is(.kicker, h3, p) { color: var(--dimtext); }

.step .kicker { color: var(--accent); font-weight: 600; font-size: .95rem; }
.step h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.03em; line-height: 1.08; margin-top: .4rem; }
.step p:last-child { color: var(--soft); margin-top: 1rem; font-size: 1.125rem; max-width: 30rem; }
.after-build { margin-top: 1rem; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; max-width: 44rem; letter-spacing: -.01em; }
@media (max-width: 700px) {
  wl-scrollytelling { grid-template-columns: 1fr; }
  #build-stage { height: 38vh; margin-top: 2.2rem; border-radius: 18px; box-shadow: 0 -4rem 0 4rem var(--bg), 0 1.2rem 1.2rem var(--bg); }
  .steps .step { min-height: 56vh; justify-content: flex-start; padding-top: 2.5rem; }
}

/* ── blueprints ──────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin-top: clamp(2rem, 5vw, 3.5rem); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: 1rem 1.2rem 1rem 0; border-top: 1px solid var(--line); }
thead th { border-top: 0; color: var(--soft); font-weight: 500; font-size: .85rem; padding-bottom: .6rem; }
tbody th { font-weight: 600; white-space: nowrap; }
tbody th small { display: block; color: var(--soft); font-weight: 400; font-size: .82rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; margin: 0 .35rem .35rem 0; padding: .16rem .6rem .16rem .22rem; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; white-space: nowrap; }
.chip img { border-radius: 4px; border: 0; }
.chip .noicon { display: none; } .chip:has(.noicon) { padding-left: .6rem; }
.chip-base { padding-left: .6rem; color: var(--soft); border-style: dashed; }

/* ── sizes ───────────────────────────────────────────────────────────────── */
.size-lab { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.size-picker { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; }
.size-picker button { min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--soft); font: 500 .92rem var(--wl-font, system-ui); cursor: pointer; }
.size-picker button:hover { color: var(--ink); border-color: var(--faint); }
.size-picker button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
#size-stage { aspect-ratio: 4 / 3; }
.size-name { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.size-text { color: var(--soft); margin-top: .6rem; font-size: 1.125rem; min-height: 3.2em; }
.size-spec dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; margin-top: 1.6rem; }
.size-spec dt { color: var(--soft); font-size: .85rem; }
.size-spec dd { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.all-sizes { margin-top: 2.5rem; }
.all-sizes summary { cursor: pointer; color: var(--accent); font-weight: 500; width: fit-content; padding: .4rem 0; }
.all-sizes .table-scroll { margin-top: 1rem; }
#size-table { min-width: 40rem; }
#size-table td:nth-child(2) { color: var(--soft); }
#size-table td:nth-child(n+3) { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) { .size-lab { grid-template-columns: 1fr; } .size-text { min-height: 0; } }

/* ── day to day ──────────────────────────────────────────────────────────── */
wl-code { display: block; min-width: 0; }
wl-code:not(:defined) pre { margin: 0; padding: .75rem .85rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: auto; font: .82rem/1.5 var(--wl-mono); }
wl-code:not(:defined) code { background: none; border: 0; padding: 0; font: inherit; }

/* ── what is in a ship ───────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.pillars li { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 22px; background: var(--panel); }
.pillars img { border-radius: 14px; border: 0; }
.pillars h3 { margin-top: 1.4rem; font-size: 1.5rem; letter-spacing: -.02em; }
.pillars p { color: var(--soft); margin-top: .5rem; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ── audience ────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.cards wl-card { display: block; }
.cards wl-card:not(:defined) { border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; }
.cards h3 { font-size: 1.25rem !important; margin-bottom: .7rem !important; }
.cards p { font-size: 1rem !important; line-height: 1.55 !important; color: var(--soft); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ── get started ─────────────────────────────────────────────────────────── */
.notice { margin-top: 1.6rem; padding: .9rem 1.1rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: .95rem; }
#start .sub { margin-bottom: 1rem; }
.dl { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.dl-meta { color: var(--soft); font-size: .95rem; }
.dl-meta a { color: var(--accent); }
.dl-coming { margin-top: 0; }
.dl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
.dl-card { display: block; position: relative; }
.dl-card:not(:defined) { border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; }
.dl-card h3 { font-size: 1.25rem !important; margin: 0 0 .3rem !important; }
.dl-card .dl-req { color: var(--soft); font-size: .9rem !important; line-height: 1.4 !important; min-height: 4.2em; }
.dl-files { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.dl-files .btn { justify-content: space-between; gap: .5rem; min-height: 2.75rem; padding: 0 1rem; white-space: nowrap; font-size: .95rem; }
.dl-files small { font-weight: 400; font-size: .85rem; opacity: .75; }
.dl-soon small { opacity: 1; }
.dl-soon { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 1px dashed var(--line); color: var(--soft); font-size: .95rem; white-space: nowrap; }
.dl-card.you { --wl-card-border: var(--accent); outline: 1.5px solid var(--accent); outline-offset: -1px; border-radius: 18px; }
.dl-card.you::after { content: attr(data-you); position: absolute; top: -.7rem; left: 1.2rem; padding: .1rem .6rem; border-radius: 999px; background: var(--accent); color: var(--bg); font-size: .75rem; font-weight: 600; }
.dl-card.you .btn { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.dl-note { margin-top: 1.2rem; color: var(--soft); font-size: .92rem; }
.first { color: var(--soft); margin-bottom: .9rem; max-width: 44rem; }
.source { margin-top: clamp(2.2rem, 5vw, 3.2rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.source summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 1.1rem 0; font-weight: 600; font-size: 1.1rem; list-style: none; }
.source summary::-webkit-details-marker { display: none; }
.source summary::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); transition: transform .2s; margin-right: .3rem; }
.source[open] summary::after { transform: rotate(-135deg); }
.source summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.source-body { padding-bottom: 1.8rem; }
.source-body > p:first-child { color: var(--soft); }
@media (max-width: 760px) { .dl-cards { grid-template-columns: 1fr; } .dl-card .dl-req { min-height: 0; } }
wl-tabs { display: block; }
wl-tab p { color: var(--soft); margin-bottom: 1rem; }
wl-tab p.after { margin: 1rem 0 0; font-size: .95rem; }
.tab-fallback { display: none; margin: 1.5rem 0 .5rem; }
wl-tabs:not(:defined) wl-tab + wl-tab { display: none; }
wl-tabs:not(:defined) wl-tab { display: block; padding-top: 3.3rem; }
.then { counter-reset: n; display: grid; gap: .7rem; }
.then li { counter-increment: n; display: grid; grid-template-columns: 2rem 1fr; align-items: baseline; }
.then li::before { content: counter(n); color: var(--faint); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── under the hood ──────────────────────────────────────────────────────── */
.tech { margin-top: clamp(2rem, 5vw, 3.5rem); }
.tech > div { display: grid; grid-template-columns: 9rem 1fr; gap: .3rem 2rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.tech dt { font-weight: 600; }
.tech dd { color: var(--soft); }
@media (max-width: 600px) { .tech > div { grid-template-columns: 1fr; } }
.honest { display: grid; gap: .5rem; margin-top: 1rem; color: var(--soft); }
.honest li { padding-left: 1.3rem; position: relative; }
.honest li::before { content: ''; position: absolute; left: 0; top: .72em; width: .6rem; height: 1px; background: var(--faint); }

/* ── footer ──────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding-block: 3rem 4rem; color: var(--soft); font-size: .92rem; }
.foot .wrap { display: grid; gap: .8rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.foot-links a { padding: .4rem 0; }
.quiet { color: var(--faint); }


/* ═══════════ second round: rhythm, the nest, the app window, slider, terminal ═══════════ */

/* ── bands: ink (always dark) and panel (soft) ───────────────────────────── */
.band.ink {
  --bg: #0c1117; --ink: #eef1f5; --soft: #a9b2c0; --faint: #8792a3; --line: #263140; --panel: #151c26; --dim: #3b4656; --dimtext: #7f8999;
  --accent: #93a8ff; --accent-ink: #0c111b; --glass: rgb(24 32 43 / .78); --float: 0 6px 22px rgb(0 0 0 / .35);
  --wl-bg: var(--bg); --wl-surface: var(--panel); --wl-surface-2: var(--bg); --wl-ink: var(--ink); --wl-ink-soft: var(--soft); --wl-border: var(--line); --wl-accent: var(--accent);
  background: var(--bg); color: var(--ink); border-top: 0;
}
.band.panel { background: var(--panel); border-top: 0; }
.band.panel + .band, .band.ink + .band { border-top: 0; }
.band.panel .stage { background: var(--bg); }
h2.display { font-size: clamp(2.9rem, 8.2vw, 6.6rem); line-height: .98; letter-spacing: -.05em; max-width: none; }
.band .lead { max-width: 44rem; }

/* ── A VM for your VMs: the nest ─────────────────────────────────────────── */
#vm-story { margin-top: clamp(1rem, 4vw, 3rem); grid-template-columns: 1.1fr .9fr; }
.nest { display: grid; place-items: center; min-height: min(74vh, 640px); }
.nest-in { position: relative; width: min(100%, 560px); aspect-ratio: 1 / .96; container-type: inline-size; }
.plate { position: absolute; left: 50%; top: 73%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform: translateY(calc(min(var(--i), var(--step)) * -11cqw)); opacity: clamp(0, calc(var(--step) - var(--i) + 1), 1);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .45s ease; }
.face { position: absolute; left: 0; right: 0; top: calc(50% - var(--h) / 2); height: var(--h); transform: scaleY(.58) rotate(45deg);
  border-radius: 9%; border: 1px solid var(--edge); background: var(--fill);
  box-shadow: 1px 1px 0 var(--side), 2px 2px 0 var(--side), 3px 3px 0 var(--side), 4px 4px 0 var(--side), 5px 5px 0 var(--side), 6px 6px 0 var(--side), 7px 7px 0 var(--side), 22px 22px 40px rgb(0 0 0 / .35);
  transition: border-color .4s, box-shadow .4s; }
.plate.cur .face { border-color: var(--accent); box-shadow: 1px 1px 0 var(--side), 2px 2px 0 var(--side), 3px 3px 0 var(--side), 4px 4px 0 var(--side), 5px 5px 0 var(--side), 6px 6px 0 var(--side), 7px 7px 0 var(--side), 0 0 0 1px var(--accent), 0 0 46px rgb(147 168 255 / .45); }
.p-machine { --s: 60cqw; --h: 60cqw; --fill: #131a23; --edge: #2b3747; --side: #0a0e14; }
.p-harbor { --s: 52cqw; --h: 52cqw; --fill: #1a2532; --edge: #34435a; --side: #0f151e; }
.p-ship { --s: 44cqw; --h: 19.4cqw; --fill: #eef1f5; --edge: #ffffff; --side: #aeb7c4; }
.p-docker { --s: 34cqw; --h: 12.2cqw; --fill: #25324f; --edge: #4a5f95; --side: #172036; }
.p-apps { --s: 30cqw; --h: 11.6cqw; --fill: transparent; --edge: transparent; --side: transparent; }
.p-ship .face { border-radius: 8% 50% 50% 8% / 18% 50% 50% 18%; }
.p-docker .face, .p-apps .face { border-radius: 6px; }
.p-apps .face { box-shadow: none; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr; gap: 3px; }
.plate.cur.p-apps .face { box-shadow: none; border-color: transparent; }
.p-machine .face { background: radial-gradient(circle, #2b3747 1px, transparent 1.4px) 0 0 / 5.2% 5.2%, var(--fill); }
.a-chip { position: absolute; inset: 9%; border: 1px dashed #2b3747; border-radius: 6%; }
.a-gate { position: absolute; left: 8%; top: 44%; width: 9%; height: 12%; border-radius: 3px; background: var(--accent); opacity: .85; }
.a-berth { position: absolute; left: 24%; width: 62%; height: 18%; border-radius: 6% 50% 50% 6% / 18% 50% 50% 18%; border: 1px dashed #4b5d79; }
.a-berth.b1 { top: 12%; } .a-berth.b2 { top: 41%; border-color: transparent; } .a-berth.b3 { top: 70%; }
.a-deck { position: absolute; left: 6%; right: 26%; top: 22%; bottom: 22%; border-radius: 4px; background: repeating-linear-gradient(90deg, #dfe4ec 0 9.5%, transparent 9.5% 11%); opacity: .9; }
.p-docker .face { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5%; padding: 7% 3%; }
.a-box { border-radius: 2px; background: #6f86cf; opacity: .75; }
.a-app { display: grid; place-items: center; border-radius: 5px; background: #fff; box-shadow: 1px 1px 0 #aeb7c4, 2px 2px 0 #aeb7c4, 3px 3px 0 #aeb7c4; }
.a-app img { width: 62%; height: auto; border-radius: 3px; transform: rotate(-90deg); }
.plate.cur .a-app { box-shadow: 1px 1px 0 #aeb7c4, 2px 2px 0 #aeb7c4, 3px 3px 0 #aeb7c4, 0 0 0 1px var(--accent); }
.tag { position: absolute; left: calc(50% + var(--tx)); top: calc(50% + var(--ty)); transform: translate(var(--tdx, 10px), -50%); white-space: nowrap; padding: .18rem .6rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--soft); font-size: .78rem; font-weight: 500; transition: color .3s, border-color .3s, background .3s; }
.plate.cur .tag { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.p-machine .tag { --tx: 0cqw; --ty: 25.6cqw; --tdx: -50%; }
.p-harbor .tag { --tx: -18.4cqw; --ty: 10.7cqw; --tdx: -50%; }
.p-ship .tag { --tx: 22.4cqw; --ty: 5cqw; }
.p-docker .tag { --tx: 16.3cqw; --ty: 4.5cqw; }
.p-apps .tag { --tx: 14.3cqw; --ty: 3.8cqw; }
.spec { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.spec li { font: .8rem var(--wl-mono); padding: .22rem .6rem; border-radius: 7px; border: 1px solid var(--line); color: var(--soft); background: var(--panel); transition: color .35s, border-color .35s; }
.steps.live .step:not(.on) .spec li { color: var(--dimtext); }
.step p + .spec { max-width: 30rem; }
#vm .step p:not(.kicker) { color: var(--soft); margin-top: 1rem; font-size: 1.125rem; max-width: 30rem; }
.precise { margin-top: clamp(1rem, 3vw, 2rem); padding-left: 1.3rem; border-left: 2px solid var(--accent); max-width: 46rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; letter-spacing: -.01em; }
.gains { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.gains li { border-top: 1px solid var(--soft); padding-top: 1.1rem; }
.gains p { color: var(--soft); margin-top: .5rem; font-size: 1rem; }
@media (max-width: 760px) { .gains { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  #vm-story { grid-template-columns: 1fr; }
  .nest { min-height: 0; padding-block: .5rem; background: var(--bg); }
  .nest-in { width: min(86%, 330px); }
  .tag { font-size: .7rem; padding: .1rem .45rem; }
}

/* ── the app, rebuilt ────────────────────────────────────────────────────── */
.app-tabs { display: block; margin-top: clamp(2rem, 5vw, 3.5rem); }
.app-tabs:not(:defined) wl-tab + wl-tab { display: none; }
.app-tabs:not(:defined) { padding-top: .8rem; }
.app-tabs::part(tablist) { overflow-x: auto; scrollbar-width: none; gap: .2rem; }
.app-tabs::part(tab) { font-size: 1rem; padding: .75rem 1rem; white-space: nowrap; flex: none; }
.view-cap { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: .4rem clamp(1.5rem, 4vw, 4rem); align-items: baseline; margin: 1.8rem 0 1.5rem; }
.view-cap h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.view-cap p { color: var(--soft); margin: 0; max-width: 40rem; }
.win { --u: 13px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); font-size: var(--u); line-height: 1.4;
  box-shadow: 0 40px 90px -40px rgb(20 30 50 / .45), 0 2px 8px rgb(20 30 50 / .06); }
.win-bar { height: 34px; display: flex; gap: 7px; align-items: center; padding: 0 13px; background: var(--panel); border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--dim); }
.win-body { display: grid; grid-template-columns: 184px minmax(0, 1fr); height: 560px; }
.win-side { border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--bg); }
.win-brand { display: grid; margin: 0 8px 14px; line-height: 1.25; }
.win-brand small, .win-group { color: var(--faint); font-size: 11.5px; }
.win-group { margin: 12px 8px 4px; }
.win-side li { padding: 5px 9px; border-radius: 7px; color: var(--ink); }
.win-side li.on { background: var(--panel); font-weight: 600; }
.win-foot { margin: auto 8px 0; display: flex; align-items: center; gap: 8px; color: var(--soft); }
.win-main { position: relative; overflow: hidden; padding: 20px 22px; min-width: 0; }
.win h4 { font-size: 15px; margin: 0; letter-spacing: -.01em; }
.v-head { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.v-title { font-size: 20px; letter-spacing: -.02em; font-weight: 600; }
.v-sub { color: var(--soft); margin: 2px 0 0; }
.ui-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 12.5px var(--wl-font); white-space: nowrap; }
button.ui-btn { cursor: pointer; } button.ui-btn:hover:not(:disabled) { border-color: var(--faint); } button.ui-btn:disabled { opacity: .45; cursor: default; }
.ui-btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ui-input { display: flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); color: var(--soft); background: var(--bg); margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pill { display: inline-flex; gap: 6px; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--soft); }
.pill i { font-style: normal; font-weight: 600; color: var(--ink); }
.pill.on { background: var(--ink); border-color: var(--ink); color: var(--bg); } .pill.on i { color: var(--bg); }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--panel); color: var(--soft); font-size: 11.5px; font-weight: 500; margin-left: 7px; }
.badge.ok { color: var(--ok); }
.win .chip { font-size: 11.5px; margin: 0 4px 4px 0; padding: 1px 8px 1px 3px; }
.win .chip.more { padding-left: 8px; color: var(--soft); }
.sheet-h { text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; color: var(--faint); margin: 14px 0 7px; }

/* harbor */
.v-harbor { padding: 0; }
.v-harbor .v-head { padding: 20px 22px 0; flex-direction: column; }
.v-bg { position: absolute; inset: 0; } .v-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.sheets { position: absolute; z-index: 2; right: 16px; top: 16px; bottom: 74px; width: 290px; }
.sheet { max-height: 100%; overflow: hidden; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--float); }
.sheet-sub { color: var(--soft); margin: 2px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stats span { display: grid; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); }
.stats small { color: var(--faint); font-size: 11px; } .stats b { font-size: 14px; }
.sheet-ip { display: flex; align-items: center; gap: 8px; margin: 12px 0 2px; } .sheet-ip small { margin-left: auto; color: var(--faint); }
.sheet-link { color: var(--soft); margin: 0; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.part { display: grid; justify-items: center; gap: 5px; padding: 8px 4px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); text-align: center; }
.part small { text-transform: uppercase; letter-spacing: .07em; font-size: 9.5px; color: var(--faint); justify-self: start; padding-left: 4px; }
.part b { font-weight: 500; font-size: 12px; }
.part img, .store button img, .win .chip img { border-radius: 5px; background: #fff; }
.dockbar { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--float); }
.dockbar button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--ink); font: 600 12.5px var(--wl-font); cursor: pointer; }
.dockbar button:hover { background: var(--panel); }
.dockbar button[aria-pressed="true"] { border-color: var(--line); background: var(--bg); box-shadow: 0 1px 3px rgb(20 30 50 / .12); }

/* ships */
.ship-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ship-card2 { padding: 14px; border-radius: 12px; border: 1px solid var(--line); min-width: 0; }
.ship-card2 h4 { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; }
.ship-card2 .state { display: flex; align-items: center; gap: 7px; color: var(--soft); margin: 8px 0; }
.win dl { margin: 0; display: grid; gap: 3px; } .win dl div { display: grid; grid-template-columns: 78px minmax(0, 1fr); } .win dt { color: var(--soft); } .win dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ship-card2 .chips { margin: 10px 0 6px; min-height: 46px; }
.acts { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }

/* shipyard */
.ysteps { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; counter-reset: y; }
.ysteps li { counter-increment: y; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 5px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); }
.ysteps li::before { content: counter(y); display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--panel); font-size: 10.5px; font-weight: 600; }
.ysteps li.done::before { content: "✓"; background: var(--ink); color: var(--bg); }
.ysteps li.cur { background: var(--ink); border-color: var(--ink); color: var(--bg); } .ysteps li.cur::before { background: var(--bg); color: var(--ink); }
.yard-cargo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; height: 420px; }
.yard-store .sheet-h { margin-top: 0; }
.store { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.store button { position: relative; display: grid; justify-items: center; gap: 5px; padding: 9px 2px 7px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--ink); font: 12px var(--wl-font); cursor: pointer; min-width: 0; }
.store button b { font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store button img { border-radius: 7px; }
.store button:hover { background: var(--panel); }
.store button[aria-pressed="true"] { background: var(--panel); border-color: var(--line); }
.store button[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 4px; right: 6px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 10px; }
.yard-dock { position: relative; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.yard-dock picture { position: absolute; inset: 0; } .yard-dock img { width: 100%; height: 100%; object-fit: cover; }
.meters { position: absolute; right: 12px; top: 12px; width: 250px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--float); }
.meters p { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; margin: 0 0 6px; }
.meters small { color: var(--soft); } .bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; } .bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 4px; transition: width .35s ease; }
.meters .meter-note { display: block; color: var(--soft); font-size: 11.5px; margin: 0; }
.yard.over .bar #y-ram-bar { background: var(--err); } .yard.over .meter-note { color: var(--err); }
.size-chip { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--soft); }
.size-chip b { color: var(--ink); margin-right: 6px; }
.yard-launch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; height: 420px; align-content: start; }
.yard-launch[hidden], .yard-cargo[hidden] { display: none; }
.yard-launch h4 { font-size: 20px; letter-spacing: -.02em; } .yard-launch dl { margin: 14px 0; } .yard-launch dl div { grid-template-columns: 96px minmax(0, 1fr); }
.ylog { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font: 12px/1.9 var(--wl-mono); min-height: 190px; align-self: start; }
.ylog li { display: flex; gap: 9px; align-items: center; color: var(--soft); }
.ylog li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--faint); border-top-color: transparent; animation: spin .7s linear infinite; flex: none; }
.ylog li.ok { color: var(--ink); } .ylog li.ok::before { animation: none; border: 0; background: var(--ok); }
.ylog li.fin { color: var(--ok); font-weight: 600; margin-top: 6px; } .ylog li.fin::before { display: none; }
@keyframes spin { to { transform: rotate(1turn); } }
.yard-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.yard-hint { margin-left: auto; color: var(--soft); }

/* router */
.routes { display: grid; gap: 14px; margin-top: 6px; }
.route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(40px, 1.1fr) minmax(0, 1fr); align-items: center; }
.r-node { display: grid; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.r-node b { display: flex; align-items: center; gap: 8px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-node small { color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-node.on { background: var(--panel); border-color: var(--ink); }
.r-node.off { border-style: dashed; } .r-node.small { color: var(--soft); padding-block: 7px; }
.r-line { position: relative; height: 0; border-top: 1.5px solid var(--faint); }
.r-line::before, .r-line::after { content: ""; position: absolute; top: -5.5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--faint); background: var(--bg); }
.r-line::before { left: -5px; } .r-line::after { right: -5px; }
.route.dashed .r-line { border-top-style: dashed; }

/* setup and check */
.done-line { color: var(--soft); margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.check-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; } .check-head p { margin: 0; } .check-head span { color: var(--soft); margin-left: 8px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.checks span { color: var(--soft); }
.tick { position: relative; flex: none; width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--dim); transition: background .2s, border-color .2s; }
.checks li.ok .tick { background: var(--ok); border-color: var(--ok); }
.checks li.ok .tick::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }

/* backup */
.ui-check { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; }
.cbx { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--faint); } .cbx.on { background: var(--accent); border-color: var(--accent); }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fields p { margin: 0; display: grid; gap: 4px; } .fields .wide { grid-column: 1 / -1; } .fields small { color: var(--soft); }
.backups { margin-top: 18px; font-size: var(--u); }
.backups th, .backups td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.backups thead th, .backups thead td { color: var(--soft); border-top: 0; } .backups tbody th { font-weight: 600; }
.backups td:last-child { text-align: right; } .backups small { display: block; font: 11px var(--wl-mono); color: var(--soft); }

@media (max-width: 900px) { .ship-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sheets { width: 250px; } .store { grid-template-columns: repeat(3, minmax(0, 1fr)); } .meters { width: 210px; } }
@media (max-width: 700px) {
  .view-cap { grid-template-columns: 1fr; }
  .win-body { grid-template-columns: 1fr; height: auto; }
  .win-side { display: none; }
  .win-main { padding: 16px 14px; }
  .v-harbor { padding: 0; display: grid; }
  .v-harbor .v-head { padding: 14px 14px 0; }
  .v-harbor .v-head { order: 1; margin-bottom: 12px; }
  .v-bg { order: 2; position: relative; inset: auto; height: 180px; } .v-bg img { object-position: 40% 60%; }
  .dockbar { order: 3; position: static; margin: 12px 12px 0; justify-content: flex-start; }
  .sheets { order: 4; position: static; width: auto; padding: 12px; }
  .sheet { max-height: none; }
  .ship-cards { grid-template-columns: 1fr; } .ship-card2:nth-child(n+4) { display: none; } .ship-card2 .chips { min-height: 0; }
  .yard-cargo { grid-template-columns: 1fr; height: auto; } .yard-dock { height: 200px; order: -1; } .meters { width: auto; left: 10px; right: 10px; top: 10px; } .size-chip { display: none; }
  .store { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .yard-launch { grid-template-columns: 1fr; height: auto; }
  .yard-hint { display: none; } .yard-foot { justify-content: space-between; }
  .route { grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); } .r-node { padding: 8px 9px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .backups th:nth-child(3), .backups td:nth-child(3) { display: none; }
}

/* ── blueprints: slider beside the ship ──────────────────────────────────── */
.bp-lab { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-top: clamp(2rem, 5vw, 3.5rem); }
.bp-lab .stage { aspect-ratio: 4 / 3; }
#bp-slider:not(:defined) .bp-slide + .bp-slide { display: none; }
/* wl-slider reflects its empty `format` property as an attribute, which switches on its "slide page" look: undo it here */
#bp-slider:not(:defined) { padding-bottom: 2.1rem; }
#bp-slider::part(dot) { width: 24px; height: 24px; padding: 8px; background-clip: content-box; }
#bp-slider::part(dots) { gap: 0; }
#bp-slider::part(view) { background: none; padding: 0; border-radius: 0; }
.bp-slide { padding: .5rem 3.2rem 1rem; min-height: 21rem; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.bp-slide h3 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.035em; line-height: 1.05; }
.bp-for { color: var(--soft); margin-top: .6rem; font-size: 1.125rem; }
.bp-slide dl { margin: 1.6rem 0 0; display: grid; gap: 1.1rem; }
.bp-slide dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: .4rem; }
.bp-slide dd { margin: 0; }
.bp-slide .chip { background: var(--bg); }
@media (max-width: 860px) { .bp-lab { grid-template-columns: 1fr; } .bp-slide { padding-inline: 2.8rem; min-height: 0; } }

/* ── cargo: the container terminal ───────────────────────────────────────── */
#inside .pillars li { background: var(--panel); border: 1px solid var(--line); }
#inside .sub { color: var(--soft); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
#inside .pillars { margin-top: 1.2rem; }
.filter-scroll { min-height: 2.6rem; margin-top: clamp(3rem, 6vw, 4.5rem); overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.terminal { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; margin-top: 1.4rem; }
.box { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-content: start; padding: 14px 14px 13px; border-radius: 6px; border: 1px solid #2a3647;
  background: repeating-linear-gradient(90deg, #17202b 0 7px, #141b25 7px 14px); transition: opacity .3s, transform .3s, border-color .3s; }
.box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 6px 6px 0 0; background: #33425a; }
.box:hover { border-color: var(--accent); transform: translateY(-2px); }
.box-face { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: #fff; }
.box-face img { border-radius: 6px; }
.box b { font-weight: 600; font-size: .95rem; align-self: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box small { color: var(--soft); font-size: .8rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.box.off { opacity: .13; transform: scale(.97); }
@media (max-width: 560px) { .terminal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .box { grid-template-columns: 1fr; padding: 11px; } .box-face { grid-row: auto; width: 34px; height: 34px; margin-bottom: 6px; } .box-face img { width: 24px; height: 24px; } .box small { display: none; } .box.off { display: none; } }

/* ── ships in action ─────────────────────────────────────────────────────── */
.act { margin-top: clamp(2rem, 5vw, 3.5rem); }
.act-bar { display: flex; flex-wrap: wrap; gap: .4rem; }
.act-bar button { height: 2.5rem; padding: 0 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--soft); font: 500 .95rem var(--wl-font); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.act-bar button:hover { border-color: var(--faint); color: var(--ink); }
.act-bar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.act-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); margin-top: 1.2rem; align-items: start; }
.act-scene { height: clamp(380px, 62vh, 600px); border-radius: 24px; border: 1px solid var(--line); }
.act-scene .poster { position: absolute; inset: 0; } .act-scene .poster img { width: 100%; height: 100%; object-fit: cover; }
.act-scene .scene-host { -webkit-mask-image: none; mask-image: none; }
.act-scene.live .scene-host { opacity: 1; } .act-scene.live .poster { opacity: 0; transition: opacity .9s ease .3s; }
.act-scene .ship-card { left: 1rem; top: 1rem; bottom: auto; max-width: 17rem; }
.act-scene .ship-card h3 { display: flex; align-items: center; gap: .5rem; }
.act-scene .ship-card h3 img { border-radius: 4px; background: #fff; }
.act-scene .ship-card p:last-child { color: var(--soft); font-size: .9rem; margin-top: .3rem; }
.act-side h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; line-height: 1.1; }
.act-side > p { color: var(--soft); margin-top: .7rem; min-height: 6.4em; }
.act-win { margin-top: 1rem; box-shadow: var(--float); }
.act-win .win-main { padding: 16px; }
.act-win h4 { display: flex; align-items: center; gap: 9px; }
.act-mem { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin: 0; }
.act-mem small { color: var(--soft); } .act-mem .bar i.hot { background: var(--warn); }
.act-svc li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--line); }
.act-svc span { margin-left: auto; color: var(--soft); }
.act-svc .lamp.wait { background: var(--warn); }
.act-file { display: grid; gap: 4px; margin: 12px 0 0; } .act-file small { color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; } .act-file code { font-size: 11.5px; justify-self: start; }
.act-hint { color: var(--soft); margin: 12px 0 7px; }
.act-offer { display: flex; flex-wrap: wrap; gap: 5px; }
@media (max-width: 900px) { .act-body { grid-template-columns: 1fr; } .act-side > p { min-height: 0; } .act-scene { height: clamp(300px, 52vh, 460px); } }

/* ── network: the drawn basin ────────────────────────────────────────────── */
.gate-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: clamp(2rem, 5vw, 3.2rem); }
.gate-pick span { color: var(--soft); margin-right: .5rem; }
.gate-pick button { height: 2.5rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--soft); font: 500 .9rem var(--wl-mono); cursor: pointer; }
.gate-pick button:hover { border-color: var(--faint); color: var(--ink); }
.gate-pick button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gate-fig { margin: 1rem 0 0; }
.gate-fig svg { width: 100%; height: auto; max-height: 76vh; overflow: visible; }
.g-water { fill: var(--panel); }
.g-wall { fill: none; stroke: var(--dim); stroke-width: 30; stroke-linejoin: round; stroke-linecap: round; }
.g-hull { fill: var(--bg); stroke: var(--faint); stroke-width: 2.5; transition: stroke .3s; }
.g-shadow { fill: var(--ink); opacity: .08; }
.g-bridge { fill: var(--panel); stroke: var(--faint); stroke-width: 2; }
.g-box { fill: var(--dim); transition: fill .3s; }
.g-route { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 13; opacity: 0; transition: opacity .3s; }
.g-req { fill: var(--accent); display: none; }
.g-none { fill: none; stroke: var(--faint); stroke-width: 3; stroke-dasharray: 5 9; }
.g-cross circle { fill: var(--bg); stroke: var(--faint); stroke-width: 1.5; } .g-cross path { stroke: var(--err); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.g-post ellipse, .g-post rect { fill: var(--bg); stroke: var(--faint); stroke-width: 1.5; } .g-post .g-lamp { fill: var(--accent); stroke: none; }
.g-label { font: 500 17px var(--wl-font); fill: var(--soft); } .g-label.g-strong { fill: var(--ink); font-weight: 600; }
.g-name text { transition: fill .3s; }
.gate-fig[data-route="0"] .g-route[data-i="0"] { opacity: .55; } .gate-fig[data-route="0"] .g-req[data-i="0"] { display: inline; }
.gate-fig[data-route="0"] .g-ship[data-i="0"] .g-hull { stroke: var(--accent); } .gate-fig[data-route="0"] .g-ship[data-i="0"] .g-box { fill: var(--accent); } .gate-fig[data-route="0"] .g-name[data-i="0"] text { fill: var(--accent); }
.gate-fig[data-route="1"] .g-route[data-i="1"] { opacity: .55; } .gate-fig[data-route="1"] .g-req[data-i="1"] { display: inline; }
.gate-fig[data-route="1"] .g-ship[data-i="1"] .g-hull { stroke: var(--accent); } .gate-fig[data-route="1"] .g-ship[data-i="1"] .g-box { fill: var(--accent); } .gate-fig[data-route="1"] .g-name[data-i="1"] text { fill: var(--accent); }
.gate-fig[data-route="2"] .g-route[data-i="2"] { opacity: .55; } .gate-fig[data-route="2"] .g-req[data-i="2"] { display: inline; }
.gate-fig[data-route="2"] .g-ship[data-i="2"] .g-hull { stroke: var(--accent); } .gate-fig[data-route="2"] .g-ship[data-i="2"] .g-box { fill: var(--accent); } .gate-fig[data-route="2"] .g-name[data-i="2"] text { fill: var(--accent); }
@media (prefers-reduced-motion: reduce) { .g-req { display: none !important; } .g-route { stroke-dasharray: none; } }
@media (max-width: 640px) { .g-label { font-size: 26px; } .gate-pick button { font-size: .8rem; padding: 0 .75rem; } }

/* ── apps: the 3D terminal is the main view, the list the alternative ────── */
.term-scene { margin-top: 1.2rem; height: clamp(420px, 70vh, 680px); border-radius: 24px; border: 1px solid var(--line); background: var(--panel); }
.term-scene .poster { position: absolute; inset: 0; } .term-scene .poster img { width: 100%; height: 100%; object-fit: cover; }
.term-scene .scene-host { -webkit-mask-image: none; mask-image: none; }
.term-scene.live .scene-host { opacity: 1; } .term-scene.live .poster { opacity: 0; transition: opacity .9s ease .3s; }
.term-scene .ship-card { left: 1rem; top: 1rem; bottom: auto; max-width: 18rem; }
.term-scene .ship-card h3 { display: flex; align-items: center; gap: .5rem; } .term-scene .ship-card h3 img { border-radius: 4px; background: #fff; }
.term-scene .ship-card p:not(.state) { color: var(--soft); font-size: .9rem; margin-top: .3rem; }
.term-scene .landmark-pill, .term-scene .ship-plate { pointer-events: none; }
.term-board { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1rem 0 0; min-height: 2rem; color: var(--soft); }
.term-board b { color: var(--ink); margin-right: .4rem; font-weight: 600; }
.term-board .chip { margin: 0; background: var(--panel); color: var(--ink); }
.term-hint { margin-top: .5rem; }
.as-list { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.as-list summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; align-items: center; gap: .6rem; }
.as-list summary::-webkit-details-marker { display: none; }
.as-list summary::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); transition: transform .2s; }
.as-list[open] summary::after { transform: rotate(-135deg); }
.as-list .terminal { margin-top: .2rem; }
.box-load { grid-column: 1 / -1; justify-self: start; margin-top: .6rem; height: 1.75rem; padding: 0 .7rem; border-radius: 7px; border: 1px solid #33425a; background: none; color: var(--ink); font: 500 .8rem var(--wl-font); cursor: pointer; }
.box-load:hover:not(:disabled) { border-color: var(--accent); } .box-load:disabled { color: var(--soft); cursor: default; }
.filter-scroll { margin-top: clamp(2rem, 4vw, 3rem); }
.term-board .chip:not(:has(img)) { padding-left: .6rem; }
