/* GoldenOS command center, live.
   The look is the GoldenOS Command Center's (01 — VENTURES/GoldenOS/tools):
   top bar, hub card with the photo skyline and the Golden orb, the belt of
   cards, the night palette from tokens.css. The data is the platform's. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky1: #0F0E0C;
  --sky2: #1E1A24;
  --foil-lo: #8A6E1F;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.gos { min-height: 100vh; background: var(--gos-bg); font-size: 15.5px; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn {
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--gos-text); background: transparent;
  border: 1px solid var(--gos-line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.btn:hover { border-color: var(--gos-gold); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-gold { background: var(--gos-gold); border-color: var(--gos-gold); color: #17130A; font-weight: 600; }
.btn-gold:hover { background: var(--gos-gold-bright); border-color: var(--gos-gold-bright); }
.btn-quiet { border-color: transparent; color: var(--gos-muted); }
.btn-quiet:hover { color: var(--gos-bad); border-color: transparent; }
.error { color: var(--gos-bad); font-size: 13.5px; min-height: 1.2em; margin: 0; }

/* ------------------------------------------------------------------ entry */
.entry {
  min-height: 100vh; display: grid; place-content: center; justify-items: center;
  gap: 10px; padding: 32px 16px; text-align: center;
  background: radial-gradient(900px 600px at 50% 0%, rgba(212, 175, 55, .08), transparent 60%);
}
.entry-arch { filter: drop-shadow(0 0 18px var(--gos-gold-glow)); margin-bottom: 4px; }
.entry-title { font-size: clamp(44px, 8vw, 72px); font-weight: 500; display: flex; gap: 10px; align-items: baseline; }
.entry-title .g, .wordmark .g {
  background: linear-gradient(180deg, var(--gos-gold-bright), var(--gos-gold) 55%, var(--foil-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.entry-title .os, .wordmark .os { font-family: var(--gos-sans); font-weight: 300; letter-spacing: .02em; }
.entry-sub { color: var(--gos-muted); margin: 0 0 18px; }
.entry-form { width: min(380px, 100%); display: grid; gap: 14px; text-align: left; }
.entry-form label { display: grid; gap: 6px; font-size: 13.5px; color: var(--gos-muted); }
.entry-form input[type="email"], .entry-form input[type="password"], .note {
  font: inherit; color: var(--gos-text); background: var(--gos-surface);
  border: 1px solid var(--gos-line); border-radius: 12px; padding: 11px 14px;
}
.entry-form input:focus, .note:focus { border-color: var(--gos-gold); outline: none; }
.domain { border: 0; padding: 0; margin: 0; display: flex; gap: 20px; }
.domain legend { font-size: 13.5px; color: var(--gos-muted); margin-bottom: 8px; padding: 0; }
.domain label { display: flex; flex-direction: row; gap: 8px; align-items: center; color: var(--gos-text); font-size: 15px; }
.domain input { accent-color: var(--gos-gold); }
.entry-form .btn-gold { padding: 12px; margin-top: 4px; }

/* ---------------------------------------------------------------- top bar */
.room { min-height: 100vh; }
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 10px clamp(14px, 3vw, 28px);
  background: color-mix(in srgb, var(--gos-bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gos-line);
}
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gos-text); padding: 4px; }
.brandmark img { height: 24px; width: auto; }
.brandmark b { font-family: var(--gos-serif); font-weight: 500; font-size: 22px; letter-spacing: .01em; }
.brandmark b i { font-style: normal; font-family: var(--gos-sans); font-weight: 300; color: var(--gos-muted); }
.crumbs { color: var(--gos-muted); font-size: 13px; white-space: nowrap; }
.top-links { flex: 1; display: flex; justify-content: center; gap: 2px; min-width: 0; }
.rail-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--gos-muted); text-decoration: none; font-size: 14px;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.rail-link:hover { color: var(--gos-text); }
.rail-link[aria-current="true"] { color: var(--gos-text); background: var(--gos-surface-2); }
.rail-count {
  min-width: 20px; padding: 0 6px; border-radius: 999px; text-align: center;
  font-size: 12px; font-weight: 700; color: #17130A; background: var(--gos-gold);
}
.rail-count:empty { display: none; }
.rail-foot { display: flex; gap: 6px; }
.room-switch, .rail-signout {
  font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  background: none; border: 1px solid var(--gos-line); border-radius: 999px;
  color: var(--gos-text); padding: 7px 14px;
}
.room-switch:hover { border-color: var(--gos-gold); }
.rail-signout { border-color: transparent; color: var(--gos-muted); }
.rail-signout:hover { color: var(--gos-text); }

