/* ═══════════════════════════════════════════════════════════════════════════
   ALL24 HQ — desktop, windows, dock, and the shared app kit.
   Brand: black + Carolina blue (#4B9CD3). Corners max 3px. Hairlines, not cards.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --hq-bg: #000;
  --hq-ink: #e8ecf0;
  --hq-ink-2: #b9c1c9;
  --hq-muted: #8a949e;
  --hq-faint: #5b646d;
  --hq-line: rgba(255,255,255,.08);
  --hq-line-2: rgba(255,255,255,.14);
  --hq-surface: #0b0d10;
  --hq-surface-2: #12151a;
  --hq-surface-3: #191d23;
  --hq-chrome: #14181d;
  --hq-chrome-focus: #1a1f26;
  --hq-glass: rgba(9,11,14,.78);
  --hq-accent: #4B9CD3;
  --hq-accent-ink: #8cc4ea;
  --hq-accent-bg: rgba(75,156,211,.14);
  --hq-accent-line: rgba(75,156,211,.55);
  --hq-on-accent: #03121c;
  --hq-ok: #19c37d;
  --hq-danger: #ea3d3d;
  --hq-danger-bg: rgba(234,61,61,.12);
  --hq-r: 3px;
  --hq-bar-h: 34px;
  --hq-dock-h: 46px;
  --hq-shadow: 0 18px 48px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.35);
  --hq-shadow-focus: 0 28px 72px rgba(0,0,0,.62), 0 2px 8px rgba(0,0,0,.4);
  --hq-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.hq {
  position: fixed; inset: 0;
  overflow: hidden;
  background: var(--hq-bg);
  color: var(--hq-ink);
  font: 13px/1.45 var(--hq-font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  color-scheme: dark;
}
button { font: inherit; color: inherit; }
svg { display: block; }

/* ── Wallpaper ─────────────────────────────────────────────────────────── */
.hq-wall {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.2px) 0 0 / 26px 26px,
    radial-gradient(1100px 720px at 80% -10%, rgba(75,156,211,.13), transparent 62%),
    radial-gradient(900px 640px at 4% 110%, rgba(75,156,211,.08), transparent 60%),
    linear-gradient(180deg, #05080b 0%, #000 100%);
}
.hq-wall-mark {
  position: absolute; right: 2.5vw; bottom: calc(var(--hq-dock-h) + 1vw);
  font-size: 17vw; font-weight: 900; letter-spacing: -.05em; line-height: .78;
  color: rgba(255,255,255,.024);
  user-select: none;
}

