:root{--bg:#f5f7f8;--paper:#fff;--surface:#f1f5f5;--text:#172e3b;--muted:#596c78;--line:#dbe3e5;--accent:#0b7167;--accent-soft:#e3f2ed;--nav:#edf1f3;--c0:#96600b;--c1:#476fd0;--c2:#8155a0;--c3:#ad4d3d;--shadow:0 14px 50px #1738490a;--mono:ui-monospace,SFMono-Regular,Consolas,monospace}
[data-theme=dark]{--bg:#101b24;--paper:#182731;--surface:#1e313d;--text:#e1eced;--muted:#a4b8c0;--line:#354955;--accent:#79d4bd;--accent-soft:#203e3b;--nav:#22333e;--c0:#edbe66;--c1:#90adff;--c2:#c7a2ed;--c3:#ef9b87;--shadow:0 14px 50px #0002}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button,select{cursor:pointer}button{color:inherit;border:0;background:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}a{color:var(--accent)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;left:12px;top:-70px;background:var(--paper);padding:10px;z-index:99}.skip:focus{top:10px}
.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 3.5vw;gap:30px;background:var(--paper)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}.brand svg{width:34px;stroke:var(--accent);stroke-width:2;fill:var(--paper)}.brand strong{font-size:25px;letter-spacing:-1px}.brand-dot{color:var(--accent)}.top-subtitle{font-size:10px;letter-spacing:1.7px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:22px;margin-left:auto}.theme-button{border:1px solid var(--line);border-radius:20px;padding:7px 13px}.text-button{font-size:12px;font-weight:600;padding:6px 0}.text-button:hover{color:var(--accent)}.shell{max-width:1530px;margin:auto;padding:22px 3.5vw 0}.intro-line{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--muted)}.tour-meta{display:flex;gap:11px;align-items:center;font-size:11px;color:var(--muted)}.tour-meta i{width:3px;height:3px;border-radius:50%;background:var(--muted)}.chapters{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:13px;gap:6px}.chapters button{text-align:left;padding:10px 10px 11px;border-radius:8px;border:1px solid transparent;position:relative;background:var(--nav);line-height:1.25;font-size:11px;font-weight:600;min-height:53px}.chapters button span{display:block;font-family:var(--mono);font-size:10px;opacity:.65;margin-bottom:5px}.chapters button[aria-current=step]{color:var(--accent);background:var(--accent-soft);border-color:var(--accent)}.chapters button:hover{border-color:var(--muted)}
.workbench{border:1px solid var(--line);border-radius:15px;background:var(--paper);overflow:hidden;box-shadow:var(--shadow)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;min-height:470px;height:calc(100vh - 402px);max-height:680px}.stage-area{padding:20px 24px 10px;min-width:0;display:flex;flex-direction:column;overflow:hidden}.stage-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:26px;font-size:11px;color:var(--muted)}.stage-top>span:first-child{font-weight:600;color:var(--text)}.badge{font-size:8px;letter-spacing:.8px;border:1px solid var(--line);padding:4px 7px;border-radius:4px;white-space:nowrap}.architecture{display:flex;align-items:center;gap:7px;margin:13px 0 4px;font-size:10px;color:var(--muted)}.architecture button{padding:4px 7px;border-radius:4px}.architecture button.active{background:var(--accent-soft);color:var(--accent);font-weight:700}.stage{flex:1;min-height:260px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.stage>svg{width:100%;max-height:100%;overflow:visible}.stage text{fill:var(--text);font-family:inherit;font-size:13px}.stage .svg-muted{fill:var(--muted);font-size:11px}.stage .svg-micro{fill:var(--muted);font-size:9px;letter-spacing:1px}.stage .svg-title{font-size:20px;font-weight:600;letter-spacing:-.4px}.stage .svg-mono{font-family:var(--mono);font-size:12px}.stage .svg-bold{font-weight:700}.stage .box{fill:var(--surface);stroke:var(--line);stroke-width:1.2}.stage .shared{fill:var(--accent-soft);stroke:var(--accent);stroke-width:1.5}.stage .link{stroke:var(--line);stroke-width:2;fill:none}.stage .hot-link{stroke:var(--accent);stroke-width:2;fill:none}.stage .private{stroke:var(--muted);stroke-dasharray:4 4;fill:none}.stage .accent-text{fill:var(--accent)}.stage [data-client],.stage [data-token],.stage [data-method-step]{cursor:pointer}.c0{color:var(--c0)}.c1{color:var(--c1)}.c2{color:var(--c2)}.c3{color:var(--c3)}.client-controls{display:flex;flex-wrap:wrap;gap:6px}.chip{padding:6px 10px;border:1px solid var(--line);border-radius:6px;font-size:11px;font-weight:600;display:inline-flex;gap:6px;align-items:center;background:var(--paper)}.chip::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.chip[aria-pressed=true]{border-color:currentColor;background:var(--surface)}.segmented{display:flex;gap:4px;flex-wrap:wrap}.segmented button{padding:6px 10px;border:1px solid var(--line);font-size:11px;border-radius:5px}.segmented button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.scene-controls{display:flex;flex-wrap:wrap;gap:9px;align-items:center;justify-content:space-between;margin-top:8px;min-height:32px}.scene-note{font-size:10px;color:var(--muted);min-height:30px;line-height:1.45;margin:9px 0 0}.inspector{border-left:1px solid var(--line);padding:26px 23px 18px;overflow-y:auto;background:linear-gradient(145deg,var(--paper),var(--surface))}.inspector .eyebrow{color:var(--accent);margin:0 0 15px;font-size:9px}.inspector h1{font-size:29px;line-height:1.13;letter-spacing:-1px;font-weight:650;margin:0 0 12px}.subheading{color:var(--accent);font-size:13px;font-weight:600;margin:0 0 17px}.description{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 17px}.formula{font-family:var(--mono);font-size:11px;line-height:1.8;padding:13px 11px;border:1px solid var(--line);border-radius:7px;overflow-wrap:anywhere;background:var(--paper)}.inspector-live{margin:13px 0;font-size:11px;color:var(--muted)}.inspector-live strong{color:var(--text)}.inspector-live .big-number{font:500 30px var(--mono);color:var(--accent);display:block;line-height:1.3}.inspector details{border-top:1px solid var(--line);margin-top:16px;padding-top:12px;font-size:11px;color:var(--muted)}summary{cursor:pointer;font-weight:600;color:var(--text);list-style:none}summary span{float:right}details p{line-height:1.7}.evidence-button{margin-top:13px;text-align:left;color:var(--accent);font-size:10px}.caption{min-height:74px;border-top:1px solid var(--line);background:var(--surface);padding:15px 24px;display:flex;gap:20px;align-items:center}.caption-tag{font-size:9px;letter-spacing:1.2px;color:var(--accent);font-weight:700;flex-shrink:0}.caption p{margin:0;max-width:950px;font-size:13px;line-height:1.65}.playback{display:flex;gap:14px;align-items:center;padding:15px 22px;height:80px}.primary{display:flex;gap:9px;align-items:center;border-radius:8px;background:var(--accent);color:var(--paper);padding:11px 16px;font-size:12px;font-weight:650;min-width:112px;justify-content:center}.icon-button{width:33px;height:33px;border-radius:6px;border:1px solid var(--line);font-size:17px;flex-shrink:0}.icon-button:disabled{opacity:.35;cursor:default}.timeline{flex:1;min-width:70px}.timeline label{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:2px}.timeline output{font-family:var(--mono)}input[type=range]{width:100%;accent-color:var(--accent);cursor:pointer;height:17px}select{background:var(--surface);color:var(--text);border:1px solid var(--line);padding:5px;border-radius:5px;font-size:11px}footer{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;padding:13px 2px;gap:12px}footer b{padding:0 9px;font-weight:400}footer button{font-size:10px;padding:0;text-decoration:underline;text-underline-offset:3px}
.slider-control{display:grid;grid-template-columns:auto 120px auto;align-items:center;gap:8px;font-size:11px}.gate-controls{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:18px}.gate-controls label{font-size:11px}.gate-controls output{float:right;font-family:var(--mono)}.matrix-wrap,.baseline-wrap,.video-grid{width:100%;padding:15px 0}.matrix{display:grid;grid-template-columns:90px repeat(7,minmax(0,1fr));gap:5px;align-items:stretch}.matrix-label{font-size:10px;text-align:center;padding:9px 0;line-height:1.3;display:flex;align-items:center;justify-content:center}.matrix-cell{border:1px solid var(--line);border-radius:4px;background:var(--surface);height:41px;font-size:14px;color:var(--muted)}.matrix-cell.own{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.matrix-cell.selected{outline:2px solid var(--text);outline-offset:1px}.matrix-caption{font-size:11px;color:var(--muted);margin:16px 0 0}.matrix-headline{font-size:23px;letter-spacing:-.6px;margin:0 0 15px}.statline{display:flex;align-items:baseline;gap:16px;margin-bottom:18px}.statline strong{font:500 38px var(--mono);letter-spacing:-2px;color:var(--accent)}.statline span{font-size:11px;color:var(--muted)}.bar-row{display:grid;grid-template-columns:98px 1fr 100px;align-items:center;gap:12px;margin:9px 0;font-size:11px}.bar-track{height:9px;background:var(--surface);border-radius:8px;overflow:hidden}.bar-fill{height:100%;background:var(--accent);border-radius:8px}.bar-row output{text-align:right;font-family:var(--mono);font-size:10px}.video-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.video-card{text-align:left;border:1px solid var(--line);border-radius:9px;overflow:hidden;padding:0;background:var(--surface)}.video-card img{width:100%;height:100px;object-fit:contain;background:#17232b;display:block}.video-card span{display:block;padding:8px 10px;font-size:11px;font-weight:600}.video-card small{display:block;color:var(--muted);font-size:10px;padding:0 10px 8px}.hero-frame{position:absolute;left:4%;top:20%;width:32%;height:58%;border-radius:12px;object-fit:contain;background:#18252d;border:1px solid var(--line)}
dialog{width:min(960px,94vw);max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:15px;background:var(--paper);color:var(--text);padding:24px 30px;box-shadow:0 20px 100px #0004}dialog::backdrop{background:#0b1928a8;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:20px}.dialog-head h2{font-size:25px;letter-spacing:-.7px;margin:0}.dialog-head .eyebrow{margin:0 0 8px}dialog p,dialog li{font-size:13px;color:var(--muted);line-height:1.8}dialog h3{font-size:16px;margin:22px 0 7px}dialog table{border-collapse:collapse;width:100%;font-size:12px;margin:15px 0}dialog td,dialog th{padding:10px;text-align:left;border-bottom:1px solid var(--line)}dialog th{background:var(--surface)}dialog code{font-family:var(--mono);font-size:11px;overflow-wrap:anywhere}dialog .modal-video{width:100%;max-height:58vh;background:#0b1821;border-radius:7px}dialog .video-grid .video-card img{height:155px}.source-link{display:inline-block;margin-top:12px}.pill-note{padding:12px 15px;border-left:3px solid var(--accent);background:var(--surface);border-radius:4px}.bullet-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.bullet-grid>div{border:1px solid var(--line);border-radius:8px;padding:12px 15px}.bullet-grid h3{margin-top:0}.media-error{color:var(--c3);font-size:12px}
@media(min-width:1550px){.workspace{grid-template-columns:minmax(0,1fr) 355px}.inspector{padding:32px}.inspector h1{font-size:34px}.description{font-size:14px}.caption p{font-size:15px}}
@media(max-height:820px) and (min-width:1000px){.topbar{height:60px}.shell{padding-top:14px}.intro-line{margin-bottom:10px}.workspace{height:440px;min-height:440px}.stage-area{padding:13px 20px 8px}.inspector{padding:19px}.inspector h1{font-size:26px}.description{margin-bottom:12px}.caption{min-height:65px;padding:11px 20px}.playback{height:68px}.chapters{margin-bottom:10px}.scene-note{margin-top:6px}.inspector details{margin-top:10px}}
@media(max-width:1000px){.top-subtitle{display:none}.shell{padding:15px 18px 0}.topbar{padding:0 22px}.workspace{grid-template-columns:minmax(0,1fr) 260px}.stage-area{padding:14px}.inspector{padding:22px 17px}.inspector h1{font-size:25px}.badge{font-size:7px}.architecture{gap:2px;font-size:9px}.chapters button{font-size:10px;padding:8px}.stage text{font-size:13px}.gate-controls{gap:8px}.caption{padding:13px 18px}}
@media(max-width:740px){.topbar{height:64px;padding:0 17px}.brand strong{font-size:23px}.top-actions{gap:14px}.top-actions .text-button{font-size:10px}.theme-button span{display:none}.theme-button{padding:6px 10px}.shell{padding:15px 12px 0}.intro-line .tour-meta{font-size:9px;gap:6px}.eyebrow{font-size:8px;letter-spacing:1px}.intro-line>.eyebrow{max-width:120px}.tour-meta i:last-of-type,.tour-meta{line-height:1.5}.chapters{display:flex;overflow-x:auto;padding-bottom:3px;gap:5px}.chapters button{min-width:116px;font-size:11px}.workspace{height:auto;max-height:none;display:block}.stage-area{padding:14px 13px 12px}.stage-top{align-items:flex-start;flex-wrap:wrap;font-size:10px}.badge{font-size:7px}.stage{min-height:265px}.architecture{font-size:9px;justify-content:space-between;margin-top:10px}.architecture button{padding:5px 3px}.scene-controls{gap:8px}.client-controls{gap:5px}.chip{padding:7px;font-size:10px}.segmented button{font-size:10px;padding:7px}.scene-note{font-size:10px;min-height:0}.inspector{border-left:0;border-top:1px solid var(--line);padding:20px;overflow:visible}.inspector h1{font-size:28px;max-width:450px}.inspector .eyebrow{font-size:9px}.description{font-size:13px;max-width:600px}.inspector-live{font-size:12px}.subheading{margin-bottom:10px}.formula{font-size:12px}.inspector details{font-size:12px}.caption{display:block;padding:14px 18px}.caption-tag{display:block;margin-bottom:5px}.caption p{font-size:13px}.playback{height:auto;min-height:118px;flex-wrap:wrap;padding:14px;gap:9px}.timeline{order:10;flex-basis:100%}.primary{padding:9px 12px}.speed{margin-left:auto}footer{font-size:9px;flex-wrap:wrap;gap:5px;padding-bottom:20px}footer button{font-size:9px}.matrix{grid-template-columns:63px repeat(7,minmax(0,1fr));gap:3px}.matrix-label{font-size:8px}.matrix-cell{height:34px;font-size:11px}.matrix-headline{font-size:19px}.bar-row{grid-template-columns:78px 1fr 91px;gap:7px;font-size:10px}.bar-row output{font-size:9px}.statline strong{font-size:31px}.statline{gap:10px}.video-card img{height:88px}.video-card span{font-size:10px}.video-card small{font-size:9px}.gate-controls{grid-template-columns:1fr 1fr}.slider-control{grid-template-columns:auto 90px auto}.hero-frame{top:24%;height:48%}dialog{padding:19px 17px;max-height:92vh}dialog table{font-size:10px}dialog td,dialog th{padding:8px 5px}.bullet-grid{grid-template-columns:1fr}.dialog-head h2{font-size:22px}dialog .video-grid .video-card img{height:95px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:740px){.stage:has(>svg){justify-content:flex-start;overflow-x:auto;min-height:310px;max-height:310px}.stage>svg{min-width:640px;flex-shrink:0;max-height:none}.stage-area:has(.stage>svg) .scene-note::before{content:"Swipe the diagram horizontally to inspect. ";font-weight:600;color:var(--accent)}}
@media(max-height:820px) and (min-width:1000px){.stage>.video-grid{padding:5px 0;gap:10px}.stage>.video-grid .video-card img{height:65px}.stage>.video-grid .video-card span{padding:6px 10px 2px;font-size:10px}.stage>.video-grid .video-card small{padding-bottom:6px;font-size:9px}.baseline-wrap{padding:5px 0}.baseline-wrap .statline{margin-bottom:10px}.baseline-wrap .statline strong{font-size:30px}.baseline-wrap .bar-row{margin:5px 0}.baseline-wrap .matrix-caption{margin-top:10px}.matrix-wrap{padding:6px 0}.matrix-wrap .matrix-headline{font-size:20px;margin-bottom:10px}.matrix-wrap .matrix-cell{height:34px}.matrix-wrap .matrix-caption{margin-top:10px}}
@media(min-width:741px){.matrix-wrap{padding:5px 0}.matrix-headline{font-size:21px;margin-bottom:10px}.matrix-label{padding:4px 0}.matrix-cell{height:35px}.matrix-caption{font-size:10px;line-height:1.4;margin-top:10px}.stage>.video-grid{padding:6px 0}.stage>.video-grid .video-card img{height:82px}.baseline-wrap{padding:5px 0}.baseline-wrap .statline{margin-bottom:10px}.baseline-wrap .statline strong{font-size:32px}.baseline-wrap .bar-row{margin:6px 0}}
@media(max-height:820px) and (min-width:1000px){.matrix-cell{height:32px}.matrix-headline{font-size:20px;margin-bottom:8px}.matrix-caption{margin-top:8px}.stage>.video-grid .video-card img{height:65px}.baseline-wrap .bar-row{margin:5px 0}.baseline-wrap .statline strong{font-size:30px}}
.bar-row{grid-template-columns:98px 1fr 118px}.bar-row output{white-space:nowrap}
@media(max-width:740px){.bar-row{grid-template-columns:78px 1fr 104px}}
.physical-panel{width:100%;padding:8px 0}.physical-panel>p{font-size:11px;color:var(--muted);margin:8px 0}.physical-scenes{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.physical-scenes .video-card img{height:100px}.physical-panel .text-button{color:var(--accent);font-size:11px}
@media(max-height:820px) and (min-width:1000px){.physical-scenes{margin:10px 0}.physical-scenes .video-card img{height:80px}}
@media(max-width:740px){.physical-scenes{grid-template-columns:repeat(2,1fr)}.physical-panel{padding:15px 0}.physical-scenes .video-card img{height:108px}}
