/* public/theme.css: the report look carried into the app (owner, 2026-11-12).

   The owner: "the landing page looks like it's made for agents not humans, so i
   would lead towards the rest of the app looking more like the landing page
   than the other way around. but inner app layout must not change; you can
   change the fonts and the shapes etc. but keep the layout."

   So this file only re-skins: the landing's type (Schibsted Grotesk), ink on
   paper with one oxblood accent (/report.css), hairline rules, square shapes,
   no glow. It sets no widths, positions, grids or display values, so every
   screen keeps its layout. It loads after /style.css and /x-harness.css;
   deleting its <link> in index.html restores the old look.

   Dark is the app's default (no data-theme attribute); light is
   [data-theme="light"]. Each palette is set in full on its own selector, so
   neither leaks into the other. */

/* ── Palettes ─────────────────────────────────────────────────────────── */
:root {
  --rep-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, Helvetica, sans-serif;
  --rep-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-full: 0;
  --shadow-glass: none;
  --shadow-glass-sm: none;
  --shadow-glass-hover: none;
  --shadow-glow: none;
}

:root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #141413;
  --bg-2: #1d1d1b;
  --matrix: #ecebe4;
  --matrix-mid: #cfcec6;
  --matrix-dim: rgba(236, 235, 228, 0.06);
  --matrix-glow: rgba(236, 235, 228, 0.08);
  --matrix-border: #34342f;
  --brass: #cfcec6;
  --brass-light: #ecebe4;
  --brass-dim: rgba(236, 235, 228, 0.06);
  --brass-glow: rgba(236, 235, 228, 0.1);
  --brass-border: #3a3a35;
  --glass: rgba(236, 235, 228, 0.03);
  --glass-border: #34342f;
  --glass-hover: rgba(236, 235, 228, 0.06);
  --glass-strong: rgba(236, 235, 228, 0.09);
  --surface: #141413;
  --surface-raised: #1d1d1b;
  --tile-bg: rgba(236, 235, 228, 0.03);
  --tile-border: #34342f;
  --border: #34342f;
  --border-hover: #5f5e57;
  --border-focus: #d98276;
  --text: #ecebe4;
  --text-secondary: #cfcec6;
  --text-muted: #a3a29a;
  --accent: #ecebe4;
  --accent-hover: #ffffff;
  --accent-dim: rgba(236, 235, 228, 0.08);
  --accent-glow: rgba(236, 235, 228, 0.12);
  --silver: #ecebe4;
  --silver-dim: rgba(236, 235, 228, 0.06);
  --success: #7cc48a;
  --success-dim: rgba(124, 196, 138, 0.12);
  --danger: #e5736b;
  --danger-dim: rgba(229, 115, 107, 0.14);
  --warm: #d9a54a;
  --warm-dim: rgba(217, 165, 74, 0.12);
  --rep-ink: #ecebe4;
  --rep-paper: #141413;
  --rep-accent: #d98276;
  --rep-accent-soft: rgba(217, 130, 118, 0.12);
  --rep-line: #34342f;
  --rep-rule: #5f5e57;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f7f7f3;
  --matrix: #20201e;
  --matrix-mid: #3a3a36;
  --matrix-dim: rgba(32, 32, 30, 0.05);
  --matrix-glow: rgba(32, 32, 30, 0.06);
  --matrix-border: #deded8;
  --brass: #3a3a36;
  --brass-light: #20201e;
  --brass-dim: rgba(32, 32, 30, 0.05);
  --brass-glow: rgba(32, 32, 30, 0.08);
  --brass-border: #deded8;
  --glass: rgba(32, 32, 30, 0.02);
  --glass-border: #deded8;
  --glass-hover: rgba(32, 32, 30, 0.04);
  --glass-strong: rgba(32, 32, 30, 0.06);
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --tile-bg: rgba(32, 32, 30, 0.02);
  --tile-border: #deded8;
  --border: #deded8;
  --border-hover: #98988f;
  --border-focus: #963c36;
  --text: #20201e;
  --text-secondary: #3a3a36;
  --text-muted: #666661;
  --accent: #20201e;
  --accent-hover: #3a3a36;
  --accent-dim: rgba(32, 32, 30, 0.06);
  --accent-glow: rgba(32, 32, 30, 0.08);
  --silver: #3a3a36;
  --silver-dim: rgba(32, 32, 30, 0.04);
  --success: #2f6b3a;
  --success-dim: rgba(47, 107, 58, 0.1);
  --danger: #b3261e;
  --danger-dim: rgba(179, 38, 30, 0.08);
  --warm: #8a5a00;
  --warm-dim: rgba(138, 90, 0, 0.08);
  --rep-ink: #20201e;
  --rep-paper: #ffffff;
  --rep-accent: #963c36;
  --rep-accent-soft: rgba(150, 60, 54, 0.08);
  --rep-line: #deded8;
  --rep-rule: #98988f;
}

