/* The app (revere/app.py), as drawn in the Claude Design canvas "Revere app (web)", direction A: the room where the
   person's agents sit (by day and by night, from their own clock), the feed as a sheet over it, the card's journey.
   The website's faces (Newsreader for headlines, Schibsted Grotesk, Fragment Mono for labels), paper, ink and
   Inxpanse's blue. On a phone one column with tabs at the bottom; on a computer the room at the left, the feed, and
   the card you opened. The page's CSP allows no inline style, so everything is here. */

@font-face { font-family: "Newsreader"; src: url("/app/fonts/newsreader.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/app/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("/app/fonts/fragment-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #F7F6F2; --card: #FFFFFF; --raised: #FBFAF7; --well: #F2F1EC; --bar: rgba(247, 246, 242, .94);
  --ink: #0C0D12; --ink2: #2C2F39; --ink3: #4A4E5C; --ink4: #6B6F7B; --ink5: #8A8D98;
  --line: #E6E3DA; --line2: #D6D3C8; --hair: #ECE9E1;
  --blue: #2B44FF; --blue-hover: #1A2FD6; --blue-text: #2B44FF; --sky: #EEF0FF; --sky-line: #C9D0FF;
  --ok: #1F7A45; --warn: #B25E09; --off: #9A988E; --danger: #B42318; --danger-soft: #FDECEA;
  --room-top: #F3F1EA; --room-bot: #EDE8DD; --floor: #E6E0D2; --floor-line: #DCD5C6;
  --win-frame: #E4DFD3; --win-a: #D8E2FF; --win-b: #EEF1FF; --bubble: #FFFFFF; --bubble-ink: #2C2F39; --bubble-line: #E6E3DA;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "Fragment Mono", ui-monospace, Menlo, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B0C11; --card: #15171E; --raised: #12141A; --well: #1C1F28; --bar: rgba(11, 12, 17, .92);
    --ink: #EEEDE7; --ink2: #D6D7DE; --ink3: #B3B6C2; --ink4: #9498A8; --ink5: #7C8091;
    --line: #262932; --line2: #3B3E4A; --hair: #20232B;
    --blue: #4A60FF; --blue-hover: #6476FF; --blue-text: #9AA6FF; --sky: #1A2150; --sky-line: #2E3A8C;
    --ok: #4CC27E; --warn: #F0A35E; --off: #70748A; --danger: #FF8A80; --danger-soft: #2A1515;
    --room-top: #33343B; --room-bot: #2C2D33; --floor: #3A3B42; --floor-line: #45464E;
    --win-frame: #3A3B42; --win-a: #3B4A7A; --win-b: #56679C; --bubble: #1C1F28; --bubble-ink: #D6D7DE; --bubble-line: #30333E;
    color-scheme: dark;
  }
}

/* At night in the person's own time zone (21:00 to 06:00) the page dims too, whatever the device's setting */
body.is-night {
  --paper: #0B0C11; --card: #15171E; --raised: #12141A; --well: #1C1F28; --bar: rgba(11, 12, 17, .92);
  --ink: #EEEDE7; --ink2: #D6D7DE; --ink3: #B3B6C2; --ink4: #9498A8; --ink5: #7C8091;
  --line: #262932; --line2: #3B3E4A; --hair: #20232B;
  --blue: #4A60FF; --blue-hover: #6476FF; --blue-text: #9AA6FF; --sky: #1A2150; --sky-line: #2E3A8C;
  --ok: #4CC27E; --warn: #F0A35E; --off: #70748A; --danger: #FF8A80; --danger-soft: #2A1515;
  color-scheme: dark;
}
body.is-night .fig .body, body.is-night .bust .body { stroke: rgba(255, 255, 255, .28); stroke-width: 1.2; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue-text); text-decoration: none; }
a:hover { color: var(--blue-hover); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
svg { flex: none; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 9; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }
.noscript { padding: 40px 20px; text-align: center; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink4); font-weight: 400; }
.muted { color: var(--ink4); }
.fine { font-size: 12.5px; color: var(--ink4); }
.loading, .empty { padding: 28px 20px; color: var(--ink4); font-size: 14px; }

