/* White terminal: warm ivory on charcoal, inspired by the supplied reference. */
/* Layout-specific overrides below retain the same warm-white chrome everywhere. */
html[data-theme=white] {
  --bg:#20211b; --surface:#24251f; --surface-high:#2c2d25;
  --line:#606253; --text:#eeecdf; --muted:#b0b0a0;
  --olive:#eae7d5; --sand:#eae7d5; --cool:#c2c3b5;
  --earth-band:#35362d; --earth-grid:#eae7d508;
  color-scheme:dark;
}
html[data-theme=white] body {
  background-color:var(--bg);
  background-image:linear-gradient(var(--earth-grid) 1px,transparent 1px),linear-gradient(90deg,var(--earth-grid) 1px,transparent 1px);
}
html[data-theme=white] ::selection { background:#eae7d5; color:#20211b; }
html[data-theme=white] :is(input,select,textarea) { accent-color:var(--olive); }
html[data-theme=white] :is(input,textarea)::placeholder { color:var(--muted); opacity:1; }
html[data-theme=white] .site-header {
  --header-fill:#20211b; --header-edge:#747668; --header-cell:#eae7d50d;
}

html[data-theme=white] :is(.site-footer,.account-dropdown) { background:var(--bg); }
html[data-theme=white] :is(.panel,.card,.state,.server-status,.tab-component) { box-shadow:none; }
html[data-theme=white] .hero-art:after {
  background:linear-gradient(90deg,#20211beb 0%,#20211bbf 35%,#20211b50 68%,#20211b20 100%),linear-gradient(0deg,#20211b 0%,transparent 45%);
}
html[data-theme=white] :is(.notice,.terminal-toolbar,.tabs,.section-heading) { border-color:var(--line); }
html[data-theme=white] :is(.notice,.terminal-toolbar) { background:var(--earth-band); }
html[data-theme=white] .button { border-color:#747668; }
html[data-theme=white] .button:not(.button-ghost):hover { background:#f3f0df; color:#20211b; }


html[data-theme=white] :is(.rules-navigation,.dossier-nav,.dossier-panel) { background:var(--surface); }
html[data-theme=white] :is(.rules-panel-heading,.rules-pack-group h4) { background:var(--earth-band); }
html[data-theme=white] :is(.rules-list li,.rules-pack-group,.rules-strike-steps li,.rules-future-limit,.dossier-card) { background:var(--surface); border-color:var(--line); }
html[data-theme=white] :is(.rules-navigation li a,.rules-list li,.rules-pack-table tbody th,.rules-pack-group h4,.rules-strike-steps h3,.dossier-card p,.dossier-card li) { color:var(--text); }
html[data-theme=white] :is(.rules-navigation li a span,.rules-step-label,.dossier-nav a,.dossier-visual-code,.dossier-visual figcaption) { color:var(--muted); }
html[data-theme=white] .dossier-card { border-top-color:#babba9; }
html[data-theme=white] .dossier-visual { background:radial-gradient(ellipse at center,#eae7d50c,transparent 65%),var(--bg); }
html[data-theme=white] .dossier-limitations { background:#2c2d25; border-color:#747668; }
html[data-theme=white] .dossier-limitations p { color:var(--text); }


html[data-theme=white] .compendium-page.compendium-neo,
html[data-theme=white] .compendium-page.compendium-neo :is(.archive-intro,.manual-guide,.species-card) {
  --archive-paper:#24251f; --archive-shade:#35362d; --archive-ink:#eeecdf;
  --archive-rule:#606253; --archive-accent:#eae7d5; --archive-soft:#b0b0a0;
  --text:#eeecdf; --muted:#b0b0a0; --line:#606253; --olive:#eae7d5;
  color:var(--archive-ink); color-scheme:dark;
}
html[data-theme=white] .compendium-page.compendium-neo { background:transparent; }
html[data-theme=white] .compendium-page.compendium-neo :is(.archive-intro,.manual-guide,.species-card,.compendium-library,.compendium-edition>span) {
  border-width:1px; box-shadow:none;
}
html[data-theme=white] .compendium-neo .archive-intro>div:first-child { border-top:4px solid #babba9; }
html[data-theme=white] .compendium-neo :is(.archive-start,.archive-start:hover) { color:#20211b; background:var(--archive-accent); border-color:var(--archive-accent); box-shadow:none; }
html[data-theme=white] .compendium-neo :is(.compendium-library,.compendium-tools,.library-key) { color:var(--archive-ink); background:var(--archive-shade); border-color:var(--archive-rule); }
html[data-theme=white] .compendium-neo .compendium-tools :is(input,select) { color:var(--archive-ink); background:var(--archive-paper); border-color:var(--archive-rule); }
html[data-theme=white] .compendium-neo :is(.compendium-tools label,.compendium-count,.library-key,.reference-note) { color:var(--archive-soft); }
html[data-theme=white] .compendium-neo :is(.archive-readout,.species-card .species-image) {
  background-color:#282922; background-image:linear-gradient(var(--earth-grid) 1px,transparent 1px),linear-gradient(90deg,var(--earth-grid) 1px,transparent 1px);
}
html[data-theme=white] .compendium-neo :is(.archive-placeholder-art,.species-card .species-image .dino-art) { filter:grayscale(.6) brightness(1.1); opacity:.8; }
html[data-theme=white] .compendium-page.compendium-neo .species-card:hover { box-shadow:0 0 0 1px var(--archive-accent); }
html[data-theme=white] .compendium-neo .species-card .species-record-tag { background:var(--archive-shade); color:var(--archive-accent); border-color:var(--archive-rule); }


html[data-theme=white] :is(.gateway-shell,.gateway-sidebar) { background:var(--surface); }
html[data-theme=white] :is(.gateway-top,.gateway-bottom) { background:var(--earth-band); color:var(--text); }
html[data-theme=white] :is(.gateway-tag,.gateway-north,.gateway-waypoint output,.gateway-bottom output) { color:var(--olive); }
html[data-theme=white] :is(.gateway-help,.gateway-waypoint p) { color:var(--muted); }
html[data-theme=white] :is(.gateway-sidebar input[type=search],.gateway-results button,.gateway-tools button) { background:var(--bg); border-color:var(--line); color:var(--text); }
html[data-theme=white] :is(.gateway-results button:hover,.gateway-tools button:hover) { background:var(--earth-band); }


html[data-theme=white] :is(body.live-dinosaur-view,.live-dinosaur-view #main,.content-wrap.live-dinosaur-page,.specimen-console) { background:#000; background-image:none; }
html[data-theme=white] .content-wrap.live-dinosaur-page {
  --signal:#eae7d5; --signal-line:#747668;
  --olive:#eae7d5; --sand:#eae7d5; --cool:#c2c3b5; --muted:#b0b0a0; --line:#606253;
}
html[data-theme=white] :is(.console-masthead,.live-dinosaur-page .terminal-toolbar,.live-dinosaur-page .tabs) { background:var(--earth-band); }
html[data-theme=white] .live-dinosaur-page .specimen-stage .specimen-scan-art { filter:grayscale(.65) sepia(.15); }


html[data-theme=white] .admin-terminal-page {
  --staff-accent:#eae7d5; --staff-text:#eeecdf; --staff-muted:#b0b0a0; --staff-line:#747668;
  background:var(--bg); background-image:linear-gradient(var(--earth-grid) 1px,transparent 1px); background-size:100% 5px;
}
html[data-theme=white] .staff-panel { background:var(--surface); border-width:1px; box-shadow:none; }
html[data-theme=white] :is(.staff-panel>header,.case-list-heading,.suspect-filter,.suspect-owner-hint) { background:var(--earth-band); border-color:var(--line); }
html[data-theme=white] .staff-feed-empty { background-image:linear-gradient(var(--earth-grid) 1px,transparent 1px),linear-gradient(90deg,var(--earth-grid) 1px,transparent 1px); }
html[data-theme=white] :is(.admin-notes-form textarea,.suspect-form input,.suspect-form select,.suspect-form textarea,.suspect-filter input,.suspect-filter select,.suspect-record.case-row) { background:var(--bg); }
html[data-theme=white] :is(.case-row[open],.case-row-summary:hover,.case-status-review) { background:#eae7d50c; }
html[data-theme=white] :is(.staff-integration,.staff-intake-types span,.staff-panel>footer,.staff-evidence,.staff-evidence>div+div,.staff-handover-row+.staff-handover-row,.case-row+.case-row,.case-record-meta,.suspect-pagination) { border-color:var(--line); }
html[data-theme=white] .case-status-closed { color:var(--muted); border-color:var(--line); }
html[data-theme=white] :is(.suspect-filter button,.suspect-form-actions button:not(.suspect-remove),.admin-notes-form .button) { color:var(--bg); }

html[data-theme=white] {
  --instrument-160e07:#20211b;
  --instrument-482b16:#35362d;
  --instrument-603b23:#747668;
  --instrument-633d23:#747668;
  --instrument-754a29:#747668;
  --instrument-81512c:#747668;
  --instrument-82542e:#747668;
  --instrument-82552e:#747668;
  --instrument-8d5b32:#747668;
  --instrument-925e34:#747668;
  --instrument-986437:#747668;
  --instrument-986c44:#747668;
  --instrument-9e6536:#b0b0a0;
  --instrument-a57449:#b0b0a0;
  --instrument-a58c73:#b0b0a0;
  --instrument-a7754d:#b0b0a0;
  --instrument-a98d74:#b0b0a0;
  --instrument-aa7d54:#b0b0a0;
  --instrument-aa815b:#b0b0a0;
  --instrument-b29b85:#b0b0a0;
  --instrument-b67f50:#b0b0a0;
  --instrument-c39266:#b0b0a0;
  --instrument-d3b594:#eae7d5;
  --instrument-d4a37a:#eae7d5;
  --instrument-dd9a5a:#eae7d5;
  --instrument-e49a4a14:#eae7d50c;
  --instrument-e7ac72:#eae7d5;
  --instrument-e89b54:#eae7d5;
  --instrument-e99b4a13:#eae7d50c;
  --instrument-e9b17b:#eae7d5;
  --instrument-eea263:#eae7d5;
  --instrument-efa15b:#eae7d5;
  --instrument-efb27b:#eae7d5;
  --instrument-efb37b:#eae7d5;
  --instrument-f0b47a:#eae7d5;
  --instrument-f2a25a:#eae7d5;
  --instrument-f2b77b:#eae7d5;
  --instrument-f4b278:#eae7d5;
  --instrument-f5b674:#eae7d5;
  --instrument-f8b577:#eae7d5;
  --instrument-ffb878:#eae7d5;
  --instrument-ffd1a0:#eae7d5;
}

html[data-theme=white] .compendium-page.compendium-neo .species-card .species-image { background-color:#282922; background-image:linear-gradient(var(--earth-grid) 1px,transparent 1px),linear-gradient(90deg,var(--earth-grid) 1px,transparent 1px); }
html[data-theme=white] .compendium-page.compendium-neo .species-card .species-image .dino-art { filter:grayscale(.6) brightness(1.1); }
html[data-theme=white] .compendium-page.compendium-neo .species-card .species-record-tag { color:var(--archive-accent); }
html[data-theme=white] .compendium-neo .compendium-library-key { background:var(--archive-shade); color:var(--archive-soft); border-color:var(--archive-rule); }
html[data-theme=white] .compendium-neo .compendium-library-key :is(strong,b,a) { color:var(--archive-accent); }
html[data-theme=white] .compendium-neo .compendium-library-key b { background:var(--archive-paper); }
html[data-theme=white] .compendium-neo :is(.reference-note p,.compendium-tools label>span) { color:var(--archive-soft); }
html[data-theme=white] .compendium-neo .empty-inline { background:var(--archive-paper); color:var(--archive-ink); border-color:var(--archive-rule); }
html[data-theme=white] :is(th,.podium-first) { background:var(--earth-band); }
html[data-theme=white] .podium-card:not(.podium-first) { background:var(--surface); }
html[data-theme=white] :is(.podium-rank,.preview-notice) { color:var(--muted); }
html[data-theme=white] .preview-notice { background:var(--earth-band); }
html[data-theme=white] .compendium-neo .compendium-portal { color:var(--archive-accent); background:var(--archive-paper); border-color:var(--archive-rule); }
html[data-theme=white] .live-dinosaur-page :is(.console-panel-label,.stage-top .eyebrow,.stage-bottom,.vital-scale span,.condition .eyebrow,.facts dt) { color:var(--muted); }


html[data-theme=white] :is(.hero-discord,.community-discord),
html[data-theme=white] .compendium-neo :is(.archive-start,.archive-start:hover) { background:var(--earth-band); color:var(--text); border-color:#747668; }
html[data-theme=white] :is(.hero-discord,.community-discord):hover { background:#404137; color:#f3f0df; }
html[data-theme=white] .live-dinosaur-page .terminal-toolbar { background:transparent; }


html[data-theme=white] .site-header {
  --header-ink:#eae7d5; --header-accent:#eae7d5; --header-soft:#b0b0a0;
  --header-hover:#eae7d512;
}

/* Shared chrome and later-loaded homepage/loader components. */
html[data-theme=white] { --scrollbar-track:#1a1b16; }
html[data-theme=white] body { background-image:none; }
html[data-theme=white] header.site-header {
  --header-fill:#20211b; --header-ink:#eae7d5; --header-accent:#eae7d5;
  --header-edge:#77796a; --header-soft:#b0b0a0; --header-hover:#eae7d512;
  background:#20211b;
}
html[data-theme=white] .site-header :is(.sub-menu,.account-dropdown,.menu-toggle,.submenu-toggle) { background:#20211b; }
html[data-theme=white] .site-header .account-dropdown { background:#20211b; }
html[data-theme=white] .site-footer { background:#20211b; border-color:var(--line); }
html[data-theme=white] :is(.panel,.card,.state,.ranking-panel,.stored-card,.mutation-card,.community-card) { background:var(--surface); border-color:var(--line); }
html[data-theme=white] :is(input,select,textarea) { color:var(--text); background:var(--surface); border-color:var(--line); }
html[data-theme=white] .button:not(.button-outline):not(.button-quiet):not(:disabled) { background:var(--olive); color:var(--bg); }
html[data-theme=white] .button-outline:hover,html[data-theme=white] .button-quiet:hover { background:#eae7d512; color:var(--text); }
html[data-theme=white] :is(.hero.hero-with-bruce,.homepage-body) { background:#20211b; }
html[data-theme=white] .homepage-body .panel { background:#24251f; border-color:var(--line); }
html[data-theme=white] .hero.hero-with-bruce .hero-discord { background:#eae7d5; border-color:#eae7d5; color:#20211b; }
html[data-theme=white] .server-launch-message { background:#20211bf2; color:#eae7d5; }
html[data-theme=white].ap-loading #antipodea-loader { --ap-loader-accent:#eae7d5; background:#20211b; }
html[data-theme=white] .ap-loader-brand { background:#eae7d5; color:#20211b; }
html[data-theme=white] .compendium-page .islecom-search-dock { --dock-accent:#eae7d5; --dock-soft:#b0b0a0; background:#20211b; }
html[data-theme=white] .compendium-page.compendium-neo .islecom-catalogue { background:#20211b; }
html[data-theme=white] .compendium-page.compendium-neo .catalogue-card-bay { background:#20211b; }
html[data-theme=white] .compendium-neo .contribution-dialog { background:var(--archive-paper); color:var(--archive-ink); border-color:var(--archive-rule); }
html[data-theme=white] .compendium-neo :is(.archive-placeholder-art,.species-image .dino-art) { filter:grayscale(1) brightness(1.2); }
html[data-theme=white] :is(body.live-dinosaur-view,.live-dinosaur-view #main,.content-wrap.live-dinosaur-page,.specimen-console) { background:#20211b; }
html[data-theme=white] .live-dinosaur-page .terminal-toolbar { background:transparent; }
html[data-theme=white] .live-dinosaur-page .specimen-stage .specimen-scan-art { filter:grayscale(1); }
html[data-theme=white] .admin-terminal-page { --staff-accent:#eae7d5; --staff-text:#eeecdf; --staff-muted:#b0b0a0; --staff-line:#747668; }
html[data-theme=white] .islecom-search-dock button { color:var(--dock-accent); }
