:root{
  --sss-graphite:#14232E;
  --sss-offwhite:#F7F9FA;
  --sss-lime:#CFF53D;
  --sss-coral:#B93838;
  --sss-steel:#6B7C89;
  --sss-white:#FFFFFF;
  --sss-bg:var(--sss-offwhite);
  --sss-panel:var(--sss-white);
  --sss-text:var(--sss-graphite);
  --sss-muted:var(--sss-steel);
  --sss-line:#DCE3E8;
  --sss-accent:var(--sss-lime);
  --sss-good:var(--sss-lime);
  --sss-bad:var(--sss-coral);
  --sss-warn:var(--sss-coral);
}
html,body{background:var(--sss-bg)!important;color:var(--sss-text)!important}
body{background-image:none!important;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important}
.sss-top{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:16px;border-bottom:2px solid var(--sss-graphite)}
.sss-brand{display:inline-flex;align-items:center;color:var(--sss-graphite)!important;text-decoration:none!important}
.sss-brand-logo{display:block;width:118px;height:auto}.sss-brand-logo.compact{width:92px}.sss-kicker{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--sss-steel);white-space:nowrap;font-weight:700}
.sss-kicker strong{color:var(--sss-graphite);font-weight:900}
.sss-hero{padding:34px 0 16px}
.sss-hero h1{font-size:clamp(34px,6vw,54px)!important;line-height:1.01!important;letter-spacing:-2px!important;margin:0 0 12px!important;max-width:760px;color:var(--sss-graphite)!important}
.sss-hero p{max-width:680px;color:#596267!important;font-size:16px;line-height:1.55}
.sss-step{display:inline-flex;gap:6px;align-items:center;color:var(--sss-steel);font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.sss-step b{background:var(--sss-lime);color:var(--sss-graphite);padding:2px 5px}
.card,.stack,.metric,.row,.check,.criterion{background:var(--sss-panel)!important;border-color:var(--sss-line)!important;color:var(--sss-graphite)!important;box-shadow:none!important}
.card h2,.card h3,.stack strong,.metric .value,.row strong,.check strong{color:var(--sss-graphite)!important}
.field label,.small,.note,.metric .label,.metric .small,.row small,.check .meta{color:#667075!important}
input,select,.field input,.field select{background:var(--sss-white)!important;border:1.5px solid #B9BDBB!important;color:var(--sss-graphite)!important}
input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid var(--sss-lime)!important;outline-offset:2px!important}
.btn{background:var(--sss-white)!important;border:1.5px solid var(--sss-graphite)!important;color:var(--sss-graphite)!important;font-weight:800!important}
.btn.primary{background:var(--sss-graphite)!important;border-color:var(--sss-graphite)!important;color:var(--sss-offwhite)!important;font-weight:900!important}
.btn:hover{box-shadow:3px 3px 0 var(--sss-lime)}
.bad{color:var(--sss-coral)!important}.good{color:#597900!important}.warn{color:var(--sss-coral)!important}
.badge,.pill{background:var(--sss-graphite)!important;border-color:var(--sss-graphite)!important;color:var(--sss-offwhite)!important}
.paid{background:#EDF2F5!important;border:1.5px solid var(--sss-graphite)!important}
.sss-stack-card{border-left:7px solid var(--sss-lime)!important}
.sss-result-hero{border-top:7px solid var(--sss-lime)!important}
.sss-footer{margin-top:28px;padding-top:18px;border-top:2px solid var(--sss-graphite);font-size:11px;color:var(--sss-steel)}
/* Decision-state surfaces */
.sss-state-pass{background:var(--sss-lime)!important;color:var(--sss-graphite)!important}
.sss-state-fail{background:var(--sss-coral)!important;color:var(--sss-graphite)!important}
@media(max-width:620px){
  .sss-top{align-items:flex-start}
  .sss-kicker{white-space:normal;text-align:right;max-width:132px;line-height:1.35}
  .sss-wordmark{font-size:17px}
  .sss-hero{padding-top:28px}
}

.sss-logo-panel{display:inline-flex;align-items:center;background:var(--sss-graphite);padding:7px 8px;border-radius:8px}
.sss-logo-panel .sss-brand-logo{width:108px}
.sss-logo-panel.small .sss-brand-logo{width:86px}
.sss-brand-lockup{display:flex;align-items:center;gap:10px}
.sss-tagline{font-size:8px;letter-spacing:.28em;text-transform:uppercase;font-weight:800;color:var(--sss-steel);margin-top:4px;text-align:center}
.sss-primary-state{display:flex;align-items:center;justify-content:space-between;gap:12px;border:2px solid var(--sss-graphite)!important;border-radius:10px!important;padding:14px 16px!important}
.sss-primary-state.pass{background:var(--sss-lime)!important}
.sss-primary-state.fail{background:var(--sss-coral)!important}

/* Remove legacy DealStack palette from detailed analysis surfaces. */
.notice{background:#EDF2F5!important;border:1.5px solid var(--sss-graphite)!important;color:var(--sss-graphite)!important}
.notice strong{color:var(--sss-graphite)!important}
.headroomDialWrap{background:var(--sss-white)!important;border:1.5px solid var(--sss-graphite)!important}
.headroomDial svg path:first-of-type{stroke:#DCE3E8!important}
.dialScore,.dialBand{color:var(--sss-graphite)!important}
.dialCopy,.dialKey,.table th{color:#667075!important}
.table td{color:var(--sss-graphite)!important;border-bottom-color:#DCE3E8!important}
.pricebar{background:#EDF2F5!important;border-color:#DCE3E8!important}
.pricebar i{background:var(--sss-lime)!important}
.callout,.strategy-context,.calc-formula{background:#EDF2F5!important;border-color:#DCE3E8!important;color:var(--sss-graphite)!important}
a{color:var(--sss-graphite)!important}
.footer{color:var(--sss-steel)!important}

/* Shared editorial component system across legacy/standalone surfaces */
:root{
  --sss-space-1:6px;
  --sss-space-2:10px;
  --sss-space-3:16px;
  --sss-space-4:24px;
  --sss-space-5:36px;
  --sss-radius-control:6px;
  --sss-radius-card:8px;
  --sss-border:1.5px solid var(--sss-graphite);
  --sss-shadow:none;
}
h1,h2,h3,.price,.value{
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  letter-spacing:-.02em!important;
}
h1{font-weight:900!important;line-height:.96!important}
h2,h3{font-weight:900!important;line-height:1.02!important}
.card,.template,.logic,.founder,.m,.warn,.notice,.lookup,.property-summary,.api-comparable{
  border-radius:var(--sss-radius-card)!important;
  box-shadow:none!important;
}
.template{
  background:var(--sss-white)!important;
  border:var(--sss-border)!important;
  color:var(--sss-graphite)!important;
  transform:none!important;
}
.template:hover,.template:focus-visible{box-shadow:4px 4px 0 var(--sss-lime)!important;transform:none!important}
.template p,.example{color:#5F686C!important}
.cta{
  background:var(--sss-graphite)!important;
  color:var(--sss-offwhite)!important;
  border:var(--sss-border)!important;
  border-radius:var(--sss-radius-control)!important;
}
.eyebrow{color:var(--sss-graphite)!important;font-weight:900!important;letter-spacing:.1em!important}
.card.featured{border:2px solid var(--sss-graphite)!important;box-shadow:5px 5px 0 var(--sss-lime)!important}
.logic,.founder{
  background:#EDF2F5!important;
  border:var(--sss-border)!important;
  color:var(--sss-graphite)!important;
}
.logic strong,.founder strong{color:var(--sss-graphite)!important}
.m{
  background:var(--sss-white)!important;
  border:1.5px solid #DCE3E8!important;
  color:var(--sss-graphite)!important;
}
.warn{
  background:#FFF0EE!important;
  border:1.5px solid var(--sss-coral)!important;
  color:var(--sss-graphite)!important;
}
.actions button,button{
  border-radius:var(--sss-radius-control)!important;
  box-shadow:none!important;
}
.actions button:not(.secondary),button.btn:not(.secondary){
  background:var(--sss-graphite)!important;
  color:var(--sss-offwhite)!important;
}
button.secondary,.secondary{
  background:var(--sss-white)!important;
  color:var(--sss-graphite)!important;
  border:var(--sss-border)!important;
}
table{color:var(--sss-graphite)!important}
thead th{color:#5F686C!important;text-transform:uppercase;letter-spacing:.06em;font-size:10px!important}
tbody tr{border-bottom:1px solid #DCE3E8!important}

/* Core four-step journey */
.sss-journey{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin:20px 0 4px;
  border:1.5px solid var(--sss-graphite);
  background:var(--sss-white);
}
.sss-journey-step{
  position:relative;
  min-width:0;
  padding:10px 11px 9px;
  border-right:1px solid #DCE3E8;
  color:var(--sss-steel);
}
.sss-journey-step:last-child{border-right:0}
.sss-journey-step .num{
  display:block;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  margin-bottom:3px;
}
.sss-journey-step .name{
  display:block;
  font-size:11px;
  line-height:1.15;
  font-weight:900;
  text-transform:uppercase;
  color:inherit;
}
.sss-journey-step.done{background:#EDF2F5;color:var(--sss-graphite)}
.sss-journey-step.active{background:var(--sss-lime);color:var(--sss-graphite)}
.sss-journey-step.done .num::after{content:" ✓"}
.sss-stage-label{
  display:inline-block;
  margin-bottom:9px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--sss-graphite);
}
.sss-next-card{
  margin-top:14px;
  padding:18px;
  border:2px solid var(--sss-graphite);
  background:var(--sss-offwhite);
}
.sss-next-card h2{margin:0 0 7px!important}
.sss-next-card p{margin:0;color:#5F686C;line-height:1.45}
.sss-next-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}
.sss-next-actions .btn.primary{background:var(--sss-lime)!important;color:var(--sss-graphite)!important}
.sss-optional{
  margin-top:16px;
  border:1.5px solid #B9BDBB;
  background:#EDF2F5;
}
.sss-optional>summary{
  cursor:pointer;
  list-style:none;
  padding:14px 16px;
  font-weight:900;
  color:var(--sss-graphite);
}
.sss-optional>summary::-webkit-details-marker{display:none}
.sss-optional>summary::after{content:"+";float:right;font-size:18px;line-height:1}
.sss-optional[open]>summary::after{content:"−"}
.sss-optional-body{padding:0 16px 16px}
.sss-complete{
  display:flex;justify-content:space-between;gap:12px;align-items:center;
  padding:12px 14px;border:1.5px solid var(--sss-graphite);
  border-left:7px solid var(--sss-lime);background:var(--sss-white);
}
.sss-complete .label{font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#667075}
.sss-complete .edit{font-size:12px;font-weight:900;text-decoration:underline}
@media(max-width:620px){
  .sss-journey{grid-template-columns:repeat(4,1fr);margin-top:16px}
  .sss-journey-step{padding:8px 6px}
  .sss-journey-step .name{font-size:9px}
  .sss-journey-step .num{font-size:9px}
  .sss-next-actions{display:grid;grid-template-columns:1fr}
  .sss-next-actions .btn{text-align:center}
}

/* On small screens the answer must appear before editable inputs. */
@media(max-width:900px){
  .grid>main{order:1}
  .grid>aside{order:2}
}

.sss-journey-step{
  text-decoration:none!important;
  cursor:default;
  transition:background .12s ease,box-shadow .12s ease,color .12s ease;
}
.sss-journey-step.available{cursor:pointer}
.sss-journey-step.available:hover,.sss-journey-step.available:focus-visible{
  box-shadow:inset 0 -4px 0 var(--sss-graphite);
  outline:none!important;
}
.sss-journey-step.locked{
  opacity:.55;
  cursor:not-allowed;
}
.sss-journey-step.active{
  box-shadow:inset 0 -4px 0 var(--sss-graphite);
}

/* Precision investor identity — approved 4 October 2026.
   Shared surfaces preserve all existing four-step and calculation behaviour. */
:root{--sss-good:#16765D;--sss-warn:#946200;--sss-pass-bg:#E5F4EE;--sss-fail-bg:#FBEDEC;--sss-evidence-bg:#FFF5DD;--sss-border:1px solid #DCE3E8;--sss-radius-card:12px;--sss-radius-control:8px}
body{font-variant-numeric:tabular-nums}
h1{font-weight:750!important;line-height:1.12!important;letter-spacing:-.035em!important}
h2,h3{font-weight:700!important;line-height:1.25!important;letter-spacing:-.015em!important}
.value,.price,.dialScore{font-variant-numeric:tabular-nums;letter-spacing:-.035em!important}
.sss-top{background:var(--sss-graphite);border:0;padding:14px 18px;border-radius:12px}
.sss-top .sss-kicker{color:#DCE3E8;letter-spacing:.1em;font-size:10px}
.sss-logo-panel{padding:0;border-radius:0;background:transparent}
.sss-logo-panel .sss-brand-logo,.sss-logo-panel.small .sss-brand-logo{width:68px}
.sss-hero h1{font-size:clamp(30px,4.8vw,44px)!important;line-height:1.14!important;letter-spacing:-.035em!important}
.sss-hero p{font-size:15px;line-height:1.6;color:#526572!important}
.card,.template,.metric,.row,.check,.criterion,.saved-properties,.sss-next-card,.sss-optional,.sss-complete{border:1px solid var(--sss-line)!important;border-radius:12px!important;box-shadow:none!important}
.saved-properties,.sss-next-card,.sss-optional{background:#EDF2F5!important}
.sss-complete{border-left:3px solid var(--sss-lime)!important}
.btn,.btn.primary,.cta,.template:hover,.template:focus-visible,.card.featured{box-shadow:none!important}
.btn,.actions button,button.btn{font-weight:650!important;min-height:44px}
.btn.primary,.sss-next-actions .btn.primary,.decision-actions .btn.primary{background:var(--sss-graphite)!important;color:#FFFFFF!important;border:1px solid var(--sss-graphite)!important;box-shadow:none!important}
.btn:hover,.template:hover{border-color:var(--sss-steel)!important;box-shadow:0 2px 8px #14232E12!important}
.btn:disabled,button:disabled{opacity:.5;cursor:not-allowed}
input,select,.field input,.field select{border:1px solid #BDC9D1!important;border-radius:8px!important;min-height:44px}
.sss-journey{border:1px solid var(--sss-line);border-radius:10px;overflow:hidden}
.sss-journey-step .name{text-transform:none;font-weight:650;line-height:1.3}
.sss-journey-step .num{font-weight:650;letter-spacing:.04em}
.sss-journey-step.done{background:#EDF2F5}
.sss-journey-step.active{background:#EEF5DF;box-shadow:inset 0 -3px 0 var(--sss-lime)}
.sss-stage-label{font-weight:650;letter-spacing:.06em;color:#526572}
.sss-primary-state,.sss-primary-state.pass,.sss-primary-state.fail,.sss-state-pass,.sss-state-fail{border:1px solid var(--sss-line)!important;box-shadow:none!important}
.sss-primary-state.pass,.sss-state-pass{background:var(--sss-pass-bg)!important;color:#125B49!important}
.sss-primary-state.fail,.sss-state-fail{background:var(--sss-fail-bg)!important;color:#96302F!important}
.good{color:var(--sss-good)!important}.bad{color:#B93838!important}.warn{background:var(--sss-evidence-bg)!important;color:#765100!important;border-color:#E7D5A5!important}
.sss-stack-card,.sss-result-hero{border-left-width:1px!important;border-top-width:1px!important}
.decision-answer,.decision-answer.is-fail,.decision-actions,.decision-headroom,.headroomDialWrap{background:#FFFFFF!important;border:1px solid var(--sss-line)!important;border-radius:12px!important;box-shadow:none!important}
.decision-hero-grid .metric{background:#F7F9FA!important;border:1px solid var(--sss-line)!important}
.decision-hero-grid .heroMetric{background:#EDF2F5!important;color:var(--sss-graphite)!important}
.decision-hero-grid .heroMetric .value,.decision-hero-grid .heroMetric .value.good{color:#16765D!important}
.decision-hero-grid .heroMetric .value.bad{color:#B93838!important}
.decision-hero-grid .heroMetric .label,.decision-hero-grid .heroMetric .small{color:#526572!important}
.decision-reason .row{background:#F7F9FA!important;border-color:var(--sss-line)!important}
.decision-answer h2{font-size:14px;text-transform:none;letter-spacing:0}
.decision-actions{background:#EDF2F5!important}
.headroomDialWrap{padding:16px}
.table th,thead th{background:#EDF2F5!important;color:#526572!important;text-transform:none!important;font-size:12px!important;letter-spacing:0}
.table td{font-size:12px;line-height:1.5}
.table tbody tr:nth-child(even){background:#F7F9FA}
.sss-footer,.footer{color:#526572!important}
@media(max-width:620px){.sss-top{padding:12px 14px}.sss-top .sss-kicker{max-width:138px;line-height:1.5}.sss-hero{padding-top:26px}.sss-hero h1{font-size:32px!important}.sss-journey-step .name{font-size:10px}.decision-hero-grid .heroMetric .value{font-size:30px!important}}

/* Core criteria screens also use legacy variable names. */
:root{--muted:#526572;--line:#DCE3E8;--accent:var(--sss-lime)}
input[type="checkbox"]{width:20px!important;height:20px!important;min-height:20px!important;padding:0!important;accent-color:var(--sss-graphite)}
.rule .toggle{display:flex;align-items:center;gap:8px;min-height:44px}
.criteria-num{background:#EDF4DF;color:var(--sss-graphite)}

.sss-native .sss-top{display:none!important}
