/* Style 2 · settings screen (SCR-launch-settings). Owned by the settings screen implementer; loaded after s2.css (index.html).
   Scope rules to the screen: .s2-hl[data-tab="..."] … Frame variables (--s2-right-w, --s2-work-pad …) may be overridden here.

   Geometry (out/SCR-launch-settings/spec.json, measured from the top bar's rule, the foundation's 48px bar):
   work column x252-1040 (content 32px in on both sides) · right rail x1040-1440 (400, content 23px in) · title row 24px
   under the rule · blocks 16px apart, label 8px above its control, consequence lines 6-8px under it · the Advanced row's top
   rule and the rail foot's top rule are one line across the screen (192px foot over the status bar).
   The one move: every selection is a 1px accent line exactly as wide as its label, on the control's bottom edge. */

/* ---------------------------------------------------------------- frame */
.s2-hl[data-tab="settings"] { --s2-right-w: 400px; --ls-foot-h: 192px; }
.s2-hl[data-tab="settings"] .s2-id[hidden] { display: none; }
.s2-hl[data-tab="settings"] .s2-scroll { padding: 24px 32px 16px; }
.s2-hl[data-tab="settings"] .hl-plan { background: var(--s2-surface); }
.s2-hl[data-tab="settings"] .s2-rb.hl-plan-in { padding: 24px 23px 12px 22px; }
.s2-hl[data-tab="settings"] .s2-rb-f.hl-plan-f { display: block; flex: none; height: var(--ls-foot-h); padding: 0 23px 0 22px; border-top: 1px solid var(--s2-border); }
.s2-hl[data-tab="settings"] .s2-top-x { padding-left: 16px; gap: 0; }

/* ---------------------------------------------------------------- token chip (top bar, x1040-1440) */
.ls-chip { display: flex; align-items: center; height: 47px; min-width: 0; }
.ls-back { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--s2-muted); cursor: pointer; flex: none; }
.ls-back:hover { background: var(--s2-raised); color: var(--s2-text); }
.ls-back .i { width: 16px; height: 16px; }
.ls-av { display: grid; place-items: center; width: 34px; height: 34px; margin-left: 6px; flex: none; overflow: hidden; border-radius: 50%; background: var(--s2-raised); color: var(--s2-secondary); font: 600 13px/1 var(--s2-font); }
.ls-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-ct { display: flex; flex-direction: column; gap: 1px; min-width: 0; margin-left: 12px; }
.ls-ct1, .ls-ct2 { display: flex; align-items: center; height: 18px; gap: 8px; min-width: 0; white-space: nowrap; }
.ls-ct1 b { font: 600 13px/18px var(--s2-font); color: var(--s2-text); }
.ls-ct1 .ls-nm, .ls-ct2 > span:first-child { font: 400 12px/16px var(--s2-font); color: var(--s2-muted); overflow: hidden; text-overflow: ellipsis; }
.ls-lp { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 0 4px; margin-right: -4px; border: 0; border-radius: 4px; background: none; color: var(--s2-muted); font: 400 12px/16px var(--s2-font); cursor: pointer; }
/* the 16px mark 9px after the name and its label 6px after the mark (B03 / skeleton-dt: name x1187, mark box x1265, label
   x1288; LS-C6-V2): the button's 4px hover pad hangs 3px into the row's 8px gap */
.ls-ct1 .ls-lp { margin-left: -3px; }
.ls-lp:hover { background: var(--s2-raised); color: var(--s2-text); }
.ls-lp img, .ls-lp .ls-vm { width: 16px; height: 16px; flex: none; }
/* one line, and the identity is never the one cut off (LS-C3-03): the ticker never shrinks, the launchpad label gives way
   first (an ellipsis, down to the mark alone; the button's title names the launchpad), the project's name only after it.
   The shrink weights make the label take the whole cut while it has width left (100000 x its width against 1 x the name). */
.ls-ct1 b { flex: none; }
.ls-ct1 .ls-nm, .ls-ct1 b.ls-nm1 { flex: 0 1 auto; min-width: 0; }
.ls-ct1 b.ls-nm1 { overflow: hidden; text-overflow: ellipsis; } /* no ticker yet: the bold line is the name */
.ls-ct1 .ls-lp { flex: 0 100000 auto; min-width: 24px; overflow: hidden; }
.ls-lp > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-vm { display: grid; place-items: center; border-radius: 50%; background: var(--s2-raised); font: 500 10px/1 var(--s2-font); font-style: normal; color: var(--s2-secondary); }
.ls-st { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--s2-raised); font: 400 12px/18px var(--s2-font); color: var(--s2-secondary); }
.ls-ca { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; margin-left: -4px; border: 0; border-radius: 4px; background: none; color: var(--s2-secondary); font: 400 12px/16px var(--s2-font); cursor: pointer; }
.ls-ca:hover { background: var(--s2-raised); color: var(--s2-text); }
.ls-ca .i { width: 12px; height: 12px; color: var(--s2-muted); }

