.access-loading #app, .access-locked #app, .access-loading #bg, .access-locked #bg,
.access-loading #loginOverlay, .access-locked #loginOverlay,
.access-locked > .device-panel { visibility: hidden; }
.access-screen { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #17191c; color: #cbd0d6; padding: 24px; font-family: var(--font); color-scheme: dark; }
.access-screen[hidden] { display: none; }
.access-card { width: min(100%, 340px); display: grid; gap: 16px; }
.access-card h1 { font-size: 36px; font-weight: 300; margin: 0; }
.access-card p { margin: 0 0 12px; color: #969ea7; }
.access-card label { font-size: 14px; }
.access-card input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #4b535d; border-radius: 8px; background: #22262b; color: #eef0f3; font-size: 18px; }
.access-card button { min-height: 48px; border: 0; border-radius: 8px; background: #cbd0d6; color: #17191c; font: 500 16px var(--font); }
.access-card #accessError { font-size: 14px; color: #f2b7b7; }
.device-panel { position: fixed; top: 64px; right: 24px; width: min(320px, calc(100vw - 32px)); z-index: 100; padding: 22px; border-radius: 14px; background: #f0f1f2; color: #343a40; border: 1px solid #b8bdc2; box-shadow: 0 14px 40px #0002; font: 400 14px/1.5 var(--font); }
.device-panel { max-height: calc(100dvh - 84px); overflow-y: auto; }
.device-panel[hidden], [data-device-button][hidden] { display: none !important; }
.device-panel label { display: grid; gap: 7px; margin-bottom: 14px; }
.device-panel input, .device-panel select { min-width: 0; width: 100%; height: 42px; border: 1px solid #a6aeb7; border-radius: 6px; background: transparent; color: inherit; padding: 8px; font: inherit; }
.device-panel p { font-size: 12px; opacity: .8; margin: 12px 0; }
.device-panel button { width: 100%; min-height: 42px; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: inherit; font: inherit; }
.device-panel .device-logout { border: 0; opacity: .7; }
.device-remote { color: var(--tablet-ink, var(--accent)) !important; }
.device-remote::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: translate(11px, -11px); }
html[data-tablet-theme="night"] .tablet .device-panel { background: #22262b; color: #cbd0d6; border-color: #414952; box-shadow: 0 14px 40px #0005; }
.tablet .device-panel { position: absolute; }
@media (max-width: 520px) { .tablet-header-actions { gap: 2px; } .tablet-header .icon-btn { width: 42px; } }
