:root{
  color-scheme:light;
  --app-scale:.8;
  --page:#e7f0f7;
  --page-deep:#fbfdff;
  --surface:#ffffff;
  --surface-soft:#f3f8fd;
  --line:rgba(10,45,76,.12);
  --line-strong:rgba(10,45,76,.22);
  --text:#09243d;
  --muted:#587086;
  --blue:#238af0;
  --blue-bright:#075c9d;
  --orange:#f27c22;
  --orange-soft:#a9460e;
  --green:#0b8b70;
  --shadow:0 30px 80px rgba(24,57,88,.17);
  --soft-shadow:0 18px 42px rgba(24,57,88,.11);
  --radius-xl:24px;
  --radius-lg:16px;
  --radius-md:10px;
  --font:"Inter","Space Grotesk","Manrope","Avenir Next","Segoe UI",sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
  color:var(--text);
  font-family:var(--font);
  background:
    linear-gradient(135deg,rgba(35,138,240,.15),transparent 30%),
    linear-gradient(225deg,rgba(242,124,34,.13),transparent 26%),
    repeating-linear-gradient(90deg,rgba(9,36,61,.035) 0 1px,transparent 1px 112px),
    linear-gradient(180deg,var(--page-deep),var(--page));
  padding:calc(18px * var(--app-scale));
}

body.embed-mode{
  background:transparent;
  padding:0;
}

button,input,output{font:inherit}
button{color:inherit}

.genai-shell{
  width:min(100%,1520px);
  margin:0 auto;
  zoom:var(--app-scale);
}

.genai-widget{
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  background:
    linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,255,255,.82) 18%,rgba(241,248,254,.96)),
    repeating-linear-gradient(0deg,rgba(9,36,61,.026) 0 1px,transparent 1px 74px);
  box-shadow:var(--shadow);
}

.genai-widget::before{
  position:absolute;
  inset:0 0 auto;
  height:6px;
  background:linear-gradient(90deg,var(--blue),#6db8f7 42%,var(--orange));
  content:"";
}

.hero,
.genai-layout{
  position:relative;
  z-index:1;
}

.hero{
  padding:42px 30px 30px;
  border-bottom:1px solid rgba(10,45,76,.08);
  background:
    linear-gradient(90deg,rgba(35,138,240,.07),transparent 42%),
    linear-gradient(180deg,rgba(255,255,255,.46),transparent);
}

.hero-copy{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(340px,.72fr);
  gap:clamp(24px,4vw,72px);
  align-items:start;
  min-width:0;
  width:100%;
  max-width:none;
}

.hero-title,
.hero-support{
  min-width:0;
}

.hero-support{
  position:relative;
  display:grid;
  gap:0;
  align-content:start;
  justify-items:end;
  padding:0 0 18px 28px;
}

.hero-support::before{
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:1px;
  background:linear-gradient(180deg,transparent,rgba(44,143,242,.3),rgba(247,131,39,.28),transparent);
  content:"";
}

.eyebrow,
.section-kicker,
.warning-label{
  margin:0;
  color:var(--blue-bright);
  font-size:14px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  gap:9px;
  padding:0 13px;
  border:1px solid rgba(35,138,240,.22);
  border-radius:999px;
  background:rgba(255,255,255,.7);
  box-shadow:0 8px 18px rgba(24,57,88,.08),inset 0 0 0 1px rgba(255,255,255,.62);
}

.eyebrow::before{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--orange);
  box-shadow:0 0 0 5px rgba(255,146,61,.14);
  content:"";
}

h1{
  max-width:940px;
  margin:18px 0 0;
  font-size:clamp(52px,4.25vw,70px);
  line-height:.96;
  letter-spacing:0;
  text-wrap:balance;
}

.society-meter{
  --society-score:60%;
  display:grid;
  gap:11px;
  width:min(100%,540px);
  max-width:none;
  margin:0;
  padding:17px 18px;
  border:1px solid rgba(35,138,240,.2);
  border-radius:var(--radius-md);
  background:
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,255,255,.76)),
    linear-gradient(90deg,rgba(35,138,240,.13),rgba(242,124,34,.09));
  box-shadow:0 18px 38px rgba(24,57,88,.11),inset 0 1px 0 rgba(255,255,255,.86);
}

