/* Shared visitor preferences. Default/dark keeps the established Maige artwork. */
.maige-preferences{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:9px var(--pad,24px);min-height:54px;border-bottom:1px solid #bfa1e51a;background:#100d18;color:#cfc0e0;font:12px/1.4 DM,Maige,Arial,sans-serif;position:relative;z-index:6;box-sizing:border-box}
.maige-preferences label{display:flex;align-items:center;gap:8px;margin:0;color:#cfc0e0;font-size:11px;line-height:1.5;white-space:nowrap}
.maige-preferences select,.maige-preferences button{width:auto;min-width:0;min-height:36px;margin:0;border:1px solid #ad8cda40;border-radius:8px;background:#1d1529;color:#eee4ff;font:inherit;line-height:1.4;padding:7px 10px;cursor:pointer;letter-spacing:normal;box-sizing:border-box}
.maige-preferences select{color-scheme:dark;padding-right:24px;font-size:12px}
.maige-preferences button{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.maige-preferences button:hover{border-color:#bd95ee;background:#30203e}
.maige-preferences :is(select,button):focus-visible{outline:2px solid #83dedf;outline-offset:3px}
.sidebar>.maige-preferences{justify-content:flex-start;flex-wrap:wrap;gap:8px;padding:18px 0 0;margin-top:20px;border:0;background:transparent;z-index:1}
.sidebar>.maige-preferences label{font-size:10px;gap:6px}
.sidebar>.maige-preferences select,.sidebar>.maige-preferences button{font-size:11px;padding:7px 9px}
.sidebar>.maige-preferences select{padding-right:21px}
.sidebar>.maige-preferences+.sidebar-bottom{padding-top:18px}
body:has(.perspectives) .maige-preferences~header{top:54px}
@media(max-width:700px){.maige-preferences{min-height:53px;padding:8px 16px;gap:12px;justify-content:flex-end}.maige-preferences label{font-size:10px;gap:6px}.maige-preferences select{font-size:13px}.maige-preferences button{font-size:11px}.sidebar>.maige-preferences{grid-column:1/-1;justify-content:flex-end;margin:0;padding:8px 0 10px;border-top:1px solid #bfa1e51a;min-height:48px}.sidebar>.maige-preferences+.sidebar-bottom{padding-top:0}}
@media(max-width:700px){body:has(.perspectives) .maige-preferences~header{top:53px}}
@media(max-width:360px){.maige-preferences{gap:8px;padding-inline:12px}.maige-preferences label{gap:4px}.maige-preferences button{gap:5px;padding-inline:8px}}
@media print{.maige-preferences{display:none!important}}

/* Screen only: formal reports retain their existing print treatment. The fine
   gold intersections belong to the environment, never to charts or data. */
@media screen{
  html[data-theme="light"]{
    color-scheme:light;
    --bg:#faf9f6;--panel:#fff;--text:#241c37;--ink:#241c37;--muted:#655c74;
    --line:#37214e24;--violet:#7141b9;--cyan:#087c89;
    --theme-ink:#241c37;--theme-copy:#655c74;--theme-link:#6431a5;
    --theme-accent:#7141b9;--theme-cyan:#087783;--theme-surface:#fff;
  }
  html[data-theme="light"] body{
    background-color:var(--bg);color:var(--theme-ink);
    background-image:radial-gradient(ellipse at 78% 2%,#e5dafa75,transparent 43%),radial-gradient(ellipse at 18% 54%,#d8eff241,transparent 44%),repeating-linear-gradient(30deg,transparent 0 79px,#b48b2e0b 79px 80px,transparent 80px 159px),repeating-linear-gradient(150deg,transparent 0 79px,#b48b2e0b 79px 80px,transparent 80px 159px);
    background-attachment:scroll;
  }
  html[data-theme="light"] ::selection{background:#dac3fa;color:#241135}
  html[data-theme="light"] :is(p,li,dd,small,label,caption,dt,span,em){color:var(--theme-copy)!important}
  html[data-theme="light"] :is(h1,h2,h3,h4,h5,strong,b,output,summary,legend,th,td){color:var(--theme-ink)!important}
  html[data-theme="light"] :is(a,button){color:var(--theme-link)}
  html[data-theme="light"] :is(code,pre){color:var(--theme-cyan)!important}
  html[data-theme="light"] :is(input,select,textarea){background:#fff!important;color:#241c37!important;border-color:#8e7a9c78;color-scheme:light;box-shadow:0 1px 2px #3c245305}
  html[data-theme="light"] :is(input,textarea)::placeholder{color:#796c85;opacity:1}
  html[data-theme="light"] input[type=checkbox],html[data-theme="light"] input[type=radio]{accent-color:#7340bd}
  html[data-theme="light"] :is(input,select,textarea,button,a,summary,[tabindex]):focus-visible{outline-color:#087c89}
  html[data-theme="light"] .maige-preferences{background:#faf9f6e8;border-color:#a088bd26;color:#655c74}
  html[data-theme="light"] .maige-preferences :is(select,button){color:#523675!important;background:#fff;border-color:#9e84b75c}
  html[data-theme="light"] .maige-preferences button:hover{background:#eee4fa;border-color:#8f66bc}
  html[data-theme="light"] .maige-preferences button span{color:inherit!important}
  html[data-theme="light"] .nav,html[data-theme="light"] .site-paths,html[data-theme="light"] body>header{border-color:var(--line);background:#faf9f65c}
  html[data-theme="light"] :is(.brand,.brand b){color:#2e2141!important}
  html[data-theme="light"] :is(.brand-spark,.brand>span:first-child,.small-spark,.invitation-spark,.panel-spark,.pending-spark,.capability-spark,.become-spark){color:#8651c1!important;text-shadow:0 0 24px #9c71d72b;filter:none}
  html[data-theme="light"] :is(.brand-dev,.brand small){color:#776885!important}
  html[data-theme="light"] :is(.nav nav>a,.nav-try,.nav-link,.site-paths a,.quiet-link,.quiet-button,.text-button,.project-link,.free-why,.file-link,.outcome-link,.statement-preview-link,.mod-identity a,.back-home){color:#6431a5!important}
  html[data-theme="light"] :is(.nav nav>a:hover,.nav-link:hover,.quiet-button:hover,.text-button:hover,.site-paths a:hover,.free-why:hover){color:#381a64!important}
  html[data-theme="light"] :is(.button.secondary,.secondary,.nav-contact,.delivery-avenues a,.cta,.system-buttons button){background:#ffffffb8;color:#59318b!important;border-color:#a488bd70;box-shadow:0 2px 8px #3f235107}
  html[data-theme="light"] :is(.button.secondary,.secondary,.nav-contact,.delivery-avenues a,.cta):hover{background:#eee5f8;border-color:#9769bc}
  html[data-theme="light"] :is(.button.primary,.button-glow,#brief-dialog .button,.demo button){--theme-copy:#fff;--theme-ink:#fff;background:linear-gradient(115deg,#7642c4,#5942ad);color:#fff!important;border-color:#7143b5;box-shadow:0 6px 23px #713ba025}
  html[data-theme="light"] :is(.button.primary,.button-glow,#brief-dialog .button) :is(span,small){color:#fff!important}
  html[data-theme="light"] .button.primary:hover,html[data-theme="light"] .button-glow:hover{background:linear-gradient(115deg,#8752d6,#6950bd)}
  html[data-theme="light"] :is(.eyebrow,.section-kicker,.kicker,.diagram-step,.detail-label,.field-label,.model-label,.map-label,.workspace-label,.sidebar-caption,.field-caption,.data-source-badge,.table-count,.source-badge){color:#73558d!important}
  html[data-theme="light"] :is(.section-heading h2>span,.making h2>span,.product-invitation h3 span,.statement-preview h3 span,.journey-heading h2 span,.belief-band p:first-child span,.journal h2 span){color:#8051a9!important}
  html[data-theme="light"] :is(.hero h1>span,.intro h1 span,.panel-heading h2 span,.next-chapter h2 span,.page-heading h1>span,.sf-hero h1 span,.output-header h2 span,.hero-words h1 span,.section-intro h2 span,.start-section h2 span,.invitation h2>span){background-image:linear-gradient(105deg,#5e2d99,#8852bd 48%,#167f8c);background-clip:text;-webkit-background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;filter:none}
  html[data-theme="light"] :is(.hero,.hero-atmosphere,.manifesto,.become-invitation,.next-chapter,.closing){background:radial-gradient(ellipse at 55% 20%,#d7c3f225,transparent 68%)}
  html[data-theme="light"] .hero .service-statement{color:#352348!important}
  html[data-theme="light"] .invitation-halo{opacity:.12;background:#aa7cdf}
  html[data-theme="light"] .hero-signature,html[data-theme="light"] .hero-bottom{border-color:var(--line);color:#655c74}
  html[data-theme="light"] :is(.model-row,.maige-model,.belief-band){background:linear-gradient(105deg,#eadffb7a,#e6f1f670);border-color:#b5a0d15c;color:#332240}
  html[data-theme="light"] :is(.engine-input-list,.engine-output-list){color:#655c74}
  html[data-theme="light"] .engine-heart{background:radial-gradient(ellipse,#d3bbf136,transparent 70%);border-color:#a77cc18c;box-shadow:0 0 70px #b891e218}
  html[data-theme="light"] :is(.engine-output b,.available,.evidence-state){color:#167c75!important}
  html[data-theme="light"] :is(.possibility,.product-invitation,.evidence-grid article,.statement-preview,.mod-feature,.mod-library,.path-detail,.contribution-example,.work-proof,.rule-example,.sf-panel,.sf-output,.sample-entry,.review-metrics>div,.math-card,.insight-card,.step-panel,.method-card,.rule-preview,.result-metrics>div,.empty-result,.business-next,.statement-invitation,.data-import,.advanced-data,.data-table-region,.team-settings,.calculation-pending,.scope-note,.panel,.attainment-card,.metric-row article,.deal-change,.empty-pipeline,.action-card,.report-path,.package-details,.mod-identity,.prep-question,.delivery-journey,.crediting-example,.crediting-cards>article){background:linear-gradient(125deg,#fff,#fcfaff);border-color:#a58ab33d;box-shadow:0 4px 24px #43215f05;color:var(--theme-ink)}
  html[data-theme="light"] :is(.product-invitation,.statement-preview,.mod-feature,.path-detail,.sf-output,.step-panel,.rule-preview,.calculation-pending,.delivery-journey){background:radial-gradient(ellipse at 90% 0,#e9dafa59,transparent 65%),#ffffffed}
  html[data-theme="light"] :is(.demo,.no-script){background:linear-gradient(125deg,#fff,#f5effb);border-color:#a58ab354;color:#584066}
  html[data-theme="light"] :is(footer,.breakdown-row,.math-line){color:#655c74!important}
  html[data-theme="light"] :is(.data-mode,.ready-examples,.handoff-route,.handoff-boundary,.pipeline-overview,.crediting-summary,.contribution-example,.insight-card){background:linear-gradient(110deg,#f0e8fa,#edf5f7);border-color:#8caabf55}
  html[data-theme="light"] :is(.path-note,.local-note,.simulation-note){background:#eee5f65c;color:#655c74;border-color:#ad90c04d}
  html[data-theme="light"] :is(.ready-examples button,.path-picker button,.view-switch button,.steps button,.import-file,.problem-choices button){color:#4e346c!important;background:#faf8fd;border-color:#a78cb24a}
  html[data-theme="light"] :is(.path-picker button[aria-pressed=true],.view-switch button[aria-pressed=true],.steps button[aria-current=step],.method-card:has(input:checked),.problem-choices button[aria-pressed=true]){background:linear-gradient(120deg,#eee0fc,#f6f1ff);border-color:#9860c5;box-shadow:inset 0 -2px #9a69d0}
  html[data-theme="light"] :is(.path-picker button[aria-pressed=true],.view-switch button[aria-pressed=true],.steps button[aria-current=step],.method-card:has(input:checked)) :is(strong,span){color:#58317a!important}
  html[data-theme="light"] .method-card .choice-check{background:#7540ba;color:#fff!important}
  html[data-theme="light"] .method-card .art-grid{stroke:#9e82b43d}
  html[data-theme="light"] .method-card .art-path{stroke:#7b4cb2}
  html[data-theme="light"] .method-card .art-spark{fill:#8653b9}
  html[data-theme="light"] .method-card .art-dot{fill:#258b98;stroke:#fff}
  html[data-theme="light"] .method-card .art-fill{fill:#9f79d51c}
  html[data-theme="light"] :is(.result-metrics .payout-metric,.earnings-card){border-color:#9273b473}
  html[data-theme="light"] :is(.rule-equation,.math-band strong,.math-total strong,.statement-total strong,.breakdown-row>strong){color:#65369d!important}
  html[data-theme="light"] :is(.rule-validity,.rule-preview .rule-validity,.status,#statement-status,.import-validation){color:#1b766a!important}
  html[data-theme="light"] .import-validation{background:#e8f5ee;border-color:#70ae9166}
  html[data-theme="light"] :is(.status.error,.rule-preview .rule-validity.invalid,#proof-error,.data-validation-error,.error-box,.import-validation.invalid){color:#9f244b!important}
  html[data-theme="light"] :is(.data-validation-error,.error-box,.import-validation.invalid){background:#fff0f3;border-color:#c877956b}
  html[data-theme="light"] :is(.data-table-region, .table-scroll, .result-table, .executable-rules){border-color:#aa91b847}
  html[data-theme="light"] :is(th,.data-table-region th){background:#f0eaf6;color:#635073!important;border-color:#a58ab347}
  html[data-theme="light"] :is(td,.data-table-region td){color:#382b4c!important;border-color:#c6b4d142}
  html[data-theme="light"] :is(td:last-child,.data-table-region td:last-child,.data-table-region th:last-child,.attainment-cell>span){color:#177480!important}
  html[data-theme="light"] .table-scroll tbody tr:hover{background:#f2edf7}
  html[data-theme="light"] .import-file input::file-selector-button{background:#eee3f8;color:#5b3181;border-color:#a17ebc72}
  html[data-theme="light"] :is(.executable-rules,.package-details){background:#f5f2f9}
  html[data-theme="light"] :is(.team-person,.crediting-line>span){background:#fcfbff;border-color:#bca4ca5c}
  html[data-theme="light"] .sidebar{background:linear-gradient(180deg,#f3edfafa,#faf9f7f2 65%);border-color:#a992b72e}
  html[data-theme="light"] .sidebar>.maige-preferences{background:transparent}
  html[data-theme="light"] .company-mark{background:#ece2f8;color:#79568b;border-color:#b59bc36b}
  html[data-theme="light"] .view-nav>button{color:#645274!important}
  html[data-theme="light"] .view-nav>button:hover{background:#eee2f7}
  html[data-theme="light"] .view-nav>button[aria-pressed=true]{background:linear-gradient(110deg,#e8d8f7,#f1e9fb);border-color:#aa81cd79;box-shadow:inset 3px 0 #9863c5;color:#482462!important}
  html[data-theme="light"] .view-nav>button[aria-pressed=true] :is(span,small){color:#694287!important}
  html[data-theme="light"] .view-nav>button[aria-pressed=true] .nav-symbol{color:#8b4ebc!important}
  html[data-theme="light"] :is(.preview-badge,.count-badge,.source-badge){background:#f2ecf9;border-color:#a78db946;color:#6b4e84}
  html[data-theme="light"] :is(.attainment-orbit strong,.pipeline-overview strong,.crediting-cards article>strong){color:#137e83!important}
  html[data-theme="light"] #rep-progress{stroke:#258d95}
  html[data-theme="light"] .attainment-orbit>svg circle:first-child{stroke:#ad8dc34d}
  html[data-theme="light"] .attainment-orbit>svg circle:nth-child(2){stroke:#6eaab62e}
  html[data-theme="light"] .avatar{background:#e9dcf6;border-color:#baa0cc;color:#674084!important}
  html[data-theme="light"] .avatar.jordan{background:#e0f0f3;color:#236b7b!important;border-color:#89b6c1}
  html[data-theme="light"] .avatar.sam{background:#f2e4f1;color:#86518e!important;border-color:#cca0ce}
  html[data-theme="light"] :is(.mini-track,.journey-bar>i){background:#c7b8d24a}
  html[data-theme="light"] .mini-track i{background:linear-gradient(90deg,#9164bd,#419daa)}
  html[data-theme="light"] :is(.journey-file,.journey-checks,.journey-questions,.journey-calculation){background:linear-gradient(125deg,#fbf8ff,#f0f6fa);border-color:#b498cd66;box-shadow:0 8px 26px #53307408}
  html[data-theme="light"] .journey-steps button{color:#665273}
  html[data-theme="light"] .journey-steps button[aria-pressed=true]{background:#eadcf7;border-color:#ad7ccd;color:#51296d}
  html[data-theme="light"] .journey-steps button[aria-pressed=true]>span{color:#1c8189!important}
  html[data-theme="light"] .journey-courier>span{color:#9259c5!important;text-shadow:0 0 20px #9b65cf33}
  html[data-theme="light"] .journey-checks>div>span{color:#237e72!important;border-color:#237e7266}
  html[data-theme="light"] .journey-checks .journey-question>span{color:#9b4e83!important;border-color:#b47a9b66}
  html[data-theme="light"] :is(.map-word,.map-caption strong){color:#674781!important}
  html[data-theme="light"] .map-spark{fill:#9664c9;filter:drop-shadow(0 0 16px #b888df4d)}
  html[data-theme="light"] .map-lines{stroke:#906aae70}
  html[data-theme="light"] .map-halo{opacity:.5}
  html[data-theme="light"] .sf-orbit>span{color:#9c6dca!important;text-shadow:0 0 40px #b484da35}

  /* Art-directed luminous islands stay violet/cyan, with their own text tokens.
     This avoids flattening the hero earnings, live demo and report previews. */
  html[data-theme="light"] :is(.earnings-hero,.manager-highlight,.earnings-card,.result-metrics .payout-metric,.proof-window,.report-cover,.statement-sheet,.showcase-stage,.outcome-stage,.hologram,.journey-leadership,.perspectives,.project-picture,.screen-open,.digital-window,.neural-core,.neural-node,.mind-output){
    --theme-ink:#f8f1ff;--theme-copy:#d4c4e4;--theme-link:#e1c5ff;--theme-accent:#ceb1f6;--theme-cyan:#a9e7ed;--line:#ffffff24;color:#f8f1ff;
  }
  html[data-theme="light"] :is(.earnings-hero,.manager-highlight,.earnings-card,.result-metrics .payout-metric){background:radial-gradient(ellipse at 0 0,#9263c075,transparent 67%),radial-gradient(ellipse at 100% 100%,#22607866,transparent 65%),#271c3a;border-color:#8f6bbd;box-shadow:0 10px 40px #512c711b}
  html[data-theme="light"] :is(.earnings-amount,.manager-highlight>div:first-child>strong,.earnings-card strong,.result-metrics .payout-metric strong,.statement-sheet-amount){color:#fff!important}
  html[data-theme="light"] :is(.team-attainment>strong,.period-points strong,.proof-result output,.cover-amount){color:#b5eced!important}
  html[data-theme="light"] :is(.earnings-hero,.manager-highlight,.earnings-card,.proof-window,.report-cover,.statement-sheet,.showcase-stage,.outcome-stage,.hologram,.journey-leadership,.perspectives) :is(a,button){color:#e5d0fc}
  html[data-theme="light"] .earnings-hero .hero-foot button{color:#f0dcff}
  html[data-theme="light"] :is(.proof-window,.hologram) input{background:#21152f!important;color:#f5ebff!important;border-color:#a988c578;color-scheme:dark}
  html[data-theme="light"] .proof-window .eyebrow,html[data-theme="light"] .proof-window .section-kicker,html[data-theme="light"] .proof-window .kicker{color:#c7afe3!important}
  html[data-theme="light"] .system-stage .system-buttons button[aria-pressed=true]{background:#e9d9f7;color:#512572!important;border-color:#9860bf}
  html[data-theme="light"] .perspectives .choices button[aria-pressed=true]{color:#fff!important;border-color:#d1b3ff}
  html[data-theme="light"] .perspectives .eyebrow{color:#ccb5e8!important}
  html[data-theme="light"] .proof-bottom a,html[data-theme="light"] .outcome-stage .outcome-link{color:#e6cdff!important}
  html[data-theme="light"] :is(.proof-window,.report-cover,.statement-sheet,.showcase-stage,.outcome-stage,.hologram){box-shadow:0 15px 65px #482a641c,0 0 55px #a486d91f}
  html[data-theme="light"] :is(dialog,#brief-dialog,#statement-dialog,#capability-dialog,.statement-dialog){background:linear-gradient(130deg,#fff,#faf6ff);color:#241c37;color-scheme:light;border-color:#a989bd8f;box-shadow:0 25px 100px #33214330}
  html[data-theme="light"] :is(dialog,#brief-dialog,#statement-dialog,#capability-dialog,.statement-dialog)::backdrop{background:#30283c75;backdrop-filter:blur(8px)}
  html[data-theme="light"] #brief-dialog :is(input,select,textarea){background:#fff;color:#241c37!important;border-color:#a088b57a;color-scheme:light}
  html[data-theme="light"] #brief-dialog :is(label,legend,.contact-check span,#contact-help,.contact-note){color:#655c74!important}
  html[data-theme="light"] #brief-dialog :is(h2,h3){color:#241c37!important}
  html[data-theme="light"] #brief-dialog h2 span{color:#8651b7!important}
  html[data-theme="light"] #brief-dialog :is(.section-kicker,.text-button,#close-brief){color:#69418c!important}
  html[data-theme="light"] #brief-dialog #brief-status{color:#167c78!important}
  html[data-theme="light"] #brief-dialog #brief-review{background:#f4edf9;border-color:#bda2d257}
  html[data-theme="light"] :is(.statement-toolbar,.statement-tools){background:#fbf8fe;border-color:#b899ca4f}
  html[data-theme="light"] .statement-toolbar button{background:#eee3f8;border-color:#b798cd66;color:#643b83}
  html[data-theme="light"] #capability-detected{background:#eaf3f7;border-color:#96b4c35a;color:#227381!important}
  html[data-theme="light"] .byline{color:#796487!important}
}
