:root{--panel:#e8ecef;--paper:#fff;--ink:#171a1f;--muted:#5f6872;--soft:#5f6872;--line:#c2cbd4;--line-strong:#171a1f;--blue:#1f4f70;--bluebg:#e6eef4;--amber:#b07407;--red:#a91e1e;--green:#1f6b43;--violet:#5d4e99;--violet-bg:#ece8f7;--mono:ui-monospace,SFMono-Regular,Consolas,monospace;--sans:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--panel);color:var(--ink);font-family:var(--sans);line-height:1.5;padding:28px 16px 64px}
.doc{max-width:1180px;margin:auto}
.title{background:#fff;border:2px solid #171a1f}
.bar{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center;padding:8px 16px;border-bottom:1px solid #171a1f;font:11px var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.bar-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.title-help{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line-strong);background:#fff;color:var(--ink);text-decoration:none;padding:5px 9px;border-radius:2px;font:700 11px var(--mono);letter-spacing:.08em;text-transform:uppercase}.title-help:hover,.title-help:focus{background:var(--blue);border-color:var(--blue);color:#fff}
.bar-meta{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.main{padding:24px 20px 22px}
.eyebrow{font:700 11.5px var(--mono);letter-spacing:.22em;text-transform:uppercase;color:var(--blue);margin:0 0 14px}
.title-with-logo{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:start;margin-top:2px}
.title-logo{width:96px;height:auto;display:block;margin-top:4px}
.title-copy{min-width:0;display:flex;flex-direction:column;gap:10px;padding-top:2px}
.title-copy .sub{margin-top:0}
.surface-note{margin:18px 0 0 112px;border-left:4px solid var(--violet);background:var(--violet-bg);padding:12px 14px;border-radius:2px;font-size:13.5px;color:#403050;max-width:82ch}
.surface-note b{color:var(--violet)}
.warning-strip{margin:0;border-top:1px solid #171a1f;background:#fdf3e6;color:#6c4b08;padding:12px 16px;font-size:12.8px;display:flex;gap:12px;align-items:flex-start}
.warning-strip .tag{font:700 10.5px var(--mono);letter-spacing:.06em;background:var(--amber);color:#fff;padding:1px 7px;border-radius:2px;white-space:nowrap;margin-top:1px;text-transform:uppercase}
h1{margin:0;font-size:34px;line-height:1.06;letter-spacing:-.018em;font-weight:850;text-transform:uppercase}
h2{margin:0 0 8px;font-size:22px;line-height:1.1;letter-spacing:-.012em}
.sub{color:var(--muted);max-width:92ch;font-size:14.5px}
.sub.lead{color:#4d5662}
.panel{background:#fff;border:1px solid var(--line);margin-top:18px}
.head{padding:10px 16px;border-bottom:1px solid var(--line);font:11.5px var(--mono);text-transform:uppercase;letter-spacing:.13em;color:var(--muted)}
.body{padding:16px}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.card{background:#fff;border:1px solid var(--line);padding:16px;display:flex;flex-direction:column;min-height:210px}
.kicker{font:700 11px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.card h2{margin:8px 0 10px;font-size:24px;text-transform:uppercase}
.card p,.dev-tools p,.warning-panel p{color:var(--muted);font-size:13.5px;margin:0 0 18px}
.button{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;border:1px solid #171a1f;background:#fff;color:var(--ink);text-decoration:none;padding:10px 15px;font-weight:700;border-radius:2px;text-align:center}
.button:hover,.button:focus{background:var(--blue);border-color:var(--blue);color:#fff}
.button.secondary{border-color:var(--line);color:var(--muted);font-size:13px;padding:8px 12px;min-width:140px}
.dev-tools{margin-top:18px;background:#f8fafb;border:1px solid var(--line);padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.dev-tools h2{font-size:18px;text-transform:uppercase;margin:4px 0 4px}.dev-tools p{margin:0;font-size:13px}
.warning-panel{border-left:4px solid var(--amber);background:#fdf3e6}.warning-panel .body p{color:#5a4520}.warning-panel .body p+p{margin-top:8px}
.footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:18px;color:var(--muted);font-size:13px}
@media(max-width:980px){.cards{grid-template-columns:1fr}.card{min-height:0}.doc{max-width:760px}}
@media(max-width:760px){body{padding:18px 12px 48px}.title-with-logo{grid-template-columns:1fr;gap:10px}.title-logo{width:110px;margin-top:0}.title-copy{padding-top:0}.surface-note{margin-left:0}.dev-tools{display:block}.dev-tools .button{margin-top:12px;width:100%}}
@media print{body{background:#fff;padding:0}.button{display:none}.title,.panel,.card,.dev-tools{break-inside:avoid}}
.main-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1120px){.main-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.main-tools{grid-template-columns:1fr}}

/* ESR Calm UI pass */
:root{
  --panel:#f7f7f4;
  --paper:#ffffff;
  --ink:#202124;
  --muted:#667085;
  --soft:#667085;
  --line:#e4e7ec;
  --line-strong:#d0d5dd;
  --blue:#314f5f;
  --bluebg:#eef4f6;
  --amber:#9a6700;
  --red:#b42318;
  --green:#167044;
  --violet:#6941c6;
  --violet-bg:#f4f1fb;
}
html{background:var(--panel)}
body{
  background:
    radial-gradient(circle at 50% -160px, rgba(255,255,255,.95), rgba(247,247,244,0) 380px),
    var(--panel)!important;
  color:var(--ink)!important;
  padding:32px 18px 72px!important;
}
.doc{max-width:1040px!important;margin:0 auto!important}
.title,.titleblock{
  background:rgba(255,255,255,.92)!important;
  border:1px solid rgba(32,33,36,.10)!important;
  border-radius:24px!important;
  box-shadow:0 18px 48px rgba(16,24,40,.06)!important;
  overflow:hidden!important;
}
.bar,.titleblock__bar{
  border-bottom:1px solid rgba(32,33,36,.08)!important;
  padding:12px 18px!important;
  color:#667085!important;
  letter-spacing:.04em!important;
  background:rgba(255,255,255,.74)!important;
}
.main,.titleblock__main{padding:30px 28px 28px!important}
.eyebrow,.kicker,.head,.panel__head,.lbl,label,.group-title,.toolgroup__label,.quickstart__label{
  letter-spacing:.06em!important;
}
h1{
  text-transform:none!important;
  font-weight:760!important;
  font-size:clamp(32px,4vw,48px)!important;
  line-height:1.02!important;
  letter-spacing:-.045em!important;
}
h2{letter-spacing:-.025em!important}
.card h2,.dev-tools h2,.mode-card h2{text-transform:none!important}
.sub,.titleblock__sub,.hint,.note,.small-hint,.card p,.dev-tools p,.warning-panel p{
  color:#667085!important;
}
.title-with-logo{grid-template-columns:74px minmax(0,1fr)!important;gap:18px!important;align-items:center!important}
.title-logo{width:74px!important;margin-top:0!important;border-radius:18px!important}
.surface-note{
  margin:22px 0 0 92px!important;
  border:1px solid rgba(49,79,95,.12)!important;
  border-left:0!important;
  background:#f3f6f7!important;
  color:#43515a!important;
  border-radius:18px!important;
  padding:14px 16px!important;
}
.warning-strip{
  border-top:1px solid rgba(32,33,36,.08)!important;
  background:#fff8ea!important;
  color:#6d4e00!important;
  padding:14px 18px!important;
}
.warning-strip .tag{
  border-radius:999px!important;
  background:#f2b94b!important;
  color:#5f3b00!important;
  padding:3px 9px!important;
}
.panel,.card,.step,.output-card,.dev-tools,.quickstart,.quickstart__card,.mode-card,.case-load-panel .panel,.prompt-show-panel,.content,.header,.result,.metric,.deadline__box,.registry-row,.isoBox,.finding,.probe{
  border:1px solid rgba(32,33,36,.10)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 8px 28px rgba(16,24,40,.045)!important;
}
.panel,.step,.output-card{overflow:hidden!important}
.head,.panel__head{
  border-bottom:1px solid rgba(32,33,36,.08)!important;
  background:#fbfbfa!important;
  color:#667085!important;
  padding:13px 18px!important;
}
.body,.panel__body{padding:18px!important}
.cards,.main-tools,.modebar{gap:14px!important}
.card,.mode-card{padding:20px!important;min-height:0!important}
.card:hover,.mode-card:hover,.quickstart__card:hover{
  border-color:rgba(49,79,95,.22)!important;
  box-shadow:0 16px 42px rgba(16,24,40,.075)!important;
}
button,.button,.btn,.btn-primary,.linkbtn,.appLink,.title-help{
  border-radius:999px!important;
  border:1px solid rgba(32,33,36,.12)!important;
  box-shadow:none!important;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease!important;
}
button:hover,.button:hover,.btn:hover,.btn-primary:hover,.linkbtn:hover,.appLink:hover,.title-help:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 10px 22px rgba(16,24,40,.08)!important;
}
button.primary,.button:not(.secondary),.btn-primary,.btn.warn,.mode-card[aria-pressed="true"]{
  background:#202124!important;
  border-color:#202124!important;
  color:#fff!important;
}
button.secondary,.button.secondary,.btn.secondary,.btn.ghost,.linkbtn,.appLink,.title-help{
  background:#fff!important;
  color:#344054!important;
}
input,select,textarea{
  border:1px solid rgba(32,33,36,.14)!important;
  border-radius:14px!important;
  background:#fff!important;
  padding:11px 12px!important;
  color:var(--ink)!important;
}
textarea{min-height:82px!important;line-height:1.55!important}
input:focus,select:focus,textarea:focus{
  outline:none!important;
  border-color:rgba(49,79,95,.55)!important;
  box-shadow:0 0 0 4px rgba(49,79,95,.12)!important;
}
.security,.security-note,.demo-notice,.notice,.preview-box,.quickstart__security{
  border:1px solid rgba(32,33,36,.10)!important;
  border-left:0!important;
  border-radius:16px!important;
  background:#fbfbfa!important;
  color:#5b6470!important;
  padding:12px 14px!important;
}
.pill,.prompt-show-pill,.status,.session-status{
  border-radius:999px!important;
  background:#f3f4f6!important;
  border:1px solid rgba(32,33,36,.10)!important;
  color:#667085!important;
}
.table th,.table td{border-color:rgba(32,33,36,.10)!important}.table th{background:#fbfbfa!important}
pre,.output-box,.summary-box{
  border:1px solid rgba(32,33,36,.10)!important;
  border-radius:16px!important;
  background:#fbfbfa!important;
  color:#2f3742!important;
}
.footer{
  margin-top:24px!important;
  padding:0 4px!important;
  color:#7a818c!important;
}
.footer a{color:inherit!important}
@media(max-width:760px){
  body{padding:18px 12px 52px!important}
  .main,.titleblock__main{padding:24px 18px!important}
  .title-with-logo{grid-template-columns:1fr!important;gap:12px!important}
  .title-logo{width:70px!important}
  .surface-note{margin-left:0!important}
}
@media print{
  body{background:#fff!important;padding:0!important}
  .title,.titleblock,.panel,.card,.step,.output-card,.dev-tools{box-shadow:none!important}
}

/* ESR Calm UI refinement — less console, more guided workspace */
.bar,.titleblock__bar,.head,.panel__head{font-family:var(--sans)!important;text-transform:none!important;letter-spacing:0!important;font-weight:650!important;}
.bar-meta,.titleblock__meta{display:flex!important;gap:12px!important;flex-wrap:wrap!important;align-items:center!important;}
.bar-meta span,.titleblock__meta span{background:#f6f7f7!important;border:1px solid rgba(32,33,36,.08)!important;border-radius:999px!important;padding:4px 9px!important;}
.eyebrow,.kicker{font-family:var(--sans)!important;text-transform:none!important;letter-spacing:0!important;font-weight:700!important;}
.lbl,label,.group-title,.toolgroup__label,.quickstart__label{font-family:var(--sans)!important;text-transform:none!important;letter-spacing:0!important;}
.warning-strip .tag{font-family:var(--sans)!important;text-transform:none!important;letter-spacing:0!important;}
.n,.quickstart__step{box-shadow:none!important;}

/* ESR Calm UI polish — logo alignment, title case and desktop readability */
.title-with-logo{
  align-items:start!important;
  grid-template-columns:72px minmax(0,1fr)!important;
  gap:20px!important;
}
.title-logo{
  width:72px!important;
  height:auto!important;
  margin-top:8px!important;
  border-radius:14px!important;
}
.title-copy{padding-top:0!important;}
.bar b,.titleblock__bar b{font-weight:700!important;}
.footer a,.bar a,.title-help{text-transform:none!important;letter-spacing:0!important;}

@media (min-width:900px){
  body{
    font-size:17px!important;
    line-height:1.68!important;
  }
  .doc{max-width:1100px!important;}
  .main,.titleblock__main{padding:38px 34px 34px!important;}
  h1{
    font-size:clamp(42px,4.6vw,64px)!important;
    line-height:1.01!important;
  }
  .sub,.titleblock__sub,.lead{
    font-size:18px!important;
    line-height:1.62!important;
  }
  .surface-note{
    font-size:16px!important;
    line-height:1.58!important;
    margin-left:92px!important;
  }
  .warning-strip{
    font-size:15.5px!important;
    line-height:1.58!important;
  }
  .head,.panel__head{
    font-size:15px!important;
  }
  .lbl,label,.group-title,.toolgroup__label,.quickstart__label{
    font-size:14.5px!important;
  }
  input,select,textarea,button,.button,.btn,.btn-primary,.linkbtn,.appLink,.title-help{
    font-size:16px!important;
  }
  .hint,.note,.small-hint,.pathhint,.quickstart__content p,.card p,.dev-tools p,.warning-panel p{
    font-size:15.5px!important;
    line-height:1.58!important;
  }
  .card h2,.mode-card h2,.quickstart__content h3{
    font-size:20px!important;
    line-height:1.25!important;
  }
  .table{font-size:15px!important;}
}

@media (max-width:760px){
  .title-with-logo{grid-template-columns:1fr!important;gap:12px!important;}
  .title-logo{width:70px!important;margin-top:0!important;}
}


/* CertiSigma Prudentia Suite 1.1 — selected-state contrast polish */
.mode-card[aria-pressed="true"]{
  color:#ffffff!important;
  border-color:rgba(32,33,36,.95)!important;
  box-shadow:0 14px 34px rgba(16,24,40,.16)!important;
}
.mode-card[aria-pressed="true"] h2,
.mode-card[aria-pressed="true"] h3{
  color:#ffffff!important;
}
.mode-card[aria-pressed="true"] p,
.mode-card[aria-pressed="true"] .hint{
  color:#e7e9ec!important;
}
.mode-card[aria-pressed="true"] .kicker,
.mode-card[aria-pressed="true"] .smallcap,
.mode-card[aria-pressed="true"] .status{
  color:#cfd5df!important;
}
.mode-card[aria-pressed="true"] *{
  border-color:rgba(255,255,255,.18);
}
button.primary *,
button.active *,
.button:not(.secondary) *,
.btn-primary *,
.btn.warn *,
.title-help.active *{
  color:inherit!important;
}
button.active,
.title-help.active{
  color:#ffffff!important;
}

/* CertiSigma Prudentia Suite home phase 2 — intervention-oriented positioning */
.home-orientation h2,
.home-principles h2{
  margin:0 0 8px!important;
  font-size:clamp(24px,3vw,34px)!important;
  line-height:1.08!important;
}
.intervention-tools{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.intervention-tools .card{
  min-height:300px!important;
}
.home-output{
  margin-top:auto!important;
  padding-top:10px!important;
  border-top:1px solid rgba(32,33,36,.08)!important;
  color:#4f5b66!important;
}
.intervention-tools .button{
  margin-top:14px!important;
}
.principle-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr)!important;
  gap:18px!important;
  align-items:start!important;
}
.principle-list{
  border:1px solid rgba(32,33,36,.10)!important;
  border-radius:18px!important;
  background:#fbfbfa!important;
  padding:14px 16px!important;
}
.principle-list p{
  margin:0!important;
  color:#5b6470!important;
  font-size:15px!important;
  line-height:1.5!important;
}
.principle-list p+p{
  margin-top:10px!important;
}
@media(max-width:760px){
  .intervention-tools{grid-template-columns:1fr!important;}
  .intervention-tools .card{min-height:0!important;}
  .principle-grid{grid-template-columns:1fr!important;}
}

/* ESR shared header — 1.1 interface harmonization */
.suite-header{
  border:1px solid rgba(32,33,36,.10)!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.94)!important;
  box-shadow:0 18px 48px rgba(16,24,40,.06)!important;
  overflow:hidden!important;
  margin:0 0 18px!important;
}
.suite-topbar{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:14px!important;
  padding:12px 18px!important;
  border-bottom:1px solid rgba(32,33,36,.08)!important;
  background:linear-gradient(90deg,rgba(255,255,255,.96),rgba(247,247,244,.86))!important;
}
.suite-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:10px!important;
  color:#667085!important;
  font-size:.88rem!important;
  line-height:1.25!important;
}
.suite-meta b{color:#202124!important;}
.suite-nav{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  gap:8px!important;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
}
.suite-nav__item{
  display:inline-flex!important;
  align-items:center!important;
  min-height:32px!important;
  padding:7px 11px!important;
  border:1px solid rgba(32,33,36,.12)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#344054!important;
  text-decoration:none!important;
  font-size:.86rem!important;
  font-weight:720!important;
  letter-spacing:0!important;
  box-shadow:none!important;
}
.suite-nav__item:hover{border-color:rgba(32,33,36,.22)!important;}
.suite-nav__item.is-current{
  background:#202124!important;
  border-color:#202124!important;
  color:#fff!important;
}
.suite-hero{padding:24px 26px 22px!important;}
.suite-kicker{
  margin:0 0 10px!important;
  color:#7a818c!important;
  font-size:.8rem!important;
  font-weight:760!important;
  letter-spacing:.03em!important;
  text-transform:uppercase!important;
}
.suite-title-row{display:flex!important;align-items:flex-start!important;gap:18px!important;}
.suite-logo{width:78px!important;height:78px!important;object-fit:contain!important;flex:0 0 auto!important;margin-top:2px!important;}
.suite-title-copy{min-width:0!important;}
.suite-title{
  margin:0 0 8px!important;
  color:#202124!important;
  font-size:clamp(2rem,5vw,3.65rem)!important;
  line-height:.95!important;
  font-weight:760!important;
  letter-spacing:-.055em!important;
}
.suite-sub{
  margin:.35rem 0 0!important;
  color:#344054!important;
  font-size:clamp(1rem,2vw,1.18rem)!important;
  line-height:1.48!important;
  max-width:880px!important;
}
.suite-surface{
  margin:18px 0 0!important;
  border:1px solid rgba(32,33,36,.10)!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  padding:12px 14px!important;
  color:#475467!important;
  line-height:1.52!important;
}
.suite-scope{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  margin:0!important;
  padding:13px 18px!important;
  border-top:1px solid rgba(32,33,36,.08)!important;
  background:#fff8eb!important;
  color:#5f4b24!important;
  line-height:1.48!important;
}
.suite-tag{
  display:inline-flex!important;
  align-items:center!important;
  border-radius:999px!important;
  background:#202124!important;
  color:#fff!important;
  padding:3px 9px!important;
  font-size:.72rem!important;
  font-weight:780!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
  white-space:nowrap!important;
}
@media (max-width:720px){
  .suite-topbar{align-items:flex-start!important;flex-direction:column!important;}
  .suite-nav{justify-content:flex-start!important;}
  .suite-title-row{align-items:flex-start!important;}
  .suite-logo{width:60px!important;height:60px!important;margin-top:2px!important;}
  .suite-hero{padding:20px 18px!important;}
  .suite-scope{flex-direction:column!important;}
}
@media print{
  .suite-nav{display:none!important;}
  .suite-header{box-shadow:none!important;border-color:#ddd!important;}
}

