/* DAO design v2 on the live pages (2026-11-28, owner confirmed). Layer: app (dao.defxn.com).
   Reader: whoever changes how index.html (every view) or operators.html looks.

   The design is docs/dao-design/ (dao.css is its system, NOTES.md its reasons). This sheet copies the parts of dao.css these
   pages use (the DAO head and its emblem, the six tabs, plates, pills, the command well, the front page's hero) and restyles
   the live pages' own classes into the same look: the kit bar (mountShell), fg-* from css/fxn-govern.css, fd-* from
   css/fxn-dao.css, the act drawer, the alerts drawer and the sign-in dialog. It is loaded last on each page.

   It replaces css/dao-direction.css on index.html, which does not load that sheet. What of it still
   applies is restated here, by name: the kit card with no glass, the one dominant key, folded lists, and the mech frame on the
   sign-in dialog. operators.html loads both: it still needs css/dao-direction.css for its roster column and 3D card.
   css/fxn-govern.css is shared with treasury.defxn.com as a byte copy, so its paint is answered here and never edited there.

   Units: type sizes are var(--fs-*) steps and padding, margin and gap are var(--sp-*) steps (test/design-scales.test.mjs).
   Colours are theme roles, hsl(var(--role)). Faces are var(--font-display), var(--font-sans) and var(--font-mono).
   The prefix `:root[data-theme] body.dao` outweighs the kit's direction sheets, which name `:root[data-theme="defxn-teal"]`. */

/* --dao-head-h is the places row (css/dao-frame.css). --dao-gut is the edge of the bar and of every page: the kit's 1280px column
   (2026-11-30). --dao-380, --dao-576 and --dao-900 are the panel edges, measured from that column. Keys, tracks and wells take the kit's
   sizes: --dxt-key-h, --dxt-row-h, --dxt-key-font, --dxt-key-space, --dxt-r, --dxt-key, --dxt-well. */
/* --dao-edge is where a panel starts: the screen's side up to 1280, then 29 left of the column's words. */
body.dao { --dao-head-h: 52px; --dao-gut: var(--dxt-col); --dao-edge: max(0px, calc(var(--dao-gut) - var(--sp-6))); --dao-380: calc(var(--dao-gut) + 351px); --dao-576: calc(var(--dao-gut) + 547px); --dao-900: calc(var(--dao-gut) + 871px); }
/* The bar's height, its column on a phone and the place of its mark are the kit's since 2026-11-30. */

/* THE GROUND ------------------------------------------------------------------------------------------------------------
   One ground for every DAO page (design laws: no page sets a backdrop of its own beyond the kit's). It is the design's: two soft
   glows on the canvas, no dot field. The body is one column; on a desktop window the page never scrolls, only lists inside plates do. */
:root[data-theme] body.dao {
  display: block; min-height: 100dvh; margin: 0; color: hsl(var(--text));
  font: 400 var(--fs-secondary)/1.45 var(--font-sans); font-variant-numeric: tabular-nums;
  background:
    radial-gradient(1200px 600px at 78% -10%, hsl(var(--canvas-glow-primary)), transparent 70%),
    radial-gradient(900px 500px at 0% 110%, hsl(var(--canvas-glow-secondary)), transparent 70%),
    hsl(var(--canvas));
  background-attachment: scroll;
}
@media (min-width: 981px) { :root[data-theme] body.dao { height: 100dvh; overflow: hidden; } }

/* The bar's look is css/fxn-govern.css, one copy for this site and the Treasury site (2026-11-29). */

/* 2026-11-29: the DAO head, its tabs and the drawn emblem left for the one frame (css/dao-frame.css). */

