/* 0XCON Silver Editorial — shared brand treatment.
   Screenshot-inspired monochrome surfaces, typography and call-to-actions.
   Semantic security alerts retain their original red / amber / green states.
   Load AFTER each page's existing stylesheets. No JavaScript or remote assets. */

:root {
  color-scheme: dark;
  --bg: #080b0f;
  --panel: #14181d;
  --panel2: #1a1f26;
  --stroke: #333a43;
  --stroke2: #48515b;
  --text: #f3f4f6;
  --muted: #a7afb9;
  --subtle: #7f8995;
  --cyan: #c8d0d8;
  --blue: #c8d0d8;
  --accent: #c8d0d8;
  --line: #333a43;
  --soc-cyan: #c8d0d8;
  --soc-cyan-d: #747f8b;
  --soc-ink: #f3f4f6;
  --soc-mute: #a7afb9;
  --soc-line: #333a43;
  --soc-panel: #14181d;
}

html,
body,
body[data-route=overview] {
  background: #080b0f;
  color: #f3f4f6;
}

body { background-image: none; }
.ambient { opacity: 0; }
::selection { background: #aeb7c1; color: #090b0e; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid #d5dbe1;
  outline-offset: 3px;
}

.topbar,
.site-header,
header.mast,
header.top,
body > header,
.workspace-menu,
.site-footer,
.page-footer {
  background: #0e1116;
  border-color: #343b45;
}

.topbar,
.site-header,
.workspace-menu,
.page-footer,
.site-footer { box-shadow: none; }

.header-brand span,
.topbar-section,
.workspace-menu-heading span,
.site-nav a,
.nav-caption,
.eyebrow,
.soc-eyebrow,
.panel-kicker,
.section-label span,
.public-hero__facts dt,
.telemetry-ticker__heading {
  color: #aab3bd;
}

.workspace-menu-toggle,
.icon-button,
.top-search,
.workspace-navigation .nav-link,
.nav-link,
.site-nav a {
  color: #d6dbe1;
  border-color: #3a424c;
}

.workspace-menu-toggle,
.top-search,
.icon-button,
.workspace-access-auth,
.workspace-details,
.session-drawer,
.site-header .site-nav a[aria-current=page] {
  background: #151a20;
}

.workspace-menu-toggle:hover,
.workspace-navigation .nav-link:hover,
.workspace-navigation .nav-link.active,
.nav-link.active,
.nav-link:hover,
.site-nav a:hover,
.site-nav a[aria-current=page] {
  background: #232a32;
  border-color: #56616d;
  color: #fff;
  box-shadow: none;
}

