/* ThruSite HQ. The night office: warm charcoal, ThruSite's sun orange, smoked glass. Functional first; the light behind
   the glass (static/sky, Rust + WebGPU) is the one spectacular thing. Phone first. */
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #121110; --ink: #eeeae3; --ink-2: #bdb5a9; --ink-3: #8a8276;
  --stone-rgb: 238, 234, 227; --sun: #ec6a1e; --sun-hot: #f27c35; --sun-rgb: 236, 106, 30; --ok: #93c47d; --bad: #e0573b;
  --line: rgba(var(--stone-rgb), .08); --line-2: rgba(var(--stone-rgb), .15);
  --font: "Manrope", system-ui, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --lift: 0 1px 1px rgba(0,0,0,.3), 0 10px 22px rgba(0,0,0,.34), 0 26px 56px rgba(0,0,0,.36);
  --rim: inset 0 1px 0 rgba(255,244,228,.13), inset 0 -1px 0 rgba(255,244,228,.03);
  --glass-tint: rgba(29, 27, 24, .7);
  --glass: linear-gradient(180deg, rgba(255,248,236,.055), rgba(255,248,236,.012) 46%), var(--glass-tint);
  --blur: blur(18px) saturate(1.15);
}
html[data-sky="on"] { --glass-tint: rgba(26, 24, 21, .56); }
/* the sky draws rim light just outside each glass panel: dark outer shadows would paint over it */
html[data-sky="on"] .team, html[data-sky="on"] .pulse, html[data-sky="on"] .composer { box-shadow: var(--rim); }
@media (max-width: 899px) { html[data-sky="on"] .pulse { box-shadow: var(--rim), var(--lift); } }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid rgba(var(--sun-rgb), .9); outline-offset: 3px; }
h2, h3 { margin: 0; }

/* the night: a CSS fallback under the Rust sky (and the whole look where WebGPU is off) */
.deep { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-color: var(--bg);
  background-image: radial-gradient(90vmax 38vmax at 50% 118%, rgba(var(--sun-rgb), .17), rgba(var(--sun-rgb), .05) 45%, transparent 72%),
                    radial-gradient(50vmax 34vmax at 12% -6%, rgba(var(--stone-rgb), .05), transparent 70%),
                    radial-gradient(40vmax 40vmax at 96% 30%, rgba(120, 72, 40, .08), transparent 70%); }
html[data-sky="on"] .deep { opacity: 0; transition: opacity .8s ease; }
.sky { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; display: block; }

/* the mark + wordmark */
.wm { white-space: nowrap; }
.wm b { font-weight: 760; letter-spacing: -.01em; }
.wm span { margin-left: .34em; font-weight: 300; font-size: .8em; letter-spacing: .16em; color: var(--sun-hot); }
.mark { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; color: var(--ink);
  border: 1px solid rgba(var(--stone-rgb), .22); box-shadow: 0 0 22px rgba(var(--sun-rgb), .12), inset 0 0 14px rgba(var(--sun-rgb), .08); }
.mark svg { width: 20px; height: 20px; }
.mark.big { width: 78px; height: 78px; box-shadow: 0 0 52px rgba(var(--sun-rgb), .16), inset 0 0 22px rgba(var(--sun-rgb), .1); }
.mark.big svg { width: 42px; height: 42px; }

/* pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 11px; height: 50px; padding: 0 26px; border-radius: 999px;
  border: 1px solid rgba(var(--stone-rgb), .16); background: var(--glass); box-shadow: var(--rim), var(--lift); color: var(--ink);
  font: 650 15px/1 var(--font); text-decoration: none; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: border-color .25s ease, box-shadow .25s ease; }
.pill:hover { border-color: rgba(var(--sun-rgb), .45); box-shadow: var(--rim), var(--lift), 0 0 26px rgba(var(--sun-rgb), .14); }
.pill .g { width: 19px; height: 19px; flex: none; }
.pill.quiet { height: 32px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: none; box-shadow: none;
  border-color: var(--line-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
.pill.quiet:hover { color: var(--ink); border-color: rgba(var(--sun-rgb), .45); }
.pill.small { height: 30px; padding: 0 14px; font-size: 13px; box-shadow: var(--rim); }
.pill:disabled { opacity: .5; cursor: default; }

/* the door */
body.at-door { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px; }
.door { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-top: -6vh; }
.door h1 { margin: 6px 0 22px; font-size: clamp(32px, 9vw, 46px); font-weight: 400; line-height: 1.1; }
.door .lead { margin: -4px 0 0; font-size: 18px; font-weight: 600; }
.door .sub { margin: -6px 0 8px; color: var(--ink-3); font-size: 14px; max-width: 44ch; overflow-wrap: anywhere; }
.door .lead + .pill, .door .sub + .pill { margin-top: 10px; }
.pick { display: grid; grid-template-columns: repeat(2, 140px); gap: 10px; margin: 0; }
.pick .pill { height: 46px; }
.pick .quiet { grid-column: 1 / -1; justify-self: center; margin-top: 6px; }

/* ---------------------------------------------------------------- the office */
body.in-room { height: 100vh; height: 100dvh; overflow: hidden; }
.app { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.right { display: flex; align-items: center; gap: 8px; }
.right form { margin: 0; }

.office { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
  padding: 0 max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); }
