/* Okestra: concert-hall dark. Ink and plum ground, brass for the conductor's hand. */
:root {
  --ink-0: #0f0b14;      /* canvas */
  --ink-1: #161019;      /* rail, surfaces */
  --ink-2: #1e1623;      /* elevated */
  --ink-3: #281e2f;      /* hover, inputs */
  --plum: #3b2747;       /* plum accent ground */
  --line: #34283c;
  --line-2: #4a3a55;
  --text: #f3ece2;
  --text-2: #cdbfcb;
  --text-3: #a998ab;
  --brass: #dcae62;
  --brass-hi: #ecc887;
  --brass-ink: #1b1209;
  --brass-wash: rgba(220, 174, 98, 0.12);
  --ok: #86cba6;
  --ok-wash: rgba(134, 203, 166, 0.13);
  --info: #9dbcf0;
  --info-wash: rgba(157, 188, 240, 0.13);
  --warn: #f19a85;
  --warn-wash: rgba(241, 154, 133, 0.14);
  --muted-wash: rgba(205, 191, 203, 0.09);
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(6, 3, 9, 0.75), 0 2px 6px -2px rgba(6, 3, 9, 0.6);
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tap: 44px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scrollbar-color: var(--line-2) var(--ink-0); }
body {
  margin: 0; min-height: 100dvh; background: var(--ink-0); color: var(--text);
  font: 400 1rem/1.55 var(--font-body); letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brass); color: var(--brass-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--ink-0); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 750; }
h2 { font-size: 1.22rem; }
h3 { font-size: 1.02rem; }
p { margin: 0; }
a { color: var(--brass-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; border-radius: 6px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.sm { width: 16px; height: 16px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brass); color: var(--brass-ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 24px; }
.mono { font-family: var(--font-mono); font-size: 0.86em; }
.muted { color: var(--text-3); }
.soft { color: var(--text-2); }
.nowrap { white-space: nowrap; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--ink-2); color: var(--text); font: 600 0.94rem/1 var(--font-body); cursor: pointer;
  white-space: nowrap; transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.12s var(--ease);
  text-decoration: none;
}
.btn:hover { background: var(--ink-3); border-color: var(--text-3); color: var(--text); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.btn.primary:hover { background: var(--brass-hi); border-color: var(--brass-hi); color: var(--brass-ink); }
.btn.danger { border-color: rgba(241, 154, 133, 0.5); color: var(--warn); background: transparent; }
.btn.danger:hover { background: var(--warn-wash); color: #ffd3c8; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--ink-3); color: var(--text); }
.btn.icon-only { width: var(--tap); padding: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 0.86rem; font-weight: 600; color: var(--text-2); }
.field small { color: var(--text-3); font-size: 0.82rem; }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--ink-0); border: 1px solid var(--line-2); color: var(--text);
  font: 400 1rem/1.4 var(--font-body); caret-color: var(--brass);
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input::placeholder, textarea::placeholder { color: #9b8b9d; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); cursor: pointer; color: var(--text-2); }
.check input { width: 20px; height: 20px; accent-color: var(--brass); }
.err { color: var(--warn); font-size: 0.88rem; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; align-content: center; padding: 28px 20px calc(28px + var(--safe-b)); gap: 32px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) { .login { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; } }
.login-brand { display: grid; gap: 18px; }
.mark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 750; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.mark img { width: 36px; height: 36px; border-radius: 10px; }
.login-brand h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); max-width: 14ch; }
.login-brand p { color: var(--text-2); max-width: 46ch; font-size: 1.05rem; }
.login-card { background: var(--ink-1); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.stave-deco { width: 100%; max-width: 440px; height: 72px; }

/* ---------- shell ---------- */
.shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.rail { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px 8px 16px; background: rgba(15, 11, 20, 0.98); border-bottom: 1px solid var(--line);
}
.topbar .mark { font-size: 1.1rem; }
.topbar .mark img { width: 30px; height: 30px; border-radius: 8px; }
main { padding: 20px 16px calc(96px + var(--safe-b)); min-width: 0; width: 100%; max-width: 1280px; margin: 0 auto; }
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: rgba(22, 16, 25, 0.99); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + var(--safe-b));
}
.tabbar a, .tabbar button {
  display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 6px 2px; align-content: center;
  color: var(--text-3); text-decoration: none; font: 600 0.72rem/1.1 var(--font-body); background: none; border: 0; border-radius: 10px; cursor: pointer; position: relative;
}
.tabbar a[aria-current=page] { color: var(--brass-hi); }
.tabbar a[aria-current=page]::before { content: ''; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--brass); }
.count-pip { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--warn); color: #2a0f08; font: 700 0.7rem/18px var(--font-body); text-align: center; }

.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(6, 3, 9, 0.66); }
.drawer nav { position: absolute; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--ink-1); border-left: 1px solid var(--line); padding: 16px; display: grid; align-content: start; gap: 4px; overflow-y: auto; animation: slideIn 0.35s var(--ease); }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.navlist { display: grid; gap: 2px; }
.navlist a { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 500; position: relative; }
.navlist a:hover { background: var(--ink-2); color: var(--text); }
.navlist a[aria-current=page] { background: var(--brass-wash); color: var(--brass-hi); }
.navlist a .badge-n { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--warn); color: #2a0f08; font: 700 0.75rem/22px var(--font-body); text-align: center; }
.whoami { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.whoami strong { font-family: var(--font-display); font-weight: 650; }
.role-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--brass-hi); }

@media (min-width: 960px) {
  .shell { grid-template-columns: 252px minmax(0, 1fr); }
  .rail { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100dvh; padding: 20px 14px; background: var(--ink-1); border-right: 1px solid var(--line); overflow-y: auto; }
  .rail .mark { padding: 4px 10px; }
  .rail .rail-foot { margin-top: auto; display: grid; gap: 10px; }
  .topbar, .tabbar { display: none; }
  main { padding: 32px 40px 56px; }
}

/* ---------- page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.page-head p { color: var(--text-2); margin-top: 6px; max-width: 62ch; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head .muted { font-size: 0.9rem; }

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); margin-bottom: 20px; flex-wrap: wrap; }
.banner.paused { background: var(--warn-wash); border: 1px solid rgba(241, 154, 133, 0.45); color: #ffd9cf; }
.banner.paused strong { color: #ffe6df; }
.banner .grow { flex: 1 1 220px; }

/* ---------- live counts strip ---------- */
.tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--ink-1); }
.tally > div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.tally > div:nth-child(2n) { border-right: 0; }
.tally b { font-family: var(--font-display); font-weight: 650; font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.02em; }
.tally span { color: var(--text-2); font-size: 0.86rem; }
.tally .hot b { color: var(--warn); }
.tally > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
@media (max-width: 719px) { .hide-sm { display: none; } }
.tally .brass b { color: var(--brass-hi); }
@media (min-width: 720px) {
  .tally { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tally > div { border-bottom: 0; }
  .tally > div:nth-child(2n) { border-right: 1px solid var(--line); }
  .tally > div:last-child { border-right: 0; grid-column: auto; }
}

/* ---------- command center ---------- */
.cc-grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 1100px) { .cc-grid { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); align-items: start; } }
.panel { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.panel.brassy { border-color: rgba(220, 174, 98, 0.35); background: linear-gradient(180deg, rgba(220, 174, 98, 0.07), rgba(220, 174, 98, 0) 60%), var(--ink-1); }
.panel h2 { margin-bottom: 4px; }
.panel > p { color: var(--text-2); margin-bottom: 14px; font-size: 0.95rem; }
.form { display: grid; gap: 14px; }

.missions { display: grid; }
.mission { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.mission:first-child { border-top: 0; padding-top: 4px; }
.mission-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mission-top h3 { font-size: 1.08rem; }
.mission-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--text-3); font-size: 0.85rem; }
.mission p.brief { color: var(--text-2); font-size: 0.94rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 75ch; }

/* The signature: each mission is a stave. Five lines, one note per duty, placed by how far it has travelled. */
.stave { position: relative; height: 54px; border-radius: 8px; }
.stave > svg { width: 100%; height: 100%; display: block; }
.stave .note { position: absolute; width: 16px; height: 28px; }
.stave .note svg { display: block; }
.stave .ln { stroke: var(--line-2); stroke-width: 1; }
.stave .bar { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; }
.stave-legend span { overflow: hidden; text-overflow: clip; }
.stave-legend { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; white-space: nowrap; color: var(--text-3); font-size: 0.72rem; letter-spacing: 0.02em; }

