/* The DAO panes' parts, copied from the design system (docs/dao-design/dao.css, owner-confirmed boards, 2026-11-28). Layer: app.
   Reader: whoever builds or changes a pane of the DAO desk (/fxndao, /fxndao/votes, /fxndao/multisig, /fxndao/members,
   /fxndao/treasury, /fxndao/rules) or a site view (/explore, /create, /you).

   Why one sheet: every pane uses the same parts (plates, pills, seats, member glyphs, the tally, the phase line, lists, moves,
   tiles), so they are copied here once and each pane's own sheet (css/views/<pane>.css) holds only its layout. What dao.css has
   that the live pages already carry (the screens, the bar, the DAO head and its emblem, the overlays and popovers, the sign box)
   is left out: css/dao-v2.css and the kit hold those. This sheet loads before css/dao-v2.css, so the live rules win on a shared name.

   Sections copied: "Type roles" to "A ballot", then "Form wells" and "Choice tiles". Change a part in dao.css and here together. */
:root { --r-plate: 14px; --gut: var(--sp-6); }
/* The one height rule (2026-11-28): a desk pane fills the window under the kit bar and the DAO head, and a site view fills it under
   the bar, so no page scrolls on a desktop window; lists scroll inside their plates. The heights are the live page's own
   (--dx-bar-h from the kit bar, --dao-head-h from css/dao-v2.css). Each pane's sheet sets only its padding and inner layout. */
@media (min-width: 981px) {
  body.dao #desk .dao-pane:not([hidden]) { height: calc(100dvh - var(--dx-bar-h) - var(--dao-head-h)); min-height: 0; box-sizing: border-box; overflow: hidden; }
  body.dao .site-view:not([hidden]) { height: calc(100dvh - var(--dx-bar-h) - var(--dao-head-h)); min-height: 0; box-sizing: border-box; overflow: hidden; }
}
.dao-pane :is(h1, h2, h3, p, ul, ol, dl, figure) { margin: 0; }
.dao-pane :is(ul, ol).plain { list-style: none; padding: 0; }

/* ── Type roles. A page title is 18 to 29, a figure 29 (2026-11-30). ─────────────────────────────────── */
.t-hero { font: 700 var(--fs-primary)/1.1 var(--font-display); letter-spacing: -.02em; color: hsl(var(--text-strong)); }
.t-hero span { color: hsl(var(--text-muted)); }
.t-h2 { font: 700 var(--fs-primary)/1.1 var(--font-display); letter-spacing: -.01em; color: hsl(var(--text-strong)); }
.t-h3 { font: 700 var(--fs-secondary)/1.25 var(--font-display); color: hsl(var(--text-strong)); }
.t-lede { max-width: 52ch; color: hsl(var(--text)); }
.t-body { font-size: var(--fs-secondary); color: hsl(var(--text)); }
.t-small { font: 400 var(--fs-tertiary)/1.5 var(--font-sans); color: hsl(var(--text-muted)); }
.t-cap { font: 600 var(--fs-tertiary)/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: hsl(var(--text-muted)); }
.t-cap--faint { color: hsl(var(--text-faint)); }
.t-mono { font-family: var(--font-mono); }
.t-num { font: 700 var(--fs-primary)/1 var(--font-display); letter-spacing: -.01em; color: hsl(var(--text-strong)); }
.t-num small { font: 600 var(--fs-tertiary)/1 var(--font-mono); letter-spacing: .1em; color: hsl(var(--text-muted)); margin-left: var(--sp-2); }
.t-strong { color: hsl(var(--text-strong)); }
.t-ok { color: hsl(var(--primary)); }
/* A quiet act: the kit's text link (2026-11-30). .fr-q is css/dao-frame.css's name for it. A finger gets 44px. */
:is(.link, .fr-q) { display: inline-flex; align-items: center; justify-self: start; padding: var(--sp-2) 0; border: 0; background: none; cursor: pointer; text-align: left; color: hsl(var(--text-strong));
  font: 400 var(--fs-tertiary)/1.4 var(--font-sans); text-decoration: underline 1.5px; text-underline-offset: 4px; }
