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

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/inter.woff2') format('woff2'); }

/* Dark is the default theme; [data-theme="light"] switches to light. */
:root {
  color-scheme: dark;
  --page: #0d0f14;
  --panel: #11141a;
  --panel-border: rgba(255, 255, 255, 0.05);
  --surface-1: #161a22;
  --surface-2: #1c202b;
  --surface-3: #232836;
  --ink: #f1f3f7;
  --ink-2: #a3a9b8;
  --ink-muted: #8a90a1;
  --grid: #222733;
  --axis: #343a49;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --accent: #3d72ff;
  --accent-strong: #2f62f0;
  --accent-ink: #8fb0ff;
  --accent-wash: rgba(61, 114, 255, 0.16);
  --accent-line: rgba(61, 114, 255, 0.4);
  --on-accent: #ffffff;
  --light-btn: #f1f3f7;
  --on-light-btn: #0d0f14;
  --good: #34d399;
  --good-ink: #6ee7b7;
  --good-wash: rgba(52, 211, 153, 0.14);
  --warning: #f5a524;
  --serious: #fb923c;
  --critical: #f87171;
  --critical-ink: #fca5a5;
  --critical-wash: rgba(248, 113, 113, 0.14);
  --critical-line: rgba(248, 113, 113, 0.35);
  --series-1: #3d72ff; --series-2: #f5a524; --series-3: #34d399; --series-4: #f472b6;
  --series-5: #a78bfa; --series-6: #38bdf8; --series-7: #a3e635; --series-8: #f87171;
  --heat-0: #1c202b;
  --heat-1: rgba(61, 114, 255, 0.16); --heat-2: rgba(61, 114, 255, 0.28); --heat-3: rgba(61, 114, 255, 0.42); --heat-4: rgba(61, 114, 255, 0.56);
  --heat-5: rgba(61, 114, 255, 0.72); --heat-6: rgba(61, 114, 255, 0.86); --heat-7: #3d72ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.5);
  --radius: 20px;
  --radius-sm: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #e9edf3;
  --panel: #f5f7fa;
  --panel-border: rgba(255, 255, 255, 0.9);
  --surface-1: #ffffff;
  --surface-2: #f2f4f8;
  --surface-3: #e8ecf3;
  --ink: #12151c;
  --ink-2: #4b5263;
  --ink-muted: #646b7c;
  --grid: #e8ebf1;
  --axis: #c6cbd6;
  --border: rgba(18, 21, 28, 0.07);
  --border-strong: rgba(18, 21, 28, 0.14);
  --accent: #2563eb;
  --accent-strong: #2158e0;
  --accent-ink: #1d4ed8;
  --accent-wash: #e3ebfd;
  --accent-line: #b9cdf8;
  --light-btn: #12151c;
  --on-light-btn: #ffffff;
  --good: #10b981;
  --good-ink: #047857;
  --good-wash: #dcf5ec;
  --warning: #d97706;
  --serious: #ea580c;
  --critical: #dc2626;
  --critical-ink: #b91c1c;
  --critical-wash: #fde8e8;
  --critical-line: #f5c2c2;
  --series-1: #2563eb; --series-2: #d97706; --series-3: #059669; --series-4: #db2777;
  --series-5: #7c3aed; --series-6: #0284c7; --series-7: #65a30d; --series-8: #dc2626;
  --heat-0: #eef1f6;
  --heat-1: #dbe6fd; --heat-2: #bcd0fb; --heat-3: #93b2f7; --heat-4: #6a93f2; --heat-5: #2563eb; --heat-6: #1d4ed8; --heat-7: #1e3a8a;
  --shadow: 0 1px 2px rgba(18, 21, 28, 0.04), 0 10px 30px rgba(18, 21, 28, 0.06);
  --shadow-pop: 0 16px 40px rgba(18, 21, 28, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 13.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
h1 { font-size: 22px; line-height: 1.25; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 14.5px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 12px; text-wrap: pretty; }
svg { flex: none; }
.muted { color: var(--ink-2); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-wash); color: var(--ink); }
input, textarea { caret-color: var(--accent); }
html { scrollbar-color: var(--surface-3) var(--page); }
* { scrollbar-width: thin; }
a { text-underline-offset: 3px; }

/* ---------- shell ---------- */
.shell { display: flex; gap: 8px; min-height: 100vh; padding: 16px; }
.sidebar { flex: 0 0 236px; position: sticky; top: 16px; height: calc(100vh - 32px); padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 12px; padding: 4px 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.brand-picker { display: grid; gap: 6px; padding: 0 8px; }
.brand-row { display: flex; gap: 6px; align-items: center; }
.brand-row select { flex: 1; min-width: 0; border-radius: 12px; background: var(--surface-1); border-color: var(--border); font-weight: 500; }
.label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav > a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 10px 0 8px; border-radius: 14px; color: var(--ink-2); text-decoration: none; font-weight: 500; transition: background-color 0.15s, color 0.15s; }
.nav > a:hover { background: var(--surface-1); color: var(--ink); }
.nav .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.nav .ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav .txt { flex: 1; }
.nav .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--critical-wash); color: var(--critical-ink); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.nav > a[aria-current="page"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.nav > a[aria-current="page"] .ico { background: var(--accent-strong); color: var(--on-accent); }
.nav .nav-end { margin-top: auto; }

.panel { flex: 1; min-width: 0; border-radius: 28px; background: var(--panel); border: 1px solid var(--panel-border); padding: 22px 26px 32px; display: flex; flex-direction: column; gap: 22px; }
.app-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.head-title { display: grid; gap: 2px; min-width: 0; }
.head-title p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-1); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; text-decoration: none; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.sm svg { width: 15px; height: 15px; }
.main { min-width: 0; outline: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.skeleton { display: grid; gap: 14px; }
.skeleton i { display: block; height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-1), var(--surface-2), var(--surface-1)); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skeleton i:first-child { height: 64px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

@media (max-width: 900px) {
  .shell { flex-direction: column; padding: 10px; }
  .sidebar { position: static; height: auto; flex: none; padding: 4px; gap: 12px; display: grid; grid-template-columns: auto 1fr; align-items: center; overflow: visible; }
  .brand-picker { padding: 0; }
  .brand-picker .label { display: none; }
  .nav { grid-column: 1 / -1; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-bottom: 2px;
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav > a { height: 42px; padding: 0 14px 0 6px; flex: none; }
  .nav .nav-end { margin-top: 0; }
  .panel { padding: 16px 14px 28px; border-radius: 22px; }
}
@media (max-width: 600px) {
  .head-actions { margin-left: 0; width: 100%; }
  .head-actions .btn { flex: 1; }
  h1 { font-size: 20px; }
}

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 6px 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--ink); font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn.icon-only { padding: 0; width: 38px; }
.btn.small.icon-only { width: 32px; padding: 0; }
.btn:hover { background: var(--surface-3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.light { background: var(--light-btn); border-color: var(--light-btn); color: var(--on-light-btn); font-weight: 600; }
.btn.light:hover { filter: brightness(0.94); }
.btn.big { min-height: 42px; padding: 6px 20px; }
.btn.danger { color: var(--critical-ink); }
.btn.danger-solid { background: var(--critical); border-color: var(--critical); color: #fff; font-weight: 600; }
.btn.danger-solid:hover { filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { min-height: 32px; padding: 3px 14px; font-size: 12.5px; }
input[type="text"], input[type="url"], input[type="password"], input[type="email"], input[type="datetime-local"], input[type="search"], select, textarea {
  border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: 12px; padding: 8px 12px; min-height: 40px; max-width: 100%;
}
::placeholder { color: var(--ink-muted); opacity: 1; }
textarea { width: 100%; resize: vertical; min-height: 140px; line-height: 1.5; }
.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field input, .field select { width: 100%; }
.hint { font-size: 12px; color: var(--ink-2); max-width: 64ch; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-1); border: 1px solid var(--border); }
.segmented button { border: 0; background: transparent; padding: 0 14px; min-height: 32px; border-radius: 999px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--accent-strong); color: var(--on-accent); }
.segmented button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.segmented .n { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.segmented button[aria-pressed="true"] .n { color: inherit; opacity: 0.8; }
.segmented button.warn .n { color: var(--critical-ink); }
.segmented.scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented.scroll::-webkit-scrollbar { display: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; min-width: 0; max-width: 100%; }
.page-head .filters { margin-bottom: 0; }
.page-intro { margin: 0; }
.filters select { border-radius: 999px; background: var(--surface-1); border-color: var(--border); }

/* ---------- cards ---------- */
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card > h2:first-child { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.stack { display: grid; gap: 14px; align-content: start; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.empty h2 { color: var(--ink); font-size: 17px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head .t { flex: 1; min-width: 0; display: grid; }
.card-head h2 { margin: 0; }
.card-head .sub { font-size: 12.5px; color: var(--ink-muted); }
.card-head > a:not(.icon-btn) { font-size: 12.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.card-head > a:not(.icon-btn):hover { text-decoration: underline; }

/* ---------- status ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-muted); flex: none; }
.status.published::before { background: var(--good); }
.status.scheduled::before { background: var(--accent); }
.status.publishing::before { background: var(--accent); animation: pulse 1s infinite alternate; }
.status.failed::before { background: var(--critical); }
.status.partial::before { background: var(--serious); }
.status.draft::before { background: transparent; border: 1.5px solid var(--ink-muted); width: 7px; height: 7px; }
.status.error::before { background: var(--critical); }
.status.ok::before { background: var(--good); }
@keyframes pulse { to { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .status.publishing::before { animation: none; } }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill.up { background: var(--good-wash); color: var(--good-ink); }
.pill.down { background: var(--critical-wash); color: var(--critical-ink); }
.pill.accent { background: var(--accent-wash); color: var(--accent-ink); }

/* ---------- network icons ---------- */
.net-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; flex: none; }
.net-logo { width: 14px; height: 14px; flex: none; display: inline-block; vertical-align: -2px; }
.net-ico .net-logo { width: 19px; height: 19px; }
/* The demo network's wave stands alone, without the circle behind the others. */
.net-ico:has(> .demo) { background: none; }
.net-ico .demo { width: 28px; height: 28px; }
.net-name { display: inline-flex; align-items: center; gap: 6px; }
/* Several networks share the space of one icon, so rows stay aligned. */
.net-stack { width: 38px; min-height: 38px; display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; align-content: center; flex: none; }
.net-stack .net-ico { width: 17px; height: 17px; background: none; }
.net-stack .net-ico .net-logo { width: 15px; height: 15px; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-head .month { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; min-width: 150px; margin: 0 0 0 6px; color: var(--ink); }
.cal-meta { margin-left: auto; font-size: 12.5px; color: var(--ink-2); }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar .dow { padding: 0 8px; font-size: 12px; color: var(--ink-muted); font-weight: 500; }
.day { position: relative; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); min-height: 118px; padding: 8px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; min-width: 0; }
.day-add { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 8px; border: 0; background: var(--surface-3); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.day-add svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.day:hover .day-add, .day-add:focus-visible { opacity: 1; }
.day-add:hover { color: var(--ink); background: var(--accent-wash); }
@media (hover: none) { .day-add { opacity: 1; } }
.day:hover { border-color: var(--border-strong); }
.day.other { background: transparent; }
.day.other .date { color: var(--ink-muted); }
.day.past { cursor: default; }
.day.past:hover { border-color: var(--border); }
.day .date { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.day.today { border-color: var(--accent-line); }
.day.today .date { color: var(--on-accent); background: var(--accent-strong); border-radius: 999px; padding: 0 8px; align-self: flex-start; }
.chip { display: flex; align-items: flex-start; gap: 6px; width: 100%; border: 0; text-align: left; padding: 4px 8px; border-radius: 9px; background: var(--surface-2); font-size: 12px; cursor: pointer; min-width: 0; }
.chip:hover { background: var(--surface-3); }
.chip .t { font-variant-numeric: tabular-nums; color: var(--ink-2); flex: none; }
.chip .x { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; overflow-wrap: anywhere; }
.chip .nets { display: flex; flex-wrap: wrap; gap: 2px; max-width: 37px; margin-top: 3px; }
.chip .nets .net-logo { width: 11px; height: 11px; }
.chip .nets .demo { width: 15px; height: 15px; }
.chip .status { flex: none; }
.chip .status::before { margin: 0; }
.chip .status { margin-top: 4px; }
.more { font-size: 12px; color: var(--ink-2); padding: 0 6px; }
.day .chips { display: grid; gap: 4px; }
@media (max-width: 760px) {
  .calendar { gap: 3px; }
  .calendar .dow { padding: 0 2px; font-size: 11px; }
  .day { min-height: 64px; padding: 4px; border-radius: 8px; }
  .chip .t, .chip .x { display: none; }
  .chip { width: auto; padding: 4px; }
  .day-add { display: none; }
  .more-word { display: none; }
  .day .chips { display: flex; flex-wrap: wrap; gap: 3px; }
}

/* ---------- post list ---------- */
.post-list { display: grid; gap: 8px; }
.post-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; text-align: left; width: 100%; }
.post-row:hover { border-color: var(--border-strong); }
.post-row .when { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.post-row .text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.post-row .targets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 600px) { .post-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.acct-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); }
.swatch { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.section-title { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 22px 0 10px; display: flex; gap: 8px; align-items: center; }
.section-title:first-child { margin-top: 0; }
.section-title .n { padding: 0 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.empty-line { margin: 0; padding: 4px 2px; }

/* ---------- home ---------- */
.row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.row > * { min-width: 0; }
.row .grow-1 { flex: 1 1 320px; }
.row .grow-13 { flex: 1.5 1 440px; }
.side-stack { display: grid; gap: 14px; align-content: start; }
.side-stack .card-head { margin-bottom: 10px; }
.more-link { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 500; color: var(--accent-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

.attention { margin-bottom: 14px; border-color: var(--critical-line); background: linear-gradient(var(--critical-wash), var(--critical-wash)) , var(--surface-1); }
.attn-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--critical); display: grid; place-items: center; flex: none; }
.attn-mark svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.attn-list { display: grid; gap: 8px; }
.attention .card-head .sub { color: var(--ink-2); }
.attn-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-1); }
.attn-row .q-title span { color: var(--critical-ink); white-space: normal; }

.queue { display: grid; gap: 8px; }
.q-feature { padding: 14px; border-radius: 16px; background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 1px var(--accent-line); display: grid; gap: 12px; text-align: left; cursor: pointer; width: 100%; transition: background-color 0.15s; }
.q-feature:hover { background: var(--surface-3); }
.q-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.q-title { flex: 1; min-width: 0; display: grid; text-align: left; }
.q-title b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-title span { font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.q-facts span { display: grid; font-size: 12.5px; min-width: 0; }
.q-facts small { font-size: 11.5px; color: var(--ink-muted); }
.q-facts em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--accent-wash); color: var(--accent-ink); font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.when-pill svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.q-row, .recent-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 0; text-align: left; cursor: pointer; width: 100%; color: inherit; transition: background-color 0.15s; }
.q-row:hover, .recent-row:hover { background: var(--surface-3); }
.q-row .when { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-empty { padding: 26px 16px; border-radius: 16px; background: var(--surface-2); text-align: center; color: var(--ink-2); display: grid; gap: 8px; justify-items: center; }
.q-empty b { color: var(--ink); font-weight: 600; }

.slot-list { display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--accent-line); background: transparent; text-align: left; cursor: pointer; color: inherit; transition: background-color 0.15s, border-color 0.15s; }
.slot:hover { background: var(--accent-wash); border-style: solid; }
.slot-when { font-weight: 600; font-variant-numeric: tabular-nums; }
.slot-why { grid-row: 2; font-size: 12px; color: var(--ink-muted); }
.slot svg { grid-row: 1 / span 2; grid-column: 2; width: 16px; height: 16px; fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; }

.stats-strip { margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 0; margin: 0; }
.stat { padding: 4px 18px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt { font-size: 12.5px; color: var(--ink-2); }
.stat dd { margin: 6px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stat .v { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .stat, .stat:first-child { border-left: 0; padding: 0; }
}

.recent-list { display: grid; gap: 8px; }
.recent-row .metric { display: grid; justify-items: end; min-width: 72px; }
.recent-row .metric b { font-weight: 600; font-variant-numeric: tabular-nums; }
.recent-row .metric small { font-size: 11.5px; color: var(--ink-muted); }
@media (max-width: 600px) { .recent-row .metric:nth-last-child(2) { display: none; } }

/* ---------- modal / composer ---------- */
.modal { border: 1px solid var(--border-strong); border-radius: 24px; padding: 0; width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--surface-1); color: var(--ink); box-shadow: var(--shadow-pop); }
.modal::backdrop { background: rgba(5, 6, 10, 0.6); backdrop-filter: blur(2px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: space-between; gap: 8px; padding: 16px 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-foot .right { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.foot-hint { margin: 0; align-self: center; font-size: 12.5px; color: var(--warning); flex: 1 1 200px; text-align: right; }
.foot-hint:empty { display: none; }
.modal.confirm { width: min(440px, calc(100vw - 32px)); }
.modal.confirm .modal-body p { margin: 0; }
.acct-picker { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.acct-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); cursor: pointer; font-size: 13px; }
.acct-toggle[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-ink); }
.acct-toggle:disabled { opacity: 0.5; cursor: not-allowed; text-decoration: line-through; text-decoration-color: var(--ink-muted); }
.counters { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px; font-size: 12px; color: var(--ink-2); }
.counters .over { color: var(--critical-ink); font-weight: 600; }
.when-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.target-list { display: grid; gap: 8px; margin-top: 12px; }
.target { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.target .err { grid-column: 1 / -1; color: var(--critical-ink); font-size: 12px; }
.target .metrics { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); display: flex; gap: 12px; flex-wrap: wrap; }
.preview-text { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); padding: 12px 14px; border-radius: var(--radius-sm); }
.error-box { color: var(--critical-ink); background: var(--critical-wash); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }

/* ---------- analytics ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; margin-bottom: 14px; }
.tile { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.tile .k { font-size: 12.5px; color: var(--ink-2); }
.tile .v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .d { font-size: 12px; margin-top: 4px; color: var(--ink-2); }
.tile .d.up { color: var(--good-ink); }
.tile .d.down { color: var(--critical-ink); }
.chart-card { min-width: 0; }
.chart-card .sub { font-size: 12.5px; color: var(--ink-muted); margin: -8px 0 12px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .tick { font-size: 11px; fill: var(--ink-muted); font-variant-numeric: tabular-nums; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .crosshair { stroke: var(--axis); stroke-width: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.tooltip { position: absolute; pointer-events: none; z-index: 5; background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 12px; padding: 8px 12px; font-size: 12px; box-shadow: var(--shadow-pop); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.tooltip .tt-title { font-weight: 600; margin-bottom: 4px; }
.tooltip .tt-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.tooltip .tt-row span:first-child { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.tooltip .tt-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.heatmap { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; position: relative; }
.heatmap .hl { font-size: 11px; color: var(--ink-muted); display: flex; align-items: center; }
.heatmap .hh { font-size: 11px; color: var(--ink-muted); text-align: center; font-variant-numeric: tabular-nums; }
.heatmap .cell { aspect-ratio: 1; border-radius: 4px; background: var(--heat-0); min-height: 10px; }
.heat-scale { display: flex; gap: 4px; align-items: center; font-size: 11px; color: var(--ink-muted); margin-top: 10px; }
.heat-scale i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.best { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; align-items: center; }
.best span { background: var(--surface-2); border-radius: 999px; padding: 5px 12px; color: var(--ink-2); }
details.table-view { margin-top: 10px; font-size: 12px; }
details.table-view summary { cursor: pointer; color: var(--ink-2); }
.table-wrap { overflow-x: auto; position: relative; } /* also clips .sr-only labels inside the table */
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-size: 12px; color: var(--ink-muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.textcell { min-width: 220px; max-width: 420px; }
table.data th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
table.data th button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
table.data th button:focus-visible { outline: 2px solid var(--accent); }

/* ---------- accounts & links ---------- */
.acct-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.acct-card.broken { border-color: var(--critical-line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); object-fit: cover; }
.avatar.net-ico .net-logo { width: 22px; height: 22px; }
.avatar.net-ico .demo { width: 34px; height: 34px; }
.avatar-net { position: relative; width: 44px; height: 44px; }
.avatar-net .net-logo { position: absolute; right: -4px; bottom: -3px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--surface-1); box-shadow: 0 0 0 1px var(--border); }
.acct-main { min-width: 0; display: grid; gap: 2px; }
.acct-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.acct-facts { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.acct-facts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.acct-facts .up { color: var(--good-ink); }
.acct-facts .down { color: var(--critical-ink); }
.acct-error { color: var(--critical-ink); margin-top: 4px; }
.provider-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.btn-rows { display: grid; gap: 8px; margin-bottom: 12px; }
.btn-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 6px; align-items: center; }
.btn-row input { width: 100%; }
.btn-row .ops { display: flex; gap: 2px; }
@media (max-width: 600px) { .btn-row { grid-template-columns: 1fr; } }
.link-stats { display: flex; gap: 18px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; align-items: baseline; }
.link-stats b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-right: 2px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--light-btn); color: var(--on-light-btn); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-pop); font-size: 13px; font-weight: 500; }
.toast.error { background: var(--critical); color: #fff; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- media & per-network options ---------- */
.media-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.media-thumb { position: relative; width: 104px; height: 104px; border-radius: 12px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); flex: none; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb .tag { position: absolute; left: 6px; top: 6px; font-size: 11px; background: rgba(0, 0, 0, 0.6); color: #fff; padding: 1px 6px; border-radius: 6px; }
.media-thumb .progress { position: absolute; left: 6px; right: 6px; bottom: 34px; height: 4px; background: rgba(255, 255, 255, 0.5); border-radius: 2px; overflow: hidden; }
.media-thumb .progress i { display: block; height: 100%; background: var(--accent); width: 0; }
.media-thumb .err { position: absolute; inset: 0 0 30px 0; background: color-mix(in srgb, var(--critical) 85%, black); color: #fff; font-size: 11px; padding: 26px 6px 6px; overflow: auto; }
.media-thumb.bad { border-color: var(--critical); }
.media-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: #fff; }
.media-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.media-open .zoom { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.15s; }
.media-open:hover .zoom, .media-open:focus-visible .zoom { opacity: 1; }
.media-open .zoom svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .media-open .zoom { opacity: 1; } }

/* ---------- text per network ---------- */
.text-box { display: grid; gap: 8px; }
.text-tabs { position: relative; /* clips .sr-only labels */ justify-self: start; background: var(--surface-2); }
.text-tabs button[aria-pressed="true"] { background: var(--surface-1); color: var(--ink); box-shadow: 0 0 0 1px var(--accent); }
@media (max-width: 600px) {
  /* Every network fits: only the open one shows its name. */
  .text-tabs button { padding: 0 11px; }
  .text-tabs button[aria-pressed="false"] .name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .text-tabs .net-logo { width: 17px; height: 17px; }
}
.own-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.text-hint { margin: 6px 0 0; }
.text-hint:empty { display: none; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.preview-text + .preview-text { margin-top: 8px; }
.preview-nets { display: flex; gap: 4px; margin-bottom: 6px; }
.preview-nets .net-ico { width: auto; height: auto; background: none; }
.preview-nets .net-logo { width: 16px; height: 16px; }

/* ---------- video cover ---------- */
.cover-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cover-thumb { width: 45px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; flex: none; }
.cover-thumb img, .cover-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-thumb svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cover-about { display: grid; gap: 1px; flex: 1 1 160px; min-width: 0; }
.cover-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.modal.cover { width: min(560px, calc(100vw - 32px)); }
.cover .segmented { margin-bottom: 14px; background: var(--surface-2); max-width: 100%; }
.cover .hint { margin: 10px 0; }
.cover .hint:empty { display: none; }
.cover-stage { display: flex; justify-content: center; background: #000; border-radius: 12px; overflow: hidden; }
.cover-stage video { display: block; max-width: 100%; height: min(44vh, 420px); object-fit: contain; }
.cover-frame.second .cover-stage video { height: min(24vh, 220px); }
.cover-slider { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.cover-slider input { flex: 1; min-width: 0; accent-color: var(--accent); }
.cover-time { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 52px; text-align: right; }
.cover-image { display: grid; gap: 10px; justify-items: start; }
.cover-image img { max-width: 100%; max-height: min(24vh, 220px); border-radius: 12px; display: block; }

/* ---------- full-size media viewer ---------- */
.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: transparent; color: #fff; }
.viewer::backdrop { background: rgba(5, 6, 10, 0.92); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.viewer-head .btn { color: #fff; }
.viewer-caption { font-size: 13px; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-body { flex: 1; min-height: 0; display: flex; align-items: center; gap: 8px; padding: 0 8px 16px; }
.viewer-stage { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #000; }
.viewer-nav { flex: none; color: #fff; width: 44px; height: 44px; padding: 0; justify-content: center; }
.viewer-nav svg { width: 22px; height: 22px; }
@media (max-width: 600px) {
  .viewer-body { position: relative; padding: 0 0 12px; }
  .viewer-nav { position: absolute; z-index: 1; background: rgba(0, 0, 0, 0.45); border-radius: 999px; }
  .viewer-nav.prev { left: 6px; }
  .viewer-nav.next { right: 6px; }
}
.media-thumb .ops { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 2px; background: var(--surface-1); border-top: 1px solid var(--border); }
.media-thumb .ops .btn { min-height: 26px; padding: 0 8px; }
.media-add { width: 104px; height: 104px; border-radius: 12px; border: 1.5px dashed var(--border-strong); background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-content: center; gap: 2px; font-size: 12px; text-align: center; padding: 8px; }
.media-add svg { width: 22px; height: 22px; margin: 0 auto 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.media-add:hover { border-color: var(--accent); color: var(--accent-ink); }
form.dropping { outline: 2px dashed var(--accent); outline-offset: -6px; }
.net-options { display: grid; gap: 10px; margin-bottom: 12px; }
fieldset.net { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px 14px; margin: 0; min-width: 0; }
fieldset.net legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
fieldset.net .field { margin-bottom: 10px; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 12px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 4px 0; }
.check input { accent-color: var(--accent); }
.checks-row { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-bottom: 6px; }
.indent { margin: 0 0 6px 26px; }
.consent { color: var(--ink-2); margin: 8px 0 4px; }
.checks { display: grid; gap: 4px; margin: 0 0 14px; font-size: 12px; color: var(--ink-2); }
.check-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.check-row b { color: var(--ink); font-weight: 600; }
.check-row .over { color: var(--critical-ink); font-weight: 600; }
.checks .problem { color: var(--critical-ink); padding-left: 2px; }
.checks .problem::before { content: '• '; }
.checks .notice { padding-left: 2px; }
.checks .notice::before { content: '• '; }
.status.processing::before { background: var(--accent); animation: pulse 1s infinite alternate; }
@media (prefers-reduced-motion: reduce) { .status.processing::before { animation: none; } }

/* ---------- connect / login ---------- */
.net-row { padding: 12px 0; border-top: 1px solid var(--border); }
.net-row:first-of-type { border-top: 0; padding-top: 4px; }
.net-row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.net-row .hint { margin: 4px 0 6px; }
.note-box { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin: 6px 0 0; display: grid; gap: 6px; }
.note-box .redirect { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.note-box code, pre.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; background: var(--surface-1); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }
pre.code { padding: 8px 10px; white-space: pre-wrap; }
.inline-form { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 140px; }
.inline-form .check { margin: 0 4px; }
.inline-form .check input { flex: none; min-width: 0; }
.danger-zone { border-color: var(--critical-line); }
.settings-note { margin: 10px 0 0; }
.people { list-style: none; margin: 0 0 12px; padding: 0; display: grid; }
.people li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.people li:last-child { border-bottom: 0; }
.people .t { flex: 1; min-width: 0; display: grid; overflow-wrap: anywhere; }
.people .ops, .users-table .ops { display: flex; flex-wrap: wrap; gap: 2px; }
.users-table td { vertical-align: middle; }
.acct-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(400px, 100%); padding: 28px; border-radius: 24px; }
.login-card .logo { margin: 0 0 18px; padding: 0; }
.login-card .btn { width: 100%; }
.login-card .btn.primary { margin-top: 4px; }
.login-card .btn.google { margin-bottom: 4px; }
.login-card .btn.google .g-logo { width: 18px; height: 18px; stroke: none; }
.login-card .or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--ink-muted); font-size: 12.5px; }
.login-card .or::before, .login-card .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-card .login-title { font-size: 20px; margin: 0 0 6px; }
.login-card .login-note { margin: 12px 0 0; }

/* ---------- phone: give post titles the full width ---------- */
@media (max-width: 600px) {
  /* Logos sit next to the date, small, so the title keeps the full width. */
  .q-row > .net-ico, .q-row > .net-stack, .q-top > .net-ico, .q-top > .net-stack { order: 1; }
  .q-row > .when, .q-top > .when-pill { order: 2; }
  .q-row > .net-ico, .q-top > .net-ico, .recent-row > .net-ico { width: 24px; height: 24px; }
  .q-row > .net-ico .net-logo, .q-top > .net-ico .net-logo, .recent-row > .net-ico .net-logo { width: 14px; height: 14px; }
  .q-row > .net-ico .demo, .q-top > .net-ico .demo, .recent-row > .net-ico .demo { width: 20px; height: 20px; }
  .q-row > .net-stack, .q-top > .net-stack { width: auto; min-height: 0; }
  .q-row { flex-wrap: wrap; row-gap: 2px; }
  .q-row .q-title { flex-basis: 100%; }
  .q-row .when { font-size: 12px; }
  .q-top { flex-wrap: wrap; }
  .q-top .q-title { flex-basis: 100%; }
  .attn-row { flex-wrap: wrap; }
  .attn-row .q-title { flex: 1 1 calc(100% - 50px); }
  .attn-row .btn { width: 100%; }
  .recent-row .metric { min-width: 0; }
}

/* ----- approvals and agents ----- */
.status.review::before { background: var(--warning); }
.approval { margin-bottom: 14px; border-color: var(--accent-line); background: linear-gradient(var(--accent-wash), var(--accent-wash)), var(--surface-1); }
.approval .card-head .sub { color: var(--ink-2); }
.approval .attn-row .q-title span { color: var(--ink-2); }
.appr-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.appr-mark svg { width: 17px; height: 17px; fill: none; stroke: var(--on-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.review-box { background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.review-box p { margin: 0; }
.review-box .row { display: flex; align-items: center; gap: 12px; }
.review-box .row p { flex: 1; }
.review-box .row .btn { flex: none; }
.send-back { display: grid; gap: 8px; margin-top: 10px; }
.send-back textarea { min-height: 0; }
.send-back .row { justify-content: flex-end; }
.agent-form select { flex: none; }
@media (max-width: 640px) {
  .review-box .row { flex-wrap: wrap; }
  .agent-form select, .agent-form .btn { flex: 1 1 100%; }
}
