/* Voir Labs theme (voirlabs.io): near-black, warm off-white, lavender. */
@font-face { font-family: Gilroy; src: url('assets/Gilroy-Medium.woff2') format('woff2'); font-display: swap; }
:root {
  --bg: #080809;
  --ink: #f3f1ed;
  --muted: #a9a4b0;
  --accent: #ddc8fc;
  --pink: #b490ff;
  --red: #c4a2e5;
  --paper: #f2f0ed;
  --glass: rgba(8, 8, 9, 0.74);
  --glass-border: #302d34;
  --serif: Georgia, 'Times New Roman', serif;
  --u: 9.6px;
  --sans: Gilroy, Arial, sans-serif;
  --pixel: var(--serif);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: var(--ink); }
body {
  font-family: var(--sans);
  background: var(--bg);
  min-height: 100dvh; overflow: hidden;
}
/* The show fills the whole window; the camera crops the office to fit. */
#stage { position: fixed; inset: 0; width: 100vw; height: 100dvh; background: var(--bg); overflow: hidden; }
#stage.paused #screen { filter: brightness(.55) saturate(.7); }
#screen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
#stage { --avw: max(32vw, 260px); }
#stage.side #screen, #stage.side #bubbles { right: auto; width: calc(100% - var(--avw)); }
/* Phones: the agent view is a bottom sheet; the scene keeps the top part. */
#stage.sheet #screen, #stage.sheet #bubbles { bottom: auto; height: 54%; }

/* speech bubbles */
#bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute; transform: translate(-50%, calc(-100% - var(--u) * 0.8));
  max-width: 38%; width: max-content;
  background: var(--paper); color: #151417;
  font-size: calc(var(--u) * 1.6); font-weight: 500; line-height: 1.35;
  padding: calc(var(--u) * .7) calc(var(--u) * 1.1);
  border-radius: 0;
  box-shadow: 0 calc(var(--u) * .4) calc(var(--u) * 1.6) rgba(0, 0, 0, .4);
  animation: pop .18s ease-out;
}
.bubble::after {
  content: ''; position: absolute; left: var(--tail, 50%); bottom: calc(var(--u) * -.5);
  width: calc(var(--u) * 1.1); height: calc(var(--u) * 1.1); background: inherit;
  transform: translateX(-50%) rotate(45deg); border-radius: 0;
}
.bubble b {
  display: inline-block; font-size: calc(var(--u) * .95); font-weight: 500; letter-spacing: .06em;
  color: #fff; padding: calc(var(--u) * .15) calc(var(--u) * .6); border-radius: 0;
  margin-bottom: calc(var(--u) * .35);
}
.bubble span { display: block; }
.bubble.think { background: #ece4fb; font-style: italic; border: 2px dashed rgba(120, 90, 180, .35); }
.bubble.ambient { opacity: .88; font-size: calc(var(--u) * 1.35); }
@keyframes pop { from { transform: translate(-50%, calc(-100% - var(--u) * 0.2)) scale(.9); opacity: 0; } }

/* HUD */
#hud {
  position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between;
  padding: calc(var(--u) * 1.2) calc(var(--u) * 1.4);
  font-size: calc(var(--u) * 1.1); font-weight: 500; letter-spacing: .04em; pointer-events: none;
}
.hud-left, .hud-right {
  display: flex; gap: calc(var(--u) * .8); align-items: center;
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); border-radius: 0;
  padding: calc(var(--u) * .55) calc(var(--u) * 1.1);
}
.live-dot { width: calc(var(--u) * .55); height: calc(var(--u) * .55); border-radius: 50%; background: var(--red); box-shadow: 0 0 calc(var(--u) * .8) var(--red); animation: pulse 1.6s ease-in-out infinite; }
.live { display: inline-flex; align-items: center; gap: calc(var(--u) * .5); color: var(--red); font-size: .85em; letter-spacing: .16em; margin-left: calc(var(--u) * .4); line-height: 1; }
/* trim the text box to the capitals so the dot sits on their centre line;
   the negative margin drops the trailing letter-spacing after the E */
.live-text { text-box: trim-both cap alphabetic; margin-right: -.16em; }
.mark { height: calc(var(--u) * 1.25); width: auto; filter: brightness(1.4); }
.show { font-size: 1.1em; }
.sep { width: 1px; height: calc(var(--u) * 1.2); background: var(--glass-border); }
#hud-ep { color: var(--muted); }
#hud-clock { font-variant-numeric: tabular-nums; }
@keyframes pulse { 50% { opacity: .35; } }

