* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Settings extras ──────────────────────────────────────────────────────── */

.pcs-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(234,88,12,0.85);
  margin: 22px 0 10px;
}

.settings-val {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

.settings-range {
  display: block;
  width: 100%;
  margin-top: 8px;
  accent-color: #ea580c;
  cursor: pointer;
  height: 4px;
}

/* ── Home screen (reuses landing screen layout/classes) ───────────────────── */

#home-screen {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg);
  overflow: hidden;
}

:root {
  --orange:      #ea580c;
  --orange-mid:  #f97316;
  --orange-soft: #fff7ed;
  --orange-border: #fed7aa;
  --bg:          #ffffff;
  --surface:     #fafaf9;
  --border:      #e8e8e8;
  --text:        #111111;
  --muted:       #888888;
  --sub:         #555555;
}

html, body {
  height: 100%; width: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0a0a12;
  color: #e2e8f0;
  overflow: hidden;
}

/* ── Landing ──────────────────────────────────────────────── */

#landing-screen {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg);
  color: var(--text);
  overflow: auto;
}

/* ── Nav ──────────────────────────────────────────────────── */

.ls-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.ls-nav-left { display: flex; align-items: center; gap: 4px; }

.nav-dots {
  background: none; border: none;
  color: var(--muted); font-size: 20px; font-weight: 700;
  cursor: pointer; padding: 2px 8px; border-radius: 8px;
  letter-spacing: 1px; line-height: 1;
  transition: color 0.15s;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.nav-dots:hover { color: var(--orange); }

/* ── Side panel ───────────────────────────────────────────────────────────── */

#sp-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(2px);
}
#sp-overlay.open { opacity: 1; pointer-events: all; }

#side-panel {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 401;
  width: 300px;
  background: #fafaf8;
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  padding: 36px 36px 40px;
  box-shadow: 8px 0 40px rgba(0,0,0,0.08);
}
#side-panel.open { transform: translateX(0); }

.sp-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 44px;
}
.sp-brand {
  font-size: 20px; font-weight: 900; color: var(--orange);
  font-family: Georgia, serif; letter-spacing: 0.5px;
}
.sp-close {
  background: none; border: none; color: var(--muted);
  font-size: 16px; cursor: pointer; padding: 4px 6px;
  border-radius: 6px; transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.sp-close:hover { color: var(--text); background: var(--border); }

.sp-nav { display: flex; flex-direction: column; }

.sp-item {
  background: none; border: none; text-align: left;
  cursor: pointer; text-decoration: none; display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--text); padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s; line-height: 1.1;
}
.sp-item:last-child { border-bottom: none; }
.sp-item:hover { color: var(--orange); }

.sp-rule { height: 1px; background: var(--border); margin: 6px 0; }

.sp-user {
  padding: 10px 18px 4px;
  font-size: 13px;
  color: var(--muted);
}

.sp-signout { color: #ef4444 !important; }
.sp-signout:hover { color: #ef4444 !important; background: #fef2f2 !important; }
.sp-disconnect { color: #ef4444 !important; }
.sp-disconnect:hover { color: #ef4444 !important; background: #fef2f2 !important; }

/* ── Auth tab (inline, within landing page) ──────────────────────────────── */

.auth-mode-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid #2a2a3a;
}

.auth-mode-btn {
  background: none; border: none;
  color: var(--muted);
  font-size: 14px; font-weight: 600;
  padding: 0 0 10px;
  margin-right: 22px;
  margin-bottom: -1px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.auth-mode-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.auth-err {
  min-height: 20px;
  font-size: 13px;
  color: #ef4444;
  margin-top: 10px;
}

.ls-nav-logo-img { height: 36px; width: auto; display: block; }

.ls-nav-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--orange);
  font-family: Georgia, serif;
}

.ls-nav-dl {
  font-size: 13px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
}
.ls-nav-dl:hover { opacity: 0.75; }

/* ── Tabs ─────────────────────────────────────────────────── */

.ls-tabs { display: flex; gap: 0; align-items: center; }
.ls-tabs-version { font-size: 10px; color: var(--muted); opacity: 0.5; margin-left: 10px; user-select: none; }

.ls-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 18px;
  height: 64px;
  font-size: 14px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-weight: 500;
}
.ls-tab:hover  { color: var(--orange); }
.ls-tab.active { color: var(--orange); border-bottom-color: var(--orange); font-weight: 700; }

/* ── Body grid ────────────────────────────────────────────── */

.ls-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding: 56px 52px;
  gap: 64px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.ls-left { display: flex; flex-direction: column; gap: 0; }

/* ── Typography ───────────────────────────────────────────── */

.ls-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.ls-headline {
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 18px;
  font-family: Georgia, 'Times New Roman', serif;
}

.ls-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--sub);
  margin-bottom: 28px;
  max-width: 420px;
}

