:root {
  --ink: #17202d;
  --muted: #657180;
  --paper: #f5f3ee;
  --card: #ffffff;
  --line: #dcdedb;
  --navy: #18365d;
  --blue: #225b9a;
  --teal: #118b85;
  --mint: #d8f0e9;
  --orange: #e87f44;
  --orange-soft: #fff0e7;
  --red: #d8574d;
  --shadow: 0 18px 50px rgba(25, 39, 58, 0.09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid rgba(34,91,154,.28); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 99; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.topbar { height: 72px; padding: 0 max(24px, calc((100vw - 1180px)/2)); display: flex; align-items: center; gap: 32px; background: rgba(245,243,238,.94); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(23,32,45,.1); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.4px; }
.brand > span:last-child span { color: var(--teal); }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); gap: 3px; align-items: end; width: 22px; height: 22px; padding: 3px; border: 1px solid var(--ink); border-radius: 4px; }
.brand-mark i { display: block; background: var(--teal); height: 45%; }
.brand-mark i:nth-child(2) { height: 100%; background: var(--navy); }
.brand-mark i:nth-child(3) { height: 70%; background: var(--orange); }
.upm-logo { display: flex; align-items: center; align-self: stretch; margin-right: auto; padding-left: 18px; border-left: 1px solid rgba(23,32,45,.13); }
.upm-logo img { display: block; width: 86px; height: 48px; object-fit: contain; }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a { color: #44505e; text-decoration: none; font-size: 13px; font-weight: 700; }
.topbar nav a:hover { color: var(--teal); }

.hero { max-width: 1180px; margin: 0 auto; min-height: 620px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 60px; padding: 74px 24px 72px; }
.eyebrow { margin: 0 0 16px; font-family: "DM Mono", monospace; color: var(--teal); font-size: 11px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 25px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 9px; }
.hero h1 { margin: 0; font-size: clamp(52px, 6.2vw, 82px); line-height: .97; letter-spacing: -5px; font-weight: 700; }
.hero h1 em { color: var(--teal); font-family: Georgia, serif; font-weight: 400; }
.hero-lede { max-width: 610px; margin: 28px 0 30px; color: #505c68; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.primary-button, .secondary-button { border: 0; border-radius: 8px; padding: 14px 18px; display: inline-flex; gap: 10px; justify-content: center; align-items: center; text-decoration: none; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-button { background: var(--navy); color: white; box-shadow: 0 8px 18px rgba(24,54,93,.18); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.primary-button span { color: #75ded2; }
.primary-button kbd { margin-left: auto; color: rgba(255,255,255,.6); background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 2px 6px; font-family: "DM Mono"; font-size: 10px; }
.secondary-button { border: 1px solid #c9cecf; background: white; color: var(--navy); }
.time-chip { font-size: 12px; color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; height: 440px; border-radius: 48% 52% 44% 56%; background: radial-gradient(circle at 45% 45%, #fafffd 0 30%, #dceee7 31% 54%, transparent 55%), linear-gradient(150deg, transparent 20%, #edf1eb 20% 80%, transparent 80%); }
.orbit { position: absolute; inset: 10%; border: 1px dashed rgba(24,54,93,.25); border-radius: 50%; transform: rotate(-18deg); }
.orbit-two { inset: 23%; border-style: solid; border-color: rgba(17,139,133,.2); transform: rotate(33deg); }
.core-card { position: absolute; width: 210px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-2deg); background: var(--navy); color: white; border-radius: 13px; padding: 24px; box-shadow: 16px 18px 0 rgba(17,139,133,.18), var(--shadow); }
.core-label { color: #8db0d3; font: 10px "DM Mono"; letter-spacing: 1.4px; }
.core-card strong { display: block; margin: 7px 0 19px; font-size: 25px; }
.core-result { border-top: 1px solid rgba(255,255,255,.18); padding-top: 13px; font: 11px "DM Mono"; color: #9ce7d9; }
.core-result i { display: inline-block; width: 7px; height: 7px; background: #70d8b2; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 0 5px rgba(112,216,178,.1); }
.data-card { position: absolute; background: white; min-width: 140px; padding: 12px 15px; border-radius: 9px; box-shadow: var(--shadow); border-left: 3px solid var(--orange); font: 10px "DM Mono"; animation: float 5s ease-in-out infinite; }
.data-card b { display: block; color: var(--muted); font-weight: 400; margin-bottom: 5px; }
.data-card span { font-size: 15px; color: var(--ink); }
.data-card-a { top: 13%; left: 3%; }
.data-card-b { top: 20%; right: -3%; animation-delay: -1.2s; border-color: var(--teal); }
.data-card-c { bottom: 12%; left: 14%; animation-delay: -2.1s; border-color: var(--blue); }
.hero-note { position: absolute; right: 1%; bottom: 14%; font-size: 12px; line-height: 1.5; color: var(--muted); transform: rotate(2deg); }
@keyframes float { 50% { transform: translateY(-8px) rotate(1deg); } }

.lab-section { background: #eef0ed; border-top: 1px solid #dde0dd; padding: 76px max(24px, calc((100vw - 1180px)/2)) 84px; }
.section-heading { display: grid; grid-template-columns: 1fr 430px; align-items: end; gap: 50px; margin-bottom: 28px; }
.section-heading h2, .results-head h2 { margin: 0; font-size: 34px; letter-spacing: -1.4px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.dataset-ribbon { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; gap: 25px; box-shadow: 0 5px 20px rgba(30,44,60,.04); }
.dataset-title { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.dataset-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--mint); color: var(--teal); font-size: 20px; }
.dataset-title b { display: block; font: 12px "DM Mono"; }
.dataset-title small { color: var(--muted); font-size: 10px; }
.dataset-split { display: flex; align-items: center; gap: 8px; font: 9px "DM Mono"; color: var(--muted); }
.dataset-split b { font-size: 15px; color: var(--ink); }
.dataset-split i { width: 1px; height: 22px; background: var(--line); margin: 0 5px; }
.text-button { border: 0; background: transparent; color: var(--navy); cursor: pointer; font-size: 11px; font-weight: 800; padding: 8px; }
.dataset-panel { background: #fafaf8; border: 1px solid var(--line); border-top: 0; padding: 15px 18px; margin: 0 12px; border-radius: 0 0 10px 10px; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; color: var(--muted); font: 9px "DM Mono"; letter-spacing: .6px; text-transform: uppercase; }
th, td { padding: 9px 12px; border-bottom: 1px solid #e8e9e6; white-space: nowrap; }
td { font-size: 11px; }
.micro-note { margin: 10px 0 0; font-size: 10px; color: var(--muted); }
.student-challenge { display: grid; grid-template-columns: 1.05fr 1.4fr; gap: 30px; align-items: center; margin: 22px 0; padding: 21px 24px; border-radius: 14px; background: var(--navy); color: white; box-shadow: 0 12px 30px rgba(24,54,93,.14); }
.challenge-title > span { color: #7ed9c9; font: 8px "DM Mono"; letter-spacing: 1.2px; }
.challenge-title h3 { margin: 6px 0 5px; font-size: 15px; line-height: 1.35; }
.challenge-title p { margin: 0; color: #aebfd0; font-size: 9px; line-height: 1.5; }
.student-challenge ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0; }
.student-challenge li { min-height: 60px; padding: 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.045); }
.student-challenge li b { display: block; color: #7ed9c9; font: 12px "DM Mono"; margin-bottom: 6px; }
.student-challenge li span { color: #cbd7e3; font-size: 8px; line-height: 1.35; }
.student-challenge li strong { display: block; color: white; font-size: 10px; }

.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; align-items: stretch; }
.workflow { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.prompt-workflow { border-top: 4px solid var(--teal); padding-top: 21px; }
.classic-workflow { border-top: 4px solid var(--blue); padding-top: 21px; }
.workflow-head { display: flex; align-items: center; gap: 12px; }
.number-badge { flex: 0 0 auto; width: 37px; height: 37px; display: grid; place-items: center; background: #eaf0f7; border-radius: 8px; color: var(--blue); font: 11px "DM Mono"; }
.prompt-workflow .number-badge { background: var(--mint); color: var(--teal); }
.workflow-kicker { color: var(--blue); font: 9px "DM Mono"; letter-spacing: 1.1px; }
.prompt-workflow .workflow-kicker { color: var(--teal); }
.workflow h3 { margin: 2px 0 0; font-size: 17px; }
.status-chip { margin-left: auto; padding: 6px 8px; border-radius: 4px; font: 8px "DM Mono"; }
.status-chip.ready { background: #eaf2ed; color: #33745c; }
.status-chip.hybrid { background: var(--orange-soft); color: #a5542d; }
.pipeline { margin: 22px 0; border: 1px solid #e4e6e3; border-radius: 8px; padding: 11px; display: flex; align-items: center; justify-content: space-around; background: #fafbf9; }
.pipeline span { font: 9px "DM Mono"; background: white; border: 1px solid #dde1de; border-radius: 4px; padding: 5px 7px; }
.pipeline i { color: #8d9aa4; font-style: normal; font-size: 11px; }
.prompt-pipeline span:nth-of-type(3) { border-color: var(--teal); background: #f3fbf8; color: var(--teal); }
.code-card { background: #15243a; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.code-top { height: 35px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); padding: 0 12px; gap: 10px; color: #91a6bd; font: 9px "DM Mono"; }
.code-top > span { display: flex; gap: 4px; }
.code-top i { width: 6px; height: 6px; border-radius: 50%; background: #f07863; }
.code-top i:nth-child(2) { background: #efba51; }
.code-top i:nth-child(3) { background: #65c393; }
.code-top b { color: #b9c8d8; font-weight: 400; }
.code-top small { margin-left: auto; }
.code-card pre { padding: 20px; margin: 0; overflow: auto; color: #c4d0df; font: 11px/1.8 "DM Mono"; }
.code-card .kw { color: #6dc6e8; }
.code-card .str { color: #e8aa68; }
.fixed-choices { margin: 18px 0 24px; display: grid; gap: 9px; }
.fixed-choices span { font-size: 10px; color: var(--muted); display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px dashed #e2e3e1; }
.fixed-choices b { color: var(--ink); }
.full { width: 100%; margin-top: auto; }

.prompt-controls { border: 1px solid #e2e4e1; border-radius: 10px; padding: 15px; background: #fafbf9; margin-bottom: 14px; }
.prompt-controls > label, .temperature-heading > label { display: flex; justify-content: space-between; margin: 0; color: var(--ink); font: 9px "DM Mono"; text-transform: uppercase; letter-spacing: .6px; }
.prompt-controls > label span { color: var(--teal); text-transform: none; letter-spacing: 0; }
.engine-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid #e4e7e3; }
.engine-row label { display: block; color: var(--ink); font: 9px "DM Mono"; text-transform: uppercase; letter-spacing: .6px; }
.engine-row small { display: block; margin-top: 3px; color: var(--teal); font-size: 8px; }
.engine-segmented { width: 210px; margin: 0 !important; grid-template-columns: 1fr 1fr !important; }
.endpoint-panel { margin: -4px 0 14px; padding: 11px; border: 1px dashed #b7cdc8; border-radius: 7px; background: #f2f8f6; }
.endpoint-panel label { display: block; margin-bottom: 6px; font: 8px "DM Mono"; color: var(--teal); text-transform: uppercase; }
.endpoint-panel input { width: 100%; padding: 8px 9px; border: 1px solid #cdd8d4; border-radius: 5px; color: var(--ink); font: 9px "DM Mono"; }
.endpoint-panel small { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.endpoint-panel code { color: var(--navy); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: #eaedea; padding: 3px; border-radius: 7px; margin-bottom: 15px; }
.segmented button { border: 0; background: transparent; border-radius: 5px; color: var(--muted); cursor: pointer; padding: 7px 5px; font-size: 9px; font-weight: 700; }
.segmented button.active { background: white; color: var(--teal); box-shadow: 0 2px 5px rgba(20,30,40,.08); }
.prompt-editor { position: relative; display: grid; grid-template-columns: 24px 1fr; border: 1px solid #d9ddda; background: white; border-radius: 7px; overflow: hidden; }
.line-number { background: #f2f3f1; color: #a1aaa7; text-align: center; padding-top: 11px; font: 9px "DM Mono"; border-right: 1px solid #e7e9e6; }
.prompt-editor textarea { width: 100%; resize: vertical; border: 0; padding: 10px 12px 25px; color: #344456; background: white; min-height: 130px; font: 10px/1.55 "DM Mono"; }
.prompt-editor textarea:focus { outline: none; }
.token-count { position: absolute; bottom: 6px; right: 9px; color: #9aa3a0; font: 8px "DM Mono"; }
.control-row { display: flex; gap: 18px; padding: 13px 0 10px; }
.switch-control { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.switch-control input { position: absolute; opacity: 0; }
.switch-control span { width: 27px; height: 15px; border-radius: 20px; background: #c7cdca; position: relative; transition: .2s; }
.switch-control span::after { content: ""; position: absolute; width: 11px; height: 11px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch-control input:checked + span { background: var(--teal); }
.switch-control input:checked + span::after { transform: translateX(12px); }
.switch-control input:focus-visible + span { outline: 3px solid rgba(34,91,154,.28); outline-offset: 2px; }
.switch-control b { font-size: 9px; }
.json-explainer { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 4px; padding: 9px 10px; border: 1px solid #d8e5e1; border-radius: 7px; background: #f1f7f5; }
.json-explainer > span { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 5px; background: white; color: var(--teal); font: 9px "DM Mono"; border: 1px solid #d6e4df; }
.json-explainer p { margin: 0; color: #506863; font-size: 8px; line-height: 1.5; }
.json-explainer p b { color: var(--ink); }
.json-explainer code { color: var(--teal); font: 8px "DM Mono"; }
.temperature-row { padding-top: 12px; }
.temperature-heading { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.temperature-heading label { flex: 1; }
.temperature-row label b { color: var(--teal); }
.temperature-row input { width: 100%; accent-color: var(--teal); }
.temperature-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.tooltip { position: relative; display: inline-flex; margin-left: 8px; }
.tooltip-trigger { width: 19px; height: 19px; display: grid; place-items: center; padding: 0; border: 1px solid #b8cbc6; border-radius: 50%; background: white; color: var(--teal); cursor: help; font: 10px "DM Mono"; font-weight: 800; }
.tooltip-content { position: absolute; z-index: 15; right: -5px; bottom: calc(100% + 9px); width: 270px; padding: 10px 12px; border: 1px solid #cfd8d4; border-radius: 8px; background: var(--ink); color: white; box-shadow: 0 10px 25px rgba(23,32,45,.18); font-size: 9px; line-height: 1.55; text-transform: none; letter-spacing: 0; opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .18s, transform .18s, visibility .18s; }
.tooltip-content::after { content: ""; position: absolute; right: 9px; top: 100%; border: 6px solid transparent; border-top-color: var(--ink); }
.tooltip:hover .tooltip-content, .tooltip:focus-within .tooltip-content { opacity: 1; visibility: visible; transform: translateY(0); }

.results { margin-top: 30px; scroll-margin-top: 95px; }
.results-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.result-actions { display: flex; gap: 8px; }
.metrics-table { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.metrics-table-head, .metric-comparison-row { display: grid; grid-template-columns: minmax(170px, 1.3fr) minmax(140px, 1fr) minmax(140px, 1fr); align-items: stretch; }
.metrics-table-head { min-height: 58px; background: #fafbf9; border-bottom: 1px solid var(--line); }
.metrics-table-head > div { padding: 13px 18px; display: flex; align-items: center; border-right: 1px solid #e6e8e5; color: var(--muted); font: 8px "DM Mono"; letter-spacing: .8px; text-transform: uppercase; }
.metrics-table-head > div:last-child { border-right: 0; }
.metric-column-title { gap: 9px; color: var(--ink) !important; font: 11px "Manrope" !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 800 !important; }
.metric-column-title i { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.metric-column-title.prompt-column i { background: var(--teal); }
.metric-column-title span { display: block; }
.metric-column-title small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 500; }
.metric-comparison-row { min-height: 68px; border-bottom: 1px solid #e8eae7; }
.metric-comparison-row:last-child { border-bottom: 0; }
.metric-comparison-row > div { padding: 13px 18px; display: flex; justify-content: center; flex-direction: column; border-right: 1px solid #e8eae7; }
.metric-comparison-row > div:last-child { border-right: 0; }
.metric-name b { font-size: 11px; }
.metric-name em { font-style: italic; font-weight: 600; }
.metric-name small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.comparison-value { position: relative; text-align: center; align-items: center; }
.comparison-value b { font: 20px "DM Mono"; color: var(--blue); }
.comparison-value.prompt-value b { color: var(--teal); }
.comparison-value b small { font-size: 10px; }
.comparison-value > span { width: min(100%, 110px); height: 3px; margin-top: 7px; overflow: hidden; border-radius: 3px; background: #e5ebe9; }
.comparison-value > span i { display: block; height: 100%; background: var(--blue); }
.comparison-value.prompt-value > span i { background: var(--teal); }
.results-detail { display: grid; grid-template-columns: 1.35fr .65fr; margin-top: 14px; gap: 14px; }
.prediction-panel, .explanation-panel { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 12px; }
.panel-head b { display: block; font-size: 12px; }
.panel-head small { color: var(--muted); font-size: 9px; }
.legend { font-size: 8px; color: var(--muted); }
.legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 3px 0 8px; }
.legend .correct { background: #4ca77c; }
.legend .wrong { background: var(--red); }
.prediction-table tr { cursor: pointer; }
.prediction-table tbody tr:hover, .prediction-table tbody tr.selected { background: #f1f7f5; }
.prediction-table td { font: 10px "DM Mono"; }
.prediction-table td:first-child { font-family: "Manrope"; font-weight: 700; }
.class-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; padding: 4px 6px; background: #edf4f0; color: #347459; font-size: 8px; }
.class-pill.no { background: #f7ecea; color: #9f4d46; }
.class-pill.missing { background: #f1f0ec; color: #777; }
.outcome-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ca77c; display: inline-block; }
.outcome-dot.wrong { background: var(--red); }
.inspect-button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.explanation-panel { position: relative; overflow: hidden; min-height: 290px; }
.explanation-panel::after { content: ""; width: 160px; height: 160px; border: 1px dashed rgba(17,139,133,.2); border-radius: 50%; position: absolute; right: -55px; bottom: -60px; }
.explanation-tag { color: var(--teal); font: 8px "DM Mono"; letter-spacing: 1px; }
.explanation-panel h4 { margin: 8px 0 6px; font-size: 18px; }
.explanation-panel p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.empty-illustration { width: 70px; height: 70px; border: 1px dashed #bfc7c3; border-radius: 50%; display: grid; place-items: center; margin: 30px auto; color: #abb5b0; }
.ground-truth { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 9px; font-weight: 800; }
.case-data { margin-top: 0; }
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.decision-card { position: relative; padding: 11px; border: 1px solid #e0e3e0; border-radius: 8px; background: #fafbf9; }
.decision-card > span { display: block; margin-bottom: 6px; color: var(--muted); font: 7px "DM Mono"; letter-spacing: .6px; }
.decision-card > b { display: block; color: var(--ink); font-size: 10px; }
.decision-card > small { display: block; margin: 3px 0 8px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.decision-card .probability-bar { display: block; width: 100%; height: 4px; overflow: hidden; border-radius: 4px; background: #e6ebe8; }
.decision-card .probability-bar i { display: block; height: 100%; background: var(--blue); }
.decision-card.prompt-decision .probability-bar i { background: var(--teal); }
.verdict { display: inline-flex; margin-top: 8px; padding: 3px 6px; border-radius: 4px; background: #e5f2eb; color: #32745a; font-size: 7px; font-style: normal; font-weight: 800; }
.verdict.error { background: #f8e9e7; color: #a34c45; }
.verdict.missing { background: #eeede9; color: #777; }
.explanation-quote { margin: 16px 0 0; padding: 10px 12px; background: #f1f7f5; border-left: 3px solid var(--teal); color: #3c5956; font-size: 10px; line-height: 1.5; }
.model-error-note { margin-top: 9px; padding: 9px 11px; border-radius: 7px; background: #fff5ec; color: #77563e; font-size: 9px; line-height: 1.5; }
.model-error-note b { display: block; margin-bottom: 3px; color: #9a5930; }
.parsing-warning { margin-top: 12px; border-radius: 9px; padding: 11px 14px; display: flex; align-items: center; gap: 11px; border: 1px solid #eadca9; background: #fff8e8; color: #75653e; }
.parsing-warning > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #df9b35; color: white; font-weight: 800; }
.parsing-warning p { margin: 0; font-size: 10px; }

.teaching-section { max-width: 1180px; margin: 0 auto; padding: 78px 24px 90px; }
.teaching-heading { margin-bottom: 18px; }
.solution-control { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #d9ddda; border-radius: 10px; background: white; }
.solution-control b { display: block; color: var(--ink); font-size: 11px; }
.solution-control p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.solution-control .secondary-button { flex: 0 0 auto; padding: 9px 13px; }
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lesson-grid article { position: relative; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 25px; overflow: hidden; }
.lesson-grid article > span { position: absolute; right: 18px; top: 11px; font: 42px "DM Mono"; color: #eef0ed; }
.lesson-grid h3 { position: relative; margin: 25px 0 10px; font-size: 16px; max-width: 260px; }
.lesson-grid p { position: relative; color: var(--muted); font-size: 11px; line-height: 1.65; min-height: 55px; }
.lesson-grid b { position: relative; color: var(--teal); font-size: 9px; }
.teacher-answer { position: relative; margin-top: 16px; padding: 12px 13px; border: 1px solid #eadca9; border-radius: 8px; background: #fff8e8; }
.teacher-answer strong { display: block; margin-bottom: 5px; color: #a3622e; font: 8px "DM Mono"; letter-spacing: .6px; text-transform: uppercase; }
.teacher-answer p { margin: 0; min-height: 0; color: #695b45; font-size: 9px; line-height: 1.55; }
.teacher-answer em { color: #8b552f; font-style: normal; font-weight: 800; }
.teacher-plan { margin-top: 18px; background: var(--navy); color: white; border-radius: 14px; padding: 22px; }
.teacher-plan > b { display: block; margin-bottom: 16px; font-size: 12px; }
.teacher-plan ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.teacher-plan li { border-left: 1px solid rgba(255,255,255,.16); padding-left: 12px; font-size: 10px; color: #c7d5e3; }
.teacher-plan li span { display: block; color: #7ed9c9; font: 16px "DM Mono"; margin-bottom: 4px; }
footer { border-top: 1px solid var(--line); padding: 20px max(24px, calc((100vw - 1180px)/2)); display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 100px); opacity: 0; background: var(--ink); color: white; padding: 11px 16px; border-radius: 8px; font-size: 11px; box-shadow: var(--shadow); transition: .3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.running { position: relative; overflow: hidden; pointer-events: none; }
.running::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.25) 45%, transparent 70%); animation: loading 1s infinite; }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

@media (max-width: 900px) {
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-visual { height: 380px; max-width: 560px; width: 100%; margin: -20px auto 0; }
  .section-heading { grid-template-columns: 1fr; gap: 13px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .results-detail { grid-template-columns: 1fr; }
  .lesson-grid { grid-template-columns: 1fr; }
  .teacher-plan ol { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .topbar { padding: 0 16px; gap: 12px; }
  .brand { font-size: 16px; gap: 7px; }
  .brand-mark { width: 20px; height: 20px; }
  .upm-logo { padding-left: 10px; }
  .upm-logo img { width: 68px; height: 43px; }
  .hero { padding: 44px 18px 55px; min-height: auto; }
  .hero h1 { font-size: 52px; letter-spacing: -3.5px; }
  .hero-lede { font-size: 15px; }
  .hero-visual { height: 340px; }
  .data-card-b { right: 0; }
  .lab-section { padding: 55px 14px; }
  .dataset-ribbon { flex-wrap: wrap; }
  .dataset-split { order: 3; }
  .workflow { padding: 17px; }
  .workflow-head { flex-wrap: wrap; }
  .status-chip { margin-left: 49px; }
  .pipeline { overflow: auto; justify-content: flex-start; gap: 8px; }
  .control-row { flex-wrap: wrap; }
  .engine-row { align-items: flex-start; flex-direction: column; }
  .engine-segmented { width: 100%; }
  .student-challenge { grid-template-columns: 1fr; gap: 16px; }
  .student-challenge ol { grid-template-columns: 1fr 1fr; }
  .results-head { align-items: flex-start; gap: 15px; flex-direction: column; }
  .metrics-table-head, .metric-comparison-row { grid-template-columns: minmax(125px, 1.15fr) minmax(92px, .85fr) minmax(92px, .85fr); }
  .metrics-table-head > div, .metric-comparison-row > div { padding: 11px 9px; }
  .metric-name small, .metric-column-title small { display: none; }
  .comparison-value b { font-size: 17px; }
  .panel-head { align-items: flex-start; gap: 8px; flex-direction: column; }
  .decision-grid { grid-template-columns: 1fr; }
  .teaching-section { padding: 58px 18px; }
  .teacher-plan ol { grid-template-columns: 1fr; }
  .solution-control { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

.topbar{height:auto;min-height:72px;flex-wrap:wrap;gap:20px;padding-top:10px;padding-bottom:10px}.topbar #language{min-width:0}.topbar nav{margin-left:auto}@media(max-width:600px){.topbar{padding:10px 14px;gap:10px}.topbar nav{order:4;width:100%;justify-content:center;gap:24px}.upm-logo{padding-left:8px}.upm-logo img{width:58px;height:38px}.brand{font-size:17px;gap:6px}.topbar #language{font-size:13px!important;max-width:130px!important;padding:6px!important}.workspace>*{min-width:0}.legend{white-space:normal}.challenge ol{grid-template-columns:1fr}.hero h1{font-size:48px;letter-spacing:-2px}}
.results-detail>*,.comparison-grid>*{min-width:0}.table-scroll{max-width:100%}.metrics-table{overflow-x:auto}@media(max-width:600px){.topbar nav{display:flex}}

[hidden]{display:none!important}
