/* Style 2 · funding screen (SCR-funding). Owned by the funding 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-funding/spec.json + the data-terminal v2 mock, mapped onto the shell frame: 252 rail + 32 + 1076
   content + 32 + 48 rail column = 1440; top bar 48): identity band 72 | funder band 118 (416 + 3 x (32 + 188) = 1076) |
   table toolbar 40 | wallet table (header 35, rows 45, foot 51, 1px frame) | 8 | routing row 28. Table columns are laid
   out from the frame's right edge exactly as the mock (supply ends 560 from the right, has / needs 240, the track
   160 x 3, the dot 228, Fund 60 x 24 at 48, the menu 24 x 24 at 12); the 16px the shell's rail gives back goes to the
   identity column. One move: a selection is the 1px accent line under its label; figures stay white / grey. */

/* ---------------------------------------------------------------- frame for this tab */
.s2-hl[data-tab="funding"] { --s2-right-w: 48px; }
/* the step bar keeps the column Settings and Token centre it on (their rail is 400px): folding the rail to the 48px column
   must not move the steps (centre x646 on every step instead of jumping 176px to x822 on Funding) */
.s2-hl[data-tab="funding"] .s2-top { grid-template-columns: minmax(0, 1fr) 400px; }
.s2-hl[data-tab="funding"] .s2-scroll { padding: 0 var(--s2-work-pad) 24px; }
.s2-hl[data-tab="funding"] .hl-content.t-funding { padding: 0; min-height: 0; }
.s2-hl[data-tab="funding"] .hl-grid { position: relative; }
/* rail column: Plan + Launch sequence (icons, tooltips, accessible names); the plan overlay is the shell's readback */
.s2-hl[data-tab="funding"]:not(.fd-plan-open) .s2-rb.hl-plan-in { padding: 10px 0 0; overflow: visible; }
.fd-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fd-rail-b { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--s2-r-card); background: none; color: var(--s2-muted); cursor: pointer; }
.fd-rail-b:hover { background: var(--s2-raised); color: var(--s2-text); }
.fd-rail-b .i { width: 16px; height: 16px; }
.s2-hl.fd-plan-open[data-tab="funding"] .hl-plan { position: absolute; top: 0; right: 0; bottom: 0; width: 400px; z-index: 35; background: var(--s2-ground); border-left: 1px solid var(--s2-border); }
/* the overlay hosts the shell's readback without repeating what this page already answers (spec "moved": the rail banners
   are deleted and readiness derives from the rows; "4 wallets need funding · Still to fund" is the band's lead + finding;
   the funder's USDC line is the funder chip). Warnings and errors (funder short, infeasible allocation) stay. The foot is
   ruled so the readback scrolls under a visible edge, never under the Close button. */
.s2-hl.fd-plan-open[data-tab="funding"] .hl-plan .s2-rb-sep:has(+ .s2-fund), .s2-hl.fd-plan-open[data-tab="funding"] .hl-plan .s2-fund,
.s2-hl.fd-plan-open[data-tab="funding"] .hl-plan .hl-total-sub, .s2-hl.fd-plan-open[data-tab="funding"] .hl-plan .hl-banner.info,
.s2-hl.fd-plan-open[data-tab="funding"] .hl-plan .hl-banner.ok { display: none; }
.s2-hl.fd-plan-open[data-tab="funding"] .hl-plan .s2-rb-f.hl-plan-f { padding: 8px var(--s2-right-pad) 8px; border-top: 1px solid var(--s2-border); }
/* the readback fits the overlay in one view (771px under the top bar, above the 49px foot): 20 top, the two rules 8 / 11,
   the four gauges 75 tall (8 + label 16 + 4 + value 22 + 2 + note 16 + 7), the two disclosures 8 apart */
.s2-hl.fd-plan-open[data-tab="funding"] .hl-plan .s2-rb.hl-plan-in { padding-top: 20px; }
.s2-hl.fd-plan-open[data-tab="funding"] .hl-plan .s2-rb-sep { margin: 8px 0 11px; }
.s2-hl.fd-plan-open[data-tab="funding"] .hl-plan .s2-meter + .s2-rb-sep { margin-top: 14px; }
.s2-hl.fd-plan-open[data-tab="funding"] .hl-plan .s2-meter > div { min-height: 0; padding: 8px 10px 7px; }
.s2-hl.fd-plan-open[data-tab="funding"] .hl-plan .s2-rb .hl-more { margin-top: 8px; }
.fd-rail-x { height: 32px; }

/* ---------------------------------------------------------------- shared bits */
.fd { color: var(--s2-text); }
.fd .num { font-family: var(--s2-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.fd-sep { display: inline-block; flex: none; width: 3px; height: 3px; margin: 0 2px; border-radius: 50%; background: var(--s2-muted); }
.fd-dash { color: var(--s2-muted); font-size: 12px; }
.fd-hn .fd-unread { font-size: 12px; cursor: help; }
.fd-ib { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--s2-secondary); cursor: pointer; }
.fd-ib:hover:not(:disabled) { color: var(--s2-text); background: var(--s2-raised); }
.fd-ib .i { width: 14px; height: 14px; }
.fd-copy .i { width: 12px; height: 12px; }
.fd-copy.copied { color: var(--s2-positive); }
.fd-tbtn { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0; border: 0; background: none; color: var(--s2-text); font: 500 12px/16px var(--s2-font); cursor: pointer; white-space: nowrap; }
.fd-tbtn:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.fd-tbtn:disabled { color: var(--s2-muted); cursor: default; }
.fd-tbtn.on { position: relative; }
.fd-tbtn.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--s2-accent); }
.fd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 13px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-control); background: transparent; color: var(--s2-text); font: 500 12px/16px var(--s2-font); cursor: pointer; white-space: nowrap; }
.fd-btn:hover:not(:disabled) { border-color: var(--s2-control-hi); }
.fd-btn:disabled { border-color: var(--s2-border); color: var(--s2-muted); cursor: default; }
.fd-btn.warn { color: var(--s2-text); }
.fd-btn .i { width: 14px; height: 14px; }
.fd-why { font-size: 12px; line-height: 16px; color: var(--s2-muted); white-space: nowrap; }
.fd-warn { font-size: 12px; color: var(--s2-warning); white-space: nowrap; }
.fd-err { color: var(--s2-negative); }
.fd-g { width: 14px; height: 14px; color: var(--s2-secondary); }

/* ---------------------------------------------------------------- identity band (72): the shell's identity row restyled
   line 1: $TICKER h1 · name + pencil · line 2: venue · address + status chip | rule | lead + finding | save stamp */