.stage { padding: 32px clamp(12px, 3vw, 40px) 64px; max-width: 1320px; margin: 0 auto; }

/* -------------------------------------------------------------------- hub */
.hub {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; border: 1px solid var(--gos-line);
  background: linear-gradient(180deg, var(--sky2), var(--sky1) 70%);
  padding: clamp(18px, 4vw, 40px) clamp(10px, 3vw, 30px) 36px;
  scroll-margin-top: 80px;
}
.hub > *:not(.field) { position: relative; z-index: 1; }
.hub > .field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hubhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hubhead h1 { font-family: var(--gos-serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; margin: 0; }
.hubhead p { margin: 6px 0 0; color: var(--gos-muted); max-width: 52ch; }

/* the skyline: buildings on an arc */
.skyline {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(6px, 1.2vw, 14px); margin: 26px auto 0; max-width: 1180px;
  padding-bottom: 88px;
}
.bld {
  position: relative; flex: 1 1 0; min-width: 0; max-width: 230px;
  display: flex; flex-direction: column; align-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--gos-text); font: inherit;
  transform: translateY(var(--lift, 0));
  transition: transform .35s var(--ease), opacity .6s ease;
}
.bld:hover, .bld:focus-visible { transform: translateY(calc(var(--lift, 0px) - 6px)); }
.bld:focus-visible { outline: none; }
.bld:focus-visible .scene { outline: 2px solid var(--gos-gold-bright); outline-offset: 3px; }
.bld .scene {
  width: 100%; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--gos-line); box-shadow: var(--gos-shadow); background: #0B1020;
  transition: border-color .2s, box-shadow .2s;
}
.bld .scene img, .drawer-art .scene img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.scene-mono {
  display: grid !important; place-content: center; aspect-ratio: 4 / 3;
  font-family: var(--gos-serif); font-size: 34px; color: var(--gos-gold-bright);
  background: radial-gradient(circle at 50% 30%, #2A2433, #12101A);
}
.bld:hover .scene, .bld[aria-expanded="true"] .scene { border-color: var(--gos-gold); box-shadow: 0 0 0 1px var(--gos-gold), 0 18px 40px rgba(0, 0, 0, .45); }
.bld .lbl { margin-top: 8px; font-size: 13px; font-weight: 600; text-align: center; line-height: 1.25; }
.bld .lbl small { display: block; font-weight: 500; color: var(--gos-muted); font-size: 11.5px; }
.bld:hover .lbl { color: var(--gos-gold); }

.logo-badge {
  position: relative; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: -10px;
  display: grid; place-items: center;
  font-family: var(--gos-serif); font-size: 20px; color: var(--gos-gold-bright);
  background: #141210; border: 1.5px solid var(--gos-gold);
  box-shadow: 0 0 0 4px var(--gos-bg), 0 0 24px var(--gos-gold-glow);
}
.logo-badge img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 7px; border-radius: 50%; }
.logo-badge.full img { padding: 0; }
.logo-badge[data-logo="mamaloca"] img { padding: 2px; }
.bld-count {
  position: absolute; top: -6px; right: -8px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-content: center;
  font-family: var(--gos-sans); font-size: 12px; font-weight: 700;
  color: #17130A; background: var(--gos-gold-bright);
  box-shadow: 0 0 0 3px var(--gos-bg);
}

/* The one entrance: the buildings rise into the arc. */
.skyline:not(.seated) .bld { opacity: 0; transform: translateY(calc(var(--lift, 0px) + 24px)); }
.skyline.seated .bld { transition-delay: calc(var(--i) * 60ms); }
.skyline.seated .bld:hover { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .bld, .skyline.seated .bld { transition: none; }
  .skyline:not(.seated) .bld { opacity: 1; transform: translateY(var(--lift, 0)); }
}

