/* refresh rate test: on top of /lib/device-test/ui.css */
.hz-top { text-align: center; }
.hz-num { margin: 4px 0 0; line-height: 1; }
.hz-big { font-size: clamp(56px, 14vw, 112px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.hz-big.settling { color: var(--muted); }
.hz-unit { font-size: clamp(20px, 4vw, 32px); font-weight: 700; color: var(--accent); }
.hz-sub { margin: 8px 0 10px; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.hz-settle { max-width: 420px; margin: 0 auto 16px; }
.hz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.hz-stats div { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.hz-stats dt { font-size: 11px; color: var(--muted); }
.hz-stats dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 560px) { .hz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hz-chart { display: block; width: 100%; height: 110px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.hz-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 6px 0 10px; }
.hz-legend .key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.hz-legend .key:first-child { margin-left: 0; }
.key.k-ok { background: var(--accent-dim); }
.key.k-drop { background: var(--bad); }
.key.k-line { background: var(--text); height: 2px; }
.hz-notes { list-style: none; margin: 0 0 12px; padding: 0; }
.hz-notes:empty { display: none; }
.hz-notes li { font-size: 13px; color: var(--warn); padding: 6px 10px; border: 1px solid #4a3b1f; background: rgba(255, 180, 84, 0.06); border-radius: 8px; margin-bottom: 6px; }
.fix { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.fix::before { content: "Fix: "; color: var(--text); }
kbd { font: 11px ui-monospace, Consolas, monospace; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; opacity: 0.7; margin-left: 4px; }
.hz-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
@media (max-width: 860px) { .hz-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .hz-form { grid-template-columns: 1fr; } }
.hz-form .lbl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hz-form .lbl .in, .hz-form .lbl .sel { font-weight: 400; min-height: 40px; }
.hz-res { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.hz-res .in { min-width: 0; }
.hz-verdict { margin: 16px 0 8px; font-size: 16px; font-weight: 700; }
.hz-verdict.good { color: var(--good); }
.hz-verdict.warn { color: var(--warn); }
.hz-verdict.bad { color: var(--bad); }
.hz-causes { list-style: none; margin: 0; padding: 0; }
.hz-causes li { padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; }
.hz-causes .tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 999px; padding: 1px 8px; margin-right: 8px; border: 1px solid var(--border); color: var(--muted); }
.hz-causes .lvl-found .tag { color: #10130a; background: var(--warn); border-color: var(--warn); }
.hz-causes .lvl-likely .tag { color: var(--warn); border-color: #4a3b1f; }
.hz-tablewrap { overflow-x: auto; margin-top: 10px; }
.hz-links { font-size: 12px; min-width: 420px; }
.hz-links th[scope="row"] { color: var(--text); font-weight: 600; }
.hz-links tr.cur th, .hz-links tr.cur td { color: var(--accent); }
.hz-motion { display: block; width: 100%; height: 192px; margin: 12px 0 8px; border-radius: 10px; }
.hz-skip { display: block; width: 100%; margin: 12px 0 8px; background: #000; border-radius: 6px; }
.hz-facts { font-size: 13px; }
.hz .doors { margin-top: 0; }
:fullscreen body, body:fullscreen { overflow: auto; }