.society-meter__top,
.society-meter__labels{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.society-meter__top p{
  margin:0;
  color:var(--blue-bright);
  font-size:13px;
  font-weight:900;
  letter-spacing:.14em;
  line-height:1.2;
  text-transform:uppercase;
}

.society-meter__top output{
  flex:0 0 auto;
  color:var(--orange-soft);
  font-size:19px;
  font-weight:900;
  line-height:1;
}

.society-meter__track{
  position:relative;
  height:46px;
  overflow:hidden;
  border:1px solid rgba(7,92,157,.16);
  border-radius:12px;
  background:
    repeating-linear-gradient(90deg,transparent 0 calc(25% - 1px),rgba(9,36,61,.08) calc(25% - 1px) 25%),
    linear-gradient(90deg,rgba(7,92,157,.08),rgba(242,124,34,.1)),
    rgba(255,255,255,.72);
  box-shadow:inset 0 1px 4px rgba(12,39,66,.09);
}

.society-meter__fill{
  position:absolute;
  inset:0 auto 0 0;
  width:var(--society-score);
  border-radius:inherit;
  background:
    linear-gradient(180deg,rgba(255,255,255,.24),transparent 48%),
    linear-gradient(90deg,rgba(35,138,240,.42),rgba(82,170,244,.34) 58%,rgba(242,124,34,.32));
  transition:width .32s ease;
}

.society-meter__track::before{
  position:absolute;
  inset:7px;
  z-index:1;
  border:1px solid rgba(255,255,255,.62);
  border-radius:8px;
  content:"";
  pointer-events:none;
}

.society-meter__marker{
  position:absolute;
  top:7px;
  bottom:7px;
  left:var(--society-score);
  width:3px;
  height:auto;
  border:0;
  border-radius:999px;
  background:#102f4b;
  box-shadow:0 0 0 3px rgba(255,255,255,.82),0 8px 16px rgba(19,56,88,.2);
  transform:translateX(-50%);
  transition:left .32s ease;
}

.society-meter__marker::before{
  position:absolute;
  top:-2px;
  left:50%;
  width:11px;
  height:11px;
  border:2px solid #fff;
  border-radius:3px;
  background:var(--orange);
  box-shadow:0 5px 12px rgba(19,56,88,.2);
  content:"";
  transform:translate(-50%,-100%) rotate(45deg);
}

.society-meter__labels{
  color:#536c82;
  font-size:12px;
  font-weight:850;
  line-height:1.2;
}

.society-meter__status{
  margin:2px 0 0;
  color:#102f4b;
  font-size:19px;
  font-weight:900;
  line-height:1.15;
  text-wrap:balance;
}

.society-meter__note,
.society-meter__shape{
  margin:0;
  color:#44637b;
  font-size:14px;
  font-weight:700;
  line-height:1.45;
}

.society-meter__shape{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:7px 10px;
  border:1px solid rgba(242,124,34,.2);
  border-radius:999px;
  background:rgba(242,124,34,.09);
  color:#8d4212;
  font-size:13px;
  font-weight:850;
}

.mechanism-stage{
  border:1px solid var(--line);
  background:
    linear-gradient(180deg,rgba(255,255,255,.96),rgba(239,247,253,.78)),
    rgba(255,255,255,.88);
  box-shadow:var(--soft-shadow);
}

.section-head{
  display:grid;
  gap:8px;
  min-width:0;
}

.section-head h2{
  margin:0;
  font-size:clamp(21px,2vw,28px);
  line-height:1.1;
  letter-spacing:0;
}

.section-head p:not(.section-kicker){
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}

.genai-layout{
  display:grid;
  grid-template-columns:minmax(300px,.62fr) minmax(660px,1.58fr);
  gap:22px;
  align-items:start;
  padding:24px 30px 30px;
}

.stage-column{
  display:grid;
  align-content:start;
  gap:18px;
  min-width:0;
}

.control-rail{
  min-width:0;
  padding:18px;
  border:1px solid rgba(10,45,76,.1);
  border-radius:var(--radius-lg);
  background:
    linear-gradient(180deg,rgba(255,255,255,.86),rgba(242,248,253,.72)),
    rgba(255,255,255,.72);
  box-shadow:0 14px 34px rgba(24,57,88,.08),inset 0 1px 0 rgba(255,255,255,.78);
}

.section-head--rail{
  margin-bottom:16px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}

.slider-stack{
  display:grid;
  gap:12px;
  margin:0;
}

.slider-field{
  display:grid;
  gap:9px;
  min-width:0;
  padding:14px;
  border:1px solid rgba(10,45,76,.1);
  border-radius:var(--radius-md);
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(244,249,253,.86)),
    rgba(255,255,255,.78);
  box-shadow:0 10px 22px rgba(24,57,88,.06);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease;
}

.slider-field:hover,
.slider-field:focus-within{
  border-color:rgba(35,138,240,.24);
  background:
    linear-gradient(180deg,rgba(255,255,255,1),rgba(239,247,254,.92)),
    rgba(255,255,255,.9);
  box-shadow:0 14px 30px rgba(24,57,88,.1);
}