.workspace-navigation .nav-link.active svg,
.nav-link.active .ico,
.soc-title h1 span,
.topbar-slash { color: #e7eaee; }

:where(.panel, .sp, .metric, .stat, .module-tile, .content-card, .repo-card, .workspace-tile, .workspace-details, .plan, .status, .data-card, .soc-panel, .qt, .ops-form, .deck-panel__surface) {
  background-color: #14181d;
  border-color: #333a43;
  box-shadow: none;
}

.overview-top,
.public-hero,
.deck-feature {
  background: linear-gradient(155deg, #151a20, #0b0e12);
  border-color: #343c46;
  box-shadow: none;
}

.public-hero {
  padding: clamp(24px, 4vw, 56px);
  gap: clamp(20px, 4vw, 48px);
  border-radius: 18px;
}

.public-hero .soc-eyebrow {
  color: #b4bdc7;
  letter-spacing: .2em;
}

.public-hero h2 {
  max-width: 13ch;
  margin: 18px 0 22px;
  font-family: Inter, 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(42px, 5.8vw, 84px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.04;
  text-wrap: balance;
  color: #f3f4f6;
}

.public-hero p,
.page-heading p,
.overview-top p,
.intro,
.plan p,
.status:not([data-state]),
.site-footer { color: #a7afb9; }

/* Homepage mascot: transparent artwork, no additional navigation or controls. */
.public-hero__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 16px;
}
.public-hero__mascot {
  display: block;
  width: min(100%, 330px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .25));
}
.public-hero__aside .public-hero__facts {
  width: 100%;
}
@media (max-width: 800px) {
  .public-hero__aside { gap: 8px; }
  .public-hero__mascot { width: min(72vw, 280px); }
}

.public-hero__facts div {
  background: #101419;
  border: 1px solid #343b45;
  border-radius: 10px;
}

.public-hero__facts dd,
.page-heading h1,
.soc-title h1 { color: #f3f4f6; }

.brand-manifesto {
  color: #aeb7c1;
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.55;
  letter-spacing: .01em;
  margin: 8px 0 0;
}

.soc-btn,
.button,
.button-quiet,
.workspace-menu-footer .button,
.btn,
.action,
button[type=submit] {
  background: #1c2229;
  border-color: #49525e;
  color: #e4e8ed;
  box-shadow: none;
}

.soc-btn:hover,
.button:hover,
.btn:hover,
.action:hover {
  background: #303841;
  border-color: #818c98;
  color: #fff;
  box-shadow: none;
}

.soc-btn--primary,
.button-primary,
.btn-primary,
a.button-primary,
button.button-primary {
  background: linear-gradient(125deg, #e4e7eb, #afb8c2);
  border: 1px solid #cdd3d9;
  color: #101419;
  font-weight: 750;
  box-shadow: none;
}

.soc-btn--primary:hover,
.button-primary:hover,
.btn-primary:hover {
  background: linear-gradient(125deg, #f6f7f9, #c6ced6);
  border-color: #f2f3f5;
  color: #0b0e12;
}

:where(.soc-btn--primary, .button-primary, .btn-primary):focus-visible {
  outline-color: #fff;
  outline-offset: 3px;
}

.telemetry-ticker,
.telemetry-pill,
.local-ticker,
.soc-chip:not([data-state]),
.data-pill:not([data-state]),
.badge-preview,
.nav-chip,
.nav-number {
  border-color: #3c444f;
  background-color: #171c22;
  color: #c9d1da;
}

:where(input, select, textarea, .command-input) {
  background-color: #101419;
  border-color: #46505c;
  color: #f1f3f5;
}

:where(input, select, textarea)::placeholder { color: #8f99a5; }

a:not(.button):not(.btn):not(.action):not(.nav-link):not(.workspace-access-link):not(.soc-btn):not(.soc-link) {
  text-decoration-color: #747e89;
}

.site-footer a,
.page-footer a,
.site-nav a,
header nav a { color: #d2d7dd; }

/* Owner-only AEGIS keeps its terminal geometry and semantic alerts.
   Only its brand/background accent tokens change. */
[data-theme=midnight-cyan] {
  --mc-bg: #080b0f;
  --mc-panel: #14181d;
  --mc-panel-raised: #1b2027;
  --mc-cyan: #c8d0d8;
  --mc-cyan-2: #aeb8c2;
  --mc-heading: #f3f4f6;
  --mc-muted: #a7afb9;
  --mc-line: rgba(174, 184, 194, .28);
  --mc-border-dashed: #76828e;
  --mc-focus: #d5dbe1;
}

@media (max-width: 760px) {
  .public-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 18px;
    border-radius: 14px;
  }
  .public-hero h2 {
    font-size: clamp(42px, 10.8vw, 66px);
    letter-spacing: -.06em;
    max-width: 13ch;
  }
  .public-hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .public-hero .btn-row > * { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-hero, .soc-btn, .button { transition: none; }
}

/* --------------------------------------------------------------
   Graphite monochrome pass — sitewide, November 2026.
   This stylesheet is loaded last on every published HTML page.
   Interface surfaces and branding use only neutral black/gray/silver.
   Semantic state indicators (error, warning, success) stay meaningful.
   No global grayscale filter: it would obscure threat severity and images.
   -------------------------------------------------------------- */
:root {
  --bg: #090a0c;
  --panel: #151719;
  --panel2: #1d2024;
  --stroke: #383d43;
  --stroke2: #555c65;
  --text: #f1f2f4;
  --muted: #afb5bd;
  --subtle: #858d96;
  --cyan: #d0d4d9;
  --blue: #b8bec5;
  --violet: #9ba2aa;
  --accent: #d4d8dd;
  --line: #383d43;
  --soc-cyan: #d0d4d9;
  --soc-cyan-d: #858d96;
  --soc-ink: #f1f2f4;
  --soc-mute: #afb5bd;
  --soc-line: #383d43;
  --soc-panel: #151719;
}

html, body, body[data-route=overview] {
  background: #090a0c;
  color: #f1f2f4;
}
body .ambient { opacity: 0; }
body .main-column,
body .app-shell,
body .page-content,
body .scroll-deck,
body .workspace-stage {
  background-color: #090a0c;
}
body .topbar,
body .site-header,
body > header,
body .lab-topbar,
body .recovery-header,
body .mc-header {
  background: #101214;
  border-color: #383d43;
  box-shadow: none;
}
body .topbar-separator,
body .workspace-menu-footer,
body .session-drawer,
body .site-footer,
body .page-footer {
  border-color: #383d43;
}
/* Brand asset is already the original metallic transparent 0XCON artwork.
   Never recolor, flatten or grayscale the header wordmark in either theme. */
body .header-brand img,
body .site-brand img,
body .mc-brand img,
body .brand img,
body .identity img,
body .lab-brand img {
  filter: none !important;
}

/* Navigation, owner disclosure, dropdown and log panels. */
body .workspace-menu,
body .workspace-details,
body .session-drawer,
body .menu-connection,
body .local-ticker,
body .workspace-access-auth {
  background: #151719;
  border-color: #383d43;
  box-shadow: none;
}
body .workspace-menu-toggle,
body .workspace-menu-toggle[aria-expanded=true],
body .workspace-navigation .nav-link.active,
body .workspace-navigation .nav-link:hover,
body .nav-link.active,
body .nav-link:hover,
body .site-nav a[aria-current=page],
body .site-nav a:hover {
  background: #292e33;
  color: #f1f2f4;
  border-color: #646c75;
  box-shadow: none;
}
body .workspace-access-link,
body .workspace-access-link:hover,
body .workspace-access-link:focus-visible,
body .workspace-access-customer,
body .workspace-menu-footer .button {
  background: #202428;
  border-color: #545d66;
  color: #d8dce1;
  box-shadow: none;
}
body .workspace-access-link > .ico,
body .workspace-menu-heading strong,
body .menu-connection strong,
body .workspace-access-customer,
body .page-footer .github-sponsor a {
  color: #d1d6dc;
}
body .site-header .site-nav a[aria-current=page] {
  background: #292e33;
  border-color: #646c75;
}
body .skip-link {
  background: #202428;
  border-color: #9ba4ae;
  color: #f1f2f4;
}

/* Hero and flat scroll-deck surfaces — no navy gradients or cyan glow. */
body .deck-panel__surface,
body .deck-feature,
body .overview-top,
body .public-hero {
  background: linear-gradient(145deg, #1b1d21, #101214 70%);
  border-color: #383d43;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}
body .deck-panel__surface > .page-heading h1,
body .deck-feature h2,
body .page-heading h1,
body .public-hero h2 { color: #f1f2f4; }

/* Threat-intelligence overview panels and their internal work areas. */
body .soc .sp,
body .soc .mini,
body .soc .module-tile,
body .soc .stat,
body .soc .qt,
body .soc .feed-row,
body .soc .repo-row,
body .soc .readiness,
body .soc .geo-events,
body .soc .console,
body .soc .stack,
body .soc .geo-filter select,
body .soc .chart-empty {
  background: #151719;
  border-color: #383d43;
  box-shadow: none;
}
body .soc .sp::before { background: linear-gradient(90deg, transparent, #6d737a, transparent); }
body .soc .stat-bar { background: #272c31; }
body .soc .stat:not([data-tone=red]):not([data-tone=amber]) .stat-ico,
body .soc .module-tile .mt-ico {
  background: #252a2f;
  border-color: #555d65;
  color: #d8dde2;
}
body .soc .stat:not([data-tone=red]):not([data-tone=amber]) .stat-bar i {
  background: #b5bbc2;
  box-shadow: none;
}
body .soc .stat-sub,
body .soc .feed-row small,
body .soc .repo-row small,
body .soc .map-note span,
body .soc .geo-meta,
body .soc .geo-ev time {
  color: #afb5bd;
}
body .soc .soc-chip:not([data-state]),
body .soc .sev:not(.crit):not(.high):not(.med):not(.warn):not(.ok),
body .soc .geo-btn,
body .soc .soc-link,
body .soc .soc-btn:not(.soc-btn--primary) {
  background: #24282d;
  border-color: #535b64;
  color: #d6dbe0;
  box-shadow: none;
}
body .soc .soc-btn:not(.soc-btn--primary):hover,
body .soc .soc-link:hover,
body .soc .geo-btn:hover,
body .soc .qt:hover,
body .soc .module-tile:hover {
  background: #30363d;
  border-color: #818a93;
  color: #f6f6f7;
  box-shadow: none;
}
body .soc .geo-btn[aria-pressed=true] {
  background: #353b42;
  border-color: #b6bec7;
  color: #fff;
}
body .soc .feed-row:hover,
body .soc a.feed-row:hover,
body .kev-table tbody tr:hover { background: #252a2f; }
body .soc .feed-row { border-left-color: #626a73; }
body .soc .feed-row.crit { border-left-color: var(--soc-red); }
body .soc .feed-row.high { border-left-color: #d98565; }
body .soc .feed-row.med,
body .soc .feed-row.warn { border-left-color: var(--soc-amber); }
/* Alert cards keep their severity borders even inside neutral dashboard panels. */
body .soc .stat[data-tone=red] { border-color: #5c1a27; }
body .soc .stat[data-tone=amber] { border-color: #7b5a1d; }
body .soc .readiness { border-top-color: #383d43; }
body .soc .feed-split {
  border-top-color: #383d43;
  color: #d1d6dc;
}
body .soc .map-stage,
body .soc .world-shell {
  background: radial-gradient(ellipse at 50% 45%, #292e33, #101214 72%);
  border-color: #454c54;
}
body .soc .map-note {
  background: rgba(16, 18, 20, .93);
  border-color: #666e77;
}
body .soc .map-svg .map-grid path { stroke: #535c64; }
body .soc .map-svg pattern circle { fill: #a4aab1; }
body .soc .map-land-line { stroke: #9299a1; }
body .soc .map-note b { color: #d6dbe0; }
body .soc .console time { color: #959da6; }

/* Charts use distinct neutral shades; severity palettes stay untouched. */
body .soc .r0 { background: #d8dce0; }
body .soc .r1 { background: #979fa8; }
body .soc .r2 { background: #5b646e; }
body .soc .legend .r0 { color: #d8dce0; background: none; }
body .soc .legend .r1 { color: #aeb5bd; background: none; }
body .soc .legend .r2 { color: #8f989f; background: none; }

/* Shared status ticker — neutral chrome, keep warning/error/OK values. */
body .telemetry-ticker,
body .telemetry-ticker__row,
body .telemetry-pill,
body .telemetry-ticker__heading,
body .telemetry-ticker__viewport {
  background: #151719;
  border-color: #3d444b;
  box-shadow: none;
  scrollbar-color: #59616a transparent;
}
body .telemetry-ticker__heading strong,
body .telemetry-pill b,
body .telemetry-pill:not([data-tone]) em,
body .telemetry-ticker .telemetry-pill small {
  color: #b6bec6;
}
body .telemetry-pill[data-tone=off] em { color: #abb3bb; }
body .telemetry-pill[data-tone=ok] { border-color: #5c646e; }
body .telemetry-ticker__viewport:focus-visible,
body .telemetry-ticker__row:focus-visible { outline-color: #d0d4d9; }
body .public-hero__facts div,
body .table-scroll,
body .kev-table thead th,
body .kev-table th,
body .kev-table td {
  background-color: #171a1d;
  border-color: #3b4149;
}
body .kev-table tbody tr:hover { background: #252a2f; }

/* Repos, integration cards, connection center and technical tools. */
body .connection-row,
body .repo-hub-summary > div,
body .repo-hub-status,
body .repo-hub-card,
body .workspace-tile,
body .workspace-domain-list li,
body .terminal-box,
body .code-output,
body .result,
body .auth-card,
body .panel,
body .plan,
body .account-section,
body .details,
body .launch-notice,
body .status:not([data-state]):not(.success):not(.warning):not(.error) {
  background: #171a1d;
  border-color: #3b424a;
  box-shadow: none;
}
body .connection-info small,
body .repo-hub-eyebrow,
body .repo-hub-status strong,
body .repo-hub-summary strong,
body .repo-hub-description,
body .auth-overline,
body .account-subtitle,
body .auth-description,
body .field-help {
  color: #b5bcc4;
}
body .auth-signup {
  background: linear-gradient(150deg, #22262b, #151719);
  border-color: #636b75;
  box-shadow: none;
}
body .auth-signup .auth-primary-action,
body .auth-signup .auth-primary-action:hover,
body .plan button:not(:disabled),
body .plan button:not(:disabled):hover,
body .workspace-tile a,
body .workspace-tile a:hover {
  background: linear-gradient(120deg, #d9dde1, #adb6bf);
  color: #111316;
  border-color: #cbd0d6;
  box-shadow: none;
}
body .auth-form button:not(.danger):not(.secondary):not(.auth-primary-action),
body .auth-form button:not(.danger):not(.secondary):not(.auth-primary-action):hover,
body .captcha-retry,
body .button:not(.button-primary):not(.button-danger),
body .action:not(.danger) {
  background: #262b30;
  border-color: #606872;
  color: #ebedf0;
  box-shadow: none;
}
body .auth-card .auth-form button.secondary,
body .auth-card .auth-form button.secondary:hover,
body .plan.feature { background: #25292e; border-color: #747d87; }
body input,
body textarea,
body select,
body .field,
body .text-field,
body .command-input,
body .auth-card .auth-form input {
  background: #101214;
  border-color: #555e68;
  color: #f0f2f3;
  box-shadow: none;
}
body input:hover,
body textarea:hover,
body select:hover { border-color: #818a94; }
body .auth-card .auth-form input:focus-visible,
body .field:focus-visible,
body .text-field:focus-visible {
  outline: 2px solid #d1d5da;
  outline-offset: 2px;
  border-color: #bfc5cb;
  box-shadow: none;
}

/* Links, navigation accents, code, modals and generic informational labels. */
body a:not(.danger):not(.alert):not(.feed-row) { text-decoration-color: #838b95; }
body .site-footer a:hover,
body .page-footer a:hover,
body .site-nav a:hover,
body .back:hover,
body .workspace-access-customer:hover { color: #f3f4f5; }
body .modal,
body .command-item,
body .token,
body .badge-preview,
body .data-pill.blue,
body .status-neutral,
body .notice:not(.error):not(.warning):not(.success) {
  background: #1b1e22;
  border-color: #434b55;
  color: #cbd1d7;
  box-shadow: none;
}
body .modal-head,
body .modal-foot,
body .terminal-head { background: #1b1e22; border-color: #434b55; }
body .data-pill.blue,
body .tag:not([data-state]),
body .pill:not([data-state]) {
  background: #262b30;
  border-color: #555d66;
  color: #d1d6dc;
}

/* Links embedded in prose must be identifiable without relying on color alone.
   CISA KEV and FIRST EPSS references are tested at five Chromium viewports.
   Keep visible underlines in default, hover, visited and keyboard focus states. */
body .soc .geo-note a,
body .soc .geo-note a:visited {
  color: #eceef0;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
body .soc .geo-note a:hover,
body .soc .geo-note a:focus-visible {
  color: #ffffff;
  text-decoration-thickness: 2px;
  outline-offset: 3px;
}

/* Scoped owner AEGIS theme inherits the silver accents, never masks severity. */
[data-theme=midnight-cyan] {
  --mc-bg: #090a0c;
  --mc-panel: #151719;
  --mc-panel-raised: #202429;
  --mc-cyan: #d0d4d9;
  --mc-cyan-2: #aeb5bd;
  --mc-muted: #aeb5bd;
  --mc-heading: #f1f2f4;
  --mc-border-dashed: #7d858e;
  --mc-line: rgba(165, 173, 181, .3);
  --mc-focus: #e6e9ed;
}
/* Do not set --mc-success, --mc-warning, --mc-error, or
   --soc-red, --soc-amber, --soc-green; those indicate real state. */

@media (max-width: 760px) {
  body .deck-panel__surface { background: #141618; }
  body .public-hero { background: #151719; }
  body .workspace-menu { background: #151719; }
}


/* Accessible appearance switch — shared by every published 0XCON page.
   Graphite remains the default; only an explicit user choice enables light. */
.appearance-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid #545c65;
  border-radius: 11px;
  background: #1e2227;
  box-shadow: 0 3px 12px rgba(0,0,0,.16);
  isolation: isolate;
}
.appearance-switch__label {
  color: #b8c0c9;
  font: 700 9px/1.2 Inter,system-ui,sans-serif;
  letter-spacing: .12em;
  padding: 0 8px;
}
body .appearance-switch > .appearance-switch__option {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 53px;
  min-height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #c5cbd2;
  box-shadow: none;
  cursor: pointer;
  font: 650 12px/1.2 Inter,system-ui,sans-serif;
  letter-spacing: .01em;
}
body .appearance-switch > .appearance-switch__option[aria-pressed="true"] {
  background: #e4e7ea;
  border-color: #f5f5f6;
  color: #171a1d;
}
body .appearance-switch > .appearance-switch__option:hover:not([aria-pressed="true"]) {
  background: #333a42;
  color: #fff;
}
body .appearance-switch > .appearance-switch__option:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.appearance-switch--floating {
  position: fixed;
  right: 14px;
  bottom: max(14px,env(safe-area-inset-bottom));
  z-index: 95;
}
@media (max-width: 900px) {
  .appearance-switch__label { display: none; }
}
@media (max-width: 760px) {
  .appearance-switch { padding: 3px; gap: 2px; }
  body .appearance-switch > .appearance-switch__option {
    min-height: 42px;
    min-width: 43px;
    padding: 0 5px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .appearance-switch, .appearance-switch__option { transition: none; }
}

/* Compact security/tool page headers may have multiple links in addition to
   the theme switch. Let them wrap rather than overflow narrow phones. */
@media (max-width: 690px) {
  body > header:not(.site-header):not(.mc-header):not(.topbar) {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

/* Light appearance. Apply neutrals by component instead of a global CSS
   invert/grayscale filter: images, severity states, charts and logos remain real. */
html[data-appearance="light"] {
  color-scheme: light;
  --bg: #f3f4f6;
  --panel: #ffffff;
  --panel2: #e9ecf0;
  --stroke: #cbd0d6;
  --stroke2: #adb5bd;
  --text: #191d21;
  --muted: #505b67;
  --subtle: #65707c;
  --cyan: #39424b;
  --blue: #515d69;
  --accent: #29333c;
  --line: #cbd0d6;
  --soc-cyan: #39424b;
  --soc-cyan-d: #636c76;
  --soc-ink: #191d21;
  --soc-mute: #56616b;
  --soc-line: #cbd0d6;
  --soc-panel: #ffffff;
}
html[data-appearance="light"] body,
html[data-appearance="light"] body[data-route=overview] {
  background: #f3f4f6;
  color: #191d21;
}
html[data-appearance="light"] body .main-column,
html[data-appearance="light"] body .app-shell,
html[data-appearance="light"] body .page-content,
html[data-appearance="light"] body .scroll-deck,
html[data-appearance="light"] body .workspace-stage {
  background-color: #f3f4f6;
  color: #191d21;
}

/* Keep a dark masthead for crisp, readable white branding in both modes. */
html[data-appearance="light"] body .topbar,
html[data-appearance="light"] body .site-header,
html[data-appearance="light"] body > header,
html[data-appearance="light"] body .lab-topbar,
html[data-appearance="light"] body .recovery-header,
html[data-appearance="light"] body .mc-header {
  background: #1c2025;
  border-color: #333a42;
  color: #f2f4f6;
}
html[data-appearance="light"] body .topbar a,
html[data-appearance="light"] body .site-header a,
html[data-appearance="light"] body > header a,
html[data-appearance="light"] body .site-nav a,
html[data-appearance="light"] body .mc-brand {
  color: #e7eaed;
}
html[data-appearance="light"] body .topbar .topbar-section,
html[data-appearance="light"] body .site-header .site-nav a[aria-current="page"],
html[data-appearance="light"] body .header-brand span {
  color: #f0f2f4;
}
html[data-appearance="light"] body .workspace-menu-toggle,
html[data-appearance="light"] body .workspace-menu-toggle[aria-expanded=true] {
  background: #30363d;
  border-color: #747d87;
  color: #f4f5f6;
}
html[data-appearance="light"] body .workspace-menu,
html[data-appearance="light"] body .workspace-details,
html[data-appearance="light"] body .session-drawer,
html[data-appearance="light"] body .menu-connection {
  background: #fff;
  border-color: #cbd0d6;
  color: #191d21;
}
html[data-appearance="light"] body .workspace-navigation .nav-link,
html[data-appearance="light"] body .workspace-menu-heading,
html[data-appearance="light"] body .workspace-details > summary,
html[data-appearance="light"] body .session-drawer > summary {
  color: #2d3640;
}
html[data-appearance="light"] body .workspace-navigation .nav-link.active,
html[data-appearance="light"] body .workspace-navigation .nav-link:hover,
html[data-appearance="light"] body .nav-link.active,
html[data-appearance="light"] body .nav-link:hover {
  background: #e1e5e9;
  border-color: #b6bec8;
  color: #1e242a;
  box-shadow: none;
}
html[data-appearance="light"] body .workspace-access-link,
html[data-appearance="light"] body .workspace-access-link:hover,
html[data-appearance="light"] body .workspace-menu-footer .button {
  background: #eef0f3;
  border-color: #b1bac4;
  color: #222a32;
}
html[data-appearance="light"] body .workspace-access-link > .ico,
html[data-appearance="light"] body .workspace-access-customer,
html[data-appearance="light"] body .menu-connection strong {
  color: #303941;
}
html[data-appearance="light"] body .site-footer,
html[data-appearance="light"] body .page-footer,
html[data-appearance="light"] body footer {
  background: #e9ecf0;
  border-color: #cbd0d6;
  color: #495460;
}
html[data-appearance="light"] body .site-footer a,
html[data-appearance="light"] body .page-footer a,
html[data-appearance="light"] body footer a {
  color: #27323d;
}

/* Neutral light cards, workspaces, feature descriptions and the SOC dashboard. */
html[data-appearance="light"] body .deck-panel__surface,
html[data-appearance="light"] body .deck-feature,
html[data-appearance="light"] body .overview-top,
html[data-appearance="light"] body .public-hero,
html[data-appearance="light"] body .panel,
html[data-appearance="light"] body .plan,
html[data-appearance="light"] body .auth-card,
html[data-appearance="light"] body .auth-signup,
html[data-appearance="light"] body .connection-row,
html[data-appearance="light"] body .repo-hub-summary > div,
html[data-appearance="light"] body .repo-hub-card,
html[data-appearance="light"] body .repo-hub-status,
html[data-appearance="light"] body .workspace-tile,
html[data-appearance="light"] body .workspace-domain-list li,
html[data-appearance="light"] body .account-section,
html[data-appearance="light"] body .details,
html[data-appearance="light"] body .launch-notice {
  background: #fff;
  border-color: #cbd0d6;
  color: #1d2329;
  box-shadow: 0 2px 8px rgba(35,41,46,.045);
}
html[data-appearance="light"] body .public-hero,
html[data-appearance="light"] body .deck-feature,
html[data-appearance="light"] body .overview-top {
  background: linear-gradient(135deg,#fff,#f0f2f4);
}
html[data-appearance="light"] body .public-hero h2,
html[data-appearance="light"] body .page-heading h1,
html[data-appearance="light"] body .deck-feature h2,
html[data-appearance="light"] body .soc-title h1,
html[data-appearance="light"] body h1,
html[data-appearance="light"] body h2,
html[data-appearance="light"] body h3 {
  color: #1d2329;
}
html[data-appearance="light"] body .public-hero p,
html[data-appearance="light"] body .page-heading p,
html[data-appearance="light"] body .deck-feature p,
html[data-appearance="light"] body .intro,
html[data-appearance="light"] body .account-subtitle,
html[data-appearance="light"] body .auth-description,
html[data-appearance="light"] body .repo-hub-description,
html[data-appearance="light"] body .field-help,
html[data-appearance="light"] body .muted,
html[data-appearance="light"] body .hint,
html[data-appearance="light"] body .brand-manifesto {
  color: #505b67;
}
html[data-appearance="light"] body .eyebrow,
html[data-appearance="light"] body .soc-eyebrow,
html[data-appearance="light"] body .panel-kicker,
html[data-appearance="light"] body .auth-overline,
html[data-appearance="light"] body .repo-hub-eyebrow {
  color: #485561;
}
html[data-appearance="light"] body .soc .sp,
html[data-appearance="light"] body .soc .mini,
html[data-appearance="light"] body .soc .module-tile,
html[data-appearance="light"] body .soc .stat,
html[data-appearance="light"] body .soc .qt,
html[data-appearance="light"] body .soc .feed-row,
html[data-appearance="light"] body .soc .repo-row,
html[data-appearance="light"] body .soc .geo-events,
html[data-appearance="light"] body .soc .console,
html[data-appearance="light"] body .soc .stack,
html[data-appearance="light"] body .soc .geo-filter select,
html[data-appearance="light"] body .soc .chart-empty {
  background: #fff;
  border-color: #cbd0d6;
  color: #1d2329;
  box-shadow: none;
}
html[data-appearance="light"] body .soc .public-hero {
  background: linear-gradient(135deg,#fff,#f0f2f4);
}
html[data-appearance="light"] body .soc .sp::before {
  background: linear-gradient(90deg,transparent,#b5bbc3,transparent);
}
html[data-appearance="light"] body .soc .stat:not([data-tone=red]):not([data-tone=amber]) .stat-ico,
html[data-appearance="light"] body .soc .module-tile .mt-ico {
  background: #e8ebef;
  border-color: #c3cad1;
  color: #404a53;
}
html[data-appearance="light"] body .soc .stat-bar,
html[data-appearance="light"] body .soc .stack {
  background: #e9ecf0;
}
html[data-appearance="light"] body .soc .stat:not([data-tone=red]):not([data-tone=amber]) .stat-bar i {
  background: #7d8790;
  box-shadow: none;
}
html[data-appearance="light"] body .soc .map-stage,
html[data-appearance="light"] body .soc .world-shell {
  background: radial-gradient(ellipse at 50% 45%,#edf0f3,#dbe0e5 75%);
  border-color: #b9c2ca;
}
html[data-appearance="light"] body .soc .map-note {
  background: rgba(255,255,255,.97);
  color: #242b32;
  border-color: #b9c2ca;
}
html[data-appearance="light"] body .soc .map-svg .map-grid path { stroke: #a2aeb9; }
html[data-appearance="light"] body .soc .map-svg pattern circle { fill: #687580; }
html[data-appearance="light"] body .soc .map-land-line { stroke: #7b8995; }
html[data-appearance="light"] body .soc .feed-row:hover,
html[data-appearance="light"] body .soc a.feed-row:hover,
html[data-appearance="light"] body .soc .qt:hover {
  background: #eef1f4;
  border-color: #aeb7c0;
}
html[data-appearance="light"] body .soc .soc-chip:not([data-state]),
html[data-appearance="light"] body .soc .geo-btn,
html[data-appearance="light"] body .soc .soc-btn:not(.soc-btn--primary),
html[data-appearance="light"] body .soc .soc-link,
html[data-appearance="light"] body .public-hero__facts div,
html[data-appearance="light"] body .telemetry-ticker,
html[data-appearance="light"] body .telemetry-pill,
html[data-appearance="light"] body .telemetry-ticker__heading {
  background: #eef1f4;
  border-color: #c8d0d8;
  color: #35414d;
  box-shadow: none;
}
html[data-appearance="light"] body .telemetry-ticker__heading strong,
html[data-appearance="light"] body .telemetry-pill b,
html[data-appearance="light"] body .telemetry-pill:not([data-tone]) em {
  color: #3c4752;
}
html[data-appearance="light"] body .soc .repo-row small,
html[data-appearance="light"] body .soc .feed-row small,
html[data-appearance="light"] body .soc .stat-sub,
html[data-appearance="light"] body .soc .geo-meta,
html[data-appearance="light"] body .soc .geo-note,
html[data-appearance="light"] body .soc .map-note span,
html[data-appearance="light"] body .soc .console time,
html[data-appearance="light"] body .soc .legend,
html[data-appearance="light"] body .soc .legend b {
  color: #56616b;
}
html[data-appearance="light"] body .soc .geo-note a,
html[data-appearance="light"] body .soc .geo-note a:visited {
  color: #202930;
  text-decoration-line: underline;
  text-decoration-color: currentColor;
}

/* Inputs and actions: graphite primary buttons, off-white secondary surfaces. */
html[data-appearance="light"] body input,
html[data-appearance="light"] body textarea,
html[data-appearance="light"] body select,
html[data-appearance="light"] body .field,
html[data-appearance="light"] body .text-field,
html[data-appearance="light"] body .command-input,
html[data-appearance="light"] body .auth-card .auth-form input {
  background: #fff;
  border-color: #aeb8c2;
  color: #1c2329;
  box-shadow: none;
}
html[data-appearance="light"] body input::placeholder,
html[data-appearance="light"] body textarea::placeholder { color: #687581; }
html[data-appearance="light"] body .button,
html[data-appearance="light"] body .btn,
html[data-appearance="light"] body .soc-btn,
html[data-appearance="light"] body .action,
html[data-appearance="light"] body button[type=submit]:not(.appearance-switch__option),
html[data-appearance="light"] body .auth-signup .auth-primary-action {
  background: #303942;
  border-color: #303942;
  color: #f5f6f7;
  box-shadow: none;
}
html[data-appearance="light"] body .button:hover,
html[data-appearance="light"] body .btn:hover,
html[data-appearance="light"] body .soc-btn:hover,
html[data-appearance="light"] body .action:hover {
  background: #49535e;
  border-color: #49535e;
  color: #fff;
}
html[data-appearance="light"] body .button-primary,
html[data-appearance="light"] body .btn-primary,
html[data-appearance="light"] body .soc-btn--primary,
html[data-appearance="light"] body .plan button:not(:disabled),
html[data-appearance="light"] body .workspace-tile a,
html[data-appearance="light"] body .auth-signup .auth-primary-action {
  background: #303942;
  border-color: #303942;
  color: #fff;
}
html[data-appearance="light"] body .button:focus-visible,
html[data-appearance="light"] body .soc-btn:focus-visible,
html[data-appearance="light"] body :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #3a444e;
  outline-offset: 3px;
}
html[data-appearance="light"] body .site-header :where(a,button):focus-visible,
html[data-appearance="light"] body .topbar :where(a,button):focus-visible,
html[data-appearance="light"] body .mc-header :where(a,button):focus-visible {
  outline-color: #e7eaed;
}
html[data-appearance="light"] body .table-scroll,
html[data-appearance="light"] body .kev-table th,
html[data-appearance="light"] body .kev-table td,
html[data-appearance="light"] body .kev-table thead th {
  background-color: #fff;
  border-color: #cbd0d6;
  color: #313b45;
}
html[data-appearance="light"] body .kev-table tbody tr:hover { background: #eef1f4; }
html[data-appearance="light"] body .code-output,
html[data-appearance="light"] body .result,
html[data-appearance="light"] body .terminal-box,
html[data-appearance="light"] body .soc .console {
  background: #eef1f4;
  border-color: #c7cdd4;
  color: #242c34;
}
html[data-appearance="light"] body .modal,
html[data-appearance="light"] body .command-item,
html[data-appearance="light"] body .token,
html[data-appearance="light"] body .badge-preview,
html[data-appearance="light"] body .data-pill.blue {
  background: #eef1f4;
  border-color: #c6ced6;
  color: #2e3944;
}

/* Preserve real risk semantics with dark-on-pale badge colors in light mode.
   Never recolor every indicator or reduce severity to grayscale. */
html[data-appearance="light"] body .soc .soc-chip[data-state=ok],
html[data-appearance="light"] body .telemetry-pill[data-tone=ok] {
  background: #e4f4eb;
  border-color: #6da98c;
  color: #145f42;
}
html[data-appearance="light"] body .soc .soc-chip[data-state=warn],
html[data-appearance="light"] body .telemetry-pill[data-tone=warn] {
  background: #fff1d9;
  border-color: #bc8b3a;
  color: #80520b;
}
html[data-appearance="light"] body .soc .soc-chip[data-state=bad],
html[data-appearance="light"] body .soc .sev.crit {
  background: #fbe6e8;
  border-color: #c96a77;
  color: #992c3e;
}
html[data-appearance="light"] body .soc .stat[data-tone=red] { border-color: #c96a77; }
html[data-appearance="light"] body .soc .stat[data-tone=amber] { border-color: #bc8b3a; }
html[data-appearance="light"] body .soc .feed-row.crit { border-left-color: #b83349; }
html[data-appearance="light"] body .soc .feed-row.high { border-left-color: #a64a1f; }
html[data-appearance="light"] body .soc .feed-row.med,
html[data-appearance="light"] body .soc .feed-row.warn { border-left-color: #aa741c; }
html[data-appearance="light"] body .soc em[data-tone=ok],
html[data-appearance="light"] body .soc b[data-tone=ok] { color: #126342; }
html[data-appearance="light"] body .soc em[data-tone=warn],
html[data-appearance="light"] body .soc b[data-tone=warn] { color: #815008; }
html[data-appearance="light"] body .soc em[data-tone=bad],
html[data-appearance="light"] body .soc b[data-tone=bad] { color: #a7283f; }
html[data-appearance="light"] body .telemetry-pill[data-tone=ok] em { color: #126342; }
html[data-appearance="light"] body .telemetry-pill[data-tone=warn] em { color: #815008; }

/* AEGIS owner terminal reads its own scoped tokens, not an inverted filter. */
html[data-appearance="light"] [data-theme=midnight-cyan] {
  --mc-bg: #f3f4f6;
  --mc-panel: #fff;
  --mc-panel-raised: #eef1f4;
  --mc-cyan: #343d45;
  --mc-cyan-2: #59646f;
  --mc-text: #1c252e;
  --mc-heading: #222a32;
  --mc-muted: #56616d;
  --mc-line: #c2c9d0;
  --mc-border-dashed: #aeb7c1;
  --mc-focus: #36414c;
  background: var(--mc-bg);
  color: var(--mc-text);
}
html[data-appearance="light"] body .mc-panel,
html[data-appearance="light"] body .mc-list,
html[data-appearance="light"] body .mc-console {
  background: #fff;
  border-color: #bfc8d1;
  color: #222a32;
}
html[data-appearance="light"] body .mc-notice,
html[data-appearance="light"] body .mc-small,
html[data-appearance="light"] body .mc-muted { color: #505c68; }

/* Appearance controls always retain their dark chrome to match the header. */
html[data-appearance="light"] body .appearance-switch {
  background: #2a2f35;
  border-color: #737d88;
}
html[data-appearance="light"] body .appearance-switch > .appearance-switch__option {
  background: transparent;
  border-color: transparent;
  color: #d6dbe0;
}
html[data-appearance="light"] body .appearance-switch > .appearance-switch__option[aria-pressed="true"] {
  background: #f1f3f5;
  border-color: #fff;
  color: #15191d;
}
html[data-appearance="light"] body .appearance-switch > .appearance-switch__option:hover:not([aria-pressed="true"]) {
  background: #414850;
  color: #fff;
}

/* Light-mode contrast corrections verified against Chromium axe failures.
   Never change dark appearance, suppress axe, or de-emphasize severity. */
html[data-appearance="light"] body .telemetry-ticker__heading,
html[data-appearance="light"] body .telemetry-ticker__heading strong,
html[data-appearance="light"] body .telemetry-pill,
html[data-appearance="light"] body .telemetry-pill b,
html[data-appearance="light"] body .telemetry-pill small,
html[data-appearance="light"] body .telemetry-pill:not([data-tone="ok"]):not([data-tone="warn"]) em,
html[data-appearance="light"] body .telemetry-pill[data-tone="off"] em {
  color: #303a44;
}
html[data-appearance="light"] body .telemetry-pill[data-tone="off"] {
  background: #e8ebee;
  border-color: #abb5bf;
}
html[data-appearance="light"] body .telemetry-pill[data-tone="ok"] em {
  color: #126342;
}
html[data-appearance="light"] body .telemetry-pill[data-tone="warn"] em {
  color: #815008;
}
/* Editorial and technical-document pages still have hard-coded dark-mode link
   colors in their original CSS; readable dark-on-paper values take precedence. */
html[data-appearance="light"] body main p,
html[data-appearance="light"] body main .meta,
html[data-appearance="light"] body main .intro,
html[data-appearance="light"] body main .overline,
html[data-appearance="light"] body main .eyebrow,
html[data-appearance="light"] body main .muted {
  color: #414c57;
}
html[data-appearance="light"] body main a:not(.button):not(.btn):not(.primary):not(.danger),
html[data-appearance="light"] body main a:not(.button):not(.btn):not(.primary):not(.danger):visited {
  color: #26323d;
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.16em;
}
html[data-appearance="light"] body main .panel p,
html[data-appearance="light"] body main .entry p,
html[data-appearance="light"] body main .panel .meta {
  color: #414c57;
}
/* Wallet Security ships inline styles for dark mode: its simple page structure
   needs coherent light cards, supporting text and clearly differentiated warnings. */
html[data-appearance="light"] body main .card {
  background: #f8f9fa;
  border-color: #c0c8d0;
  color: #252d35;
}
html[data-appearance="light"] body main .status:not(.error) {
  background: #ecf0f3;
  border-color: #7d8994;
  color: #27323c;
}
html[data-appearance="light"] body main .warning {
  background: #fff2d9;
  border-color: #b68a42;
  color: #624009;
}
html[data-appearance="light"] body main .pill:not([data-state]) {
  background: #e5e9ed;
  border-color: #aeb8c2;
  color: #33414d;
}
html[data-appearance="light"] body main label,
html[data-appearance="light"] body main code,
html[data-appearance="light"] body main .mono {
  color: #303b46;
}


/* In the original SOC design, many sublabels were hard-coded pale blue or
   off-white for dark backgrounds. Explicitly remap their *text* for paper-white
   panels rather than allowing the legacy declarations to win the cascade. */
html[data-appearance="light"] body .soc .soc-title h1 span,
html[data-appearance="light"] body .soc .public-hero__facts dd,
html[data-appearance="light"] body .soc .stat-value:not([data-tone]),
html[data-appearance="light"] body .soc .bar-row b,
html[data-appearance="light"] body .soc .col b,
html[data-appearance="light"] body .soc .map-note b {
  color: #222c35;
}
html[data-appearance="light"] body .soc .public-hero__facts dt,
html[data-appearance="light"] body .soc .feed-split,
html[data-appearance="light"] body .soc .feed-split small,
html[data-appearance="light"] body .soc .readiness li,
html[data-appearance="light"] body .soc .bar-row span,
html[data-appearance="light"] body .soc .src-row,
html[data-appearance="light"] body .soc .stack-row span,
html[data-appearance="light"] body .soc .col span,
html[data-appearance="light"] body .soc .geo-ev time,
html[data-appearance="light"] body .soc .geo-events h4,
html[data-appearance="light"] body .soc .sp-title small,
html[data-appearance="light"] body .soc .mt-text small {
  color: #47535e;
}
html[data-appearance="light"] body .soc .legend .r0,
html[data-appearance="light"] body .soc .legend .r1,
html[data-appearance="light"] body .soc .legend .r2,
html[data-appearance="light"] body .soc .legend .s-run,
html[data-appearance="light"] body .soc .legend .s-other {
  color: #4b5762;
}
html[data-appearance="light"] body .soc .legend .s-ok,
html[data-appearance="light"] body .soc .console .ok span { color: #126342; }
html[data-appearance="light"] body .soc .legend .s-fail,
html[data-appearance="light"] body .soc .console .err { color: #9a293d; }
html[data-appearance="light"] body .soc .stat[data-tone="red"] .stat-value {
  color: #9a293d;
}
/* Preserve descriptive, non-error wallet status messages as dark graphite
   text on a pale gray background (the inline HTML style is dark-mode only). */
html[data-appearance="light"] body #inspect-status:not(.error),
html[data-appearance="light"] body #signer-status:not(.error) {
  background: #edf0f3;
  border-color: #737e88;
  color: #24303a;
}
html[data-appearance="light"] body #inspect-status.error,
html[data-appearance="light"] body #signer-status.error {
  background: #fbe6e8;
  border-color: #b64a5d;
  color: #832137;
}

/* Vulnerability table row details inherit a pale cyan from the original
   dark-only public-mode stylesheet. Use legible neutral secondary text. */
html[data-appearance="light"] body .soc .kev-table td small,
html[data-appearance="light"] body .soc .kev-table th small,
html[data-appearance="light"] body .soc .public-kev__body td small,
html[data-appearance="light"] body .soc .col span,
html[data-appearance="light"] body .soc .geo-ev small {
  color: #47535e;
}

/* GEN0X and repository tools use legacy cyan/light-blue text on dark cards.
   In light appearance, their descriptive labels sit on white/gray surfaces:
   give them strong graphite contrast without changing risk/status badges. */
html[data-appearance="light"] body .gen0x-identity-caption,
html[data-appearance="light"] body .repo-value,
html[data-appearance="light"] body .section-label span,
html[data-appearance="light"] body .resource-row > div > strong,
html[data-appearance="light"] body .resource-row > div > small,
html[data-appearance="light"] body .form-label,
html[data-appearance="light"] body form[data-gen0x-inspect] label,
html[data-appearance="light"] body label[for="gen0x-prefix"],
html[data-appearance="light"] body label[for="gen0x-rate"],
html[data-appearance="light"] body label[for="gen0x-factory"],
html[data-appearance="light"] body label[for="gen0x-salt"],
html[data-appearance="light"] body label[for="gen0x-code-hash"] {
  color: #26323d;
}

/* Light appearance: GEN0X inspectors must not inherit the dark background
   from the graphite theme's shared `.ops-form` card grouping. Earlier text-only
   changes made form labels dark against that still-dark form surface. */
html[data-appearance="light"] body .ops-form {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
html[data-appearance="light"] body .ops-form label,
html[data-appearance="light"] body .ops-confirm,
html[data-appearance="light"] body form[data-gen0x-inspect] label {
  color: #26323d;
}
html[data-appearance="light"] body .ops-form input,
html[data-appearance="light"] body .ops-form select,
html[data-appearance="light"] body .ops-form textarea {
  background: #ffffff;
  border-color: #929da8;
  color: #1d2833;
}

/* Connection center: legacy cyan and pale results were intended for a
   black card. Recolor text only after its parent card becomes paper white. */
html[data-appearance="light"] body .connection-row .connection-info small,
html[data-appearance="light"] body .connection-row .connection-info strong,
html[data-appearance="light"] body .connection-row .connection-info [data-integration-result] {
  color: #26323d;
}
html[data-appearance="light"] body .connection-row .connection-info [data-state="ok"] {
  color: #155f41;
}
html[data-appearance="light"] body .connection-row .connection-info [data-state="warn"] {
  color: #795009;
}
html[data-appearance="light"] body .connection-row .connection-info [data-state="error"] {
  color: #902b3e;
}
html[data-appearance="light"] body .connection-row .connection-info [data-state="checking"] {
  color: #36414d;
}

/* Session disclosure: both the label and its secondary caption are on a
   pale surface in light appearance, not the dark topbar. */
html[data-appearance="light"] body .session-drawer > summary,
html[data-appearance="light"] body .session-drawer > summary > span,
html[data-appearance="light"] body .workspace-details > summary,
html[data-appearance="light"] body .workspace-details > summary > span {
  color: #33404b;
}


/* Pure white, black-data light appearance — November 16, 2026.
   User-selected light mode is a conventional white website, not blue/gray
   tinted panels. Dark appearance and semantic threat status colors are intact. */
html[data-appearance="light"] {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel2: #ffffff;
  --stroke: #b8b8b8;
  --stroke2: #888888;
  --text: #111111;
  --muted: #353535;
  --subtle: #454545;
  --cyan: #161616;
  --blue: #333333;
  --accent: #111111;
  --line: #b8b8b8;
  --soc-cyan: #111111;
  --soc-cyan-d: #444444;
  --soc-ink: #111111;
  --soc-mute: #333333;
  --soc-line: #b8b8b8;
  --soc-panel: #ffffff;
  background: #ffffff;
  color: #111111;
}
html[data-appearance="light"] body,
html[data-appearance="light"] body[data-route=overview],
html[data-appearance="light"] body .main-column,
html[data-appearance="light"] body .app-shell,
html[data-appearance="light"] body .page-content,
html[data-appearance="light"] body .scroll-deck,
html[data-appearance="light"] body .workspace-stage,
html[data-appearance="light"] body main {
  background: #ffffff;
  color: #111111;
}
html[data-appearance="light"] body .topbar,
html[data-appearance="light"] body .site-header,
html[data-appearance="light"] body > header,
html[data-appearance="light"] body .lab-topbar,
html[data-appearance="light"] body .recovery-header,
html[data-appearance="light"] body .mc-header {
  background: #ffffff;
  border-color: #b8b8b8;
  color: #111111;
  box-shadow: none;
}
html[data-appearance="light"] body .topbar :where(a,span,strong),
html[data-appearance="light"] body .site-header :where(a,span,strong),
html[data-appearance="light"] body > header :where(a,span,strong),
html[data-appearance="light"] body .site-nav a,
html[data-appearance="light"] body .topbar-section,
html[data-appearance="light"] body .topbar-environment,
html[data-appearance="light"] body .header-brand span,
html[data-appearance="light"] body .mc-brand,
html[data-appearance="light"] body .mc-brand-name {
  color: #111111;
}
/* White theme stays white, but its logo keeps the exact same metallic pixels
   as dark theme; brightness(0) was replacing the artwork with a black silhouette. */
html[data-appearance="light"] body .header-brand img,
html[data-appearance="light"] body .site-brand img,
html[data-appearance="light"] body .mc-brand img,
html[data-appearance="light"] body .brand img,
html[data-appearance="light"] body .identity img,
html[data-appearance="light"] body .lab-brand img {
  filter: none !important;
}
html[data-appearance="light"] body .workspace-menu-toggle,
html[data-appearance="light"] body .workspace-menu-toggle[aria-expanded=true],
html[data-appearance="light"] body .site-header .site-nav a[aria-current=page] {
  background: #f1f1f1;
  border-color: #777777;
  color: #111111;
}
html[data-appearance="light"] body .workspace-menu,
html[data-appearance="light"] body .workspace-details,
html[data-appearance="light"] body .session-drawer,
html[data-appearance="light"] body .menu-connection,
html[data-appearance="light"] body .local-ticker,
html[data-appearance="light"] body .workspace-access-auth,
html[data-appearance="light"] body .site-footer,
html[data-appearance="light"] body .page-footer,
html[data-appearance="light"] body footer {
  background: #ffffff;
  border-color: #b8b8b8;
  color: #111111;
}
html[data-appearance="light"] body .deck-panel__surface,
html[data-appearance="light"] body .deck-feature,
html[data-appearance="light"] body .overview-top,
html[data-appearance="light"] body .public-hero,
html[data-appearance="light"] body .panel,
html[data-appearance="light"] body .plan,
html[data-appearance="light"] body .auth-card,
html[data-appearance="light"] body .auth-signup,
html[data-appearance="light"] body .connection-row,
html[data-appearance="light"] body .repo-hub-summary > div,
html[data-appearance="light"] body .repo-hub-card,
html[data-appearance="light"] body .repo-hub-status,
html[data-appearance="light"] body .workspace-tile,
html[data-appearance="light"] body .workspace-domain-list li,
html[data-appearance="light"] body .account-section,
html[data-appearance="light"] body .details,
html[data-appearance="light"] body .launch-notice,
html[data-appearance="light"] body .soc .sp,
html[data-appearance="light"] body .soc .mini,
html[data-appearance="light"] body .soc .module-tile,
html[data-appearance="light"] body .soc .stat,
html[data-appearance="light"] body .soc .qt,
html[data-appearance="light"] body .soc .feed-row,
html[data-appearance="light"] body .soc .repo-row,
html[data-appearance="light"] body .soc .geo-events,
html[data-appearance="light"] body .soc .console,
html[data-appearance="light"] body .soc .chart-empty,
html[data-appearance="light"] body main .card,
html[data-appearance="light"] body .repair-item,
html[data-appearance="light"] body .columns section {
  background: #ffffff;
  border-color: #b8b8b8;
  box-shadow: none;
  color: #111111;
}
html[data-appearance="light"] body .soc .map-stage,
html[data-appearance="light"] body .soc .world-shell,
html[data-appearance="light"] body .soc .map-note {
  background: #ffffff;
  border-color: #b8b8b8;
  color: #111111;
}
html[data-appearance="light"] body .soc .sp::before { background: #b8b8b8; }
html[data-appearance="light"] body .soc .stat-bar,
html[data-appearance="light"] body .soc .stack,
html[data-appearance="light"] body .public-hero__facts div,
html[data-appearance="light"] body .telemetry-ticker,
html[data-appearance="light"] body .telemetry-pill,
html[data-appearance="light"] body .telemetry-ticker__heading,
html[data-appearance="light"] body .telemetry-ticker__row,
html[data-appearance="light"] body .soc .soc-chip:not([data-state]),
html[data-appearance="light"] body .soc .geo-btn,
html[data-appearance="light"] body .soc .soc-btn:not(.soc-btn--primary),
html[data-appearance="light"] body .soc .soc-link,
html[data-appearance="light"] body .soc .stat:not([data-tone=red]):not([data-tone=amber]) .stat-ico,
html[data-appearance="light"] body .soc .module-tile .mt-ico {
  background: #ffffff;
  border-color: #b8b8b8;
  color: #111111;
}
html[data-appearance="light"] body .soc .stat-bar i { background: #444444; }
html[data-appearance="light"] body input,
html[data-appearance="light"] body textarea,
html[data-appearance="light"] body select,
html[data-appearance="light"] body .field,
html[data-appearance="light"] body .text-field,
html[data-appearance="light"] body .command-input,
html[data-appearance="light"] body .ops-form input,
html[data-appearance="light"] body .ops-form select,
html[data-appearance="light"] body .ops-form textarea {
  background: #ffffff;
  border-color: #888888;
  color: #111111;
}
html[data-appearance="light"] body .ops-form { background: transparent; border-color: transparent; }
html[data-appearance="light"] body .status:not(.error):not(.warning):not(.success),
html[data-appearance="light"] body .notice:not(.error):not(.warning):not(.success),
html[data-appearance="light"] body .terminal-box,
html[data-appearance="light"] body .code-output,
html[data-appearance="light"] body .result {
  background: #ffffff;
  color: #111111;
  border-color: #b8b8b8;
}
html[data-appearance="light"] body .soc .geo-note a,
html[data-appearance="light"] body .soc .geo-note a:visited,
html[data-appearance="light"] body main a:not(.button):not(.btn):not(.primary):not(.danger) {
  color: #111111;
  text-decoration: underline;
  text-decoration-color: currentColor;
}
html[data-appearance="light"] body .soc .stat-sub,
html[data-appearance="light"] body .soc .feed-row small,
html[data-appearance="light"] body .soc .repo-row small,
html[data-appearance="light"] body .soc .geo-meta,
html[data-appearance="light"] body .soc .map-note span,
html[data-appearance="light"] body .soc .kev-table td small,
html[data-appearance="light"] body .soc .public-kev__body td small,
html[data-appearance="light"] body main p,
html[data-appearance="light"] body .muted,
html[data-appearance="light"] body .hint,
html[data-appearance="light"] body .small,
html[data-appearance="light"] body .fine-print,
html[data-appearance="light"] body .section-label span {
  color: #333333;
}
html[data-appearance="light"] body .appearance-switch {
  background: #ffffff;
  border-color: #666666;
}
html[data-appearance="light"] body .appearance-switch__label { color: #111111; }
html[data-appearance="light"] body .appearance-switch > .appearance-switch__option {
  background: #ffffff;
  color: #111111;
  border-color: transparent;
}
html[data-appearance="light"] body .appearance-switch > .appearance-switch__option[aria-pressed="true"] {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}
html[data-appearance="light"] body .appearance-switch > .appearance-switch__option:hover:not([aria-pressed="true"]) {
  background: #eeeeee;
  color: #111111;
}
html[data-appearance="light"] body .appearance-switch > .appearance-switch__option:focus-visible,
html[data-appearance="light"] body .topbar :where(a,button):focus-visible,
html[data-appearance="light"] body .site-header :where(a,button):focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}
html[data-appearance="light"] [data-theme=midnight-cyan] {
  --mc-bg: #ffffff;
  --mc-panel: #ffffff;
  --mc-panel-raised: #ffffff;
  --mc-text: #111111;
  --mc-heading: #111111;
  --mc-muted: #333333;
  --mc-cyan: #111111;
  --mc-cyan-2: #333333;
  --mc-line: #b8b8b8;
  --mc-focus: #111111;
  background: #ffffff;
  color: #111111;
}
html[data-appearance="light"] body .mc-panel,
html[data-appearance="light"] body .mc-list,
html[data-appearance="light"] body .mc-console {
  background: #ffffff;
  border-color: #b8b8b8;
  color: #111111;
}


/* High-specificity light masthead rules. Legacy per-page dark masthead selectors
   are stronger than generic :where() rules; explicitly target those elements. */
html[data-appearance="light"] body .topbar #topbarSection,
html[data-appearance="light"] body .topbar .topbar-section,
html[data-appearance="light"] body .topbar .topbar-section span,
html[data-appearance="light"] body main h2 > span,
html[data-appearance="light"] body .soc h2 > span {
  color: #111111;
}
html[data-appearance="light"] body > header a,
html[data-appearance="light"] body > header a:visited,
html[data-appearance="light"] body > header a.brand,
html[data-appearance="light"] body > header a.brand span,
html[data-appearance="light"] body > header nav a,
html[data-appearance="light"] body .topbar a,
html[data-appearance="light"] body .topbar a:visited {
  color: #111111;
}


/* Homepage heading accent inherited a forced dark-mode span treatment.
   Explicit white-mode ink + text fill ensures it remains readable on white. */
html[data-appearance="light"] body main h2 > span,
html[data-appearance="light"] body .page-content h2 > span,
html[data-appearance="light"] body .workspace-stage h2 > span {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  text-shadow: none;
}

/* Monochrome icon-only appearance control: high contrast in both modes. */
body .appearance-switch, html[data-appearance="light"] body .appearance-switch {
  display:inline-flex;align-items:center;justify-content:center;
  margin-left:auto;padding:3px;gap:0;width:46px;height:46px;min-width:46px;
  background:#1b1d21;border:1px solid #a9b2bc;border-radius:12px;box-shadow:none;
}
body .appearance-switch > .appearance-switch__option,
body .appearance-switch > .appearance-switch__option[aria-pressed="true"] {
  display:inline-grid;place-items:center;padding:0;margin:0;width:40px;height:40px;
  min-width:40px;min-height:40px;background:transparent;border:0;
  border-radius:9px;box-shadow:none;color:#ffffff;
}
body .appearance-switch > .appearance-switch__option:hover,
body .appearance-switch > .appearance-switch__option[aria-pressed="true"]:hover {
  background:#353a40;color:#ffffff;
}
.appearance-switch__sun {display:block;width:25px;height:25px;flex:none;stroke:currentColor;fill:none;}
html[data-appearance="light"] body .appearance-switch {background:#ffffff;border-color:#555b63;}
html[data-appearance="light"] body .appearance-switch > .appearance-switch__option,
html[data-appearance="light"] body .appearance-switch > .appearance-switch__option[aria-pressed="true"] {
  background:transparent;color:#111111;border:0;
}
html[data-appearance="light"] body .appearance-switch > .appearance-switch__option:hover,
html[data-appearance="light"] body .appearance-switch > .appearance-switch__option[aria-pressed="true"]:hover {
  background:#e7e9eb;color:#111111;
}
body .appearance-switch > .appearance-switch__option:focus-visible {outline:2px solid #ffffff;outline-offset:3px;}
html[data-appearance="light"] body .appearance-switch > .appearance-switch__option:focus-visible {outline:2px solid #111111;outline-offset:3px;}
@media(max-width:760px) {
 body .appearance-switch,html[data-appearance="light"] body .appearance-switch {width:44px;min-width:44px;height:44px;padding:2px;}
 body .appearance-switch > .appearance-switch__option,body .appearance-switch > .appearance-switch__option[aria-pressed="true"] {width:38px;min-width:38px;height:38px;min-height:38px;padding:0;}
}

/* Never show status chips, counters or shortcut badges inside the workspace dropdown.
   Kept as a defensive rule for cached HTML; actual badge markup is removed too. */
body #workspaceMenu .workspace-navigation .nav-chip,
body #workspaceMenu .workspace-navigation .nav-number,
body #workspaceMenu .workspace-navigation .nav-shortcut {
  display: none !important;
}

/* Compact mobile workspace menu: remove unreadable secondary badges and microcopy.
   Keep actual routes, public subscription link, owner sign-in, and accessible labels. */
@media (max-width: 760px) {
  body #workspaceMenu .workspace-navigation .nav-caption,
  body #workspaceMenu .workspace-navigation .nav-chip,
  body #workspaceMenu .workspace-navigation .nav-shortcut,
  body #workspaceMenu .workspace-navigation .nav-number,
  body #workspaceMenu .workspace-menu-heading span,
  body #workspaceMenu .menu-connection,
  body #workspaceMenu .workspace-access-link small,
  body #workspaceMenu .workspace-access-note {
    display: none !important;
  }
  body #workspaceMenu .workspace-navigation {
    gap: 8px;
  }
  body #workspaceMenu .workspace-navigation .nav-link {
    font-size: clamp(12px, 3.2vw, 14px);
    line-height: 1.4;
    min-height: 48px;
    padding: 10px 11px;
  }
  /* Override styles.css .nav-link span:nth-child(2) { white-space:nowrap; }.
     Long labels must wrap inside their own 2-column menu cells at 360–390px. */
  body #workspaceMenu .workspace-navigation .nav-link > span:nth-child(2) {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body #workspaceMenu .workspace-menu-heading {
    padding-bottom: 11px;
  }
  body #workspaceMenu .workspace-access-link strong {
    font-size: 13px;
  }
  body #workspaceMenu .workspace-access-customer {
    min-height: 44px;
    padding: 8px 3px;
    font-size: 13px;
  }
}


/* Professional website preferences. Browser-local controls are distinct from
   authenticated account and integration settings; no pretend backend toggles. */
body .settings-modal {
  --settings-surface: #1b1e22;
  --settings-card: #24282d;
  --settings-ink: #f1f3f5;
  --settings-muted: #b1b8c0;
  --settings-border: #464e58;
  width: min(680px, calc(100vw - 24px));
  max-height: min(90dvh, 850px);
  padding: 0;
  border: 1px solid var(--settings-border);
  border-radius: 16px;
  background: var(--settings-surface);
  color: var(--settings-ink);
  overflow-y: auto;
  box-sizing: border-box;
}
html[data-appearance="light"] body .settings-modal {
  --settings-surface: #fff;
  --settings-card: #f4f5f6;
  --settings-ink: #15191e;
  --settings-muted: #505a66;
  --settings-border: #cbd1d8;
  background: #fff;
  color: #15191e;
}
body .settings-modal .modal-head,
html[data-appearance="light"] body .settings-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 15px 23px;
  background: var(--settings-surface);
  border-bottom: 1px solid var(--settings-border);
  color: var(--settings-ink);
  font: 700 13px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: .06em;
}
body .settings-modal .modal-head .icon-button { flex: none; color: var(--settings-ink); }
body .settings-modal .settings-form { padding: 20px 23px 0; font-family: Inter, system-ui, sans-serif; }
body .settings-modal .settings-intro {
  margin: 0 0 20px;
  color: var(--settings-muted);
  font-size: 13px;
  line-height: 1.6;
}
body .settings-modal .settings-group {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid var(--settings-border);
  border-radius: 12px;
  background: var(--settings-card);
}
body .settings-modal .settings-group-heading h2 {
  margin: 0 0 5px;
  color: var(--settings-ink);
  font: 700 16px/1.3 Inter, system-ui, sans-serif;
  letter-spacing: 0;
}
body .settings-modal .settings-group-heading p,
body .settings-modal .settings-hint {
  color: var(--settings-muted);
  margin: 0 0 14px;
  font: 400 12px/1.55 Inter, system-ui, sans-serif;
  letter-spacing: 0;
}
body .settings-modal .settings-hint { margin: 10px 0 0; }
body .settings-modal .settings-theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
body .settings-modal .settings-theme-options legend {
  color: var(--settings-ink);
  font: 650 12px Inter, system-ui, sans-serif;
  margin-bottom: 10px;
}
body .settings-modal .settings-theme-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-width: 0;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--settings-border);
  border-radius: 9px;
  background: var(--settings-surface);
  color: var(--settings-ink);
  letter-spacing: 0;
  cursor: pointer;
}
body .settings-modal .settings-theme-option:has(input:checked) {
  border-color: var(--settings-ink);
  box-shadow: inset 0 0 0 1px var(--settings-ink);
}
body .settings-modal .settings-theme-option input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  margin: 0;
  accent-color: var(--settings-ink);
}
body .settings-modal .settings-theme-option span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body .settings-modal .settings-theme-option strong { color: var(--settings-ink); font: 700 13px Inter, system-ui, sans-serif; }
body .settings-modal .settings-theme-option small { color: var(--settings-muted); font: 400 11px/1.35 Inter, system-ui, sans-serif; }
body .settings-modal .settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  color: var(--settings-ink);
  font: 650 12px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: 0;
}
body .settings-modal .settings-field select,
body .settings-modal .settings-field input[type="url"] {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  box-sizing: border-box;
  color: var(--settings-ink);
  background: var(--settings-surface);
  border: 1px solid var(--settings-border);
  border-radius: 8px;
  font: 500 13px/1.4 Inter, system-ui, sans-serif;
}
body .settings-modal .settings-link-list { display: grid; gap: 8px; }
body .settings-modal .settings-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px;
  border: 1px solid var(--settings-border);
  border-radius: 9px;
  background: var(--settings-surface);
  color: var(--settings-ink);
  text-decoration: none;
}
body .settings-modal .settings-link-list a:hover { border-color: var(--settings-ink); }
body .settings-modal .settings-link-list a span { display: grid; gap: 5px; min-width: 0; }
body .settings-modal .settings-link-list a strong { color: var(--settings-ink); font: 650 13px Inter, system-ui, sans-serif; }
body .settings-modal .settings-link-list a small { color: var(--settings-muted); font: 400 11px/1.4 Inter, system-ui, sans-serif; }
body .settings-modal .settings-link-list a .ico { flex: none; width: 16px; height: 16px; }
body .settings-modal .settings-advanced { margin: 0 0 16px; border: 1px solid var(--settings-border); border-radius: 12px; }
body .settings-modal .settings-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 13px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--settings-ink);
}
body .settings-modal .settings-advanced summary::-webkit-details-marker { display: none; }
body .settings-modal .settings-advanced summary span { display: grid; gap: 5px; }
body .settings-modal .settings-advanced summary strong { font: 700 13px Inter, system-ui, sans-serif; }
body .settings-modal .settings-advanced summary small { color: var(--settings-muted); font: 400 11px/1.45 Inter, system-ui, sans-serif; }
body .settings-modal .settings-advanced summary .ico { width: 16px; height: 16px; transform: rotate(-90deg); }
body .settings-modal .settings-advanced[open] summary .ico { transform: rotate(0deg); }
body .settings-modal .settings-repositories { border-top: 1px solid var(--settings-border); padding: 14px 18px 18px; }
body .settings-modal .settings-local-data {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 20px;
}
body .settings-modal .settings-local-data strong { color: var(--settings-ink); font: 700 12px Inter, system-ui, sans-serif; }
body .settings-modal .settings-local-data p { margin: 5px 0 0; color: var(--settings-muted); font: 400 11px/1.5 Inter, system-ui, sans-serif; }
body .settings-modal .settings-local-data .button { flex: none; min-height: 40px; }
body .settings-modal .settings-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 -23px;
  padding: 14px 23px;
  border-top: 1px solid var(--settings-border);
  background: var(--settings-surface);
}
body .settings-modal :is(a,button,input,select,summary):focus-visible {
  outline: 2px solid var(--settings-ink);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  body .settings-modal .modal-head { padding: 12px 15px; min-height: 54px; }
  body .settings-modal .settings-form { padding: 15px 13px 0; }
  body .settings-modal .settings-group { padding: 14px; }
  body .settings-modal .settings-theme-options { grid-template-columns: minmax(0,1fr); }
  body .settings-modal .settings-local-data { flex-direction: column; align-items: flex-start; }
  body .settings-modal .settings-actions { margin: 0 -13px; padding: 12px 13px; }
  body .settings-modal .settings-actions .button { flex: 1 1 auto; }
}
/* Ensure source, caption and bar labels stay readable in pure-white appearance. */
html[data-appearance="light"] body .soc .chart-body .chart-source,
html[data-appearance="light"] body .soc .chart-body .chart-caption,
html[data-appearance="light"] body .soc .chart-body .chart-columns .col b,
html[data-appearance="light"] body .soc .chart-body .chart-columns .col span,
html[data-appearance="light"] body .soc .chart-body .legend {
  color:#252c33;
}


/* 2026-11-16: neutral two-mode contrast contract.
   Decorative backgrounds are gray, never navy. Preserve real status colors,
   maps, brand artwork and user-selected ONS identity colors. */
html[data-appearance="dark"] {
  color-scheme:dark;
  --bg:#090909;--panel:#171717;--panel2:#252525;
  --stroke:#484848;--stroke2:#707070;
  --text:#f8f8f8;--muted:#c9c9c9;--subtle:#aeaeae;
  --cyan:#ebebeb;--blue:#d4d4d4;--accent:#f0f0f0;--line:#484848;
  --soc-cyan:#ebebeb;--soc-cyan-d:#b5b5b5;--soc-ink:#f8f8f8;
  --soc-mute:#c9c9c9;--soc-line:#484848;--soc-panel:#171717;
}
html[data-appearance="light"] {
  color-scheme:light;
  --bg:#ffffff;--panel:#ffffff;--panel2:#f4f4f4;
  --stroke:#b8b8b8;--stroke2:#777777;
  --text:#111111;--muted:#333333;--subtle:#444444;
  --cyan:#111111;--blue:#222222;--accent:#111111;--line:#b8b8b8;
  --soc-cyan:#111111;--soc-cyan-d:#444444;--soc-ink:#111111;
  --soc-mute:#333333;--soc-line:#b8b8b8;--soc-panel:#ffffff;
}
html[data-appearance="dark"] body,
html[data-appearance="dark"] body main,
html[data-appearance="dark"] body .app-shell,
html[data-appearance="dark"] body .main-column,
html[data-appearance="dark"] body .workspace-stage {
  background-color:#090909;color:#f8f8f8;
}
html[data-appearance="light"] body,
html[data-appearance="light"] body main,
html[data-appearance="light"] body .app-shell,
html[data-appearance="light"] body .main-column,
html[data-appearance="light"] body .workspace-stage {
  background-color:#ffffff;color:#111111;
}
/* Legacy full-page tools have direct sections rather than shared .panel
   classes. Never invert an alert or security-status section. */
html[data-appearance="dark"] body main > :is(section,article):not(.warning):not(.error):not(.success):not([data-state]):not([data-tone]) {
  background:#171717;border-color:#484848;color:#f8f8f8;
}
html[data-appearance="light"] body main > :is(section,article):not(.warning):not(.error):not(.success):not([data-state]):not([data-tone]) {
  background:#ffffff;border-color:#b8b8b8;color:#111111;
}
html[data-appearance="dark"] body :is(.panel,.content-card,.repo-card,.workspace-tile,.auth-card,.account-section,.data-card,.module-tile):not([data-state]):not([data-tone]) {
  background:#171717;border-color:#484848;color:#f8f8f8;
}
html[data-appearance="light"] body :is(.panel,.content-card,.repo-card,.workspace-tile,.auth-card,.account-section,.data-card,.module-tile):not([data-state]):not([data-tone]) {
  background:#ffffff;border-color:#b8b8b8;color:#111111;
}
html[data-appearance="dark"] body :is(.topbar,.site-header,.lab-topbar,.mc-header,.workspace-menu) {
  background:#101010;border-color:#484848;color:#f8f8f8;
}
html[data-appearance="light"] body :is(.topbar,.site-header,.lab-topbar,.mc-header,.workspace-menu) {
  background:#ffffff;border-color:#b8b8b8;color:#111111;
}
html[data-appearance="dark"] body :is(input,select,textarea,pre,.code-output,.terminal-box) {
  background-color:#111111;border-color:#707070;color:#f8f8f8;
}
html[data-appearance="light"] body :is(input,select,textarea,pre,.code-output,.terminal-box) {
  background-color:#ffffff;border-color:#777777;color:#111111;
}
html[data-appearance="dark"] body :is(input,textarea)::placeholder {color:#bdbdbd;}
html[data-appearance="light"] body :is(input,textarea)::placeholder {color:#555555;}
html[data-appearance="dark"] body :is(.label,.eyebrow,.section-label,.page-description,.hint,.muted):not([data-state]) {color:#cacaca;}
html[data-appearance="light"] body :is(.label,.eyebrow,.section-label,.page-description,.hint,.muted):not([data-state]) {color:#333333;}
html[data-appearance="dark"] body main > :is(section,article) :is(h2,h3,h4,label):not([data-tone]) {color:#f8f8f8;}
html[data-appearance="light"] body main > :is(section,article) :is(h2,h3,h4,label):not([data-tone]) {color:#111111;}
html[data-appearance="dark"] body :is(.notice:not(.error):not(.warning):not(.success),.status-neutral) {
  background:#252525;border-color:#707070;color:#e5e5e5;
}
html[data-appearance="light"] body :is(.notice:not(.error):not(.warning):not(.success),.status-neutral) {
  background:#f4f4f4;border-color:#aaaaaa;color:#222222;
}
/* OXcon Name Service legacy palette repair: no navy cards or pale-on-white
   headings. The address-color chooser is intentionally still functional. */
html[data-appearance="dark"] body.ons-page {
  background:#090909;color:#f8f8f8;
}
html[data-appearance="light"] body.ons-page {
  background:#ffffff;color:#111111;
}
html[data-appearance="dark"] body.ons-page main > section,
html[data-appearance="dark"] body.ons-page .pass {
  background:#171717;border-color:#484848;color:#f8f8f8;
}
html[data-appearance="light"] body.ons-page main > section,
html[data-appearance="light"] body.ons-page .pass {
  background:#ffffff;border-color:#b8b8b8;color:#111111;
}
html[data-appearance="dark"] body.ons-page :is(h1,h2,h3,header a,header .label,label,p,footer,.label,figcaption) {
  color:#f1f1f1;
}
html[data-appearance="light"] body.ons-page :is(h1,h2,h3,header a,header .label,label,p,footer,.label,figcaption) {
  color:#222222;
}
html[data-appearance="dark"] body.ons-page :is(input,select,pre,.identity) {
  background:#222222;border-color:#666666;color:#f8f8f8;
}
html[data-appearance="light"] body.ons-page :is(input,select,pre,.identity) {
  background:#ffffff;border-color:#888888;color:#111111;
}
html[data-appearance="dark"] body.ons-page :is(button,button.secondary) {
  background:#333333;border-color:#888888;color:#ffffff;
}
html[data-appearance="light"] body.ons-page :is(button,button.secondary) {
  background:#171717;border-color:#171717;color:#ffffff;
}
html[data-appearance="dark"] body.ons-page :is(button,button.secondary):hover:not(:disabled) {background:#494949;}
html[data-appearance="light"] body.ons-page :is(button,button.secondary):hover:not(:disabled) {background:#383838;}
html[data-appearance="light"] body.ons-page .identity.color-default {color:#111111;}
html[data-appearance="dark"] body.ons-page .identity.color-default {color:#ffffff;}
body.ons-page .identity code {color:inherit;}
/* Optional, intentional identity accents remain readable against white. */
html[data-appearance="light"] body.ons-page .identity.color-cyan {color:#07586a;}
html[data-appearance="light"] body.ons-page .identity.color-violet {color:#55378f;}
html[data-appearance="light"] body.ons-page .identity.color-gold {color:#745113;}
html[data-appearance="light"] body.ons-page .identity.color-mint {color:#17634b;}
html[data-appearance="dark"] body.ons-page .pass,
html[data-appearance="light"] body.ons-page .pass {background-image:none;}


/* Complete the ONS cosmetic color-choice palette without tinting page chrome. */
html[data-appearance="dark"] {background:#090909;}
html[data-appearance="light"] {background:#ffffff;}
html[data-appearance="dark"] body.ons-page a {color:#f3f3f3;text-decoration-color:currentColor;}
html[data-appearance="dark"] body.ons-page .identity.color-cyan {color:#71e7f8;}
html[data-appearance="dark"] body.ons-page .identity.color-violet {color:#c5adff;}
html[data-appearance="dark"] body.ons-page .identity.color-gold {color:#f1d183;}
html[data-appearance="dark"] body.ons-page .identity.color-mint {color:#8ee2bb;}


/* 2026-11-16 browser accessibility follow-up: rendered light/dark contrasts.
   Every rule responds to an observed Chromium/axe failure; keep WCAG checks
   enabled and preserve threat/warning state semantics. */

/* Black Box — the provider availability notice is a semantic amber warning. */
html[data-appearance="dark"] body .availability-help {
  background:#29231b;border-left-color:#d4a351;color:#ffe4ae;
}
html[data-appearance="light"] body .availability-help,
html[data-appearance="light"] body #availabilityHelp {
  background:#fff3dc;border-left-color:#95610b;color:#624008;
}

/* Blockchain Investigation — standalone cards, explanatory copy and links. */
html[data-appearance="dark"] body .diagnostic-panel,
html[data-appearance="dark"] body .cards .card {
  background:#171717;border-color:#484848;color:#f8f8f8;
}
html[data-appearance="light"] body .diagnostic-panel,
html[data-appearance="light"] body .cards .card {
  background:#ffffff;border-color:#b8b8b8;color:#111111;
}
html[data-appearance="light"] body .cards .card p,
html[data-appearance="light"] body .cards .card p.feedback,
html[data-appearance="light"] body .diagnostic-panel p,
html[data-appearance="light"] body .diagnostic-help,
html[data-appearance="light"] body .diagnostic-row,
html[data-appearance="light"] body .diagnostic-row strong,
html[data-appearance="light"] body .identity small,
html[data-appearance="light"] body .card .tag {
  color:#303030;
}
html[data-appearance="dark"] body .diagnostic-row strong,
html[data-appearance="dark"] body .identity small {color:#e0e0e0;}
html[data-appearance="light"] body .diagnostic-row {border-bottom-color:#b8b8b8;}
html[data-appearance="dark"] body .diagnostic-help > a,
html[data-appearance="dark"] body .diagnostic-help > a:visited,
html[data-appearance="light"] body .diagnostic-help > a,
html[data-appearance="light"] body .diagnostic-help > a:visited {
  color:inherit;
  text-decoration-line:underline;
  text-decoration-style:solid;
  text-decoration-color:currentColor;
  text-decoration-thickness:1px;
  text-underline-offset:0.18em;
}

/* Public changelog — reset buttons are real actions, not dark text on navy. */
html[data-appearance="dark"] body button[type="reset"] {
  background:#282828;border-color:#888888;color:#ffffff;
}
html[data-appearance="light"] body button[type="reset"] {
  background:#171717;border-color:#171717;color:#ffffff;
}

/* GitHub monitoring — action anchors and the unpopulated records table. */
html[data-appearance="dark"] body .columns section,
html[data-appearance="dark"] body .records,
html[data-appearance="dark"] body .records article {
  background:#171717;border-color:#484848;color:#f8f8f8;
}
html[data-appearance="light"] body .columns section,
html[data-appearance="light"] body .records,
html[data-appearance="light"] body .records article {
  background:#ffffff;border-color:#b8b8b8;color:#111111;
}
html[data-appearance="dark"] body a.action,
html[data-appearance="dark"] body a.action:visited {
  background:#333333;border-color:#888888;color:#ffffff;
}
html[data-appearance="light"] body a.action,
html[data-appearance="light"] body a.action:visited {
  background:#171717;border-color:#171717;color:#ffffff;
}
html[data-appearance="light"] body .records a {color:#111111;text-decoration:underline;}

/* Recovery information — notice emphasis must remain legible. */
html[data-appearance="light"] body .recovery-shell .notice,
html[data-appearance="light"] body .recovery-shell .notice strong {
  color:#171717;
}
html[data-appearance="dark"] body .recovery-shell .notice,
html[data-appearance="dark"] body .recovery-shell .notice strong {
  color:#f8f8f8;
}

/* Legal pages — their old CSS assigns pale blue text directly to list items. */
html[data-appearance="light"] body .legal :is(p,li,.meta,code),
html[data-appearance="light"] body .legal footer {
  color:#333333;
}
html[data-appearance="light"] body .legal code {
  background:#f0f0f0;border:1px solid #cccccc;color:#171717;
}
html[data-appearance="dark"] body .legal code {
  background:#252525;color:#f8f8f8;
}

/* Revenue Lab — neutralize decorative teal cards and legibility of all
   metadata; semantic success/error/warning indicators stay as such. */
html[data-appearance="dark"] body :is(.lab-stat,.lab-agent,.lab-card,.lab-opportunity,.lab-link-grid a) {
  background:#171717;border-color:#484848;color:#f8f8f8;
}
html[data-appearance="light"] body :is(.lab-stat,.lab-agent,.lab-card,.lab-opportunity,.lab-link-grid a) {
  background:#ffffff;border-color:#b8b8b8;color:#111111;
}
html[data-appearance="dark"] body :is(.lab-eyebrow,.lab-hero h1 span,.lab-chip,.lab-count,.lab-stat small,.lab-stat strong,.lab-stat span,.lab-agent-state,.lab-link-grid strong,.lab-link-grid span,.lab-footnote,.lab-status,.lab-selected,.lab-ledger-row span) {
  color:#e2e2e2;
}
html[data-appearance="light"] body :is(.lab-eyebrow,.lab-hero h1 span,.lab-chip,.lab-count,.lab-stat small,.lab-stat strong,.lab-stat span,.lab-agent-state,.lab-link-grid strong,.lab-link-grid span,.lab-footnote,.lab-status,.lab-selected,.lab-ledger-row span) {
  color:#303030 !important;
}
html[data-appearance="light"] body .lab-card :is(p,label,.lab-check,.lab-footnote),
html[data-appearance="light"] body .lab-card p.lab-status,
html[data-appearance="light"] body .lab-ledger :is(.lab-chip,.lab-footnote),
html[data-appearance="light"] body .lab-link-grid a :is(strong,span) {
  color:#303030 !important;
}
html[data-appearance="light"] body .lab-stat {box-shadow:none;}
html[data-appearance="dark"] body .lab-chip {border-color:#777777;}
html[data-appearance="light"] body .lab-chip {border-color:#999999;}
html[data-appearance="dark"] body .lab-secondary {background:#292929 !important;color:#ffffff;}
html[data-appearance="light"] body .lab-secondary {background:#e8e8e8 !important;color:#111111;}
html[data-appearance="dark"] body .lab-card button:not(.lab-danger) {
  background:#303030;border-color:#888888;color:#ffffff;
}
html[data-appearance="light"] body .lab-card button:not(.lab-danger) {
  background:#171717;border-color:#171717;color:#ffffff;
}

/* Sentinel Six — old cyan headings and pending status were too pale on white.
   Status text is grounded neutral, without pretending the service is active. */
html[data-appearance="dark"] body :is(.module,.panel,.hero-mark,.metric,.findings li,.asset-list li,.challenge,.status) {
  background:#171717;border-color:#484848;color:#f8f8f8;box-shadow:none;
}
html[data-appearance="light"] body :is(.module,.panel,.hero-mark,.metric,.findings li,.asset-list li,.challenge,.status) {
  background:#ffffff;border-color:#b8b8b8;color:#111111;box-shadow:none;
}
html[data-appearance="dark"] body :is(.kicker,.module span,.module .meta,.num,.metric b,.metric span,.state,.note,.asset-list span,.challenge div span) {
  color:#dedede;
}
html[data-appearance="light"] body :is(.kicker,.module span,.module .meta,.num,.metric b,.metric span,.state,.note,.asset-list span,.challenge div span) {
  color:#303030;
}
html[data-appearance="dark"] body .asset-registry .state,
html[data-appearance="dark"] body .monitor-panel .state {color:#dedede;}
html[data-appearance="light"] body .asset-registry .state,
html[data-appearance="light"] body .monitor-panel .state {color:#303030;}
html[data-appearance="dark"] body button.primary,
html[data-appearance="dark"] body button.secondary {
  background:#303030;border-color:#888888;color:#ffffff;
}
html[data-appearance="light"] body button.primary,
html[data-appearance="light"] body button.secondary {
  background:#171717;border-color:#171717;color:#ffffff;
}

/* Wallet recovery — muted instructions and step cards must not stay navy
   behind black ink in light mode. Warning remains explicitly amber. */
html[data-appearance="dark"] body .step {
  background:#242424;border:1px solid #666666;color:#f0f0f0;
}
html[data-appearance="light"] body .step {
  background:#f5f5f5;border:1px solid #aaaaaa;color:#222222;
}
html[data-appearance="dark"] body main small {color:#dedede;}
html[data-appearance="light"] body main small {color:#333333;}
html[data-appearance="dark"] body .warning {
  background:#29231b;border-color:#987138;color:#ffe1a6;
}
html[data-appearance="light"] body .warning {
  background:#fff4df;border-color:#b48335;color:#664005;
}

/* Final neutral background for the new named page types; never alter images
   or remove the meaningful severity colors on intelligence dashboards. */
html[data-appearance="dark"] body :is(.lab-link-grid a,.module,.step) {box-shadow:none;}
html[data-appearance="light"] body :is(.lab-link-grid a,.module,.step) {box-shadow:none;}


/* Authenticated GitHub App setup anchors are buttons, not prose links:
   beat the high-specificity main a:not(...) editorial rule in light mode. */
html[data-appearance="light"] body main a#installApp.action,
html[data-appearance="light"] body main a#installApp.action:visited,
html[data-appearance="light"] body main a#connectApp.action,
html[data-appearance="light"] body main a#connectApp.action:visited {
  background:#171717;
  border-color:#171717;
  color:#ffffff;
  text-decoration:none;
}
html[data-appearance="dark"] body main a#installApp.action,
html[data-appearance="dark"] body main a#connectApp.action {
  background:#333333;
  border-color:#888888;
  color:#ffffff;
  text-decoration:none;
}


/* Final Chromium axe contrast fixes. Keep high specificity to beat legacy
   #id states and !important backgrounds in the original page styles. */

/* Blockchain Investigation: pale teal status tags sat on white cards. */
html[data-appearance="light"] body .cards .card .card-head .tag,
html[data-appearance="light"] body .diagnostic-panel .card-head .tag {
  background:#f0f0f0;border:1px solid #777777;color:#111111;
}
html[data-appearance="dark"] body .cards .card .card-head .tag,
html[data-appearance="dark"] body .diagnostic-panel .card-head .tag {
  background:#292929;border:1px solid #777777;color:#f8f8f8;
}

/* Intelligence: actual gateway states have ID-scoped pale on dark colors. */
html[data-appearance="light"] body #connection,
html[data-appearance="light"] body #connection.configured {
  background:#f4f4f4;border-color:#888888;color:#222222;
}
html[data-appearance="light"] body #connection.ready {
  background:#e7f4ec;border-color:#568b6d;color:#115634;
}
html[data-appearance="light"] body #connection.error {
  background:#fff0e5;border-color:#bb8260;color:#82350e;
}
html[data-appearance="dark"] body #connection,
html[data-appearance="dark"] body #connection.configured {
  background:#252525;border-color:#777777;color:#f3f3f3;
}

/* Revenue Lab: .lab-secondary background is deliberately pale in light
   mode. Ensure the ink wins over the generic dark-action text rule. */
html[data-appearance="light"] body .lab-card button.lab-secondary,
html[data-appearance="light"] body .lab-card button.lab-secondary:hover:not(:disabled) {
  background:#e8e8e8 !important;
  border-color:#777777 !important;
  color:#111111 !important;
}
html[data-appearance="dark"] body .lab-card button.lab-secondary,
html[data-appearance="dark"] body .lab-card button.lab-secondary:hover:not(:disabled) {
  background:#292929 !important;
  border-color:#888888 !important;
  color:#ffffff !important;
}


/* Sitewide editorial identities: each page and workspace has its own
   useful, truthful one-line promise and a concise scope description.
   Existing h1s, security notices, forms, navigation and tool logic remain
   intact. The homepage retains its original "Intelligence beyond the noise." */
body :is(main,.workspace-stage,.deck-panel__surface) > .ox-page-signature {
  --signature-accent:#a9bcc5;
  display:block;
  width:100%;
  min-width:0;
  margin:14px 0 26px;
  padding:clamp(24px,4vw,46px);
  border:1px solid #474b51;
  border-radius:26px;
  color:#f3f4f6;
  background:linear-gradient(130deg,rgba(28,31,35,.97),rgba(15,18,22,.95));
  box-shadow:none;
  text-align:left;
  overflow-wrap:break-word;
}
body .ox-page-signature[data-family="intelligence"] {--signature-accent:#9fd2d3}
body .ox-page-signature[data-family="web3"] {--signature-accent:#b1b6e3}
body .ox-page-signature[data-family="identity"] {--signature-accent:#acc9b6}
body .ox-page-signature[data-family="research"] {--signature-accent:#d4bc9e}
body .ox-page-signature[data-family="legal"] {--signature-accent:#b7b7bb}
body .ox-page-signature__eyebrow {
  display:block;
  margin:0 0 20px;
  font:650 .74rem/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;
  text-transform:uppercase;
  letter-spacing:.24em;
  color:var(--signature-accent);
}
body .ox-page-signature__motto {
  margin:0 0 22px;
  max-width:900px;
  font-size:clamp(2rem,4.5vw,3.8rem);
  line-height:1.09;
  letter-spacing:-.055em;
  font-weight:850;
  color:#f6f7f8;
  text-wrap:balance;
}
body .ox-page-signature__about {
  margin:0;
  max-width:890px;
  color:#bcc3cc;
  font-size:clamp(.94rem,1.4vw,1.08rem);
  font-weight:520;
  line-height:1.65;
  text-wrap:pretty;
}
body .ox-tool-motto {
  display:block;
  margin:7px 0 10px;
  color:#c7d8da;
  font-size:.89rem;
  font-weight:700;
  line-height:1.5;
  letter-spacing:.008em;
}
body .module .ox-tool-motto {
  margin:2px 0;
  color:#d3e6e5;
  font-size:.82rem;
  font-weight:700;
}
/* The page intro is a supplementary brand promise, not a second document h1.
   Keep the original heading as the accessible page title. */
html[data-appearance="light"] body :is(main,.workspace-stage,.deck-panel__surface) > .ox-page-signature {
  background:#fff;
  border-color:#b8bdc3;
  color:#15191e;
  box-shadow:none;
}
html[data-appearance="light"] body .ox-page-signature__eyebrow {color:#45535b}
html[data-appearance="light"] body .ox-page-signature__motto {color:#111}
html[data-appearance="light"] body .ox-page-signature__about {color:#38424c}
html[data-appearance="light"] body .ox-tool-motto,
html[data-appearance="light"] body .module .ox-tool-motto {color:#30454c}
@media(max-width:760px){
  body :is(main,.workspace-stage,.deck-panel__surface) > .ox-page-signature {padding:24px 20px;margin:12px 0 22px;border-radius:19px}
  body .ox-page-signature__eyebrow {letter-spacing:.16em;margin-bottom:15px}
  body .ox-page-signature__motto {font-size:clamp(1.95rem,8vw,2.8rem);line-height:1.13}
  body .ox-page-signature__about {font-size:.94rem}
}
@media(prefers-reduced-motion:reduce){
  body .ox-page-signature,body .ox-page-signature * {animation:none!important;transition:none!important}
}
