/* Legacy shell rules explicitly exclude the Orbital skin; shared operation layout remains. */
/* styles/station.css — Field Hardware berth chrome over the live 3D berth.
   Shell materials are produced kit assets (plates, keys, lights, legend strips). Destination
   panels keep their layout contracts below. This sheet loads after orbital.css and must beat
   the leftover Orbital Command website walls (opaque header, Facilities sidebar, 48px title). */

/* ───────────── the shell ───────────── */

.k-screen > .sx-app, .dp-frame > .sx-app { display: contents; }

.sxb-berth__world { left: 0; width: 100%; }
.sxb-berth__world[hidden] { display: none; }
.sxb-berth__plate { left: 0; width: 100%; pointer-events: none; }

.sxb-berth__name { max-width: none; white-space: normal; overflow-wrap: break-word; }
.sxb-berth__name .sxb-berth__word { display: inline-block; }
.sxb-berth__ident { margin: 0; }
.sxb-berth__news { margin: calc(12px * var(--k-s)) 0 0; max-width: var(--k-measure); }
.sxb-berth--clear { padding-right: 0; }
.sxb-handoff { display: flex; flex-wrap: wrap; align-items: center; gap: calc(8px * var(--k-s)) calc(12px * var(--k-s)); margin-top: calc(16px * var(--k-s)); }
.sxb-handoff[hidden] { display: none; }
.sxb-handoff__k { margin-right: calc(8px * var(--k-s)); }
.sxb-hstep__n { color: var(--k-bone-38); }

.sxb-crown { width: calc(340px * var(--k-s)); text-align: left; }
.sxb-crown .k-hero { align-items: flex-end; text-align: right; }
.sxb-vitals { margin-top: calc(12px * var(--k-s)); }
.sxb-vitals .k-row { column-gap: var(--k-gap); }
.sxb-vital__head { all: unset; display: block; cursor: default; }
.sxb-vital__head[data-hold] { cursor: pointer; }
.sxb-vital__head[data-hold]:hover .sxb-vital__label { color: var(--k-text-live); }
.sxb-vital__track { display: block; width: calc(120px * var(--k-s)); margin-top: calc(6px * var(--k-s)); }
.sxb-vital__value { text-align: right; white-space: nowrap; color: var(--k-text-live); }
.sxb-vital__acts { display: flex; gap: calc(8px * var(--k-s)); justify-content: flex-end; min-width: calc(96px * var(--k-s)); flex-wrap: wrap; }
.sxb-vital__ok { white-space: nowrap; }

#sx-panel { min-height: 0; margin-top: calc(8px * var(--k-s)); outline: none; }
#sx-panel > * { height: 100%; min-height: 0; }

.sxb-ops { justify-content: space-between; align-items: flex-end; }
.sx-dock { min-width: 0; }
.sx-dock__group--nav { gap: calc(8px * var(--k-s)); }
.sx-tile__seat { display: none; }
.sx-tile__badge { margin-right: 0.4em; }
.sx-tile__badge[hidden] { display: none; }
.sx-comms { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: calc(8px * var(--k-s)); min-width: 0; position: relative; }
.sx-receipt { font-size: var(--k-fs-body); color: var(--k-text-live); white-space: nowrap; transition: opacity var(--k-d-settle) var(--k-ease); }
.sx-receipt[hidden] { display: none; }
.sx-receipt__title { font-weight: 500; }
.sx-comms__toggle, .sxb-help { margin: 0; }
.sx-comms__count { margin-left: 0.4em; color: var(--k-signal); }
.sx-comms__count[hidden] { display: none; }
.sx-comms__history { position: absolute; bottom: calc(100% + 12px * var(--k-s)); left: 50%; transform: translateX(-50%);
  width: calc(560px * var(--k-s)); max-height: calc(var(--k-row) * 8); overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; }
.sx-comms__history[hidden] { display: none; }
.sxb-launch-seat { text-align: right; flex: 0 0 auto; }
.sxb-launch__state { text-transform: none; }
.sxb-launch .sxb-launch__state { display: block; }
.sxb-launch[data-state="check"] .sxb-launch__state { color: var(--k-signal); }
.sxb-launch[data-state="risk"]  .sxb-launch__state { color: var(--k-red); }

.sx-pop { position: fixed; z-index: 30; width: max-content; max-width: min(90vw, calc(560px * var(--k-s)));
  padding: calc(16px * var(--k-s)); background: none;
  font-family: var(--k-text); color: var(--k-text-live); opacity: 0; transition: opacity var(--k-d-settle) var(--k-ease); }
.sx-pop.is-open { opacity: 1; }
.sx-pop[hidden] { display: none; }
.sx-pop__head { margin: 0 0 calc(12px * var(--k-s)); }
.sx-pop__head em { font-style: normal; }
.sx-pop .k-rows { margin-bottom: calc(16px * var(--k-s)); }
.sx-pop .k-rows > li { display: contents; }
.sx-depchip, .sx-holdrow { all: unset; box-sizing: border-box; display: grid; width: 100%; cursor: pointer;
  grid-template-columns: var(--k-row-cols, minmax(0, 1fr) auto); align-items: center; column-gap: var(--k-gap);
  min-height: var(--k-row); padding: 0 var(--k-pad); border-top: 1px solid var(--k-hair); font-size: var(--k-fs-data); color: var(--k-bone-62); }
.sx-depchip:hover, .sx-depchip:focus-visible, .sx-holdrow:hover, .sx-holdrow:focus-visible { color: var(--k-text-live); box-shadow: none; }
.sx-depchip .k-row__num { font-size: var(--k-fs-body); color: inherit; }
.sx-holdrow__body { display: flex; flex-direction: column; min-width: 0; }
.sx-holdbay { width: 100%; margin-bottom: calc(16px * var(--k-s)); }
.sx-pop--hold { min-width: calc(480px * var(--k-s)); }
.sx-pop .k-word--primary { margin-top: calc(8px * var(--k-s)); }

/* ───────────── shared by the destination panels ───────────── */

/* A stage's title-like block keeps the corner column (credits + vitals) clear. */
.sx-clear-corner { padding-right: calc(420px * var(--k-s)); }
.k-panel > .k-hang > * + * { margin-top: calc(16px * var(--k-s)); }
.k-panel > .k-stage > * + * { margin-top: calc(16px * var(--k-s)); }
.sx-muted { color: var(--k-bone-38); }

/* ───────────── market (§1.3): the dense register ───────────── */

.sx-mkt-browser > * + * { margin-top: calc(16px * var(--k-s)); }
.sx-mkt-browser__filters { gap: calc(24px * var(--k-s)); }
.sx-mkt-search { width: 100%; }
.sx-mkt-browser__empty[hidden] { display: none; }
.sx-mkt-table th:last-child, .sx-mkt-row__held { text-align: right; }
.sx-mkt-row__price .sx-mkt-row__tr { margin-left: 0.4em; }
.sx-mkt-row__held { white-space: nowrap; }
/* The commodity glyph's only other rule lived in orbital.css, which the station never loads —
   the svg fell back to inline 100% width (~53 px) and ate the whole name cell. A row icon is
   text-sized: 18 px inline with the name, sightline -4 px onto the baseline. */
.sx-mkt-row__name .of-commodity-icon { display: inline-block; width: 18px; height: 18px; margin-right: 7px; vertical-align: -4px; color: var(--k-bone-62); }
/* Feature 16 — direct profit badge: held cargo beating its cost basis gets the green mark on the
   row itself, so route math never leaves the register. */
.sx-mkt-row__profit {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px 0;
  font-size: max(12px, 0.68em);
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: 2px;
  color: var(--k-good);
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.92;
  white-space: nowrap;
}
.sx-mkt__quote > * + *, .sx-mkt__console > * + *, .sx-trade > * + * { margin-top: calc(16px * var(--k-s)); }
.sx-mkt__quote { padding-right: calc(420px * var(--k-s)); }
.sx-mkt__hero { margin-top: calc(8px * var(--k-s)); }
.sx-mkt-chart { display: block; overflow: visible; }
.sx-mkt-stats, .sx-trade__rows { max-width: var(--k-measure); }
.sx-mkt-stats .sx-stat__k, .sx-kv > span { color: var(--k-bone-62); }
.sx-qty { display: flex; align-items: baseline; gap: var(--k-gap); flex-wrap: wrap; }
.sx-qty__in { width: 6ch; }
.sx-qty__words { gap: calc(24px * var(--k-s)); }
.sx-trade__words { gap: calc(48px * var(--k-s)); }
.sx-trade__note[hidden] { display: none; }
.sx-adboard[hidden] { display: none; }
.sx-route-row__body { display: flex; flex-direction: column; min-width: 0; }

/* ───────────── ledger (§1.4) ───────────── */

/* The shared panel's children sit on the split grid: everything left, the evidence detail right. */
.sx-ledger > .st-ledger { display: contents; }
.sx-ledger .st-sub-h, .sx-ledger .st-ledger-intro, .sx-ledger .st-ledger-status, .sx-ledger .st-ledger-list,
.sx-ledger .st-ledger-empty, .sx-ledger .st-ledger-nav { grid-column: 1; }
/* The entry list owns the panel's bounded remainder row — an unbounded auto row let a long ledger
   write straight past the panel's clipped foot, where no scroller could ever reach it. */
.sx-ledger { grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
.sx-ledger .st-ledger-intro, .sx-ledger .st-ledger-status { margin: calc(12px * var(--k-s)) 0 0; }
.sx-ledger .st-ledger-list { margin-top: calc(24px * var(--k-s)); min-height: 0; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; }
.sx-ledger .st-ledger-detail, .sx-ledger__read { grid-column: 2; grid-row: 1 / span 6; align-self: start; padding-right: calc(420px * var(--k-s)); }
.sx-ledger .st-ledger-detail[hidden], .sx-ledger__read[hidden] { display: none; }
.sx-ledger__read > * + * { margin-top: calc(16px * var(--k-s)); }
.sx-ledger .st-ledger-entry { cursor: default; }
.sx-ledger .st-ledger-entry[aria-selected="true"] { box-shadow: none; color: var(--k-text-live); }

/* ───────────── missions (§1.5) ───────────── */

/* The hang column: posted jobs as rows (crest · job · payout), then the player's own as static rows. */
.sx-ct__hang { display: flex; flex-direction: column; min-height: 0; }
.sx-ct__hang > * + * { margin-top: calc(12px * var(--k-s)); }
.sx-ct__hang > .sx-ct__yours { margin-top: calc(32px * var(--k-s)); }
.sx-ct__board { min-height: 0; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; }
.sx-ct__rows { --k-row-cols: auto minmax(0, 1fr) auto; }
.sx-ct__rows > li { display: contents; }
.sx-ct__rows > li:last-child > .k-row { border-bottom: 1px solid var(--k-hair); }
button.sx-ct-row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; }
.sx-ct-row__crest { display: flex; align-items: center; color: var(--k-bone-62); }
.sx-ct-row__crest .k-crest { display: block; height: auto; }
.sx-ct-row.is-active .sx-ct-row__crest, .sx-ct-row:hover .sx-ct-row__crest { color: var(--k-text-live); }
.sx-ct-row__badge { margin-right: 0.4em; }
.sx-ct__jobs { --k-row-cols: minmax(0, 1fr) auto auto; }
/* paintRow's .fh-row makes these lis flex rows, so --k-row-cols is inert: default flex-shrink
   squeezes the Track chip below its label and its overflow:hidden cuts it silently. The title is
   the column built to truncate — it owns the squeeze; the nowrap meta and the chip keep their
   content size. */
.sx-job__title { flex: 1 1 auto; min-width: 0; }
.sx-job__meta { white-space: nowrap; flex: none; }
.sx-job__track { flex: none; }
.sx-job.is-tracked .sx-job__title { color: var(--k-text-live); }

/* Wave G5 — station mission titles stay whole. Wrap on word boundaries. No mid-word ellipsis. */
.sx-ct-row__title, .sx-job__title {
  white-space: normal; display: block; overflow: visible; text-overflow: clip;
  overflow-wrap: break-word; -webkit-line-clamp: unset;
  font-size: var(--k-fs-data); line-height: 1.25;
}

/* The stage: the dossier reads top-down; the corner column (credits + vitals) stays clear. */
.sx-ct__dossier { min-height: 0; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; padding-right: calc(420px * var(--k-s)); }
.sx-dossier > * + * { margin-top: calc(16px * var(--k-s)); }
/* The dossier headline is a contract title ("First trade: 8u Fuel Cells to Ceres"), not a hero
   marking: at the kit's title size it wrapped to four lines at 1280x800 and the fourth line fell
   below the dossier's clip. The size follows the width and stays under the kit title size. */
.sx-dossier__title { margin: calc(8px * var(--k-s)) 0 0; font-size: clamp(26px, 2.4vw, var(--k-fs-title)); line-height: 1.05; max-width: none; overflow-wrap: break-word; }
.sx-dossier__reward { margin-top: calc(24px * var(--k-s)); }
.sx-dossier__terms { max-width: var(--k-measure); margin-top: calc(24px * var(--k-s)); }
.sx-term__v { display: flex; flex-direction: column; align-items: flex-end; }
.sx-term__sub { white-space: nowrap; }
.sx-dossier__clauses { gap: calc(24px * var(--k-s)); }
.sx-dossier__foot { margin-top: calc(32px * var(--k-s)); align-items: baseline; }
.sx-dossier__foot .k-word-sub { display: inline-block; margin: 0 0 0 calc(16px * var(--k-s)); }

/* ───────────── factions (§1.6) ───────────── */

.sx-fac__rail { display: flex; flex-direction: column; min-height: 0; }
.sx-fac__rail > * + * { margin-top: calc(12px * var(--k-s)); }
.sx-fac__rows { min-height: 0; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; }
.sx-fac__rows > li { display: contents; }
.sx-fac__rows > li:last-child > .k-row { border-bottom: 1px solid var(--k-hair); }
button.sx-fac-row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; padding-top: calc(10px * var(--k-s)); padding-bottom: calc(10px * var(--k-s)); }
.sx-fac-row__body { display: flex; flex-direction: column; gap: calc(8px * var(--k-s)); min-width: 0; }
.sx-fac-row__bar { width: calc(160px * var(--k-s)); }
.sx-fac-row__zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--k-hair); }

/* The stage: the crest top-right under the corner column, the words down the left. */
.sx-fac__stage { min-height: 0; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; }
.sx-fac-overview { position: relative; padding-right: calc(420px * var(--k-s)); }
.sx-fac-overview > * + * { margin-top: calc(16px * var(--k-s)); }
.sx-fac-crest { position: absolute; right: calc(420px * var(--k-s)); top: 0; color: var(--k-bone-62); }
.sx-fac-crest .k-crest { display: block; height: auto; }
.sx-fac-ident__name { margin: calc(8px * var(--k-s)) 0 0; max-width: 14ch; }
.sx-fac-heroes { display: flex; flex-wrap: wrap; gap: calc(24px * var(--k-s)) calc(64px * var(--k-s)); margin-top: calc(32px * var(--k-s)); }
.sx-fac-heroes .k-hero__n { font-size: var(--k-fs-title); }
.sx-fac-heroes .k-hero__w { max-width: 28ch; }
.sx-fac__detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(32px * var(--k-s)) var(--k-gap); margin-top: calc(40px * var(--k-s)); }
.sx-fac__detail .k-caps + .k-rows { margin-top: calc(12px * var(--k-s)); }
.sx-fac__detail .k-caps + .k-sentence { margin-top: calc(12px * var(--k-s)); }
.sx-fac-network__rows > li { display: contents; }
button.sx-fac-node { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; --k-row-cols: minmax(0, 1fr) auto auto; }
.sx-fac-network__rows > li:last-child > .k-row { border-bottom: 1px solid var(--k-hair); }

/* ───────────── industry (§1.7) ───────────── */

.sx-ind__list { min-height: 0; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; }
.sx-ind-process + .sx-ind-process { margin-top: calc(32px * var(--k-s)); }
.sx-ind-process__head { margin: 0 0 calc(12px * var(--k-s)); }
.sx-ind-process__items > li { display: contents; }
.sx-ind-process__items > li:last-child > .k-row { border-bottom: 1px solid var(--k-hair); }
button.sx-ind-row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; padding-top: calc(8px * var(--k-s)); padding-bottom: calc(8px * var(--k-s)); }
.sx-ind-row__body { display: flex; flex-direction: column; min-width: 0; gap: calc(2px * var(--k-s)); }
.sx-ind-row__process { white-space: nowrap; }
.sx-ind-row.is-active .sx-ind-row__tier { color: var(--k-bone-62); }

.sx-ind__stage { min-height: 0; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; }
.sx-fab { padding-right: calc(420px * var(--k-s)); }
.sx-fab > * + * { margin-top: calc(16px * var(--k-s)); }
.sx-fab-head__name { margin: calc(8px * var(--k-s)) 0 0; }
.sx-fab-heroes { display: flex; align-items: flex-end; gap: calc(64px * var(--k-s)); margin-top: calc(24px * var(--k-s)); }
.sx-fab-col-k { margin-top: calc(32px * var(--k-s)); }
.sx-fab-inputs { max-width: var(--k-measure); margin-top: calc(12px * var(--k-s)); }
.sx-fab-in.is-missing { --k-row-cols: minmax(0, 1fr) auto auto; }
.sx-fab-notes { gap: calc(24px * var(--k-s)); }
.sx-fab-foot { margin-top: calc(32px * var(--k-s)); }

/* ───────────── bar (§1.8) ───────────── */

/* The world behind stays the berth at the docked scrim — the sheet's "room, lit warm" waits on a
   room asset; noted in the Task C receipt. */
.sx-bar__hang { display: flex; flex-direction: column; min-height: 0; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; }
.sx-bar__rail > .k-caps + .k-words, .sx-bar__leads > .k-caps + .k-rows, .sx-bar__leads > .k-caps + .k-sentence { margin-top: calc(12px * var(--k-s)); }
.sx-bar__rows { gap: calc(20px * var(--k-s)); }
.sx-bar-row .k-word-sub { display: block; }
.sx-bar__leads { margin-top: calc(40px * var(--k-s)); }
.sx-bar__leads .k-rows { --k-row-cols: minmax(0, 1fr) auto; }
.sx-lead__body { display: flex; flex-direction: column; min-width: 0; }
.sx-lead { padding-top: calc(8px * var(--k-s)); padding-bottom: calc(8px * var(--k-s)); }
.sx-bar__foot { margin-top: calc(16px * var(--k-s)); }
.sx-intel__head { margin-top: calc(40px * var(--k-s)); }
.sx-intel { --k-row-cols: auto minmax(0, 1fr); }

.sx-bar__stage { min-height: 0; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; }
.sx-talk { padding-right: calc(420px * var(--k-s)); }
.sx-talk > * + * { margin-top: calc(24px * var(--k-s)); }
.sx-talk__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--k-gap); }
.sx-talk__id { min-width: 0; }
.sx-talk__id > * + * { margin-top: calc(12px * var(--k-s)); }
.sx-talk__name { margin: 0; }
/* The one image allowed: the portrait, 240 px tall, no frame, right of the name. */
.sx-talk__avatar { flex: 0 0 auto; display: block; width: calc(240px * var(--k-s)); height: calc(240px * var(--k-s)); }
.sx-talk__avatar canvas, .sx-talk__avatar img, .sx-talk__avatar .sx-portrait { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.sx-talk__reply { max-width: var(--k-measure); }
.sx-talk__reply.is-idle { color: var(--k-bone-62); }
.sx-talk__choices { margin-top: calc(32px * var(--k-s)); }
.sx-bar-offer { margin-top: calc(32px * var(--k-s)); padding-top: calc(16px * var(--k-s)); border-top: 1px solid var(--k-hair); max-width: var(--k-measure); }
.sx-bar-offer > * + * { margin-top: calc(12px * var(--k-s)); }
.sx-bar-offer__chips { gap: calc(24px * var(--k-s)); }
.sx-bar-offer__foot { margin-top: calc(16px * var(--k-s)); }

/* A destination that does not exist at this berth. */
.sx-placeholder { align-content: start; }

/* ───────────── shipworks and THE SHIP — the shared stage (§1.9) ───────────── */

/* The panel: the hulls down the hang, the stage to the right. The canvas fills the stage cell —
   the right two-thirds of the screen, so the hull sits at about 66 % — with the pins, the title
   block, the corner rows and the side column laid over it. Orbit and wheel wiring unchanged. */
.sx-sw { position: relative; min-height: 0; height: 100%; }
.sx-sw > .k-hang, .sx-sw > .k-stage { position: relative; min-height: 0; }
.sx-sw__stage { position: relative; }
.sx-sw__canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; touch-action: none; }
.sx-sw__canvas.is-dragging { cursor: grabbing; }
.sx-sw__canvas:focus-visible { box-shadow: none; }
.sx-sw__stage > :not(.sx-sw__canvas) { z-index: 1; }
.sx-sw__baylines, .sx-sw__power { position: absolute; inset: 0; pointer-events: none; }
.sx-sw__baylines { display: none; }
.sx-sw__power svg, .sx-sw__power .sf-fx-beam { position: absolute; inset: 0; width: 100%; height: 100%; }
.sx-sw__power .sf-fx-beam__path, .sx-sw__power path { stroke: var(--k-hair); fill: none; }
.sx-sw__focusline { position: absolute; height: 1px; background: var(--k-hair); transform-origin: 0 50%; opacity: 0; pointer-events: none; transition: opacity var(--k-d-focus) linear; }
.sx-sw__focusline.is-on { opacity: 1; }