.s2-hl[data-tab="funding"] #s2-id { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; row-gap: 4px; height: auto; min-height: 72px; margin: 0 calc(-1 * var(--s2-work-pad)); padding: 11px calc(100% + var(--s2-work-pad) - 424px) 7px calc(var(--s2-work-pad) + 48px); border-bottom: 1px solid var(--s2-border); white-space: nowrap; overflow: visible; }
.s2-hl[data-tab="funding"] #s2-id > .s2-id-av { position: absolute; left: var(--s2-work-pad); top: 17px; width: 36px; height: 36px; background: var(--s2-raised); color: var(--s2-text); font: 600 13px/18px var(--s2-font); }
.s2-hl[data-tab="funding"] #s2-id > h1 { order: 1; margin: 0; font: 600 20px/24px var(--s2-font); letter-spacing: 0; color: var(--s2-text); }
.s2-hl[data-tab="funding"] #s2-id > .s2-id-n { order: 2; margin: 0; font: 600 20px/24px var(--s2-font); color: var(--s2-text); }
.s2-hl[data-tab="funding"] #s2-id > .s2-id-n::before { content: "\00a0·\00a0"; }
.s2-hl[data-tab="funding"] #s2-id > .fd-pen { order: 3; margin-left: 10px; }
.s2-hl[data-tab="funding"] #s2-id > .fd-br { order: 4; flex: 0 0 100%; height: 0; margin-top: -4px; }
.s2-hl[data-tab="funding"] #s2-id > .s2-lw, .s2-hl[data-tab="funding"] #s2-id > .s2-id-v { order: 5; }
.s2-hl[data-tab="funding"] #s2-id .s2-id-v { height: 20px; margin: 0 0 0 -4px; padding: 0 4px; gap: 6px; font: 400 13px/18px var(--s2-font); color: var(--s2-muted); }
.s2-hl[data-tab="funding"] #s2-id .s2-id-v:hover { color: var(--s2-text); }
.s2-hl[data-tab="funding"] #s2-id .s2-id-v img, .s2-hl[data-tab="funding"] #s2-id .s2-id-v .s2-vm { filter: grayscale(1); opacity: 0.85; }
/* line 2 never wraps: the address cell has a 0 flex basis and grows to its own width, so the status chip stays on line 2
   whatever the launchpad's name; a cell that still cannot fit (a completed launch's pill + Relaunch) opens a third line
   and the band grows with it (min-height) instead of crossing its rule */
.s2-hl[data-tab="funding"] #s2-id > .fd-id-mint { order: 6; display: inline-flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; max-width: max-content; height: 20px; margin-left: 2px; overflow: clip; overflow-clip-margin: 4px; font-size: 13px; line-height: 18px; color: var(--s2-muted); }
.s2-hl[data-tab="funding"] #s2-id > .fd-id-mint > * { flex: none; }
.s2-hl[data-tab="funding"] #s2-id > .fd-id-mint a { font-size: 12px; color: var(--s2-secondary); }
.s2-hl[data-tab="funding"] #s2-id > .fd-id-mint a:hover { color: var(--s2-text); }
.s2-hl[data-tab="funding"] #s2-id > .s2-id-st { order: 7; flex: none; display: inline-flex; align-items: center; height: 20px; margin-left: 10px; padding: 0 7px; border-radius: 999px; background: var(--s2-pill-neu-bg); color: var(--s2-pill-neu-ink); font: 500 12px/16px var(--s2-font); }
.s2-hl[data-tab="funding"] #s2-id > .s2-id-st.live { background: var(--s2-pill-pos-bg); color: var(--s2-pill-pos-ink); }
.s2-hl[data-tab="funding"] #s2-id > .s2-id-st.live::before { display: none; }
.s2-hl[data-tab="funding"] #s2-id > .s2-id-x { order: 8; flex-wrap: wrap; row-gap: 4px; max-width: 100%; margin-left: 10px; }
.s2-hl[data-tab="funding"] #s2-id > .s2-id-x > * { flex: none; }
.s2-hl[data-tab="funding"] #s2-id > .s2-id-mint, .s2-hl[data-tab="funding"] #s2-id > .s2-id-sp { display: none; }
.s2-hl[data-tab="funding"] #s2-id > .fd-vr { position: absolute; top: 0; bottom: 0; left: calc(var(--s2-work-pad) + 448px); width: 1px; background: var(--s2-border); }
.s2-hl[data-tab="funding"] #s2-id > .fd-lead { position: absolute; top: 4px; left: calc(var(--s2-work-pad) + 472px); }
.s2-hl[data-tab="funding"] #s2-id > .fd-stamp { position: absolute; top: 26px; right: var(--s2-work-pad); }
.fd-ca { display: inline-flex; align-items: center; gap: 4px; color: var(--s2-secondary); cursor: pointer; }
.fd-ca .mono { font-size: 12px; }
.fd-ca .i { width: 12px; height: 12px; color: var(--s2-muted); }
.fd-lead1 { display: flex; align-items: baseline; gap: 8px; height: 36px; }
.fd-fig { font: 600 30px/36px var(--s2-mono); letter-spacing: 0; color: var(--s2-text); }
.fd-fig.warn { color: var(--s2-warning); }
/* no balance readable: a small grey dash in the figure's own line box (its baseline, so "SOL to fund" does not move) */
.fd-fig.na { cursor: help; } .fd-fig-dash { font: 400 13px/18px var(--s2-font); color: var(--s2-muted); }
.fd-unit { font: 500 13px/18px var(--s2-font); color: var(--s2-muted); }
.fd-lead1 .fd-ib { align-self: center; margin-left: -2px; }
.fd-lead2 { margin: 2px 0 0; font-size: 13px; line-height: 20px; color: var(--s2-muted); white-space: nowrap; }
.fd-lead2 b { font-weight: 500; color: var(--s2-text); }
/* counts that change as the bridges deliver and as rows are checked ('4 of 8', '30%', 'All 4 short wallets', 'Fund 4
   wallets', 'Retry 2', 'Remove 2', 'Retry 2 failed') stay in the text face with tabular figures (sheet §3, DIGEST §5;
   I-fd-c3-05), so a count that changes keeps its width */
.fd-lead2 b, .fd-foot .fd-plan, .fd-foot .fd-why, .fd-foot .fd-pri, .fd-th.sel .fd-tbtn, .fd-btn.warn { font-variant-numeric: tabular-nums; }
.fd-stamp { display: flex; align-items: center; gap: 6px; height: 20px; font-size: 12px; line-height: 16px; color: var(--s2-muted); white-space: nowrap; }
.fd-vr { display: block; width: 1px; background: var(--s2-border); }