.attention { display: grid; gap: 8px; }
.attn { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; color: var(--text); min-height: var(--tap); }
.attn:hover { border-color: var(--line-2); background: var(--ink-3); color: var(--text); }
.attn .icon { margin-top: 2px; color: var(--warn); }
.attn.brass .icon { color: var(--brass-hi); }
.attn.info .icon { color: var(--info); }
.attn small { display: block; color: var(--text-3); font-size: 0.84rem; margin-top: 2px; }

/* ---------- status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 0.76rem/1 var(--font-body); white-space: nowrap; background: var(--muted-wash); color: var(--text-2); }
.pill.s-queued { background: var(--muted-wash); color: var(--text-2); }
.pill.s-assigned, .pill.s-claimed, .pill.s-in_progress { background: var(--info-wash); color: var(--info); }
.pill.s-submitted { background: var(--brass-wash); color: var(--brass-hi); }
.pill.s-approved { background: var(--ok-wash); color: var(--ok); }
.pill.s-escalated, .pill.s-rejected, .pill.s-declined { background: var(--warn-wash); color: var(--warn); }
.pill.s-cancelled { background: transparent; color: var(--text-3); border: 1px solid var(--line-2); }
.pill.p-urgent, .pill.p-high { background: var(--warn-wash); color: var(--warn); }
.pill.p-normal { background: var(--muted-wash); color: var(--text-2); }
.pill.p-low { background: transparent; color: var(--text-3); border: 1px solid var(--line-2); }
.pill.gate { background: transparent; border: 1px solid rgba(241, 154, 133, 0.55); color: var(--warn); }

/* ---------- roster ---------- */
.section-rank { margin-top: 28px; }
.section-rank:first-of-type { margin-top: 0; }
.rank-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rank-title h2 { font-size: 1.05rem; }
.rank-title .rule { flex: 1; height: 1px; background: var(--line); }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.agent { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; align-content: start; position: relative; }
.agent.is-sup { border-color: rgba(220, 174, 98, 0.5); box-shadow: inset 0 1px 0 rgba(236, 200, 135, 0.18); }
.agent-head { display: flex; gap: 12px; align-items: center; }
.monogram { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--font-display); background: var(--plum); color: var(--text); position: relative; flex: none; }
.monogram .dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--ink-1); background: #6f6272; }
.monogram .dot.on { background: var(--ok); }
.agent-head h3 { display: flex; align-items: center; gap: 6px; }
.agent-head .crown { color: var(--brass-hi); }
.agent-sub { color: var(--text-3); font-size: 0.85rem; }
.badge-rank { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; border: 1px solid rgba(220, 174, 98, 0.45); color: var(--brass-hi); font: 650 0.76rem/1 var(--font-body); letter-spacing: 0.02em; }
.kv { display: grid; gap: 6px; font-size: 0.9rem; }
.kv div { display: flex; gap: 8px; justify-content: space-between; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ink-3); color: var(--text-2); font-size: 0.8rem; }
.duty-lines { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 0.9rem; display: grid; gap: 2px; }
.agent .btn-row .btn { min-height: 40px; height: 44px; font-size: 0.88rem; padding: 0 14px; }

/* ---------- board ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters .field { min-width: 0; flex: 1 1 180px; max-width: 280px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 84vw); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.board > .col { scroll-snap-align: start; }
@media (min-width: 720px) { .board { grid-auto-columns: minmax(240px, 1fr); } }
@media (min-width: 1200px) { .board { grid-auto-columns: minmax(176px, 1fr); } }
.col { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 200px; }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
.col-head h2 { font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.col-head .n { color: var(--text-3); font-size: 0.85rem; }
.card { display: grid; gap: 8px; text-align: left; width: 100%; padding: 12px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.card:hover { border-color: var(--line-2); background: var(--ink-3); }
.card .t { font-weight: 600; line-height: 1.35; }
.card .m { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--text-3); font-size: 0.82rem; align-items: center; }
.col-empty { color: var(--text-3); font-size: 0.86rem; padding: 10px 4px; }

/* ---------- lists ---------- */
.list { display: grid; }
.row { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.row .body { color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.row .meta { color: var(--text-3); font-size: 0.84rem; display: flex; gap: 6px 12px; flex-wrap: wrap; }

.empty { display: grid; gap: 10px; justify-items: start; padding: 28px 22px; border: 1px dashed var(--line-2); border-radius: var(--r); background: rgba(22, 16, 25, 0.6); }
.empty h3 { font-size: 1.05rem; }
.empty p { color: var(--text-2); max-width: 56ch; }

/* ---------- duty sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; }
.sheet .scrim { position: absolute; inset: 0; background: rgba(6, 3, 9, 0.7); animation: fade 0.25s var(--ease); }
.sheet-body { position: relative; margin-left: auto; width: min(640px, 100%); height: 100%; overflow-y: auto; background: var(--ink-1); border-left: 1px solid var(--line); padding: 16px 18px calc(32px + var(--safe-b)); animation: slideIn 0.35s var(--ease); }
.sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: sticky; top: -16px; background: var(--ink-1); padding: 16px 0 12px; margin-top: -16px; z-index: 2; border-bottom: 1px solid var(--line); }
.sheet h2 { font-size: 1.3rem; }
.sheet .instructions { white-space: pre-wrap; color: var(--text-2); background: var(--ink-0); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 0 0 16px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .node { width: 17px; height: 17px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--ink-1); }
.timeline .node.k-approved, .timeline .node.k-authorized { border-color: var(--ok); background: var(--ok); }
.timeline .node.k-submitted { border-color: var(--brass); background: var(--brass); }
.timeline .node.k-rejected, .timeline .node.k-escalated, .timeline .node.k-declined, .timeline .node.k-question { border-color: var(--warn); }
.timeline .node.k-progress, .timeline .node.k-claimed { border-color: var(--info); }
.timeline .what { font-weight: 600; font-size: 0.92rem; }
.timeline .when { color: var(--text-3); font-size: 0.8rem; }
.timeline .txt { color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.93rem; margin-top: 2px; }
.evidence { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.evidence a { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; overflow-wrap: anywhere; }
.progressbar { height: 4px; border-radius: 4px; background: var(--ink-3); overflow: hidden; }
.progressbar i { display: block; height: 100%; background: var(--info); border-radius: 4px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- onboarding ---------- */
.keybox { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); border: 1px solid rgba(220, 174, 98, 0.5); background: var(--brass-wash); }
.keybox code { font-family: var(--font-mono); font-size: 0.92rem; color: var(--text); overflow-wrap: anywhere; background: var(--ink-0); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); }
.prompt-box { font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.55; min-height: 320px; white-space: pre-wrap; }

