body { min-height: 100vh; display: flex; flex-direction: column; }
.top, main, .foot { width: 100%; }
main { flex: 1; }
.ph { padding-bottom: 40px; }
.lead { color: var(--ink-2); }
.devices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.device { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 16px; align-items: center;
padding: 14px 4px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.device:hover { background: var(--panel); }
.device input { appearance: none; display: grid; place-items: center; align-self: start; width: 16px; height: 16px; margin: 4px 0 0;
border: 1.5px solid var(--ink-3); border-radius: 2px; background: var(--bg); cursor: pointer; }
.device input:checked { background: var(--accent); border-color: var(--accent); }
.device input:checked::after { content: ""; width: 4px; height: 8px; margin-top: -2px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.device .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device .meta { font-size: 13.5px; color: var(--ink-2); }
.device .meta:empty { display: none; }
.device .pairing { font-size: 13.5px; color: var(--ink-2); }
.device .pairing.done { color: var(--accent); }
.device .pairing.bad { color: var(--bad); }
.device .end { display: flex; align-items: center; gap: 14px; }
.tag { font: 400 8.5px/1 var(--title); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
color: var(--ink-2); padding: 5px 7px 4px; border: 1px solid var(--rule); border-radius: 2px; }
.searching { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-3); }
.res { margin-top: 26px; }
.res .lbl { display: block; margin-bottom: 10px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.seg button { font: 500 14px/1 var(--sans, inherit); padding: 9px 16px; border: 0; border-right: 1px solid var(--rule);
background: var(--bg); color: var(--ink-2); cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--panel); }
.seg button[aria-checked="true"] { background: var(--accent); color: var(--bg); }
.res-note { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }
.res-note:empty { display: none; }
[data-mode="change"] #phones-row, [data-mode="change"] .foot { display: none; }
.error { margin: 18px 0 0; font-size: 14.5px; }
.ph .buttons { margin-top: 30px; }
.phones { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.phones code { font-size: 13px; color: var(--ink); word-break: break-all; }
dialog { width: min(440px, calc(100vw - 40px)); padding: 28px 32px 30px; border: 1px solid var(--rule); border-radius: 4px;
background: var(--bg); color: var(--ink); box-shadow: 0 18px 48px rgba(13, 24, 40, .18); }
dialog::backdrop { background: rgba(13, 24, 40, .45); }
dialog .lbl { display: block; margin-bottom: 12px; }
dialog h2 { overflow-wrap: anywhere; }
dialog p { margin: 0; color: var(--ink-2); }
dialog input { display: block; width: 100%; margin: 22px 0 0; padding: 12px 14px; text-align: center;
font: 500 30px/1.2 var(--mono); letter-spacing: .35em; text-indent: .35em; font-variant-numeric: tabular-nums;
color: var(--ink); background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; }
dialog input::placeholder { color: var(--ink-3); opacity: .5; }
dialog input:focus { outline: none; border-color: var(--accent); }
dialog .error { margin-top: 12px; }
dialog .buttons { margin-top: 24px; }
@media (max-width: 720px) {
.device { grid-template-columns: 18px minmax(0, 1fr); }
.device .end { grid-column: 2; justify-content: flex-start; margin-top: 8px; }
}