/* Shared words (dao.css, "Type roles" and "Pills"). */
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-3); font: 600 var(--fs-tertiary)/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: hsl(var(--primary)); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.t-cap { font: 600 var(--fs-tertiary)/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: hsl(var(--text-muted)); }
.t-h3 { font: 700 var(--fs-secondary)/1.25 var(--font-display); color: hsl(var(--text-strong)); }
.t-small { font: 400 var(--fs-tertiary)/1.5 var(--font-sans); color: hsl(var(--text-muted)); }
.row { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.stack { display: grid; gap: var(--sp-4); align-content: start; min-height: 0; }
.stack--6 { gap: var(--sp-6); }
.plate--lit { box-shadow: var(--dxt-plate-edge), 0 0 0 1px hsl(var(--primary) / .55), 0 0 29px hsl(var(--primary) / .12); }
.plate--link { text-decoration: none; transition: box-shadow var(--dxt-t); }
.plate--link:hover { box-shadow: var(--dxt-plate-edge), 0 0 0 1px hsl(var(--border-strong)); }

/* A well that holds a command to run (dao.css, "Wells"): the prompt mark, the line, its copy key. */
.cmd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-5);
  border-radius: var(--dxt-r); background: var(--dxt-well); box-shadow: var(--dxt-well-edge); font: 400 var(--fs-tertiary)/1.5 var(--font-mono); color: hsl(var(--text-strong)); }
.cmd::before { content: "$"; color: hsl(var(--primary)); }
.cmd > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* THE KIT CARD, THE ONE KEY, FOLDED LISTS (from css/dao-direction.css, owner rulings 2026-11-25) ------------------------------
   Every card is the kit's .dx-card with no glass behind it. A card with no layout of its own is a column on the kit's step. The one
   dominant action is the kit's solid key (go() keeps .fg-go as its hook): its old cut corner, spread label and arrow are taken off.
   A long list shows a few rows and "Show all N" (clampLists); here a list also scrolls inside its plate, so the page never does. */
:root[data-theme] body.dao :is(.fg-panel, .fg-rail).dx-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
:where(.dao .dx-card:not([hidden], .fg-rail)) { display: flex; flex-direction: column; gap: var(--sp-4); }
:root[data-theme] body.dao .fg-go.dx-btn { clip-path: none; justify-content: center; gap: var(--sp-3); }
:root[data-theme] body.dao .fg-go.dx-btn:not([aria-busy="true"])::after { content: none; }
:root[data-theme] body.dao pre.dx-scroll { white-space: pre-wrap; overflow-wrap: anywhere; }
[data-fg-folded] { display: none !important; }
.fg-more-rows { align-self: flex-start; justify-self: start; margin-top: var(--sp-3); }

/* THE DESK (the Votes view): the list plate on the left, the picked plate on the right, the rules as one quiet strip under both.
   It is exactly the window under the bar and the DAO head, so 1280x720 and 1440x900 show it whole with no page scroll. */
:root[data-theme] body.dao .fg-main {
  max-width: none; height: calc(100dvh - var(--dx-bar-h) - var(--dao-head-h)); min-height: 0; box-sizing: border-box;
  padding: var(--sp-5) var(--dao-gut); gap: var(--sp-5) var(--sp-6);
  grid-template-columns: minmax(340px, 34fr) minmax(0, 66fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "lead panel" "rail rail";
}
:root[data-theme] body.dao .fg-lead { display: flex; flex-direction: column; gap: var(--sp-4); min-height: 0; animation: none; }
:root[data-theme] body.dao .fg-lead > * { flex: 0 0 auto; }
:root[data-theme] body.dao .fg-lead__head { gap: var(--sp-3); }

/* The list plate: its head (the count and the filter), then the rows, which alone scroll. */
:root[data-theme] body.dao .fd-proposals.dx-card { flex: 1 1 auto; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--sp-4); min-height: 0; padding: var(--sp-5); }
:root[data-theme] body.dao .fd-proposals .fg-title { font: 700 var(--fs-secondary)/1.2 var(--font-display); letter-spacing: -.01em; text-wrap: nowrap; }
:root[data-theme] body.dao .fd-proposals .fg-title__then { display: inline; margin-left: var(--sp-3); color: hsl(var(--text-muted)); }
:root[data-theme] body.dao .fg-list { min-height: 0; overflow: auto; scrollbar-width: thin; max-height: none; gap: var(--sp-2); border-top: 0; padding-right: 0; }
:root[data-theme] body.dao .fg-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-4); align-items: center; min-height: var(--dxt-row-h); padding: var(--sp-3) var(--sp-4);
  border: 0; border-radius: var(--dxt-r); background: transparent; box-shadow: none; text-align: left; color: hsl(var(--text)); transition: background var(--dxt-t);
}
:root[data-theme] body.dao .fg-item:hover { background: hsl(var(--text-strong) / .05); }
:root[data-theme] body.dao .fg-item[aria-selected="true"] { background: hsl(var(--surface)); box-shadow: inset 3px 0 0 hsl(var(--primary)), inset 0 0 0 1px hsl(var(--border-subtle)); }
:root[data-theme] body.dao .fg-item__name { font: 700 var(--fs-secondary)/1.25 var(--font-display); letter-spacing: 0; color: hsl(var(--text-strong)); }
:root[data-theme] body.dao .fg-item__side { font: 600 var(--fs-tertiary)/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--text-muted)); }
:root[data-theme] body.dao .fg-item__sub { font: 400 var(--fs-tertiary)/1.4 var(--font-sans); color: hsl(var(--text-muted)); }
:root[data-theme] body.dao .fg-item__sub > span + span::before { content: "·"; margin-right: var(--sp-4); color: hsl(var(--text-faint)); }