.slider-top,
.slider-scale{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.slider-top{
  align-items:center;
  color:#173955;
  font-size:15px;
  font-weight:800;
}

.slider-top output{
  flex:0 0 auto;
  min-width:66px;
  padding:4px 8px;
  border:1px solid rgba(35,138,240,.15);
  border-radius:999px;
  background:rgba(35,138,240,.08);
  color:var(--blue-bright);
  font-size:14px;
  font-weight:800;
  text-align:center;
}

.slider-scale{
  color:var(--muted);
  font-size:14px;
  font-weight:700;
}

.slider-tip{
  display:block;
  padding:10px 12px;
  border-radius:9px;
  background:
    linear-gradient(90deg,rgba(35,138,240,.08),rgba(35,138,240,.035)),
    rgba(255,255,255,.55);
  color:#405e77;
  font-size:15px;
  font-weight:750;
  line-height:1.45;
}

.slider-tip strong{
  color:var(--blue-bright);
}

input[type="range"]{
  --fill:50%;
  width:100%;
  height:9px;
  margin:0;
  border:0;
  border-radius:999px;
  outline:none;
  appearance:none;
  background:
    linear-gradient(90deg,var(--blue) 0,var(--orange) var(--fill),rgba(34,78,114,.15) var(--fill),rgba(34,78,114,.15) 100%);
}

input[type="range"]::-webkit-slider-thumb{
  width:21px;
  height:21px;
  border:2px solid #eef7ff;
  border-radius:50%;
  appearance:none;
  background:linear-gradient(135deg,var(--blue-bright),var(--orange));
  box-shadow:0 8px 18px rgba(19,56,88,.24);
}

input[type="range"]::-moz-range-thumb{
  width:21px;
  height:21px;
  border:2px solid #eef7ff;
  border-radius:50%;
  background:linear-gradient(135deg,var(--blue-bright),var(--orange));
  box-shadow:0 8px 18px rgba(19,56,88,.24);
}

.mechanism-stage{
  min-width:0;
  padding:20px;
  border-radius:var(--radius-lg);
}

.stage-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:16px;
  align-items:start;
  min-height:112px;
  margin-bottom:18px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(10,45,76,.08);
}

.stage-head .section-head{
  align-self:start;
}

.scenario-card{
  position:relative;
  isolation:isolate;
  display:grid;
  gap:16px;
  min-width:0;
  padding:19px;
  overflow:hidden;
  border:1px solid rgba(35,138,240,.34);
  border-radius:var(--radius-lg);
  background:
    linear-gradient(120deg,rgba(255,255,255,.98),rgba(237,247,255,.9) 45%,rgba(255,244,235,.88)),
    repeating-linear-gradient(135deg,rgba(35,138,240,.07) 0 1px,transparent 1px 22px);
  box-shadow:0 22px 48px rgba(24,57,88,.16),0 0 0 4px rgba(35,138,240,.08),inset 0 1px 0 rgba(255,255,255,.9);
}

.scenario-card::before{
  position:absolute;
  inset:0 0 auto;
  z-index:0;
  height:8px;
  background:linear-gradient(90deg,var(--blue),#77c2ff,var(--orange),var(--blue));
  background-size:220% 100%;
  content:"";
  animation:scenarioAccentSweep 7s linear infinite;
}

.scenario-card::after{
  position:absolute;
  inset:8px;
  z-index:0;
  border:1px solid rgba(255,255,255,.66);
  border-radius:calc(var(--radius-lg) - 6px);
  content:"";
  pointer-events:none;
}

.scenario-card > *{
  position:relative;
  z-index:1;
}

.scenario-card .section-kicker{
  color:#004f91;
}

.scenario-card .section-head h2{
  color:#061f36;
  font-size:clamp(25px,2.45vw,34px);
  line-height:1.02;
}

.scenario-card .section-head p:not(.section-kicker){
  max-width:720px;
  color:#385d78;
  font-size:16px;
  font-weight:720;
}

.scenario-card__head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:start;
  min-width:0;
}

.scenario-active{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:39px;
  margin:0;
  padding:8px 13px;
  border:1px solid rgba(242,124,34,.32);
  border-radius:999px;
  background:
    linear-gradient(135deg,rgba(242,124,34,.2),rgba(35,138,240,.14)),
    rgba(255,255,255,.86);
  color:#8d4212;
  font-size:13px;
  font-weight:900;
  letter-spacing:.02em;
  line-height:1.1;
  white-space:nowrap;
  box-shadow:0 9px 20px rgba(24,57,88,.11),inset 0 1px 0 rgba(255,255,255,.86);
}

