:root {
  /* Asphalt and yellow (owner, 2026-11-28: the violet and pink of that morning read as "AI
     slop"; of three shown, they chose this). A near-black asphalt ground, road-sign yellow for
     what acts, a little signal red beside it, off-white for what is lit. Flat colour, no
     gradients on anything that acts; slanted edges and heavy italic titles as before. The look
     is our own: Orbixa's name, people and places, and nothing of any game's. Every colour of the
     look is named here; the rules below use the names (--pink and --teal keep their old names:
     the first is the acting colour, the second the colour of small live marks). */
  --night: #161614;
  --night-rgb: 22 22 20;
  --dusk: #262622;
  --dusk-rgb: 38 38 34;
  --pink: #ffd60a;
  --accent-rgb: 255 214 10;
  --orange: #ff5a2e;
  --sand: #f6f1e4;
  --teal: #ffffff;
  --sunset: linear-gradient(#ffd60a, #ffd60a);
  --grade: linear-gradient(170deg, #ffe680 0%, #b08a12 50%, #1a1a17 100%);
  --tile-1: #ffd60a;
  --tile-2: #e9e3d2;
  --tile-3: #ff5a2e;
  --tile-4: #8f8c82;
  --tile-5: #c7a70a;
  --ink: #faf7ee;
  --muted: rgba(250, 247, 238, 0.66);
  --accent: var(--pink);
  --accent-ink: var(--night);
  --accent-soft: rgb(var(--accent-rgb) / 0.16);
  --panel: rgb(var(--dusk-rgb) / 0.9);
  --line: rgba(250, 247, 238, 0.18);
  --bg: var(--night);
  --ok: #57d98a;
  --bad: #ff8f80;
  --radius: 0;
  --serif: "Kanit", "Arial Narrow", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  /* the big slanted titles */
  --display: "Kanit", "Arial Narrow", system-ui, sans-serif;
  --slant: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
kbd { font: 600 11px var(--sans); padding: 1px 5px; border: 1px solid var(--line); border-radius: 0; color: var(--muted); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 500 18px var(--serif); }
.mark { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent); position: relative; }
.mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--accent); }

button.primary, button.ghost, button.chip {
  border: 1px solid var(--line); border-radius: 0; cursor: pointer; padding: 10px 20px; font-weight: 600;
  transition: background .15s, border-color .15s, transform .1s;
}
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.primary:hover { filter: brightness(1.08); }
button.ghost, button.chip { background: rgba(255,255,255,.04); }
button.ghost:hover, button.chip:hover { background: rgba(255,255,255,.09); }
button:active { transform: translateY(1px); }

/* landing ------------------------------------------------------------------- */
/* The launch page reads like a film: the live street full bleed, big condensed titles, then
   chapters, the people and places, and the plans. Everything here is scoped to #landing so the
   campus HUD keeps its own look. Black, white and one light blue; no colour grades, no glows. */
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin: 0 0 14px; }
h1 { font: 400 clamp(38px, 5.6vw, 68px)/1.02 var(--serif); margin: 0 0 20px; letter-spacing: -.02em; }
.lede { color: var(--muted); font-size: 18px; max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

#landing { --gutter: clamp(16px, 4vw, 56px); overflow-x: clip; }
#landing .eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .16em; margin: 0 0 14px; }
#landing .eyebrow::before, #landing .eyebrow::after { content: none; }
#landing .title { font: 700 clamp(46px, 6.4vw, 96px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.005em; margin: 0; }
#landing .lede { color: rgba(255,255,255,.72); font-size: clamp(16px, 1.5vw, 19px); max-width: 34em; margin: 18px 0 0; }
#landing button.primary, #landing button.ghost { padding: 15px 24px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
#landing button.ghost { background: transparent; border-color: rgba(255,255,255,.5); }
#landing button.ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* the bar: brand left, the two ways in right; solid once the hero has scrolled away (app.js) */
.nav { position: fixed; inset: 0 0 auto; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 12px;
       padding: 18px var(--gutter); background: linear-gradient(180deg, rgb(var(--night-rgb) / .6), transparent); transition: background .3s, padding .3s; }
.nav.solid { background: rgb(var(--night-rgb) / .86); border-bottom: 1px solid var(--line); padding-block: 12px; }
.nav .brand { font: 700 22px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.nav-ways { display: flex; gap: 8px; }
#landing .nav button { padding: 10px 16px; font-size: 12px; }

/* hero: the town, live, filling the screen; the still under it until the 3D is ready */
.hero { position: relative; min-height: 100svh; display: grid; place-items: end center; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; background: var(--night) url(/static/site/street-0.webp) 50% 60% / cover; }
.hero-art::before { content: ""; position: absolute; inset: 0; background: inherit; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.1) translateX(1.5%); } to { transform: scale(1.02) translateX(-1.5%); } }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
#hero-canvas.live { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
               background: linear-gradient(180deg, rgb(var(--night-rgb) / .5) 0%, rgb(var(--night-rgb) / 0) 26%, rgb(var(--night-rgb) / .2) 50%, rgb(var(--night-rgb) / .9) 88%, var(--night) 100%); }
.hero-copy { text-align: center; padding: 0 var(--gutter) clamp(56px, 10vh, 110px); max-width: 1200px; }
#landing .hero .title { font-size: clamp(52px, 7.6vw, 124px); }
#landing .hero .lede { margin: 20px auto 0; color: rgba(255,255,255,.8); }
.hero .cta { justify-content: center; margin-top: 32px; }
.cue { display: block; width: 14px; height: 14px; margin: 38px auto 0; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
       transform: rotate(45deg); opacity: .7; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(6px) rotate(45deg); opacity: 1; } }

/* statement: one big sentence on black */
.statement { padding: clamp(96px, 16vh, 180px) var(--gutter); text-align: center; max-width: 1100px; margin: 0 auto; }
#landing .statement .lede { margin: 26px auto 0; font-size: clamp(17px, 1.7vw, 21px); }

/* chapters: a full-bleed still with the words over its lower left */
.features { display: grid; gap: clamp(16px, 2vw, 24px); padding: 0 var(--gutter); }
.chapter { position: relative; min-height: min(84svh, 800px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; border: 1px solid var(--line); }
.chapter > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 2.4s ease; }
.chapter.in > img { transform: scale(1); }
.chapter::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(var(--night-rgb) / 0) 35%, rgb(var(--night-rgb) / .86) 100%); }
.chapter .copy { padding: clamp(24px, 4vw, 56px); max-width: 760px; }
.chapter .n { font: 600 15px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); margin: 0 0 14px; }
#landing .chapter .lede { color: rgba(255,255,255,.82); }

/* people & places: cards, image behind, name over it */
.section { padding: clamp(96px, 14vh, 160px) var(--gutter) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(24px, 4vw, 40px); }
#landing .section-head .lede { margin: 0; max-width: 28em; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(220px, 22vw, 320px); gap: clamp(10px, 1.4vw, 18px); }
.cards .tile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
               padding: clamp(16px, 2vw, 24px); border: 1px solid var(--line); background: var(--night); }
.cards .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; filter: saturate(.85); }
.cards .tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(var(--night-rgb) / .05) 30%, rgb(var(--night-rgb) / .88) 100%); }
.cards .tile:hover img { transform: scale(1.04); }
.cards .big { grid-column: span 2; grid-row: span 2; }
.cards .wide { grid-column: span 2; }
.cards .role { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.cards h3 { font: 700 clamp(30px, 3.2vw, 48px)/.92 var(--display); text-transform: uppercase; margin: 0; }
.cards .big h3 { font-size: clamp(44px, 5.4vw, 84px); }
.cards .tile p:last-child { color: rgba(255,255,255,.76); font-size: 14px; margin: 10px 0 0; max-width: 30em; }

/* scroll reveals: app.js adds .reveal to #landing only when it can observe, and never for
   reduced motion, so without it everything simply shows */
#landing.reveal .rise { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
#landing.reveal .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hero-art::before, .cue { animation: none; } .chapter > img { transform: none; transition: none; } }

.foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding: 26px var(--gutter) 36px; flex-wrap: wrap; gap: 8px; }
#landing .foot { margin-top: clamp(96px, 14vh, 160px); }

/* /login: the way in while / is a coming-soon teaser. Only the bar, the dialog and the legal
   footer show, over one still of the street: no marketing, and no 3D (app.js skips it). */
body.login-only #landing { min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgb(var(--night-rgb) / .55), rgb(var(--night-rgb) / .35) 40%, rgb(var(--night-rgb) / .9)), var(--night) url(/static/site/street-1.webp) 50% 60% / cover; }
body.login-only #landing > :not(.nav):not(.foot) { display: none; }
body.login-only #landing > .foot { margin-top: auto; border-top-color: rgba(255,255,255,.2); }
body.login-only .nav { position: static; background: transparent; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(240px, auto); }
  .cards .big { grid-row: span 1; min-height: 340px; }
}
@media (max-width: 560px) {
  .nav .brand { font-size: 19px; }
  #landing .nav button.primary { display: none; }
  .hero .cta button { flex: 1 1 100%; }
  .chapter { min-height: 72svh; }
  .cards { grid-template-columns: 1fr; grid-auto-rows: minmax(260px, auto); }
  .cards .big, .cards .wide { grid-column: auto; }
  .foot { flex-direction: column; }
}

/* sign in dialog --------------------------------------------------------------- */
dialog { border: 1px solid var(--line); border-radius: 0; background: var(--night); color: var(--ink); padding: 28px; width: min(420px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(var(--night-rgb) / .6); backdrop-filter: blur(4px); }
dialog h2 { font: 700 34px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 20px; }
dialog label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
dialog input { display: block; width: 100%; margin-top: 5px; padding: 11px 13px; border-radius: 0; border: 1px solid var(--line); background: var(--night); }
dialog input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
dialog .row { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.error { color: var(--bad); min-height: 1.2em; margin: 4px 0; font-size: 14px; }
#auth:not(.signup) .signup-only { display: none; }

/* the village ---------------------------------------------------------------- */
#app { position: fixed; inset: 0; overflow: hidden; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#world:active { cursor: grabbing; }

.bar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 8px 10px 8px 18px; backdrop-filter: blur(10px); }
.bar .brand { font-size: 16px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.todo { flex: 1; min-width: 120px; }
.todo input { width: 100%; padding: 9px 14px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .35); }
.todo input:focus { outline: 2px solid var(--accent); }
.chip { padding: 8px 14px !important; font-size: 13px; position: relative; white-space: nowrap; }
.badge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: var(--accent-ink); border-radius: 0; font-size: 11px; padding: 0 6px; }
.meter { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); min-width: 110px; }
.track { height: 4px; background: rgba(255,255,255,.1); border-radius: 0; overflow: hidden; }
#credit-bar { display: block; height: 100%; background: var(--ok); width: 100%; transition: width .4s; }

/* A panel is a card, not a column: it grows with what is in it and stops at the viewport, so
   three lines of log are three lines of card instead of a 380x830 empty slab over the town. */