/* ---------------------------------------------------------------- funder band (118): Funder | Auto Sell | Sniper Guard | Pay DEX */
.fd-fb { display: grid; grid-template-columns: 416px 16px 1px 15px 188px 16px 1px 15px 188px 16px 1px 15px 188px; height: 118px; margin: 0 calc(-1 * var(--s2-work-pad)); padding: 0 var(--s2-work-pad); border-bottom: 1px solid var(--s2-border); }
.fd-fb > :nth-child(1) { grid-column: 1; } .fd-fb > :nth-child(2) { grid-column: 3; } .fd-fb > :nth-child(3) { grid-column: 5; }
.fd-fb > :nth-child(4) { grid-column: 7; } .fd-fb > :nth-child(5) { grid-column: 9; } .fd-fb > :nth-child(6) { grid-column: 11; } .fd-fb > :nth-child(7) { grid-column: 13; }
.fd-cell { min-width: 0; padding-top: 12px; }
.fd-cell-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 20px; }
.fd-funder .fd-cell-h { justify-content: flex-start; }
.fd-cell-h h2 { margin: 0; font: 600 16px/20px var(--s2-font); letter-spacing: 0; color: var(--s2-text); }
/* the Funder help: a 12px outline help glyph after the title (no text glyph, so no extra type size), 16px hit box */
.fd-q { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--s2-muted); cursor: pointer; }
.fd-q .i { width: 12px; height: 12px; stroke-width: 1.75; }
.fd-q:hover { color: var(--s2-text); }
.fd-sdot { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--s2-raised); }
.fd-sdot i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--s2-muted); }
.fd-sdot.on i { background: var(--s2-positive); }
.fd-fchip { display: flex; align-items: center; gap: 8px; width: 100%; height: 28px; margin-top: 6px; padding: 0 12px; border: 0; border-radius: var(--s2-r-control); background: var(--s2-raised); color: var(--s2-text); font: 400 13px/18px var(--s2-font); text-align: left; cursor: pointer; }
/* hover keeps the chip's fill (so "/ needs" stays at 4.8:1) and draws a 1px outline inside its edge */
.fd-fchip:hover { outline: 1px solid var(--s2-control); outline-offset: -1px; }
.fd-fchip .fd-sol { width: 14px; height: 14px; color: var(--s2-secondary); }
.fd-fchip-v { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.fd-fchip-v b { font-weight: 600; color: var(--s2-text); }
.fd-fchip-v span { color: var(--s2-muted); }
.fd-fchip.short .fd-fchip-v b, .fd-fchip.short .fd-fchip-v span { color: var(--s2-warning); }
.fd-fchip .fd-chev { width: 12px; height: 12px; color: var(--s2-secondary); }
.fd-fchip .fd-gas { font-style: normal; font-size: 12px; color: var(--s2-warning); }
.fd-fchip.err { justify-content: space-between; cursor: default; background: var(--s2-pill-neg-bg); color: var(--s2-negative); font-size: 12px; }
.fd-sk-88 { width: 120px; height: 12px; }
.fd-fchip .s2-bar { background: #2e2d32; }
.fd-fbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.fd-fbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 30px; padding: 0 12px; 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); cursor: pointer; }
.fd-fbtn:hover:not(:disabled) { border-color: var(--s2-control-hi); }
.fd-fbtn:disabled { border-color: var(--s2-border); color: var(--s2-muted); cursor: default; }
.fd-fbtn .i { width: 14px; height: 14px; color: currentColor; }
.fd-fbtn.pri { border-color: var(--s2-text); background: var(--s2-text); color: #0b0b0c; font-weight: 600; }
.fd-slot { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 66px; margin-top: 6px; border: 1px dashed var(--s2-control); border-radius: var(--s2-r-card); background: transparent; color: var(--s2-muted); font: 400 13px/18px var(--s2-font); cursor: pointer; }
.fd-slot:hover { border-color: var(--s2-control-hi); color: var(--s2-text); }
.fd-slot .i { width: 14px; height: 14px; }
.fd-solid { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: 66px; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--s2-border); border-radius: var(--s2-r-card); background: var(--s2-surface); color: var(--s2-muted); font: 400 13px/18px var(--s2-font); text-align: left; cursor: pointer; }
.fd-solid:hover { border-color: var(--s2-control); }
.fd-solid b { font-weight: 500; color: var(--s2-text); }
.fd-na { margin: 18px 0 0; font-size: 13px; line-height: 18px; color: var(--s2-muted); }
.fd-na.err { color: var(--s2-negative); } .fd-na.warn { color: var(--s2-warning); }

/* ---------------------------------------------------------------- table toolbar (40) */
.fd-tb { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; }
.fd-tb-l, .fd-tb-r { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.fd-tb-l { flex: 1 1 auto; overflow: hidden; } .fd-tb-r { flex: none; }
.fd-cust { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12px; line-height: 16px; color: var(--s2-muted); }
.fd-cust .fd-tbtn { height: 16px; }
.fd-tb-r { gap: 8px; }
.fd-tb-r .fd-why { margin-left: 3px; }
.fd-tb-l .fd-g { margin-right: 0; }
.fd-mode { padding: 0; border: 0; background: none; color: var(--s2-text); font: 500 13px/18px var(--s2-font); cursor: pointer; }
.fd-mode:hover { text-decoration: underline; text-underline-offset: 3px; }
.fd-build { font-size: 12px; line-height: 16px; color: var(--s2-muted); overflow: hidden; text-overflow: ellipsis; }
.fd-build .fd-tbtn { height: 16px; }
.fd-rel { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--s2-muted); }
.fd-sel { height: 28px; max-width: 100%; padding: 0 26px 0 10px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-field); background: var(--s2-ground) 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 9px center / 10px 6px; color: var(--s2-text); font: 400 12px/16px var(--s2-font); appearance: none; cursor: pointer; }
.fd-sel:hover { border-color: var(--s2-control-hi); }
.fd-sel:focus { outline: none; border-color: var(--s2-text); }
.fd-sel.bad { border-color: var(--s2-negative); }
.fd-sel.wide { width: 100%; height: 34px; font-size: 13px; }
.fd-sel option { background: var(--s2-surface); color: var(--s2-text); }

/* ---------------------------------------------------------------- the wallet table */
.fd-tbl { position: relative; border: 1px solid var(--s2-border); border-radius: var(--s2-r-card); background: var(--s2-surface); }
/* one grid for header and rows (inner width 1074): pad 15 · check 14 · 16 · glyph 14 · 10 · wallet 1fr · supply 100 ·
   pencil 20 · 80 · has / needs 220 · 12 · dot 8 · status 112 · Fund 60 · 12 · menu 24 · 11 */
.fd-th, .fd-r { display: grid; grid-template-columns: 15px 14px 16px 14px 10px minmax(0, 1fr) 100px 20px 80px 220px 12px 8px 112px 60px 12px 24px 11px; }
.fd-th { height: 35px; align-items: center; font: 500 12px/16px var(--s2-font); color: var(--s2-muted); }
.fd-th .fd-c-cb { grid-column: 2; display: flex; }
.fd-th .fd-c-w { grid-column: 4 / 7; }
.fd-th .fd-c-s { grid-column: 7; text-align: right; }
.fd-th .fd-c-h { grid-column: 10; text-align: right; }
.fd-th.sel { display: flex; align-items: center; gap: 16px; padding: 0 11px 0 15px; color: var(--s2-text); }
.fd-th.sel .fd-c-cb { flex: none; }
.fd-selc { font-size: 12px; color: var(--s2-muted); }
.fd-selc b { font-weight: 600; color: var(--s2-text); margin-right: 2px; }
.fd-sp { flex: 1; }
.fd-body { max-height: 450px; overflow-y: auto; }
.fd-r { position: relative; height: 45px; border-top: 1px solid var(--s2-rule); align-items: start; padding-top: 10px; }
.fd-body > .fd-r:first-child { border-top-color: var(--s2-border); }
.fd-r:hover { box-shadow: inset 0 0 0 1px var(--s2-control); border-radius: var(--s2-r-card); }
/* a checked row = the style's one move: the 1px accent line as wide as the wallet's name, 5px under its baseline (no grey
   outline beside it: one selection mark). The name truncates (overflow: hidden), so its box reaches 7px under the line box
   (padding, given back by the negative margin: nothing moves) and the underline is drawn inside the clip, not under it */
