/* ============================================================================
   AURORA  —  components.css
   DOM layers over the WebGL sky: exhibit canvas, four peaks, conversation
   (footprints + frost), type fallback, and the quiet overlays.
   ============================================================================ */

/* ============================ EXHIBIT CANVAS ============================= */
#exhibit-zone {
  position: fixed;
  top: 33%; bottom: 30%;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#exhibit-primary {
  position: relative;
  width: min(46vw, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}

/* Sol clears the stage — mountains sink, the exhibit takes most of the page */
#exhibit-zone {
  transition: top .8s cubic-bezier(.2,.8,.2,1), bottom .8s cubic-bezier(.2,.8,.2,1);
}
body.stage-clear #exhibit-zone { top: 7%; bottom: 9%; }
body.stage-clear #exhibit-primary { width: min(84vw, 1180px); }
body.stage-clear .exhibit.large .ex-photo,
body.stage-clear .exhibit.large .ex-photo.placeholder { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; }
body.stage-clear #peaks { opacity: 0; transition: opacity .6s ease; pointer-events: none; }
body.stage-clear #footer-label, body.stage-clear #key-hints { opacity: 0.25; }
.exhibit.large { display: flex; justify-content: center; }
.exhibit.large .exhibit-inner { width: auto; max-width: 100%; }

.exhibit {
  width: 100%;
  transform-origin: bottom center;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1),
              filter .6s ease, clip-path .7s cubic-bezier(.2,.8,.2,1);
}
.exhibit.entering {
  opacity: 0;
  transform: translateY(40px) scaleY(0.72);
  filter: blur(10px);
  clip-path: inset(100% 0 0 0);
}
.exhibit-inner {
  position: relative;
  width: 100%;
}

/* --- image --- */
.ex-image { line-height: 0; }
.ex-photo {
  width: 100%;
  border-radius: 3px;
  /* thin warm vignette frame (brief demo moment) */
  box-shadow: 0 0 0 1px rgba(255,232,184,0.22),
              0 24px 70px rgba(0,0,0,0.55),
              inset 0 0 80px rgba(0,0,0,0.35);
  display: block;
}
.ex-photo.placeholder {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, rgba(180,236,255,0.05) 0 10px, rgba(180,236,255,0.015) 10px 20px),
    var(--horizon);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  line-height: 1.4;
}
.ph-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: rgba(201,213,232,0.55);
}
.ph-label code { color: var(--aurora-ice); }
.ph-sub { font-family: var(--font-frost); font-size: 18px; color: var(--frost-cream); opacity: .8; }
.ex-overlay {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; flex-direction: column; gap: 7px;
  padding: 14px 16px;
  background: rgba(11,18,40,0.55);
  border-left: 1px solid var(--ex-accent);
  backdrop-filter: blur(3px);
}
.ov-row { display: flex; align-items: center; gap: 9px; font-family: var(--font-frost); font-size: 15px; color: var(--frost-cream); }
.ov-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* --- data_card: outline single hue, NO fill, NO glass (brief forbidden list) --- */
.ex-data {
  border: 1px solid color-mix(in oklch, var(--ex-accent) 55%, transparent);
  padding: 30px 34px;
  position: relative;
}
.ex-data::before {
  content: ""; position: absolute; left: -1px; top: 18%; bottom: 18%;
  width: 2px; background: var(--ex-accent); box-shadow: 0 0 12px var(--ex-accent);
}
.dc-title { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(201,213,232,0.6); }
.dc-body { font-family: var(--font-body); font-weight: 300; font-size: 52px; color: var(--snow-bright); margin: 10px 0 8px; letter-spacing: -0.01em; }
.dc-footer { font-family: var(--font-mono); font-size: 13px; color: color-mix(in oklch, var(--ex-accent) 80%, white); letter-spacing: .04em; }