/* episode progress: a hairline along the bottom edge */
#progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); z-index: 5; pointer-events: none; }
#progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 8px rgba(221,200,252,.6); }

/* time skip between scenes: the office dims a little, a clock spins */
#timeskip {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none;
  display: flex; align-items: center; gap: calc(var(--u) * 1.2);
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); padding: calc(var(--u) * 1.1) calc(var(--u) * 1.8);
  box-shadow: 0 0 0 100vmax rgba(8, 8, 9, .28);
  animation: tsfade var(--ts-dur, 3.2s) ease-in-out both;
}
#timeskip svg { width: calc(var(--u) * 3.4); height: calc(var(--u) * 3.4); fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
#timeskip .m { transform-origin: 12px 12px; animation: tsspin .6s linear infinite; }
#timeskip .h { transform-origin: 12px 12px; animation: tsspin 7.2s linear infinite; }
#timeskip .ts-text { display: flex; flex-direction: column; gap: calc(var(--u) * .2); }
#timeskip b { font-size: calc(var(--u) * .95); font-weight: 500; letter-spacing: .2em; color: var(--accent); }
#timeskip-time { font-size: calc(var(--u) * 2.3); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes tsspin { to { transform: rotate(360deg); } }
@keyframes tsfade { 0% { opacity: 0; } 18%, 78% { opacity: 1; } 100% { opacity: 0; } }
#stage.paused #timeskip, #stage.paused #timeskip * { animation-play-state: paused; }

/* lower third */
#caption {
  position: absolute; left: calc(var(--u) * 2.5); bottom: calc(var(--u) * 6);
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: 0;
  padding: calc(var(--u) * 1) calc(var(--u) * 1.6) calc(var(--u) * 1) calc(var(--u) * 1.4); max-width: 70%;
  font-size: calc(var(--u) * 1.9); font-weight: 500; text-align: left;
  box-shadow: inset calc(var(--u) * .35) 0 0 var(--accent), 0 calc(var(--u) * .6) calc(var(--u) * 2) rgba(0,0,0,.35);
  animation: slide .3s ease-out;
}
#caption-label { display: block; font-size: calc(var(--u) * .9); font-weight: 500; letter-spacing: .12em; color: var(--accent); margin-bottom: calc(var(--u) * .3); }
#caption-label:empty { display: none; }
@keyframes slide { from { transform: translateX(-12px); opacity: 0; } }