.fd-c-w b { padding-bottom: 7px; margin-bottom: -7px; }
.fd-r.on .fd-c-w b { text-decoration: underline 1px var(--s2-accent); text-decoration-skip-ink: none; text-underline-offset: 5px; }
.fd-c-cb { grid-column: 2; display: flex; height: 20px; align-items: center; }
.fd-r .fd-c-cb { padding-top: 2px; }
.fd-r .fd-c-g { grid-column: 4; display: flex; align-items: center; height: 20px; }
.fd-r .fd-c-w { grid-column: 6; display: flex; align-items: center; gap: 10px; height: 20px; min-width: 0; white-space: nowrap; }
.fd-c-w b { overflow: hidden; text-overflow: ellipsis; font: 600 13px/18px var(--s2-font); color: var(--s2-text); }
.fd-adr { flex: none; font-size: 12px; color: var(--s2-muted); }
.fd-c-w .fd-copy { margin-left: -6px; }
.fd-r .fd-c-s { grid-column: 7; height: 20px; text-align: right; font-size: 13px; line-height: 20px; color: var(--s2-text); }
.fd-r .fd-c-p { grid-column: 8; display: flex; align-items: center; justify-content: flex-end; height: 20px; }
.fd-r .fd-c-p .fd-ib { width: 16px; height: 16px; } .fd-r .fd-c-p .fd-ib .i { width: 12px; height: 12px; }
.fd-c-h { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 6px; height: 20px; white-space: nowrap; }
.fd-r .fd-c-h { grid-column: 10; }
.fd-hn { font-size: 13px; line-height: 20px; }
.fd-hn b { font-weight: 600; color: var(--s2-text); }
.fd-hn span { color: var(--s2-muted); }
.fd-trk { position: absolute; right: 0; top: 21px; width: 160px; height: 3px; overflow: hidden; border-radius: 2px; background: var(--s2-raised); }
.fd-trk i { display: block; width: var(--w, 0%); height: 100%; background: #f2f2f3; }
.fd-need-i { opacity: 0; width: 16px; height: 16px; }
.fd-need-i .i { width: 12px; height: 12px; }
.fd-r:hover .fd-need-i, .fd-need-i:focus-visible { opacity: 1; }
.fd-r .fd-c-d { grid-column: 12; display: flex; align-items: center; height: 20px; }
.fd-dot { display: block; width: 8px; height: 8px; border-radius: 50%; }
.fd-dot.warn { background: var(--s2-warning); }
.fd-dot.err { background: var(--s2-negative); }
.fd-dot.fly { background: #f2f2f3; box-shadow: none; outline: 3px solid rgba(242, 242, 243, 0.14); }
.fd-r .fd-c-t { grid-column: 13; height: 20px; padding-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 20px; color: var(--s2-muted); }
.fd-r.k-failed .fd-c-t { color: var(--s2-negative); }
.fd-r .fd-c-f { grid-column: 14; display: flex; justify-content: flex-end; margin-top: -1px; }
.fd-r .fd-c-k { grid-column: 16; display: flex; margin-top: -1px; }
.fd-ghost { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 24px; padding: 0; border: 1px solid var(--s2-control); border-radius: var(--s2-r-control); background: transparent; color: var(--s2-text); font: 500 12px/16px var(--s2-font); cursor: pointer; }
.fd-ghost:hover:not(:disabled) { border-color: var(--s2-control-hi); }
.fd-ghost:disabled { border-color: var(--s2-border); color: var(--s2-muted); cursor: default; }
.fd-kebab { width: 24px; height: 24px; border-radius: var(--s2-r-card); color: #d0d0d3; }
.fd-kebab .i { width: 18px; height: 18px; }
/* checkbox: 14px, 1px control edge, r3; checked = ink fill with a dark tick */
.fd-cb { appearance: none; flex: none; width: 14px; height: 14px; margin: 0; border: 1px solid var(--s2-control); border-radius: 3px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.fd-cb:hover:not(:disabled) { border-color: var(--s2-control-hi); }
.fd-cb:checked, .fd-cb:indeterminate { border-color: var(--s2-text); background: var(--s2-text); }
.fd-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); }
.fd-cb:indeterminate::after { content: ""; width: 7px; height: 1.5px; background: #0b0b0c; }
.fd-cb:disabled { border-color: var(--s2-border); cursor: default; }
/* gate / group rows (no creator, no wallets yet, holders still to create) */
.fd-r.fd-gate { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 11px 0 45px; }
.fd-gate-t { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; font-size: 13px; color: var(--s2-muted); }
.fd-gate-t b { font-weight: 600; color: var(--s2-text); }
.fd-gate-t .fd-g { margin-left: -24px; margin-right: 2px; }
.fd-gate-a { display: flex; gap: 8px; }
.fd-r.fd-grp .fd-c-w b { font-weight: 600; }
.fd-grp-t { font-size: 12px; color: var(--s2-muted); overflow: hidden; text-overflow: ellipsis; }
.fd-grp-a { grid-column: 12 / 17; display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 20px; }
/* foot (51 incl. its rule): the plan line + Edit plan · Funded total (right edge = has / needs) · the one primary */
.fd-foot { display: grid; grid-template-columns: 15px minmax(0, 1fr) 220px 92px auto 11px; align-items: center; height: 51px; border-top: 1px solid var(--s2-border); }
.fd-foot-l { grid-column: 2; display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.fd-plan { overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 16px; color: var(--s2-muted); }
.fd-foot .fd-why { overflow: hidden; text-overflow: ellipsis; color: var(--s2-warning); }
.fd-foot > .fd-tot { grid-column: 3; justify-self: end; }
.fd-tot { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-size: 13px; line-height: 18px; }
.fd-tot > span:first-child { font-size: 12px; color: var(--s2-muted); }
.fd-tot b { font-weight: 600; color: var(--s2-text); }
.fd-tot-v > span { color: var(--s2-muted); }
.fd-foot > .s2-lw { grid-column: 5; justify-self: end; }
.fd-pri { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 10.5px; border: 1px solid var(--s2-text); border-radius: var(--s2-r-control); background: var(--s2-text); color: #000; font: 600 13px/18px var(--s2-font); cursor: pointer; white-space: nowrap; }
.fd-pri .i { width: 14px; height: 14px; color: #000; }
/* 10.5px sides (was 11): with its tabular count (I-fd-c3-05) "Fund 4 wallets" stays the spec's 136x34 at x1212 */
.fd-pri:hover:not(:disabled) { background: #e8e8ea; border-color: #e8e8ea; }
.fd-pri:disabled { border-color: var(--s2-raised); background: var(--s2-raised); color: var(--s2-muted); cursor: default; }
.fd-pri:disabled .i { color: var(--s2-muted); }
/* the foundation's disabled primary (#8a8c92 on #2c2c30, 4.1:1) inside this screen's modals: the same raised fill as the
   foot's, so a disabled label keeps 4.8:1 (AS: disabled stays legible and says why) */
.modal.fd-m .btn.primary:disabled, .modal.fd-m .s2-btn.primary:disabled, .modal.ffx-m .btn.primary:disabled, .modal.ffx-m .s2-btn.primary:disabled { background: var(--s2-raised); border-color: var(--s2-raised); color: var(--s2-muted); }
.fd-pri.outline { background: transparent; border-color: var(--s2-control); color: var(--s2-text); font-weight: 500; }
.fd-pri.outline .i { color: var(--s2-text); }
.fd-pri.outline:hover:not(:disabled) { border-color: var(--s2-control-hi); background: transparent; }
.fd-pri.outline:disabled { background: transparent; border-color: var(--s2-border); color: var(--s2-muted); }
/* routing row (28): label · rule · chevron */
.fd-routing { display: flex; align-items: center; width: 100%; height: 28px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--s2-muted); font: 500 13px/18px var(--s2-font); cursor: pointer; }
.fd-routing > span { flex: none; }
.fd-routing > i { flex: 1; height: 1px; margin: 0 12px 0 24px; background: var(--s2-border); }
.fd-routing .i { width: 12px; height: 12px; color: var(--s2-secondary); transition: transform 0.15s; }
.fd-routing:hover { color: var(--s2-text); }
.fd-routing.on { color: var(--s2-text); }
.fd-routing.on > span { position: relative; }
.fd-routing.on > span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--s2-accent); }
.fd-routing.on .i { transform: rotate(180deg); }

/* routing mode: wallet 1fr · has / needs 150 · 24 · route 160 · 16 · share 100 · 16 · receives 120 · 16 · menu 24 · 11 */
.fd-tbl.rt .fd-th, .fd-tbl.rt .fd-r:not(.fd-gate) { grid-template-columns: 15px 14px 16px 14px 10px minmax(0, 1fr) 150px 24px 160px 16px 100px 16px 120px 16px 24px 11px; }
.fd-tbl.rt.per .fd-th, .fd-tbl.rt.per .fd-r:not(.fd-gate) { grid-template-columns: 15px 14px 16px 14px 10px minmax(0, 1fr) 150px 16px 150px 12px 120px 16px 90px 16px 110px 12px 24px 11px; }
.fd-tbl.rt .fd-th .fd-c-h, .fd-tbl.rt .fd-r .fd-c-h { grid-column: 7; }
.fd-tbl.rt .fd-trk { width: 120px; }
.fd-tbl.rt .fd-th .fd-c-r, .fd-tbl.rt .fd-r .fd-c-r { grid-column: 9; }
.fd-tbl.rt .fd-th .fd-c-sh, .fd-tbl.rt .fd-r .fd-c-sh { grid-column: 11; text-align: right; justify-content: flex-end; }
.fd-tbl.rt .fd-th .fd-c-rc, .fd-tbl.rt .fd-r .fd-c-rc { grid-column: 13; text-align: right; justify-content: flex-end; }
.fd-tbl.rt .fd-r .fd-c-k { grid-column: 15; }
.fd-tbl.rt.per .fd-th .fd-c-r, .fd-tbl.rt.per .fd-r .fd-c-r { grid-column: 9; }
.fd-tbl.rt.per .fd-th .fd-c-rl, .fd-tbl.rt.per .fd-r .fd-c-rl { grid-column: 11; }
.fd-tbl.rt.per .fd-th .fd-c-sh, .fd-tbl.rt.per .fd-r .fd-c-sh { grid-column: 13; }
.fd-tbl.rt.per .fd-th .fd-c-rc, .fd-tbl.rt.per .fd-r .fd-c-rc { grid-column: 15; }
.fd-tbl.rt.per .fd-r .fd-c-k { grid-column: 17; }
.fd-tbl.rt .fd-r { padding-top: 8px; }
.fd-tbl.rt .fd-r > span { margin-top: 2px; }
.fd-tbl.rt .fd-r .fd-c-r, .fd-tbl.rt .fd-r .fd-c-rl, .fd-tbl.rt .fd-r .fd-c-sh { margin-top: -2px; display: flex; align-items: center; height: 28px; }
.fd-tbl.rt .fd-r .fd-c-rc { display: flex; align-items: center; height: 20px; font-size: 13px; }
.fd-tbl.rt .fd-c-r .fd-sel, .fd-tbl.rt .fd-c-rl .fd-sel, .fd-tbl.rt .fd-c-rl .rsel { width: 100%; }
/* routing mode's cells are data (a bridge, a relayer, a share): 13px like every value of the table; 12px stays on the
   header, the addresses and the toolbar (spec type roles) */
.fd-tbl.rt .fd-r .fd-sel, .fd-tbl.rt .fd-r .rsel, .fd-tbl.rt .fd-pct input, .fd-tbl.rt .fd-pct i, .fd-tbl.rt .fd-r .fd-warn, .fd-tbl.rt .fd-r .fd-c-rc .fd-tbtn { font-size: 13px; }
.fd-c-rl .rsel { height: 28px; padding: 0 8px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-field); background: var(--s2-ground); color: var(--s2-text); font-size: 12px; }
.fd-pct { display: inline-flex; align-items: center; height: 28px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-field); background: var(--s2-ground); }
.fd-pct:focus-within { border-color: var(--s2-text); }
.fd-pct input { width: 64px; height: 26px; padding: 0 2px 0 8px; border: 0; outline: 0; background: none; color: var(--s2-text); font-size: 12px; text-align: right; }
.fd-pct input.bad { color: var(--s2-negative); }
.fd-pct i { padding: 0 8px 0 2px; font-style: normal; font-size: 12px; color: var(--s2-muted); }
.fd-foot.rt { display: flex; align-items: center; gap: 24px; padding: 0 11px 0 15px; }
.fd-foot.rt .fd-foot-l { flex: 1; }
.fd-over { color: var(--s2-negative) !important; }

/* ---------------------------------------------------------------- popovers + menus (border, no shadow) */
.fd-pop { padding: 12px 14px 14px; font-size: 13px; line-height: 18px; color: var(--s2-secondary); white-space: normal; }
.fd-pop.fd-menu { width: max-content; min-width: 240px; max-width: 340px; padding: 4px; }
.fd-mi-s { margin-left: auto; padding-left: 8px; font: 400 12px var(--s2-font); color: var(--s2-muted); }
.fd-pop-h { margin: 0 0 10px; font: 600 14px/20px var(--s2-font); color: var(--s2-text); }
.fd-pop-hr { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fd-pop-hr .fd-pop-h { margin: 0; }
.fd-pop-p { margin: 0 0 10px; font-size: 13px; line-height: 18px; color: var(--s2-secondary); }
.fd-pop-p.dim { color: var(--s2-muted); }
.fd-pop-p.warn { color: var(--s2-warning); }
.fd-pop-sep { display: block; height: 1px; margin: 8px 0; background: var(--s2-border); }
.fd-pop-f { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.fd-pop-f .fd-hint { margin: 0 auto 0 0; }
.fd-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 26px; font-size: 13px; line-height: 18px; }
.fd-kv > span { flex: 1 1 auto; min-width: 0; color: var(--s2-secondary); }
.fd-kv > b { flex: none; font-weight: 400; color: var(--s2-muted); white-space: nowrap; }
.fd-kv > b .num, .fd-kv > b.num { font-weight: 500; color: var(--s2-text); }
.fd-kv.sub > span { padding-left: 12px; color: var(--s2-muted); }
.fd-kv.lead > span { color: var(--s2-text); font-weight: 500; }
.fd-kv.lead > b .num { font-weight: 600; }
.fd-pop-cost { width: 320px; }
/* the target's split under its figure (the 320px popover holds "Target supply 32.8%" on one line, its parts beneath) */
.fd-kv-note { margin: -4px 0 4px; padding-left: 12px; font-size: 13px; line-height: 18px; color: var(--s2-muted); white-space: nowrap; }
.fd-pop-cost .fd-kv:last-child > b { color: var(--s2-text); }
.fd-pop-plan { width: 360px; }
.fd-pop-fund { width: 280px; }
.fd-pop-crneed { width: 240px; }
.fd-pop-dev, .fd-pop-auto, .fd-pop-help { width: 300px; }
.fd-pop-sg { width: 320px; }
.fd-pop-hist { width: 420px; }
.fd-pf { margin-top: 12px; }
.fd-pf:first-of-type { margin-top: 0; }
.fd-pf-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fd-lbl { display: block; margin-bottom: 8px; font: 500 13px/18px var(--s2-font); color: var(--s2-secondary); }
.fd-hint { margin: 6px 0 0; font-size: 12px; line-height: 16px; color: var(--s2-muted); }
.fd-hint .fd-err { color: var(--s2-negative); }
.fd-in { display: flex; align-items: center; height: 38px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-field); background: var(--s2-ground); }
.fd-in:focus-within { border-color: var(--s2-text); }
.fd-in input { flex: 1; min-width: 0; height: 36px; padding: 0 0 0 12px; border: 0; outline: 0; background: none; color: var(--s2-text); font-size: 14px; }
.fd-in input:disabled { color: var(--s2-muted); }
.fd-in input.bad { color: var(--s2-negative); }
.fd-in-u { padding: 0 12px 0 8px; font-size: 13px; color: var(--s2-muted); white-space: nowrap; }
.fd-in-b { align-self: stretch; padding: 0 12px; border: 0; border-left: 1px solid var(--s2-border); background: none; color: var(--s2-secondary); font: 500 13px var(--s2-font); cursor: pointer; }
.fd-in-b:hover:not(:disabled) { color: var(--s2-text); }
.fd-in-b.on { color: var(--s2-text); }
.fd-in-b.on .s2-l { position: relative; }
.fd-in-b.on .s2-l::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 1px; background: var(--s2-accent); }
.fd-in.sm { width: 120px; } .fd-in.xs { width: 150px; height: 34px; } .fd-in.xs input { height: 32px; font-size: 13px; }
.fd-pop-sg .fd-in.xs { width: 100%; }
.fd-step { display: inline-flex; align-items: stretch; height: 38px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-field); }
.fd-step button { display: grid; place-items: center; width: 34px; padding: 0; border: 0; background: none; color: var(--s2-secondary); cursor: pointer; }
.fd-step button:hover:not(:disabled) { background: var(--s2-raised); color: var(--s2-text); }
.fd-step button:disabled { color: var(--s2-border); cursor: default; }
.fd-step input { width: 52px; border: 0; border-left: 1px solid var(--s2-border); border-right: 1px solid var(--s2-border); outline: 0; background: none; color: var(--s2-text); font-size: 14px; text-align: center; }
.fd-chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--s2-secondary); cursor: pointer; }
.fd-chk input { appearance: none; width: 14px; height: 14px; margin: 0; border: 1px solid var(--s2-control); border-radius: 3px; display: grid; place-items: center; cursor: pointer; }
.fd-chk input:checked { border-color: var(--s2-text); background: var(--s2-text); }
.fd-chk input: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); }
/* segmented controls inside this screen's forms (Edit plan's Minimum per wallet, Withdraw's Send to / Receive as) take the
   form's one control height, 38px like every field beside them, and the form's 13px labels (.hl-seg.sm would make them
   28px / 12px) */
