﻿.devices-page { color-scheme: dark; background: #000; color: #fff; }
.devices-page .site-header { position: relative; height: auto; min-height: 76px; background: #000; border-bottom: 1px solid #2a3237; }
.devices-page .navbar-logo { color: #fff; }
.devices-page .nav-link { color: rgba(255, 255, 255, .72); }
.devices-page .supported-devices-link::after { background: var(--cta); }
.devices-main { background: #000; width: min(90%, 1380px); min-height: calc(100vh - 76px); margin: auto; padding: 48px 0 80px; overflow: visible; }
.device-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.device-kicker { color: var(--cta); font-size: 14px; font-weight: 600; letter-spacing: 1.3px; margin-bottom: 10px; }
.devices-main h1 { font-size: clamp(32px, 3vw, 44px); line-height: 1.15; margin-bottom: 12px; }
.device-subtitle { color: #aeb8c2; font-size: 19px; line-height: 1.5; }
.device-controls { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.device-search { flex: 1; max-width: 650px; }
.devices-page input, .devices-page select, .devices-page textarea { width: 100%; padding: 13px 15px; border: 1px solid #3b4750; border-radius: 5px; color: #fff; background: #11171b; font: inherit; }
.device-filters { display: flex; flex-wrap: wrap; border: 1px solid #2a3237; border-radius: 5px; overflow: hidden; }
.device-filters button { border: 0; border-right: 1px solid #2a3237; background: #11171b; color: #d5dbe1; padding: 13px 20px; font: inherit; cursor: pointer; }
.device-filters button[aria-pressed="true"] { background: var(--cta); color: var(--cta-ink); }
.device-table-wrap { overflow-x: auto; border-radius: 5px; }
#device-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 700px; }
#device-table th, #device-table td { padding: 20px; text-align: left; border: 1px solid #2a3237; line-height: 1.5; }
#device-table th { background: #11171b; color: #fff; font-size: 14px; }
#device-table td:first-child { font-weight: 500; overflow-wrap: anywhere; max-width: 320px; }
.device-badge { display: inline-block; padding: 4px 12px; color: var(--cta); background: #10263b; border-radius: 4px; font-size: 14px; }
.device-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid var(--cta); border-radius: 5px; color: var(--cta); background: #11171b; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.device-button.primary { background: var(--cta); color: var(--cta-ink); }
.device-button.danger { border-color: #d86363; color: #ff9393; }
.device-button:hover { filter: brightness(1.15); }
.device-button:disabled { opacity: .6; cursor: wait; }
.device-actions { white-space: nowrap; }
.device-actions .device-button { padding: 8px 14px; margin: 0 8px 0 0; }
.device-meta { color: #aeb8c2; font-size: 14px; margin-top: 20px; }
#device-status:not(.empty-state) { color: #aeb8c2; font-size: 14px; margin-bottom: 12px; }
.empty-state { border: 1px solid #2a3237; border-radius: 5px; background: #0d1317; padding: 64px 24px; text-align: center; color: #aeb8c2; line-height: 1.6; }
.device-callout { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 48px; padding: 28px; border: 1px solid #2a3237; border-radius: 7px; background: #070c10; }
.device-callout h2 { color: var(--cta); font-size: 18px; margin-bottom: 8px; }
.device-callout p { color: #aeb8c2; line-height: 1.5; }
#device-dialog { margin: auto; width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; padding: 30px; border: 0; border-radius: 9px; color: #fff; background: #0d1317; box-shadow: 0 20px 60px #0009; }
#device-dialog::backdrop { background: #000b; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.dialog-heading h2 { font-size: 26px; }
.dialog-heading button { border: 0; background: none; color: #aeb8c2; font-size: 30px; cursor: pointer; padding: 0 6px; }
#device-form label { display: block; margin: 23px 0 8px; font-weight: 600; font-size: 14px; }
#device-form small { display: block; margin-top: 6px; color: #aeb8c2; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; border-top: 1px solid #2a3237; padding-top: 22px; }
#form-error { color: #ff9393; margin-top: 12px; }
.devices-page :focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 1000px) { .device-controls { flex-direction: column; } .device-search { max-width: none; } .device-filters { align-self: flex-start; } }
@media (max-width: 760px) { .devices-page .navbar { width: 100%; flex-wrap: wrap; padding: 16px 5%; } .devices-page .navbar-links { width: 100%; flex-wrap: wrap; gap: 0 20px; } .devices-page .nav-link { padding: 14px 0; } .devices-page .nav-link::after { bottom: 5px; } .device-heading, .device-callout { align-items: flex-start; flex-direction: column; } .device-heading { margin-bottom: 28px; } .devices-main { padding-top: 32px; } .device-filters button { padding: 12px; font-size: 14px; } .device-callout { padding: 22px; } }

.devices-page .nav-link:hover, .devices-page .nav-link.active { color: #fff; }
.devices-page input::placeholder, .devices-page textarea::placeholder { color: #929eaa; opacity: 1; }
.device-filters button:last-child { border-right: 0; }
.device-filters button:hover:not([aria-pressed="true"]) { background: #202a32; color: #fff; }
#device-table tbody { background: #070c10; }
#device-table tbody tr:hover { background: #11171b; }
