/* Genesis True S+16 P208 — Concrete light-mode balance and decision-stage refinement */

html:not(.dark) body.p35-concrete{
  --p208-paper:#f4f8f6;
  --p208-surface:#ffffff;
  --p208-surface-soft:#eef5f2;
  --p208-ink:#10231f;
  --p208-copy:#536660;
  --p208-muted:#6f817b;
  --p208-line:rgba(20,59,51,.14);
  --p208-line-strong:rgba(20,78,65,.24);
  --p208-deep:#102a24;
  --p208-deep-2:#173c33;
  --p208-gold:#c8a638;
  --p208-shadow:0 22px 58px rgba(19,51,44,.10);
}

/* Wide-screen composition: keep authority content substantial rather than floating in an empty canvas. */
@media(min-width:1500px){
  html:not(.dark) body.p35-concrete :where(.p41-scenario-section,.p42-authority-section,.p43-register-section) .p35-shell{
    width:min(1580px,calc(100% - 96px));
    max-width:none;
  }
}

/* Scenario theatre remains deliberately dark in light mode, but receives explicit readable authority. */
html:not(.dark) body.p35-concrete .p41-scenario-section{
  background:
    radial-gradient(circle at 86% 4%,rgba(219,183,68,.16),transparent 28%),
    linear-gradient(145deg,#0b1c18 0%,#14352d 58%,#244c42 100%);
  color:#f6faf8;
}
html:not(.dark) body.p35-concrete .p41-scenario-section .p35-heading,
html:not(.dark) body.p35-concrete .p41-panel-top h3,
html:not(.dark) body.p35-concrete .p41-reason-step strong,
html:not(.dark) body.p35-concrete .p41-scenario-note strong{color:#f7fbf9!important}
html:not(.dark) body.p35-concrete .p41-scenario-section .p35-eyebrow,
html:not(.dark) body.p35-concrete .p41-panel-top small,
html:not(.dark) body.p35-concrete .p41-reason-step span{color:#efd46d!important}
html:not(.dark) body.p35-concrete .p41-scenario-section .p35-section-copy,
html:not(.dark) body.p35-concrete .p41-reason-step p,
html:not(.dark) body.p35-concrete .p41-scenario-note{color:#c7d5d0!important}
html:not(.dark) body.p35-concrete .p41-scenario-menu{
  background:rgba(5,22,18,.48);
  border-color:rgba(221,236,230,.16);
  box-shadow:0 18px 44px rgba(0,0,0,.18);
}
html:not(.dark) body.p35-concrete .p41-scenario-tab{
  color:#eef6f2;
  background:rgba(255,255,255,.02);
}
html:not(.dark) body.p35-concrete .p41-scenario-tab:hover,
html:not(.dark) body.p35-concrete .p41-scenario-tab:focus-visible{
  background:rgba(255,255,255,.075);
  border-color:rgba(232,244,239,.18);
}
html:not(.dark) body.p35-concrete .p41-scenario-tab.is-active{
  color:#fff;
  background:linear-gradient(135deg,#1b4439,#28594b);
  border-color:rgba(226,190,77,.52);
  box-shadow:inset 3px 0 0 #e2be4d,0 16px 32px rgba(0,0,0,.22);
  transform:none!important;
}
html[dir="rtl"]:not(.dark) body.p35-concrete .p41-scenario-tab.is-active{
  box-shadow:inset -3px 0 0 #e2be4d,0 16px 32px rgba(0,0,0,.22);
}
html:not(.dark) body.p35-concrete .p41-tab-index,
html:not(.dark) body.p35-concrete .p41-scenario-tab.is-active .p41-tab-index{
  background:#091a16;
  border:1px solid rgba(226,190,77,.25);
  color:#efd46d;
}
html:not(.dark) body.p35-concrete .p41-tab-copy small,
html:not(.dark) body.p35-concrete .p41-scenario-tab.is-active .p41-tab-copy small{color:#aebfba!important}
html:not(.dark) body.p35-concrete .p41-scenario-stage{
  background:linear-gradient(145deg,rgba(7,27,22,.80),rgba(21,53,45,.82));
  border-color:rgba(226,239,234,.16);
  box-shadow:0 26px 68px rgba(0,0,0,.24);
}
html:not(.dark) body.p35-concrete .p41-reason-step{
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  border-color:rgba(226,239,234,.15);
}
html:not(.dark) body.p35-concrete .p41-scenario-status{
  background:rgba(226,190,77,.13);
  border-color:rgba(226,190,77,.44);
  color:#f4d978;
}

/* Acceptance register: stronger scale, quieter canvas, no washed-out active state. */
html:not(.dark) body.p35-concrete .p43-register-section{
  background:
    radial-gradient(circle at 88% 12%,rgba(200,166,56,.10),transparent 28%),
    linear-gradient(180deg,#f7faf8 0%,#eef4f1 100%);
}
html:not(.dark) body.p35-concrete .p43-register-section .p35-heading{color:var(--p208-ink)!important}
html:not(.dark) body.p35-concrete .p43-register-section .p35-section-copy{color:var(--p208-copy)!important}
html:not(.dark) body.p35-concrete .p43-register{
  margin-top:34px;
  border-color:var(--p208-line-strong);
  background:rgba(255,255,255,.96);
  box-shadow:var(--p208-shadow);
}
html:not(.dark) body.p35-concrete .p43-register-tabs{
  background:linear-gradient(135deg,#112b25,#1a4036);
  border-bottom:1px solid rgba(255,255,255,.08);
}
html:not(.dark) body.p35-concrete .p43-register-tab{
  color:#d8e3df;
  min-height:64px;
}
html:not(.dark) body.p35-concrete .p43-register-tab:hover,
html:not(.dark) body.p35-concrete .p43-register-tab:focus-visible{
  color:#fff;
  background:rgba(255,255,255,.08);
}
html:not(.dark) body.p35-concrete .p43-register-tab.is-active{
  color:#fff;
  background:linear-gradient(135deg,#245649,#2f6b5b);
  border-color:rgba(226,190,77,.50);
  box-shadow:inset 0 -3px 0 #e2be4d,0 10px 22px rgba(0,0,0,.18);
}
html:not(.dark) body.p35-concrete .p43-register-tab.is-active span{color:#f0d36a}
html:not(.dark) body.p35-concrete .p43-register-panel{background:#fff}
html:not(.dark) body.p35-concrete .p43-accept-row{
  background:linear-gradient(135deg,#f5f9f7,#eef5f2);
  border-color:var(--p208-line);
}
html:not(.dark) body.p35-concrete .p43-accept-row strong,
html:not(.dark) body.p35-concrete .p43-conflict-rule strong{color:var(--p208-ink)}
html:not(.dark) body.p35-concrete .p43-accept-row p,
html:not(.dark) body.p35-concrete .p43-conflict-rule p{color:var(--p208-copy)}
html:not(.dark) body.p35-concrete .p43-accept-state{
  color:#205a4c;
  background:#e6f2ed;
  border-color:rgba(32,90,76,.24);
}
html:not(.dark) body.p35-concrete .p43-output-card{
  background:linear-gradient(145deg,#102a24,#1b463b);
  box-shadow:0 18px 38px rgba(15,48,40,.16);
}
html:not(.dark) body.p35-concrete .p43-conflict-rule{
  background:#fffaf0;
  border-color:rgba(200,166,56,.42);
}

/* Additional S+16 upgrade: active decision controls use one consistent, non-moving state contract. */
html:not(.dark) body.p35-concrete :where(.p41-scenario-tab,.p42-role-tab,.p43-register-tab).is-active{
  transform:none!important;
}
html:not(.dark) body.p35-concrete .p42-role-tabs{
  background:rgba(255,255,255,.90);
  border-color:var(--p208-line);
  box-shadow:var(--p208-shadow);
}
html:not(.dark) body.p35-concrete .p42-role-tab{color:var(--p208-ink)}
html:not(.dark) body.p35-concrete .p42-role-tab small{color:var(--p208-muted)}
html:not(.dark) body.p35-concrete .p42-role-tab.is-active{
  color:#fff;
  background:linear-gradient(135deg,#173d34,#275b4d);
  border-color:rgba(226,190,77,.48);
  box-shadow:inset 3px 0 0 #e2be4d,0 14px 30px rgba(16,55,46,.18);
}
html[dir="rtl"]:not(.dark) body.p35-concrete .p42-role-tab.is-active{
  box-shadow:inset -3px 0 0 #e2be4d,0 14px 30px rgba(16,55,46,.18);
}
html:not(.dark) body.p35-concrete .p42-role-tab.is-active small{color:#cad8d3}

@media(max-width:1180px){
  html:not(.dark) body.p35-concrete .p43-register-section .p35-section-head,
  html:not(.dark) body.p35-concrete .p41-scenario-section .p35-section-head{gap:24px}
}
@media(max-width:760px){
  html:not(.dark) body.p35-concrete .p43-register-tab{min-height:56px}
}
@media(prefers-reduced-motion:reduce){
  html:not(.dark) body.p35-concrete :where(.p41-scenario-tab,.p42-role-tab,.p43-register-tab){transition:none!important}
}