/* the orb */
.orbwrap { display: flex; flex-direction: column; align-items: center; margin-top: clamp(10px, 3vw, 30px); }
.orbstage { position: relative; width: min(300px, 72vw); aspect-ratio: 1; }
.orbstage canvas { width: 100%; height: 100%; display: block; }
.orbring { position: absolute; inset: -6%; border-radius: 50%; border: 1px solid var(--gos-line); pointer-events: none; }
.orbring.r2 { inset: -14%; opacity: .6; }
.wordmark {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  font-family: var(--gos-serif); font-weight: 500; font-size: clamp(44px, 7vw, 72px); line-height: 1;
  letter-spacing: -.01em; color: var(--gos-text);
}
.wordmark img { height: .9em; width: auto; }
.tagline { font-family: var(--gos-serif); font-style: italic; color: var(--gos-muted); font-size: 16px; margin-top: 8px; letter-spacing: .02em; }
.orbcap { color: var(--gos-muted); font-size: 15px; margin-top: 6px; min-height: 1.5em; text-align: center; max-width: 52ch; }
.talk {
  margin-top: 14px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--gos-text); padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(212, 175, 55, .22), rgba(212, 175, 55, .08));
  border: 1px solid var(--gos-gold); box-shadow: 0 0 30px rgba(212, 175, 55, .15);
  transition: box-shadow .2s, background-color .2s;
}
.talk:hover { box-shadow: 0 0 40px rgba(212, 175, 55, .3); }
.talk[aria-pressed="true"] { background: var(--gos-gold); color: #17130A; }
.telemetry { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 24px; font-size: 12.5px; color: var(--gos-muted); letter-spacing: .04em; }
.telemetry b { color: var(--gos-gold-bright); font-weight: 600; margin-left: 4px; }

/* ------------------------------------------------------------------- belt */
.belt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.lifecard {
  display: block; text-decoration: none; color: var(--gos-text);
  background: var(--gos-surface); border: 1px solid var(--gos-line); border-radius: 22px;
  padding: 22px 20px; box-shadow: var(--gos-shadow);
  transition: border-color .2s, transform .25s var(--ease);
}
a.lifecard:hover { border-color: var(--gos-gold); transform: translateY(-2px); }
.lifecard h3 { font-family: var(--gos-serif); font-weight: 500; font-size: 26px; margin: 0 0 8px; }
.lifecard p { color: var(--gos-muted); margin: 0 0 16px; font-size: 14.5px; }
.mini { display: flex; gap: 22px; flex-wrap: wrap; }
.mini div { font-size: 13px; color: var(--gos-muted); display: grid; }
.mini b { font-size: 19px; font-weight: 600; color: var(--gos-text); }
.mini .is-muted b { font-size: 15px; color: var(--gos-gold-bright); font-weight: 500; }

/* ----------------------------------------------------------- the sections */
.panel {
  background: var(--gos-surface); border: 1px solid var(--gos-line); border-radius: 22px;
  padding: 24px 24px 20px; box-shadow: var(--gos-shadow); scroll-margin-top: 80px;
}
.columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { font-size: 28px; font-weight: 500; }
.section-note { margin: 0; color: var(--gos-muted); font-size: 14px; }
.wiring { margin-top: 22px; }

.seg { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--gos-line); border-radius: 999px; }
.seg button { font: inherit; font-size: 13px; color: var(--gos-muted); background: none; border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--gos-surface-2); color: var(--gos-text); }