/* The title block, top-left of the stage: the hull's name, the condition verb as a fine word after it, the blurb. */
/* Text-on-sky over the drag canvas: the plate is pointer-transparent so drag gestures and the
   hardpoint pins beneath it stay live; only the condition word (a [data-why] tooltip carrier)
   keeps a pointer target. */
.sx-sw__nameplate { position: absolute; left: 0; top: 0; max-width: var(--k-measure); padding-right: calc(420px * var(--k-s)); pointer-events: none; }
.sx-sw__nameplate [data-why] { pointer-events: auto; }
/* The rename field is a control: it takes the pointer back from the nameplate (FB-057). The
   :hover / :focus arms outrank the kit's `input.k-input:hover { pointer-events: unset }`, which
   would hand the nameplate's `none` back the moment the pointer arrives. */
.sx-sw__nameplate input.sx-sw__nameEdit, .sx-sw__nameplate input.sx-sw__nameEdit:hover, .sx-sw__nameplate input.sx-sw__nameEdit:focus { pointer-events: auto; cursor: text; }
.sx-sw__crestLine { display: flex; align-items: baseline; gap: calc(16px * var(--k-s)); flex-wrap: wrap; }
.sx-sw__name { margin: 0; max-width: 14ch; }
.sx-sw__condition { display: inline-flex; gap: 0.5em; }
.sx-sw__conditionPct { color: var(--k-bone-38); }
.sx-sw__condition--worn .sx-sw__conditionVerb, .sx-sw__condition--strained .sx-sw__conditionVerb { color: var(--k-bad); }
.sx-sw__blurb { margin: calc(12px * var(--k-s)) 0 0; }

/* The corner: six compact static rows, the value at emphasis, a ghost value at 38 % beside it. */
/* In the station the shell's corner (credits + vitals) reaches into the panel's top-right: the rows start under it. */
/* Measured 2026-09-12 on the live route at 1280x800 and 1920x1080: the shell's corner plate ends
   above the panel at both sizes, so the two-row offset only pushed the gauges down into the side
   plate. The right column is gauges on top, the sunk side plate anchored to the panel floor, and
   the stats block keeps clear of that column instead of running under it. */
.sx-sw__gauges { position: absolute; right: 0; top: 0; width: calc(400px * var(--k-s)); --k-row-cols: minmax(0, 1fr) auto; max-height: calc(100% - var(--k-row) * 2); overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; }
.sx-sw--flight .sx-sw__gauges { top: 0; }
.sx-sw__gauges .k-row { min-height: calc(var(--k-row) * 0.8); }
.sx-sw__gauges .k-row:focus-visible { outline: none; box-shadow: none; }
.sx-sw-gauge__v { display: inline-flex; gap: 0.5em; align-items: baseline; }
.sx-sw-ghost { font-size: var(--k-fs-data); }
.sx-sw-ghost[hidden] { display: none; }

/* The pins: labels tied to the hull by hairline leaders, a 4 px square where they land. */
.sx-sw__slotfield, .sx-sw__scarfield { position: absolute; inset: 0; pointer-events: none; }
.sx-hardpoint, .sx-sw-scar { all: unset; position: absolute; pointer-events: auto; cursor: pointer; display: block; width: 0; height: 0; }
.sx-hardpoint__leader { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; }
.sx-hardpoint__leader path { stroke: var(--k-hair); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.sx-hardpoint__reticle { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; background: var(--k-bone); }
.sx-hardpoint__reticle i { display: none; }
.sx-hardpoint__copy { position: absolute; left: var(--callout-x, 24px); top: var(--callout-y, -18px); font-size: var(--k-fs-data); color: var(--k-text-live); white-space: nowrap; line-height: 1.2; text-align: left; }
.sx-hardpoint.is-callout-left .sx-hardpoint__copy { transform: translateX(-100%); text-align: right; }
.sx-hardpoint__copy b { font-weight: 500; display: block; }
.sx-hardpoint__copy em { font-style: normal; display: block; color: var(--k-bone-38); }
.sx-hardpoint:hover .sx-hardpoint__copy b, .sx-hardpoint:focus-visible .sx-hardpoint__copy b, .sx-hardpoint.is-selected .sx-hardpoint__copy b { color: var(--k-signal); }
.sx-hardpoint.is-selected .sx-hardpoint__reticle { background: var(--k-signal); }
.sx-hardpoint.is-empty .sx-hardpoint__copy b { color: var(--k-bone-38); }
.sx-hardpoint:focus-visible { outline: none; }
.sx-sw__slotfield.is-focusing .sx-hardpoint:not(.is-selected) { opacity: 0.38; }
/* The systems board: the same hardpoint buttons laid out as chips when there is no hull preview to
   pin them to (secondaryPreviewWebGlBlocked on Intel/ANGLE — a second hangar compile TDRs the
   flight context there). Without this the pins piled on one point above the name and no system
   could be chosen on the owner's own laptop. The field is capped at its containing block: a wrap
   taller than the stage used to overflow upward, and the first chip row slid under the opaque berth
   header where no click could reach it. `safe` keeps the bottom anchor when the board fits and
   falls back to top-packing — scrollable, never clipped — when it does not. */
.sx-sw__slotfield.is-board { inset: auto 0 0 0; top: auto; max-height: 100%; overflow-y: auto; display: flex; flex-wrap: wrap; align-content: flex-end; align-content: safe flex-end; gap: calc(6px * var(--k-s)) calc(8px * var(--k-s)); padding-right: calc(400px * var(--k-s) + var(--k-gap)); }
.sx-sw__slotfield.is-board .sx-hardpoint { position: static; width: auto; height: auto; display: inline-flex; align-items: center; gap: calc(8px * var(--k-s)); padding: calc(5px * var(--k-s)) calc(10px * var(--k-s)); border: 1px solid var(--k-hair); background: rgb(8 10 14 / 78%); }
.sx-sw__slotfield.is-board .sx-hardpoint__leader { display: none; }
.sx-sw__slotfield.is-board .sx-hardpoint__reticle { position: static; flex: 0 0 auto; }
.sx-sw__slotfield.is-board .sx-hardpoint__copy { position: static; transform: none; text-align: left; }
.sx-sw__slotfield.is-board .sx-hardpoint.is-selected { border-color: var(--k-signal); }
.sx-sw__slotfield.is-board .sx-hardpoint:focus-visible { box-shadow: none; }
/* With no hull preview the stage is the nameplate plus the systems board: tall enough for both,
   no orbit words or drag cue (there is nothing to orbit), and the stats take the rest and scroll.
   The window itself is never an empty bay: the authored berth-bay plate is the final picture —
   the same authored fallback the screen manager grants a staged screen that cannot run. */
.sx-sw__stage:has(> .sx-sw__canvas[data-preview-blocked]) { min-height: calc(var(--k-row) * 7.2); }
.sx-sw__stage:has(> .sx-sw__canvas[data-preview-blocked]) {
  background: linear-gradient(rgb(8 12 16 / 58%), rgb(8 12 16 / 58%)),
    url("../assets/ui/kit/assets/plates/plate.backdrop.berth-bay.png") center / cover no-repeat;
}
.sx-sw__stage:has(> .sx-sw__canvas[data-preview-blocked]) .sx-sw__camera,
.sx-sw__stage:has(> .sx-sw__canvas[data-preview-blocked]) .sx-sw__dragcue { display: none; }
.sx-sw__main:has(.sx-sw__canvas[data-preview-blocked]) > .sx-sw__stats { max-height: none; flex: 1 1 auto; }
.sx-sw-scar__dot { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; background: var(--k-bone-38); }
.sx-sw-scar__copy { position: absolute; left: 12px; top: -10px; font-size: var(--k-fs-fine); color: var(--k-bone-62); white-space: nowrap; line-height: 1.2; }
.sx-sw-scar__copy b { font-weight: 500; display: block; }
.sx-sw-scar__copy em { font-style: normal; display: block; color: var(--k-bone-38); }

/* The proposed-fit line, the drag cue and the camera words. */
.sx-sw__delta { position: absolute; max-width: calc(260px * var(--k-s)); white-space: normal; pointer-events: none; }
.sx-sw__delta[hidden] { display: none; }
.sx-sw__delta-k { color: var(--k-bone-38); }
.sx-sw__dragcue { position: absolute; right: 0; bottom: 0; pointer-events: none; }
.sx-sw__camera { position: absolute; left: 0; bottom: 0; gap: calc(16px * var(--k-s)); }
.sx-sw__acquiring { position: absolute; left: 0; bottom: calc(var(--k-row) * 2); max-width: var(--k-measure); pointer-events: none; }
.sx-sw__acquiring > * { pointer-events: auto; }
.sx-sw__acquiring:empty { display: none; }
/* While the optics resolve, the state card owns a left rail: bottom-anchored shrink-to-fit left
   it ~110 px wide and 400 px tall, interleaving with the nameplate and the callout pins. The
   plate chrome that would sit under the rail yields for the duration — the pins describe a hull
   still being read. */
.sx-sw__stage.is-acquiring .sx-sw__acquiring:not(:empty) {
  top: 0; bottom: 0; width: min(46ch, 54%); max-width: none;
  display: flex; align-items: center; padding: 0 calc(20px * var(--k-s));
  background: linear-gradient(to right, rgb(6 8 12 / 84%), rgb(6 8 12 / 42%) 70%, transparent);
}
/* Everything that describes a preview that is not on screen yet yields while the optics resolve.
   The gauges and the power ring were missing from this list, so on THE SHIP the acquiring card sat
   on top of a live "439 / +12/s" plate and a verb cluster, all three legible at once and none of
   them readable. `visibility`, not `display`: the layout must not move when the hull lands. */
.sx-sw__stage.is-acquiring .sx-sw__nameplate,
.sx-sw__stage.is-acquiring .sx-sw__slotfield,
.sx-sw__stage.is-acquiring .sx-sw__scarfield,
.sx-sw__stage.is-acquiring .sx-sw__gauges,
.sx-sw__stage.is-acquiring .sx-sw__power,
.sx-sw__stage.is-acquiring .sx-sw__baylines,
.sx-sw__stage.is-acquiring .sx-sw__focusline,
.sx-sw__stage.is-acquiring .sx-sw__camera,
.sx-sw__stage.is-acquiring .sx-sw__dragcue { visibility: hidden; }

/* The stage: the title block above, the foot below; the stage's absolute children hang off it. */
.sx-sw__main { display: flex; flex-direction: column; min-height: 0; }
.sx-sw__main > .sx-sw__stage { position: relative; flex: 1 1 auto; min-height: calc(var(--k-row) * 6); }
/* The stats keep clear of the right column (gauges + side plate, 400 px at 1920): before this the
   four heroes and the verbs row ran under the sunk plate and "Take it to the range / Record /
   Select a slot" were hidden behind it at every default viewport. */
/* The stats must shrink (0 1 auto + min-height:0) so the pinned verbs row under them keeps its
   place on short panels — with 0 0 auto the column overflows and the verbs paint off-panel. */
.sx-sw__stats { flex: 0 1 auto; min-height: 0; margin-top: calc(16px * var(--k-s)); margin-right: calc(400px * var(--k-s) + var(--k-gap)); max-height: 50%; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; }
.sx-sw__stats:empty { display: none; }

/* The foot: the four bands as hero numbers with a word each; the verbs as words at the row's end. */
.sx-sw-bands { display: flex; align-items: flex-end; gap: calc(40px * var(--k-s)); flex-wrap: wrap; }
.sx-sw-hero { all: unset; display: flex; flex-direction: column; cursor: pointer; }
/* Four heroes must share the stats width (868 px at 1920, 475 px at 1280): the title size only fit
   three. The number size keeps them on one line at 1080p and on two clean lines at 1280x800. */
.sx-sw-hero .k-hero__n { font-size: var(--k-fs-num); color: var(--k-text-live); transition: color var(--k-d-focus) linear; }
.sx-sw-hero .k-hero__w { color: var(--k-bone-38); }
.sx-sw-hero:hover .k-hero__w, .sx-sw-hero:focus-visible .k-hero__w, .sx-sw-hero.is-selected .k-hero__w { color: var(--k-signal); }
.sx-sw-hero:focus-visible { outline: none; }
.sx-sw-power__state--you .k-hero__n { color: var(--k-good); }
.sx-sw-power__state--foe .k-hero__n { color: var(--k-bad); }
/* The verbs are pinned to the foot of the main column by shipworks.js (dressApron) — a footer row
   under the stats scroll, always on the glass without covering any stat row. */
.sx-sw-verbs { margin-left: auto; align-self: flex-end; gap: calc(24px * var(--k-s)); }
.sx-sw__main > .sx-sw-verbs { flex: 0 0 auto; display: flex; justify-content: flex-end; margin: calc(8px * var(--k-s)) calc(400px * var(--k-s) + var(--k-gap)) 0 0; padding: calc(6px * var(--k-s)) 0 calc(2px * var(--k-s)); }
.sx-sw-verb[disabled] { color: var(--k-bone-38); cursor: default; }
.sx-sw-band { margin-top: calc(16px * var(--k-s)); max-width: var(--k-measure); }
.sx-sw-band__label { margin: 0 0 calc(8px * var(--k-s)); }
.sx-sw-band__meta { margin: 0 0 calc(8px * var(--k-s)); }
.sx-sw-bars { --k-row-cols: minmax(0, 1fr) auto auto; }
.sx-sw-bar__track { width: calc(160px * var(--k-s)); }
.sx-sw-band[aria-live] p.sx-sw-ghost { margin: calc(8px * var(--k-s)) 0 0; }
.sx-sw-chiprow { gap: calc(24px * var(--k-s)); }
.sx-sw-chip--goal, .sx-sw-chip--next { color: var(--k-bone-38); }
.sx-sw-chip--alert .sx-sw-chip__verb, .sx-sw-chip--danger .sx-sw-chip__verb { color: var(--k-bad); }
.sx-sw-presetrow { gap: calc(24px * var(--k-s)); }
.sx-sw-preset.is-dim { color: var(--k-bone-38); }
.sx-sw-preset.is-selected .sx-sw-preset__label { color: var(--k-signal); }
.sx-sw-record { margin-top: calc(16px * var(--k-s)); max-width: var(--k-measure); }
.sx-sw-record__grid { --k-row-cols: minmax(0, 1fr) auto; }
.sx-sw-record__row { display: contents; }
.sx-sw-presetdrawer__actions { margin-top: calc(8px * var(--k-s)); }

/* The hang column: fleet / for sale words, then the hulls as rows (name · role, price or Active at the number). */
.sx-sw__rail { display: flex; flex-direction: column; min-height: 0; }
.sx-seg { gap: calc(24px * var(--k-s)); flex: 0 0 auto; }
.sx-seg__btn.is-on { color: var(--k-text-live); }
.sx-sw__carousel { position: relative; display: flex; flex-direction: column; min-height: 0; margin-top: calc(16px * var(--k-s)); }
.sx-sw__railstep, .sx-sw__railtrack { display: none; }
.sx-sw__list { min-height: 0; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; outline: none; }
.sx-sw__list:focus-visible { box-shadow: none; }
button.sx-sw-row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; }
.sx-sw__list > .sx-sw-row:last-child { border-bottom: 1px solid var(--k-hair); }
.sx-sw-row__body { display: flex; flex-direction: column; min-width: 0; }
.sx-sw-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-sw-row__flag { color: var(--k-signal); }
.sx-sw-row__flag:empty { display: none; }

/* Choosing a slot: the compatible modules take the hang column's cell; the hulls step aside. */
.sx-sw__chooser { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-height: 0; z-index: 1; opacity: 0; transition: opacity var(--k-d-settle) var(--k-ease); }
.sx-sw__chooser.is-open { opacity: 1; }
.sx-sw__chooser[hidden] { display: none; }
.sx-sw.is-choosing > .sx-sw__rail { display: none; }
/* The chooser takes the RAIL's cell (Task C 1.9), never the stage's. With the rail hidden, grid auto
   placement slid the stage into the 480px hang column and the chooser into the wide one: nameplate,
   gauges, the Intel systems board and the stats piled up at 360px wide. Pin the cells. */
.sx-sw > .sx-sw__rail, .sx-sw > .sx-sw__chooser { grid-column: 1; grid-row: 1; }
.sx-sw > .sx-sw__main { grid-column: 2; grid-row: 1; }
.sx-chooser__panel { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.sx-chooser__head { flex: 0 0 auto; }
.sx-chooser__head > * + * { margin-top: calc(12px * var(--k-s)); }
.sx-chooser__head h3 { margin: 0; }
.sx-chooser__kicker { margin: 0; }
.sx-chooser__panel > .k-sentence, .sx-chooser__panel > .k-words { margin-top: calc(12px * var(--k-s)); }
.sx-chooser__list { flex: 1 1 0; margin-top: calc(16px * var(--k-s)); min-height: 0; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; --k-row-cols: minmax(0, 1fr) auto; }
.sx-chooser__list > .sx-modrow:last-child { border-bottom: 1px solid var(--k-hair); }
.sx-modrow { align-items: start; padding-top: calc(10px * var(--k-s)); padding-bottom: calc(10px * var(--k-s)); cursor: default; }
/* Row 500 — the provenance rim on a module icon: one thin metal ring, the tier's mark. */
.sx-provmark { display: inline-flex; border-radius: 3px; padding: 1px; }
.sx-provmark[data-mark='copper'] { box-shadow: 0 0 0 1px rgb(217 138 74 / .85), 0 0 6px rgb(217 138 74 / .35); }
.sx-provmark[data-mark='silver'] { box-shadow: 0 0 0 1px rgb(200 212 224 / .85), 0 0 6px rgb(200 212 224 / .35); }
.sx-provmark[data-mark='gold']   { box-shadow: 0 0 0 1px rgb(232 184 74 / .9),  0 0 7px rgb(232 184 74 / .4); }
.sx-provmark[data-mark='pearl']  { box-shadow: 0 0 0 1px rgb(244 240 255 / .9), 0 0 7px rgb(244 240 255 / .45); }
.sx-provmark[data-mark='paper']  { box-shadow: 0 0 0 1px rgb(232 224 200 / .8); }
.sx-modrow:focus-visible { outline: none; box-shadow: none; }
.sx-modrow.is-eq .sx-modrow__name { color: var(--k-signal); }
.sx-modrow.is-locked .sx-modrow__name { color: var(--k-bone-38); }
.sx-modrow__body { display: flex; flex-direction: column; min-width: 0; gap: calc(2px * var(--k-s)); }
.sx-modrow__body > .k-row__sub { white-space: normal; }
.sx-modrow__metrics:empty, .sx-modrow__meta:empty { display: none; }
.sx-modrow__chip, .sx-modrow__metric, .sx-modrow__unchanged { display: inline-block; margin-right: 0.8em; }
.sx-modrow__chip.is-up { color: var(--k-good); }
.sx-modrow__chip.is-down { color: var(--k-bad); }
.sx-modrow__metric i { font-style: normal; color: var(--k-bone-38); margin-right: 0.3em; }
.sx-modrow__metric b { font-weight: 400; color: var(--k-bone-62); }
.sx-modrow__act { display: flex; flex-direction: column; align-items: flex-end; }
.sx-modrow__buy small { font-size: var(--k-fs-fine); }

/* The stage-right column, under the corner rows: the selected hull's identity (buy) or the build's circuit (fleet). */
/* Anchored to the panel floor and pinned under the gauges rack, so it can never cover the gauges
   above it or the verbs/heroes to its left. The CSS top is the pre-JS contract; shipworks.js then
   measures the rack's real bottom and sets style.top, since the rack lives in the stage's
   containing block and the plate in the panel's. */
.sx-sw__side { position: absolute; right: 0; bottom: 0; top: calc(var(--k-row) * 7); width: calc(400px * var(--k-s)); z-index: 1; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--k-hair) transparent; }
/* The energy-core figure in the side plate at number size, not title size: at 1280x800 the plate
   has about four rows under the gauges and a title-size "80" was cut in half by its own scroll. */