.hl-seg.fd-seg { --s2-seg-h: 38px; }
.hl-seg.fd-seg button { padding: 0 12px; font-size: 13px; }
.fd-hist { margin: 0; padding: 0; list-style: none; }
.fd-hist li { display: grid; grid-template-columns: 22px 120px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--s2-rule); font-size: 12px; color: var(--s2-muted); }
.fd-hist li:first-child { border-top: 0; }
.fd-hist li b { font-weight: 500; color: var(--s2-text); }
.fd-hist li.cur span { color: var(--s2-secondary); }
.fd-hist .n { font-family: var(--s2-mono); }

/* ---------------------------------------------------------------- modals (480, card tone, 1px border, no shadow) */
.modal.fd-m { width: 480px; }
/* every modal this screen opens has an 8px frame (spec D-confirm "r8"; DIGEST radius bands 4-8 / 16-24). The foundation's
   --s2-r-frame stays 10px for the other screens' modals: set here for this screen's own */
.modal.fd-m, .modal.ffx-m { --s2-r-frame: 8px; border-radius: 8px; }
.modal.fd-m .modal-b { padding: 16px 24px 24px; }
/* the foot of every Funding modal (FAM-2a: primary "white pill 34px"; L-57 / S-funding-26 footer, I-fd-c3-03): one 34px
   row in a 64px foot (glyphs 14px, so 'Fund 4 wallets' is the spec's 140x34); "Cancel" is the 13px/500 #bdbdc0 text
   button (tone "ghost": no outline, the foundation's .btn.ghost), its label ending 20px before the next button (12px gap +
   its 1px clear border + 7px side padding), as the skeleton sets it */
