:root {
  --bg: #0b0d10; --panel: #12161b; --line: #232a33; --text: #d9e1ea; --muted: #8592a3;
  --accent: #ff2d8a; --ok: #3ecf8e; --warn: #f5a524; --bad: #ff5a5a;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.45 var(--mono); }
#app { display: grid; grid-template-columns: 300px 1fr; height: 100vh; }
#panel { background: var(--panel); border-right: 1px solid var(--line); padding: 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.bar { display: flex; align-items: baseline; gap: 8px; }
h1 { font-size: 18px; margin: 0; letter-spacing: .04em; color: var(--accent); }
.lede { margin: 0; color: var(--muted); font-size: 12.5px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field span { color: var(--text); text-transform: none; }
select, button { font: inherit; color: var(--text); background: #1a2028; border: 1px solid var(--line); border-radius: 4px; padding: 7px 9px; }
select { width: 100%; text-transform: none; letter-spacing: 0; }
button { cursor: pointer; flex: 1; }
button:hover, button:focus-visible { border-color: var(--accent); outline: none; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.row { display: flex; gap: 6px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.check input { accent-color: var(--accent); }
dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 12.5px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }
#verdict { margin: 0; font-size: 12.5px; }
#verdict.ok { color: var(--ok); } #verdict.warn { color: var(--warn); } #verdict.bad { color: var(--bad); }
#status { margin: 0; font-size: 12px; color: var(--muted); min-height: 1.4em; }
footer { margin-top: auto; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
#view { position: relative; min-width: 0; }
#c { display: block; width: 100%; height: 100%; touch-action: none; }
#hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); color: var(--muted); font-size: 12px; pointer-events: none; transition: opacity .6s; }
@media (max-width: 760px) {
  #app { grid-template-columns: 1fr; grid-template-rows: 58vh auto; height: auto; }
  #view { grid-row: 1; height: 58vh; }
  #panel { grid-row: 2; border-right: 0; border-top: 1px solid var(--line); }
}
