/*
 * Webway Live Chat — agent app.
 * Tokens come verbatim from the "Sticky Live Chat" Claude Design canvas
 * (design-import/Sticky Live Chat.dc.html): near-black #0b0b0b ground,
 * #131313 cards on #1e1e1e/#232323 hairlines, yellow #FFD400 as the working
 * accent with #111 ink on it, hot pink #FF2E93 for section labels/alerts,
 * pill buttons with letter-spaced uppercase 11.5px labels, tight uppercase
 * display headings. The design used Barlow + Archivo Black from Google
 * Fonts; this project ships no CDN assets, so system stacks stand in.
 * Widget-facing colours live in widget.css; a site's widgetColor never
 * leaks into this file.
 */

:root {
  color-scheme: dark;

  --st-bg: #0b0b0b;
  --st-bg-thread: #0e0e0e;
  --st-bg-row: #0f0f0f;
  --st-card: #131313;
  --st-card-hi: #151515;
  --st-sunken: #0b0b0b;
  --st-input: #141414;
  --st-line: #1e1e1e;
  --st-line-2: #232323;
  --st-line-3: #2c2c2c;
  --st-line-row: #171717;

  --st-text: #ffffff;
  --st-text-2: #e8e8e8;
  --st-text-3: #c8c8c8;
  --st-muted: #9a9a9a;
  --st-faint: #7f7f7f;
  --st-dim: #6f6f6f;
  --st-dimmer: #5e5e5e;

  --st-yellow: #FFD400;
  --st-pink: #FF2E93;
  --st-green: #8fd48f;
  --st-blue: #7ab5ff;
  --st-ink: #111111;

  --st-breached-bg: #3a0f21;  --st-breached: #ff7ab5;
  --st-resolved-bg: #12240f;  --st-resolved: #8fd48f;
  --st-note-bg: #151109;      --st-note-line: #3a2f12; --st-note-text: #e2dcc9; --st-note-meta: #8a7c52;

  --st-r-pill: 999px;
  --st-r-card: 18px;
  --st-r-panel: 14px;
  --st-r-input: 10px;
  --st-r-sticker: 5px;

  --st-shadow: 0 28px 60px rgba(0, 0, 0, .6);
  --st-shadow-sm: 0 16px 34px rgba(0, 0, 0, .55);

  --st-font: Barlow, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --st-display: "Archivo Black", "Arial Black", Impact, "Helvetica Neue", Arial, sans-serif;

  /* Legacy aliases used by the page templates' inline styles. */
  --wc-muted: var(--st-muted);
  --wc-faint: var(--st-faint);
  --wc-radius-sm: var(--st-r-input);
}

/* Anything with the hidden attribute stays hidden even when a class sets display. */
[hidden] { display: none !important; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--st-bg);
  color: var(--st-text);
  font-family: var(--st-font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--st-yellow); text-decoration: none; }
a:hover { color: var(--st-pink); }