.sx-sw__side .sx-sw-circuit__core .k-hero__n { font-size: var(--k-fs-num); }
.sx-sw__side:empty { display: none; }
.sx-sw__side > * + *, .sx-sw-circuit > * + * { margin-top: calc(12px * var(--k-s)); }
.sx-sw-side__name, .sx-sw-circuit__identity { margin: 0; }
.sx-sw-circuit__sub { display: block; margin-top: calc(4px * var(--k-s)); }
.sx-sw-side__hero .k-hero__n, .sx-sw-circuit__core .k-hero__n { font-size: var(--k-fs-title); }
.sx-spec, .sx-sw-circuit__flows { --k-row-cols: minmax(0, 1fr) auto; }
.sx-sw-flow__copy { display: flex; flex-direction: column; }
.sx-sw-circuit__instruction { max-width: var(--k-measure); }
.sx-buybar, .sx-sw-circuit__acts { gap: calc(24px * var(--k-s)); }

/* THE SHIP in flight: the same panel filling the kit stage screen; no station bay behind. */
/* THE SHIP is the shared shipworks stage in its flight host. It gets the station's three-column
   shape -- fleet rail, stage, systems -- because the markup has three regions plus a hidden
   chooser; two columns wrapped the last two onto a second row on top of the first. */
.sf-ship.dp-frame > .sx-sw {
  grid-row: 1 / -1; grid-column: 1 / -1;
  grid-template-columns: 230px minmax(0, 1fr) 285px;
  grid-template-areas: 'hang stage side';
  min-height: 0;
}
.sf-ship.dp-frame > .sx-sw > .sx-sw__chooser { grid-area: hang; }
/* The preview canvas is absolutely positioned, so the stage has no intrinsic height and collapsed
   to its overlay content -- which clipped the acquiring card's own button. The station host got a
   300px floor from station-orbital.css; the flight host never did. It fills its column here. */
.sf-ship.dp-frame .sx-sw__main { display: flex; flex-direction: column; min-height: 0; gap: var(--dp-gap); }
.sf-ship.dp-frame .sx-sw__stage { flex: 1 1 auto; min-height: calc(340px * var(--dp-s, 1)); }
.sf-ship.dp-frame .sx-sw__stats { flex: 0 0 auto; }
/* A long systems list scrolls inside its rail rather than running out of the frame. */
.sf-ship.dp-frame .sx-sw__side { overflow: auto; overscroll-behavior: contain; min-height: 0; scrollbar-width: thin; }

/* ───────────── Field Hardware chrome over the live berth ─────────────
   orbital.css still carries a leftover website-wall station block. These rules apply to the
   live `.sx-berth` (including `.sx-observatory`) and beat that sheet by specificity plus load
   order (station.css injects last). Materials are nine-sliced kit PNGs. */

#screens .sx-berth.dp-frame,
#screens .sx-berth.sx-observatory.k-screen {
  display: grid;
  inset: 0;
  /* Symmetric. The right padding was 400px -- a hole kept for a vitals panel floating over the frame;
     the purse and gauges now live in the head band, so the frame runs edge to edge. */
  padding: calc(22px * var(--k-s)) calc(32px * var(--k-s)) calc(14px * var(--k-s)) calc(32px * var(--k-s));
  border: 0;
  background: transparent;
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "head" "body" "foot";
  gap: 0;
  column-gap: 0;
  row-gap: 0;
}
#screens .sx-berth.dp-frame::before { background: var(--k-scrim); }
#screens .sx-berth.dp-frame.k-screen--dense::before { background: rgb(26 20 16 / 0.38); }

/* The 3D berth is the picture. orbital.css used to park it at 16% opacity behind a website wall. */
#screens .sx-berth .sxb-berth__world { opacity: 1; z-index: -2; }
#screens .sx-berth .so-station-mark {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0);
}

#screens .sx-berth .sxb-berth {
  position: relative;
  min-height: 0;
  padding: 0 0 calc(12px * var(--k-s)) 0;
  border: 0;
  background: none;
}
#screens .sx-berth .sxb-berth--clear { padding-right: 0; }
#screens .sx-berth .of-port-mark,
#screens .sx-berth .sxb-berth__lamp {
  position: absolute;
  left: 0;
  top: calc(8px * var(--k-s));
  width: 12px;
  height: 12px;
  background: radial-gradient(closest-side, var(--dp-lamp, #f2b950) 98%, transparent) center / contain no-repeat;
}
html[data-k-temp="wanted"] #screens .sx-berth .sxb-berth__lamp {
  background-image: radial-gradient(closest-side, var(--dp-danger, #ff5038) 98%, transparent);
}

/* 2026-09-22: this was a nine-slice legend plate with 12/16px borders, line-height 1 and a 42ch
   cap -- sized for one line, holding three facts ("Trade hub · Class L · Solar Concord Navy"). It
   wrapped to two lines inside a box built for one and printed over its own border on every tab.
   It is the nameplate's eyebrow now (.dp-title__eyebrow, on this element): one etched line above
   the name, which is what it was always trying to be. Only the truncation stays here. */
#screens .sx-berth .sxb-berth__ident {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#screens .sx-berth .sxb-berth__ident:empty { display: none; }

/* 2026-09-22: the berth's name used to be `max-width: 14ch` at --fh-size-hero (140px), so HELIOS
   STATION wrapped to two lines and the head ate two fifths of the frame before the market got a
   pixel. A station is not the game's name: it is a screen title, and Deckplate's nameplate
   (.dp-title__name, on this element) sizes it. Only the placement stays here. */
#screens .sx-berth .sxb-berth__name,
#screens .sx-berth .sxb-berth__name.k-t-hero,
#screens .sx-berth .sxb-berth__name.fh-hero {
  max-width: none;
  margin: 0;
  white-space: nowrap;
}
#screens .sx-berth .sxb-berth__name.k-t-title,
#screens .sx-berth .sxb-berth__name.fh-title {
  font-size: var(--fh-size-screenTitle, var(--k-fs-title));
  font-variation-settings: "wght" 800, "wdth" 125;
}

#screens .sx-berth .sxb-berth__plate {
  background-image: url("../assets/ui/kit/assets/plates/plate.backdrop.berth-bay.png");
  background-size: cover;
  background-position: center;
  opacity: 1;
}
#screens .sx-berth[data-k-stage="live"] .sxb-berth__plate { opacity: 0; }

#screens .sx-berth .sxb-tape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(6px * var(--k-s));
  margin: calc(12px * var(--k-s)) 0 0 calc(20px * var(--k-s));
  max-width: min(72ch, 58vw);
}
#screens .sx-berth .sxb-berth__news,
#screens .sx-berth .sxb-event,
#screens .sx-berth .sxb-berth__patch,
#screens .sx-berth .sxb-berth__route {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.55em;
  margin: 0;
  max-width: none;
  padding: 0;
  /* Was a nine-sliced legend strip, then a computed "strip of stock with a shadowed lip". A tape
     is printed words on the veil (owner, 2026-09-22: no CSS imitating a material). */
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  font-family: var(--fh-face-display, var(--k-display));
  font-variation-settings: "wght" 600, "wdth" 62;
  font-size: var(--k-fs-fine);
  letter-spacing: var(--fh-track-legend, 0.06em);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--k-signal);
}
#screens .sx-berth .sxb-berth__news:empty,
#screens .sx-berth .sxb-berth__news[hidden],
#screens .sx-berth .sxb-event[hidden],
#screens .sx-berth .sxb-berth__patch[hidden],
#screens .sx-berth .sxb-berth__route[hidden] { display: none; }

#screens .sx-berth .sxb-event[data-tone="danger"] {
  padding-left: 10px;
  background: linear-gradient(90deg, var(--dp-danger, #ff5038) 2px, transparent 0);
  box-shadow: none;
}
#screens .sx-berth .sxb-berth__patch,
#screens .sx-berth .sxb-berth__route {
  color: var(--k-bone-62);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--k-text);
  font-variation-settings: normal;
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#screens .sx-berth .sxb-event__badge { display: inline; color: var(--k-signal); }
#screens .sx-berth .sxb-event[data-tone="danger"] .sxb-event__badge { color: var(--k-red); }
#screens .sx-berth .sxb-event__title {
  display: inline;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--k-text-live);
}
#screens .sx-berth .sxb-event__body {
  display: inline;
  margin: 0;
  font-family: var(--k-text);
  font-size: var(--k-fs-fine);
  font-variation-settings: normal;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  color: var(--k-bone-62);
  max-width: 36ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The mechanic reads more than one fact (scar, weld, rap). A 36-character clip
   kept only the mildest opening and hid the ship. This article wraps. */
#screens .sx-berth .sxb-berth__mechanic .sxb-event__body {
  display: block;
  max-width: 46ch;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
#screens .sx-berth .sxb-handoff { margin: calc(10px * var(--k-s)) 0 0 calc(20px * var(--k-s)); }

/* == THE HEAD BAND =============================================================================
   2026-09-22. The berth's name on the left; on the right, the berth's own readout -- the purse as
   the band's display number and four gauges on one line beneath it, with a service verb only
   under the gauge that needs one. Until today this was a panel beside the workspace on every
   tab, which is why market, shipworks, industry, contracts, factions, bar and ledger all had the
   same left-list / middle-detail / right-card shape and read as one screen seven times. Moving it
   up here gives each tab the whole width below to be its own instrument
   (design/frontend/ONE_PHOTOGRAPH.md section 9.3).

   Nothing here is a surface: the purse and the gauges are readings on the berth's veil. */
#screens .sx-berth .sxb-berth.dp-frame__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title   trigger"
    "title   crown"
    "tape    crown"
    "handoff crown";
  grid-template-rows: auto auto auto 1fr;
  column-gap: clamp(24px, 3vw, 64px);
  row-gap: 0;
  align-items: start;
}
#screens .sx-berth .sxb-berth.dp-frame__head > .dp-title { grid-area: title; grid-column: auto; }
#screens .sx-berth .sxb-berth.dp-frame__head > .sxb-tape { grid-area: tape; grid-column: auto; }
#screens .sx-berth .sxb-berth.dp-frame__head > .sxb-handoff { grid-area: handoff; grid-column: auto; }
#screens .sx-berth .sxb-berth.dp-frame__head > .so-command-trigger {
  grid-area: trigger; grid-column: auto;
  position: static; justify-self: end; align-self: start;
}
#screens .sx-berth .sxb-berth.dp-frame__head > .sxb-crown {
  grid-area: crown; grid-column: auto;
  position: static; justify-self: end; align-self: start;
  display: flex; flex-direction: column; align-items: flex-end; gap: calc(10px * var(--k-s));
  width: auto; max-width: none; max-height: none; overflow: visible;
  margin: calc(8px * var(--k-s)) 0 0; padding: 0;
  border: 0; border-image: none; background: none; box-shadow: none;
  text-align: right;
}

/* The purse: a label and the number, on one baseline. The number is a READING, so it is phosphor
   (ONE_PHOTOGRAPH section 1, "two temperatures"): the cool ink of what you read. */
#screens .sx-berth .sxb-crown .sxb-purse {
  display: flex; align-items: baseline; justify-content: flex-end; gap: calc(14px * var(--k-s));
  position: relative; order: 0; flex: none;
}
#screens .sx-berth .sxb-crown .sxb-purse__label {
  font-family: var(--dp-face-etch); font-variation-settings: "wght" 700, "wdth" 62;
  font-size: var(--dp-fs-etch, 12px); letter-spacing: .2em; text-transform: uppercase;
  color: #c2cfdb;
}
#screens .sx-berth .sxb-crown .sxb-purse__value,
#screens [data-screen="station"] .sxb-crown .sxb-purse__value {
  font-family: var(--dp-face-display); font-variation-settings: "wght" 780, "wdth" 112;
  font-size: var(--dp-fs-hero, 56px); line-height: .9; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: var(--dp-phos, #dfeeff);
  text-shadow: 0 0 18px var(--dp-phos-halo, rgb(150 210 255 / .22)), var(--dp-text-legible, 0 1px 0 rgb(0 0 0 / .5));
}

/* The gauges: four readings on one line. Each is a label and its value, a 2px track under them,
   and -- only when the ship needs it -- the service verb beneath. */
#screens .sx-berth .sxb-crown .sxb-vitals {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-end;
  gap: calc(26px * var(--k-s));
  margin: 0; padding: 0; list-style: none;
}
#screens .sx-berth .sxb-crown .sxb-vitals > .sxb-vital.k-row {
  position: relative; display: block;
  width: clamp(118px, calc(150px * var(--k-s)), 170px); min-height: 0;
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
  text-align: left;
}
#screens .sx-berth .sxb-crown .sxb-vital__head {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center;
  column-gap: 6px; row-gap: 7px; width: 100%; padding-right: 0;
}
#screens .sx-berth .sxb-crown .sxb-vital__head .so-icon { width: 15px; height: 15px; color: var(--dp-ink-dim, #b7b4a6); }
#screens .sx-berth .sxb-crown .sxb-vital__label {
  font-family: var(--dp-face-etch); font-variation-settings: "wght" 700, "wdth" 70;
  font-size: var(--dp-fs-etch, 12px); letter-spacing: .14em; text-transform: uppercase;
  color: #c2cfdb;
}
#screens .sx-berth .sxb-crown .sxb-vital__track {
  grid-column: 1 / -1; display: block; width: 100%; height: 2px; margin: 0;
  background: var(--dp-rule-hi, rgb(232 226 212 / .22)); border-radius: 0; box-shadow: none;
}
#screens .sx-berth .sxb-crown .sxb-vital__fill { display: block; height: 2px; border-radius: 0; background: var(--dp-ink-dim, #b7b4a6); box-shadow: none; }
#screens .sx-berth .sxb-crown .sxb-vital[data-tone="warn"] .sxb-vital__fill { background: var(--dp-lamp, #f2b950); box-shadow: 0 0 6px var(--dp-lamp-bloom, rgb(242 185 80 / .34)); }
#screens .sx-berth .sxb-crown .sxb-vital[data-tone="bad"] .sxb-vital__fill { background: var(--dp-danger, #ff5038); box-shadow: 0 0 6px var(--dp-danger-bloom, rgb(255 80 56 / .38)); }
#screens .sx-berth .sxb-crown .sxb-vital__value {
  position: absolute; top: 0; right: 0;
  font-family: var(--dp-face-read); font-weight: 600; font-size: var(--dp-fs-data, 14px); line-height: 15px;
  font-variant-numeric: tabular-nums; color: var(--dp-phos, #dfeeff); white-space: nowrap;
}
#screens .sx-berth .sxb-crown .sxb-vital__value.k-signal { color: var(--dp-lamp-hot, #ffd98c); }
#screens .sx-berth .sxb-crown .sxb-vital__value.k-bad { color: var(--dp-danger-hot, #ff8a70); }
#screens .sx-berth .sxb-crown .sxb-vital__acts {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; min-width: 0;
  margin-top: calc(8px * var(--k-s));
}
#screens .sx-berth .sxb-crown .sxb-vital__acts:empty { display: none; }
/* A verb can be wider than its gauge (RESUPPLY · 66 MUN · 792 CR): the last gauge hangs its verb
   from the frame's right edge instead of running past it. */
#screens .sx-berth .sxb-crown .sxb-vitals > .sxb-vital:last-child .sxb-vital__acts {
  position: absolute; right: 0; top: 100%; width: max-content; justify-content: flex-end;
}
#screens .sx-berth .sxb-crown .sxb-vital__ok { font-size: var(--dp-fs-etch, 12px); color: var(--dp-ink-mute, #9a968c); }
/* The hold's head is its manifest button: it reads as the same gauge, and says it opens. */
#screens .sx-berth .sxb-crown .sxb-vital__head[data-hold] { cursor: pointer; }
#screens .sx-berth .sxb-crown .sxb-vital__head[data-hold]:is(:hover, :focus-visible) .sxb-vital__label { color: var(--dp-ink, #e8e2d4); }
#screens .sx-berth .sxb-crown .sxb-vital__head[data-hold]:focus-visible { outline: 2px solid var(--dp-ink, #e8e2d4); outline-offset: 4px; }

/* The workspace owns the width the purse used to take. */
#screens .sx-berth .dp-frame__body--station { grid-template-columns: minmax(0, 1fr); }

/* Narrow frames: the gauges wrap two by two under the purse before anything shrinks. */
@media (max-width: 1280px) {
  #screens .sx-berth .sxb-crown .sxb-vitals { flex-wrap: wrap; max-width: calc(2 * 150px + 26px); }
}
@media (max-width: 900px) {
  #screens .sx-berth .sxb-berth.dp-frame__head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "trigger" "title" "crown" "tape" "handoff";
  }
  #screens .sx-berth .sxb-berth.dp-frame__head > :is(.sxb-crown, .so-command-trigger) { justify-self: start; }
  #screens .sx-berth .sxb-crown, #screens .sx-berth .sxb-crown .sxb-purse { align-items: flex-start; justify-content: flex-start; }
  /* The last-gauge hang exists for the one-row strip inside a crown column: stacked, the last
     gauge sits at the left edge, so its verb flows under the card like every other gauge's. */
  #screens .sx-berth .sxb-crown .sxb-vitals > .sxb-vital:last-child .sxb-vital__acts {
    position: static; width: auto; justify-content: flex-start;
  }
}

#screens .sx-berth .sxb-vital__acts .k-word,
#screens .sx-berth .sxb-vital__act {
  min-height: 30px;
  padding: 0 calc(var(--dp-cut, 10px) + 8px) 0 10px;
  /* A vital's verb spends credits: a printed ghost key with the cut. */
  border: 0;
  border-radius: 0;
  background: linear-gradient(225deg, transparent calc(var(--dp-cut, 10px) * .7071), var(--dp-field-ink, rgb(232 226 212 / .08)) 0);
  box-shadow: none;
  font-size: var(--k-fs-fine);
  color: var(--k-text-live);
  text-shadow: none;
}
#screens .sx-berth .sxb-vital__acts .k-word:hover,
#screens .sx-berth .sxb-vital__act:hover {
  background: var(--dp-cut-lit), linear-gradient(225deg, transparent calc(var(--dp-cut, 10px) * .7071), var(--dp-field-ink-hi, rgb(232 226 212 / .14)) 0);
}
#screens .sx-berth .sxb-vital__acts .k-word:active,
#screens .sx-berth .sxb-vital__act:active {
  background: linear-gradient(225deg, transparent calc(var(--dp-cut, 10px) * .7071), rgb(232 226 212 / .05) 0);
  box-shadow: none;
}
#screens .sx-berth .sxb-vital__ok { font-size: var(--k-fs-fine); color: var(--k-bone-38); }

/* Workspace sits on the berth — smoked window, not an opaque website stage. */
#screens .sx-berth #sx-panel {
  padding: 0;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  background: none;
}
#screens .sx-berth #sx-panel > .k-panel { height: 100%; min-height: 0; padding: 0; gap: calc(28px * var(--k-s)); }
/* The index is the tab's one sheet: a printed field (it was a "sunk plate" lit dark at the lip). */
#screens .sx-berth #sx-panel > .k-panel > .k-hang {
  border: 0;
  border-radius: 0;
  padding: 18px;
  background: var(--dp-field, rgb(10 12 16 / .84));
  box-shadow: none;
}
#screens .sx-berth #sx-panel > .k-panel > .k-stage {
  background: none;
}
#screens .sx-berth :is(.sx-clear-corner,.sx-mkt__quote,.sx-ct__dossier,.sx-fab,.sx-fac-overview,.sx-ledger .st-ledger-detail,.sx-ledger__read) { padding-right: 0; }

