:root{--bg:#0b0c10;--fg:#e6eef7;--muted:#a9b2bd;--card:#111319;--border:#252a36;--ring-thin:#FFD166;--ring-thick:#00E5FF;--ring-select:#FFFFFF}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial}a{color:var(--ring-thick)}.wrap{max-width:1250px;margin:0 auto;padding:20px}.lede{color:var(--muted);margin:6px 0 16px;max-width:70ch}.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px;margin-bottom:14px}.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px}.ctrl{display:flex;align-items:center;gap:8px;margin:6px 0 10px;flex-wrap:wrap}.btn{border:1px solid var(--border);background:#141827;color:var(--fg);padding:6px 10px;border-radius:10px;cursor:pointer;font-size:12px}.btn[aria-pressed=true]{outline:2px solid #7cc4ff}.btn.ghost{background:transparent}input[type=range],select,input[type=checkbox]{background:#141827;color:var(--fg);border:1px solid var(--border);border-radius:10px;padding:6px 10px}.grid-wrap{overflow:auto;border:1px solid var(--border);border-radius:14px}.rl,.cl,.cell{border-bottom:1px solid #2d3342;border-right:1px solid #2d3342}.rl{width:52px;height:34px;display:flex;align-items:center;justify-content:flex-end;padding-right:6px;font-size:11px;cursor:pointer;position:sticky;left:0;background:var(--card);z-index:2}.cl{width:34px;height:38px;display:flex;align-items:center;justify-content:center;font-size:11px;cursor:pointer;position:sticky;top:0;background:var(--card);z-index:3}.cell{width:34px;height:34px;position:relative;cursor:pointer}.sel{outline:2px solid var(--ring-select);outline-offset:-2px;box-shadow:0 0 0 2px #0000004d inset}.num{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;text-shadow:0 1px 1px rgba(0,0,0,.6)}.ring{position:absolute;inset:0;outline:2px solid var(--ring-thin);outline-offset:-2px;border-radius:3px;box-shadow:0 0 0 2px #00000059 inset}.ring-thin{outline-color:var(--ring-thin)}.ring-thick{inset:3px;outline-color:var(--ring-thick)}details{background:#0f1323;border:1px solid var(--border);border-radius:12px;padding:10px 12px}details+details{margin-top:8px}code{background:#0b0f1d;border:1px solid var(--border);padding:2px 5px;border-radius:6px}table.small{border-collapse:collapse;width:100%;font-size:12px}table.small th,table.small td{border:1px solid #2d3342;padding:4px 6px;text-align:right}table.small th:first-child,table.small td:first-child{text-align:left}.pill{display:inline-block;padding:2px 8px;border:1px solid var(--border);border-radius:999px;font-size:11px;color:var(--muted)}.spark{width:260px;height:50px;display:block}.blog{line-height:1.6}.blog h2{margin:0 0 10px}.blog p{margin:10px 0}.blog ul{padding-left:20px;margin:10px 0 10px 18px;color:var(--muted)}.blog li{margin-bottom:6px}.controls-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.ctrl-block{background:#0d1120;border:1px solid var(--border);border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:4px}.ctrl-title{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);display:flex;align-items:center;gap:4px}.ctrl-content{display:flex;flex-wrap:wrap;gap:4px;align-items:center}.ctrl-content select,.ctrl-content input[type=range],.ctrl-content input[type=checkbox]{flex:1}.ctrl-note{font-size:10px;color:var(--muted)}.tutorials{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.tutorial-btn{border:1px solid var(--border);background:#101423;color:var(--fg);text-align:left;padding:8px 10px;border-radius:10px;cursor:pointer;font-size:13px;line-height:1.3}.tutorial-btn.active{border-color:var(--ring-thick);box-shadow:0 0 0 1px var(--ring-thick) inset;background:#111a2f}.tutorial-title{font-weight:600;display:block}.tutorial-desc{display:block;font-size:12px;color:var(--muted);margin-top:2px}.tutorial-note{margin-top:10px;font-size:13px;color:var(--muted);background:#0d1120;border:1px solid var(--border);border-radius:10px;padding:10px 12px;line-height:1.5}.info-tip{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid var(--border);border-radius:50%;font-size:11px;color:var(--muted);cursor:help}.btn.mini{padding:4px 8px;font-size:11px}.main-layout{display:flex;flex-direction:column;gap:16px}.side-stack>.card+.card{margin-top:16px}.grid-stack>.card+.card{margin-top:16px}@media (min-width:1100px){.main-layout.wide{display:grid;grid-template-columns:minmax(320px,420px) 1fr;gap:18px;align-items:flex-start}}.appendix-details details{background:#0f1323;border:1px solid var(--border);border-radius:12px;padding:10px 12px}.appendix-details details+details{margin-top:8px}.appendix-details summary{cursor:pointer;font-weight:600}.appendix-links{font-size:12px;color:var(--muted);margin-top:6px}