:is(.link, .fr-q):hover { color: hsl(var(--primary)); }
.link--go { color: hsl(var(--primary)); }
@media (max-width: 900px), (pointer: coarse) { :is(.link, .fr-q) { min-height: var(--dxt-key-h); } }

/* ── The track: the kit's .dx-tabs on the parts that are not a .dx- part. A well; the chosen one is the raised key in it, with the mint
   strip in its base (2026-11-30). ─────────────────────────────────────────────────────────────────────── */
.dao :is(.places nav, .xp-seg, .fg-seg, .ballot) { display: inline-flex; gap: var(--sp-2); padding: var(--sp-2); border: 0; border-radius: var(--dxt-r); background: var(--dxt-well); box-shadow: var(--dxt-well-edge); }
.dao :is(.xp-seg, .fg-seg, .ballot) { flex-wrap: wrap; overflow: visible; }
.dao :is(.places nav, .xp-seg, .fg-seg, .ballot) > :is(a, button, label) { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3); flex: none; box-sizing: border-box;
  min-height: var(--dxt-key-h); padding: 0 var(--sp-4); border: 0; border-radius: var(--dxt-r); background: none; box-shadow: none; cursor: pointer; white-space: nowrap; text-decoration: none;
  font: 600 var(--fs-tertiary)/1 var(--font-sans); letter-spacing: var(--dxt-key-space); text-transform: uppercase; color: hsl(var(--text-muted)); transition: background-color var(--dxt-t), color var(--dxt-t); }
.dao :is(.places nav, .xp-seg, .fg-seg, .ballot) > :is(a, button, label):hover { background: hsl(var(--text-strong) / .06); color: hsl(var(--text-strong)); }
.dao :is(.places nav, .xp-seg, .fg-seg, .ballot) > :is([aria-current], [aria-pressed="true"], [aria-selected="true"], :has(input:checked)) { background: hsl(var(--raised)); color: hsl(var(--text-strong)); box-shadow: var(--dxt-key); }
.dao :is(.places nav, .xp-seg, .fg-seg, .ballot) > :is([aria-current], [aria-pressed="true"], [aria-selected="true"], :has(input:checked))::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -3px; height: 3px; background: hsl(var(--primary)); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); pointer-events: none; }

/* ── Layout. ──────────────────────────────────────────────────────────────────────────────────────────── */
.row { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.row--end { justify-content: flex-end; }
.push { margin-left: auto; }
.stack { display: grid; gap: var(--sp-4); align-content: start; min-height: 0; }
.stack--5 { gap: var(--sp-5); } .stack--6 { gap: var(--sp-6); } .stack--2 { gap: var(--sp-2); } .stack--3 { gap: var(--sp-3); }
.fill { min-height: 0; height: 100%; }
.split { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: var(--sp-6); min-height: 0; height: 100%; }
.split--wide { grid-template-columns: minmax(0, 1fr) 380px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.grid-ov { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto minmax(0, 1fr); gap: var(--sp-5); height: 100%; min-height: 0; }
.scroll { overflow: auto; min-height: 0; scrollbar-width: thin; }

/* ── Plates: the kit's .dx-card, with a head row and a body that may scroll inside. ───────────────────── */
.plate { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--sp-4); min-height: 0; }
.plate__head { display: flex; align-items: center; gap: var(--sp-4); }
.plate__head .t-cap { margin-right: auto; }
.plate--lit { box-shadow: var(--dxt-plate-edge), 0 0 0 1px hsl(var(--primary) / .55), 0 0 29px hsl(var(--primary) / .12); }
.plate--quiet { background: hsl(var(--surface) / .5); box-shadow: inset 0 0 0 1px hsl(var(--border-subtle)); }
.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)); }