/* --- frost_text: warm cream serif, letters grow from the bottom upward --- */
.ex-frost { padding: 8px 6px; }
.frost-line {
  font-family: var(--font-frost); font-weight: 400; font-size: 22px; line-height: 1.5;
  color: var(--frost-cream); margin: 0 0 10px;
  text-shadow: 0 0 18px rgba(255,232,184,0.18);
  opacity: 0; transform: translateY(14px);
  clip-path: inset(100% 0 0 0);
  animation: frost-grow .9s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes frost-grow {
  to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}

/* --- calendar_slice --- */
.ex-cal { border-top: 1px solid rgba(255,197,128,0.3); padding-top: 18px; }
.cal-date { font-family: var(--font-frost); font-size: 22px; color: var(--frost-cream); margin-bottom: 16px; }
.cal-events { display: flex; flex-direction: column; gap: 13px; }
.cal-row { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: baseline; }
.cal-time { font-family: var(--font-mono); font-size: 14px; color: var(--aurora-amber); letter-spacing: .02em; }
.cal-title { font-family: var(--font-body); font-weight: 300; font-size: 17px; color: var(--snow-bright); }
.cal-loc { font-family: var(--font-mono); font-size: 12px; color: rgba(201,213,232,0.45); margin-left: 6px; }

/* --- stub --- */
.ex-stub { border: 1px dashed rgba(201,213,232,0.22); padding: 28px 30px; text-align: center; }
.stub-kind { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--aurora-ice); }
.stub-msg { font-family: var(--font-frost); font-size: 20px; color: var(--frost-cream); margin: 12px 0 14px; }
.stub-wire { font-family: var(--font-mono); font-size: 11.5px; color: rgba(201,213,232,0.4); }
.stub-wire code { color: rgba(201,213,232,0.62); }

/* --- agent_progress: compact stack of live agent bars --- */
.ex-agents { width: min(420px, 90vw); padding: 4px 2px; }
.ag-head {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(201,213,232,0.5); margin-bottom: 14px;
}
.ag-list { display: flex; flex-direction: column; gap: 11px; }
.ag-row { --ag-hue: #7BFFB0; }
.ag-top {
  display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 9px;
  cursor: pointer; padding: 2px 0;
}
.ag-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ag-hue);
  box-shadow: 0 0 8px var(--ag-hue); animation: ag-pulse 2.4s ease-in-out infinite;
}
@keyframes ag-pulse { 0%,100%{opacity:.45} 50%{opacity:1} }
.ag-name { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--snow-bright); letter-spacing: .01em; }
.ag-status { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: color-mix(in oklch, var(--ag-hue) 78%, white); text-transform: lowercase; }
.ag-pct { font-family: var(--font-mono); font-size: 11px; color: rgba(201,213,232,0.55); min-width: 30px; text-align: right; }
.ag-track {
  margin-top: 6px; height: 3px; border-radius: 3px;
  background: rgba(201,213,232,0.12); overflow: hidden;
}
.ag-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, color-mix(in oklch, var(--ag-hue) 50%, transparent), var(--ag-hue));
  box-shadow: 0 0 10px var(--ag-hue);
  transition: width .3s cubic-bezier(.3,.7,.3,1);
  position: relative;
}
.ag-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: ag-sheen 1.8s linear infinite;
}
@keyframes ag-sheen { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.ag-done .ag-dot { animation: none; }
.ag-done .ag-fill::after { display: none; }
.ag-done .ag-status { color: rgba(201,213,232,0.4); }
.ag-row:hover .ag-name { color: #fff; }

/* expand: what the agent is doing */
.ag-detail {
  margin: 8px 0 2px 19px; padding: 10px 14px;
  border-left: 1px solid color-mix(in oklch, var(--ag-hue) 55%, transparent);
  animation: ag-open .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes ag-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ag-task { font-family: var(--font-body); font-weight: 300; font-size: 14px; color: var(--snow-bright); margin-bottom: 5px; }
.ag-desc { font-family: var(--font-frost); font-size: 13.5px; line-height: 1.5; color: rgba(244,239,227,0.72); margin-bottom: 9px; }
.ag-log { display: flex; flex-direction: column; gap: 3px; }
.ag-logline { font-family: var(--font-mono); font-size: 11px; color: rgba(201,213,232,0.5); letter-spacing: .01em; }
.ag-logline::before { content: "› "; color: var(--ag-hue); }
.ag-open .ag-top .ag-pct { color: var(--ag-hue); }

/* --- memory shelf --- */
#exhibit-shelf {
  position: fixed;
  right: 26px; top: 36%;
  z-index: 3;
  display: flex; flex-direction: column; gap: 14px;
  max-height: 30vh; overflow: hidden;
  pointer-events: auto;
}
.shelf-item {
  width: 200px; transform: scale(0.4); transform-origin: top right;
  opacity: 0.6; transition: opacity .3s ease, transform .3s ease;
  pointer-events: auto; cursor: pointer;
}
.shelf-item:hover { opacity: 0.85; }

/* --- dissolve particles --- */
.dissolve-particle {
  position: fixed; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, var(--aurora-ice) 55%, transparent 75%);
  pointer-events: none; z-index: 4;
}

/* ============================== FOUR PEAKS =============================== */
/* The mountains themselves are drawn in WebGL. This layer is just the summit
   lights, names, and hit areas, positioned by peaks.js onto the shader peaks. */
#peaks {
  position: fixed; inset: 0;
  z-index: 2;
  pointer-events: none;
}
.peak { position: absolute; inset: 0; }
.peak-hit {
  position: absolute;
  pointer-events: auto; cursor: pointer;
}
.peak-label {
  position: absolute; transform: translate(-50%, -100%);
  font-family: var(--font-frost); font-size: 17px; color: var(--frost-cream);
  white-space: nowrap; opacity: 0; transition: opacity .4s ease;
  text-shadow: 0 0 16px rgba(255,232,184,0.35); pointer-events: none;
}
.peak.hover .peak-label { opacity: 0.95; }