input, textarea, button, select, pre { font-family: var(--st-font); }
input::placeholder, textarea::placeholder { color: #6a6a6a; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 9px; }

@keyframes st-dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes st-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── Type helpers ────────────────────────────────────────────────────────── */

.display {
  font-family: var(--st-display);
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.eyebrow {
  font: 700 10.5px var(--st-font);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--st-pink);
}
.eyebrow.yellow { color: var(--st-yellow); }
.eyebrow.grey { color: #8a8a8a; }

/* Rotated sticker tag (the design's "N waiting" / "Visitor side" labels). */
.sticker {
  display: inline-block;
  transform: rotate(-3deg);
  background: var(--st-yellow);
  color: var(--st-ink);
  padding: 4px 9px;
  border-radius: var(--st-r-sticker);
  font: 700 10.5px var(--st-font);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sticker.pink { background: var(--st-pink); color: #fff; }
.sticker.lg { padding: 6px 13px; font-size: 11px; letter-spacing: .16em; transform: rotate(-2deg); }

/* ── Shell / nav ─────────────────────────────────────────────────────────── */

.app-shell { height: 100%; display: flex; flex-direction: column; overflow: hidden; }

.topnav {
  flex: none;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 64px;
  padding: 0 22px;
  background: var(--st-bg);
  border-bottom: 1px solid var(--st-line);
}

.topnav .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--st-text);
}
.topnav .brand:hover { color: var(--st-text); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--st-yellow);
  color: var(--st-ink);
  font-family: var(--st-display);
  font-size: 15px;
  transform: rotate(-4deg);
  flex: none;
}
.brand-name {
  font-family: var(--st-display);
  font-size: 17px;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.topnav nav { display: flex; gap: 3px; min-width: 0; }

.nav-link-top {
  height: 34px;
  padding: 0 15px;
  border-radius: var(--st-r-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font: 700 11.5px var(--st-font);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--st-muted);
  background: transparent;
}
.nav-link-top:hover { color: var(--st-text); }
.nav-link-top.active { background: var(--st-yellow); color: var(--st-ink); }
.nav-link-top.active:hover { color: var(--st-ink); }
.nav-link-top .badge-count { background: var(--st-pink); color: #fff; }
.nav-link-top.active .badge-count { background: var(--st-ink); color: var(--st-yellow); }
button.nav-link-top { border: 0; cursor: pointer; font-family: var(--st-font); }

.topnav .spacer { flex: 1; }

.topnav .who {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
/* Availability control (Claude Design "Sticky Live Chat"): a status-coloured
   pill trigger opening a yellow-bordered menu of radio rows — same shape as
   the site picker above, wired the same way by js/shell.js's
   window.LiveChatMenu.attach. #my-status-badge (read-only agents) reuses
   .status-btn for the same look with no chevron/menu. */
.topnav .who .presence {
  /* inline-flex, not the bare inline the old <select> sat in: this span is the
     menu's containing block, and an inline box's right:0 is unreliable. */
  display: inline-flex;
  align-items: center;
  position: relative;
  flex: none;
  z-index: 30;
  --status-color: var(--st-green);
  white-space: nowrap;
}
.topnav .who .presence.away { --status-color: var(--st-yellow); }
.topnav .who .presence.invisible { --status-color: var(--st-faint); }

.status-btn {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 12px;
  border-radius: var(--st-r-pill); cursor: pointer;
  border: 2px solid var(--status-color); background: transparent; color: var(--status-color);
  font: 700 10.5px var(--st-font); letter-spacing: .16em; text-transform: uppercase;
}
.status-btn-static { cursor: default; }
.status-btn:not(.status-btn-static):hover { background: rgba(255, 255, 255, .04); }
.presence.open .status-btn { border-color: var(--st-yellow); background: rgba(255, 212, 0, .08); color: #fff; }

.status-dot {
  width: 9px; height: 9px; border-radius: var(--st-r-pill); flex: none;
  background: var(--status-color);
}
/* Only the online colour pulses gently — away/invisible sit still. */
.presence:not(.away):not(.invisible) .status-dot {
  box-shadow: 0 0 0 3px rgba(143, 212, 143, .18);
  animation: st-live 2s ease-in-out infinite;
}
@keyframes st-live {
  0%, 100% { box-shadow: 0 0 0 3px rgba(143, 212, 143, .18); }
  50% { box-shadow: 0 0 0 3px rgba(143, 212, 143, .38); }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}

.status-label { flex: 1; white-space: nowrap; }
.status-chev { flex: none; font: 700 12px var(--st-font); line-height: 1; transition: transform .16s ease; }
.presence.open .status-chev { color: var(--st-yellow); transform: rotate(180deg); }

.status-menu {
  position: absolute; top: calc(100% + 9px); right: 0; min-width: 214px;
  background: #141414; border: 2px solid var(--st-yellow); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  padding: 7px; display: flex; flex-direction: column; gap: 3px;
}
.status-menu[hidden] { display: none; }
.status-row {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px;
  border: 0; border-radius: 11px; cursor: pointer; text-align: left; background: transparent;
  font-family: var(--st-font);
}
.status-row[aria-checked="true"] { background: rgba(255, 212, 0, .10); }
.status-row-dot { width: 11px; height: 11px; border-radius: var(--st-r-pill); flex: none; background: transparent; }
.status-row[data-status="ONLINE"] .status-row-dot { background: var(--st-green); border: 2px solid var(--st-green); }
.status-row[data-status="AWAY"] .status-row-dot { background: var(--st-yellow); border: 2px solid var(--st-yellow); }
.status-row[data-status="INVISIBLE"] .status-row-dot { border: 2px solid var(--st-faint); }
.status-row-text { flex: 1; min-width: 0; }
.status-row-label { font: 700 11px var(--st-font); letter-spacing: .12em; text-transform: uppercase; color: #c2c2c2; }
.status-row[aria-checked="true"] .status-row-label { color: var(--st-text); }
.status-row-note { display: block; margin-top: 3px; font: 500 11px var(--st-font); color: var(--st-dim); }
.status-row[aria-checked="true"] .status-row-note { color: #8a8a8a; }
.status-row-check { flex: none; width: 12px; font: 900 12px var(--st-font); color: var(--st-yellow); }
.status-row[aria-checked="true"] .status-row-check::before { content: "\2713"; }
.topnav .who .vsep { width: 1px; height: 20px; background: #2a2a2a; }
.status-cell { white-space: nowrap; }
.status-cell .status-auto { margin-left: 6px; font: 600 10px var(--st-font); letter-spacing: .12em; text-transform: uppercase; color: var(--st-faint); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.topnav .who .me {
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  color: var(--st-text);
  padding: 4px 10px 4px 4px;
  margin: -4px 0;
  border-radius: var(--st-r-pill);
}
.topnav .who .me:hover { background: var(--st-card-hi); color: var(--st-text); }
.topnav .who .me strong { font: 700 13px var(--st-font); }
.topnav .who .email { display: none; }
.topnav form.logout-form { margin: 0; }

.avatar {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--st-r-pill);
  background: var(--st-pink);
  color: #fff;
  font: 700 12px var(--st-font);
  flex: none;
  text-transform: uppercase;
}
.avatar.grey { background: #2a2a2a; }
.avatar.yellow { background: var(--st-yellow); color: var(--st-ink); }
.avatar.md { width: 38px; height: 38px; font-size: 14px; }
.avatar.lg { width: 46px; height: 46px; font-size: 17px; }
.avatar.xl { width: 84px; height: 84px; font-size: 30px; }
img.avatar { object-fit: cover; display: block; background: var(--st-line-2); }

/* Account page — profile picture field */
.avatar-field { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.avatar-preview { flex: none; }
.avatar-actions { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
.avatar-actions .field-hint { margin-top: 0; }
.field-hint.field-hint-error { color: var(--st-pink); }
.avatar-pick { align-self: flex-start; cursor: pointer; }

/* Site settings — logo / favicon fields (same avatar-field/-actions/-pick layout, own preview shape) */
.brand-preview {
  display: flex; align-items: center; justify-content: center; flex: none;
  background: var(--st-line-2); border: 1px solid var(--st-line); border-radius: 10px; overflow: hidden;
}
.brand-preview img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-preview.logo { width: 160px; height: 54px; }
.brand-preview.favicon { width: 44px; height: 44px; border-radius: 8px; }
.brand-preview .brand-placeholder { font: 600 11px var(--st-font); color: var(--st-faint); text-align: center; padding: 4px; }

/* ── Buttons (all pills) ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--st-r-pill);
  border: 1px solid var(--st-line-3);
  background: transparent;
  color: var(--st-text-2);
  font: 700 11.5px var(--st-font);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, opacity .12s;
  line-height: 1;
}
.btn:disabled { opacity: .5; cursor: default; }

.btn-primary { border: 2px solid var(--st-yellow); background: var(--st-yellow); color: var(--st-ink); }
.btn-primary:hover:not(:disabled) { background: transparent; color: var(--st-yellow); }

.btn-outline { border: 2px solid var(--st-yellow); color: var(--st-yellow); }
.btn-outline:hover:not(:disabled) { background: var(--st-yellow); color: var(--st-ink); }

.btn-default:hover:not(:disabled) { border-color: var(--st-pink); color: var(--st-pink); }

.btn-danger { border-color: var(--st-pink); color: var(--st-pink); }
.btn-danger:hover:not(:disabled) { background: var(--st-pink); color: #fff; }

.btn-sm { height: 34px; padding: 0 14px; font-size: 11px; letter-spacing: .13em; }
.btn-block { width: 100%; height: 52px; font-size: 13px; }

/* ── Layout helpers ──────────────────────────────────────────────────────── */

.page { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.container { max-width: 1240px; margin: 0 auto; padding: 44px 32px 90px; width: 100%; }
.container-wide { width: 100%; flex: 1; min-height: 0; display: flex; flex-direction: column; }

h1.page-title {
  font-family: var(--st-display);
  font-size: 48px;
  line-height: .85;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 18px 0 0;
}
p.page-sub {
  margin: 20px 0 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.7;
  color: #a5a5a5;
  text-wrap: pretty;
}
h1.page-title + *:not(.page-sub), p.page-sub + * { margin-top: 32px; }
.rule { height: 3px; background: var(--st-line); margin: 30px 0 32px; }

/* ── Flash banners ───────────────────────────────────────────────────────── */

.flash {
  margin: 0;
  padding: 11px 22px;
  font: 600 12.5px var(--st-font);
  border-bottom: 1px solid var(--st-line);
  display: flex;
  align-items: center;
  gap: 9px;
}
.flash::before { content: "●"; }
.flash-ok { color: var(--st-green); background: var(--st-bg); }
.flash-error { color: var(--st-pink); background: var(--st-bg); }

/* ── Cards ───────────────────────────────────────────────────────────────── */

.card {
  background: var(--st-card);
  border: 1px solid var(--st-line-2);
  border-radius: var(--st-r-card);
  color: var(--st-text);
}
.card-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-header h2, .card-header h3 {
  margin: 0;
  font-family: var(--st-display);
  font-size: 22px;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.card-body { padding: 20px 28px 28px; }
.card-footer { border-top: 1px solid var(--st-line-2); padding: 18px 28px; }

/* Toolbar that sits on the right of a card-header: a compact search box plus
   the header's primary action, on one line and wrapping on narrow screens. */
.card-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-tools .table-search { display: flex; align-items: center; gap: 8px; }
.card-tools .table-search input[type="search"] { height: 38px; width: 220px; font-size: 13.5px; padding: 0 12px; }

/* Prev / page-of / Next, sat in a card-footer under a paged table. */
.pager { display: flex; align-items: center; gap: 12px; }
.pager .pager-count { font-size: 13px; color: var(--st-faint); }
.pager .pager-spacer { margin-left: auto; }
.pager .btn.is-disabled { opacity: .4; pointer-events: none; }
.card + .card { margin-top: 22px; }

/* ── Badges / pills ──────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  font: 700 10px var(--st-font);
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: var(--st-r-pill);
  padding: 4px 9px;
  line-height: 1.4;
  flex: none;
}
.badge-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--st-r-pill);
  background: var(--st-pink);
  color: #fff;
  font: 700 11px var(--st-font);
  line-height: 1;
}
.badge-success { background: var(--st-resolved-bg); color: var(--st-resolved); }
.badge-warning { background: var(--st-yellow); color: var(--st-ink); }
.badge-danger  { background: var(--st-breached-bg); color: var(--st-breached); }
/* Invisible: at the desk but hidden from visitors — quieter than Away's
   yellow, since it isn't a "don't give me work" signal. */
.badge-neutral { background: var(--st-bg-row); color: var(--st-muted); }
/* Custom help-domain verification: badge, explanation and the Verify
   button (which submits a form declared elsewhere on the page). */
.domain-verify { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; max-width: 620px; }
.domain-verify .field-hint { margin: 0; flex: 1 1 240px; min-width: 0; }
.domain-verify code { word-break: break-all; }
.badge-quiet   { background: var(--st-line); color: var(--st-text-3); }
.badge-pink    { background: var(--st-pink); color: #fff; }

/* ── Forms ───────────────────────────────────────────────────────────────── */

label.field-label {
  display: block;
  font: 600 12px var(--st-font);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin: 0 0 8px;
}
.field { margin-bottom: 18px; }
.field-hint { font-size: 12.5px; line-height: 1.5; color: var(--st-faint); margin-top: 7px; }

input[type="text"], input[type="email"], input[type="password"], input[type="color"],
input[type="search"], input[type="number"], textarea, select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: var(--st-r-input);
  border: 1px solid var(--st-line-3);
  background: var(--st-input);
  color: var(--st-text);
  font: 500 15px var(--st-font);
  outline: none;
  transition: border-color .12s;
}
input:focus, textarea:focus, select:focus { border-color: var(--st-yellow); }
textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
input[type="color"] { padding: 6px; width: 52px; cursor: pointer; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239a9a9a' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
select option { background: var(--st-card); color: var(--st-text); }

.checkbox-row { display: flex; align-items: center; gap: 10px; font: 600 13.5px var(--st-font); color: var(--st-text-3); }
input[type="checkbox"] { accent-color: var(--st-yellow); width: 18px; height: 18px; margin: 0; }

.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 24px; flex-wrap: wrap; }

code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: .92em;
  color: var(--st-text-3);
  background: var(--st-bg);
  border: 1px solid var(--st-line-2);
  border-radius: 6px;
  padding: 2px 6px;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */

table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th {
  text-align: left;
  font: 700 10.5px var(--st-font);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--st-faint);
  padding: 13px 24px;
  background: var(--st-bg-row);
  border-bottom: 1px solid var(--st-line-2);
}
table.data-table td { padding: 17px 24px; border-bottom: 1px solid #1c1c1c; vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table td strong { font: 700 14px var(--st-font); }
table.data-table td .sub { font-size: 12px; color: var(--st-faint); margin-top: 2px; }
.card > table.data-table, .card > .table-scroll { margin-top: 20px; }
.table-scroll { overflow-x: auto; }

/* ── Two-step confirm (rotate key / delete) ─────────────────────────────── */

.confirm-group { display: inline-flex; gap: 8px; align-items: center; }

/* ── Auth pages ──────────────────────────────────────────────────────────── */

.auth-shell {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--st-card);
  border: 1px solid var(--st-line-2);
  border-radius: var(--st-r-card);
  box-shadow: var(--st-shadow);
  padding: 32px 28px 30px;
  animation: st-rise .22s ease-out;
}
.auth-card .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
/* webway.host wordmark (dark-background lockup). Height-locked; the
   width/height attributes on the <img> hold the 6.94:1 box before the
   SVG loads, so the card doesn't reflow. */
.auth-card .brand-logo { display: block; height: 30px; width: auto; }
/* Same wordmark in the /admin shell's top nav, sized to the 30px
   .brand-mark it stands in for there. */
.topnav .brand-logo-nav { display: block; height: 22px; width: auto; }
.auth-card h1 {
  font-family: var(--st-display);
  font-size: 40px;
  line-height: .85;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 14px 0 26px;
}
.auth-card .foot-link { margin: 22px 0 0; font: 500 13.5px var(--st-font); color: var(--st-muted); }
.auth-card .foot-link a { color: var(--st-yellow); font-weight: 700; }
.auth-card .foot-link a:hover { color: var(--st-pink); }
.auth-note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--st-text-3);
  background: var(--st-card);
  border: 1px solid var(--st-line-2);
  border-left: 4px solid var(--st-yellow);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 22px;
}

/* ── Inbox (three-pane) ──────────────────────────────────────────────────── */

.inbox {
  flex: 1;
  min-height: 0;
  display: flex;
}

.inbox-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pane-list { flex: 0 1 328px; min-width: 250px; border-right: 1px solid var(--st-line); }
.pane-thread { flex: 1 1 440px; background: var(--st-bg-thread); }
.pane-details { flex: 0 1 296px; border-left: 1px solid var(--st-line); background: var(--st-bg); overflow-y: auto; }

.inbox-head { flex: none; padding: 20px 20px 14px; border-bottom: 1px solid var(--st-line); }
.inbox-head .title-row { display: flex; align-items: center; gap: 11px; }
.inbox-head h1 {
  margin: 0;
  font-family: var(--st-display);
  font-size: 30px;
  line-height: .85;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.conv-tabs { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 12px; flex: none; overflow-x: auto; scrollbar-width: none; }
.conv-tabs::-webkit-scrollbar { display: none; }
.conv-tab {
  height: 30px;
  padding: 0 8px;
  border-radius: var(--st-r-pill);
  border: 1px solid var(--st-line-3);
  background: transparent;
  color: var(--st-muted);
  font: 700 10px var(--st-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  flex: none;
}
.conv-tab:hover { color: var(--st-text); border-color: var(--st-text); }
.conv-tab.active { border-color: transparent; background: var(--st-yellow); color: var(--st-ink); }
.conv-tab .badge-count {
  display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 7px;
  border-radius: var(--st-r-pill); font: 700 10px var(--st-font); letter-spacing: 0;
  background: #242424; color: var(--st-text-3);
}
.conv-tab.active .badge-count { background: rgba(17, 17, 17, .16); color: var(--st-ink); }
.conv-tab .badge-count[hidden] { display: none; }

/* Site picker (Claude Design "Sticky Live Chat"): a pill trigger with a
   tilted square dot (yellow = all sites, pink = filtered) opening a
   yellow-bordered menu of checkbox rows. Multi-pick; "All sites" resets. */
.site-picker { position: relative; display: flex; margin-top: 14px; z-index: 12; }
.site-picker-btn {
  display: flex; align-items: center; gap: 9px; flex: 1 1 auto; min-width: 0; height: 38px;
  padding: 0 12px; border-radius: var(--st-r-pill); cursor: pointer;
  border: 2px solid var(--st-line-3); background: #171717; color: #dcdcdc;
  font: 700 10.5px var(--st-font); letter-spacing: .14em; text-transform: uppercase;
}
.site-picker-btn:hover { border-color: var(--st-muted); color: var(--st-text); }
.site-picker.open .site-picker-btn { border-color: var(--st-yellow); background: rgba(255, 212, 0, .08); color: var(--st-text); }
.site-picker-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; transform: rotate(-8deg); background: var(--st-yellow); }
.site-picker.filtered .site-picker-dot { background: var(--st-pink); }
.site-picker-label { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-picker-chev { flex: none; font: 700 12px var(--st-font); line-height: 1; color: var(--st-yellow); transition: transform .16s ease; }
.site-picker.open .site-picker-chev { transform: rotate(180deg); }
.site-picker-menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  max-height: 60vh; overflow-y: auto;
  background: #141414; border: 2px solid var(--st-yellow); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  padding: 7px; display: flex; flex-direction: column; gap: 3px;
}
.site-picker-menu[hidden] { display: none; }
.site-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px;
  border: 0; border-radius: 11px; cursor: pointer; text-align: left; background: transparent;
  font-family: var(--st-font);
}
.site-opt:hover { background: rgba(255, 255, 255, .04); }
.site-opt[aria-checked="true"] { background: rgba(255, 212, 0, .10); }
.site-opt-box {
  display: grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; flex: none;
  transform: rotate(-4deg); border: 2px solid #3a3a3a; background: transparent; color: var(--st-ink);
  font: 900 11px var(--st-font);
}
.site-opt[aria-checked="true"] .site-opt-box { border-color: var(--st-yellow); background: var(--st-yellow); }
.site-opt[aria-checked="true"] .site-opt-box::before { content: "\2713"; }
.site-opt-label {
  flex: 1; min-width: 0; font: 700 11px var(--st-font); letter-spacing: .12em; text-transform: uppercase;
  color: var(--st-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.site-opt[aria-checked="true"] .site-opt-label { color: var(--st-text); }
.site-opt-count { flex: none; font: 700 10px var(--st-font); color: #5f5f5f; }
.site-opt[aria-checked="true"] .site-opt-count { color: var(--st-yellow); }

.conv-list { flex: 1; min-height: 0; overflow-y: auto; }
.conv-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--st-line-row);
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--st-text);
  cursor: pointer;
}
.conv-row:hover { background: var(--st-bg-row); }
.conv-row.active { background: var(--st-card-hi); border-left-color: var(--st-yellow); }
.conv-row .row-wrap { display: flex; gap: 12px; align-items: flex-start; }
.conv-row .row-main { min-width: 0; flex: 1; }
.conv-row .row-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.conv-row .unread-dot { width: 7px; height: 7px; border-radius: var(--st-r-pill); background: var(--st-pink); flex: none; }
.conv-row .visitor-name { font: 600 14px var(--st-font); color: #cfcfcf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.conv-row.unread .visitor-name { font-weight: 700; color: var(--st-text); }
.conv-row .row-gap { flex: 1 1 6px; min-width: 6px; }
.conv-row .owner {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58px;
  background: #20262b;
  border: 1px solid #313a41;
  border-radius: var(--st-r-pill);
  padding: 2px 7px;
  font: 700 9.5px var(--st-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9fb0ba;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv-row .row-time { font: 700 11px var(--st-font); color: var(--st-green); flex: none; }
.conv-row.unread .row-time { color: var(--st-yellow); }
.conv-row .site-name { display: none; }
.conv-row .preview {
  font-size: 13px;
  line-height: 1.5;
  color: var(--st-muted);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.conv-row .row-bottom { display: flex; align-items: center; gap: 7px; margin-top: 9px; min-width: 0; }
.conv-row .tag {
  font: 700 10px var(--st-font);
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--st-line);
  color: var(--st-text-3);
  border-radius: var(--st-r-pill);
  padding: 4px 9px;
  flex: none;
}
.conv-row .tag-new { background: var(--st-pink); color: #fff; }
.conv-row .tag-resolved { background: var(--st-resolved-bg); color: var(--st-resolved); }
.conv-row .row-site { font: 500 11px var(--st-font); color: var(--st-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.conv-row .row-bottom .badge-count { margin-left: auto; }
.conv-empty { padding: 40px 20px; text-align: center; color: var(--st-dim); font-size: 13px; line-height: 1.55; }

.thread-header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--st-line);
  flex-wrap: wrap;
  background: var(--st-bg);
}
.thread-header .who { min-width: 0; flex: 1; }
.thread-header .visitor-name { font-family: var(--st-display); font-size: 19px; letter-spacing: -.02em; }
.thread-header .site-name { font: 500 12px var(--st-font); color: var(--st-faint); margin-top: 3px; }
.thread-header .actions { display: flex; gap: 8px; align-items: center; flex: none; }
.thread-header .actions select {
  height: 40px;
  width: auto;
  max-width: 170px;
  padding: 0 36px 0 16px;
  border-radius: var(--st-r-pill);
  background-color: transparent;
  font: 700 11.5px var(--st-font);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--st-text-2);
  cursor: pointer;
}
.thread-header .actions select:hover { border-color: var(--st-pink); color: var(--st-pink); }
#assign-me-btn { border-width: 1px; border-color: var(--st-line-3); color: var(--st-text-2); }
#assign-me-btn:hover { border-color: var(--st-pink); color: var(--st-pink); }
#assign-me-btn.active, #assign-me-btn.active:hover { border-color: transparent; background: #20262b; color: #9fb0ba; cursor: default; opacity: 1; }

.thread-scroll { flex: 1 1 0; min-height: 120px; overflow-y: auto; padding: 18px 22px; }
.thread-scroll > * { max-width: 760px; margin-left: auto; margin-right: auto; }
/* Message rows are the exception to the 760px reading column: each side takes
   half the full thread pane, so a visitor bubble starts at the left edge and an
   agent bubble ends at the right one. */
.thread-scroll > .msg-row { max-width: none; margin-left: 0; margin-right: 0; }
.thread-empty {
  padding: 40px 0;
  text-align: center;
  font: 600 10.5px var(--st-font);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--st-dimmer);
}

.msg-row { display: flex; margin-bottom: 16px; }
.msg-row > div { display: flex; flex-direction: column; max-width: 78%; }
/* Visitor and agent bubbles claim at most half the thread column each, so the
   two sides never line up edge to edge. The gutter is padding on the row —
   the inner column then runs to 100% of what is left. Notes, suggestions and
   system lines keep the plain 78% cap. */
.msg-row.from-visitor { justify-content: flex-start; padding-right: 50%; }
.msg-row.from-agent { justify-content: flex-end; padding-left: 50%; }
.msg-row.from-visitor > div, .msg-row.from-agent > div { max-width: 100%; }
.msg-row.from-agent > div { align-items: flex-end; }
.msg-row.from-system { justify-content: center; }

.msg-bubble {
  padding: 13px 16px;
  font: 500 14.5px/1.6 var(--st-font);
  text-wrap: pretty;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg-row.from-visitor .msg-bubble {
  background: #242424; color: #f2f2f2;
  border: 1px solid #343434; border-left: 3px solid var(--st-pink);
  border-radius: 4px 16px 16px 16px;
  padding: 13px 16px 13px 18px;
}
.msg-row.from-agent .msg-bubble { background: var(--st-yellow); color: var(--st-ink); border-radius: 16px 16px 4px 16px; }
.msg-row.from-note { justify-content: flex-end; }
.msg-row.from-note > div { align-items: flex-end; }
.msg-row.from-note .msg-bubble {
  background: var(--st-note-bg); color: var(--st-note-text);
  border: 1px dashed var(--st-note-line); border-radius: 16px 16px 4px 16px;
}
.msg-row.from-note .msg-meta { color: var(--st-note-meta); }
/* An AI suggestion waiting on a person: sits on the agent side like a reply,
   but outlined rather than filled — it is not a message until someone sends it. */
.msg-row.from-draft { justify-content: flex-end; }
.msg-row.from-draft > div { align-items: flex-end; }
.msg-row.from-draft .msg-bubble {
  background: rgba(255, 212, 0, .07); color: var(--st-text);
  border: 1px dashed rgba(255, 212, 0, .45); border-radius: 16px 16px 4px 16px;
}
.msg-row.from-draft .msg-meta { color: var(--st-yellow); opacity: .8; }
/* Superseded: kept as history, visibly out of play. */
.msg-row.from-draft.is-spent { opacity: .45; }
.msg-row.from-draft.is-spent .msg-bubble { border-style: dotted; }
.msg-draft-actions { display: flex; gap: 8px; margin-top: 8px; }
textarea.msg-draft-edit {
  width: min(520px, 78vw); min-height: 64px; resize: vertical;
  font: 500 13.5px/1.65 var(--st-font);
  background: var(--st-card); color: var(--st-text);
  border: 1px solid var(--st-yellow); border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
}
.msg-atts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.msg-bubble:empty + .msg-atts, .msg-bubble.no-text { display: none; }
.msg-img { display: block; max-width: min(320px, 100%); max-height: 260px; border-radius: 10px; border: 1px solid var(--st-line-3); }
.msg-file {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--st-card); border: 1px solid var(--st-line-3);
  color: var(--st-text-2); font: 600 12.5px var(--st-font); text-decoration: none;
  max-width: min(320px, 100%); overflow: hidden;
}
.msg-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-file small { color: var(--st-faint); font-weight: 500; flex: none; }
.msg-file:hover { border-color: var(--st-yellow); }
.msg-row.from-system .msg-bubble {
  background: none;
  color: var(--st-dimmer);
  font: 600 10.5px var(--st-font);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  padding: 2px 4px;
}
.msg-meta {
  font: 700 10.5px var(--st-font);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--st-dimmer);
  margin-top: 6px;
}
.msg-row.from-visitor .msg-meta { color: var(--st-pink); }
.msg-row.from-agent .msg-meta { color: #8a8a8a; }

.typing-note {
  flex: none;
  padding: 0 22px 8px;
  font: 500 11.5px var(--st-font);
  color: var(--st-faint);
  min-height: 1.2em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.typing-note:not(:empty)::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--st-pink);
  animation: st-dot 1.2s infinite;
  margin-right: 7px;
  box-shadow: 11px 0 0 var(--st-pink), 22px 0 0 var(--st-pink);
}

.composer {
  flex: none;
  border-top: 1px solid var(--st-line);
  padding: 10px 22px 14px;
  background: var(--st-bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer.dragging textarea { border-color: var(--st-yellow); border-style: dashed; }
.composer-tools { display: flex; align-items: center; gap: 10px; position: relative; }
.composer-mode { display: inline-flex; border: 1px solid var(--st-line-3); border-radius: var(--st-r-pill); padding: 2px; background: var(--st-card); }
.mode-btn {
  border: 0; background: none; cursor: pointer; color: var(--st-muted);
  font: 700 10.5px var(--st-font); letter-spacing: .13em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--st-r-pill);
}
.mode-btn.active { background: var(--st-yellow); color: var(--st-ink); }
.composer.note-mode .mode-btn.active { background: var(--st-note-line); color: var(--st-note-text); }
.composer.note-mode textarea { border-color: var(--st-note-line); background: var(--st-note-bg); border-style: dashed; }
.composer.note-mode .btn-primary { background: var(--st-note-line); color: var(--st-note-text); }
/* Reminder = blue, knowledge base = green: the tab, the box and the send
   button all move together so the mode is never in doubt mid-sentence. */
.composer.reminder-mode .mode-btn.active { background: var(--st-blue); color: var(--st-ink); }
.composer.reminder-mode textarea { border-color: #244062; background: #0e141c; }
.composer.reminder-mode .btn-primary { background: var(--st-blue); color: var(--st-ink); }
.composer.kb-mode .mode-btn.active { background: var(--st-green); color: var(--st-ink); }
.composer.kb-mode textarea { border-color: #244a24; background: #0e150e; }
/* The composer tabs wrap rather than squeeze on a narrow thread pane. */
.composer-mode { flex-wrap: wrap; }
.mode-tag {
  flex: none; margin-bottom: 10px; cursor: pointer;
  padding: 7px 12px; border-radius: var(--st-r-pill);
  background: var(--st-blue); color: var(--st-ink);
  font: 700 11px var(--st-font); letter-spacing: .04em; white-space: nowrap;
}

/* Mode panels (reminder presets, knowledge-base results). In flow above the
   tabs, not floating: picking a time or an article is a step before writing. */
.composer-panel {
  max-height: 300px; overflow-y: auto;
  background: var(--st-card); border: 1px solid var(--st-line-3); border-radius: var(--st-r-panel);
  padding: 6px;
}
.cp-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 10px 10px; border-bottom: 1px solid var(--st-line-2);
  font: 700 11px var(--st-font); letter-spacing: .14em; text-transform: uppercase;
}
.cp-hint { color: var(--st-dim); font-weight: 500; letter-spacing: .06em; text-transform: none; }
.cp-sub { padding: 10px 10px 4px; font-size: 12px; color: var(--st-dim); }
.cp-row {
  display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer; color: var(--st-text-2);
  padding: 9px 10px; border-radius: 8px; font: 500 13px var(--st-font);
}
.cp-row:hover, .cp-row:focus-visible, .cp-row.is-active { background: var(--st-blue); color: var(--st-ink); outline: none; }
.cp-row-lead { flex: none; text-decoration: underline; color: var(--st-faint); }
.cp-row:hover .cp-row-lead, .cp-row:focus-visible .cp-row-lead, .cp-row.is-active .cp-row-lead { color: var(--st-ink); }
.cp-row-main { font-weight: 700; }
.cp-row-when { margin-left: auto; flex: none; font-size: 11.5px; color: var(--st-faint); }
.cp-row:hover .cp-row-when, .cp-row:focus-visible .cp-row-when, .cp-row.is-active .cp-row-when { color: var(--st-ink); }
/* Knowledge-base hits stack title over excerpt and turn green on hover. */
.kb-row { flex-direction: column; align-items: stretch; gap: 3px; }
.kb-row:hover, .kb-row:focus-visible, .kb-row.is-active { background: var(--st-green); }
.cp-row-sub { font-size: 12px; color: var(--st-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-row:hover .cp-row-sub, .kb-row:focus-visible .cp-row-sub, .kb-row.is-active .cp-row-sub { color: #1d3a1d; }
.cp-custom { display: flex; gap: 8px; align-items: center; padding: 4px 10px 8px; flex-wrap: wrap; border-radius: 8px; }
/* The custom-date block is the panel's last arrow-key stop, so it takes a
   highlight of its own — a ring rather than the rows' solid fill, since it
   holds a live input. */
.cp-custom.is-active { background: var(--st-bg-row); }
.cp-custom.is-active input { border-color: var(--st-yellow); }
.cp-custom input {
  flex: 1; min-width: 190px; border: 1px solid var(--st-line-3); border-radius: 8px;
  background: var(--st-bg); color: inherit; padding: 8px 10px; font: 500 13px var(--st-font);
  color-scheme: dark;   /* the native calendar/clock popup, not just the field */
}
.cp-empty { padding: 14px 10px; font-size: 12.5px; color: var(--st-dim); }
.composer-icons { display: inline-flex; gap: 4px; margin-left: auto; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: none;
  cursor: pointer; font-size: 17px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover, .icon-btn.active { background: var(--st-card); border-color: var(--st-line-3); }
.emoji-picker {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20;
  width: 320px; max-height: 260px; overflow-y: auto;
  background: var(--st-card); border: 1px solid var(--st-line-3); border-radius: var(--st-r-panel);
  padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.emoji-picker h4 { margin: 6px 4px 4px; font: 700 10px var(--st-font); letter-spacing: .14em; text-transform: uppercase; color: var(--st-faint); }
.emoji-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; }
.emoji-grid button { border: 0; background: none; font-size: 20px; line-height: 1; padding: 5px 0; border-radius: 6px; cursor: pointer; }
.emoji-grid button:hover { background: var(--st-line-3); }
.attach-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.attach-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 260px;
  padding: 4px 6px 4px 10px; border-radius: var(--st-r-pill);
  background: var(--st-card); border: 1px solid var(--st-line-3);
  font: 600 12px var(--st-font); color: var(--st-text-2);
}
.attach-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip small { color: var(--st-faint); font-weight: 500; }
.attach-chip button { border: 0; background: none; color: var(--st-muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; }
.attach-chip button:hover { color: var(--st-pink); }
.composer textarea {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: 8em;
  border: 1px solid var(--st-line-3);
  border-radius: var(--st-r-panel);
  background: var(--st-card);
  padding: 12px 16px;
  font: 500 14px/1.55 var(--st-font);
  resize: none;
}
.composer .btn { flex: none; height: 38px; padding: 0 22px; margin-bottom: 4px; }

.visitor-panel { padding: 22px 20px 40px; display: flex; flex-direction: column; gap: 24px; }
.visitor-panel h3 { margin: 0 0 12px; }
.visitor-panel h3, .vp-section-title {
  font: 700 10.5px var(--st-font);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--st-pink);
}
.vp-card { background: var(--st-card); border: 1px solid var(--st-line-2); border-radius: var(--st-r-panel); padding: 4px 14px; }
.vp-field { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #1c1c1c; }
.vp-field:last-child { border-bottom: none; }
.vp-label { font: 500 12.5px var(--st-font); color: #8a8a8a; flex: none; }
.vp-value { font: 700 12.5px var(--st-font); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.vp-value .muted { color: var(--st-dim); font-weight: 500; }
/* Internal notes (details pane): newest first, dashed-gold note styling shared with the thread bubbles. */
.vp-notes { display: flex; flex-direction: column; gap: 9px; }
.vp-note { background: var(--st-note-bg); border: 1px solid var(--st-note-line); border-radius: 12px; padding: 12px 14px; }
.vp-note-text { font-size: 13px; line-height: 1.55; color: var(--st-note-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.vp-note-meta { font: 600 10.5px var(--st-font); letter-spacing: .12em; text-transform: uppercase; color: var(--st-note-meta); margin-top: 8px; }
.vp-note-empty { border: 1px dashed #2e2e2e; border-radius: 12px; padding: 14px; font-size: 12.5px; color: var(--st-dim); line-height: 1.55; }
/* Pending reminders (details pane): blue to match the composer's Reminder tab. */
.vp-reminders { display: flex; flex-direction: column; gap: 9px; }
.vp-reminder { background: #0e141c; border: 1px solid #244062; border-radius: 12px; padding: 12px 14px; }
.vp-reminder-when { font: 700 12px var(--st-font); color: var(--st-blue); }
.vp-reminder-text { font-size: 13px; line-height: 1.55; margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.vp-reminder-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px;
  font: 600 10.5px var(--st-font); letter-spacing: .12em; text-transform: uppercase; color: #6f89a8;
}
.vp-reminder-meta button {
  border: 1px solid #244062; background: none; color: var(--st-blue); cursor: pointer;
  border-radius: var(--st-r-pill); padding: 4px 10px; font: 700 10px var(--st-font);
  letter-spacing: .12em; text-transform: uppercase;
}
.vp-reminder-meta button:hover { background: var(--st-blue); color: var(--st-ink); }

.vp-empty {
  border: 1px dashed #2e2e2e;
  border-radius: 12px;
  padding: 14px;
  font-size: 12.5px;
  color: var(--st-dim);
  line-height: 1.55;
}

/* Responsive inbox: collapse to one pane, switch view via body[data-view] */
.mobile-only { display: none; }
@media (max-width: 980px) {
  .inbox-pane { display: none; flex: 1 1 auto; border: 0; }
  body[data-view="list"] .inbox-pane.pane-list,
  body[data-view="thread"] .inbox-pane.pane-thread,
  body[data-view="details"] .inbox-pane.pane-details { display: flex; }
  .mobile-only { display: inline-flex; }
}

/* ── Confirm modal (in-app dialog — never window.confirm) ───────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 380px;
  background: var(--st-card);
  border: 1px solid var(--st-line-2);
  border-radius: var(--st-r-card);
  padding: 24px;
  box-shadow: var(--st-shadow);
}
.modal-card h3 {
  margin: 0 0 10px;
  font-family: var(--st-display);
  font-size: 19px;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.modal-card p {
  margin: 0 0 20px;
  font: 500 13.5px/1.55 var(--st-font);
  color: var(--st-text-3);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ── Settings (Sites / Team / Account) — Sticky Settings.dc.html ────────── */

.settings-page .page-sub { max-width: 520px; }
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 232px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 38px;
}
.settings-nav {
  position: sticky;
  top: 20px; /* .page is the scroller (topnav sits outside it), so a small offset — not the design's 96px */
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #111;
  border: 1px solid var(--st-line-2);
  border-radius: var(--st-r-card);
  padding: 10px;
}
.settings-nav a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 15px;
  border-radius: 13px;
  color: var(--st-text-2);
  transition: background .15s ease, color .15s ease;
}
.settings-nav a:hover { background: var(--st-card-hi); color: var(--st-text); }
.settings-nav a strong { font: 700 11.5px var(--st-font); letter-spacing: .15em; text-transform: uppercase; }
.settings-nav a span { font: 400 12px/1.45 var(--st-font); color: var(--st-dim); }
.settings-nav a.active { background: var(--st-yellow); color: var(--st-ink); }
.settings-nav a.active span { color: rgba(17, 17, 17, .72); }

@keyframes st-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.st-pane { animation: st-fade .18s ease-out both; }
.settings-pane { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.settings-pane > .card { margin-top: 0; }
.settings-pane .card + .card { margin-top: 0; }
.settings-pane .pane-head h2 {
  margin: 0;
  font-family: var(--st-display);
  font-size: 24px;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.settings-pane .pane-head p { margin: 9px 0 0; font-size: 14px; line-height: 1.6; color: #8f8f8f; max-width: 560px; }
.settings-pane .pane-head code { font: 500 12px ui-monospace, Menlo, monospace; color: var(--st-faint); }
.settings-pane .card-header h2, .settings-pane .card-header h3 { font-size: 19px; }

/* Sites pane — list rows (siteListView) */
.pane-head-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pane-head-row > div { flex: 1 1 260px; min-width: 220px; }
.pane-head-row .btn { flex: none; height: 40px; padding: 0 20px; font-size: 11px; }
.site-list { background: var(--st-card); border: 1px solid var(--st-line-2); border-radius: var(--st-r-card); overflow: hidden; }
.site-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 15px 18px; border-bottom: 1px solid #1c1c1c;
  color: var(--st-text); transition: background .12s;
}
.site-row:last-of-type { border-bottom: 0; }
.site-row:hover { background: var(--st-card-hi); color: var(--st-text); }
.site-row-tile {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  background: #1c1c1c; border: 1px solid var(--st-line-3);
  display: grid; place-items: center;
  font: 400 14px var(--st-display); color: var(--st-yellow);
}
.site-row-main { flex: 1 1 180px; min-width: 150px; display: flex; flex-direction: column; gap: 2px; }
.site-row-name { font: 700 14.5px var(--st-font); }
.site-row-key, .site-head code { font: 400 11.5px ui-monospace, Menlo, monospace; color: var(--st-dim); background: none; border: 0; padding: 0; word-break: break-all; }
.site-row .badge-success { background: rgba(143, 212, 143, .13); border: 1px solid rgba(143, 212, 143, .32); color: var(--st-green); }
.site-row-chats { flex: none; font: 700 10px var(--st-font); letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; }
.site-row-go { flex: none; font: 700 10.5px var(--st-font); letter-spacing: .14em; text-transform: uppercase; color: var(--st-yellow); }
.site-row:hover .site-row-go { color: var(--st-pink); }
.site-list-empty { margin: 0; padding: 22px 18px; color: var(--st-faint); font-size: 13.5px; }

.add-site-card .card-body { padding: 24px; }
.add-site-card h3 { margin: 0 0 16px; font: 400 15px var(--st-display); letter-spacing: -.01em; text-transform: uppercase; }
.add-site-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.add-site-card .form-actions { margin-top: 18px; gap: 12px; }
.add-site-card .btn-sm { height: 40px; font-size: 11px; }

/* Stacked label > caption > control (the design's inline label pattern) */
.stack-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stack-field .field-label { font: 700 11px var(--st-font); letter-spacing: .15em; text-transform: uppercase; color: #8a8a8a; }
.stack-field input:not([type="color"]), .stack-field select { height: 44px; padding: 0 14px; border-radius: 12px; background: #171717; font-size: 14px; }
.stack-field textarea { min-height: 0; padding: 11px 14px; border-radius: 12px; background: #171717; font-size: 13.5px; }
.stack-field .field-hint { margin-top: 0; color: var(--st-dim); }
.settings-page ::placeholder { color: #5f5f5f; }
.link-action {
  border: 0;
  background: transparent;
  padding: 0;
  font: 700 10px var(--st-font);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--st-yellow);
  cursor: pointer;
}
.link-action:hover { color: var(--st-pink); }

/* Sites pane — one site (siteDetailView) */
.site-detail { gap: 18px; }
.site-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-back {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid #2f2f2f; border-radius: 12px; color: #dcdcdc; font: 700 14px var(--st-font);
  transition: border-color .12s, color .12s;
}
.site-back:hover { border-color: var(--st-yellow); color: var(--st-yellow); }
.site-head-main { flex: 1 1 220px; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.site-head-main h2 { margin: 0; font: 400 22px var(--st-display); letter-spacing: -.02em; text-transform: uppercase; }
.site-enabled {
  flex: none; display: flex; align-items: center; gap: 9px; cursor: pointer;
  height: 38px; padding: 0 14px; border: 1px solid #2f2f2f; border-radius: var(--st-r-pill);
}
.site-enabled:hover { border-color: var(--st-yellow); }
.site-enabled input { width: 15px; height: 15px; }
.site-enabled span { font: 700 10.5px var(--st-font); letter-spacing: .14em; text-transform: uppercase; color: #dcdcdc; }
.site-head .badge-success { background: rgba(143, 212, 143, .13); border: 1px solid rgba(143, 212, 143, .32); color: var(--st-green); }
.site-head .btn-primary { flex: none; height: 38px; padding: 0 20px; font-size: 11px; }

.site-tabs {
  display: flex; flex-wrap: wrap; gap: 5px;
  background: #111; border: 1px solid var(--st-line-2); border-radius: var(--st-r-pill); padding: 5px;
}
.site-tab {
  flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 14px; border: 0; border-radius: var(--st-r-pill);
  background: transparent; color: var(--st-muted); cursor: pointer; white-space: nowrap;
  font: 700 10.5px var(--st-font); letter-spacing: .13em; text-transform: uppercase;
  transition: background .12s, color .12s;
}
.site-tab:hover { color: var(--st-text); }
.site-tab.active { background: var(--st-yellow); color: var(--st-ink); }

.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 268px); gap: 18px; align-items: start; }
.site-panes, .site-form { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.site-fieldset { display: contents; border: 0; padding: 0; margin: 0; min-width: 0; }
.site-card { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.site-card h3 { margin: 0; font: 400 15px var(--st-display); letter-spacing: -.01em; text-transform: uppercase; }
.site-card-sub { margin: 8px 0 0; font-size: 12.5px; color: var(--st-dim); line-height: 1.5; }
.site-card-sub code.plain { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.site-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.site-card .widget-grid { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.site-card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-card-actions .btn { height: 38px; padding: 0 18px; font-size: 10.5px; }
.site-card .btn-default:hover:not(:disabled) { border-color: var(--st-yellow); color: var(--st-yellow); }
.snippet-box {
  display: block; background: var(--st-bg-row); border: 1px solid #262626; border-radius: 12px; padding: 14px;
  font: 400 12px ui-monospace, Menlo, monospace; color: var(--st-text-3); line-height: 1.6; word-break: break-all;
}
.site-fieldset:disabled input, .site-fieldset:disabled textarea, .site-fieldset:disabled select { opacity: .6; cursor: not-allowed; }
.site-fieldset:disabled .swatch, .site-fieldset:disabled .brand-pick, .site-fieldset:disabled .brand-remove { opacity: .4; pointer-events: none; }

.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 44px; }
.swatch {
  width: 30px; height: 30px; border-radius: 10px; cursor: pointer; padding: 0;
  border: 2px solid transparent; box-shadow: none; transition: transform .1s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: #fff; box-shadow: 0 0 0 2px var(--st-line-3); }
.swatch-row input[type="color"] { width: 34px; height: 34px; padding: 3px; border-radius: 10px; background: #171717; }
/* Typed hex code, kept beside the picker — monospace so 0/O and 8/B don't blur. */
.hex-input {
  width: 100px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; text-transform: lowercase;
}

.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; }
.brand-card { background: #171717; border: 1px solid #262626; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.brand-card .field-label { font: 700 11px var(--st-font); letter-spacing: .15em; text-transform: uppercase; color: #8a8a8a; }
.brand-drop {
  height: 52px; border-radius: 10px; background: var(--st-bg-row); border: 1px dashed #333;
  display: grid; place-items: center; overflow: hidden; padding: 6px;
}
.brand-drop img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-drop .brand-placeholder { font: 700 12px var(--st-font); color: var(--st-dim); text-align: center; padding: 0; }
.brand-drop .favicon-blank { width: 22px; height: 22px; border-radius: 6px; background: var(--st-yellow); opacity: .35; }
.brand-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.brand-actions .btn { height: 32px; padding: 0 13px; font-size: 10px; border-color: #2f2f2f; }
.brand-pick { cursor: pointer; }
.brand-remove { color: #8a8a8a; }
.brand-remove:hover:not(:disabled) { border-color: var(--st-breached) !important; color: var(--st-breached) !important; }
.brand-card .field-hint { margin: 0; color: var(--st-dim); }

.danger-card { background: #150f12; border-color: #3a1f2a; gap: 14px; }
.danger-card h3 { color: var(--st-breached); }
.danger-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid #2a1a22; }
.danger-row:last-child { padding-bottom: 0; border-bottom: 0; }
.danger-text { flex: 1 1 220px; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.danger-text strong { font: 700 13.5px var(--st-font); color: var(--st-text); }
.danger-text span { font-size: 12.5px; color: var(--st-dim); line-height: 1.5; }
.danger-card .btn-danger { height: 36px; padding: 0 16px; font-size: 10px; border-color: #3a1f2a; color: var(--st-breached); }
.danger-card .btn-danger:hover:not(:disabled), .danger-card .btn-danger.solid { background: var(--st-breached); color: #150f12; border-color: var(--st-breached); }
.danger-card .btn-danger.solid:hover { background: #fff; border-color: #fff; }

.site-preview {
  position: sticky; top: 20px; /* .page is the scroller — see .settings-nav */
  background: var(--st-card); border: 1px solid var(--st-line-2); border-radius: var(--st-r-card);
  padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.site-preview-label { font: 700 10px var(--st-font); letter-spacing: .2em; text-transform: uppercase; color: var(--st-faint); }
.site-preview-card { background: var(--st-bg-row); border: 1px solid #262626; border-radius: var(--st-r-panel); padding: 16px; display: flex; flex-direction: column; gap: 13px; }
.site-preview-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.site-preview-bubble { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--st-r-pill); color: #fff; }
.site-preview-text { min-width: 0; }
.site-preview-title { font: 700 13px var(--st-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-preview-greeting { font-size: 12px; color: #8f8f8f; line-height: 1.4; }
.site-preview-reply { align-self: flex-start; max-width: 100%; padding: 9px 12px; border-radius: 12px 12px 12px 4px; color: #fff; font: 500 12.5px var(--st-font); line-height: 1.45; }
.site-preview-composer { background: #171717; border: 1px solid #2a2a2a; border-radius: 10px; padding: 9px 11px; font-size: 12px; color: var(--st-dim); }
.site-preview-note { font-size: 12.5px; color: var(--st-dim); line-height: 1.5; overflow-wrap: anywhere; }

/* Team pane — Sticky Settings.dc.html (isTeam) */
.team-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 268px); gap: 18px; align-items: start; }

/* Invite card — hidden until "Invite someone" is pressed */
.invite-card { padding: 22px; }
.invite-card h3 { margin: 0 0 16px; font-family: var(--st-display); font-size: 15px; letter-spacing: -.01em; text-transform: uppercase; }
.invite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.invite-grid .stack-field { gap: 8px; }
.invite-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.invite-actions .field-hint { margin: 0; }
.invite-pending { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--st-line-2); display: flex; flex-direction: column; gap: 0; }
.pending-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--st-line); gap: 14px; }
.pending-row:last-child { border-bottom: none; }
.pending-row .link { font: 500 11.5px ui-monospace, Menlo, monospace; color: var(--st-faint); overflow-x: auto; white-space: nowrap; max-width: 380px; }

/* Members card — one flex row per person, not a table */
.members-card { overflow: hidden; }
.member-row { padding: 18px 22px; border-bottom: 1px solid #1c1c1c; }
.member-row:last-child { border-bottom: 0; }
.member-row-top { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.member-id { flex: 1 1 170px; min-width: 150px; }
.member-id-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member-name { font: 700 14.5px var(--st-font); }
.member-role .badge-quiet { background: var(--st-line-2); color: #cfcfcf; }
.member-email { margin-top: 2px; font-size: 12.5px; color: var(--st-faint); overflow: hidden; text-overflow: ellipsis; }
.member-state-col { flex: 1 1 120px; min-width: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.member-meta { font-size: 11.5px; color: var(--st-dim); }
.member-manage-btn { flex: none; }
.member-manage-btn[aria-expanded="true"] { border-color: var(--st-yellow); color: var(--st-yellow); }

.member-detail { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--st-line-2); display: flex; flex-direction: column; gap: 12px; }
.member-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.member-actions form { display: contents; }
.member-actions .btn { height: 34px; padding: 0 15px; font-size: 10.5px; }
.member-actions .btn:not(.btn-danger) { border-color: #333; }
.member-actions .btn:not(.btn-danger):hover:not(:disabled) { border-color: var(--st-yellow); color: var(--st-yellow); }

/* Site access panel — segment control + chips backed by hidden radios/checkboxes */
.site-access-panel { display: flex; flex-direction: column; gap: 10px; }
.site-access-label { font: 700 10px var(--st-font); letter-spacing: .2em; text-transform: uppercase; color: var(--st-faint); }
.seg-control { display: inline-flex; gap: 5px; background: #161616; border: 1px solid #262626; border-radius: var(--st-r-pill); padding: 4px; align-self: flex-start; }
.seg-control input { position: absolute; opacity: 0; pointer-events: none; }
.seg-option { display: inline-flex; align-items: center; height: 30px; padding: 0 16px; border-radius: var(--st-r-pill); font: 700 10.5px var(--st-font); letter-spacing: .13em; text-transform: uppercase; color: var(--st-muted); cursor: pointer; transition: background .12s, color .12s; }
.seg-control input:checked + .seg-option { background: var(--st-yellow); color: var(--st-ink); }
.site-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.site-chip { position: relative; display: inline-flex; }
.site-chip input { position: absolute; opacity: 0; pointer-events: none; }
.site-chip span { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--st-r-pill); border: 1px solid #2f2f2f; color: var(--st-text-3); font: 700 10.5px var(--st-font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.site-chip input:checked + span { background: var(--st-yellow); border-color: var(--st-yellow); color: var(--st-ink); }
.site-chip input:checked + span::before { content: "\2713\a0"; }
.site-chip input:disabled + span { opacity: .4; cursor: not-allowed; }
.site-access-note { font-size: 12.5px; color: var(--st-dim); line-height: 1.5; }
.site-access-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.site-access-actions .btn { height: 34px; padding: 0 18px; font-size: 10.5px; }

/* Availability aside — sticky, owner only */
.availability-aside { position: sticky; top: 20px; /* .page is the scroller — see .settings-nav */ display: flex; flex-direction: column; gap: 16px; padding: 20px; min-width: 0; }
.availability-aside h3 { margin: 0; font-family: var(--st-display); font-size: 15px; letter-spacing: -.01em; text-transform: uppercase; }
.availability-aside form { display: flex; flex-direction: column; gap: 16px; }
.availability-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.availability-toggle input { margin-top: 1px; flex: none; }
.availability-toggle .toggle-text { display: flex; flex-direction: column; gap: 6px; }
.availability-toggle .toggle-text strong { font-size: 14px; font-weight: 600; color: var(--st-text); }
.availability-toggle .toggle-text span { font-size: 12.5px; line-height: 1.6; color: var(--st-dim); max-width: 520px; }
.availability-divider { height: 1px; background: var(--st-line-2); }
.auto-away-field { display: flex; flex-direction: column; gap: 9px; }
.auto-away-field .field-label { font: 700 11px var(--st-font); letter-spacing: .15em; text-transform: uppercase; color: #8a8a8a; }
.auto-away-row { display: flex; align-items: center; gap: 9px; }
.auto-away-row input { width: 82px; height: 44px; background: #171717; border: 1px solid #2c2c2c; border-radius: 12px; color: #fff; font: 500 14px var(--st-font); padding: 0 11px; outline: none; }
.auto-away-row input:focus { border-color: var(--st-yellow); }
.auto-away-row span { font: 600 12.5px var(--st-font); color: #8a8a8a; }
.auto-away-field .field-hint { margin: 0; color: var(--st-dim); }
.availability-aside .btn-outline-quiet { display: flex; align-items: center; justify-content: center; width: 100%; height: 38px; padding: 0 16px; border: 1px solid #2f2f2f; border-radius: var(--st-r-pill); background: transparent; color: #dcdcdc; font: 700 11px var(--st-font); letter-spacing: .15em; text-transform: uppercase; cursor: pointer; }
.availability-aside .btn-outline-quiet:hover { border-color: var(--st-yellow); color: var(--st-yellow); }
.availability-aside .btn-primary { height: 38px; font-size: 11px; }

/* Account pane */
.settings-pane .avatar-field { margin: 16px 0 26px; }
.settings-pane .avatar.xl { width: 74px; height: 74px; font-size: 30px; }
.settings-pane .account-fields { max-width: 560px; }

@media (max-width: 860px) {
  .settings-grid { grid-template-columns: 1fr; gap: 22px; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .settings-nav a { flex: 1 0 auto; padding: 11px 14px; }
  .settings-nav a span { display: none; }
  .site-layout { grid-template-columns: 1fr; }
  .site-preview { position: static; }
  .team-layout { grid-template-columns: 1fr; }
  .availability-aside { position: static; }
}

/* ── Small screens ───────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  /* Half the column is a comfortable gutter on a desktop thread and a
     crushed bubble on a phone — keep the offset, shrink it. */
  .msg-row.from-visitor { padding-right: 15%; }
  .msg-row.from-agent { padding-left: 15%; }
  .topnav { gap: 14px; padding: 0 14px; }
  .topnav .who .presence, .topnav .who .vsep { display: none; }
  .topnav .who .me strong { display: none; }
  .container { padding: 28px 16px 60px; }
  h1.page-title { font-size: 36px; }
  .card-header { padding: 20px 18px 0; }
  .card-body { padding: 16px 18px 20px; }
}

/* ── Help centre: Markdown article editor (templates/app/help-article.html, js/help-editor.js) ── */

.md-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 18px; align-items: stretch; }
.md-main, .md-aside { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
/* height:0 keeps the aside out of the row-height calculation, so the row is
   sized by the editor column alone; min-height:100% then stretches the aside
   back to exactly that height. Without it a long cheat list would drag the
   whole page taller than the form. */
.md-aside { height: 0; min-height: 100%; }
.md-images { flex: 0 0 auto; }
.md-images .md-gallery { max-height: 264px; overflow-y: auto; }
/* Cheats take whatever height the images panel leaves, and scroll inside it. */
.md-cheat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.md-cheat .card-body { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.md-field-row { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 16px; }
.md-field-row .field { min-width: 0; }
/* The excerpt box sits beside the category select — same box height, so the
   row reads as one line of controls. It still drags taller (resize: vertical). */
.md-field-row textarea { height: 52px; min-height: 52px; padding: 13px 16px; }
.md-body-field { margin-bottom: 20px; }
.md-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.md-modes { display: inline-flex; border: 1px solid var(--st-line-3); border-radius: var(--st-r-pill); padding: 2px; background: var(--st-card); }
.md-mode {
  border: 0; background: none; cursor: pointer; color: var(--st-muted);
  font: 700 10.5px var(--st-font); letter-spacing: .13em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--st-r-pill);
}
.md-mode.active { background: var(--st-yellow); color: var(--st-ink); }
.md-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.md-tool {
  height: 28px; padding: 0 9px; border: 1px solid var(--st-line-3); border-radius: 8px; background: var(--st-bg-row);
  color: var(--st-text-3); cursor: pointer; font: 600 11.5px var(--st-font); line-height: 1; display: inline-flex; align-items: center; gap: 4px;
}
.md-tool:hover { border-color: var(--st-yellow); color: var(--st-text); }
.md-tool-upload { cursor: pointer; }
.md-write { position: relative; }
.md-write textarea { font: 500 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 380px; tab-size: 2; }
.md-write.dragging textarea { border-color: var(--st-yellow); border-style: dashed; }
.md-drop-hint {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center; pointer-events: none;
  background: rgba(255, 212, 0, .08); border-radius: var(--st-r-input);
  font: 700 12px var(--st-font); letter-spacing: .13em; text-transform: uppercase; color: var(--st-yellow);
}
.md-status { min-height: 18px; }
.md-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }

/* Preview: the public page's .hc-body rules (help.css), re-toned for the dark app shell. */
.md-preview {
  min-height: 380px; padding: 18px 22px; border: 1px solid var(--st-line-3); border-radius: var(--st-r-input);
  background: var(--st-input); font: 400 15px/1.7 var(--st-font); color: var(--st-text-3); overflow-wrap: anywhere;
}
.md-preview-loading { margin: 0; color: var(--st-faint); }
.md-preview > :first-child { margin-top: 0; }
.md-preview h1, .md-preview h2 { margin: 28px 0 10px; font-family: var(--st-display); font-size: 20px; line-height: 1.2; letter-spacing: -.02em; color: var(--st-text); }
.md-preview h3 { margin: 22px 0 8px; font: 700 16px/1.3 var(--st-font); color: var(--st-text); }
.md-preview h4, .md-preview h5, .md-preview h6 { margin: 18px 0 6px; font: 700 14px/1.4 var(--st-font); color: var(--st-text); }
.md-preview p { margin: 0 0 14px; }
.md-preview a { color: var(--st-pink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.md-preview strong { color: var(--st-text); }
.md-preview ul, .md-preview ol { margin: 0 0 14px; padding-left: 22px; }
.md-preview li { margin: 0 0 6px; }
.md-preview li > p { margin: 0 0 4px; }
.md-preview ul { list-style: none; padding-left: 16px; }
.md-preview ul > li { position: relative; }
.md-preview ul > li::before { content: ""; position: absolute; left: -16px; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--st-yellow); }
.md-preview ol { list-style: decimal; }
.md-preview ol > li::marker { color: var(--st-text); font-weight: 700; }
.md-preview blockquote { margin: 0 0 16px; padding: 14px 16px; border-left: 3px solid var(--st-yellow); background: var(--st-bg-row); border-radius: 0 10px 10px 0; font-weight: 500; color: var(--st-text-2); }
.md-preview blockquote > :last-child { margin-bottom: 0; }
.md-preview code { font: 500 .9em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #262626; color: var(--st-text); padding: 1px 5px; border-radius: 5px; }
.md-preview pre { margin: 0 0 16px; padding: 14px 16px; background: #050505; border: 1px solid var(--st-line-3); border-radius: 10px; overflow-x: auto; font: 400 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--st-text-2); }
.md-preview pre code { background: none; padding: 0; font: inherit; color: inherit; }
.md-preview img { display: block; max-width: 100%; height: auto; margin: 2px 0 16px; border-radius: 10px; border: 1px solid var(--st-line-3); }
.md-preview hr { border: 0; height: 1px; background: var(--st-line-3); margin: 22px 0; }
.md-preview table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; display: block; overflow-x: auto; }
.md-preview th, .md-preview td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--st-line-3); vertical-align: top; }
.md-preview th { font: 700 10.5px var(--st-font); letter-spacing: .1em; text-transform: uppercase; color: var(--st-muted); }
.md-preview del { color: var(--st-faint); }

/* Cheat sheet */
.md-cheat .card-body, .md-images .card-body { padding-top: 14px; }
.md-cheat-list { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 4px; }
.md-cheat-row { border: 1px solid var(--st-line-2); border-radius: 10px; padding: 10px 12px; background: var(--st-bg-row); }
.md-cheat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.md-cheat-name { font: 700 10.5px var(--st-font); letter-spacing: .12em; text-transform: uppercase; color: var(--st-text-2); }
.md-cheat-insert, .md-img-btn {
  height: 24px; padding: 0 9px; border: 1px solid var(--st-line-3); border-radius: 7px; background: transparent;
  color: var(--st-muted); cursor: pointer; font: 700 10px var(--st-font); letter-spacing: .1em; text-transform: uppercase;
}
.md-cheat-insert:hover, .md-img-btn:hover { border-color: var(--st-yellow); color: var(--st-text); }
.md-img-del:hover { border-color: var(--st-pink); color: var(--st-pink); }
.md-cheat-code {
  margin: 8px 0 0; padding: 8px 10px; border-radius: 7px; background: #050505; color: var(--st-text-3);
  font: 500 11.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
}
.md-cheat-note { margin: 7px 0 0; font-size: 12px; line-height: 1.5; color: var(--st-faint); }

/* Image gallery */
.md-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.md-img { border: 1px solid var(--st-line-2); border-radius: 10px; background: var(--st-bg-row); padding: 8px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.md-img-thumb { display: block; height: 84px; border-radius: 7px; background: #050505; overflow: hidden; }
.md-img-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.md-img-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.md-img-name { font: 600 11.5px var(--st-font); color: var(--st-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-img-size { font: 500 10.5px var(--st-font); color: var(--st-faint); }
.md-img-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.md-img-actions .md-img-btn { padding: 0 7px; letter-spacing: .06em; }
.md-gallery-empty { margin: 0; font-size: 13px; color: var(--st-faint); }

@media (max-width: 1100px) {
  .md-layout { grid-template-columns: minmax(0, 1fr); }
  .md-field-row { grid-template-columns: minmax(0, 1fr); }
  /* Stacked: the aside sits below the form, so nothing needs capping. */
  .md-aside { height: auto; min-height: 0; }
  .md-cheat .card-body { overflow: visible; }
  .md-cheat-list { overflow-y: visible; padding-right: 0; }
  .md-images .md-gallery { max-height: none; overflow-y: visible; }
}

/* ── AI assistant (Settings > AI, site AI tab, inbox markers) ─────────────── */
.ai-tag {
  display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 999px; vertical-align: 1px;
  background: var(--st-yellow); color: var(--st-ink); font: 700 9px var(--st-font); letter-spacing: .12em; text-transform: uppercase;
}
.conv-row .owner.ai { color: var(--st-yellow); }
/* Inline (not flex) so the <code> spans flow with the sentence; rounded inside cards. */
.ai-banner { display: block; margin: 0 0 18px; border: 1px solid var(--st-line); border-radius: 10px; line-height: 1.6; }
.ai-banner::before { margin-right: 8px; }
.ai-banner code, .toggle-text code { font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; }
.ai-hours { margin: 18px 0; padding: 18px; border: 1px solid var(--st-line); border-radius: 12px; display: flex; flex-direction: column; gap: 12px; }
.ai-days { display: flex; flex-direction: column; gap: 8px; }
.ai-days.is-off { opacity: .45; }
.availability-toggle.is-off { opacity: .5; }
.ai-mode { border: 1px solid var(--st-line-3); border-radius: var(--st-r-panel); padding: 14px 16px; margin: 4px 0; display: flex; flex-direction: column; gap: 14px; }
.ai-mode legend { padding: 0 6px; }
.ai-mode-opt { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.ai-mode-opt input { margin-top: 3px; flex: none; }
.ai-mode-opt .toggle-text { display: flex; flex-direction: column; gap: 6px; }
.ai-mode-opt .toggle-text strong { font-size: 14px; font-weight: 600; color: var(--st-text); }
.ai-mode-opt .toggle-text span { font-size: 12.5px; line-height: 1.6; color: var(--st-dim); max-width: 520px; }
.ai-day { display: grid; grid-template-columns: 150px auto auto auto; align-items: center; gap: 10px; }
.ai-day input[type=time] { width: 110px; }
.ai-day input.dim { opacity: .45; }
.ai-day-to { font-size: 12.5px; color: var(--st-dim); }
.persona-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #1c1c1c; flex-wrap: wrap; }
.persona-row:last-of-type { border-bottom: 0; }
.persona-form { display: flex; align-items: center; gap: 12px; flex: 1; flex-wrap: wrap; }
.persona-form input[type=text] { max-width: 220px; }
.persona-avatar { flex: none; }
.persona-add { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.persona-add input { max-width: 220px; }
.api-key-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.api-key-form input[type=password] { flex: 1; min-width: 220px; max-width: 360px; }
.api-key-form + form { margin-top: 10px; }
.ai-site-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #1c1c1c; }
.ai-site-row:last-of-type { border-bottom: 0; }
.site-card-group { display: flex; flex-direction: column; gap: 18px; }
.site-card-group[hidden] { display: none; }
.ai-status { margin: 0 0 16px; }
.ai-status .badge a { color: inherit; text-decoration: underline; }
.ai-h4 { font: 700 11.5px var(--st-font); letter-spacing: .15em; text-transform: uppercase; color: var(--st-text-3); margin: 22px 0 6px; }
.esc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.esc-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--st-line); border-radius: 10px; opacity: .6; counter-increment: esc; }
.esc-item.on { opacity: 1; border-color: var(--st-yellow); }
.esc-item.on .checkbox-row::before { content: counter(esc) "."; font: 700 12px var(--st-font); color: var(--st-yellow); min-width: 16px; }
.esc-list { counter-reset: esc; }
.esc-move { display: flex; gap: 4px; }
.ai-inline-form { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.ai-inline-form input { flex: 1; min-width: 200px; }
.ai-fact-form input[name=title] { flex: 0 1 200px; }
.knowledge-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.knowledge-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--st-line); border-radius: 10px; }
.knowledge-row.is-off { opacity: .5; }

/* Settings > site > AI: the "Try it" tester. Deliberately not a replica of the
   widget — it shows what the widget hides (why it would escalate, what it
   read), so it reads as a workbench, not a preview of the customer's view. */
.ai-try { display: flex; flex-direction: column; gap: 12px; }
.ai-try-thread { display: flex; flex-direction: column; gap: 12px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.ai-try-row { display: flex; flex-direction: column; gap: 6px; max-width: 92%; }
.ai-try-visitor {
  align-self: flex-end; align-items: flex-end;
  background: var(--st-card); border: 1px solid var(--st-line-3); border-radius: 14px 14px 4px 14px;
  padding: 9px 13px; font: 500 13px/1.6 var(--st-font); color: var(--st-text); white-space: pre-wrap; overflow-wrap: anywhere;
}
.ai-try-agent { align-self: flex-start; }
.ai-try-bubble {
  background: rgba(255, 212, 0, .08); border: 1px solid rgba(255, 212, 0, .35); border-radius: 14px 14px 14px 4px;
  padding: 9px 13px; font: 500 13px/1.6 var(--st-font); color: var(--st-text); white-space: pre-wrap; overflow-wrap: anywhere;
}
.ai-try-agent.is-escalation .ai-try-bubble { background: rgba(255,255,255,.03); border-color: var(--st-line-3); }
.ai-try-verdict { font: 600 12px/1.5 var(--st-font); color: var(--st-yellow); }
.ai-try-sources, .ai-try-meta { font: 500 11.5px/1.5 var(--st-font); color: var(--st-faint); }
.ai-try-error {
  align-self: flex-start; font: 600 12.5px var(--st-font); color: #ff8f8f;
}
.ai-try-form { display: flex; flex-direction: column; gap: 10px; }
.ai-try-form textarea { resize: vertical; min-height: 52px; }
.ai-try-actions { display: flex; gap: 8px; }
.knowledge-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; }
.knowledge-main strong { color: var(--st-text); }
.knowledge-src { font-size: 12px; color: var(--st-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.knowledge-actions { display: flex; gap: 6px; flex: none; }
.ai-profile { white-space: pre-wrap; font: 400 13px/1.55 var(--st-font); color: var(--st-text-3); background: rgba(255,255,255,.03); border: 1px solid var(--st-line); border-radius: 10px; padding: 14px; max-height: 320px; overflow: auto; margin: 0; }

/* ── Reminder bell + toasts (templates/fragments/layout.html, js/notifications.js) ──
   The bell sits beside the availability control in the top nav on every app
   page. Yellow is the working accent everywhere else in this design, so a due
   reminder is pink — the same "look at this" the section labels use, and
   unmistakable next to the yellow site picker. */

.bell { position: relative; flex: none; }
.bell-btn {
  position: relative;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--st-r-pill);
  background: transparent;
  color: var(--st-muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.bell-btn:hover { background: var(--st-card-hi); color: var(--st-text); }
.bell.open .bell-btn { background: var(--st-card-hi); border-color: var(--st-line-3); color: var(--st-text); }
/* The emoji renders in its own colours; grayscale it so a quiet bell stays
   quiet, and let the full colour back in when something is waiting. */
.bell-icon { filter: grayscale(1) opacity(.72); }
.bell.has-due .bell-icon { filter: none; animation: bell-ring 1.4s ease-in-out 2; transform-origin: 50% 15%; }
.bell.has-due .bell-btn { color: var(--st-text); }

@keyframes bell-ring {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30%, 50% { transform: rotate(11deg); }
  20%, 40% { transform: rotate(-11deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bell.has-due .bell-icon { animation: none; }
}

.bell-count {
  position: absolute; top: -1px; right: -2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: var(--st-r-pill);
  background: var(--st-pink); color: #fff;
  font: 800 10px var(--st-font);
  border: 2px solid var(--st-bg);
}
.bell-count[hidden] { display: none; }

.bell-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 340px; max-height: 66vh; overflow-y: auto;
  background: #141414; border: 2px solid var(--st-pink); border-radius: 16px;
  box-shadow: var(--st-shadow-sm);
  padding: 7px;
  z-index: 40;
}
.bell-menu[hidden] { display: none; }
.bell-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 8px 9px;
  font: 700 11.5px var(--st-font); letter-spacing: .16em; text-transform: uppercase;
  color: var(--st-pink);
}
.bell-clear {
  border: 0; background: transparent; cursor: pointer; padding: 0;
  font: 700 11px var(--st-font); letter-spacing: .1em; text-transform: uppercase;
  color: var(--st-dim);
}
.bell-clear:hover { color: var(--st-text); }
.bell-clear[hidden] { display: none; }
.bell-empty { padding: 6px 9px 12px; font: 400 12.5px/1.5 var(--st-font); color: var(--st-dim); }
.bell-list { display: flex; flex-direction: column; gap: 3px; }

.bell-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  width: 100%; padding: 9px 10px;
  border: 0; border-radius: 11px; background: transparent;
  text-align: left; cursor: pointer;
  font-family: var(--st-font);
}
.bell-row:hover { background: rgba(255, 46, 147, .10); }
.bell-row-who {
  grid-column: 1; min-width: 0;
  font: 700 13px var(--st-font); color: var(--st-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bell-row-site {
  margin-left: 7px;
  font: 500 11px var(--st-font); color: var(--st-dim);
}
.bell-row-when { grid-column: 2; grid-row: 1; font: 500 11px var(--st-font); color: var(--st-dim); white-space: nowrap; }
.bell-row-body {
  grid-column: 1 / -1;
  font: 400 12.5px/1.45 var(--st-font); color: var(--st-text-3);
  /* Two lines then ellipsis: the bell is a nudge, the thread has the detail. */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Toasts. Bottom-right so they never sit over the top nav's own bell, and
   above the composer rather than across the transcript. */
.toasts {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; flex-direction: column-reverse; gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 12px 12px 13px;
  background: #161616; border: 2px solid var(--st-pink); border-radius: 14px;
  box-shadow: var(--st-shadow-sm);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0; transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.in { opacity: 1; transform: none; }
.toast:hover { border-color: #ff6fb4; }
.toast-icon { flex: none; font-size: 15px; line-height: 1.3; }
.toast-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.toast-main strong { font: 700 13px var(--st-font); color: var(--st-text); }
.toast-body {
  font: 400 12.5px/1.45 var(--st-font); color: var(--st-text-3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.toast-hint { margin-top: 3px; font: 600 10.5px var(--st-font); letter-spacing: .1em; text-transform: uppercase; color: var(--st-dim); }
.toast-x {
  flex: none; width: 22px; height: 22px; padding: 0; margin: -2px -2px 0 0;
  border: 0; border-radius: var(--st-r-pill); background: transparent;
  color: var(--st-dim); font-size: 16px; line-height: 1; cursor: pointer;
}
.toast-x:hover { background: rgba(255, 255, 255, .06); color: var(--st-text); }

@media (max-width: 700px) {
  .toasts { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .bell-menu { width: min(320px, calc(100vw - 24px)); }
}

/* ── Visitor screen share ──────────────────────────────────────────────────
   Sits between the thread header and the message list, so the video is never
   something you scroll away from mid-call. Collapsed to a one-line bar until
   the agent presses Watch — announcing a share costs no bandwidth, receiving
   one does. */

.screen-share {
  flex: none;
  border-bottom: 1px solid var(--st-line);
  background: var(--st-bg-row);
}
.ss-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
}
.ss-dot {
  width: 8px; height: 8px;
  flex: none;
  border-radius: 999px;
  background: var(--st-pink);
  animation: ss-pulse 1.4s infinite;
}
@keyframes ss-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.ss-text {
  flex: 1;
  min-width: 0;
  font: 600 12px var(--st-font);
  color: var(--st-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-video {
  display: block;
  width: 100%;
  max-height: 46vh;
  background: #000;
  object-fit: contain;
}