/* ── Pills and states. One word, one meaning. ─────────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: var(--sp-3); height: 24px; padding: 0 var(--sp-3); border-radius: var(--dxt-r-chip); white-space: nowrap;
  font: 600 var(--fs-tertiary)/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--text-muted)); background: hsl(var(--text-strong) / .06); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill[data-tone="live"] { color: hsl(var(--primary)); background: hsl(var(--primary) / .12); }
.pill[data-tone="drift"] { color: hsl(var(--drift)); background: hsl(var(--drift) / .14); }
.pill[data-tone="danger"] { color: hsl(var(--danger)); background: hsl(var(--danger) / .12); }
.pill[data-tone="strong"] { color: hsl(var(--text-strong)); background: hsl(var(--text-strong) / .1); }
.pill--bare { background: none; padding: 0; }

/* ── Member glyph: the first two hex of the key in a small plate. Signed members wear the mint ring. ──── */
.who { display: inline-grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 50%; box-sizing: border-box;
  background: var(--dxt-plate); box-shadow: inset 0 0 0 1px hsl(var(--border-default)); color: hsl(var(--text-strong));
  font: 600 var(--fs-tertiary)/1 var(--font-mono); text-transform: lowercase; }
.who--on { box-shadow: inset 0 0 0 2px hsl(var(--primary)); color: hsl(var(--primary)); }
.who--you { box-shadow: inset 0 0 0 2px hsl(var(--text-strong)); }
.who--off { opacity: .45; }
.who--lg { width: 47px; height: 47px; font-size: var(--fs-secondary); }
.whos { display: flex; }
.whos .who { margin-left: calc(var(--sp-3) * -1); box-shadow: 0 0 0 2px hsl(var(--surface)), inset 0 0 0 1px hsl(var(--border-default)); }
.whos .who:first-child { margin-left: 0; }
.whos .who--on { box-shadow: 0 0 0 2px hsl(var(--surface)), inset 0 0 0 2px hsl(var(--primary)); }

/* ── Seats: a row of the multisig's members, filled when signed. ───────────────────────────────────── */
.seats { display: flex; gap: var(--sp-3); }
.seat { width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; box-shadow: inset 0 0 0 1.5px hsl(var(--border-strong)); }
.seat--on { background: hsl(var(--primary)); box-shadow: 0 0 11px hsl(var(--primary) / .45); }
.seat--you { box-shadow: inset 0 0 0 2px hsl(var(--text-strong)); }
.seats--lg .seat { width: 29px; height: 29px; }

/* ── A holder tally in a well: approve, reject, abstain, and the turnout line. ───────────────────────── */
.tally { position: relative; height: 11px; border-radius: var(--dxt-r-chip); display: flex; overflow: visible;
  background: var(--dxt-well); box-shadow: var(--dxt-well-edge); }
.tally > span { height: 100%; }
.tally > span:first-child { border-radius: var(--dxt-r-chip) 0 0 var(--dxt-r-chip); }
.tally [data-part="approve"] { background: hsl(var(--primary)); }
.tally [data-part="reject"] { background: hsl(var(--danger) / .85); }
.tally [data-part="abstain"] { background: hsl(var(--text-faint) / .7); }
.tally__need { position: absolute; top: -7px; bottom: -7px; width: 2px; background: hsl(var(--text-strong)); }
.tally__need::after { content: attr(data-label); position: absolute; top: -18px; left: 50%; translate: -50% 0; white-space: nowrap;
  font: 600 var(--fs-tertiary)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--text-strong)); }
.legend { display: flex; gap: var(--sp-5); font-size: var(--fs-tertiary); color: hsl(var(--text-muted)); }
.legend b { color: hsl(var(--text-strong)); font-weight: 600; }
.legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: var(--sp-2); font-style: normal; }