/* The filter (.fg-seg) is the track of css/dao-panes.css. */

/* Needs you: the first alert for the signed-in key, as a lit plate over the list. Its sentence keeps three lines at most so the list keeps its room. */
:root[data-theme] body.dao .fd-needs.dx-card { gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); }
.fd-needs__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.fd-needs__text { margin: 0; font: 600 var(--fs-secondary)/1.3 var(--font-display); color: hsl(var(--text-strong));
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.fd-needs__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }

/* The tools under the list: one row, no rule above it. */
:root[data-theme] body.dao .fg-tools { padding-top: 0; border-top: 0; gap: var(--sp-3) var(--sp-5); }

/* The picked proposal: the large plate. Its body scrolls inside; its head and its one action stay. */
:root[data-theme] body.dao .fg-panel.dx-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--sp-4); min-height: 0; padding: var(--sp-6); animation: none; }
:root[data-theme] body.dao .fg-panel__head { border-bottom: 1px solid hsl(var(--border-subtle)); }
:root[data-theme] body.dao .fg-panel__body { overflow: auto; scrollbar-width: thin; max-height: none; }
:root[data-theme] body.dao .fg-panel__foot { border-top: 1px solid hsl(var(--border-subtle)); }

/* The rail: the rules and your power, as one quiet strip under both plates. */
:root[data-theme] body.dao .fg-rail.dx-card { display: flex; padding: 0; min-height: 56px; background: hsl(var(--surface) / .5); box-shadow: inset 0 0 0 1px hsl(var(--border-subtle)); }
:root[data-theme] body.dao .fg-tile--you { background: transparent; }
:root[data-theme] body.dao .fg-tile { padding: var(--sp-3) var(--sp-4); }

/* THE DRAWERS ----------------------------------------------------------------------------------------------------------------
   Every act drawer keeps its place (full height, from the right) and wears the popover frame of design v2.2: the mech card's frame, thin
   (4 px, a 7 px band), with no top tab. The frame draws the edge, so the drawer's own hairline and glass step aside. */
