/* The site's scale (owner, 2026-10-24: "zoom out a bit the whole site, it feels up in the face;
   scale and space things a bit down"). Loaded last, so one file sets how large the type, the columns
   and the 3D's room are on a wide screen. Each value is about 85% of what the parts' own sheets ask.
   Phones keep their own sizes. */
@media (min-width: 981px) {
  /* the bar: its height and column are the kit's (vendor/defxn/defxn-direction.shell.draft.css, "ONE BAR GEOMETRY, EVERY MODE") */

  /* the home: css/genesis-home.css sets its own scale */

  /* the inner pages */
  .view.page[data-view="page"] { --sheet: clamp(400px, 34vw, 560px); --pad: clamp(var(--sp-6), 3.2vw, var(--sp-7)); padding-top: clamp(var(--sp-4), 2.4vh, var(--sp-6)); }
  .page-title { font-size: var(--fs-primary); }
  /* every page's lede is 18px under its title (spacing round 2026-11-25: Start, Distribution, Funds, Fees and Operations had an 11px lede
     under a 47px title while Our network, Explore and Learn had 18px) */
  .page-lede { font-size: var(--fs-secondary); }
  .stage-label { width: clamp(92px, 7.4vw, 124px); }
  .g-app .sheet-slot > .g-act, .g-partsheet { padding-left: clamp(var(--sp-5), 1.5vw, var(--sp-6)); padding-right: clamp(var(--sp-5), 1.5vw, var(--sp-6)); }
  .g-partsheet__facts dd { font-size: var(--fs-secondary); }
  .g-partsheet__rule { font-size: var(--fs-secondary); }
  .g-app .g-step .dx-input, .g-app .g-step .dx-textarea { font-size: var(--fs-tertiary); }

  /* the learn views: css/genesis-learn-view.css sets their own scale (2026-11-25) */
}
/* The token preview sits under the fields in the sheet (it was squeezed into a 200px column and
   broke the name into letters). */
#genesisCard .meta-layout { grid-template-columns: minmax(0, 1fr); }
#genesisCard .meta-preview { display: grid; grid-template-columns: minmax(0, 1fr); }
#genesisCard .meta-preview-body { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
#genesisCard .meta-preview-text { min-width: 0; }
#genesisCard .meta-preview-text strong { word-break: normal; overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The 3D page slab (js/genesis-scene.js placeSlab) is the inner pages' backing, as in the defxn home
   redesign: with the scene on, the sheets drop their painted box and their words sit on the slab.
   The words appear in place as the slab finishes opening; they do not slide in from a side. With no
   WebGL (no body.has-slab) the painted box stays. */
/* On a phone the camera stands close and the slab's glass comes out pale, so the muted words on it
   lost their contrast (audit round 9): there the sheet keeps its own dark glass over the slab. */
