/* Only the entry screen. Subsequent diagnostic states retain their existing layout. */
@scope (#emergency-diagnostic:has(.diagnostic-start)) {
 :scope {padding:32px 0 28px;overflow-x:clip;overflow-y:visible;font-family:'Noto Sans',Arial,sans-serif;background:radial-gradient(ellipse at 77% 29%,#fff9e7 0,transparent 31%),#f8fafc}
 .emergency-container {width:calc(100% - 64px);max-width:1360px;margin:auto}
 *,*::before,*::after {box-sizing:border-box}
 .diagnostic-hero-grid {display:grid;grid-template-columns:minmax(0,3fr) minmax(310px,1fr);grid-template-areas:'heading visual' 'shell trust';column-gap:24px;row-gap:16px;align-items:start}
 .diagnostic-main,.diagnostic-side {display:contents}
 .diagnostic-heading {grid-area:heading;max-width:none;margin:0;align-self:center}
 .diagnostic-badge {display:inline-flex;align-items:center;gap:7px;height:29px;padding:5px 11px;background:#fff4cc;color:#84631d;border-radius:99px;font-size:12px;font-weight:600;line-height:19px}
 .diagnostic-badge svg {width:17px;height:17px}
 .diagnostic-heading h2 {margin:16px 0 18px;max-width:720px;font-size:58px;line-height:1.02;letter-spacing:-.035em;font-weight:800;color:#111827}
 .diagnostic-heading p {margin:0;max-width:700px;font-size:17px;line-height:1.55;color:#667085}
 .diagnostic-shell {grid-area:shell;max-width:none;padding:22px;border:1px solid #e4e7ec;border-radius:22px;background:#fff;box-shadow:0 10px 32px #10182805}
 .diagnostic-shell h2 {margin:0 0 10px;font-size:32px;line-height:1.1;font-weight:800;letter-spacing:-.025em}
 .diagnostic-lead {margin:0 0 14px;font-size:14px;line-height:1.5;color:#667085}
 .diagnostic-start {display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:10px;align-items:stretch}
 .diagnostic-start input {min-width:0;width:100%;height:56px;min-height:56px;margin:0;padding:0 14px 0 44px;border:1px solid #ccd4df;border-radius:11px;font:inherit;font-size:16px;background-color:#fff}
 .diagnostic-start .emergency-button {display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;width:100%;height:56px;min-height:56px;padding:0 14px;border:0;border-radius:11px;background:#ffc400;color:#111827;font-size:15px;font-weight:700;line-height:1.2}
 .diagnostic-button-icon {margin:0;display:flex}
 .diagnostic-button-icon svg {width:20px;height:20px}
 .diagnostic-note {margin:9px 0 0;color:#7a8595;font-size:12px;line-height:1.4}
 .diagnostic-shell .diagnostic-scenarios {margin:20px 0 0;padding:17px 0 0;border-top:1px solid #e4e7ec}
 .diagnostic-scenarios p {margin:0 0 10px;font-size:13px;color:#667085}
 .diagnostic-scenarios>div {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 .diagnostic-scenarios button {display:flex;align-items:center;gap:8px;min-width:0;min-height:58px;padding:10px;border:1px solid #e0e5ec;border-radius:11px;background:#fff;font:inherit;font-size:13px;line-height:1.3;font-weight:600;text-align:left;color:#172033}
 .diagnostic-scenarios button:hover {background:#fffdf5;border-color:#f2c94c}
 .diagnostic-scenarios button:focus-visible {outline:3px solid #ffe38a;outline-offset:2px}
 .diagnostic-scenarios button b {margin-left:auto;font-size:18px;font-weight:400;color:#617189}
 .diagnostic-icon {width:30px;height:30px;flex:0 0 30px;border-radius:50%;display:grid;place-items:center}
 .diagnostic-icon svg {width:19px;height:19px}
 .diagnostic-icon--globe,.diagnostic-icon--clock {color:#e5484d;background:#ffe5e7}
 .diagnostic-icon--warning {color:#ed900c;background:#fff0d9}
 .diagnostic-icon--refresh {color:#18a957;background:#dff8e9}
 .diagnostic-icon--shield {color:#7951d8;background:#eee5ff}
 .diagnostic-icon--gear {color:#3983d3;background:#e2f0ff}
 .diagnostic-icon--more {color:#667085;background:#e9edf2}
 .diagnostic-visual {grid-area:visual;position:relative;justify-self:end;width:680px;height:258px;min-height:0;padding:0;margin:0;isolation:isolate;overflow:visible}
 .diagnostic-visual::before {content:'';position:absolute;z-index:-1;width:263px;height:215px;left:88px;top:20px;border-radius:50%;background:radial-gradient(circle,#ffed9c 0,#fff3bd 48%,#fff8dc9c 68%,transparent 78%);opacity:.72;filter:blur(2px)}
 .diagnostic-browser {position:absolute;z-index:1;top:55px;left:100px;width:240px;height:150px;padding:13px 15px;border:1px solid #d8e0ea;border-radius:13px;background:linear-gradient(#f7f9fb 0 32px,#fff 32px);box-shadow:0 13px 27px #33415516,0 2px 5px #3341550b;transform:none}
 .diagnostic-browser::before {content:'';position:absolute;left:0;right:0;top:31px;height:1px;background:#e5eaf0}
 .diagnostic-browser>span {position:static;display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px;background:#c5cdd9}
 .diagnostic-browser__address {position:relative;margin-top:19px;width:91%;height:24px;padding:5px 8px 5px 24px;border:1px solid #edf0f4;border-radius:6px;background:#f5f7fa;color:#8290a7;font-size:9px;line-height:12px}
 .diagnostic-browser__address::before {content:'';position:absolute;left:8px;top:7px;width:8px;height:8px;border:1.5px solid #91a0b5;border-radius:50%}
 .diagnostic-browser__address::after {content:'';position:absolute;left:13px;top:13px;width:4px;height:2px;border-radius:2px;background:#91a0b5;transform:rotate(42deg);transform-origin:left center}
 .diagnostic-browser__line {height:7px;width:56%;margin-top:14px;border-radius:4px;background:linear-gradient(90deg,#e5e9ef,#eff2f6)}
 .diagnostic-browser__line--short {width:38%;margin-top:8px}
 .diagnostic-magnifier {position:absolute;z-index:2;width:87px;height:87px;top:90px;left:239px;border:8px solid #172033;border-radius:50%;background:linear-gradient(135deg,#ffffffc7,#e8eef455);box-shadow:inset 4px 4px 0 #ffffffa6,inset -2px -2px 0 #cbd5e142,0 7px 14px #1018281a;transform:rotate(-43deg);color:transparent}
 .diagnostic-magnifier::after {content:'';position:absolute;width:15px;height:46px;left:calc(50% - 7.5px);top:calc(100% + 1px);border-radius:5px;background:linear-gradient(90deg,#ffe067,#ffc400 72%);box-shadow:inset 2px 0 #fff1a5,0 4px 7px #b58b0020;z-index:-1}
 .diagnostic-checklist {position:absolute;inset:0;width:auto;display:block}
 .diagnostic-checklist div {position:absolute;z-index:3;display:flex;align-items:center;gap:8px;width:158px;height:38px;padding:0 12px;border:1px solid #e3e8ef;border-radius:9px;background:#fffffffa;box-shadow:0 4px 13px #3341550d;color:#079455}
 .diagnostic-checklist div::before {content:'✓';display:grid;place-items:center;width:18px;height:18px;flex:0 0 18px;border-radius:50%;background:#75dba2;color:white;font-size:11px;font-weight:700}
 .diagnostic-checklist span {font-size:13px;color:#526178;font-weight:600;white-space:nowrap}
 .diagnostic-checklist div:nth-child(1) {top:4px;left:360px}
 .diagnostic-checklist div:nth-child(2) {top:46px;left:360px}
 .diagnostic-checklist div:nth-child(3) {top:88px;left:360px}
 .diagnostic-checklist div:nth-child(4) {top:130px;left:360px}
 .diagnostic-checklist div:nth-child(5) {top:172px;left:360px}
 .diagnostic-checklist div:nth-child(6) {top:214px;left:360px}
 .diagnostic-annotation {display:block;top:42px;right:-15px;width:135px;color:#7b899d;font-family:'Segoe Print','Comic Sans MS',cursive;font-size:12px;font-weight:500;line-height:1.42;letter-spacing:-.01em;white-space:nowrap;transform:rotate(-4deg)}
 .diagnostic-annotation svg {top:74px;left:-25px;width:105px;height:88px;stroke:#8f9caf;stroke-width:1.35;transform:none}
 .diagnostic-trust {grid-area:trust;position:relative;justify-self:stretch;width:100%;min-width:0;margin:0;padding:16px 24px;border:1px solid #eef0f4;border-radius:22px;background:linear-gradient(120deg,#f2f4f8,#f7f8fa);box-shadow:none}
 .diagnostic-trust h3 {display:flex;align-items:center;gap:10px;margin:0 0 10px;color:#111827;font-size:21px;line-height:1.2}
 .diagnostic-trust h3>svg {width:34px;height:34px;padding:7px;border-radius:50%;background:#fff0b4}
 .diagnostic-trust ul {display:grid;grid-template-columns:1fr;gap:8px;margin:0;padding:0;list-style:none;font-size:14px;line-height:1.4;color:#667085}
 .diagnostic-trust li::before {content:'✓';margin-right:10px;color:#079455;font-weight:700}
 .diagnostic-trust__privacy {display:flex;align-items:center;gap:12px;margin:12px 0 0;padding:10px 0 0;border-top:1px solid #e4e7ec;font-size:12px;line-height:1.45;color:#667085}
 .diagnostic-trust__privacy br {display:block}
 .diagnostic-trust__privacy svg {width:27px;height:27px;flex:0 0 27px}
 .diagnostic-benefits {display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:26px}
 .diagnostic-benefits>div {display:flex;align-items:center;gap:12px}
 .diagnostic-benefits>div:nth-child(2) {justify-self:center}
 .diagnostic-benefits>div:nth-child(3) {justify-self:end}
 .diagnostic-benefits i {width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:50%;background:#fff4cc;color:#172033}
 .diagnostic-benefits svg {width:21px;height:21px}
 .diagnostic-benefits span {display:grid;gap:3px}
 .diagnostic-benefits strong {font-size:14px;font-weight:600;color:#172033}
 .diagnostic-benefits small {font-size:12px;color:#7a8595}
 @media(max-width:1250px) and (min-width:1025px) {
  .diagnostic-hero-grid {grid-template-columns:minmax(0,3fr) minmax(290px,1fr);column-gap:22px}
  .diagnostic-heading h2 {font-size:48px}
  .diagnostic-scenarios>div {grid-template-columns:repeat(2,minmax(0,1fr))}
  .diagnostic-visual {margin-bottom:0}
 }
 @media(max-width:1024px) {
  .emergency-container {width:calc(100% - 40px);max-width:760px}
  .diagnostic-hero-grid {grid-template-columns:1fr;grid-template-areas:'heading' 'shell' 'visual' 'trust';gap:22px}
  .diagnostic-heading h2 {font-size:56px}
  .diagnostic-visual {width:100%;max-width:560px;height:260px;margin:4px auto 0}
  .diagnostic-annotation {display:none}
  .diagnostic-trust {width:100%;min-width:0;max-width:560px;margin:auto}
 }
 @media(max-width:600px) {
  :scope {padding:28px 0}
  .emergency-container {width:calc(100% - 32px)}
  .diagnostic-heading {margin-bottom:22px}
  .diagnostic-heading h2 {font-size:39px;line-height:1.04;letter-spacing:-.035em;margin:16px 0}
  .diagnostic-heading p {font-size:15px;line-height:1.55}
  .diagnostic-badge {font-size:11px}
  .diagnostic-shell {padding:20px;border-radius:20px}
  .diagnostic-shell h2 {font-size:28px}
  .diagnostic-lead {font-size:14px}
  .diagnostic-start {grid-template-columns:1fr}
  .diagnostic-scenarios>div {grid-template-columns:1fr}
  .diagnostic-scenarios button {min-height:58px;font-size:14px;padding:10px 12px}
  .diagnostic-note {font-size:11px}
  .diagnostic-visual {height:292px;margin-top:2px}
  .diagnostic-visual::before {width:212px;height:179px;left:50%;top:47px;transform:translateX(-50%)}
  .diagnostic-browser {top:74px;left:50%;width:194px;height:125px;padding:11px 12px;transform:translateX(-50%)}
  .diagnostic-browser__address {margin-top:15px}
  .diagnostic-magnifier {width:77px;height:77px;border-width:7px;left:52%;top:114px}
  .diagnostic-magnifier::after {height:43px;width:15px;left:calc(50% - 7.5px)}
  .diagnostic-checklist div {height:32px;padding:0 8px;gap:6px}
  .diagnostic-checklist div:nth-child(1) {top:17px;right:auto;bottom:auto;left:0}
  .diagnostic-checklist div:nth-child(2) {top:31px;right:0;bottom:auto;left:auto}
  .diagnostic-checklist div:nth-child(3) {top:122px;right:auto;bottom:auto;left:0}
  .diagnostic-checklist div:nth-child(4) {top:112px;right:0;bottom:auto;left:auto}
  .diagnostic-checklist div:nth-child(5) {top:auto;right:auto;bottom:7px;left:0}
  .diagnostic-checklist div:nth-child(6) {top:auto;right:0;bottom:0;left:auto}
  .diagnostic-trust {width:100%;margin-top:0;padding:20px}
  .diagnostic-trust h3 {font-size:20px}
  .diagnostic-trust ul {grid-template-columns:1fr;font-size:14px}
  .diagnostic-benefits {grid-template-columns:1fr;gap:18px;margin-top:24px}
  .diagnostic-benefits>div:nth-child(2),.diagnostic-benefits>div:nth-child(3) {justify-self:start}
 }
}

/* Question state uses the original scanner hero composition above. */
#emergency-diagnostic.is-question-state .diagnostic-hero-grid {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.95fr);grid-template-areas:'heading visual' 'shell shell';column-gap:36px;row-gap:28px;align-items:start}
#emergency-diagnostic.is-question-state .diagnostic-main {display:contents}
#emergency-diagnostic.is-question-state .diagnostic-side {display:grid;grid-area:visual;gap:22px;padding-top:0}
#emergency-diagnostic.is-question-state .diagnostic-visual {grid-area:auto;position:relative;justify-self:stretch;width:auto;min-height:250px;height:auto;margin:0;padding:22px 10px 10px}
#emergency-diagnostic.is-question-state .diagnostic-shell {grid-area:shell;width:100%;max-width:none;margin:0;padding:26px 28px;border-radius:14px;box-shadow:0 8px 24px rgba(16,24,40,.04)}
#emergency-diagnostic.is-question-state .diagnostic-trust,#emergency-diagnostic.is-question-state .diagnostic-scenarios {display:none}
#emergency-diagnostic.is-question-state .diagnostic-answer-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;margin-top:22px}
#emergency-diagnostic.is-question-state .diagnostic-answer-option {min-height:70px}
@media(max-width:1100px){
 #emergency-diagnostic.is-question-state .diagnostic-hero-grid {grid-template-columns:minmax(0,1fr) minmax(320px,.95fr);column-gap:24px}
 #emergency-diagnostic.is-question-state .diagnostic-answer-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1024px){
 #emergency-diagnostic.is-question-state .diagnostic-hero-grid {grid-template-columns:1fr;grid-template-areas:'heading' 'visual' 'shell';row-gap:20px}
 #emergency-diagnostic.is-question-state .diagnostic-side {display:block}
 #emergency-diagnostic.is-question-state .diagnostic-visual {width:100%;max-width:680px;margin:0 auto}
}
@media(max-width:600px){
 #emergency-diagnostic.is-question-state .diagnostic-shell {padding:20px 16px}
 #emergency-diagnostic.is-question-state .diagnostic-question-top {align-items:flex-start;gap:12px}
 #emergency-diagnostic.is-question-state .diagnostic-step {align-items:flex-start;flex-direction:column;gap:8px}
 #emergency-diagnostic.is-question-state .diagnostic-step>i {width:100%}
 #emergency-diagnostic.is-question-state .diagnostic-answer-grid {grid-template-columns:1fr;margin-top:20px}
 #emergency-diagnostic.is-question-state .diagnostic-answer-option {min-height:60px;padding:8px 12px}
}
/* Header and help button: small, explicitly requested size adjustments. */
body:has(.diagnostic-start) .emergency-header__inner {min-height:64px;max-width:1360px}
html:has(.diagnostic-start) {overflow-x:hidden}
body:has(.diagnostic-start) {overflow-x:clip}
body:has(.diagnostic-start) .emergency-header .emergency-button--small {box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:44px;min-height:44px;padding:0 18px}
body:has(.diagnostic-start) .emergency-nav {font-size:15px}
body:has(.diagnostic-start) .emergency-popup-trigger {box-sizing:border-box;padding:13px 18px;height:46px;min-height:46px;right:20px;bottom:20px;box-shadow:0 6px 18px #17203312}

/* Focused question state: the user has already selected the main scenario. */
@scope (#emergency-diagnostic.is-question-state) {
 :scope .diagnostic-hero-grid {grid-template-columns:minmax(0,1.65fr) minmax(320px,.95fr);grid-template-areas:'heading visual' 'shell shell';column-gap:36px;row-gap:28px;align-items:start}
 :scope .diagnostic-heading {max-width:760px}
 :scope .diagnostic-shell {grid-area:shell;width:100%;max-width:none;margin:0 auto;padding:26px 28px;border-radius:14px;box-shadow:0 8px 24px rgba(16,24,40,.04)}
 :scope .diagnostic-side {display:grid;grid-area:visual;gap:22px;padding-top:0}
 :scope .diagnostic-visual {grid-area:auto;position:relative;justify-self:stretch;width:auto;min-height:250px;height:auto;margin:0;padding:22px 10px 10px}
 :scope .diagnostic-trust,:scope .diagnostic-scenarios {display:none}
 :scope .diagnostic-question-top {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
 :scope .diagnostic-step {display:flex;align-items:center;gap:16px;min-width:0;flex:1}
 :scope .diagnostic-step>span {flex:0 0 auto;color:#b77900;font-size:13px;font-weight:800;white-space:nowrap}
 :scope .diagnostic-step>i {display:block;width:min(600px,100%);height:6px;border-radius:999px;background:#edf0f3;overflow:hidden}
 :scope .diagnostic-step>i b {display:block;height:100%;border-radius:inherit;background:#ffc400}
 :scope .diagnostic-back {flex:0 0 auto;padding:4px 0;border:0;background:none;color:#172d4f;font:inherit;font-size:16px;font-weight:600;cursor:pointer}
 :scope .diagnostic-back:hover {color:#b77900}
 :scope .diagnostic-shell>div[data-diagnostic-panel]>h2 {margin:0 0 10px;font-size:clamp(34px,3vw,38px);line-height:1.1}
 :scope .diagnostic-question-lead {margin:0;color:#667085;font-size:15px;line-height:1.5}
 :scope .diagnostic-answer-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;margin-top:22px}
 :scope .diagnostic-answer-option {display:flex;align-items:center;gap:14px;min-height:70px;padding:12px 16px;border:1px solid #dde2e8;border-radius:10px;background:#fff;color:#172033;font:inherit;font-weight:700;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease}
 :scope .diagnostic-answer-option:hover,:scope .diagnostic-answer-option:focus-visible {border-color:#f2c94c;background:#fffdf5;outline:none}
 :scope .diagnostic-answer-icon {display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:#f1f4f7;color:#526071;font-style:normal}
 :scope .diagnostic-answer-option:nth-child(2n) .diagnostic-answer-icon {background:#ffe5e5;color:#e5484d}
 :scope .diagnostic-answer-option:nth-child(3n) .diagnostic-answer-icon {background:#e3f1ff;color:#2672d8}
 :scope .diagnostic-answer-option:nth-child(4n) .diagnostic-answer-icon {background:#eee7ff;color:#6950d8}
 :scope .diagnostic-answer-icon svg {width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 :scope .diagnostic-answer-icon__code {font-size:15px;font-weight:800}
 :scope .diagnostic-answer-option__label {min-width:0;flex:1}
 :scope .diagnostic-answer-option__chevron {font-size:25px;line-height:1;font-weight:400;color:#344b6d}
 @media(max-width:1200px){:scope .diagnostic-hero-grid{grid-template-columns:minmax(0,1fr) minmax(320px,.95fr);column-gap:24px}:scope .diagnostic-answer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}:scope .diagnostic-visual{width:auto;max-width:none}}
 @media(max-width:1024px){:scope .diagnostic-hero-grid{grid-template-columns:1fr;grid-template-areas:'heading' 'visual' 'shell';row-gap:20px}:scope .diagnostic-visual{justify-self:center;margin:0 auto}}
 @media(max-width:600px){:scope .diagnostic-shell{padding:20px 16px}:scope .diagnostic-question-top{align-items:flex-start;gap:12px}:scope .diagnostic-step{align-items:flex-start;flex-direction:column;gap:8px}:scope .diagnostic-step>i{width:100%}:scope .diagnostic-back{font-size:15px}:scope .diagnostic-shell>div[data-diagnostic-panel]>h2{font-size:clamp(28px,8vw,32px)}:scope .diagnostic-answer-grid{grid-template-columns:1fr;margin-top:20px}:scope .diagnostic-answer-option{min-height:60px;padding:8px 12px}}
}