/* ── Type ─────────────────────────────────────────────────────────────── */
:root body,
:root[data-theme="light"] body {
  font-family: var(--rep-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
:root :is(button, input, select, textarea, .btn) { font-family: inherit; }
:root :is(h1, h2, h3, .hub-title, .hub-name, .hub-plan-name, .perf-title) {
  font-weight: 500;
  letter-spacing: -0.02em;
}
:root :is(h4, h5, strong, b, th) { font-weight: 500; }
:root :is(code, kbd, pre, samp) { font-family: var(--rep-mono); }
:root :focus-visible { outline-color: var(--rep-accent); }

/* ── Shapes: square everywhere; only a loading spinner stays round ──────── */
body *, body *::before, body *::after { border-radius: 0 !important; }
body .spinner, body .spinner::before, body .spinner::after { border-radius: 50% !important; }
:root .btn:hover:not(:disabled),
:root .hub-card:hover,
:root .theme-toggle:hover { transform: none; box-shadow: none; }

/* ── The header bar: a hairline under the brand, not a floating box ───── */
:root header,
:root[data-theme="light"] header {
  border: 0;
  border-bottom: 1px solid var(--rep-line);
  box-shadow: none;
  background: var(--bg);
}
:root .header-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
:root .account-switcher-trigger,
:root[data-theme="light"] .account-switcher-trigger {
  background: transparent;
  border: 1px solid var(--rep-line);
  color: var(--text);
}
:root .account-switcher-trigger:hover,
:root .account-switcher-trigger[aria-expanded="true"] {
  background: var(--glass-hover);
  border-color: var(--rep-rule);
}

/* ── Workspace tabs: small capitals over an underline ─────────────────── */
:root .tab-nav,
:root[data-theme="light"] .tab-nav {
  background: transparent;
  border: 0;
  box-shadow: none;
}
:root .tab-btn,
:root .tab-back {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  box-shadow: none;
}
:root .tab-btn:hover,
:root .tab-back:hover { color: var(--text); background: none; }
:root .tab-btn.active,
:root[data-theme="light"] .tab-btn.active {
  color: var(--text);
  background: none;
  box-shadow: inset 0 -2px 0 var(--rep-ink);
}

/* ── Buttons: ink for the main action, a ruled outline for the rest ───── */
:root .btn,
:root[data-theme="light"] .btn {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}
:root .btn-accent,
:root[data-theme="light"] .btn-accent {
  background: var(--rep-ink);
  border: 1px solid var(--rep-ink);
  color: var(--rep-paper);
}
:root .btn-accent:hover:not(:disabled),
:root[data-theme="light"] .btn-accent:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--rep-paper);
}
:root .btn-outline,
:root[data-theme="light"] .btn-outline {
  background: transparent;
  border: 1px solid var(--rep-ink);
  color: var(--text);
  box-shadow: none;
}
:root .btn-outline:hover:not(:disabled),
:root[data-theme="light"] .btn-outline:hover:not(:disabled) {
  background: var(--glass-hover);
  border-color: var(--rep-ink);
  color: var(--text);
}
:root .btn-ghost:hover:not(:disabled) { background: var(--glass-hover); }
:root .btn-danger,
:root[data-theme="light"] .btn-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
:root .btn-danger:hover:not(:disabled) { background: var(--danger-dim); }
:root .link-btn { color: var(--text-secondary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
:root .link-btn:hover { color: var(--rep-accent); }

/* ── Fields ───────────────────────────────────────────────────────────── */
:root :is(.input, input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input[type="datetime-local"], input[type="date"], input[type="time"], select, textarea),
:root[data-theme="light"] :is(.input, input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input[type="datetime-local"], input[type="date"], input[type="time"], select, textarea) {
  background-color: var(--bg);
  border-color: var(--rep-rule);
  box-shadow: none;
}
:root :is(.input, input, select, textarea):focus { border-color: var(--rep-ink); box-shadow: 0 0 0 1px var(--rep-ink); }
:root input[type="checkbox"], :root input[type="radio"] { accent-color: var(--rep-ink); }

/* ── Cards: framed, with the report's heavier rule on top ─────────────── */
:root .card,
:root[data-theme="light"] .card {
  background: var(--bg);
  border: 1px solid var(--rep-line);
  border-top: 2px solid var(--rep-ink);
  box-shadow: none;
}
:root .card:hover { border-color: var(--rep-line); border-top-color: var(--rep-ink); }
:root .card-header { border-bottom-color: var(--rep-line); }
:root .card-header h3 { font-weight: 500; letter-spacing: -0.01em; }

/* ── Hub tiles ────────────────────────────────────────────────────────── */
:root .hub-card,
:root[data-theme="light"] .hub-card {
  background: var(--bg);
  border: 1px solid var(--rep-line);
  border-top: 2px solid var(--rep-ink);
  box-shadow: none;
}
:root .hub-card:hover { border-color: var(--rep-rule); border-top-color: var(--rep-accent); }
:root .hub-logo,
:root .hub-logo-x, :root .hub-logo-tt, :root .hub-logo-ig, :root .hub-logo-yt {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rep-line);
}
:root .hub-plan { background: var(--bg-2); border: 1px solid var(--rep-line); box-shadow: none; }

/* ── The Brands / Platforms switch: the board's square toggle ───────── */
:root .view-switch,
:root[data-theme="light"] .view-switch {
  background: transparent;
  border: 1px solid var(--rep-ink);
  padding: 0;
  gap: 0;
}
:root .view-switch-btn { font-weight: 500; border: 0; color: var(--text-muted); }
/* The header's View as switch marks its view with aria-pressed. */
:root .view-switch-btn[aria-current="page"],
:root[data-theme="light"] .view-switch-btn[aria-current="page"],
:root .view-as .view-switch-btn[aria-pressed="true"],
:root[data-theme="light"] .view-as .view-switch-btn[aria-pressed="true"] {
  background: var(--rep-ink);
  color: var(--rep-paper);
  border: 0;
}
:root .public-view-banner,
:root[data-theme="light"] .public-view-banner {
  border: 1px solid var(--rep-line);
  border-left: 2px solid var(--rep-accent);
  background: var(--bg-2);
}

/* ── Pills, badges and chips: square, hairline, no fill ───────────────── */
:root :is(.tag-chip, .format-badge, .library-status, .account-block-count, .vs-status, .pd-deleted-tag, .sy-badge, .sy-copy-chip, .pn-tag, .pn-count-inline, .engage-score, .engage-engaged-badge, .engage-ai-badge, .grok-status, .tt-grok-badge, .time-slot-pill, .time-slot-pill-sm, .quick-pick-btn) {
  box-shadow: none;
}
:root .toast { box-shadow: none; border: 1px solid var(--rep-rule); }

/* ── Theme toggle ─────────────────────────────────────────────────────── */
:root .theme-toggle,
:root[data-theme="light"] .theme-toggle {
  background: var(--bg);
  border: 1px solid var(--rep-line);
  color: var(--text);
  box-shadow: none;
}

/* ── The Brands board (#tab-performance): same grid, report surfaces ──── */
:root #tab-performance { --pb-line: var(--rep-line); --pb-yt: #d98276; --pb-ig: #8fb0dc; --pb-tt: #86bfa9; --pb-x: #ecebe4; --pb-os: #cd8ca6; }
:root[data-theme="light"] #tab-performance { --pb-line: var(--rep-line); --pb-yt: #963c36; --pb-ig: #3d5f8f; --pb-tt: #2f6b5a; --pb-x: #20201e; --pb-os: #a8507c; }
:root #tab-performance .pb-name { font-weight: 500; letter-spacing: -0.03em; }
:root #tab-performance .pb-boxed {
  border: 0;
  border-top: 2px solid var(--rep-ink);
  padding-left: 0;
  padding-right: 0;
}
:root #tab-performance .pb-panel-title {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
}
:root #tab-performance .pb-tab { font-weight: 400; color: var(--text-muted); }
:root #tab-performance .pb-tab[aria-selected="true"] { font-weight: 500; color: var(--text); border-bottom-color: var(--rep-ink); }
:root #tab-performance .pb-where-icon {
  background: transparent;
  border: 1px solid var(--rep-line);
  color: var(--text);
}
/* A video's post in the other list (already out, or still queued): every
   icon is outlined here, so this one is dashed and muted. */
