/* ==========================================================================
   Facebook Video Agent — interface system
   Type:  Instrument Sans (UI)  ·  DM Mono (numbers, paths, logs)
   Color: blue-tinted neutrals + a single blue accent
   Space: base-8 grid
   ========================================================================== */

:root {
  /* Neutrals — tinted toward the brand hue, never flat gray */
  --ink-900: #12141d;
  --ink-800: #1a1d28;
  --ink-700: #242836;
  --ink-600: #343a4d;
  --text: #1b1e29;
  --text-soft: #565d72;
  --text-faint: #838a9e;
  --canvas: #f5f6f9;
  --surface: #fdfdfe;
  --line: #e3e5ed;
  --line-soft: #edeff4;

  /* Accent — used only for primary actions, active nav, links */
  --accent: #2f5cf6;
  --accent-dark: #2247cc;
  --accent-wash: #eef2ff;

  --good: #16855c;
  --good-wash: #e6f5ee;
  --warn: #a96a12;
  --warn-wash: #fdf3e2;
  --bad: #cf3a3a;
  --bad-wash: #fdeceb;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(18, 20, 29, 0.06);
  --shadow-md: 0 4px 16px rgba(18, 20, 29, 0.08);

  --sidebar-w: 248px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Instrument Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, .mono {
  font-family: 'DM Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.88em;
}

code {
  background: var(--line-soft);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--ink-700);
}

.muted { color: var(--text-soft); font-size: 14px; }
.faint { color: var(--text-faint); }