.summit {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  transform: translate(-50%, -50%);
  --summit-bright: 0.8;
  background: #fff;
  box-shadow: 0 0 calc(10px + 10px * var(--summit-bright)) var(--peak-hue),
              0 0 30px var(--peak-hue), 0 0 6px #fff;
  opacity: calc(0.7 + 0.3 * var(--summit-bright));
  transition: box-shadow .4s ease;
}
.peak.hover .summit {
  box-shadow: 0 0 26px var(--peak-hue), 0 0 60px var(--peak-hue), 0 0 10px #fff;
}

/* click-to-fly: a light bloom blossoming from the summit */
.peak-flash {
  position: fixed; width: 60px; height: 60px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0); opacity: 0;
  background: radial-gradient(circle, #fff 0%, var(--peak-hue) 38%, transparent 72%);
  z-index: 18; pointer-events: none; mix-blend-mode: screen;
  transition: transform 1.15s cubic-bezier(.55,0,.85,.45), opacity 1.15s ease;
}
.peak-flash.go { transform: translate(-50%, -50%) scale(46); opacity: 0.9; }

/* glint — Gap Planner: slow rotational glint ~1/min */
.summit-glint::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 26px; height: 1px; transform: translate(-50%,-50%);
  background: linear-gradient(90deg, transparent, var(--peak-hue), transparent);
  opacity: 0.5; animation: glint-rot 60s linear infinite;
}
@keyframes glint-rot { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* pulse — Trader: price-pulse every 3s */
.summit-pulse { animation: price-pulse 3s ease-in-out infinite; }
@keyframes price-pulse {
  0%, 86%, 100% { transform: translate(-50%,-50%) scale(1); }
  90% { transform: translate(-50%,-50%) scale(1.9); }
}

/* inbox — Organizer: dims/brightens with inbox count (--inbox) */
.summit-inbox { animation: inbox-breathe 4s ease-in-out infinite; }
@keyframes inbox-breathe {
  0%,100% { box-shadow: 0 0 10px var(--peak-hue); }
  50% { box-shadow: 0 0 calc(14px + 16px * var(--inbox, 0.4)) var(--peak-hue), 0 0 40px var(--peak-hue); }
}

/* firefly — BoarSale: slow firefly drift around summit */
.summit-firefly::after {
  content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--peak-hue); box-shadow: 0 0 8px var(--peak-hue);
  animation: firefly 9s ease-in-out infinite;
}
@keyframes firefly {
  0%   { transform: translate(-12px,-6px); opacity: .3; }
  25%  { transform: translate(10px,-12px); opacity: .9; }
  50%  { transform: translate(14px,4px);  opacity: .4; }
  75%  { transform: translate(-8px,8px);  opacity: .8; }
  100% { transform: translate(-12px,-6px); opacity: .3; }
}

