/* Accounts layer over tokens.css and components.css.
   Raw colors live only in tokens.css. This file names tokens. */
body { margin: 0; background: var(--paper); color: var(--grey); font: var(--weight-body) var(--type-body)/1.5 var(--font); }
.mark { width: 40px; height: 40px; display: block; }
.mark-dark { display: none; }
:root[data-theme="dark"] .mark-light { display: none; }
:root[data-theme="dark"] .mark-dark { display: block; }
header.header { position: relative; z-index: 1; }
main { position: relative; z-index: 1; max-width: 32rem; margin: 0 auto; padding: var(--space-6) var(--space-4); }
.card { border: 1px solid var(--line); background: var(--paper); padding: var(--space-5); margin-top: var(--space-4); }
.card.glass-threshold { border-top: 2px solid var(--wall-glass-edge); }
.login-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); margin-top: var(--space-3); }
.login-actions .threshold-button { width: 100%; text-align: center; }
label { display: grid; gap: var(--space-2); margin: var(--space-3) 0; }
.kicker { margin: 0 0 var(--space-2); letter-spacing: var(--track-label); text-transform: uppercase; font-size: var(--type-mark); font-weight: var(--weight-head); color: var(--red); }
h1 { margin: 0; font-size: var(--type-header); font-weight: var(--weight-black); letter-spacing: -0.02em; line-height: 1; color: var(--grey); }
.rule-row { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.rule { display: block; width: 40px; height: 2px; background: var(--red); }
.account-email { color: var(--red); font-size: var(--type-mark); }
.lead, p { color: var(--grey); font-weight: var(--weight-light); }
.empty { font-weight: var(--weight-light); }
.who { font-weight: var(--weight-head); color: var(--grey); }
.app { border-top: 1px solid var(--line); padding: var(--space-3) 0; }
.app:first-of-type { border-top: 0; }
dialog { border: 1px solid var(--line); background: var(--paper); color: var(--grey); max-width: 28rem; width: calc(100% - 2rem); padding: var(--space-5); }
dialog::backdrop { background: var(--scrim); }
[data-smitz-feedback] { position: fixed; bottom: var(--space-4); left: var(--space-4); z-index: 2; display: flex; gap: var(--space-2); }
[data-smitz-feedback] form { position: absolute; bottom: 100%; left: 0; width: 20rem; padding: var(--space-4); background: var(--paper); border: 1px solid var(--line); }
a { color: var(--grey); }
:focus-visible { outline: 2px solid var(--grey); outline-offset: 2px; }

.app-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-2); }
.app-mark { width: 40px; height: 40px; flex: none; }
.app-license { text-align: right; }
.app-license p { margin: 0; }
.header-aside .who { margin: 0; font-size: var(--type-title); }
.header-aside .account-email { display: block; margin-top: var(--space-1); }

/* Profile layout: left rail for toggles, products beside it. */
.profile { display: grid; grid-template-columns: 12rem 1fr; gap: 0; border-top: 1px solid var(--line); }
.profile-rail { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5) var(--space-4); border-right: 1px solid var(--line); }
.profile-apps { padding: 0; }
.app { border-bottom: 1px solid var(--line); padding: var(--space-4) var(--space-5); }
.app .kicker { margin-bottom: var(--space-2); }
.header-bar { align-items: flex-start; }
.header-aside { margin-left: auto; text-align: right; }
.header-aside .who { font-size: var(--type-name); font-weight: var(--weight-black); }
.wordmark-header { margin-left: var(--space-3); }

/* ACCOUNTS sized to the width of BY SMITZ LABORATORIES. The rail below takes that same width. */
.wordmark-header .wordmark-name { font-size: 42px; font-weight: var(--weight-black); letter-spacing: 0.01em; }
.header-brand { width: max-content; }
.profile { grid-template-columns: max-content 1fr; }
.profile-rail { width: 100%; box-sizing: border-box; align-items: flex-end; padding: var(--space-5) var(--space-4); }
.profile-rail .toggle { justify-content: flex-end; }

/* Shared width: mark + gap + byline. The rail's right edge meets the wordmark's right edge. */
:root { --brand-width: 18.5rem; }
.header-brand { width: var(--brand-width); }
.profile { grid-template-columns: var(--brand-width) 1fr; }
.profile-rail { width: var(--brand-width); align-items: flex-end; padding-right: var(--space-4); }
[data-smitz-feedback] button[data-kind] { background: none; border: 0; padding: 0; width: 32px; height: 32px; }
[data-smitz-feedback] button[data-kind] img { width: 32px; height: 32px; }

/* The split (Kyle, 13 October 2026): every accounts page with a drawing. The header and the page in a left pane over
   the geometric art (seed 90, lib/art.mjs), its cards frosted glass; the drawing on the plain ground of a right pane.
   On a phone the drawing is a band above the page. */
.split { display: grid; grid-template-columns: minmax(28rem, 40rem) 1fr; min-height: 100vh; }
.split-left { position: relative; border-right: 1px solid var(--line); }
.split-left .art-fill { position: absolute; inset: 0; overflow: hidden; }
.split-page { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100%; }
.split-page .header-bar { padding: var(--space-4) var(--space-5); }
.split-page main { max-width: none; width: 100%; box-sizing: border-box; margin: 0; padding: var(--space-5); }
.split-page main > p { background: var(--wall-glass); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-3); }
.split .card, .split .profile { background: var(--wall-glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-top: 2px solid var(--wall-glass-edge); }
.split .card:first-child { margin-top: 0; }
.split .profile { grid-template-columns: 1fr; }
.split .profile-rail { width: auto; align-items: flex-start; border-right: 0; border-bottom: 1px solid var(--line); }
.split .profile-rail .toggle { justify-content: flex-start; }
.split .header-brand { width: auto; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .split .card, .split .profile { background: var(--wall-glass-solid); }
}
.split-art { display: flex; align-items: center; justify-content: center; background: var(--paper); overflow: hidden; }
.split-art img { width: min(78%, 720px); height: auto; }
.split-art img.mark-dark { display: none; }
:root[data-theme="dark"] .split-art img.mark-light { display: none; }
:root[data-theme="dark"] .split-art img.mark-dark { display: block; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-art { order: -1; height: 200px; border-bottom: 1px solid var(--line); }
  .split-art img { width: auto; height: 180px; }
  .split-left { border-right: 0; }
  .split-page .header-bar { padding: var(--space-3) var(--space-4); }
  .split-page main { padding: var(--space-4) var(--space-4) calc(32px + var(--space-6)); }   /* room for the feedback corner */
  .split-page .header-bar { flex-wrap: wrap; row-gap: var(--space-2); }
  .split-page h1 { font-size: var(--type-name); }
  .split-page .wordmark-header .wordmark-name { font-size: var(--type-name); }
  .split-page .header .toggle .toggle-text { display: none; }   /* the switch keeps its title and state; its words go on a phone */
}
@media (max-width: 860px) {   /* on a phone the name drops under the wordmark, on the left; there is no second pane to run over, so a long name wraps */
  .header-who { margin-left: 0; width: 100%; flex: 1 1 100%; }
  .header-who .who, .header-who .account-email { white-space: normal; overflow-wrap: anywhere; }
}
label.check { display: flex; align-items: flex-start; gap: var(--space-2); }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--grey); text-decoration: underline; cursor: pointer; }
.split-page main > form:not(.card) { background: var(--wall-glass); padding: var(--space-3) var(--space-4); margin-top: var(--space-3); }

/* The signed-in header (Kyle, 13 October 2026): the logo box; ACCOUNTS as wide as
   BY SMITZ LABORATORIES and the two as tall as the logo box (sizes set by the page's fit script); the person's
   name the size of ACCOUNTS, the email under it on the same left edge. */