.modal.fd-m .modal-f, .modal.ffx-m .modal-f { padding-block: 15px; }
.modal.fd-m .modal-f .btn, .modal.ffx-m .modal-f .btn { height: 34px; }
.modal.fd-m .modal-f .btn .i, .modal.ffx-m .modal-f .btn .i { width: 14px; height: 14px; }
.modal.fd-m .modal-f .btn.ghost, .modal.ffx-m .modal-f .btn.ghost { padding: 0 7px; }
.modal.fd-m-pd { width: 640px; }
.fd-dep-top { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; } /* the status lines centred beside the QR */
.fd-dep-top.sm { grid-template-columns: 120px minmax(0, 1fr); }
.fd-qr { display: grid; place-items: center; width: 160px; height: 160px; border: 1px solid var(--s2-border); border-radius: var(--s2-r-card); background: #fff; }
.fd-qr.sm { width: 120px; height: 120px; }
.fd-qr svg { display: block; width: 136px; height: 136px; }
.fd-qr.sm svg { width: 100px; height: 100px; }
.fd-qr-sk { width: 100%; height: 100%; border-radius: var(--s2-r-card); }
.fd-dep-r { min-width: 0; }
/* the address: label 8px above a 38px one-line field (12px mono; 44 characters = 317px in the 400px field, never cut or
   wrapped) and its separate 24px copy icon, centred on the field; the QR row follows 16px under it */
.fd-addr-f { margin-bottom: 16px; }
.fd-addr-f.sm { margin: 12px 0; }
.fd-addr-row { display: flex; align-items: center; gap: 8px; }
.fd-addr { flex: 1; min-width: 0; display: flex; align-items: center; height: 38px; padding: 0 10px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-field); background: var(--s2-ground); font-size: 12px; line-height: 18px; color: var(--s2-text); white-space: nowrap; overflow: hidden; }
.fd-addr-sk { width: 72%; height: 12px; }
.fd-addr-row .fd-copy { width: 24px; height: 24px; margin-top: 0; }
.fd-addr-row .fd-copy .i { width: 14px; height: 14px; }
.fd-dep-st { margin: 10px 0 0; font-size: 13px; line-height: 18px; color: var(--s2-muted); }
.fd-dep-r > .fd-dep-st:first-child { margin-top: 0; }
.fd-dep-st b { font-weight: 500; color: var(--s2-text); }
.fd-dep-st.ok b { color: var(--s2-positive); }
.fd-dep-st.warn { color: var(--s2-warning); }
.fd-dep-w { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--s2-muted); } /* under "Received" until SOL arrives */
.fd-dep .fd-field { margin-top: 20px; }
.fd-dep-go { width: 100%; height: 36px; margin-top: 16px; }
.fd-note { margin: 10px 0 0; font-size: 12px; line-height: 16px; color: var(--s2-muted); }
.fd-dep-tx { margin-top: 12px; border-top: 1px solid var(--s2-border); }
.fd-dep-tx p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 0; font-size: 12px; color: var(--s2-muted); }
.fd-dep-tx p b { font-weight: 400; color: var(--s2-secondary); }
.fd-dep-tx p.ok span { color: var(--s2-positive); } .fd-dep-tx p.err span { color: var(--s2-negative); }
.fd-other { margin-top: 16px; border-top: 1px solid var(--s2-border); }
.fd-other > summary { display: flex; align-items: center; gap: 12px; height: 28px; margin-top: 8px; list-style: none; cursor: pointer; font: 500 13px/18px var(--s2-font); color: var(--s2-muted); }
.fd-other > summary::-webkit-details-marker { display: none; }
.fd-other > summary:hover { color: var(--s2-text); }
.fd-other-r { flex: 1; height: 1px; background: var(--s2-border); }
.fd-other > summary .i { width: 12px; height: 12px; transition: transform 0.15s; }
.fd-other[open] > summary .i { transform: rotate(180deg); }
.fd-other-b { padding-top: 8px; }
.fd-net { --s2-seg-h: 32px; }
.fd-wd-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: var(--s2-r-card); background: var(--s2-ground); font-size: 13px; color: var(--s2-secondary); }
.fd-wd-sum b { font-weight: 400; color: var(--s2-muted); } .fd-wd-sum b .num { font-weight: 600; color: var(--s2-text); }
.fd-wd .fd-pf { margin-top: 16px; }
.fd-wd .s2-input { width: 100%; }
.fd-wd .fd-chk { margin-top: 16px; }
.fd-cr .fd-hint { margin-top: 8px; }
.fd-pick { display: flex; flex-direction: column; max-height: 270px; margin-top: 12px; overflow-y: auto; border: 1px solid var(--s2-border); border-radius: var(--s2-r-card); }
.fd-pick-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 45px; padding: 0 12px; border: 0; border-top: 1px solid var(--s2-rule); background: none; color: var(--s2-secondary); text-align: left; cursor: pointer; }
.fd-pick-r:first-child { border-top: 0; }
.fd-pick-r:hover { background: var(--s2-raised); }
.fd-pick-r.on { box-shadow: inset 0 0 0 1px var(--s2-control-hi); }
.fd-pick-n { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.fd-pick-n b { font-weight: 600; color: var(--s2-text); }
.fd-pick-n .mono { font-size: 12px; color: var(--s2-muted); }
.fd-pick-r.on .fd-pick-n b { position: relative; }
.fd-pick-r.on .fd-pick-n b::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--s2-accent); }
.fd-pick-v { font-size: 12px; color: var(--s2-muted); white-space: nowrap; }
.fd-pick-v b { font-family: var(--s2-mono); font-weight: 500; color: var(--s2-text); }
.fd-crseg { --s2-seg-h: 34px; }
/* the Fund confirmation */
.fd-cf-l { border: 1px solid var(--s2-border); border-radius: var(--s2-r-card); }
.fd-cf-r { display: grid; grid-template-columns: minmax(0, 1fr) 150px 80px; gap: 12px; align-items: center; height: 40px; padding: 0 12px; border-top: 1px solid var(--s2-rule); font-size: 13px; }
.fd-cf-r:first-child { border-top: 0; }
.fd-cf-r b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--s2-text); }
.fd-cf-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--s2-muted); font-size: 12px; }
.fd-cf-r span.num { text-align: right; font-size: 13px; color: var(--s2-text); }
.fd-cf-s { margin-top: 12px; }
.fd-cf-d { margin-top: 8px; border-top: 1px solid var(--s2-border); }
.fd-cf-d > summary { display: flex; align-items: center; justify-content: space-between; height: 32px; list-style: none; cursor: pointer; font: 500 13px var(--s2-font); color: var(--s2-muted); }
.fd-cf-d > summary::-webkit-details-marker { display: none; }
.fd-cf-d > summary .i { width: 12px; height: 12px; transition: transform 0.15s; }
.fd-cf-d[open] > summary .i { transform: rotate(180deg); }
.fd-cf-d .hl-kv { margin: 0 0 8px; font-size: 13px; }
.fd-cf-warn { margin: 0 0 12px; padding: 8px 10px; border-radius: var(--s2-r-card); background: var(--s2-pill-warn-bg); color: var(--s2-warning); font-size: 12px; line-height: 16px; }
.fd-ways { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: w; }
.fd-ways li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; padding: 8px 0; border-top: 1px solid var(--s2-rule); font-size: 13px; counter-increment: w; }
.fd-ways li::before { content: counter(w); grid-row: 1 / 3; font-family: var(--s2-mono); font-size: 12px; color: var(--s2-muted); }
.fd-ways li b { font-weight: 600; color: var(--s2-text); }
.fd-ways li span { font-size: 12px; line-height: 16px; color: var(--s2-muted); }
/* Transfer details drawer */
.fd-td-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12px; color: var(--s2-muted); }
.fd-td-t td, .fd-td-t th { white-space: nowrap; }