.agenda-list { display: grid; gap: 14px; }
.item {
  padding: 18px 20px; border: 1px solid var(--gos-line); border-left: 3px solid var(--gos-gold);
  border-radius: 6px 14px 14px 6px; background: var(--gos-bg);
}
.item[data-state="held"] { border-left-color: var(--gos-warn); }
.item[data-state="approved"] { border-left-color: var(--gos-good); }
.item[data-state="rejected"], .item[data-state="expired"] { border-left-color: var(--gos-line); opacity: .8; }
.item-from { margin: 0 0 4px; font-size: 13px; color: var(--gos-muted); }
.item-title { font-family: var(--gos-serif); font-size: 22px; font-weight: 500; margin: 0 0 6px; line-height: 1.2; }
.item-why { margin: 0 0 12px; color: rgba(242, 238, 230, .8); max-width: 64ch; }
.item-impact { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--gos-muted); }
.item-impact b { color: var(--gos-text); font-size: 17px; font-weight: 600; }
.item-impact .gos-figure { font-family: var(--gos-sans); letter-spacing: 0; }
.item-impact .gos-basis { text-transform: none; letter-spacing: 0; font-size: 12px; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.item-actions .note { flex: 1 1 180px; min-width: 0; padding: 8px 12px; font-size: 14px; }

.empty { padding: 26px 22px; border: 1px dashed var(--gos-line); border-radius: 14px; color: var(--gos-muted); }
.empty b { display: block; color: var(--gos-text); font-family: var(--gos-serif); font-size: 21px; font-weight: 500; margin-bottom: 4px; }

.roster { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gos-line); }
.roster li { border-bottom: 1px solid var(--gos-line); }
.roster button {
  width: 100%; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  font: inherit; color: var(--gos-text); text-align: left; background: none; border: 0; padding: 12px 4px; cursor: pointer;
}
.roster button:hover .r-name { color: var(--gos-gold-bright); }
.r-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ring, var(--gos-muted)); }
.roster [data-status="live"]     { --ring: var(--gos-good); }
.roster [data-status="piloting"] { --ring: var(--gos-info); }
.roster [data-status="building"] { --ring: var(--gos-warn); }
.r-name { font-weight: 500; transition: color .15s; }
.r-tag { display: block; font-size: 13px; color: var(--gos-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-stage { font-size: 13px; color: var(--gos-muted); }

.wiring-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 28px; }
.wire { display: grid; gap: 7px; }
.wire-top { display: flex; justify-content: space-between; font-size: 14px; }
.wire-top span:last-child { color: var(--gos-muted); }
.wire-bar { height: 6px; border-radius: 999px; background: var(--gos-surface-2); overflow: hidden; }
.wire-fill { height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--gos-gold-deep), var(--gos-gold-bright)); }

.foot { text-align: center; color: var(--gos-muted); font-size: 13px; margin: 36px 0 0; }

/* drawer: one building, up close */
.drawer {
  position: fixed; top: 0; right: 0; z-index: 50;
  width: min(420px, 100%); height: 100vh; overflow-y: auto;
  padding: 32px 30px; background: #15120F;
  border-left: 1px solid var(--gos-line); box-shadow: -30px 0 60px rgba(0, 0, 0, .5);
  animation: drawer-in .28s ease-out;
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
.drawer-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1;
  color: var(--gos-muted); background: #15120F; border: 1px solid var(--gos-line); cursor: pointer;
}
.drawer-close:hover { color: var(--gos-text); border-color: var(--gos-gold); }
.drawer-art { position: relative; margin: 26px 0 30px; }
.drawer-art .scene { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--gos-line); }
.drawer-art .logo-badge { position: absolute; left: 18px; bottom: -22px; width: 54px; height: 54px; margin: 0; }
.drawer h2 { font-size: 36px; font-weight: 500; }
.drawer-tagline { color: var(--gos-muted); margin: 8px 0 22px; }
.drawer-facts { display: grid; margin: 0 0 26px; border-top: 1px solid var(--gos-line); }
.drawer-facts div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gos-line); }
.drawer-facts dt { color: var(--gos-muted); }
.drawer-facts dd { margin: 0; }
.drawer h3 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.chips { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--gos-line); color: rgba(242, 238, 230, .85); }
.drawer-note { font-size: 13.5px; color: var(--gos-muted); max-width: 40ch; }