.header-signed { width: auto; align-items: flex-start; gap: var(--space-3); }
.brand-mark { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
.header-signed .header-mark { width: var(--mark-size, 48px); height: var(--mark-size, 48px); }
/* Sign out: at the bottom of the settings rail, not in the header (Kyle, 13 October 2026). An exit-door line icon in
   the ink color, its label to the right naming the account it signs out of. */
.sign-out { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--type-body); color: var(--grey); text-decoration: none; }
.sign-out:hover span { text-decoration: underline; }
.sign-out-icon { flex: none; }
.header-signed .wordmark-header { margin-left: 0; }
.header-signed .wordmark-name, .header-signed .wordmark-by { line-height: 1; width: max-content; white-space: nowrap; }
.header-signed .wordmark-name { font-size: 32px; }
.header-signed .wordmark-by { font-size: 12px; }
/* A long name never wraps or clips, and the panes never move: it runs on past the left pane, over the drawing's
   pane (Kyle, 13 October 2026). */
.header-who { margin-left: auto; text-align: left; flex: none; overflow: visible; text-overflow: clip; }
.header-signed { flex: none; margin-right: var(--space-5); }   /* at least this much between the wordmark and a long name */
.header-who .who { margin: 0; font-size: 32px; font-weight: var(--weight-black); letter-spacing: normal; line-height: 1; white-space: nowrap; color: var(--grey); }
/* The email in the fine print's type (Kyle, 13 October 2026): its size, weight, tracking, and red; it keeps its own case. */
.header-who .account-email { display: block; margin: 0; line-height: 1; font-size: var(--type-mark);
  letter-spacing: var(--track-label); color: var(--red); white-space: nowrap; }

/* Signed out, the theme switch is in the page's card (Kyle, 13 October 2026, B). */
.card-theme { margin-top: var(--space-4); }
.theme-card { display: flex; }
/* The note under the settings shows only when it has something to say, so Sign out sits close under the switches. */
.profile-rail #note:empty { display: none; }

/* Windows with buttons center them, the same on every Smitz Labs app (Kyle, 13 October 2026): the dialogs (Face ID,
   Grok Bot) and the feedback form, their buttons in the kit's text-button style as on the desk. */
dialog .login-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
dialog .login-actions button { width: auto; }
dialog > button { display: block; margin: var(--space-4) auto 0; }
[data-smitz-feedback] form > div:last-child { display: flex; justify-content: center; gap: var(--space-2); }

/* The feedback form's switch (Kyle, 14 October 2026): one form for a bug report or a feature request, bug report first. */
[data-smitz-feedback] .report-kind { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
[data-smitz-feedback] .report-kind [data-switch] { padding: var(--space-1) var(--space-2); border: 1px solid var(--line); }
[data-smitz-feedback] .report-kind [data-switch][aria-checked="true"] { border-color: var(--grey); font-weight: var(--weight-head); }
/* Where the visitor seems to be visiting from (lib/visitor.mjs; Kyle, 14 Oct 2026): one quiet line under the page. */
.visitor { position: relative; z-index: 1; max-width: 32rem; margin: 0 auto; padding: 0 var(--space-4) var(--space-6); text-align: center; font-size: var(--type-mark); color: var(--grey); }
.visitor[hidden] { display: none; }

/* The account page in tabs (Kyle, 16 Oct 2026): AI (the landing tab), Workforce, Syllamate, Tabula, Settings. One
   glass card; the tab bar is the kit's section head (tint ground, wide-tracked caps); the chosen tab is underlined in
   the accent, as the desk marks its current view. Only tokens here; no new colors. */
.split .profile { display: block; }
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); background: var(--tint); }
.tab { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--grey); cursor: pointer;
  font: var(--weight-head) var(--type-mark)/1 var(--font); letter-spacing: var(--track-label); text-transform: uppercase; }
.tab[aria-selected="true"] { border-bottom-color: var(--red); background: var(--wall-glass-solid); }
.tab:hover { background: var(--wall-glass); }
.tab-panel { padding: var(--space-5); }
.tab-panel[hidden] { display: none; }
.split .tab-panel.profile-rail { border-bottom: 0; }
.card-section + .card-section { border-top: 1px solid var(--line); margin-top: var(--space-5); padding-top: var(--space-5); }
.card-section .kicker { margin-bottom: var(--space-3); }
/* Licence state: a small square (the brand has no circles). Valid is the ink, Pending and Grace the accent, the rest open. */
.state-dot, .tab-dot { display: inline-block; width: 8px; height: 8px; flex: none; border: 1px solid var(--grey); background: none; }
.state-valid .state-dot, .tab-dot.state-valid { background: var(--grey); }
.state-pending .state-dot, .state-grace .state-dot, .tab-dot.state-pending, .tab-dot.state-grace { background: var(--red); border-color: var(--red); }
.licence-head { display: flex; align-items: center; gap: var(--space-4); }
.licence-head p { margin: 0; }
.licence-head .who { font-size: var(--type-name); font-weight: var(--weight-black); }
.licence-head .app-mark { width: 48px; height: 48px; }
/* A wide logo (Smitz.net): 48 px tall like the square ones, its own width, never squashed. */
.licence-head .app-mark-wide { width: auto; max-width: 120px; object-fit: contain; }
.licence-state { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-1) !important;
  font-size: var(--type-mark); letter-spacing: var(--track-label); text-transform: uppercase; font-weight: var(--weight-head); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-5); margin: var(--space-5) 0 var(--space-3); }
.facts dt { font-size: var(--type-mark); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--grey); }
.facts dd { margin: 0; font-weight: var(--weight-head); color: var(--grey); }
table.coins { width: 100%; border-collapse: collapse; font-size: var(--type-body); color: var(--grey); }
table.coins th, table.coins td { text-align: left; padding: var(--space-2) var(--space-2) var(--space-2) 0; border-bottom: 1px solid var(--line); }
table.coins thead th { font-size: var(--type-mark); letter-spacing: var(--track-label); text-transform: uppercase; font-weight: var(--weight-head); }
table.coins td { font-variant-numeric: tabular-nums; }
/* Selects in the kit's field style, so the engine pickers match the desk's fields. */
.engines select, .seat-buy select { width: 100%; box-sizing: border-box; padding: var(--space-2) var(--space-3); font: inherit; color: var(--grey);
  background: var(--wall-field); border: 1px solid var(--line); border-radius: 0; }
.engines select:focus { background: var(--wall-field-focus); border-bottom-color: var(--grey); }
/* P-15 (Kyle, 20 Oct 2026): a setting is a heading, then its text or its click-to-edit menu; engine names keep their case. */
.engine-tier { display: block; margin: 0 0 var(--space-3); }
.engine-tier > .kicker { display: block; text-transform: capitalize; }
.engines details.click-edit select { max-width: 100%; margin-top: var(--space-2); }
.toggle-inline { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); color: var(--grey); }
.toggle-inline input { width: auto; }
.text-link { color: var(--grey); font-weight: var(--weight-head); }
@media (max-width: 860px) { .tab { padding: var(--space-3); } .tab-panel { padding: var(--space-4); } }
.benefits { margin: 0; padding: 0; list-style: none; }
.benefits li { position: relative; padding: var(--space-1) 0 var(--space-1) var(--space-5); color: var(--grey); }
.benefits li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--red); }
.benefits li.benefits-lead { padding-left: 0; font-weight: 600; }
.benefits li.benefits-lead::before { content: none; }
.upsell .who { font-size: var(--type-title); margin: 0; }
.open-app { margin: var(--space-5) 0 0; }
/* Pricing (Kyle, 16 Oct 2026): three tiers side by side in the card, Annual by default; Monthly is a tab (19 Oct). */
.pricing-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
a.toggle { text-decoration: none; }
.tiers { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: var(--space-4); }
.tier { border-top: 1px solid var(--line); padding: var(--space-4) 0; }
.tier-price { margin: var(--space-1) 0; font-size: var(--type-name); font-weight: var(--weight-black); color: var(--grey); }
.buy { margin-top: var(--space-3); }
.seat-buy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4); }
.seat-buy label { margin: 0; }
.licence-head + .card-section { margin-top: var(--space-5); }
.seat-buy { margin-top: var(--space-4); } .seat-buy input { width: 6rem; } .pricing .buy + .card-section, .pricing > .card-section { margin-top: var(--space-5); border-top: 1px solid var(--line); padding-top: var(--space-5); }
/* Console tab (Kyle, 16 Oct 2026): six tabs stay on one line and scroll; console tables scroll inside the wall. */
/* Six tabs fit one row at the left pane's width: compact padding and tracking, tabs share the row; a narrow phone wraps
   to a second row rather than hiding a tab. */