/* ── Form ─────────────────────────────────────────────────── */

.ls-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.ls-form input {
  flex: 1; min-width: 0;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  transition: border-color 0.15s;
}
.ls-form input:focus { border-color: var(--orange); }
.ls-form input::placeholder { color: #bbb; }

#login-btn {
  padding: 14px 26px;
  border-radius: 50px;
  border: none;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Segoe UI', system-ui, sans-serif;
  transition: background 0.15s, transform 0.1s;
}
#login-btn:hover    { background: var(--orange-mid); transform: translateY(-1px); }
#login-btn:disabled { background: #ccc; cursor: default; transform: none; }

#login-err {
  font-size: 13px;
  color: #dc2626;
  min-height: 20px;
}

.ls-download {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}
.ls-download:hover { opacity: 0.7; }

.ls-credit {
  margin-top: 28px;
  font-size: 12px;
  color: #ccc;
}

.ls-back-btn {
  background: none; border: none;
  color: var(--muted); font-size: 13px;
  cursor: pointer; padding: 0; margin-bottom: 18px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  transition: color 0.15s;
}
.ls-back-btn:hover { color: var(--orange); }

/* ── Right preview ────────────────────────────────────────── */

.ls-right { display: flex; justify-content: center; align-items: flex-start; padding-top: 8px; }