/* ---------- settings ---------- */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2); }
.switch.on { border-color: rgba(241, 154, 133, 0.55); background: var(--warn-wash); }
.toggle { position: relative; width: 60px; height: 44px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; width: 100%; height: 100%; z-index: 1; }
.toggle .track { position: absolute; inset: 5px 0; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--line-2); transition: background 0.2s var(--ease); }
.toggle .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--text-2); transition: transform 0.25s var(--ease), background 0.2s; }
.toggle input:checked + .track { background: var(--warn); border-color: var(--warn); }
.toggle input:checked + .track::after { transform: translateX(26px); background: #2a0f08; }
.toggle input:focus-visible + .track { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.settings-grid { display: grid; gap: 20px; }
@media (min-width: 1000px) { .settings-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.edit-list { display: grid; gap: 8px; }
.edit-item { display: grid; grid-template-columns: minmax(0, 1fr) 78px auto; gap: 8px; align-items: center; }
.edit-item.role { grid-template-columns: minmax(0, 1fr) auto; }
.policy-editor { font-family: var(--font-mono); font-size: 0.84rem; min-height: 260px; }

/* ---------- dialog ---------- */
dialog { border: 1px solid var(--line-2); border-radius: 16px; background: var(--ink-1); color: var(--text); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(6, 3, 9, 0.72); }
dialog .dlg { padding: 20px; display: grid; gap: 14px; }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(84px + var(--safe-b)); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
@media (min-width: 960px) { #toasts { bottom: 24px; } }
.toast { pointer-events: auto; padding: 12px 14px; border-radius: 10px; background: var(--ink-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--text); animation: rise 0.35s var(--ease); }
.toast.bad { border-color: rgba(241, 154, 133, 0.6); color: #ffd9cf; }
.toast.good { border-color: rgba(134, 203, 166, 0.55); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- skeleton ---------- */
.skel { display: grid; gap: 12px; }
.skel i { display: block; height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--ink-2), var(--ink-3), var(--ink-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel i:nth-child(2) { width: 82%; } .skel i:nth-child(3) { width: 64%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.view-enter { animation: viewIn 0.4s var(--ease); }
@keyframes viewIn { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---- Usage */
.usage { margin-top: 24px; }
.usage .sep { opacity: .55; margin: 0 2px; }
.u-list { display: grid; gap: 10px; }
.u-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) 1fr 1fr minmax(120px, .7fr); gap: 20px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); }
.u-row.low { border-color: rgba(241, 154, 133, .45); }
.u-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.u-who h3 { margin: 0; font-size: 1rem; display: flex; gap: 6px; align-items: center; }
.monogram.sm { width: 36px; height: 36px; font-size: .85rem; flex: none; }
.meter-top { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--text-2); margin-bottom: 6px; }
.meter-top b { color: var(--text); font-weight: 600; }
.bar { height: 8px; border-radius: 99px; background: var(--muted-wash); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .6s var(--ease); }
.meter.warm .bar i { background: var(--brass); }
.meter.hot .bar i { background: var(--warn); }
.meter-foot { font-size: .78rem; color: var(--text-3); margin-top: 5px; }
.u-hist { display: grid; gap: 4px; font-size: .75rem; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.spark i { flex: 1; min-width: 4px; max-width: 10px; background: var(--info); border-radius: 2px 2px 0 0; opacity: .85; }
.spark i.hot { background: var(--warn); }
.stale { color: var(--warn); }
.u-none { grid-column: 2 / -1; margin: 0; font-size: .9rem; }
.u-note { font-size: .8rem; margin: 12px 0 0; }
.u-extra { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; font-size: .82rem; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.u-extra b { color: var(--text); font-weight: 600; }
.banner.warn-soft { background: var(--warn-wash); border: 1px solid rgba(241,154,133,.35); border-radius: var(--r-sm); padding: 10px 12px; display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
@media (max-width: 900px) {
  .u-row { grid-template-columns: 1fr 1fr; }
  .u-who, .u-hist, .u-none, .u-extra { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .u-row { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }

/* "New activity. Refresh" pill: offered by the background check instead of rebuilding the screen. */
.update-pill {
  position: fixed; z-index: 85; left: 50%; transform: translateX(-50%); top: 64px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--brass); color: var(--brass-ink); border: 1px solid var(--brass); box-shadow: var(--shadow);
  font: 600 0.92rem/1 var(--font-body); white-space: nowrap; cursor: pointer; animation: fade 0.35s var(--ease);
}
.update-pill:hover { background: var(--brass-hi); border-color: var(--brass-hi); }
@media (min-width: 960px) { .update-pill { top: auto; left: auto; transform: none; right: 24px; bottom: 24px; } }

.home .login-card h2 { font-size: 1.25rem; }

/* Admin: sign-ups per day and the Free-plan load meter */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 72px; margin-top: 12px; }
.bars span { flex: 1 1 0; min-width: 4px; border-radius: 4px 4px 0 0; background: var(--brass); opacity: 0.85; }
.admin-meter, .panel > .meter { height: 10px; border-radius: 999px; background: var(--ink-3); overflow: hidden; margin-top: 10px; }
.panel > .meter span { display: block; height: 100%; background: var(--brass); border-radius: 999px; }

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

/* ---------- Public homepage ---------- */
.site { min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(1200px 600px at 50% -10%, rgba(59, 39, 71, .55), transparent 70%), var(--ink-0); }
.site-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: transparent; border-bottom: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease); }
.site-nav.scrolled { background: rgba(15, 11, 20, .97); border-bottom-color: var(--line); }
.site-nav .mark, .site-foot .mark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.1rem/1 var(--font-display); }
.site-nav .mark img, .site-foot .mark img { border-radius: 8px; }
.site-nav nav { display: none; gap: 24px; margin-left: auto; }
.site-nav nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 2px; }
.site-nav nav a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 8px; margin-left: auto; }
@media (min-width: 860px) { .site-nav nav { display: flex; } .nav-cta { margin-left: 16px; } }
@media (max-width: 420px) { .hide-xs { display: none; } }
.home { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px calc(32px + var(--safe-b)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.hero2, .stage, .strip { min-width: 0; }
.eyebrow { color: var(--brass-hi); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.lede { color: var(--text-2); font-size: 1.08rem; line-height: 1.6; max-width: 56ch; margin: 0; }
.small { font-size: .88rem; margin: 0; }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 1.02rem; border-radius: 999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero stage */
.hero2 { padding: 8px 0 24px; }
.stage { --px: 0; --py: 0; position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; border: 1px solid #2c2234; background: radial-gradient(900px 420px at 50% 62%, rgba(59, 39, 71, .5), transparent 70%), #0a070d; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04); padding: 56px 18px 28px; }
.stage-art { position: absolute; inset: 0; z-index: -1; background: url(/img/stave.svg) center 64% / cover no-repeat; opacity: .95; -webkit-mask-image: radial-gradient(75% 70% at 50% 55%, #000 35%, transparent 100%); mask-image: radial-gradient(75% 70% at 50% 55%, #000 35%, transparent 100%); }
.hero2-copy { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 20px; max-width: 760px; margin: 0 auto; }
.hero2-title { display: grid; justify-items: center; gap: 14px; font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 750; }
.pill-word { position: relative; display: inline-grid; font-size: min(1em, 8.6vw); }
.pill-ring { position: relative; z-index: 1; display: inline-flex; justify-content: center; align-items: center; padding: .14em .62em .2em; border-radius: 999px; border: 2px solid transparent; background: linear-gradient(#0d0911, #0d0911) padding-box, conic-gradient(from var(--spin, 0deg), #f19a85, #ecc887, #86cba6, #9dbcf0, #8b6aa8, #f19a85) border-box; transition: width .45s var(--ease); white-space: nowrap; box-shadow: inset 0 0 40px rgba(0, 0, 0, .6); }
.pill-glow { position: absolute; inset: -14px -10px; z-index: 0; border-radius: 999px; background: linear-gradient(90deg, #f19a85, #ecc887, #86cba6, #9dbcf0, #8b6aa8); filter: blur(28px); opacity: .5; transform: translateZ(0); animation: glow-breathe 6s ease-in-out infinite; }
@keyframes glow-breathe { 50% { opacity: .7; } }
@property --spin { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
.pill-word { animation: pill-spin 9s linear infinite; }
@keyframes pill-spin { to { --spin: 360deg; } }
.pw { display: inline-block; background: linear-gradient(180deg, #fff, #e9dfd1); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .3s var(--ease), transform .3s var(--ease), filter .3s var(--ease); }
.pw.out { opacity: 0; transform: translateY(.18em); filter: blur(6px); }
.hero2-copy .lede { text-align: center; font-size: 1.12rem; }
.hero2-ctas { justify-content: center; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--text-3); font-size: .9rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .icon { color: var(--ok); }

/* Floating product-moment cards */
.fcs { display: none; }
.fc { position: absolute; z-index: 1; width: 236px; transform: translate3d(calc(var(--px) * var(--d) * -1px), calc(var(--py) * var(--d) * -1px), 0); transition: transform .5s var(--ease); }
.fc-in { animation: bob 7s ease-in-out infinite; will-change: translate; }
.fc-1 { top: 6%; left: 2.5%; } .fc-1 .fc-in { rotate: -5deg; }
.fc-2 { top: 30%; left: 4.5%; width: 222px; } .fc-2 .fc-in { rotate: 3deg; animation-delay: -2s; }
.fc-3 { top: 6%; right: 2.5%; } .fc-3 .fc-in { rotate: 4deg; animation-delay: -4s; }
.fc-4 { bottom: 5%; left: 3%; } .fc-4 .fc-in { rotate: 3deg; animation-delay: -1s; }
.fc-5 { bottom: 5%; right: 3%; } .fc-5 .fc-in { rotate: -3deg; animation-delay: -3s; }
.fc-6 { top: 36%; right: 4.5%; width: 214px; } .fc-6 .fc-in { rotate: -6deg; animation-delay: -5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (min-width: 1200px) {
  .stage { min-height: 700px; display: grid; align-content: center; padding: 72px 24px; }
  .fcs { display: block; }
  .hero2-copy { max-width: 600px; }
  .strip { display: none; }
}
@media (min-width: 1200px) and (max-width: 1299px) { .fc-2, .fc-6 { display: none; } .fc { width: 206px; } .hero2-copy { max-width: 560px; } .hero2-title { font-size: 3.6rem; } }
/* Agent cards: each agent its own bright colour, as 3D claymorphism cards */
.ag { --c1: #52d1a9; --c2: #2fae84; position: relative; isolation: isolate; display: grid; gap: 10px; padding: 16px; border-radius: 28px; color: #1a1020; text-align: left; font-size: .86rem;
  /* 3D claymorphism: a smooth, matte, puffy surface. Light from the top left (inner highlight), a soft inner
     shade at the bottom right, and a deep, diffuse drop shadow so the card floats off the stage. */
  background: radial-gradient(120% 90% at 25% 10%, rgba(255, 255, 255, .28), transparent 60%), linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: inset 6px 7px 14px rgba(255, 255, 255, .55), inset -9px -11px 20px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .18),
    0 30px 46px -18px rgba(0, 0, 0, .85), 0 12px 22px -12px var(--c2); }
.ag-mint { --c1: #6fe0bb; --c2: #2fb488; } .ag-blue { --c1: #6f9dff; --c2: #2f62e8; } .ag-pink { --c1: #ff93c4; --c2: #ea4f97; }
.ag-orange { --c1: #ffad6b; --c2: #f2722a; } .ag-lavender { --c1: #b9a0ff; --c2: #7c5cf0; } .ag-yellow { --c1: #ffe07a; --c2: #f5b21f; }
.ag-head { display: flex; align-items: center; gap: 10px; }
.ag-badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 14px; flex: none; background: linear-gradient(150deg, #3a2a44, #1a1020); color: var(--c1); font: 750 1rem/1 var(--font-display); box-shadow: inset 2px 2px 4px rgba(255, 255, 255, .2), inset -2px -3px 5px rgba(0, 0, 0, .5), 0 5px 10px -4px rgba(0, 0, 0, .5); }
.ag-id { display: grid; line-height: 1.15; min-width: 0; } .ag-id b { font: 750 1.02rem/1.1 var(--font-display); } .ag-id small { color: rgba(26, 16, 32, .68); font-weight: 600; font-size: .76rem; }
.ag-state { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; background: rgba(255, 255, 255, .42); font-size: .7rem; font-weight: 700; white-space: nowrap; box-shadow: inset 1px 2px 3px rgba(255, 255, 255, .6), inset -1px -2px 3px rgba(0, 0, 0, .1), 0 3px 6px -3px rgba(0, 0, 0, .3); }
.ag-live { width: 7px; height: 7px; border-radius: 99px; background: #13261d; box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); animation: live 2.2s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, .1); } }
.ag-doing { margin: 0; font-weight: 650; line-height: 1.35; }
.ag-bar { height: 10px; border-radius: 99px; background: rgba(26, 16, 32, .16); overflow: hidden; box-shadow: inset 1px 2px 3px rgba(0, 0, 0, .22); } .ag-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(180deg, #3a2a44, #1a1020); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .25); }
.ag-foot { display: flex; justify-content: space-between; color: rgba(26, 16, 32, .7); font-size: .76rem; font-weight: 600; }
.ag-btns { display: flex; gap: 8px; } .ab { flex: 1; text-align: center; padding: 8px 0; border-radius: 13px; background: rgba(255, 255, 255, .45); font-weight: 700; font-size: .8rem; box-shadow: inset 2px 2px 4px rgba(255, 255, 255, .6), inset -2px -3px 5px rgba(0, 0, 0, .1), 0 4px 8px -4px rgba(0, 0, 0, .35); } .ab.primary { background: linear-gradient(150deg, #3a2a44, #1a1020); color: #fff; box-shadow: inset 2px 2px 4px rgba(255, 255, 255, .18), inset -2px -3px 5px rgba(0, 0, 0, .5), 0 5px 10px -4px rgba(0, 0, 0, .5); }
.ag-link { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 13px; background: rgba(255, 255, 255, .42); font-weight: 650; font-size: .8rem; box-shadow: inset 2px 2px 4px rgba(255, 255, 255, .55), inset -2px -3px 5px rgba(0, 0, 0, .08), 0 4px 8px -5px rgba(0, 0, 0, .3); }
.ag-big { font: 750 1.45rem/1 var(--font-display); } .ag-big small { font: 650 .78rem var(--font-body); opacity: .7; }
.ag-spark { display: flex; align-items: flex-end; gap: 5px; height: 34px; } .ag-spark i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #3a2a44, #1a1020); box-shadow: inset 1px 1px 2px rgba(255, 255, 255, .22); }
.ag-team { display: flex; } .ag-team span { display: grid; place-items: center; width: 28px; height: 28px; margin-right: -6px; border-radius: 99px; border: 2px solid rgba(26, 16, 32, .85); font: 750 .78rem/1 var(--font-display); color: #1a1020; box-shadow: inset 1px 2px 3px rgba(255, 255, 255, .55), inset -1px -2px 3px rgba(0, 0, 0, .18); }
.ag-chip { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: linear-gradient(150deg, #3a2a44, #1a1020); color: #fff; font-weight: 700; font-size: .76rem; box-shadow: inset 2px 2px 4px rgba(255, 255, 255, .18), inset -2px -3px 5px rgba(0, 0, 0, .5), 0 5px 10px -4px rgba(0, 0, 0, .5); }

/* Phones and tablets: the cards glide by in a strip under the headline */
.strip { position: relative; margin: 36px -18px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { display: flex; gap: 14px; width: max-content; padding: 8px 0 14px; animation: glide 46s linear infinite; }
.strip-card { width: 232px; flex: none; }
@keyframes glide { to { transform: translateX(-50%); } }

/* Sections */
.band { padding: 72px 0 24px; display: grid; gap: 28px; }
.band-head { display: grid; gap: 10px; justify-items: center; text-align: center; }
.band-head h2, .start h2, .cta2 h2, .byoa h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem); letter-spacing: -.03em; max-width: 22ch; }
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .steps-grid .reveal:nth-child(2), .feature-grid .reveal:nth-child(3n+2) { transition-delay: .08s; }
  .steps-grid .reveal:nth-child(3), .feature-grid .reveal:nth-child(3n) { transition-delay: .16s; }
  .steps-grid .reveal:nth-child(4) { transition-delay: .24s; }
}
.steps-grid { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .steps-grid::before { content: ''; position: absolute; left: 6%; right: 6%; top: 43px; height: 2px; background: linear-gradient(90deg, #f19a85, #ecc887, #86cba6, #9dbcf0, #8b6aa8); opacity: .45; }
}
.steps-grid li { position: relative; background: linear-gradient(180deg, var(--ink-1), rgba(22, 16, 25, .6)); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 10px; align-content: start; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.steps-grid li:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #0d0911; border: 1px solid var(--line-2); color: var(--brass-hi); box-shadow: 0 0 0 6px var(--ink-0); }
.step-ico .icon { width: 22px; height: 22px; }
.steps-grid b { font: 650 1.1rem/1.2 var(--font-display); }
.steps-grid span:not(.step-ico) { color: var(--text-2); font-size: .95rem; line-height: 1.55; }
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 680px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ink-1), rgba(22, 16, 25, .6)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 10px; align-content: start; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: var(--glow, rgba(220, 174, 98, .10)); filter: blur(40px); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.feature:hover::after { opacity: 1; }
.f-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; }
.f-ico .icon { width: 22px; height: 22px; }
.t-blue { background: var(--info-wash); color: var(--info); } .t-brass { background: var(--brass-wash); color: var(--brass-hi); } .t-coral { background: var(--warn-wash); color: var(--warn); } .t-green { background: var(--ok-wash); color: var(--ok); } .t-plum { background: rgba(139, 106, 168, .18); color: #c3a6db; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--text-2); font-size: .95rem; line-height: 1.55; margin: 0; }
.start { align-items: center; }
@media (min-width: 940px) { .start { grid-template-columns: 1fr minmax(360px, 440px); gap: 56px; } }
.start-copy { display: grid; gap: 16px; }
.ticks2 { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; color: var(--text-2); }
.ticks2 li { display: flex; gap: 10px; align-items: center; } .ticks2 .icon { color: var(--ok); flex: none; }
.auth-wrap { position: relative; }
.auth-wrap::before { content: ''; position: absolute; inset: 10% 6%; border-radius: 30px; background: conic-gradient(from 200deg, #f19a85, #ecc887, #86cba6, #9dbcf0, #8b6aa8, #f19a85); filter: blur(60px); opacity: .22; z-index: 0; }
.auth { position: relative; z-index: 1; border-radius: 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.seg button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 600 .95rem/1 var(--font-body); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ink-3); color: var(--text); box-shadow: var(--shadow); }
@media (min-width: 940px) { .faq-band { grid-template-columns: minmax(240px, 1fr) 1.6fr; align-items: start; gap: 48px; } .faq-band .band-head { justify-items: start; text-align: left; position: sticky; top: 96px; } }
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--ink-1); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; transition: border-color .3s var(--ease); }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary { cursor: pointer; min-height: 58px; display: flex; align-items: center; gap: 12px; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; color: var(--brass-hi); font-size: 1.4rem; transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-2); margin: 0 0 18px; line-height: 1.6; }
.cta2 { padding-bottom: 40px; }
.cta2-card { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; gap: 16px; text-align: center; padding: 64px 20px; border-radius: 28px; border: 1px solid #2c2234; background: #0a070d; }
.cta2-card::before { content: ''; position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 70%; height: 90%; translate: -50% 0; border-radius: 50%; background: conic-gradient(from 180deg, #f19a85, #ecc887, #86cba6, #9dbcf0, #8b6aa8, #f19a85); filter: blur(80px); opacity: .32; }
.cta2-card .lede { text-align: center; }
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 20px calc(24px + var(--safe-b)); border-top: 1px solid var(--line); font-size: .9rem; color: var(--text-2); max-width: 1240px; width: 100%; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .pill-word, .fc-in, .strip-track, .ag-live { animation: none; }
  .strip { overflow-x: auto; }
  .fc { transition: none; }
}

/* "+ New rank / role": input with its own Add and Cancel buttons */
.field-group { display: grid; gap: 8px; align-content: start; min-width: 0; }
.new-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); }
.new-row input { grid-column: 1 / -1; min-width: 0; min-height: 44px; width: 100%; }
.new-row .btn { min-height: 44px; justify-content: center; }
.new-row .err { grid-column: 1 / -1; margin: 0; }

/* Spinning Okestra logo loader */
.logo-loader { display: grid; justify-items: center; gap: 8px; }
.logo-loader svg { overflow: visible; }
.ll-ring { fill: none; stroke: var(--brass); stroke-width: 44; opacity: .28; }
.ll-arc { fill: none; stroke: var(--brass-hi); stroke-width: 44; stroke-linecap: round; stroke-dasharray: 26 74; }
.ll-baton { fill: none; stroke: var(--brass); stroke-width: 22; stroke-linecap: round; }
.ll-tip { fill: #f1e7d6; }
.ll-spin { transform-box: view-box; transform-origin: 246px 270px; animation: ll-spin .9s cubic-bezier(.55, .1, .45, .9) infinite; }
.ll-tip { transform-box: fill-box; transform-origin: center; animation: ll-tip .9s ease-in-out infinite; }
.ll-text { font-size: .9rem; font-weight: 600; color: var(--text-2); }
@keyframes ll-spin { to { transform: rotate(360deg); } }
@keyframes ll-tip { 50% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) {
  .ll-spin { animation-duration: 2.4s; animation-timing-function: linear; }
  .ll-tip { animation: none; }
}

/* While adding a rank or role: the logo covers the row */
.new-row { position: relative; }
.new-row-busy { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: var(--ink-2); animation: fade .15s var(--ease); }
.new-row.is-busy { min-height: 112px; }

/* The new entry glows briefly where it landed in the list */
select.just-added { animation: just-added 1.4s var(--ease); }
@keyframes just-added { 0% { box-shadow: 0 0 0 0 rgba(236, 200, 135, .0); border-color: var(--brass-hi); } 25% { box-shadow: 0 0 0 6px rgba(236, 200, 135, .35); border-color: var(--brass-hi); } 100% { box-shadow: 0 0 0 0 rgba(236, 200, 135, 0); } }

/* Spinning-logo loader over whatever is being worked on (busy()) and while pages load (skeleton()) */
.is-loading { position: relative; }
.busy-cover { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; border-radius: inherit; background: var(--ink-1); animation: fade .15s var(--ease); }
.dlg > .busy-cover, .sheet-body .busy-cover, .new-row > .busy-cover, .switch > .busy-cover { background: var(--ink-2); }
.busy-cover.compact .logo-loader { grid-auto-flow: column; align-items: center; gap: 10px; }
.busy-cover.compact svg { width: 30px; height: 30px; }
.page-loader { display: grid; place-items: center; min-height: 220px; padding: 32px 0; }
.page-loader .logo-loader svg { width: 64px; height: 64px; }

/* Bring your own agents band + "onboard in minutes" steps */
.byoa { align-items: center; }
@media (min-width: 940px) { .byoa { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.byoa-copy { display: grid; gap: 14px; }
.easy { list-style: none; margin: 0; padding: 18px; display: grid; gap: 10px; border-radius: 22px; background: linear-gradient(180deg, var(--ink-1), rgba(22, 16, 25, .6)); border: 1px solid var(--line); }
.easy li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--ink-2); }
.easy b { display: block; font: 650 1rem/1.25 var(--font-display); } .easy small { color: var(--text-2); font-size: .88rem; }
.easy-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font: 750 1rem/1 var(--font-display); color: #1a1020; }
.easy li:nth-child(1) .easy-n { background: #6fe0bb; } .easy li:nth-child(2) .easy-n { background: #6f9dff; } .easy li:nth-child(3) .easy-n { background: #ffe07a; }
.easy-t { font-size: .78rem; font-weight: 700; color: var(--brass-hi); white-space: nowrap; }
@media (max-width: 480px) { .easy li { grid-template-columns: auto 1fr; } .easy-t { grid-column: 2; } }
.legal-note { line-height: 1.5; } .legal-note a, .foot-links a { color: var(--brass-hi); }
.foot-links { display: flex; gap: 16px; } .foot-links a { text-decoration: none; font-weight: 600; } .foot-links a:hover { text-decoration: underline; }

/* Legal pages */
.legal { width: 100%; max-width: 780px; margin: 0 auto; padding: 32px 18px 64px; display: grid; gap: 14px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.03em; }
.byoa-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--ok-wash); border: 1px solid rgba(134, 203, 166, .35); color: var(--text); margin: 8px 0 4px; }
.byoa-note .icon { color: var(--ok); margin-top: 3px; flex: none; }
.legal-body { display: grid; gap: 26px; margin-top: 10px; }
.legal-body h2 { font-size: 1.25rem; margin-bottom: 8px; }
.legal-body p, .legal-body li { color: var(--text-2); line-height: 1.7; }
.legal-body p { margin: 0 0 8px; } .legal-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-body a, .legal a { color: var(--brass-hi); } .legal-body strong { color: var(--text); }

/* Lambdar Affiliate badge, centred in the header between the wordmark and the menu; links out to lambdar.pro */
.site-nav .partner-badge { flex: none; margin: -4px auto; border-radius: 50%; line-height: 0; filter: drop-shadow(0 6px 14px rgba(255, 140, 190, .3)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s; }
.site-nav .partner-badge img { width: 56px; height: 56px; border-radius: 50%; }
.site-nav .partner-badge:hover { transform: rotate(-8deg) scale(1.08); filter: drop-shadow(0 8px 18px rgba(255, 140, 190, .45)); }
.site-nav .partner-badge:focus-visible { outline: 2px solid var(--brass, #d9b36a); outline-offset: 3px; }
.site-nav .partner-badge ~ nav, .site-nav .partner-badge ~ .nav-cta { margin-left: 0; }
@media (min-width: 860px) { .site-nav .partner-badge ~ .nav-cta { margin-left: 16px; } }
@media (max-width: 600px) { .site-nav .partner-badge img { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .site-nav .partner-badge, .site-nav .partner-badge:hover { transition: none; transform: none; } }

/* Footer: follow us. Pill buttons on the Okestra ink/plum surface with a brass rim and soft glow. */
.follow { flex-basis: 100%; display: grid; gap: 12px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.follow-h { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.follow-row { display: flex; flex-wrap: wrap; gap: 12px; }
.social { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .98rem;
  background: linear-gradient(180deg, #2b1f36, #1a1223); border: 1.5px solid rgba(217, 179, 106, .72);
  box-shadow: 0 0 0 3px rgba(217, 179, 106, .1), 0 0 18px rgba(217, 179, 106, .16), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.social:hover { transform: translateY(-1px); border-color: var(--brass-hi); box-shadow: 0 0 0 3px rgba(217, 179, 106, .16), 0 0 26px rgba(217, 179, 106, .28), inset 0 1px 0 rgba(255, 255, 255, .09); }
.social:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.social-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f7f1e8; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .12); }
.social-ic svg { width: 22px; height: 22px; } .social-ic img { width: 36px; height: 36px; border-radius: 50%; }
.social.soon { cursor: default; } .social.soon:hover { transform: none; }
.social-n { min-width: 64px; }
.social-go { width: 16px; height: 16px; color: var(--brass-hi); }
@media (prefers-reduced-motion: reduce) { .social, .social:hover { transition: none; transform: none; } }

/* Hero kicker: bold, bright, glowing brass */
.hero-kicker { margin: 0; font: 800 clamp(.92rem, 1.6vw, 1.12rem)/1.2 var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  background: linear-gradient(90deg, #ffe7a8, #ffd166 45%, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 200, 100, .45)); }
.hero2-copy .lede { text-shadow: 0 2px 14px rgba(12, 8, 16, .95), 0 0 2px rgba(12, 8, 16, .9); }
.hero2-copy .trust { text-shadow: 0 1px 10px rgba(12, 8, 16, .95); }

/* Passkey display: text, never a field; strong warning; copy and download */
.passkey { display: grid; gap: 12px; padding: 18px; border-radius: var(--r); border: 1px solid rgba(220, 174, 98, .55); background: var(--brass-wash); }
.pk-warn { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255, 92, 92, .12); border: 1.5px solid rgba(255, 110, 110, .75); color: #ffd9d6; line-height: 1.45; font-size: .93rem; }
.pk-warn b { display: block; color: #fff; font: 750 1.02rem/1.25 var(--font-display); margin-bottom: 2px; }
.pk-warn-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 99px; background: #ff6b6b; color: #1a0d0d; }
.pk-warn-ic svg { width: 18px; height: 18px; }
.pk-label { margin: 4px 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-hi); }
.pk-key { margin: 0; font: 600 1.05rem/1.5 var(--font-mono); color: var(--brass-hi); overflow-wrap: anywhere; user-select: all; letter-spacing: .02em; }
.pk-actions .btn { flex: 1 1 auto; }
/* Sign-in: a masked text field so browsers do not offer saved-password, fingerprint or device-passkey prompts */
input.masked { -webkit-text-security: disc; text-security: disc; font-family: var(--font-mono); }
/* Below the floating-card layout the stave sits lower, behind the card strip, so it never crosses the text */
@media (max-width: 1199px) { .stage-art { background-size: auto 44%; background-position: center 100%; } }

/* Install Okestra: platform cards (bright pastel, soft shading, dark text) that open short install steps */
.install { gap: 32px; }
.install-head { display: grid; gap: 14px; max-width: 640px; }
.install-head h2 { margin: 0; font: 750 clamp(2.1rem, 4.4vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -.02em; }
.install-head p { margin: 0; color: var(--text-2); font-size: 1.12rem; line-height: 1.5; }
.os-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.os-card { --ib: #cf95ef; grid-column: span 2; position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; padding: 26px; border: 0; border-radius: 22px; text-align: left; color: #161616; cursor: pointer; font: inherit;
  background: radial-gradient(130% 90% at 20% 0%, rgba(255, 255, 255, .16), transparent 60%), var(--ib);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -10px 24px rgba(0, 0, 0, .06), 0 18px 34px -18px rgba(0, 0, 0, .75);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.os-card.wide { grid-column: span 3; min-height: 250px; }
.os-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -10px 24px rgba(0, 0, 0, .06), 0 26px 44px -18px rgba(0, 0, 0, .85); }
.os-card:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 3px; }
.os-mac { --ib: #cf95ef; } .os-win { --ib: #5cbf7a; } .os-lin { --ib: #e5ae47; } .os-ios { --ib: #6aaff8; } .os-and { --ib: #ec8566; }
.os-top { display: flex; justify-content: space-between; align-items: flex-start; }
.os-ic svg { width: 64px; height: 64px; fill: #161616; display: block; }
.os-pill { padding: 5px 12px; border-radius: 99px; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(22, 22, 22, .72); background: rgba(0, 0, 0, .07); border: 1px solid rgba(0, 0, 0, .14); }
.os-body { display: grid; gap: 10px; }
.os-name { font: 700 1.7rem/1.1 var(--font-body); letter-spacing: -.01em; }
.os-req { font-size: .9rem; color: rgba(22, 22, 22, .78); }
.os-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 1.05rem; }
.os-card.wide .os-go { margin-top: 30px; }
.ic-go { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.os-card:hover .ic-go { transform: translate(2px, -2px); }
.os-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; color: var(--text-3, #8f8496); font-size: .92rem; }
.os-links button { border: 0; background: none; padding: 4px 0; color: var(--text); font: inherit; cursor: pointer; }
.os-links button:hover { color: var(--brass-hi); text-decoration: underline; }
.os-sep { width: 1px; height: 18px; background: var(--line-2); }
@media (max-width: 900px) { .os-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .os-card, .os-card.wide { grid-column: span 1; min-height: 230px; } .os-card:last-child { grid-column: span 2; } }
@media (max-width: 560px) { .os-grid { grid-template-columns: minmax(0, 1fr); } .os-card, .os-card.wide, .os-card:last-child { grid-column: span 1; min-height: 190px; padding: 22px; } .os-ic svg { width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .os-card, .os-card:hover, .ic-go { transition: none; transform: none; } }
/* install steps dialog */
.install-dlg .id-head { display: flex; align-items: center; gap: 14px; margin: -20px -20px 4px; padding: 18px 20px; border-radius: 15px 15px 0 0; background: var(--ib); color: #161616; }
.install-dlg .id-head h2 { margin: 0; font: 700 1.3rem/1.2 var(--font-display); }
.install-dlg .id-head small { color: rgba(22, 22, 22, .75); }
.install-dlg .id-head .os-ic svg { width: 40px; height: 40px; }
.install-dlg .id-head .btn { margin-left: auto; color: #161616; }
.id-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.id-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; align-items: start; }
.id-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 99px; background: var(--brass); color: #1a1020; font: 750 1rem/1 var(--font-display); }
.id-steps b { font-size: 1.02rem; } .id-steps span { color: var(--text-2); line-height: 1.5; }

/* Hero lede: brighter and more visible over the stage art */
.hero2-copy .hero-lede { color: #fbf3e6; font-size: clamp(1.08rem, 1.6vw, 1.28rem); font-weight: 500; line-height: 1.55; max-width: min(640px, 100%); }

/* Hero backdrop: the conductor statue sits behind everything (behind the stave and notes). Its black ground
   blends into the stage with screen; it is kept soft so the headline and text stay readable. */
.stage-statue { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: url(/img/conductor.webp) center 30% / auto 112% no-repeat; mix-blend-mode: screen; opacity: .34; contain: strict;
  -webkit-mask-image: radial-gradient(60% 75% at 50% 40%, #000 55%, transparent 100%); mask-image: radial-gradient(60% 75% at 50% 40%, #000 55%, transparent 100%); }
@media (max-width: 1199px) { .stage-statue { background-size: auto 78%; background-position: center 12%; opacity: .28; } }
/* Once the dot field is drawn (statueField), the canvas replaces the static image. */
.stage-statue canvas { position: absolute; display: block; }
.stage-statue.live { background: none; mix-blend-mode: normal; }
.stage-statue canvas { image-rendering: pixelated; }
/* Colourful agent cards at half size (zoom scales the whole card, its text and spacing together) */
.fc, .strip-card { zoom: .5; }

/* Load speed: the browser skips layout and paint for homepage sections until they come near the screen. */
.home > .band { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* =====================================================================================================
   Dashboard redesign: deep panels, soft borders, a solid brass active pill, glowing progress lines,
   a desktop header with search and notifications. Okestra colours: ink and plum, brass for the hand.
   ===================================================================================================== */
:root { --panel: #130e16; --panel-2: #1a1420; --edge: rgba(255, 255, 255, .07); --edge-2: rgba(255, 255, 255, .11); --glow: 0 0 12px rgba(236, 200, 135, .55); }
body { background: #0b080e; }
.rail { background: #0e0a11 !important; border-right: 1px solid var(--edge) !important; }
.nav-label { display: flex; align-items: center; gap: 12px; margin: 18px 12px 8px; color: var(--text-3); font-size: .86rem; font-weight: 500; }
.nav-label::after { content: ''; flex: 1; height: 1px; background: var(--edge-2); }
.navlist a { min-height: 48px; border-radius: 12px; font-weight: 500; color: var(--text-2); }
.navlist a .icon { color: var(--text-3); }
.navlist a:hover { background: var(--panel-2); }
.navlist a[aria-current=page] { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: var(--brass-ink); font-weight: 650; box-shadow: 0 8px 22px -8px rgba(220, 174, 98, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.navlist a[aria-current=page] .icon { color: var(--brass-ink); }
.navlist a[aria-current=page] .badge-n { background: var(--brass-ink); color: var(--brass-hi); }
.whoami { background: var(--panel-2); border-color: var(--edge); }

/* desktop header */
.deskbar { display: none; }
@media (min-width: 960px) {
  .shell { grid-template-columns: 264px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .rail { grid-row: 1 / span 2; }
  .deskbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 15; padding: 18px 40px; background: rgba(11, 8, 14, .97); border-bottom: 1px solid var(--edge); min-width: 0; }
  .db-title { display: grid; gap: 4px; min-width: 0; }
  .db-title b { font: 650 1.35rem/1.15 var(--font-display); letter-spacing: -.02em; }
  .db-title span { color: var(--text-3); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-head > div:first-child { display: none; }
  .page-head { justify-content: flex-end; margin-bottom: 18px; }
  .page-head:not(:has(> :nth-child(2))) { display: none; }
  main { padding: 28px 40px 56px; max-width: 1360px; margin: 0; }
}
.db-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.db-search { position: relative; display: flex; align-items: center; gap: 8px; width: 340px; height: 48px; padding: 0 10px 0 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--edge); }
.db-search:focus-within { border-color: rgba(220, 174, 98, .55); }
.db-search .db-ic { color: var(--text-2); display: grid; }
.db-search input { flex: 1; min-height: 0; height: 100%; padding: 0; border: 0; background: transparent; outline: none; }
.db-search input:focus-visible { outline: none; }
.db-search kbd { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--ink-3); color: var(--text-3); font: 600 .72rem/1 var(--font-body); }
.db-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--edge-2); box-shadow: var(--shadow); }
.db-results a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; }
.db-results a:hover, .db-results a:first-child { background: var(--ink-3); color: var(--text); }
.db-results p { padding: 10px 12px; }
.db-bell { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--edge); color: var(--text); }
.db-bell:hover { border-color: rgba(220, 174, 98, .55); color: var(--text); }
.db-n { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brass); color: var(--brass-ink); font: 750 .72rem/22px var(--font-body); text-align: center; box-shadow: 0 0 0 3px #0b080e; }

/* panels and cards */
.panel, .agent, .col, .login-card, .switch, .u-row { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 120px), var(--panel); border: 1px solid var(--edge); border-radius: 18px; }
.panel { padding: 22px; }
.panel.brassy { border-color: rgba(220, 174, 98, .3); background: radial-gradient(120% 80% at 100% 0%, rgba(220, 174, 98, .1), transparent 55%), var(--panel); }
.agent { padding: 20px; gap: 14px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.agent:hover { border-color: var(--edge-2); }
.agent.is-sup { border-color: rgba(220, 174, 98, .4); }
.monogram { background: var(--panel-2); border: 1px solid var(--edge-2); color: var(--brass-hi); }
.monogram .dot { border-color: var(--panel); }
.agent .kv { padding-top: 12px; border-top: 1px solid var(--edge); }
.state-pill { margin-left: auto; align-self: center; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--edge); color: var(--text-2); font: 600 .84rem/1 var(--font-body); }
.state-pill.on { color: var(--text); }
.state-pill.on::before { content: ''; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.card { background: var(--panel-2); border-color: var(--edge); border-radius: 12px; }
.card:hover { border-color: var(--edge-2); background: #201826; }
.attn { background: var(--panel-2); border-color: var(--edge); border-radius: 12px; }
.chip { background: var(--panel-2); border: 1px solid var(--edge); }
.empty { background: var(--panel); border-color: var(--edge-2); border-radius: 18px; }

/* buttons: brass, compact radius, warm glow */
.btn { border-radius: 12px; }
.btn.primary { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(220, 174, 98, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.primary:hover { background: var(--brass-hi); box-shadow: 0 10px 26px -10px rgba(236, 200, 135, .95), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn:not(.primary):not(.ghost):not(.danger) { background: var(--panel-2); border-color: var(--edge-2); }

/* live counts as separate tiles */
.tally { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; background: none; border-radius: 0; overflow: visible; }
.tally > div { padding: 18px 20px; border: 1px solid var(--edge) !important; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 80px), var(--panel); gap: 6px; }
.tally > div:last-child { grid-column: auto; }
.tally b { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; }
.tally span { color: var(--text-3); }
@media (min-width: 720px) { .tally { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 719px) { .tally > div:last-child { grid-column: 1 / -1; } }

/* glowing progress lines */
.glow-line { display: grid; gap: 10px; }
.gl-top { display: flex; justify-content: space-between; gap: 12px; color: var(--text-3); font-size: .9rem; }
.gl-top b { color: var(--text); font-weight: 600; }
.gl-track, .progressbar, .meter .bar { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: visible; }
.gl-track i, .progressbar i, .meter .bar i { position: relative; display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(220, 174, 98, 0), var(--brass) 55%, #fff4dc); box-shadow: var(--glow); }
.gl-track i::after, .progressbar i::after { content: ''; position: absolute; right: -2px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #fff4dc; transform: translateY(-50%); box-shadow: 0 0 10px 3px rgba(236, 200, 135, .8); }
.gl-track i[style*="width:0%"]::after, .progressbar i[style*="width:0%"]::after { display: none; }
.meter.hot .bar i { background: linear-gradient(90deg, rgba(241, 154, 133, 0), var(--warn) 60%, #ffe1d8); box-shadow: 0 0 12px rgba(241, 154, 133, .6); }
.mission { padding: 20px 0; border-top-color: var(--edge); }

/* pills: dark with a soft edge */
.pill { border: 1px solid var(--edge); }

/* ---------- What you get: glowing glass boxes stacked as a hierarchy ----------
   Each box is a front panel with a top face and a side face (oblique projection), glass-tinted plum with
   glowing edges in its own tone. Tiers: you at the top, the supervisor and the board, then your agents. */
.boxes { --d: 26px; position: relative; display: grid; gap: calc(var(--d) + 20px); justify-items: center; padding: calc(var(--d) + 8px) var(--d) 0 0; }
.boxes::before { content: ''; position: absolute; inset: 10% 15% 0; z-index: -1; background: radial-gradient(50% 50% at 50% 55%, rgba(220, 174, 98, .12), transparent 70%); pointer-events: none; }
.tier { display: flex; justify-content: center; gap: calc(var(--d) + 22px); width: 100%; }
.bx { --e: 236, 200, 135; position: relative; flex: 0 1 340px; min-height: 230px; display: grid; gap: 10px; align-content: start; padding: 24px; color: var(--text);
  background: linear-gradient(160deg, rgba(var(--e), .10), rgba(var(--e), .02) 45%, rgba(20, 13, 24, .55)), rgba(22, 15, 27, .86);
  border: 1px solid rgba(var(--e), .55);
  box-shadow: 0 0 0 1px rgba(var(--e), .08), 0 0 24px rgba(var(--e), .16), inset 0 0 30px rgba(var(--e), .07), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bx-top, .bx-side { position: absolute; pointer-events: none; border: 1px solid rgba(var(--e), .55); }
.bx-top { left: -1px; right: -1px; bottom: 100%; height: var(--d); transform-origin: 0 100%; transform: skewX(-45deg);
  background: linear-gradient(90deg, rgba(var(--e), .20), rgba(var(--e), .07)); border-bottom: 0; }
.bx-side { top: -1px; bottom: -1px; left: 100%; width: var(--d); transform-origin: 0 0; transform: skewY(-45deg);
  background: linear-gradient(180deg, rgba(var(--e), .12), rgba(10, 6, 12, .6)); border-left: 0; }
.bx:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(var(--e), .14), 0 0 40px rgba(var(--e), .3), inset 0 0 40px rgba(var(--e), .1), inset 0 1px 0 rgba(255, 255, 255, .16); }
.bx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bx-tag { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--e), .95); padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(var(--e), .4); background: rgba(var(--e), .08); }
.bx h3 { font-size: 1.15rem; }
.bx p { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.55; }
.bx-coral { --e: 241, 154, 133; } .bx-brass { --e: 236, 200, 135; } .bx-green { --e: 134, 203, 166; } .bx-blue { --e: 157, 188, 240; } .bx-plum { --e: 195, 166, 219; }
/* the top of the hierarchy shines brightest */
.tier-1 .bx { flex-basis: 380px; box-shadow: 0 0 0 1px rgba(var(--e), .14), 0 0 44px rgba(var(--e), .28), inset 0 0 36px rgba(var(--e), .1), inset 0 1px 0 rgba(255, 255, 255, .16); }
@media (max-width: 999px) {
  .boxes { --d: 18px; gap: calc(var(--d) + 16px); }
  .tier { flex-wrap: wrap; gap: calc(var(--d) + 16px); }
  .tier-3 .bx { flex-basis: 300px; }
}
@media (max-width: 640px) {
  .tier { flex-direction: column; align-items: stretch; }
  .bx, .tier-1 .bx, .tier-3 .bx { flex-basis: auto; min-height: 0; margin-right: var(--d); }
}
@media (prefers-reduced-motion: reduce) { .bx, .bx:hover { transition: none; transform: none; } }

/* ---------- What you get, wide screens: heading and features on the left, glass cubes on the right ----------
   One colour (lilac-violet glass) with a white neon glow, running off the right and bottom edges of a plum stage. */
.iso { display: none; position: relative; overflow: hidden; border-radius: 28px; min-height: 700px; padding: 64px 56px;
  background: radial-gradient(45% 55% at 82% 45%, rgba(120, 80, 190, .22), transparent 70%), linear-gradient(160deg, #1d1129, #130b1c 55%, #0d0813);
  border: 1px solid rgba(220, 200, 255, .12); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.iso-copy { position: relative; z-index: 1; width: min(43%, 540px); display: grid; gap: 16px; align-content: start; }
.iso-copy .eyebrow { color: #eadcff; }
.iso-copy h2 { margin: 0; font: 650 clamp(2.2rem, 3.4vw, 3.3rem)/1.05 var(--font-display); letter-spacing: -.03em; color: #fff; }
.iso-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 13px; }
.iso-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.iso-list .f-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 14px rgba(220, 200, 255, .25); }
.iso-list .f-ico .icon { width: 20px; height: 20px; }
.iso-list b { display: block; font: 650 1.06rem/1.25 var(--font-display); color: #fff; }
.iso-list span { color: #e3d7f0; font-size: .94rem; line-height: 1.5; }
.iso-art { position: absolute; inset: 0; pointer-events: none; }
.iso-svg { display: block; width: 100%; height: auto; overflow: visible; position: absolute; top: 0; right: 0; filter: drop-shadow(0 0 2px rgba(255, 255, 255, .9)) drop-shadow(0 0 10px rgba(235, 220, 255, .55)); }
.ic-edge { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ic-back { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
@media (min-width: 1100px) { .iso { display: block; } .iso + .boxes { display: none; } #features > .band-head { display: none; } }

/* ---------- BYOA: a slice of the dashboard floating over a brass-lit stage ---------- */
.byoa-v2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.byoa-v2 .byoa-copy { text-align: center; justify-items: center; max-width: 820px; margin: 0 auto; }
.dslice { position: relative; padding: 70px 6% 0; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: radial-gradient(45% 60% at 50% 0%, rgba(236, 170, 80, .55), rgba(220, 140, 60, .18) 40%, transparent 75%), linear-gradient(180deg, #1c120f, #0d090f 70%);
  border: 1px solid rgba(236, 200, 135, .14); max-height: 760px; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.ds-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ds-glow i { position: absolute; left: 50%; top: -60%; border-radius: 50%; border: 1px solid rgba(255, 210, 150, .12); transform: translateX(-50%); }
.ds-glow i:nth-child(1) { width: 70%; aspect-ratio: 1; } .ds-glow i:nth-child(2) { width: 110%; aspect-ratio: 1; } .ds-glow i:nth-child(3) { width: 150%; aspect-ratio: 1; }
.ds-app { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-radius: 18px 18px 0 0; overflow: hidden; background: #110c13; border: 1px solid rgba(255, 255, 255, .08); border-bottom: 0;
  box-shadow: 0 -20px 60px -20px rgba(236, 170, 80, .35), 0 30px 80px -20px rgba(0, 0, 0, .9); text-align: left; }
.ds-side { padding: 20px 14px; border-right: 1px solid rgba(255, 255, 255, .07); display: grid; align-content: start; gap: 2px; }
.ds-mark { display: flex; align-items: center; gap: 10px; padding: 2px 10px 10px; font: 750 1.08rem/1 var(--font-display); }
.ds-mark img { border-radius: 7px; }
.ds-side .nav-label { margin: 14px 10px 6px; font-size: .78rem; }
.ds-nav { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 11px; color: var(--text-2); font-size: .9rem; }
.ds-nav .icon { color: var(--text-3); }
.ds-nav.on { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: var(--brass-ink); font-weight: 650; box-shadow: 0 8px 22px -8px rgba(220, 174, 98, .75); }
.ds-nav.on .icon { color: var(--brass-ink); }
.ds-main { min-width: 0; }
.ds-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ds-head b { display: block; font: 650 1.15rem/1.2 var(--font-display); }
.ds-head span { color: var(--text-3); font-size: .86rem; }
.ds-tools { display: flex; align-items: center; gap: 10px; }
.ds-search { display: flex; align-items: center; gap: 8px; width: 230px; height: 40px; padding: 0 8px 0 12px; border-radius: 12px; background: #1a1420; border: 1px solid rgba(255, 255, 255, .07); color: var(--text-2) !important; font-size: .86rem !important; }
.ds-search kbd { margin-left: auto; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--ink-3); color: var(--text-3); font: 600 .66rem/1 var(--font-body); }
.ds-search kbd + kbd { margin-left: 4px; }
.ds-bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #1a1420; border: 1px solid rgba(255, 255, 255, .07); color: var(--text) !important; }
.ds-bell i { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--brass); color: var(--brass-ink); font: 750 .64rem/18px var(--font-body); font-style: normal; text-align: center; }
.ds-cards { list-style: none; margin: 0; padding: 18px 22px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ds-card { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 90px), #161019; border: 1px solid rgba(255, 255, 255, .07); }
.ds-c-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ds-c-top > div { flex: 1; min-width: 0; }
.ds-c-top b { display: block; font: 600 .98rem/1.2 var(--font-body); }
.ds-c-top small { color: var(--text-3); font-size: .8rem; }
.ds-num { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #1f1824; border: 1px solid rgba(255, 255, 255, .08); color: var(--brass-hi); font: 750 .95rem/1 var(--font-display); }
.ds-pill { margin-left: auto; flex: none; padding: 6px 10px; border-radius: 9px; background: #1f1824; border: 1px solid rgba(255, 255, 255, .07); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.ds-row { display: flex; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: .8rem; }
.ds-row b { color: var(--text); font-weight: 600; }
.ds-line { position: relative; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.ds-line i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, rgba(236, 170, 80, 0), #f0b45c 55%, #fff1d6); box-shadow: 0 0 12px rgba(240, 180, 92, .8); }
.ds-line i::after { content: ''; position: absolute; right: -2px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: #fff6e4; transform: translateY(-50%); box-shadow: 0 0 10px 3px rgba(240, 180, 92, .85); }
.ds-c-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); color: var(--text-3); font-size: .8rem; }
.ds-c-foot b { color: var(--text); font-weight: 600; }
.ds-btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 10px 7px 12px; border-radius: 9px; background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: var(--brass-ink); font-weight: 700; font-size: .76rem; box-shadow: 0 6px 16px -6px rgba(220, 174, 98, .8); }
.ds-btn svg { width: 14px; height: 14px; }
.ds-lower { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; padding: 14px 22px 0; }
.ds-panel { position: relative; min-height: 150px; padding: 16px; border-radius: 16px 16px 0 0; background: #161019; border: 1px solid rgba(255, 255, 255, .07); border-bottom: 0; overflow: hidden; display: grid; align-content: start; gap: 10px; }
.ds-p-t { color: var(--text-2); font-size: .9rem; }
.ds-big { font: 600 1.8rem/1.1 var(--font-body); letter-spacing: -.02em; }
.ds-tabs { position: absolute; right: 16px; top: 48px; display: flex; gap: 6px; }
.ds-tabs i { font-style: normal; font-size: .76rem; padding: 6px 10px; border-radius: 8px; background: #1f1824; color: var(--text-2); }
.ds-chip { position: absolute; right: 16px; top: 14px; font-size: .74rem; padding: 6px 10px; border-radius: 8px; background: #1f1824; }
.ds-ring { position: absolute; left: 50%; top: 62px; width: 180px; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: conic-gradient(var(--brass) 0 62%, #6b4a2a 62% 100%); -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 60%); mask: radial-gradient(closest-side, transparent 58%, #000 60%); box-shadow: 0 0 40px rgba(220, 174, 98, .35); }
@media (max-width: 1000px) { .ds-app { grid-template-columns: minmax(0, 1fr); } .ds-side, .ds-search { display: none; } .dslice { padding: 48px 4% 0; } }
@media (max-width: 760px) { .ds-cards { grid-template-columns: minmax(0, 1fr); } .ds-lower { display: none; } .dslice { max-height: none; -webkit-mask-image: none; mask-image: none; padding-bottom: 18px; } .ds-app { border-radius: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); } .ds-cards { padding-bottom: 18px; } .ds-head span { display: none; } }