/* Destination keys along the bottom edge — not a Facilities website rail. */
#screens .sx-berth .sxb-ops {
  min-height: 0;
  padding: calc(8px * var(--k-s)) 0 0;
  margin: 0;
  border: 0;
  background: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: calc(12px * var(--k-s)) calc(16px * var(--k-s));
}
#screens .sx-berth .of-facility-rail {
  grid-area: auto;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  overflow: visible;
}
#screens .sx-berth .of-rail-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
#screens .sx-berth .sx-dock__group--nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: calc(6px * var(--k-s));
}
#screens .sx-berth .sx-dock__group--nav > li { width: auto; flex: 0 0 auto; }

/* == THE DESTINATION RAIL =======================================================================
   Seven destinations, on every station screen: the most-seen control in the game.

   WHAT THIS REPLACED, and why it had to go. Each tile was painted with
   `border-image-source: url(keys/key.legend.rest.png)` at `border-image-slice: 14 fill` - a
   160x40 bitmap stretched across a ~120x40 tab. A 320x80 @2x sits beside it on disk and no
   stylesheet ever referenced it, so on the Electron app at devicePixelRatio 2 every tab in the
   game was a 160px image upsampled to 320px. That is the smudge, and it lived in the material
   layer, not in a style choice. ONE_PHOTOGRAPH.md section 4.11 retires raster nine-slices as UI
   material.

   WHAT IT IS NOW. Section 4.2: "a filter or a tab is a lit legend on a rail. A key is mass only
   when pressing it changes the world." Opening a tab does not change the world, so a destination
   is LIGHT, not mass - no bevel, no box, no fill. One etched rail line runs under all seven and
   each destination is a mark and a word standing on it. Everything is computed, so it resolves at
   the device resolution on any display.

   FOUR STATES, FOUR DISTINCT WEIGHTS - which is the point. Before this, the focused tab and the
   current tab were both a solid amber fill, so the screen showed two "selected" tabs and the
   focused one shouted louder than the one you were actually on.
     rest     bone at mute, mark at mute
     hover    warms to full ink; a short bone bar appears under it
     CURRENT  full ink, mark lit amber, a 2px lamp bar welded under the word   <- the loudest
     next     one small amber bead above the word, quieter than current (onboarding, 4.7)
     focus    a full-width bone bar, never an amber ring (4.3) */
#screens .sx-berth .sx-dock__group--nav {
  position: relative;
  gap: clamp(2px, 0.6vw, 10px);
  align-items: stretch;
}
/* The rail itself: one etched line the whole group stands on. A hairline disappears at 1x, so it
   is 2px - a dark score with a lit edge beneath, which reads as an engraved channel, not a
   border. */
#screens .sx-berth .sx-dock__group--nav::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(180deg, var(--dp-rule) 1px, transparent 0);
  pointer-events: none;
}
#screens .sx-berth .sx-tile.k-word,
#screens .sx-berth .sx-tile.fh-key {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  gap: calc(7px * var(--k-s));
  min-height: 42px;
  min-width: 0;
  padding: 0 clamp(10px, 1.1vw, 18px);
  /* The whole raster material, gone. */
  background: none;
  border: 0;
  border-image-source: none;
  box-shadow: none;
  font-family: var(--fh-face-display, var(--k-display));
  font-variation-settings: "wght" 560, "wdth" 78;
  font-size: var(--k-fs-fine);
  letter-spacing: var(--fh-track-legend, 0.08em);
  text-transform: uppercase;
  text-align: center;
  color: var(--dp-ink-mute, var(--k-bone-62));
  transition: color 160ms var(--dp-ease-lamp, ease),
              font-variation-settings 160ms var(--dp-ease-lamp, ease);
}
@media (prefers-reduced-motion: reduce) {
  #screens .sx-berth .sx-tile.k-word,
  #screens .sx-berth .sx-tile.fh-key { transition-duration: 1ms; }
}
/* The lamp bar. ONE element carries hover, current and focus, so a tile can never show two. */
#screens .sx-berth .sx-tile.k-word::after,
#screens .sx-berth .sx-tile.fh-key::after {
  content: "";
  display: block;
  position: absolute; left: 50%; translate: -50% 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--dp-lamp-hot, #f2b950);
  box-shadow: 0 0 10px rgb(242 185 80 / .55);
  transition: width 200ms var(--dp-ease-lamp, ease);
  pointer-events: none;
}
#screens .sx-berth .sx-tile.k-word:hover,
#screens .sx-berth .sx-tile.fh-key:hover {
  color: var(--dp-ink, var(--k-text-live));
  font-variation-settings: "wght" 640, "wdth" 86;
}
#screens .sx-berth .sx-tile.k-word:hover::after,
#screens .sx-berth .sx-tile.fh-key:hover::after {
  width: 34%; background: var(--dp-ink, #e2e8f0); box-shadow: none; opacity: .5;
}
/* CURRENT. The heaviest thing on the rail, and the only amber that spans the full word. */
#screens .sx-berth .sx-tile.k-word[aria-selected="true"],
#screens .sx-berth .sx-tile.k-word.is-active,
#screens .sx-berth .sx-tile.fh-key[aria-selected="true"],
#screens .sx-berth .sx-tile.fh-key.is-active,
#screens .sx-berth .sx-tile.fh-key.is-lit {
  background: none;
  border-color: transparent;
  box-shadow: none;
  border-image-source: none;
  color: var(--dp-ink, var(--k-text-live));
  font-variation-settings: "wght" 760, "wdth" 100;
}
#screens .sx-berth .sx-tile.k-word[aria-selected="true"]::after,
#screens .sx-berth .sx-tile.k-word.is-active::after,
#screens .sx-berth .sx-tile.fh-key[aria-selected="true"]::after,
#screens .sx-berth .sx-tile.fh-key.is-active::after,
#screens .sx-berth .sx-tile.fh-key.is-lit::after {
  width: 100%; opacity: 1;
  background: var(--dp-lamp-hot, #f2b950);
  box-shadow: 0 0 12px rgb(242 185 80 / .5);
}
#screens .sx-berth .sx-tile[aria-selected="true"] .sx-tile__seat,
#screens .sx-berth .sx-tile.is-active .sx-tile__seat { color: var(--dp-lamp-hot, #f2b950); }

/* NEXT (onboarding, 4.7). A bead above the word. Deliberately quieter than CURRENT: it is a
   suggestion, not where you are. It uses ::before so it can never fight the lamp bar. */
#screens .sx-berth .sx-tile[data-dp-next]::before {
  content: "";
  position: absolute; left: 50%; translate: -50% 0; top: 4px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--dp-lamp-hot, #f2b950);
  box-shadow: 0 0 9px rgb(242 185 80 / .8);
}
#screens .sx-berth .sx-tile[data-dp-next]:not([aria-selected="true"]) { color: var(--dp-ink, #e2e8f0); }

/* FOCUS. Section 4.3 kills the ring. A full-width BONE bar says which one the keyboard holds;
   amber stays reserved for CURRENT, so the two can never be confused again. `!important` because
   station-orbital.css and Deckplate hardware both set an amber outline-color with it, and an
   unflagged `outline:none` loses to them. */
#screens .sx-berth .sx-tile.k-word:focus-visible,
#screens .sx-berth .sx-tile.fh-key:focus-visible {
  outline: 2px solid transparent !important;
  outline-offset: 0 !important;
  color: var(--dp-ink, var(--k-text-live));
  font-variation-settings: "wght" 700, "wdth" 92;
}
#screens .sx-berth .sx-tile:focus-visible .sx-tile__seat { color: var(--dp-ink, #e2e8f0); }
#screens .sx-berth .sx-tile.k-word:focus-visible::after,
#screens .sx-berth .sx-tile.fh-key:focus-visible::after {
  width: 100%; opacity: 1; height: 2px;
  background: var(--dp-ink, #e2e8f0); box-shadow: none;
}
#screens .sx-berth .sx-tile[aria-selected="true"]:focus-visible::after {
  background: var(--dp-lamp-hot, #f2b950); box-shadow: 0 0 12px rgb(242 185 80 / .5);
}

@media (forced-colors: active) {
  #screens .sx-berth .sx-tile.k-word::after,
  #screens .sx-berth .sx-tile.fh-key::after { background: Highlight; }
  #screens .sx-berth .sx-tile.k-word:focus-visible,
  #screens .sx-berth .sx-tile.fh-key:focus-visible { outline: 2px solid Highlight !important; }
}

#screens .sx-berth .sx-tile__seat {
  display: inline-flex; align-items: center; color: inherit;
  transition: color 160ms var(--dp-ease-lamp, ease);
}
#screens .sx-berth .sx-tile__badge { margin: 0; font-size: var(--k-fs-fine); color: var(--k-signal); }
#screens .sx-berth .sx-tile__label { flex: 0 1 auto; }
/* The help line sits under its own name, in sentence case, and does not widen the station past the rail. */
#screens .sx-berth .sx-dock__group--nav > li:has(.sx-tile__gloss) {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  display: flex;
  flex-wrap: wrap;
}
#screens .sx-berth .sx-dock__group--nav > li:has(.sx-tile__gloss) > .sx-tile {
  flex: 1 0 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
#screens .sx-berth .sx-tile__gloss {
  flex: 1 0 100%;
  min-width: 0;
  width: 100%;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.86em;
  line-height: 1.25;
  font-variation-settings: "wght" 480, "wdth" 100;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
/* Desktop windows up to 900 tall: seven help lines of four to eight lines each took ~150px from
   the tab body (at 960x540 the Market body vanished; at 1024x768 BUY and SELL sat under the rail).
   There the line leaves the flow and etches into the row's own tick lane on hover or keyboard
   focus (not on the open tab, whose body is already showing) — the row reserves 26px under the
   words for its rule, which is decoration, so the caption covers no body's words (a plate above
   the row landed on the market table, D248). It is one line, read from the rail's left, clipped
   only after the rail itself is full; the name's aria-label still speaks the whole line. Taller
   windows keep it under the name, except at 641–1700 wide, where seven lines under seven names
   stood as narrow columns of four to ten lines each (768x1024, 960x1000, 1280x1000, 1600x1000) and the
   Market table lost its commodity list under them. */
@media (min-width: 641px) and (max-height: 900px), (min-width: 641px) and (max-width: 1700px), (max-width: 640px) and (max-height: 600px) {
  html:root:not([data-sf-mobile="1"]) #screens .sx-berth .sx-dock__group--nav > li:has(.sx-tile__gloss) { flex: 0 0 auto; }
  html:root:not([data-sf-mobile="1"]) #screens .sx-berth .sx-dock__group--nav > li:has(.sx-tile__gloss) > .sx-tile { flex: none; width: auto; }
  html:root:not([data-sf-mobile="1"]) #screens .sx-berth .sx-tile__gloss {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    z-index: 6;
    width: auto;
    max-width: none;
    padding: 2px 8px 3px;
    font-size: var(--k-fs-fine);
    line-height: 1.25;
    color: var(--dp-ink, #e8e2d4);
    text-align: left;
    letter-spacing: 0.01em;
    font-variation-settings: "wght" 480, "wdth" 82;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bg) 88%, transparent) 40px, color-mix(in srgb, var(--bg) 88%, transparent) calc(100% - 40px), transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 140ms var(--dp-ease-lamp, ease), visibility 0s linear 140ms;
  }
  /* the dock's sideways scroller would clip the caption; with the lines out of the flow the seven
     names fit, so it can let the caption out */
  html:root:not([data-sf-mobile="1"]) #screens .sx-berth .sx-dock:has(.sx-tile__gloss) { overflow: visible; }
  html:root:not([data-sf-mobile="1"]) #screens .sx-berth .sx-tile:not([aria-selected="true"]):is(:hover, :focus-visible) ~ .sx-tile__gloss {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  /* …but the lane is one strip, so only one caption can stand in it: while a closed tab is
     hovered, its line is the live one and a different still-focused tab's caption stays out —
     two glosses would print on the same strip (hovered + keyboard-focused tiles at once). */
  html:root:not([data-sf-mobile="1"]) #screens .sx-berth .sx-dock__group--nav:has(> li > .sx-tile:not([aria-selected="true"]):hover) .sx-tile:focus-visible:not(:hover) ~ .sx-tile__gloss {
    opacity: 0;
    visibility: hidden;
  }
}
@media (min-width: 641px) and (max-height: 900px) and (prefers-reduced-motion: reduce), (min-width: 641px) and (max-width: 1700px) and (prefers-reduced-motion: reduce), (max-width: 640px) and (max-height: 600px) and (prefers-reduced-motion: reduce) {
  html:root:not([data-sf-mobile="1"]) #screens .sx-berth .sx-tile__gloss { transition: none; }
}
/* Wider than 1700 and taller than 900, the help line stays under its name, but as at most two
   lines: unclamped, each 120px column ran four or five lines deep at 1920x1080 and pushed the
   Market body down. Two lines hold the gist; the name's aria-label still speaks the whole line. */
@media (min-width: 1701px) and (min-height: 901px) {
  html:root:not([data-sf-mobile="1"]) #screens .sx-berth .sx-tile__gloss {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: break-word;
  }
  /* …and pointing at a tab, or focusing it from the keyboard, lifts its whole line into a plate
     just above the tab (the clamp cut most lines in half). That includes the open tab, so its own
     line is never stuck half cut (but not while that focus is quiet, data-sx-quiet-focus: the
     station's own arrival focus, which would cover the body at rest); while any tab is pointed at,
     only that one plate shows. The row keeps its height, since the other six lines still hold it,
     so nothing under the rail moves. */
  html:root:not([data-sf-mobile="1"]) #screens .sx-berth .sx-dock:has(.sx-tile__gloss) { overflow: visible; }
  html:root:not([data-sf-mobile="1"]) #screens .sx-berth .sx-dock__group--nav > li:has(.sx-tile__gloss) { position: relative; align-content: flex-start; }
  html:root:not([data-sf-mobile="1"]) #screens .sx-berth .sx-dock__group--nav > li:hover > .sx-tile__gloss,
  html:root:not([data-sf-mobile="1"]) #screens .sx-berth .sx-dock__group--nav:not(:has(> li:hover)) > li:has(> .sx-tile:focus-visible:not([data-sx-quiet-focus])) > .sx-tile__gloss {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    z-index: 6;
    display: block;
    width: 18rem;
    max-width: none;
    -webkit-line-clamp: none;
    line-clamp: none;
    overflow: visible;
    padding: 8px 12px 9px;
    text-align: left;
    color: var(--dp-ink, #e8e2d4);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border: 1px solid color-mix(in srgb, var(--dp-ink, #e8e2d4) 22%, transparent);
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.45);
  }
}

#screens .sx-berth .sx-comms { flex: 1 1 12rem; flex-direction: row; justify-content: flex-start; gap: calc(8px * var(--k-s)); }
#screens .sx-berth .sx-receipt { font-size: var(--k-fs-data); white-space: normal; }
#screens .sx-berth .sx-comms__history {
  left: 0;
  transform: none;
  width: min(540px, 80vw);
  padding: calc(12px * var(--k-s));
  background: none;
  box-shadow: none;
}
#screens .sx-berth .sx-comms__toggle.k-word::after,
#screens .sx-berth .sxb-help.k-word::after,
#screens .sx-berth .sxb-launch.k-word::after { display: none; }