/* ── The phase line: vote, delay, execute, with a "now" mark. ─────────────────────────────────────────── */
.phases { display: grid; grid-template-columns: 3fr 2fr 4fr; gap: var(--sp-2); }
.phase { display: grid; gap: var(--sp-3); }
.phase__bar { height: 7px; border-radius: var(--dxt-r-chip); background: hsl(var(--text-strong) / .1); position: relative; overflow: visible; }
.phase[data-state="done"] .phase__bar { background: hsl(var(--primary) / .55); }
.phase[data-state="now"] .phase__bar { background: linear-gradient(90deg, hsl(var(--primary)) var(--at, 50%), hsl(var(--text-strong) / .1) var(--at, 50%)); }
.phase[data-state="now"] .phase__bar::after { content: ""; position: absolute; left: var(--at, 50%); top: 50%; width: 11px; height: 11px; translate: -50% -50%;
  border-radius: 50%; background: hsl(var(--text-strong)); box-shadow: 0 0 0 4px hsl(var(--canvas)); }
.phase__name { font: 600 var(--fs-tertiary)/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--text-faint)); }
.phase[data-state="now"] .phase__name { color: hsl(var(--text-strong)); }
.phase__time { font-size: var(--fs-tertiary); color: hsl(var(--text-muted)); }

/* ── Lists: a picked row wears the mint edge. ─────────────────────────────────────────────────────────── */
.list { display: grid; gap: var(--sp-2); align-content: start; }
.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); box-sizing: border-box; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--dxt-r); text-decoration: none; color: hsl(var(--text)); transition: background var(--dxt-t); }
.item:hover { background: hsl(var(--text-strong) / .05); }
.item[aria-current] { position: relative; background: hsl(var(--raised)); box-shadow: var(--dxt-key); }
.item[aria-current]::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -3px; height: 3px; background: hsl(var(--primary)); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); pointer-events: none; }
.item__name { font: 700 var(--fs-secondary)/1.25 var(--font-display); color: hsl(var(--text-strong)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__sub { grid-column: 1 / -1; display: flex; gap: var(--sp-4); font-size: var(--fs-tertiary); color: hsl(var(--text-muted)); }
.item__sub span + span::before { content: "·"; margin-right: var(--sp-4); color: hsl(var(--text-faint)); }
.item--row { grid-template-columns: auto minmax(0, 1fr) auto; }
.item--row .item__sub { grid-column: 2 / 3; }
.group { padding: var(--sp-4) var(--sp-5) var(--sp-2); }

/* ── Lines of consequence (activity). ─────────────────────────────────────────────────────────────────── */
.feed { display: grid; gap: 0; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-4); align-items: center; padding: var(--sp-3) 0; border-top: var(--dxt-line); font-size: var(--fs-tertiary); }
.feed li:first-child { border-top: 0; }
.feed time { font-family: var(--font-mono); color: hsl(var(--text-faint)); letter-spacing: .06em; }
.feed b { color: hsl(var(--text-strong)); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--text-faint)); }
.dot--live { background: hsl(var(--primary)); } .dot--drift { background: hsl(var(--drift)); } .dot--danger { background: hsl(var(--danger)); }

/* ── A key-value strip of numbers inside a plate. ─────────────────────────────────────────────────────── */
.nums { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.nums > div { display: grid; gap: var(--sp-2); padding: 0 var(--sp-5); border-left: var(--dxt-line); }
.nums > div:first-child { padding-left: 0; border-left: 0; }

/* ── Wells that hold a command or a line to paste. ────────────────────────────────────────────────────── */
.cmd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; padding: var(--sp-4) var(--sp-4) var(--sp-4) 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; }
.cmd--link::before { content: "↗"; }
.paste { box-sizing: border-box; width: 100%; resize: none; min-height: 76px; }

