:root{--panel: rgba(18, 21, 26, .82);--text: #eef1f4;--muted: #9aa4af;--accent: #4aa8ff;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#cfdbe6}#app{position:fixed;inset:0}#app canvas{display:block}#loading{position:fixed;inset:0;display:flex;gap:12px;align-items:center;justify-content:center;background:#1a1d22;color:var(--text);font-size:15px;transition:opacity .3s;z-index:10}#loading.done{opacity:0;pointer-events:none}#loading .error{color:#ff8a80;max-width:60ch}.spinner{width:20px;height:20px;border:3px solid #3a4048;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#hud,#inspector{position:fixed;top:16px;width:300px;max-height:calc(100% - 32px);overflow-y:auto;padding:14px 16px;border-radius:10px;background:var(--panel);color:var(--text);font-size:13px;backdrop-filter:blur(6px)}#hud{left:16px}#inspector{right:16px}#hud h1{margin:0 0 10px;font-size:16px;font-weight:600}#hud h1 span{color:var(--muted);font-weight:400;font-size:13px;margin-left:6px}#hud .controls{display:grid;gap:8px;margin-bottom:12px}#hud label,#inspector label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted)}#hud select,#hud button,#hud input,#inspector button,#inspector input{font:inherit}#hud select,#hud button,#inspector button,#inspector input[type=number]{background:#2a2f37;color:var(--text);border:1px solid #3c434d;border-radius:6px;padding:3px 8px}#hud button,#inspector button{cursor:pointer;justify-self:start}#hud button:disabled{opacity:.45;cursor:default}#hud button.on{background:var(--accent);border-color:var(--accent);color:#08131f}#inspector input[type=number]{width:6em;text-align:right}#inspector label{margin-bottom:6px}#inspector h2{margin:0 0 8px;font-size:14px;font-weight:600}#inspector h2 span{color:var(--muted);font-weight:400;font-size:12px;margin-left:4px}#inspector h2:not(:first-child){margin-top:14px}button.danger{color:#ffb4ab!important}.modes{display:grid;grid-template-columns:1fr 1fr;margin-bottom:12px}.modes button{border-radius:0!important;padding:6px!important;justify-self:stretch!important}.modes button:first-child{border-radius:6px 0 0 6px!important}.modes button:last-child{border-radius:0 6px 6px 0!important}.tools{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-bottom:10px}.tools button{justify-self:stretch!important;padding:5px 0!important}#buildPanel label{margin-bottom:8px}#buildPanel select{min-width:0;flex:1;max-width:200px}.row{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.hint{color:var(--muted);font-size:12px;line-height:1.4;margin:6px 0}.issues{list-style:none;margin:0;padding:0;display:grid;gap:4px}.issues li{padding:5px 8px;border-radius:5px;cursor:pointer;font-size:12px;line-height:1.35;border-left:3px solid;background:#ffffff0a}.issues li.error{border-color:#ef4444}.issues li.warning{border-color:#f59e0b}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%);padding:9px 14px;border-radius:8px;background:var(--panel);color:var(--text);font-size:13px;z-index:6;transition:opacity .4s}.toast.out{opacity:0}[hidden]{display:none!important}#hud input[type=range]{flex:1;accent-color:var(--accent)}#hud output{width:3.5em;text-align:right;color:var(--text)}#hud dl{display:grid;grid-template-columns:1fr auto;gap:3px 12px;margin:0}#hud dt{color:var(--muted)}#hud dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}#hud .note{margin:12px 0 0;color:var(--muted);font-size:11.5px;line-height:1.4}@media(max-width:480px){#hud{left:8px;right:8px;width:auto;top:8px}#inspector{display:none}}.banner{position:fixed;left:50%;bottom:16px;transform:translate(-50%);max-width:calc(100% - 32px);padding:10px 14px;border-radius:8px;background:#3b1f1f;color:#ffd9d6;font-size:13px;z-index:5}.banner a{color:#fff}#inspector label.check{justify-content:flex-start;gap:6px;margin-bottom:4px;color:var(--text)}#inspector select{font:inherit;background:#2a2f37;color:var(--text);border:1px solid #3c434d;border-radius:6px;padding:3px 6px;max-width:170px}#inspector .phases{display:grid;gap:4px;margin:6px 0}#inspector .phase{display:flex;align-items:center;gap:6px}#inspector .phase span{flex:1;font-size:12px}#inspector .phase em{color:var(--muted);font-style:normal}#inspector .phase input{width:4em!important}#hud button.primary{background:var(--accent);border-color:var(--accent);color:#08131f;font-weight:600;padding:5px 14px}#report{position:fixed;top:16px;right:16px;width:340px;max-height:calc(100% - 32px);overflow-y:auto;padding:14px 16px;border-radius:10px;background:#1d2127f0;color:var(--text);font-size:13px;backdrop-filter:blur(6px);z-index:2}#report header{display:flex;align-items:center;justify-content:space-between}#report h2{margin:0;font-size:15px;font-weight:600}#report h3{margin:16px 0 6px;font-size:13px;font-weight:600}#report h3 span{color:var(--muted);font-weight:400;font-size:12px;margin-left:4px}#report button{font:inherit;background:#2a2f37;color:var(--text);border:1px solid #3c434d;border-radius:6px;padding:3px 9px;cursor:pointer}#report button.on{background:var(--accent);border-color:var(--accent);color:#08131f}#report button:disabled{opacity:.45;cursor:default}#report button.close{border:0;background:none;font-size:18px;line-height:1;padding:2px 6px;color:var(--muted)}#report .status{display:flex;align-items:center;gap:10px;color:var(--muted);margin:18px 0}#report .error{color:#ffb4ab}#report .stale{background:#fbb3151f;border-left:3px solid #fbb315;padding:6px 8px;border-radius:4px;line-height:1.5}#report .score{display:flex;align-items:baseline;justify-content:space-between;margin:12px 0 2px}#report .score strong{font-size:34px;font-weight:650;font-variant-numeric:tabular-nums}#report .score>div>span{color:var(--muted);margin-left:6px}#report .stars{font-size:22px;letter-spacing:2px;color:#3c434d}#report .stars .on{color:#fbb315}#report .breakdown{color:var(--muted);margin:0 0 10px;font-size:12px}#report table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}#report th,#report td{padding:3px 0;text-align:right;font-weight:400}#report th:first-child{text-align:left;color:var(--muted)}#report tr:first-child th{font-size:11.5px;color:var(--muted)}#report td.a{color:var(--muted);padding-left:10px}#report td.q{color:var(--muted);padding-right:10px}#report em{font-style:normal;font-size:11px;color:var(--muted)}#report em.warn{color:#f18a59}#report .los{display:inline-block;min-width:20px;text-align:center;border-radius:4px;font-weight:650;color:#0b0b0b;background:var(--c)}#report .chart{margin:4px 0 8px}#report figcaption{color:var(--muted);font-size:12px;margin-bottom:2px}#report svg{width:100%;height:auto;display:block;overflow:visible}#report svg .grid{stroke:#343a43;stroke-width:1}#report svg .ref{stroke:#4b525c;stroke-dasharray:3 3}#report svg .tick{fill:var(--muted);font-size:10px}#report svg .hit{fill:transparent}#report .legend{display:flex;gap:14px;color:var(--muted);font-size:12px}#report .legend i,#report .heatLegend i{display:inline-block;width:12px;height:3px;border-radius:2px;vertical-align:middle;margin-right:5px}#report .heatLegend{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11.5px}#report .heatLegend i{flex:1;height:6px;margin:0}@media(max-width:480px){#report{inset:auto 8px 8px;width:auto;max-height:60%}}#scenarioCard{background:#4aa8ff1a;border-left:3px solid var(--accent);border-radius:6px;padding:8px 10px;margin-bottom:12px}#scenarioCard h2{margin:0 0 4px;font-size:14px;font-weight:600}#scenarioCard p{margin:0 0 8px;color:var(--muted);font-size:12px;line-height:1.45}#scenarioCard dl{margin-bottom:4px}#scenarioCard .row{margin:6px 0 0}#hud .brush label{margin-bottom:8px}
