/* Grey House · Ego. Night, silver and gold. */
:root {
  --bg: #07090F; --panel: #0E121C; --panel2: #131826; --line: #222A3B; --line2: #313B52; --text: #ECEFF5; --soft: #C6CCD8; --muted: #8E97AA;
  --gold: #D9B26A; --gold2: #F1D9A6; --silver: #C9D2E3; --ok: #6FD3A2; --okbg: #11261D; --warn: #E8B45A; --bad: #F08A7E; --badbg: #2E1618;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; min-height: 100vh; }
h1, h2, h3, .serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; margin: 0; letter-spacing: .01em; }
h1 { font-size: 34px; } h2 { font-size: 24px; } h3 { font-size: 19px; }
a { color: var(--gold2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; cursor: pointer; }
button:hover { border-color: var(--gold); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1A1407; border: 0; font-weight: 600; }
button.ok { background: var(--ok); color: #06140D; border: 0; font-weight: 600; }
button.quiet { border-color: transparent; color: var(--muted); }
button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold2); }
input, select, textarea { background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; letter-spacing: .02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { text-align: center; padding-top: 40vh; font-family: "Cormorant Garamond", serif; letter-spacing: .4em; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* sign in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 50% at 50% 30%, #141a2a 0%, var(--bg) 70%); }
.login form, .login .box { width: min(400px, 100%); display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.mark { text-align: center; } .mark b { display: block; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 15px; letter-spacing: .5em; color: var(--silver); }
.mark span { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--gold); font-size: 17px; }
.err { color: var(--bad); min-height: 20px; font-size: 14px; }
#qr { background: #fff; padding: 12px; border-radius: 12px; width: max-content; margin: 0 auto; }

/* shell */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 22px; background: rgba(7,9,15,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .mark { text-align: left; margin-right: auto; } .top .mark b { font-size: 13px; }
nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
nav.tabs a { text-decoration: none; color: var(--soft); padding: 8px 14px; border-radius: 999px; font-size: 14px; }
nav.tabs a.on { background: var(--panel2); color: var(--gold2); box-shadow: inset 0 0 0 1px var(--line2); }
nav.tabs a .n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--gold); color: #1A1407; font-size: 12px; text-align: center; }
.page { max-width: 1180px; margin: 0 auto; padding: 26px 22px 80px; }
.page > header { margin-bottom: 20px; } .page > header p { margin: 6px 0 0; color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; min-width: 0; }
.card > header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; border: 1px solid var(--line2); color: var(--soft); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: #2c5b45; background: var(--okbg); } .pill.gold { color: var(--gold2); border-color: #5b4a2b; }
.list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.list > li { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; }
.list > li .grow { flex: 1; min-width: 0; }
.empty { color: var(--muted); font-style: italic; }
dl.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin: 10px 0 0; font-size: 14px; } dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; text-align: right; }
.bots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bots button { min-height: 32px; padding: 0 12px; font-size: 13px; }
.bots button.on { border-color: #2c5b45; color: var(--ok); background: var(--okbg); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--gold); color: var(--text); padding: 12px 18px; border-radius: 14px; z-index: 20; max-width: min(560px, 92vw); }

/* Ego: one calm full-screen scene. The pyramid fills the space between the top bar and the question bar. */
.page.full { max-width: none; padding: 0; }
.ego { display: flex; flex-direction: column; align-items: center; height: calc(100svh - 74px); min-height: 520px; }
.stage { position: relative; width: 100%; flex: 1 1 auto; min-height: 260px;
  background: radial-gradient(42% 52% at 50% 46%, #141c30 0%, rgba(9,12,20,0) 72%); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ego .below { width: 100%; display: grid; justify-items: center; gap: 12px; padding: 4px 18px 22px; }
.cap { width: min(760px, 100%); height: 108px; overflow-y: auto; scrollbar-width: none; text-align: center; font-family: "Cormorant Garamond", serif; font-size: 23px; line-height: 1.35; color: var(--text); }
.cap::-webkit-scrollbar { display: none; }
.cap .you { display: block; font-family: Inter, sans-serif; font-size: 13px; color: var(--muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chips button { min-height: 36px; font-size: 14px; color: var(--soft); }
.ask { width: min(760px, 100%); display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line2); border-radius: 999px; padding: 6px; }
.ask input { border: 0; background: transparent; min-height: 44px; }
.ask input:focus-visible { outline: none; }
.ask:focus-within { border-color: var(--gold); }
.round { width: 44px; height: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; flex: none; }
.state { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.state[data-s="Listening"] { color: var(--ok); } .state[data-s="Thinking"], .state[data-s="Speaking"] { color: var(--gold2); }

@media (max-width: 640px) {
  .top { padding: 10px 14px 8px; gap: 8px 12px; }
  .top #out { min-height: 34px; padding: 0 10px; font-size: 13px; }
  nav.tabs { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  nav.tabs::-webkit-scrollbar { display: none; }
  nav.tabs a { white-space: nowrap; padding: 7px 12px; font-size: 13px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { white-space: nowrap; }
 .page { padding: 18px 14px 70px; } .page.full { padding: 0; } h1 { font-size: 28px; } .ego { height: calc(100svh - 112px); } .cap { font-size: 19px; height: 92px; } .chips button { min-height: 34px; font-size: 13px; } }
/* ===== Ego Command Center ===== Ego in the core, instruments around her. */
.bridge { --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; --cy: #8FD3F0;
  position: relative; display: grid; grid-template-columns: minmax(280px, 320px) 1fr minmax(300px, 350px); grid-template-rows: 40px 1fr; height: var(--h, calc(100svh - 74px)); overflow: hidden;
  background: radial-gradient(60% 55% at 50% 48%, #101830 0%, #090c16 55%, #05070c 100%); }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bridge::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0,0,0,.55) 100%); }
.bridge::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: .3; background: repeating-linear-gradient(180deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px); }
.bridge > * { position: relative; z-index: 1; }
/* command strip */
.strip { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 0 16px; border-bottom: 1px solid rgba(201,210,227,.09); background: linear-gradient(180deg, rgba(14,19,32,.85), rgba(9,12,22,.6));
  font: 500 10.5px/1 var(--mono); letter-spacing: .14em; color: var(--muted); white-space: nowrap; overflow: hidden; }
.strip em { font-style: normal; color: var(--muted); } .strip b { color: var(--silver); font-weight: 600; font-variant-numeric: tabular-nums; }
.strip .sys, .strip .clocks, .strip .meta { display: flex; align-items: center; gap: 14px; } .strip .clocks { margin: 0 auto; gap: 22px; } .strip span { display: inline-flex; gap: 7px; align-items: center; }
.strip .brand { color: var(--text); letter-spacing: .3em; font-size: 11px; } .strip .brand span { color: var(--gold); margin: 0 4px; }
.kbd { min-height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid rgba(217,178,106,.45); color: var(--gold2); font: 600 10.5px var(--mono); letter-spacing: .12em; display: inline-flex; gap: 8px; align-items: center; background: rgba(217,178,106,.06); }
.kbd span { color: var(--soft); }
.led { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; background: #4a5266; }
.led.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 3.2s infinite; } .led.warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); } .led.idle { background: #5b6478; }
@keyframes blink { 0%, 92%, 100% { opacity: 1; } 95% { opacity: .35; } }
/* columns */
.bridge .ego { height: 100%; min-height: 0; grid-row: 2; }
.bridge .ego::before { content: ""; position: absolute; inset: 12px; pointer-events: none; z-index: 2;
  background: linear-gradient(var(--gold), var(--gold)) 0 0 / 18px 1px, linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 18px, linear-gradient(var(--gold), var(--gold)) 100% 0 / 18px 1px, linear-gradient(var(--gold), var(--gold)) 100% 0 / 1px 18px,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 18px 1px, linear-gradient(var(--gold), var(--gold)) 0 100% / 1px 18px, linear-gradient(var(--gold), var(--gold)) 100% 100% / 18px 1px, linear-gradient(var(--gold), var(--gold)) 100% 100% / 1px 18px; background-repeat: no-repeat; opacity: .5; }
.bridge .stage { background: none; }
.col { grid-row: 2; overflow-y: auto; scrollbar-width: none; padding: 14px 14px 20px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(13,17,29,.72), rgba(8,11,19,.55)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.col::-webkit-scrollbar { display: none; }
.col.left { border-right: 1px solid rgba(201,210,227,.08); } .col.right { border-left: 1px solid rgba(201,210,227,.08); }
.lbl { display: flex; align-items: center; gap: 8px; font: 600 10px/1 var(--mono); letter-spacing: .2em; color: var(--muted); margin: 8px 2px 0; text-transform: uppercase; }
.lbl span { color: var(--gold); } .lbl small { margin-left: auto; color: var(--silver); font-size: 10px; letter-spacing: .12em; }
.lbl.gold { color: var(--gold); margin-top: 0; }
.lbl .live { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 8px var(--bad); animation: blink 1.6s infinite; }
/* modules: glass, corner brackets, slow light sweep */
.mod, .yes { position: relative; overflow: hidden; background: rgba(18,23,37,.62); border: 1px solid rgba(201,210,227,.09); border-radius: 10px; padding: 11px 12px; }
.mod::before, .yes::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--gold), var(--gold)) 0 0 / 9px 1px, linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 9px, linear-gradient(var(--gold), var(--gold)) 100% 100% / 9px 1px, linear-gradient(var(--gold), var(--gold)) 100% 100% / 1px 9px; background-repeat: no-repeat; opacity: .6; }
.mod::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(241,217,166,.06), transparent); animation: sweep 10s ease-in-out infinite; }
.stack { display: grid; gap: 8px; } .stack .mod:nth-child(2)::after { animation-delay: 2.5s; } .stack .mod:nth-child(3)::after { animation-delay: 5s; } .stack .mod:nth-child(4)::after { animation-delay: 7.5s; }
@keyframes sweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.fleet { border-left: 2px solid var(--c); }
.fleet header { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.fleet header i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex: none; }
.fleet header b { font-weight: 600; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font: 500 9px var(--mono); letter-spacing: .14em; color: var(--muted); margin-left: auto; }
.pill { font: 600 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(111,211,162,.4); }
.tri { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; }
.tri em, .sig em { display: block; font: normal 500 8.5px/1.2 var(--mono); letter-spacing: .12em; color: var(--muted); }
.tri b { display: block; margin-top: 4px; font: 600 16px/1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; } .tri small { color: var(--muted); font-size: 11px; }
.tri b.sealed { color: var(--silver); font-size: 12px; letter-spacing: .14em; margin-top: 7px; } .tri b.hot { color: var(--gold2); text-shadow: 0 0 10px rgba(217,178,106,.6); }
.sig { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: end; margin-top: 9px; padding-top: 8px; border-top: 1px dashed rgba(201,210,227,.1); }
.sig .spark { width: 100%; height: 18px; } .sig > span { font: 600 11px var(--mono); color: var(--soft); }
.fleet.ping { animation: ping 1.4s ease-out; } @keyframes ping { 0% { box-shadow: 0 0 0 0 var(--c), inset 0 0 30px var(--c); } 100% { box-shadow: 0 0 0 12px transparent, inset 0 0 0 transparent; } }
.globe { padding: 0; height: 168px; } #globe { width: 100%; height: 100%; display: block; }
.sys-list { list-style: none; margin: 0; display: grid; gap: 7px; }
.sys-list li { display: grid; grid-template-columns: 10px 92px 1fr; align-items: center; gap: 6px; font: 500 10px/1.2 var(--mono); letter-spacing: .1em; }
.sys-list em { font-style: normal; color: var(--muted); } .sys-list b { color: var(--silver); font-weight: 600; text-align: right; }
/* right column */
.list, .comms { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li.yes { display: block; border-left: 2px solid var(--gold); }
.yes .code { display: block; font: 600 9px var(--mono); letter-spacing: .16em; color: var(--gold); margin-bottom: 4px; }
.yes b { display: block; font-weight: 600; font-size: 13.5px; } .yes > span.small { display: block; margin-top: 2px; }
.yes .row { display: flex; gap: 8px; margin-top: 9px; } .yes button { min-height: 32px; font-size: 12.5px; padding: 0 14px; }
.empty { color: var(--muted); font-size: 12.5px; padding: 8px 2px; list-style: none; }
.comms { gap: 0; padding: 8px 10px; max-height: 210px; overflow-y: auto; scrollbar-width: none; font: 500 10.5px/1.45 var(--mono); }
.comms li { display: grid; grid-template-columns: 38px auto 1fr; gap: 8px; padding: 4px 0; border-bottom: 1px dashed rgba(201,210,227,.07); color: var(--soft); }
.comms li:last-child { border-bottom: 0; } .comms li.empty { display: block; font-family: Inter, sans-serif; }
.comms time { color: var(--muted); } .comms b { color: var(--cy); font-weight: 600; letter-spacing: .08em; } .comms li.les b { color: var(--ok); } .comms li.dec b { color: var(--gold2); }
.comms span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.budget { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gauge { margin: 0; display: grid; justify-items: center; gap: 2px; } .gauge svg { width: 86px; height: 76px; }
.gauge .g-bg, .gauge .g-fg { fill: none; stroke-width: 5; stroke-linecap: round; } .gauge .g-bg { stroke: rgba(201,210,227,.1); } .gauge .g-fg { stroke: var(--gold); filter: drop-shadow(0 0 4px rgba(217,178,106,.6)); } .gauge .g-fg.hot { stroke: var(--bad); }
.gauge text { fill: var(--text); font: 600 13px var(--mono); }
.gauge figcaption { text-align: center; font: 500 9.5px/1.3 var(--mono); letter-spacing: .1em; } .gauge figcaption em { display: block; font-style: normal; color: var(--muted); } .gauge figcaption b { color: var(--silver); } .gauge small { color: var(--muted); }
.lesson { margin-top: auto; } .lesson p.serif { font-size: 17px; line-height: 1.35; margin: 8px 0 6px; }
/* HUD around Ego, kept to the corners so her circle stays clear */
.hud { position: absolute; z-index: 3; display: grid; gap: 5px; font: 500 10px/1.3 var(--mono); letter-spacing: .16em; color: var(--muted); pointer-events: none; }
.hud b { color: var(--silver); font-weight: 600; margin-left: 6px; } .hud.tl { top: 24px; left: 28px; } .hud.tr { top: 24px; right: 28px; text-align: right; }
#wave { width: 300px; height: 30px; display: block; }
/* command bar */
.palette { position: absolute; inset: 0; z-index: 10; display: grid; place-items: start center; padding-top: 12vh; background: rgba(4,6,11,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.palette[hidden] { display: none; }
.pbox { width: min(620px, 92vw); background: rgba(16,21,35,.96); border: 1px solid rgba(217,178,106,.4); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(217,178,106,.08); overflow: hidden; }
.pbox input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; min-height: 56px; padding: 0 18px; font-size: 16px; }
.pbox input:focus-visible { outline: none; }
#plist { list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow-y: auto; }
#plist li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--soft); }
#plist li[aria-selected="true"] { background: rgba(217,178,106,.12); color: var(--gold2); }
.phint { margin: 0; padding: 8px 16px; border-top: 1px solid var(--line); font: 500 10px var(--mono); letter-spacing: .12em; color: var(--muted); }
/* power-on sequence */
.boot-in .strip { animation: power .7s both; } .boot-in .col.left { animation: rise .7s .15s both cubic-bezier(.2,.7,.2,1); } .boot-in .col.right { animation: rise .7s .3s both cubic-bezier(.2,.7,.2,1); }
.boot-in .mod, .boot-in .yes { animation: power .6s both; }
.boot-in .stack .mod:nth-child(1) { animation-delay: .45s; } .boot-in .stack .mod:nth-child(2) { animation-delay: .55s; } .boot-in .stack .mod:nth-child(3) { animation-delay: .65s; } .boot-in .stack .mod:nth-child(4) { animation-delay: .75s; }
.boot-in .globe { animation-delay: .9s; } .boot-in .sys-list { animation-delay: 1.05s; } .boot-in .yes { animation-delay: .6s; } .boot-in .comms { animation-delay: .8s; } .boot-in .budget { animation-delay: 1s; } .boot-in .lesson { animation-delay: 1.15s; }
.boot-in .hud, .boot-in .below { animation: power .8s .9s both; }
.boot-in .comms li span { animation: type 1s 1.1s both steps(30); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes power { 0% { opacity: 0; filter: brightness(2.2); } 40% { opacity: .9; } 55% { opacity: .35; } 100% { opacity: 1; filter: none; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 1280px) { .strip .clocks span:nth-child(3), .strip .meta span:nth-child(2) { display: none; } }
@media (max-width: 1100px) { .bridge { grid-template-columns: 280px 1fr; } .col.right { display: none; } .strip .clocks { display: none; } }
@media (max-width: 900px) {
  .bridge { display: flex; flex-direction: column; height: auto; overflow: visible; }
  .strip { order: 0; min-height: 38px; } .strip .kbd { display: none; } .strip .meta span, .strip .sys em { display: none; }
  .bridge .ego { order: 1; height: calc(var(--h, 100svh) - 38px); min-height: 540px; }
  .col.left { order: 2; } .col.right { order: 3; display: flex; } .col { border: 0 !important; border-top: 1px solid rgba(201,210,227,.08) !important; overflow: visible; }
  .lesson { margin-top: 0; } .hud.tl { top: 18px; left: 18px; } .hud.tr { top: 18px; right: 18px; } .hud.tr span:nth-child(n+3) { display: none; } #wave { width: 240px; }
}
@media (prefers-reduced-motion: reduce) { .boot-in * { animation: none !important; } .mod::after { display: none; } .led { animation: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Composer: proportioned like a modern chat box. Text on top, tools underneath, grows with what you type. */
.ask.composer { width: min(680px, calc(100% - 48px)); display: block; padding: 12px 12px 10px 18px; border-radius: 22px; border: 1px solid rgba(201,210,227,.16);
  background: linear-gradient(180deg, rgba(22,28,44,.92), rgba(15,19,31,.92)); box-shadow: 0 18px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ask.composer:focus-within { border-color: rgba(217,178,106,.55); box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 4px rgba(217,178,106,.08); }
.composer .field { position: relative; }
.composer textarea { display: block; width: 100%; min-height: 26px; max-height: 168px; padding: 4px 4px 2px 0; border: 0; background: transparent; resize: none; font-size: 16px; line-height: 1.5; color: var(--text); overflow-y: auto; scrollbar-width: thin; }
.composer textarea:focus-visible { outline: none; } .composer textarea::placeholder { color: var(--muted); }
.composer #micwave { display: none; width: 100%; height: 34px; margin-top: 6px; }
.composer.listening #micwave { display: block; }
.composer.listening textarea::placeholder { color: var(--gold2); }
.composer .tools { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.composer .ic { min-height: 34px; height: 34px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--soft); border-color: rgba(201,210,227,.16); }
.composer .ic[aria-pressed="true"] { color: var(--gold2); border-color: rgba(217,178,106,.5); background: rgba(217,178,106,.08); }
.composer.listening #mic { color: #1A1407; background: var(--gold); border-color: var(--gold); animation: micpulse 1.4s ease-in-out infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,178,106,.45); } 50% { box-shadow: 0 0 0 7px rgba(217,178,106,0); } }
.composer .hint { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.composer .send { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; display: grid; place-items: center; flex: none; margin-left: 4px; }
.bridge .below { gap: 10px; padding-bottom: 18px; } .bridge .chips button { min-height: 32px; font-size: 13px; }
@media (max-width: 640px) { .ask.composer { width: calc(100% - 24px); padding: 10px 10px 8px 14px; border-radius: 20px; } .composer .lab, .composer .hint { display: none; } .composer .send { margin-left: auto; } .composer.listening .hint { display: block; } }

/* Half-size answer text and a much smaller, single-row question bar. */
.bridge .cap { font-size: 13px; line-height: 1.45; height: 62px; width: min(560px, 100%); }
.bridge .cap .you { font-size: 10.5px; margin-bottom: 3px; }
.ask.composer { width: min(440px, calc(100% - 32px)); display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.composer .tools { display: contents; } .composer .lab, .composer .hint { display: none !important; }
.composer #mic { order: 0; } .composer .field { order: 1; flex: 1; min-width: 0; } .composer #voice { order: 2; } .composer .send { order: 3; margin-left: 0; }
.composer textarea { font-size: 13px; line-height: 1.4; min-height: 20px; max-height: 110px; padding: 5px 6px; }
.composer .ic { width: 28px; height: 28px; min-height: 28px; padding: 0; justify-content: center; border-radius: 50%; }
.composer .ic svg { width: 14px; height: 14px; } .composer .send { width: 28px; height: 28px; min-height: 28px; } .composer .send svg { width: 14px; height: 14px; }
.composer #micwave { height: 18px; margin-top: 2px; }
.bridge .below { gap: 8px; } .bridge .chips button { min-height: 26px; font-size: 11.5px; padding: 0 10px; }
#wave { width: 200px; height: 20px; }

/* Businesses page */
.biz { display: flex; flex-direction: column; gap: 10px; }
.biz > header { align-items: flex-start; margin: 0; } .biz > header h2 { font-size: 24px; line-height: 1.15; min-width: 0; overflow-wrap: anywhere; } .biz > header .pill { flex: none; margin-top: 4px; }
.biz .sub { margin: -4px 0 0; } .biz dl.kv { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.biz .bots-h { font: 600 12px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: 8px 0 0; display: flex; gap: 8px; align-items: baseline; }
.biz .bots-h .small { text-transform: none; letter-spacing: 0; font-weight: 400; } .biz .bots { margin-top: 0; }
.biz .open-cc, .site-card .open-cc, .cc-card .open-cc { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(217,178,106,.5); color: var(--gold2); text-decoration: none; font-size: 14px; font-weight: 500; }
.biz .open-cc:hover, .site-card .open-cc:hover, .cc-card .open-cc:hover { background: rgba(217,178,106,.1); }
.biz.focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,178,106,.15); }
/* Ego map: open a business from its node */
.hits { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hit { position: absolute; width: 64px; height: 64px; min-height: 0; padding: 0; margin: -32px 0 0 -32px; border-radius: 50%; border: 1px solid transparent; background: transparent; pointer-events: auto; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.hit:hover, .hit:focus-visible { border-color: var(--c); box-shadow: 0 0 22px -4px var(--c), inset 0 0 18px -8px var(--c); outline: none; }
.hit span { position: absolute; left: 100%; top: 50%; transform: translate(10px, -50%); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: rgba(14,18,30,.92); border: 1px solid var(--c); color: var(--text); font-size: 12.5px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.hit.left span { left: auto; right: 100%; transform: translate(-10px, -50%); }
.hit:hover span, .hit:focus-visible span { opacity: 1; }
.hit span b { color: var(--c); font-weight: 600; }
.biz .pill { font: 600 10px/1 Inter, sans-serif; letter-spacing: .08em; padding: 5px 9px; border-radius: 999px; text-transform: uppercase; }
.biz > .pill.gold { align-self: flex-start; color: var(--gold2); border-color: rgba(217,178,106,.45); }
/* Fleet cards open their business */
.fleet { cursor: pointer; transition: transform .18s ease, border-color .18s, box-shadow .18s, background .18s; }
.fleet:hover, .fleet:focus-visible { transform: translateX(3px); border-color: var(--c); background: rgba(24,30,48,.8); box-shadow: 0 0 0 1px var(--c), 0 8px 28px -10px var(--c); outline: none; }
.fleet .go { position: absolute; right: 12px; bottom: 9px; font: 600 9px/1 var(--mono); letter-spacing: .16em; color: var(--c); opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s; }
.fleet:hover .go, .fleet:focus-visible .go { opacity: 1; transform: none; }
.fleet:hover .sig > span, .fleet:focus-visible .sig > span { opacity: 0; }

/* Talent */
.t-h { font-size: 22px; margin: 26px 0 12px; display: flex; gap: 10px; align-items: baseline; }
.t-bar { margin: 30px 0 14px; } .t-bar input { flex: 1; min-width: 200px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .tags .pill, .t-card .pill { font: 500 11px/1 Inter, sans-serif; letter-spacing: .02em; padding: 5px 9px; border-radius: 999px; text-transform: none; }
.fits { display: grid; gap: 8px; margin-top: 10px; } .fit { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .fit button { min-height: 32px; font-size: 13px; padding: 0 14px; }
.t-form { display: grid; gap: 12px; margin-bottom: 18px; } .t-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.t-card { display: flex; flex-direction: column; gap: 8px; } .t-card.off { opacity: .55; } .t-card p { margin: 0; }
.t-form[hidden] { display: none; }
.t-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; } .t-tabs button { min-height: 34px; font-size: 13px; }
.use { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.use > b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; } .use.ok > b { color: var(--ok); } .use.warn { border-color: rgba(232,180,90,.45); background: rgba(232,180,90,.06); } .use.warn > b { color: var(--warn); } .use.bad > b { color: var(--bad); }
.use .row { gap: 6px; margin-left: auto; } .use button { min-height: 28px; font-size: 12px; padding: 0 10px; }
.oscar-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px dashed var(--line2); }
.oscar-row i { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--muted); flex: none; }
.oscar-row.has { border-style: solid; border-color: rgba(217,178,106,.45); background: rgba(217,178,106,.05); } .oscar-row.has i { border-bottom-color: var(--gold); filter: drop-shadow(0 0 5px var(--gold)); }
.oscar-row span { flex: 1; min-width: 0; display: grid; } .oscar-row b { font-size: 13px; } .oscar-row small { color: var(--muted); font-size: 12px; }
.oscar-row button, .oscar-row .btn { min-height: 30px; font-size: 12.5px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold2); text-decoration: none; background: transparent; }

/* Studio: Grey House's launch team */
.s-team { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); margin: 4px 0 18px; }
.s-bot { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); }
.s-bot i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.s-new { display: grid; gap: 12px; margin-bottom: 22px; } .s-new label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.s-new input, .s-new textarea, .s-copy { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg); }
.s-copy { margin-top: 8px; min-height: 160px; }
.s-launches { display: grid; gap: 16px; } .s-launch > header { margin-bottom: 8px; } .s-launch h2 { overflow-wrap: anywhere; }
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.s-step { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); } .s-step p { margin: 4px 0; } .s-step .grow { min-width: 0; flex: 1; }
.s-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1px solid var(--line2); color: var(--muted); }
.s-step.done .s-n { background: var(--okbg); color: var(--ok); border-color: #2c5b45; } .s-step.now .s-n { border-color: var(--gold); color: var(--gold2); }
.s-step:not(.done):not(.now) > .grow > b { color: var(--muted); }
.s-swatches { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0; } .s-sw { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.s-sw i { width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line2); }
.s-bots, .s-facts, .s-audit { margin: 8px 0; padding-left: 18px; display: grid; gap: 6px; } .s-audit { list-style: none; padding: 0; }
.s-audit li b { margin-right: 6px; } .s-audit li.ok b { color: var(--ok); } .s-audit li.bad b { color: var(--bad); }
.s-confirm { margin: 8px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid #5b4a2b; } .s-confirm ul { margin: 6px 0 0; padding-left: 18px; }
.s-notes { white-space: pre-wrap; } details summary { cursor: pointer; }
/* Grey House's own bots on the main page */
.house-studio { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-decoration: none; color: inherit; border-left: 2px solid var(--gold); }
.house-studio b { font-size: 13.5px; } .house-studio span { grid-column: 1; font-size: 11.5px; color: var(--muted); } .house-studio em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: normal 600 9px var(--mono); letter-spacing: .16em; color: var(--gold); }
.house-studio:hover { border-color: var(--gold); background: rgba(24,30,48,.8); }
.hbot { display: flex; align-items: center; gap: 8px; padding: 9px 10px; } .hbot > div:first-child { flex: 1; min-width: 0; display: grid; }
.hbot b { font-size: 13px; } .hbot span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-act { display: flex; gap: 6px; } .hb-act button { min-height: 28px; padding: 0 10px; font-size: 12px; }
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(4,6,11,.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet-box { width: min(720px, 100%); max-height: 86vh; overflow: auto; background: var(--panel); border: 1px solid rgba(217,178,106,.4); border-radius: 16px; padding: 18px 20px; }
.sheet-box header { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .sheet-body { white-space: pre-wrap; font-size: 14px; line-height: 1.55; color: var(--soft); margin-top: 10px; }
.bridge .col > * { flex-shrink: 0; }
/* Account menu, bottom left */
.acct { position: fixed; left: 14px; bottom: 14px; z-index: 40; }
#acct-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid rgba(201,210,227,.18); background: rgba(12,15,25,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--soft); font-size: 13px; }
#acct-btn:hover, #acct-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--text); }
#acct-btn .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--gold2), var(--gold)); color: #1A1407; font: 600 13px "Cormorant Garamond", serif; }
#acct-btn .car { font-size: 9px; color: var(--muted); transition: transform .15s; } #acct-btn[aria-expanded="true"] .car { transform: rotate(180deg); }
.acct-menu { position: absolute; left: 0; bottom: calc(100% + 8px); width: 250px; display: grid; padding: 6px; border-radius: 14px; border: 1px solid rgba(217,178,106,.35); background: rgba(14,18,30,.97); box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.acct-menu[hidden] { display: none; }
.acct-head { display: grid; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; } .acct-head b { font-size: 14px; } .acct-head small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; } .acct-head small.ok { color: var(--ok); }
.acct-menu a, .acct-menu button { display: flex; align-items: center; min-height: 38px; padding: 0 10px; border-radius: 9px; border: 0; background: transparent; color: var(--soft); text-decoration: none; font-size: 14px; text-align: left; width: 100%; }
.acct-menu a:hover, .acct-menu a:focus-visible, .acct-menu button:hover, .acct-menu button:focus-visible { background: rgba(217,178,106,.1); color: var(--gold2); outline: none; } .acct-menu a.on { color: var(--gold2); }
.acct-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; } .acct-menu #out { color: var(--bad); }
.bridge .col.left { padding-bottom: 70px; } .page { padding-bottom: 80px; }
.brief { display: grid; gap: 8px; border-left: 2px solid var(--gold); } .brief-text { margin: 0; white-space: pre-line; font-size: 13px; line-height: 1.5; color: var(--soft); max-height: 190px; overflow-y: auto; scrollbar-width: thin; }
.brief-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .brief-foot button { min-height: 28px; font-size: 12px; padding: 0 10px; }

/* Websites: each company's public site */
.biz-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.site-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--gold); color: #0b0e17; text-decoration: none; font-size: 14px; font-weight: 600; }
.site-btn:hover { background: var(--gold2); }
.site-btn.quiet { background: transparent; color: var(--gold2); border: 1px solid rgba(255,255,255,.18); font-weight: 500; }
.site-btn.quiet:hover { background: rgba(255,255,255,.06); }
.site-card { display: flex; flex-direction: column; gap: 10px; min-height: 210px; }
.site-card > header { align-items: flex-start; margin: 0; } .site-card > header h2 { font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; } .site-card > header .pill { flex: none; margin-top: 4px; }
.site-card .site-host { margin: 0; font: 500 15px/1.3 'JetBrains Mono', ui-monospace, monospace; color: var(--gold2); overflow-wrap: anywhere; }
.site-card .muted.small { margin: 0; }

/* Command centers: a live picture of each, as its owner sees it. */
.cc-card { display: flex; flex-direction: column; gap: 10px; }
.cc-card > header { align-items: flex-start; margin: 0; } .cc-card > header h2 { font-size: 22px; line-height: 1.15; } .cc-card > header .pill { flex: none; margin-top: 4px; }
.cc-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; border: 1px solid var(--line2, rgba(255,255,255,.14)); background: #05060a; }
.cc-shot iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; }
.cc-shot:hover, .cc-shot:focus-visible { border-color: var(--gold); outline: none; }
.cc-shot.none { display: grid; place-items: center; padding: 18px; text-align: center; }
.cc-card .site-host { margin: 0; font: 500 14px/1.3 'JetBrains Mono', ui-monospace, monospace; color: var(--gold2); overflow-wrap: anywhere; }
.cc-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
/* Doctrine: Ego's interviews with Cece */
.iv-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.iv-area { display: grid; gap: 6px; text-align: left; border-radius: 14px; padding: 14px 16px; min-height: 0; background: var(--panel2); }
.iv-area b { font-family: "Cormorant Garamond", serif; font-size: 20px; font-weight: 500; color: var(--text); }
.iv-area span { font-size: 13px; color: var(--soft); line-height: 1.45; } .iv-area em { font-style: normal; font-size: 12px; color: var(--gold2); }
.iv-log { display: grid; gap: 12px; max-height: 46vh; overflow-y: auto; padding-right: 4px; }
.iv-log > div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.iv-log b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.iv-log p { margin: 0; white-space: pre-wrap; }
.iv-q { background: var(--panel2); } .iv-q p { font-family: "Cormorant Garamond", serif; font-size: 20px; line-height: 1.35; }
.iv-a { border-color: #5b4a2b; }
/* The council */
.council { display: grid; gap: 12px; margin-top: 12px; }
.council .verdict { margin: 0; padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--panel2); border-radius: 0 12px 12px 0; }
.council .verdict b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); margin-bottom: 4px; }
.council .voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.council .voice { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); }
.council .voice header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 6px; } .council .voice header b { line-height: 1.25; }
.council .voice p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.45; }
.pill.no { color: #e8a29a; border-color: #6b3a35; }
details > summary { cursor: pointer; list-style: none; } details > summary::-webkit-details-marker { display: none; }
.council-link { display: block; margin-top: 10px; font-size: 13px; color: var(--gold2); }
.council-wait { margin: 10px 0 0; }

/* Interview: paused, and listening. */
.iv-paused .iv-log { opacity: .85; }
.iv-pause-note { margin-top: 12px; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(217,178,106,.45); background: rgba(217,178,106,.06); }
.iv-pause-note p { margin: 0 0 10px; color: var(--soft); }
#iv-a.listening { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,178,106,.18); }
#iv-mic[aria-pressed="true"] { border-color: var(--gold); color: var(--gold2); }

/* About me */
.ab-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.ab-ask { margin: 10px 0 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(217,178,106,.45); background: rgba(217,178,106,.06); font-size: 14px; line-height: 1.5; color: var(--soft); }

.ab-asks { margin: 18px 0 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(217,178,106,.4); background: rgba(217,178,106,.07); }
.ab-asks b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); margin-bottom: 4px; } .ab-asks p { margin: 0; color: var(--soft); }
.ab-was { padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line2, rgba(255,255,255,.18)); } .ab-was > b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; } .ab-was p { margin: 0; font-size: 14px; color: var(--soft); }

