:root { color-scheme: dark; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #11110f; color: #f4f0e8; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 0%, #343127 0, transparent 35%), #11110f; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: max(34px, env(safe-area-inset-top)) 0 64px; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.brand img { width: 48px; height: 48px; border-radius: 13px; }
.brand p, .section-title p { margin: 0 0 4px; color: #a9a293; font-size: 11px; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 25px; }
h2 { margin-bottom: 0; font-size: 20px; }
.card, dialog { border: 1px solid #3c3931; border-radius: 20px; background: rgba(31, 30, 26, .96); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.card { padding: 22px; }
.auth-card { width: min(460px, 100%); margin: 8vh auto 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; margin-bottom: 22px; border-radius: 12px; background: #151512; }
.tabs button { padding: 10px; color: #9e988b; border: 0; border-radius: 9px; background: transparent; }
.tabs button.active { color: #fff; background: #353229; }
label { display: grid; gap: 8px; margin: 14px 0; color: #c8c2b6; font-size: 13px; }
input, select { width: 100%; padding: 12px 13px; color: #fff; border: 1px solid #4b473d; border-radius: 11px; outline: none; background: #171714; }
input:focus, select:focus { border-color: #c0a969; box-shadow: 0 0 0 3px rgba(192,169,105,.12); }
.primary, .quiet { border: 0; border-radius: 11px; padding: 11px 15px; color: #17140d; background: #e3c979; font-weight: 680; }
.quiet { color: #d1cabd; border: 1px solid #4b473d; background: transparent; }
.compact { padding: 9px 12px; }
.full { width: 100%; }
.auth-card .primary { width: 100%; margin-top: 8px; }
.error { min-height: 20px; margin: 8px 0; color: #ff938f; font-size: 13px; }
.userbar, .section-title, .dialog-heading, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.userbar { margin-bottom: 14px; color: #bbb4a8; }
.device-list { display: grid; gap: 10px; margin-top: 20px; }
.device { display: grid; grid-template-columns: 13px 1fr auto; gap: 12px; align-items: center; padding: 15px; border: 1px solid #403d34; border-radius: 14px; background: #191916; }
.status { width: 10px; height: 10px; border-radius: 50%; background: #6b665d; }
.status.online { background: #65cf88; box-shadow: 0 0 0 4px rgba(101,207,136,.1); }
.device strong, .device small { display: block; }
.device small { margin-top: 4px; color: #969084; }
.device-actions { display: flex; gap: 8px; }
.device-actions button { padding: 8px 10px; }
.danger { color: #ff9a95; border-color: #633d3b; }
.empty { margin: 28px 0 8px; text-align: center; color: #8d887e; }
dialog { width: min(520px, calc(100% - 30px)); padding: 22px; color: #f4f0e8; }
dialog::backdrop { background: rgba(0,0,0,.64); backdrop-filter: blur(5px); }
.dialog-heading button { padding: 4px 8px; color: #aaa397; border: 0; background: transparent; font-size: 25px; }
.dialog-actions { justify-content: flex-end; margin-top: 20px; }
.pair-code { margin: 18px 0; text-align: center; color: #ead283; font: 700 28px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
pre { overflow-x: auto; padding: 14px; border-radius: 12px; color: #d9d3c7; background: #11110f; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 11px 15px; border-radius: 10px; color: #111; background: #ead283; box-shadow: 0 12px 35px rgba(0,0,0,.4); }
@media (max-width: 580px) { .shell { width: min(100% - 20px, 760px); } .card { padding: 17px; } .device { grid-template-columns: 12px 1fr; } .device-actions { grid-column: 2; } }
