:root{--bg:#f4f6f8;--panel:#fff;--border:#d9dee4;--text:#1d2733;--muted:#6b7785;--accent:#e07b24;--error:#c0392b;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{background:var(--bg);margin:0}.layout{grid-template:"header header""aside main"1fr/300px 1fr;min-height:100vh;display:grid}header{background:var(--panel);border-bottom:1px solid var(--border);grid-area:header;align-items:baseline;gap:1rem;padding:.75rem 1.25rem;display:flex}header h1{margin:0;font-size:1.2rem}.solver{color:var(--muted);font-size:.85rem}aside{background:var(--panel);border-right:1px solid var(--border);flex-direction:column;grid-area:aside;gap:.75rem;padding:1rem;display:flex}main{flex-direction:column;grid-area:main;gap:1rem;min-width:0;padding:1rem;display:flex}fieldset{border:1px solid var(--border);border-radius:6px;margin:0;padding:.5rem .75rem .75rem}legend{font-size:.9rem;font-weight:600}.field{justify-content:space-between;align-items:center;gap:.5rem;margin-top:.4rem;font-size:.9rem;display:flex}.field-input{align-items:center;gap:.3rem;display:flex}.field input{border:1px solid var(--border);width:6.5rem;font:inherit;border-radius:4px;padding:.25rem .4rem}.unit{width:1.8rem;color:var(--muted);font-size:.8rem}button{background:var(--accent);color:#fff;font:inherit;cursor:pointer;border:none;border-radius:6px;padding:.6rem;font-weight:600}button.secondary{background:var(--muted)}.status progress{width:100%;margin-top:.3rem}.error{color:var(--error);font-size:.85rem}.viewer{background:var(--panel);border:1px solid var(--border);border-radius:6px;height:420px;position:relative;overflow:hidden}.viewer-info{color:var(--muted);font-size:.8rem;position:absolute;bottom:.5rem;left:.75rem}.plots{grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:1rem;display:grid}.plot{background:var(--panel);border:1px solid var(--border);border-radius:6px;height:420px}.hint{color:var(--muted)}@media (width<=800px){.layout{grid-template-columns:1fr;grid-template-areas:"header""aside""main"}aside{border-right:none;border-bottom:1px solid var(--border)}.plots{grid-template-columns:1fr}}