/* Decisions: talking each one through with Ego */
.dc .grow { display: grid; gap: 10px; align-content: start; min-width: 0; }
.dc-council > summary { cursor: pointer; padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.dc-council > summary b { color: var(--gold2); margin-right: 6px; }
.dc-thread { display: grid; gap: 8px; align-content: start; }
.dc-thread:empty { display: none; }
.dc-msg { align-self: start; height: auto; text-align: left; max-width: 78%; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); }
.dc-msg b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.dc-msg p { margin: 0; white-space: pre-wrap; line-height: 1.45; }
.dc-msg.by-me { justify-self: end; border-color: rgba(217,178,106,.45); background: rgba(217,178,106,.07); }
.dc-msg.by-ai b { color: var(--gold2); }
.dc textarea { min-height: 70px; }
.dc-acts { gap: 8px; flex-wrap: wrap; align-items: center; }
#yes a.btn { min-height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 13px; }
#yes a.btn.gold { background: var(--gold); color: #1a1408; }

/* Knowledge bars */
.kb-list { list-style: none; margin: 0; display: grid; gap: 7px; }
.kb-mini { display: grid; grid-template-columns: 92px 1fr 26px; align-items: center; gap: 8px; font: 500 10px/1.2 var(--mono); letter-spacing: .1em; }
.kb-mini em { font-style: normal; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kb-mini b { color: var(--silver); font-weight: 600; text-align: right; }
.kb-mini.ego-row em { color: var(--gold2); }
.kb-track { display: block; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.kb-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.kb-track.big { height: 10px; margin-top: 8px; }
.kb-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .kb-pct { margin-left: auto; color: var(--gold2); }
.kb-recent { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13.5px; }
.lbl small a { color: inherit; text-decoration: none; }

/* Doctrine: one folder per subject; a write-up is read once */
.doc-big { min-height: 46vh; }
.doc-full { min-height: 64vh; font-size: 15px; line-height: 1.6; }
.doc-folders > li { flex-wrap: wrap; }
.doc-folder .grow { display: grid; gap: 2px; }
.doc-folder.empty { opacity: .65; }
.doc-open { flex-basis: 100%; display: grid; gap: 10px; margin-top: 10px; }
.doc-open[hidden] { display: none; }

/* Her writing */
.wr .wr-how { margin: 6px 0 12px; } .wr .wr-how ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.wr-pick { gap: 10px; align-items: center; flex-wrap: wrap; }
label.btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2, rgba(255,255,255,.2)); cursor: pointer; }
label.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1A1407; border: 0; font-weight: 600; }
#wr-mind { margin-top: 12px; display: grid; gap: 10px; } #wr-mind[hidden] { display: none; }

