
:root{--bg:#f5f7fb;--card:#fff;--ink:#18243c;--muted:#63728a;--line:#dfe5ee;--blue:#346ee8;--purple:#8055d8;--rose:#d85080;--amber:#dc982e;--green:#198c75;--shadow:0 12px 38px #1c36600a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #a2bdf9;outline-offset:2px}.shell{max-width:1250px;margin:auto;padding:28px 24px 75px}.top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:26px}.brand{display:flex;gap:12px;align-items:center}.brandmark{width:42px;height:42px;border-radius:13px;background:#263c76;color:#fff;display:grid;place-items:center;font-weight:800;font-size:21px}.brand h1{margin:0;font-size:23px;letter-spacing:-.6px}.brand small{display:block;color:var(--muted);font-size:12px}.tag{font-size:12px;color:#4c5d78;border:1px solid var(--line);padding:7px 11px;border-radius:99px;background:white}.intro{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:24px}.intro h2{margin:0 0 6px;font-size:30px;letter-spacing:-1px}.intro p{margin:0;color:var(--muted);max-width:700px}.tabs{display:flex;gap:6px;padding:5px;background:#e9edf5;border-radius:13px;width:max-content;max-width:100%;overflow:auto;margin-bottom:20px}.tab{border:0;border-radius:10px;padding:10px 19px;background:transparent;color:#56657e;font-weight:650;white-space:nowrap}.tab.active{background:#fff;color:#1e3e80;box-shadow:0 2px 7px #1b355a18}.panel{display:none}.panel.active{display:block}.card{background:var(--card);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);padding:21px}.card h3{margin:0 0 5px;font-size:17px}.subtitle{color:var(--muted);font-size:13px;margin:0 0 16px}.timeline{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px}.day{background:#edf3ff;padding:13px 17px;border-radius:12px;font-weight:750;color:#244b9b;font-size:20px;min-width:98px;text-align:center}.range{width:100%;accent-color:var(--blue)}.controls{display:flex;gap:8px;justify-content:end;align-items:center}.btn{background:#fff;color:#294466;border:1px solid #ced9e8;border-radius:9px;padding:9px 13px;font-weight:650}.btn.primary{background:#2e60cc;color:#fff;border-color:#2e60cc}.btn:disabled{opacity:.4;cursor:not-allowed}.phaseTrack{display:grid;grid-template-columns:5fr 9fr 14fr;margin:14px 0 1px 114px;border-radius:7px;overflow:hidden;height:8px}.phaseTrack div:nth-child(1){background:#efabbf}.phaseTrack div:nth-child(2){background:#9bc2f2}.phaseTrack div:nth-child(3){background:#cfb6ee}.phaseLabels{display:flex;gap:18px;flex-wrap:wrap;margin:15px 0 0}.key{font-size:12px;color:#5f6b7e;display:flex;align-items:center;gap:6px}.dot{width:9px;height:9px;border-radius:50%;display:inline-block}.gridMain{display:grid;grid-template-columns:1.45fr 1fr;gap:17px;margin-top:17px}.chartHead{display:flex;justify-content:space-between;align-items:center;gap:8px}.small{font-size:12px;color:var(--muted)}#hormoneChart{width:100%;height:320px;display:block}.legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:8px}.legend label{font-size:12px;color:#516079;display:flex;align-items:center;gap:5px;cursor:pointer}.legend input{accent-color:#346ee8}.stateCards{display:grid;grid-template-columns:1fr 1fr;gap:13px}.stateCard{background:#f9fbff;border:1px solid #e4eaf4;border-radius:12px;padding:14px;min-height:205px}.stateCard strong{font-size:13px}.stateCard p{color:#5e6c82;font-size:12px;line-height:1.5;margin:7px 0}.ovarySvg,.uterusSvg{width:100%;height:112px}.note{background:#f0f4fd;border-left:3px solid #8aa9e8;padding:12px 15px;border-radius:7px;font-size:13px;color:#475b7b;margin-top:17px}.info{margin-top:15px;display:flex;gap:12px;align-items:start}.daybubble{background:#f0f4fc;color:#2a58b2;border-radius:11px;padding:6px 10px;white-space:nowrap;font-weight:750}.info h4{margin:0 0 4px}.info p{margin:0;color:var(--muted);font-size:13px}.blockgrid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.choice{display:block;border:1px solid #dce4ee;padding:11px 13px;border-radius:10px;margin:9px 0;cursor:pointer;background:#fff}.choice:has(input:checked){border-color:#6b95ed;background:#f0f5ff}.choice input{margin-right:8px;accent-color:#3567d8}.feedback{margin-top:14px;background:#eff5ff;padding:14px;border-radius:10px;font-size:13px;border:1px solid #d7e3fc;display:none}.feedback.show{display:block}.scenarioCard{padding:16px;border:1px solid #e2e7ef;border-radius:12px;margin-bottom:12px;background:#fcfdff}.scenarioCard h4{margin:0 0 6px}.scenarioCard p{margin:0;color:var(--muted);font-size:13px}.stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.stat{padding:6px 10px;border-radius:9px;background:#eef3fa;font-size:12px;color:#476080}.reconstructLine{display:flex;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}select{min-width:170px;max-width:100%;padding:9px;background:#fff;border:1px solid #d4deec;border-radius:9px;color:#273b59}.question{padding:14px 0;border-top:1px solid var(--line)}.question h4{font-size:14px;margin:0 0 8px}.hidden{display:none!important}.footer{margin-top:22px;font-size:12px;color:#6f7e93}.pill{font-size:11px;border-radius:99px;padding:4px 8px;background:#e4efff;color:#2a55a2}.result{font-weight:750;margin-top:10px}.divider{height:1px;background:var(--line);margin:18px 0}@media(max-width:950px){.gridMain,.blockgrid{grid-template-columns:1fr}.stateCards{min-height:0}}@media(max-width:620px){.shell{padding:18px 12px 48px}.top,.intro{align-items:start}.intro{display:block}.intro h2{font-size:24px}.tag{display:none}.timeline{grid-template-columns:1fr auto}.day{grid-column:1/-1;justify-self:start}.controls{gap:5px}.phaseTrack{margin-left:0}.stateCards{grid-template-columns:1fr}.tab{padding:10px 13px}.card{padding:16px}#hormoneChart{height:270px}.reconstructLine{align-items:start;flex-direction:column}}

.hormone-info,.aiPanel{margin-top:18px}.hormoneButtons{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}.hormonePick{border:1px solid var(--line);border-left:5px solid var(--accent);border-radius:10px;background:white;padding:9px 14px;font-weight:700;color:var(--ink)}.hormonePick.selected{background:#eff4ff;box-shadow:0 0 0 2px #c6d6fa}.detailGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}.detailGrid>div{background:#f7f9fd;border:1px solid var(--line);border-radius:12px;padding:14px}.detailGrid h4{margin:0 0 5px;color:#344d79}.detailGrid p{margin:0;font-size:13px}.hormonePath{margin-top:12px;background:#edf4ff;border-radius:11px;padding:13px;font-size:14px}.graphControls{display:flex;align-items:center;gap:16px;margin:14px 0;flex-wrap:wrap}.graphControls label{flex:1;min-width:190px;display:flex;gap:12px;align-items:center}.graphControls input{flex:1;min-width:90px}.graphLegend{display:flex;gap:10px;flex-wrap:wrap}.graphLegend button{background:#fff;border:1px solid var(--line);border-radius:8px;padding:5px 8px;font-size:12px}.graphLegend button.off{opacity:.35}.graphLegend i{display:inline-block;width:10px;height:10px;border-radius:100%;margin-right:5px}.daySummary{font-size:13px;color:#435776;margin-top:12px;padding:9px;background:#f6f8fc;border-radius:9px}.chatHeading{display:flex;justify-content:space-between;align-items:start;gap:12px}.chatMessages{height:270px;overflow-y:auto;background:#f7f9fd;border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:10px}.chatBubble{padding:10px 13px;border-radius:12px;max-width:88%;white-space:pre-wrap;font-size:14px}.chatBubble.bot{background:white;border:1px solid var(--line);align-self:flex-start}.chatBubble.student{background:#e5edff;align-self:flex-end}.chatExamples{display:flex;flex-wrap:wrap;gap:7px;margin:11px 0}.chatExamples button{border:1px solid #d1dcf0;background:#fff;padding:7px 9px;border-radius:8px;color:#3a568d;font-size:12px}.chatForm{display:flex;gap:8px}.chatForm input{flex:1;min-width:0;border:1px solid #ced8e7;border-radius:10px;padding:12px}.chatSettings{font-size:12px;color:#667890;margin-top:14px}.chatSettings label{display:block;margin:10px 0}.chatSettings input{width:100%;padding:9px;border:1px solid var(--line);border-radius:7px}.chatSettings .btn{margin-right:8px}.aiPanel h3{margin-bottom:5px}@media(max-width:750px){.detailGrid{grid-template-columns:1fr}.chatHeading{flex-direction:column}}
#predictionText{display:block;width:100%;padding:12px;border:1px solid #d4deec;border-radius:10px;resize:vertical;font:inherit;color:var(--ink)}#expDayWhy{margin-top:12px}#experimentView{margin-top:20px;border-top:1px solid var(--line);padding-top:19px}#expReflection{font-size:13px;color:#425575;margin-top:12px}
/* Accessible contextual experiment cards */
.scenarioChoice{display:flex;align-items:flex-start;gap:11px;padding:16px;margin:12px 0;line-height:1.55}
.scenarioChoice>input{flex:none;margin:5px 0 0}
.scenarioChoiceBody{display:flex;flex-direction:column;gap:6px}
.scenarioChoiceBody>strong{font-size:15px;color:var(--ink)}
.scenarioChoice.scenario-pill{background:#f2f5ff;border-color:#cbd6f3}
.scenarioChoice.scenario-pill:has(input:checked){background:#e8edff;border-color:#667de1;box-shadow:inset 4px 0 #667de1}
.scenarioChoice.scenario-emergency{background:#fff7ee;border-color:#f1d9ba}
.scenarioChoice.scenario-emergency:has(input:checked){background:#fff0de;border-color:#d88948;box-shadow:inset 4px 0 #d88948}
.scenarioEffectPanel{padding:16px 18px;margin:16px 0;border:1px solid #cbd6f3;border-radius:13px;background:#f2f5ff}
#experiment[data-scenario="emergency"] .scenarioEffectPanel{background:#fff7ee;border-color:#f1d9ba}
.scenarioEffectPanel strong{display:block;margin-bottom:5px}
.scenarioEffectPanel p{margin:0;color:#42546b;font-size:13px;line-height:1.6}
.experimentStructures{margin:18px 0}
.experimentStructuresHeading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.experimentStructures .stateCard{background:#f8faff}
#experiment[data-scenario="emergency"] .experimentStructures .stateCard{background:#fffaf4;border-color:#f1e3d1}
.scenarioBackground{display:block;font-size:13px;color:#53647d}
.scenarioQuestion{display:block;font-size:13px;color:#254e9b;font-weight:600}

/* Emergency-pill timeline in the experiment panel */
.spermTrack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}.spermEvent{border:1px solid #dfe5ee;background:#f5f7fb;border-radius:9px;padding:10px;opacity:.55}.spermEvent.reached{border-color:#9fb8ed;background:#edf4ff;opacity:1}.spermEvent strong{display:block;font-size:12px}.spermEvent span{display:block;font-size:12px;color:#445775}.timelineStatus{font-weight:650;color:#244b9b!important}@media(max-width:650px){.spermTrack{grid-template-columns:repeat(2,minmax(0,1fr))}}

.referenceRevealOption{display:flex;align-items:center;gap:9px;margin:14px 0 8px;font-size:.91rem;cursor:pointer}.referenceRevealOption input{width:17px;height:17px;accent-color:#2563eb}.graphLegend button[aria-pressed='false']{opacity:.42}

.liveGraphControl{display:flex;align-items:center;gap:9px;margin:8px 0 9px;color:#263c5f;font-weight:700;font-size:13px;flex-wrap:wrap}.liveGraphControl input{width:18px;height:18px;accent-color:#346ee8;cursor:pointer}.liveGraphControl span{font-size:12px;font-weight:400;color:#69798e}

/* Explore-mode graph display control: prominent, accessible and independent from hormone filters. */
.liveGraphToolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#eef3ff;border:1px solid #c6d7ff;border-radius:14px;padding:13px 16px;margin:14px 0 12px}
.liveGraphToolbar>div{display:flex;flex-direction:column;gap:4px}
.liveGraphToolbar strong{font-size:15px;color:#192a4a}
.liveGraphToolbar span{font-size:13px;color:#536788}
.liveGraphToggle{border:2px solid #315fc2;border-radius:999px;padding:11px 19px;min-height:44px;min-width:164px;font-weight:800;background:white;color:#244c9d;cursor:pointer}
.liveGraphToggle[aria-checked="true"]{background:#285bd0;color:white;border-color:#285bd0}
.liveGraphToggle:focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}