.scenario-switcher{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  min-width:0;
}

.scenario-slot{
  position:relative;
  display:grid;
  gap:7px;
  min-width:0;
  min-height:158px;
  padding:15px;
  overflow:hidden;
  border:1px solid rgba(10,45,76,.12);
  border-radius:var(--radius-md);
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(245,250,254,.84)),
    rgba(255,255,255,.78);
  box-shadow:0 12px 24px rgba(24,57,88,.08),inset 0 1px 0 rgba(255,255,255,.78);
  cursor:pointer;
  text-align:left;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.scenario-slot::before{
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,var(--blue),var(--orange));
  opacity:.34;
  content:"";
}

.scenario-slot:hover,
.scenario-slot:focus-visible{
  border-color:rgba(35,138,240,.28);
  background:
    linear-gradient(180deg,rgba(255,255,255,1),rgba(238,247,254,.88)),
    rgba(255,255,255,.9);
  box-shadow:0 14px 28px rgba(24,57,88,.1);
  transform:translateY(-1px);
}

.scenario-slot:focus-visible{
  outline:3px solid rgba(35,138,240,.22);
  outline-offset:3px;
}

.scenario-slot.is-active{
  border-color:rgba(7,92,157,.74);
  background:
    linear-gradient(135deg,rgba(35,138,240,.36),rgba(242,124,34,.22)),
    linear-gradient(180deg,rgba(255,255,255,1),rgba(217,239,255,.94));
  box-shadow:0 24px 46px rgba(24,57,88,.22),0 0 0 5px rgba(35,138,240,.18),0 0 0 9px rgba(242,124,34,.08),inset 0 1px 0 rgba(255,255,255,.92);
  transform:translateY(-2px);
}

.scenario-slot.is-active::before{
  width:8px;
  opacity:1;
}

.scenario-slot.is-active::after{
  position:absolute;
  inset:9px;
  border:1px solid rgba(255,255,255,.7);
  border-radius:8px;
  content:"";
  pointer-events:none;
}

.scenario-slot.is-risk::before{
  opacity:.72;
}

.scenario-slot.is-good::before{
  background:linear-gradient(180deg,var(--blue),var(--green));
  opacity:.62;
}

.scenario-slot.is-active.is-risk::before,
.scenario-slot.is-active.is-good::before{
  opacity:1;
}

.scenario-slot__name,
.scenario-slot strong,
.scenario-slot small,
.scenario-slot em{
  position:relative;
  z-index:1;
  min-width:0;
}

.scenario-slot__name{
  color:#173955;
  font-size:15px;
  font-weight:900;
  line-height:1.1;
}

.scenario-slot strong{
  color:var(--blue-bright);
  font-size:26px;
  font-weight:900;
  line-height:1.15;
}

.scenario-slot small{
  color:#4b687f;
  font-size:14px;
  font-weight:800;
  line-height:1.32;
}

.scenario-slot em{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  min-height:36px;
  margin-top:1px;
  padding:4px 7px;
  border:1px solid rgba(35,138,240,.15);
  border-radius:999px;
  background:rgba(35,138,240,.08);
  color:var(--blue-bright);
  font-size:11px;
  font-style:normal;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1.15;
  text-transform:uppercase;
  white-space:normal;
  overflow-wrap:anywhere;
}

.scenario-slot.is-risk em{
  border-color:rgba(242,124,34,.22);
  background:rgba(242,124,34,.1);
  color:var(--orange-soft);
}

.scenario-slot.is-good em{
  border-color:rgba(99,211,180,.26);
  background:rgba(99,211,180,.12);
  color:var(--green);
}

.map-watchouts{
  display:grid;
  align-content:start;
  gap:9px;
  justify-self:end;
  width:100%;
  max-width:330px;
  min-height:94px;
  min-width:0;
  padding:14px;
  border:1px solid rgba(10,45,76,.1);
  border-radius:var(--radius-md);
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(246,250,254,.82));
  box-shadow:0 10px 24px rgba(24,57,88,.07);
}

.warning-list{
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  gap:8px;
  min-height:38px;
}

.warning-badge{
  display:inline-grid;
  grid-template-columns:7px minmax(0,1fr);
  align-items:center;
  gap:7px;
  min-width:0;
  min-height:31px;
  max-width:100%;
  padding:0 11px;
  border:1px solid rgba(255,117,95,.34);
  border-radius:999px;
  background:rgba(255,117,95,.14);
  color:#9d362d;
  font-size:14px;
  font-weight:800;
  line-height:1.3;
  white-space:normal;
  overflow-wrap:anywhere;
}

.warning-badge::before{
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
  content:"";
}