@media (min-width: 981px) {
  body.has-slab .g-app .sheet-slot > .g-act,
  body.has-slab .g-app .sheet-slot > .g-partsheet:not(.mx-card) { /* the part drawer keeps its mech frame over the slab (2026-11-25) */
    background: transparent !important; border-color: transparent !important; box-shadow: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
}
body.has-slab .view .sheet-slot > .g-act.rise, body.has-slab .view .sheet-slot > .g-partsheet.rise { transform: none; clip-path: inset(0 0 100% 0); }
body.has-slab .view.on .sheet-slot > .g-act.rise, body.has-slab .view.on .sheet-slot > .g-partsheet.rise { clip-path: inset(-20px -20px -20px -20px); transition-duration: .45s; }
body.has-slab .view.out .sheet-slot > .g-act.rise, body.has-slab .view.out .sheet-slot > .g-partsheet.rise { clip-path: inset(0 0 100% 0); transform: none; transition-duration: .22s; }

/* Audit loop 1 (docs/AUDIT-LOOPS-2026-10-24.md). */
/* 5: the multisig's keys take the row; the founder box keeps its word when the head is hidden. */
#genesisCard .g-council__keys tr { grid-template-columns: minmax(0, 1fr) auto !important; align-items: center; }
#genesisCard .g-council__keys td:first-child .dx-input { width: 100%; }
/* Round 5: one rule and one gap per key. The row and its cells each had padding and an underline,
   so five keys took 370 px and pushed the mint past the 1440x900 screen. */
#genesisCard .g-council__keys tr { padding: var(--sp-2) 0; }
#genesisCard .g-council__keys td { padding: 0 var(--sp-3) 0 0; border-bottom: 0; }
/* The multisig's table showed its five keys inside a 220 px box that scrolled inside the card, which
   scrolled too. The keys now take their own height; only more than five make the card scroll. */
#mintCard .g-council .dx-table-wrap { max-height: none; overflow: visible; }
/* "+ Add signer" sits beside the line that says how many keys the multisig has, not on its own row. */
#mintCouncil { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-4); align-items: center; }
#mintCouncil > .mint-field-row, #mintCouncil > .dx-table-wrap { grid-column: 1 / -1; }
#mintCouncil > #mintCouncilCheck { grid-column: 1; order: 1; }
#mintCouncil > .treasury-actions { grid-column: 2; order: 2; }
/* The mint's four facts are short but the supply: one row, the supply widest. */
#mintCard .gi-facts { grid-template-columns: minmax(0, 2.3fr) repeat(3, minmax(0, 1fr)); }
/* A phone's card is too narrow for one row: two by two there. */
@container (max-width: 350px) { #mintCard .gi-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The step strip, the fold and the sign bar keep their parts with less air round them. */
.g-app .sheet-slot > #genesisCard > .g-act__top { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
#mintCard details.dx-disclosure > summary { padding: 0; }
#genesisPage #genesisCard #mintCard .g-mint__go { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
/* The mint's reason sits beside the action when it fits and under it when it does not (fit round, 2026-11-12). It was a fixed column: "Signed in. Signing with
   <64 hex characters>" took a 90 px column beside a 300 px button and ran 14 lines down it. */
@media (min-width: 981px) {
  #mintCard .g-mint__go { flex-wrap: wrap; }
  #mintCard .g-mint__go .gi-why { flex: 1 1 14em; min-width: min(14em, 100%); }
}
#mintCard .gi-kvline[hidden] { display: none; }
/* A founding signer is one line: the key, its status, Remove. It took two lines and two rules each. */
/* Four cells a row (member, key, status or founder, action): the grid had three columns, so the fourth (Remove, or Sign) wrapped to a second line in every row. */
#daoSignerRows tr { grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0 var(--sp-4); padding: var(--sp-2) 0; }
#daoSignerRows td:first-child { grid-column: auto; }
#genesisCard #daoSignerRows td { padding: 0; border-bottom: 0; }
/* A step's action keeps its reason beside it when the reason fits in 14em (about 150 px) and wraps under the buttons, on a row of its own, when it does not. The rule
   was "never wrapped": with two buttons the reason got 35 px and ran one word (a Content ID, one letter) per line, 2016 px down the Token card (fit round, 2026-11-12). */
@media (min-width: 981px) {
  #genesisPage #genesisCard :is(.g-step__foot, .gi-foot) { flex-wrap: wrap; }
  #genesisPage #genesisCard :is(.g-step__foot, .gi-foot) > :not(button) { flex: 1 1 14em; min-width: min(14em, 100%); }
  /* The Safes foot holds three buttons and a refusal as long as a sentence. Beside them the reason got a ~35 px column and
     wrapped one letter per line at 1280x720 (rehearsal 8). It takes its own row under the buttons here. */
  #genesisPage #genesisCard .g-dist__acts.gi-foot { flex-wrap: wrap; }
  #genesisPage #genesisCard .g-dist__acts.gi-foot > .dx-help { flex: 1 1 100%; }
  /* The Custody foot has the same fault (rehearsal 13): Open founding and Copy signing link leave the status a ~50 px column, so the late-vote refusal
     ("Not signed. The founding of fxndao was opened 131 s ago ...") wrapped one word per line and ran off the card. It takes its own row here too. */
  /* Only once the round is open (the link button shows) or the status is a refusal: before Open the one-line plan note keeps its place, so Custody still fits 1280x720 (530 > 530). */
  #genesisPage #genesisCard #daoFoundStep .gi-foot:is(:has(> #daoCopyLink:not([hidden])), :has(> #daoFoundStatus[data-tone="err"])) { flex-wrap: wrap; }
  #genesisPage #genesisCard #daoFoundStep .gi-foot:is(:has(> #daoCopyLink:not([hidden])), :has(> #daoFoundStatus[data-tone="err"])) > .dx-help { flex: 1 1 100%; }
}
/* Custody before Open at 1280x720 was 41 px too tall and the card scrolled (rehearsal 8). An actions row whose only button is hidden (the plan locks the signers,
   so "+ Add signer" is hidden) took 22 px and a gap; it takes none now. The step's gap drops one notch on a short window; measured 571 > 530 before, 530 > 530 after. */
#genesisCard .treasury-actions:not(:has(> :not([hidden]))) { display: none; }
@media (max-height: 740px) { #genesisCard #daoFoundStep { gap: var(--sp-3); } }
#mintCard, #mintForm { gap: var(--sp-4); }
@container (max-width: 520px) {
  #genesisCard .g-council__keys td:nth-child(2) { display: inline-flex !important; align-items: center; gap: var(--sp-3); }
  #genesisCard .g-council__keys td:nth-child(2)::before { content: "Founder"; font: 500 var(--fs-tertiary)/1 var(--font-meta); letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--text-muted)); }
}
/* 6 and 7 (the tiles' reasons, the phone disc's band) are css/genesis-home.css's now. */

/* (Distribution's sheet columns, audit round 6 and A-DI1: replaced 2026-11-25 by a full-width table on its own page, css/genesis-home.css.) */
/* A short screen (1280x720): the step strip goes. The page's head says "Step 05 of 06" and the
   arrows under the stage count 05 / 06, so the strip only repeated them, at 60 px. */
@media (min-width: 981px) and (max-height: 760px) {
  .g-app .sheet-slot > #genesisCard > .g-act__top { display: none; }
  /* The multisig's five keys and its two fields stand in closer rows; the fields are the kit's. */
  #mintCouncil { row-gap: var(--sp-3); }
  .g-app .sheet-slot > #genesisCard > .g-step[data-active] { padding-top: var(--sp-4); }
  #mintCard, #mintForm { gap: var(--sp-3); }
  #genesisPage #genesisCard #mintCard .g-mint__go { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
  #drawerOps .g-budgets { gap: var(--sp-3); }
  #drawerOps .g-budgets__key { font-size: var(--fs-tertiary); }
  #drawerOps .g-budgets__detail { padding: var(--sp-3) var(--sp-4); }
}

/* ===== Fit round (2026-11-12): every step panel fits 1280x720 and 1440x900, and no card scrolls inside itself. =====
   The FXN Basalt face added about 35 px to every card, and the states that had never been fitted (no founding plan read, the clock running, the
   mint with a non-genesis key, the token after publish, the Safes before they exist) were 100 to 1500 px too tall. What moved one step deeper:
   Custody's facts row went into Details; the Mint panel took two views (Mint, Multisig) the way Token and Custody have two or three; the Safes
   panel took two (Approvals, Signers). Nothing was removed, shrunk below the type scale, or put off the space scale. */

/* Custody: the DAO name and the signatures needed each take their label beside them, on one row (stacked they took 59 px, beside each other 38). Once the plan
   locks them they are values, not two boxes. */
#daoFoundStep .mint-field-row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
#daoFoundStep .mint-field-row > .dx-field { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--sp-4); }
@media (max-width: 700px) { #daoFoundStep .mint-field-row, #daoFoundStep .mint-field-row > .dx-field { grid-template-columns: minmax(0, 1fr); } }
#daoFoundStep .dx-input:disabled {
  min-height: 0; height: auto; padding: 0; border-color: transparent; background: transparent; opacity: 1; text-overflow: ellipsis;
  font: 600 var(--fs-secondary)/1.3 var(--font-body); color: hsl(var(--text-strong)); -webkit-text-fill-color: currentColor;
}

/* A disclosure that opens becomes the view (Custody's Details): the form steps aside, and the tabs and the action row stay. Closing it brings the form back.
   Opened in place it added 140 px to a card that was already full. */
#daoCard:has(> details.dao-details[open]) #daoFoundStep > :not(.gi-foot, .dx-h3, #daoWindowNote) { display: none; }
/* UI sweep 2026-11-13 round 2 (A-C2): the clock's note stays. At "time over" with Details open it was hidden, so the card showed
   "0 of 4 signatures" and the log but not "Time is over ... Do not send another vote", the one line that says what to do.
   It takes the room the form left, above the action row, so the Details view and its log keep their place (the log measured 76 in 76). */
#daoCard:has(> details.dao-details[open]) #daoWindowNote { order: -1; margin: 0; }
/* Round 2: Members and Details are two views of one card: while one is open the other one's summary steps aside. */
#daoCard:has(> details.dao-details[open]) > details.dao-details:not([open]) { display: none; }
#daoMembers[hidden] { display: none; }

/* Mint, Multisig view: the tab already names the group, so its legend stays for screen readers only; the DAO name and the signatures needed share one row with
   their labels beside them (two stacked fields took 59 px, one row takes 38). */
#genesisCard #mintCouncil > legend { position: absolute; float: none; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#mintCouncil .mint-field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
#mintCouncil .mint-field-row > .dx-field { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--sp-4); }

/* Custody: "+ Add signer" sits beside the tabs; the co-signer's signature box keeps its Add beside it; a key and a row's buttons stay on one line. */
.g-head__add { margin-left: auto; }
.g-act[data-size="rest"] .g-step__head > .g-head__add { display: none; }
#daoCard .dao-paste { flex-wrap: nowrap; align-items: flex-end; margin-top: 0; }
#daoCard .dao-paste .dx-field { flex: 1 1 0; min-width: 0; }
#daoSignerRows .dao-key { white-space: nowrap; }
#genesisPage #daoSignerRows .dx-btn { margin: 0; }
#daoSignerRows .dx-btn--solid::after { content: none; }

/* Token: Name and Symbol share a row; the two pickers share a row; the preview is of the name, the tagline and the images, so the Details view does not need it. */
#metaGroupName { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: var(--sp-4); }
#metaGroupName > .dx-field:nth-child(3) { grid-column: 1 / -1; }
#metaGroupImages { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-4); align-items: start; }
#metaCard:has(#metaGroupDetails[data-active]) .meta-preview { display: none; }
/* The published Content ID shows short, with its Copy button: both in the one step the rest of the action row's words are in (11 px, and a 28 px button). */
#genesisCard .gi-foot .g-step__kv dd { font: 500 var(--fs-tertiary)/1.3 var(--font-meta); }

/* The router gives every direct child of a step `display: revert` (css/genesis-app.css), which beats the rule that hides a view that is not chosen; the Safes views are direct
   children of the step, so they say it again here. */
#genesisCard .g-step > .g-group { display: grid; }
#genesisCard .g-step > .g-group:not([data-active]) { display: none; }

/* Custody, a vote refused (status in tone "err"): the refusal and the clock line say the one thing to read; the member's instructions (six lines when time is over) wait until the
   refusal is dealt with. With all three the card was 620 px in 530 px at 1280x720. */
#daoCard:has(#daoFoundStatus[data-tone="err"]) #daoMemberLead { display: none; }

/* Release: the body read from the paste stays hidden until one is read (inside a view it no longer meets the router's rule that kept it so). */
#releaseBody[hidden] { display: none; }
/* Mint: with the network refusing, the Multisig view keeps the refusal's title only; the whole refusal (failure, what is missing, the remedy) is in the Mint view, one tab over.
   Both together were 640 px in a 530 px card. */
#mintCard:has(#mintMultisigPanel[data-active]) #mintWireRefusal .dx-refusal > :not(.dx-refusal__code) { display: none; }

/* Safes (2026-11-29 redesign): two numbered parts side by side, Approve (the 5 members) and Create (the 6 safes). Each row is
   one line: a dot, a name, a short key or amount, a state word. A dot is the state's colour: trust when done, drift while a
   member's quantum-safe half is missing, faint while waiting. The one action sits in the foot. */
#treasuryCard .g-sf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
#treasuryCard .g-sf__part { display: grid; gap: var(--sp-3); align-content: start; min-width: 0; }
#treasuryCard .g-sf__head { display: flex; align-items: baseline; gap: var(--sp-3); margin: 0; padding-bottom: var(--sp-2); border-bottom: 1px solid hsl(var(--border-subtle)); }
#treasuryCard .g-sf__n { font: 500 var(--fs-tertiary)/1 var(--font-meta); color: hsl(var(--text-muted)); }
#treasuryCard .g-sf__name { font: 600 var(--fs-secondary)/1.2 var(--font-display); color: hsl(var(--text-strong)); }
#treasuryCard .g-sf__count { margin-left: auto; font: 500 var(--fs-tertiary)/1 var(--font-meta); letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--text-muted)); }
#treasuryCard .g-sf__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-1); }
#treasuryCard .g-sf__row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: var(--sp-1) 0; font-size: var(--fs-tertiary); line-height: 1.4; }
#treasuryCard .g-sf__dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--text-faint)); }
#treasuryCard .g-sf__row[data-state="ok"] .g-sf__dot { background: hsl(var(--trust)); }
#treasuryCard .g-sf__row[data-state="part"] .g-sf__dot { background: hsl(var(--drift)); }
#treasuryCard .g-sf__label { font-family: var(--font-sans); color: hsl(var(--text-strong)); white-space: nowrap; }
#treasuryCard .g-sf__row[data-you] .g-sf__label { font-weight: 600; }
#treasuryCard .g-sf__sub { font-family: var(--font-meta); color: hsl(var(--text-muted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
#treasuryCard .g-sf__state { font: 500 var(--fs-tertiary)/1 var(--font-meta); letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--text-muted)); white-space: nowrap; }
#treasuryCard .g-sf__row[data-state="ok"] .g-sf__state { color: hsl(var(--trust)); }
#treasuryCard .g-sf__row[data-state="part"] .g-sf__state { color: hsl(var(--drift)); }
@media (max-width: 720px) { #treasuryCard .g-sf { grid-template-columns: minmax(0, 1fr); } }
/* Sending to other keys is a separate job: it shows only after every safe exists. */
#treasuryCard:not([data-done]) #sendOther { display: none; }

/* Safes: a disclosure that opens becomes the view, as Custody's Details does: the two parts and the plan line step aside. Send to
   other keys also puts the action away, because it has its own. */
#genesisCard[data-size="open"] #treasuryCard:has(> details[open]) :is(#distFlow, .g-logrow, #distState, > details:not([open])) { display: none; }
#genesisCard[data-size="open"] #treasuryCard:has(#sendOther[open]) .g-dist__acts { display: none; }

/* Token, on a screen under 880 px high (1440x900 is 858 inside the browser): the four facts take one row at 11 px, the description four lines. */
@media (min-width: 981px) and (max-height: 880px) {
  #metaCard .gi-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #metaCard .gi-facts dd { font-size: var(--fs-tertiary); }
  .dx-textarea#metaDescription { min-height: 88px; }
}

/* A short window (1280x720): one step less air between rows, on the fields and in the action row, so a form of five keys and its action fit the card. */
@media (min-width: 981px) and (max-height: 780px) {
  .g-app .sheet-slot > #genesisCard > .g-step[data-active] { gap: var(--sp-3); padding-top: var(--sp-3); }
  /* the mint's refusal names the failure at 18 px and holds what is missing and the remedy at 11 px: it took 335 px of a 530 px card */
  #mintWireRefusal .dx-refusal { padding: var(--sp-4); gap: var(--sp-2); }
  #mintWireRefusal .dx-refusal dl { font-size: var(--fs-tertiary); gap: var(--sp-2) var(--sp-4); }
  #genesisPage #genesisCard .gi-foot { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
  #genesisCard .g-council__keys tr { padding: var(--sp-1) 0; }
  #daoSignerRows tr { padding: var(--sp-1) 0; }
  .dx-textarea#metaDescription { min-height: 92px; height: 92px; }
  #genesisCard .g-dist .dx-textarea { min-height: 56px; height: 56px; }
  #genesisCard .meta-preview-cover { height: 40px; }
  #genesisCard .meta-preview-body { padding: var(--sp-3) var(--sp-4); }
  /* a log is the wire's transcript: its window shows three lines whole (it showed one and a half) and older lines scroll */
  #genesisCard .log-list.dx-log { max-height: 60px; padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
}

/* Round 2 (2026-11-12). A step's log: the card shows the newest line only, up to two lines, and "Log (n)" opens the whole log as the view. The rows above it step aside while it
   is open, and the log is then the one list in the view, so it may scroll in itself. The full text of the newest line is in its title. js/genesis-inner.js builds the row. */
#genesisCard .g-logrow { display: flex; align-items: flex-start; gap: var(--sp-4); }
#genesisCard .g-logrow[data-quiet] { display: none; }
#genesisCard .g-logrow > .log-list.dx-log { flex: 1 1 0; min-width: 0; max-height: none; overflow: visible; padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
#genesisCard .g-logrow > .log-list.dx-log > li:not(:last-child) { display: none; }
#genesisCard .g-logrow > .log-list.dx-log > li:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#genesisCard .g-logbtn {
  flex: none; min-height: var(--dxt-key-h); padding: 0 var(--sp-4); border: 0; background: hsl(var(--raised)); box-shadow: var(--dxt-key); color: hsl(var(--text-strong)); cursor: pointer;
  font: 600 var(--fs-tertiary)/1 var(--font-sans); letter-spacing: var(--dxt-key-space); text-transform: uppercase; white-space: nowrap; border-radius: var(--dxt-r);
}
#genesisCard .g-logbtn[aria-expanded="true"] { color: hsl(var(--primary)); }
#genesisCard .g-logbtn:hover { background: color-mix(in oklab, hsl(var(--text-strong)) 12%, hsl(var(--raised))); }
#genesisCard .g-logbtn[hidden] { display: none; }
#genesisCard .g-step[data-log-open] > :not(.g-step__head, .gi-foot, .g-dist__acts, .g-logrow, .g-dist__payout) { display: none; }
/* The payout safe line shows in the Log view only, under the log, and not at all while empty. */
#genesisCard .g-step > .g-dist__payout { display: none; margin: 0; overflow-wrap: anywhere; }
#genesisCard .g-step[data-log-open] > .g-dist__payout:not(:empty) { display: block; }
#genesisCard .g-step[data-log-open] > .g-logrow { flex-wrap: wrap; }
#genesisCard .g-step[data-log-open] > .g-logrow > .log-list.dx-log { flex-basis: 100%; order: 2; max-height: 250px; overflow: auto; }
#genesisCard .g-step[data-log-open] > .g-logrow > .log-list.dx-log > li { display: block; }
#genesisCard .g-step[data-log-open] > .g-logrow > .g-logbtn { order: 1; }
@media (min-width: 981px) and (max-height: 780px) {
  #genesisCard .g-step[data-log-open] > .g-logrow > .log-list.dx-log { max-height: 170px; }
}

/* Round 4 (2026-11-12), Custody, time over, Details open at 1280x720: the one log in that view measured 76 px of text in a 58 px window (rehearsal 15, round 2, "Not fixed" item 3).
   The window gets the 76 px plus its 2 px border, so the log shows whole instead of scrolling in itself. */
@media (min-width: 981px) and (max-height: 780px) {
  #genesisCard .dao-more .log-list.dx-log { max-height: 78px; }
}

/* Round 4 (2026-11-12), the review dialog at 1280x720 (window 1280x678). A single transfer review measured 773 px in 676, a stake review 709, a fee proposal 681 (rehearsal 19, step R);
   the "Time stamp" fact added 28 px. The review keeps every fact and every closed "Inspect ..." / "Exact ... bytes" disclosure. The air between its parts moves one step down the spacing tokens:
   panel padding 29 -> 18 (saves 22 across top and bottom), fact cells 11 -> 7 (8 per row), digest 18 -> 11 (14), the gap above each of the four closed disclosures 11 -> 7 (16),
   the gap above the safety line 18 -> 11 and above the description 11 -> 7 (11). A window taller than 780 px keeps the current spacing, and the review fit there (856 in 856). */
/* Round 5 (2026-11-12), the review's digest box. Rehearsal 20 read the review panel at 1261 px in 676 (Approve as me), 3836 in 676 (quantum-safe filing, all 24) and 1346 in 856 (create).
   Cause: js/genesis-authorization.js passes the whole unsigned record (or transfer listing) as `manifestDigest`, where the DAO page's js/pages/resolver-dao.js reviewView passes a 64-hex SHA-256.
   The shared dialog (js/ark/authorization-dialog.js line 55) prints that text in `.admin-auth-digest code`, which vendor/defxn/defxn-product.css line 1559 does not bound, so the panel grew with the record.
   The DAO page's long text sits in a closed `pre` that vendor line 1564 caps at 220 px; this gives the digest box the same 220 px cap and lets it scroll inside itself. It also shrinks first
   when the panel is full (the panel is a flex column capped at the window, genesis.css line 1687), so the rest of the review keeps its room and Approve stays on screen. There is no fixed floor: a floor would
   grow the short digests (the network-setting review, 676 in 676) that fit today.
   All of the text stays in the box and in the "Exact ... bytes" disclosures; nothing is cut or changed. */
/* Round 6 (2026-11-12), the digest box after rehearsal 22. Rehearsal 22 read the box shrunk to 34 px (token details, 1.3 of 2.7 lines, first line cut in half), 58 px (network setting) and 119 px (quantum-safe filing).
   The reviews now pass the 64-hex SHA-256 of the record (js/genesis-authorization.js scopedView, js/genesis-dao-records.js review), as the DAO page does, so the box holds one line of hex and never needs to shrink.
   It keeps its content height (flex: none) and the 220 px cap as a guard. The panel, not the box, takes any squeeze. */
.admin-auth-digest { flex: 0 0 auto; max-height: 220px; overflow: auto; }

@media (max-height: 780px) {
  .admin-auth-panel { padding: var(--sp-5); }
  .admin-auth-description { margin-top: var(--sp-3); }
  .admin-auth-context > div { padding: var(--sp-3) var(--sp-4); }
  .admin-auth-digest { padding: var(--sp-3) var(--sp-4); }
  .admin-auth-context { margin: var(--sp-3) 0; }
  .admin-auth-panel details { margin-top: var(--sp-3); }
  .admin-auth-safety { margin-top: var(--sp-3); }
}

/* The review dialog layout (UI sweep 2026-11-13, sweep A) lives in the product kit since fix/ui-1113 4733da0
   (vendor/defxn/defxn-product.css, the admin-auth block); this page carries no copy. */

/* UI sweep 2026-11-13 (A-M1): Mint, Multisig. Each member key is a two-line 11 px mono box, so all 64 characters show (js/genesis-council.js). */
#genesisPage #genesisCard .g-council__keys td textarea.g-council__key {
  display: block; box-sizing: border-box; width: 100%; min-height: 0; height: auto; resize: none; overflow: hidden;
  padding: var(--sp-2) var(--sp-3); font: 400 var(--fs-tertiary)/1.4 var(--dx-font-mono); overflow-wrap: anywhere; word-break: break-all;
}

/* ===== Spacing round (2026-11-25). Owner: "There's a spacing issue > Custody and this is a cmon iussue across all pages almost", then
   "also no inner scroll inside cards which now exists ... like the members that is bad design". The central rule is in
   css/genesis-home.css "THE CARD'S RHYTHM"; what follows are the cases it cannot reach. Sizes only from the sp and fs scales. ===== */

/* NO SCROLL BOX IN A CARD. A list shows at full height; the page scrolls. The member rows, the safes table, every step's log, a treasury's
   moves and the DAO file each had a max-height and overflow: auto (168, 168, 52 to 250, 160 and 168 px). Popups keep their own rules. */
#main :is(#daoCard, #treasuryCard) .dx-table-wrap,
#main .log-list.dx-log,
#main #genesisCard .log-list.dx-log,
#main #genesisCard .g-step[data-log-open] > .g-logrow > .log-list.dx-log,
#main #genesisCard .dao-more .log-list.dx-log,
#main .g-moves,
#main #daoFileView:not([hidden]) { max-height: none; overflow: visible; }
/* the one "Show all N" under a long payout list (js/genesis-schedule.js, learn/mining.js) */
.g-showall { justify-self: start; align-self: start; }
.g-showall[hidden] { display: none; }

/* CUSTODY MEMBERS: one compact row per member, two columns at 1280 and wider, no scroll box. A row is the member's name, its founder box
   (or status) and Remove (or Sign) on one line, its key field under them at the row's full width. The table's cells keep every id and data
   hook js/genesis-dao.js reads (#daoSignersTable, #daoSignersHead, #daoSignerRows, .dao-seat, .dao-key, .dao-signer-status,
   .dao-signer-actions, input[data-signer-key]); only their layout changes. The column heads are not shown: each field names itself. */
#main #genesisCard #daoSignersTable { display: block; inline-size: 100%; table-layout: auto; }
#main #genesisCard #daoSignersTable > thead { display: none; }
#main #genesisCard #daoSignerRows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--sp-6); }
@media (min-width: 1280px) { #main #genesisCard #daoSignerRows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#main #genesisCard #daoSignerRows > tr {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "seat state act" "key key key";
  align-items: center; gap: var(--sp-3) var(--sp-4); padding: var(--sp-4) 0; border-block-end: 1px solid hsl(var(--border-subtle));
}
#main #genesisCard #daoSignerRows > tr > td { display: block; min-inline-size: 0; padding: 0; border: 0; }
#main #genesisCard #daoSignerRows > tr > td:nth-child(1) { grid-area: seat; }
#main #genesisCard #daoSignerRows > tr > td:nth-child(2) { grid-area: key; }
#main #genesisCard #daoSignerRows > tr > td:nth-child(3) { grid-area: state; }
#main #genesisCard #daoSignerRows > tr > td:nth-child(4) { grid-area: act; }
#main #genesisCard #daoSignerRows > tr > td:nth-child(4):empty { display: none; }
#main #genesisCard #daoSignerRows td .dx-input { inline-size: 100%; }

/* TOKEN: the fields and the preview stood with no gap. genesis-app.css gives a step's children "display: revert", so the layout was a
   block and its 11px gap did nothing. */
#genesisCard .g-step > .meta-layout { display: grid; }

/* HOME: the hero's words, the network line and the two actions took 11px steps; the line sat on the lede and on the button. */
.gd-hero .gd-copy { gap: var(--sp-5); }

/* DISTRIBUTION, FUNDS, FEES, OPERATIONS: the head's line under the title is the page's lede, 18px like every other page. */
.g-drawer__head > .g-drawer__state { font: 400 var(--fs-secondary)/1.5 var(--font-sans); color: hsl(var(--text)); }

/* START: a price that was not read is a note in the card (11px, the warning colour), not an 18px paragraph over the Launch key. */
.gs-review .gs-price__v[data-state="unread"] { font: 400 var(--fs-tertiary)/1.45 var(--font-sans); }

/* FUNDS: the two cards of one row take one height. */
.g-tlist { align-items: stretch; }

/* THE SPLIT, the Funds tile: three counts side by side in a 60px column cut "Treasuries" to "TREA". One count a line: its name, then its value. */
.cs-counts { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
.cs-counts .g-tile { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--sp-4); }
.cs-counts .g-tile__note:empty { display: none; }

/* A FAILED READ carries a node's address and a 64-character hash. The text breaks inside its own card, and the card takes the text's height. */
.gs-review, .gd-detail, .cs-split__fig, .log-list.dx-log, .view[data-view="learn"] .l-panel { grid-template-columns: minmax(0, 1fr); }
:is(.gs-review, .gd-detail, .cs-split__fig, .cs-read, .log-list.dx-log, .view[data-view="learn"] .l-panel) * { overflow-wrap: anywhere; }
:is(.gs-review, .gd-detail, .cs-split__fig, .view[data-view="learn"] .l-panel) > * { min-inline-size: 0; }
/* The kit's card is a column, so the caption's 100% basis was a height and the note went out of the card at its right. The card is a row that wraps. */
.view.page[data-view="learn"] .cs-read { flex-direction: row; min-block-size: min-content; }
.view.page[data-view="learn"] .cs-read > * { min-inline-size: 0; max-inline-size: 100%; }