/* ============================ CONVERSATION ============================== */
/* Cameron's words float up from below the snow line — footprints toward Sol */
#footprints {
  position: fixed; left: 0; right: 0; bottom: 30%;
  z-index: 4; display: flex; flex-direction: column-reverse;
  align-items: center; gap: 6px; pointer-events: none;
}
.footprint {
  font-family: var(--font-body); font-weight: 300; font-size: 21px;
  letter-spacing: 0.04em; color: var(--snow-bright);
  text-shadow: 0 0 22px rgba(201,213,232,0.4);
}

/* captured transcript while listening — cool cream, just above snow line */
#capture {
  position: fixed; left: 50%; bottom: 32%; transform: translateX(-50%);
  z-index: 4; max-width: 60vw; text-align: center;
  font-family: var(--font-body); font-weight: 300; font-size: 24px;
  letter-spacing: 0.03em; color: #E6EFE0;
  text-shadow: 0 0 26px rgba(180,236,255,0.4);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
#capture.show { opacity: 0.95; }

/* Sol's written record — frost on the snow line, letters form like ice */
#frost-replies {
  position: fixed; left: 0; right: 0; bottom: 28.5%;
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.frost-reply { display: inline-flex; flex-wrap: wrap; justify-content: center; max-width: 56vw; }
.frost-reply span {
  font-family: var(--font-frost); font-size: 26px; color: var(--frost-cream);
  text-shadow: 0 0 20px rgba(255,232,184,0.3);
  display: inline-block; opacity: 0; transform: translateY(10px);
  clip-path: inset(100% 0 0 0);
  animation: frost-grow .7s cubic-bezier(.2,.8,.2,1) forwards;
}

/* ----- type fallback ----- */
#type-box {
  position: fixed; left: 50%; bottom: 33%; transform: translateX(-50%) translateY(10px);
  z-index: 7; opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .35s ease;
}
#type-box.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
#type-input {
  width: 44vw; max-width: 560px;
  background: transparent; border: none;
  border-bottom: 1px solid rgba(201,213,232,0.3);
  padding: 10px 4px; text-align: center;
  font-family: var(--font-body); font-weight: 300; font-size: 24px; letter-spacing: .03em;
  color: var(--frost-cream); outline: none;
  text-shadow: 0 0 22px rgba(201,213,232,0.3);
}
#type-input::placeholder { color: rgba(201,213,232,0.32); }

/* night-side: cognition starfield caption */
#graph-title {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 5; text-align: center;
  font-family: var(--font-frost); font-size: 22px; color: var(--frost-cream);
  letter-spacing: 0.02em; text-shadow: 0 0 24px rgba(184,224,255,0.4);
  opacity: 0; transition: opacity 1.2s ease; pointer-events: none;
}
#graph-title.show { opacity: 0.85; }

/* aurora click target — top band, invisible */
#aurora-hit {
  position: fixed; top: 0; left: 0; right: 0; height: 42%;
  z-index: 2; pointer-events: auto; cursor: pointer;
}