:root #tab-performance .pb-leg.is-other .pb-where-icon { border-style: dashed; box-shadow: none; color: var(--text-muted); }
:root #tab-performance .pb-leg.is-other a.pb-where-icon:hover,
:root #tab-performance .pb-leg.is-other a.pb-where-icon:focus-visible { border-style: solid; color: var(--text); }
:root #tab-performance .pb-day-head { font-weight: 500; }
/* "+ Add an account": square, hairline, ink on paper; the picked platform
   and the platform's note carry the one accent. */
:root #tab-performance :is(.pb-add-open, .pb-add-panel, .pb-add-plat) { border-radius: 0; }
:root #tab-performance .pb-add-open { border-color: var(--rep-rule); }
:root #tab-performance .pb-add-open:hover,
:root #tab-performance .pb-add-open[aria-expanded="true"] { border-color: var(--rep-ink); }
:root #tab-performance .pb-add-plus { border-radius: 0; background: var(--rep-ink); color: var(--rep-paper); font-weight: 500; }
:root #tab-performance .pb-add-label { font-weight: 500; }
:root #tab-performance .pb-add-panel { border-color: var(--rep-line); background: transparent; }
:root #tab-performance .pb-add-plat { border-color: var(--rep-line); background: var(--rep-paper); font-weight: 500; }
:root #tab-performance .pb-add-plat:hover { border-color: var(--rep-rule); }
:root #tab-performance .pb-add-plat[aria-pressed="true"] { border-color: var(--rep-accent); box-shadow: inset 0 0 0 1px var(--rep-accent); background: var(--rep-accent-soft); }
:root #tab-performance .pb-add-note { border-left-color: var(--rep-accent); }
:root #tab-performance :is(.perf-modes, .rp-seg),
:root[data-theme="light"] #tab-performance :is(.perf-modes, .rp-seg) {
  background: transparent;
  border: 1px solid var(--rep-ink);
  padding: 0;
  gap: 0;
}
:root #tab-performance :is(.perf-mode, .rp-seg button) { font-weight: 500; color: var(--text-muted); }
:root #tab-performance :is(.perf-mode[aria-selected="true"], .rp-seg button[aria-pressed="true"]) {
  background: var(--rep-ink);
  color: var(--rep-paper);
}
:root #tab-performance :is(.perf-pill, .rp-chip, .rp-flag, .rp-when, .pn-chip, .pn-count, .sy-count, .pb-compare-chip) { box-shadow: none; }
:root #tab-performance :is(.num, .pb-grid-line span) { font-variant-numeric: tabular-nums; }
/* Schibsted Grotesk's tabular figures also widen the colon and comma, so
   dates and times ("Thu, Nov 12", "7:10 PM") keep proportional figures. */