/* ── App shell ─────────────────────────────────────────────────────────── */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--ink-900);
  color: #c9cddb;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  padding: 0 32px 28px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow-wrap: anywhere;   /* long business names wrap instead of spilling */
}
.sidebar .brand .mark {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.nav-label {
  padding: 0 24px;
  margin: 20px 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666e85;
}

.sidebar nav { display: flex; flex-direction: column; gap: 2px; }

.sidebar nav a {
  display: block;
  /* Extra room on the right so a truncated Page name's ellipsis is not
     flush against the sidebar edge. */
  padding: 9px 32px 9px 24px;
  color: #c9cddb;
  font-size: 14px;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: background 0.14s ease, color 0.14s ease;
}
.sidebar nav a:hover { background: var(--ink-800); color: #fff; text-decoration: none; }
.sidebar nav a.active {
  background: var(--ink-800);
  color: #fff;
  border-left-color: var(--accent);
}

.sidebar-foot {
  margin-top: auto;
  padding: 20px 32px 0 24px;
  border-top: 1px solid var(--ink-700);
}
.sidebar-foot .who {
  font-size: 13px;
  color: #98a0b5;
  margin-bottom: 10px;
  word-break: break-all;
}

.main { flex: 1; min-width: 0; }

.page {
  max-width: 1120px;
  padding: 36px 40px 72px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.page-head p { margin: 6px 0 0; color: var(--text-soft); font-size: 14px; max-width: 62ch; }

/* ── Plain top bar (client dashboard, login pages) ─────────────────────── */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar .brand { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.topbar .brand span { color: var(--accent); }
.topbar nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.topbar nav a { color: var(--text-soft); }
.topbar nav a:hover { color: var(--text); }

.container { max-width: 940px; margin: 0 auto; padding: 32px 24px 64px; }

/* ── Surfaces ──────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.card > h2 { margin-bottom: 4px; }
.card > h2 + .muted { margin-top: 0; margin-bottom: 16px; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.card-head h2 { margin: 0; }

/* ── Stats ─────────────────────────────────────────────────────────────── */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-tile .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.stat-tile .value {
  font-family: 'DM Mono', monospace;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat-tile .foot { font-size: 13px; color: var(--text-soft); margin-top: 8px; }
.stat-tile.is-accent .value { color: var(--accent); }

.stat-tile-link {
  display: block;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.08s ease, border-color 0.15s ease;
}
.stat-tile-link:hover { text-decoration: none; box-shadow: var(--shadow-md); border-color: #c9d3f5; }
.stat-tile-link:active { transform: scale(0.99); }
.stat-tile.is-good .value { color: var(--good); }
.stat-tile.is-bad .value { color: var(--bad); }

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

label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  color: var(--text);
  margin: 18px 0 6px;
}
label.inline { display: flex; align-items: center; gap: 8px; font-weight: 500; }

input[type="text"], input[type="email"], input[type="password"],
input[type="file"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 92, 246, 0.14);
}
input:disabled, textarea:disabled {
  background: var(--line-soft);
  color: var(--text-faint);
  cursor: not-allowed;
}
textarea { resize: vertical; }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }

.form-hint { font-size: 13px; color: var(--text-soft); margin-top: 6px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 9px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background 0.14s ease, transform 0.08s ease, box-shadow 0.14s ease;
}
button:hover, .btn:hover { background: var(--accent-dark); text-decoration: none; }
button:active, .btn:active { transform: scale(0.975); }
button:focus-visible, .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 92, 246, 0.3);
}
button:disabled {
  background: var(--line-soft);
  color: var(--text-faint);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--canvas); border-color: #d3d7e2; }

.btn-danger { background: var(--bad); }
.btn-danger:hover { background: #b32f2f; }
.btn-warning { background: var(--warn); }
.btn-warning:hover { background: #8e5810; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.btn-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.btn-row form { display: inline; }

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-active, .badge-published { background: var(--good-wash); color: var(--good); }
.badge-paused { background: var(--line-soft); color: var(--text-soft); }
.badge-pending { background: var(--warn-wash); color: var(--warn); }
.badge-failed { background: var(--bad-wash); color: var(--bad); }

/* ── Flash messages ────────────────────────────────────────────────────── */

.flash {
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid transparent;
}
.flash-success { background: var(--good-wash); color: #0d5c40; border-color: #bfe3d3; }
.flash-error { background: var(--bad-wash); color: #932626; border-color: #f4cbc8; }

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

.table-wrap { overflow-x: auto; margin: 0 -4px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  padding: 0 14px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
tbody tr { transition: background 0.12s ease; }
tbody tr:hover { background: var(--canvas); }
tbody tr:last-child td { border-bottom: none; }
td .sub { display: block; font-size: 13px; color: var(--text-soft); margin-top: 2px; }

/* ── Definition rows (profile / settings) ──────────────────────────────── */

.rows { display: flex; flex-direction: column; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.row:last-child { border-bottom: none; }
.row dt { color: var(--text-soft); flex-shrink: 0; margin: 0; }
.row dd {
  margin: 0;
  text-align: right;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}

/* ── Empty states ──────────────────────────────────────────────────────── */

.empty {
  text-align: center;
  padding: 44px 24px;
  color: var(--text-soft);
}
.empty strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }

/* ── Log output ────────────────────────────────────────────────────────── */

.logbox {
  background: var(--ink-900);
  color: #c4cad9;
  padding: 16px;
  border-radius: var(--r-md);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-height: 340px;
  overflow-y: auto;
}

/* ══ Auth screens ═══════════════════════════════════════════════════════
   A warm, self-contained entry screen: sign-in form beside an illustrated
   panel. No JavaScript, so it works under a strict script-src 'self'.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --warm-bg: #f3ece1;
  --warm-bg-2: #e8ddcb;
  --cream: #fffdf8;
  --gold: #f2c744;
  --gold-dark: #dcae26;
}

.auth-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(1100px 620px at 78% 18%, #fbf4e6 0%, rgba(251, 244, 230, 0) 60%),
    linear-gradient(150deg, var(--warm-bg) 0%, var(--warm-bg-2) 100%);
  overflow: hidden;
}

.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  background: var(--cream);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(70, 60, 45, 0.2), 0 2px 8px rgba(70, 60, 45, 0.06);
  animation: auth-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.auth-form { padding: 52px 52px 44px; }
.auth-form .mark {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a8a6e;
  margin-bottom: 30px;
}
.auth-form h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: #241f18;
}
.auth-form .sub { color: #7d7261; font-size: 14px; margin: 0 0 22px; }

.auth-form label {
  font-size: 12px;
  font-weight: 600;
  color: #6f6555;
  letter-spacing: 0.02em;
  margin: 16px 0 6px;
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  background: #f7f2e8;
  border: 1px solid #e7ddcb;
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 14px;
  color: #241f18;
}
.auth-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 199, 68, 0.25);
  background: #fffdf8;
}

.auth-submit {
  width: 100%;
  margin-top: 26px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--gold);
  color: #3a2f12;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(242, 199, 68, 0.4);
}
.auth-submit:hover { background: var(--gold-dark); }

/* Secondary action under the primary button */
.auth-secondary {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 20px;
  border: 1px solid #e7ddcb;
  border-radius: 12px;
  background: transparent;
  color: #6f6555;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.auth-secondary:hover {
  background: #f7f2e8;
  border-color: #d9cdb6;
  color: #3a3226;
  text-decoration: none;
}

.auth-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #efe7d9;
  font-size: 13px;
  color: #8a7f6d;
}
.auth-foot a { color: #5d5343; font-weight: 600; }

.auth-error {
  background: #fdeceb;
  border: 1px solid #f4cbc8;
  color: #93261f;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 4px;
}

/* ── Illustrated side panel ────────────────────────────────────────────── */

.auth-visual {
  position: relative;
  margin: 14px 14px 14px 0;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(520px 320px at 20% 12%, #6e7f93 0%, rgba(110, 127, 147, 0) 62%),
    linear-gradient(155deg, #55637a 0%, #33404f 55%, #262f3b 100%);
  min-height: 430px;
  padding: 26px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* soft light sweep */
.auth-visual::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -30%;
  height: 70%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  transform: rotate(-11deg);
}

.auth-visual .headline {
  position: relative;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: -0.015em;
  max-width: 17ch;
}
.auth-visual .headline span { color: var(--gold); }
.auth-visual .byline {
  position: relative;
  margin-top: 10px;
  font-size: 13.5px;
  color: #c2cbd8;
  max-width: 30ch;
}

/* floating product cards, echoing the reference layout */
.float {
  position: absolute;
  background: var(--cream);
  color: #241f18;
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow: 0 14px 30px rgba(20, 26, 34, 0.3);
  font-size: 12.5px;
  line-height: 1.35;
}
.float .t {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a8a6e;
  margin-bottom: 3px;
}
.float strong { font-weight: 650; }

.float-a { top: 26px; left: 26px; }
.float-b { top: 104px; right: 24px; background: var(--gold); }
.float-b .t { color: #7a641a; }
.float-c { top: 196px; left: 44px; display: flex; align-items: center; gap: 10px; }

.play-badge {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #241f18;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.play-badge::after {
  content: '';
  width: 0; height: 0;
  margin-left: 2px;
  border-left: 9px solid var(--gold);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

@media (max-width: 880px) {
  .auth-card { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .auth-visual { display: none; }
  .auth-form { padding: 38px 30px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
}

/* ── Sidebar Page switcher (client) ────────────────────────────────────── */

.nav-page {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 32px 9px 24px;
  color: #c9cddb;
  font-size: 14px;
  border-left: 2px solid transparent;
  transition: background 0.14s ease, color 0.14s ease;
  /* Flex items default to min-width:auto and refuse to shrink below their
     content, which pushes long Page names outside the sidebar. */
  min-width: 0;
  overflow: hidden;
}
.nav-page:hover { background: var(--ink-800); color: #fff; text-decoration: none; }
.nav-page.active { background: var(--ink-800); color: #fff; border-left-color: var(--accent); }
.nav-page .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #4b5268;
}
.nav-page .dot.on { background: #34c98a; }
.nav-page .name {
  flex: 1 1 auto;
  min-width: 0;          /* lets the ellipsis actually take effect */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Two-column working layout ─────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.split > * { min-width: 0; }

/* Actions that live in the page header, so they need no scrolling */
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.head-actions form { display: inline; }

/* A compact banner for the single most important thing on screen */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  margin-bottom: 20px;
}
.notice .k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.notice.warn { background: var(--warn-wash); border-color: #f0dcb8; }
.notice.warn .k { color: var(--warn); }
.notice.bad { background: var(--bad-wash); border-color: #f4cbc8; }
.notice.bad .k { color: var(--bad); }

/* Compact key/value strip for at-a-glance facts */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 14px 0 0;
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.facts div { font-size: 13px; }
.facts dt { color: var(--text-faint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 3px; }
.facts dd { margin: 0; font-family: 'DM Mono', monospace; font-size: 13px; }

/* File list */
.filelist { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.filelist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.filelist li:last-child { border-bottom: none; }
.filelist .pos {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
  flex-shrink: 0;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 16px 0 0;
  }
  .sidebar .brand { padding: 0 20px 14px; }
  .nav-label { display: none; }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    padding: 0 12px;
    border-top: 1px solid var(--ink-700);
  }
  .sidebar nav a {
    padding: 12px 14px;
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .sidebar nav a.active { border-left: none; border-bottom-color: var(--accent); }
  /* The row scrolls sideways here, so Page names keep their full width
     rather than being truncated as they are in the vertical sidebar. */
  .nav-page { min-width: auto; overflow: visible; flex-shrink: 0; }
  .nav-page .name { overflow: visible; text-overflow: clip; }
  .sidebar-foot {
    margin-top: 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .sidebar-foot .who { margin-bottom: 0; }
  .page { padding: 24px 20px 56px; }
  .row { flex-direction: column; gap: 2px; }
  .row dd { text-align: left; }
}

/* ── Daily post bar chart (client stats) ────────────────────────────────── */

.barchart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding-top: 20px;
  overflow-x: auto;
}
.barchart .col {
  flex: 1 1 0;
  min-width: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.barchart .count {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 4px;
  height: 14px;
}
.barchart .col.has-posts .count { color: var(--accent); font-weight: 600; }
.barchart .bar {
  width: 100%;
  max-width: 26px;
  min-height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--line);
  transition: background 0.15s ease;
}
.barchart .col.has-posts .bar { background: var(--accent); }
.barchart .col.is-today .bar { background: var(--good); }
.barchart .day-label {
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-faint);
  white-space: nowrap;
}

.notice.info { background: var(--accent-wash); border-color: #c9d6fb; }
.notice.info .k { color: var(--accent-dark); }