/* ---------------------------------------------------------------- title row (page head) */
.ls-head { display: flex; align-items: center; height: 32px; margin: 0 0 16px; white-space: nowrap; }
.ls-head h1 { margin: 0; font: 600 26px/32px var(--s2-font); letter-spacing: 0; color: var(--s2-text); }
.ls-stamp { position: relative; top: 2px; margin-left: 20px; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.ls-sp { flex: 1 1 auto; }
.ls-hb { height: 32px; padding: 0 8px; font: 500 13px/18px var(--s2-font); color: var(--s2-text); }
.ls-hb[data-mk-act="copycfg"] { width: 160px; }
.ls-hb[data-mk-act="prepare"] { width: 120px; }
.ls-hb + .ls-hb { margin-left: 8px; }

/* ---------------------------------------------------------------- form blocks */
.ls-form { display: flex; flex-direction: column; }
.ls-blk { margin: 0; }
.ls-blk + .ls-blk { margin-top: 16px; }
.ls-lab { display: flex; align-items: center; gap: 4px; height: 18px; margin: 0 0 8px; padding: 0; font: 500 13px/18px var(--s2-font); color: var(--s2-secondary); white-space: nowrap; letter-spacing: 0; }
.ls-lab i { font-style: normal; font-weight: 400; font-size: 12px; color: var(--s2-muted); }
.ls-lab i .num { font-weight: 500; } /* the range figure "(1-200)" at the figures' 500 (skeleton-dt .n; LS-C6-V2) */
/* a value a sniper mode changed before save: a 6px ink dot before its label */
.ls-lab.ch::before { content: ""; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--s2-text); flex: none; }
.ls-labr { display: flex; align-items: center; gap: 6px; height: 18px; margin: 0 0 8px; }
.ls-labr .ls-lab { margin: 0; }
.ls-line { display: block; min-height: 16px; margin: 8px 0 0; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); white-space: nowrap; }
.ls-line.s6 { margin-top: 6px; }
.ls-line .num { font-weight: 500; }
.ls-pos { color: var(--s2-positive); }
.ls-neg { color: var(--s2-negative); }
.ls-sec { color: var(--s2-secondary); }
.ls-act { display: inline-flex; align-items: center; gap: 2px; margin-left: 12px; padding: 0; border: 0; background: none; color: var(--s2-text); font: 500 12px/16px var(--s2-font); cursor: pointer; white-space: nowrap; }
.ls-act:hover { text-decoration: underline; text-underline-offset: 3px; }
.ls-act .ls-chev { width: 6px; height: 10px; margin-left: 6px; color: var(--s2-text); }

/* (?) help: 14px outline, no box */
.ls-q { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 -2px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--s2-muted); cursor: pointer; flex: none; }
.ls-q:hover { color: var(--s2-text); }
.ls-qi { width: 14px; height: 14px; display: block; }
.ls-qw { display: grid; place-items: center; }
.ls-line .ls-q, .ls-line .ls-act { vertical-align: top; margin-top: -1px; }
.ls-line .ls-q { margin-left: 6px; }