#screens .sx-berth .sxb-launch.k-word,
#screens .sx-berth .sxb-launch.fh-key {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: calc(12px * var(--k-s));
  min-height: 56px;
  min-width: calc(140px * var(--k-s));
  padding: 0 calc(16px * var(--k-s));
  /* The one key on the station that changes the world: the field IS the lamp, with the cut.
     (It was a nine-sliced render, then a computed amber cap with a lit lip; both imitated a
     material, which the owner ruled out on 2026-09-22.) */
  border: 0;
  border-radius: 0;
  padding-right: calc(var(--dp-cut, 10px) + 16px * var(--k-s));
  background: linear-gradient(225deg, transparent calc(var(--dp-cut, 10px) * .7071), var(--dp-lamp, #f2b950) 0);
  box-shadow: none;
  text-shadow: none;
  font-family: var(--fh-face-display, var(--k-display));
  font-variation-settings: "wght" 600, "wdth" 62;
  font-size: var(--k-fs-data);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--k-text-live);
}
#screens .sx-berth .sxb-launch.k-word:hover,
#screens .sx-berth .sxb-launch.fh-key:hover {
  background: linear-gradient(225deg, transparent calc(var(--dp-cut, 10px) * .7071), var(--dp-lamp-hot, #ffd98c) 0);
  box-shadow: var(--dp-lamp-glow, 0 0 28px rgb(242 185 80 / .35));
}
#screens .sx-berth .sxb-launch.k-word:active,
#screens .sx-berth .sxb-launch.fh-key:active {
  background: linear-gradient(225deg, transparent calc(var(--dp-cut, 10px) * .7071), var(--dp-lamp-dim, #8a6b3a) 0);
  box-shadow: none;
}
/* Focus is a bone bracket, never an amber ring -- amber already means "this is the live verb"
   here, so borrowing it for focus would say two different things with one colour (4.3). */
#screens .sx-berth .sxb-launch.k-word:focus-visible,
#screens .sx-berth .sxb-launch.fh-key:focus-visible {
  outline: 2px solid var(--dp-ink, #e8e2d4) !important;
  outline-offset: 3px !important;
  box-shadow: var(--dp-lamp-glow, 0 0 28px rgb(242 185 80 / .35));
}
/* Undocking into danger: the cap goes red-hot, not grey. */
#screens .sx-berth .sxb-launch[data-state="risk"] {
  background: linear-gradient(225deg, transparent calc(var(--dp-cut, 10px) * .7071), var(--dp-danger, #ff5038) 0);
  box-shadow: none;
  color: #1a0806;
}
#screens .sx-berth .sxb-launch[data-state="risk"]:hover {
  background: linear-gradient(225deg, transparent calc(var(--dp-cut, 10px) * .7071), var(--dp-danger-hot, #ff8a70) 0);
  box-shadow: 0 0 24px var(--dp-danger-bloom, rgb(255 80 56 / .38));
}
@media (forced-colors: active) {
  #screens .sx-berth .sxb-launch.k-word:focus-visible,
  #screens .sx-berth .sxb-launch.fh-key:focus-visible { outline: 2px solid Highlight !important; }
}
#screens .sx-berth .sxb-launch__copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
#screens .sx-berth .sxb-launch .sxb-launch__state { color: var(--k-bone-38); margin: 2px 0 0; font-size: var(--k-fs-fine); letter-spacing: 0.08em; }
#screens .sx-berth .sxb-launch[data-state="ready"] .sxb-launch__state { color: var(--k-good); }
#screens .sx-berth .sxb-launch[data-state="check"] .sxb-launch__state { color: var(--k-signal); }
#screens .sx-berth .sxb-launch[data-state="risk"] .sxb-launch__state { color: var(--k-red); }
#screens .sx-berth .sxb-launch__light {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background: radial-gradient(closest-side, var(--dp-ink, #e8e2d4) 98%, transparent) center / contain no-repeat;
}
#screens .sx-berth .sxb-launch[data-state="check"] .sxb-launch__light {
  background-image: radial-gradient(closest-side, var(--dp-lamp, #f2b950) 98%, transparent);
}
#screens .sx-berth .sxb-launch[data-state="risk"] .sxb-launch__light {
  background-image: radial-gradient(closest-side, var(--dp-danger, #ff5038) 98%, transparent);
}

#screens .sx-berth .sx-pop {
  padding: calc(18px * var(--k-s));
  background: none;
  box-shadow: none;
  color: var(--k-text-live);
}

/* The departure checklist must remain readable over the station's changing content. */
#screens .sx-berth .sx-pop--dep { background: var(--sf-pop-glass) !important; }
@media (forced-colors: active) {
  #screens .sx-berth .sx-pop--dep { background: Canvas !important; }
}

html[data-k-temp="wanted"] #screens .sx-berth .sxb-berth__ident,
html[data-k-temp="wanted"] #screens .sx-berth .sxb-berth__news,
html[data-k-temp="wanted"] #screens .sx-berth .sxb-event {
  color: var(--k-text-live);
  /* WANTED: the tape goes bone-bright -- a flat printed bone field, dark ink on it. */
  background: #e2dccd;
  box-shadow: none;
  color: #1a1206;
  padding: 2px 8px;
}

/* ───────────── shared scroll-edge fade ───────────── */
/* Same contract as the kit rule (kit.css §1.3): a scrolling region never hard-clips a text
   line at its edge. The mask fades the trailing ~20px into a continuation cue; the matching
   bottom padding keeps the fade on empty space once scrolled to the end. */
.sx-comms__history, .sx-ledger .st-ledger-list, .sx-ct__board, .sx-ct__dossier,
.sx-fac__rows, .sx-fac__stage, .sx-ind__list, .sx-ind__stage,
.sx-bar__hang, .sx-bar__stage, .sx-sw__gauges, .sx-sw__stats,
.sx-sw__list, .sx-chooser__list, .sx-sw__side {
  padding-bottom: calc(20px * var(--k-s));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent);
}

@media (max-height: 780px) and (min-width: 900px) {
  #screens .sx-berth .sxb-berth { min-height: 0; padding-top: 0; padding-bottom: calc(8px * var(--k-s)); }
  #screens .sx-berth #sx-panel { padding: calc(6px * var(--k-s)) 0; }
}
@media (min-width: 2200px) {
  #screens .sx-berth.dp-frame { grid-template-columns: minmax(0, 1fr); }
  #screens .sx-berth #sx-panel { padding-inline: 0; }
}
@media (max-width: 1100px) {
  #screens .sx-berth.dp-frame {
    grid-template-columns: minmax(0, 1fr);
    padding-right: calc(292px * var(--k-s));
  }
  #screens .sx-berth .sxb-berth { padding-left: 0; padding-right: 0; }
  #screens .sx-berth .sxb-berth__lamp { left: 0; width: 12px; }
  #screens .sx-berth .sxb-crown { width: calc(260px * var(--k-s)); gap: 0; right: calc(16px * var(--k-s)); }
  #screens .sx-berth .sxb-purse { flex-basis: auto; }
  #screens .sx-berth .sx-tile.k-word { padding: 0 calc(8px * var(--k-s)); gap: 4px; font-size: var(--k-fs-fine); }
  #screens .sx-berth #sx-panel { padding: calc(8px * var(--k-s)) 0; }
}
@media (max-width: 899px) {
  #screens .sx-berth.dp-frame {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "head" "body" "foot";
    padding-right: calc(228px * var(--k-s));
  }
  #screens .sx-berth .of-facility-rail { padding: 0; border: 0; overflow: visible; }
  #screens .sx-berth .sx-dock__group--nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  #screens .sx-berth .sx-dock__group--nav > li { width: auto; flex: 0 0 auto; }
  #screens .sx-berth .sx-tile.k-word { min-height: 40px; justify-content: center; padding: 0 8px; }
  #screens .sx-berth .sxb-berth { min-height: 0; padding: 0 0 8px 0; }
  #screens .sx-berth .sxb-berth__name,
  #screens .sx-berth .sxb-berth__name.k-t-hero,
  #screens .sx-berth .sxb-berth__name.fh-hero { font-size: var(--fh-size-screenTitle, var(--k-fs-title)); }
  #screens .sx-berth .sxb-berth__news { font-size: var(--k-fs-fine); }
  #screens .sx-berth .sxb-berth__patch,
  #screens .sx-berth .sxb-berth__route { font-size: var(--k-fs-fine); }
  #screens .sx-berth .sxb-berth__lamp { left: 0; top: 4px; }
  #screens .sx-berth .sxb-crown { width: calc(200px * var(--k-s)); gap: 0; top: 12px; right: 12px; position: absolute; background: none; }
  #screens .sx-berth .sxb-purse { flex-basis: auto; }
  #screens [data-screen="station"] .sxb-purse__value { font-size: var(--k-fs-title); }
  #screens .sx-berth .sxb-vital__track { width: calc(64px * var(--k-s)); }
  #screens .sx-berth .sxb-ops { padding: 8px 0 0; min-height: 0; }
}
@media (max-width: 650px) {
  #screens .sx-berth.dp-frame {
    overflow: hidden;
    padding: calc(12px * var(--k-s));
    grid-template-areas: "head" "body" "foot";
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-columns: minmax(0, 1fr);
  }
  #screens .sx-berth .sxb-berth { padding: 0 0 8px; min-height: 0; }
  #screens .sx-berth .sxb-berth__name,
  #screens .sx-berth .sxb-berth__name.k-t-hero,
  #screens .sx-berth .sxb-berth__name.fh-hero { font-size: var(--k-fs-sub); }
  #screens .sx-berth .sxb-berth__news { padding-right: 0; max-height: none; overflow: visible; }
  #screens .sx-berth .sxb-berth__patch,
  #screens .sx-berth .sxb-berth__route { padding-right: 0; }
  #screens .sx-berth .sxb-crown {
    position: absolute;
    grid-area: auto;
    width: min(100%, 220px);
    margin: 0;
    background: none;
    top: 8px;
    right: 8px;
  }
  #screens .sx-berth .sxb-vitals { display: block; }
  #screens .sx-berth .sxb-vitals .k-row { display: grid; min-height: 28px; flex: none; }
  #screens .sx-berth .sxb-vital__acts .k-word { min-height: 36px; }
  #screens [data-screen="station"] .sxb-purse__value { font-size: var(--k-fs-menu); }
  #screens .sx-berth .sxb-purse { flex-basis: auto; }
  #screens .sx-berth .sxb-purse__label { font-size: var(--k-fs-fine); }
  #screens .sx-berth .sx-dock__group--nav { width: auto; }
  #screens .sx-berth .sx-tile.k-word { font-size: var(--k-fs-fine); }
  #screens .sx-berth .sx-tile__seat { display: inline-flex; align-items: center; color: inherit; }
  #screens .sx-berth #sx-panel { padding: 8px 0; overflow: auto; }
  #screens .sx-berth .sxb-launch.k-word { min-height: 48px; font-size: var(--k-fs-data); padding: 0 12px; }
  #screens .sx-berth .sxb-ops { gap: 8px; flex-wrap: wrap; background: none; }
  #screens .sx-berth .sx-comms { min-width: 120px; }
  #screens .sx-berth .sx-receipt { font-size: var(--k-fs-fine); }

  /* A receipt can outlive its originating tab. Keep it in the same footer row across
     destinations so a tab change cannot put it back over the navigation rail. */
  #screens .sx-berth
    .sxb-ops.dp-frame__foot:has(> .sx-comms > .sx-receipt:not([hidden])) {
    flex-wrap: wrap !important;
  }
  #screens .sx-berth
    .sxb-ops.dp-frame__foot:has(> .sx-comms > .sx-receipt:not([hidden])) > .sx-comms {
    display: contents !important;
  }
  #screens .sx-berth
    .sxb-ops.dp-frame__foot > .sx-comms > .sx-receipt:not([hidden]) {
    box-sizing: border-box !important;
    position: static !important;
    order: -1 !important;
    flex: 1 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 2px 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.2 !important;
  }
  #screens .sx-berth
    .sxb-ops.dp-frame__foot > .sx-comms > .sx-receipt:not([hidden]) > * {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

@media (forced-colors: active) {
  #screens .sx-berth .sx-tile.k-word,
  #screens .sx-berth .sxb-launch.k-word,
  #screens .sx-berth .sxb-vital__act,
  #screens .sx-berth .sx-comms__toggle,
  #screens .sx-berth .sxb-help {
    border: 1px solid ButtonText;
    background: Canvas;
    color: CanvasText;
    border-image: none;
  }
  #screens .sx-berth .sx-tile.k-word[aria-selected="true"],
  #screens .sx-berth .sxb-launch.k-word {
    border: 2px solid Highlight;
    color: Highlight;
  }
  #screens .sx-berth .sxb-crown,
  #screens .sx-berth .sxb-berth__news,
  #screens .sx-berth .sxb-event,
  #screens .sx-berth .sx-pop { border: 1px solid CanvasText; border-image: none; }
  #screens .sx-berth .sxb-berth__lamp,
  #screens .sx-berth .sxb-launch__light { forced-color-adjust: none; }
}

/* The shipworks verb rack sits in the ~115px fleet column, but its verbs are sentences ("Take it
   to the range", "Select a slot") laid out as non-wrapping inline-blocks. They ran past the column
   and slid UNDER the stage panel at x=300, so the player saw "range", "ecord", ": a slot" -- three
   words with their heads cut off. Nothing was clipping them; they were simply behind something.
   A verb wraps inside its own column instead. */
/* The shipworks verb rack carried `margin-right: calc(400px * var(--k-s) + var(--k-gap))` -- a
   hard-coded reservation for a 400px right panel that the berth layout no longer puts there. It
   squeezed the rack to 115px, so its verbs ("Take it to the range", "Select a slot") overflowed
   and slid UNDER the stage panel: the player saw "range", "ecord", ": a slot", three words with
   their heads cut off. Nothing was clipping them; they were behind something.

   The rack sits at the end of its own row and wraps at spaces. NOT `overflow-wrap: anywhere` --
   that broke "Record" into "Reco / rd", which is worse than the bug it fixed. */
#screens .sx-berth .sx-sw__main > .sx-sw-verbs {
  margin-right: 0;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: calc(16px * var(--k-s));
  min-width: 0;
}
#screens .sx-berth .sx-sw-verb { white-space: nowrap; max-width: 100%; }

/* ── MEASURED LEGIBILITY FIXES (scripts/ui-contrast.mjs, against the composited frame) ─────────
   Every number below was read off the rendered PNG, not judged by eye. */

/* UNDOCK measured 2.15:1 -- and it was MY regression from the material retire. The raster
   key.primary.rest.png happened to be dark enough for bone text; the computed amber cap that
   replaced it is much brighter, and the label kept var(--k-text-live). The most consequential
   control in the game had the worst contrast on the screen. Amber cap takes dark ink. */
#screens .sx-berth .sxb-launch .sxb-launch__label,
#screens .sx-berth .sxb-launch__label { color: #1a1206; text-shadow: 0 1px 0 rgb(255 236 200 / .28); }
/* "Ready" sits on the cap's lit upper band, so a mid-brown that looked fine on the body measured
   2.89:1 there. It takes the same ink as the label; the tier gap is size and weight, which cost
   nothing in contrast. */
#screens .sx-berth .sxb-launch .sxb-launch__state,
#screens .sx-berth .sxb-launch[data-state="ready"] .sxb-launch__state {
  color: #1a1206; text-shadow: none; font-variation-settings: "wght" 520;
}
/* Undocking into danger keeps a light label: that cap is deep red, not amber. */
#screens .sx-berth .sxb-launch[data-state="risk"] .sxb-launch__label { color: #fff0ea; text-shadow: 0 1px 0 rgb(0 0 0 / .45); }
#screens .sx-berth .sxb-launch[data-state="risk"] .sxb-launch__state { color: #f6ccc0; }

/* 3.45:1 -- the service search is a real control, not a watermark. */
#screens .sx-berth .so-command-trigger,
#screens .sx-berth .so-command-trigger * { color: #cfdbe6; }
/* 3.65:1 -- a purse legend beside a five-figure number still has to be readable. */
#screens .sx-berth .sxb-purse__label { color: #c2cfdb; }
/* 4.45:1 -- a keycap hint is quiet by design, but it is an instruction. */
#screens .sx-berth .dp-kbd, .dp-kbd { color: #cbd6e2; }

/* 3.59:1 / 4.48:1 -- a hero figure's unit legend ("power", "condition") is the word that says what
   the number means; it cannot be the least readable thing beside it. */
#screens .sx-berth .k-hero__w,
#screens .sx-berth .k-hero__w.fh-legend { color: #c2cfdb; }

/* A rung's state word ("unlocked", "locked") is a quiet reading, not a hidden one: over the bay's
   lit right half it measured 4.34:1 at the muted tier (scripts/ui-contrast.mjs), so it takes the
   station's measured quiet ink instead. */
#screens .sx-berth .sx-ladder__name .k-row__sub { color: #c9c6be; }

/* == THE MARKET, AS AN INSTRUMENT ================================================================
   2026-09-22 (design/frontend/ONE_PHOTOGRAPH.md sections 4.5, 4.6 and 9.3). The quote used to open
   with a seven-line essay and close on a 300x74 drawing stretched to fill a dark box -- a picture
   of an instrument that showed nothing. Now:
     the board   the commodity register, left
     the quote   the name and price, ONE line of readings (driver words, not paragraphs), then the
                 trace itself -- ten minutes of this station's price as a 2px phosphor line, the
                 galactic average dashed, buy and sell as two lamp ticks, the forecast cone after
                 "now" -- with a crosshair that reads any sample under the pointer, and the four
                 readings beneath it, which double as the trace's key
     the console the trade: a quantity you can drag, the total, the verb
   The console no longer floats over the quote: the analysis scrolls in its own region above it. */
#screens .sx-berth .sx-screen__body > .sx-mkt {
  grid-template-columns: minmax(520px, 36%) minmax(0, 1fr);
  column-gap: clamp(24px, 2.6vw, 56px);
}
/* overflow:auto, not hidden: at the minimum 700px frame the console (~530px) is taller than the
   stage and a hard clip destroyed the trade verb entirely — nothing could reach it. The element
   is already the frame's scroll host (.dp-frame__scroll); letting it scroll only engages when the
   console cannot fit, so the pinned-console layout at normal heights is unchanged. */
#screens .sx-berth .sx-screen__body .sx-mkt__stage { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden auto; }
#screens .sx-berth .sx-screen__body .sx-mkt__analysis {
  flex: 1 1 0; min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 4px 6px 28px 0; scrollbar-gutter: stable;
  /* a scrolled line fades into the console instead of being cut in half at its edge */
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent);
}
/* "Stable demand" repeated the Trend reading above it; it stays for assistive technology. */
#screens .sx-berth .sx-mkt__quote > .sx-mkt-cone-read {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
#screens .sx-berth .sx-mkt__quote { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; row-gap: 0; padding: 0; }
#screens .sx-berth .sx-mkt__quote > * { grid-column: 1 / -1; margin: 0; }
#screens .sx-berth .sx-mkt__quote > .sx-mkt-cat-inline { grid-column: 1; }
#screens .sx-berth .sx-mkt__quote > .sx-mkt-title { grid-column: 1; margin-top: 6px; font-size: clamp(30px, 2.4vw, 44px); line-height: 1; }
#screens .sx-berth .sx-mkt__quote > .sx-mkt__hero { grid-column: 2; grid-row: 1 / span 2; align-self: end; text-align: right; margin: 0; padding: 0; }
#screens .sx-berth .sx-mkt__quote .sx-mkt__hero .k-hero__n {
  font-family: var(--dp-face-display); font-variation-settings: "wght" 760, "wdth" 108;
  font-size: var(--dp-fs-hero, 56px); line-height: .9; letter-spacing: .01em; font-variant-numeric: tabular-nums;
  color: var(--dp-lamp-hot, #ffd98c); text-shadow: 0 0 22px var(--dp-lamp-bloom, rgb(242 185 80 / .34)), var(--dp-text-legible);
}
#screens .sx-berth .sx-mkt__quote .sx-mkt__hero .k-hero__w { margin-top: 6px; font-family: var(--dp-face-etch); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #c2cfdb; }
/* The tracked-contract line reads after the readings, not above the name. */
#screens .sx-berth .sx-mkt__quote > .sx-mkt-tracked { order: 20; margin-top: 16px; padding: 4px 0 4px 12px; border: 0; background: linear-gradient(90deg, var(--dp-lamp, #f2b950) 2px, transparent 0); }

/* the reading line */
#screens .sx-berth .sx-mkt-drivers {
  display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 2.4vw, 44px);
  margin: 22px 0 0; padding: 14px 0 0; list-style: none;
  border-top: 1px solid var(--dp-rule, rgb(232 226 212 / .10));
}
#screens .sx-berth .sx-mkt-drivers__item { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#screens .sx-berth .sx-mkt-drivers__k { font-family: var(--dp-face-etch); font-variation-settings: "wght" 700, "wdth" 70; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #c2cfdb; }
#screens .sx-berth .sx-mkt-drivers__v { font-family: var(--dp-face-read); font-weight: 600; font-size: 16px; color: var(--dp-ink, #e8e2d4); white-space: nowrap; }
#screens .sx-berth .sx-mkt-drivers__item[data-dir="up"] .sx-mkt-drivers__v { color: var(--dp-lamp-hot, #ffd98c); }
#screens .sx-berth .sx-mkt-drivers__item[data-dir="down"] .sx-mkt-drivers__v { color: var(--dp-phos, #dfeeff); }
/* the paragraph stays for assistive technology (the stage is aria-describedby it), out of sight */
#screens .sx-berth .sx-mkt-essay {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
#screens .sx-berth .sx-mkt-chain { margin-top: 12px; padding: 0; border: 0; font-size: 13px; }
#screens .sx-berth .sx-mkt-chain__flow { color: var(--dp-ink-dim, #b7b4a6); }
#screens .sx-berth .sx-mkt-chain__dock { color: #c2cfdb; }

/* the trace */
#screens .sx-berth .sx-mkt-instrument { position: relative; margin: 26px 0 0; padding: 0 0 0 44px; }
#screens .sx-berth .sx-mkt-instrument__plot {
  position: relative; height: clamp(150px, 19vh, 240px);
  border-bottom: 1px solid var(--dp-rule-hi, rgb(232 226 212 / .22));
}
#screens .sx-berth .sx-mkt-instrument .sx-mkt-chart {
  display: block; width: 100%; height: 100%; margin: 0; overflow: visible; border: 0; background: none;
}
#screens .sx-berth .sx-mkt-chart .sx-mkt-line { stroke: var(--dp-phos, #dfeeff); stroke-width: 2px; }
#screens .sx-berth .sx-mkt-chart .of-chart-area { fill: rgb(150 210 255 / .06); }
#screens .sx-berth .sx-mkt-chart .sx-mkt-avg { stroke: var(--dp-phos-dim, #9fb4c8); stroke-width: 1px; opacity: .8; }
#screens .sx-berth .sx-mkt-chart .sx-mkt-now { stroke: var(--dp-rule-hi, rgb(232 226 212 / .22)); stroke-width: 1px; }
#screens .sx-berth .sx-mkt-chart .sx-mkt-cone { fill: rgb(150 210 255 / .05); }
#screens .sx-berth .sx-mkt-chart .sx-mkt-forecast { stroke: var(--dp-phos-dim, #9fb4c8); stroke-width: 1.5px; }
#screens .sx-berth .sx-mkt-instrument__y {
  position: absolute; left: -44px; width: 38px; text-align: right;
  font-family: var(--dp-face-read); font-variant-numeric: tabular-nums; font-size: 12px; color: #c2cfdb;
}
#screens .sx-berth .sx-mkt-instrument__y--max { top: 0; transform: translateY(-50%); }
#screens .sx-berth .sx-mkt-instrument__y--min { bottom: 0; transform: translateY(50%); }
#screens .sx-berth .sx-mkt-instrument__avg {
  position: absolute; left: 8px; transform: translateY(-130%);
  font-family: var(--dp-face-etch); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dp-phos-dim, #9fb4c8);
}
#screens .sx-berth .sx-mkt-instrument__tick {
  position: absolute; right: 0; display: flex; flex-direction: row-reverse; align-items: center; gap: 7px;
  font-family: var(--dp-face-etch); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dp-lamp-hot, #ffd98c); white-space: nowrap;
}
#screens .sx-berth .sx-mkt-instrument__tick i { display: block; width: 18px; height: 2px; background: var(--dp-lamp, #f2b950); box-shadow: 0 0 6px var(--dp-lamp-bloom, rgb(242 185 80 / .34)); }
/* buy above its line, sell below, so equal quotes never print on top of each other */
#screens .sx-berth .sx-mkt-instrument__tick--buy { transform: translateY(-120%); }
#screens .sx-berth .sx-mkt-instrument__tick--sell { transform: translateY(20%); }
#screens .sx-berth .sx-mkt-instrument__dot {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--dp-phos, #dfeeff); box-shadow: 0 0 10px var(--dp-phos-halo, rgb(150 210 255 / .22)), 0 0 3px rgb(150 210 255 / .6);
}
/* the crosshair */
#screens .sx-berth .sx-mkt-instrument__cursor { position: absolute; inset: 0; pointer-events: none; }
#screens .sx-berth .sx-mkt-instrument__cursor[hidden] { display: none; }
#screens .sx-berth .sx-mkt-instrument__cursor i {
  position: absolute; top: 0; bottom: 0; left: var(--cx, 0%); width: 1px; background: rgb(223 238 255 / .42);
}
#screens .sx-berth .sx-mkt-instrument__cursor::after {
  content: ""; position: absolute; left: var(--cx, 0%); top: var(--cy, 50%); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--dp-lamp-hot, #ffd98c); box-shadow: 0 0 10px var(--dp-lamp-bloom, rgb(242 185 80 / .34));
}
#screens .sx-berth .sx-mkt-instrument__cursor b {
  position: absolute; left: calc(var(--cx, 0%) + 12px); top: calc(var(--cy, 50%) - 30px);
  padding: 3px 8px; background: var(--dp-field, rgb(10 12 16 / .84));
  font-family: var(--dp-face-read); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums;
  color: var(--dp-phos, #dfeeff); white-space: nowrap;
}
#screens .sx-berth .sx-mkt-instrument__cursor.is-left b { left: auto; right: calc(100% - var(--cx, 0%) + 12px); }
#screens .sx-berth .sx-mkt-instrument__cursor[data-kind="f"] b { color: var(--dp-phos-dim, #9fb4c8); }
#screens .sx-berth .sx-mkt-chart-key {
  display: flex; justify-content: space-between; margin: 7px 0 0 44px;
  font-family: var(--dp-face-etch); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #c2cfdb;
}