/* ── Numbered moves inside one task. ──────────────────────────────────────────────────────────────────── */
.moves { counter-reset: mv; display: grid; gap: var(--sp-5); }
.move { counter-increment: mv; display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: var(--sp-3) var(--sp-4); align-items: start; }
.move::before { content: counter(mv); display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%;
  font: 700 var(--fs-tertiary)/1 var(--font-mono); background: hsl(var(--raised)); color: hsl(var(--text-muted)); box-shadow: var(--dxt-key); }
.move[data-state="now"]::before { background: hsl(var(--text-strong)); color: hsl(var(--text-inverse)); }
.move[data-state="done"]::before { content: "✓"; color: hsl(var(--primary)); }
.move > * { grid-column: 2; }
.move > :first-child { align-self: center; min-height: 29px; display: flex; align-items: center; }

/* ── Held send: calm, named, one way out. ─────────────────────────────────────────────────────────────── */
.held { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-5);
  border-radius: var(--dxt-r); background: hsl(var(--drift) / .08); box-shadow: inset 0 0 0 1px hsl(var(--drift) / .55); font-size: var(--fs-tertiary); }
.held::before { content: ""; width: 7px; height: 29px; border-radius: 2px; background: hsl(var(--drift)); }
.held b { color: hsl(var(--text-strong)); font-weight: 600; }

/* ── Refusal: what failed, what is missing, what to do. ───────────────────────────────────────────────── */
.refusal { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3) var(--sp-5); padding: var(--sp-5); border-radius: var(--dxt-r);
  box-shadow: inset 0 0 0 1px hsl(var(--danger) / .45); background: hsl(var(--danger) / .05); font-size: var(--fs-tertiary); }
.refusal dt { font: 600 var(--fs-tertiary)/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--text-faint)); }
.refusal dd { margin: 0; color: hsl(var(--text-strong)); }

/* ── A ballot: three plain choices and one key. No choice is the cream key. ───────────────────────────── */
/* The track is above, with the other tracks. */
.ballot input { position: absolute; opacity: 0; pointer-events: none; }
.ballot label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.ballot label:has(input:checked)::before { background: currentColor; }
.ballot label[data-v="approve"]:has(input:checked)::before { background: hsl(var(--primary)); box-shadow: none; }
.ballot label[data-v="reject"]:has(input:checked)::before { background: hsl(var(--danger)); box-shadow: none; }


/* ── Form wells use the kit (.dx-field, .dx-input, .dx-select, .dx-textarea). These only lay them out. ─── */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.fields .wide { grid-column: 1 / -1; }
.fields .dx-field { display: grid; }
.unit { position: relative; }
.unit > span { position: absolute; right: var(--sp-4); top: 50%; translate: 0 -50%; font: 600 var(--fs-tertiary)/1 var(--font-mono); letter-spacing: .1em; color: hsl(var(--text-faint)); }

/* ── Choice tiles: kinds of proposal, kinds of act, kinds of DAO. ─────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.tile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-1) var(--sp-4); align-items: center; padding: var(--sp-4); border-radius: var(--dxt-r);
  text-decoration: none; background: hsl(var(--surface) / .6); box-shadow: inset 0 0 0 1px hsl(var(--border-subtle)); transition: box-shadow var(--dxt-t), background var(--dxt-t); }
.tile:hover { background: hsl(var(--surface)); box-shadow: inset 0 0 0 1px hsl(var(--border-strong)); }
.tile[aria-current] { background: hsl(var(--surface)); box-shadow: inset 0 0 0 1.5px hsl(var(--primary)); }
.tile__ico { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--dxt-r-sm); background: hsl(var(--raised)); box-shadow: var(--dxt-key); color: hsl(var(--text-strong)); }
.tile__ico svg { width: 18px; height: 18px; }
.tile b { font: 700 var(--fs-tertiary)/1.3 var(--font-display); letter-spacing: .02em; color: hsl(var(--text-strong)); }
.tile small { font-size: var(--fs-tertiary); color: hsl(var(--text-muted)); }
.tile[data-off] { opacity: .5; }
.tile[data-off] small::after { content: " · not on this network yet"; }

