/* Style 2 · token screen (SCR-create-token): the one "Token" view. Owned by the token screen implementer; loaded after
   s2.css (index.html). Geometry from out/SCR-create-token/spec.json + data-terminal/v2.png, placed in the foundation's
   frame (rail 252, top bar 48, status bar 32): the work column's content is the mock's 708px column (gutter 40 | 708 |
   gutter 40 = 788), the right rail is the mock's 400px rail (24 | 352 | 24). Every value inside the view is the mock's.
   The style's one move: every selection = a 1px accent line exactly as wide as its label on the nearest edge (the step
   band's current step, the selected launchpad cell's bottom border, a segmented option); figures carry their sign in the
   text; surfaces (cells, inputs, card) sit one step DARKER than the ground. */

/* ---------------------------------------------------------------- frame (token tab only) */
.s2-hl[data-tab="token"] { --s2-right-w: 400px; --s2-work-pad: 40px; }
.s2-hl[data-tab="token"] .s2-id[hidden] { display: none; }
.s2-hl[data-tab="token"] .s2-top-r { border-left: 1px solid var(--s2-border); }
.s2-hl[data-tab="token"] .s2-top-x { padding-left: 15px; }
.s2-hl[data-tab="token"] .s2-rb.hl-plan-in { padding-bottom: 24px; }

/* frame ledger ids on the shell's own rail / status controls sit on parts of the real controls (hl-sec-token.js
   shellTags): attributes only, plus a span around the "Workspace" label text that inherits everything */
.s2-glabel > .s2t-gl { font: inherit; color: inherit; }

/* ---------------------------------------------------------------- the view (x292-1000 on the foundation frame) */
.s2t { position: relative; display: flex; flex-direction: column; width: 708px; max-width: 100%; color: var(--s2-text); font: 400 13px/20px var(--s2-font); }
.s2t button { font-family: var(--s2-font); }
.s2t-h1 { margin: 0; height: 32px; font: 600 26px/32px var(--s2-font); letter-spacing: 0; color: var(--s2-text); }
.s2t-lbl { margin: 0; font: 500 13px/20px var(--s2-font); color: var(--s2-muted); letter-spacing: 0; }
.s2t-mut { color: var(--s2-muted); }
.s2t .neg, .s2t-rail .neg { color: var(--s2-negative); }
.s2t-lock { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 9px 12px; border: 1px solid var(--s2-border); border-radius: var(--s2-r-card); background: var(--s2-surface); font-size: 12px; line-height: 16px; color: var(--s2-secondary); }
.s2t-lock .i { width: 14px; height: 14px; color: var(--s2-muted); flex: none; }
.s2t-lock b { font-weight: 500; color: var(--s2-text); }

