*{box-sizing:border-box} :root{color-scheme:dark;--cyan:#67e8f9;--muted:#bad0e4;--line:#34536d}body{margin:0;color:#e9f4ff;background:radial-gradient(ellipse at 60% 0,#173759,#061326 70%);font:15px/1.4 system-ui,sans-serif}main{max-width:1600px;margin:auto;height:100vh;height:100dvh;padding:10px 14px;display:grid;grid-template-rows:auto auto auto auto minmax(0,1fr) auto;gap:8px}header{display:flex;align-items:center;gap:12px}header div{flex:1;min-width:0}header img{object-fit:contain}.eyebrow{font-size:.72rem;letter-spacing:.13em;color:var(--cyan);margin:0}h1{font-size:clamp(1.05rem,2.4vw,1.65rem);margin:0;line-height:1.15}h2{font-size:1.05rem;color:var(--cyan);margin:0 0 8px}p{margin:6px 0 12px}.intro,.small,footer{font-size:.78rem;color:var(--muted);margin:0}.status{border:1px solid #6b9dc7;padding:8px 14px;border-radius:8px;color:var(--cyan)}button,input,textarea,select{font:inherit;color:inherit;min-width:0;border:1px solid #557994;border-radius:8px;background:#081727;padding:8px}button{background:linear-gradient(#254b6b,#16344e);font-weight:750;font-size:.8rem;cursor:pointer;min-height:38px}button.primary{background:linear-gradient(#ffbd62,#e78a13);color:#111;border-color:#ffca85;border-bottom:3px solid #a85808}button.export{color:#86efac}button:disabled{opacity:.42;cursor:default}button[aria-pressed=true]{border-color:#67e8f9;background:#16456d;color:white}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,.scroll:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}.modes,.controls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}#message{font-size:.8rem;color:var(--muted);min-height:1.4em;margin:0}.layout{min-height:0;display:grid;grid-template-columns:minmax(235px,290px) minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(150px,40%);gap:8px}.panel{background:linear-gradient(145deg,#102b44,#0b1c30);border:1px solid var(--line);border-radius:11px;padding:12px;min-height:0;min-width:0;overflow:auto}.guide{grid-row:1/3}.results{display:flex;flex-direction:column;gap:4px}.results h2{margin:0}.results h2 span{float:right;color:#86efac}.scroll{overflow:auto;flex:1;min-height:0}table{width:100%;border-collapse:collapse;font-size:.78rem;table-layout:fixed}th,td{text-align:left;padding:5px 7px;border:1px solid var(--line);overflow-wrap:anywhere;vertical-align:top}th{position:sticky;top:0;background:#16456d;color:white}th:first-child{width:90px}th:nth-child(2){width:100px}tbody tr:nth-child(even){background:#17334b}textarea{width:100%;resize:vertical;font-size:16px}label{display:block;color:var(--muted);font-size:.85rem}details{margin-top:10px;border:1px solid var(--line);padding:8px;border-radius:8px}summary{cursor:pointer;color:var(--cyan);font-weight:700;min-height:28px}details p{font-size:.85rem;margin:5px 0}.mobile-tabs{display:none}footer{text-align:center}.nested{border:2px solid #388dc6;border-radius:12px;padding:14px;margin:6px;background:#0b2943}.nested .nested{border-color:#a78bfa}.nested button{border-color:#ffbe64}.stage-grid{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.stage-grid button{flex:1 1 125px}.metric{font-size:1.4rem;font-weight:800;color:var(--cyan)}.stage-note{color:var(--muted);font-size:.85rem}.state-box{border:1px solid #5b86ac;border-radius:10px;padding:12px;margin:10px 0}.state-box[data-state=RUNNING]{border-color:#86efac}.state-box[data-state=ERROR]{border-color:#fca5a5}.state-box[data-state=PAUSED]{border-color:#fbd38d}.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.timeline span{border:1px solid var(--line);border-radius:8px;padding:10px;text-align:center}.timeline .active{background:#16456d;border-color:#67e8f9}.experiment input[type=range]{width:100%}.experiment input[type=checkbox]{min-height:20px}.experiment label{margin:8px 0}.experiment button{min-height:42px}.experiment input[type=number]{width:100px;font-size:16px}.experiment .stage-note{max-width:95ch}.experiment h3{margin:10px 0 4px;color:#b9e8ff;font-size:1rem}
@media(max-width:850px){main{padding:7px;gap:5px;grid-template-rows:auto auto auto auto auto minmax(0,1fr)}header{gap:7px}header img{width:38px;height:34px}.eyebrow{font-size:.58rem}.intro{font-size:.68rem}.status{padding:5px 8px}.modes{grid-template-columns:repeat(3,minmax(0,1fr))}.modes button,.controls button{font-size:.7rem;min-height:38px;padding:4px}.controls{grid-template-columns:repeat(3,minmax(0,1fr))}.mobile-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.mobile-tabs button{min-height:36px;padding:4px}.layout{display:block;overflow:hidden}.layout>.panel{display:none;height:100%;padding:9px}.layout[data-view=stage]>.experiment,.layout[data-view=guide]>.guide{display:block}.layout[data-view=trace]>.results{display:flex}footer{display:none}th:first-child{width:62px}th:nth-child(2){width:65px}.timeline{grid-template-columns:repeat(2,1fr)}}@media(max-height:460px){main{height:auto;min-height:100vh}.layout{min-height:360px}.layout>.panel{min-height:180px}.layout[data-view]>.panel{max-height:420px}}
/* Compact experiment controls: preserve full-window desktop at normal heights. */
.nested{padding:9px;margin:4px}.experiment label{margin:4px 0}.experiment .stage-grid{margin:6px 0}.experiment .state-box{padding:7px;margin:5px 0}.state-box p{margin:2px 0}.experiment h2{margin-bottom:5px}.experiment h3{margin:4px 0}.experiment .stage-note{margin:5px 0}.experiment .timeline span{padding:7px}.experiment .metric{margin:4px 0}.experiment input[type=checkbox]{vertical-align:middle}

#progress{display:block;width:100%;height:14px;accent-color:#67e8f9;margin:3px 0}#speed{font-size:16px;padding:5px} 