.tabs { flex-wrap: wrap; overflow: visible; }
.tab { flex: 0 1 auto; justify-content: center; padding: var(--space-3) var(--space-3); gap: 4px; letter-spacing: 0.08em; }
/* Org and Console use the whole screen (Kyle, 20 Oct 2026): the drawing's pane gives way and their sections run in two
   balanced columns, top to bottom, instead of one long column; what follows a column block runs full width. One
   column on a phone. */
.split.split-wide { grid-template-columns: 1fr; }
.split.split-wide .split-art { display: none; }
.split.split-wide .split-left { border-right: 0; }
.tab-cols { columns: 2; column-gap: var(--space-6); }
.tab-cols > * { break-inside: avoid; }
.tab-cols > .card-section, .tab-cols > .card-section + .card-section { margin: 0 0 var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.tab-cols + .card-section { border-top: 1px solid var(--line); padding-top: var(--space-5); }
@media (max-width: 860px) { .tab-cols { columns: 1; } }
.console-scroll { overflow-x: auto; max-width: 100%; }
table.console-table { border-collapse: collapse; font-size: var(--type-small, 0.85rem); }
table.console-table th { text-align: left; color: var(--grey); font-weight: var(--weight-head); padding: var(--space-1) var(--space-2); white-space: nowrap; }
table.console-table td { padding: var(--space-1) var(--space-2); border-top: 1px solid var(--line); vertical-align: middle; }
table.console-table input:not([type="checkbox"]), table.console-table select { width: auto; max-width: 9rem; font: inherit; }
table.console-table input[type="number"] { max-width: 5.5rem; }
.console-note { border-left: 2px solid var(--red); padding-left: var(--space-2); }
#tab-console form.inline input, #tab-console form.inline select { max-width: 9rem; }
/* The console, Concept A (Kyle, 3 Nov 2026): a sidebar of views and one view beside it; on a phone the sidebar is a row
   of chips that scrolls sideways. Every grid child may shrink (min-width: 0), and a wide table scrolls inside its
   .console-scroll, so the page never runs wider than the screen (it ran to 1358px). */
.con-shell { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.con-shell > * { min-width: 0; }
.con-view > .card-section:first-child { margin-top: 0; }
.con-nav { position: sticky; top: var(--space-4); border-right: 1px solid var(--line); padding-right: var(--space-4); }
.con-nav ul { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.con-nav li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: 5px 8px; border-left: 2px solid transparent; }
.con-nav li a { color: inherit; text-decoration: none; }
.con-nav li a:hover { color: var(--red); }
.con-nav li.current { border-left-color: var(--red); background: var(--tint); font-weight: var(--weight-head); }
.con-nav .con-group { margin: var(--space-3) 0 var(--space-1); padding-left: 10px; letter-spacing: var(--track-label); text-transform: uppercase; font-size: var(--type-mark); font-weight: var(--weight-head); color: var(--grey); opacity: 0.75; }
.con-nav .count { background: var(--red); color: var(--on-red); border-radius: 999px; font-size: 0.75em; padding: 1px 8px; font-weight: var(--weight-head); line-height: 1.5; }
.con-nav .count.quiet { background: none; color: var(--grey); border: 1px solid var(--line); }
.con-nav .meta { font-size: 0.75em; color: var(--grey); white-space: nowrap; }
.view-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
.view-head .kicker { margin: 0; }
.view-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2); }
.view-actions form.inline { margin: 0; }
details.help { position: relative; display: inline-block; }
details.help > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 1.3em; height: 1.3em; border: 1px solid var(--grey); color: var(--grey);
  font: var(--weight-head) 0.75em/1 var(--font); cursor: pointer; }
details.help > summary::-webkit-details-marker { display: none; }
details.help[open] > summary, details.help > summary:hover { color: var(--red); border-color: var(--red); }
details.help .help-text { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(30rem, 80vw); padding: var(--space-3) var(--space-4); background: var(--paper); border: 1px solid var(--line);
  font-size: var(--type-small, 0.85rem); font-weight: var(--weight-light); line-height: 1.5; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }
details.form-button { margin-top: 0; }
details.form-button > summary { list-style: none; display: inline-block; border: 1px solid var(--line); padding: 2px 10px; }
details.form-button > summary::-webkit-details-marker { display: none; }
details.form-button[open] { flex-basis: 100%; }
.form-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); margin: var(--space-2) 0; }
.pill { display: inline-block; border: 1px solid var(--line); padding: 0 8px; font-size: 0.8em; border-radius: 999px; white-space: nowrap; }
.pill.on { border-color: var(--red); color: var(--red); }
.chip { font-size: 0.7em; text-transform: uppercase; letter-spacing: var(--track-label); color: var(--red); font-weight: var(--weight-head); white-space: nowrap; }
ul.queue { list-style: none; margin: 0; padding: 0; }
li.queue-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: var(--space-2) var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
li.queue-row .queue-title { display: block; font-weight: var(--weight-head); overflow-wrap: anywhere; }
li.queue-row .queue-meta { display: block; color: var(--grey); font-size: 0.85em; overflow-wrap: anywhere; }
li.queue-row .queue-act { text-align: right; white-space: nowrap; }
li.queue-row .queue-act form.inline { margin: 0; }
table.console-table tr.open td { background: var(--tint); }
table.console-table td.num { text-align: right; white-space: nowrap; }
table.console-table td.when { white-space: nowrap; }
td.best-for details.cell-edit .edit-pop { left: auto; right: 0; }
.con-view .engines-console, .con-view .card-section { min-width: 0; }
@media (max-width: 760px) {
  .con-shell { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .con-nav { position: static; border-right: 0; padding: 0 0 var(--space-2); border-bottom: 1px solid var(--line); display: flex; gap: var(--space-2); overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .con-nav ul { display: flex; gap: var(--space-1); margin: 0; flex: none; }
  .con-nav .con-group { display: none; }
  .con-nav li { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; padding: 4px 8px; }
  .con-nav li.current { border-bottom-color: var(--red); }
  li.queue-row { grid-template-columns: minmax(0, 1fr); }
  li.queue-row .queue-act { text-align: left; white-space: normal; }
  .view-actions { margin-left: 0; width: 100%; }
}
/* Org tab (Kyle, 16 Oct 2026). */
.org-profile { display: grid; gap: var(--space-2); max-width: 28rem; }
.org-invite, .org-topup { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-2); margin-top: var(--space-3); }
.org-invite .field-label { flex: 1 1 14rem; }
.org-invites { list-style: none; padding: 0; margin: var(--space-2) 0 0; }
.org-invites li { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: baseline; padding: var(--space-1) 0; border-top: 1px solid var(--line); }
code.txt-record { display: inline-block; padding: var(--space-1) var(--space-2); background: var(--tint); border-left: 2px solid var(--red); word-break: break-all; user-select: all; }
.pool-facts { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-2); }
.pool-facts .tier-price { margin: 0; }
.pool-facts .expires-soon { color: #e5484d; }
:root[data-theme="dark"] .pool-facts .expires-soon { color: #ff8589; }
.coins-suspended { color: #e5484d; font-weight: 600; margin: 8px 0; }
:root[data-theme="dark"] .coins-suspended { color: #ff8589; }
.org-topup { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.org-topup label { display: inline-flex; align-items: center; gap: var(--space-1); margin: 0; }
.org-topup select { width: auto; margin: 0; }
.org-pick { margin-bottom: var(--space-2); }
/* Org Members list (Kyle, 16 Oct 2026): one product, plain text rows, click-to-edit seat and role. */
.product-pick select { font: inherit; letter-spacing: inherit; text-transform: none; color: var(--red); border: 0; border-bottom: 1px solid var(--red); background: none; padding: 0 var(--space-1); cursor: pointer; }
.member-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.member { display: grid; grid-template-columns: minmax(10rem, 1.6fr) 1fr 1fr auto; gap: var(--space-2); align-items: baseline; padding: var(--space-2) 0; border-top: 1px solid var(--line); }
.member-email { overflow-wrap: anywhere; }
details.click-edit > summary { list-style: none; cursor: pointer; display: inline; border-bottom: 1px dotted var(--grey); }
details.click-edit > summary::-webkit-details-marker { display: none; }
details.click-edit > summary:hover, details.click-edit[open] > summary { color: var(--red); border-bottom-color: var(--red); }
details.click-edit select { font: inherit; max-width: 11rem; }
@media (max-width: 40rem) { .member { grid-template-columns: 1fr 1fr; } .member-email { grid-column: 1 / -1; } }
.member-summary { display: flex; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-2) 0; border-top: 2px solid var(--red); }
.member-summary .tally { white-space: nowrap; }
/* The product's icon and wordmark open the product (Kyle, 16 Oct 2026); no separate "Open" link. */
.licence-head .app-open { display: inline-flex; align-items: center; gap: var(--space-3); color: inherit; text-decoration: none; }
.licence-head a.app-open:hover .who, .licence-head a.app-open:focus-visible .who { color: var(--signal-red, #d71920); }
/* Auto theme: the knob sits in the middle of the track (Light left, Dark right). */
.toggle-auto .toggle-knob { left: 13px; }
/* Licence state marker where Workforce puts its presence ring (src/client/ui/ui.css .presence-ring): right after the
   name, top-aligned like a superscript, half the type's height, a hair's gap (Kyle, 16 Oct 2026). */
.presence-spot, .tab .tab-dot { width: 0.5em; height: 0.5em; vertical-align: top; margin-left: 0.12em; position: relative; top: 0.08em; }
.tab .tab-dot { display: inline-block; }
/* Organization Licenses v2 (Kyle, 16 Oct 2026): the tally on one line, Buy seat packs as one compact row. */
.seat-tally { flex-wrap: nowrap; gap: var(--space-5); border-top: none; border-bottom: 2px solid var(--red); margin: var(--space-3) 0; }
.buy-packs { margin-top: var(--space-3); }
.buy-packs > summary { list-style: none; cursor: pointer; display: inline-block; }
.buy-packs > summary::-webkit-details-marker { display: none; }
.seat-buy-row { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-3); margin-top: var(--space-3); white-space: nowrap; }
.seat-buy-row label { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: var(--weight-head); }
.seat-buy-row input[type="number"] { width: 3.2em; padding: 2px 4px; }
.seat-buy-row select { width: auto; padding: 2px 4px; }
/* The seat picker (Kyle, 16 Oct 2026): the count reads as clickable text, like the members list's click-to-edit. */
/* Click-to-edit text (Platform application standard, "Click to edit"; Kyle, 19 Oct 2026): a choice from a short list
   reads as part of the sentence, dashed underline; a click opens the list; the chosen value reads as text again. */
.click-text, .seat-count { appearance: none; -webkit-appearance: none; border: none; border-bottom: 1px dashed currentColor; background: none; padding: 0 2px; font: inherit; font-weight: var(--weight-head); cursor: pointer; width: auto; }
.seat-picker { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.seat-tens-open { vertical-align: top; background: var(--paper, #fff); border: 1px solid var(--grey); appearance: auto; }
/* Settings, two columns (Kyle, 16 Oct 2026): each column right-aligns its toggles, so the left column's toggles line
   up on the pane's centre line and the right column's on its right edge; labels sit left of their toggles. */
.settings-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-5); align-items: start; }
.settings-col { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); min-width: 0; }
.settings-col .toggle { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--space-3); margin: 0; width: auto; }
.settings-col .toggle-text { text-align: right; }
@media (max-width: 520px) { .settings-cols { grid-template-columns: 1fr; } }

/* Console, Deploys as you (Kyle, 16 Oct 2026): no bullets; name and last deploy left, Turn off flush right and aligned. */
.deploy-grants { list-style: none; padding: 0; margin: 0; width: 100%; }
.settings-wrap { display: grid; grid-template-columns: max-content; gap: var(--space-4); max-width: 100%; }
.settings-wrap > * { min-width: 0; }
#deploys { width: auto; }
.deploy-grants li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: var(--space-1) 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.deploy-grants .deploy-who { min-width: 0; display: flex; flex-wrap: wrap; column-gap: var(--space-2); }
.deploy-grants [data-revoke] { flex: none; margin-left: auto; }

/* Buy Seat Packs (Kyle, 16 Oct 2026): row 1 tier + seat count; Buy seats at its right end; row 2 just the auto-assign checkbox, under the tier. */
.seat-buy-2 { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); white-space: normal; }
.seat-buy-2 .seat-buy-line { display: flex; align-items: center; gap: var(--space-3); }
.seat-buy-2 .seat-auto { display: flex; align-items: center; gap: 6px; align-self: flex-start; white-space: normal; font-weight: inherit; }
.seat-buy-2 .seat-auto input { width: auto; flex: none; }
.seat-buy-2 .seat-buy-go { flex: none; margin-left: auto; }
.seat-buy-2 select[name="tier"] { width: auto; }

/* Seat price table (Kyle, 16 Oct 2026): each header is exactly three lines (explicit breaks); columns 2 to 4 centred. */
.seat-prices th[scope="col"] { white-space: nowrap; vertical-align: bottom; }
table.coins.seat-prices th[scope="col"]:not(:first-child), table.coins.seat-prices tbody td { text-align: center; }

/* Enterprise Pool header (Kyle, 16 Oct 2026): one row, two groups, Coins and Seats. */
.pool-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--space-5); margin-bottom: var(--space-3); }
.pool-group .pool-group-label { margin-bottom: var(--space-1); color: var(--grey); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.pool-group .pool-group-label { text-align: center; } /* Kyle, 19 Oct 2026: Coins and Seat Licenses centred over their figures */
.pool-group .pool-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: 0; text-align: center; }
/* The licence table (Kyle, 19 Oct 2026): a row per licence type (Basic packs, Pro packs, Enterprise) and All licenses;
   Seats and Weekly Grant, then where the seats are (one column per product), then Unassigned; figures centred. */
table.coins.pool-grants { width: 100%; }
table.coins.pool-grants td, table.coins.pool-grants tbody th { white-space: nowrap; padding-left: 6px; padding-right: 6px; }
table.coins.pool-grants thead th { padding-left: 4px; padding-right: 4px; letter-spacing: 0.04em; vertical-align: bottom; white-space: normal; line-height: 1.25; }
table.coins.pool-grants tbody th { padding-left: 0; }
table.coins.pool-grants .pool-split { border-left: 1px solid var(--line); }
table.coins.pool-grants th[scope="col"]:not(:first-child), table.coins.pool-grants th.pool-band, table.coins.pool-grants td { text-align: center; }
table.coins.pool-grants th.pool-band { color: var(--grey); font-weight: var(--weight-head); border-bottom: 1px solid var(--line); }
table.coins.pool-grants tr.pool-total th, table.coins.pool-grants tr.pool-total td { border-top: 2px solid var(--line); font-weight: var(--weight-head); }
.pool-note { margin: 0 0 2px; }
.pool-group .pool-facts .empty { white-space: nowrap; }
/* Seat pack prices (Kyle, 19 Oct 2026): "10-seats   Basic $1,000   Pro $2,500", columns aligned. */
table.seat-pack-prices { border-collapse: collapse; margin: var(--space-1) 0 0; width: auto; }
table.seat-pack-prices th, table.seat-pack-prices td { padding: 1px var(--space-4) 1px 0; text-align: left; white-space: nowrap; font-weight: normal; border: none; }
table.seat-pack-prices th { font-weight: var(--weight-head); }
/* Automatic top-up, one line (Kyle, 19 Oct 2026): "[ ] Enable automatic top-ups of $20 when account is below $10". */
.topup-auto .topup-line { display: inline; margin: 0; font-weight: normal; line-height: 1.8; }
.topup-auto .topup-line input[type="checkbox"] { width: auto; margin: 0 var(--space-1) 0 0; vertical-align: middle; }
.topup-auto .topup-line select { margin: 0 2px; }
.sell { color: var(--red, #d7263d); font-weight: var(--weight-head); margin: var(--space-2) 0; }

/* Staging Developer Preview NDA (staging only): covers the page; no way out but Confirm or Decline. */
body.nda-open { overflow: hidden; }
.nda-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 20, 20, 0.72); display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.nda-box { background: var(--paper, #fff); color: var(--grey); max-width: 44rem; width: 100%; max-height: calc(100vh - 2 * var(--space-4)); display: flex; flex-direction: column; padding: var(--space-5); box-sizing: border-box; border: 1px solid var(--line); }
.nda-box h2 { margin: 0 0 var(--space-1); }
.nda-text { overflow-y: auto; flex: 1 1 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--space-2) 0; margin: var(--space-2) 0 var(--space-3); }
.nda-text p { margin: 0 0 var(--space-2); }
.nda-warn { color: #d7263d; font-weight: var(--weight-head); }

/* The hub address with its copy icon, in the Claude Desktop / ChatGPT instructions. */
.hub-address { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); }
.hub-address[hidden] { display: none; }
.hub-address code { min-width: 0; padding: var(--space-1) var(--space-2); background: var(--tint); border-left: 2px solid var(--red); overflow-wrap: anywhere; user-select: all; }

/* Annual and Monthly tabs (Kyle, 19 Oct 2026): the licence pricing page (links) and every seat form (radio buttons drawn
   as tabs). Annual is the default. The chosen tab is underlined in the accent, like the account tabs. In a seat form
   the prices follow the checked tab: .when-annual shows by default, .when-monthly once Monthly is checked. */
.duration-tabs { display: inline-flex; gap: 0; border-bottom: 1px solid var(--line); }
.duration-tab { position: relative; display: inline-flex; align-items: baseline; gap: var(--space-2); margin: 0 0 -1px;
  padding: var(--space-2) var(--space-4); border-bottom: 2px solid transparent; color: var(--grey); cursor: pointer;
  text-decoration: none; font: var(--weight-head) var(--type-mark)/1.2 var(--font); letter-spacing: var(--track-label);
  text-transform: uppercase; white-space: nowrap; }
.duration-tab:hover { background: var(--wall-glass); }
.duration-tab[aria-current="page"], .duration-tab:has(input:checked) { border-bottom-color: var(--red); background: var(--wall-glass-solid); }
.duration-tab input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.duration-tab:has(input:focus-visible) { outline: 2px solid var(--grey); outline-offset: 2px; }
.duration-note { text-transform: none; letter-spacing: 0; font-weight: normal; font-size: 0.9em; }
.seat-buy-2 .duration-tabs { align-self: flex-start; }
.seat-buy-2 .seat-price-note { margin: 0; }
.duration-scope .when-monthly { display: none; }
.duration-scope:has(input[name="duration"][value="monthly"]:checked) .when-monthly { display: revert; }
.duration-scope:has(input[name="duration"][value="monthly"]:checked) .when-annual { display: none; }

/* "17% Off" and "Every Product" in Signal Red (Kyle, 19 Oct 2026): regular Signal Red #DC1F2D (--red-signal) in the
   light theme; in the dark theme the brand's light Signal Red, Signal Red Lit #E85D67 (--red-lit). 4.91:1 each. */
.highlight-red { color: var(--red-signal); }
:root[data-theme="dark"] .highlight-red { color: var(--red-lit); }
.every-product { margin: var(--space-1) 0 var(--space-3); font-weight: var(--weight-head); }
.publish-list { margin: var(--space-1) 0; padding-left: var(--space-4); }
.publish-list li { margin: 2px 0; }

/* The engines console (Kyle, 20 Oct 2026; P-12 click to edit): one table, an engine per row grouped by tier and a column
   per engine set; values read as text and open their editor in a small panel over the table. */
.engine-defaults { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
.engine-defaults .kicker { margin: 0; }
.engine-defaults form.default-pick { display: inline; text-transform: capitalize; }
.engine-defaults .click-text { text-transform: none; }
table.engine-matrix { width: 100%; }
table.engine-matrix th.route, table.engine-matrix td.route, table.engine-matrix td.menu-price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.engine-matrix td { padding: var(--space-2); }
table.engine-matrix tr.tier-head th { padding-top: var(--space-4); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--red); border-bottom: 1px solid var(--line); }
table.engine-matrix tr.tier-head th .empty { text-transform: none; letter-spacing: 0; color: var(--grey); font-weight: normal; margin-left: var(--space-2); }
table.engine-matrix .engine-id { display: block; color: var(--grey); font-size: 0.8em; opacity: 0.8; }
table.engine-matrix tr.engine-off td { opacity: 0.55; }
table.engine-matrix td.route.lead { font-weight: var(--weight-head); }
table.engine-matrix td.route.out, table.engine-matrix td.route.none { color: var(--grey); }
table.engine-matrix .engine-note { color: var(--grey); max-width: 18rem; }
table.engine-matrix .click-text { font-weight: normal; }
.route-tag { font-size: 0.7em; text-transform: uppercase; letter-spacing: var(--track-label); color: var(--red); margin-left: 4px; font-weight: var(--weight-head); }
details.cell-edit { position: relative; display: inline-block; }
details.cell-edit > summary { list-style: none; cursor: pointer; border-bottom: 1px dashed currentColor; display: inline; }
details.cell-edit > summary::-webkit-details-marker { display: none; }
details.cell-edit.add > summary { border-bottom: 0; padding: 0 var(--space-2); }
details.cell-edit[open] > summary, details.cell-edit > summary:hover { color: var(--red); }
details.cell-edit .edit-pop { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 17rem; text-align: left; white-space: normal; font-weight: normal;
  background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--red); padding: var(--space-3); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
td.route details.cell-edit .edit-pop, td.menu-price details.cell-edit .edit-pop { left: auto; right: 0; }
.edit-form { display: grid; gap: var(--space-2); }
.edit-form label { display: grid; gap: 2px; font-size: 0.85em; color: var(--grey); }
.edit-form label.check { display: flex; align-items: center; gap: var(--space-2); }
.edit-form input:not([type=checkbox]), .edit-form select { width: 100%; box-sizing: border-box; font: inherit; }
.edit-form .kicker { margin: 0; }
.edit-form.inline { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); align-items: end; }
details.add-more { margin-top: var(--space-3); }
details.add-more > summary { cursor: pointer; color: var(--grey); }
details.add-more > summary:hover, details.add-more[open] > summary { color: var(--red); }
details.add-more .edit-form { margin-top: var(--space-3); }
.engine-defaults form.default-pick { display: inline-flex; align-items: baseline; gap: 6px; width: auto; flex: none; margin: 0; }
.engine-defaults select.click-text, .edit-form select.click-text { max-width: none; width: auto; }
.edit-form label, .edit-form input, .edit-form p { margin: 0; }
.edit-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.edit-form .tier-pick { font-size: 0.85em; color: var(--grey); }
table.engine-matrix td.route.none details.cell-edit > summary { opacity: 0; }
table.engine-matrix tr:hover td.route.none details.cell-edit > summary, table.engine-matrix td.route.none details.cell-edit[open] > summary, table.engine-matrix td.route.none details.cell-edit > summary:focus-visible { opacity: 1; }
#tab-console .engine-defaults select.click-text { max-width: none; }
.engine-defaults .sep { color: var(--grey); }
/* The catalog flow (Kyle, 20 Oct 2026, 10:17): the tier menu, the pull list to tick, an engine's routes to tick. */
.engine-view { display: flex; align-items: baseline; gap: var(--space-2); margin: var(--space-3) 0; }
.engine-view .kicker { margin: 0; }
#tab-console .engine-view select.click-text { max-width: none; font-size: 1.05em; }
.pull-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.pick-form { display: grid; gap: var(--space-3); }
.pick-tier-group .tier-title { text-transform: uppercase; letter-spacing: var(--track-label); color: var(--red); font-weight: var(--weight-head); border-bottom: 1px solid var(--line); padding-bottom: var(--space-1); margin: var(--space-4) 0 var(--space-2); }
.pick-tier-group .tier-title .empty { text-transform: none; letter-spacing: 0; color: var(--grey); font-weight: normal; }
.pick-provider { color: var(--grey); font-size: 0.8em; text-transform: uppercase; letter-spacing: var(--track-label); margin: var(--space-3) 0 var(--space-1); }
ul.pick-list { list-style: none; margin: 0; padding: 0; columns: 2 22rem; column-gap: var(--space-6); }
li.pick-row { break-inside: avoid; display: grid; grid-template-columns: minmax(12rem, 1fr) auto; gap: 2px var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
li.pick-row .pick-where { grid-column: 1 / -1; color: var(--grey); font-size: 0.85em; padding-left: 1.6rem; }
li.pick-row .pick-tier { text-align: right; white-space: nowrap; }
li.pick-row .pick-name { font-weight: var(--weight-head); }
li.pick-row .engine-id { display: block; color: var(--grey); font-size: 0.8em; }
.pick-form > .primary, .pick-form > button { justify-self: start; }
table.engine-matrix tr.current td { background: var(--wall-glass); }
.edit-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-family: var(--font-mono, monospace); }
/* The (?) beside each engine picker and its list (Kyle, 20 Oct 2026, 23:10). */
button.help-q { display: inline-flex; align-items: center; justify-content: center; width: 1.3em; height: 1.3em; padding: 0; margin-left: 2px; border: 1px solid var(--grey); border-radius: 0;
  background: none; color: var(--grey); font: var(--weight-head) 0.75em/1 var(--font); cursor: pointer; vertical-align: middle; }
button.help-q:hover, button.help-q:focus-visible { color: var(--red); border-color: var(--red); }
dialog.engine-help { max-width: 34rem; max-height: 80vh; overflow: auto; }
dialog.engine-help::backdrop { background: rgba(0, 0, 0, 0.35); }
ul.engine-help-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
ul.engine-help-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
ul.engine-help-list li p { margin: 2px 0 0; }
ul.engine-help-list .engine-id { color: var(--grey); font-size: 0.8em; }
form.summary-form { display: flex; gap: var(--space-2); }
form.summary-form input[name=summary] { flex: 1; min-width: 16rem; max-width: none; font: inherit; }
.kicker-help { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-1); }
.kicker-help .kicker { margin: 0; }
li.pick-row .pick-variants { grid-column: 1 / -1; padding-left: 1.6rem; display: flex; gap: var(--space-3); align-items: center; color: var(--grey); font-size: 0.85em; }

/* The engine menus (Kyle, 21 Oct 2026, 02:26-02:34): each engine on two lines while open, its rank, name, score and
   coins, then its description; picked, only the top line shows. */
.rich-pick { position: relative; display: inline-block; max-width: 100%; }
button.rich-value { font: inherit; text-align: left; background: none; border: 0; border-bottom: 1px dotted var(--grey); padding: 0; cursor: pointer; color: inherit; max-width: 100%; white-space: normal; }
button.rich-value:hover, button.rich-value[aria-expanded="true"] { color: var(--red); border-bottom-color: var(--red); }
button.rich-value:disabled { cursor: default; opacity: 0.6; }
ul.rich-list { position: absolute; left: 0; top: calc(100% + 4px); z-index: 20; width: min(36rem, calc(100vw - 2rem)); max-height: 60vh; overflow: auto;
  margin: 0; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
ul.rich-list:focus { outline: none; }
ul.rich-list li { padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem); cursor: pointer; border-left: 3px solid transparent; }
ul.rich-list li + li { border-top: 1px solid var(--line); }
ul.rich-list li.active, ul.rich-list li:hover { border-left-color: var(--red); background: var(--tint); }
ul.rich-list li[aria-selected="true"] .rich-top { font-weight: 600; }
.rich-top { display: block; }
.rich-desc { display: block; font-size: 0.875em; color: var(--grey); margin-top: 2px; }
.rich-pick.in-value { display: block; }
.rich-pick.in-value .rich-value { display: none; }   /* the click-to-edit value above is the closed menu */
/* Enterprise Pool (Kyle, 21 Oct 2026, 02:55): Coins alone across the card, its four figures evenly spaced and centred. */
.pool-head:has(.pool-coins) { grid-template-columns: 1fr; }
.pool-group .pool-facts.pool-coins { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 30rem) { .pool-group .pool-facts.pool-coins { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-3); } }
.pool-group .pool-facts.pool-own { grid-template-columns: repeat(2, 1fr); }
.tier-price .of { font-size: 0.6em; color: var(--grey); font-weight: normal; }
form.own-coins { margin: var(--space-3) 0 var(--space-2); }
form.own-coins .own-coins-words { margin: 2px 0 0 1.6em; }
/* Top-up balance with the automatic top-up line beside it (Kyle, 21 Oct 2026, 03:02). */
.topup-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2) var(--space-5); margin: var(--space-3) 0 var(--space-2); }
.topup-row .topup-balance p { margin: 0; }
.topup-row .topup-beside { flex: 1 1 18rem; padding-top: 1.2em; }
.topup-row .topup-beside > p { margin: 2px 0 0; }
.own-label { text-align: left !important; margin-top: var(--space-4); }
.pool-topup { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
/* Org Profile (Kyle, 21 Oct 2026, 03:07): name and domain are click-to-edit text; Enter saves. */
.org-profile-fields .org-field { margin: 0 0 var(--space-2); }
.org-profile-fields .field-name { display: inline-block; min-width: 4.5rem; color: var(--grey); }
.org-profile-fields details.cell-edit[open] > form { position: absolute; z-index: 10; left: 0; top: calc(100% + 4px); background: var(--paper); border: 1px solid var(--line); padding: var(--space-2); }
.org-profile-fields details.cell-edit .field { min-width: 16rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.toggle-hint { display: inline-block; }
/* An unverified domain reads in light signal red, like Expires Soon (Kyle, 21 Oct 2026, 03:20). */
.org-profile-fields summary.unverified { color: #e5484d; }
:root[data-theme="dark"] .org-profile-fields summary.unverified { color: #ff8589; }
/* Automatic top-up on ONE line (Kyle, 30 Oct 2026, 16:46; was two lines, 21 Oct): "Enable automatic top-ups of $20 when
   account is below $10", the checkbox and both amounts inline. It wraps only on a narrow phone. Every top-up line
   (the AI tab's Coin Ledger, the Org page) is this one form, topupForm. */
.topup-auto .topup-line { display: inline-flex; align-items: baseline; gap: var(--space-1); }
.topup-auto .topup-line input[type="checkbox"] { align-self: center; margin: 0; }
.topup-auto .topup-words { display: inline; white-space: nowrap; }
.topup-auto .topup-words > span { display: inline; white-space: nowrap; }
@media (max-width: 30rem) { .topup-auto .topup-words, .topup-auto .topup-words > span { white-space: normal; } }
.topup-state { margin: 2px 0 0; }
/* Org Profile on one line (Kyle, 21 Oct 2026, 03:26-03:28): Name and Domain side by side, each value beside its label;
   the verified box beside the domain (hover: Verified / Not Verified); how to verify under an unverified one. */
.org-profile-fields { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6, 2.5rem); align-items: flex-start; margin-bottom: var(--space-2); }
.org-profile-fields .org-field { margin: 0; }
.org-profile-fields .field-name { min-width: 0; margin-right: var(--space-1); }
.verify-box { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; border: 1px solid #e5484d; vertical-align: -0.1em; font-size: 0.9em; line-height: 1; margin-left: 4px; }
.verify-box.is-verified { border-color: #2f9e44; color: #2f9e44; }
:root[data-theme="dark"] .verify-box { border-color: #ff8589; }
:root[data-theme="dark"] .verify-box.is-verified { border-color: #69db7c; color: #69db7c; }
.domain-help { margin: 2px 0 0; max-width: 32rem; }

/* More AI picks (Kyle, 30 Oct 2026): Voice, Image generation, and Peabody's Call | Chat | Work mode beside it. */
.picks { margin-top: var(--space-3); }
.seg { display: inline-flex; margin-left: var(--space-2); border: 1px solid var(--line); vertical-align: middle; }
.seg button { font: inherit; font-size: 0.875em; background: none; border: 0; padding: 2px var(--space-2, 0.5rem); cursor: pointer; color: var(--grey); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { color: inherit; background: var(--tint); font-weight: 600; }
.peabody-pick > .kicker { display: inline; }
.peabody-mode { margin-top: var(--space-2); }
ul.rich-list li.rich-group { cursor: default; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grey); background: var(--tint); border-left-color: transparent; }
button.voice-play { font: inherit; font-size: 0.875em; margin-left: var(--space-2); background: none; border: 0; padding: 0; cursor: pointer; color: var(--red); }
ul.rich-list li .voice-play { margin: 2px 0 0; display: inline-block; }
/* The AI tab's small tags beside a heading (Kyle, 30 Oct 2026): where a value comes from, and an adversarial review's
   or Peabody's tier; click to edit, the menu drawn like the engine menus. */
.ai-row[hidden] { display: none; }
.ai-row .row-head { margin: 0 0 var(--space-1, 0.25rem); }
.ai-row .row-head > .kicker { display: inline; margin: 0 0.35em 0 0; text-transform: capitalize; }
.ai-row .row-head > .tag, .ai-row .row-head > .tag-edit { margin-right: 0.35em; }
.tag { display: inline-block; font-size: 0.68rem; line-height: 1.4; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); border: 1px solid var(--line); border-radius: 999px; padding: 0 0.5em; vertical-align: super; white-space: nowrap; }
.ai-row details.tag-edit { display: inline-block; position: relative; width: auto; vertical-align: super; }
.tag-edit > summary.tag { vertical-align: baseline; }
.tag-edit > summary.tag { list-style: none; cursor: pointer; }
.tag-edit > summary.tag::-webkit-details-marker { display: none; }
.tag-edit > summary.tag:hover, .tag-edit[open] > summary.tag { color: var(--red); border-color: var(--red); }
ul.rich-list.tag-menu { width: max-content; min-width: 12rem; text-transform: none; letter-spacing: normal; font-size: 1rem; }
ul.rich-list.tag-menu li:focus { outline: none; border-left-color: var(--red); background: var(--tint); }
.peabody-pick .ai-row { margin-top: var(--space-2); }
/* Enable Peabody VM sits with conversation history (Kyle, 10 Nov 2026): one row per member for an org admin. */
.peabody-history, .peabody-vm { margin: 0 0 var(--space-3); }
.peabody-vm-members { list-style: none; margin: 0; padding: 0; }
.peabody-vm-members li { padding: var(--space-1) 0; }
.peabody-vm-members form, .peabody-vm label.check { margin: 0; }

/* AI tab v4 (Kyle, 30 Oct 2026): sub-tabs like the account tabs, the chosen one red; level rows; the matrices beside
   the ledger and settings on a wide screen, below them on a narrow one; Agent Calls full width at the bottom. */
.ai-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-5); }
@media (min-width: 1100px) { .ai-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.ai-main, .ai-side { min-width: 0; }
.subtabs { display: flex; flex-wrap: wrap; gap: var(--space-4); border-bottom: 1px solid var(--line, #ddd); margin: var(--space-2) 0 var(--space-3); }
.subtab { background: none; border: 0; border-bottom: 2px solid transparent; padding: var(--space-2) 0; font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: inherit; opacity: .7; cursor: pointer; margin-bottom: -1px; }
.subtab:hover { opacity: 1; }
.subtab[aria-selected="true"] { color: #e5484d; border-bottom-color: #e5484d; opacity: 1; }
:root[data-theme="dark"] .subtab[aria-selected="true"] { color: #ff8589; border-bottom-color: #ff8589; }
.level-row { display: grid; grid-template-columns: 9.5rem auto minmax(0, 1fr); align-items: center; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px dashed var(--line, #e5e5e5); }
.level-row .level-name { font-size: .85rem; font-weight: 600; }
.level-row .level-value { min-width: 0; }
.level-row.in-use .level-name { color: #e5484d; }
.in-use-mark { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.allow-row { padding: var(--space-2) 0; border-bottom: 1px dashed var(--line, #e5e5e5); }
/* The Image tab's two types (Kyle, 2 Nov 2026): Generative, then Vision. */
.pick-type + .pick-type { margin-top: var(--space-4); }
.pick-type > .kicker { margin-bottom: var(--space-1); }
.ai-pane .level-row > [data-tier-tag], .ai-pane .level-row > .tag { justify-self: start; }
.ledger-head { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.ledger-checks { display: grid; gap: var(--space-2); margin: var(--space-2) 0; }
table.matrix { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.matrix th, table.matrix td { text-align: left; padding: var(--space-1) var(--space-2); border-bottom: 1px solid var(--line, #eee); }
table.matrix td { font-variant-numeric: tabular-nums; }
table.matrix .est { opacity: .6; font-size: .75em; }
.rm-pick { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); }

/* Coin Ledger rows (Kyle, 30 Oct 2026, 16:23): three columns; the person's My Top Ups under Org Top Ups, the middle
   column empty. On a narrow screen two columns, My Top Ups beside the grant. One sentence a line in the note. */
.ledger-block .pool-facts.pool-coins { grid-template-columns: repeat(3, 1fr); }
.ledger-block .ledger-mine-topups { grid-column: 3; }
@media (max-width: 30rem) { .ledger-block .pool-facts.pool-coins { grid-template-columns: repeat(2, 1fr); } .ledger-block .ledger-mine-topups { grid-column: auto; } }
.ledger-note p { margin: 0; }
/* Coin Ledger checkboxes: one per line, flush left, same box, gap and alignment, no backgrounds. */
.ledger-checks { justify-items: start; gap: var(--space-3); }
.ledger-checks form { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.ledger-checks label.check, .ledger-checks .topup-auto .topup-line { display: flex; align-items: baseline; gap: var(--space-2); margin: 0; padding: 0; background: none; font-weight: normal; line-height: 1.8; }
.ledger-checks .topup-auto .topup-line input[type="checkbox"], .ledger-checks label.check input[type="checkbox"] { flex: none; width: auto; margin: 0; align-self: center; vertical-align: baseline; }
.ledger-checks .topup-words, .ledger-checks label.check > span { background: none; }
.ledger-checks .own-coins-words { margin: 0; }
@media (max-width: 30rem) { .topup-auto .topup-line input[type="checkbox"], .ledger-checks .topup-auto .topup-line input[type="checkbox"] { align-self: flex-start; margin-top: 0.45em; } }
/* AI tab tooltips (Kyle, 30 Oct 2026, 16:52): explanations live on the control they describe, shown on hover,
   keyboard focus or tap, never as paragraphs. The words are also in a visually hidden copy for screen readers. */
.tip[data-tip] { position: relative; cursor: help; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.tip[data-tip]:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.tip[data-tip]:hover::after, .tip[data-tip]:focus::after {
  content: attr(data-tip); position: absolute; z-index: 40; left: 0; top: calc(100% + 0.35rem);
  width: max-content; max-width: min(22rem, 80vw); padding: 0.5rem 0.65rem; border-radius: 6px;
  background: #1d1d1f; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 0.8rem; font-weight: 400; line-height: 1.4; letter-spacing: normal; text-transform: none; text-align: left; white-space: pre-line;
  pointer-events: none;
}
.ai-side .tip[data-tip]:hover::after, .ai-side .tip[data-tip]:focus::after { left: auto; right: 0; }

/* AI tab saves without a reload (Kyle, 30 Oct 2026, 17:35): the tab's status line and a row's own "Saved" or error. */
.save-state { min-height: 1.2em; margin: 0 0 var(--space-1, 0.25rem); font-size: 0.85em; color: var(--muted, #6b6b6b); }
.save-state:empty { min-height: 0; margin: 0; }
.save-state.bad, .row-state.bad { color: var(--danger, #b42318); }
.row-state { display: block; font-size: 0.8em; color: var(--muted, #6b6b6b); grid-column: 1 / -1; }
/* The Console tab's passkey step failed or was canceled (Kyle, 30 Oct 2026, pt1454u): one short line beside the tabs. */
.tab-error { align-self: center; margin-left: var(--space-2, 0.5rem); font-size: 0.85em; color: var(--danger, #b42318); }
.tab-error:empty { display: none; }
.tab[aria-busy="true"] { opacity: 0.7; cursor: progress; }
/* Licenses (Kyle, 30 Oct 2026, 18:22): the selected product in Signal Red, like Members of on the Org Admin tab. */
.licence-subtabs .subtab[aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.licence-subtabs .subtab .tab-dot { margin-left: var(--space-1, 0.25rem); }

/* Promotions (Kyle, 3 Nov 2026): the chosen campaign as a card in the middle, the campaigns as a list on the right. */
.promo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: var(--space-5); align-items: start; }
.promo-layout > * { min-width: 0; }
.promo-card { margin: 0; }
.promo-card h3 { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; margin-top: 0; }
.promo-card h4 { margin: var(--space-4) 0 var(--space-2); }
.promo-status { font-size: 0.8em; font-weight: var(--weight-body); padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; }
.promo-status.promo-live { border-color: var(--red); color: var(--red); }
.promo-facts { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--space-1) var(--space-3); margin: 0 0 var(--space-3); }
.promo-facts dt { font-weight: var(--weight-head); } .promo-facts dd { margin: 0; }
.promo-form { display: grid; gap: var(--space-3); }
.promo-field { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--space-3); align-items: baseline; }
.promo-label { font-weight: var(--weight-head); }
.promo-control input[type="text"], .promo-control input:not([type]), .promo-control input[type="email"] { width: 100%; max-width: 24rem; }
.promo-hint { margin: var(--space-1) 0 0; font-size: 0.9em; }
.promo-plans { border-collapse: collapse; }
.promo-plans th, .promo-plans td { padding: 3px 10px 3px 0; text-align: left; font-weight: var(--weight-body); }
.promo-plans thead th { font-weight: var(--weight-head); }
.promo-plans td { text-align: center; }
.promo-actions { padding-left: calc(8rem + var(--space-3)); }
.promo-end { margin: var(--space-3) 0; }
.promo-list .text-button { text-decoration: none; display: inline-block; margin-bottom: var(--space-3); }
.promo-list ul { list-style: none; margin: 0; padding: 0; }
.promo-list li { border-left: 2px solid transparent; padding: 6px 8px; }
.promo-list li.current { border-left-color: var(--red); background: var(--tint); }
.promo-list li a { display: grid; color: inherit; text-decoration: none; }
.promo-list li a:hover .promo-row-name { color: var(--red); }
.promo-row-name { font-weight: var(--weight-head); }
.promo-row-meta { font-size: 0.85em; }
@media (max-width: 860px) {
  .promo-layout { grid-template-columns: 1fr; }
  .promo-list { order: -1; }
  .promo-field, .promo-facts { grid-template-columns: 1fr; gap: var(--space-1); }
  .promo-actions { padding-left: 0; }
}
.promo-form label { margin: 0; }
.promo-check { display: inline-flex; align-items: center; gap: var(--space-2); }
.promo-check input { width: auto; margin: 0; }
/* Org-managed (A3, Kyle 4 Nov 2026): a mailbox its org hosts on smitz.net. Signal Red, never blue. */
.badge { display: inline-block; padding: 0 var(--space-2); border: 1px solid var(--red); color: var(--red); font-size: var(--type-mark); font-weight: var(--weight-head); letter-spacing: var(--track-label); text-transform: uppercase; vertical-align: middle; }
.hold-note { border-left: 3px solid var(--red); padding-left: var(--space-3); }

/* Benchmarking (Kyle, 9 Nov 2026): the chart's marks in the theme's accent, its grid and axes recessive. */
.bench-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 8px 0 12px; }
.bench-controls label { display: inline-flex; gap: 8px; align-items: center; }
.bench-chart { margin: 0 0 16px; }
.bench-chart figcaption { font-weight: 600; margin-bottom: 6px; }
.bench-chart svg { width: 100%; max-width: 760px; height: auto; display: block; }
.bench-grid { stroke: var(--line); stroke-width: 1; }
.bench-tick { fill: var(--grey); opacity: 0.75; font-size: 11px; }
.bench-label { fill: var(--grey); font-size: 12px; }
.bench-n { fill: var(--grey); opacity: 0.75; font-size: 11px; }
.bench-whisker { stroke: var(--grey); stroke-width: 2; stroke-linecap: round; }
.bench-dot { fill: var(--red); stroke: var(--surface); stroke-width: 2; }
.bench-hit { fill: transparent; }
.bench-row:hover .bench-hit { fill: var(--tint); }
.bench-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bench-sub { display: block; font-size: 11px; opacity: 0.7; font-weight: 400; }
.bench h3 { margin: 18px 0 6px; }

/* The monthly statement of account (/statement): each section's headline figure. */
.statement-headline { margin: var(--space-3) 0; font-size: var(--type-body, 1rem); }

/* The Billing tab (lib/billing-tab.mjs): the account and month menus above the statement. */
.billing-picks { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-3); }
.billing-picks label { display: inline-flex; gap: var(--space-2, 8px); align-items: center; }