/* the four readings: the trace's key */
#screens .sx-berth .sx-mkt-readouts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 40px);
  margin: 22px 0 0; padding: 0;
}
#screens .sx-berth .sx-mkt-readouts__item { margin: 0; min-width: 0; }
#screens .sx-berth .sx-mkt-readouts dt {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-family: var(--dp-face-etch); font-variation-settings: "wght" 700, "wdth" 70; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #c2cfdb;
}
#screens .sx-berth .sx-mkt-readouts__sub { letter-spacing: .08em; text-transform: none; font-family: var(--dp-face-read); color: #c2cfdb; }
#screens .sx-berth .sx-mkt-readouts__mark { display: inline-block; width: 16px; height: 2px; flex: 0 0 auto; }
#screens .sx-berth .sx-mkt-readouts__item--buy .sx-mkt-readouts__mark,
#screens .sx-berth .sx-mkt-readouts__item--sell .sx-mkt-readouts__mark { background: var(--dp-lamp, #f2b950); }
#screens .sx-berth .sx-mkt-readouts__item--avg .sx-mkt-readouts__mark { height: 1px; background: repeating-linear-gradient(90deg, var(--dp-phos-dim, #9fb4c8) 0 3px, transparent 3px 7px); }
#screens .sx-berth .sx-mkt-readouts__item--demand .sx-mkt-readouts__mark { display: none; }
#screens .sx-berth .sx-mkt-readouts dd {
  margin: 8px 0 0; font-family: var(--dp-face-read); font-weight: 600; font-size: 24px; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--dp-phos, #dfeeff); text-shadow: var(--dp-phos-emit-soft, 0 0 6px rgb(150 210 255 / .14));
}
#screens .sx-berth .sx-mkt__quote > .sx-mkt-sale { margin-top: 16px; font-size: 13px; color: var(--dp-lamp-hot, #ffd98c); }

/* the console: one band under the quote */
#screens .sx-berth .sx-mkt__console {
  display: block; flex: 0 0 auto; margin: 0; padding: 16px 20px 14px; border: 0;
  background: var(--dp-field, rgb(10 12 16 / .84)); box-shadow: none;
}
#screens .sx-berth .sx-mkt__console .sx-trade.fh-plate {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "qty total note words" "breakdown breakdown breakdown breakdown";
  align-items: end; gap: 10px clamp(20px, 2.4vw, 44px);
  padding: 0; border: 0; background: none;
}
#screens .sx-berth .sx-trade > .sx-qty { grid-area: qty; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; gap: 6px 14px; margin: 0; }
#screens .sx-berth .sx-trade > .sx-qty .sx-qty__k { grid-column: 1 / -1; margin: 0; font-size: 12px; letter-spacing: .16em; color: #c2cfdb; }
#screens .sx-berth .sx-trade .sx-qty__in {
  width: 5.5ch; min-width: 0; height: 44px; padding: 0 2px; box-sizing: border-box;
  border: 0; background: linear-gradient(0deg, var(--dp-rule-hi, rgb(232 226 212 / .22)) 2px, transparent 0);
  font-family: var(--dp-face-read); font-weight: 600; font-size: 28px; font-variant-numeric: tabular-nums; text-align: center;
  color: var(--dp-phos, #dfeeff); cursor: ew-resize; touch-action: none;
}
#screens .sx-berth .sx-trade .sx-qty__in:focus-visible,
#screens .sx-berth .sx-mkt__console.is-scrubbing .sx-qty__in { outline: 0; background: linear-gradient(0deg, var(--dp-lamp, #f2b950) 2px, transparent 0); }
#screens .sx-berth .sx-trade .sx-qty__words { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; flex-wrap: nowrap; }
#screens .sx-berth .sx-trade > .so-trade-total { grid-area: total; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 0; }
#screens .sx-berth .sx-trade > .so-trade-total [data-trade-total-label] { font-family: var(--dp-face-etch); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #c2cfdb; }
#screens .sx-berth .sx-trade > .so-trade-total strong { font-family: var(--dp-face-read); font-weight: 600; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--dp-phos, #dfeeff); }
#screens .sx-berth .sx-trade > .sx-trade__note { grid-area: note; align-self: end; margin: 0 0 10px; font-size: 13px; color: var(--dp-lamp-hot, #ffd98c); }
#screens .sx-berth .sx-trade > .sx-trade__words { grid-area: words; display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
#screens .sx-berth .sx-trade > .sx-trade__words .sx-trade__go.fh-key { min-height: 48px; font-size: 14px; letter-spacing: .12em; }
#screens .sx-berth .sx-trade > .so-trade-breakdown { grid-area: breakdown; margin: 0; border-top: 1px solid var(--dp-rule, rgb(232 226 212 / .10)); }
#screens .sx-berth .sx-trade > .so-trade-breakdown summary { color: var(--dp-lamp-hot, #ffd98c); }
#screens .sx-berth .sx-trade > .so-trade-breakdown summary span { color: #c2cfdb; }
#screens .sx-berth .so-trade-breakdown[open] .sx-trade__rows { background: var(--dp-sheet, rgb(8 9 12 / .9)); border: 0; border-radius: 0; box-shadow: none; }
@media (max-width: 1280px) {
  #screens .sx-berth .sx-screen__body > .sx-mkt { grid-template-columns: minmax(420px, 42%) minmax(0, 1fr); }
  #screens .sx-berth .sx-mkt__console .sx-trade.fh-plate { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "qty total words" "note note note" "breakdown breakdown breakdown"; }
  #screens .sx-berth .sx-mkt-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { #screens .sx-berth .sx-mkt-instrument__cursor { transition: none; } }
@media (forced-colors: active) {
  #screens .sx-berth .sx-mkt-chart .sx-mkt-line { stroke: CanvasText; }
  #screens .sx-berth .sx-mkt-instrument__dot, #screens .sx-berth .sx-mkt-instrument__cursor::after { background: Highlight; }
  #screens .sx-berth .sx-mkt-instrument__tick i, #screens .sx-berth .sx-mkt-readouts__mark { background: CanvasText; }
}
#screens .sx-berth .sx-mkt-instrument__plot:focus-visible { outline: 2px solid var(--dp-ink, #e8e2d4); outline-offset: 4px; }
#screens .sx-berth .sx-mkt-instrument__live {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* == THE BAR: THE CONTACT, LIT =================================================================
   2026-09-22. The bar is a conversation, so its signature is the person: the contact's portrait
   (a produced 1024px painting, src/data/portraits.js) stands large in the right half of the stage
   and falls away into the bay on its left and lower edges, the way a figure stands in low light --
   instead of a 240px thumbnail in a corner beside a 420px padding hole. The conversation reads down
   the left. The fade is the photograph's own vignette, not a frame. */
#screens .sx-berth .sx-bar__stage .sx-talk {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  column-gap: clamp(24px, 3vw, 64px); align-items: start;
  padding-right: 0;
}
#screens .sx-berth .sx-bar__stage .sx-talk > * { grid-column: 1; }
#screens .sx-berth .sx-bar__stage .sx-talk > * + * { margin-top: calc(22px * var(--k-s)); }
#screens .sx-berth .sx-bar__stage .sx-talk__head { display: contents; }
#screens .sx-berth .sx-bar__stage .sx-talk__id { grid-column: 1; grid-row: 1; }
#screens .sx-berth .sx-bar__stage .sx-talk__avatar {
  grid-column: 2; grid-row: 1 / span 12; align-self: start; justify-self: stretch;
  width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: min(640px, 64vh); margin: -8px 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(0deg, transparent 0, #000 30%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(0deg, transparent 0, #000 30%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
#screens .sx-berth .sx-bar__stage .sx-talk__avatar :is(img, canvas, .sx-portrait) {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  border: 0; border-radius: 0; box-shadow: none; filter: saturate(.92) contrast(1.04);
}
#screens .sx-berth .sx-bar__stage .sx-talk__name { font-size: clamp(34px, 3vw, 56px); line-height: 1; }
#screens .sx-berth .sx-bar__stage .sx-talk__reply { font-size: clamp(17px, 1.15vw, 21px); line-height: 1.45; color: var(--dp-ink, #e8e2d4); }
#screens .sx-berth .sx-bar__stage .sx-talk__reply.is-idle { color: #c9c6be; }
@media (max-width: 1100px) {
  #screens .sx-berth .sx-bar__stage .sx-talk { grid-template-columns: minmax(0, 1fr); }
  #screens .sx-berth .sx-bar__stage .sx-talk__avatar { grid-column: 1; grid-row: auto; max-width: 320px; }
}
@media (forced-colors: active) {
  #screens .sx-berth .sx-bar__stage .sx-talk__avatar { -webkit-mask-image: none; mask-image: none; }
}
#screens .sx-berth .sx-mkt__console.is-scrubbing .sx-qty__in { user-select: none; caret-color: transparent; }

/* ------------------------------------------------------------------------------------------------
   CONTRACTS: THE HANG READS WHOLE (2026-09-22 demo pass)
   An accepted job was a flex row -- title | nowrap meta | Track -- so the meta ("Deliver to
   destination · Helios Gate") took the width and the title clamped to "Contract 47-A:…". The row is
   now two lines: the title owns line one beside Track, the objective runs under it.
   A board decision ("Two posted jobs can be taken…") borrowed the posted-row grid, which put its
   option name in the crest column and its trade-off in the payout column, in capitals. Each option
   is now a stacked choice: the job, then what it costs you, in a sentence.
   ------------------------------------------------------------------------------------------------ */
#screens .sx-berth .sx-ct__jobs .sx-job {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title track" "meta track";
  align-items: center; column-gap: calc(16px * var(--k-s)); row-gap: 4px;
  padding-block: calc(12px * var(--k-s));
}
#screens .sx-berth .sx-ct__jobs .sx-job__title { grid-area: title; -webkit-line-clamp: 2; }
#screens .sx-berth .sx-ct__jobs .sx-job__meta {
  grid-area: meta; white-space: normal; -webkit-line-clamp: 2; color: var(--dp-ink-dim, #b9b4a8);
}
#screens .sx-berth .sx-ct__jobs .sx-job__track { grid-area: track; align-self: center; }

#screens .sx-berth .sx-decision { display: flex; flex-direction: column; gap: 2px; margin-bottom: calc(18px * var(--k-s)); }
#screens .sx-berth .sx-decision > .k-sentence { margin: 0 0 calc(8px * var(--k-s)); }
#screens .sx-berth .sx-decision__opt.k-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 0; padding: calc(12px * var(--k-s)) 12px calc(12px * var(--k-s)) 14px;
  text-align: left;
}
#screens .sx-berth .sx-decision__opt > .k-row__name {
  white-space: normal; overflow: visible; text-overflow: clip; max-width: none;
}
#screens .sx-berth .sx-decision__opt > .k-row__sub {
  white-space: normal; text-transform: none; letter-spacing: 0; font-family: inherit;
  font-size: var(--k-fs-data, 13px); line-height: 1.4; color: var(--dp-ink-dim, #b9b4a8); max-width: none;
}

/* The exchange's column heads stay put while the rows scroll under them; at 42 % the rows showed
   through and "COMMODITY BUY SELL" printed over "Stellarite Ore 839 0%". The head is now the
   sheet itself, with its hairline, so a scrolled row passes cleanly beneath it. */
#screens .sx-berth .sx-mkt-table thead { background: rgb(9 11 14); }
#screens .sx-berth .sx-mkt-table thead th {
  background: rgb(9 11 14);
  box-shadow: inset 0 -1px 0 var(--dp-rule, rgb(232 226 212 / .10));
}
#screens .sx-berth .sx-mkt-row__tr.is-flat { color: var(--dp-ink-mute, #9a968c); }

/* ───────────── SHIPWORKS + THE SHIP — the hull render, the system callouts, THE SHIP's columns ─────────────
   One block for the shared ship stage (src/ui/station/screens/shipworks.js), both hosts: the dock
   tab and the in-flight THE SHIP screen. Printed and lit (design/frontend/ONE_PHOTOGRAPH.md 9):
   the hull is produced art, a callout is a printed field with the cut, a bead is flat ink. */

/* The produced render (src/ui/ship/hullPoster.js) is the stage until the authored hull has drawn,
   and for good where the live preview never arrives. It sits over the canvas and under every
   overlay; shipworks.js places it so its hull fills the room the labels leave. The canvas clears
   to an opaque frame while the dock and hull stream in, so behind a render it waits, unfocusable. */
.sx-sw__stage > .sx-sw__poster {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0;
  object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none;
  opacity: 1; transition: opacity 600ms var(--k-ease, ease-out);
}
.sx-sw__stage > .sx-sw__poster[hidden] { display: none; }
.sx-sw__stage.is-live > .sx-sw__poster { opacity: 0; }
.sx-sw__stage.has-poster > .sx-sw__canvas { transition: opacity 600ms var(--k-ease, ease-out); }
.sx-sw__stage.has-poster:not(.is-live) > .sx-sw__canvas { opacity: 0; pointer-events: none; }
/* A render cannot be orbited, and scars are pinned to the live hull's geometry: both wait for it. */
.sx-sw__stage.has-poster:not(.is-live) :is(.sx-sw__camera, .sx-sw__dragcue, .sx-sw__scarfield) { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .sx-sw__stage > .sx-sw__poster, .sx-sw__stage.has-poster > .sx-sw__canvas { transition: none; }
}

/* The callouts (src/ui/ship/calloutLayout.js): a bead on the socket, a leader, the label in a
   column beside the hull. A label opens the slot's hardware, so it is a printed field with the
   cut; a fitted slot carries the lamp bar on its leading edge, an open one a quiet rule. */