/* `T` transcript drawer — slides from the right */
#transcript-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px;
  z-index: 26; background: rgba(7,11,26,0.92); backdrop-filter: blur(10px);
  border-left: 1px solid rgba(201,213,232,0.1);
  transform: translateX(100%); transition: transform .5s cubic-bezier(.2,.8,.2,1);
  padding: 34px 30px; overflow-y: auto;
}
#transcript-drawer.show { transform: translateX(0); }
.td-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(201,213,232,0.45); margin-bottom: 22px; }
.t-row { padding: 11px 0; border-bottom: 1px solid rgba(201,213,232,0.06); }
.t-who { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.t-sol .t-who { color: var(--aurora-jade); }
.t-cameron .t-who { color: var(--snow-deep); }
.t-text { font-family: var(--font-frost); font-size: 16px; color: rgba(244,239,227,0.85); line-height: 1.45; }
.t-empty { font-family: var(--font-frost); font-size: 16px; color: rgba(201,213,232,0.4); }
.t-empty kbd { font-family: var(--font-mono); }

/* ============================== OVERLAYS ================================ */
/* `?` keyboard help — a quiet cheat sheet, not a menu */
#key-help {
  position: fixed; inset: 0; z-index: 25;
  background: rgba(4,6,12,0.82); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s ease;
}
#key-help.show { display: flex; opacity: 1; }
.kh-panel { max-width: 560px; }
.kh-panel h2 {
  font-family: var(--font-body); font-weight: 200; font-size: 28px; letter-spacing: .04em;
  color: var(--frost-cream); margin-bottom: 26px;
}
.kh-row { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 9px 0; border-bottom: 1px solid rgba(201,213,232,0.08); }
.kh-key { font-family: var(--font-mono); font-size: 13px; color: var(--aurora-ice); letter-spacing: .04em; }
.kh-desc { font-family: var(--font-frost); font-size: 16px; color: rgba(244,239,227,0.78); }
.kh-section { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(201,213,232,0.4); margin: 22px 0 6px; }

/* Deep Mode candle chamber (5-tap-Sol) */
#deep-mode {
  position: fixed; inset: 0; z-index: 28; display: none;
  align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 60%, #1a1408 0%, #0a0a06 55%, #050507 100%);
  opacity: 0; transition: opacity .8s ease;
}
#deep-mode.show { display: flex; opacity: 1; }
.candle-room { width: min(620px, 86vw); text-align: center; }
.candle {
  width: 8px; height: 8px; border-radius: 50%; margin: 0 auto 40px;
  background: var(--frost-glow);
  box-shadow: 0 0 24px var(--aurora-amber), 0 0 60px rgba(255,197,128,0.5);
  animation: candle-flick 3s ease-in-out infinite; cursor: pointer;
}
@keyframes candle-flick { 0%,100% { opacity: .85; transform: scale(1);} 50% { opacity: 1; transform: scale(1.15);} }
.candle-title { font-family: var(--font-frost); font-size: 20px; color: #E9DCC0; margin-bottom: 26px; opacity: .8; }
.candle-input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(233,220,192,0.25);
  padding: 12px 2px; font-family: var(--font-body); font-weight: 300; font-size: 22px;
  color: #F0E6CC; outline: none; text-align: center;
}
.candle-hint { font-family: var(--font-mono); font-size: 11px; color: rgba(233,220,192,0.35); margin-top: 24px; letter-spacing: .08em; }

/* meteor (Mr.Monitor / email-worth-flagging) */
.meteor {
  position: fixed; z-index: 4; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px #fff, 0 0 14px var(--aurora-ice);
  pointer-events: none;
}
.meteor::after {
  content: ""; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora-ice), #fff);
}

/* lantern — an unflagged email pulses at the upper edge */
#lantern {
  position: fixed; top: 6%; right: 12%; z-index: 4;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--aurora-amber); box-shadow: 0 0 14px var(--aurora-amber), 0 0 34px rgba(255,197,128,0.5);
  opacity: 0; transition: opacity 1s ease; pointer-events: none;
  animation: lantern-breathe 5s ease-in-out infinite;
}
#lantern.show { opacity: 0.85; }
@keyframes lantern-breathe { 0%,100% { opacity: .4; } 50% { opacity: .9; } }