/* ---------- frame: a phone */
.shell { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 17px; height: 18px; fill: currentColor; }
.brand span { font-weight: 650; font-size: 17px; letter-spacing: -.02em; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 8px 18px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--bar); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.round { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink3); display: inline-flex; align-items: center; justify-content: center; }
.round svg { width: 17px; height: 17px; }
.round[aria-current] { color: var(--ink); border-color: var(--ink3); }
.main { outline: none; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; border-top: 1px solid var(--line); background: var(--bar); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; color: var(--ink5); font-size: 11px; font-weight: 550; }
.tabs a svg { width: 22px; height: 22px; }
.tabs a[aria-current] { color: var(--ink); }
.badge { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font: 650 11px/18px var(--sans); justify-content: center; }
.tabs .badge { position: absolute; top: 4px; left: calc(50% + 6px); }

/* ---------- a tablet or a narrow window: the phone's column, centred */
@media (min-width: 700px) and (max-width: 1099px) {
  .main { max-width: 640px; margin: 0 auto; }
}

/* ---------- frame: a computer, the room at the left, the feed, the card you opened. From 1100 px (app.js WIDE):
   340 + at least 400 + at least 360, so the card opened is never squeezed. */
@media (min-width: 1100px) {
  .shell { display: grid; grid-template-columns: 340px minmax(400px, 520px) minmax(360px, 1fr); padding-bottom: 0; }
  .top, .tabs { display: none; }
  .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--well); display: flex; flex-direction: column; gap: 12px; padding: 14px 12px 16px; }
  .side-top { padding: 2px 6px; }
  .main { border-right: 1px solid var(--line); background: var(--card); min-height: 100vh; }
  body[data-view="agents"] .shell, body[data-view="account"] .shell { grid-template-columns: 340px minmax(0, 760px) 1fr; }
  body[data-view="agents"] .main, body[data-view="account"] .main { background: var(--paper); border-right: 0; padding: 0 24px 40px; }
  .pane { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--card); }
}
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--ink3); font-size: 14px; font-weight: 500; }
.side-nav a svg { width: 18px; height: 18px; color: var(--ink4); }
.side-nav a .badge { margin-left: auto; }
.side-nav a[aria-current] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(12, 13, 18, .06); }