.sx-sw__slotfield:not(.is-board) .sx-hardpoint__copy {
  box-sizing: border-box; padding: 5px calc(var(--dp-cut, 10px) + 8px) 6px 12px;
  background:
    linear-gradient(90deg, var(--dp-lamp, #f2b950) 2px, transparent 0),
    linear-gradient(225deg, transparent calc(var(--dp-cut, 10px) * .7071), rgb(10 12 16 / .86) 0);
  text-shadow: none;
}
.sx-sw__slotfield:not(.is-board) .sx-hardpoint.is-empty .sx-hardpoint__copy {
  background:
    linear-gradient(90deg, var(--dp-rule-hi, rgb(232 226 212 / .22)) 2px, transparent 0),
    linear-gradient(225deg, transparent calc(var(--dp-cut, 10px) * .7071), rgb(10 12 16 / .86) 0);
}
.sx-sw__slotfield:not(.is-board) .sx-hardpoint:is(:hover, .is-selected) .sx-hardpoint__copy {
  background:
    var(--dp-cut-lit, linear-gradient(transparent 0 0)),
    linear-gradient(90deg, var(--dp-lamp, #f2b950) 2px, transparent 0),
    linear-gradient(var(--dp-field-ink-hi, rgb(232 226 212 / .14)) 0 0),
    linear-gradient(225deg, transparent calc(var(--dp-cut, 10px) * .7071), rgb(10 12 16 / .86) 0);
}
.sx-sw__slotfield:not(.is-board) .sx-hardpoint:focus-visible .sx-hardpoint__copy {
  background:
    var(--dp-cut-lit, linear-gradient(transparent 0 0)),
    var(--dp-bracket, linear-gradient(90deg, #e8e2d4 2px, transparent 0)),
    linear-gradient(var(--dp-field-ink-hi, rgb(232 226 212 / .14)) 0 0),
    linear-gradient(225deg, transparent calc(var(--dp-cut, 10px) * .7071), rgb(10 12 16 / .86) 0);
}
.sx-sw__slotfield:not(.is-board) .sx-hardpoint__copy em { color: var(--dp-ink-dim, #b9b4a8); }
.sx-sw__slotfield:not(.is-board) .sx-hardpoint.is-empty .sx-hardpoint__copy b { color: var(--dp-ink-dim, #b9b4a8); }
.sx-sw__slotfield:not(.is-board) .sx-hardpoint:is(:hover, :focus-visible, .is-selected) .sx-hardpoint__copy b { color: var(--dp-lamp-hot, #ffd98c); }
/* The bead: flat ink, 7 px; lamp when the slot is under the hand or chosen. */
.sx-sw__slotfield:not(.is-board) .sx-hardpoint__reticle {
  left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--dp-ink, #e8e2d4); box-shadow: 0 0 0 2px rgb(10 12 16 / .7);
}
.sx-sw__slotfield:not(.is-board) .sx-hardpoint:is(:hover, :focus-visible, .is-selected) .sx-hardpoint__reticle {
  background: var(--dp-lamp, #f2b950); box-shadow: 0 0 8px var(--dp-lamp-bloom, rgb(242 185 80 / .45));
}
.sx-sw__slotfield:not(.is-board) .sx-hardpoint__leader path { stroke: rgb(232 226 212 / .5); stroke-width: 1.25; }
.sx-sw__slotfield:not(.is-board) .sx-hardpoint:is(:hover, :focus-visible, .is-selected) .sx-hardpoint__leader path { stroke: var(--dp-lamp, #f2b950); }
/* THE SHIP's Deckplate sheet pins the bead and leader with an id selector; the same rules, as strong. */
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint__reticle { box-shadow: 0 0 0 2px rgb(10 12 16 / .7); }
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint.is-empty .sx-hardpoint__copy b { color: var(--dp-ink-dim, #b9b4a8); }
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint:is(:hover, :focus-visible, .is-selected) .sx-hardpoint__reticle {
  background: var(--dp-lamp, #f2b950); box-shadow: 0 0 8px var(--dp-lamp-bloom, rgb(242 185 80 / .45));
}
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint__leader path { stroke: rgb(232 226 212 / .5); }
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint:is(:hover, :focus-visible, .is-selected) .sx-hardpoint__leader path { stroke: var(--dp-lamp, #f2b950); }

/* The bomb rack's sockets read name over state, like the system rows above them. */
.sx-sw-rack__copy > .k-row__sub { white-space: normal; }

/* THE SHIP in flight: the three columns are the grid's, never laid over each other. The systems
   column was still the dock's 400 px absolute plate pinned to the panel's right edge, so it sat
   80 px over the stage; the stats and the verbs kept a 400 px right margin for a plate that is not
   in their column. */
.sf-ship.dp-frame > .sx-sw > .sx-sw__rail { grid-column: 1; grid-row: 1; }
.sf-ship.dp-frame > .sx-sw > .sx-sw__main { grid-column: 2; grid-row: 1; min-width: 0; }
.sf-ship.dp-frame > .sx-sw > .sx-sw__side {
  grid-column: 3; grid-row: 1; position: relative; inset: auto; width: auto; max-height: none;
}
.sf-ship.dp-frame .sx-sw__stats { margin-right: 0; flex: 0 1 auto; min-height: 0; max-height: 48%; overflow: hidden auto; }
.sf-ship.dp-frame .sx-sw__main > .sx-sw-verbs { margin-right: 0; }
/* THE SHIP on a small frame (ui-polish-57). The three fixed columns (230 / 1fr / 285) left the hull
   185 px at 844 wide and nothing at all on a phone, so the hull's sentence and the slot callouts
   printed over each other. Where the hull has the room (901-1100 wide, or 801-1100 on a window
   460 tall or less) the fleet card stands over the systems column and the hull takes the rest; on a
   short window the frame margin and the sentence step down; on a narrower window the three regions
   stack and the screen scrolls. Real phones keep mobileScreenLayouts' own flow.
   Review fix: the two-column split stops at 800 wide, and at 900 wide above 460 tall. Below that it
   left the hull ~300-550 px: at 641-800 its callouts printed over the stat strip (641x800, 641x461,
   761x460) and at 780-880 x 500-700 the four-line sentence printed over the hull's top callouts.
   The sentence's scroll box ends on a whole line. Selectors and IDs are unchanged.
   ui-polish-61: the split now runs to 1240 wide. At 1101-1240 the three columns left the hull
   ~460-560 px, so its callouts printed over the sentence and the verbs, the strip wrapped and the
   right handling column ran past the plate (bench 12 at 1101-1130x720, 10 at 1101-1240x440). */
@media (min-width: 801px) and (max-width: 1240px) and (max-height: 460px), (min-width: 901px) and (max-width: 1240px) {
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw {
    grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 285px);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: none;
  }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw > .sx-sw__rail { grid-column: 2; grid-row: 1; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw > .sx-sw__main { grid-column: 1; grid-row: 1 / -1; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw > .sx-sw__side { grid-column: 2; grid-row: 2; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw > .sx-sw__chooser { grid-column: 2; grid-row: 1 / -1; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw__nameplate .sx-sw__blurb { max-height: calc(1.35em * 4 + 8px); }
}
/* The hull is drawn large enough to run under the sentence at most desktop sizes (up to ~1600 wide):
   the sentence gets the callouts' dissolved pad so it reads over the paint. */
@media (min-width: 641px) {
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw__nameplate .sx-sw__blurb {
    padding: 4px 12px 4px 0;
    background: linear-gradient(90deg, rgb(6 8 11 / .74) 0%, rgb(6 8 11 / .6) 78%, transparent);
    text-shadow: 0 1px 2px rgb(4 6 9 / .9);
  }
}
/* Five heroes (the build joined the row) no longer fit the old one-row sizes: at 1101-1366 they
   overflowed into each other ("DOCKED CAN TOW GENERALIS", clipped at the plate's edge), and above
   1366 GENERALIST wrapped to a second row that pushed SAVE FIT under the plate. The numbers now size
   to the band's own width so the usual row holds on one line; a long build name wraps whole
   instead of overprinting. */
@media (min-width: 1101px) {
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-bands { container-type: inline-size; flex-wrap: wrap; gap: 4px 8px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-hero { padding: 6px clamp(8px, 1cqi, 12px) 8px; min-width: 0; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-hero .k-hero__n { font-size: clamp(18px, calc(5cqi - 10px), 47.52px); white-space: nowrap; }
}
@media (min-width: 641px) and (max-height: 460px) {
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame { padding: 14px 20px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw { row-gap: 12px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw__name { font-size: 26px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw__nameplate .sx-sw__blurb { font-size: 12.5px; line-height: 1.4; max-height: calc(1.4em * 3 + 8px); }
}
@media (max-width: 800px), (max-width: 900px) and (min-height: 461px) {
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame { padding: 12px; overflow: hidden auto; overscroll-behavior: contain; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: none;
    align-self: start; height: auto; min-height: 0;
  }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw > .sx-sw__rail { grid-column: 1; grid-row: 1; overflow: visible; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw > .sx-sw__main { grid-column: 1; grid-row: 2; overflow: visible; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw > .sx-sw__side { grid-column: 1; grid-row: 3; overflow: visible; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw > .sx-sw__chooser { grid-column: 1; grid-row: 2 / -1; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame .sx-sw__stage { flex: 0 0 auto; min-height: 420px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame .sx-sw__stats { max-height: none; overflow: visible; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw__name { font-size: 30px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw__nameplate { max-width: 62%; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw__nameplate .sx-sw__blurb { max-height: calc(1.35em * 4); }
}
/* The fleet card: the hull's role on its own line, whole, under the name; "Active" rides the
   name's line instead of squeezing the role into "STARTER SC..." beside it. */
.sx-sw-row.k-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name flag" "sub sub"; align-items: baseline; row-gap: 2px; }
.sx-sw-row > .sx-sw-row__body { display: contents; overflow: visible; } /* a box-less wrapper clips nothing; its inherited overflow:hidden read as a panel eating its copy */
.sx-sw-row .sx-sw-row__name { grid-area: name; min-width: 0; }
.sx-sw-row .sx-sw-row__sub { grid-area: sub; white-space: normal; overflow: visible; text-overflow: clip; }
.sx-sw-row > .sx-sw-row__flag, .sx-sw-row > .sx-sw-row__price { grid-area: flag; }

/* The six readings are one strip under the hull (shipworks.js moves the rack out of the stage):
   a printed band on the stats plate's head, the reading in phosphor after its etched name. */
#screens .sx-sw > .sx-sw__main > .sx-sw__gauges,
.sx-sw > .sx-sw__main > .sx-sw__gauges {
  position: static; inset: auto; width: auto; max-height: none; overflow: visible; flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px calc(36px * var(--k-s, 1));
  margin: calc(12px * var(--k-s, 1)) 0 0; padding: 12px 18px 10px;
  background: linear-gradient(0deg, var(--dp-rule, rgb(232 226 212 / .10)) 1px, transparent 0), var(--dp-field, rgb(10 12 16 / .84));
}
#screens .sx-sw > .sx-sw__main > .sx-sw__gauges > .sx-sw-gauge,
.sx-sw > .sx-sw__main > .sx-sw__gauges > .sx-sw-gauge {
  display: inline-flex; align-items: baseline; gap: 10px; min-height: 0; padding: 0; margin: 0;
  border: 0; background: none; box-shadow: none;
}
.sx-sw > .sx-sw__main > .sx-sw__gauges + .sx-sw__stats { margin-top: 0; }
html body #screens #sf-ship .sx-sw > .sx-sw__main > .sx-sw__gauges {
  padding: 12px 18px 10px;
  background: linear-gradient(0deg, var(--dp-rule, rgb(232 226 212 / .10)) 1px, transparent 0), var(--dp-field, rgb(10 12 16 / .84));
}
html body #screens #sf-ship .sx-sw > .sx-sw__main > .sx-sw__gauges > .sx-sw-gauge { min-height: 0; }

/* A build key reads "Save fit 0/6", not "SAVE FIT0/6". */
.sx-sw-preset__label + .sx-sw-preset__sub { margin-inline-start: .5em; }

/* THE SHIP's hull name is the screen's display moment, sized to the frame: at 1280 x 800 the
   kit's title size took a third of the stage's height and left the hull a thumbnail. */
.sf-ship.dp-frame .sx-sw__name { font-size: clamp(34px, min(3.6vw, 6.4vh), 76px); }

/* The dock host on a short frame (1280 x 800): the stage gives up height before the stats do,
   so the four hero numbers are never cut in half at the fold; the rows under them scroll. */
:is(#screens .sx-observatory, .sx-observatory) .sx-sw > .sx-sw__main > .sx-sw__stage { flex: 1 1 0; min-height: calc(190px * var(--k-s, 1)); }
:is(#screens .sx-observatory, .sx-observatory) .sx-sw > .sx-sw__main > .sx-sw__stats { flex: 0 1 auto; min-height: calc(120px * var(--k-s, 1)); overflow: hidden auto; }

/* ───────────── WAVE 2 r1 — THE SHIP flight host (critic §1, S1-S7) ─────────────
   One amber Hand (the chosen slot's bead + arm on the hull) + one amber Lamp Key
   (SAVE FIT). Everything else bone rgb(236 230 216); red threat-only. station.css
   injects last, so these beat the Deckplate SH rules at equal specificity. */
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint__copy {
  background: none; background-image: none; border: 0; box-shadow: none; padding: 0;
  text-shadow: 0 0 7px rgb(4 6 9 / .85), 0 1px 2px rgb(4 6 9 / .9);
}
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint__copy b {
  font-size: 13px; font-weight: 600; color: rgb(248 244 234);
}
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint__copy em {
  font-size: 12px; letter-spacing: .12em; color: rgb(236 230 216 / .8);
}
/* S7: the callouts stand over the lit hangar — each label carries its own dissolved-glass
   pad (borderless, edges dissolved), so the ink holds its 4.5:1 floor anywhere. */
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint__copy { z-index: 0; }
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint__copy::before {
  content: ""; position: absolute; inset: -6px -10px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgb(6 8 11 / .78) 30%, rgb(6 8 11 / .45) 55%, transparent 75%);
}
/* S7: the verbs row stands over the same lit bay — one dissolved band behind the words. */
html body #screens #sf-ship .sx-sw-verbs {
  background: linear-gradient(90deg, transparent, rgb(6 8 11 / .78) 12%, rgb(6 8 11 / .78) 88%, transparent);
  padding: 6px 18px;
}
/* S7: the readings strip's etched names lift to their floor. */
html body #screens #sf-ship .sx-sw-gauge .k-row__name { color: rgb(236 230 216 / .78); }
/* The flight chooser stands in a 230px hang column: its verbs wrap instead of clipping. */
html body #screens #sf-ship .sx-sw__chooser :is(.k-word, .sx-modrow__buy) { white-space: normal; min-width: 0; max-width: 100%; }
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint.is-empty .sx-hardpoint__copy b { color: rgb(236 230 216 / .85); }
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint:is(:hover, :focus-visible, .is-selected) .sx-hardpoint__copy {
  background: none; background-image: none;
}
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint:is(:hover, :focus-visible, .is-selected) .sx-hardpoint__copy b { color: var(--dp-lamp-hot, #ffd98c); }
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint__leader path { stroke: rgb(236 230 216 / .55); stroke-width: 1.5; }
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint:is(:hover, :focus-visible, .is-selected) .sx-hardpoint__leader path {
  stroke: var(--dp-lamp, #f2b950); stroke-width: 2;
}
/* S4: the power dial relit — bone band + edge + tick ring + lit draw + bead. The words
   round the arc retire: at 12 units they render ~9px and cannot reach the 12px floor
   without colliding; the rail below names every system at reading size. */
html body #screens #sf-ship .sx-sw-circuit__core .orr-power { width: 100%; height: auto; display: block; overflow: visible; }
html body #screens #sf-ship .orr-power path { fill: none; }
html body #screens #sf-ship .orr-power__band { stroke: rgb(236 230 216 / .21); stroke-width: 8px; }
html body #screens #sf-ship .orr-power__track { stroke: rgb(236 230 216 / .46); stroke-width: 1.5px; }
html body #screens #sf-ship .orr-power__ticks { stroke: rgb(236 230 216 / .5); stroke-width: 1.5px; }
html body #screens #sf-ship .orr-power__lit { stroke: rgb(248 244 234); stroke-width: 3.5px; }
html body #screens #sf-ship .orr-power__lit-bloom { stroke: rgb(255 240 214 / .24); stroke-width: 11px; }
html body #screens #sf-ship .orr-power.is-over .orr-power__lit { stroke: var(--dp-danger, #ff5038); }
html body #screens #sf-ship .orr-power.is-over .orr-power__lit-bloom { stroke: rgb(255 80 56 / .24); }
html body #screens #sf-ship .orr-power__notch { stroke: rgb(7 8 10); stroke-width: 2; }
html body #screens #sf-ship .orr-power__bead { fill: rgb(252 249 240); }
html body #screens #sf-ship .orr-power__bead-bloom { fill: rgb(255 240 214 / .26); }
html body #screens #sf-ship .orr-power__ghost { stroke: var(--dp-ice, #8fcbff); stroke-width: 1.6; stroke-dasharray: 4 3; }
html body #screens #sf-ship .orr-power__ghost.is-over { stroke: var(--dp-danger, #ff5038); }
html body #screens #sf-ship .orr-power__seg { stroke: rgb(236 230 216 / .2); stroke-width: 2.5; }
html body #screens #sf-ship .orr-power__seg.is-fitted { stroke: rgb(248 244 234); }
html body #screens #sf-ship .orr-power__seg.is-stock { stroke: rgb(236 230 216 / .7); }
html body #screens #sf-ship .orr-power__seg.is-lit { stroke: rgb(252 249 240); stroke-width: 3.5; }
html body #screens #sf-ship .orr-power__seg-bloom { stroke: rgb(236 230 216); stroke-width: 7; opacity: .18; }
html body #screens #sf-ship .orr-power__sys { stroke: rgb(236 230 216 / .42); stroke-width: 1.5px; }
html body #screens #sf-ship .orr-power__sys.is-fitted, html body #screens #sf-ship .orr-power__sys.is-stock { stroke: rgb(248 244 234); }
html body #screens #sf-ship .orr-power__sys.is-lit { stroke: rgb(252 249 240); stroke-width: 2.5px; }
html body #screens #sf-ship text.orr-power__syslabel { display: none; }
/* S5: SAVE FIT is the ONE amber Lamp Key — amber field, dark ink, 45° cut, sheen. */
html body #screens #sf-ship .sx-sw-preset--save {
  position: relative; isolation: isolate; display: inline-flex; align-items: center;
  min-height: 38px; padding: 0 22px 0 18px; border: 0; background: none; background-image: none; box-shadow: none;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-shadow: none;
}
html body #screens #sf-ship .sx-sw-preset--save::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--dp-lamp, #f2b950);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}
html body #screens #sf-ship .sx-sw-preset--save:not(:disabled):is(:hover, :focus-visible)::before { background: var(--dp-lamp-hot, #ffd98c); }
html body #screens #sf-ship .sx-sw-preset--save:not(:disabled)::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .38) 50%, transparent 58%) 0 0 / 250% 100% no-repeat;
  animation: sf-ship-lamp-sheen 6s linear infinite;
}
@keyframes sf-ship-lamp-sheen { 0% { background-position: 110% 0; } 55%, 100% { background-position: -110% 0; } }
@media (prefers-reduced-motion: reduce) {
  html body #screens #sf-ship .sx-sw-preset--save::after { animation: none; }
}
html.sf-reduce-motion body #screens #sf-ship .sx-sw-preset--save::after { animation: none; }
html body #screens #sf-ship .sx-sw-preset--save .sx-sw-preset__label,
html body #screens #sf-ship .sx-sw-preset--save .sx-sw-preset__sub { color: #1c1406; position: relative; z-index: 1; }
html body #screens #sf-ship .sx-sw-preset--save:disabled { color: rgb(236 230 216 / .55); }
html body #screens #sf-ship .sx-sw-preset--save:disabled::before {
  background: none; box-shadow: inset 0 0 0 1px rgb(236 230 216 / .42);
}
html body #screens #sf-ship .sx-sw-preset--save:disabled::after { display: none; }
html body #screens #sf-ship .sx-sw-preset--save:disabled .sx-sw-preset__label,
html body #screens #sf-ship .sx-sw-preset--save:disabled .sx-sw-preset__sub { color: rgb(236 230 216 / .55); }
/* The DOCK shipworks mounts the same .sx-sw classes under .sx-berth, where the #sf-ship rules
   never reach — and shipworksLayouts' preset recipe (PLAIN + "›" chevron) flattened SAVE FIT
   to a text row there (critic F6). Same key, berth scope: always drawn — lit amber with a fit
   to save, a dim amber lamp when there is none. The .k-panel.sx-sw ancestor keeps this above
   the injected ${W} selectors' specificity. */
html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save {
  position: relative !important; isolation: isolate; display: inline-flex !important; align-items: center !important;
  min-height: 38px !important; height: auto !important; padding: 0 22px 0 18px !important; border: 0 !important;
  background: none !important; background-image: none !important; box-shadow: none !important;
  font-size: 13px !important; letter-spacing: .14em !important; text-transform: uppercase !important; text-shadow: none !important;
  color: #1c1406 !important;
}
html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save::before {
  all: unset !important;
  content: "" !important; display: block !important; position: absolute !important; inset: 0 !important; z-index: -1 !important;
  background: var(--dp-lamp, #f2b950) !important;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%) !important;
}
html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save:not(:disabled):is(:hover, :focus-visible)::before { background: var(--dp-lamp-hot, #ffd98c) !important; }
html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save:not(:disabled)::after {
  all: unset !important;
  content: "" !important; display: block !important; position: absolute !important; inset: 0 !important; z-index: 0 !important; pointer-events: none !important;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%) !important;
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .38) 50%, transparent 58%) 0 0 / 250% 100% no-repeat !important;
  animation: sf-ship-lamp-sheen 6s linear infinite !important;
}
@media (prefers-reduced-motion: reduce) {
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save::after { animation: none !important; }
}
html.sf-reduce-motion body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save::after { animation: none !important; }
html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save .sx-sw-preset__label,
html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save .sx-sw-preset__sub { color: #1c1406 !important; position: relative; z-index: 1; }
/* The unlit lamp: same cut key in dim amber with dark ink — a lamp you could wake, not a link. */
html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save:disabled { color: rgb(26 20 8) !important; }
html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save:disabled::before { background: var(--dp-lamp-dim, #8a6b3a) !important; box-shadow: none !important; }
html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save:disabled::after { display: none !important; }
html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save:disabled .sx-sw-preset__label,
html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-preset--save:disabled .sx-sw-preset__sub { color: rgb(26 20 8) !important; }
/* Critic F5 — at ≤800px the injected sheet drops .sx-sw-band--presets outright, so the dock's
   only build verb vanished (not just below the fold). Bring it back and pin it to the stats
   window's foot so BUILDS + SAVE FIT stand at rest while the readings scroll under it; the
   drawer gets end room so its last rows can still scroll clear. The verbs row pins to the main
   column's foot the same way, and the rail's rhythm tightens so Inertia and Brake stand above
   the fold beside it. */
@media (max-height:800px) {
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw__stats .sx-sw-band--presets {
    display: block !important; position: sticky !important; bottom: 0 !important; z-index: 3 !important;
    margin-top: 4px !important; margin-bottom: 0 !important; padding: 4px 0 5px !important;
    background: linear-gradient(0deg, rgb(236 230 216 / .14), rgb(236 230 216 / .14)) 0 0 / 100% 1px no-repeat,
      linear-gradient(180deg, rgb(9 11 15 / .88), rgb(9 11 15 / .97) 34%) !important;
  }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw__stats { min-height: 190px !important; padding-top: 12px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-presetdrawer { margin-bottom: 50px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw:not(.orr-sw--jig) .sx-sw__stage { flex-basis: 180px !important; min-height: 180px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw:not(.orr-sw--jig) .sx-sw-bars { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0 20px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw:not(.orr-sw--jig) .sx-sw-verbs {
    position: sticky !important; bottom: 0 !important; z-index: 3 !important; padding: 9px 0 !important; margin-top: 6px !important;
    background: linear-gradient(0deg, rgb(236 230 216 / .14), rgb(236 230 216 / .14)) 0 0 / 100% 1px no-repeat,
      linear-gradient(180deg, rgb(9 11 15 / .88), rgb(9 11 15 / .97) 34%) !important;
  }
  /* tighter rhythm so Inertia and Brake stand above the pinned key at rest */
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-band { margin-top: 6px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-bar { padding: 2px 0 !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-hero { padding-bottom: 3px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-band--handling > .sx-sw-band__label { display: none !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-hero[data-band='handling'] .k-hero__n { font-size: 28px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-band--presets > .sx-sw-band__label { display: none !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-bands { gap: 3px 14px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-hero .k-hero__w { margin-top: 2px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw .sx-sw-band--handling { margin-top: 2px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw.orr-sw--jig .sx-sw-hero .k-hero__n { font-size: 18px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw.orr-sw--jig .sx-sw-hero[data-band='handling'] .k-hero__n { font-size: 26px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw.orr-sw--jig .sx-sw__stats { top: 112px !important; max-height: calc(100% - 118px) !important; }
  /* the jig's narrow rail folds the three handling scales two-up so Brake stands with Inertia */
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw.orr-sw--jig .sx-sw-bars { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0 12px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw.orr-sw--jig .sx-sw-bar { grid-template-columns: 40px minmax(0, 1fr) auto !important; column-gap: 6px !important; }
  html body #screens > .sx-berth.orr-station .k-panel.sx-sw.orr-sw--jig .sx-sw-bar .k-row__name { font-size: 12px !important; white-space: nowrap !important; }
}
/* S5: every other amber on the screen stands down to bone. */
html body #screens #sf-ship .sx-sw-row__flag { color: rgb(236 230 216 / .85); }
html body #screens #sf-ship .sx-sw-hero:is([aria-pressed="true"], .is-selected) {
  background: linear-gradient(90deg, rgb(236 230 216 / .85) 2px, transparent 0), rgb(8 10 14 / .35);
}
html body #screens #sf-ship .sx-sw-hero:is([aria-pressed="true"], .is-selected) .k-hero__w { color: rgb(236 230 216 / .85); }
html body #screens #sf-ship .sx-sw-hero:hover .k-hero__w { color: rgb(248 244 234); }
html body #screens #sf-ship .sx-sw-preset.is-selected .sx-sw-preset__label { color: rgb(248 244 234); }
html body #screens #sf-ship .sx-modrow.is-eq .sx-modrow__name { color: rgb(248 244 234); }
html body #screens #sf-ship .sx-sw-verb { color: rgb(236 230 216 / .85); }
html body #screens #sf-ship .sx-sw-verb:is(:hover, :focus-visible) { color: rgb(252 249 240); }
html body #screens #sf-ship .sx-sw-verb[disabled] { color: rgb(236 230 216 / .5); }
/* DOCK TO EXTEND (and its restock twin) are secondary verbs: dotted words, never a chip. */
html body #screens #sf-ship .sx-sw__side :is([data-rack-restock], [data-rack-upgrade]) {
  background: none; background-image: none; border: 0; box-shadow: none; min-height: 0; height: auto;
  padding: 3px 0; color: rgb(236 230 216 / .85); text-decoration: underline dotted rgb(236 230 216 / .55);
  text-underline-offset: 4px; text-transform: uppercase; font-size: 12px; letter-spacing: .14em;
}
html body #screens #sf-ship .sx-sw__side :is([data-rack-restock], [data-rack-upgrade]):is(:hover, :focus-visible) { color: rgb(252 249 240); }
html body #screens #sf-ship .sx-sw__side :is([data-rack-restock], [data-rack-upgrade])[disabled] { color: rgb(236 230 216 / .5); }
/* S6: the systems rail is a Ladder — spine + weighted ticks; the chosen row answers the
   Hand with a bone bead + arm (the amber is the hull's alone). Row hairlines retire. */
html body #screens #sf-ship .sx-sw-circuit__flows {
  background:
    linear-gradient(90deg, transparent 4px, rgb(236 230 216 / .085) 4px, rgb(236 230 216 / .085) 11px, transparent 11px),
    linear-gradient(90deg, transparent 6.75px, rgb(236 230 216 / .46) 6.75px, rgb(236 230 216 / .46) 8.25px, transparent 8.25px);
}
html body #screens #sf-ship .sx-sw-flow { position: relative; border-top: 0; padding-left: 26px; }
html body #screens #sf-ship .sx-sw-flow::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 8px; height: 1.5px; margin-top: -.75px;
  background: rgb(236 230 216 / .52);
}
html body #screens #sf-ship .sx-sw-flow.is-selected::before {
  left: 4px; top: 50%; width: 18px; height: 1.5px; margin-top: -.75px; background: rgb(252 249 240);
}
html body #screens #sf-ship .sx-sw-flow.is-selected::after {
  content: ""; position: absolute; left: 3.5px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: rgb(252 249 240); box-shadow: 0 0 0 4px rgb(255 240 214 / .22);
}
html body #screens #sf-ship .sx-sw-flow.is-selected .k-row__name { color: rgb(252 249 240); }
html body #screens #sf-ship .sx-sw-circuit__core .k-hero__w { color: rgb(236 230 216 / .7); }
/* S7: dim copy on the rail lifts to its contrast floor; floors hold at 12px. */
html body #screens #sf-ship .sx-sw-circuit__sub { font-size: 12px; color: rgb(236 230 216 / .66); }
html body #screens #sf-ship .sx-sw-flow .k-row__sub { color: rgb(236 230 216 / .66); }
html body #screens #sf-ship .sx-sw-rack__copy .k-row__sub { color: rgb(236 230 216 / .66); }
html body #screens #sf-ship .sx-sw-band__meta { font-size: 12px; color: rgb(236 230 216 / .66); }
html body #screens #sf-ship .sx-sw__stats .k-caps { font-size: 12px; }
/* S1: at narrow widths the prose column ends by ~460 so the clamped callout stack (x>=560)
   never touches it. */
@media (max-width: 1366px) {
  /* S2: the four heroes hold one row; the handling bars fold to two columns, so Brake
     and SAVE FIT sit above the 720 fold. */
  html body #screens #sf-ship .sx-sw-bands { flex-wrap: nowrap; gap: 0 18px; }
  html body #screens #sf-ship .sx-sw-hero { padding: 4px 10px 6px; min-width: 0; }
  html body #screens #sf-ship .sx-sw-hero .k-hero__n { font-size: 30px; white-space: nowrap; }
  html body #screens #sf-ship .sx-sw-hero .k-hero__w { white-space: nowrap; }
  html body #screens #sf-ship .sx-sw-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  html body #screens #sf-ship .sx-sw-band { margin-top: 10px; }
  html body #screens #sf-ship .sx-sw-band--presets { margin-top: 8px; }
  html body #screens #sf-ship .sx-sw__stats { margin-top: 10px; }
}
/* Under ~1100 the main column is too narrow for four 30px heroes on one row
   (+12/s landed on DOCKED, top speed on power). Two-up grid keeps each reading whole; captions stay at the 12px type floor. */
@media (max-width: 1100px) {
  html body #screens #sf-ship .sx-sw-bands {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; flex-wrap: unset;
  }
  html body #screens #sf-ship .sx-sw-hero { padding: 2px 6px 4px; }
  html body #screens #sf-ship .sx-sw-hero .k-hero__n { font-size: 24px; }
  html body #screens #sf-ship .sx-sw-hero .k-hero__w { font-size: 12px; letter-spacing: .1em; }
}
/* ui-polish-64: after the ≤1100 two-up heroes (above). In the 901-1240 split the systems
   column ran ~24-40 px past its plate at 700-720 tall, so DOCK TO EXTEND sat under the scroll
   fade, and at 901-1100 the two-up heroes pushed SAVE FIT to the stats plate's fold. The fleet
   card sits closer, the plate's printed margin is 16 px, system rows lose 2 px a side, heroes
   run three-up (must follow the two-up rule), the six readings close their gap, and on
   ≥650-tall splits the stage floor eases so the plate can keep SAVE FIT (short windows
   keep the 340 floor). A 461-720 tall window gets a 24 / 32 px frame margin between the
   48 px desktop one and the 14 / 20 px short one. */
@media (min-width: 801px) and (max-width: 1240px) and (max-height: 460px), (min-width: 901px) and (max-width: 1240px) {
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw__carousel { margin-top: 6px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw > .sx-sw__side { padding-top: 10px; border-width: 16px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-flow { min-height: 0; padding-block: 2px; }
}
/* Tall split (≥650): ease the stage's 340 floor so SAVE FIT clears at 901×700 / 1100×720
   without shrinking the hull on mid/short windows (1024×600 / 960 / 844 callout regressions). */
@media (min-width: 901px) and (max-width: 1240px) and (min-height: 650px) {
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame .sx-sw__stage { min-height: 260px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame .sx-sw__stats { max-height: 54%; }
}
@media (min-width: 801px) and (max-width: 1100px) and (max-height: 460px), (min-width: 901px) and (max-width: 1100px) {
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-bands {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 12px; flex-wrap: unset;
  }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-hero { padding: 2px 4px 4px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-hero .k-hero__n { font-size: 22px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw__main > .sx-sw__gauges { column-gap: 20px; }
}
/* Mid-height split (580-640): keep the stage floor; compress plate chrome + rail so SAVE FIT /
   DOCK TO EXTEND reach the first paint (1024×600). */
@media (min-width: 901px) and (max-width: 1240px) and (min-height: 580px) and (max-height: 640px) {
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw__carousel { margin-top: 2px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame > .sx-sw > .sx-sw__side { padding-top: 6px; border-width: 12px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-circuit__instruction { display: none; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw__main > .sx-sw__gauges { padding: 6px 14px 6px; margin-top: 6px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-band { margin-top: 4px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-band--presets { margin-top: 4px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw__stats { margin-top: 4px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-band__meta { display: none; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-hero .k-hero__n { font-size: 20px; }
  html:not([data-sf-mobile="1"]) body #screens #sf-ship .sx-sw-bars { gap: 0 16px; }
}
@media (min-width: 901px) and (max-width: 1240px) and (min-height: 461px) and (max-height: 720px) {
  html:not([data-sf-mobile="1"]) body #screens #sf-ship.dp-frame { padding: 24px 32px; }
}
/* S2: on a short frame the rail compresses — dial, rows, helper, rack — so the helper
   and DOCK TO EXTEND keep their floor above y=700. */
@media (max-height: 800px) {
  html body #screens #sf-ship .sx-sw-circuit > * + * { margin-top: 5px; }
  html body #screens #sf-ship .sx-sw-circuit__sub { margin-top: 2px; }
  html body #screens #sf-ship .sx-sw-circuit__core .orr-power { width: 150px; }
  html body #screens #sf-ship .sx-sw-circuit__core .k-hero__n { font-size: 24px; }
  html body #screens #sf-ship .sx-sw-flow { padding-top: 3px; padding-bottom: 3px; min-height: 0; }
  html body #screens #sf-ship .sx-sw-circuit__instruction { font-size: 12.5px; line-height: 1.3; margin: 4px 0; }
  html body #screens #sf-ship .sx-sw-rack { margin-top: 6px; }
  html body #screens #sf-ship .sx-sw-rack .sx-sw-band__label { margin-bottom: 4px; }
  html body #screens #sf-ship .sx-sw-rack__cell { padding-top: 3px; padding-bottom: 3px; min-height: 0; }
  html body #screens #sf-ship .sx-sw-rack__cell.is-empty .k-row__sub { display: none; }
  html body #screens #sf-ship .sx-sw-rack__verbs { margin-top: 4px; }
  html body #screens #sf-ship .sx-sw__side :is([data-rack-restock], [data-rack-upgrade]) { padding: 2px 0; }
}

/* ───────────── WAVE 2 r2 — THE SHIP flight host (critic §1, SH2-SH7) ─────────────
   SH1's poster-band guard is JS (shipworks.js updateSpatialProjection); SH6's settle
   hook is JS too (document.fonts.ready re-projection). The rest is paint. End state:
   ONE amber Hand (the chosen slot: hull bead+arm AND rail bead+arm) + ONE amber Lamp
   Key (SAVE FIT). Everything else bone rgb(236 230 216); red threat-only. */
/* SH10: the chosen rail row is bead + arm + bright name — never a filled box.
   The wash fill (sharp vertical cutoffs) stands down on the flight host. */
html body #screens #sf-ship .sx-sw-flow.is-selected { background: none; background-image: none; box-shadow: none; }
/* SH2: the rail row answers the Hand in amber — bead + arm, the hull's own. */
html body #screens #sf-ship .sx-sw-flow.is-selected::before { background: var(--dp-lamp, #f2b950); }
html body #screens #sf-ship .sx-sw-flow.is-selected::after {
  background: var(--dp-lamp, #f2b950); box-shadow: 0 0 0 4px rgb(242 185 80 / .25);
}
/* SH2: the chosen slot's bead on the hull — an amber disc with its bloom, not the 4px
   ink square. (The leader arm went amber in r1.) */
html body #screens #sf-ship .sx-sw__slotfield:not(.is-board) .sx-hardpoint:is(:hover, :focus-visible, .is-selected) .sx-hardpoint__reticle {
  left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--dp-lamp, #f2b950);
  box-shadow: 0 0 0 4px rgb(242 185 80 / .25), 0 0 10px 2px rgb(242 185 80 / .45);
}
/* SH3: the verb strip is words, not pills — bone dotted words on the band's glass. */
html body #screens #sf-ship .sx-sw-verbs .sx-sw-verb {
  background: none; background-image: none; border: 0; box-shadow: none;
  min-height: 0; min-width: 0; padding: 5px 2px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-shadow: none;
  color: rgb(236 230 216 / .85);
  text-decoration: underline dotted rgb(236 230 216 / .5); text-underline-offset: 5px;
}
html body #screens #sf-ship .sx-sw-verbs .sx-sw-verb:hover {
  color: rgb(252 249 240); text-decoration-color: rgb(252 249 240 / .8);
}
html body #screens #sf-ship .sx-sw-verbs .sx-sw-verb:focus-visible {
  outline: 1px solid rgb(236 230 216 / .7); outline-offset: 3px; color: rgb(252 249 240);
}
html body #screens #sf-ship .sx-sw-verbs .sx-sw-verb[aria-pressed="true"] {
  color: rgb(252 249 240); text-decoration-style: solid; text-decoration-color: rgb(252 249 240 / .85);
}
html body #screens #sf-ship .sx-sw-verbs .sx-sw-verb[disabled] {
  color: rgb(236 230 216 / .5); text-decoration-color: rgb(236 230 216 / .3);
}
/* SH4: the disc's alternative — the dial goes on the flight host; the core number and
   the ladder rail below it say everything it said. (DOM retained: the shared stage and
   the checks still query .orr-power; only the flight host's paint stands down.) */
html body #screens #sf-ship .sx-sw-circuit__core .orr-power { display: none; }
/* SH5: the stray ambers stand down to bone — the title rule, the module-name rules,
   and the badge edge. No name is a lamp. */
html body #screens #sf-ship .sf-entity-link { text-decoration-color: rgb(236 230 216 / .55); }
html body #screens #sf-ship .sx-sw-row.fh-row.is-selected {
  background: linear-gradient(90deg, rgb(236 230 216 / .85) 2px, transparent 0),
    linear-gradient(var(--dp-field-ink, rgb(236 230 216 / .06)) 0 0);
}
/* SH7: the stat-bar fills read as light — a 4px bloom under the 2px fill. */
html body #screens #sf-ship .sx-sw-bar__track > .k-bar__fill {
  box-shadow: 0 0 4px 1px rgb(255 240 214 / .5);
}
/* SH1: retain the hull's handling / power / heat sentence on the flight host.
   Give the nameplate a real prose column before the stage's callout gutter, so
   the sentence cannot run across the lower Mass/Energy readings. Longer hull
   descriptions stay reachable inside that bounded column. */
html body #screens #sf-ship .sx-sw__nameplate { max-width: min(460px, 36vw); padding-right: 0 !important; }
html body #screens #sf-ship .sx-sw__nameplate .sx-sw__blurb {
  display: block !important; max-height: 86px; overflow-y: auto; overscroll-behavior: contain;
  pointer-events: auto; font-size: 14px; line-height: 1.35;
}
/* SH8: in choosing mode the hang column keeps to itself — rules and lines end
   inside x<=300, and the prose steps down one shade so focus stays on the choice. */
html body #screens #sf-ship .sx-sw__chooser { overflow: hidden; }
html body #screens #sf-ship .sx-modrow { max-width: 235px; }
/* SH2 follow-through: the flight chooser's rows stack in the hang column. The shared
   row is a flex pair (body + act) that crushes the body to ~13px in 230px, wrapping
   every name one letter per line; here the act rides under the body, full width. */
html body #screens #sf-ship .sx-modrow { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
html body #screens #sf-ship .sx-modrow__body { width: auto; min-width: 0; }
html body #screens #sf-ship .sx-modrow__act { align-items: flex-start; }
/* SH2 follow-through: the flight fit verb is an unavailability note, not a purchase —
   a dotted word like its DOCK TO EXTEND twin, never a chip. */
html body #screens #sf-ship .sx-modrow__buy {
  background: none; background-image: none; border: 0; box-shadow: none; min-height: 0; height: auto;
  padding: 3px 0; color: rgb(236 230 216 / .85); text-decoration: underline dotted rgb(236 230 216 / .55);
  text-underline-offset: 4px; text-transform: uppercase; font-size: 12px; letter-spacing: .14em;
  text-shadow: none; white-space: normal; min-width: 0; max-width: 100%;
}
html body #screens #sf-ship .sx-modrow__buy:is(:hover, :focus-visible) { color: rgb(252 249 240); }
html body #screens #sf-ship .sx-modrow__buy small { color: rgb(236 230 216 / .7); }
html body #screens #sf-ship .sx-modrow__buy.orr-lampkey::before,
html body #screens #sf-ship .sx-modrow__buy.orr-lampkey::after { content: none !important; display: none !important; }
/* Backstop for a dock-dressed lamp surviving a host switch: the flight note keeps its
   word size and ink against the lamp module's !important field type. */
html body #screens #sf-ship .sx-modrow__buy.orr-lampkey {
  font-size: 12px !important; font-weight: 400 !important; font-stretch: 100% !important;
  font-variation-settings: normal !important; letter-spacing: .14em !important;
  min-height: 0 !important; padding: 3px 0 !important; color: rgb(236 230 216 / .85) !important;
}
html body #screens #sf-ship .sx-modrow__buy:is(:disabled, [aria-disabled="true"]) {
  color: rgb(236 230 216 / .55); text-decoration-color: rgb(236 230 216 / .3);
}
/* SH9: deltas are static numerals, never ice (motion-only) — gains AND losses read
   bone with their +/- glyphs; red stays threat-only. */
html body #screens #sf-ship .sx-modrow :is(.k-good, .is-gain, .sx-modrow__chip.is-up) { color: rgb(236 230 216 / .92); }
html body #screens #sf-ship .sx-modrow :is(.k-bad, .is-loss, .sx-modrow__chip.is-down) { color: rgb(236 230 216 / .92); }
/* SH2 follow-through: the live foot shares one band — the view words unbox to compact
   dotted words (the SH3 rule) so camera + verbs fit 621px; the drag hint retires (the
   canvas keeps its grab cursor); while choosing, the wide rack owns the band alone. */
html body #screens #sf-ship .sx-sw__camera { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
html body #screens #sf-ship .sx-sw__camera [data-camera] {
  background: none; background-image: none; border: 0; box-shadow: none;
  min-height: 0; min-width: 0; padding: 3px 2px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  text-shadow: 0 0 6px rgb(4 6 9 / .9), 0 1px 2px rgb(4 6 9 / .9);
  color: rgb(236 230 216 / .7);
  text-decoration: underline dotted rgb(236 230 216 / .45); text-underline-offset: 4px;
}
html body #screens #sf-ship .sx-sw__camera [data-camera].is-current {
  color: rgb(252 249 240); text-decoration-style: solid; text-decoration-color: rgb(252 249 240 / .8);
}
html body #screens #sf-ship .sx-sw__camera [data-camera]:is(:hover, :focus-visible) { color: rgb(252 249 240); }
html body #screens #sf-ship .sx-sw__dragcue { display: none; }
html body #screens #sf-ship .sx-sw.is-choosing .sx-sw__camera { display: none; }
/* SH11: in choosing mode the non-selected leaders step back one shade, so none
   reads through the proposed-fit line. */
html body #screens #sf-ship .sx-sw.is-choosing .sx-hardpoint:not(.is-selected) .sx-hardpoint__leader { opacity: .45; }
/* SH9: the proposed-fit line reads bone with +/- glyphs — ice is motion-only. */
html body #screens #sf-ship .sx-sw__delta :is(.k-good, .is-gain) { color: rgb(236 230 216 / .92); }
html body #screens #sf-ship .sx-sw__delta :is(.k-bad, .is-loss) { color: rgb(236 230 216 / .92); }