.team, .pulse { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(var(--stone-rgb), .18) transparent;
  border: 1px solid rgba(var(--stone-rgb), .1); border-radius: 18px; background: var(--glass); box-shadow: var(--rim), var(--lift);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.team h2, .pulse h2 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.team { display: none; padding: 18px 14px; }
.team h2 { padding: 0 6px 12px; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.people li { display: flex; align-items: center; gap: 11px; padding: 8px 6px; border-radius: 12px; }
.av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 13px; font-weight: 700;
  color: var(--ink); background: linear-gradient(180deg, #3a3631, #211f1c); border: 1px solid rgba(var(--stone-rgb), .14);
  box-shadow: inset 0 1px 0 rgba(255,244,228,.12); }
.people li.me .av { border-color: rgba(var(--sun-rgb), .55); }
.nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.nm b { font-size: 14px; font-weight: 650; }
.nm small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people li.hermes { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0; }
.people li.hermes .av { border: 0; background: radial-gradient(circle at 50% 42%, #ffd2ad 0, var(--sun-hot) 22%, rgba(var(--sun-rgb), .5) 46%, rgba(var(--sun-rgb), 0) 70%);
  box-shadow: none; transition: filter .6s ease; }
.people li.hermes b { color: var(--sun-hot); }
body[data-hermes="thinking"] .people li.hermes .av { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { filter: brightness(.85); transform: scale(.94); } 50% { filter: brightness(1.25); transform: scale(1.04); } }

/* the room (centre) */
.room { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.inner { width: min(760px, 100% - 12px); margin: 0 auto; }
.thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  scrollbar-color: rgba(var(--stone-rgb), .18) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26px); mask-image: linear-gradient(to bottom, transparent 0, #000 26px); }
.thread > .inner { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.list { list-style: none; margin: 0; padding: 22px 0 14px; display: flex; flex-direction: column; gap: 10px; }
.empty { margin: auto 0; padding: 40px 0; text-align: center; color: var(--ink-3); }

.msg { min-width: 0; padding: 11px 15px 12px; border-radius: 16px; border: 1px solid rgba(var(--stone-rgb), .07);
  background: rgba(26, 24, 21, .46); }
html[data-sky="on"] .msg { background: rgba(24, 22, 19, .42); }
.msg .meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.msg .meta b { font-size: 13.5px; font-weight: 720; color: var(--ink-2); }
.msg .meta time { font-size: 12px; color: var(--ink-3); }
.msg.mine { background: rgba(58, 54, 49, .38); }
.msg.mine .meta b { color: var(--ink); }
.body { overflow-wrap: anywhere; }
.body p { margin: 0 0 .55em; }
.body > :last-child { margin-bottom: 0; }
.body ul { margin: .15em 0 .55em; padding-left: 1.25em; }
.body li { margin: .12em 0; }
.body li::marker { color: var(--ink-3); }
.body a { color: var(--sun-hot); text-decoration-color: rgba(var(--sun-rgb), .45); text-underline-offset: 2px; }
.body a:hover { text-decoration-color: var(--sun-hot); }
.body strong { font-weight: 720; }
.body .at { color: var(--sun-hot); font-weight: 650; }
.body code { font: 13px/1.4 var(--mono); padding: 1px 5px; border-radius: 5px; background: rgba(var(--stone-rgb), .08); }
.body pre { margin: .2em 0 .6em; padding: 10px 12px; overflow-x: auto; font: 13px/1.45 var(--mono); white-space: pre;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }

.msg.hermes { border-color: rgba(var(--sun-rgb), .22);
  background: linear-gradient(180deg, rgba(var(--sun-rgb), .075), rgba(var(--sun-rgb), .015)), rgba(28, 24, 20, .56);
  box-shadow: inset 0 1px 0 rgba(255, 214, 180, .12), 0 0 36px rgba(var(--sun-rgb), .05); }
.msg.hermes .meta b { color: var(--sun-hot); display: inline-flex; align-items: center; gap: 7px; }
.msg.hermes .meta b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun-hot);
  box-shadow: 0 0 9px rgba(var(--sun-rgb), .9); }

.dock { flex: none; padding: 6px 0 max(12px, env(safe-area-inset-bottom)); }
.status { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 5px 5px 5px 14px; border-radius: 999px;
  border: 1px solid rgba(var(--sun-rgb), .22); background: var(--glass); color: var(--ink-2); font-size: 13.5px;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.status .st { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-hot); box-shadow: 0 0 10px rgba(var(--sun-rgb), .9);
  animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.note { margin: 0 0 8px; text-align: center; color: var(--sun-hot); font-size: 13px; }

.composer { display: flex; align-items: flex-end; gap: 8px; margin: 0; padding: 5px 5px 5px 18px; border-radius: 26px;
  border: 1px solid rgba(var(--stone-rgb), .14); background: var(--glass); box-shadow: var(--rim), var(--lift);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: border-color .2s ease, box-shadow .2s ease; }
.composer:focus-within { border-color: rgba(var(--sun-rgb), .45); box-shadow: var(--rim), var(--lift), 0 0 30px rgba(var(--sun-rgb), .1); }
.composer textarea { flex: 1; min-width: 0; margin: 0; padding: 9px 0; border: 0; outline: 0; resize: none; background: transparent;
  color: var(--ink); font: 16px/1.45 var(--font); min-height: 42px; max-height: 10.5em; field-sizing: content; }
.composer textarea::placeholder { color: var(--ink-3); }
.send { flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; color: #fffefc;
  background: linear-gradient(180deg, #f27c35, #ec6a1e 55%, #e9661a);
  box-shadow: inset 0 1px 0 rgba(255,228,204,.8), 0 1px 1px rgba(120,48,8,.25), 0 10px 22px -10px rgba(200,84,20,.9);
  transition: opacity .2s ease, box-shadow .2s ease; }
.send svg { width: 20px; height: 20px; }
.send:disabled { opacity: .3; box-shadow: none; cursor: default; }

/* pulse (right) */
.pulse { display: flex; flex-direction: column; gap: 20px; padding: 18px 16px 20px; }
.pulse-head { display: flex; align-items: center; justify-content: space-between; }
.pulse h3 { margin: 0 0 8px; font-size: 12px; font-weight: 650; color: var(--ink-3); }
.close { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: none;
  color: var(--ink-2); font-size: 18px; line-height: 1; display: grid; place-items: center; }
.health { display: flex; flex-wrap: wrap; gap: 6px; }
.h { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(0,0,0,.14); }
.h i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(147, 196, 125, .7); }
.h.bad { color: var(--ink); border-color: rgba(224, 87, 59, .5); }
.h.bad i { background: var(--bad); box-shadow: 0 0 8px rgba(224, 87, 59, .8); }
.activity, .clients, .fixes { list-style: none; margin: 0; padding: 0; }
.ev { display: flex; gap: 10px; padding: 7px 0; }
.ev + .ev { border-top: 1px solid var(--line); }
.ev i { flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: rgba(var(--stone-rgb), .45); }
.ev.walk i { background: var(--sun-hot); box-shadow: 0 0 8px rgba(var(--sun-rgb), .8); }
.ev.busy i { background: #e8b04a; animation: blink 1.6s ease-in-out infinite; }
.ev.fail i { background: var(--bad); }
.ev .t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ev b { font-size: 13.5px; font-weight: 600; }
.ev small, .clients small { font-size: 12px; color: var(--ink-3); }
.clients a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: var(--ink);
  text-decoration: none; line-height: 1.3; }
.clients a:hover { background: rgba(var(--stone-rgb), .05); }
.clients b { font-size: 14px; font-weight: 650; }
.fixes li { padding: 5px 0; font-size: 13px; color: var(--ink-2); }
.none { color: var(--ink-3); font-size: 13px; padding: 4px 0; }
.asks { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0,0,0,.12); color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; transition: border-color .2s ease, color .2s ease; }
.chip:hover { color: var(--ink); border-color: rgba(var(--sun-rgb), .5); }
.quiet-note { margin: 0; color: var(--ink-3); font-size: 12.5px; }

/* phone + tablet: Pulse is a drawer */
.pulse { position: fixed; z-index: 5; top: 8px; right: 8px; bottom: 8px; width: min(360px, calc(100% - 16px));
  transform: translateX(calc(100% + 24px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
body.pulse-open .pulse { transform: none; }

@media (min-width: 900px) {
  .top { min-height: 64px; padding-left: 22px; padding-right: 22px; }
  .office { grid-template-columns: minmax(0, 1fr) 320px; padding: 0 16px 16px; }
  .pulse { position: static; transform: none; width: auto; z-index: auto; }
  .close, .pulse-toggle { display: none; }
  .list { gap: 12px; padding-top: 28px; }
  .dock { padding-bottom: 4px; }
}
@media (min-width: 1240px) {
  .office { grid-template-columns: 236px minmax(0, 1fr) 330px; }
  .team { display: block; }
}
@media (prefers-reduced-motion: reduce) { .pulse-dot, .ev.busy i, body[data-hermes="thinking"] .people li.hermes .av { animation: none; }
  * { transition: none !important; } }

/* ---------------------------------------------------------------- top bar links */
a.brand { color: inherit; text-decoration: none; border-radius: 999px; }
#inbox-link { gap: 8px; text-decoration: none; }
#inbox-link.on { color: var(--ink); border-color: rgba(var(--sun-rgb), .55); }
#call-link { gap: 8px; text-decoration: none; }
#call-link.on { color: var(--ink); border-color: rgba(var(--sun-rgb), .55); }
#call-link i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(147,196,125,.8); }
#inbox-link i { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font: 700 11.5px/20px var(--font); font-style: normal;
  text-align: center; color: #fffefc; background: var(--sun); box-shadow: 0 0 10px rgba(var(--sun-rgb), .6); }

/* ---------------------------------------------------------------- the Inbox (two glass panes: conversations, one conversation) */
.desk { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
  padding: 0 max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
.threads, .convo { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(var(--stone-rgb), .18) transparent;
  border: 1px solid rgba(var(--stone-rgb), .1); border-radius: 18px; background: var(--glass); box-shadow: var(--rim), var(--lift);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
html[data-sky="on"] .threads, html[data-sky="on"] .convo { box-shadow: var(--rim); }
.threads { padding: 18px 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.threads-head { padding: 0 6px; }
.threads h2 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.threads-head .quiet-note { margin: 4px 0 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--ink-2);
  font-size: 12.5px; font-weight: 650; }
.tabs button[aria-pressed="true"] { color: var(--ink); border-color: rgba(var(--sun-rgb), .55); background: rgba(var(--sun-rgb), .1); }
.rows { display: flex; flex-direction: column; gap: 2px; }
.th { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 10px; border: 1px solid transparent; border-radius: 12px;
  background: none; text-align: left; line-height: 1.3; }
.th:hover { background: rgba(var(--stone-rgb), .045); }
.th[aria-current="true"] { background: rgba(var(--sun-rgb), .08); border-color: rgba(var(--sun-rgb), .28); }
.th b { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 680; }
.th b .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sun-hot); box-shadow: 0 0 8px rgba(var(--sun-rgb), .9); }
.th em { margin-left: auto; padding: 1px 8px; border-radius: 999px; font: 650 11px/18px var(--font); font-style: normal; text-transform: capitalize;
  color: var(--ink-2); border: 1px solid var(--line-2); }
.th em.high { color: #fffefc; background: var(--bad); border-color: transparent; }
.th em.solved { color: var(--ok); border-color: rgba(147, 196, 125, .4); }
.th span { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th small { font-size: 11.5px; color: var(--ink-3); }
.more, .older { align-self: center; margin: 6px 0; }
.recovery { margin-top: auto; padding: 10px 6px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.recovery summary { cursor: pointer; font-weight: 650; }
.recovery .job { padding: 6px 0; border-bottom: 1px solid var(--line); }
.recovery .job p { margin: 0 0 4px; }

.convo { display: none; flex-direction: column; gap: 12px; padding: 16px 16px 14px; }
.convo .pick-one { margin: auto; }
.convo-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.convo-head .who { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.convo-head h2 { font-size: 18px; font-weight: 720; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-head small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 899px) { .convo-head .who { flex-basis: calc(100% - 96px); } }
.tri { padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(var(--sun-rgb), .28); background: rgba(var(--sun-rgb), .07); }
.tri.high { border-color: rgba(224, 87, 59, .55); background: rgba(224, 87, 59, .09); }
.tri b { font-size: 12.5px; font-weight: 700; color: var(--sun-hot); text-transform: capitalize; }
.tri.high b { color: #f08a72; }
.tri p { margin: 2px 0 0; font-size: 14px; }
.ctx { white-space: pre-wrap; font-size: 12.5px; color: var(--ink-3); padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); }
.snap summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.snap pre { margin: 8px 0 0; padding: 10px 12px; overflow-x: auto; font: 12.5px/1.45 var(--mono); border-radius: 10px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .25); white-space: pre; }
.msgs { flex: 1; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; scrollbar-width: thin; }
.bub { max-width: min(560px, 88%); padding: 9px 14px 10px; border-radius: 16px; border: 1px solid rgba(var(--stone-rgb), .07);
  background: rgba(26, 24, 21, .5); overflow-wrap: anywhere; }
.bub.us { align-self: flex-end; background: rgba(58, 54, 49, .42); }
.bub.ai { border-color: rgba(var(--sun-rgb), .22); background: linear-gradient(180deg, rgba(var(--sun-rgb), .07), rgba(var(--sun-rgb), .015)), rgba(28, 24, 20, .56); }
.bub .meta { display: flex; align-items: baseline; gap: 8px; }
.bub .meta b { font-size: 12.5px; font-weight: 720; color: var(--ink-2); }
.bub.ai .meta b { color: var(--sun-hot); }
.bub .meta time { font-size: 11.5px; color: var(--ink-3); }
.bub p { margin: 2px 0 0; white-space: pre-wrap; }
.bub .delivery { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.reply-box { display: flex; flex-direction: column; gap: 8px; }
.reply-box textarea { width: 100%; min-height: 84px; max-height: 40vh; padding: 12px 14px; resize: vertical; border-radius: 16px;
  border: 1px solid rgba(var(--stone-rgb), .14); background: rgba(0, 0, 0, .22); color: var(--ink); font: 15px/1.45 var(--font); outline: 0;
  field-sizing: content; }
.reply-box textarea:focus { border-color: rgba(var(--sun-rgb), .5); box-shadow: 0 0 24px rgba(var(--sun-rgb), .08); }
.reply-box textarea[readonly] { color: var(--ink-2); }
.reply-box .acts { display: flex; justify-content: flex-end; gap: 8px; }
.sugg { margin: 0; font-size: 12.5px; color: var(--sun-hot); }
.send-reply { height: 38px; padding: 0 20px; border: 0; border-radius: 999px; color: #fffefc; font-weight: 700; font-size: 14px;
  background: linear-gradient(180deg, #f27c35, #ec6a1e 55%, #e9661a);
  box-shadow: inset 0 1px 0 rgba(255,228,204,.8), 0 1px 1px rgba(120,48,8,.25), 0 10px 22px -10px rgba(200,84,20,.9); }
.send-reply:disabled { opacity: .45; cursor: default; }
.err { margin: 0; min-height: 1em; font-size: 13px; color: #f08a72; }
.toast { position: fixed; z-index: 9; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 10px 18px;
  border-radius: 999px; border: 1px solid rgba(var(--sun-rgb), .35); background: var(--glass); box-shadow: var(--rim), var(--lift);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); font-size: 13.5px; font-weight: 600; }

/* phone: one pane at a time */
body.convo-open .threads { display: none; }
body.convo-open .convo { display: flex; }
@media (min-width: 900px) {
  .desk { grid-template-columns: 340px minmax(0, 1fr); padding: 0 16px 16px; }
  .convo { display: flex; }
  body.convo-open .threads { display: flex; }
  .convo .back { display: none; }
}

/* Pulse: the Inbox line, companies as clients */
.waiting { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2);
  color: var(--ink-2); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.waiting::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(147, 196, 125, .7); }
.waiting.on { color: var(--ink); border-color: rgba(var(--sun-rgb), .5); background: rgba(var(--sun-rgb), .08); }
.waiting.on::before { background: var(--sun-hot); box-shadow: 0 0 10px rgba(var(--sun-rgb), .9); animation: blink 1.6s ease-in-out infinite; }
.waiting:hover { border-color: rgba(var(--sun-rgb), .55); }
.clients .co { padding: 8px 0; }
.clients .co + .co { border-top: 1px solid var(--line); }
.co-head { display: flex; flex-direction: column; line-height: 1.3; margin-bottom: 4px; }
.co-head b { font-size: 14px; font-weight: 700; }
.clients .bld { display: flex; justify-content: space-between; gap: 10px; padding: 5px 10px; margin: 0 -10px; border-radius: 9px;
  color: var(--ink-2); text-decoration: none; font-size: 13px; }
.clients a.bld:hover { background: rgba(var(--stone-rgb), .05); color: var(--ink); }
.clients .bld small { white-space: nowrap; }

/* Ask Hermes ticker: one slow row of question pills under the composer */
.ticker { margin: 10px -4px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.ticker::-webkit-scrollbar { display: none; }
.belt { display: flex; gap: 8px; width: max-content; padding: 2px 4px 4px; }
.tick { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(var(--stone-rgb), .12);
  background: rgba(20, 18, 16, .42); color: var(--ink-2); font: 600 12.5px/1 var(--font); white-space: nowrap;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: border-color .25s ease, color .25s ease, background .25s ease; }
.tick:hover, .tick:focus-visible { color: var(--ink); border-color: rgba(var(--sun-rgb), .55); background: rgba(var(--sun-rgb), .09); }


/* ---------------------------------------------------------------- Tools: the team's boards */
.c0 { --c: #6f685f; } .c1 { --c: #ec6a1e; } .c2 { --c: #d9a03c; } .c3 { --c: #5fa253; }
.c4 { --c: #4a86c8; } .c5 { --c: #8f6cc9; } .c6 { --c: #d4503a; } .c7 { --c: #3a9e93; } .cx { --c: rgba(238, 234, 227, .16); }
#tools-link { gap: 8px; text-decoration: none; }
#tools-link.on { color: var(--ink); border-color: rgba(var(--sun-rgb), .55); }
#tools-link i { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font: 700 11.5px/20px var(--font); font-style: normal;
  text-align: center; color: #fffefc; background: var(--sun); box-shadow: 0 0 10px rgba(var(--sun-rgb), .6); }

/* office panel: the tools list */
.tool-links { display: flex; flex-direction: column; gap: 4px; }
.tool-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tool-list a, .rail-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 650; border: 1px solid transparent; }
.tool-list a:hover, .rail-list a:hover { background: rgba(var(--stone-rgb), .05); }
.tool-list small, .rail-list small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tool-list a.for-you-link { color: var(--sun-hot); border-color: rgba(var(--sun-rgb), .35); background: rgba(var(--sun-rgb), .07); }
.tool-new { align-self: flex-start; padding: 4px 12px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); text-decoration: none; }
.tool-new:hover { color: var(--sun-hot); }

/* the page: rail + board */
body.at-tools .app { height: 100%; }
.works { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px;
  padding: 0 max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
.rail, .board { min-height: 0; border: 1px solid rgba(var(--stone-rgb), .1); border-radius: 18px; background: var(--glass); box-shadow: var(--rim), var(--lift);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
html[data-sky="on"] .rail, html[data-sky="on"] .board { box-shadow: var(--rim); }
.rail { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.rail-head h2 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.rail-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.rail-list a { white-space: nowrap; }
.rail-list a.on { background: rgba(var(--sun-rgb), .1); border-color: rgba(var(--sun-rgb), .38); }
.for-you { display: none; }
.for-you h3 { margin: 0 0 6px; padding: 0 4px; font-size: 12px; font-weight: 650; color: var(--ink-3); }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.notes a { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 13px; line-height: 1.3; }
.notes a:hover { background: rgba(var(--stone-rgb), .05); color: var(--ink); }
.notes li.new a { color: var(--ink); }
.notes li.new a span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--sun-hot);
  box-shadow: 0 0 8px rgba(var(--sun-rgb), .9); }
.notes small { font-size: 11.5px; color: var(--ink-3); }
@media (min-width: 900px) {
  .works { grid-template-columns: 236px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 16px; padding: 0 16px 16px; }
  .rail { padding: 16px 10px; overflow-y: auto; }
  .rail-list { flex-direction: column; overflow: visible; }
  .for-you:not([hidden]) { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
}

.board { display: flex; flex-direction: column; overflow: hidden; }
.board > .pick-one { margin: auto; }
.b-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px 8px; }
.b-title { margin: 0; font-size: 22px; font-weight: 760; letter-spacing: -.01em; cursor: text; border-radius: 8px; }
.b-title:hover { color: #fff; }
.views button { height: 30px; }
.b-acts { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.recipes-btn { gap: 7px; }
.recipes-btn i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font: 700 11px/18px var(--font); text-align: center;
  color: var(--sun-hot); border: 1px solid rgba(var(--sun-rgb), .45); }
.b-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 2px 16px 12px; border-bottom: 1px solid var(--line); }
.search { height: 32px; width: min(220px, 100%); padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0,0,0,.18);
  color: var(--ink); font: 13.5px var(--font); outline: 0; }
.search:focus { border-color: rgba(var(--sun-rgb), .5); }
.chip.on { color: var(--ink); border-color: rgba(var(--sun-rgb), .55); background: rgba(var(--sun-rgb), .1); }
.field { width: 100%; height: 36px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.22); color: var(--ink);
  font: 14px var(--font); outline: 0; color-scheme: dark; }
.field:focus { border-color: rgba(var(--sun-rgb), .55); }
.field.tall { height: auto; min-height: 130px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.field.short { width: 64px; }
.field.slim { width: auto; height: 32px; font-size: 13px; padding: 0 8px; border-radius: 999px; }
select.field option { background: #1d1b18; color: var(--ink); }

/* views share the scroller */
.view { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(var(--stone-rgb), .2) transparent; }
.empty-view { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink-3); }

/* table */
.tbl { padding: 8px 10px 30px; }
.grp { margin: 10px 0 18px; }
.g-head { position: sticky; left: 0; display: flex; align-items: center; gap: 10px; padding: 4px 4px 8px; width: max-content; }
.g-title { font-size: 15.5px; font-weight: 760; color: var(--c); cursor: text; }
.g-head small { font-size: 12px; color: var(--ink-3); }
.fold { width: 22px; height: 22px; padding: 0; border: 0; background: none; position: relative; }
.fold::before { content: ""; position: absolute; inset: 6px 7px; border: solid var(--c); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); }
.grp.folded .fold::before { transform: rotate(-45deg); }
.g-more { height: 24px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); }
.g-more:hover { color: var(--ink); background: rgba(var(--stone-rgb), .06); }
.tr { display: grid; align-items: stretch; min-width: max-content; border-left: 3px solid var(--c); }
.grp .tr + .tr, .rows .tr { border-top: 1px solid var(--line); }
.th-row { border-top-left-radius: 8px; background: rgba(var(--stone-rgb), .025); }
.hc { display: flex; align-items: center; justify-content: center; padding: 0 8px; height: 34px; border: 0; border-left: 1px solid var(--line); background: none;
  color: var(--ink-3); font: 650 12px var(--font); text-align: center; white-space: nowrap; overflow: hidden; }
.hc:hover { color: var(--ink); background: rgba(var(--stone-rgb), .04); }
.hc.name-h { justify-content: flex-start; padding-left: 12px; border-left: 0; }
.hc.add-col { font-size: 17px; font-weight: 500; }
.rows .tr { background: rgba(14, 13, 12, .18); transition: background .15s ease; }
.rows .tr:hover { background: rgba(var(--stone-rgb), .035); }
.rows .tr.sel { background: rgba(var(--sun-rgb), .07); }
.tr.finished .name .clip { color: var(--ink-3); }
.grip { cursor: grab; position: relative; }
.grip::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 14px; transform: translate(-50%, -50%); opacity: 0;
  background-image: radial-gradient(circle, var(--ink-3) 1.2px, transparent 1.4px); background-size: 4px 4.6px; transition: opacity .15s ease; }
.tr:hover .grip::before { opacity: .9; }
.name { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; height: 40px; border: 0;
  background: none; color: var(--ink); font: 600 14px var(--font); text-align: left; }
.name:hover .clip { color: var(--sun-hot); }
.clip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-chip { flex: none; padding: 0 6px; border-radius: 999px; font: 650 11px/17px var(--font); color: var(--ink-3); border: 1px solid var(--line-2); }
.meta-chip.ok { color: var(--ok); border-color: rgba(147, 196, 125, .4); }
.meta-chip.talk::before { content: ""; display: inline-block; width: 7px; height: 6px; margin-right: 4px; border: 1.4px solid currentColor; border-radius: 3px; }
.td { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 4px 8px; border-left: 1px solid var(--line); cursor: pointer;
  font-size: 13.5px; outline: 0; }
.td:hover { background: rgba(var(--stone-rgb), .04); }
.td:focus-visible { box-shadow: inset 0 0 0 1.5px rgba(var(--sun-rgb), .8); }
.td.t-text, .td.t-notes, .td.t-link, .td.t-email, .td.t-connect { justify-content: flex-start; }
.td.t-status { padding: 3px; }
.td a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(var(--stone-rgb), .25); text-underline-offset: 2px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.td a:hover { color: var(--sun-hot); }
.td.t-notes .clip { color: var(--ink-2); }
.lab { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 30px; padding: 0 8px; border-radius: 7px;
  background: var(--c); color: #fff; font: 650 12.5px/1.15 var(--font); text-align: center; text-shadow: 0 1px 1px rgba(0,0,0,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.lane-head .lab, .kan .lab { width: auto; min-height: 24px; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.dt { font-weight: 600; color: var(--ink-2); }
.dt.today { color: var(--sun-hot); }
.dt.late { color: #f08a72; }
.faces { display: flex; }
.faces .av + .av { margin-left: -6px; }
.av.xs { width: 26px; height: 26px; font-size: 11.5px; }
.tick-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); }
.tick-box.on { border-color: transparent; background: var(--ok); box-shadow: 0 0 8px rgba(147, 196, 125, .5); position: relative; }
.tick-box.on::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #142010; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chips { display: flex; gap: 4px; min-width: 0; overflow: hidden; }
.chip-ref { flex: none; max-width: 100%; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--ink); background: rgba(var(--stone-rgb), .08);
  border: 1px solid var(--line-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-cell { width: 100%; height: 100%; }
.cell-input { width: 100%; height: 30px; padding: 0 8px; border-radius: 7px; border: 1px solid rgba(var(--sun-rgb), .6); background: rgba(0,0,0,.35); color: var(--ink);
  font: 13.5px var(--font); outline: 0; }
.cell-input.big { height: 36px; width: min(420px, 100%); font-size: 18px; font-weight: 700; }
.add-row { display: block; width: calc(100% - 0px); min-width: 0; height: 36px; margin: 0; padding: 0 14px; border: 0; border-left: 3px solid var(--c, transparent);
  border-top: 1px solid var(--line); background: transparent; color: var(--ink); font: 13.5px var(--font); outline: 0; }
.add-row::placeholder { color: var(--ink-3); }
.add-row:focus { background: rgba(var(--sun-rgb), .05); }
.g-foot { border-left-color: transparent; }
.g-foot > span { display: flex; align-items: center; justify-content: center; height: 32px; padding: 0 8px; }
.sum { font-size: 12.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.battery { display: flex !important; height: 10px !important; padding: 0 !important; margin: 0 10px; border-radius: 3px; overflow: hidden; gap: 1px; }
.battery i { display: block; background: var(--c); min-width: 3px; }
.add-group { margin: 4px 4px 0; }
.ghost { opacity: .35; }

/* kanban */
.kan { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px 24px; }
.lane { flex: none; width: 270px; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(10, 9, 8, .22);
  border: 1px solid var(--line); }
.lane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lane-head small { color: var(--ink-3); font-weight: 650; }
.cards { display: flex; flex-direction: column; gap: 8px; min-height: 30px; }
.card { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(var(--stone-rgb), .1);
  background: rgba(34, 31, 28, .72); text-align: left; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.card:hover { border-color: rgba(var(--sun-rgb), .45); }
.card.sel { border-color: rgba(var(--sun-rgb), .7); }
.card b { font-size: 14px; font-weight: 680; line-height: 1.3; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; }
.card-meta:empty { display: none; }
.lane .add-row { border: 1px dashed var(--line-2); border-radius: 10px; height: 34px; }

/* calendar */
.cal { padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.cal-head { display: flex; align-items: center; gap: 8px; }
.cal-head b { min-width: 150px; text-align: center; font-size: 16px; font-weight: 720; }
.cal-head .pill { height: 30px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 4px; min-width: 660px; }
.dow { padding: 0 6px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.day { min-height: 104px; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(10, 9, 8, .2); display: flex; flex-direction: column; gap: 4px; }
.day small { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.day.out { opacity: .45; }
.day.now { border-color: rgba(var(--sun-rgb), .6); box-shadow: inset 0 0 22px rgba(var(--sun-rgb), .08); }
.day.now small { color: var(--sun-hot); }
.day-items { flex: 1; display: flex; flex-direction: column; gap: 3px; min-height: 20px; }
.ev-chip { display: block; width: 100%; padding: 3px 7px; border: 0; border-left: 3px solid var(--c); border-radius: 5px; background: rgba(var(--stone-rgb), .07);
  color: var(--ink); font: 600 12px/1.3 var(--font); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-chip:hover { background: rgba(var(--sun-rgb), .12); }
.ev-chip.finished { color: var(--ink-3); text-decoration: line-through; }

/* popovers, menus, modals */
.pop { position: fixed; z-index: 30; width: 250px; max-height: min(460px, 80vh); overflow: auto; padding: 10px; border-radius: 14px; display: flex; flex-direction: column; gap: 8px;
  border: 1px solid rgba(var(--stone-rgb), .16); background: rgba(30, 28, 25, .96); box-shadow: var(--rim), 0 24px 60px rgba(0,0,0,.55);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.pop.wide { width: 330px; }
.pop h4 { margin: 0 2px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pop-kind { margin: 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pop-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.labs { display: flex; flex-direction: column; gap: 5px; }
.lab.big { min-height: 34px; border: 0; cursor: pointer; }
.lab.big.on { box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
.link-btn { padding: 4px 6px; border: 0; background: none; color: var(--ink-2); font-size: 13px; font-weight: 650; text-decoration: none; }
.link-btn:hover { color: var(--sun-hot); }
.link-btn.danger, .menu-btn.danger { color: #f08a72; }
.plist { display: flex; flex-direction: column; gap: 2px; }
.plist.scroll { max-height: 260px; overflow-y: auto; }
.prow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 1px solid transparent; border-radius: 10px; background: none; text-align: left;
  font-size: 14px; font-weight: 600; }
.prow:hover { background: rgba(var(--stone-rgb), .06); }
.prow.on { border-color: rgba(var(--sun-rgb), .45); background: rgba(var(--sun-rgb), .1); }
.menu-btn { width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.menu-btn:hover:not(:disabled) { background: rgba(var(--stone-rgb), .07); }
.menu-btn:disabled { opacity: .35; cursor: default; }
.menu-row { display: flex; gap: 4px; }
.menu-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 0 4px; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lab-edit { display: flex; flex-direction: column; gap: 6px; }
.lab-row { display: flex; align-items: center; gap: 6px; }
.lab-row .field { height: 32px; }
.swatch { flex: none; width: 24px; height: 24px; padding: 0; border-radius: 7px; border: 0; background: var(--c); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.swatch.on { box-shadow: inset 0 0 0 2px #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px; }
.done-tog { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.x { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); font-size: 17px; line-height: 1; }
.x:hover { color: var(--ink); background: rgba(var(--stone-rgb), .08); }

.modal-wrap { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 16px; background: rgba(8, 7, 6, .55); }
.modal { width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 20px;
  border-radius: 20px; border: 1px solid rgba(var(--stone-rgb), .14); background: rgba(28, 26, 23, .97); box-shadow: var(--rim), 0 30px 80px rgba(0,0,0,.6); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font-size: 20px; font-weight: 760; line-height: 1.25; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.tpl { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.18); text-align: left; }
.tpl:hover { border-color: rgba(var(--sun-rgb), .55); background: rgba(var(--sun-rgb), .07); }
.tpl b { font-size: 15px; font-weight: 720; }
.tpl span { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.recipes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.recipes li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 14px; line-height: 1.35; }
.recipes li.off span { color: var(--ink-3); }
.recipes li span { flex: 1; }
.switch { position: relative; flex: none; width: 36px; height: 21px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(var(--stone-rgb), .14); pointer-events: none; transition: background .2s ease; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink-2); transition: transform .2s ease, background .2s ease; }
.switch input:checked + i { background: rgba(var(--sun-rgb), .8); }
.switch input:checked + i::after { transform: translateX(15px); background: #fff; }
.switch input:focus-visible + i { outline: 2px solid rgba(var(--sun-rgb), .9); outline-offset: 2px; }
.builder { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 1px dashed rgba(var(--sun-rgb), .35); }
.builder h3 { font-size: 13px; color: var(--ink-2); }
.b-line, .bits { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.then { font-size: 13px; font-weight: 700; color: var(--sun-hot); padding: 0 4px; }
.builder .acts { display: flex; justify-content: flex-end; }

/* the row drawer */
.sheet { position: fixed; z-index: 20; top: 8px; right: 8px; bottom: 8px; width: min(480px, calc(100% - 16px)); display: flex; flex-direction: column;
  border-radius: 18px; border: 1px solid rgba(var(--stone-rgb), .14); background: rgba(27, 25, 22, .95); box-shadow: var(--rim), -20px 0 70px rgba(0,0,0,.5);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); animation: slide-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }
.sheet .sheet-head { padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
.s-title { cursor: text; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 22px; scrollbar-width: thin; }
.sheet-body h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fields { display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; min-height: 40px; border-bottom: 1px solid var(--line); }
.f-name { font-size: 13px; font-weight: 650; color: var(--ink-3); }
.field-row .td { border-left: 0; justify-content: flex-start; height: 100%; min-height: 38px; border-radius: 8px; }
.field-row .td.t-status .lab { max-width: 180px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; align-items: center; gap: 10px; min-height: 36px; border-bottom: 1px solid var(--line); font-size: 14px; }
.steps li span { flex: 1; }
.steps li.done span { color: var(--ink-3); text-decoration: line-through; }
.steps input { width: 17px; height: 17px; accent-color: var(--sun); }
.sheet .add-row { border-left: 0; padding: 0 2px; }
.updates { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.updates .bub { max-width: 100%; }
.updates .at { color: var(--sun-hot); font-weight: 650; }
.reply-box textarea.upd-text { min-height: 64px; }
.hist summary { cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hist ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.hist time { color: var(--ink-3); }
.by { margin: 0; font-size: 12px; color: var(--ink-3); }
@media (max-width: 899px) {
  .sheet { top: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; }
  .b-head { padding: 12px 12px 6px; }
  .b-acts { margin-left: 0; }
  .b-tools { padding: 2px 12px 10px; }
  .field-row { grid-template-columns: 100px minmax(0, 1fr); }
}
.sheet .close, .modal .close { display: grid; flex: none; }
.battery { align-items: stretch !important; }
.name, .hc.name-h { position: sticky; left: 0; z-index: 2; background: #1b1917; }
.th-row .hc.name-h { background: #1d1b19; }
.tr.sel .name { background: #2a1f17; }
.th-row .hc.name-h { justify-content: flex-start; text-align: left; }
.td.t-file { justify-content: flex-start; }
.td.t-file.drop { box-shadow: inset 0 0 0 2px rgba(var(--sun-rgb), .85); background: rgba(var(--sun-rgb), .1); }
.files-chip { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink-2); font-weight: 600; }
.clipper { flex: none; width: 9px; height: 14px; border: 1.6px solid var(--ink-3); border-radius: 5px 5px 6px 6px; transform: rotate(35deg); }
.file-list { display: flex; flex-direction: column; gap: 2px; }
.file-row { display: flex; align-items: center; gap: 8px; padding: 4px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.file-row a { flex: 1; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; font-weight: 600; }
.file-row a:hover { color: var(--sun-hot); }
.file-row small { color: var(--ink-3); white-space: nowrap; }
.tbl { padding-left: 0; }
.tr > span:first-child { position: sticky; left: 0; z-index: 2; background: #1b1917; }
.th-row > span:first-child { background: #1d1b19; }
.g-foot > span:first-child { background: transparent; }
.name, .hc.name-h { left: 30px; }
.g-head { left: 0; padding-left: 12px; }
.add-group { margin-left: 12px; }
.tbl .add-row { position: sticky; left: 0; z-index: 2; width: 330px; max-width: 100%; background: #1b1917; }
.g-foot > span:nth-child(-n+2) { position: sticky; z-index: 2; background: #191715; }
.g-foot > span:first-child { left: 0; }
.g-foot > span:nth-child(2) { left: 30px; }

/* ---------------------------------------------------------------- the Call (one room; Hermes is a light, screens go big) */
body.at-call .app { height: 100%; }
.call { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 16px 16px; }
.lobby { display: grid; justify-items: center; gap: 14px; padding: 40px 48px; text-align: center; border-radius: 22px;
  border: 1px solid rgba(var(--stone-rgb), .12); background: var(--glass); box-shadow: var(--rim), var(--lift); backdrop-filter: var(--blur); }
.lobby h2 { font-size: 26px; font-weight: 760; letter-spacing: -.01em; }
.lobby .quiet-note { margin: 0; color: var(--ink-3); }
.lobby #lobby-who { color: var(--ink-2); font-size: 15px; }
.pill.join { min-width: 180px; font-weight: 720; border-color: rgba(var(--sun-rgb), .6);
  background: linear-gradient(180deg, rgba(var(--sun-rgb), .32), rgba(var(--sun-rgb), .12)), var(--glass); }
.stage { position: absolute; inset: 0 16px 104px; display: none; gap: 12px; grid-auto-rows: minmax(0, 1fr);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-content: center; }
body.in-call .stage { display: grid; }
.stage[data-n="1"] { grid-template-columns: minmax(0, 960px); justify-content: center; }
.stage[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stage.sharing { grid-template-columns: minmax(0, 1fr) 260px; grid-auto-rows: minmax(0, 1fr); }
.stage.sharing .tile.main { grid-column: 1; grid-row: 1 / span 6; }
.stage.sharing .tile:not(.main) { grid-column: 2; }
.stage.sharing .tile.screen:not(.main) { aspect-ratio: 16 / 9; height: auto; }
body.side-open .stage { right: 392px; }
.tile { --lvl: 0; position: relative; margin: 0; min-height: 0; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 9; max-height: 100%;
  justify-self: stretch; align-self: center; background: radial-gradient(120% 90% at 50% 0%, #26231f, #151311);
  border: 1px solid rgba(var(--stone-rgb), .1); box-shadow: var(--rim), var(--lift); transition: border-color .2s, box-shadow .2s; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.tile.live video { opacity: 1; }
.tile.mine:not(.screen) video { transform: scaleX(-1); }
.tile.screen { aspect-ratio: auto; height: 100%; background: #0c0b0a; }
.tile.screen video { object-fit: contain; }
.tile.talking:not(.hermes) { border-color: rgba(var(--sun-rgb), .8); box-shadow: var(--rim), var(--lift), 0 0 0 2px rgba(var(--sun-rgb), .35), 0 0 32px rgba(var(--sun-rgb), .25); }
.tile figcaption { position: absolute; left: 12px; bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 650;
  color: var(--ink); background: rgba(14, 13, 12, .62); backdrop-filter: blur(10px); }
.face { position: absolute; inset: 0; display: grid; place-items: center; }
.face span { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; font-size: 40px; font-weight: 720; color: var(--ink-2);
  background: linear-gradient(180deg, #3a3631, #211f1c); border: 1px solid rgba(var(--stone-rgb), .14); box-shadow: var(--rim), 0 12px 30px rgba(0,0,0,.4); }
.tile.live .face { display: none; }
/* Hermes: a dark glass sphere; his voice bends light into it */
.tile.hermes { background: radial-gradient(90% 80% at 50% 45%, #1d1a17, #0e0d0c); }
.orb { position: absolute; inset: 0; display: grid; place-items: center; }
.orb .halo { position: absolute; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--sun-rgb), calc(.18 + var(--lvl) * .55)) 0%, rgba(var(--sun-rgb), 0) 68%);
  transform: scale(calc(1 + var(--lvl) * .9)); filter: blur(calc(6px + var(--lvl) * 10px)); }
.orb .core { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; color: rgba(255, 236, 214, .92);
  background: radial-gradient(65% 65% at 38% 30%, rgba(255,240,222,.16), rgba(255,240,222,0) 60%), radial-gradient(circle, #2a2520, #0f0e0d 72%);
  border: 1px solid rgba(var(--sun-rgb), calc(.22 + var(--lvl) * .6));
  box-shadow: inset 0 1px 0 rgba(255,244,228,.18), inset 0 -10px 24px rgba(0,0,0,.6), 0 0 calc(18px + var(--lvl) * 60px) rgba(var(--sun-rgb), calc(.15 + var(--lvl) * .5)); }
.orb .core svg { width: 52px; height: 52px; filter: drop-shadow(0 0 calc(2px + var(--lvl) * 10px) rgba(var(--sun-rgb), .9)); }
.tile.hermes video { display: none; }
.tile figcaption .hstate { margin-left: 8px; font-size: 12px; font-weight: 560; color: var(--ink-3); }
.tile.hermes[data-state="thinking"] .orb .halo, .tile.hermes[data-state="looking"] .orb .halo { animation: think 1.6s ease-in-out infinite; }
@keyframes think { 50% { transform: scale(1.35); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .tile.hermes .orb .halo { animation: none !important; } }
/* the Window: whatever's up for everyone (a file, a page, a doc), driven by anyone, Hermes included */
.tile.window { display: flex; flex-direction: column; background: #0c0b0a; border-color: rgba(var(--sun-rgb), .35);
  box-shadow: var(--rim), var(--lift), 0 0 40px rgba(var(--sun-rgb), .1); }
.wbar { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); background: rgba(20,18,16,.9); }
.wt { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; overflow: hidden; white-space: nowrap; }
.wt b { overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 700; }
.wt small { color: var(--ink-3); font-size: 12px; }
.wb { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: none;
  color: var(--ink-2); font-size: 18px; line-height: 1; text-decoration: none; }
.wb:hover:not(:disabled) { color: var(--ink); border-color: rgba(var(--sun-rgb), .5); }
.wb:disabled { opacity: .35; }
.pg { min-width: 44px; text-align: center; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.wview { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.wview img, .wview video { max-width: 100%; max-height: 100%; object-fit: contain; }
.wview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.wview .doc { align-self: stretch; justify-self: stretch; overflow: auto; padding: 24px 32px; color: var(--ink); font-size: 15px; }
.wview .doc pre { margin: 0; white-space: pre-wrap; font: 13px/1.5 ui-monospace, Consolas, monospace; }
.wcard { display: grid; justify-items: center; gap: 14px; text-align: center; }
/* the call's chat: lines, files and links on one table */
.side { position: absolute; top: 0; right: 16px; bottom: 104px; width: 360px; z-index: 3; display: flex; flex-direction: column; border-radius: 20px;
  border: 1px solid rgba(var(--stone-rgb), .12); background: var(--glass); box-shadow: var(--rim), var(--lift); backdrop-filter: var(--blur); }
.side[hidden] { display: none; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px 18px; }
.side-head h2 { flex: 1; margin: 0; font-size: 15px; font-weight: 720; }
.table-list { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 4px 12px 8px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.table-empty { margin: 0 18px 12px; color: var(--ink-3); font-size: 13px; }
.ti { display: grid; gap: 3px; }
.ti .who { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.ti.hermes .who { color: var(--sun-hot); }
.ti .tx { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.ti .tx p { margin: 0; }
.ti.pending { color: var(--ink-3); font-size: 13px; }
.ti .tcard { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(14,13,12,.35); }
.ti.up .tcard { border-color: rgba(var(--sun-rgb), .55); box-shadow: 0 0 18px rgba(var(--sun-rgb), .12); }
.ti .thumb { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; flex: none; }
.ti .kind { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 9px; background: rgba(255,248,236,.06);
  color: var(--ink-2); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.ti .nm { flex: 1; min-width: 0; display: grid; }
.ti .nm .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.ti .nm small { color: var(--ink-3); font-size: 11px; }
.ti .pill.small { height: 30px; padding: 0 12px; font-size: 12px; }
.ti .pill.small.on { border-color: rgba(var(--sun-rgb), .7); color: var(--ink); }
.ti .open { color: var(--ink-3); text-decoration: none; padding: 0 4px; }
.ti .open:hover { color: var(--ink); }
.say { display: flex; align-items: center; gap: 8px; margin: 8px 10px 10px; padding: 6px 6px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(14,13,12,.4); }
.say input[type="text"] { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; }
.say .attach { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2);
  font-size: 20px; cursor: pointer; }
.say .attach:hover { color: var(--ink); border-color: rgba(var(--sun-rgb), .5); }
.say .send { width: 34px; height: 34px; }
.drop { position: absolute; inset: 0 16px 104px; z-index: 4; display: grid; place-items: center; border-radius: 22px; pointer-events: none;
  border: 2px dashed rgba(var(--sun-rgb), .7); background: rgba(var(--sun-rgb), .08); }
.drop[hidden] { display: none; }
.drop p { padding: 10px 20px; border-radius: 999px; background: rgba(14,13,12,.75); font-weight: 700; }
#chat i { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px rgba(var(--sun-rgb), .9); }
#chat i[hidden] { display: none; }
.rec { position: absolute; bottom: 42px; left: 24px; z-index: 3;   /* beside the dock: never over the Window's title */ padding: 3px 10px 3px 22px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  color: #ffd9cf; background: rgba(14,13,12,.6); border: 1px solid rgba(224, 87, 59, .45); }
.rec::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bad);
  box-shadow: 0 0 8px rgba(224, 87, 59, .9); }
.rec[hidden] { display: none; }
/* .call-dock, never .dock: .dock is the office composer's wrapper (a bare .dock rule here floated the office composer over the chat) */
.call-dock { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px; border-radius: 28px;
  border: 1px solid rgba(var(--stone-rgb), .12); background: var(--glass); box-shadow: var(--rim), var(--lift); backdrop-filter: var(--blur); }
.dock-b { height: 48px; min-width: 92px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(var(--stone-rgb), .14); background: rgba(14,13,12,.4);
  color: var(--ink-3); font-size: 14px; font-weight: 680; }
.dock-b[aria-pressed="true"] { color: var(--ink); border-color: rgba(var(--stone-rgb), .3); background: rgba(255,248,236,.08); }
.dock-b:hover { border-color: rgba(var(--sun-rgb), .5); }
.dock-b.leave { color: #fff3ee; border-color: rgba(224, 87, 59, .7); background: rgba(224, 87, 59, .32); }
.call-err { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 16px; border-radius: 999px;
  color: var(--ink); background: rgba(224, 87, 59, .28); border: 1px solid rgba(224, 87, 59, .55); font-size: 14px; }
@media (max-width: 699px) {
  .stage { inset: 0 8px 92px; grid-template-columns: minmax(0, 1fr) !important; grid-auto-rows: auto; align-content: start; }
  .stage.sharing .tile:not(.main) { grid-column: 1; }
  body.side-open .stage { right: 8px; }
  .side { inset: 8px 8px 92px !important; width: auto !important; }
  .dock-b { min-width: 0; padding: 0 14px; }
}
/* phones: the top bar keeps every pill on screen (the mark stands in for the wordmark) */
@media (max-width: 480px) {
  .top .brand .wm { display: none; }
  .top .right { gap: 6px; }
  .top .pill.quiet { padding: 0 10px; }
}

/* ---------------------------------------------------------------- after a call: the card in the office, and the report */
.call-card { display: grid; gap: 6px; margin-top: 2px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(var(--sun-rgb), .35); background: linear-gradient(160deg, rgba(var(--sun-rgb), .14), rgba(var(--sun-rgb), .03) 55%), rgba(14,13,12,.35);
  box-shadow: var(--rim), 0 0 28px rgba(var(--sun-rgb), .08); transition: border-color .2s, box-shadow .2s, transform .2s; max-width: 560px; }
.call-card:hover { border-color: rgba(var(--sun-rgb), .7); box-shadow: var(--rim), 0 0 36px rgba(var(--sun-rgb), .18); transform: translateY(-1px); }
.cc-k { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-hot); }
.cc-t p { margin: 0 0 4px; }
.cc-t { color: var(--ink-2); font-size: 14px; }
.cc-t strong, .cc-t b { color: var(--ink); font-size: 15px; }
.cc-f { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
body.at-report { overflow: auto; height: auto; min-height: 100vh; }
body.at-report .app { height: auto; min-height: 100%; }
.report { width: min(1180px, 100%); margin: 0 auto; padding: 8px 20px 60px; }
.report .none { color: var(--ink-3); }
.rp-head { display: grid; gap: 6px; margin: 12px 0 20px; }
.rp-head h1 { margin: 0; font-size: clamp(24px, 3.4vw, 36px); font-weight: 760; letter-spacing: -.015em; line-height: 1.15; }
.rp-meta { margin: 0; color: var(--ink-3); font-size: 14px; }
.rp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.rp-grid.one { grid-template-columns: minmax(0, 1fr); }
.rp-main, .rp-side { display: grid; gap: 18px; min-width: 0; }
.rp-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #0c0b0a; border: 1px solid var(--line-2); box-shadow: var(--rim), var(--lift); }
.rp-sum { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--glass); box-shadow: var(--rim); font-size: 16px; }
.rp-sum p { margin: 0; }
.rp-sec h3 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.act-w { display: grid; gap: 4px; justify-items: start; }
.act { display: grid; gap: 1px; justify-items: start; min-height: 52px; padding: 8px 18px; border-radius: 999px; text-align: left; cursor: pointer;
  color: var(--ink); border: 1px solid rgba(var(--sun-rgb), .55); background: linear-gradient(180deg, rgba(var(--sun-rgb), .26), rgba(var(--sun-rgb), .08)), var(--glass);
  box-shadow: var(--rim), 0 0 20px rgba(var(--sun-rgb), .1); transition: box-shadow .2s, border-color .2s, opacity .2s; }
.act:hover { box-shadow: var(--rim), 0 0 30px rgba(var(--sun-rgb), .25); border-color: rgba(var(--sun-rgb), .85); }
.act .al { font-size: 14px; font-weight: 720; }
.act small { font-size: 11.5px; color: var(--ink-2); }
.act.busy { opacity: .7; cursor: progress; }
.act.done { cursor: default; border-color: rgba(147,196,125,.45); background: rgba(147,196,125,.08); box-shadow: var(--rim); }
.act.done .al::before { content: "\2713  "; color: var(--ok); }
.al-go { margin-left: 18px; font-size: 12px; color: var(--sun-hot); text-decoration: none; }
.rp-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mo { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; text-align: left; color: var(--ink);
  border: 1px solid var(--line-2); background: rgba(14,13,12,.35); cursor: pointer; }
.mo:hover:not(:disabled) { border-color: rgba(var(--sun-rgb), .5); }
.mo:disabled { cursor: default; }
.mo .t { flex: none; min-width: 44px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center;
  color: var(--sun-hot); background: rgba(var(--sun-rgb), .12); }
.mo .mt { display: grid; gap: 3px; min-width: 0; }
.mo .mt b { font-size: 14px; }
.mo .mt q { color: var(--ink-2); font-size: 13px; }
.mo .mt small { color: var(--ink-3); font-size: 11.5px; }
.rp-files { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rp-files a { color: var(--ink); }
@media (max-width: 860px) { .rp-grid { grid-template-columns: minmax(0, 1fr); } }
/* the recorder (LiveKit egress films /call/rec): the call as everyone saw it, no controls */
body.recorder .stage { inset: 14px; }
body.recorder .call-dock, body.recorder .side, body.recorder .call-err, body.recorder .lobby, body.recorder .wb, body.recorder .rec { display: none !important; }

/* ---------------------------------------------------------------- Uptime (Better Stack): the bar + the window */
.uptime-bar { position: sticky; bottom: 0; margin: auto -6px -6px; flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr) 96px;
  align-items: center; gap: 12px; width: calc(100% + 12px); min-height: 60px; padding: 10px 14px; border-radius: 14px; text-align: left;
  border: 1px solid rgba(var(--stone-rgb), .14); color: var(--ink); cursor: pointer;
  background: linear-gradient(180deg, rgba(255,248,236,.06), rgba(255,248,236,.015)), rgba(22, 20, 18, .86);
  box-shadow: var(--rim), 0 -12px 24px rgba(10, 9, 8, .45); transition: border-color .2s ease, box-shadow .2s ease; font: inherit; }
.uptime-bar:hover { border-color: rgba(var(--sun-rgb), .45); box-shadow: var(--rim), 0 -12px 24px rgba(10, 9, 8, .45), 0 0 26px rgba(var(--sun-rgb), .14); }
.uptime-bar.is-bad { border-color: rgba(224, 87, 59, .55); }
.ub-dot, .up-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(147, 196, 125, .8); }
.ub-dot::after, .up-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(147, 196, 125, .6);
  animation: ping 2.4s cubic-bezier(.2, .7, .3, 1) infinite; }
.is-bad .ub-dot, .is-bad .up-dot { background: var(--bad); box-shadow: 0 0 12px rgba(224, 87, 59, .9); }
.is-bad .ub-dot::after, .is-bad .up-dot::after { border-color: rgba(224, 87, 59, .7); animation-duration: 1.2s; }
@keyframes ping { 0% { transform: scale(.5); opacity: 1; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.ub-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ub-t b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ub-t small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ub-line, .spark { width: 100%; height: 28px; overflow: visible; filter: drop-shadow(0 0 3px rgba(var(--sun-rgb), .7)); }
.sp-line { fill: none; stroke: var(--sun-hot); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

body.uptime-open { overflow: hidden; }
.uptime { width: min(1040px, calc(100vw - 24px)); max-height: min(88vh, 920px); padding: 0; overflow: hidden; display: none; flex-direction: column;
  border-radius: 22px; border: 1px solid rgba(var(--stone-rgb), .16); color: var(--ink);
  background: linear-gradient(180deg, rgba(255,248,236,.06), rgba(255,248,236,.012) 40%), rgba(22, 20, 18, .88);
  box-shadow: var(--rim), 0 30px 90px rgba(0, 0, 0, .6), 0 0 120px rgba(var(--sun-rgb), .06); }
.uptime[open] { display: flex; animation: up-in .32s cubic-bezier(.2, .8, .2, 1); }
.uptime.is-bad { border-color: rgba(224, 87, 59, .4); }
.uptime::backdrop { background: rgba(9, 8, 7, .48); backdrop-filter: blur(14px) saturate(.85); -webkit-backdrop-filter: blur(14px) saturate(.85);
  animation: fade .3s ease; }
@keyframes up-in { from { opacity: 0; transform: translateY(10px) scale(.975); } }
@keyframes fade { from { opacity: 0; } }
.up-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.up-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.up-title .up-dot { flex: none; width: 12px; height: 12px; }
.up-title h2 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.01em; }
.up-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.up-x { display: grid; flex: none; }
.up-body { overflow-y: auto; padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 22px; scrollbar-width: thin;
  scrollbar-color: rgba(var(--stone-rgb), .18) transparent; }
.up-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.up-stat { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .16); display: flex; flex-direction: column; gap: 2px; }
.up-stat b { font-size: 30px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.up-stat span { font-size: 12.5px; color: var(--ink-3); }
.up-stat.warn b { color: #f0b858; }
.up-sec h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.up-sec h3 small { font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.up-checks, .up-beats, .up-inc { list-style: none; margin: 0; padding: 0; }
.up-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 150px 64px 150px; align-items: center; gap: 16px; padding: 11px 0; }
.up-row + .up-row, .up-beat + .up-beat, .up-inc li + li { border-top: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--stone-rgb), .35); }
.ok > .dot { background: var(--ok); box-shadow: 0 0 8px rgba(147, 196, 125, .7); }
.bad > .dot { background: var(--bad); box-shadow: 0 0 10px rgba(224, 87, 59, .9); animation: blink 1.2s ease-in-out infinite; }
.up-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.up-name b { font-size: 14px; font-weight: 650; }
.up-name small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bad .up-name small { color: #f08a72; }
.bars { width: 150px; height: 24px; }
.bars rect { transition: opacity .2s; }
.bars rect:hover { opacity: .65; }
.b-ok { fill: rgba(147, 196, 125, .75); }
.b-warn { fill: #e8b04a; }
.b-bad { fill: var(--bad); }
.b-none { fill: rgba(var(--stone-rgb), .12); }
.up-pct { font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.up-rt { display: grid; grid-template-columns: minmax(0, 1fr) 52px; align-items: center; gap: 8px; }
.up-rt .spark { height: 26px; }
.up-rt small { font-size: 12px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.up-beat { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 150px; align-items: center; gap: 16px; padding: 10px 0; }
.up-tag { font-size: 12px; font-weight: 650; color: var(--ink-2); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.bad .up-tag { color: var(--ink); border-color: rgba(224, 87, 59, .6); }
.up-miss { font-size: 12.5px; color: var(--ink-3); text-align: right; }
.up-inc li { display: grid; grid-template-columns: 10px minmax(0, 13em) minmax(0, 1fr) auto 7em; align-items: center; gap: 14px; padding: 8px 0; font-size: 13px; }
.up-inc li > .dot { background: rgba(224, 87, 59, .55); }
.up-inc li.now > .dot { background: var(--bad); animation: blink 1.2s ease-in-out infinite; }
.up-inc b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-inc .why { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-inc time { color: var(--ink-2); white-space: nowrap; }
.up-inc .len { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.up-inc li.now .len { color: #f08a72; }
.up-inc li.none { display: block; }
.up-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.up-exp { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-x { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; color: var(--ink-2);
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .14); }
.chip-x b { color: var(--ink); font-variant-numeric: tabular-nums; }
.chip-x.warn { border-color: rgba(232, 176, 74, .6); }
.chip-x.bad { border-color: rgba(224, 87, 59, .7); }
.up-links { display: flex; gap: 14px; }
.up-links a { font-size: 13px; font-weight: 650; color: var(--sun-hot); text-decoration: none; }
.up-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .up-head { padding: 18px 16px 12px; }
  .up-body { padding: 14px 16px 18px; }
  .up-stats { grid-template-columns: minmax(0, 1fr); }
  .up-sec h3 small { display: none; }
  .up-stat { flex-direction: row; align-items: baseline; gap: 10px; }
  .up-stat b { font-size: 22px; }
  .up-row { grid-template-columns: 10px minmax(0, 1fr) 64px; row-gap: 6px; }
  .up-row .bars { grid-column: 2; width: 100%; }
  .up-row .up-rt { grid-column: 2 / 4; }
  .up-beat { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .up-miss { grid-column: 2 / 4; text-align: left; }
  .up-inc li { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .up-inc .why, .up-inc time { grid-column: 2 / 4; }
}
@media (prefers-reduced-motion: reduce) { .ub-dot::after, .up-dot::after, .bad > .dot, .up-inc li.now > .dot { animation: none; }
  .sp-line { animation: none; stroke-dashoffset: 0; } .uptime[open], .uptime::backdrop { animation: none; } }

/* ---------------------------------------------------------------- chat media: composer buttons, tray, recorder, bubbles, cards, viewer */
.composer { position: relative; padding-left: 5px; }
.cbtn { flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none;
  color: var(--ink-2); cursor: pointer; transition: color .2s ease, background .2s ease; }
.cbtn:hover { color: var(--ink); background: rgba(var(--stone-rgb), .07); }
.cbtn svg, .ic { width: 21px; height: 21px; }
.ic path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic path.fill { fill: currentColor; stroke: none; }
.cbtn.mic { display: none; }
.composer.blank .cbtn.mic:not(.none) { display: grid; color: var(--ink); background: rgba(var(--sun-rgb), .14); }
.composer.blank .cbtn.mic:not(.none) + .send { display: none; }
.cbtn.mic:hover { background: rgba(var(--sun-rgb), .26); }

.recbar { position: absolute; inset: -1px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 5px; border-radius: 26px;
  border: 1px solid rgba(224, 87, 59, .55); background: rgba(24, 21, 18, .96); box-shadow: 0 0 34px rgba(224, 87, 59, .18); }
.recbar[hidden] { display: none; }
.rec-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 12px rgba(224, 87, 59, .9);
  animation: blink 1.1s ease-in-out infinite; }
.rec-t { flex: none; min-width: 3.2em; font: 650 15px/1 var(--font); font-variant-numeric: tabular-nums; }
.rec-wave { flex: 1; min-width: 0; height: 32px; }

.tray { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 8px; padding: 2px 2px 4px; scrollbar-width: thin; }
.tray[hidden] { display: none; }
.chip-f { position: relative; flex: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; align-items: center; gap: 10px;
  width: 250px; padding: 7px 6px 9px 7px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); overflow: hidden; }
.chip-f.err { border-color: rgba(224, 87, 59, .6); }
.chip-f.ok { border-color: rgba(147, 196, 125, .45); }
.cf-thumb { width: 44px; height: 44px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: rgba(0, 0, 0, .3); color: var(--ink-2); }
.cf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cf-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cf-t b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-t small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-x { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.cf-x:hover { color: var(--ink); background: rgba(var(--stone-rgb), .08); }
.cf-x .ic { width: 15px; height: 15px; }
.cf-bar { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 3px; border: 0; appearance: none; -webkit-appearance: none; background: transparent; }
.cf-bar::-webkit-progress-bar { background: transparent; }
.cf-bar::-webkit-progress-value { background: var(--sun-hot); }
.cf-bar::-moz-progress-bar { background: var(--sun-hot); }
.chip-f.ok .cf-bar, .chip-f.err .cf-bar { display: none; }

.dropzone { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none;
  background: rgba(9, 8, 7, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dropzone[hidden] { display: none; }
.dropzone:not([hidden]) { animation: fade .2s ease; }
.dropzone span { padding: 26px 40px; border-radius: 22px; border: 2px dashed rgba(var(--sun-rgb), .7); color: var(--ink); font: 700 18px/1 var(--font);
  background: rgba(var(--sun-rgb), .08); }

/* in the thread */
.msg.has-media { min-width: min(320px, 100%); }
.mblock { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.body p + .mblock, .body ul + .mblock { margin-top: 8px; }
.mgrid { display: grid; gap: 4px; border-radius: 14px; overflow: hidden; max-width: 440px; }
.mgrid.n1 { grid-template-columns: minmax(0, 1fr); }
.mgrid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mgrid.n3, .mgrid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mgrid.n3 .tile:first-child { grid-column: 1 / 3; }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 0; background: rgba(0, 0, 0, .35); cursor: zoom-in;
  aspect-ratio: 1; overflow: hidden; color: #fff; }
.mgrid.n1 .tile { aspect-ratio: 4 / 3; }
.mgrid.n1 .tile.tall { aspect-ratio: 3 / 4; max-height: 440px; }
.mgrid.n1 .tile.wide { aspect-ratio: 16 / 9; }
.mgrid.n3 .tile:first-child { aspect-ratio: 16 / 9; }
.tile img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s ease, transform .35s ease, filter .35s ease; }
img.pic { opacity: 0; }
img.pic.in { opacity: 1; }
.tile:hover img { transform: scale(1.03); filter: brightness(1.06); }
.tile.video { cursor: pointer; }
.tile .ph { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.03) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.play-mark { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(16, 14, 12, .55); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .4); transition: transform .2s ease, background .2s ease; }
.play-mark .ic { width: 22px; height: 22px; margin-left: 3px; color: #fff; }
.tile:hover .play-mark, .lmain:hover .play-mark { transform: scale(1.08); background: rgba(var(--sun-rgb), .8); }
.dur, .from { position: absolute; bottom: 7px; padding: 2px 7px; border-radius: 6px; font: 650 11.5px/1.4 var(--font); background: rgba(0, 0, 0, .6); color: #fff;
  font-variant-numeric: tabular-nums; }
.dur { right: 7px; }
.from { left: 7px; }
.busy-l { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 7px; font-size: 12px; text-align: center;
  background: rgba(0, 0, 0, .6); color: var(--ink-2); }
.tile .more { position: absolute; inset: 0; display: grid; place-items: center; font: 750 26px/1 var(--font); background: rgba(10, 9, 8, .55); }
.fcard { display: grid; grid-template-columns: 46px minmax(0, 1fr) 22px; align-items: center; gap: 12px; max-width: 440px; padding: 8px 12px 8px 8px;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .18); color: var(--ink); text-decoration: none; }
.fcard:hover { border-color: rgba(var(--sun-rgb), .45); }
.body a.fcard, .body a.lout { color: var(--ink); text-decoration: none; }
.fthumb { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: rgba(var(--stone-rgb), .06); color: var(--ink-2); }
.fthumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ftext { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ftext b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftext small { font-size: 12px; color: var(--ink-3); }
.fcard > .ic { color: var(--ink-3); width: 18px; height: 18px; }

.memo { max-width: 400px; padding: 8px 12px 8px 8px; border-radius: 16px; border: 1px solid rgba(var(--sun-rgb), .2);
  background: linear-gradient(180deg, rgba(var(--sun-rgb), .07), rgba(var(--sun-rgb), .015)); }
.memo-row { display: flex; align-items: center; gap: 10px; }
.mplay { flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fffefc; cursor: pointer;
  background: linear-gradient(180deg, #f27c35, #ec6a1e 55%, #e9661a); box-shadow: inset 0 1px 0 rgba(255,228,204,.7), 0 8px 18px -8px rgba(200,84,20,.9); }
.mplay .ic { width: 18px; height: 18px; }
.memo:not(.on) .mplay .ic { margin-left: 2px; }
.mwave { flex: 1; min-width: 60px; height: 32px; cursor: pointer; }
.mwave rect { fill: rgba(var(--stone-rgb), .32); transition: fill .15s; }
.mwave rect.on { fill: var(--sun-hot); }
.mtime { flex: none; min-width: 2.6em; font: 600 12.5px/1 var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.mspeed { flex: none; height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--ink-2);
  font: 700 11.5px/1 var(--font); cursor: pointer; }
.mspeed:hover { color: var(--ink); border-color: rgba(var(--sun-rgb), .5); }
.unplayed { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #6fb3ff; box-shadow: 0 0 8px rgba(111, 179, 255, .8); }
.mwords { margin: 7px 2px 1px 50px; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mwords.open { display: block; }
.mwords.none { color: var(--ink-3); font-style: italic; cursor: default; }
.memo.audio { border-color: var(--line-2); background: rgba(0, 0, 0, .16); }

.lcards { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.lcard { position: relative; max-width: 440px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .2); overflow: hidden;
  transition: border-color .2s ease; }
.lcard:hover { border-color: rgba(var(--sun-rgb), .45); }
.lcard.loading { height: 74px; background: linear-gradient(110deg, rgba(255,255,255,.02) 30%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.02) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.lmain { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.lthumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.lthumb.tall { aspect-ratio: 4 / 3; }
.lthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s ease; }
.fthumb img { transition: opacity .3s ease; }
.lcard.k-x .lthumb { aspect-ratio: 16 / 10; }
.ltext { display: flex; flex-direction: column; gap: 2px; padding: 10px 40px 11px 13px; line-height: 1.35; }
.lsite { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--sun-hot); text-transform: none; }
.ltext b { font-size: 14px; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ldesc { font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lout { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.lout:hover { color: var(--ink); background: rgba(var(--stone-rgb), .08); }
.lout .ic { width: 15px; height: 15px; }

/* the viewer: one dialog over a blurred office */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: fade .25s ease; }
.viewer::backdrop { background: rgba(6, 5, 4, .82); backdrop-filter: blur(18px) saturate(.8); -webkit-backdrop-filter: blur(18px) saturate(.8); }
.viewer[open]::backdrop { animation: fade .25s ease; }
.viewer.closing, .viewer.closing::backdrop { animation: fade-out .2s ease forwards; }
@keyframes fade-out { to { opacity: 0; } }
.v-stage { min-height: 0; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 64px 8px; }
.v-stage > * { grid-area: 1 / 1; animation: v-in .32s cubic-bezier(.2, .8, .2, 1); }
.v-stage > .out { animation: v-out .24s ease forwards; pointer-events: none; }
@keyframes v-out { to { opacity: 0; transform: scale(1.015); } }
@keyframes v-in { from { opacity: 0; transform: scale(.965); } }
.v-media { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); background: #000; }
img.v-media { object-fit: contain; }
video.v-media { width: min(100%, 1600px); max-height: calc(100dvh - 110px); }
.v-frame { width: min(100%, 1280px); aspect-ratio: 16 / 9; max-height: calc(100dvh - 110px); border: 0; border-radius: 12px; background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.viewer.tall .v-frame { width: auto; height: min(calc(100dvh - 110px), 760px); aspect-ratio: 9 / 16; max-width: 100%; }
.v-wait { padding: 26px 34px; border-radius: 16px; background: rgba(28, 25, 22, .85); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 15px; }
.v-nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(20, 18, 16, .6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.v-nav svg { width: 22px; height: 22px; }
.v-nav.prev { left: 12px; }
.v-nav.next { right: 12px; }
.v-nav[hidden] { display: none; }
.v-bar { display: flex; align-items: center; gap: 14px; padding: 8px 16px max(12px, env(safe-area-inset-bottom)); }
.v-cap { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-dl { font-size: 13.5px; font-weight: 650; color: var(--sun-hot); text-decoration: none; }
.v-dl[hidden] { display: none; }
.v-x { display: grid !important; color: #fff; border-color: rgba(255, 255, 255, .3); }
@media (max-width: 700px) { .v-stage { padding: max(10px, env(safe-area-inset-top)) 6px 6px; } .v-nav { display: none; } .chip-f { width: 220px; } }
@media (prefers-reduced-motion: reduce) { .rec-dot, .tile .ph, .lcard.loading, .v-stage > * { animation: none; } img.pic { opacity: 1; } }
.tile:has(img.pic.in) .ph { display: none; }

/* ---------------------------------------------------------------- Skyline: Philadelphia's open opportunities over a dark 3D city */
.dock-bars { position: sticky; bottom: 0; margin: auto -6px -6px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.dock-bars .uptime-bar { position: static; margin: 0; width: 100%; }
.skyline-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) 98px; align-items: center; gap: 12px; width: 100%; min-height: 60px;
  padding: 10px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); border: 1px solid rgba(var(--sun-rgb), .32);
  background: radial-gradient(120% 140% at 100% 100%, rgba(var(--sun-rgb), .16), transparent 60%),
              linear-gradient(180deg, rgba(255,248,236,.06), rgba(255,248,236,.015)), rgba(22, 20, 18, .86);
  box-shadow: var(--rim), 0 -12px 24px rgba(10, 9, 8, .45); transition: border-color .2s ease, box-shadow .2s ease; }
.skyline-bar:hover { border-color: rgba(var(--sun-rgb), .7); box-shadow: var(--rim), 0 -12px 24px rgba(10, 9, 8, .45), 0 0 30px rgba(var(--sun-rgb), .2); }
.sk-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 12px rgba(var(--sun-rgb), .9); }
.sk-mini { width: 100%; height: 28px; overflow: visible; }
.sk-mini rect { fill: rgba(var(--sun-rgb), .78); filter: drop-shadow(0 0 3px rgba(var(--sun-rgb), .8)); }
.sk-mini rect.sk-c { fill: rgba(226, 176, 106, .35); filter: none; }

body.at-skyline { background: #0e0c0b; }
body.at-skyline .deep { display: none; }
body.at-skyline .top { position: relative; z-index: 3; background: linear-gradient(180deg, rgba(14,12,11,.92), rgba(14,12,11,.55) 70%, transparent); }
.sky-app { position: relative; flex: 1; min-height: 0; }
.sky-app > .sky-map { position: fixed; inset: 0; z-index: 0; background: #0e0c0b; }   /* beats maplibre-gl.css .maplibregl-map { position: relative } */
.sky-map .maplibregl-canvas { outline: none; }
.sky-side, .sky-card { position: absolute; z-index: 2; border: 1px solid rgba(var(--stone-rgb), .1); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,248,236,.05), rgba(255,248,236,.01) 46%), rgba(20, 18, 16, .74);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15); box-shadow: var(--rim), var(--lift); }
.sky-side { left: 14px; top: 6px; bottom: 14px; width: 368px; display: flex; flex-direction: column; overflow: hidden; }
.sky-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 16px 10px; }
.sky-head h1 { margin: 0; font-size: 22px; font-weight: 760; letter-spacing: -.01em; }
.sky-sub { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.sky-fold { display: none; }
.sky-fold svg { width: 18px; height: 18px; }
.sky-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.sky-chips .chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; font-size: 12.5px; font-weight: 650; }
.sky-chips .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.sky-chips .chip b { font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sky-chips .chip.on b { color: var(--ink-2); }
.sky-chips .chip:not(.on) i { opacity: .35; box-shadow: none; }
.sky-search { display: block; padding: 0 16px 10px; }
.sky-search input { width: 100%; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25);
  color: var(--ink); font: inherit; font-size: 14px; }
.sky-search input:focus { outline: none; border-color: rgba(var(--sun-rgb), .55); }
.sky-list { flex: 1; min-height: 0; margin: 0; padding: 0 8px 8px; list-style: none; overflow-y: auto; scrollbar-width: none; }
.sky-list::-webkit-scrollbar { display: none; }
.sky-list .none { padding: 18px 10px; color: var(--ink-3); font-size: 14px; }
.opp { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 8px; border: 1px solid transparent;
  border-radius: 13px; background: none; text-align: left; transition: background .15s ease, border-color .15s ease; }
.opp:hover { background: rgba(var(--stone-rgb), .05); }
.opp.sel { background: rgba(var(--sun-rgb), .1); border-color: rgba(var(--sun-rgb), .4); }
.sc, .sc-score { position: relative; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--s) * 1%), rgba(var(--stone-rgb), .09) 0); }
.sc { width: 40px; height: 40px; }
.sc::before, .sc-score::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #171513; }
.sc b { position: relative; font-size: 13px; font-weight: 760; font-variant-numeric: tabular-nums; }
.ot { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ot b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot small { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot small.ow { color: var(--ink-3); }
.ot em { font-style: normal; color: var(--sun-hot); font-weight: 700; }
.sky-foot { margin: 0; padding: 10px 16px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }
.sky-foot .warn { color: #e8b04a; }

.sky-card { right: 14px; top: 6px; width: 400px; max-height: calc(100% - 20px); overflow-y: auto; scrollbar-width: none; padding: 18px;
  animation: card-in .35s cubic-bezier(.2, .8, .2, 1); }
.sky-card::-webkit-scrollbar { display: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.sc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sc-head h2 { font-size: 21px; font-weight: 760; line-height: 1.2; letter-spacing: -.01em; }
.sc-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.stx { color: var(--c); font-weight: 650; }
.sc-big { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; margin: 18px 0 14px; }
.sc-big > div:not(.sc-score) { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 13px; background: rgba(var(--stone-rgb), .045);
  border: 1px solid var(--line); }
.sc-big b { font-size: 30px; font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-big small { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.sc-score { width: 74px; height: 74px; }
.sc-score b, .sc-score small { position: relative; }
.sc-score b { font-size: 24px; line-height: 1; margin-top: 8px; }
.sc-score small { margin: -10px 0 0; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 14px; padding: 0; list-style: none; }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; font-size: 11.5px; color: var(--ink-3); }
.track li::before { content: ""; position: absolute; top: 5px; left: -50%; right: 50%; height: 2px; background: rgba(var(--stone-rgb), .1); }
.track li:first-child::before { display: none; }
.track li.past::before, .track li.now::before { background: rgba(var(--sun-rgb), .7); }
.track i { position: relative; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(var(--stone-rgb), .2); background: #171513; }
.track li.past i { border-color: var(--sun); background: var(--sun); }
.track li.now i { border-color: var(--sun-hot); background: #fff1df; box-shadow: 0 0 0 4px rgba(var(--sun-rgb), .22), 0 0 14px rgba(var(--sun-rgb), .9); }
.track b { margin-top: 4px; font-weight: 700; color: var(--ink-2); }
.track li.now b { color: var(--ink); }
.why { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.why li { padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--ink-2); background: rgba(var(--sun-rgb), .08); border: 1px solid rgba(var(--sun-rgb), .2); }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; margin: 0 0 14px; font-size: 13px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.scope { margin: 0 0 12px; font-size: 13px; }
.scope summary { cursor: pointer; color: var(--ink-2); font-weight: 650; }
.scope p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.5; text-transform: lowercase; }
.scope p::first-letter { text-transform: uppercase; }
.sky-card .note { margin: 0 0 12px; font-size: 12px; color: var(--ink-3); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.acts .pill { height: 38px; padding: 0 16px; font-size: 13.5px; font-weight: 650; text-decoration: none; color: var(--ink); }
.acts .pill.sun { border-color: rgba(var(--sun-rgb), .8); background: linear-gradient(180deg, rgba(var(--sun-rgb), .38), rgba(var(--sun-rgb), .2)); }
.acts .pill.on { border-color: rgba(147, 196, 125, .6); color: var(--ok); }

.sky-map .maplibregl-ctrl-group { background: rgba(20, 18, 16, .78); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--rim); overflow: hidden; }
.sky-map .maplibregl-ctrl-group button { width: 34px; height: 34px; }
.sky-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line); }
.sky-map .maplibregl-ctrl-icon { filter: invert(.86) sepia(.25); }
.sky-app .maplibregl-ctrl.maplibregl-ctrl-attrib, .sky-app .maplibregl-ctrl-attrib.maplibregl-compact-show { background: rgba(14, 12, 11, .72); color: var(--ink-3); font-size: 10.5px; }
.sky-map .maplibregl-ctrl-attrib a { color: var(--ink-2); }
.sky-map .maplibregl-ctrl-attrib-button { filter: invert(.8); }
.sky-map .maplibregl-ctrl-bottom-right { right: 6px; bottom: 6px; }
@media (min-width: 900px) { .sky-map .maplibregl-ctrl-bottom-right { right: 428px; } .sky-app:not(:has(.sky-card:not([hidden]))) .maplibregl-ctrl-bottom-right { right: 6px; } }

@media (max-width: 899px) {
  .sky-side { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; height: 46vh; height: 46dvh; padding-bottom: env(safe-area-inset-bottom); transition: height .3s ease; }
  .sky-app.folded .sky-side { height: 138px; }
  .sky-head { padding: 12px 14px 8px; }
  .sky-head h1 { font-size: 19px; }
  .sky-fold { display: grid; transition: transform .3s ease; }
  .sky-app.folded .sky-fold { transform: rotate(180deg); }
  .sky-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 14px 8px; }
  .sky-chips .chip { flex: none; }
  .sky-foot { display: none; }
  .sky-card { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 62vh; max-height: 62dvh; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .sky-map .maplibregl-ctrl-bottom-right { bottom: calc(46dvh + 14px); }
  .sky-app.folded .maplibregl-ctrl-bottom-right { bottom: 152px; }
}
@media (prefers-reduced-motion: reduce) { .sky-card { animation: none; } }

/* Skyline, 50 miles */
.sky-head > div:first-child { flex: 1; min-width: 0; }
.sky-wide { flex: none; height: 32px; padding: 0 12px; font-size: 12.5px; font-weight: 700; color: var(--ink); border-color: rgba(var(--sun-rgb), .45); }
.sky-chips .chip.new.on { border-color: rgba(var(--sun-rgb), .8); background: rgba(var(--sun-rgb), .18); }
.ot i.nw { font-style: normal; font-size: 10.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--sun-hot); }
.sky-foot { display: flex; flex-direction: column; gap: 2px; }
.sky-foot .src.bad { color: #e8b04a; }
.news { margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.news h3 { margin: 0; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.news a { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink);
  background: rgba(var(--stone-rgb), .045); border: 1px solid var(--line); }
.news a:hover { border-color: rgba(var(--sun-rgb), .45); }
.news b { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.news small { font-size: 11.5px; color: var(--ink-3); }
.news q { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; quotes: "\201C" "\201D"; }
.brief { margin: 0 0 14px; padding: 12px 14px; border-radius: 13px; background: rgba(var(--stone-rgb), .045); border: 1px solid rgba(var(--sun-rgb), .28);
  scroll-margin-top: 10px; }
.brief[hidden] { display: none; }
.brief h3 { margin: 0 0 8px; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--sun-hot); }
.brief .md { font-size: 13.5px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.brief .md p { margin: 0 0 8px; }
.brief .md ul { margin: 0 0 8px; padding-left: 18px; }
.brief .md li { margin: 0 0 4px; }
.brief .md b { font-weight: 720; }
.brief a { color: var(--sun-hot); text-decoration: underline; text-decoration-color: rgba(var(--sun-rgb), .4); text-underline-offset: 2px; }
.brief .wait { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.brief .wait i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(var(--sun-rgb), .25); border-top-color: var(--sun-hot);
  animation: brief-spin 1s linear infinite; }
@keyframes brief-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brief .wait i { animation: none; } }
.brief .bad { margin: 0 0 8px; font-size: 13px; color: #e8b04a; }
.brief .src { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-3); }

.sky-app .close { display: grid; place-items: center; flex: none; }   /* the office hides .close on desktop; Skyline needs it */
@media (max-width: 899px) { .sky-foot { display: none; } }

/* ---------------------------------------------------------------- Future integrations: the Tools-panel bar + /integrations (parked tools) */
.int-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) 98px; align-items: center; gap: 12px; width: 100%; min-height: 60px;
  padding: 10px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); border: 1px solid rgba(var(--stone-rgb), .14);
  background: linear-gradient(180deg, rgba(255,248,236,.06), rgba(255,248,236,.015)), rgba(22, 20, 18, .86);
  box-shadow: var(--rim), 0 -12px 24px rgba(10, 9, 8, .45); transition: border-color .2s ease, box-shadow .2s ease; }
.int-bar:hover { border-color: rgba(var(--sun-rgb), .45); box-shadow: var(--rim), 0 -12px 24px rgba(10, 9, 8, .45), 0 0 26px rgba(var(--sun-rgb), .14); }
.int-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(var(--stone-rgb), .55); }
.int-mini { width: 100%; height: 28px; overflow: visible; }
.int-mini rect { fill: none; stroke: rgba(var(--stone-rgb), .45); stroke-width: 1.2; stroke-dasharray: 2.4 1.8; }
.int-bar:hover .int-mini rect { stroke: rgba(var(--sun-rgb), .8); }
.team .int-bar { margin-top: auto; grid-template-columns: auto minmax(0, 1fr); min-height: 56px; box-shadow: var(--rim); }
.team .int-mini { display: none; }
@media (min-width: 1240px) { .team { display: flex; flex-direction: column; } .dock-bars .int-alt { display: none; } }

body.at-integrations .app { overflow-y: auto; }
.ints { width: min(860px, calc(100% - 20px)); margin: 4px auto 24px; padding: 26px 26px 30px; border-radius: 22px;
  border: 1px solid rgba(var(--stone-rgb), .1); background: var(--glass); box-shadow: var(--rim), var(--lift);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.ints-head { margin-bottom: 20px; }
.ints-head h1 { margin: 0 0 4px; font-size: clamp(26px, 5vw, 34px); font-weight: 720; letter-spacing: -.02em; }
.ints-head .quiet-note { font-size: 14px; color: var(--ink-2); }
.int-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.int-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 20px; border: 1px solid rgba(var(--stone-rgb), .12);
  background: linear-gradient(180deg, rgba(var(--stone-rgb), .06), rgba(var(--stone-rgb), .015) 50%), rgba(0, 0, 0, .18);
  box-shadow: var(--rim), 0 1px 1px rgba(0,0,0,.3), 0 12px 26px rgba(0,0,0,.34); }
.int-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.int-top h2 { margin: 0; font-size: 17px; font-weight: 720; letter-spacing: -.01em; line-height: 1.3; }
.int-chip { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2);
  border: 1px dashed rgba(var(--stone-rgb), .4); background: rgba(var(--stone-rgb), .05); }
.int-what { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.int-yes { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--ink);
  border-left: 2px solid rgba(var(--sun-rgb), .7); background: rgba(var(--sun-rgb), .06); }
.int-yes b { color: var(--sun-hot); font-weight: 700; }
.int-foot { margin: auto 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--ink-3); }
.int-src { min-width: 0; color: var(--ink-2); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.int-src::after { content: " \2197"; }
.int-src:hover { color: var(--sun-hot); }
@media (max-width: 760px) { .int-list { grid-template-columns: minmax(0, 1fr); } .ints { padding: 18px 14px 22px; width: calc(100% - 16px); } }

/* ---------------------------------------------------------------- Autopilot: every scheduled job + always-on service */
.dock-bars .jobs-bar { position: static; margin: 0; width: 100%; }
.jb-dots { width: 96px; height: 28px; }
.jd { fill: rgba(var(--stone-rgb), .3); }
.jd.ok { fill: var(--ok); filter: drop-shadow(0 0 2px rgba(147, 196, 125, .8)); }
.jd.bad { fill: var(--bad); filter: drop-shadow(0 0 3px rgba(224, 87, 59, .9)); }
.jb-list, .jb-always { list-style: none; margin: 0; padding: 0; }
.jb-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 118px 62px 118px; align-items: center; gap: 14px; padding: 10px 0; }
.jb-row + .jb-row { border-top: 1px solid var(--line); }
.jb-row .up-tag { justify-self: start; white-space: nowrap; }
.jb-where { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.jb-when { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; text-align: right; }
.jb-when b { font-size: 13px; font-weight: 650; white-space: nowrap; }
.jb-when small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.bad .jb-when b { color: #f08a72; }
.jb-always { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jb-svc { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .14); }
.jb-svc.bad { border-color: rgba(224, 87, 59, .55); }
.jb-svc .up-name b { font-size: 13px; }
.jb-svc .up-name small { font-size: 11.5px; }
.jb-down { font-size: 12px; font-weight: 700; color: #f08a72; }
@media (max-width: 760px) {
  .jb-row { grid-template-columns: 10px minmax(0, 1fr) auto; row-gap: 4px; }
  .jb-row .up-tag { grid-column: 2; grid-row: 2; }
  .jb-where { grid-column: 3; grid-row: 2; text-align: right; }
  .jb-when { grid-column: 3; grid-row: 1; }
  .jb-always { grid-template-columns: minmax(0, 1fr); }
}