/* ---- launchpad: 3 x 228 + 2 x 12 = 708; cells 48px on an 8px row gap */
.s2t-lp { margin-top: 24px; }
.s2t-lpg { display: grid; grid-template-columns: repeat(3, 228px); gap: 8px 12px; margin-top: 8px; }
.s2t-lpg-e { display: flex; align-items: center; height: 48px; margin-top: 8px; padding: 0 12px; border: 1px dashed var(--s2-control); border-radius: var(--s2-r-card); font-size: 12px; color: var(--s2-muted); }
.s2t-cell { position: relative; display: block; width: 228px; height: 48px; padding: 0; border: 1px solid var(--s2-border); border-radius: var(--s2-r-card); background: var(--s2-surface); color: var(--s2-text); text-align: left; cursor: pointer; transition: border-color 0.12s; }
.s2t-cell:hover:not(:disabled) { border-color: var(--s2-control); }
.s2t-cell:disabled { cursor: default; }
.s2t-cell > .s2t-mk { position: absolute; left: 11px; top: 11px; }
.s2t-cell-t { position: absolute; left: 47px; right: 11px; top: 6px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.s2t-cell-t > b { font: 500 13px/18px var(--s2-font); color: var(--s2-text); }
.s2t-cell-t > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
/* the name keeps its own width (the selection line is exactly as wide as it); a long name ellipsizes inside */
.s2t-sel { position: relative; display: block; max-width: 100%; }
.s2t-sel > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2t-cell.on .s2t-sel::after { content: ""; position: absolute; left: 0; right: 0; bottom: -23px; height: 1px; background: var(--s2-accent); pointer-events: none; }
.s2t-cell.is-sk { cursor: default; }
/* a cell line the open Advanced popover's top edge would cut through is hidden (hl-sec-token.js underPop) */
.s2t-cell .s2t-under { visibility: hidden; }
.s2t-cell.is-sk .s2t-cell-t .s2-bar { display: block; height: 10px; margin: 4px 0 6px; }
.s2t-cell.is-sk .s2t-cell-t b.s2-bar { width: 72px; } .s2t-cell.is-sk .s2t-cell-t span.s2-bar { width: 110px; }
/* the list failed (I-ct4-02): one frame on the six cells' box (708 x 104: the grid keeps its footprint, nothing below
   moves when the cells land), the cells' own edge and surface; inside, a 14px icon in negative ink at the marks' x (12),
   one 13px sentence with its time in grey, and Retry as an underlined text button */
.s2t-lpg-err { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; height: 104px; margin: 0; padding: 0 16px 0 12px; border: 1px solid var(--s2-border); border-radius: var(--s2-r-card); background: var(--s2-surface); font: 400 13px/20px var(--s2-font); color: var(--s2-text); }
.s2t-lpg-err > .i { flex: none; width: 14px; height: 14px; color: var(--s2-negative); }
.s2t-lpg-err > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2t-lpg-err em { font-style: normal; color: var(--s2-muted); }
.s2t-lpg-err em b { font-weight: 400; }
.s2t-lpg-retry { flex: none; margin-left: 4px; padding: 0; border: 0; background: none; font: 500 13px/20px var(--s2-font); color: var(--s2-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.s2t-lpg-retry[aria-disabled="true"] { color: var(--s2-muted); text-decoration: none; cursor: default; }
.s2t-lpg-retry:focus-visible { outline: 1px solid var(--s2-text); outline-offset: 2px; border-radius: 2px; }

/* marks: transparent official marks; an unknown launchpad = its initial on a raised disc */
.s2t-mk { display: inline-grid; place-items: center; flex: none; object-fit: contain; }
.s2t-mk.s24 { width: 24px; height: 24px; }
.s2t-mk.s16 { width: 16px; height: 16px; }
span.s2t-mk, .s2t-mk.mono-d { border-radius: 50%; background: var(--s2-raised); color: var(--s2-secondary); font: 600 11px/1 var(--s2-font); }
/* a 16px disc's initial at the 11px type floor (digest §6, gv6ct-06) */
.s2t-mk.s16.mono-d, span.s2t-mk.s16 { font-size: 11px; }
.s2t-mk.is-sk { border-radius: 50%; border: 1px solid var(--s2-control); background: none; }

/* ---- identity: image 160 | 16 | fields 532 (name 292 · 12 · ticker 228; description 532) */
.s2t-id { display: grid; grid-template-columns: 160px 532px; column-gap: 16px; margin-top: 24px; align-items: start; }
.s2t-img { position: relative; width: 160px; }
.s2t-slot { position: relative; display: block; width: 160px; height: 160px; overflow: hidden; border-radius: var(--s2-r-card); background: var(--s2-surface); cursor: pointer; }
.s2t-slot > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a picture that cannot load (ui.js hydrate swaps the img for a span that keeps its class and carries the fallback
   text) reads as a failed picture: the slot's solid 1px frame, a 16px image glyph over one 12px grey line. App type,
   never a display-size monogram (DIGEST §5) */
.s2t-slot:has(> span.s2t-slot-pic) { border: 1px solid var(--s2-border); }
.s2t-slot > span.s2t-slot-pic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-slot > span.s2t-slot-pic::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--s2t-img-gl) center / 16px 16px no-repeat; mask: var(--s2t-img-gl) center / 16px 16px no-repeat; }
.s2t, .s2t-rail { --s2t-img-gl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E"); }
/* no picture where nothing can be uploaded (read only, launched, tracked): a quiet solid frame, not the dashed upload frame */
.s2t-slot.none { border: 1px solid var(--s2-border); cursor: default; }
.s2t-slot.none .s2t-slot-in > .i { color: var(--s2-muted); }
.s2t-slot-why { max-width: 136px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2t-slot-in > .i { width: 16px; height: 16px; margin-bottom: 8px; color: var(--s2-negative); }
.s2t-slot.is-empty, .s2t-slot.is-err { border: 1px dashed var(--s2-control); }
.s2t-slot.is-empty:hover:not(.dis), .s2t-slot.over { border-color: var(--s2-control-hi); }
.s2t-slot.has.over { outline: 1px dashed var(--s2-control-hi); outline-offset: 2px; }
.s2t-slot.dis { cursor: default; }
.s2t-slot:focus-visible { outline: 1px solid var(--s2-text); outline-offset: 1px; }
.s2t-slot-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 100%; height: 100%; text-align: center; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-slot-in .hlt-gl { width: 16px; height: 16px; margin-bottom: 12px; color: var(--s2-muted); }
.s2t-slot-in b { font: 500 12px/16px var(--s2-font); color: var(--s2-text); margin-bottom: 4px; }
.s2t-slot-in b.neg { color: var(--s2-negative); }
.s2t-retry { color: var(--s2-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.s2t-slot-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(19, 18, 23, 0.72); font: 500 12px/16px var(--s2-font); font-style: normal; color: var(--s2-text); }
.s2t-slot-busy .i { width: 16px; height: 16px; }
.s2t-img-a { display: flex; align-items: center; gap: 4px; height: 16px; margin-top: 8px; font: 500 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-img-a i { font-style: normal; }
.s2t-img-err { color: var(--s2-negative); cursor: default; }
.s2t-ta { display: inline; padding: 0; border: 0; background: none; color: var(--s2-muted); font: 500 12px/16px var(--s2-font); cursor: pointer; }
.s2t-ta:hover:not(:disabled) { color: var(--s2-text); }
.s2t-ta:disabled { cursor: default; }
.s2t-ta.in { font-weight: 400; color: var(--s2-secondary); text-decoration: underline; text-underline-offset: 2px; }
.s2t-linkpop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 25; display: flex; align-items: center; gap: 4px; width: 360px; height: 40px; padding: 0 3px 0 0; border: 1px solid #2e2e32; border-radius: var(--s2-r-card); background: var(--s2-surface); }
.s2t-linkpop .s2t-in { flex: 1; height: 38px; border: 0; background: none; }
.s2t-linkpop .s2t-in:focus { outline: none; }

.s2t-f { display: grid; grid-template-columns: 292px 228px; column-gap: 12px; row-gap: 16px; }
.s2t-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.s2t-field.ds { grid-column: 1 / -1; }
.s2t-fl { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 20px; font: 500 13px/20px var(--s2-font); color: var(--s2-muted); white-space: nowrap; }
.s2t-fl > span:first-child { display: inline-flex; align-items: baseline; gap: 6px; }
.s2t-fl em { font-style: normal; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-count { font: 400 12px/16px var(--s2-mono); color: var(--s2-muted); font-variant-numeric: tabular-nums; }
.s2t-count.bad { color: var(--s2-negative); }
.s2t-fl .hlt-region { display: inline-flex; }

/* inputs: 40px, the card tone (darker than the ground), 1px control edge, r6, 13px; focus = the field's edge one step
   brighter (spec ST-track: #3a3a3e -> #4c4c51, --s2-control-hi), the caret marks the field being typed in (gv6ct-04) */
.s2t-in { box-sizing: border-box; display: block; width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-field); background: var(--s2-surface); color: var(--s2-text); font: 400 13px/20px var(--s2-font); box-shadow: none; outline: none; }
.s2t-in::placeholder, .s2t-in input::placeholder { color: var(--s2-muted); opacity: 1; }
.s2t-in:hover:not(:disabled):not(:focus):not(:focus-within) { border-color: var(--s2-control-hi); }
.s2t-in:focus, .s2t-in:focus-within { border-color: var(--s2-control-hi); }
.s2t-in.bad, .s2t-in:has(input.bad) { border-color: var(--s2-negative); }
.s2t-in:disabled, .s2t-in:has(input:disabled) { color: var(--s2-secondary); cursor: default; }
textarea.s2t-in { height: 72px; padding: 9px 11px; resize: none; overflow-y: auto; }
.s2t-in.mono, .s2t-in.mono input { font-family: var(--s2-mono); font-size: 13px; }
.s2t-in-w { display: flex; align-items: center; gap: 0; }
.s2t-in-w > i { flex: none; width: 12px; font-style: normal; color: var(--s2-muted); }
.s2t-in-w > input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--s2-text); font: inherit; }

/* ---- links: the grid's three columns */
.s2t-links { display: grid; grid-template-columns: repeat(3, 228px); column-gap: 12px; margin-top: 24px; }

/* ---- Advanced: a 36px row under a 1px rule; keys grey, values ink; chevron at the right end. The content is centred on
   the whole 36px row, rule included (label y+9, summary y+10, chevron y+12: spec B-advanced), hence the 1px foot */
.s2t-adv-w { position: relative; margin-top: 24px; }
.s2t-adv { display: flex; align-items: center; width: 100%; height: 36px; padding: 0 0 1px; border: 0; border-top: 1px solid var(--s2-rule); border-radius: 0; background: none; color: var(--s2-text); text-align: left; cursor: pointer; }
.s2t-adv:focus-visible { outline: 1px solid var(--s2-text); outline-offset: 2px; }
.s2t-adv-l { flex: none; width: 70px; margin-right: 16px; font: 500 13px/18px var(--s2-font); color: var(--s2-muted); }
.s2t-adv[aria-expanded="true"] .s2t-adv-l { color: var(--s2-text); }
/* regions are display: contents by default (app.css); the summary needs its own box to ellipsize as one line */
.s2t-adv > .hlt-region { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px/16px var(--s2-font); }
.s2t-adv .s2t-k { color: var(--s2-muted); }
.s2t-adv .s2t-v { color: var(--s2-text); }
.s2t-adv .s2t-v.need { color: var(--s2-warning); }
.s2t-chg { display: inline-block; width: 6px; height: 6px; margin: 0 4px 1px 0; border-radius: 50%; background: var(--s2-text); vertical-align: middle; }
.s2t-adv-c { flex: none; width: 12px; height: 12px; margin: 0 4px 0 12px; color: var(--s2-muted); transition: transform 0.12s; }
.s2t-adv[aria-expanded="true"] .s2t-adv-c { transform: rotate(180deg); color: var(--s2-text); }

/* the popover: 708 wide, anchored to the row, flipped above it (8px gap). It FLOATS: the screen's only shadowed surface
   (spec ST-advanced-pump), the sheet's float shadow under its 1px edge, so the cells it covers read as underneath it.
   Rows on the spec's 48px pitch: a 40px line + 8px gap (Pump.fun 16 + 64 + 4 x 48 + 8 + 88 + 16 = 384; Bonk.fun 336);
   the rule between two rows sits in the middle of the gap and adds no height. */
.s2t-pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; display: flex; flex-direction: column; gap: 8px; width: 708px; max-height: 528px; overflow-y: auto; padding: 15px; border: 1px solid #2e2e32; border-radius: var(--s2-r-card); background: var(--s2-surface); color: var(--s2-text); box-shadow: var(--s2-float-shadow); }
/* a row's first line is 40px and only ever grows downward (never centred over the row above it: ct5-01); the label
   keeps to that first line */
.s2t-pr { position: relative; flex: none; display: grid; grid-template-columns: 196px minmax(0, 1fr); grid-template-rows: minmax(40px, auto); grid-auto-rows: auto; column-gap: 12px; align-items: center; }
.s2t-pr + .s2t-pr::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 1px; background: var(--s2-rule); pointer-events: none; }
.s2t-pr-l { display: flex; flex-direction: column; justify-content: center; gap: 0; min-width: 0; min-height: 40px; align-self: start; }
.s2t-pr-l b { font: 500 13px/18px var(--s2-font); color: var(--s2-text); }
.s2t-pr-l span { font: 400 12px/16px var(--s2-font); color: var(--s2-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2t-pr.need .s2t-pr-l b { color: var(--s2-warning); }
.s2t-pr-c { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
/* the second control line (OTC Desks' "Pays in" / "Basket", a non-SOL pair's two bps fields): 40px under the first, from
   the control column's left edge, field groups 16 apart as on the Priority fee's second line */
.s2t-pr-c2 { grid-column: 2; min-height: 40px; column-gap: 16px; }
.s2t-pr-s { grid-column: 2; min-height: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-pr-s .num { color: var(--s2-text); }
.s2t-pr-s > .hlt-region { display: block; }
.s2t-pr-s .warn, .s2t-pr-n.warn { color: var(--s2-warning); font-weight: 400; }
.s2t-pr-2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-height: 40px; padding: 0; }
.s2t-pr.prio > .s2t-pr-s { min-height: 48px; padding-top: 8px; }
/* the priority fee's second line (floor · cap · compute limit) runs under the whole row: one line, as the spec draws it */
.s2t-pr.prio > .s2t-pr-s, .s2t-pr.addr.tall > .s2t-pr-s { grid-column: 1 / -1; }
.s2t-pr.addr.tall > .s2t-pr-s { padding-top: 8px; }
.s2t-pr.addr.tall > .s2t-pr-s > .hlt-region { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.s2t-pr-n { margin: 0; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); white-space: normal; }
/* D-06: the OTC Desks and Pairing paragraphs are ONE 12px line in their rows (the rest in the line's title) */
.s2t-pr-n.one { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2t-pr-n.neg { color: var(--s2-negative); }
.s2t-pr-n b, .s2t-pr-n .num { color: var(--s2-text); font-weight: 400; }
.s2t-pop .hl-seg { --s2-seg-h: 32px; flex: none; }
.s2t-pop .hl-seg button { padding: 0 12px; font-size: 13px; }
.s2t-pf { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.s2t-pf.hidden { display: none; }
.s2t-pf > em { font-style: normal; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); white-space: nowrap; }
.s2t-in.sm { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; }
.s2t-in.sm > input, .s2t-in.sm > select { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--s2-text); font: 400 13px/20px var(--s2-font); }
.s2t-in.sm.mono > input { font-family: var(--s2-mono); }
.s2t-in.sm > i { flex: none; font-style: normal; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-in.sm.sel { padding-right: 8px; }
.s2t-in.sm.sel > select { appearance: none; padding-right: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8c92' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 2px center / 10px 6px; cursor: pointer; }
.s2t-in.sm.sel > select option, .s2t-in.sm.sel > select optgroup { background: var(--s2-surface); color: var(--s2-text); }
.s2t-pf.w96 .s2t-in { width: 96px; } .s2t-pf.w120 .s2t-in { width: 120px; } .s2t-pf.w160 .s2t-in { width: 160px; }
.s2t-pf.w200 .s2t-in { width: 200px; } .s2t-pf.w240 .s2t-in { width: 240px; } .s2t-pf.w360 .s2t-in { width: 360px; }
.s2t-sw { position: relative; flex: none; width: 28px; height: 16px; padding: 0; border: 0; border-radius: 999px; background: #2c2c30; cursor: pointer; }
.s2t-sw > i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--s2-secondary); transition: transform 0.12s; }
.s2t-sw.on { background: var(--s2-positive); }
.s2t-sw.on > i { transform: translateX(12px); background: #fff; }
.s2t-sw:disabled { cursor: default; }
.s2t-sw-t { font: 400 13px/18px var(--s2-font); color: var(--s2-text); margin-right: 8px; }
.s2t-van { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.s2t-gbar { display: block; width: 120px; height: 4px; border-radius: 2px; background: var(--s2-raised); overflow: hidden; }
.s2t-gbar > i { display: block; height: 100%; width: var(--w, 0%); background: var(--s2-secondary); }
.s2t-gmsg { font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-gmsg b { font-weight: 400; color: var(--s2-text); }
.s2t-pk { font: 400 13px/18px var(--s2-mono); color: var(--s2-secondary); }
.s2t-pk b { font-weight: 500; color: var(--s2-text); }
.s2t-pk-run { font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-in.sm.pair { gap: 6px; }
/* the pair select: 160 wide (spec), growing with the chosen pair's words up to the control column (ct5-01 / ct5-05). A
   hidden copy of the chosen label (::after, the select's own type) sizes the cell the select fills */
.s2t-pr.pair .s2-lw, .s2t-pr.pair .s2t-pf { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.s2t-in.sm.pair.fit { width: auto; min-width: 160px; max-width: 100%; }
.s2t-fit { display: inline-grid; flex: 1 1 auto; min-width: 0; height: 100%; align-items: center; } /* fills a box wider than its words: the arrow keeps to the box's right end */
.s2t-fit::after { content: attr(data-s2t-fit); grid-area: 1 / 1; height: 0; overflow: hidden; visibility: hidden; white-space: pre; padding-right: 22px; font: 400 13px/20px var(--s2-font); }
.s2t-fit > select { grid-area: 1 / 1; width: 0; min-width: 100%; height: 100%; padding: 0 18px 0 0; border: 0; outline: 0; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8c92' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 2px center / 10px 6px; color: var(--s2-text); font: 400 13px/20px var(--s2-font); text-overflow: ellipsis; cursor: pointer; }
.s2t-fit > select option { background: var(--s2-surface); color: var(--s2-text); }

/* ---- action row: finding line (12px grey) · Decide later (outline pill) · the one filled primary (white pill) */
.s2t-act { display: flex; align-items: center; gap: 12px; height: 36px; margin-top: 16px; }
.s2t-why { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-act .s2-lw { flex: none; }
.s2t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; height: 36px; padding: 0 14px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-control); background: transparent; color: var(--s2-text); font: 500 13px/18px var(--s2-font); white-space: nowrap; cursor: pointer; box-shadow: none; transition: border-color 0.12s, background 0.12s; }
.s2t-btn:hover:not(:disabled) { border-color: var(--s2-control-hi); }
.s2t-btn:disabled { color: var(--s2-muted); border-color: #2c2c30; cursor: default; }
.s2t-btn .i { width: 14px; height: 14px; }
.s2t-btn.pri { min-width: 172px; border-color: #ffffff; background: #ffffff; color: #000000; font-weight: 600; }
.s2t-btn.pri:hover:not(:disabled) { border-color: #e8e8ea; background: #e8e8ea; }
.s2t-btn.pri:disabled { border-color: #2a2a2e; background: #2a2a2e; color: var(--s2-secondary); }
.s2t-btn.sm { height: 32px; min-width: 52px; padding: 0 8px; }

/* ---- a project that tracks an existing token */
.s2t-id.trk { grid-template-columns: 160px 532px; }
.s2t-trk { display: flex; flex-direction: column; gap: 8px; padding-top: 0; }
.s2t-trk-n { display: flex; align-items: baseline; gap: 8px; height: 28px; }
.s2t-trk-n b { font: 600 20px/28px var(--s2-font); color: var(--s2-text); }
.s2t-trk-n span { font: 500 13px/20px var(--s2-font); color: var(--s2-muted); }
/* what a tracked token's metadata lacks reads as missing: a muted "Unnamed token", a small grey dash for the ticker */
.s2t-trk-n b.na, .s2t-pv-n b.na { color: var(--s2-muted); }
.s2t-na { color: var(--s2-muted); }
.s2t-trk-r { display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: 13px; }
.s2t-trk-r > span:first-child { width: 96px; color: var(--s2-muted); }
.s2t-trk-r b { font: 400 13px/20px var(--s2-mono); color: var(--s2-text); }
.s2t-trk-v { display: inline-flex; align-items: center; gap: 6px; color: var(--s2-text); }
.s2t-unit { font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-bond { position: relative; display: block; width: 120px; height: 4px; border-radius: 2px; background: var(--s2-raised); overflow: hidden; }
.s2t-bond > i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--s2-secondary); }
.s2t-ca-v { display: inline-flex; align-items: center; gap: 6px; font: 400 13px/20px var(--s2-mono); color: var(--s2-text); cursor: pointer; }
.s2t-ca-v .i { width: 12px; height: 12px; color: var(--s2-muted); }

/* ---------------------------------------------------------------- right rail (content x1064-1416) */
.s2t-rail { display: flex; flex-direction: column; width: 352px; max-width: 100%; color: var(--s2-text); font: 400 13px/20px var(--s2-font); }
.s2t-rail-in { display: flex; flex-direction: column; }
/* preview card: 352 x 316 (spec B-preview), 20px inside, the card tone + 1px border, no shadow. A description takes a
   fixed 3-line slot (60px): one line or three, the card keeps one height and the rail below it stays where the spec puts it */
.s2t-pv { position: relative; display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--s2-border); border-radius: var(--s2-r-card); background: var(--s2-surface); }
.s2t-pv-top { display: flex; align-items: flex-start; justify-content: space-between; height: 64px; }
.s2t-pv-img { position: relative; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: var(--s2-raised); font: 600 24px/1 var(--s2-font); color: var(--s2-secondary); }
.s2t-pv-img > img { width: 100%; height: 100%; object-fit: cover; }
.s2t-pv-img.ph { border: 1px dashed var(--s2-control); background: none; color: var(--s2-muted); }
.s2t-pv-img.ph .i { width: 16px; height: 16px; }
.s2t-pv-up { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(19, 18, 23, 0.6); color: var(--s2-text); }
.s2t-pv-up .i { width: 16px; height: 16px; }
.s2t-pv-tag { font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-pv-n { display: flex; align-items: baseline; gap: 8px; min-width: 0; height: 28px; margin-top: 16px; }
.s2t-pv-n b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 20px/28px var(--s2-font); color: var(--s2-text); }
.s2t-pv-n span { flex: none; font: 500 13px/20px var(--s2-font); color: var(--s2-muted); }
.s2t-pv-ph { margin: 16px 0 0; font: 400 14px/20px var(--s2-font); color: var(--s2-muted); }
.s2t-pv-d { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; min-height: 60px; max-height: 60px; margin: 8px 0 0; overflow: hidden; font: 400 13px/20px var(--s2-font); color: var(--s2-muted); overflow-wrap: anywhere; }
.s2t-pv-l { display: flex; align-items: center; gap: 12px; height: 16px; margin-top: 12px; color: var(--s2-muted); }
.s2t-pv-l span { display: inline-grid; width: 16px; height: 16px; }
.s2t-pv-l .hlt-gl { width: 16px; height: 16px; }
.s2t-pv-sep { height: 1px; margin-top: 16px; background: var(--s2-border); }
.s2t-pv-v { display: flex; align-items: center; height: 16px; margin-top: 15px; font: 400 12px/16px var(--s2-font); white-space: nowrap; }
.s2t-pv-v .s2t-mk { margin-right: 4px; }
.s2t-pv-v b { font-weight: 400; color: var(--s2-text); }
.s2t-pv-v i { margin: 0 6px; font-style: normal; color: var(--s2-muted); }
.s2t-pv-na { color: var(--s2-muted); }
/* one 16px line, never wrapped (gv7ct-01: a wrap left its separator hanging and grew the card 16px); a figure too long for
   312px is cut at the line's end, the whole line in its title */
.s2t-pv-s { height: 16px; margin-top: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-pv-s b { font-weight: 400; color: var(--s2-text); }
.s2t-pv-s b.num { font-family: var(--s2-mono); }
/* track an existing token: label row, the joined 40px field (Paste ghost + Track outline inside), helper line */
.s2t-trk-h { display: flex; align-items: center; justify-content: space-between; height: 20px; margin-top: 24px; }
.s2t-trk-h > span { font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-ca { display: flex; align-items: center; gap: 4px; height: 40px; margin-top: 8px; padding: 0 3px 0 11px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-field); background: var(--s2-surface); }
.s2t-ca:hover:not(:focus-within) { border-color: var(--s2-control-hi); }
.s2t-ca:focus-within { border-color: var(--s2-control-hi); }
.s2t-ca.bad, .s2t-ca.bad:focus-within { border-color: var(--s2-negative); }
.s2t-ca > input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--s2-text); font: 400 13px/20px var(--s2-mono); }
.s2t-ca > input::placeholder { color: var(--s2-muted); opacity: 1; }
.s2t-ca.is-trk > input { color: var(--s2-secondary); }
.s2t-ca-p { flex: none; min-width: 52px; height: 32px; padding: 0 8px; border: 0; border-radius: var(--s2-r-control); background: none; color: var(--s2-muted); font: 500 13px/18px var(--s2-font); cursor: pointer; }
.s2t-ca-p:hover:not(:disabled) { color: var(--s2-text); background: var(--s2-raised); }
.s2t-ca > .hlt-region { display: inline-flex; flex: none; }
.s2t-help { display: block; min-height: 16px; margin: 8px 0 0; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-help .s2t-mk { display: inline-block; vertical-align: -4px; }
.s2t-help.neg { color: var(--s2-negative); }
.s2t-help.is-ok b { font-weight: 400; color: var(--s2-text); }
.s2t-help > .s2t-mk { margin-right: 4px; }
.s2t-hv-w { display: inline-flex; align-items: center; vertical-align: top; white-space: nowrap; }
.s2t-hv-w + .s2t-hv-w { margin-left: 6px; }
.s2t-hv { display: inline-flex; align-items: center; height: 16px; padding: 0; border: 0; background: none; color: var(--s2-muted); font: 400 12px/16px var(--s2-font); white-space: nowrap; cursor: pointer; }
.s2t-hv:hover:not(:disabled) { color: var(--s2-text); }
.s2t-hv:focus-visible { outline: 1px solid var(--s2-text); outline-offset: 2px; }
.s2t-hv:disabled { cursor: default; }
.s2t-hv-t { margin-left: 4px; white-space: nowrap; }
.s2t-hv > .s2t-mk { margin-right: 4px; }

/* ---------------------------------------------------------------- token chip (top bar, x1056 over the rail) */
.s2t-chip { display: flex; align-items: center; height: 48px; min-width: 0; }
.s2t-chip-b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: var(--s2-r-control); color: var(--s2-muted); }
.s2t-chip-b:hover { background: var(--s2-raised); color: var(--s2-text); }
.s2t-chip-b .hlt-gl { width: 14px; height: 14px; }
.s2t-chip-av { position: relative; display: grid; place-items: center; flex: none; width: 34px; height: 34px; margin-left: 10px; border-radius: 50%; background: var(--s2-raised); font: 600 13px/1 var(--s2-font); color: var(--s2-secondary); }
.s2t-chip-av > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.s2t-chip-dot { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--s2-positive); outline: 2px solid var(--s2-ground); }
.s2t-chip-t { display: flex; flex-direction: column; min-width: 0; margin-left: 10px; }
.s2t-chip-n { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.s2t-chip-n b { overflow: hidden; text-overflow: ellipsis; font: 600 13px/18px var(--s2-font); color: var(--s2-text); }
.s2t-chip-n em { flex: none; font-style: normal; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-chip-s { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2t-chip-s .num { font-family: var(--s2-mono); }

/* ---------------------------------------------------------------- the band's Token step: its state marks (L-09, ct5-03)
   drawn on every tab (hl-sec-token.js applyMark sets data-s2t-mark on the shell's step): a 12px check after "Token" once
   the token is set, a 12px grey "Later" after Decide later, a 6px warning dot while a started draft is incomplete (not on
   the Token view, whose reason line says it). The selection line stays exactly label-wide (it is the label's own ::after) */
.s2-step[data-s2t-mark]::after { flex: none; margin-left: 6px; }
.s2-step[data-s2t-mark="set"]::after { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3 4.9 8.6 9.5 3.6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3 4.9 8.6 9.5 3.6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
.s2-step[data-s2t-mark="later"]::after { content: "Later"; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.s2-step[data-s2t-mark="warn"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--s2-warning); }