/* ---------- the room */
.room { position: relative; overflow: hidden; height: 384px; background: linear-gradient(180deg, var(--room-top) 0%, var(--room-bot) 100%); }
.room.in-side { height: 392px; border-radius: 20px; border: 1px solid var(--line); }
.room.night { --room-top: #141826; --room-bot: #1A1F30; --floor: #202538; --floor-line: #2A3046; --win-frame: #262C40; --win-a: #0B1024; --win-b: #1B2346; --bubble: #222840; --bubble-ink: #E6E7EE; --bubble-line: #333A55; }
.room .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: var(--floor); border-top: 1px solid var(--floor-line); }
.room .window { position: absolute; right: 16px; top: 16px; width: 88px; height: 72px; border-radius: 10px; overflow: hidden; border: 3px solid var(--win-frame); background: linear-gradient(var(--win-a), var(--win-b)); }
.room .window::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--win-frame); }
.room.in-side .window { top: 74px; }
.moon { position: absolute; left: 14px; top: 12px; width: 16px; height: 16px; border-radius: 16px; box-shadow: -5px 3px 0 0 #F4EBC8; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 2px; background: #fff; animation: tw 3s ease-in-out infinite; }
.star.s0 { left: 52px; top: 10px; } .star.s1 { left: 66px; top: 36px; animation-delay: 1.2s; } .star.s2 { left: 24px; top: 46px; animation-delay: .6s; } .star.s3 { left: 60px; top: 20px; animation-delay: 2s; }
@keyframes tw { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
.greet { position: absolute; left: 18px; top: 14px; right: 118px; z-index: 2; }
.greet .hello { font: 400 27px/1.08 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.greet .sub { margin-top: 5px; font-size: 13px; line-height: 1.4; color: var(--ink4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.room.night .greet .hello { color: #EEEDE7; }
.room.night .greet .sub { color: #A9ADBD; }
.room.in-side .greet { right: 14px; }
.room.in-side .cast { left: 66px; }
.room.in-side .bubble { max-width: 112px; font-size: 11px; }
.room.in-side .who-tag { max-width: 112px; }
.shelf { position: absolute; left: 10px; bottom: 44px; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 58px; }
.shelf .logos { display: grid; grid-template-columns: repeat(2, 22px); gap: 4px; padding: 6px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(12, 13, 18, .06); min-height: 34px; }
.shelf p { display: flex; flex-direction: column; align-items: center; font: 400 9.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink4); text-align: center; }
.shelf p b { font-weight: 400; color: var(--ink2); }
.room.night .shelf p { color: #8D92A6; }
.room.night .shelf p b { color: #D6D7DE; }
.cast { position: absolute; left: 72px; right: 6px; bottom: 34px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-evenly; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 40px; }
.cast::-webkit-scrollbar { display: none; }
.empty-room { align-self: center; margin-bottom: 70px; max-width: 220px; font-size: 13.5px; color: var(--ink3); }
.spot { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.spot .group { display: flex; align-items: flex-end; gap: 2px; }
.spot .figure { display: block; line-height: 0; color: inherit; border-radius: 12px; }
.spot .figure .fig { display: block; }
.spot.s-off .figure { filter: grayscale(.7); opacity: .65; }
.bubble { position: relative; max-width: 144px; padding: 6px 10px; border-radius: 12px; background: var(--bubble); border: 1px solid var(--bubble-line); font: 500 11.5px/1.3 var(--sans); color: var(--bubble-ink); box-shadow: 0 2px 8px rgba(12, 13, 18, .07); text-align: center; overflow-wrap: anywhere; }
.bubble::after { content: ""; position: absolute; bottom: -5px; left: 50%; margin-left: -4px; width: 8px; height: 8px; background: var(--bubble); border-right: 1px solid var(--bubble-line); border-bottom: 1px solid var(--bubble-line); transform: rotate(45deg); }
.bubble b { font-weight: 650; }
.bubble.blue { background: var(--blue); border-color: var(--blue); color: #fff; animation: pulse 1.8s ease-out infinite; }
.bubble.blue::after { background: var(--blue); border-color: var(--blue); }
.bubble.green { color: #1F7A45; }
.bubble.warn { color: #B25E09; }
.bubble.quiet, .bubble.off { color: var(--ink4); }
.room.night .bubble.green { color: #6ED39A; }
.room.night .bubble.warn { color: #F0A35E; }
.who-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 600 11.5px var(--sans); color: var(--ink); white-space: nowrap; max-width: 150px; }
.who-tag span:last-child { overflow: hidden; text-overflow: ellipsis; }
.helpers { display: flex; align-items: flex-end; gap: 0; margin-left: -4px; }
.helper { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.helper .tiny { max-width: 74px; padding: 2px 6px; border-radius: 8px; background: var(--bubble); border: 1px solid var(--bubble-line); font-size: 10px; line-height: 1.25; color: var(--bubble-ink); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.helpers .plus { align-self: center; padding: 3px 7px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 650 11px var(--sans); color: var(--ink3); }
.prop { position: absolute; z-index: 0; line-height: 0; pointer-events: none; }
.prop.plant { right: 10px; bottom: 50px; }
.prop.lamp { left: 74px; bottom: 44px; }
.prop.lamp .glow { position: absolute; left: -90px; top: -70px; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 140, .42), rgba(255, 214, 140, 0)); opacity: 0; }
.room.night .prop.lamp .glow { opacity: 1; animation: lampb 5s ease-in-out infinite; }
@keyframes lampb { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
.wall .prop.picture { right: 116px; top: 26px; }
.wall .prop.clock { right: 30px; top: 100px; }
.room.in-side .wall .prop.picture { right: 118px; top: 84px; }
.room.in-side .wall .prop.clock { right: 34px; top: 158px; }
.shelf .prop.books { position: static; margin-bottom: -2px; order: -1; }
.prop.rug { left: 22%; right: 12%; bottom: 8px; height: 22px; border-radius: 50%; background: #D9CBB3; opacity: .7; }
.room.night .prop.rug { background: #2C3350; }
.fly { position: absolute; left: 0; top: 0; z-index: 3; width: 18px; height: 13px; border-radius: 3px; background: #fff; border: 1px solid #CFCBBF; box-shadow: 0 2px 6px rgba(12, 13, 18, .14); opacity: 0; animation: fly 5.6s cubic-bezier(.45, .05, .35, 1) infinite; }
.fly::before { content: ""; position: absolute; left: 3px; top: 3px; width: 9px; height: 2px; border-radius: 2px; background: var(--blue); }
.fly::after { content: ""; position: absolute; left: 3px; top: 7px; width: 11px; height: 2px; border-radius: 2px; background: #D6D3C8; }
@keyframes fly {
  0%, 6% { transform: translate(var(--x0, 0), var(--y0, 0)); opacity: 0; }
  12% { transform: translate(var(--x0, 0), var(--y0, 0)); opacity: 1; }
  36% { transform: translate(var(--xm, 0), var(--ym, 0)) rotate(-8deg); opacity: 1; }
  60% { transform: translate(var(--x1, 0), var(--y1, 0)); opacity: 1; }
  68%, 100% { transform: translate(var(--x1, 0), var(--y1, 0)); opacity: 0; }
}

/* the characters' motion: each loop is a state, never decoration only */
.bob { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.bounce { animation: bounce 1.6s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-5px); } 60% { transform: translateY(-1px); } }
.blink { animation: blink 4.5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.scroll { animation: scroll 7s cubic-bezier(.3, .1, .2, 1) infinite; }
@keyframes scroll { 0%, 12% { transform: translateY(0); } 22%, 40% { transform: translateY(-15px); } 50%, 66% { transform: translateY(-30px); } 76%, 92% { transform: translateY(-45px); } 100% { transform: translateY(-60px); } }
.thumb { animation: thumb 7s ease-in-out infinite; }
@keyframes thumb { 0%, 12%, 40%, 66%, 92% { transform: translateY(0); } 17%, 45%, 71%, 96% { transform: translateY(-6px); } }
.wave { animation: wave 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes wave { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.type1 { animation: type 1.1s steps(2) infinite; } .type2 { animation: type 1.1s steps(2) infinite .55s; }
@keyframes type { 0% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.lines { animation: lines 2.4s steps(6) infinite; }
@keyframes lines { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.steam { animation: steam 3s ease-in-out infinite; opacity: 0; }
@keyframes steam { 0% { transform: translateY(2px); opacity: 0; } 40% { opacity: .7; } 100% { transform: translateY(-8px); opacity: 0; } }
.ask-q { animation: askq 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes askq { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 68, 255, .45); } 70% { box-shadow: 0 0 0 10px rgba(43, 68, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 68, 255, 0); } }
.ring { display: inline-flex; border-radius: 999px; animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(43, 68, 255, .5); } 75% { box-shadow: 0 0 0 8px rgba(43, 68, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 68, 255, 0); } }
.dots::after { content: ""; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
body.calm .bob, body.calm .scroll, body.calm .thumb { animation-duration: 9s; }
body.calm .bounce, body.calm .wave, body.calm .type1, body.calm .type2 { animation-duration: 3.2s; }
body.calm .fly { animation-duration: 9s; }
body.still .room *, body.still .mini-room *, body.still .preview *, body.still .chips *, body.still .gate-fig * { animation: none !important; }
body.still .fly { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } .fly { display: none; } }

/* presence chips under the room, on a computer */
.chips { display: flex; flex-direction: column; gap: 8px; }
.pchip { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.pchip:hover { color: var(--ink); border-color: var(--line2); }
.pchip.blue { border-color: var(--sky-line); background: var(--sky); }
.pchip .t { display: flex; flex-direction: column; min-width: 0; }
.pchip .t b { font-size: 13px; font-weight: 650; }
.pchip .t > span { font-size: 12px; color: var(--ink4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchip .t b + span b { font-weight: 600; color: var(--ink3); }
.pchip.blue .t > span { color: var(--blue-text); font-weight: 600; }
.pchip.warn .t > span { color: var(--warn); }
.pchip.green .t > span { color: var(--ok); }
.bust { display: block; }
@media (prefers-color-scheme: dark) { .fig .body, .bust .body { stroke: rgba(255, 255, 255, .28); stroke-width: 1.2; } }
.room.night .fig .body { stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; }

/* ---------- the hand-off */
.handoff { position: relative; z-index: 3; margin: -26px 12px 0; padding: 14px 14px 12px; border-radius: 18px; background: var(--card); box-shadow: 0 18px 40px rgba(12, 13, 18, .16), 0 2px 6px rgba(12, 13, 18, .07); display: flex; flex-direction: column; gap: 9px; }
.handoff .tail { position: absolute; top: -7px; left: 70%; width: 14px; height: 14px; background: var(--card); transform: rotate(45deg); border-radius: 2px; }
.handoff .hd { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink3); }
.handoff .hd b { color: var(--ink); font-weight: 650; }
.handoff .hd time { margin-left: auto; color: var(--ink5); }
.handoff .title { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: 450 19px/1.25 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.handoff .sub { font-size: 13.5px; color: var(--ink3); }
.handoff .src { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink4); }
.handoff .foot { font-size: 11.5px; color: var(--ink4); text-align: center; }
.pane-needs .handoff, .side .handoff { margin: 0; box-shadow: 0 1px 2px rgba(12, 13, 18, .06); border: 1px solid var(--sky-line); }
.pane-needs .handoff .tail { display: none; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.handoff .acts .btn.go { flex: 1; }

/* ---------- buttons */
.btn { height: 36px; padding: 0 15px; border-radius: 10px; font: 600 13.5px var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; border: 1px solid var(--line2); background: var(--card); color: var(--ink); white-space: nowrap; }
.btn:hover { color: var(--ink); border-color: var(--ink4); }
.btn svg { width: 15px; height: 15px; }
.btn.go { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.go:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn.q { border-color: transparent; background: transparent; color: var(--ink3); }
.btn.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }
.linky { border: 0; background: none; padding: 0; color: var(--blue-text); font: inherit; font-weight: 500; cursor: pointer; }
.linky.strong { font-weight: 650; }
.out { display: inline-flex; align-items: center; gap: 4px; font-weight: 550; }
.out svg { width: 13px; height: 13px; }

/* ---------- the feed */
.sheet { position: relative; z-index: 2; margin-top: 14px; min-height: 60vh; background: var(--card); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px rgba(12, 13, 18, .06); }
.sheet.over { margin-top: -22px; }
.room + .sheet.over .feed-head { border-radius: 24px 24px 0 0; }
.sheet.flat { margin: 0; border-radius: 0; box-shadow: none; min-height: 100vh; }
.feed-head { position: sticky; top: 54px; z-index: 3; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 12px; background: var(--raised); border-bottom: 1px solid var(--hair); border-radius: 24px 24px 0 0; }
.sheet.flat .feed-head { top: 0; border-radius: 0; padding: 22px 22px 14px; }
.fh-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.feed-head h1 { font: 400 30px/1 var(--serif); letter-spacing: -.025em; margin-top: 6px; }
.feed-head .count { font-size: 12.5px; color: var(--ink4); text-align: right; white-space: nowrap; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--well); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 0; background: none; padding: 6px 10px; border-radius: 8px; font: 500 12.5px var(--sans); color: var(--ink3); display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; cursor: pointer; }
.seg button span { color: var(--ink5); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(12, 13, 18, .08); }
.seg button.blue span { color: var(--blue-text); font-weight: 650; }
.day h2 { display: flex; justify-content: space-between; padding: 16px 22px 8px; }
.row { position: relative; display: flex; gap: 12px; width: 100%; padding: 13px 18px 13px 22px; border: 0; border-bottom: 1px solid var(--hair); background: none; text-align: left; cursor: pointer; }
.row:hover { background: var(--raised); }
.row.sel { background: var(--well); }
.row .dotn { position: absolute; left: 9px; top: 22px; width: 6px; height: 6px; border-radius: 6px; background: var(--blue); }
.row .b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.l1 { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink4); white-space: nowrap; min-width: 0; }
.l1 b { font-weight: 600; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; }
.l1 time { margin-left: auto; font-size: 12px; color: var(--ink5); }
.fh { flex: none; padding: 1px 6px; border-radius: 5px; background: var(--sky); color: var(--blue-text); font-size: 10.5px; font-weight: 650; }
.hl { font: 450 16.5px/1.3 var(--serif); letter-spacing: -.005em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.relay { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink3); margin-top: 1px; min-width: 0; }
.relay .wire { flex: none; width: 18px; height: 1px; background: var(--line2); }
.relay .who { flex: none; white-space: nowrap; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.relay .st { min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 550; white-space: nowrap; overflow: hidden; }
.relay .st > span { overflow: hidden; text-overflow: ellipsis; }
.relay .st::before { content: ""; width: 7px; height: 7px; border-radius: 7px; background: currentColor; flex: none; }
.s-wait { color: var(--blue-text); } .s-done { color: var(--ok); } .s-told { color: var(--ink3); } .s-pass { color: var(--ink5); }
.s-work { color: var(--blue-text); } .s-read { color: #19A37A; } .s-sent { color: var(--ink4); } .s-late { color: var(--warn); }
.s-pass::before, .s-sent::before { background: transparent !important; border: 1.5px solid currentColor; }
.s-work::before { animation: pulse 1.6s ease-out infinite; }
.more { display: block; width: calc(100% - 44px); margin: 16px 22px 28px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--blue-text); font-weight: 600; cursor: pointer; }
.slept { margin: 14px 16px 4px; padding: 16px; border-radius: 18px; background: #161B2B; color: #EEEDE7; display: flex; flex-direction: column; gap: 10px; }
.slept .mono { color: #9498A8; }
.slept h3 { font: 400 20px/1.25 var(--serif); letter-spacing: -.01em; }
.slept .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slept .row3 div { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.slept .row3 b { display: block; font: 400 22px/1 var(--serif); }
.slept .row3 span { font-size: 11.5px; color: #B3B6C2; }

/* logos: a source's site's own icon, an agent platform's; an initial when a site has none */
.logo, .slogo, .av { flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.logo { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); margin-top: 1px; }
.logo img { width: 20px; height: 20px; object-fit: contain; }
.logo.lg { width: 38px; height: 38px; border-radius: 10px; }
.logo.lg img { width: 26px; height: 26px; }
.slogo { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--hair); }
.slogo img { width: 16px; height: 16px; object-fit: contain; }
.av { width: 20px; height: 20px; border-radius: 999px; border: 1px solid var(--line); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av svg { width: 12px; height: 12px; color: #0C0D12; }
.av.you { background: var(--blue); border-color: var(--blue); }
.av.you svg { color: #fff; }
.letter { font: 700 11px var(--sans); color: #fff; border: 0; }
.logo.letter { font-size: 12.5px; }
.logo.lg.letter { font-size: 16px; }
.letter.t0 { background: #2C2F39; } .letter.t1 { background: #2B44FF; } .letter.t2 { background: #C2410C; }
.letter.t3 { background: #0F766E; } .letter.t4 { background: #7A5BA8; } .letter.t5 { background: #B9812A; }

/* ---------- the card you opened, and the pane beside the feed */
.pane-needs, .pane-empty { padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.pane-empty { padding-top: 80px; color: var(--ink4); }
.serif-big { font: 400 30px/1.1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.pane-hint { font-size: 13.5px; color: var(--ink4); }
.opened { display: flex; flex-direction: column; gap: 18px; padding: 18px 18px 40px; max-width: 680px; }
@media (min-width: 1100px) { .opened { padding: 28px 36px 48px; } }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink3); font-weight: 550; font-size: 14px; }
.back svg { width: 18px; height: 18px; }
.src-head { display: flex; align-items: center; gap: 10px; }
.src-head .who { flex: 1; min-width: 0; }
.src-head .n { font-weight: 600; font-size: 14px; }
.src-head .m { font-size: 12.5px; color: var(--ink4); }
.serif-title { font: 400 30px/1.12 var(--serif); letter-spacing: -.02em; }
@media (min-width: 1100px) { .serif-title { font-size: 34px; } }
.quote { position: relative; padding: 2px 0 2px 26px; font: italic 400 18.5px/1.45 var(--serif); color: var(--ink2); }
.quote::before { content: "\201C"; position: absolute; left: 0; top: -6px; font: 400 40px/1 var(--serif); color: var(--blue); }
.facts { display: flex; flex-direction: column; gap: 6px; padding-left: 2px; font-size: 14px; color: var(--ink2); }
.facts li::before { content: "·"; margin-right: 8px; color: var(--ink5); }
.why { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--well); font-size: 14px; color: var(--ink2); }
.why b { font-weight: 600; }
.journey { display: flex; flex-direction: column; gap: 14px; }
.tl { position: relative; display: flex; flex-direction: column; }
.ev { position: relative; display: flex; gap: 12px; padding-bottom: 18px; }
.ev:last-child { padding-bottom: 0; }
.ev::before { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--line); }
.ev:last-child::before { display: none; }
.ev .ic { width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.rv { width: 28px; height: 28px; border-radius: 999px; background: var(--well); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.rv svg { width: 13px; height: 14px; fill: currentColor; }
.why .rv { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.why .rv svg { width: 11px; height: 12px; }
.ev .av.you { width: 28px; height: 28px; }
.ev .av.you svg { width: 15px; height: 15px; }
.agent-dot { width: 28px; height: 28px; border-radius: 999px; background: var(--well); border: 1px solid var(--line); overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.ev .tx { flex: 1; min-width: 0; padding-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.ev .tx .h { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; color: var(--ink3); }
.ev .tx .h b { font-weight: 600; color: var(--ink); }
.ev .tx .h b.blue { color: var(--blue-text); }
.ev .tx .h b.warn { color: var(--warn); }
.ev .tx .h time { margin-left: auto; font-size: 12px; color: var(--ink5); white-space: nowrap; }
.said { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.made { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); font-size: 13.5px; overflow-wrap: anywhere; }
.ask { border: 1px solid var(--sky-line); background: var(--sky); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ask p { font-size: 14px; color: var(--ink2); }
.ask .fine { font-size: 12.5px; color: var(--ink4); }
.bar { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--hair); }

/* ---------- views with a head: agents, account */
.head { display: flex; flex-direction: column; gap: 6px; padding: 22px 18px 14px; }
.head h1 { font: 400 32px/1.05 var(--serif); letter-spacing: -.025em; }
.head .lede { font-size: 14.5px; color: var(--ink3); max-width: 560px; }
@media (min-width: 1100px) { .head { padding: 30px 0 16px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.agent-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px 16px; margin: 0 12px 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; scroll-margin-top: 70px; }
@media (min-width: 1100px) { .agent-card { margin: 0 0 14px; } }
.mini-room { position: relative; height: 176px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, var(--room-top), var(--room-bot)); display: flex; align-items: flex-end; justify-content: center; }
.mini-room.night { --room-top: #141826; --room-bot: #1A1F30; --floor: #202538; --floor-line: #2A3046; }
.mini-room .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: var(--floor); border-top: 1px solid var(--floor-line); }
.mini-room .figure { position: relative; margin-bottom: 6px; line-height: 0; }
.agent-card .info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.agent-card .nm { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.agent-card h2 { font: 400 24px/1.1 var(--serif); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; }
.agent-card .plat { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink4); }
.agent-card .now { font-size: 13.5px; color: var(--ink2); }
.agent-card .now.blue { color: var(--blue-text); font-weight: 600; }
.agent-card .now.warn { color: var(--warn); }
.agent-card .now.green { color: var(--ok); }
.agent-card .now.off, .agent-card .now.quiet { color: var(--ink4); }
.agent-card .note { font-size: 13px; color: var(--warn); }
.agent-card .out { font-size: 13px; }
.held, .week, .agent-card .cap, .agent-card .reads { grid-column: 1 / -1; }
.held { display: flex; flex-direction: column; gap: 8px; }
.held ul { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.held li { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--hair); font-size: 13.5px; }
.held li:first-child { border-top: 0; }
.held .w { flex: none; font-size: 12px; color: var(--ink4); }
.held .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); font-size: 15px; }
.held time { font-size: 12px; color: var(--ink5); }
.week { display: flex; flex-direction: column; gap: 8px; }
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 84px; }
.bars .col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bars .stack { flex: 1; display: flex; flex-direction: column-reverse; gap: 1px; border-radius: 4px; overflow: hidden; background: var(--well); }
.bars .col > span { text-align: center; font: 400 10.5px var(--mono); color: var(--ink5); }
.bars i { display: block; min-height: 2px; }
.k-done { background: #2E9E5E; } .k-prep { background: var(--blue); } .k-told { background: #A9ADB8; } .k-pass { background: #D6D2C6; } .k-open { background: #F0C38E; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.legend .sent { color: var(--ink5); }
.agent-card .cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--ink2); }
.step { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 10px; background: var(--well); }
.step button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink2); }
.step button svg { width: 16px; height: 16px; }
.step button:hover:not(:disabled) { background: var(--card); }
.step output { min-width: 26px; text-align: center; font-weight: 650; }
.agent-card .reads { font-size: 12.5px; color: var(--ink4); }
.card.add { display: flex; align-items: center; gap: 12px; margin: 0 12px 14px; padding: 14px; color: var(--ink); border-style: dashed; }
@media (min-width: 1100px) { .card.add, .roomcard { margin: 0 0 14px !important; } }
.plusbox { width: 40px; height: 40px; border-radius: 12px; background: var(--well); display: inline-flex; align-items: center; justify-content: center; color: var(--ink3); }
.plusbox svg { width: 18px; height: 18px; }
.card.add .what { display: flex; flex-direction: column; }
.card.add .what b { font-weight: 650; }
.card.add .what span { font-size: 13px; color: var(--ink4); }
.roomcard { margin: 0 12px 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.roomcard h2 { font: 400 22px/1.1 var(--serif); letter-spacing: -.02em; }
.roomcard .muted { font-size: 13.5px; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.tg { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font: 550 13px var(--sans); cursor: pointer; color: var(--ink2); }
.tg.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.motion { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink2); }

/* ---------- dressing an agent */
.dresser { width: min(430px, 100vw); max-height: min(860px, 100dvh); padding: 0; border: 0; border-radius: 26px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(12, 13, 18, .3); overflow: auto; }
.dresser::backdrop { background: rgba(12, 13, 18, .45); }
@media (max-width: 520px) { .dresser { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 26px 26px 0 0; } }
.dress { display: flex; flex-direction: column; }
.dress-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 0; }
.dress-top .linky { font-size: 15px; color: var(--ink); }
.dress-top .linky.strong { color: var(--blue-text); }
.preview { height: 270px; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(120% 90% at 50% 100%, var(--room-bot), var(--room-top) 70%); padding-bottom: 18px; margin-top: 10px; }
.dress-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 22px; }
.nameline { display: flex; align-items: center; gap: 10px; }
.nameline .nm { flex: 1; min-width: 0; }
.name-in { width: 100%; border: 0; border-bottom: 1px solid var(--line2); background: transparent; color: var(--ink); font: 400 26px/1.2 var(--serif); letter-spacing: -.02em; padding: 2px 0 4px; outline: none; }
.name-in:focus { border-bottom-color: var(--blue); }
.nameline .muted { font-size: 12px; margin-top: 4px; }
.ctabs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--well); }
.ctabs button { flex: 1; border: 0; background: none; padding: 7px 0; border-radius: 9px; font: 500 13px var(--sans); color: var(--ink3); cursor: pointer; }
.ctabs button.on { background: var(--card); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(12, 13, 18, .08); }
.opts { min-height: 150px; display: flex; flex-direction: column; gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font: 500 11.5px var(--sans); color: var(--ink3); cursor: pointer; }
.opt.on { border: 2px solid var(--blue); padding: 7px 3px 5px; background: var(--sky); color: var(--ink); font-weight: 650; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; padding: 6px 2px; }
.sw { width: 38px; height: 38px; border-radius: 999px; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line2); cursor: pointer; padding: 0; }
.sw.on { box-shadow: 0 0 0 2.5px var(--blue); }
.c-blue { background: #2B44FF; } .c-ink { background: #2C2F39; } .c-mustard { background: #F2B33D; } .c-coral { background: #EF6B4F; }
.c-sage { background: #7FB59A; } .c-sky { background: #8FB4FF; } .c-plum { background: #7A5BA8; } .c-paper { background: #EFE8DA; }
.f-cream { background: #FFF8EE; } .f-sand { background: #F6DCC0; } .f-tan { background: #D9A77C; } .f-deep { background: #8E5B3E; }

/* ---------- account */
.group { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 18px; }
@media (min-width: 1100px) { .group { padding: 0 0 18px; } }
.card.list { display: flex; flex-direction: column; overflow: hidden; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--hair); }
.line:first-child { border-top: 0; }
.line .mark { width: 22px; height: 22px; }
.line .what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.line .what b { font-weight: 600; }
.line .what span { font-size: 13px; color: var(--ink4); }
.confirm { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; background: var(--danger-soft); font-size: 13.5px; }
.note { padding: 4px 18px 30px; font-size: 13px; color: var(--ink4); }
@media (min-width: 1100px) { .note { padding: 4px 0 30px; } }

/* ---------- signed out */
.gate { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 18px; }
.gate .box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.gate-fig { display: flex; justify-content: center; padding: 8px 0 0; }
.gate h1 { font: 400 34px/1.05 var(--serif); letter-spacing: -.025em; }
.gate .lede { color: var(--ink3); }
.gate .note { padding: 10px 12px; border-radius: 12px; background: var(--well); color: var(--ink2); }
.ways { display: flex; flex-direction: column; gap: 10px; }
.way { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font-weight: 600; }
.way:hover { color: var(--ink); border-color: var(--ink4); }
.way svg { width: 20px; height: 20px; }

/* ---------- toast */
.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 9; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 24px); padding: 11px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: 0 10px 30px rgba(12, 13, 18, .25); }
.toast button { border: 0; background: none; color: #9AA6FF; font-weight: 650; cursor: pointer; padding: 0; }
@media (min-width: 1100px) { .toast { bottom: 28px; } }

/* ---------- staging (revere/staging.py): a copy of the data, and nothing leaves */
body[data-staging]::before { content: "Staging: a copy of Revere's data. Nothing is sent to agents."; display: block; position: sticky; top: 0; z-index: 20; padding: 5px 12px; background: #F2C14E; color: #0C0D12; font: 600 12px/1.4 var(--sans); text-align: center; }