/* ── Menu bar ──────────────────────────────────────────────────────────── */
.hq-bar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--hq-bar-h); z-index: 9000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 6px;
  background: var(--hq-glass);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--hq-line);
  user-select: none;
}
.hq-bar-l, .hq-bar-r { display: flex; align-items: center; gap: 4px; min-width: 0; }
.hq-bar-brand {
  display: flex; align-items: baseline; gap: 5px;
  height: 26px; padding: 0 8px; border: 0; border-radius: var(--hq-r);
  background: transparent; cursor: pointer;
}
.hq-bar-brand:hover { background: rgba(255,255,255,.06); }
.hq-brand-a { font-weight: 900; font-size: 13px; letter-spacing: .02em; color: #fff; }
.hq-brand-b { font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--hq-accent); }
.hq-bar-app {
  font-weight: 650; font-size: 13px; color: var(--hq-ink);
  padding-left: 10px; margin-left: 4px; border-left: 1px solid var(--hq-line-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hq-bar-app:empty { display: none; }
.hq-bar-search {
  display: flex; align-items: center; gap: 7px;
  height: 24px; padding: 0 6px 0 8px; margin-right: 6px;
  border: 1px solid var(--hq-line-2); border-radius: var(--hq-r);
  background: rgba(255,255,255,.03); color: var(--hq-muted); cursor: pointer;
  font-size: 12px;
}
.hq-bar-search:hover { color: var(--hq-ink); border-color: rgba(255,255,255,.24); }
.hq-bar-search svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hq-bar-search kbd {
  font: 600 10.5px/1 var(--hq-font); color: var(--hq-muted);
  padding: 3px 4px; border: 1px solid var(--hq-line-2); border-radius: 2px;
}
.hq-bar-clock { font-size: 12.5px; font-weight: 550; color: var(--hq-ink-2); padding: 0 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hq-bar-me { display: flex; align-items: center; gap: 7px; padding: 0 4px 0 8px; border-left: 1px solid var(--hq-line-2); font-size: 12.5px; white-space: nowrap; }
.hq-avatar {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 2px;
  display: grid; place-items: center;
  background: var(--hq-accent-bg); color: var(--hq-accent-ink);
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  border: 1px solid var(--hq-accent-line);
}
.hq-tier { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hq-muted); }
.hq-tier.is-owner { color: var(--hq-accent); }

/* ── Desktop ───────────────────────────────────────────────────────────── */
.hq-desk {
  position: fixed; left: 0; right: 0; top: var(--hq-bar-h); bottom: var(--hq-dock-h);
  z-index: 1; overflow: hidden;
}
.hq-icons { position: absolute; inset: 0; }
.hq-wins  { position: absolute; inset: 0; pointer-events: none; }
.hq-wins > * { pointer-events: auto; }

.hq-ico {
  position: absolute; width: 96px; padding: 6px 2px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  border: 0; background: transparent; cursor: default; user-select: none;
  outline: none; touch-action: none;
}
.hq-ico-tile {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: var(--hq-r);
  background: linear-gradient(180deg, #171c22 0%, #0c0f13 100%);
  border: 1px solid var(--hq-line-2);
  box-shadow: 0 8px 22px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  color: var(--hq-accent);
  transition: transform .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}
.hq-ico-tile svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hq-ico-label {
  max-width: 94px; padding: 1px 5px; border-radius: 2px;
  font-size: 12px; font-weight: 550; line-height: 1.3; text-align: center; color: #f2f5f8;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hq-ico:hover .hq-ico-tile { border-color: rgba(255,255,255,.26); color: var(--hq-accent-ink); transform: translateY(-1px); }
.hq-ico.is-selected .hq-ico-tile { border-color: var(--hq-accent); color: var(--hq-accent-ink); box-shadow: 0 8px 26px rgba(75,156,211,.22), inset 0 1px 0 rgba(255,255,255,.06); }
.hq-ico.is-selected .hq-ico-label { background: var(--hq-accent); color: var(--hq-on-accent); text-shadow: none; }
.hq-ico.is-dragging { z-index: 5; opacity: .9; }
.hq-ico.is-dragging .hq-ico-tile { transform: scale(1.06); }
.hq-ico-run {
  position: absolute; top: 4px; left: 50%; margin-left: 30px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--hq-accent);
  box-shadow: 0 0 6px var(--hq-accent);
}
.hq-ico-badge {
  position: absolute; top: 0; left: 50%; margin-left: 18px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 2px;
  background: var(--hq-danger); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center;
}

/* ── Windows ───────────────────────────────────────────────────────────── */
.hq-win {
  position: absolute; display: flex; flex-direction: column;
  min-width: 320px; min-height: 200px;
  background: var(--hq-surface);
  border: 1px solid var(--hq-line-2); border-radius: var(--hq-r);
  box-shadow: var(--hq-shadow);
  overflow: hidden;
}
.hq-win.is-focused { box-shadow: var(--hq-shadow-focus); border-color: rgba(255,255,255,.2); }
.hq-win.is-max { border-radius: 0; border-width: 0 0 0 0; box-shadow: none; }
.hq-win.is-min { display: none; }
.hq-win.is-opening { animation: hqWinOpen .16s cubic-bezier(.2,.8,.2,1); }
.hq-win.is-closing { animation: hqWinClose .12s ease-in forwards; pointer-events: none; }
.hq-win.is-minimizing { animation: hqWinMin .16s ease-in forwards; pointer-events: none; }
.hq-win.is-tweening { transition: left .16s ease, top .16s ease, width .16s ease, height .16s ease; }
@keyframes hqWinOpen  { from { opacity: 0; transform: translateY(8px) scale(.975); } }
@keyframes hqWinClose { to   { opacity: 0; transform: scale(.975); } }
@keyframes hqWinMin   { to   { opacity: 0; transform: translateY(40px) scale(.9); } }

.hq-win-bar {
  flex: 0 0 34px; display: flex; align-items: center; gap: 8px;
  padding-left: 10px;
  background: var(--hq-chrome); border-bottom: 1px solid var(--hq-line);
  user-select: none; touch-action: none; cursor: default;
}
.hq-win.is-focused .hq-win-bar { background: var(--hq-chrome-focus); }
.hq-win-ico { color: var(--hq-faint); flex: 0 0 auto; }
.hq-win.is-focused .hq-win-ico { color: var(--hq-accent); }
.hq-win-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hq-win-title { font-size: 12.5px; font-weight: 650; color: var(--hq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.hq-win.is-focused .hq-win-title { color: var(--hq-ink); }
.hq-win-sub { font-size: 12px; color: var(--hq-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 100 auto; }
.hq-win-sub:not(:empty)::before { content: "\2014\00a0"; }
.hq-win-ctl { margin-left: auto; display: flex; height: 100%; flex: 0 0 auto; }
.hq-win-ctl button {
  width: 42px; height: 100%; border: 0; background: transparent; color: var(--hq-muted);
  display: grid; place-items: center; cursor: pointer;
}
.hq-win-ctl button:hover { background: rgba(255,255,255,.08); color: #fff; }
.hq-win-ctl button[data-act="close"]:hover { background: var(--hq-danger); color: #fff; }
.hq-win-ctl svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hq-win-body { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.hq-win-body > iframe { display: block; width: 100%; height: 100%; border: 0; background: #0d1117; }
body.hq-dragging .hq-win-body { pointer-events: none; }
body.hq-dragging, body.hq-dragging * { user-select: none !important; }

.hq-rz { position: absolute; z-index: 3; }
.hq-rz[data-d="n"]  { top: -3px; left: 10px; right: 10px; height: 7px; cursor: ns-resize; }
.hq-rz[data-d="s"]  { bottom: -3px; left: 10px; right: 10px; height: 7px; cursor: ns-resize; }
.hq-rz[data-d="e"]  { right: -3px; top: 10px; bottom: 10px; width: 7px; cursor: ew-resize; }
.hq-rz[data-d="w"]  { left: -3px; top: 10px; bottom: 10px; width: 7px; cursor: ew-resize; }
.hq-rz[data-d="ne"] { right: -3px; top: -3px; width: 13px; height: 13px; cursor: nesw-resize; }
.hq-rz[data-d="nw"] { left: -3px; top: -3px; width: 13px; height: 13px; cursor: nwse-resize; }
.hq-rz[data-d="se"] { right: -3px; bottom: -3px; width: 13px; height: 13px; cursor: nwse-resize; }
.hq-rz[data-d="sw"] { left: -3px; bottom: -3px; width: 13px; height: 13px; cursor: nesw-resize; }
.hq-win.is-max .hq-rz { display: none; }

.hq-snap {
  position: absolute; z-index: 8000; pointer-events: none;
  border: 1px solid var(--hq-accent-line); border-radius: var(--hq-r);
  background: rgba(75,156,211,.10);
  box-shadow: inset 0 0 0 1px rgba(75,156,211,.15);
  transition: left .1s ease, top .1s ease, width .1s ease, height .1s ease;
}

/* ── Dock ──────────────────────────────────────────────────────────────── */
.hq-dock {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--hq-dock-h); z-index: 9000;
  display: flex; align-items: stretch;
  background: var(--hq-glass);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid var(--hq-line);
  user-select: none;
}
.hq-dock-start {
  width: 52px; border: 0; border-right: 1px solid var(--hq-line); background: transparent;
  display: grid; place-items: center; color: var(--hq-accent); cursor: pointer;
}
.hq-dock-start:hover, .hq-dock-start.is-open { background: rgba(255,255,255,.06); color: var(--hq-accent-ink); }
.hq-dock-start svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hq-dock-run { flex: 1 1 auto; display: flex; align-items: stretch; gap: 2px; padding: 0 6px; overflow-x: auto; scrollbar-width: none; }
.hq-dock-run::-webkit-scrollbar { display: none; }
.hq-task {
  position: relative; flex: 0 1 190px; min-width: 44px;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  border: 0; background: transparent; color: var(--hq-ink-2); cursor: pointer;
  font-size: 12.5px; font-weight: 550; white-space: nowrap; overflow: hidden;
}
.hq-task::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px;
  background: var(--hq-faint); opacity: .7;
}
.hq-task:hover { background: rgba(255,255,255,.05); color: #fff; }
.hq-task.is-focused { background: rgba(255,255,255,.07); color: #fff; }
.hq-task.is-focused::after { background: var(--hq-accent); opacity: 1; left: 0; right: 0; }
.hq-task.is-min { color: var(--hq-muted); }
.hq-task.is-min::after { opacity: .35; }
.hq-task svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--hq-accent); }
.hq-task span { overflow: hidden; text-overflow: ellipsis; }
.hq-dock-desk { width: 10px; border: 0; border-left: 1px solid var(--hq-line); background: transparent; cursor: pointer; }
.hq-dock-desk:hover { background: rgba(255,255,255,.08); }

/* ── Popups: launcher, palette, context menu ───────────────────────────── */
.hq-pop {
  background: rgba(13,16,20,.97);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--hq-line-2); border-radius: var(--hq-r);
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.hq-launcher {
  position: fixed; left: 6px; bottom: calc(var(--hq-dock-h) + 6px); z-index: 9500;
  width: 400px; max-width: calc(100vw - 12px); max-height: min(640px, calc(100vh - var(--hq-bar-h) - var(--hq-dock-h) - 24px));
  display: flex; flex-direction: column;
}
.hq-launcher[hidden], .hq-palette[hidden], .hq-menu[hidden] { display: none; }
.hq-l-search { padding: 12px 12px 8px; border-bottom: 1px solid var(--hq-line); }
.hq-l-list { overflow: auto; padding: 6px 0 8px; }
.hq-l-group { padding: 10px 14px 4px; font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--hq-faint); }
.hq-l-item {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 7px 14px;
  border: 0; background: transparent; text-align: left; cursor: pointer;
}
.hq-l-item:hover, .hq-l-item.is-active { background: var(--hq-accent-bg); }
.hq-l-tile {
  width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: var(--hq-r); border: 1px solid var(--hq-line-2);
  background: linear-gradient(180deg, #171c22, #0c0f13); color: var(--hq-accent);
}
.hq-l-tile svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hq-l-name { font-size: 13px; font-weight: 650; color: var(--hq-ink); }
.hq-l-blurb { font-size: 12px; color: var(--hq-muted); }
.hq-l-foot {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-top: 1px solid var(--hq-line); font-size: 12.5px;
}
.hq-l-foot .hq-l-who { flex: 1 1 auto; min-width: 0; }
.hq-l-foot .hq-l-who div:first-child { font-weight: 650; }
.hq-l-foot a { color: var(--hq-ink-2); text-decoration: none; font-size: 12px; font-weight: 600; padding: 5px 8px; border: 1px solid var(--hq-line-2); border-radius: var(--hq-r); }
.hq-l-foot a:hover { color: #fff; border-color: rgba(255,255,255,.3); }

.hq-palette {
  position: fixed; left: 50%; top: 14vh; z-index: 9600; transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px));
}
.hq-p-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--hq-line); }
.hq-p-input svg { width: 16px; height: 16px; fill: none; stroke: var(--hq-muted); stroke-width: 2; stroke-linecap: round; }
.hq-p-input input { flex: 1; height: 48px; border: 0; outline: 0; background: transparent; color: var(--hq-ink); font: 15px var(--hq-font); }
.hq-p-list { max-height: 50vh; overflow: auto; padding: 6px 0; }
.hq-p-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.hq-p-item.is-active { background: var(--hq-accent-bg); }
.hq-p-item svg { width: 16px; height: 16px; fill: none; stroke: var(--hq-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.hq-p-item .hq-p-k { margin-left: auto; font-size: 11.5px; color: var(--hq-faint); }
.hq-p-empty { padding: 18px 14px; color: var(--hq-muted); }

.hq-menu { position: fixed; z-index: 9700; min-width: 200px; padding: 4px 0; }
.hq-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 6px 14px; border: 0; background: transparent; text-align: left; cursor: pointer; font-size: 12.5px; }
.hq-menu button:hover { background: var(--hq-accent); color: var(--hq-on-accent); }
.hq-menu hr { border: 0; border-top: 1px solid var(--hq-line); margin: 4px 0; }

/* ── Toasts ────────────────────────────────────────────────────────────── */
.hq-toasts { position: fixed; top: calc(var(--hq-bar-h) + 10px); right: 12px; z-index: 9800; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.hq-toast {
  min-width: 220px; max-width: 360px; padding: 9px 12px 9px 14px; position: relative;
  font-size: 12.5px; color: var(--hq-ink);
  animation: hqToastIn .18s ease-out;
}
.hq-toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--hq-accent); }
.hq-toast.is-ok::before { background: var(--hq-ok); }
.hq-toast.is-err::before { background: var(--hq-danger); }
.hq-toast.is-out { animation: hqToastOut .16s ease-in forwards; }
@keyframes hqToastIn  { from { opacity: 0; transform: translateX(12px); } }
@keyframes hqToastOut { to   { opacity: 0; transform: translateX(12px); } }

/* ── Gate (signed out / no access) ─────────────────────────────────────── */
body.hq-gated { display: grid; place-items: center; }
.hq-gate { position: relative; z-index: 1; width: min(440px, calc(100vw - 32px)); padding: 28px 28px 24px; border: 1px solid var(--hq-line-2); border-radius: var(--hq-r); background: rgba(10,12,15,.9); }
.hq-gate-brand { display: flex; gap: 6px; align-items: baseline; margin-bottom: 18px; }
.hq-gate-brand .hq-brand-a, .hq-gate-brand .hq-brand-b { font-size: 18px; }
.hq-gate h1 { font-size: 18px; margin: 0 0 6px; font-weight: 750; }
.hq-gate p { margin: 0 0 18px; color: var(--hq-ink-2); }
.hq-gate-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════════════
   APP KIT — shared by every HQ app
   ═══════════════════════════════════════════════════════════════════════════ */
.hq-app { position: absolute; inset: 0; overflow: auto; }
.hq-app::-webkit-scrollbar, .hq-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.hq-app::-webkit-scrollbar-thumb, .hq-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border: 3px solid transparent; background-clip: padding-box; border-radius: 6px; }
.hq-app { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }

.hq-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; flex-wrap: wrap; }
.hq-head h2 { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.005em; }
.hq-head .hq-sub { color: var(--hq-muted); font-size: 12.5px; }
.hq-head .hq-spacer { flex: 1 1 auto; }

.hq-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; width: auto;
  height: 28px; padding: 0 11px; border: 1px solid var(--hq-line-2); border-radius: var(--hq-r);
  background: var(--hq-surface-2); color: var(--hq-ink); cursor: pointer;
  font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.hq-btn:hover { background: var(--hq-surface-3); border-color: rgba(255,255,255,.24); }
.hq-btn:disabled { opacity: .45; cursor: default; }
.hq-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hq-btn-primary { background: var(--hq-accent); border-color: var(--hq-accent); color: var(--hq-on-accent); }
.hq-btn-primary:hover { background: #63aadb; border-color: #63aadb; }
.hq-btn-danger { background: transparent; border-color: rgba(234,61,61,.5); color: #ff8a8a; }
.hq-btn-danger:hover { background: var(--hq-danger); border-color: var(--hq-danger); color: #fff; }
.hq-btn-ghost { background: transparent; border-color: transparent; color: var(--hq-ink-2); }
.hq-btn-ghost:hover { background: rgba(255,255,255,.06); border-color: transparent; color: #fff; }
.hq-link { border: 0; background: none; padding: 0; color: var(--hq-accent-ink); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.hq-link:hover { color: #fff; }

.hq-input {
  height: 30px; width: 100%; padding: 0 10px;
  border: 1px solid var(--hq-line-2); border-radius: var(--hq-r);
  background: var(--hq-surface-2); color: var(--hq-ink); font: 13px var(--hq-font); outline: none;
}
.hq-input:focus { border-color: var(--hq-accent); box-shadow: 0 0 0 2px rgba(75,156,211,.2); }
.hq-input::placeholder { color: var(--hq-faint); }

/* Stat strip: one row of numbers split by hairlines, no boxes. */
.hq-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); border-top: 1px solid var(--hq-line); border-bottom: 1px solid var(--hq-line); }
.hq-stat { padding: 14px 20px 13px; border-right: 1px solid var(--hq-line); min-width: 0; }
.hq-stat:last-child { border-right: 0; }
.hq-stat[data-open] { cursor: pointer; }
.hq-stat[data-open]:hover { background: rgba(255,255,255,.025); }
.hq-stat-k { font-size: 11.5px; font-weight: 600; color: var(--hq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-stat-v { margin-top: 3px; font-size: 24px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: #fff; line-height: 1.2; white-space: nowrap; }
.hq-stat-v small { font-size: 13px; font-weight: 600; color: var(--hq-muted); margin-left: 2px; }
.hq-stat-d { margin-top: 3px; font-size: 12px; color: var(--hq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-up { color: var(--hq-ok); }
.hq-down { color: #ff7b7b; }

.hq-sec { padding: 18px 20px 6px; }
.hq-sec-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.hq-sec-h h3 { margin: 0; font-size: 13px; font-weight: 750; color: var(--hq-ink); }
.hq-sec-h .hq-sub { font-size: 12px; color: var(--hq-muted); }
.hq-sec-h .hq-spacer { flex: 1; }
.hq-sec-flush { padding: 0; }
.hq-sec-flush > .hq-sec-h { padding: 18px 20px 0; }

.hq-pills { display: inline-flex; border: 1px solid var(--hq-line-2); border-radius: var(--hq-r); overflow: hidden; }
.hq-pills button { height: 26px; padding: 0 10px; border: 0; border-right: 1px solid var(--hq-line-2); background: transparent; color: var(--hq-ink-2); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hq-pills button:last-child { border-right: 0; }
.hq-pills button:hover { background: rgba(255,255,255,.05); color: #fff; }
.hq-pills button.is-on { background: var(--hq-accent-bg); color: var(--hq-accent-ink); }
.hq-pills button:disabled { color: var(--hq-faint); cursor: default; background: transparent; }
.hq-pills button .n { color: var(--hq-faint); margin-left: 4px; font-weight: 600; }

.hq-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hq-table th {
  position: sticky; top: 0; z-index: 1;
  text-align: left; font-size: 11.5px; font-weight: 650; color: var(--hq-muted);
  padding: 8px 12px; background: var(--hq-surface); border-bottom: 1px solid var(--hq-line-2); white-space: nowrap;
}
.hq-table td { padding: 8px 12px; border-bottom: 1px solid var(--hq-line); font-size: 13px; color: var(--hq-ink); white-space: nowrap; }
.hq-table tr:hover td { background: rgba(255,255,255,.025); }
.hq-table th:first-child, .hq-table td:first-child { padding-left: 20px; }
.hq-table th:last-child, .hq-table td:last-child { padding-right: 20px; }
.hq-table .num { text-align: right; }
.hq-table .dim { color: var(--hq-muted); }
.hq-table .wrap { white-space: normal; }

.hq-chip { display: inline-block; padding: 1px 6px; border-radius: 2px; border: 1px solid var(--hq-line-2); font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--hq-ink-2); text-transform: capitalize; }
.hq-chip.is-paid, .hq-chip.is-ok { color: #4fe0a3; border-color: rgba(25,195,125,.45); background: rgba(25,195,125,.08); }
.hq-chip.is-sent, .hq-chip.is-accent { color: var(--hq-accent-ink); border-color: var(--hq-accent-line); background: var(--hq-accent-bg); }
.hq-chip.is-overdue, .hq-chip.is-danger { color: #ff8f8f; border-color: rgba(234,61,61,.5); background: var(--hq-danger-bg); }
.hq-chip.is-draft { color: var(--hq-muted); }
.hq-chip.is-void { color: var(--hq-faint); text-decoration: line-through; }

.hq-empty { padding: 28px 20px; color: var(--hq-muted); text-align: center; }
.hq-loading { padding: 28px 20px; color: var(--hq-muted); }
.hq-error { margin: 16px 20px; padding: 10px 12px; border-left: 3px solid var(--hq-danger); background: var(--hq-danger-bg); color: #ffb0b0; }
.hq-note { padding: 10px 20px 18px; font-size: 12px; color: var(--hq-faint); }

/* Segmented Off / View / Manage */
.hq-seg { display: inline-flex; border: 1px solid var(--hq-line-2); border-radius: var(--hq-r); overflow: hidden; flex: 0 0 auto; }
.hq-seg button { min-width: 60px; height: 26px; padding: 0 10px; border: 0; border-right: 1px solid var(--hq-line-2); background: transparent; color: var(--hq-muted); font-size: 12px; font-weight: 650; cursor: pointer; }
.hq-seg button:last-child { border-right: 0; }
.hq-seg button:not(.is-on):not(:disabled):hover { background: rgba(255,255,255,.05); color: #fff; }
.hq-seg button.is-on { background: var(--hq-accent); color: var(--hq-on-accent); }
.hq-seg button.is-on[data-v=""] { background: var(--hq-surface-3); color: var(--hq-ink); }
.hq-seg button:disabled { cursor: default; }

/* Switch */
.hq-switch { position: relative; width: 34px; height: 18px; flex: 0 0 auto; border: 1px solid var(--hq-line-2); border-radius: 2px; background: var(--hq-surface-3); cursor: pointer; padding: 0; }
.hq-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 1px; background: var(--hq-muted); transition: transform .14s ease, background .14s ease; }
.hq-switch.is-on { background: var(--hq-danger); border-color: var(--hq-danger); }
.hq-switch.is-on::after { transform: translateX(16px); background: #fff; }

/* Split view: list | detail */
.hq-split { position: absolute; inset: 0; display: flex; }
.hq-split-l { flex: 0 0 280px; display: flex; flex-direction: column; border-right: 1px solid var(--hq-line); min-height: 0; }
.hq-split-r { flex: 1 1 auto; min-width: 0; position: relative; }
.hq-split-r > .hq-app { position: absolute; inset: 0; }
.hq-list { flex: 1 1 auto; overflow: auto; padding: 4px 0 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.hq-list-g { padding: 12px 14px 5px; font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--hq-faint); }
.hq-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 14px; border: 0; background: transparent; text-align: left; cursor: pointer; position: relative; }
.hq-row:hover { background: rgba(255,255,255,.035); }
.hq-row.is-on { background: var(--hq-accent-bg); }
.hq-row.is-on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--hq-accent); }
.hq-row-main { min-width: 0; flex: 1; }
.hq-row-t { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-row-s { font-size: 12px; color: var(--hq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Window sheet: a modal that belongs to its window, not the whole desktop. */
.hq-sheet { position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.55); display: flex; justify-content: center; align-items: flex-start; padding-top: 9%; animation: hqFade .12s ease-out; }
.hq-sheet-p { width: min(440px, calc(100% - 32px)); padding: 18px 18px 14px; border: 1px solid var(--hq-line-2); border-radius: var(--hq-r); background: var(--hq-surface-2); box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: hqSheetIn .16s cubic-bezier(.2,.8,.2,1); }
.hq-sheet-p h4 { margin: 0 0 6px; font-size: 15px; font-weight: 750; }
.hq-sheet-p p { margin: 0 0 12px; color: var(--hq-ink-2); }
.hq-sheet-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
@keyframes hqFade { from { opacity: 0; } }
@keyframes hqSheetIn { from { opacity: 0; transform: translateY(-8px); } }

/* Bar chart */
.hq-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 0 0 0; }
.hq-bars .b { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; position: relative; }
.hq-bars .b i { display: block; width: 100%; max-width: 34px; min-height: 1px; background: var(--hq-accent); border-radius: 2px 2px 0 0; opacity: .85; transition: opacity .12s; }
.hq-bars .b.is-zero i { background: var(--hq-line-2); }
.hq-bars .b:hover i { opacity: 1; }
.hq-bars .b span { font-size: 11px; color: var(--hq-faint); }
.hq-bars .b em { position: absolute; bottom: calc(100% - 4px); font-style: normal; font-size: 11.5px; font-weight: 650; color: #fff; background: #000; border: 1px solid var(--hq-line-2); padding: 2px 6px; border-radius: 2px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .1s, transform .1s; }
.hq-bars .b:hover em { opacity: 1; transform: none; }

.hq-spark { width: 100%; height: 44px; }
.hq-spark path.l { fill: none; stroke: var(--hq-accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.hq-spark path.a { fill: rgba(75,156,211,.12); stroke: none; }

/* ── Phone ─────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .hq-bar-clock, .hq-bar-search span, .hq-bar-search kbd, .hq-bar-me .hq-tier, .hq-bar-me .hq-me-name { display: none; }
  .hq-win { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border: 0; border-radius: 0; min-width: 0; }
  .hq-rz { display: none; }
  .hq-win-ctl button[data-act="max"] { display: none; }
  .hq-task { flex-basis: 52px; padding: 0; justify-content: center; }
  .hq-task span { display: none; }
  .hq-split-l { flex-basis: 100%; }
  .hq-split.is-detail .hq-split-l { display: none; }
  .hq-split:not(.is-detail) .hq-split-r { display: none; }
  .hq-wall-mark { font-size: 46vw; }
}
@media (prefers-reduced-motion: reduce) {
  .hq-win.is-opening, .hq-win.is-closing, .hq-win.is-minimizing, .hq-toast, .hq-sheet, .hq-sheet-p { animation: none; }
  .hq-win.is-tweening, .hq-snap { transition: none; }
}

/* ── Layout pieces used by Pulse / Money / Access ───────────────────────── */
.hq-app { container-type: inline-size; }
.hq-two { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); border-bottom: 1px solid var(--hq-line); }
.hq-two > div { padding: 16px 20px 18px; min-width: 0; }
.hq-two > div + div { border-left: 1px solid var(--hq-line); }
@container (max-width: 820px) {
  .hq-two { grid-template-columns: 1fr; }
  .hq-two > div + div { border-left: 0; border-top: 1px solid var(--hq-line); }
}
.hq-mini { list-style: none; margin: 0; padding: 0; }
.hq-mini li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hq-line); font-size: 12.5px; }
.hq-mini li:last-child { border-bottom: 0; }
.hq-mini .t { flex: 1 1 auto; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-mini .s { color: var(--hq-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hq-mini .v { color: var(--hq-ink); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }

.hq-tabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--hq-line); }
.hq-tabs button { position: relative; height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--hq-muted); font-size: 12.5px; font-weight: 650; cursor: pointer; }
.hq-tabs button:hover { color: var(--hq-ink); }
.hq-tabs button.is-on { color: #fff; }
.hq-tabs button.is-on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--hq-accent); }
.hq-tabs .n { margin-left: 5px; color: var(--hq-faint); font-weight: 600; }
.hq-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; flex-wrap: wrap; }
.hq-toolbar .hq-input { width: 220px; }
.hq-toolbar .hq-spacer { flex: 1; }

/* Access */
.hq-person { display: flex; align-items: center; gap: 14px; padding: 18px 22px 14px; }
.hq-person .hq-avatar { width: 40px; height: 40px; font-size: 14px; }
.hq-person h2 { margin: 0; font-size: 17px; font-weight: 750; }
.hq-person .hq-sub { color: var(--hq-muted); font-size: 12.5px; }
.hq-person .hq-spacer { flex: 1; }
.hq-kv { display: flex; gap: 22px; flex-wrap: wrap; padding: 0 22px 14px; font-size: 12.5px; color: var(--hq-muted); }
.hq-kv b { color: var(--hq-ink); font-weight: 600; }
.hq-grant { display: flex; align-items: center; gap: 12px; padding: 10px 22px; border-bottom: 1px solid var(--hq-line); }
.hq-grant:first-of-type { border-top: 1px solid var(--hq-line); }
.hq-grant-ico { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--hq-line-2); border-radius: var(--hq-r); color: var(--hq-accent); background: linear-gradient(180deg, #171c22, #0c0f13); }
.hq-grant-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hq-grant.is-off .hq-grant-ico { color: var(--hq-faint); }
.hq-grant-main { flex: 1 1 auto; min-width: 0; }
.hq-grant-t { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.hq-grant-s { font-size: 12px; color: var(--hq-muted); }
.hq-grant-fixed { font-size: 12px; font-weight: 650; color: var(--hq-faint); white-space: nowrap; }
.hq-grant.is-soon .hq-grant-t { color: var(--hq-muted); }
.hq-group-h { padding: 18px 22px 8px; font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--hq-faint); }
.hq-danger-zone { margin: 20px 22px 6px; padding: 14px 16px; border: 1px solid rgba(234,61,61,.35); border-radius: var(--hq-r); display: flex; gap: 14px; align-items: flex-start; }
.hq-danger-zone .t { font-weight: 700; font-size: 13px; }
.hq-danger-zone .s { color: var(--hq-ink-2); font-size: 12.5px; margin-top: 2px; }
.hq-danger-zone .hq-spacer { flex: 1; }
.hq-foot-actions { display: flex; gap: 8px; padding: 16px 22px 24px; flex-wrap: wrap; }
.hq-search-res { border-top: 1px solid var(--hq-line); }
.hq-audit li { align-items: flex-start; }
.hq-audit .s { min-width: 92px; }
.hq-callout { margin: 0 22px 12px; padding: 10px 12px; border-left: 3px solid var(--hq-accent); background: var(--hq-accent-bg); font-size: 12.5px; color: var(--hq-ink-2); }
.hq-callout.is-danger { border-left-color: var(--hq-danger); background: var(--hq-danger-bg); }
.hq-back { display: none; }
@media (max-width: 760px) { .hq-back { display: inline-flex; } }

/* ── Customers: forms, meters, banners, identity tiles ─────────────────── */
.hq-dialog { width: min(480px, calc(100% - 32px)); }
.hq-dialog-err { margin-top: 10px; padding: 8px 10px; border-left: 3px solid var(--hq-danger); background: var(--hq-danger-bg); color: #ffb0b0; font-size: 12.5px; }
.hq-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; padding: 4px 22px 8px; }
.hq-form.is-one { grid-template-columns: 1fr; padding: 4px 0 0; }
.hq-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hq-field.is-wide { grid-column: 1 / -1; }
.hq-field > span { font-size: 11.5px; font-weight: 650; color: var(--hq-muted); }
.hq-field .hq-pills { flex-wrap: wrap; align-self: flex-start; }
.hq-field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hq-line); }
.hq-field-row:last-child { border-bottom: 0; }
.hq-field-row .t { font-size: 13px; font-weight: 600; }
.hq-field-row .s { font-size: 12px; color: var(--hq-muted); }
.hq-form-actions { display: flex; gap: 8px; align-items: center; padding: 6px 22px 20px; }
.hq-form-actions .hq-sub { color: var(--hq-muted); font-size: 12px; }

.hq-idtile { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: var(--hq-r); border: 1px solid var(--hq-line-2); background: linear-gradient(180deg, #171c22, #0c0f13); color: var(--hq-accent); font-weight: 800; font-size: 13px; letter-spacing: .02em; overflow: hidden; }
.hq-idtile img { width: 100%; height: 100%; object-fit: contain; }
.hq-idtile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hq-person .hq-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hq-crumb { border: 0; background: none; padding: 0; color: var(--hq-accent-ink); font: inherit; cursor: pointer; }
.hq-crumb:hover { color: #fff; text-decoration: underline; }

.hq-banner { margin: 0 22px 12px; padding: 10px 12px; border-left: 3px solid var(--hq-danger); background: var(--hq-danger-bg); color: #ffc2c2; font-size: 12.5px; display: flex; gap: 12px; align-items: center; }
.hq-banner .hq-spacer { flex: 1; }

.hq-meter { height: 6px; background: var(--hq-surface-3); border-radius: 1px; overflow: hidden; margin-top: 8px; }
.hq-meter i { display: block; height: 100%; background: var(--hq-accent); }
.hq-meter.is-hot i { background: var(--hq-danger); }

.hq-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; padding: 6px 22px 10px; }
.hq-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hq-line); font-size: 12.5px; min-width: 0; }
.hq-facts dt, .hq-facts .k { color: var(--hq-muted); white-space: nowrap; }
.hq-facts dd, .hq-facts .v { margin: 0; color: var(--hq-ink); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hq-table tr[data-open] { cursor: pointer; }
.hq-table td .hq-seg button { min-width: 0; height: 24px; padding: 0 8px; }
.hq-linkrow { color: var(--hq-ink); }
.hq-copy { display: flex; gap: 8px; margin-top: 8px; }
.hq-copy .hq-input { font-size: 12px; }
.hq-pick { max-height: 240px; overflow: auto; border: 1px solid var(--hq-line); border-radius: var(--hq-r); margin-top: 8px; }
.hq-pick button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 7px 10px; border: 0; border-bottom: 1px solid var(--hq-line); background: transparent; text-align: left; cursor: pointer; }
.hq-pick button:last-child { border-bottom: 0; }
.hq-pick button:hover, .hq-pick button.is-on { background: var(--hq-accent-bg); }
.hq-pick .hq-row-s { font-size: 11.5px; }
.hq-switch.hq-switch-accent.is-on { background: var(--hq-accent); border-color: var(--hq-accent); }
.hq-dialog p { margin: 0 0 12px; color: var(--hq-ink-2); }
.hq-task-badge { display: inline-block; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 6px; border-radius: 2px; background: var(--hq-danger); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; vertical-align: 1px; }
.hq-task .hq-task-badge { flex: 0 0 auto; }
.hq-ico { position: absolute; }

/* ── Safety: report cards, message context, case thread ─────────────────── */
.hq-report { margin: 0 22px 10px; padding: 12px 14px; border: 1px solid var(--hq-line); border-radius: var(--hq-r); background: rgba(255,255,255,.015); }
.hq-report-h { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.hq-report-h .hq-spacer { flex: 1; }
.hq-report-why { margin-top: 6px; font-size: 12.5px; color: var(--hq-ink-2); font-style: italic; }
.hq-report-msg { margin-top: 8px; padding: 9px 11px; border-left: 3px solid var(--hq-danger); background: var(--hq-danger-bg); font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.hq-report-msg.is-deleted { opacity: .7; }
.hq-report-a { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.hq-ctx { margin-top: 8px; border: 1px solid var(--hq-line); border-radius: var(--hq-r); max-height: 320px; overflow: auto; }
.hq-ctx-row { display: grid; grid-template-columns: 150px 110px 1fr; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--hq-line); font-size: 12.5px; }
.hq-ctx-row:last-child { border-bottom: 0; }
.hq-ctx-row.is-target { background: var(--hq-danger-bg); }
.hq-ctx-row .who { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-ctx-row .when { color: var(--hq-faint); white-space: nowrap; }
.hq-ctx-row .txt { white-space: pre-wrap; word-break: break-word; }
.hq-thread { padding: 0 22px; display: flex; flex-direction: column; gap: 8px; }
.hq-msg { max-width: 80%; padding: 8px 11px; border: 1px solid var(--hq-line); border-radius: var(--hq-r); background: var(--hq-surface-2); font-size: 13px; }
.hq-msg.is-us { align-self: flex-end; border-color: var(--hq-accent-line); background: var(--hq-accent-bg); }
.hq-msg .h { font-size: 12px; margin-bottom: 3px; }
.hq-msg .b { white-space: pre-wrap; word-break: break-word; }