:root :is(#tab-performance .pb-when, .dt-select, .scheduled-post-time) { font-variant-numeric: normal; }
:root #tab-performance .perf-table thead th { font-weight: 500; }

/* ── A persona's status: square, hairline, small tracked capitals ─────────
   Active is ink on paper, Stills only carries the one accent, Retired is a
   dashed muted rule; the switch in her sheet is the board's square toggle. */
:root .pn-status { border-color: var(--rep-line); background: var(--rep-paper); color: var(--rep-ink); font-weight: 500; }
:root .pn-status-stills_only { border-color: var(--rep-accent); background: var(--rep-accent); color: var(--rep-paper); }
:root .pn-status-retired { border-color: var(--rep-rule); color: var(--text-muted); }
:root #tab-performance .pn-status-note { border-left-color: var(--rep-accent); }
:root #tab-performance .pn-card.is-retired .pn-status-note { border-left-color: var(--rep-rule); }
:root .pn-status-seg { border-color: var(--rep-ink); }
:root .pn-status-opt + .pn-status-opt { border-left-color: var(--rep-ink); }
:root .pn-status-opt span { font-weight: 500; }
:root .pn-status-opt[aria-pressed="true"] { background: var(--rep-ink); color: var(--rep-paper); }
:root .pn-status-opt[aria-pressed="true"] span { color: var(--rep-paper); }
:root .pn-status-opt-stills_only[aria-pressed="true"] { background: var(--rep-accent); }
:root .pn-use-warn { border-left-color: var(--rep-accent); }

/* ── The login screen ─────────────────────────────────────────────────── */
:root .login-card,
:root[data-theme="light"] .login-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  text-align: left;
}
:root .login-logo { display: none; }
:root .auth-mode-tabs,
:root[data-theme="light"] .auth-mode-tabs {
  border: 0;
  border-bottom: 1px solid var(--rep-line);
  gap: 28px;
  overflow: visible;
}
:root .auth-mode-tab,
:root[data-theme="light"] .auth-mode-tab {
  flex: 0 0 auto;
  padding: 0 0 12px;
  min-height: 44px;
  margin-bottom: -1px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  background: none;
  border-bottom: 2px solid transparent;
}
:root .auth-mode-tab:hover { background: none; color: var(--text); }
:root .auth-mode-tab.active,
:root[data-theme="light"] .auth-mode-tab.active {
  background: none;
  color: var(--text);
  font-weight: 500;
  border-bottom-color: var(--rep-ink);
}
:root .login-screen .input { height: 50px; font-size: 16px; }
:root .auth-forgot-row { text-align: left; }
:root .landing-footer { border-top: 1px solid var(--rep-line); padding-top: 18px; }
:root .landing-footer-sep { display: none; }
:root .landing-footer a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--rep-line); text-underline-offset: 4px; }