.wr.drag{outline:2px dashed var(--gold,#c9a96e);outline-offset:4px}
#wr-more{margin-top:10px;line-height:1.6}
#wr-more button{margin-left:6px}

/* Learning: batteries that fill with every piece of knowledge */
.bat { display: flex; align-items: center; gap: 3px; margin: 10px 0 8px; }
.bat-body { position: relative; flex: 1; height: 26px; border: 2px solid rgba(255,255,255,.28); border-radius: 7px; padding: 3px; overflow: hidden; }
.bat.big .bat-body { height: 64px; border-radius: 12px; padding: 5px; border-width: 2.5px; }
.bat-nub { width: 5px; height: 12px; border-radius: 0 3px 3px 0; background: rgba(255,255,255,.28); } .bat.big .bat-nub { width: 8px; height: 26px; }
.bat-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6fa8a0, #9fd3c7); transition: width 1.6s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 14px rgba(159,211,199,.35); }
.bat.gold .bat-fill { background: linear-gradient(90deg, var(--gold), var(--gold2)); box-shadow: 0 0 22px rgba(217,178,106,.45); }
.bat.big .bat-fill { border-radius: 7px; animation: charge 2.4s ease-in-out infinite; }
@keyframes charge { 50% { filter: brightness(1.18); } }
.bat-cells { position: absolute; inset: 3px; display: grid; grid-template-columns: repeat(10, 1fr); pointer-events: none; } .bat.big .bat-cells { inset: 5px; }
.bat-cells s { border-right: 1px solid rgba(0,0,0,.28); } .bat-cells s:last-child { border: 0; }
.bat-pct { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 12px var(--mono); color: var(--silver); text-shadow: 0 1px 3px #000; } .bat.big .bat-pct { font-size: 22px; right: 18px; }
.learn-big { font-size: 17px; margin: 4px 0 6px; } .learn-big b { color: var(--gold2); }
.learn-chart { width: 100%; height: auto; margin-top: 10px; } .learn-chart text { fill: var(--muted); font: 12px var(--mono); }
.learn-chart .axis { stroke: rgba(255,255,255,.12); } .learn-chart .ln-g { fill: none; stroke: var(--gold2); stroke-width: 2.5; } .learn-chart .ln-s { fill: none; stroke: #9fd3c7; stroke-width: 2; stroke-dasharray: 5 4; }
.learn-chart .fill-g { fill: rgba(217,178,106,.10); stroke: none; } .learn-chart .dot-g { fill: var(--gold2); }
.key { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin: 0 4px 0 8px; } .key.g { background: var(--gold2); } .key.s { background: #9fd3c7; }
.learn-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 18px; } @media (max-width: 900px) { .learn-cols { grid-template-columns: 1fr; } }
.learn-os, .learn-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; } .learn-feed { gap: 9px; font-size: 14px; }
.learn-feed .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: middle; } .learn-feed .dot.g { background: var(--gold2); } .learn-feed .dot.s { background: #9fd3c7; }
@media (prefers-reduced-motion: reduce) { .bat-fill { transition: none; animation: none !important; } }
/* Answers an Oscar sent back from its owner (Websites) */
.oscar-answers { margin: 2px 0 4px; }
.oscar-answers > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(217,178,106,.5); color: var(--gold2); font-size: 14px; font-weight: 500; }
.oscar-answers > summary::-webkit-details-marker { display: none; }
.oscar-answers > summary:hover { background: rgba(217,178,106,.1); }
.oscar-answers > summary small { color: inherit; opacity: .7; font-weight: 400; }
.oscar-answers .oa-close, .oscar-answers[open] .oa-open { display: none; } .oscar-answers[open] .oa-close { display: inline; }
.oscar-answers h3 { margin: 16px 0 6px; }
.oscar-answers dl { margin: 0; display: grid; gap: 10px; }
.oscar-answers dt { font-size: 13px; opacity: .7; }
.oscar-answers dd { margin: 2px 0 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }

/* Something new from an owner: the business's box glows and pulses until Cece reads it */
.fleet.news { border-color: var(--gold2); animation: news-glow 1.6s ease-in-out infinite; }
@keyframes news-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(217,178,106,.35), 0 0 0 rgba(217,178,106,0); } 50% { box-shadow: 0 0 0 1px rgba(217,178,106,.9), 0 0 22px rgba(217,178,106,.45); } }
.news-read { display: block; width: 100%; margin: 0 0 8px; padding: 6px 10px; border: 0; border-radius: 8px; background: var(--gold); color: #0b0e17; font: 600 11px/1.3 var(--mono); letter-spacing: .06em; text-align: left; cursor: pointer; }
.news-read:hover { background: var(--gold2); }
@media (prefers-reduced-motion: reduce) { .fleet.news { animation: none; box-shadow: 0 0 0 2px var(--gold2); } }

/* The Builder's workshop */
.ws-out { white-space: pre-wrap; word-break: break-word; font: 12.5px/1.55 var(--mono); background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 12px 14px; max-height: 520px; overflow: auto; margin: 10px 0; }
.ws-item details summary, .kp summary { cursor: pointer; }
.lm-list, .ls-list, .lt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; } .lm-list li, .ls-list li, .lt-list li { display: grid; gap: 4px; } .lm-list button, .ls-list button { justify-self: start; } .lt-list .row { gap: 8px; }
.ls-form { margin-top: 12px; display: grid; gap: 6px; } .ls-form .row { display: flex; gap: 8px; } .ls-form input { flex: 1; min-width: 0; }
/* Your work: books, characters, art and photos */
.wk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; } @media (max-width: 700px) { .wk-form { grid-template-columns: 1fr; } }
.wk.drag { outline: 2px dashed var(--gold, #c9a45c); outline-offset: 4px; }
.wk-work { margin-top: 14px; border-top: 1px solid var(--line, #2a2a2a); padding-top: 12px; } .wk-work > summary { cursor: pointer; }
.wk-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.wk-tile { display: grid; gap: 4px; align-content: start; } .wk-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: rgba(255,255,255,.04); }
.wk-tile button { justify-self: start; } .wk-sw { display: flex; gap: 4px; margin: 6px 0; } .wk-sw i { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(255,255,255,.2); }
.wk-parts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
/* From the owners: problems passed on by an Oscar, answered by Cece here */
.list li.owner-msg { display: block; border-left: 2px solid var(--gold); }
.owner-msg p { margin: 6px 0 8px; white-space: pre-wrap; }
.owner-msg textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 54px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: inherit; font: inherit; }
.owner-msg .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* Connections (Settings) and the approve cards in the chat */
.conn { margin-top: 16px; display: grid; gap: 10px; }
.conn-app { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.conn-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.conn-st { font-size: 12px; color: var(--soft); }
.conn-st.on { color: var(--gold2); }
.conn-st.bad { color: #e29a8a; }
.act-card { margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.04); }
.act-card .act-what { margin: 0 0 8px; }
.act-card .row { display: flex; gap: 6px; flex-wrap: wrap; }
.act-card .act-out:empty { display: none; }
.act-card .act-out { margin: 6px 0 0; }
.conn .link-btn { background: none; border: 0; color: var(--soft); text-decoration: underline; padding: 0 6px; min-height: 0; font-size: 13px; cursor: pointer; }
/* Ego builds */
.bd-list .bd-item { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.bd-sum { white-space: pre-wrap; margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 14px; }
.bd-shots { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.bd-shots img { width: 220px; max-width: 100%; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); min-height: 60px; }
.bd-tests { font-size: 12px; white-space: pre-wrap; margin: 6px 0; color: var(--soft); }
.bd-item .bad-t { color: #e29a8a; }
.bd-item .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
/* Private clients: health only on their box */
.fleet .health { margin: 6px 0 2px; font: 600 11px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted, #9aa3b2); }
.fleet .health em { font-style: normal; color: var(--gold); margin-right: 6px; }
.fleet .health.bad { color: #ff9a8a; }
.fleet .health.bots { display: flex; flex-wrap: wrap; gap: 4px 10px; font-weight: 500; }
.fleet .health.bots .ok { color: #9FD8B4; } .fleet .health.bots .bad { color: #ff9a8a; }
.conn .shop-row { padding: 8px 0; border-top: 1px dashed rgba(255,255,255,.08); }
.conn .shop-row .row { margin-top: 6px; }
/* Phones (Cece, 19 Nov 2026: "it zooms in and out… I can't even see it").
   iPhone zooms the page whenever a text box under 16px is tapped, so every box is 16px on touch screens,
   and nothing may push the page wider than the phone. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (hover: none) and (pointer: coarse), (max-width: 640px) {
  input, select, textarea, .composer textarea { font-size: 16px !important; }
  html, body { overflow-x: clip; max-width: 100%; }
  img, video, canvas, svg, table, pre { max-width: 100%; }
  pre, code { white-space: pre-wrap; word-break: break-word; }
}
/* The small window (/mini, Cece 20 Nov 2026): only Ego, her answer and the chat box. */
.mini .top, .mini .acct, .mini .bridge .strip, .mini .bridge .col, .mini .bridge .hud, .mini .bridge .chips, .mini .palette { display: none !important; }
.mini .page.full { padding: 0; }
.mini .bridge { grid-template-columns: 1fr; grid-template-rows: 1fr; height: var(--h, 100svh); }
.mini .bridge .ego { grid-row: 1; grid-column: 1; height: 100%; min-height: 0; order: 0; }
.mini .bridge .ego::before { inset: 6px; }
.mini .bridge .below { padding: 0 12px 12px; gap: 8px; }
.mini .bridge .cap { height: auto; max-height: 38svh; overflow-y: auto; font-size: 14px; width: 100%; }
.mini .bridge .ask.composer { width: 100%; }
/* The guard's red bar (supabase/102_ego_guard.sql): on top of every screen until Cece answers. */
.guard { position: sticky; top: 0; z-index: 60; background: #3a0d10; border-bottom: 1px solid #e0484f; color: #ffe3e3; }
.guard .g-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; }
.guard .g-row + .g-row { border-top: 1px solid rgba(224,72,79,.35); }
.guard b { font-weight: 600; flex: 1 1 260px; }
.guard details { flex: 1 1 100%; order: 3; font-size: 13px; } .guard summary { cursor: pointer; color: #ffb3b3; }
.guard pre { white-space: pre-wrap; word-break: break-word; margin: 6px 0 0; font-size: 12px; color: #ffd0d0; }
.guard .g-act { display: flex; gap: 8px; }
.guard button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,227,227,.4); background: transparent; color: #ffe3e3; font-size: 14px; }
.guard button.g-no { background: #e0484f; border-color: #e0484f; color: #fff; }
.mini .guard { position: fixed; left: 0; right: 0; }
/* The small window's spend line (his "little screen showing AI usage", Cece 20 Nov 2026). */
.use-line { display: none; }
.mini .use-line { display: block; margin: 0; text-align: center; font: 10.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: var(--muted); }
/* How Ego works and My expenses (Cece, 20 Nov 2026), to the reels' rules: what matters first, grouped by meaning,
   one accent, one clear main button that says what it will do, the rest one tap away. */
.self-main { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; margin-top: 12px; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; }
.self-main span { transition: opacity .18s ease; }
.self-main::after { content: attr(data-say); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; opacity: 0; transition: opacity .18s ease; white-space: nowrap; }
@media (hover: hover) { .self-main:hover span, .self-main:focus-visible span { opacity: 0; } .self-main:hover::after, .self-main:focus-visible::after { opacity: 1; } }
.self-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.self-card { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; cursor: pointer; transition: border-color .18s ease; }
.self-card.still { cursor: default; }
.self-card:not(.still):hover, .self-card:focus-visible { border-color: var(--gold); }
.self-card .lbl { font: 600 11px/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; color: var(--muted); }
.self-card .big { font-size: 24px; font-weight: 600; color: var(--gold2, var(--gold)); }
.self-card .small { color: var(--soft, var(--muted)); }
.self-note { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--gold); }
.self-rows, .self-row { display: grid; gap: 10px; }
.self-row { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; }
.self-row > summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 48px; padding: 0 18px; cursor: pointer; list-style: none; }
.self-row > summary::-webkit-details-marker { display: none; }
.self-row > summary::after { content: "+"; color: var(--gold); font-size: 18px; margin-left: 8px; }
.self-row[open] > summary::after { content: "–"; }
.self-row > summary > b { flex: 1; font-weight: 500; }
.self-body { padding: 0 18px 16px; }
.self-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.self-list li { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.self-list li:first-child { border-top: 0; padding-top: 0; }
.self-list li .link-btn { justify-self: start; }
.exp-form { margin-bottom: 18px; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.exp-grid .wide { grid-column: 1 / -1; }
.exp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.exp-bars li { display: grid; grid-template-columns: minmax(110px, 180px) 1fr auto; gap: 4px 12px; align-items: center; cursor: pointer; }
.exp-bars li .small { grid-column: 1 / -1; }
.exp-bar { display: flex; height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.exp-bar i { display: block; height: 100%; }
.exp-bar i.ai { background: var(--gold); }
.exp-bar i.other { background: var(--gold2, var(--gold)); opacity: .55; }
@media (max-width: 640px) { .exp-bars li { grid-template-columns: 1fr auto; } .exp-bar { grid-column: 1 / -1; order: 3; } }
@media (prefers-reduced-motion: reduce) { .self-main span, .self-main::after, .self-card { transition: none; } }
a.self-main, button.self-main { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1A1407; border: 0; font-weight: 600; }
.self-list li[hidden] { display: none; }
/* Five places, each with its own pages in a quieter second row; Home shows the businesses first (Cece, 20 Nov 2026). */
.top { flex-wrap: wrap; }
nav.tabs.sub { flex-basis: 100%; order: 3; justify-content: flex-start; gap: 2px; padding: 4px 0 0; border-top: 1px solid var(--line); margin-top: 8px; }
nav.tabs.sub a { font-size: 13.5px; min-height: 34px; padding: 0 12px; color: var(--muted); }
nav.tabs.sub a.on { color: var(--gold2); background: transparent; border-color: transparent; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.home-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.home-head .self-main { margin-top: 0; }
.home-h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 22px 0 12px; }
.home-urgent { margin: 18px 0 6px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--gold); background: rgba(217,178,106,.06); }
.home-urgent h2 { margin: 0 0 8px; font-size: 15px; color: var(--gold2); }
.home-urgent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.home-urgent a { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; cursor: pointer; }
.home-urgent a:hover, .home-urgent a:focus-visible { background: rgba(255,255,255,.04); }
.home-urgent a span { color: var(--soft); font-size: 13px; }
.home-fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.home-fleet .fleet { margin: 0; }
.home-fleet { --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; --cy: #8FD3F0; }
/* Calendar (Cece, 20 Nov 2026): a week like Google's on a computer, a day-by-day list on a phone. */
.cal-nav { align-items: center; gap: 6px; flex-wrap: wrap; } .cal-nav button { min-height: 40px; padding: 0 14px; cursor: pointer; } .cal-nav b { margin-left: 8px; font-weight: 500; color: var(--soft); }
.cal-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin: 0 6px 0 2px; vertical-align: 0; }
.cal-help { margin: 10px 0 14px; }
.cal-week { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.cal-hours > div { font: 11px/1 ui-monospace, Menlo, monospace; color: var(--muted); text-align: right; padding: 2px 6px 0 0; box-sizing: border-box; }
.cal-hours .cal-dayhead, .cal-day .cal-dayhead { height: 52px; }
.cal-allday-gap, .cal-allday { min-height: 26px; }
.cal-day { border-left: 1px solid var(--line); min-width: 0; }
.cal-dayhead { display: grid; place-items: center; align-content: center; gap: 2px; border-bottom: 1px solid var(--line); }
.cal-dayhead span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cal-dayhead b { font-size: 18px; font-weight: 600; }
.cal-day.today .cal-dayhead b { color: #1A1407; background: var(--gold); border-radius: 999px; padding: 2px 9px; }
.cal-allday { display: grid; gap: 2px; padding: 2px; border-bottom: 1px solid var(--line); }
.cal-chip { display: block; font-size: 11.5px; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 30%, transparent); color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.cal-grid { position: relative; background: repeating-linear-gradient(180deg, transparent 0 43px, var(--line) 43px 44px); }
.cal-ev { position: absolute; left: 3px; right: 3px; display: grid; align-content: start; gap: 1px; padding: 3px 6px; border-radius: 7px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 22%, var(--panel)); color: var(--text); text-decoration: none; overflow: hidden; cursor: pointer; font-size: 12px; }
.cal-ev b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cal-ev span { color: var(--soft); font-size: 11px; }
.cal-ev:hover, .cal-ev:focus-visible { z-index: 2; box-shadow: 0 0 0 1px var(--c); }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); }
.cal-list { display: none; }
@media (max-width: 760px) {
  .cal-week { display: none; } .cal-list { display: grid; gap: 14px; }
  .cal-list section { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--panel); } .cal-list section.today { border-color: var(--gold); }
  .cal-list h3 { margin: 0 0 8px; font-size: 15px; } .cal-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .cal-list li a { display: grid; gap: 2px; padding-left: 10px; border-left: 3px solid var(--c); color: var(--text); text-decoration: none; }
  .cal-list li span, .cal-list li small { color: var(--soft); font-size: 13px; }
}
.cal-allday, .cal-allday-gap { box-sizing: border-box; min-height: 31px; border-bottom: 1px solid var(--line); }
.composer.talking #talk { box-shadow: 0 0 0 3px rgba(217,178,106,.18); }
.words-cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
/* Lifelines (21 Nov 2026): Ego and every Oscar as living things that grow, not batteries */
.life { width: 100%; height: auto; display: block; overflow: visible; --lc: #C9D2E3; }
.life.gold { --lc: var(--gold2, #F1D9A6); }
.life .life-line { fill: none; stroke: var(--lc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--lc) 55%, transparent)); }
.life .life-s1 { stop-color: var(--lc); stop-opacity: .22; } .life .life-s2 { stop-color: var(--lc); stop-opacity: 0; }
.life .life-mark circle { fill: var(--bg, #0b0d12); stroke: var(--lc); stroke-width: 2; }
.life .life-mark text, .life > text { fill: rgba(201,210,227,.6); font: 11px ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.life .life-now { fill: var(--lc); transform-box: fill-box; transform-origin: center; animation: life-beat 2.4s ease-in-out infinite; }
@keyframes life-beat { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .life .life-now { animation: none; } }
.kb-mini .kb-life { flex: 1; min-width: 0; display: block; }
.learn-cols.one { grid-template-columns: 1fr; }

/* The whole house (23 Nov 2026) */
.hm { display: grid; gap: 14px; }
.hm-top { justify-self: center; display: flex; align-items: center; gap: 14px; padding: 14px 22px; border: 1px solid var(--gold); border-radius: 18px; background: var(--panel); }
.hm-top b { display: block; font-size: 20px; font-family: "Cormorant Garamond", serif; } .hm-top small, .hm-o small { color: var(--soft); font-size: 13px; display: block; }
.hm-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #111; font-weight: 700; flex: none; }
.hm-av.sm { width: 34px; height: 34px; background: transparent; border: 1px solid var(--gold); color: var(--gold2); }
.hm-own { justify-self: center; width: min(760px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.hm-own summary { cursor: pointer; font-weight: 500; }
.hm-line { justify-self: center; width: 2px; height: 22px; background: var(--line2); }
.hm-oscars { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hm-o { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; min-width: 0; }
.hm-o > header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .hm-o b { display: block; font-weight: 500; }
.hm-d { margin-top: 10px; } .hm-d small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.hm-d > div { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-m { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--soft); font-size: 13px; cursor: pointer; }
.hm-m i { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); } .hm-m.on { color: var(--text); } .hm-m.on i { background: var(--ok); }
.hm-m:hover, .hm-m:focus-visible { border-color: var(--gold); }
dialog.hm-sheet { width: min(560px, 94vw); background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 20px; padding: 20px 22px; }
dialog.hm-sheet::backdrop { background: rgba(0,0,0,.6); } dialog.hm-sheet > header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
dialog.hm-sheet h2 { margin: 2px 0 6px; } dialog.hm-sheet h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); margin: 14px 0 4px; } dialog.hm-sheet ul { margin: 0; padding-left: 1.1rem; }
/* Builds card in the Grey House tab: name and step on their own line, buttons underneath (23 Nov 2026) */
ul.builds li { flex-wrap: wrap; gap: 10px; } ul.builds li .grow { flex: 1 1 100%; min-width: 0; } ul.builds li .grow b { display: block; } ul.builds li .grow .small { display: block; margin-top: 2px; }
ul.builds li .row { flex: 0 0 auto; gap: 8px; }

/* Ego's answers (23 Nov 2026, Cece: "there has to be a better way without shrinking Ego or the writing"): the answer opens
   as a reading card floating over the lower part of the scene. The scene keeps its full size, the text stays large and
   scrolls inside the card. What Cece said sits at the top of the card: two lines, tap to see all of it. */
.bridge .below { position: relative; }
.bridge .cap { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 6; width: min(680px, 94%); height: auto; max-height: 46vh; overflow-y: auto; scrollbar-width: thin;
  font-size: 16px; line-height: 1.55; text-align: left; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(7, 9, 15, .86); backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.bridge .cap:empty { display: none; }
.bridge .cap::-webkit-scrollbar { display: block; width: 4px; } .bridge .cap::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
.cap .you { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; font-family: Inter, sans-serif; font-size: 12px; line-height: 1.45; color: var(--muted); border-left: 2px solid var(--line2); padding-left: 8px; margin-bottom: 10px; }
.cap .you.open { display: block; -webkit-line-clamp: unset; }
.mini .bridge .cap { position: static; transform: none; width: 100%; max-height: 38svh; background: none; border: 0; box-shadow: none; padding: 0; font-size: 14px; }

/* Photos for Ego (23 Nov 2026) */
.pic-tray { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; padding: 4px 4px 2px; order: -1; }
.pic-tray[hidden] { display: none; }
.pic-chip { position: relative; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line2); }
.pic-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-chip button { position: absolute; top: 1px; right: 1px; width: 18px; height: 18px; min-height: 18px; padding: 0; border-radius: 50%; font-size: 10px; line-height: 1; background: rgba(0,0,0,.7); color: #fff; border: 0; }
.ask.composer:has(.pic-tray:not([hidden])) { flex-wrap: wrap; }
.composer #pic { order: 0; }
.pic-tray { flex: 0 0 100%; }
.bridge .ask.composer { width: min(500px, calc(100% - 32px)); }
.composer textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; height: 30px; padding: 0 6px 0 10px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-chip button { width: 18px; height: 18px; min-height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 10px; }

.composer #cam { order: 0; }