/* confessional */
#confessional { position: absolute; inset: 0; animation: fadein .25s ease-out; }
.conf-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 9, .6); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.conf-backdrop::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 25% 60%, rgba(180,144,255,.22), transparent 70%), radial-gradient(50% 60% at 80% 30%, rgba(134,231,239,.12), transparent 70%); }
.conf-tag { position: absolute; top: calc(var(--u) * 2); left: calc(var(--u) * 2); font-size: calc(var(--u) * 1.1); font-weight: 500; letter-spacing: .14em; color: #151417; background: var(--accent); padding: calc(var(--u) * .5) calc(var(--u) * 1); border-radius: 0; display: flex; align-items: center; gap: calc(var(--u) * .6); }
.conf-tag::before { content: ''; width: calc(var(--u) * .6); height: calc(var(--u) * .6); border-radius: 50%; background: #151417; animation: pulse 1.2s infinite; }
/* dialogue box: the card centred low, the character standing on its top-left edge */
.conf-panel { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); width: min(72%, calc(var(--u) * 78)); }
#conf-figure { position: absolute; left: calc(var(--u) * 2); bottom: 100%; height: calc(var(--u) * 30); aspect-ratio: 336 / 364; filter: drop-shadow(0 0 calc(var(--u) * 3) rgba(180,144,255,.28)); }
#conf-img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
#conf-mouth { position: absolute; image-rendering: pixelated; }
.conf-text { position: relative; min-height: calc(var(--u) * 9); background: var(--paper); color: #151417; border-radius: 0; padding: calc(var(--u) * 1.8); font-size: calc(var(--u) * 2.1); font-weight: 500; line-height: 1.4; box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 4) rgba(0,0,0,.4); }
.conf-text b { display: block; font-size: calc(var(--u) * 1.15); font-weight: 700; letter-spacing: .08em; margin-bottom: calc(var(--u) * .8); text-transform: uppercase; }
@keyframes fadein { from { opacity: 0; } }

/* title card */
#titlecard { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: rgba(8, 8, 9, .86); gap: calc(var(--u) * 1.4); animation: fade 5s ease both; }
.tc-ep { font-size: calc(var(--u) * 1.2); font-weight: 500; letter-spacing: .3em; color: var(--accent); }
.tc-title { font-family: var(--pixel); font-size: calc(var(--u) * 5); font-weight: 500; padding: 0 calc(var(--u) * 4); color: var(--ink); letter-spacing: -.03em; font-weight: 400; }
@keyframes fade { 0% { opacity: 0; transform: scale(1.03); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* panels */
.panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: calc(var(--u) * 1.2); padding: calc(var(--u) * 3);
  background: rgba(8, 8, 9, .88);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 5;
}
.panel[hidden], [hidden] { display: none !important; }
.brand { font-family: var(--pixel); font-weight: 500; font-size: calc(var(--u) * 2.4); margin: 0; letter-spacing: -.02em; color: var(--ink); font-weight: 400; }
.small { color: var(--muted); font-size: calc(var(--u) * 1.5); margin: 0; }
.tiny { color: var(--muted); font-size: calc(var(--u) * 1.15); margin: 0; max-width: 70%; opacity: .85; }
.tiny a { color: var(--accent); }
h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; font-size: calc(var(--u) * 4.4); line-height: 1.05; margin: 0; text-wrap: balance; }
.next { font-size: calc(var(--u) * 1.4); margin: 0; color: var(--muted); }
.next span { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.row { display: flex; gap: calc(var(--u) * 1.2); }
.outcome { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 1.2); width: min(92%, calc(var(--u) * 70)); text-align: left; margin: calc(var(--u) * .6) 0; }
.outcome .col { background: var(--glass); border: 1px solid var(--glass-border); padding: calc(var(--u) * 1.2) calc(var(--u) * 1.5); }
.outcome b { display: block; font-weight: 500; font-size: calc(var(--u) * .95); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: calc(var(--u) * .6); }
.outcome ul { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--u) * .5); font-size: calc(var(--u) * 1.3); line-height: 1.4; color: #ded7e7; }
.outcome li { padding-left: calc(var(--u) * 1.6); position: relative; }
.outcome .col:first-child li::before { content: ''; position: absolute; left: 0; top: .45em; width: calc(var(--u) * .7); height: calc(var(--u) * .4); border-left: 2px solid #9be3b9; border-bottom: 2px solid #9be3b9; transform: rotate(-45deg); }
.outcome .col:last-child li::before { content: ''; position: absolute; left: .1em; top: .5em; width: calc(var(--u) * .5); height: calc(var(--u) * .5); border: 1.5px solid var(--muted); border-radius: 50%; }
.outcome li.none { color: var(--muted); font-style: italic; }
.outcome li.none::before { display: none; }
.btn {
  font-family: var(--sans); font-weight: 500; font-size: calc(var(--u) * 1.45);
  color: var(--ink); background: rgba(255,255,255,.08); border: 1px solid var(--glass-border);
  padding: calc(var(--u) * 1) calc(var(--u) * 2); cursor: pointer; border-radius: 0;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn.primary { background: var(--paper); color: #151417; border: 1px solid var(--paper); }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn.primary:hover:not(:disabled) { background: #d6c3ef; border-color: #d6c3ef; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn:focus-visible, .icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#archive-list { list-style: none; padding: 0; margin: 0; max-height: 60%; overflow: auto; width: min(90%, calc(var(--u) * 70)); text-align: left; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 0; }
#archive-list li + li { border-top: 1px solid var(--glass-border); }
#archive-list a { display: flex; align-items: center; gap: calc(var(--u) * 1.2); padding: calc(var(--u) * 1) calc(var(--u) * 1.4); color: var(--ink); text-decoration: none; font-size: calc(var(--u) * 1.6); font-weight: 500; }
#archive-list a:hover { background: rgba(255,255,255,.06); }
#archive-list .n { font-size: calc(var(--u) * 1); font-weight: 500; letter-spacing: .08em; color: var(--accent); min-width: calc(var(--u) * 9); }
#archive-list .t { display: flex; flex-direction: column; gap: .15em; min-width: 0; }
#archive-list .t small { color: var(--muted); font-size: .75em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#archive-list .d { color: #151417; background: var(--accent); margin-left: auto; font-size: calc(var(--u) * .85); letter-spacing: .14em; text-transform: uppercase; padding: .2em .6em; white-space: nowrap; align-self: center; }
#archive-list .d:empty { display: none; }

#transport { position: absolute; left: 0; bottom: 0; display: flex; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--glass-border); border-right: 1px solid var(--glass-border); z-index: 8; }
#controls { position: absolute; right: 0; bottom: 0; display: flex; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--glass-border); border-left: 1px solid var(--glass-border); z-index: 8; }
.icon {
  width: calc(var(--u) * 4.2); height: calc(var(--u) * 4.2); display: grid; place-items: center;
  background: transparent; color: #fff; border: 0; border-radius: 0; cursor: pointer; padding: 0;
}
.icon + .icon { border-left: 1px solid var(--glass-border); }
.icon svg { width: 46%; height: 46%; fill: currentColor; }
.icon:hover:not(:disabled) { background: rgba(255,255,255,.1); }
.icon:disabled { opacity: .4; cursor: default; }
.icon[aria-pressed="true"], .icon[aria-pressed="true"]:hover:not(:disabled) { background: var(--accent); color: #151417; }
#pp .i-pause, #pp.on .i-play { display: none; }
#pp.on .i-pause { display: inline; }
#mute .i-off, #mute.off .i-on { display: none; }
#mute.off .i-off { display: inline; }
/* Cover: today's episode, frozen behind a scrim, with the play button. */
#cover {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(var(--u) * 1.1); padding: calc(var(--u) * 3); text-align: center; cursor: pointer;
  background: radial-gradient(70% 70% at 50% 50%, rgba(8,8,9,.86) 0%, rgba(8,8,9,.6) 55%, rgba(8,8,9,.4) 100%);
  animation: fadein .35s ease-out;
}
#cover p, #cover h1 { margin: 0; }
#cover .by { font-size: calc(var(--u) * 1.15); color: var(--muted); margin-top: calc(var(--u) * 1.2); }
#cover .by a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: calc(var(--u) * .8); font-size: calc(var(--u) * 1); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.eyebrow .dot { width: calc(var(--u) * .55); height: calc(var(--u) * .55); border-radius: 50%; background: var(--red); box-shadow: 0 0 calc(var(--u) * 1.2) #aa81d6aa; }
#ns-title { font-family: var(--serif); font-weight: 400; font-size: calc(var(--u) * 5.2); line-height: 1.02; letter-spacing: -.035em; color: var(--ink); max-width: 22ch; text-wrap: balance; }
#ns-logline { color: #c0bac9; font-size: calc(var(--u) * 1.6); line-height: 1.5; max-width: 46ch; text-wrap: balance; }
#ns-meta { color: var(--muted); font-size: calc(var(--u) * 1.15); letter-spacing: .04em; }
#bigplay {
  position: relative; margin: calc(var(--u) * 1.4) 0 calc(var(--u) * .4); width: calc(var(--u) * 8.4); height: calc(var(--u) * 8.4);
  border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--paper); color: #151417;
  box-shadow: 0 calc(var(--u) * .8) calc(var(--u) * 3) rgba(0,0,0,.45), 0 0 calc(var(--u) * 5) rgba(170,129,214,.35);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, box-shadow .25s;
}
#bigplay svg { width: 40%; height: 40%; fill: currentColor; position: relative; display: block; }
#bigplay .ring { position: absolute; inset: calc(var(--u) * -.9); border-radius: 50%; border: 1px solid rgba(221,200,252,.45); animation: breathe 2.8s ease-in-out infinite; pointer-events: none; }
#bigplay:hover:not(:disabled) { transform: scale(1.06); background: #e6d8fb; box-shadow: 0 calc(var(--u) * .8) calc(var(--u) * 3) rgba(0,0,0,.45), 0 0 calc(var(--u) * 7) rgba(190,161,231,.6); }
#bigplay:active:not(:disabled) { transform: scale(.97); }
#bigplay:disabled { opacity: .45; cursor: wait; }
#bigplay:disabled .ring { animation: none; opacity: .3; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: .25; } }
/* Paused mid-episode: just the button over the dimmed scene. */
#cover.compact { background: rgba(8,8,9,.35); }
#cover.compact > :not(#bigplay) { display: none; }
#cover.closed #bigplay, #cover.closed #ns-meta { display: none; }
.av-src { display: block; color: var(--accent); font-size: .85em; margin: -.2em 0 .4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#archive-list a[aria-current] { background: rgba(221,200,252,.1); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .live-dot, .conf-tag::before { animation: none; }
  #bigplay .ring, #cover { animation: none; }
  #bigplay, #progress i, #av-tickets .bar i { transition: none; }
  #titlecard, .bubble, #caption, #confessional { animation: none; }
  #timeskip .m, #timeskip .h { animation: none; }
}
/* Phones held upright: fill the screen, the camera follows the action */
@media (max-aspect-ratio: 1/1) {
    .bubble { max-width: 70%; }
  .conf-panel { width: 88%; bottom: 6%; }
  #conf-figure { height: auto; width: 46%; }
  .tiny { max-width: 100%; }
  .show, .sep { display: none; }
  #cover:not(.compact) { background: rgba(8,8,9,.74); }
  .outcome { grid-template-columns: 1fr; }
  #ns-logline { font-size: calc(var(--u) * 2); }
  #caption { left: 4%; right: 4%; max-width: none; }
}

/* Agent view: what each autonomous agent is doing and thinking */
#agentview {
  position: absolute; top: calc(var(--u) * 5.2); right: 0; bottom: calc(var(--u) * 4.2);
  width: var(--avw); display: flex; flex-direction: column; gap: calc(var(--u) * .8);
  background: rgba(8, 8, 9, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border); border-radius: 0;
  padding: calc(var(--u) * 1.1); font-size: calc(var(--u) * 1.15); overflow: hidden; z-index: 5;
}
#agentview header { display: flex; align-items: baseline; gap: calc(var(--u) * .8); }
.av-title { font-weight: 500; letter-spacing: .14em; color: var(--accent); }
.av-sub { color: var(--muted); font-size: .9em; }
.av-close { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.6em; line-height: 1; cursor: pointer; }
.av-producer { background: rgba(255,255,255,.05); border-radius: 0; padding: calc(var(--u) * .7) calc(var(--u) * .9); color: #d9d4ec; line-height: 1.35; }
.av-producer b { display: block; font-size: .8em; letter-spacing: .12em; color: var(--pink); margin-bottom: .2em; }
.av-board { background: rgba(255,255,255,.05); border-radius: 0; padding: calc(var(--u) * .7) calc(var(--u) * .9); line-height: 1.3; }
.av-board b { display: block; font-size: .8em; letter-spacing: .12em; color: var(--accent); margin-bottom: .2em; }
.av-client { display: block; color: #b8b2d0; font-size: .9em; margin-bottom: .4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#av-tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: .35em; }
#av-tickets li { display: grid; grid-template-columns: auto 1fr auto; column-gap: .5em; align-items: baseline; --c: var(--muted); }
#av-tickets .id { font-weight: 500; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
#av-tickets .tt { color: #f1edff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#av-tickets .st { font-size: .8em; letter-spacing: .06em; color: var(--c); }
#av-tickets .bar { grid-column: 1 / -1; height: 3px; background: rgba(255,255,255,.08); border-radius: 0; overflow: hidden; margin-top: .15em; }
#av-tickets .bar i { display: block; height: 100%; background: var(--c); transition: width .6s ease; }
#av-tickets li.s-shipped .tt { color: #9be3b9; }
#av-tickets li.s-shipped .bar i { background: #3fd38a; }
#av-agents { display: grid; gap: calc(var(--u) * .6); }
.av-agent { border-left: 3px solid var(--c); background: rgba(255,255,255,.04); border-radius: 0; padding: calc(var(--u) * .6) calc(var(--u) * .8); line-height: 1.35; }
.av-agent .row { display: flex; align-items: center; gap: .5em; }
.av-agent .name { font-weight: 500; color: var(--c); letter-spacing: .06em; }
.av-agent .at, .av-agent .mood { color: var(--muted); font-size: .85em; }
.av-agent .mood { margin-left: auto; text-transform: uppercase; letter-spacing: .08em; }
.av-agent .goal { color: #f1edff; }
.av-agent .thought { color: #b8b2d0; font-style: italic; }
.av-log-title { font-size: .8em; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
#av-log { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; display: flex; flex-direction: column-reverse; }
#av-log li { flex-shrink: 0; padding: .25em 0; border-top: 1px solid rgba(255,255,255,.05); color: #c9c5cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#av-log li .t { color: var(--muted); margin-right: .5em; }
#av-log li .who { font-weight: 500; }
@media (max-aspect-ratio: 1/1) {
  #agentview { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 46%; border-radius: 0; padding-bottom: calc(var(--u) * 5.2); overflow-y: auto; }
  #av-log { flex: none; min-height: 7em; }
}

/* The archive opens above everything except the control bar. */
#archive { z-index: 7; }
