:root { --bg: #0b0d11; --text: #f4f5f7; --muted: #a8adb8; --accent: #2f7cf6; --good: #22a55b; --bad: #e0483e; --warn: #e0a21b; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at 50% 0%, #1c2230, #0b0d11); }
.page { max-width: 760px; margin: 0 auto; padding: 22px 16px 48px; display: flex; flex-direction: column; gap: 12px; }
h1 { margin: 6px 0 0; font-size: 26px; }
h2 { margin: 14px 0 0; font-size: 19px; }
p { line-height: 1.5; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.box { background: rgba(255,255,255,0.06); border-radius: 14px; padding: 14px 16px; }
.ok { background: rgba(52,199,89,0.16); border: 1px solid var(--good); }
.bad { background: rgba(255,69,58,0.14); border: 1px solid var(--bad); }
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; padding: 10px 12px; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); }
.check input { margin-top: 3px; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 700; font-size: 17px; }
.primary { background: var(--accent); color: #fff; }
.secondary { background: rgba(255,255,255,0.14); color: #fff; }
button:disabled { opacity: 0.5; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.frame { position: relative; width: 100%; height: min(860px, calc(100dvh - 20px)); border-radius: 16px; overflow: hidden; background: #000; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hidden { display: none !important; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: left; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.auto { font-size: 13px; color: var(--muted); line-height: 1.5; }
.error { color: #ffb4ae; }
svg.ba { width: 100%; height: auto; }
svg.ba .frame { fill: none; stroke: rgba(255,255,255,0.2); }
svg.ba .band { fill: rgba(52,199,89,0.1); }
svg.ba .zero { stroke: rgba(255,255,255,0.35); }
svg.ba .bias { stroke: var(--accent); stroke-width: 2; }
svg.ba .loa { stroke: var(--warn); stroke-dasharray: 5 4; }
svg.ba .pt { fill: var(--accent); stroke: #fff; stroke-width: 1; }
svg.ba text { fill: var(--muted); font-size: 11px; }

.stack { display: flex; flex-direction: column; gap: 10px; }
button.big { width: 100%; padding: 16px; font-size: 17px; }
.event-log { color: #8a93a3; font-size: 11px; margin-top: 2px; word-break: break-word; }

.tabs { display: flex; gap: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; padding: 4px; }
.tab { flex: 1; padding: 10px 12px; font-size: 15px; background: transparent; color: var(--muted); }
.tab.active { background: var(--accent); color: #fff; }
.ratings { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.rating { border: 0; padding: 0; margin: 0; }
.rating legend, .yesno legend { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.rating .stars { display: flex; gap: 6px; }
.rating .stars label { flex: 1; flex-direction: row; justify-content: center; align-items: center; gap: 4px; padding: 8px 0; border-radius: 10px; background: rgba(255,255,255,0.08); color: var(--text); font-weight: 700; }
.rating .stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating .stars label:has(input:checked) { background: var(--accent); }
.yesno { border: 0; padding: 0; margin: 12px 0 0; display: flex; gap: 18px; flex-wrap: wrap; }