/* life: the same command center in cooler light */
body[data-domain="life"] .hub { background: linear-gradient(180deg, #161D2A, var(--sky1) 70%); }
body[data-domain="life"] .rail-link[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--gos-info); }

/* ----------------------------------------------------------------- narrow */
@media (max-width: 1080px) {
  .columns, .belt { grid-template-columns: minmax(0, 1fr); }
  .crumbs { display: none; }
}
@media (max-width: 860px) {
  .top { flex-wrap: wrap; }
  .top-links { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  .rail-foot { margin-left: auto; }
  /* On a phone the arc becomes a scrolling row of buildings at one height. */
  .skyline { justify-content: flex-start; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; }
  .bld { flex: 0 0 132px; transform: none; scroll-snap-align: start; }
  .bld:hover, .bld:focus-visible { transform: translateY(-4px); }
  .skyline:not(.seated) .bld { transform: translateY(16px); }
  .wordmark { font-size: 44px; }
  .skyline, .top-links { scrollbar-width: none; }
  .skyline::-webkit-scrollbar, .top-links::-webkit-scrollbar { display: none; }
  .seg { flex-wrap: wrap; border-radius: 16px; max-width: 100%; }
  .panel { padding: 20px 16px 16px; }
}

/* =============================================================== the desk */

.desk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.desk-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 500; }
.welcome-line { color: var(--gos-muted); margin: 10px 0 0; max-width: 62ch; font-size: 16px; }
.desk-live { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--gos-muted); }
.desk-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gos-muted); }
.desk-live[data-state="live"] .desk-pulse { background: var(--gos-good); box-shadow: 0 0 0 0 rgba(108, 198, 166, .6); animation: desk-pulse 2.4s ease-out infinite; }
.desk-live[data-state="down"] .desk-pulse { background: var(--gos-bad); }
@keyframes desk-pulse { 70% { box-shadow: 0 0 0 8px rgba(108, 198, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(108, 198, 166, 0); } }
@media (prefers-reduced-motion: reduce) { .desk-live[data-state="live"] .desk-pulse { animation: none; } }

.desk-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 30px 0 26px; padding-bottom: 12px; border-bottom: 1px solid var(--gos-line); }
.desk-tabs button {
  font: inherit; font-size: 14.5px; color: var(--gos-muted);
  background: none; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.desk-tabs button:hover { color: var(--gos-text); }
.desk-tabs button[aria-selected="true"] { color: var(--gos-text); background: var(--gos-surface-2); }
.tab-count { min-width: 20px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; text-align: center; color: #17130A; background: var(--gos-gold); }
.tab-count:empty { display: none; }

.desk-panel { max-width: 920px; }
.desk-block { margin-bottom: 40px; }
.desk-block h2 { font-size: 28px; font-weight: 500; margin-bottom: 14px; }
.desk-small { color: var(--gos-muted); font-size: 14px; margin: 0 0 14px; max-width: 70ch; }

.next-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gos-line); }
.next-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--gos-line); }
.next-list .btn { flex: none; }
.how-list { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; max-width: 70ch; }
.how-list li::marker { color: var(--gos-gold); font-family: var(--gos-serif); }

.decision {
  padding: 22px 24px; margin-bottom: 18px;
  border: 1px solid var(--gos-line); border-left: 3px solid var(--gos-gold);
  border-radius: 6px 14px 14px 6px; background: var(--gos-surface);
}
.decision.is-answered { border-left-color: var(--gos-good); }
.decision-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.decision h3 { font-family: var(--gos-serif); font-size: 24px; font-weight: 500; margin: 0 0 8px; line-height: 1.2; }
.decision > p { margin: 0 0 10px; max-width: 72ch; color: rgba(242, 238, 230, .85); }
.unblocks b, .issue-fix b, .tell-reply b { color: var(--gos-text); font-weight: 600; }
.compare-wrap { overflow-x: auto; margin: 14px 0 18px; }
.compare { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--gos-line); }
.compare thead th { color: var(--gos-gold-bright); font-weight: 600; border-bottom-color: rgba(212, 175, 55, .35); }
.compare tbody th { color: var(--gos-muted); font-weight: 500; white-space: nowrap; }
.question { border: 0; padding: 0; margin: 16px 0 6px; }
.question legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px; border: 1px solid var(--gos-line); border-radius: 999px; font-size: 14.5px;
  transition: border-color .15s, background-color .15s;
}
.option:hover { border-color: var(--gos-gold); }
.option input { accent-color: var(--gos-gold); margin: 0; }
.option:has(input:checked) { border-color: var(--gos-gold); background: rgba(212, 175, 55, .1); }
.option:has(input:focus-visible) { outline: 2px solid var(--gos-gold-bright); outline-offset: 2px; }
.decision textarea, .tell-compose textarea {
  width: 100%; margin-top: 14px; resize: vertical;
  font: inherit; font-size: 14.5px; color: var(--gos-text);
  background: var(--gos-bg); border: 1px solid var(--gos-line); border-radius: 12px; padding: 10px 14px;
}
.decision textarea:focus, .tell-compose textarea:focus { border-color: var(--gos-gold); outline: none; }
.decision-actions, .tell-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.saved-line { margin: 0; }
.decided-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gos-line); }
.decided-list li { display: grid; grid-template-columns: 70px 130px minmax(0, 1fr); gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--gos-line); font-size: 14.5px; }
.decided-list .when { color: var(--gos-muted); }
.decided-list .who { font-weight: 600; }