/* ============================================================================
   DEEP-PAGE BODIES  —  frost cards + rows for the live surfaces
   (deep-pages.js wires real brain data into these. Base .dp/.dp-row/.dp-card
   live in affordances.css; everything below ADDS the interactive frost layer.
   A.10: outline-only frost, single-hue accents, no glass fills, no modals.)
   ============================================================================ */

/* --- shared structural blocks ---------------------------------------------- */
.dp-body { margin-top: 4px; }
.dp-body + .dp-body { margin-top: 22px; }
.dp-meta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: rgba(201,213,232,0.72); margin-bottom: 18px;
  text-shadow: 0 1px 6px rgba(4,6,12,0.8);
}
.dp-stack { display: flex; flex-direction: column; gap: 14px; }

/* a faint section heading inside a body / column */
.dp-col-h {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(201,213,232,0.58);
  margin: 4px 0 10px; text-shadow: 0 1px 5px rgba(4,6,12,0.8);
}

/* the calm empty-state line (never a blank surface) */
.dp-quiet {
  font-family: var(--font-frost); font-size: 17px; line-height: 1.6;
  color: rgba(201,213,232,0.68); padding: 14px 0;
  text-shadow: 0 1px 8px rgba(4,6,12,0.85), 0 0 14px rgba(180,224,255,0.12);
}

/* --- row variants (base .dp-row in affordances.css) ------------------------ */
/* the trailing label + faint meta inside a row */
.dp-row-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-row-meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: rgba(201,213,232,0.58); flex: none; margin-left: auto; padding-left: 12px;
}
/* the current branch — brighter trunk */
.dp-row-trunk .dp-row-t { color: var(--snow-bright); font-weight: 400; }
.dp-row-trunk .dp-dot { box-shadow: 0 0 14px var(--c); }
/* queued/recent + stale rows read quieter */
.dp-row-dim { opacity: 0.62; }
.dp-row-stale { opacity: 0.5; }
.dp-row-stale .dp-row-t { color: rgba(201,213,232,0.6); }
/* tappable rows (memory shelf) lift on hover/focus */
.dp-row-tap { cursor: pointer; transition: color .2s ease, opacity .2s ease; }
.dp-row-tap:hover, .dp-row-tap:focus-visible { color: #fff; outline: none; }
.dp-row-tap:hover .dp-dot { box-shadow: 0 0 14px var(--c), 0 0 26px var(--c); }
.dp-row-open .dp-row-t { color: var(--frost-cream); }

/* --- two-column layout (persona room runs/lately, etc.) -------------------- */
.dp-col { flex: 1; min-width: 0; }

/* --- the "now" forge card (Mr.Fix hammering) ------------------------------- */
.dp-card-now {
  border-color: rgba(255,183,102,0.34);
  border-left: 2px solid var(--aurora-amber);
}
.dp-card-now .dp-card-t { color: var(--frost-cream); }

/* --- decision card + option chips (inbox / forge) -------------------------- */
.dp-decision { transition: opacity .42s ease, transform .42s cubic-bezier(.2,.8,.2,1), border-color .3s ease; }
.dp-chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--aurora-ice); cursor: pointer; user-select: none;
  padding: 3px 0; border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease, text-shadow .18s ease;
}
.dp-chip:hover, .dp-chip:focus-visible {
  color: #fff; border-bottom-color: var(--aurora-ice);
  text-shadow: 0 0 12px rgba(180,236,255,0.5); outline: none;
}
/* a frost confirmation line that replaces the chips on a decision */
.dp-confirm {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  color: var(--aurora-mint); text-shadow: 0 0 12px rgba(157,255,208,0.35);
}
.dp-card.decided { border-color: rgba(157,255,208,0.28); }
.dp-card.dp-card-out { opacity: 0; transform: translateY(-10px) scale(0.98); }