/* execution mode tiles: 3 x 56px, card tone (darker than the ground), 1px control edge, r6; selected = ink + line */
.ls-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ls-tile { position: relative; display: block; height: 56px; padding: 0; border: 1px solid var(--s2-control); border-radius: var(--s2-r-card); background: var(--s2-surface); color: var(--s2-secondary); text-align: left; cursor: pointer; font: inherit; }
.ls-tile:hover:not(:disabled) { border-color: var(--s2-control-hi); }
.ls-tile:focus-visible { outline: 1px solid var(--s2-text); outline-offset: 1px; }
.ls-tile .hl-gl { position: absolute; left: 14px; top: 19px; width: 16px; height: 16px; color: var(--s2-muted); }
.ls-tile b { position: absolute; left: 40px; top: 9px; font: 600 13px/20px var(--s2-font); color: var(--s2-secondary); white-space: nowrap; }
.ls-tile em { position: absolute; left: 40px; right: 10px; top: 29px; font: 400 12px/16px var(--s2-font); font-style: normal; color: var(--s2-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-tile.on b, .ls-tile.on .hl-gl { color: var(--s2-text); }
.ls-tile.on b::after { content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 1px; background: var(--s2-accent); }
.ls-tile:disabled { cursor: default; border-color: #2c2c30; }
.ls-tile:disabled b { color: var(--s2-muted); }

/* fields: 38px, card tone, 1px control edge, r6; value in the figure face, unit 6px after it */
.ls-flds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ls-flds.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ls-fw { position: relative; min-width: 0; }
.ls-fld { position: relative; display: flex; align-items: center; height: 38px; padding: 0 12px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-field); background: var(--s2-surface); cursor: text; }
.ls-fld:hover { border-color: var(--s2-control-hi); }
.ls-fld:focus-within { border-color: var(--s2-text); }
.ls-fld input { flex: 0 1 auto; field-sizing: content; min-width: 1ch; max-width: 100%; height: 36px; padding: 0; border: 0; outline: 0; background: none; color: var(--s2-text); font: 500 13px/18px var(--s2-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ls-inw { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.ls-fld input:disabled { color: var(--s2-secondary); -webkit-text-fill-color: var(--s2-secondary); cursor: default; }
.ls-fld.ro, .ls-fld:has(input:disabled) { cursor: default; }
/* a value out of range (holders buy % outside 1-60): the box takes the negative edge, the value its ink (input.bad below) */
.ls-fld.bad, .ls-fld.bad:hover, .ls-fld.bad:focus-within { border-color: var(--s2-negative); }
.ls-fld u { margin-left: 6px; text-decoration: none; font: 400 13px/18px var(--s2-font); color: var(--s2-secondary); white-space: nowrap; }
.ls-ro { font: 500 13px/18px var(--s2-mono); color: var(--s2-secondary); }
.ls-unit { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 0 4px; margin-right: -4px; height: 24px; border: 0; border-radius: 4px; background: none; color: var(--s2-secondary); font: 400 13px/18px var(--s2-font); cursor: pointer; white-space: nowrap; }
.ls-unit:hover { background: var(--s2-raised); color: var(--s2-text); }
.ls-unit .i { width: 12px; height: 12px; color: var(--s2-secondary); }
/* ▴▾ inside the right end of a count field */
.ls-stp { position: absolute; right: 12px; top: 50%; width: 8px; height: 15px; margin-top: -7.5px; }
.ls-stp svg { position: absolute; inset: 0; width: 8px; height: 15px; fill: var(--s2-secondary); pointer-events: none; }
.ls-stp button { position: absolute; left: -6px; width: 20px; height: 11px; padding: 0; border: 0; background: none; cursor: pointer; }
.ls-stp button:first-of-type { top: -3px; }
.ls-stp button:last-of-type { bottom: -3px; }
.ls-stp button:disabled { cursor: default; }
.ls-fld:hover .ls-stp svg { fill: var(--s2-text); }
/* quick values: one row under the field while its input is focused */
.ls-menu { position: absolute; left: -1px; top: calc(100% + 4px); z-index: 25; display: none; align-items: center; gap: 2px; padding: 3px; border: 1px solid #2e2e32; border-radius: var(--s2-r-card); background: var(--s2-surface); white-space: nowrap; }
.ls-fld:has(input:focus) .ls-menu { display: flex; }
.ls-mi { position: relative; display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border: 0; border-radius: 4px; background: none; color: var(--s2-secondary); font: 500 13px/18px var(--s2-mono); cursor: pointer; }
.ls-mi:hover { background: var(--s2-raised); color: var(--s2-text); }
.ls-mi.on { color: var(--s2-text); }
.ls-mi .s2-l { position: relative; }
.ls-mi.on .s2-l::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--s2-accent); }
/* the field's allowed range after its quick values (not a choice: meta ink, no hover, split by a 1px rule) */
.ls-mn { display: inline-flex; align-items: center; height: 26px; margin-left: 4px; padding: 0 8px 0 10px; border-left: 1px solid var(--s2-border); font: 400 12px/16px var(--s2-font); color: var(--s2-muted); cursor: default; }

/* segmented controls: 36px pill, as wide as their options */
.ls-form .ls-seg, .ls-layer .ls-seg { --s2-seg-h: 36px; }
.ls-seg button { padding: 0 14px; gap: 4px; }
.ls-seg button small { font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.ls-seg button + button { border-left-color: var(--s2-control); }
.ls-seg button:disabled { cursor: default; }
/* the form's three option rows at the skeleton's option widths, each label 14px in from its option's left edge
   (skeleton-dt.html .seg: preset 246 | 167 = 415, candles 84 | 82 | 89 | 89 | 78 = 424, sniper 47 | 190 | 183 = 422,
   border included; LS-C6-V2). Every label fits with 11px or more to spare; the selected label keeps its line. */
.ls-form .ls-seg button:is([data-ls-seg="setup"], [data-ls-seg="waves"], [data-ls-seg="snipe"]) { flex: none; justify-content: flex-start; padding: 0 0 0 14px; }
.ls-form .ls-seg button[data-ls-seg="setup"][data-v="quick"] { width: 246px; }
.ls-form .ls-seg button[data-ls-seg="setup"][data-v="custom"] { width: 167px; }
.ls-form .ls-seg button[data-ls-seg="waves"][data-v="together"] { width: 84px; }
.ls-form .ls-seg button[data-ls-seg="waves"][data-v="c1"] { width: 82px; }
.ls-form .ls-seg button[data-ls-seg="waves"]:is([data-v="c2"], [data-v="c3"]) { width: 89px; }
.ls-form .ls-seg button[data-ls-seg="waves"][data-v="custom"] { width: 78px; }
.ls-form .ls-seg button[data-ls-seg="snipe"][data-v="off"] { width: 47px; }
.ls-form .ls-seg button[data-ls-seg="snipe"][data-v="green"] { width: 190px; }
.ls-form .ls-seg button[data-ls-seg="snipe"][data-v="red"] { width: 183px; }

/* the one risk line: warning ink on a dark tint of itself, no border, 8px under the preset that causes it */
.ls-risk { display: flex; align-items: center; gap: 10px; height: 32px; margin: 8px 0 0; padding: 0 12px; border-radius: var(--s2-r-card); background: var(--s2-pill-warn-bg); color: var(--s2-warning); font: 400 13px/18px var(--s2-font); white-space: nowrap; }
.ls-risk .i { width: 14px; height: 14px; flex: none; color: var(--s2-warning); stroke-width: 1.6; }
.ls-cust { display: block; height: 32px; margin: 8px 0 0; font: 400 12px/32px var(--s2-font); color: var(--s2-muted); white-space: nowrap; }
.ls-cust .ls-act { vertical-align: baseline; }
.ls-cust .num { font-weight: 500; }

/* the wave row (1-3 candles) */
.ls-wave { margin-top: 16px; }

/* entry: a readback line, or (Organic) a control */
.ls-entry { display: flex; align-items: center; height: 20px; font: 400 13px/20px var(--s2-font); white-space: nowrap; }
.ls-entry .k { font-weight: 500; color: var(--s2-secondary); }
.ls-entry .v { margin-left: 12px; color: var(--s2-text); }
.ls-entry .ls-q { margin-left: 25px; }
.ls-erow { display: flex; align-items: center; gap: 12px; }
.ls-delay { width: 120px; height: 38px; }
.ls-pre { margin: 0 -4px 0 4px; font: 500 13px/18px var(--s2-font); color: var(--s2-secondary); }
/* the delay read back in time, beside its field (one block ≈ 0.4 s) */
.ls-eread { font: 400 12px/16px var(--s2-font); color: var(--s2-muted); white-space: nowrap; }
.ls-eread .num { font-weight: 500; }

/* the Advanced row: 40px between two rules, values printed, chevron at the right end */
.ls-adv { display: flex; align-items: center; width: 100%; height: 41px; padding: 0; border: 0; border-top: 1px solid var(--s2-border); border-bottom: 1px solid var(--s2-border); background: none; text-align: left; cursor: pointer; font: inherit; }
.ls-adv .k { width: 88px; flex: none; font: 500 13px/18px var(--s2-font); color: var(--s2-text); }
.ls-adv .v { flex: 1; min-width: 0; font: 400 12px/16px var(--s2-font); color: var(--s2-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-adv .v .num { font-weight: 500; }
.ls-adv > .ls-chev { width: 6px; height: 10px; margin: 0 1px 0 12px; color: var(--s2-secondary); flex: none; }
.ls-adv:hover .k { text-decoration: underline; text-underline-offset: 3px; }
.ls-adv:hover > .ls-chev { color: var(--s2-text); }
.ls-adv:focus-visible { outline: 1px solid var(--s2-text); outline-offset: -1px; }

/* ---------------------------------------------------------------- right rail: the plan read back */
.ls-rail { display: flex; flex-direction: column; }
.ls-rh { display: flex; align-items: center; height: 24px; }
.ls-rh .hl-gl { width: 16px; height: 16px; margin-right: 8px; color: var(--s2-text); flex: none; }
.ls-rh h3 { margin: 0; font: 600 16px/24px var(--s2-font); color: var(--s2-text); letter-spacing: 0; }
.ls-rh .ls-q { margin-left: auto; margin-right: 0; }
.ls-rd { max-width: 330px; margin: 8px 0 0; font: 400 13px/20px var(--s2-font); color: var(--s2-secondary); white-space: normal; }
.ls-gc { display: grid; grid-template-columns: minmax(170px, max-content) minmax(0, 1fr); margin-top: 14px; }
.ls-gc > div:first-child { padding-right: 12px; }
.ls-gc p { margin: 0; font: 400 12px/20px var(--s2-font); color: var(--s2-secondary); white-space: nowrap; }
.ls-gc p > i { display: inline-block; width: 14px; font-style: normal; color: var(--s2-muted); }
.ls-gc .num { font-weight: 500; }
.ls-rsep { flex: none; height: 1px; margin: 14px 0 15px; background: var(--s2-border); }
.ls-rsep.b { margin-top: 16px; }
.ls-bt-h { display: flex; align-items: center; height: 20px; }
.ls-bt-h b { flex: 1; font: 600 13px/20px var(--s2-font); color: var(--s2-text); }
.ls-bt-h span { font: 400 12px/16px var(--s2-font); color: var(--s2-muted); text-align: right; }
.ls-bt-h .c { width: 70px; }
.ls-bt-h .p { width: 96px; margin-left: 1px; }
.ls-bt-r { margin-top: 4px; }
.ls-tr { display: flex; align-items: center; height: 28px; border-top: 1px solid var(--s2-rule); font: 400 13px/18px var(--s2-font); white-space: nowrap; }
.ls-tr .nm { flex: 1; min-width: 0; color: var(--s2-secondary); }
.ls-tr .c { width: 64px; text-align: right; color: var(--s2-secondary); font-weight: 500; }
.ls-tr .p { width: 96px; text-align: right; color: var(--s2-text); font-weight: 500; }
.ls-tr .p.na { color: var(--s2-muted); font-weight: 400; }
.ls-tr.tot { border-top-color: var(--s2-control); }
.ls-tr.tot .nm, .ls-tr.tot .c { color: var(--s2-text); }
.ls-tr.tot .nm { font-weight: 500; } /* "Target supply" 13/500 (skeleton-dt .tr.tot .nm.w5; LS-C6-V2) */
.ls-tr .v { margin-left: 12px; color: var(--s2-text); text-align: right; overflow: hidden; text-overflow: ellipsis; }
.ls-tr .v .num { font-weight: 500; }
.ls-tr.last { border-bottom: 1px solid var(--s2-rule); height: 29px; }
/* Sell into buys (LS-C6-01, only while it is on): the after-launch block's 4th row, two lines on a 44px pitch. Name and
   state on the first line, where the rows above put theirs (18px line 4.5px under the rule); the rule it runs (% of every
   outside buy, minimum buy, wallets) in 12px meta on the second, right-aligned across the whole row */
.ls-tr.ls-sib, .ls-tr.ls-sib.last { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 18px 16px; row-gap: 2px; align-content: start; height: 45px; padding-top: 4.5px; }
.ls-tr.ls-sib .nm { grid-column: 1; }
.ls-tr.ls-sib .v { grid-column: 2; }
.ls-sib2 { grid-column: 1 / -1; min-width: 0; text-align: right; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); overflow: hidden; text-overflow: ellipsis; }
.ls-sib2 .num { font-weight: 500; }
.ls-bar { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--s2-raised); overflow: hidden; }
.ls-bar > i { display: block; height: 100%; width: 0; border-radius: 2px; background: #f2f2f3; }
.ls-bm { display: flex; align-items: center; gap: 6px; height: 28px; margin-top: 16px; font: 400 13px/18px var(--s2-font); color: var(--s2-secondary); }
/* the reading sits on the top 20px of its 28px slot (skeleton-dt: label line y426-446, (?) and dash centred on it), the
   slot and the rule under it unchanged (20 + 8): LS-C6-V2 */
.ls-rail .ls-bm { height: 20px; margin-bottom: 8px; }
.ls-dash { margin-left: auto; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.ls-al-h { display: flex; align-items: center; height: 20px; margin-bottom: 4px; }
.ls-al-h b { flex: 1; font: 600 13px/20px var(--s2-font); color: var(--s2-text); }
.ls-al-h .ls-act { margin: 0; }
.ls-pd sinner-paydex-status, .ls-pd .pd-st { display: inline; padding: 0; border: 0; border-radius: 0; background: none; font: 400 13px/18px var(--s2-font); color: var(--s2-secondary); }
.ls-pd .pd-st.err { color: var(--s2-negative); }
.ls-pd .pd-st.ok { color: var(--s2-positive); }
.ls-pd .pd-st.warn { color: var(--s2-warning); }

/* ---------------------------------------------------------------- rail foot: the answer figure + the one primary */
.ls-foot { padding-top: 15px; }
.ls-fe-h { display: flex; align-items: center; justify-content: space-between; height: 16px; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.ls-fe-h .ls-act { margin: 0; }
.ls-fe-v { display: flex; align-items: baseline; height: 36px; margin-top: 4px; }
.ls-fe-v b { font: 500 28px/36px var(--s2-mono); color: var(--s2-text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ls-fe-v small { margin-left: 6px; font: 400 13px/20px var(--s2-font); color: var(--s2-muted); }
/* no estimate (the plan is beyond the bonding curve): the missing dash is small and grey, never figure-size (LS-C5-03);
   the row keeps its 36px, so nothing below moves */
.ls-fe-v .ls-fe-na { font: 400 13px/36px var(--s2-font); color: var(--s2-muted); }
.ls-fe-s { margin: 4px 0 0; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); white-space: nowrap; }
.ls-fe-s .num { font-weight: 500; }
.ls-fe-b { display: flex; gap: 8px; margin-top: 12px; }
.ls-fe-b .s2-btn { height: 36px; }
.ls-seqb { width: 120px; flex: none; }
.ls-prim { flex: 1; min-width: 0; font-size: 13px; }
/* the one primary's label is black on the inverted white fill (B16 / skeleton-dt .pri #000; LS-C6-V2), the layer's Save too */
.ls-fe-b .s2-btn.primary:not(:disabled):not(.ghost), .ls-l-f .s2-btn.primary:not(:disabled) { color: #000; }
/* a disabled primary on this screen and in the modals its title row opens (Save plan & fund beyond the bonding curve or
   while launching, the layer's Save, Copy settings / Start prepare until a source is picked): the raised fill, so the
   muted label keeps 4.8:1 (#8a8c92 on #212023; the foundation's #2c2c30 gives 4.1:1), as Funding's foot and modals do
   (s2-funding.css .fd-pri:disabled, .modal.fd-m; LS-C6-02) */
.ls-fe-b .s2-btn.primary:disabled, .ls-l-f .s2-btn.primary:disabled, .modal.ccf-modal .btn.primary:disabled, .modal.ccf-modal .s2-btn.primary:disabled { background: var(--s2-raised); border-color: var(--s2-raised); color: var(--s2-muted); }
/* its icon in the label's muted ink, not the enabled primary's near-black (#0b0b0c on #212023 read 1.2:1) */
.modal.ccf-modal .btn.primary:disabled .i, .modal.ccf-modal .s2-btn.primary:disabled .i { color: var(--s2-muted); }
.ls-fe-n { margin: 8px 0 0; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- popovers: help, cost breakdown, unit */
.s2-pop.ls-help { width: 300px; padding: 12px 14px; white-space: normal; }
.ls-help b { display: block; margin-bottom: 6px; font: 600 13px/18px var(--s2-font); color: var(--s2-text); }
.ls-help p { margin: 0 0 6px; font: 400 12px/18px var(--s2-font); color: var(--s2-secondary); }
.ls-help p:last-child { margin-bottom: 0; }
.ls-help em { font-style: normal; font-weight: 500; color: var(--s2-text); }
.ls-bd { position: relative; }
.ls-bd > summary { list-style: none; cursor: pointer; }
.ls-bd > summary::-webkit-details-marker { display: none; }
.ls-bd[open] > summary .ls-chev { transform: rotate(-90deg); }
.ls-bd-p { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; width: 300px; padding: 12px 14px; border: 1px solid #2e2e32; border-radius: var(--s2-r-card); background: var(--s2-surface); color: var(--s2-text); white-space: normal; text-align: left; }
.ls-bd-t { display: block; margin-bottom: 8px; font: 600 13px/18px var(--s2-font); color: var(--s2-text); }
.ls-bd dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font: 400 13px/18px var(--s2-font); }
.ls-bd dt { color: var(--s2-secondary); }
.ls-bd dd { margin: 0; text-align: right; color: var(--s2-text); font-weight: 500; }
.ls-bd dt.t, .ls-bd dd.t { padding-top: 6px; border-top: 1px solid var(--s2-border); color: var(--s2-text); }
.ls-bd p { margin: 8px 0 0; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.ls-bd-p .ls-act { margin: 10px 0 0; }
.s2-pop.ls-um { min-width: 140px; }

/* ---------------------------------------------------------------- the Advanced settings layer (over the form column) */
.ls-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.6); }
.ls-layer { position: fixed; z-index: 81; display: flex; flex-direction: column; min-width: 560px; border: 0; border-radius: var(--s2-r-frame); background: var(--s2-surface); color: var(--s2-text); box-shadow: var(--s2-float-shadow); }
.ls-l-h { display: flex; align-items: center; gap: 10px; flex: none; height: 56px; padding: 0 12px 0 20px; }
.ls-l-h .ls-av { width: 24px; height: 24px; margin: 0; font-size: 12px; }
.ls-l-h h2 { flex: 1; margin: 0; font: 600 16px/24px var(--s2-font); color: var(--s2-text); letter-spacing: 0; }
.ls-l-h .s2-x { position: static; }
.ls-l-tabs { flex: none; margin: 0 20px; }
.ls-l-tabs .s2-tab { font-size: 13px; }
.ls-l-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px; }
.ls-l-f { display: flex; align-items: center; gap: 8px; flex: none; height: 68px; padding: 0 20px; border-top: 1px solid var(--s2-border); }
.ls-l-f .ls-l-e { display: flex; align-items: baseline; gap: 6px; flex: 1 1 auto; min-width: 0; margin-right: auto; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); white-space: nowrap; }
.ls-l-e b { font: 500 16px/22px var(--s2-mono); color: var(--s2-text); }
.ls-l-e em { min-width: 0; margin-left: 10px; overflow: hidden; text-overflow: ellipsis; font-style: normal; color: var(--s2-muted); }
.ls-l-f .s2-btn { height: 36px; min-width: 96px; }
.ls-ls + .ls-ls { margin-top: 24px; }
.ls-layer .ls-tiles.ls-spd .ls-tile { height: 48px; }
/* Speed options (spec L1): one line 'Standard · tip 0.001 SOL' centred in the 48px tile (46px padding box: line 13-33);
   the name is the label, so its 1px line sits on the tile's bottom border row (33 + 14 = 47 = the border), as on the form tiles */
.ls-tile.s .ls-sp { position: absolute; left: 14px; right: 10px; top: 13px; font: 400 12px/20px var(--s2-font); color: var(--s2-muted); white-space: nowrap; }
.ls-tile.s .ls-sp b { position: relative; left: auto; top: auto; display: inline-block; }
.ls-tile.s .ls-sp em { position: static; font: 400 12px/20px var(--s2-font); font-style: normal; color: var(--s2-muted); overflow: visible; }
.ls-tile.s.on b::after { bottom: -14px; }
.ls-layer .ls-flds { row-gap: 20px; }
.ls-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ls-fld.s { height: 36px; padding: 0 10px; }
.ls-fld.s u { margin-left: 4px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ls-wmax.ls-fld.s { width: 72px; }
.ls-layer .ls-line { white-space: normal; }
.ls-sizes { margin-top: 20px; }
.ls-wmax { display: inline-flex; margin-left: 8px; vertical-align: middle; }
.ls-swr > div { display: flex; align-items: center; gap: 10px; height: 36px; }
.ls-swr b { font: 500 13px/18px var(--s2-font); color: var(--s2-text); }
.ls-sw, .lc-sw { position: relative; width: 28px; height: 16px; padding: 0; border: 1px solid var(--s2-control); border-radius: 999px; background: transparent; cursor: pointer; flex: none; }
.ls-sw > i, .lc-sw > i { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--s2-muted); transition: transform 0.12s; }
.ls-sw:hover:not(:disabled), .lc-sw:hover:not(:disabled) { border-color: var(--s2-control-hi); }
.ls-sw.on, .lc-sw.on { border-color: var(--s2-control-hi); background: transparent; }
.ls-sw.on > i { transform: translateX(12px); background: var(--s2-text); }
.ls-sw:disabled, .lc-sw:disabled { cursor: default; opacity: 1; }
.lc-sw { width: 32px; height: 18px; }
.lc-sw > i { width: 12px; height: 12px; }
.lc-sw.on > i { transform: translateX(14px); background: var(--s2-text); }
.ls-swl { position: relative; }
.ls-swl.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--s2-accent); }
.ls-eng { width: 100%; border-collapse: collapse; font: 400 13px/18px var(--s2-font); }
.ls-eng th { height: 32px; padding: 0 8px; border-bottom: 1px solid var(--s2-border); font: 500 12px/16px var(--s2-font); color: var(--s2-muted); text-align: left; background: none; }
.ls-eng td { height: 36px; padding: 0 8px; border-bottom: 1px solid var(--s2-rule); color: var(--s2-secondary); white-space: nowrap; }
.ls-eng th:first-child, .ls-eng td:first-child { padding-left: 0; }
.ls-eng th:last-child, .ls-eng td:last-child { padding-right: 0; }
.ls-eng .r { text-align: right; }
.ls-eng td.num { color: var(--s2-text); font-weight: 500; }
.ls-eng tr.off td { color: var(--s2-muted); }
.ls-eng tr.tot td { color: var(--s2-text); border-top: 1px solid var(--s2-control); }
.ls-eng td.ls-pos { color: var(--s2-positive); }
.ls-eng .ls-more { color: var(--s2-muted); }
.ls-eng tbody tr:hover { background: none; box-shadow: none; } /* taste-skill-ignore: resets the legacy .tbl row hover (no shadow is drawn) */
/* the 24-unit glyphs at 16px read as the mock's 1.5px outline icons */
.ls-tile .hl-gl, .ls-rh .hl-gl { stroke-width: 2.25; }

/* ---------------------------------------------------------------- the layer's custom tabs (Block-0 buys · Wash stages · Post-launch)
   One section per tab: a 32px header (label 13/600 + its 12px summary, the 32x18 switch at the right end), 36px fields with
   labels above, then flat rows on rules (40px table rows, 40px stage rows, 36px seller / buyer lines): no box inside a box. */
.lc-h { display: flex; align-items: center; gap: 12px; height: 32px; margin: 0 0 12px; }
.lc-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.lc-t b { font: 600 13px/18px var(--s2-font); color: var(--s2-text); }
.lc-sub { min-width: 0; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); overflow: hidden; text-overflow: ellipsis; }
.lc-sub .num { font-weight: 500; color: var(--s2-secondary); }
.lc-off { margin: -4px 0 16px; font: 400 12px/16px var(--s2-font); color: var(--s2-muted); white-space: normal; }
.lc-off .ls-act { margin-left: 8px; vertical-align: baseline; }
.lc-err { margin: -4px 0 16px; font: 400 12px/16px var(--s2-font); color: var(--s2-secondary); white-space: normal; }
.lc-err .ls-neg { margin-right: 8px; font-weight: 500; }
.ls-flds.lc-f { display: flex; flex-wrap: wrap; gap: 16px 12px; margin: 0 0 20px; }
.lc-f .ls-fw { width: 150px; }
.lc-f .ls-fw:last-child:has(.lc-pr) { width: auto; }
.ls-fld.xs { height: 32px; padding: 0 8px; }
.ls-fld.xs input { height: 30px; }
.ls-fld.xs u { margin-left: 4px; font-size: 12px; }
.lc-pr { display: flex; align-items: center; gap: 8px; height: 36px; }
.ls-layer .lc-pr .ls-seg { --s2-seg-h: 32px; }
.lc-mi { width: 128px; }
/* tables: 40px rows on rules, 12px headers, numbers right in the figure face; a checked row keeps the row (no fill) */
.lc-tbl { width: 100%; table-layout: fixed; border-collapse: collapse; font: 400 13px/18px var(--s2-font); }
.lc-tbl th { height: 36px; padding: 0 8px; border-bottom: 1px solid var(--s2-border); font: 500 12px/16px var(--s2-font); color: var(--s2-muted); text-align: left; white-space: nowrap; background: none; }
.lc-tbl td { height: 40px; padding: 0 8px; border-bottom: 1px solid var(--s2-rule); color: var(--s2-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-tbl .r { text-align: right; }
.lc-tbl td.num { color: var(--s2-text); font-weight: 500; }
.lc-tbl th:last-child, .lc-tbl td:last-child { padding-right: 0; }
.lc-tbl tfoot td { height: 36px; border-top: 1px solid var(--s2-control); border-bottom: 0; color: var(--s2-text); font-weight: 500; }
.lc-tbl .lc-cbc { width: 28px; padding: 0; }
.lc-tbl .lc-w { color: var(--s2-text); }
.lc-tbl .lc-m, .lc-tbl td.lc-m { color: var(--s2-muted); font-weight: 400; }
/* fixed columns (a colgroup, so the bulk bar's one wide head cell never moves them) */
.lc-tbl col.c-cb { width: 28px; } .lc-tbl col.c-bal { width: 96px; } .lc-tbl col.c-buy { width: 112px; }
.lc-tbl col.c-exp { width: 96px; } .lc-tbl col.c-pct { width: 80px; } .lc-tbl col.c-b0 { width: 96px; } .lc-tbl col.c-gap { width: 208px; } .lc-tbl col.c-tt { width: 160px; }
.lc-tbl tr.lc-selr th { padding-left: 0; }
.lc-cb { appearance: none; display: grid; place-items: center; flex: none; width: 14px; height: 14px; margin: 0; border: 1px solid var(--s2-control); border-radius: 3px; background: transparent; cursor: pointer; vertical-align: middle; }
.lc-cb:hover:not(:disabled) { border-color: var(--s2-control-hi); }
.lc-cb:checked, .lc-cb:indeterminate { border-color: var(--s2-text); background: var(--s2-text); }
.lc-cb:indeterminate::after { content: ""; width: 7px; height: 1.5px; background: #0b0b0c; }
.lc-cb:checked::after { content: ""; width: 7px; height: 4px; margin-top: -2px; border-left: 1.5px solid #0b0b0c; border-bottom: 1.5px solid #0b0b0c; transform: rotate(-45deg); }
.lc-cb:disabled { cursor: default; }
.lc-buy { display: inline-flex; width: 96px; vertical-align: middle; }
.lc-buy input { width: 100%; text-align: right; }
.lc-buy input::placeholder { color: var(--s2-muted); }
.ls-fld input.bad { color: var(--s2-negative); -webkit-text-fill-color: var(--s2-negative); }
.lc-bulk { display: flex; align-items: center; gap: 8px; height: 36px; font: 400 13px/18px var(--s2-font); color: var(--s2-secondary); }
.lc-bn { margin-right: 4px; color: var(--s2-text); }
.lc-bn b { font-weight: 500; }
.lc-bl2 { color: var(--s2-muted); font-size: 12px; }
.lc-bulk .ls-fld.xs { width: 120px; height: 28px; }
.lc-bulk .ls-fld.xs input { height: 26px; width: 100%; text-align: right; }
.lc-bulk .s2-btn.sm { height: 28px; }
.lc-gap { font-size: 12px; }
.lc-tbl tr.lc-empty td { height: 40px; color: var(--s2-muted); font-size: 12px; white-space: normal; }
.lc-tech { margin-top: 16px; }
.lc-tech > summary { display: inline-flex; align-items: center; gap: 2px; list-style: none; font: 500 12px/16px var(--s2-font); color: var(--s2-text); cursor: pointer; }
.lc-tech > summary::-webkit-details-marker { display: none; }
.lc-tech > summary .ls-chev { width: 6px; height: 10px; margin-left: 6px; transition: transform 0.12s; }
.lc-tech[open] > summary .ls-chev { transform: rotate(90deg); }
.lc-tech > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.lc-tt { margin-top: 8px; }
.lc-tt td { height: 32px; }
.lc-sim { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.lc-sim .ls-line { margin: 0; white-space: normal; }
.lc-sim .s2-btn { flex: none; }
/* wash stages: one 40px row per stage on a rule, the stage's seller and buyer lines under it (36px), dashed slots for what is missing */
.lc-sts { border-top: 1px solid var(--s2-rule); }
.lc-st { border-bottom: 1px solid var(--s2-rule); }
.lc-sr { display: flex; align-items: center; gap: 6px; height: 40px; font: 400 13px/18px var(--s2-font); color: var(--s2-secondary); white-space: nowrap; }
.lc-sr b { font-weight: 600; color: var(--s2-text); }
.lc-dt { color: var(--s2-muted); }
.lc-tg { display: grid; place-items: center; width: 20px; height: 20px; margin-left: -4px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--s2-secondary); cursor: pointer; flex: none; }
.lc-tg:hover { background: var(--s2-raised); color: var(--s2-text); }
.lc-tg .ls-chev { width: 6px; height: 10px; transition: transform 0.12s; }
.lc-tg[aria-expanded="true"] .ls-chev { transform: rotate(90deg); }
.lc-dl { width: 48px; height: 28px; padding: 0 6px; }
.lc-dl input { height: 26px; width: 100%; text-align: center; }
.lc-ss { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--s2-muted); }
.lc-ss .num { color: var(--s2-secondary); font-weight: 500; }
.lc-rm, .lc-x { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--s2-muted); cursor: pointer; flex: none; }
.lc-rm:hover:not(:disabled), .lc-x:hover:not(:disabled) { background: var(--s2-raised); color: var(--s2-text); }
.lc-rm .i, .lc-x .i { width: 14px; height: 14px; }
.lc-rm:disabled, .lc-x:disabled { cursor: default; }
.lc-sb { padding: 0 0 12px 22px; }
.lc-sl { display: flex; align-items: center; gap: 10px; height: 36px; }
.lc-sl .k { font: 400 12px/16px var(--s2-font); color: var(--s2-muted); }
.lc-pick { display: inline-flex; align-items: center; gap: 8px; max-width: 520px; height: 28px; padding: 0 10px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-field); background: transparent; color: var(--s2-text); font: 400 13px/18px var(--s2-font); cursor: pointer; white-space: nowrap; overflow: hidden; }
.lc-pick:hover:not(:disabled) { border-color: var(--s2-control-hi); }
.lc-pick > span { overflow: hidden; text-overflow: ellipsis; }
.lc-pick em { font-style: normal; font-size: 12px; color: var(--s2-muted); }
.lc-pick .i { width: 12px; height: 12px; color: var(--s2-secondary); flex: none; }
.lc-g { margin-top: 4px; }
.lc-gl, .lc-bl { display: flex; align-items: center; gap: 6px; min-width: 0; height: 36px; font: 400 13px/18px var(--s2-font); color: var(--s2-secondary); white-space: nowrap; }
.lc-gl b { font-weight: 500; color: var(--s2-text); }
.lc-bl { gap: 5px; padding-left: 12px; }
.lc-ar { width: 12px; color: var(--s2-muted); text-align: center; flex: none; }
.lc-r { margin-left: auto; color: var(--s2-muted); }
.lc-r .num { color: var(--s2-text); font-weight: 500; }
.lc-bl .lc-r { margin-left: 4px; }
.lc-bl .lc-need { margin-left: auto; font-size: 12px; }
.lc-bl .lc-x { margin-left: auto; }
.lc-bl .lc-need + .lc-x { margin-left: 4px; }
.lc-pc { width: 64px; }
.lc-pc.w { width: 84px; }
.lc-pc input { width: 100%; text-align: right; }
.lc-who { height: 32px; width: 136px; flex: none; padding: 0 26px 0 10px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-field); background: var(--s2-surface) 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 10px center / 10px 6px; color: var(--s2-text); font: 400 13px/18px var(--s2-font); appearance: none; cursor: pointer; }
.lc-who:hover:not(:disabled) { border-color: var(--s2-control-hi); }
.lc-who:focus { outline: none; border-color: var(--s2-text); }
.lc-who option { background: var(--s2-surface); color: var(--s2-text); }
.lc-slot { display: flex; align-items: center; width: 100%; height: 36px; margin: 4px 0 0; padding: 0 12px; border: 1px dashed var(--s2-control); border-radius: var(--s2-r-field); background: none; color: var(--s2-secondary); font: 400 13px/18px var(--s2-font); text-align: left; cursor: pointer; }
.lc-slot:hover:not(:disabled) { border-color: var(--s2-control-hi); color: var(--s2-text); }
.lc-slot:disabled { cursor: default; color: var(--s2-muted); }
.lc-slot.s { width: calc(100% - 12px); margin-left: 12px; }
.lc-add { margin-top: 12px; }
.lc-add .i { width: 14px; height: 14px; }
.ls-line.lc-note { margin-top: 12px; }
/* the stage's seller picker floats above the layer */
.s2-pop.lc-pop { z-index: 90; min-width: 240px; max-height: 320px; overflow-y: auto; }
.lc-pop .s2-mi { font-size: 13px; }
.lc-mi-s { margin-left: auto; font-size: 12px; color: var(--s2-muted); }
/* a field the tab's switch turned off: the frame one step quieter (disabled says why in the line under the header) */
.lc .ls-fld:has(input:disabled) { border-color: #2c2c30; cursor: default; }
/* quick values whose label carries words (late entry "≈ 6 s · 15 blocks"): words in the text face, figures in the mono */
.ls-mi.t { font: 400 13px/18px var(--s2-font); }
.ls-mi.t .num { font-weight: 500; }
