/* LiveSign screens dashboard (/app) — theme layer matching www.getlivesign.com.
 * Loaded after the dashboard's own stylesheet. Every rule is scoped to html.ls-theme, which
 * dashboard.html sets on every page EXCEPT /player, so TV screens are never restyled.
 * Content previews (.poster) are left alone so they still show exactly what the TVs show.
 * To undo: remove the two theme lines from dashboard.html. */

html.ls-theme {
  --bg: #0B0E13;
  --panel: #151A23;
  --panel-2: #1B212D;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #F4F6FA;
  --muted: #A6AEBD;
  --faint: #79839A;
  --pink: #FF2E93;
  --blue: #1FA2FF;
  --violet: #7C5CFF;
  --yellow: #FFB547;
  --green: #2BD49A;
  --grad: linear-gradient(95deg, #1FA2FF 0%, #7C5CFF 52%, #FF2E93 100%);
  --ls-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ── type ── */
html.ls-theme body { background: var(--bg); color: var(--text); font-family: var(--ls-font); }
html.ls-theme h1, html.ls-theme h2, html.ls-theme h3,
html.ls-theme .stats strong, html.ls-theme .wordmark, html.ls-theme .brand { font-family: var(--ls-font); }
html.ls-theme h1 { font-weight: 800; letter-spacing: -.025em; }
html.ls-theme h2 { font-weight: 700; letter-spacing: -.015em; }
html.ls-theme .stats strong { font-weight: 700; }
html.ls-theme a { color: var(--blue); }
html.ls-theme .muted, html.ls-theme label { color: var(--muted); }
html.ls-theme .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); letter-spacing: .14em; font-weight: 700;
}
html.ls-theme .eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad); }

/* ── logo: the new LiveSign logo replaces the old mark + wordmark ── */
html.ls-theme aside .brand,
html.ls-theme .login-story .brand {
  width: 176px; height: 55px; flex: none;
  background: url(/brand/logo-dark.png) left center / contain no-repeat;
}
html.ls-theme .login-story .brand { width: 230px; height: 72px; }
html.ls-theme aside .brand > *,
html.ls-theme .login-story .brand > * { display: none; }