/* ---------------------------------------------------------------- Fund from another project (hl-fundfrom.js, 640 one column) */
/* (the modal no longer carries the old two-pane class .ffm-modal, whose late-injected hl-fundfrom.css set 1080px; the
   extra .s2-modal keeps this width ahead of any same-specificity rule loaded after this file) */
.modal.s2-modal.ffx-m { width: 640px; max-width: calc(100vw - 40px); }
.modal.ffx-m .modal-b { max-height: calc(100vh - 220px); overflow-y: auto; padding: 12px 24px 16px; }
.modal.ffx-m .modal-f { align-items: center; }
.ffx-fn { margin-right: auto; font-size: 12px; color: var(--s2-muted); }
.ffx { border: 1px solid var(--s2-border); border-radius: var(--s2-r-card); }
.ffx-h { position: sticky; top: 0; display: flex; justify-content: space-between; height: 32px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--s2-border); font: 500 12px/16px var(--s2-font); color: var(--s2-muted); }
.ffx-h[hidden], .ffx-list[hidden] { display: none; }
.ffx-list { max-height: 452px; overflow-y: auto; }
.ffx-r { border-top: 1px solid var(--s2-rule); }
.ffx-list > .ffx-r:first-child { border-top: 0; }
.ffx-rb { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px; align-items: center; gap: 12px; width: 100%; height: 45px; padding: 0 12px; border: 0; background: none; color: var(--s2-text); text-align: left; cursor: pointer; }
.ffx-rb:hover:not(:disabled) { background: var(--s2-raised); }
.ffx-rb:disabled { cursor: default; }
.ffx-n { display: flex; align-items: baseline; gap: 10px; min-width: 0; white-space: nowrap; overflow: hidden; }
.ffx-n b { font: 600 13px/18px var(--s2-font); color: var(--s2-text); overflow: hidden; text-overflow: ellipsis; }
.ffx-n em { font-style: normal; font-size: 12px; color: var(--s2-muted); overflow: hidden; text-overflow: ellipsis; }
/* the picked project: the same accent line under its name as a checked wallet row; the name and its line clip their
   overflow (ellipsis), so both boxes reach 7px under the line box (given back by the margin) to keep the line inside */