.panel { position: absolute; top: 76px; max-height: calc(100vh - 140px); width: min(380px, 42vw); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; backdrop-filter: blur(10px); }
.panel.left { left: 12px; }
.panel.right { right: 12px; width: min(440px, 46vw); }
.panel h4, .drawer h4 { margin: 0 0 10px; color: var(--accent); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.panel ol, .drawer ol { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 0 1 auto; min-height: 0; }
#log-list li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
#log-list b { display: block; font-size: 11px; color: var(--accent); }
#log-list li.err b { color: var(--bad); }
#log-list li.owner b { color: var(--accent); }

.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.chat-head h3 { font: 500 22px var(--serif); margin: 0; }
.chat-head-btns { display: flex; gap: 6px; flex: none; }
#chat-office { color: var(--accent); border-color: rgb(var(--accent-rgb) / .4); }
.chat-head p { color: var(--muted); margin: 2px 0 0; font-size: 13px; }
.x { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 0; padding: 4px 10px; cursor: pointer; font-size: 12px; }
#chat-list li { margin: 8px 0; }
#chat-list b { display: block; font-size: 12px; color: var(--accent); }
#chat-list li.me b { color: var(--accent); }
#chat-list p { margin: 2px 0 0; white-space: pre-wrap; }
.thinking { color: var(--accent); font-style: italic; font-size: 13px; margin: 6px 0; }
#chat-form input { width: 100%; padding: 11px 14px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .4); margin-top: 8px; }
#chat-form input:focus { outline: 2px solid var(--accent); }
/* sample prompts for the department (prompts.js): one row that scrolls sideways */
.asks { margin-top: 8px; }
.asks > span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
/* 2026-11-26 (owner: "I can't scroll through the sample questions"): the questions sat in one row
   that only scrolled sideways, which a mouse wheel cannot do. They are a short list now: every
   one is in view or a wheel's turn away. */
.asks-row { display: flex; flex-direction: column; gap: 6px; max-height: 196px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.asks-row button { flex: 0 0 auto; width: 100%; text-align: left; white-space: normal; background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: inherit; padding: 8px 10px; font: 500 12.5px/1.35 var(--sans); cursor: pointer; border-radius: 0; }
.asks-row button:hover, .asks-row button:focus-visible { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.office-dos.office-asks { flex-wrap: wrap; justify-content: center; max-height: 104px; overflow-y: auto; max-width: min(760px, 92vw); padding-bottom: 6px; scrollbar-width: thin; overscroll-behavior: contain; }
.office-dos.office-asks > span { flex: 0 0 auto; width: auto; align-self: center; margin-right: 4px; }
.office-dos.office-asks button { flex: 0 0 auto; max-width: 250px; text-align: left; white-space: normal; font-weight: 500; }

.drawer { position: absolute; top: 76px; left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); max-height: 62vh;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; backdrop-filter: blur(10px); z-index: 2; }
#task-list li, #team-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.status { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 0; background: rgba(255,255,255,.08); color: var(--muted); }
.status.submitted { background: var(--accent); color: var(--accent-ink); }
.status.approved { background: rgba(111,208,140,.18); color: var(--ok); }
.status.working { background: var(--accent-soft); color: var(--accent); }
.status.blocked { background: rgba(240,122,104,.18); color: var(--bad); }
#task-list details summary { cursor: pointer; }
#task-list details p { color: var(--muted); white-space: pre-wrap; font-size: 13px; margin: 6px 0 0; }
#task-list .approved summary { color: var(--muted); text-decoration: line-through; }
.actions { display: flex; gap: 6px; }
.actions button { padding: 6px 12px !important; font-size: 12px; }
#team-list input { background: transparent; border: 1px solid transparent; border-radius: 0; padding: 4px 8px; font-weight: 600; width: 10em; }
#team-list input:hover, #team-list input:focus { border-color: var(--line); outline: none; }
#team-list small { color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; }

.card { position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 18px; display: flex; flex-direction: column; min-width: 280px; max-width: 420px; pointer-events: none; }
.card strong { font: 500 18px var(--serif); }
.card span { color: var(--muted); font-size: 13px; }
.card em { color: var(--accent); font-style: normal; font-size: 12px; font-weight: 600; margin-top: 4px; }
.help { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; color: rgba(255,255,255,.62); font-size: 12px; pointer-events: none; text-shadow: 0 1px 3px var(--night); }

@media (max-width: 760px) {
  .meter, .help, .bar .chip[data-panel="log"] { display: none; }
  .panel.left { display: none; }
  .panel.right { left: 12px; width: auto; }
}

/* account, admin, loading ------------------------------------------------------ */
button.link { background: none; border: 0; color: var(--accent); padding: 0; cursor: pointer; font-size: 13px; }
.small { margin: 0 0 8px; }
.note { color: var(--ok); font-size: 14px; margin: 4px 0; min-height: 0; }
#auth.forgot .not-forgot, #auth.forgot .signup-only, #auth.reset .signup-only, #auth.reset #auth-forgot,
#auth.forgot #auth-forgot, #auth.reset label:first-of-type,
#auth.confirm label:first-of-type, #auth.confirm .oauth { display: none; }
.foot a { color: var(--muted); }
.admin, .account { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.row-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.row-inline button { padding: 7px 14px !important; font-size: 13px; }
.ghost-link { color: var(--muted); font-size: 13px; padding: 7px 10px; }
#invite-list { max-height: 180px; }
#invite-form input, #invite-form select { padding: 8px 12px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .4); }
#invite-form input { flex: 1; min-width: 180px; }
#invite-list button { padding: 3px 10px !important; font-size: 11px; }
#auth input[readonly] { opacity: .75; }
#invite-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
#invite-list code { color: var(--ink); user-select: all; }
#invite-list small { color: var(--muted); }
.danger summary { color: var(--bad); cursor: pointer; font-size: 13px; }
.danger p { color: var(--muted); font-size: 13px; }
.danger input { padding: 8px 12px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .4); }
.danger-btn { background: var(--bad); color: var(--night); border: 0; border-radius: 0; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 5; transition: opacity .5s; }
.loading.done { opacity: 0; pointer-events: none; }
.loading > div { display: grid; justify-items: center; gap: 14px; color: var(--muted); }
.loading .track { width: 220px; }
#loading-bar { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* team workflow: boards, action items, agent states (modelled on jsm-hq) */
.drawer.wide { width: min(1180px, calc(100vw - 24px)); max-height: 72vh; }
.drawer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.board-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; align-items: center; }
/* the Board's two tabs: what's waiting on you, and all the work */
.work-tabs { display: flex; gap: 0; border: 1px solid var(--line); }
.work-tabs button { background: none; border: 0; border-right: 1px solid var(--line); color: var(--muted); padding: 7px 14px;
  font: 600 13px var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.work-tabs button:last-child { border-right: 0; }
.work-tabs button.on { color: var(--accent-ink); background: var(--accent); }
.work-tabs .badge { position: static; }
.work-tabs button.on .badge { background: var(--accent-ink); color: var(--accent); }
.work-lede { color: var(--muted); font-size: 13px; margin: 10px 0 12px; }
.board-tabs button { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); border-radius: 0; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.board-tabs button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.board-tabs button.done { opacity: .55; }
.board-tabs form { display: inline-flex; gap: 6px; }
.board-tabs input { padding: 5px 10px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .35); font-size: 12px; width: 150px; }
.board-tabs select { padding: 4px 8px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .35); color: var(--ink); font-size: 12px; margin-left: auto; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 10px; overflow: auto; flex: 1; min-height: 0; }
.kanban .col { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 0; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; overflow-y: auto; }
.kanban .col h5 { margin: 0 2px 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.kanban .card-t { background: rgb(var(--night-rgb) / .35); border: 1px solid var(--line); border-radius: 0; padding: 8px 10px; font-size: 13px; }
.kanban .card-t.needs_input, .kanban .card-t.blocked { border-color: rgba(240,122,104,.6); }
.kanban .card-t.submitted { border-color: rgba(111,208,140,.6); }
.kanban .card-t small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.kanban .card-t details { margin-top: 4px; }
.kanban .card-t details p { white-space: pre-wrap; color: var(--muted); font-size: 12px; max-height: 220px; overflow: auto; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; border-radius: 0; padding: 1px 7px; margin-right: 4px; }
.tag.needs_input, .tag.blocked { background: rgba(240,122,104,.18); color: var(--bad); }
.row-btns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.row-btns button { padding: 5px 12px !important; font-size: 12px; }
.row-btns input { flex: 1; min-width: 120px; padding: 5px 10px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .35); font-size: 12px; }
#action-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
#action-list li b { color: var(--accent); }
#action-list li .kind { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; display: block; }
#action-list li p { margin: 4px 0; color: var(--muted); font-size: 13px; white-space: pre-wrap; }
#action-list li.question .kind, #action-list li.access .kind { color: var(--bad); }
#action-list li.approve .kind { color: var(--ok); }
.badge.alert { background: var(--bad); color: #fff; }
.agent-strip { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin: -4px 0 8px; min-height: 22px; }
.state { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 0; background: rgba(255,255,255,.08); color: var(--muted); white-space: nowrap; }
.state.working { background: var(--accent-soft); color: var(--accent); }
.state.reviewing, .state.in_review { background: rgba(201,166,255,.18); color: #c9a6ff; }
.state.review_passed { background: rgba(111,208,140,.18); color: var(--ok); }
.state.needs_input { background: rgba(240,122,104,.2); color: var(--bad); }
#agent-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 6px 10px; cursor: pointer; font-size: 13px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.pane li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pane li b { display: block; font-size: 11px; color: var(--accent); }
.pane li small { color: var(--muted); }
.status.review { background: rgba(201,166,255,.18); color: #c9a6ff; }
.status.needs_input { background: rgba(240,122,104,.2); color: var(--bad); }
@media (max-width: 900px) { .kanban { grid-template-columns: repeat(5, 200px); } }
.media { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.media img { width: 96px; height: 64px; object-fit: cover; border-radius: 0; border: 1px solid var(--line); }
.media video { width: 100%; max-height: 160px; border-radius: 0; }
.media audio { width: 100%; }
.media-note { display: block; color: var(--accent) !important; }
.media-note.failed { color: var(--bad) !important; }
.media-credit { display: block; margin-top: 4px; opacity: .8; }
.media-credit a { color: inherit; text-decoration: underline; }
/* skills (skills.js) */
#skills { max-height: 78vh; overflow-y: auto; }
#skills ol { overflow: visible; flex: 0 0 auto; }
.skills-lede { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.skills-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.skills-bar select, #skill-form select, #skill-task { padding: 7px 10px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .4); color: var(--ink); font-size: 13px; max-width: 100%; }
.skills-bar small, .skills-tip { color: var(--muted); font-size: 12px; }
.skill { padding: 10px 0; border-bottom: 1px solid var(--line); }
.skill.off > div { opacity: .5; }
.skill .kind { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.skill p { margin: 2px 0 4px; color: var(--muted); font-size: 13px; }
.skill summary { cursor: pointer; font-size: 12px; color: var(--accent); }
.skill pre, #skill-body { white-space: pre-wrap; font: 400 12.5px/1.5 var(--sans); margin: 6px 0 0; }
.skills-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
#skills-teach { margin-top: 14px; }
#skills h4 { margin-top: 14px; }
#skills h4:first-child { margin-top: 0; }
#skill-job, #skill-form input, #skill-form textarea { width: 100%; padding: 9px 12px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .4); color: var(--ink); font: 400 13px/1.45 var(--sans); }
#skill-form { display: grid; gap: 8px; margin: 8px 0; padding: 12px; border: 1px solid var(--accent); }
#skill-form label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#skills-note.bad { color: var(--bad); }
.skills-tip { display: block; margin-top: 10px; }
.chat-skills { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.chat-skills label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; white-space: nowrap; }
#chat-form .chat-skills input { width: auto; margin: 0; padding: 0; }
.chat-skills small { color: var(--accent); }
.store-item { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.store-item .kind { grid-column: 1 / -1; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.store-item p { margin: 0; color: var(--muted); font-size: 13px; grid-column: 1; }
.store-item b { grid-column: 1; }
.store-item button { grid-column: 2; grid-row: 2 / span 2; padding: 7px 14px !important; font-size: 13px; }
.store-item .have { grid-column: 1 / -1; color: var(--ok); font-size: 12px; }
/* a panel before its data is here, and when it could not be read (2026-12-01) */
.panel-wait, .panel-fail { list-style: none; color: var(--muted); font-size: 13px; padding: 10px 0; margin: 0; }
.panel-fail { color: var(--bad); }
.panel-fail .link, .music-state a { color: var(--accent); text-decoration: underline; }
.music { position: absolute; left: 12px; bottom: 56px; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; backdrop-filter: blur(10px); z-index: 3; }
.music iframe { width: 100%; height: 152px; border: 0; border-radius: 0; margin-top: 8px; background: var(--night); display: block; }
.music iframe[data-provider="youtube"] { height: auto; aspect-ratio: 16 / 9; }
.music iframe[data-provider="apple"] { height: 175px; }
.music-state { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
/* made small: the player alone, at its service's compact size, so the music carries on (2026-12-01) */
.music.small { width: min(260px, calc(100vw - 24px)); padding: 8px 10px; }
.music.small .chat-head { margin-bottom: 0; align-items: center; }
.music.small .chat-head h3 { font-size: 15px; }
.music.small .chat-head p, .music.small #music-form, .music.small #music-note, .music.small #music-list, .music.small .music-state { display: none; }
.music.small iframe { height: 80px; margin-top: 6px; }
.music.small iframe[data-provider="youtube"] { height: auto; }
.music.small iframe[data-provider="apple"] { height: 150px; }
.music.small iframe[data-provider="soundcloud"] { height: 120px; }
.music.small iframe[data-provider="deezer"] { height: 92px; }
#music-list { list-style: none; margin: 8px 0 0; padding: 0; }
#music-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
#music-list li .link { min-width: 0; overflow-wrap: anywhere; }
#music-list li .x { flex: none; }
button.link { background: none; border: 0; color: var(--ink); cursor: pointer; text-align: left; padding: 0; font: inherit; }


/* the boardroom: everyone's first stop */
/* The room fills the viewport and must never scroll: its people panel scrolls inside itself, and
   a scrolling overlay shifts the 3D view and every control with it. */
.boardroom { position: fixed; inset: 0; z-index: 20; overflow: hidden; }
/* a director's office: full screen, the room behind, the bar along the bottom */
.door-prompt { position: fixed; left: 50%; bottom: 186px; cursor: pointer; transform: translateX(-50%); z-index: 9; padding: 10px 16px;
  background: rgb(var(--night-rgb) / .78); border: 1px solid var(--accent); color: #fff; font: 600 14px var(--sans); pointer-events: auto; }
.door-prompt:hover { background: var(--accent); color: var(--accent-ink); }
.door-prompt:hover kbd { color: var(--accent-ink); border-color: var(--accent-ink); }
.office { position: fixed; inset: 0; z-index: 19; background: var(--night); }
/* Outreach opened from inside the Marketing office sits over the room, not behind it */
.drawer.in-office, .panel.in-office { position: fixed; z-index: 21; }   /* over the office (z 19), which stays up behind */
.office canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.office-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; padding: 24px 28px; background: linear-gradient(transparent, rgb(var(--night-rgb) / .85)); }
.office-bar h2 { margin: 4px 0; font-family: var(--serif); }
.office-bar p { margin: 0; color: #c9d2da; max-width: 560px; }
.office-actions { display: flex; gap: 10px; flex-shrink: 0; }
.office-actions .play { background: var(--accent); color: var(--accent-ink); }
/* the live campus stays visible behind the boardroom, dimmed and softened */
.board-bg { position: fixed; inset: 0; background: rgb(var(--night-rgb) / .64); backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1); }
.board-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 40px 24px 60px; }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.board-head h2 { font: 500 40px var(--serif); margin: 0 0 6px; }
.board-head .lede { margin: 0; max-width: 46em; font-size: 16px; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; }
.seat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; backdrop-filter: blur(12px); }
.seat h4 { margin: 0 0 10px; color: var(--accent); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.seat.wide { grid-row: span 2; }
.seat.table { grid-column: 1 / 3; }
.seat input, .seat select { width: 100%; padding: 8px 10px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .35); color: var(--ink); font-size: 14px; }
.seat .who { margin: 0 0 8px; font-weight: 600; }
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.looks .g { grid-column: 1 / -1; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.looks button { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); border-radius: 0; padding: 8px 4px; font-size: 13px; cursor: pointer; }
.looks button.on { border-color: var(--accent); background: var(--accent-soft); }
#board-people li, #board-directors li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
#board-directors { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
#board-directors li { grid-template-columns: 1fr 1fr 110px; }
#board-directors small, #board-people small { color: var(--muted); }
.look-choice { border: 0; padding: 0; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.look-choice legend { margin-bottom: 4px; }
.look-choice label { display: inline-flex !important; gap: 6px; margin-right: 14px; color: var(--ink); }
.look-choice input { width: auto !important; margin: 0 !important; display: inline !important; }
dialog.signin .signup-any, dialog.forgot .signup-any, dialog.reset .signup-any { display: none; }
dialog.signup.team .signup-only:not(.signup-any) { display: none; }
@media (max-width: 900px) { .board-grid { grid-template-columns: 1fr; } .seat.table, .seat.wide { grid-column: auto; grid-row: auto; } #board-directors { grid-template-columns: 1fr; } .board-head { flex-direction: column; align-items: flex-start; } }

/* pricing: three plans in hairline boxes, the prices set in the condensed display face */
.pricing { padding: clamp(96px, 14vh, 160px) var(--gutter, 24px) 0; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.plans article { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; }
.plans article.pro { border-color: var(--accent); background: rgb(var(--accent-rgb) / .05); }
.plans h3 { margin: 0 0 14px; font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.plans .price { font: 700 clamp(52px, 5vw, 72px)/.9 var(--display); margin: 0 0 22px; color: var(--ink); }
.plans .price span { font: 500 14px var(--sans); color: var(--muted); margin-left: 6px; }
.plans ul { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: 14px; line-height: 1.6; display: grid; gap: 10px; }
.plans b { color: var(--ink); }
.plans .price span { display: inline-block; }
.fine-print { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.plans.three { grid-template-columns: repeat(3, 1fr); }
.plans .price.word { font-size: clamp(40px, 4vw, 56px); }
@media (max-width: 1100px) { .plans, .plans.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans, .plans.three { grid-template-columns: 1fr; } }

/* integrations: a full-screen hub, like a game menu --------------------------------- */
.drawer.hub { position: fixed; top: 72px; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: none; transform: none;
  background: rgb(var(--night-rgb) / 0.94); padding: 0; z-index: 6; overflow: hidden; display: flex; flex-direction: column; }
.hub-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.hub-head h2 { font: 400 clamp(26px, 3vw, 40px)/1.05 var(--serif); margin: 0 0 8px; letter-spacing: -.01em; }
.hub-head .eyebrow { margin-bottom: 8px; }
.hub-lede { color: var(--muted); margin: 0; max-width: 62em; font-size: 14px; }
.hub-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; }
.hub-body { display: grid; grid-template-columns: 230px 1fr; min-height: 0; flex: 1; }
.hub-cats { border-right: 1px solid var(--line); padding: 14px 0; overflow-y: auto; }
.hub-cats button { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; border-left: 2px solid transparent;
  color: var(--muted); padding: 10px 22px; cursor: pointer; text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.hub-cats button:hover { color: var(--ink); background: rgba(255, 255, 255, .03); }
.hub-cats button.on { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }
.hub-cats small { color: inherit; opacity: .7; }
.hub-main { overflow-y: auto; padding: 18px 26px 26px; display: flex; flex-direction: column; gap: 14px; }
#ig-search { width: 100%; max-width: 520px; padding: 11px 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); border-radius: 0; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.ig-card { border: 1px solid var(--line); background: rgba(255, 255, 255, .025); padding: 16px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, background .15s, transform .15s; }
.ig-card:hover { border-color: rgb(var(--accent-rgb) / .55); background: rgb(var(--accent-rgb) / .04); transform: translateY(-1px); }
.ig-card.on { border-color: var(--ok); }
.ig-card.off { opacity: .55; }
.ig-card header { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.ig-card header b { display: block; font: 500 17px var(--serif); }
.ig-card header small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.ig-card .logo { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.ig-card .logo img { width: 28px; height: 28px; object-fit: contain; }
.ig-card .logo b { color: var(--night); font: 600 15px var(--serif); text-transform: uppercase; }
.ig-card p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; line-height: 1.55; }
.ig-actions { display: flex; align-items: center; gap: 10px; }
.ig-card code { word-break: break-all; font-size: 11px; }
.pill { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: var(--ok); }
.via { display: inline-block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgb(var(--accent-rgb) / .45); padding: 0 5px; }
.powered { margin: 4px 0 0; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px;
  border-radius: 0; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; }
.tag.ok, .tag.done { color: var(--ok); border-color: var(--ok); }
.tag.draft { color: var(--accent); border-color: var(--accent); }
@media (max-width: 760px) {
  .drawer.hub { top: 64px; left: 6px; right: 6px; bottom: 6px; }
  .hub-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .hub-cats { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .hub-cats button { width: auto; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; gap: 8px; padding: 10px 14px; }
  .hub-cats button.on { border-bottom-color: var(--accent); }
  .hub-head { flex-direction: column; align-items: flex-start; padding: 16px; }
  .hub-main { padding: 14px 16px; }
}
.fine { font-size: 11px; color: var(--muted); }
.ig-signup { display: block; margin-top: 10px; line-height: 1.5; }
.ig-signup a { color: var(--accent); }
#ig-dialog { border: 1px solid var(--line); border-radius: 0; background: var(--panel, var(--night)); color: inherit; width: min(440px, calc(100vw - 32px)); padding: 20px; }
#ig-dialog::backdrop { background: rgb(var(--night-rgb) / .55); }
#ig-dialog h3 { margin: 0 0 6px; }
#ig-fields { display: grid; gap: 10px; margin: 12px 0; }
#ig-fields label { display: grid; gap: 4px; font-size: 13px; }
#ig-fields input { width: 100%; box-sizing: border-box; }
.note.error { color: var(--bad); min-height: 1em; }
pre.preview { white-space: pre-wrap; font: 13px/1.45 inherit; font-family: inherit; background: rgba(255,255,255,.04); padding: 10px; border-radius: 0; max-height: 260px; overflow: auto; }

/* outreach ----------------------------------------------------------------------- */
.campaign { border-bottom: 1px solid var(--line); padding: 10px 0; }
.campaign header { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.campaign header button { margin-left: auto; }
ol.calls { list-style: none; padding: 0; margin: 8px 0 0; }
ol.calls li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); }
ol.calls small, table.leads small { display: block; color: var(--muted); }
#or-import { align-items: stretch; flex-wrap: wrap; }
#or-import textarea { flex: 1 1 320px; min-height: 60px; }
table.leads { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
table.leads th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px; }
table.leads td { padding: 6px 4px; border-top: 1px solid var(--line); vertical-align: top; word-break: break-word; }
table.leads tr.stopped td { opacity: .5; }
@media (max-width: 640px) { table.leads th:nth-child(4), table.leads td:nth-child(4) { display: none; } }

/* sponsored card: Starter only ----------------------------------------------------- */
.ad-card { position: relative; border: 1px solid var(--line); border-radius: 0; padding: 10px 28px 10px 12px; margin-top: 12px;
  background: rgba(255,255,255,.03); display: grid; gap: 4px; }
.ad-card.campus { position: absolute; right: 16px; bottom: 236px; width: min(280px, calc(100vw - 32px)); margin: 0;
  background: rgba(14,15,19,.86); backdrop-filter: blur(8px); z-index: 5; }
.ad-card p { margin: 0; font-size: 13px; color: var(--muted); }
.ad-card img { width: 100%; border-radius: 0; max-height: 120px; object-fit: cover; }
.ad-card a { font-size: 13px; color: var(--accent); }
.ad-card .x { position: absolute; top: 4px; right: 6px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 2px 6px; }
#outreach > * { flex-shrink: 0; }

/* MLX Learn details: uppercase labels in brackets, square controls, hairline focus ------ */
.eyebrow::before, .panel h4::before, .drawer h4::before, .seat h4::before { content: "[ "; }
.eyebrow::after, .panel h4::after, .drawer h4::after, .seat h4::after { content: " ]"; }
.eyebrow, .panel h4, .drawer h4, .seat h4 { font-family: var(--sans); font-weight: 500; letter-spacing: .08em; }
button.primary, button.ghost, button.chip { font-weight: 500; letter-spacing: .04em; }
button.primary { box-shadow: 0 0 0 1px var(--accent); }
button.primary:hover { background: #fff; border-color: #fff; filter: none; }
button.chip { text-transform: uppercase; font-size: 11px !important; background: transparent; border-color: transparent; color: var(--muted); }
button.chip:hover, button.chip.on { color: var(--accent); border-color: var(--line); background: transparent; }
.bar { border-radius: 0; background: rgb(var(--night-rgb) / 0.82); }
.bar .brand { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; }
.mark { border-color: var(--accent); }
input:focus, textarea:focus, select:focus { outline: 1px solid var(--accent) !important; outline-offset: 0; }
::selection { background: var(--accent); color: var(--night); }

/* how to play: the guide, and first-steps quests ------------------------------------- */
.guide .hub-main { max-width: 900px; }
.guide-page h3 { font: 400 28px/1.1 var(--serif); margin: 6px 0 16px; }
.guide-page p, .guide-page li { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 46em; }
.guide-page b { color: var(--ink); font-weight: 600; }
.guide-page .steps { padding-left: 20px; }
.guide-page .steps li::marker { color: var(--accent); }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin-bottom: 18px; }
.keys > div { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.keys span { color: var(--ink); font-size: 14px; }
.keys kbd, .guide-page kbd { font: 600 12px var(--sans); color: var(--accent); border: 1px solid rgb(var(--accent-rgb) / .45); border-radius: 0; padding: 2px 7px; min-width: 22px; text-align: center; }
.guide-nav { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.guide .hub-cats button span { text-transform: none; letter-spacing: .02em; font-size: 14px; }

.quests { position: absolute; right: 12px; top: 72px; width: 280px; background: var(--panel); border: 1px solid var(--line); z-index: 4;
  backdrop-filter: blur(10px); transition: box-shadow .3s, border-color .3s; }
.quests.pop { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 30px rgb(var(--accent-rgb) / .25); }
.quests-head { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 14px; cursor: pointer; color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.quests-head span::before { content: "[ "; } .quests-head span::after { content: " ]"; }
.quests ol { list-style: none; margin: 0; padding: 6px 0; }
.quests li { padding: 6px 14px 6px 36px; font-size: 13px; color: var(--ink); position: relative; }
.quests li::before { content: ""; position: absolute; left: 14px; top: 10px; width: 10px; height: 10px; border: 1px solid var(--muted); }
.quests li.done { color: var(--muted); text-decoration: line-through; }
.quests li.done::before { background: var(--accent); border-color: var(--accent); }
.quests.min ol { display: none; }
#chat:not([hidden]) ~ .quests, .panel.right:not([hidden]) ~ .quests { display: none; }
@media (max-width: 760px) { .quests { display: none; } }
.bar .brand { flex-shrink: 0; max-width: 200px; }
.bar .todo { min-width: 200px; }
.bar .meter { flex-shrink: 0; }
@media (max-width: 1280px) { .bar .chip kbd { display: none; } .bar .chip { padding: 8px 9px !important; } }
.more { position: relative; }
.more-list { position: absolute; right: 0; top: calc(100% + 12px); display: flex; flex-direction: column; min-width: 190px;
  background: rgb(var(--night-rgb) / 0.94); border: 1px solid var(--line); padding: 6px 0; z-index: 10; }
.more-list .chip { text-align: left; border: 0 !important; padding: 10px 16px !important; display: flex; justify-content: space-between; }
.more-list .chip:hover { background: var(--accent-soft); }
.bar { z-index: 8; }

/* the boardroom as a game screen: character creator left, the team right ------------- */
.boardroom .board-bg { filter: brightness(.42) saturate(.95); }
.boardroom.has-room .board-bg { filter: brightness(.62); }
.board-ui { position: relative; min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 28px clamp(16px, 3vw, 40px); max-width: 1400px; margin: 0 auto; }
.board-top h2 { font: 400 clamp(30px, 4vw, 52px)/1.02 var(--serif); margin: 0 0 8px; letter-spacing: -.02em; }
.board-top .lede { margin: 0; max-width: 52em; font-size: 15px; }
.board-cols { display: grid; grid-template-columns: minmax(340px, 460px) 1fr; gap: 18px; min-height: 0; }
.creator, .board-team { background: rgb(var(--night-rgb) / .78); border: 1px solid var(--line); backdrop-filter: blur(12px); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.creator h4, .board-team h4 { margin: 0; color: var(--accent); font: 500 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.creator h4::before, .board-team h4::before { content: "[ "; } .creator h4::after, .board-team h4::after { content: " ]"; }
.creator h5 { margin: 0 0 6px; font: 500 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.who-tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.who-tabs button { flex: 0 0 auto; background: none; border: 1px solid var(--line); color: var(--muted); padding: 6px 10px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.who-tabs button.on { color: var(--night); background: var(--accent); border-color: var(--accent); }
.creator-stage { position: relative; height: clamp(300px, 46vh, 520px); border: 1px solid var(--line);
  background: radial-gradient(60% 55% at 50% 60%, rgb(var(--accent-rgb) / .14), transparent 70%), linear-gradient(#05080b, var(--night)); }
#creator-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#creator-canvas:active { cursor: grabbing; }
.creator-id { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 2px; }
.creator-id input { background: rgb(var(--night-rgb) / .55); border: 1px solid var(--line); padding: 8px 10px; font: 500 18px var(--serif); color: var(--ink); }
.creator-id input:disabled { border-color: transparent; background: none; padding-left: 0; }
.creator-id small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.creator-hint { position: absolute; top: 10px; right: 12px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.creator .looks { margin-top: 0; }
.creator .looks button.on { color: var(--night); background: var(--accent); border-color: var(--accent); }
.board-team { overflow-y: auto; }
#board-directors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
#board-directors li { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 10px 12px; border: 1px solid var(--line); cursor: pointer; background: rgba(255,255,255,.02); }
#board-directors li:hover, #board-directors li.on { border-color: var(--accent); background: var(--accent-soft); }
#board-directors li small { color: var(--muted); font-size: 11px; }
#board-directors li span { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.board-foot { display: flex; justify-content: flex-end; }
button.play { font: 500 15px var(--serif) !important; padding: 14px 26px !important; letter-spacing: .02em; }
@media (max-width: 900px) { .board-cols { grid-template-columns: 1fr; } .creator-stage { height: 340px; } }
.board-team input, .board-team select { padding: 8px 10px; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .4); color: var(--ink); font-size: 13px; }
.board-team #board-people { list-style: none; margin: 0; padding: 0; }
.who-tabs { scrollbar-width: thin; scrollbar-color: rgb(var(--accent-rgb) / .35) transparent; }

/* campus map, bottom right (minimap.js) ------------------------------------------- */
.minimap { position: absolute; right: 12px; bottom: 12px; width: 280px; z-index: 6; background: rgba(10,11,14,.78);
  border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; }
.minimap-head { display: flex; justify-content: space-between; align-items: center; padding: 5px 9px; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.minimap-x { background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 14px; padding: 0 2px; }
.minimap-body { display: flex; min-height: 0; flex: 1; }
.minimap canvas { display: block; width: 100%; height: 170px; cursor: zoom-in; }
.minimap.big { position: fixed; left: 4vw; right: 4vw; top: 12vh; bottom: auto; width: auto; z-index: 15; background: rgba(10,11,14,.9); }
.minimap.big canvas { height: min(60vh, calc((92vw - 240px) / 2)); flex: 1; min-width: 0; cursor: crosshair; }
.minimap-list { list-style: none; margin: 0; padding: 6px; width: 240px; overflow-y: auto; border-left: 1px solid var(--line); max-height: min(60vh, calc((92vw - 240px) / 2)); }
.minimap-list button { width: 100%; display: grid; grid-template-columns: 10px 1fr; gap: 0 9px; align-items: center; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line); padding: 8px 6px; color: var(--ink); cursor: pointer; }
.minimap-list button:hover { background: var(--accent-soft); }
.minimap-list i { width: 10px; height: 10px; grid-row: span 2; }
.minimap-list b { font-weight: 600; font-size: 13px; }
.minimap-list small { color: var(--muted); font-size: 11px; grid-column: 2; }
/* each director's row takes you to their office and in (minimap.js fillList) */
.minimap-list button:has(em) { grid-template-columns: 10px 1fr auto; }
.minimap-list em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.minimap-list-head { padding: 6px 6px 4px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.map-floor-meet { width: 100%; padding: 8px 10px; font-size: 12px; }
@media (max-width: 760px) {
  .minimap { width: 170px; }
  .minimap canvas { height: 110px; }
  .minimap.big { left: 6px; right: 6px; top: 70px; }
  .minimap.big .minimap-body { flex-direction: column; }
  .minimap.big canvas { height: 34vw; }
  .minimap-list { width: auto; border-left: 0; border-top: 1px solid var(--line); max-height: 40vh; }
  .ad-card.campus { bottom: 170px; }
}

/* a computer's work, on frosted glass over the office (office.js) -------------------- */
.glass { position: absolute; top: 50%; left: 50%; width: min(620px, calc(100vw - 32px)); max-height: min(72vh, 720px); z-index: 3;
  display: flex; flex-direction: column; color: #fff; overflow: hidden;
  transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: opacity .22s ease, transform .22s ease;
  background: linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.06) 55%, rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.32); border-radius: 18px;
  box-shadow: 0 30px 80px rgb(var(--night-rgb) / .45), inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(26px) saturate(1.5) brightness(.92); -webkit-backdrop-filter: blur(26px) saturate(1.5) brightness(.92); }
.glass.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.glass::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--accent, var(--pink)) 35%, transparent), transparent 60%); }
.glass-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid rgba(255,255,255,.18); }
.glass-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent, var(--pink)); box-shadow: 0 0 12px var(--accent, var(--pink)); flex: none; }
.glass-head div { flex: 1; min-width: 0; }
.glass-head small { color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.glass-head h3 { margin: 2px 0 0; font: 500 22px var(--serif); }
.glass-x { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.glass-x:hover { background: rgba(255,255,255,.22); }
.glass-body { position: relative; padding: 14px 18px 18px; overflow-y: auto; }
.glass-list, .glass-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.glass-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.glass-list b { font-weight: 600; font-size: 14px; }
.glass-list p { margin: 4px 0 0; color: rgba(255,255,255,.78); font-size: 13px; white-space: pre-wrap; }
.glass-chip { --c: var(--pink); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); white-space: nowrap; }
.glass-feed li { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.glass-feed small { color: rgba(255,255,255,.6); font-size: 11px; }
.glass-feed p { margin: 4px 0 0; font-size: 13px; white-space: pre-wrap; }
.glass-note { color: rgba(255,255,255,.75); font-size: 13px; margin: 10px 0 0; }
.glass-empty { color: rgba(255,255,255,.75); margin: 6px 0; }
.glass-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
.glass-kpis div { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.glass-kpis b { display: block; font: 600 28px var(--serif); }
.glass-kpis small { color: rgba(255,255,255,.7); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.glass-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.glass-grid figure { margin: 0; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.glass-grid img, .glass-grid video { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; display: block; }
.glass-grid audio { width: 100%; }
.glass-ph { display: grid; place-items: center; aspect-ratio: 16/10; border-radius: 8px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); font-size: 12px; text-decoration: none; }
.glass-grid figcaption { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.85); }
@media (max-width: 760px) { .glass-kpis { grid-template-columns: repeat(2, 1fr); } }

/* loading: what's arriving, and something worth knowing while it does --------------- */
.loading-card { display: grid; justify-items: center; gap: 14px; width: min(440px, calc(100vw - 32px)); text-align: center; }
.loading-card h3 { margin: 0; font: 500 20px var(--serif); color: var(--ink); min-height: 28px; }
.loading-card .track { width: 100%; }
.loading-stages { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; width: 100%; text-align: left; }
.loading-stages li { font-size: 13px; color: rgba(255,255,255,.4); padding-left: 22px; position: relative; transition: color .3s; }
.loading-stages li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; }
.loading-stages li.now { color: var(--ink); }
.loading-stages li.now::before { border-color: var(--accent); animation: stage-pulse 1.2s ease-in-out infinite; }
.loading-stages li.done { color: var(--ok); }
.loading-stages li.done::before { background: var(--ok); border-color: var(--ok); }
@keyframes stage-pulse { 50% { box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .25); } }
.loading-tip { margin: 10px 0 0; font-size: 13px; color: var(--muted); min-height: 40px; border-top: 1px solid var(--line); padding-top: 12px; width: 100%; }
.loading-tip::before { content: "Tip  "; color: var(--accent); font-weight: 700; letter-spacing: .08em; }

/* office: the things to do in the room ---------------------------------------------- */
.office-dos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; max-width: 760px; }
.office-dos > span { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.office-dos button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 8px 12px; font: 600 13px var(--sans);
  cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.office-dos button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.office-dos small { width: 100%; color: rgba(255,255,255,.6); font-size: 12px; }
@media (max-width: 760px) { .office-dos button { padding: 6px 9px; font-size: 12px; } }

/* a lighter HUD (owner, 2026-11-16: the panels covered too much of the street) -------- */
.quests.min { width: auto; }
.quests.min .quests-head { border-bottom: 0; gap: 12px; }
.minimap { width: 260px; background: rgba(8,10,14,.72); box-shadow: 0 10px 30px rgb(var(--night-rgb) / .45); }
.minimap canvas { height: 168px; }
/* the corner map, 2026-11-20 (owner: "improve the appearance of the map"): a header that says
   where you are, an accent hairline, and a map that fades at its edges (minimap.js draw) */
.minimap:not(.big) { border-color: rgba(255,255,255,.12); border-top: 1px solid var(--accent); }
.minimap-title { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink); }
.minimap-where { font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--muted); font-size: 11px; }
.minimap.big .minimap-where { color: var(--accent); }   /* "you are by Sales": the open map says where you are */

/* the map's two surfaces: the compact plan, and the full map with its tools (minimap.js) */
.minimap-tools { display: flex; align-items: center; gap: 2px; }
.map-btn { background: none; border: 0; color: var(--muted); font: 700 10px var(--sans); letter-spacing: .04em; text-transform: none;
  cursor: pointer; padding: 2px 4px; }
.map-btn:hover { color: var(--ink); }
.minimap.folded .minimap-body { display: none; }
.map-stage { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.minimap .map-canvas { height: 168px; }
.minimap.big .map-canvas { height: min(60vh, calc((92vw - 240px) / 2)); cursor: crosshair; }
.map-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-top: 1px solid var(--line); }
.map-search { flex: 1 1 180px; min-width: 0; padding: 5px 8px; background: rgb(var(--night-rgb) / .4); border: 1px solid var(--line);
  color: var(--ink); font: 500 12px var(--sans); }
.map-toolbar .chip { padding: 4px 9px !important; font-size: 10px !important; text-transform: none; letter-spacing: .02em; }
.map-floor { position: absolute; right: 0; top: 0; bottom: 0; width: min(280px, 100%); display: flex; flex-direction: column; gap: 6px;
  padding: 8px; background: rgba(10,11,14,.96); border-left: 1px solid var(--line); z-index: 2; overflow-y: auto; }
.map-floor-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.map-floor-x { background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 13px; }
.map-floor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.map-floor-list button { width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 5px 7px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-size: 11px; }
.map-floor-list button.on { border-color: var(--accent); }
.map-floor-list button.locked { color: var(--muted); opacity: .65; }
.map-floor-list small { color: var(--muted); }
.map-floor-canvas { display: block; flex: none; width: 100%; height: 150px; background: #121519; cursor: default; }
.map-fade { position: fixed; inset: 0; z-index: 30; background: var(--night); opacity: 0; pointer-events: none; transition: opacity .16s; }
.map-fade.on { opacity: 1; }
@media (max-width: 760px) {
  .minimap.big { left: 0; right: 0; top: 58px; }
  .minimap.big .map-stage, .minimap.big .map-canvas { flex: none; }
  .minimap.big .map-canvas { height: 32vh; }
  /* the directors stay on a phone: the list is how you get to someone's office with a thumb */
  .minimap.big .minimap-list { max-height: 34vh; }
  .map-floor { width: 100%; }
}
.card { min-width: 220px; max-width: 360px; padding: 9px 14px; background: rgb(var(--night-rgb) / .62); }
.card strong { font-size: 16px; }
.help { transition: opacity .8s; }
.help.faded { opacity: 0; }
.bar { background: rgb(var(--night-rgb) / 0.62); }
body.clean-view #app > :not(#world):not(.loading):not(.office):not(.boardroom) { opacity: 0 !important; pointer-events: none !important; }
body.clean-view .minimap, body.clean-view .door-prompt { opacity: 0 !important; pointer-events: none !important; }
#app > * { transition: opacity .35s; }
/* the campus log's head: its title and a Hide button */
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.log-head .x { font-size: 11px; }
.chip.on { border-color: var(--accent); color: var(--accent); }
/* the integrations hub: Composio's own categories under a small heading, and paging */
.ig-more { display: block; margin: 14px 10px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim, #8a93a0); }
.ig-more-btn { grid-column: 1 / -1; justify-self: center; margin: 12px 0; }
.ig-card .logo img { width: 100%; height: 100%; object-fit: contain; }

/* The boardroom, 2026-11-16: the 3D room fills the screen; the title and actions float over its
   top, the team's people sit in a slim panel on the right */
.boardroom { overflow: hidden; background: var(--night); }
#boardroom-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.boardroom .board-ui { position: absolute; inset: 0; display: block; max-width: none; padding: 0; pointer-events: none; }
.boardroom .board-top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  padding: 22px clamp(16px, 3vw, 36px) 40px; background: linear-gradient(rgba(5,6,8,.78), rgba(5,6,8,0)); pointer-events: none; }
.boardroom .board-top h2 { font-size: clamp(24px, 3vw, 38px); }
.boardroom .board-top .lede { font-size: 14px; }
.board-actions { display: flex; gap: 8px; pointer-events: auto; flex-wrap: wrap; justify-content: flex-end; }
.boardroom .board-team { position: absolute; right: clamp(12px, 2vw, 24px); top: 132px; bottom: 56px; width: min(360px, calc(100% - 24px)); pointer-events: auto; }
.board-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; font-size: 12px; color: var(--muted);
  background: rgb(var(--night-rgb) / .55); padding: 6px 12px; pointer-events: none; white-space: nowrap; }
@media (max-width: 900px) { .boardroom .board-team { top: auto; height: 42vh; bottom: 12px; } .board-hint { display: none; } }
/* The boardroom is the first thing anyone sees, so the campus behind it reports its progress
   here instead of covering the room with a loading card. */
.campus-pill { display: flex; align-items: center; gap: 10px; min-width: min(300px, 70vw); padding: 9px 12px;
  border: 1px solid var(--line); background: rgb(var(--night-rgb) / .55); font-size: 12px; color: var(--muted); pointer-events: none; }
.campus-pill[hidden] { display: none; }
/* The same report once you are out on the campus: the street still arriving, or not loaded. */
.street-status { position: absolute; top: 76px; left: 50%; transform: translateX(-50%); z-index: 5; max-width: calc(100% - 24px);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 0; background: rgb(var(--night-rgb) / .72); color: var(--muted);
  font: inherit; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.street-status[hidden] { display: none; }
.street-status.retry { pointer-events: auto; cursor: pointer; color: var(--text, #fff); border-color: var(--accent); }
.campus-pill .track { flex: 1 1 80px; height: 3px; background: rgba(255, 255, 255, .14); display: block; }
.campus-pill .track > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s ease; }
.campus-pill #campus-pill-pct { color: var(--accent); min-width: 3.4em; text-align: right; font-variant-numeric: tabular-nums; }
.board-actions button:disabled { opacity: .6; cursor: progress; }
#boardroom-canvas { transition: opacity .6s ease; }
.boardroom.booting #boardroom-canvas { opacity: 0; }
/* Stepping out: the room's copy gets out of the way while the camera walks up the table. */
.boardroom.leaving .board-ui { opacity: 0; transition: opacity .5s ease; }
.board-today { display: grid; gap: 9px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.board-today h4 { margin: 0; color: var(--accent); font: 500 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.board-today ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.board-today li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.35; }
.board-today li small { color: var(--muted); }
.board-today .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); margin-top: 5px; flex: 0 0 auto; }
.board-today .dot.on { background: var(--ok); }
.board-today .dot.wait { background: var(--accent); }

/* Characters: who on the left, the turntable in the middle, body and name on the right */
.characters { position: fixed; inset: 0; z-index: 21; background: rgb(var(--night-rgb) / .86); backdrop-filter: blur(10px); overflow: auto; }
.char-ui { max-width: 1320px; margin: 0 auto; padding: 26px clamp(16px, 3vw, 40px); display: grid; gap: 18px; }
.char-ui .board-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.char-cols { display: grid; grid-template-columns: 240px minmax(0, 1fr) 320px; gap: 16px; min-height: 0; }
.char-who { display: flex; flex-direction: column; gap: 4px; max-height: 68vh; overflow-y: auto; scrollbar-width: thin; }
.char-who button { text-align: left; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--ink); padding: 9px 12px; cursor: pointer; display: grid; gap: 1px; }
.char-who button small { color: var(--muted); font-size: 11px; }
.char-who button.on { border-color: var(--accent); background: var(--accent-soft); }
.char-who button.dirty b::after { content: " •"; color: var(--accent); }
.characters .creator-stage { height: clamp(360px, 66vh, 680px); }
.char-edit { background: rgb(var(--night-rgb) / .6); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.char-edit h5 { margin: 6px 0 0; font: 500 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.char-field { display: grid; gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.char-field input { background: rgb(var(--night-rgb) / .5); border: 1px solid var(--line); padding: 9px 10px; font: 500 18px var(--serif); color: var(--ink); text-transform: none; letter-spacing: 0; }
.char-field input:disabled { opacity: .6; }
.char-edit #creator-role { color: var(--muted); font-size: 12px; }
.char-edit .looks { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.char-edit .looks button { display: grid; gap: 1px; text-align: left; padding: 9px 10px; }
.char-edit .looks button small { color: var(--muted); font-size: 11px; }
.char-edit .looks button.on { color: var(--night); background: var(--accent); border-color: var(--accent); }
.char-edit .looks button.on small { color: rgb(var(--night-rgb) / .65); }
/* Save stays in reach at the foot of the scrolling panel, whatever category is open. */
.char-save { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: auto;
  position: sticky; bottom: -16px; z-index: 2; padding: 12px 0 6px;
  background: var(--bg); border-top: 1px solid var(--line); }
.char-save button { padding: 9px 0; }
/* the customise panel: presets, one category at a time, sliders, styles and swatches */
.char-edit { max-height: clamp(360px, 66vh, 680px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(var(--accent-rgb) / .35) transparent; }
.creator-views { position: absolute; top: 10px; left: 12px; display: flex; gap: 4px; }
.creator-views button { background: rgb(var(--night-rgb) / .55); border: 1px solid var(--line); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 5px 9px; cursor: pointer; }
.creator-views button.on { color: var(--night); background: var(--accent); border-color: var(--accent); }
.char-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.char-presets button { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); padding: 7px 4px; font-size: 12px; cursor: pointer; }
.char-presets button.on { border-color: var(--accent); background: var(--accent-soft); }
.char-presets button.dice { color: var(--accent); }
.char-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.char-tabs button { border: 1px solid var(--line); background: none; color: var(--muted); padding: 6px 9px; font-size: 12px; cursor: pointer; }
.char-tabs button.on { color: var(--night); background: var(--accent); border-color: var(--accent); }
.char-page { display: grid; gap: 9px; }
.char-group { display: grid; gap: 5px; }
.char-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.char-slider { display: grid; gap: 3px; }
.char-slider span { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink); }
.char-slider b { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.char-slider input { width: 100%; accent-color: var(--accent); }
.char-styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.char-styles button { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); padding: 8px 6px; font-size: 12px; cursor: pointer; }
.char-styles button.on { color: var(--night); background: var(--accent); border-color: var(--accent); }
.char-swatches { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.char-swatches .sw { width: 26px; height: 26px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); cursor: pointer; padding: 0; }
.char-swatches .sw.on { border-color: var(--accent); }
.char-swatches .sw.asmade { background: none; color: var(--muted); font-size: 14px; line-height: 1; }
.char-swatches .sw:disabled { opacity: .4; cursor: default; }
.char-swatches .pick { position: relative; width: 26px; height: 26px; cursor: pointer; }
.char-swatches .pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.char-swatches .pick span { position: absolute; inset: 0; display: grid; place-items: center; border: 1px dashed var(--line); color: var(--muted); font-size: 15px; }
.char-page :disabled { opacity: .55; cursor: default; }
@media (max-width: 1000px) { .char-cols { grid-template-columns: 1fr; } .char-who { flex-direction: row; overflow-x: auto; max-height: none; } .char-who button { flex: 0 0 auto; } }

/* Phones and tablets (2026-11-19) ------------------------------------------------------------
   The walking stick: only where the main pointer is a finger. Bottom left, above the safe area. */
.stick { display: none; position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom));
  width: 128px; height: 128px; border-radius: 50%; z-index: 6; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle, rgb(var(--night-rgb) / .18), rgb(var(--night-rgb) / .42)); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stick i { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgb(var(--night-rgb) / .35); transition: transform .08s; }
.touch-help { display: none; }
@media (pointer: coarse) {
  .stick { display: block; }
  .key-help { display: none; }
  .touch-help { display: block; left: 18px; right: auto; max-width: min(300px, calc(100vw - 200px)); bottom: 166px; text-align: left; font-size: 12px; }
  #world { touch-action: none; }   /* a drag on the street turns the view instead of scrolling the page */
}
body.clean-view .stick { display: none; }

/* The top bar: on tablets and phones its buttons move into the Menu (app.js, fitBar), so the bar
   is the brand, the to-do box and the Menu */
@media (max-width: 1100px) {
  .bar { gap: 8px; }
  .bar .meter { display: none; }
  .more-list { max-height: calc(100vh - 90px); overflow-y: auto; }
}
@media (max-width: 560px) {
  .bar { top: max(8px, env(safe-area-inset-top)); left: 8px; right: 8px; padding: 6px 8px; }
  .bar .brand #business { display: none; }
  .bar .todo { min-width: 0; }
  .bar .todo input { padding: 8px 10px; font-size: 16px; }   /* 16 px: iOS does not zoom the page on focus */
  .minimap { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: 150px; }
  .minimap canvas, .minimap:not(.big) .map-canvas { height: 96px; }   /* .map-canvas: the 168 px rule outranked this */
  .minimap-where { display: none; }
}

/* The boardroom on a phone: title and buttons stacked across the top, the team as a sheet at the
   bottom; the 3D room in between */
@media (max-width: 760px) {
  .boardroom .board-top { flex-direction: column; gap: 10px; padding: 14px 14px 30px; }
  .boardroom .board-top h2 { font-size: 24px; line-height: 1.1; }
  .boardroom .board-top .lede { display: none; }
  .boardroom .board-top .eyebrow { margin: 0 0 4px; }
  .board-actions { width: 100%; justify-content: stretch; }
  .board-actions > * { flex: 1 1 auto; font-size: 13px; padding: 10px 12px; }
  #campus-pill { max-width: none; }
  .boardroom .board-team { left: 10px; right: 10px; width: auto; height: 34vh; bottom: max(10px, env(safe-area-inset-bottom)); }
  .characters .char-ui { padding: 14px; }
  .characters .creator-stage { height: 46vh; }
}

/* Integrations: say what you use, find them all at once (2026-11-20) */
.ig-mine { border: 1px solid var(--line); border-left: 2px solid var(--accent); padding: 12px 14px; margin-bottom: 14px; background: rgb(var(--accent-rgb) / .04); }
.ig-mine label { display: block; font-weight: 700; margin-bottom: 8px; }
.ig-mine-row { display: flex; gap: 8px; }
.ig-mine-row input { flex: 1; min-width: 0; padding: 9px 11px; background: rgb(var(--night-rgb) / .4); border: 1px solid var(--line); color: var(--ink); }
.ig-mine .fine { margin: 8px 0 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.ig-actions { flex-wrap: wrap; }
/* a full-screen hub (Integrations, Help) has the screen: the corner map waits behind it */
body:has(.drawer.hub:not([hidden])) .minimap:not(.big) { display: none; }

/* Sign in with Google or GitHub (app/oauth.py) */
#auth .oauth { display: grid; gap: 8px; margin: 4px 0 2px; }
#auth .oauth[hidden], #auth .oauth-btn[hidden], #auth .auth-password[hidden] { display: none; }
#auth .oauth-btn { width: 100%; justify-content: center; }
#auth .oauth-or { text-align: center; opacity: .7; margin: 4px 0 0; }
/* talk or leave, side by side in the prompt inside a building */
.door-prompt button[data-act] { all: unset; cursor: pointer; padding: 2px 4px; }
.door-prompt button[data-act] + button[data-act] { margin-left: 8px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .35); }

/* A phone's screen (2026-11-27, owner: "its view is extremely cluttered"): the map folded to a
   small title bar, First steps and the street's status clear of each other, the boardroom's team
   sheet shut to its handle until asked for. */
.board-team-toggle { display: none; }
@media (max-width: 760px) {
  .board-team-toggle { display: block; width: 100%; background: none; border: 0; color: var(--accent); font: 500 11px var(--sans);
    letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: 2px 0; cursor: pointer; }
  .boardroom .board-team.closed { height: auto; padding: 10px 14px; gap: 0; }
  .boardroom .board-team.closed > :not(.board-team-toggle) { display: none; }
}
@media (max-width: 560px) {
  .minimap.folded { width: auto; }
  .minimap.folded .map-rotate { display: none; }
  .minimap.folded .minimap-head { padding: 8px 10px; gap: 10px; }
  .quests { left: 8px; right: auto; top: 64px; width: min(280px, calc(100vw - 16px)); }
  .street-status { top: 108px; }
  .touch-help { bottom: 160px; max-width: calc(100vw - 36px); }
  .door-prompt { bottom: 170px; max-width: calc(100vw - 24px); }
}

/* The chat's own Send button (2026-11-27, owner: "when I try to select a prewritten question I
   can't send it": picking one filled the box, and the only way to send was Enter, on a box the
   campus map was drawn over). The chat also sits above the map now. */
.chat-send { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
#chat-form .chat-send input { margin-top: 0; flex: 1 1 auto; min-width: 0; }
.chat-send button { flex: 0 0 auto; padding: 0 18px; font-size: 14px; border-radius: 0; }
.panel.right:not(.in-office) { z-index: 8; }

/* The engine (engine.js): what an agent did under its reply, the files it wrote, and the Engine
   panel: what the team can do, the proof, files, work on a clock. */
.did { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.did summary { cursor: pointer; color: var(--accent); }
.did ol { list-style: none; margin: 4px 0 0; padding: 0 0 0 10px; border-left: 1px solid var(--line); max-height: 180px; overflow-y: auto; }
.did li { margin: 2px 0 !important; padding: 0 !important; border: 0 !important; font-size: 12px; overflow-wrap: anywhere; }
.did li.bad { color: var(--bad); }
.did i { color: var(--ink); font-style: normal; opacity: .8; }
.did .files, .engine-list .files { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
a.file { display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 10px; border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; font-size: 13px; background: rgba(255,255,255,.04); max-width: 100%; overflow-wrap: anywhere; }
a.file::before { content: "↓"; color: var(--accent); }
a.file:hover { border-color: var(--accent); }
a.file small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.log-did { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
#engine { max-height: 78vh; overflow-y: auto; }
#engine ol { overflow: visible; flex: 0 0 auto; }
#engine h4:not(:first-child) { margin-top: 18px; }
.engine-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.engine-list li b { font-weight: 500; flex: 1 1 60%; }
.engine-list li p { margin: 0; flex: 1 1 100%; }
.engine-list li small { color: var(--muted); font-size: 12px; flex: 1 1 100%; line-height: 1.4; overflow-wrap: anywhere; }
.engine-list li.off b, .engine-list li.paused b, .engine-list li.paused p { color: var(--muted); }
.engine-list li.plain { border-bottom: 0; }
.engine-list .row-btns { margin-top: 2px; }
.tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.ok { color: var(--ok); border-color: var(--ok); }
.tag.bad { color: var(--bad); border-color: var(--bad); }
.tag.warn { color: #ffd27a; border-color: #ffd27a; }
#engine-note.bad { color: var(--bad); }
#engine-schedule-form { margin-top: 10px; display: grid; gap: 8px; }
#engine-schedule-form label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#engine-schedule-form > label { display: grid; gap: 4px; }
#engine-schedule-form input, #engine-schedule-form select { padding: 7px 10px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .4); color: var(--ink); font-size: 14px; max-width: 100%; }
#engine-schedule-form input[type=number] { width: 70px; }
#engine-schedule-form [hidden] { display: none; }
.asks > span { cursor: pointer; }
.asks > span::after { content: " ▾"; }
.asks.folded > span { margin-bottom: 0; }
.asks.folded > span::after { content: " ▸"; }
.asks.folded .asks-row { display: none; }
#engine > * { flex-shrink: 0; }   /* a column that scrolls: nothing in it is squeezed to make room */
/* A panel open over the campus is for reading: the walking stick and the loading note stay out of it. */
body:has(.drawer:not([hidden])) .stick, body:has(.drawer:not([hidden])) .street-status:not(.retry) { display: none; }
a.file.stale small { color: #ffd27a; }

/* Setting up a business (setup.js): a sheet over the boardroom, at the bottom of a phone's screen
   and in the middle of a desk's. It scrolls inside itself; its buttons stay in reach. */
.setup { position: fixed; inset: 0; z-index: 26; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgb(var(--night-rgb) / .55); }
.setup-card { width: min(560px, 100%); max-height: min(88vh, 720px); display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); padding: 20px; backdrop-filter: blur(12px); }
.setup-card .eyebrow { margin: 0; }
#setup-body { overflow-y: auto; min-height: 0; flex: 1 1 auto; display: grid; gap: 10px; align-content: start; overscroll-behavior: contain; }
#setup-body h2 { margin: 0; font: 500 22px/1.2 var(--serif); }
#setup-body h3 { margin: 8px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.setup-lede { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
#setup-body label { display: grid; gap: 4px; font-size: 13px; color: var(--ink); }
#setup-body textarea { width: 100%; padding: 9px 12px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .4); color: var(--ink);
  font: 400 16px/1.4 var(--sans); resize: vertical; }   /* 16px: a phone does not zoom the page to type in it */
.setup-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.setup-tools .chip { padding: 10px 14px; }
.setup-tools .chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.setup-tour, .setup-offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.setup-tour li, .setup-offers li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); }
.setup-tour b, .setup-offers b { font-weight: 500; }
.setup-tour span, .setup-offers span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.setup-offers button { justify-self: start; margin-top: 6px; padding: 6px 12px !important; font-size: 12px; }
.setup-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.setup-actions .primary { margin-left: auto; }
#setup-note { min-height: 0; margin: 0; }
#setup-note.bad { color: var(--bad); }
@media (max-width: 640px) {
  .setup { align-items: flex-end; padding: 0; }
  .setup-card { width: 100%; max-height: 92vh; max-height: 92dvh; border-width: 1px 0 0; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
  #setup-body h2 { font-size: 20px; }
}
.store-item.wanted { outline: 1px solid var(--accent); outline-offset: 4px; }
.tag.pass { color: var(--accent); border-color: var(--accent); }
.engine-offer { margin: 0 0 6px; }
.setup-tools .chip { border: 1px solid var(--line); }
.setup-actions button { white-space: nowrap; }
.setup-actions .ghost { padding: 10px 14px; }

/* a purchase paid on the provider's own page, in another tab (app.js payInTab) */
.pay-link { color: var(--accent, #9bd3ff); text-decoration: underline; white-space: nowrap; }

/* a business's own logo (2026-11-27): beside its name, and in the panel that sets it */
.business-logo { width: 26px; height: 26px; object-fit: contain; border-radius: 4px; }
.logo-now { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.logo-now img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); background: rgba(255,255,255,.06); }
.logo-pick { cursor: pointer; }
#feedback select, #feedback textarea {
  padding: 7px 10px; border-radius: 0; border: 1px solid var(--line); background: rgb(var(--night-rgb) / .4); color: var(--ink); font: inherit; font-size: 14px; max-width: 100%; }
#feedback select { width: auto; }
#feedback textarea { width: 100%; display: block; margin-top: 6px; }
#brand, #feedback { overflow-y: auto; }
#brand label, #feedback label { font-size: 13px; }

/* Earn with Orbixa (partners.py, D101): the link, a row of counts, and the affiliate form */
#earn { overflow-y: auto; }
#earn label { font-size: 13px; display: block; margin-top: 8px; }
#earn label.check { display: flex; gap: 8px; align-items: flex-start; }
.earn-link { display: flex; gap: 8px; margin: 6px 0; }
#earn-url, #earn-email { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 0; border: 1px solid var(--line);
  background: rgb(var(--night-rgb) / .4); color: var(--ink); font: inherit; font-size: 14px; }
#earn-email { width: 100%; display: block; margin-top: 4px; }
#earn-jv { margin-top: 12px; }
#earn-jv summary { cursor: pointer; font-weight: 600; }
#earn-jv-form input:not([type=checkbox]) { width: 100%; display: block; margin-top: 4px; padding: 7px 10px; border-radius: 0;
  border: 1px solid var(--line); background: rgb(var(--night-rgb) / .4); color: var(--ink); font: inherit; font-size: 14px; box-sizing: border-box; }
.earn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 10px 0; }
.earn-tile { border: 1px solid var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.earn-tile b { font-size: 18px; }
.earn-tile span { font-size: 12px; opacity: .75; }

/* A talk in an office on a phone (2026-11-27): the chat sat over the two people talking. It goes
   to the bottom half, and the room's own labels and buttons step aside while it is open, so the
   picture above it is you and the director. */
@media (max-width: 760px) {
  #chat.in-office { top: auto; bottom: 8px; max-height: 54vh; }
  /* ...and it is kept short enough that the box you type in is always on the screen */
  #chat.in-office .agent-strip { display: none; }
  #chat.in-office .asks-row { max-height: 92px; overflow-y: auto; }
  body:has(#chat.in-office:not([hidden])) .office-bar { visibility: hidden; }
}

/* ============================================================================================
   Dusk on the coast: the look of 2026-11-28 (the tokens are at the top of this file).
   One loud thing a page: the title on the hero, the cast on the home page. The rest keeps quiet.
   ============================================================================================ */
html, body { background: var(--night); }
::selection { background: var(--pink); color: var(--night); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.brand { font: 600 18px var(--display); letter-spacing: .01em; }
.mark { border-color: var(--orange); }
.mark::after { background: var(--pink); }

/* what acts is sunset-coloured and leans forward; what waits is glass */
button.primary { background: var(--sunset); color: var(--night); border: 0; font-weight: 700; clip-path: var(--slant); padding-inline: 26px; }
button.primary:hover { filter: brightness(1.1) saturate(1.1); }
button.primary:disabled { filter: grayscale(.6) brightness(.7); cursor: default; }
button.ghost, button.chip { background: rgba(255, 214, 190, .07); border-color: var(--line); }
button.ghost:hover, button.chip:hover { background: rgb(var(--accent-rgb) / .16); border-color: rgb(var(--accent-rgb) / .6); }
.chip.on, button.chip[aria-pressed="true"] { border-color: var(--pink); color: var(--sand); background: var(--accent-soft); }
.badge { background: var(--sunset); color: var(--night); font-weight: 700; }
#credit-bar { background: var(--ok); }
kbd { border-color: rgba(255, 214, 190, .3); }

/* panels: dusk glass with one line of sunset along the top */
.bar, .panel, .drawer, .card, dialog, .char-edit, .glass {
  background: linear-gradient(180deg, rgb(var(--dusk-rgb) / .93), rgb(var(--night-rgb) / .95)); border-color: var(--line);
}
.panel, .drawer, dialog, .char-edit { box-shadow: inset 0 3px 0 -1px transparent, 0 18px 50px rgb(var(--night-rgb) / .55); border-top: 3px solid; border-image: var(--sunset) 1; }
.bar { background: linear-gradient(90deg, rgb(var(--dusk-rgb) / .86), rgb(var(--night-rgb) / .82)); border-bottom: 2px solid; border-image: var(--sunset) 1; }
.drawer.hub { background: linear-gradient(160deg, rgb(var(--dusk-rgb) / .97), rgb(var(--night-rgb) / .98) 60%); }
.panel h4, .drawer h4 { color: var(--orange); }
.hub-head h2, .board-top h2, .board-head h2, .guide-page h3, .chat-head h3, .glass-head h3 {
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0; line-height: .98;
}
.hub-head h2, .board-top h2 { color: var(--sand); }
.hub-cats button.on { color: var(--sand); border-left-color: var(--pink); }
.eyebrow { color: var(--orange); }
.todo input, dialog input, .char-field input { background: rgb(var(--night-rgb) / .6); border-color: var(--line); }
.todo input:focus, dialog input:focus { outline-color: var(--pink); }
.status.submitted { background: var(--sunset); color: var(--night); }
.status.working { color: var(--ok); background: rgb(var(--accent-rgb) / .12); }
a { color: var(--sand); }

/* the home page ----------------------------------------------------------------------------- */
#landing .title { font: italic 900 clamp(46px, 6.6vw, 104px)/.88 var(--display); letter-spacing: -.01em; }
#landing .eyebrow { display: inline-block; font: 700 13px/1 var(--sans); letter-spacing: .04em; text-transform: none; color: var(--night);
                    background: var(--teal); padding: 7px 14px 7px 12px; clip-path: var(--slant); margin: 0 0 18px; }
#landing .lede { color: rgba(255, 240, 228, .82); }
#landing button.primary, #landing button.ghost { font: italic 800 16px/1 var(--display); letter-spacing: .02em; padding: 17px 30px; clip-path: var(--slant); }
#landing button.ghost { background: var(--sand); border: 0; color: var(--night); }
#landing button.ghost:hover { background: #fff; }

.nav { background: linear-gradient(180deg, rgb(var(--night-rgb) / .75), transparent); }
.nav.solid { background: rgb(var(--night-rgb) / .92); border-bottom: 2px solid; border-image: var(--sunset) 1; }
.nav .brand { font: italic 900 26px/1 var(--display); letter-spacing: 0; text-transform: uppercase; }
#landing .nav button { font-size: 14px; padding: 11px 20px; }

/* hero: the live street at magic hour; the title sits low and left like a poster's */
.hero { place-items: end start; }
.hero-art { background-color: var(--night); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: soft-light;
                background: var(--grade); opacity: .95; }
.hero::after { background: linear-gradient(180deg, rgb(var(--dusk-rgb) / .55) 0%, rgb(var(--night-rgb) / .08) 30%, rgb(var(--night-rgb) / .25) 55%, rgb(var(--night-rgb) / .94) 90%, var(--night) 100%); }
.hero-copy { text-align: left; max-width: 1180px; padding-bottom: clamp(48px, 9vh, 96px); }
#landing .hero .title { font-size: clamp(54px, 6.9vw, 118px); color: var(--sand); max-width: 11.5em;
                        text-shadow: .035em .035em 0 var(--night), .07em .07em 0 var(--pink); }
#landing .hero .lede { margin: 26px 0 0; max-width: 30em; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink); text-shadow: 0 1px 12px rgb(var(--night-rgb) / .8); }
.hero .cta { justify-content: flex-start; }
.cue { margin: 34px 0 0 6px; border-color: var(--sand); }

/* statement: a band of sunset, cut on the slant, the one place the page turns bright */
.statement { max-width: none; margin: clamp(40px, 7vh, 80px) 0; padding: clamp(72px, 12vh, 132px) var(--gutter); text-align: left;
             background: var(--sunset); color: var(--night); clip-path: polygon(0 9%, 100% 0, 100% 91%, 0 100%); }
#landing .statement .eyebrow { background: var(--night); color: var(--sand); }
#landing .statement .title { max-width: 12em; }
#landing .statement .lede { margin: 22px 0 0; color: rgb(var(--night-rgb) / .86); font-weight: 600; max-width: 36em; }

/* the film (owner, 2026-11-30: "make a video for the Orbixa home page"): 27 seconds made from the
   product's own screens, under the statement. Not loaded until it is played or scrolled to. */
.film { padding: clamp(24px, 5vh, 56px) var(--gutter) clamp(56px, 9vh, 104px); max-width: 1180px; margin: 0 auto; }
#landing .film .title { font-size: clamp(34px, 4.2vw, 64px); color: var(--sand); margin: 0 0 22px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--night); border-top: 4px solid var(--pink);
              box-shadow: 0 24px 70px rgb(0 0 0 / .55); }

/* chapters: each still under the same evening light, its lower edge cut on the slant */
.chapter { border: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); }
.chapter:nth-child(even) { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 28px)); }
.chapter::before { content: ""; position: absolute; inset: 0; z-index: -1; mix-blend-mode: soft-light; background: var(--grade); opacity: .85; }
.chapter::after { background: linear-gradient(180deg, rgb(var(--night-rgb) / 0) 30%, rgb(var(--night-rgb) / .9) 100%); }
.chapter .n { font: 700 14px/1 var(--sans); letter-spacing: .02em; text-transform: none; color: var(--orange); }
#landing .chapter .title { color: var(--sand); text-shadow: .04em .04em 0 var(--night); }

/* the cast: panels like a poster's, each of the team on their own piece of sky, dark gutters between */
.cards { gap: clamp(8px, 1vw, 14px); grid-auto-rows: clamp(230px, 23vw, 330px); }
.cards .tile { border: 0; background: var(--dusk); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%); padding-bottom: clamp(24px, 2.6vw, 36px); }
.cards .tile:nth-child(even) { clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%); }
.cards .tile:nth-child(1) { background: var(--tile-1); }
.cards .tile:nth-child(2) { background: var(--tile-2); }
.cards .tile:nth-child(3) { background: var(--tile-3); }
.cards .tile:nth-child(4) { background: var(--tile-4); }
.cards .tile:nth-child(5) { background: var(--tile-5); }
.cards .tile img { filter: none; }
.cards .tile img.cast { object-fit: contain; object-position: 100% 100%; inset: auto 0 0 auto; width: auto; height: 104%; max-width: 78%; z-index: -2; }
.cards .big img.cast { height: 108%; max-width: 70%; }
.cards .tile:hover img.cast { transform: translateY(-1.5%) scale(1.02); }
.cards .tile::after { background: linear-gradient(90deg, rgb(var(--night-rgb) / .72) 0%, rgb(var(--night-rgb) / .25) 48%, rgb(var(--night-rgb) / 0) 70%), linear-gradient(180deg, rgb(var(--night-rgb) / 0) 55%, rgb(var(--night-rgb) / .7) 100%); }
.cards .wide::before { content: ""; position: absolute; inset: 0; z-index: -1; mix-blend-mode: soft-light; background: var(--grade); }
.cards .wide::after { background: linear-gradient(180deg, rgb(var(--dusk-rgb) / .2) 20%, rgb(var(--night-rgb) / .92) 100%); }
.cards .role { display: inline-block; align-self: flex-start; font: 700 12px/1 var(--sans); letter-spacing: .02em; text-transform: none; color: var(--night); background: var(--sand); padding: 5px 10px; clip-path: var(--slant); }
.cards h3 { font: italic 900 clamp(26px, 2.7vw, 42px)/.9 var(--display); color: var(--sand); text-shadow: .05em .05em 0 var(--night); }
.cards .wide h3 { font-size: clamp(30px, 3.2vw, 50px); }
.cards .big h3 { font-size: clamp(42px, 5vw, 80px); max-width: 5.5em; }
.cards .tile p:last-child { color: var(--ink); max-width: 17em; font-weight: 500; text-shadow: 0 1px 8px rgb(var(--night-rgb) / .8); }
.cards .wide p:last-child { max-width: 30em; }

/* plans */
.plans article { background: linear-gradient(180deg, rgb(var(--dusk-rgb) / .8), rgb(var(--night-rgb) / .9)); border: 1px solid var(--line); border-top: 4px solid var(--dusk); }
.plans article.pro { border-top: 4px solid; border-image: var(--sunset) 1; }
.plans h3 { font: italic 800 22px/1 var(--display); text-transform: uppercase; color: var(--sand); }
.plans .price { font-family: var(--display); font-style: italic; font-weight: 900; color: var(--ink); }
.plans article.pro .price { color: var(--pink); }
.foot { border-top-color: var(--line); }

/* the way in */
dialog h2 { font: italic 900 38px/1 var(--display); color: var(--sand); }
dialog::backdrop { background: rgb(var(--night-rgb) / .7); }
body.login-only #landing { background: linear-gradient(180deg, rgb(var(--dusk-rgb) / .6), rgb(var(--night-rgb) / .3) 45%, rgb(var(--night-rgb) / .94)), var(--night) url(/static/site/street-1.webp) 50% 60% / cover; }

/* in the app: titles lean, the rest stays as readable as it was */
.board-head h2, .board-top h2 { font-size: clamp(30px, 4.2vw, 56px); }
.looks button.on, .char-edit .looks button.on, .creator .looks button.on, .char-tabs button.on, .char-styles button.on, .creator-views button.on { background: var(--sunset); border-color: transparent; color: var(--night); }
.char-who button.on { border-color: var(--pink); }
.char-swatches .sw.on { border-color: var(--sand); box-shadow: 0 0 0 2px var(--pink); }
.char-slider input, input[type="range"] { accent-color: var(--pink); }
button.play { background: var(--sunset) !important; color: var(--night) !important; border: 0 !important; font: italic 800 17px var(--display) !important; clip-path: var(--slant); }

@media (max-width: 900px) {
  .cards .tile img.cast { max-width: 62%; }
  .statement { clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); }
}
@media (max-width: 560px) {
  #landing .hero .title { font-size: clamp(46px, 14.5vw, 72px); }
  .cards { grid-auto-rows: minmax(250px, auto); }
  .cards .tile img.cast { height: 100%; max-width: 58%; }
  .chapter, .chapter:nth-child(even) { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 0 100%); }
}
@media (prefers-reduced-motion: reduce) { .cards .tile:hover img.cast { transform: none; } }
input[type="radio"], input[type="checkbox"] { accent-color: var(--pink); }
.char-edit .looks { grid-template-columns: repeat(3, 1fr); gap: 4px; }
.char-edit .looks button { padding: 7px 8px; font-size: 12.5px; }
.char-edit .looks button small:empty { display: none; }
.char-page small { color: var(--muted); font-size: 12px; }
/* what happened to the street last time is said on a phone too, where the room's other words are put away */
.boardroom .board-top .lede.said { display: block; font-size: 13px; line-height: 1.4; margin-top: 8px; padding: 9px 11px; background: rgb(var(--night-rgb) / .82); border-left: 3px solid var(--orange); color: var(--ink); }
@media (max-width: 560px) { #landing .hero .title br { display: none; } }

/* the ways round the site that a crawler can follow, and the questions (pages.py writes the answers) */
.nav-ways { align-items: center; }
.nav-link { color: var(--ink); font: italic 800 14px/1 var(--display); text-transform: uppercase; text-decoration: none; padding: 11px 10px; }
.nav-link:hover { color: var(--pink); }
.cards h3 a { color: inherit; text-decoration: none; }
.cards h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole panel is the link */
.cards .tile:has(h3 a):hover h3 { color: var(--pink); }
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-list details { background: rgb(var(--dusk-rgb) / .7); border: 1px solid var(--line); border-left: 3px solid var(--pink); }
.faq-list summary { cursor: pointer; padding: 16px 20px; font: 600 17px/1.3 var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--pink); font: 700 20px/1 var(--sans); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin: 0; padding: 0 20px 18px; color: var(--muted); max-width: 46em; }
.team-links { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 28px; color: var(--muted); font-size: 14px; }
.team-links a { color: var(--ink); text-decoration: none; border: 1px solid var(--line); padding: 7px 12px; }
.team-links a:hover { border-color: var(--pink); color: var(--pink); }
.fine-print a { color: var(--sand); }
@media (max-width: 560px) { .nav-link { display: none; } }

/* the operating plan (playbook.js): jobs by department, each with where it stands */
.playbook-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.playbook-list .playbook-dept { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; margin-top: 16px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.playbook-list .playbook-dept b { font: italic 800 18px/1 var(--display); text-transform: uppercase; color: var(--sand); }
.playbook-list .playbook-dept small { color: var(--muted); font-size: 12px; }
.playbook-job { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.playbook-job .job-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.playbook-job .job-head b { font-weight: 600; font-size: 15px; }
.playbook-job p { margin: 4px 0 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.playbook-job details { font-size: 13px; }
.playbook-job summary { cursor: pointer; color: var(--orange); }
.playbook-job details ol, .playbook-job details ul { margin: 6px 0; padding-left: 20px; color: var(--ink); line-height: 1.45; }
.playbook-job details ol { list-style: decimal; }
.playbook-job details ul { list-style: disc; }
.playbook-job .tpl { color: var(--ink); margin-top: 8px; }
.playbook-job.locked .job-head b, .playbook-job.locked p { color: var(--muted); }
.playbook-job.done .job-head b { color: var(--ok); }
@media (max-width: 760px) { .playbook-list { grid-template-columns: 1fr; } }

/* A phone works from the table (D79): while the boardroom is up on a phone the bar and whatever it
   opens sit over the room, so the Board, the Plan, the Store and the menu are in reach without
   the street. The room's own heading moves down to make way. */
body.at-table .bar { position: fixed; z-index: 22; }
body.at-table .drawer, body.at-table .panel.right, body.at-table .quests { position: fixed; z-index: 23; }
body.at-table .music { position: fixed; z-index: 23; bottom: calc(64px + env(safe-area-inset-bottom)); }   /* over the room, above "Team and today" (2026-12-01: it opened behind the table) */
body.at-table .boardroom .board-top { padding-top: 78px; }
body.at-table #open-boardroom { display: none; }