/* ── shell ── */
html.ls-theme aside { background: #10141B; border-right-color: var(--line); }
html.ls-theme .workspace { border-color: var(--line); }
html.ls-theme .avatar {
  color: #fff; border-radius: 10px; border-color: var(--line-2);
  background: linear-gradient(135deg, rgba(31, 162, 255, .28), rgba(255, 46, 147, .28));
}
html.ls-theme .workspace-dot, html.ls-theme .green-dot, html.ls-theme .connection > span { background: var(--green); }
html.ls-theme .nav-caption { color: var(--faint); }
html.ls-theme nav button { color: var(--muted); border-radius: 12px; transition: background .15s, color .15s; }
html.ls-theme nav button:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
html.ls-theme nav button.active {
  color: #fff; border-left: 0;
  background: linear-gradient(90deg, rgba(31, 162, 255, .18), rgba(124, 92, 255, .12) 60%, rgba(255, 46, 147, .10));
  box-shadow: inset 3px 0 0 var(--blue);
}
html.ls-theme nav button.active svg { color: var(--blue); }
html.ls-theme nav em { background: rgba(255, 46, 147, .16); color: #FF8CC4; }
html.ls-theme header { background: rgba(11, 14, 19, .85); border-bottom-color: var(--line); backdrop-filter: blur(10px); }
html.ls-theme .breadcrumb { color: var(--faint); }
html.ls-theme .private > span, html.ls-theme .live-dot { background: var(--pink); }
html.ls-theme .version, html.ls-theme .connection small { color: var(--faint); }

/* ── buttons ── */
html.ls-theme .primary {
  background: var(--grad); border-color: transparent; color: #fff;
  border-radius: 12px; font-weight: 700; transition: filter .15s;
}
html.ls-theme .primary:hover { filter: brightness(1.12); }
html.ls-theme .primary:disabled { filter: none; opacity: .5; }
html.ls-theme .secondary {
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 12px; font-weight: 600;
}
html.ls-theme .secondary:hover { border-color: rgba(31, 162, 255, .5); }
html.ls-theme .text-button { color: var(--muted); }
html.ls-theme .text-button:hover, html.ls-theme .icon-button:hover { color: #fff; }
html.ls-theme .icon-button { color: var(--muted); }
html.ls-theme :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ── cards & panels ── */
html.ls-theme .stats > div,
html.ls-theme .quick-panel,
html.ls-theme .screen-card, html.ls-theme .media-card,
html.ls-theme .location-card,
html.ls-theme .announcement-editor, html.ls-theme .announcement-preview-panel,
html.ls-theme .note {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
html.ls-theme .screen-card.is-selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
html.ls-theme .stats > div svg { color: var(--blue); }
html.ls-theme .stats > div:nth-child(2) svg { color: var(--green); }
html.ls-theme .stats > div:nth-child(3) svg { color: var(--violet); }
html.ls-theme .stats > div:nth-child(4) svg { color: var(--pink); }
html.ls-theme .hero-preview {
  background: #10141B; border: 1px solid transparent; border-radius: 18px;
  background: linear-gradient(#10141B, #10141B) padding-box, var(--grad) border-box;
}
html.ls-theme .hero-label { color: var(--muted); }
html.ls-theme .quick-icon { background: rgba(31, 162, 255, .10); border-color: rgba(31, 162, 255, .28); border-radius: 10px; color: var(--blue); }
html.ls-theme .section-heading svg { color: var(--pink); }
html.ls-theme .guide-banner, html.ls-theme .network-strip, html.ls-theme .bulk-bar, html.ls-theme .compatibility-note {
  color: #DCEBFA; border-radius: 14px; border: 1px solid rgba(31, 162, 255, .28);
  background: linear-gradient(95deg, rgba(31, 162, 255, .10), rgba(124, 92, 255, .08));
}
html.ls-theme .network-strip { color: #8FD0FF; }
html.ls-theme .device-tags > span { background: rgba(31, 162, 255, .10); border-color: rgba(31, 162, 255, .28); color: #BFE3FF; }
html.ls-theme .status.online i, html.ls-theme .dot.online { background: var(--green); }
html.ls-theme .now-badge { background: rgba(255, 46, 147, .92); border-radius: 6px; }
html.ls-theme .location-icon, html.ls-theme .empty-icon { color: var(--blue); }

/* ── forms & dialogs ── */
html.ls-theme input, html.ls-theme textarea, html.ls-theme select {
  background: #10141B; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text);
}
html.ls-theme input:focus, html.ls-theme textarea:focus, html.ls-theme select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 162, 255, .25);
}
html.ls-theme input[type=checkbox], html.ls-theme input[type=radio] { accent-color: var(--blue); }
html.ls-theme .modal-backdrop { background: rgba(5, 7, 10, .72); }
html.ls-theme .modal, html.ls-theme .upload-panel {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
html.ls-theme .upload-bar i { background: var(--grad); }
html.ls-theme .toast {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2);
  border-left: 4px solid var(--blue); border-radius: 12px;
}
html.ls-theme .error { color: #FF8FA3; }

/* ── sign-in page ── */
html.ls-theme .login-page { background: var(--bg); }
html.ls-theme .login-story {
  background:
    radial-gradient(60% 50% at 85% 15%, rgba(255, 46, 147, .18), transparent 70%),
    radial-gradient(60% 60% at 10% 90%, rgba(31, 162, 255, .18), transparent 70%),
    #10141B;
}
html.ls-theme .login-story h1 { font-size: clamp(34px, 4.4vw, 56px); }
html.ls-theme .login-pills span { border-color: rgba(31, 162, 255, .35); color: #BFE3FF; border-radius: 99px; }
html.ls-theme .login-panel h2 { font-weight: 800; }
html.ls-theme .player-link { color: var(--blue); }