.ffx-n, .ffx-n b { padding-bottom: 7px; margin-bottom: -7px; }
.ffx-r.on .ffx-n b { text-decoration: underline 1px var(--s2-accent); text-decoration-skip-ink: none; text-underline-offset: 5px; }
.ffx-why { font-size: 12px; color: var(--s2-muted); white-space: nowrap; }
.ffx-sol { text-align: right; font-size: 13px; color: var(--s2-text); }
.ffx-sol.dash { color: var(--s2-muted); }
.ffx-r.na .ffx-n b, .ffx-r.na .ffx-sol { color: var(--s2-muted); }
.ffx-g { height: 32px; padding: 8px 12px 0; border-top: 1px solid var(--s2-border); font: 500 12px/16px var(--s2-font); color: var(--s2-muted); }
.ffx-x { padding: 4px 12px 14px; }
.ffx-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 4px 0 0; }
.ffx-kv > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.ffx-kv dt { color: var(--s2-muted); } .ffx-kv dd { margin: 0; color: var(--s2-text); }
.ffx-kv dd.warn { color: var(--s2-warning); }
.ffx-o { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--s2-secondary); }
.ffx-o > span:first-child { width: 110px; flex: none; color: var(--s2-muted); }
.ffx-o .hl-seg { --s2-seg-h: 30px; }
.ffx-o em { font-style: normal; font-size: 12px; color: var(--s2-muted); }
.ffx-in { display: inline-flex; align-items: center; height: 30px; border: 1px solid var(--s2-control); border-radius: var(--s2-r-field); background: var(--s2-ground); }
.ffx-in input { width: 56px; height: 28px; padding: 0 4px 0 10px; border: 0; outline: 0; background: none; color: var(--s2-text); font-size: 13px; }
.ffx-in input.bad { color: var(--s2-negative); }
.ffx-in i { padding: 0 10px 0 2px; font-style: normal; font-size: 12px; color: var(--s2-muted); }
.ffx-msg { margin: 10px 0 0; font-size: 12px; line-height: 16px; color: var(--s2-muted); }
.ffx-msg b { color: var(--s2-text); font-weight: 500; } .ffx-msg b.warn { color: var(--s2-warning); }
.ffx-w { margin-top: 10px; border-top: 1px solid var(--s2-rule); }
.ffx-w > summary { display: flex; align-items: center; justify-content: space-between; height: 30px; list-style: none; cursor: pointer; font: 500 12px var(--s2-font); color: var(--s2-muted); }
.ffx-w > summary::-webkit-details-marker { display: none; }
.ffx-w > summary .i { width: 12px; height: 12px; }
.ffx-wr { display: flex; justify-content: space-between; padding: 3px 0; font-size: 12px; color: var(--s2-secondary); }
.ffx-wr b { font-weight: 500; color: var(--s2-text); }
.ffx-sh { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--s2-border); border-radius: var(--s2-r-card); font-size: 12px; color: var(--s2-secondary); }
.ffx-sh p { margin: 0; } .ffx-sh b { color: var(--s2-text); }
.ffx-sh-a { display: flex; gap: 8px; margin-top: 8px; }
.ffx-err { display: flex; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: var(--s2-r-card); background: var(--s2-pill-neg-bg); color: var(--s2-negative); font-size: 12px; }
.ffx-err p { margin: 0; }
.ffx-warn { margin: 10px 0 0; padding-left: 16px; font-size: 12px; color: var(--s2-warning); }
.ffx-ack { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--s2-secondary); cursor: pointer; }
.ffx-ack input { appearance: none; flex: none; width: 14px; height: 14px; margin: 1px 0 0; border: 1px solid var(--s2-control); border-radius: 3px; display: grid; place-items: center; cursor: pointer; }
.ffx-ack input:checked { border-color: var(--s2-text); background: var(--s2-text); }
.ffx-ack input: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); }
.ffx-load, .ffx-none { display: flex; align-items: center; gap: 8px; min-height: 45px; padding: 0 12px; font-size: 13px; color: var(--s2-muted); }
.ffx-p { padding: 12px; }
.ffx-ph { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 14px/20px var(--s2-font); color: var(--s2-text); }
.ffx-steps { margin: 0; padding: 0; list-style: none; }
.ffx-steps li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--s2-rule); font-size: 12px; color: var(--s2-muted); }
.ffx-steps li b { font-weight: 500; color: var(--s2-secondary); }
.ffx-steps li.done b, .ffx-steps li.ok b { color: var(--s2-text); }
.ffx-steps li.failed em { color: var(--s2-negative); }
.ffx-log { margin: 10px 0 0; padding: 8px 10px; border-radius: var(--s2-r-card); background: var(--s2-ground); font: 400 12px/16px var(--s2-mono); color: var(--s2-muted); white-space: pre-wrap; }

/* ---------------------------------------------------------------- Pay DEX editor in its modal (the <sinner-paydex> panel) */
.modal.fd-m-pd .modal-b { max-height: calc(100vh - 140px); overflow-y: auto; padding-top: 4px; }
.fd-m-pd .mk-pd-h .mk-auto-gl, .fd-m-pd .mk-pd-h .grow b { display: none; }
.fd-m-pd .mk-pd-h .grow span { font-size: 13px; color: var(--s2-muted); }
.fd-m-pd .pd-seg button.on { box-shadow: none; background: none; color: var(--s2-text); text-decoration: underline 1px var(--s2-accent); text-underline-offset: 8px; }
.fd-m-pd .pd-rail li.cur i { box-shadow: none; }
/* the editor (hl-paydex.css, drawn for the old cockpit at 10.5-12.5px in seven sizes) on this screen's two text roles:
   13px for every label, option, value and explanation; 12px for meta (the state rail, counters, slot placeholders,
   format notes, the payer's fallback); weights 400 / 600 */
.fd-m-pd .pd-hint, .fd-m-pd .pd-line, .fd-m-pd .pd-note, .fd-m-pd .pd-checks span { font-size: 13px; line-height: 18px; }
.fd-m-pd .pd-k, .fd-m-pd .pd-sub, .fd-m-pd .pd-field > span, .fd-m-pd .pd-checks b, .fd-m-pd .pd-img-m b { font-size: 13px; font-weight: 600; }
.fd-m-pd .pd-seg button, .fd-m-pd .hl-link, .fd-m-pd .pd-add, .fd-m-pd .pd-payer b { font-size: 13px; }
.fd-m-pd .pd-rail li, .fd-m-pd .pd-tag, .fd-m-pd .pd-in em, .fd-m-pd .pd-payer em, .fd-m-pd .pd-img-m span, .fd-m-pd .pd-field > span em,
.fd-m-pd .pd-field > span i, .fd-m-pd .pd-field > i, .fd-m-pd .pd-mono, .fd-m-pd .pd-img-p span, .fd-m-pd .pd-sub span, .fd-m-pd .pd-foot > span { font-size: 12px; font-weight: 400; }
/* I-fd-c3-04: the editor fits 1440x900 (it was 978px of content in a 760px body, its commit row 218px below the fold).
   The commit row (state line + Save) is pinned to the modal's foot, a full-width row on a 1px rule like every Funding
   modal's foot, so it shows without scrolling whatever the content holds; Save is 34px. The three readiness checks are
   one line in the state card (a status dot + the state in words, the full sentence in its title); Websites / Socials and
   the two image slots carry their action ("+ Add website", "Upload") on their label line. */
.modal.fd-m-pd .modal-b:has(.pd-foot) { padding-bottom: 0; } /* the foot closes the frame; "Unavailable" / "Not wired" keep the 24px */
.fd-m-pd .pd-foot { position: sticky; bottom: 0; z-index: 2; margin: 0 -24px; padding: 12px 24px; border-top: 1px solid var(--s2-border); background: var(--s2-surface); }
.fd-m-pd .pd-save { height: 34px; padding: 0 16px; }
.fd-m-pd .pd-state, .fd-m-pd .pd-row { padding-block: 12px; }
.fd-m-pd .pd-checks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.fd-m-pd .pd-ck, .fd-m-pd .pd-ck.ok, .fd-m-pd .pd-ck.err, .fd-m-pd .pd-ck.warn { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--s2-secondary); }
.fd-m-pd .pd-ck i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--s2-muted); }
.fd-m-pd .pd-ck.ok i { background: var(--s2-positive); } .fd-m-pd .pd-ck.err i { background: var(--s2-negative); } .fd-m-pd .pd-ck.warn i { background: var(--s2-warning); }
.fd-m-pd .pd-lk, .fd-m-pd .pd-img-m { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
.fd-m-pd .pd-lk { gap: 6px 12px; }
.fd-m-pd .pd-img-m { gap: 3px 8px; }
.fd-m-pd .pd-lk > span, .fd-m-pd .pd-img-m > b { grid-column: 1; grid-row: 1; }
.fd-m-pd .pd-lk > .pd-add, .fd-m-pd .pd-img-m > .hl-link { grid-column: 2; grid-row: 1; margin: 0; padding: 0; }
.fd-m-pd .pd-lk > .pd-link, .fd-m-pd .pd-img-m > span { grid-column: 1 / -1; }
.fd-opt { margin-left: 4px; font-weight: 400; font-size: 12px; color: var(--s2-muted); }
.fd-wide { width: 100%; }
.fd-rm-l { margin-bottom: 8px; padding: 4px 12px; border: 1px solid var(--s2-border); border-radius: var(--s2-r-card); }
.fd-pick-n .fd-cb { margin-right: 2px; align-self: center; }
.fd-td-w { overflow-x: auto; }
.fd-td-t th, .fd-td-t td { padding: 0 8px; }
.fd-td-t th:first-child, .fd-td-t td:first-child { padding-left: 0; }
