#pg-dev { max-width:1800px; font-size:15px }
#pg-dev [hidden] { display:none !important }
.devices-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px }
#pg-dev h2 { font-size:32px; margin:4px 0 7px; letter-spacing:-.03em }
#pg-dev h3 { font-size:20px; margin:0 }
.devices-heading p { margin:0; color:var(--dim); font-size:15px }
.devices-eyebrow { color:var(--acc2); font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:700 }
.devices-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap }
.device-btn { min-height:42px; padding:10px 15px; border:1px solid var(--line2); background:white; color:var(--txt); border-radius:10px; font-family:inherit; font-size:14px; font-weight:600; line-height:1.35; cursor:pointer; white-space:nowrap }
.device-btn:hover { background:#eef7f1; border-color:#96baa3 }
.device-btn.primary { background:#168343; color:#fff; border-color:#168343 }
.device-btn.primary:hover { background:#106c35 }
.device-btn.danger { color:#a73131; border-color:#eac6c6 }
.device-btn:disabled { opacity:.5; cursor:wait }
.device-btn:focus-visible, #pg-dev input:focus-visible, #pg-dev select:focus-visible { outline:3px solid #82b5f3; outline-offset:2px }
.devices-summary { display:flex; gap:10px; flex-wrap:wrap; margin:0 0 18px }
.devices-summary span { font-size:14px; border:1px solid var(--line); background:#fff; border-radius:10px; padding:10px 15px }
.devices-summary b { font-size:19px; margin-right:7px }
.devices-summary .warning { color:#996108; background:#fff9ef; border-color:#eeddc3 }
.devices-table-card { border:1px solid var(--line); border-radius:18px; background:white; overflow:hidden; box-shadow:0 5px 20px #24385108 }
.devices-toolbar { display:flex; gap:12px; align-items:center; padding:18px; flex-wrap:wrap; border-bottom:1px solid var(--line) }
#pg-dev input:not([type=checkbox]), #pg-dev select { min-height:44px; padding:10px 12px; border:1px solid var(--line2); background:white; border-radius:9px; color:var(--txt); font-size:14px; font-family:inherit; width:auto; margin:0 }
#pg-dev #device-search { flex:1; min-width:220px; max-width:480px }
#devices-updated { margin-left:auto }
.device-note { font-size:13px; color:var(--dim); line-height:1.55 }
.devices-table-scroll { overflow-x:auto }
#devtab { width:100%; border-collapse:collapse; table-layout:fixed; min-width:920px; margin:0; font-size:14px }
#devtab th { font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:15px 18px; color:var(--dim); background:#f7f9fc; text-align:left; border-bottom:1px solid var(--line) }
#devtab th:nth-child(1) { width:24% } #devtab th:nth-child(2) { width:25% } #devtab th:nth-child(3) { width:19% } #devtab th:nth-child(4) { width:9% } #devtab th:nth-child(5) { width:11% } #devtab th:nth-child(6) { width:12% }
#devtab td { padding:16px 18px; border-bottom:1px solid #eaf0f5; vertical-align:middle; overflow-wrap:anywhere }
#devtab tr:last-child td { border-bottom:0 }
#devtab tbody tr:hover { background:#f8fbf9 }
.device-name { font-weight:650; font-size:15px; line-height:1.35 }
.device-sub { display:block; font-size:12px; color:var(--dim); margin-top:5px; line-height:1.5 }
.device-badge { display:inline-block; border-radius:5px; background:#edf3ff; color:#3562a3; font-size:10px; padding:2px 5px; margin-left:5px; vertical-align:middle }
.device-values { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 18px; font-variant-numeric:tabular-nums }
.device-reading { white-space:nowrap; line-height:1.45 } .device-reading b { font-size:19px; font-weight:600 }
.device-reading small { color:var(--dim); font-size:12px }
.device-reading.stale, .device-inactive .device-values, .device-inactive .device-name { color:#83909c }
.device-status { display:block; font-size:12px; line-height:1.4; color:#687b8d }
.device-status.fresh { color:#18713c } .device-status.stale, .device-status.setup { color:#9b6a23 }
.device-signal { display:flex; align-items:center; gap:6px; font-size:12px; color:#376f50; margin-top:7px; white-space:nowrap }
.device-signal.stale { color:#91a0ac }
.device-signal.weak { color:#b64532 } .device-signal.fair { color:#a36c14 }
.device-signal svg { width:19px; height:19px; stroke:currentColor; stroke-width:1.7; fill:none; flex-shrink:0 }
.device-signal-meter { width:36px; height:4px; border-radius:3px; background:#e1e8ed; overflow:hidden; flex-shrink:0 }
.device-signal-meter i { display:block; height:100%; background:currentColor }
.device-battery { font-size:14px; font-variant-numeric:tabular-nums; white-space:nowrap }
.device-battery.low { color:#b84e1f } .device-battery.stale { color:#91a0ac }
.devices-footnote { padding:15px 18px; margin:0; color:var(--dim); font-size:12px; line-height:1.6; background:#fbfcfe; border-top:1px solid var(--line) }
.devices-pairing { padding:24px; border:1px solid #c1dbca; border-radius:16px; background:#f6fcf8; margin-bottom:20px }
.devices-pairing p { font-size:14px; line-height:1.65; margin:0 0 18px; max-width:930px }
.devices-pairing .device-note { margin:14px 0 0; font-size:12px }
.devices-pairing label { display:flex; align-items:center; gap:8px; margin-bottom:15px; font-size:14px }
.devices-pairing input[type=checkbox] { width:18px; height:18px }
#devices-error { color:#9e3636; padding:14px 18px; background:#fff2ef; font-size:14px }
#device-detail { width:min(580px,calc(100vw - 32px)); max-height:88vh; overflow:auto; border:1px solid var(--line); border-radius:20px; padding:26px; color:var(--txt); background:#fff; box-shadow:0 20px 80px #14233540 }
#device-detail::backdrop { background:#172b4960; backdrop-filter:blur(3px) }
#device-detail label { display:block; font-size:13px; font-weight:600; margin:18px 0 7px }
#pg-dev #device-detail input { width:100%; user-select:text }
#device-detail .devices-actions { margin-top:22px }
#device-detail-info { font-size:13px; line-height:1.7; color:var(--dim); overflow-wrap:anywhere; user-select:text }
#device-detail-message { font-size:13px; margin-bottom:0; color:#9e3636 }
.device-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0) }
@media(max-width:900px) { .devices-heading { align-items:flex-start; flex-direction:column } #pg-dev h2 { font-size:27px } #devices-updated { margin-left:0 } .devices-pairing { padding:18px } #device-detail .devices-heading { flex-direction:row } }