.warning-badge--good{
  border-color:rgba(99,211,180,.34);
  background:rgba(99,211,180,.13);
  color:#086b58;
}

.warning-badge--neutral{
  border-color:rgba(145,204,255,.24);
  background:rgba(145,204,255,.1);
  color:#235a86;
}

.map-surface{
  --map-card-width:240px;
  --map-card-height:214px;
  --map-card-half:107px;
  position:relative;
  min-height:980px;
  overflow:hidden;
  isolation:isolate;
  border:1px solid rgba(10,45,76,.12);
  border-radius:var(--radius-lg);
  background:
    repeating-linear-gradient(90deg,rgba(9,36,61,.055) 0 1px,transparent 1px 84px),
    repeating-linear-gradient(0deg,rgba(9,36,61,.045) 0 1px,transparent 1px 84px),
    linear-gradient(180deg,#fbfdff,#e8f4fe);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.84),
    inset 0 -1px 0 rgba(9,36,61,.04),
    0 16px 32px rgba(24,57,88,.08);
}

.map-surface::after{
  position:absolute;
  inset:12px;
  z-index:-1;
  border:1px solid rgba(12,39,66,.08);
  border-radius:12px;
  content:"";
}

.map-links{
  position:absolute;
  inset:0;
  z-index:4;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none;
}

.map-link{
  --link-opacity:1;
  --link-width:4.6;
  --link-focus-width:4.6;
  fill:none;
  stroke-width:var(--link-width);
  stroke-linecap:round;
  stroke-linejoin:miter;
  opacity:var(--link-opacity);
  vector-effect:non-scaling-stroke;
  transition:opacity .24s ease,stroke-width .24s ease,filter .24s ease,stroke-dashoffset .24s ease;
}

.map-link--blue{
  filter:drop-shadow(0 0 1.5px rgba(255,255,255,.96)) drop-shadow(0 0 6px rgba(44,143,242,.38));
  marker-end:url(#mapArrowBlue);
  stroke:var(--blue);
}

.map-link--thin,
.map-link--arc{
  --link-width:4.6;
}

.map-link--orange{
  filter:drop-shadow(0 0 1.5px rgba(255,255,255,.96)) drop-shadow(0 0 6px rgba(247,131,39,.36));
  marker-end:url(#mapArrowOrange);
  stroke:var(--orange);
}

.map-surface.has-focus .map-link:not(.is-focused){
  opacity:1;
}

.map-link.is-focused{
  stroke-width:var(--link-focus-width);
  opacity:1;
}

.map-surface.is-updating .map-link.is-focused{
  filter:drop-shadow(0 0 2px rgba(255,255,255,.98)) drop-shadow(0 0 13px rgba(44,143,242,.55));
}

.map-surface.is-updating .map-link--orange.is-focused{
  filter:drop-shadow(0 0 2px rgba(255,255,255,.98)) drop-shadow(0 0 13px rgba(247,131,39,.55));
}

#mapArrowBlue path{
  fill:var(--blue);
  stroke:#fff;
  stroke-width:1.4;
}

#mapArrowOrange path{
  fill:var(--orange);
  stroke:#fff;
  stroke-width:1.4;
}

.map-node{
  --node-score:50%;
  --node-accent:var(--blue);
  --node-accent-strong:var(--blue-bright);
  --node-soft:rgba(88,170,255,.2);
  position:absolute;
  z-index:2;
  display:grid;
  align-content:center;
  gap:7px;
  width:var(--map-card-width);
  min-height:var(--map-card-height);
  height:auto;
  padding:18px;
  border:1px solid rgba(7,92,157,.2);
  border-radius:var(--radius-md);
  background:
    linear-gradient(90deg,var(--node-soft) 0 var(--node-score),transparent var(--node-score)),
    linear-gradient(180deg,rgba(255,255,255,.96),transparent 42%),
    rgba(255,255,255,.9);
  box-shadow:0 18px 36px rgba(24,57,88,.14),inset 0 0 0 1px rgba(255,255,255,.78);
  transition:border-color .22s ease,box-shadow .22s ease,filter .22s ease,transform .22s ease,background .22s ease;
}

.map-surface.has-focus .map-node:not(.is-focused){
  filter:saturate(.82);
  opacity:.88;
}

.map-node.is-focused{
  border-color:rgba(44,143,242,.54);
  transform:translateY(-2px);
  box-shadow:0 24px 46px rgba(24,57,88,.18),0 0 0 4px rgba(35,138,240,.11),inset 0 0 0 1px rgba(255,255,255,.86);
}

.map-node--pseudo.is-focused,
.map-node--dependency.is-focused{
  border-color:rgba(242,124,34,.62);
  box-shadow:0 24px 46px rgba(24,57,88,.18),0 0 0 4px rgba(242,124,34,.13),inset 0 0 0 1px rgba(255,255,255,.86);
}

.map-surface.is-updating .map-node.is-focused{
  animation:nodeFocus .52s ease;
}

.map-node p,
.map-node span,
.map-node small{
  min-width:0;
  margin:0;
  overflow-wrap:break-word;
}

.map-node p{
  color:#173955;
  font-size:15px;
  font-weight:800;
  line-height:1.22;
}

.map-node strong{
  position:relative;
  display:inline-flex;
  align-items:flex-end;
  gap:3px;
  width:max-content;
  max-width:100%;
  min-width:70px;
  margin-top:1px;
  padding:5px 8px 8px;
  overflow:hidden;
  white-space:nowrap;
  border:1px solid color-mix(in srgb,var(--node-accent) 34%,transparent);
  border-radius:10px;
  background:
    linear-gradient(90deg,var(--node-accent) 0 var(--node-score),rgba(12,39,66,.12) var(--node-score) 100%) left bottom/100% 4px no-repeat,
    linear-gradient(180deg,rgba(255,255,255,.96),rgba(235,246,255,.9));
  color:var(--node-accent-strong);
  font-size:clamp(20px,1.62vw,25px);
  font-weight:900;
  line-height:.9;
  letter-spacing:0;
  box-shadow:0 9px 18px rgba(24,63,98,.12),inset 0 0 0 1px rgba(255,255,255,.72);
}

.map-node strong::after{
  content:"/100";
  padding-bottom:3px;
  color:#60788c;
  font-size:10px;
  font-weight:800;
  letter-spacing:0;
  line-height:1;
}

.map-node span{
  color:#566e83;
  font-size:14px;
  font-weight:800;
  letter-spacing:.08em;
  line-height:1.28;
  text-transform:uppercase;
}

.map-node small{
  color:#3f617b;
  font-size:14px;
  font-weight:700;
  line-height:1.38;
}

.map-node--access{
  left:5%;
  top:calc(50% - var(--map-card-half));
}

.map-node--knowledge,
.map-node--expertise,
.map-node--speed{
  left:36%;
}

.map-node--knowledge{
  top:6%;
}

.map-node--expertise{
  top:calc(50% - var(--map-card-half));
}

.map-node--speed{
  bottom:13%;
}

.map-node--pseudo,
.map-node--dependency{
  --node-accent:var(--orange);
  --node-accent-strong:var(--orange-soft);
  --node-soft:rgba(255,146,61,.2);
  right:5%;
  border-color:rgba(255,146,61,.34);
  background:
    linear-gradient(90deg,var(--node-soft) 0 var(--node-score),transparent var(--node-score)),
    linear-gradient(180deg,rgba(255,255,255,.94),transparent 42%),
    rgba(255,255,255,.9);
}

.map-node--pseudo{
  top:17%;
}

.map-node--dependency{
  bottom:5.5%;
}

input[type="range"]:focus-visible{
  outline:3px solid rgba(35,138,240,.24);
  outline-offset:3px;
}

@keyframes nodeFocus{
  0%{filter:brightness(1)}
  45%{filter:brightness(1.05)}
  100%{filter:brightness(1)}
}

@keyframes scenarioAccentSweep{
  0%{background-position:0 0}
  100%{background-position:220% 0}
}

@media (max-width:1379px){
  body{padding:calc(14px * var(--app-scale))}

  .hero{
    padding:34px 24px 24px;
  }

  .hero-copy{
    grid-template-columns:minmax(0,1fr) minmax(320px,.66fr);
    gap:30px;
  }

  h1{
    font-size:clamp(48px,5.2vw,72px);
  }

  .genai-layout{
    grid-template-columns:minmax(270px,.58fr) minmax(720px,1.42fr);
    gap:16px;
    padding:20px 22px 24px;
  }

  .control-rail,
  .mechanism-stage{
    padding:16px;
  }

  .stage-head{
    grid-template-columns:minmax(0,1fr) 300px;
    min-height:108px;
  }

  .map-watchouts{
    max-width:300px;
  }

  .scenario-card{
    padding:16px;
  }

  .scenario-card .section-head h2{
    font-size:clamp(24px,2.2vw,31px);
  }

  .scenario-switcher{
    gap:10px;
  }

  .scenario-slot{
    min-height:148px;
    padding:13px;
  }

  .map-surface{
    --map-card-width:220px;
    --map-card-height:198px;
    --map-card-half:99px;
    min-height:900px;
  }

  .map-node{
    gap:6px;
    padding:15px;
  }

  .map-node p{
    font-size:14px;
  }

  .map-node span,
  .map-node small{
    font-size:13px;
  }
}

@media (max-width:1180px){
  body{padding:calc(12px * var(--app-scale))}

  .hero{padding:28px 20px 22px}

  .hero-copy{
    grid-template-columns:minmax(0,1fr) minmax(300px,.62fr);
    gap:22px;
  }

  .hero-support{
    padding-left:18px;
  }

  h1{
    font-size:clamp(42px,5vw,58px);
  }

  .genai-layout{
    grid-template-columns:minmax(250px,.56fr) minmax(620px,1.44fr);
    gap:14px;
    padding:18px;
  }

  .control-rail,
  .mechanism-stage{
    padding:14px;
  }

  .stage-head{
    grid-template-columns:minmax(0,1fr) 270px;
    gap:12px;
    min-height:104px;
  }

  .map-watchouts{
    max-width:270px;
    padding:12px;
  }

  .scenario-card{
    padding:14px;
  }

  .scenario-card__head{
    grid-template-columns:minmax(0,1fr) auto;
  }

  .scenario-active{
    padding:7px 10px;
    font-size:12px;
  }

  .scenario-switcher{
    gap:8px;
  }

  .scenario-slot{
    min-height:138px;
    padding:12px;
  }

  .scenario-slot strong{
    font-size:23px;
  }

  .map-surface{
    --map-card-width:196px;
    --map-card-height:184px;
    --map-card-half:92px;
    min-height:820px;
  }

  .map-node{
    padding:13px;
  }

  .map-node p{
    font-size:13px;
  }

  .map-node strong{
    min-width:62px;
    font-size:21px;
  }

  .map-node span,
  .map-node small{
    font-size:12px;
  }
}

@media (max-width:1080px){
  .genai-layout{
    grid-template-columns:minmax(235px,.54fr) minmax(570px,1.46fr);
    padding:16px;
  }

  .section-head p:not(.section-kicker),
  .slider-tip{
    font-size:14px;
  }

  .slider-field{
    padding:12px;
  }

  .map-surface{
    --map-card-width:188px;
    --map-card-height:178px;
    --map-card-half:89px;
    min-height:800px;
  }
}

@media (max-width:780px){
  .genai-shell{
    zoom:1;
  }

  body{
    padding:8px;
    overflow-x:hidden;
  }

  .genai-shell,
  .genai-widget{
    max-width:100%;
  }

  .genai-widget{
    border-radius:18px;
  }

  .hero{
    padding-top:24px;
    padding-bottom:16px;
  }

  .hero,
  .genai-layout{
    padding-right:16px;
    padding-left:16px;
  }

  .hero-copy{
    grid-template-columns:1fr;
    gap:18px;
  }

  .hero-support{
    justify-items:stretch;
    padding:0;
  }

  .hero-support::before{
    display:none;
  }

  h1{
    max-width:none;
    width:100%;
    min-width:0;
    font-size:clamp(34px,9vw,42px);
    line-height:1;
    text-wrap:wrap;
    overflow-wrap:anywhere;
  }

  .section-head h2,
  .section-head p,
  .scenario-slot,
  .society-meter{
    overflow-wrap:anywhere;
  }

  .society-meter{
    width:100%;
    min-width:0;
    padding:14px;
    gap:9px;
  }

  .society-meter__top{
    align-items:flex-start;
    gap:10px;
  }

  .society-meter__top p{
    min-width:0;
    overflow-wrap:anywhere;
  }

  .society-meter__top output{
    flex:0 0 auto;
    font-size:17px;
  }

  .society-meter__track{
    height:38px;
    border-radius:10px;
  }

  .society-meter__track::before{
    inset:6px;
  }

  .society-meter__marker{
    top:6px;
    bottom:6px;
  }

  .society-meter__labels{
    align-items:flex-start;
    font-size:10px;
  }

  .society-meter__labels span{
    max-width:45%;
    overflow-wrap:anywhere;
  }

  .society-meter__status{
    font-size:17px;
  }

  .society-meter__note{
    font-size:13px;
    line-height:1.45;
  }

  .society-meter__shape{
    display:block;
    width:100%;
    padding:8px 10px;
    border-radius:10px;
    font-size:12px;
    white-space:normal;
    overflow-wrap:anywhere;
  }

  .genai-layout{
    grid-template-columns:1fr;
    gap:16px;
    padding-top:16px;
    padding-bottom:16px;
  }

  .stage-column{
    display:contents;
  }

  .scenario-card{
    order:1;
  }

  .control-rail{
    order:2;
  }

  .mechanism-stage{
    order:3;
  }

  .stage-head{
    grid-template-columns:1fr;
    gap:12px;
    min-height:0;
    margin-bottom:14px;
    padding-bottom:14px;
  }

  .scenario-card{
    padding:14px;
  }

  .scenario-card__head{
    grid-template-columns:1fr;
    gap:11px;
  }

  .scenario-active{
    justify-self:start;
  }

  .map-watchouts{
    justify-self:stretch;
    width:100%;
    max-width:none;
    min-height:0;
    padding:12px;
  }

  .mechanism-stage{
    padding:14px;
  }

  .section-head h2{
    font-size:24px;
  }

  .section-head p:not(.section-kicker){
    font-size:14px;
  }

  .map-surface{
    display:grid;
    gap:22px;
    min-height:0;
    padding:12px;
    border-radius:12px;
  }

  .map-links{
    display:none;
  }

  .map-node{
    position:relative;
    inset:auto;
    width:100%;
    height:auto;
    min-height:136px;
    padding:15px;
  }

  .map-node:not(.map-node--dependency)::after{
    position:absolute;
    left:calc(50% - 1px);
    bottom:-25px;
    z-index:2;
    width:2px;
    height:25px;
    background:linear-gradient(180deg,var(--blue),var(--blue-bright));
    content:"";
  }

  .map-node:not(.map-node--dependency)::before{
    position:absolute;
    left:calc(50% - 5px);
    bottom:-27px;
    z-index:2;
    width:0;
    height:0;
    border-top:7px solid var(--blue-bright);
    border-right:5px solid transparent;
    border-left:5px solid transparent;
    content:"";
  }

  .map-node--speed::after,
  .map-node--pseudo::after{
    background:linear-gradient(180deg,var(--blue),var(--orange));
  }

  .map-node--speed::before,
  .map-node--pseudo::before{
    border-top-color:var(--orange);
  }

  .map-node--knowledge,
  .map-node--expertise,
  .map-node--speed{
    border-left:3px solid rgba(88,170,255,.52);
  }

  .map-node--pseudo,
  .map-node--dependency{
    border-left:3px solid rgba(255,146,61,.6);
  }

  .map-node strong{
    min-width:64px;
    font-size:22px;
  }

  .map-node span,
  .map-node small{
    font-size:13px;
  }

  .control-rail{
    padding:14px;
  }

  .slider-field{
    padding:13px;
  }
}

@media (max-width:540px){
  body{padding:6px}

  .hero,
  .genai-layout{
    padding-right:10px;
    padding-left:10px;
  }

  .hero{
    padding-top:18px;
    padding-bottom:12px;
  }

  h1{
    margin-top:14px;
    font-size:31px;
    line-height:1.02;
  }

  .eyebrow,
  .section-kicker,
  .warning-label{
    font-size:12px;
    letter-spacing:.14em;
  }

  .society-meter{
    padding:12px;
  }

  .society-meter__track{
    height:34px;
  }

  .society-meter__top output{
    font-size:16px;
  }

  .mechanism-stage,
  .control-rail{
    padding:12px;
  }

  .scenario-card{
    padding:12px;
  }

  .scenario-switcher{
    grid-template-columns:1fr;
    gap:8px;
  }

  .scenario-slot{
    min-height:0;
    padding:13px 13px 13px 16px;
  }

  .scenario-slot strong{
    font-size:23px;
  }

  .map-surface{
    gap:20px;
    padding:10px;
  }

  .map-node{
    min-height:126px;
    padding:13px;
  }

  .map-node p{
    font-size:14px;
  }

  .map-node span,
  .map-node small{
    font-size:12px;
  }

  .map-node strong{
    min-width:60px;
    padding:5px 7px 8px;
    font-size:20px;
  }

  .map-node:not(.map-node--dependency)::after{
    bottom:-20px;
    height:20px;
  }

  .map-node:not(.map-node--dependency)::before{
    bottom:-22px;
  }

  .slider-field{
    padding:12px;
  }

  .slider-top{
    align-items:flex-start;
    flex-direction:column;
  }

  .slider-scale{
    align-items:center;
    flex-direction:row;
    width:100%;
  }

  .slider-top{
    gap:7px;
  }

  .slider-top output{
    min-width:0;
  }

  .slider-tip{
    font-size:13px;
    line-height:1.4;
  }
}

@media (max-width:380px){
  h1{
    font-size:29px;
  }

  .society-meter__top{
    display:grid;
    grid-template-columns:1fr;
  }

  .society-meter__top output{
    justify-self:start;
  }

  .section-head h2{
    font-size:22px;
  }

  .warning-badge{
    align-items:flex-start;
    border-radius:10px;
    padding:7px 9px;
  }
}

@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
  }
}
