/* Content CMS — one stylesheet. Part of the hyper suite (see app/CLAUDE.md).
 *
 * Two token layers:
 *   SUITE — identical in every suite app (hyper-armstrong Outreach CRM, this CMS).
 *           Change them in all apps or none.
 *   APP   — this app's identity: its accent and its domain colours.
 */

:root {
  /* ---- SUITE: neutrals, shape, type (keep in sync across apps) ---- */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --ink: #0f172a;            /* primary actions */
  --ink-hover: #1e293b;
  --green: #047857;
  --green-soft: #ecfdf5;
  --green-line: #a7f3d0;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --amber-line: #fde68a;
  --red: #be123c;
  --red-soft: #fff1f2;
  --red-line: #fecdd3;
  --blue: #0369a1;
  --blue-soft: #f0f9ff;
  --blue-line: #bae6fd;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 24px -12px rgba(15, 23, 42, 0.25);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sidebar: 248px;

  /* ---- APP: Content CMS identity ---- */
  --accent: #4338ca;         /* brand mark, active nav, links, tabs, focus */
  --accent-hover: #3730a3;
  --accent-soft: #eef2ff;
  --accent-line: var(--accent-line);

  --p-linkedin: #0a66c2;
  --p-youtube: #d92d20;
  --p-instagram: #c11574;
  --p-x: #0f172a;
  --p-reddit: #dc4a14;
  --p-none: #94a3b8;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 22px;
  padding: 20px 14px 16px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff; font-weight: 700; font-size: 15px;
}
.brand-name { display: block; font-weight: 650; letter-spacing: -0.01em; }
.brand-sub { display: block; color: var(--muted); font-size: 11.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  margin: 14px 10px 6px; color: var(--faint);
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase;
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500;
}
.nav-link svg { width: 17px; height: 17px; color: var(--faint); flex: none; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-link.is-active svg { color: var(--accent); }
.nav-count {
  margin-left: auto; min-width: 20px; padding: 1px 6px;
  border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--muted);
  font-size: 11px; text-align: center; font-variant-numeric: tabular-nums;
}
.nav-count.is-warn { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }
.nav-count.is-quiet { color: var(--muted); }
.suite { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.suite .nav-label { margin-top: 0; }
.suite-link {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px;
  border-radius: var(--radius-sm); color: var(--text-2); font-size: 13px; font-weight: 500;
}
.suite-link:hover { background: var(--surface-2); color: var(--text); }
.suite-link.is-current { color: var(--text); font-weight: 600; }
.suite-mark {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 700;
}
.suite-link.is-current .suite-mark { background: var(--accent); color: #fff; }
.suite + .sidebar-foot { margin-top: 0; }
.sidebar-foot {
  margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--border);
  color: var(--faint); font-size: 11.5px; display: flex; flex-direction: column; gap: 2px;
  line-height: 1.5;
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 32px; background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.topbar-title h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.topbar-sub { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.content { padding: 26px 32px 56px; max-width: 1440px; width: 100%; display: flex; flex-direction: column; gap: 16px; }

/* ---------- atoms ---------- */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }
.row-gap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.label {
  display: block; color: var(--faint); font-size: 10.5px; font-weight: 650;
  letter-spacing: 0.07em; text-transform: uppercase;
}
.tag {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); font-size: 11.5px;
}
.flag {
  display: inline-flex; padding: 2px 7px; border-radius: 6px;
  background: var(--amber-soft); color: var(--amber); font-size: 11.5px;
  border: 1px solid var(--amber-line);
}
.center { display: flex; justify-content: center; padding: 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 13px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--surface); cursor: pointer; font-weight: 550; font-size: 13px;
  white-space: nowrap; transition: background 120ms, border-color 120ms, transform 80ms;
}
.btn svg { width: 14px; height: 14px; }
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-secondary { border-color: var(--border); color: var(--text-2); background: var(--surface); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.btn-danger:hover { background: #ffe4e6; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-xs { padding: 4px 8px; font-size: 11.5px; border-radius: 7px; }
.icon-btn {
  width: 30px; height: 30px; display: inline-grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); cursor: pointer; font-size: 17px; line-height: 1;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.status-draft { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.status-ready { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.status-scheduled { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.status-published { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.status-killed { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.media-present { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.media-drive-only { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.media-missing { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.badge-format { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.badge-warn { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }

/* platform colours */
.p-linkedin { --chip: var(--p-linkedin); }
.p-youtube { --chip: var(--p-youtube); }
.p-instagram { --chip: var(--p-instagram); }
.p-x { --chip: var(--p-x); }
.p-reddit { --chip: var(--p-reddit); }
.p-none { --chip: var(--p-none); }
.plat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.plat::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--chip, var(--p-none)); }

/* cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.card-head h2 { font-size: 13.5px; font-weight: 650; letter-spacing: -0.01em; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.stat-strip {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px;
}
.stat-num { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 11.5px; }

/* lists */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 2px; border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover .list-title { color: var(--accent); }
.list-main { display: flex; flex-direction: column; min-width: 0; }
.list-title { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-sub { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card > .list { padding: 4px 16px; }

/* empty */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 16px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.empty-title { font-weight: 600; }
.empty-body { color: var(--muted); font-size: 12.5px; max-width: 46ch; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { color: var(--muted); font-size: 12px; font-weight: 550; }
.field input, .field select, .field textarea, .filter-menu input, .filter-menu select, .search input,
.bulk-actions select, .bulk-actions input {
  width: 100%; padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 13px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; font-family: var(--font); }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; gap: 8px; align-items: center; }

/* filter bar */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
}
.search { flex: 1 1 240px; }
.search input { width: 100%; }
.filter-groups { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-group { position: relative; }
.filter-group > summary {
  list-style: none; cursor: pointer; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--text-2); background: var(--surface);
  display: flex; align-items: center; gap: 6px;
}
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group[open] > summary { border-color: var(--accent); color: var(--accent); }
.filter-count {
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 0 6px; font-size: 11px;
}
.filter-menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
  min-width: 230px; max-height: 320px; overflow: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.filter-option {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px; font-size: 12.5px;
}
.filter-option:hover { background: var(--surface-2); }
.filter-option.is-on { background: var(--accent-soft); color: var(--accent); }
.filter-option.is-zero { opacity: 0.45; }
.filter-option .check { width: 12px; color: var(--accent); }
.filter-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-n { color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.filter-menu.dates { display: grid; gap: 8px; padding: 10px; }
.filter-menu.dates label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); }
.filter-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip-toggle {
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip-toggle::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--chip, var(--p-none)); }
.chip-toggle:hover { border-color: var(--border-strong); color: var(--text); }
.chip-toggle.is-on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

/* segmented control */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; }
.seg-item {
  padding: 5px 10px; border-radius: 6px; border: 0; background: transparent;
  color: var(--muted); font-size: 12.5px; cursor: pointer;
}
.seg-item.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); font-weight: 600; }

/* table */
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bulk-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bulk-actions select, .bulk-actions input { width: auto; padding: 5px 8px; font-size: 12px; }
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  position: sticky; top: 0; z-index: 5; text-align: left;
  padding: 10px 12px; background: var(--surface-2);
  border-bottom: 1px solid var(--border); color: var(--muted);
  font-size: 11px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap;
}
.table th.sortable a { display: inline-flex; align-items: center; gap: 4px; }
.table th.is-sorted { color: var(--accent); }
.sort-arrow { font-size: 11px; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table-compact td, .table-compact th { padding: 7px 10px; }
.table .col-check { width: 34px; }
.table .col-title { min-width: 320px; max-width: 440px; }
.table td.nowrap { white-space: nowrap; }
.table .row-sub {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.table td .mono, .table td.mono { white-space: nowrap; }
.row-title { font-weight: 600; }
.row-title:hover { color: var(--accent); }
.row-sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.is-density-compact .table td { padding: 6px 10px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 0; }

/* board */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.board-col {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 8px;
  min-height: 120px; max-height: calc(100vh - 250px); overflow: auto;
}
.board-col-head {
  display: flex; justify-content: space-between; padding: 4px 6px;
  font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
}
.board-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 10px; display: flex; flex-direction: column; gap: 6px;
}
.board-card:hover { border-color: var(--accent); }
.board-card-title { font-weight: 550; font-size: 12.5px; }
.board-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.board-card-meta .muted { white-space: nowrap; }

/* calendar */
.cal-toolbar { display: flex; flex-direction: column; gap: 10px; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-title { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.cal-weekday {
  padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase;
}
.cal-cell {
  min-height: 118px; padding: 7px; border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px;
  background: var(--surface);
}
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.is-outside { background: var(--surface-2); }
.cal-cell.is-outside .cal-date { color: var(--faint); }
.cal-cell.is-today { box-shadow: inset 0 0 0 2px var(--accent-soft); }
.cal-cell.is-today .cal-date { color: var(--accent); font-weight: 700; }
.cal-date { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-items { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 6px; border-radius: 6px; cursor: grab;
  background: color-mix(in srgb, var(--chip, var(--p-none)) 10%, white);
  border: 1px solid color-mix(in srgb, var(--chip, var(--p-none)) 24%, white);
  font-size: 11px; color: var(--text-2); overflow: hidden;
}
.cal-chip:hover { border-color: var(--chip, var(--accent)); }
.cal-chip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--chip, var(--p-none)); flex: none; }
.cal-chip-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-cell.is-drop-target, .cal-week-day.is-drop-target { outline: 2px dashed var(--accent); outline-offset: -3px; }
.cal-drop { display: none; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.cal-week-day {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 380px;
}
.cal-week-day.is-today { border-color: var(--accent); }
.cal-week-head { display: flex; align-items: baseline; justify-content: space-between; color: var(--muted); font-size: 11.5px; }
.cal-week-head strong { color: var(--text); font-size: 15px; }
.cal-lane { border-left: 2px solid var(--chip, var(--border)); padding-left: 6px; display: flex; flex-direction: column; gap: 3px; min-height: 22px; }
.cal-lane-label { color: var(--faint); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 2px 2px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--chip, var(--p-none)); }

/* detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.post-head { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 16px; }
.post-head-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.post-title { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 4px; }
.post-head-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.player-wrap { background: #0b0f19; border-radius: var(--radius-sm); overflow: hidden; display: flex; justify-content: center; }
.player {
  width: 100%; max-height: 560px; background: #0b0f19;
  border-radius: var(--radius-sm); display: block;
}
/* Portrait footage should not turn into a wide black slab. */
.player-wrap .player, .media-panel .player {
  width: auto; max-width: 100%; max-height: 620px; margin: 0 auto;
}
.player-wrap .player { border-radius: 0; }
.player-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hook-box { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 10px 12px; }
.hook-box p { font-weight: 550; margin-top: 3px; }
.post-body {
  white-space: pre-wrap; word-break: break-word; font-family: var(--font); font-size: 13.5px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; margin: 0; max-height: 420px; overflow: auto;
}
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric-strip > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.metric-strip strong { font-size: 16px; }
.metrics-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.source-mini { display: flex; flex-direction: column; gap: 3px; }
.source-poster { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); aspect-ratio: 9 / 12; object-fit: cover; background: var(--surface-2); }
.source-mini-title { font-weight: 600; margin-top: 4px; }
.quote {
  margin: 0; padding: 10px 12px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
}
.quote .mono { display: block; margin-top: 4px; color: var(--muted); }
.kv { display: flex; flex-direction: column; gap: 8px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.kv > div:last-child { border-bottom: 0; }

/* placeholder */
.placeholder {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 8px, var(--surface-3) 8px, var(--surface-3) 16px);
}
.placeholder-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--border); color: var(--muted); display: grid; place-items: center; }
.placeholder-mark svg { width: 16px; height: 16px; }
.placeholder-title { font-weight: 550; font-size: 12.5px; }
.placeholder-path { color: var(--muted); word-break: break-all; }

/* sources */
.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.source-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-xs);
}
.source-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.source-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.source-title { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.source-stats { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.source-stats strong { color: var(--text); font-size: 14px; }
.source-lines { display: flex; flex-direction: column; gap: 4px; }
.source-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border); }
.source-head-body { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; }
.source-head-stats { display: flex; gap: 22px; }
.source-head-stats > div { display: flex; flex-direction: column; }
.source-head-stats strong { font-size: 18px; letter-spacing: -0.02em; }
.source-head-stats span { color: var(--muted); font-size: 11.5px; }

/* tabs */
.tabs { display: flex; flex-direction: column; gap: 14px; }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab {
  padding: 8px 12px; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 13px; font-weight: 550;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab.is-on { color: var(--accent); border-bottom-color: var(--accent); }
.tab-n { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; font-size: 11px; color: var(--muted); }
.tab-panel { display: flex; flex-direction: column; gap: 14px; }
.media-tabs, .pack-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.media-tab, .pack-tab {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 7px 11px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: 12.5px; color: var(--text-2);
  text-align: left;
}
.media-tab.is-on, .pack-tab.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.media-panel { display: flex; flex-direction: column; gap: 8px; }
.media-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pack { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pack-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.pack-head h3 { font-size: 14px; font-weight: 650; }
.pack-sections { padding: 6px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.pack-section { padding: 10px 0; border-bottom: 1px solid var(--border); }
.pack-section:last-child { border-bottom: 0; }
.pack-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pack-text { white-space: pre-wrap; word-break: break-word; font-family: var(--font); font-size: 13px; margin: 0; }
.transcript-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.transcript-head { display: flex; justify-content: space-between; gap: 12px; }
.transcript { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow: auto; }
.transcript-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.ts {
  flex: none; border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 6px; padding: 1px 6px; font-size: 11px; color: var(--muted); cursor: pointer;
}
.ts:hover { color: var(--accent); border-color: var(--accent); }
.notes-list { gap: 8px; }
.note { font-size: 12.5px; color: var(--text-2); border-left: 3px solid var(--border); padding-left: 10px; }

/* formats */
.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.format-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-xs); }
.format-preview { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.format-preview img { width: 100%; height: 100%; object-fit: cover; }
.format-tile { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--surface-3), var(--surface-3) 10px, #eaecf0 10px, #eaecf0 20px); color: var(--faint); font-size: 34px; font-weight: 700; }
.format-kind { position: absolute; top: 8px; left: 8px; background: rgba(15, 23, 42, 0.72); color: #fff; border-radius: 6px; padding: 2px 7px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.format-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.format-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.format-head h2 { font-size: 14.5px; font-weight: 650; }
.format-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.format-stats { display: flex; gap: 18px; }
.format-stats > div { display: flex; flex-direction: column; gap: 1px; }
.format-stats strong { font-size: 14px; }
.format-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* platforms */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.platform-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-xs); }
.platform-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.platform-head h2 { font-size: 15px; font-weight: 650; }
.platform-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--chip, var(--p-none)); margin-top: 5px; }
.platform-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.platform-stats > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; display: flex; flex-direction: column; }
.platform-stats strong { font-size: 15px; }
.cadence-line { display: flex; flex-direction: column; gap: 5px; }
.cadence-track { height: 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.cadence-track > span { display: block; height: 100%; background: var(--chip, var(--accent)); }
.rules { margin: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px 10px; }
.rules dt { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.rules dd { margin: 0; font-size: 12.5px; color: var(--text-2); }
.platform-edit summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.platform-edit[open] summary { margin-bottom: 10px; }
.platform-edit .form-grid { padding-top: 10px; border-top: 1px solid var(--border); }

/* insights */
.bar { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.bar-cell { width: 160px; }
.rank { font-weight: 700; color: var(--accent); }
.hook-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.hook-list li a { font-weight: 550; }
.hook-list li a:hover { color: var(--accent); }
.hook-list li span { display: block; }
.cadence-table { gap: 6px; }
.cadence-row { display: grid; grid-template-columns: minmax(160px, 1.4fr) 70px 70px minmax(0, 2fr); gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); }
.cadence-row:last-child { border-bottom: 0; }
.cadence-head { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.cadence-weeks { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.week-cell { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; font-size: 11px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); }
.week-cell.is-hit { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }
.week-cell.is-gap { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }

/* requests */
.request-list { display: flex; flex-direction: column; gap: 12px; }
.request-intent { font-size: 14px; color: var(--text-2); }
.result-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }

/* misc */
.error-page { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 80px 20px; text-align: center; }
.error-code { font-size: 52px; font-weight: 700; letter-spacing: -0.04em; color: var(--border-strong); }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 16px);
  background: var(--text); color: #fff; border-radius: 10px;
  padding: 9px 15px; font-size: 12.5px; opacity: 0; pointer-events: none;
  transition: opacity 160ms, transform 160ms; z-index: 100; box-shadow: var(--shadow-md);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.modal { border: 1px solid var(--border); border-radius: var(--radius); padding: 0; width: min(480px, 92vw); box-shadow: var(--shadow-md); }
.modal::backdrop { background: rgba(15, 23, 42, 0.35); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 16px; }

@media (max-width: 1180px) {
  .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 10px 14px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-label { display: none; }
  .sidebar-foot { display: none; }
  .suite { flex-direction: row; margin: 0 0 0 auto; }
  .suite-link { padding: 4px; }
  .suite-link > span:last-child { display: none; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .content { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .source-head-body { flex-direction: column; align-items: flex-start; }
  .metrics-form { grid-template-columns: 1fr; }
  .cal-week { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.format-video { width: 100%; height: 100%; object-fit: cover; }

/* Source page: original file vs post renders */
.media-role {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 0; border-top: 1px solid var(--border);
}
.post-list-row { gap: 12px; }
.post-thumb {
  width: 46px; height: 60px; object-fit: cover; flex: none;
  border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2);
}
.post-list-row .list-main { flex: 1; }

.title-cell { display: flex; align-items: flex-start; gap: 10px; }
.title-cell .list-main { min-width: 0; }

.badge-pillar { background: #f4f3ff; color: #5925dc; border-color: #d9d6fe; }

.source-angle { color: var(--text-2); font-size: 13px; max-width: 72ch; margin-top: 4px; }

/* ---------- format editor ---------- */
.format-head-body { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
.format-head-stats { display: flex; gap: 22px; }
.format-head-stats > div { display: flex; flex-direction: column; }
.format-head-stats strong { font-size: 18px; letter-spacing: -0.02em; }
.format-head-stats span { color: var(--muted); font-size: 11.5px; }
.format-readiness { display: flex; gap: 6px; flex-wrap: wrap; }
.format-card h2 a:hover { color: var(--accent); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
textarea.code { font-family: var(--mono); font-size: 12px; line-height: 1.55; tab-size: 2; }
.request-mini { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.request-mini:last-child { border-bottom: 0; }

/* ---------- caption editor ---------- */
.caption-form { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.caption-section {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 32px;
  gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: start;
}
.caption-section:last-child { border-bottom: 0; }
.caption-section input, .caption-section textarea, .caption-agent input {
  width: 100%; padding: 7px 9px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px;
}
.caption-section .section-name { font-weight: 600; }
.caption-section textarea { resize: vertical; font-family: var(--font); }
.caption-section input:focus, .caption-section textarea:focus, .caption-agent input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none;
}
.caption-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.inline-field { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.inline-field select { padding: 5px 8px; border-radius: 7px; border: 1px solid var(--border-strong); }
.caption-agent {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 10px;
}
.caption-agent .agent-intent { flex: 1 1 260px; }
.new-caption {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
}
.new-caption summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.new-caption[open] summary { margin-bottom: 6px; }
.new-caption .form-grid { padding: 8px 0 0; }

/* Drive provenance */
.drive-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 2px 0 8px; }

/* Platform detail */
.check-list { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.check-row input { width: auto; }
.check-row .muted { margin-left: auto; }

:root { --p-blog: #7a5af8; --p-website: #0e9384; --p-newsletter: #b54708; }
.p-blog { --chip: var(--p-blog); }
.p-website { --chip: var(--p-website); }
.p-newsletter { --chip: var(--p-newsletter); }

/* Written posts */
.blog-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.blog-excerpt { font-size: 15px; color: var(--text-2); max-width: 70ch; }
.blog-thumb { display: inline-grid; place-items: center; font-weight: 700; color: var(--accent); background: var(--accent-soft); font-size: 13px; }
.blog-body { font-size: 14.5px; line-height: 1.65; color: var(--text-2); max-width: 76ch; }
.blog-body h2 { font-size: 19px; margin: 22px 0 8px; color: var(--text); }
.blog-body h3 { font-size: 16px; margin: 18px 0 6px; color: var(--text); }
.blog-body p { margin: 0 0 12px; }
.blog-body ul, .blog-body ol { margin: 0 0 12px; padding-left: 20px; }
.blog-body li { margin-bottom: 4px; }
.blog-body a { color: var(--accent); text-decoration: underline; }
.blog-body img { max-width: 100%; border-radius: 8px; border: 1px solid var(--border); margin: 8px 0 14px; }
.blog-body blockquote { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.blog-body code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; }
.blog-body pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow: auto; }

/* Social snapshots */
.snapshot-img {
  display: block; width: 100%; max-width: 460px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2);
}
.snapshot-caption {
  white-space: pre-wrap; font-size: 12.5px; color: var(--muted);
  max-height: 160px; overflow: auto; border-top: 1px solid var(--border); padding-top: 10px;
}

.status-testing { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.status-proven { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.status-retired { background: var(--surface-2); color: var(--muted); border-color: var(--border); }

.status-drafted { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.status-rendered { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.status-transcribed, .status-approved { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }

.pillar-cell { min-width: 140px; }
.nowrap { white-space: nowrap; }

/* ---------- Sites (hyper-luna) ---------- */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.site-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.site-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.site-card-head { display: flex; align-items: center; gap: 10px; }
.site-card-head .flag { margin-left: auto; }
.site-mark {
  width: 32px; height: 32px; border-radius: var(--radius-sm); flex: none;
  display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-weight: 700;
}
.site-summary { color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.site-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site-stats > div { display: flex; flex-direction: column; }
.site-stats strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.site-stats span { color: var(--muted); font-size: 11.5px; }
.site-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 10px; }
.page-static { background: var(--surface-2); color: var(--text-2); }
.page-dynamic { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.page-endpoint { background: var(--surface-3); color: var(--muted); }
.entry-body { min-height: 420px; line-height: 1.6; }
.entry-cover { width: 100%; border-radius: var(--radius-sm); display: block; }
.problems { margin: 0; padding: 10px 12px 10px 28px; border: 1px solid var(--red-line); background: var(--red-soft); color: var(--red); border-radius: var(--radius-sm); font-size: 12.5px; }
.schema-list .list-sub { line-height: 1.45; }
.luna-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius-sm); }
/* ---------- sign-in (SUITE: identical in every app) ---------- */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-md);
}

.auth-brand {
  margin-bottom: 22px;
  pointer-events: none;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form .field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.auth-submit {
  justify-content: center;
  width: 100%;
}

.auth-error {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--red-line);
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: var(--red);
  font-size: 12.5px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.sidebar-user-name {
  overflow: hidden;
  font-weight: 600;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-foot > span {
  display: block;
}

@media (max-width: 900px) {
  /* The foot is hidden in the wrapped top bar; keep Sign out reachable. */
  .sidebar-foot:has(.sidebar-user) {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .sidebar-foot > span,
  .sidebar-user-name {
    display: none;
  }
  .sidebar-user {
    margin: 0;
  }
}
