:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; --bg:#08111f; --panel:#101b2d; --raised:#14233a; --line:#24334a; --muted:#91a0b6; --accent:#5eead4; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: #edf4ff; }
body { min-height: 100dvh; background: radial-gradient(circle at 75% -10%, rgba(45,212,191,.12), transparent 36%), var(--bg); }
button, a { font: inherit; }
a { color: inherit; }
.shell { width: min(1040px, 100%); margin: 0 auto; padding: 0 22px 54px; }
.topbar { min-height: 64px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid var(--line); }
.brand { font-weight:800; text-decoration:none; letter-spacing:.01em; }
nav { display:flex; align-items:center; gap:8px; }
nav a, nav button, .card-title button, dialog button, .watch-code-form button { border:1px solid var(--line); background:var(--panel); color:#e5eefb; border-radius:9px; padding:8px 11px; text-decoration:none; cursor:pointer; }
.primary { border-color:#2c756d !important; background:#15413f !important; color:#d5fffa !important; }
.hero { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding:40px 0 24px; }
.eyebrow { color:var(--accent); font-size:.72rem; font-weight:800; letter-spacing:.13em; }
h1 { margin:7px 0 8px; font-size:clamp(1.75rem, 5vw, 2.5rem); }
.hero p, .caption { color:var(--muted); line-height:1.55; }
.hero p { margin:0; }
.state-pill, .planned { flex:none; border:1px solid #285953; color:#b8f4ea; background:#102b2d; border-radius:999px; padding:6px 10px; font-size:.74rem; }
.grid { display:grid; gap:16px; margin-bottom:16px; }
.grid.two { grid-template-columns:repeat(2, minmax(0,1fr)); }
.card { margin-bottom:16px; padding:20px; border:1px solid var(--line); border-radius:15px; background:rgba(16,27,45,.94); box-shadow:0 15px 38px rgba(0,0,0,.16); }
.grid .card { margin:0; }
.card h2 { margin:0 0 13px; font-size:1rem; }
.card-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.card-actions, .device-actions { display:flex; align-items:center; gap:8px; }
.caption { margin:-5px 0 14px; font-size:.84rem; }
.watch-code-form { margin:0 0 16px; padding:13px; border:1px solid var(--line); border-radius:11px; background:#0b1627; }
.watch-code-form .field { margin:0; }
.watch-code-form .caption { margin:8px 0 0; }
.watch-release { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; padding:10px 12px; border:1px solid #24566a; border-radius:10px; background:#0b2330; color:#9fb3c8; }
.watch-release strong { color:#62ddd1; font-size:15px; }
.watch-release span { display:grid; gap:3px; }
.watch-release small { color:#7890a9; font-size:11px; }
.facts { margin:0; }
.facts > div { display:grid; grid-template-columns:minmax(120px,.7fr) minmax(0,1.3fr); gap:12px; padding:9px 0; border-bottom:1px solid #1d2c41; }
.facts > div:last-child { border-bottom:0; }
dt { color:var(--muted); }
dd { margin:0; overflow-wrap:anywhere; }
.loading { color:var(--muted); }
.device-list { display:grid; gap:9px; }
.device { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px 14px; padding:12px 13px; border:1px solid var(--line); border-radius:11px; background:#0b1627; }
.device strong { overflow-wrap:anywhere; }
.device .meta { grid-column:1 / -1; color:var(--muted); font-size:.78rem; line-height:1.5; }
.revoked-devices { margin-top:3px; border-top:1px solid var(--line); padding-top:10px; }
.revoked-devices summary { width:max-content; max-width:100%; color:var(--muted); cursor:pointer; font-size:.78rem; }
.revoked-devices[open] summary { margin-bottom:9px; color:#c4d0df; }
.revoked-devices .device { opacity:.72; }
.tag { align-self:start; border-radius:999px; padding:3px 8px; background:#25334a; color:var(--muted); font-size:.7rem; }
.tag.online, .tag.current { color:#b8f4ea; background:#123b3c; }
.danger-link { border:0; background:transparent; color:#fda4af; padding:3px 0; cursor:pointer; font-size:.72rem; }
dialog { width:min(620px,calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; border:1px solid var(--line); border-radius:16px; padding:0; color:#edf4ff; background:#101b2d; box-shadow:0 24px 80px rgba(0,0,0,.55); }
dialog::backdrop { background:rgba(2,8,18,.76); backdrop-filter:blur(3px); }
dialog form { padding:20px; }
.dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.dialog-head h2 { margin:5px 0 0; }
.icon-button { width:36px; height:36px; padding:0; font-size:1.35rem; }
.field { display:grid; gap:7px; margin:14px 0; color:var(--muted); font-size:.82rem; }
.field input { width:100%; border:1px solid var(--line); border-radius:9px; padding:11px 12px; background:#081321; color:#fff; font:inherit; }
.dialog-actions { display:flex; justify-content:flex-end; margin-top:18px; }
.secret-warning { border:1px solid #675929; border-radius:10px; padding:11px 12px; background:#2a2514; color:#fde68a; }
.secret-warning p { margin:5px 0 0; color:#e8dca8; font-size:.8rem; line-height:1.5; }
.copy-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:stretch; }
.copy-row code { display:block; min-width:0; overflow-wrap:anywhere; border:1px solid var(--line); border-radius:9px; padding:10px; background:#081321; color:#d7e5f7; user-select:all; }
.copy-row code.secret { color:#fde68a; }
.privacy { border-color:#2b4752; }
.privacy ul { margin:0; padding-left:20px; color:#c4d0df; line-height:1.65; }
.privacy p { color:#c4d0df; line-height:1.65; }
.error { margin-bottom:16px; padding:11px 13px; border:1px solid #6e3341; border-radius:10px; color:#fecdd3; background:#2a151d; }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.metric { padding:17px; border:1px solid var(--line); border-radius:14px; background:var(--panel); }
.metric strong { display:block; margin-top:7px; font-size:1.75rem; }
.metric span { color:var(--muted); font-size:.78rem; }
.plan-row { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid #1d2c41; }
.plan-row:last-child { border-bottom:0; }
.caption-inline { color:var(--muted); font-size:.75rem; }
.user-list { display:grid; gap:10px; }
.user-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 18px; padding:15px; border:1px solid var(--line); border-radius:12px; background:#0b1627; }
.user-identity { display:grid; gap:3px; min-width:0; }
.user-identity strong, .user-identity span { overflow-wrap:anywhere; }
.user-identity span { color:var(--muted); font-size:.8rem; }
.user-status { display:flex; align-items:flex-start; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.user-facts { grid-column:1 / -1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 18px; margin:0; }
.user-facts>div { min-width:0; padding:8px 0; border-top:1px solid #1d2c41; }
.user-facts dt { font-size:.7rem; }
.user-facts dd { margin-top:3px; color:#dce7f5; font-size:.8rem; }
.activity-list { display:grid; }
.activity-row { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:11px 0; border-bottom:1px solid #1d2c41; }
.activity-row:last-child { border-bottom:0; }
.activity-row>div { display:grid; gap:3px; }
.activity-row span, .activity-row time { color:var(--muted); font-size:.76rem; }
.activity-row time { flex:none; }
@media (max-width:720px) { .shell{padding-inline:14px}.topbar{align-items:flex-start;padding:12px 0}.topbar nav{flex-wrap:wrap;justify-content:flex-end}.hero{padding-top:26px;align-items:flex-start;flex-direction:column}.grid.two,.metric-grid{grid-template-columns:1fr 1fr}.card{padding:16px}.state-pill{align-self:flex-start}.facts>div{grid-template-columns:1fr}.card-title{align-items:flex-start}.card-actions{flex-wrap:wrap;justify-content:flex-end} }
@media (max-width:720px) { .user-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-row{align-items:flex-start;flex-direction:column;gap:5px} }
@media (max-width:440px) { .grid.two,.metric-grid{grid-template-columns:1fr}.topbar nav a,.topbar nav button{padding:7px 8px;font-size:.78rem}.user-card{grid-template-columns:1fr}.user-status{justify-content:flex-start}.user-facts{grid-template-columns:1fr} }