.ls-preview {
  width: 100%; max-width: 480px;
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 32px 80px rgba(0,0,0,0.12), 0 8px 24px rgba(234,88,12,0.06);
}
.ls-preview-bar {
  background: #252525;
  padding: 11px 16px;
  display: flex; align-items: center; gap: 7px;
}
.ls-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.ls-preview-bar-title { flex: 1; text-align: center; font-size: 11px; color: #555; }
.ls-badge-live { font-size: 10px; font-weight: 700; color: var(--orange-mid); letter-spacing: 0.05em; }
.ls-preview-screen { background: #111; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ls-preview-icons  { display: flex; gap: 8px; }
.ls-icon { width: 36px; height: 36px; background: #222; border-radius: 8px; flex-shrink: 0; }
.ls-icon.wide { width: 72px; }
.ls-preview-window { background: #1e1e1e; border-radius: 8px; overflow: hidden; }
.ls-preview-taskbar { height: 32px; background: #1e1e1e; border-radius: 8px; }
.ls-win-top  { height: 24px; background: #2a2a2a; border-bottom: 1px solid #333; }
.ls-win-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ls-win-line { height: 7px; background: #2e2e2e; border-radius: 4px; }
.ls-win-line.short { width: 55%; }
.ls-preview-stats {
  display: flex; justify-content: space-around;
  padding: 14px; border-top: 1px solid #222;
}
.ls-stat { text-align: center; }
.ls-stat-val { display: block; font-size: 16px; font-weight: 700; color: #fff; }
.ls-stat-lbl { display: block; font-size: 10px; color: #444; margin-top: 2px; }

/* ── Computer grid ────────────────────────────────────────── */

.pc-search {
  width: 100%; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 50px;
  padding: 12px 20px; font-size: 14px; color: var(--text);
  outline: none; box-sizing: border-box; margin-bottom: 16px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pc-search:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234,88,12,0.08); }

.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.pc-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 22px 14px 18px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.pc-card:hover {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.08), 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.pc-card-icon   { font-size: 28px; margin-bottom: 10px; }
.pc-card-name   { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 6px; word-break: break-all; }
.pc-card-status {
  font-size: 11px; color: #16a34a;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-bottom: 10px;
}
.pc-card-owner { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.pc-card-btn  { font-size: 11px; color: var(--muted); }
.pc-card:hover .pc-card-btn { color: var(--orange); font-weight: 600; }

.pc-dot     { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; display: inline-block; flex-shrink: 0; }
.pc-loading { font-size: 14px; color: var(--muted); }

/* ── Setup & download ─────────────────────────────────────── */

.setup-steps { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.setup-step  { display: flex; align-items: flex-start; gap: 14px; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-body { font-size: 14px; line-height: 1.6; color: var(--sub); padding-top: 4px; }
.step-body strong { color: var(--text); }

.dl-link { display: block; text-decoration: none; margin-bottom: 16px; }
.dl-btn {
  width: 100%; padding: 15px 28px;
  border-radius: 50px; border: none;
  background: var(--orange); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Segoe UI', system-ui, sans-serif;
  transition: background 0.15s, transform 0.1s;
}
.dl-btn:hover { background: var(--orange-mid); transform: translateY(-1px); }

.av-notice {
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #9a3412;
  margin-top: 4px;
}

/* ── Server settings ──────────────────────────────────────── */

.settings-stats  { margin-bottom: 22px; }
.stat-pills      { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-pill       { background: var(--orange-soft); border: 1px solid var(--orange-border); border-radius: 20px; padding: 5px 14px; font-size: 12px; color: var(--orange); font-weight: 600; }

.settings-group  { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.settings-field  { display: flex; flex-direction: column; gap: 6px; }
.settings-label  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.settings-input  {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 12px 16px; font-size: 14px;
  color: var(--text); outline: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.settings-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234,88,12,0.08); }
#settings-msg { font-size: 13px; min-height: 20px; margin-top: 4px; }

/* ── Switch list (Settings page) ─────────────────────────────────────────── */

.switch-list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

.switch-info { flex: 1; }
.switch-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.switch-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

.settings-toggle {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  user-select: none;
}
.settings-toggle input { display: none; }
.toggle-track {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--border); position: relative;
  transition: background 0.2s; flex-shrink: 0;
}
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: transform 0.2s;
}
.settings-toggle input:checked + .toggle-track { background: var(--orange); }
.settings-toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }
.toggle-lbl { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ── Info features ────────────────────────────────────────── */

.info-feats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.info-feat  {
  font-size: 14px; color: var(--sub);
  padding: 11px 16px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.info-feat:hover { border-color: var(--orange-border); }

/* ── Plans / Pricing ──────────────────────────────────────── */

.plans-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.plan-card {
  flex: 1; min-width: 160px; max-width: 220px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
  background: var(--surface);
}
.plan-card-pro  { border-color: var(--orange); }
.plan-card-ultra { border-color: #a855f7; }
.plan-badge {
  position: absolute; top: -10px; left: 16px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; letter-spacing: .05em; text-transform: uppercase;
}
.plan-name  { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.plan-price { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 14px; }
.plan-period { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; flex: 1; }
.plan-feats li { font-size: 13px; padding-left: 18px; position: relative; }
.plan-feats li::before { position: absolute; left: 0; }
.feat-yes::before  { content: '✓'; color: #22c55e; }
.feat-no::before   { content: '✗'; color: #ef4444; }
.feat-warn::before { content: '~'; color: var(--orange); }
.plan-cta {
  display: block; width: 100%; padding: 9px 0;
  border-radius: 8px; font-size: 13px; font-weight: 700;
  text-align: center; cursor: pointer; border: none;
}
.plan-cta-current { background: var(--border); color: var(--muted); cursor: default; }
.plan-cta-buy { background: var(--orange); color: #fff; }
.plan-cta-buy:hover { opacity: .88; }
.plan-cta-active { background: #22c55e; color: #fff; cursor: default; }

/* ── Tier badge ───────────────────────────────────────────── */

.tier-badge {
  display: inline-block;
  padding: 2px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--border); color: var(--muted);
}
.tier-badge.tier-pro   { background: #fff7ed; color: var(--orange); border: 1px solid var(--orange-border); }
.tier-badge.tier-ultra { background: #faf5ff; color: #a855f7; border: 1px solid #e9d5ff; }

/* ── View timer ───────────────────────────────────────────── */

.tb-timer { color: #facc15; font-weight: 700; font-size: 12px; cursor: default; }

/* ── Web Proxy tab ────────────────────────────────────────── */

#tab-proxy {
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 9;
}

.px-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.px-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 14px;
  transition: border-color 0.15s;
}
.px-input-wrap:focus-within { border-color: var(--orange); }
.px-globe {
  font-size: 14px;
  opacity: 0.45;
  flex-shrink: 0;
  line-height: 1;
}
.px-input {
  flex: 1;
  padding: 9px 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.px-go {
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--orange);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.px-go:hover { opacity: .88; }
.px-fs {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.px-fs:hover { border-color: var(--orange); color: var(--orange); }
.px-frame-wrap {
  flex: 1;
  overflow: hidden;
}
.px-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  display: block;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 820px) {
  .ls-body { grid-template-columns: 1fr; }
  .ls-right { display: none; }
  .ls-nav { padding: 0 20px; }
  .ls-body { padding: 36px 20px; }
  .ls-tab { padding: 0 10px; font-size: 13px; }
}

/* ── Desktop ──────────────────────────────────────────────── */

#desktop-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
}

/* ── Toolbar ──────────────────────────────────────────────── */

#toolbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 54px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: rgba(8,8,16,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(234,88,12,0.18);
  box-shadow: 0 1px 24px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
#toolbar.hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }

.tb-left  { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.tb-center { display: flex; align-items: center; flex: 1; justify-content: center; }
.tb-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.tb-logo {
  font-size: 17px; font-weight: 900;
  color: var(--orange);
  font-family: Georgia, serif;
  letter-spacing: 0.5px;
}
.tb-divider {
  width: 1px; height: 16px;
  background: rgba(255,255,255,0.1);
  margin: 0 12px;
}
.tb-label {
  font-size: 12px; color: #475569;
  font-weight: 500; letter-spacing: 0.04em;
}

/* Stats pill */
.tb-stat-group {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50px;
  padding: 0 4px;
  gap: 0;
}
.tb-stat-item {
  font-size: 12px; color: #94a3b8;
  padding: 5px 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tb-conn-item { display: flex; align-items: center; gap: 5px; }
.tb-stat-dot {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.dot-good { color: #10b981; font-size: 10px; }
.dot-bad  { color: #ef4444; font-size: 10px; }

/* Action pills */
.tb-pill {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #94a3b8;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  font-family: 'Segoe UI', system-ui, sans-serif;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.tb-pill:hover {
  background: rgba(234,88,12,0.12);
  border-color: rgba(234,88,12,0.4);
  color: #fb923c;
}
.tb-pill-danger {
  border-color: rgba(239,68,68,0.25);
  color: #f87171;
}
.tb-pill-danger:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.5);
  color: #ef4444;
}
select.tb-pill {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-color: rgba(255,255,255,0.04);
  cursor: pointer;
}
select.tb-pill option { background: #0f0f1a; color: #e2e8f0; }

/* ── Stream ───────────────────────────────────────────────── */

#stream-wrap {
  position: relative; flex: 1;
  display: flex; align-items: center; justify-content: center;
  background: #000; cursor: default; overflow: hidden;
  margin-top: 54px;
}
#stream-canvas { display: block; pointer-events: none; }

#click-prompt {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.prompt-box {
  text-align: center;
  background: rgba(10,10,20,0.92);
  border: 1px solid rgba(234,88,12,0.25);
  border-radius: 20px;
  padding: 36px 48px;
  box-shadow: 0 0 0 1px rgba(234,88,12,0.08), 0 24px 64px rgba(0,0,0,0.5);
}
.prompt-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.prompt-title {
  font-size: 20px; font-weight: 700; color: #e2e8f0;
  font-family: Georgia, serif; letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.prompt-sub { font-size: 13px; color: #475569; }

#active-badge {
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(16,185,129,0.4);
  color: #10b981;
  padding: 6px 18px; border-radius: 50px;
  font-size: 12px; font-weight: 600;
  white-space: nowrap; pointer-events: none;
  backdrop-filter: blur(8px);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ef4444;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

#remote-cursor {
  position: absolute; width: 0; height: 0;
  pointer-events: none; z-index: 60; display: none;
  transform: translate(-1px, -1px);
}
#remote-cursor::before {
  content: ''; position: absolute;
  left: -7px; top: 0; width: 16px; height: 2px;
  background: white; box-shadow: 0 0 3px rgba(0,0,0,0.9);
}
#remote-cursor::after {
  content: ''; position: absolute;
  left: 0; top: -7px; width: 2px; height: 16px;
  background: white; box-shadow: 0 0 3px rgba(0,0,0,0.9);
}

@media (max-width: 600px) {
  .tb-label, .tb-divider, .tb-stat-group { display: none; }
  .tb-pill { padding: 5px 10px; font-size: 11px; }
  #toolbar { padding: 0 12px; }
}

/* ── Dark mode ────────────────────────────────────────────────────────────── */

html.dark {
  --bg:            #111118;
  --surface:       #18181f;
  --border:        #2a2a3a;
  --text:          #e2e8f0;
  --muted:         #64748b;
  --sub:           #94a3b8;
  --orange-soft:   rgba(234,88,12,0.10);
  --orange-border: rgba(234,88,12,0.28);
}
html.dark #side-panel        { background: #0f0f18; border-color: #1e1e2a; }
html.dark .av-notice         { color: #fdba74; }
html.dark .sp-close:hover    { background: #1e1e2a; }

/* ── Side-panel dark mode row ────────────────────────────────────────────── */

.sp-dark-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.sp-dark-label {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--text); line-height: 1.1;
}

/* ── Offline badge ───────────────────────────────────────────────────────── */

.offline-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444; border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 600; margin-bottom: 16px;
}