:root[data-theme] body.dao .fg-drawer { border-left: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
:root[data-theme] body.dao .fg-drawer__panel.mx-card { --mx-frame: 4px; --mx-band: 7px; --mx-strip-w: 18%; min-block-size: 0; padding: 0; }
:root[data-theme] body.dao .fg-drawer__panel.mx-card::before { display: none; }
:root[data-theme] body.dao .fg-drawer__panel.mx-card .fg-drawer__head { border-bottom-color: hsl(var(--border-subtle)); }

/* Alerts: the same drawer, hung under the bar at its right end as a popover, not across the window (design v2.2: flush, no pointer).
   js/fxn-dao-app.mjs names the open drawer in data-drawer; only this look reads it. Each alert is a row with a tone line and its own action. */
:root[data-theme] body.dao #drawer[data-drawer="alerts"] {
  margin: calc(var(--dx-bar-h) + var(--sp-2)) var(--dao-gut) auto auto; width: min(440px, calc(100vw - 2 * var(--sp-5)));
  height: auto; max-height: calc(100dvh - var(--dx-bar-h) - var(--sp-7));
}
:root[data-theme] body.dao #drawer[data-drawer="alerts"]::backdrop { background: transparent; }
:root[data-theme] body.dao #drawer[data-drawer="alerts"] .fg-drawer__panel { height: auto; max-height: calc(100dvh - var(--dx-bar-h) - var(--sp-7)); }
:root[data-theme] body.dao #drawer[data-drawer="alerts"] .fg-drawer__title { font-size: var(--fs-secondary); }
:root[data-theme] body.dao #drawer[data-drawer="alerts"] .fg-drawer__body { gap: var(--sp-3); padding: var(--sp-3); }
.dao .fd-alerts { gap: var(--sp-1); }
.dao .fd-alert { position: relative; align-items: center; gap: var(--sp-2) var(--sp-4); padding: var(--sp-4) var(--sp-3) var(--sp-4) var(--sp-5); border-top: 0; border-radius: var(--dxt-r-sm); }
.dao .fd-alert:hover { background: hsl(var(--text-strong) / .06); }
.dao .fd-alert::before { content: ""; position: absolute; left: var(--sp-2); top: var(--sp-4); bottom: var(--sp-4); width: 2px; border-radius: 2px; background: hsl(var(--border-default)); }
.dao .fd-alert:has(> .fg-stamp[data-tone="live"])::before { background: hsl(var(--primary)); }
.dao .fd-alert:has(> .fg-stamp[data-tone="warn"])::before { background: hsl(var(--drift)); }
.dao .fd-alert:has(> .fg-stamp[data-tone="danger"])::before { background: hsl(var(--danger)); }
.dao .fd-alert:has(> .fg-stamp[data-tone="info"])::before { background: hsl(var(--reference)); }

/* The bind command in the quantum-safe key drawer: the well sits in the drawer's right column with its copy key. */
.fd-cmd .dx-copy { white-space: nowrap; }

/* THE SIGN-IN DIALOG ----------------------------------------------------------------------------------------------------------
   It cannot carry the kit's classes: js/ark/authorization-dialog.js is a pinned shared file and the sign-in's buttons come from the
   pinned auth kit (js/admin/auth.js). So the popover frame is restated for it from the mech kit's own tokens (as css/dao-direction.css
   did, "MECH IN POPUPS"), now thin: a 4 px frame and a 7 px band. Its main key keeps the mech dominant key; the defxn.com choice is quiet. */
.dao flux-authorization-dialog .admin-auth-panel {
  --mx-cut: 18px; --mx-frame: 4px; --mx-band: 7px;
  border-style: solid; border-width: var(--mx-frame) var(--mx-frame) var(--mx-band);
  border-color: var(--mx-plate-hi) var(--mx-plate) var(--mx-rail) var(--mx-plate-hi);
  border-radius: var(--mx-cut); corner-shape: bevel; clip-path: none;
  background: var(--mx-well); color: hsl(var(--text));
  box-shadow: inset 0 0 0 1px var(--mx-line), 0 0 0 1px var(--mx-line), 0 29px 76px hsl(var(--theme-shadow));
}
.dao flux-authorization-dialog .admin-auth-panel > footer { background: var(--mx-well); }
.dao flux-authorization-dialog .admin-auth-panel > footer button.action:not(.secondary),
.dao #identityDialog #identityContainer [data-ark-auth="actions"] > button[data-kind="primary"] {
  --mx-cut: 14px;
  position: relative; min-block-size: 47px; margin-block-end: var(--sp-3); padding: var(--sp-3) var(--sp-6);
  border: 0; border-radius: var(--mx-cut); corner-shape: bevel;
  background: color-mix(in oklab, var(--mx-complement), var(--mx-light-hi) var(--mx-lift));
  color: var(--mx-ink);
  box-shadow: inset 2px 2px 0 color-mix(in oklab, var(--mx-plate-hi), transparent 20%), inset -2px -2px 0 color-mix(in oklab, var(--mx-plate-lo), transparent 30%),
    0 0 0 1px var(--mx-line), 0 7px 0 0 var(--mx-rail), 0 7px 0 1px var(--mx-line);
  font: 700 var(--fs-secondary)/1 var(--font-display); font-synthesis: none; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .14s ease, box-shadow .14s ease, color .14s ease, --mx-lift .14s ease;
}
.dao flux-authorization-dialog .admin-auth-panel > footer button.action:not(.secondary):is(:hover, :focus-visible):not(:disabled),
.dao #identityDialog #identityContainer [data-ark-auth="actions"] > button[data-kind="primary"]:is(:hover, :focus-visible):not(:disabled) { --mx-lift: 34%; }
.dao flux-authorization-dialog .admin-auth-panel > footer button.action:not(.secondary):focus-visible,
.dao #identityDialog #identityContainer [data-ark-auth="actions"] > button[data-kind="primary"]:focus-visible { outline: 2px solid var(--mx-light); outline-offset: 4px; }
.dao flux-authorization-dialog .admin-auth-panel > footer button.action:not(.secondary):disabled,
.dao #identityDialog #identityContainer [data-ark-auth="actions"] > button[data-kind="primary"]:disabled {
  background: var(--mx-complement); color: var(--mx-ink); filter: grayscale(1); opacity: .62; cursor: not-allowed;
}
.dao #identityDialog .identity-broker-option { background: transparent; color: hsl(var(--text-strong)); box-shadow: inset 0 0 0 1.5px hsl(var(--text-strong)); }