.pill { display: inline-block; flex: none; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid currentColor; white-space: nowrap; }
.pill-needs-you, .pill-new { color: var(--gos-gold-bright); }
.pill-running, .pill-picked { color: var(--gos-info); }
.pill-open, .pill-waiting { color: var(--gos-warn); }
.pill-done, .pill-closed, .pill-ready { color: var(--gos-good); }

.issue-list { display: grid; gap: 14px; }
.issue { padding: 18px 22px; border-radius: 14px; border: 1px solid var(--gos-line); background: var(--gos-surface); }
.issue-crit { border-color: color-mix(in srgb, var(--gos-bad) 55%, transparent); box-shadow: inset 3px 0 0 var(--gos-bad); }
.issue-warn { box-shadow: inset 3px 0 0 var(--gos-warn); }
.issue-sev { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.issue-crit .issue-sev { color: var(--gos-bad); }
.issue-warn .issue-sev { color: var(--gos-warn); }
.issue h3 { font-family: var(--gos-serif); font-size: 22px; font-weight: 500; margin: 0 0 2px; }
.issue-site { color: var(--gos-muted); font-size: 14px; margin: 0 0 10px; }
.issue p { max-width: 72ch; }
.issue-fix { margin-bottom: 0; }

.agent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.agent { padding: 14px 18px; border: 1px solid var(--gos-line); border-radius: 12px; background: var(--gos-surface); }
.agent-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.agent-name { font-weight: 600; }
.agent-kind { margin: 2px 0 6px; font-size: 13px; color: var(--gos-muted); }
.agent-result { margin: 0; font-size: 14.5px; color: rgba(242, 238, 230, .85); max-width: 80ch; }
.finished { margin-top: 18px; }
.finished summary { cursor: pointer; color: var(--gos-muted); padding: 8px 0; }
.finished[open] summary { margin-bottom: 10px; }

.queue-list { margin: 0; padding-left: 26px; border-top: 1px solid var(--gos-line); }
.queue-list li { padding: 12px 2px; border-bottom: 1px solid var(--gos-line); }
.queue-list li::marker { color: var(--gos-muted); }
.queue-list li > span:first-child { margin-right: 10px; }
.done-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.done-venture { padding: 14px 18px; border: 1px solid var(--gos-line); border-radius: 12px; }
.done-venture h3 { font-family: var(--gos-serif); font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.done-venture ul { margin: 0; padding-left: 18px; font-size: 14px; color: rgba(242, 238, 230, .85); display: grid; gap: 4px; }

.todo-groups { display: grid; gap: 26px; }
.todo-group h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.todo-group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gos-line); }
.todo-group li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 2px; border-bottom: 1px solid var(--gos-line); }
.todo-group input { accent-color: var(--gos-gold); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.todo-group label { cursor: pointer; }
.todo-group li.is-done label { color: var(--gos-muted); text-decoration: line-through; text-decoration-color: rgba(163, 156, 143, .6); }

.tell-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tell-item { padding: 14px 18px; border: 1px solid var(--gos-line); border-radius: 12px; background: var(--gos-surface); }
.tell-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.tell-top .desk-small { margin: 0; }
.tell-text { margin: 0; white-space: pre-wrap; }
.tell-reply { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--gos-line); white-space: pre-wrap; color: rgba(242, 238, 230, .88); }

@media (max-width: 760px) {
  .desk-tabs { flex-wrap: nowrap; overflow-x: auto; margin-top: 20px; }
  .desk-tabs button { white-space: nowrap; }
  .decision { padding: 18px 16px; }
  .decided-list li { grid-template-columns: 60px minmax(0, 1fr); }
  .decided-list li > span:last-child { grid-column: 1 / -1; }
  .next-list li { flex-direction: column; align-items: flex-start; }
}
