:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #061012;
  --panel: rgba(255,255,255,.055);
  --line: rgba(255,255,255,.12);
  --muted: rgba(255,255,255,.56);
  --soft: rgba(255,255,255,.72);
  --cyan: #b8f0f7;
  --cyan-2: #8bcdda;
  --ink: #051214;
  --orange: #ffab59;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { min-height: 100svh; color: white; letter-spacing: 0; }
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
.app-bg { min-height: 100svh; background: radial-gradient(ellipse at 75% 15%, rgba(54,147,164,.16), transparent 40%), linear-gradient(145deg,#071214,#03090a 55%,#0a1b1d); }
.auth-shell { min-height: 100svh; display: grid; place-items: center; padding: 28px 20px; background: linear-gradient(rgba(2,10,12,.64),rgba(2,10,12,.9)), url('/login-background.png') center/cover; }
.auth { width: min(420px,100%); padding: 28px; background: rgba(3,16,18,.74); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(22px); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 750; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(30px, 7vw, 40px); line-height: 1.02; margin: 28px 0 10px; }
h2 { font-size: 28px; line-height: 1.08; }
h3 { font-size: 16px; }
.muted { color: var(--muted); line-height: 1.5; }
.eyebrow { color: var(--cyan-2); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.field { display: grid; gap: 7px; margin: 18px 0; }
.field label { color: var(--soft); font-size: 12px; font-weight: 650; }
.field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.07); color: white; min-height: 48px; padding: 0 13px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--cyan-2); box-shadow: 0 0 0 3px rgba(139,205,218,.12); }
.code { font-size: 24px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.primary,.secondary,.danger { border: 0; border-radius: var(--radius); min-height: 46px; padding: 0 16px; font-weight: 750; }
.primary { width: 100%; color: var(--ink); background: linear-gradient(145deg,#fff,var(--cyan)); }
.secondary { color: white; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.danger { color: #ffd1cc; background: rgba(255,98,80,.1); border: 1px solid rgba(255,98,80,.2); }
.text-button { border: 0; padding: 10px 0; background: none; color: var(--soft); }
.invite { margin: 18px 0; padding: 14px; border: 1px solid rgba(184,240,247,.22); background: rgba(100,195,210,.08); border-radius: var(--radius); }
.error { color: #ffc08c; font-size: 13px; margin-top: 12px; }
.shell { min-height: 100svh; display: grid; grid-template-columns: 236px minmax(0,820px); justify-content: center; gap: 28px; padding: 24px 28px 40px; }
.sidebar { position: sticky; top: 24px; height: calc(100svh - 48px); padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.065); backdrop-filter: blur(20px); display: flex; flex-direction: column; }
.sidebar .brand { padding: 2px 4px 20px; }
.house-caption { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; max-width: 145px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: grid; gap: 6px; }
.nav button,.bottom-nav button { border: 0; color: rgba(255,255,255,.68); background: transparent; font-weight: 700; }
.nav button { min-height: 46px; padding: 0 13px; text-align: left; border-radius: var(--radius); }
.nav button.active,.bottom-nav button.active { background: linear-gradient(145deg,#fff,#c9edf2); color: var(--ink); }
.account-chip { margin-top: auto; padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.account-chip strong,.account-chip span { display: block; overflow: hidden; text-overflow: ellipsis; }
.account-chip span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.content { min-width: 0; }
.topbar { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.topbar-title { font-weight: 750; }
.topbar-title small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; }
.icon-button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.055); color: white; font-size: 20px; }
.zone-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 26px; }
.zone-strip::-webkit-scrollbar { display:none; }
.zone-chip { flex: 0 0 auto; border: 1px solid var(--line); background: rgba(255,255,255,.045); color: var(--soft); min-height: 38px; padding: 0 13px; border-radius: 20px; }
.zone-chip.active { color: var(--ink); background: var(--cyan); border-color: transparent; font-weight: 750; }
.hero-meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.hero-copy { max-width: 520px; color: var(--muted); line-height: 1.55; }
.signal { min-height: 104px; margin: 20px 0 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(115deg,rgba(99,209,219,.11),rgba(255,255,255,.04),rgba(70,142,151,.09)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
.signal > :last-child { text-align:right; }
.signal small { display:block; color:var(--muted); margin-bottom:5px; }
.signal strong { font-size:26px; }
.signal-message { align-self:center; max-width:160px; color:var(--cyan-2); text-align:center; font-size:11px; font-weight:750; }
.section { margin-top: 28px; }
.section-head { display:flex; justify-content:space-between; gap:12px; align-items:baseline; margin-bottom:12px; }
.section-head h3 { margin:0; }
.section-head span { color:var(--muted); font-size:11px; }
.quick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.quick { min-height:104px; padding:14px; text-align:left; color:white; border:1px solid var(--line); border-radius:var(--radius); background:var(--panel); }
.quick strong,.quick span { display:block; }
.quick strong { margin-top:22px; }
.quick span { color:var(--muted); font-size:11px; margin-top:4px; }
.list { display:grid; gap:10px; }
.row { width:100%; min-height:72px; padding:12px; color:white; text-align:left; display:flex; align-items:center; gap:14px; border:1px solid rgba(255,255,255,.08); border-radius:var(--radius); background:rgba(255,255,255,.04); }
.row.active { border-color:rgba(139,205,218,.34); background:linear-gradient(90deg,rgba(71,161,177,.15),rgba(255,255,255,.04)); }
.row-glyph { flex:0 0 42px; width:42px; height:42px; display:grid; place-items:center; border-radius:50%; color:var(--cyan); background:rgba(139,205,218,.13); font-size:18px; }
.row-copy { min-width:0; flex:1; }
.row-copy strong,.row-copy span { display:block; }
.row-copy span { margin-top:4px; color:var(--muted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-tail { color:var(--muted); font-size:12px; text-align:right; }
.empty { padding:24px; border:1px solid var(--line); border-radius:var(--radius); background:var(--panel); }
.empty h2 { font-size:23px; }
.settings-card { padding:16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--panel); margin-bottom:10px; }
.settings-card .primary { margin-top:12px; }
.settings-line { display:flex; justify-content:space-between; gap:18px; align-items:center; }
.settings-line p { margin:4px 0 0; }
.badge { display:inline-block; padding:5px 9px; border-radius:20px; color:var(--cyan); background:rgba(139,205,218,.12); font-size:11px; font-weight:750; }
.bottom-nav { display:none; }
.toast { position:fixed; z-index:10; left:50%; bottom:24px; transform:translateX(-50%); max-width:min(90vw,420px); padding:12px 16px; border:1px solid var(--line); border-radius:var(--radius); background:#112124; box-shadow:0 12px 40px #0008; }
.spinner { width:28px; height:28px; border:3px solid rgba(255,255,255,.18); border-top-color:var(--cyan); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (max-width:759px) {
  .shell { display:block; padding:18px 20px 108px; }
  .sidebar { display:none; }
  .bottom-nav { position:fixed; z-index:5; left:20px; right:20px; bottom:max(16px,env(safe-area-inset-bottom)); height:66px; padding:8px; display:grid; grid-template-columns:repeat(4,1fr); gap:4px; border:1px solid var(--line); border-radius:8px; background:rgba(20,34,36,.88); backdrop-filter:blur(22px); box-shadow:0 18px 40px #000b; }
  .bottom-nav button { border-radius:6px; font-size:11px; }
  .topbar { margin-bottom:18px; }
  .quick-grid { grid-template-columns:1fr; }
  .quick { min-height:76px; }
  .quick strong { margin-top:10px; }
  .signal { grid-template-columns:1fr 1fr; }
  .signal-message { grid-column:1/-1; grid-row:2; max-width:none; margin-top:12px; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; animation-duration:.01ms!important; } }