/* A narrow window: one column, and the page scrolls as a page again. */
@media (max-width: 980px) {
  :root[data-theme] body.dao .fg-main { height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "lead" "panel" "rail"; }
  :root[data-theme] body.dao .fg-list { max-height: 46vh; }
}

/* A SEND'S STEPS (2026-11-28, owner: "it took some time... that is a ux bug"): one live line under the button, drawn by js/fxn-dao-app.mjs
   `progressLine` from the send module's steps (dense-wire flx-lane-send.mjs `sendProgress`). A step is lit only when it is true; a step not
   reached yet is faint; Pending (drift) names its reason. No spinner: the seconds since signing count up in words. */
.fd-steps { display: grid; gap: var(--sp-2); }
.fd-steps__list { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: 0; padding: 0; list-style: none; counter-reset: fd-step; }
.fd-step { display: inline-flex; align-items: center; gap: var(--sp-2); font: 500 var(--fs-tertiary)/1.3 var(--font-sans); color: hsl(var(--text-faint)); counter-increment: fd-step; }
.fd-step::before { content: counter(fd-step); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px hsl(var(--border-default)); font: 600 var(--fs-tertiary)/1 var(--font-mono); }
.fd-step[data-lit="true"] { color: hsl(var(--text-strong)); }
.fd-step[data-lit="true"]::before { content: "✓"; background: hsl(var(--primary)); color: hsl(var(--canvas)); box-shadow: none; }
.fd-step[data-pending="true"] { color: hsl(var(--drift)); }
.fd-step[data-pending="true"]::before { box-shadow: inset 0 0 0 1px hsl(var(--drift)); }
.fd-steps__time { margin: 0; font: 500 var(--fs-tertiary)/1.3 var(--font-mono); color: hsl(var(--text-muted)); }

/* Send from a safe (drawPay, 2026-11-29): one row per signer, the same dots as genesis's Safes step. Trust when it counts, drift while
   its quantum-safe half is missing, faint while waiting. */
.fd-pay__part { display: grid; gap: var(--sp-2); }
.fd-pay__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)); }
.fd-pay__head b { font: 600 var(--fs-secondary)/1.2 var(--font-display); color: hsl(var(--text-strong)); }
.fd-pay__count { margin-left: auto; font: 500 var(--fs-tertiary)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--text-muted)); }
.fd-pay__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-1); }
.fd-pay__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; }
.fd-pay__dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--text-faint)); }
.fd-pay__row[data-state="ok"] .fd-pay__dot { background: hsl(var(--trust)); }
.fd-pay__row[data-state="part"] .fd-pay__dot { background: hsl(var(--drift)); }
.fd-pay__name { font-family: var(--font-sans); color: hsl(var(--text-strong)); white-space: nowrap; }
.fd-pay__row[data-you] .fd-pay__name { font-weight: 600; }
.fd-pay__key { font-family: var(--font-mono); color: hsl(var(--text-muted)); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-pay__state { font: 500 var(--fs-tertiary)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--text-muted)); white-space: nowrap; }
.fd-pay__row[data-state="ok"] .fd-pay__state { color: hsl(var(--trust)); }
.fd-pay__row[data-state="part"] .fd-pay__state { color: hsl(var(--drift)); }