/* The login screen is the one place that gains layout: the approved design
   (2026-11-12) puts a site bar on top and "After you log in" beside the form,
   like the landing. Below 760 px the side panel drops under the form. */
:root .login-screen { max-width: 920px; gap: 0; }
:root .login-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 0 18px;
  margin: 0 0 56px;
  border-bottom: 1px solid var(--rep-line);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
:root .login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
:root .login-brand-mark { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; }
:root .login-bar .lp-back {
  align-self: auto;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}
:root .login-bar .lp-back:hover { color: var(--text); }
:root .login-wrapper { flex-wrap: wrap; gap: 48px 88px; align-items: flex-start; }
:root .login-card { flex: 0 1 420px; max-width: 420px; }
:root .login-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rep-accent);
}
:root .login-title {
  margin: 0 0 28px;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
}
:root .login-label {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}
:root .login-aside { flex: 0 1 320px; min-width: 0; margin-top: 6px; padding-top: 14px; border-top: 2px solid var(--rep-ink); }
:root .login-aside-label {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}
:root .login-steps { list-style: none; margin: 0; padding: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); }
:root .login-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 0 0 13px;
  margin: 0 0 13px;
  border-bottom: 1px solid var(--rep-line);
}
:root .login-steps li:last-child { border-bottom: 0; margin-bottom: 0; }
:root .login-steps span { font-family: var(--rep-mono); font-size: 12px; color: var(--rep-accent); padding-top: 2px; }
:root .login-aside-note { margin: 22px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
:root .login-screen .landing-footer { margin-top: 72px; }
@media (max-width: 760px) {
  :root .login-wrapper { gap: 40px; }
  :root .login-card, :root .login-aside { flex: 1 1 100%; max-width: none; }
  :root .login-title { font-size: 30px; }
  :root .login-bar { margin-bottom: 36px; }
}