/* --- memory detail (expanded under a tapped row) -------------------------- */
.dp-mem-detail {
  border: none; border-left: 1px solid rgba(180,236,255,0.22);
  padding: 4px 0 16px 18px; margin: 0 0 8px 3px;
  animation: dp-mem-open .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes dp-mem-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dp-mem-body {
  font-family: var(--font-frost); font-size: 16px; line-height: 1.6;
  color: rgba(244,239,227,0.82); margin-bottom: 12px; white-space: pre-wrap;
}

/* ============================================================================
   PERSONA ROOM  —  /pulse/{id}: a tapped figure's room (status + runs + lately
   + frost-affordance controls). Tinted by --agent (set on .dp-room in JS).
   ============================================================================ */
.dp-room { --agent: var(--frost-cream); }
.room-head { margin-bottom: 30px; }
.room-name {
  font-family: var(--font-body); font-weight: 200; font-size: 44px;
  letter-spacing: -0.01em; line-height: 1.05; margin-bottom: 10px;
  text-shadow: 0 0 30px color-mix(in oklch, var(--agent) 45%, transparent);
}
.room-bio {
  font-family: var(--font-frost); font-size: 17px; line-height: 1.55;
  color: rgba(244,239,227,0.78); margin-bottom: 8px;
}
.room-status {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  color: color-mix(in oklch, var(--agent) 70%, white);
}

/* two columns: recent runs | lately (cognition). stack on narrow screens. */
.room-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 30px; }
@media (max-width: 560px) { .room-cols { grid-template-columns: 1fr; gap: 22px; } }

/* a single cognition line in "lately" */
.room-thought {
  font-family: var(--font-body); font-weight: 300; font-size: 14px;
  color: rgba(232,238,247,0.78); padding: 8px 0;
  border-bottom: 1px solid rgba(201,213,232,0.06); line-height: 1.4;
}

/* --- room controls (frost affordances, NOT a button grid) ----------------- */
.room-controls { display: flex; flex-direction: column; gap: 16px; }
.room-aff {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; cursor: pointer; user-select: none;
  transition: opacity .2s ease;
}
.room-aff.inert { cursor: default; opacity: 0.6; }
.room-aff-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  color: rgba(201,213,232,0.72); transition: color .18s ease;
}
.room-aff:not(.inert):hover .room-aff-label,
.room-aff:focus-visible .room-aff-label { color: var(--frost-cream); outline: none; }
.room-aff:focus-visible { outline: none; }

/* power: a flame that's lit (on) or banked (off) */
.room-flame {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--agent);
  box-shadow: 0 0 12px var(--agent), 0 0 26px color-mix(in oklch, var(--agent) 60%, transparent);
  transition: opacity .3s ease, box-shadow .3s ease;
}
.room-power.lit .room-flame { opacity: 1; animation: room-flame-flick 3s ease-in-out infinite; }
.room-power.banked .room-flame { opacity: 0.28; box-shadow: 0 0 6px var(--agent); animation: none; }
@keyframes room-flame-flick { 0%,100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }

/* run-loop / tend-fire ember */
.room-ember {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--agent, var(--aurora-amber));
  box-shadow: 0 0 10px var(--agent, var(--aurora-amber));
  transition: box-shadow .3s ease;
}
.room-tend .room-ember { background: var(--aurora-amber); box-shadow: 0 0 10px var(--aurora-amber); }
.room-loop.running .room-ember,
.room-tend.running .room-ember {
  animation: room-ember-work .7s ease-in-out infinite;
}
@keyframes room-ember-work { 0%,100% { box-shadow: 0 0 8px var(--agent, var(--aurora-amber)); } 50% { box-shadow: 0 0 18px var(--agent, var(--aurora-amber)), 0 0 34px var(--agent, var(--aurora-amber)); } }

/* talk strip: candle-input (from globals/components) + frost reply line */
.room-talk { flex-direction: column; align-items: stretch; gap: 10px; cursor: default; }
.room-input { width: 100%; font-size: 18px; text-align: left; }
.room-reply {
  font-family: var(--font-frost); font-size: 16px; line-height: 1.55;
  color: rgba(244,239,227,0.82); min-height: 1.2em;
  text-shadow: 0 0 14px rgba(255,232,184,0.14);
}
