:root{color-scheme:light;--paper:#f7f5ef;--ink:#222c2b;--muted:#53615c;--line:#d4d9cf;--green:#17634e;--greenwash:#eaf3ed;--blue:#245b8e;--bluewash:#edf3fb;--orange:#ab431f;--orangewash:#fff0e3;--white:#fffefa;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:17px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);line-height:1.55}button,input,select{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}a{color:var(--green);text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:4px}[hidden]{display:none!important}.skip{position:absolute;left:12px;top:-100px;background:white;padding:12px;z-index:10}.skip:focus{top:10px}.shell{max-width:1120px;margin:auto;padding:26px 32px 40px}header{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:18px}.brand{font-size:.75rem;font-weight:750;letter-spacing:.12em;text-transform:uppercase}.tools{display:flex;align-items:center;gap:14px;font-size:.8rem}.quiet{border:1px solid var(--line);border-radius:7px;background:transparent;padding:8px 12px;color:var(--ink)}h1{font-size:clamp(2rem,5vw,3.2rem);letter-spacing:-.045em;line-height:1.08;font-weight:720;max-width:800px;margin:30px 0 14px}h2{font-size:1.65rem;letter-spacing:-.025em;line-height:1.2;margin:8px 0 16px}h3{font-size:1.08rem;margin:0 0 10px}p{margin:0 0 16px}.deck{font-size:1.04rem;color:var(--muted);max-width:730px}.mode{color:var(--orange);font-size:.78rem;font-weight:750;letter-spacing:.06em;text-transform:uppercase}.progress{display:flex;gap:6px;list-style:none;padding:0;margin:26px 0 22px}.progress li{flex:1;border-top:3px solid var(--line);padding-top:8px;font-size:.76rem;color:var(--muted)}.progress li[aria-current=step]{border-color:var(--green);color:var(--green);font-weight:750}.panel{background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden}.stage{padding:28px}.split{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.4fr);gap:36px}.eyebrow{font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;font-weight:750;color:var(--green)}.badge{display:inline-block;border:1px solid #d5a084;background:var(--orangewash);color:var(--orange);border-radius:7px;padding:8px 12px;font-weight:700;margin:4px 0 18px}.baseline{border-left:3px solid var(--line);padding:10px 14px;margin:20px 0;color:var(--muted);font-size:.92rem}.baseline strong{display:block;color:var(--ink)}.small{font-size:.85rem;color:var(--muted)}fieldset{border:0;margin:0;padding:0;min-width:0}legend{font-weight:650;margin-bottom:16px;max-width:100%}.sellers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.seller{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;border:1px solid var(--line);border-radius:10px;cursor:pointer;background:var(--white);min-height:110px}.seller:has(input:checked){border:2px solid var(--green);padding:11px;background:var(--greenwash)}.seller input{accent-color:var(--green);height:20px;width:20px;margin:0 0 3px}.seller .cost{font-size:1.25rem;font-weight:750}.seller .name{font-size:.72rem;color:var(--muted)}.seller:has(input:focus-visible){outline:3px solid var(--blue);outline-offset:3px}.primary{border:1px solid var(--green);border-radius:8px;background:var(--green);color:white;font-weight:650;padding:12px 18px;min-height:48px}.secondary{border:1px solid var(--green);border-radius:8px;background:transparent;color:var(--green);font-weight:650;padding:12px 18px;min-height:48px}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px}.feedback{min-height:94px;margin:16px 0 0;padding:12px 14px;border-left:3px solid var(--line);font-size:.92rem;background:#f5f6f0}.feedback.good{border-color:var(--green);background:var(--greenwash)}.feedback.retry{border-color:var(--orange);background:var(--orangewash)}.feedback p:last-child{margin:0}.lane{margin:22px 0}.lane-head{display:flex;justify-content:space-between;gap:12px;font-weight:700;margin-bottom:8px}.tokens{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.token{text-align:center;background:#f1f2ed;border:1px solid var(--line);border-radius:6px;padding:10px 2px;color:var(--muted);font-size:.7rem;line-height:1.4}.token strong{display:block;font-size:.95rem}.token.buyer{background:var(--bluewash);border-color:var(--blue);color:var(--blue)}.token.supplier{background:var(--greenwash);border-color:var(--green);color:var(--green)}.token.waiting{background:var(--orangewash);border:1px dashed var(--orange);color:var(--orange)}.choice-row{display:flex;flex-wrap:wrap;gap:10px}.choice{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;padding:12px 16px;cursor:pointer;min-height:50px}.choice:has(input:checked){background:var(--greenwash);border-color:var(--green)}.choice input{accent-color:var(--green);width:20px;height:20px;flex-shrink:0}.choice-stack{display:grid;gap:10px}.trade-total{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.stat{padding:16px;background:#f2f4ed;border-radius:10px}.stat strong{display:block;font-size:2rem;line-height:1.15;margin:6px 0;color:var(--green)}.stat span{font-size:.83rem}.stat.unmet{background:var(--orangewash)}.stat.unmet strong{color:var(--orange)}.bridge{font-size:1.2rem;max-width:740px}.next-card{background:var(--greenwash);padding:20px;border-radius:10px;margin-top:24px}details{border-top:1px solid var(--line);margin-top:24px;padding-top:16px}summary{cursor:pointer;font-weight:650;padding:6px 0}details p{margin-top:12px}.explorer{margin-top:20px}.explore-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.75fr);gap:26px;align-items:start}.chart{display:block;width:100%;height:auto;aspect-ratio:640/420;background:var(--white);border:1px solid var(--line);border-radius:10px}.chart text{font-family:system-ui,sans-serif;font-size:16px;fill:var(--ink)}.chart .demand{stroke:var(--blue);stroke-width:3;fill:none;stroke-dasharray:7 4}.chart .supply{stroke:var(--green);stroke-width:3;fill:none}.chart .ceiling{stroke:var(--orange);stroke-width:2;stroke-dasharray:9 4}.legend{display:flex;gap:18px;flex-wrap:wrap;margin:10px 0;font-size:.8rem}.legend span:before{content:"";display:inline-block;width:22px;border-top:3px solid var(--green);margin:0 6px 4px 0}.legend .d:before{border-color:var(--blue);border-top-style:dashed}.legend .c:before{border-color:var(--orange);border-top-style:dashed}.range-label{display:flex;justify-content:space-between;align-items:center;font-weight:700;gap:12px}.range-label output{color:var(--orange);font-size:1.5rem}input[type=range]{width:100%;accent-color:var(--green);margin:14px 0;height:32px}.range-ends{display:flex;justify-content:space-between;font-size:.8rem;color:var(--muted)}.readout{min-height:170px;background:var(--greenwash);padding:16px;border-radius:10px;margin-top:16px}.readout strong{display:block;margin-bottom:6px}.readout p{font-size:.91rem;margin:0}table{border-collapse:collapse;width:100%;font-size:.88rem;margin:16px 0}th,td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--line)}caption{text-align:left;font-weight:650;margin-bottom:8px}footer{margin-top:24px;font-size:.78rem;color:var(--muted)}footer details{font-size:.85rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.large{font-size:21px}.large .shell{max-width:1280px}noscript p{background:var(--orangewash);padding:16px}.standalone{display:inline-block;margin-top:12px}button:disabled{opacity:.55;cursor:default}
@media(max-width:800px){.shell{padding:18px 18px 30px}.split,.explore-grid{grid-template-columns:1fr;gap:20px}.stage{padding:22px}.baseline{margin:14px 0}.context p{margin-bottom:10px}.sellers{grid-template-columns:repeat(4,minmax(0,1fr))}.seller{padding:10px}.seller:has(input:checked){padding:9px}.tools{gap:8px}.brand{max-width:185px}.chart text{font-size:19px}}
@media(max-width:480px){.shell{padding:14px 12px 26px}header{align-items:flex-start}.tools{flex-direction:column;align-items:flex-end;gap:6px}.stage{padding:18px}.sellers{grid-template-columns:repeat(2,minmax(0,1fr))}.seller{min-height:98px;display:grid;grid-template-columns:24px 1fr;column-gap:8px}.seller input{grid-row:1/3}.seller .cost{grid-column:2}.seller .name{grid-column:2;grid-row:1}.tokens{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.trade-total{gap:6px}.stat{padding:12px 9px}.stat strong{font-size:1.8rem}.stat span{font-size:.75rem}.progress li{font-size:.69rem}.actions>*{flex-grow:1}.choice-row .choice{flex:1}.chart text{font-size:21px}.range-label{font-size:.92rem}.large{font-size:19px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .12s}button:hover{filter:brightness(.95)}}
@media print{.tools,.actions,footer,.progress{display:none}.shell{max-width:none}body{background:white}.panel{border:0}.stage{padding:0}details{display:block}}
/* Keep the first decision close to the top on lecture screens and phones. */
h1{font-size:clamp(1.8rem,4vw,2.65rem);margin-top:18px}.progress{margin-top:20px}.badge{margin-bottom:12px}
@media(max-width:480px){header{display:block;padding-bottom:12px}.brand{max-width:none;font-size:.7rem}.tools{flex-direction:row;justify-content:flex-start;margin-top:10px;font-size:.76rem;gap:10px}.quiet{padding:6px 9px}.mode{margin-top:16px!important}h1{font-size:1.85rem;line-height:1.15;margin-top:14px}.deck{font-size:.94rem}.progress{margin-top:18px;margin-bottom:16px}.stage{padding:16px}.context .small{font-size:.8rem}.badge{font-size:.93rem}.baseline{font-size:.86rem}.split{gap:10px}}
.cap-control{max-width:620px;margin-bottom:20px}.range-label{flex-wrap:wrap}
@media(max-width:480px){.chart text{font-size:29px}}
