/* Option E for the panels (2026-11-21, Andres: "The back end needs updating as well"). Loaded last by every
   shell, and only when config.design is "option-e" (src/design.js), which also puts class="oe" on <html>.
   The classic stylesheets are untouched: this file swaps their colour tokens for Option E's (white, whisper
   gray, black ink, electric violet) and Sora for headings. ":root.oe" outranks the shells' own ":root" token
   blocks wherever they sit. An agency's colour (views.js brandVars, html.branded) still leads its panels. */

@font-face { font-family: 'Sora'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/static/sora-latin.woff2') format('woff2'); }

:root.oe {
  /* the marketing brand file's names */
  --marquezee-coral: #7000ff; --marquezee-golden-hour: #e9d9ff; --marquezee-sage: #4b00f5; --marquezee-pool-teal: #b64dff;
  --marquezee-ink: #0b0b0f; --marquezee-cream: #ffffff;
  --mq-text: #0b0b0f; --mq-background: #f7f6fb; --mq-accent: #7000ff; --mq-muted: #f3effb;
  --mq-display: 'Sora', 'Inter', Arial, sans-serif;
  /* the panels' tokens (admin.css, customer.css) */
  --mz-cream: #f7f6fb; --mz-surface: #ffffff; --mz-surface-soft: #faf8ff;
  --mz-coral: #7000ff; --mz-coral-hover: #5800ce; --mz-orange: #b64dff;
  --mz-ink: #0b0b0f; --mz-muted: #55556a;
  --mz-line: #e7e3f0; --mz-sand: #f3effb; --mz-soft-coral: #f3ecff;
  /* the shared panel names (panel.css) */
  --p-text: #0b0b0f; --p-text-soft: #55556a; --p-background: #f7f6fb; --p-surface: #ffffff;
  --p-line: #e7e3f0; --p-muted: #f3effb; --p-side-highlight: #f3ecff;
  --oe-gradient: linear-gradient(115deg, #4b00f5 0%, #7a00ff 48%, #b64dff 100%);
}
:root.oe:not(.branded) { --p-accent: #7000ff; }

/* Headings in Sora, like marquezee.ai */
.oe h1, .oe .cp h1, .oe .adm h1 { font-family: 'Sora', 'Inter', Arial, sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.oe h2, .oe .cp h2, .oe .adm h2, .oe h3 { font-family: 'Sora', 'Inter', Arial, sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.oe .tile .n, .oe .metric .value, .oe .adm .metric strong { font-family: 'Sora', 'Inter', Arial, sans-serif; letter-spacing: -0.02em; }

/* Links: ink with a violet underline */
.oe a { text-decoration-color: #b98aff; }
.oe :focus-visible { outline-color: #a571ff; }

/* The main button: violet with white text (white on #7000ff measures 7.4). Quieter buttons keep their own look. */
.oe:not(.branded) .button:not(.quiet):not(.secondary):not(.ghost):not(.outline):not(.soft):not(.danger):not(.stop):not(.cancel-confirm):not([style*="background"]),
.oe:not(.branded) .banner { color: #ffffff; }
.oe .cp .button:not(.quiet):not(.secondary):not(.outline):not(.cancel-confirm):not([style*="background"]) { background: var(--p-accent); }
.oe:not(.branded) .cp .button:not(.quiet):not(.secondary):not(.outline):not(.cancel-confirm):not([style*="background"]) { background: var(--oe-gradient); }
.oe .cp .button:hover { box-shadow: 0 4px 14px rgba(112, 0, 255, .25); }
.oe .button:not(.quiet):not(.secondary):not(.ghost):not(.outline):not(.soft):not(.danger):not(.stop):hover { filter: brightness(0.94); }
.oe .adm .button.soft { color: #5800ce; }
.oe .adm .button.soft:hover { background: #e9ddff; border-color: #e9ddff; }
.oe .adm .button.quiet:hover, .oe .adm .button.secondary:hover, .oe .adm .button.ghost:hover, .oe .adm .button.outline:hover { border-color: #c8b6ef; }

/* Small violet things that carried ink on coral */
.oe .adm .side-links .count, .oe .adm .avatar, .oe .cp .tab-dot { color: #ffffff; }
.oe .adm .avatar { background: var(--oe-gradient); }

/* Warm tints from the classic palette */
.oe .cp .stages .stage.now { border-color: #d5c2fb; box-shadow: 0 0 0 1px #d5c2fb, var(--shadow); }
.oe .pill.past_due { background: #fbe4e4; }
.oe .adm .side .brand img, .oe .side .brand img { max-width: 170px; height: auto; }
.oe .adm .topbrand img { height: 28px; width: auto; }

/* The public affiliate application (affiliate-apply.css keeps its own tokens on .aff) */
.oe .aff {
  --cream: #ffffff; --surface: #ffffff; --coral: #7000ff; --orange: #b64dff; --ink: #0b0b0f; --soft: #55556a;
  --line: #e7e3f0; --soft-coral: #f3ecff; --coral-text: #6200e0; --peach: #f3ecff; --paper: #faf8ff;
  --display: 'Sora', 'Inter', Arial, sans-serif;
}
.oe .aff h1, .oe .aff h2 { font-weight: 800; letter-spacing: -0.035em; }
.oe .aff-hero::before { background: radial-gradient(closest-side, rgba(112, 0, 255, .08), rgba(112, 0, 255, 0)); }

/* The admin frame's few written-in warm colours */
.oe .adm .topbar { background: rgba(247, 246, 251, .92); border-bottom-color: rgba(231, 227, 240, .8); }
.oe .adm th, .oe .adm td, .oe .adm ul.activity li, .oe .adm ul.feed li, .oe .adm .stage-rows > li, .oe .adm table.stack td.first { border-bottom-color: #efecf5; }
.oe .adm .runs details.run, .oe .adm .share-box { border-top-color: #efecf5; }
