:root {
  color-scheme: dark;
  --bg: #0c1014;
  --card: #12161f;
  --border: #252b38;
  --text: #f2f4f8;
  --muted: #9aa4b5;
  --kick: #53fc18;
  --kick-soft: #b8ff8a;
  --twitch: #9146ff;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(83, 252, 24, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(60, 90, 70, 0.18), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 70%, rgba(40, 55, 80, 0.2), transparent 45%),
    linear-gradient(180deg, #10151a 0%, var(--bg) 45%, #090c10 100%);
  color: var(--text);
}

.page {
  min-height: 100vh;
  padding: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.card {
  background: rgba(18, 22, 31, 0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.login-card { max-width: 480px; margin: 10vh auto 0; }

.login-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 48px);
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 8px 64px;
  overflow: hidden;
}

.login-atmosphere {
  pointer-events: none;
  position: absolute;
  inset: -20% -30%;
  z-index: 0;
}

.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: login-glow-drift 10s ease-in-out infinite alternate;
}

.login-glow--a {
  width: 280px;
  height: 280px;
  top: 8%;
  left: 10%;
  background: rgba(83, 252, 24, 0.22);
}

.login-glow--b {
  width: 220px;
  height: 220px;
  right: 5%;
  bottom: 18%;
  background: rgba(100, 140, 180, 0.18);
  animation-delay: -3s;
  animation-duration: 12s;
}

.login-glow--c {
  width: 160px;
  height: 160px;
  left: 35%;
  bottom: 5%;
  background: rgba(83, 252, 24, 0.1);
  animation-delay: -6s;
  animation-duration: 14s;
}

@keyframes login-glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(18px, -14px) scale(1.08); }
}

.login-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  animation: login-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes login-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-kicker {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(184, 255, 138, 0.75);
}

.login-brand {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 15vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--kick);
  text-shadow: 0 0 60px rgba(83, 252, 24, 0.25);
  animation: login-brand-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

@keyframes login-brand-in {
  from {
    opacity: 0;
    letter-spacing: 0.04em;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.045em;
    transform: translateY(0);
  }
}

.login-headline {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: login-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.login-tagline {
  margin: 0 0 28px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 400;
  animation: login-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.login-cta {
  display: grid;
  gap: 12px;
  max-width: 340px;
  margin-bottom: 18px;
  animation: login-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.login-cta .btn {
  border-radius: 14px;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.login-cta .btn-kick {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-cta .btn-kick:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 36px rgba(83, 252, 24, 0.28);
}

.login-cta .btn-twitch {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-cta .btn-twitch:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 36px rgba(145, 70, 255, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.login-note {
  margin: 0 0 28px;
  max-width: 40ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  animation: login-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.login-note strong {
  color: var(--text);
  font-weight: 600;
}

.login-steps {
  display: none;
}

.login-live {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  animation: login-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.login-live a {
  color: var(--kick-soft);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 255, 138, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.login-live a:hover {
  color: var(--kick);
  border-bottom-color: rgba(83, 252, 24, 0.7);
}

#kick-redirect-hint {
  display: none !important;
}

.btn-kick-lg {
  min-height: 52px;
  font-size: 1rem;
  border-radius: 14px;
}

@media (max-width: 820px) {
  .login-shell {
    min-height: auto;
    padding: 28px 0 40px;
    align-items: flex-start;
  }

  .login-brand {
    font-size: clamp(3rem, 18vw, 4.2rem);
  }

  .login-cta {
    max-width: none;
  }
}

.hidden { display: none !important; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.125rem; margin-bottom: 16px; }

.subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.subtitle.ok { color: var(--kick, #53fc18); }
.subtitle.err { color: #ff6b6b; }

.alert-debug {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  max-height: 180px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 8px;
  margin-top: 8px;
  color: #c8d0e0;
}

.alert-debug.hidden { display: none; }

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  position: relative;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #0a0a0a;
}

body.is-dashboard .page {
  max-width: none;
  padding: 0;
}

body.is-dashboard {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.015) 11px,
      rgba(255, 255, 255, 0.015) 12px
    ),
    #050505;
}

.sidebar-backdrop {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100vh;
  max-height: 100vh;
  padding: 16px 10px 14px;
  background: #121212;
  border-right: 1px solid #1e1e1e;
  overflow: auto;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}

.sidebar-brand {
  display: grid;
  gap: 3px;
}

.sidebar-brand__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--kick);
  line-height: 1;
}

.sidebar-brand__tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #667084;
}

.sidebar-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px 4px;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 0.82rem;
  color: var(--muted);
  background: transparent;
}

.sidebar-platform strong {
  color: var(--kick);
  font-weight: 700;
}

body.platform-twitch .sidebar-platform strong,
body.platform-twitch .profile-card__platform-badge {
  color: var(--twitch);
}

body.is-guest .sidebar-platform {
  display: none;
}

.public-tabs-panel {
  margin: 0 2px 2px;
  padding: 8px 8px 9px;
  border: 1px solid rgba(83, 252, 24, 0.22);
  border-radius: 10px;
  background: rgba(83, 252, 24, 0.05);
}

.public-tabs-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.public-tabs-panel__kicker,
.public-tabs-banner__kicker {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kick);
}

.public-tabs-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.public-tabs-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d5dbe6;
  font-size: 0.68rem;
  font-weight: 600;
}

.public-tabs-panel__list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.55;
}

.public-tabs-panel__btn {
  flex-shrink: 0;
  margin: 0;
  width: auto;
  border: 1px solid rgba(83, 252, 24, 0.35);
  border-radius: 7px;
  background: transparent;
  color: var(--kick);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
}

.public-tabs-panel__btn:hover {
  background: rgba(83, 252, 24, 0.12);
}

.public-tabs-banner {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(83, 252, 24, 0.28);
  border-radius: 14px;
  background: rgba(83, 252, 24, 0.06);
}

.page-view[data-page="settings"] .public-tabs-banner,
#public-tabs-banner.card {
  margin-bottom: 0;
}

#public-tabs-banner .public-tabs-panel__btn {
  margin-top: 12px;
}

.public-tabs-banner h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.sidebar-close {
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.sidebar-profile {
  display: none;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: #1d2333;
}

.avatar-sm { width: 52px; height: 52px; }

.nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  justify-content: flex-start;
}

.nav-group {
  display: grid;
  gap: 1px;
  align-content: start;
  flex: 0 0 auto;
}

.nav-group--tools {
  padding-top: 10px;
  border-top: 1px solid #1e1e1e;
}

.nav-more {
  display: grid;
  gap: 1px;
}

.nav-more__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #8b95a8;
  border-radius: 9px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-more__toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-more__toggle .nav-icon {
  transition: transform 0.15s ease;
}

.nav-more.is-open .nav-more__toggle .nav-icon {
  transform: rotate(-180deg);
}

.nav-more__list {
  display: none;
  gap: 1px;
}

.nav-more.is-open .nav-more__list {
  display: grid;
}

.nav-link--quiet {
  padding: 6px 10px 6px 12px;
  font-size: 0.8rem;
  color: #8b95a8;
}

.nav-group--other {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #1e1e1e;
}

.nav-group__label {
  margin: 0 0 4px 10px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #667084;
}

body.is-guest .nav-group__label {
  display: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: none;
  background: transparent;
  color: #c4ccd9;
  border-radius: 9px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  height: auto;
  min-height: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #8b95a8;
  flex-shrink: 0;
}

.nav-label {
  min-width: 0;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link:hover .nav-icon {
  color: var(--text);
}

.nav-link.active {
  color: var(--kick);
  background: rgba(83, 252, 24, 0.12);
}

.nav-link.active .nav-icon {
  color: var(--kick);
}

.nav-link--logout {
  color: #a8b0bf;
}

.sidebar-logout {
  display: none;
}

.content {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-content: start;
  justify-items: stretch;
  padding: 28px 36px 40px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 14px,
      rgba(255, 255, 255, 0.012) 14px,
      rgba(255, 255, 255, 0.012) 15px
    ),
    #080808;
  overflow: auto;
  max-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-stack {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
}

.profile-card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 28px 24px 22px;
}

.profile-card__hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.profile-card__avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.profile-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2a2a2a;
  background: #1a1a1a;
}

.profile-card__platform-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  color: var(--kick);
}

.profile-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--kick);
  text-align: center;
}

.profile-card__title--sm {
  font-size: 1.35rem;
  text-align: left;
  margin-bottom: 8px;
}

.profile-rows {
  margin: 12px 0 0;
  display: grid;
}

.profile-rows > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 12px 2px;
  border-bottom: 1px solid #242424;
}

.profile-rows > div:last-child {
  border-bottom: none;
}

.profile-rows dt {
  margin: 0;
  color: #9aa3b2;
  font-size: 0.92rem;
  font-weight: 500;
}

.profile-rows dd {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
}

.profile-account__note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.profile-account__actions {
  display: grid;
  gap: 10px;
}

.profile-account__actions .btn {
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
}

#profile-twitch-card .only-pixels-form {
  max-width: none;
}

#profile-twitch-current:empty {
  display: none;
}

.profile-streamers__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-streamers__head .profile-card__title {
  margin-bottom: 0;
}

.profile-streamers__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.profile-streamers__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-streamers__toolbar .btn.active {
  border-color: rgba(83, 252, 24, 0.45);
  color: var(--kick);
  background: rgba(83, 252, 24, 0.1);
}

.profile-streamers__list {
  display: grid;
  gap: 8px;
  max-height: min(70vh, 640px);
  overflow: auto;
}

.streamer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #242424;
  background: #101010;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.streamer-row:hover,
.streamer-row.is-selected {
  border-color: rgba(83, 252, 24, 0.35);
  background: #141814;
}

.streamer-row__live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a3a;
}

.streamer-row__live.is-live {
  background: #ff3b3b;
  box-shadow: 0 0 0 4px rgba(255, 59, 59, 0.18);
}

.streamer-row__meta {
  min-width: 0;
}

.streamer-row__name {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streamer-row__slug {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.streamer-row__watch {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--kick);
}

.streamer-row__empty {
  margin: 0;
  padding: 18px 8px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.streamers-sidebar .profile-streamers__meta {
  margin: 8px 2px 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.streamers-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - 160px);
  justify-self: stretch;
}

.streamers-sidebar {
  padding: 12px;
  background: #141414;
  border: 1px solid #222;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.streamers-theater {
  min-height: calc(100vh - 120px);
  padding: 10px;
  background: #0c0c0c;
  border: 1px solid #222;
  display: grid;
}

.streamers-theater__empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.streamers-theater__active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  height: 100%;
}

.streamers-theater__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.streamers-theater__top h2 {
  margin: 0;
  font-size: 1.1rem;
}

.streamers-theater__top .subtitle {
  margin: 2px 0 0;
  font-size: 0.8rem;
}

.streamers-theater__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0;
  min-height: 0;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #222;
  background: #000;
}

.streamers-theater__main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #000;
}

.streamers-player-grid {
  min-height: 0;
  height: 100%;
  display: grid;
  gap: 2px;
  background: #111;
  min-height: min(55vh, 640px);
}

.streamers-player-grid[data-count="1"] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.streamers-player-grid[data-count="2"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.streamers-player-grid[data-count="3"],
.streamers-player-grid[data-count="4"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.streamers-player-grid[data-count="5"],
.streamers-player-grid[data-count="6"] {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
}

.streamers-player-grid[data-count="7"],
.streamers-player-grid[data-count="8"],
.streamers-player-grid[data-count="9"] {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.streamers-player-grid[data-count="10"],
.streamers-player-grid[data-count="11"],
.streamers-player-grid[data-count="12"] {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.stream-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid transparent;
}

.stream-tile.is-focused {
  border-color: rgba(83, 252, 24, 0.55);
  box-shadow: inset 0 0 0 1px rgba(83, 252, 24, 0.25);
}

.stream-tile__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: #121212;
  border-bottom: 1px solid #222;
  min-height: 28px;
}

.stream-tile__name {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
}

.stream-tile__name:hover {
  color: var(--kick);
}

.stream-tile__mute,
.stream-tile__close {
  flex: 0 0 auto;
  border: 1px solid #333;
  border-radius: 6px;
  background: #1a1a1a;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
}

.stream-tile__mute {
  padding: 3px 7px;
}

.stream-tile__mute.is-muted {
  color: #ffb4b4;
  border-color: #553333;
}

.stream-tile__mute:hover,
.stream-tile__close:hover {
  color: #fff;
  border-color: #555;
}

.stream-tile__close {
  width: 22px;
  height: 22px;
  font-size: 0.85rem;
}

.stream-tile iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
  background: #0a0a0a;
}

.stream-tile__catcher {
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  bottom: 0;
  z-index: 3;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.stream-tile.is-focused .stream-tile__catcher {
  display: none;
}

.streamers-theater__chat {
  border-left: 1px solid #222;
  background: #0f0f0f;
  min-height: 0;
  display: grid;
}

.site-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: 100%;
  min-height: min(55vh, 640px);
}

.site-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #222;
  font-weight: 700;
}

.site-chat__hint {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.site-chat__messages {
  overflow: auto;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.site-chat__row {
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
  line-height: 1.35;
  word-break: break-word;
}

.site-chat__row strong {
  color: var(--kick);
  font-size: 0.82rem;
}

.site-chat__emote {
  height: 1.45em;
  width: auto;
  max-width: 4.5em;
  vertical-align: -0.25em;
  display: inline-block;
  margin: 0 1px;
  object-fit: contain;
}

.site-chat__empty {
  margin: 24px 8px 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

.site-chat__interact {
  border-top: 1px solid #222;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  background: #0c0c0c;
}

.site-chat__points {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.site-chat__points-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.site-chat__points-label {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-chat__cmds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-start;
}

.site-chat__cmds-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-chat__cmd-group {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.site-chat__cmd-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.site-chat__cmd-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-chat__cmd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(83, 252, 24, 0.06);
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.site-chat__cmd:hover {
  border-color: rgba(83, 252, 24, 0.35);
  background: rgba(83, 252, 24, 0.12);
}

.site-chat__cmd code {
  color: var(--kick);
  font-weight: 700;
  font-size: 0.82rem;
}

.site-chat__cmd span {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.site-chat__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #222;
  background: #121212;
}

.site-chat__composer input {
  width: 100%;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: #0a0a0a;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.site-chat__composer input:disabled {
  opacity: 0.55;
}

.site-chat__status {
  margin: 0;
  min-height: 1.1em;
  padding: 0 12px 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-chat__status.is-error {
  color: #ff8f8f;
}

@media (max-width: 980px) {
  .streamers-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .streamers-sidebar {
    max-height: 280px;
  }

  .streamers-theater {
    min-height: auto;
  }

  .streamers-theater__stage {
    grid-template-columns: 1fr;
  }

  .streamers-theater__chat {
    border-left: 0;
    border-top: 1px solid #222;
  }

  .streamers-player-grid,
  .site-chat {
    min-height: 280px;
  }

  .streamers-player-grid[data-count="3"],
  .streamers-player-grid[data-count="4"],
  .streamers-player-grid[data-count="5"],
  .streamers-player-grid[data-count="6"],
  .streamers-player-grid[data-count="7"],
  .streamers-player-grid[data-count="8"],
  .streamers-player-grid[data-count="9"],
  .streamers-player-grid[data-count="10"],
  .streamers-player-grid[data-count="11"],
  .streamers-player-grid[data-count="12"] {
    grid-template-columns: 1fr 1fr;
  }

  .streamers-theater__main {
    grid-template-rows: auto auto;
  }
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 4px;
  justify-self: stretch;
  width: 100%;
}

.app-topbar__brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--kick);
}

.app-topbar__live {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.topbar-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body:not(.is-guest) .app-topbar__live {
  margin-left: auto;
}

body.is-guest .signed-in-only {
  display: none !important;
}

body:not(.is-guest) .guest-only {
  display: none !important;
}

.guest-lock {
  display: grid;
  gap: 10px;
  justify-self: stretch;
  width: 100%;
  padding: 22px 24px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.guest-lock h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.guest-lock__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kick);
}

.guest-lock__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.guest-lock--inline {
  padding: 14px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.guest-lock--strip {
  padding: 16px 18px;
}

.city-landing {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
  gap: 16px;
  width: 100%;
  align-items: start;
}

.city-landing__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.city-stage {
  display: grid;
  gap: 14px;
  padding: 16px 16px 16px;
}

.city-stage__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.city-stage__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.city-platform-switch {
  display: flex;
  gap: 6px;
}

.city-stage[data-platform="twitch"] .city-stage__kicker {
  color: var(--twitch);
}

.city-twitch-chat {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 260px;
  max-height: min(48vh, 400px);
  overflow: hidden;
  padding: 0;
}

.city-twitch-chat iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  background: #0e0e10;
}

.city-stage h2 {
  margin: 2px 0 0;
  font-size: 1.45rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.city-stage__status {
  display: inline-flex;
  margin: 8px 0 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: #141414;
  border: 1px solid #2a2a2a;
}

.city-stage__status[data-live="1"] {
  color: #0b3;
  background: rgba(83, 252, 24, 0.12);
  border-color: rgba(83, 252, 24, 0.35);
}

.city-stage__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kick);
}

.city-stage__player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid #222;
}

.city-stage__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.city-stage__chat.site-chat {
  flex: 0 0 auto;
  min-height: 260px;
  max-height: min(48vh, 400px);
  height: auto;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(120px, 1fr) auto auto auto;
}

.city-stage__chat .site-chat__interact {
  max-height: 140px;
  overflow: auto;
  border-top: 0;
}

.site-chat__tools {
  margin: 0;
  border-bottom: 1px solid #222;
  background: #0c0c0c;
}

.site-chat__tools-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 9px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-chat__tools-summary::-webkit-details-marker {
  display: none;
}

.site-chat__tools-summary::after {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}

.site-chat__tools[open] .site-chat__tools-summary::after {
  transform: rotate(-135deg);
}

.city-stage__chat .site-chat__messages {
  max-height: none;
  min-height: 120px;
}

.city-landing .profile-streamers__toolbar {
  margin-top: 10px;
}

.city-landing .profile-streamers__meta {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.city-landing .profile-streamers__list {
  max-height: min(36vh, 300px);
}

.city-partner-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.city-partner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #222;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.city-partner:hover {
  border-color: rgba(83, 252, 24, 0.4);
  background: rgba(83, 252, 24, 0.06);
}

.city-partner__live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a3a;
  flex-shrink: 0;
}

.city-partner__live.is-live {
  background: #ff3b3b;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.18);
}

.city-partner strong {
  display: block;
}

.city-partner .subtitle {
  display: block;
  margin: 1px 0 0;
  font-size: 0.75rem;
}

.city-partner__watch {
  margin-left: auto;
  color: var(--kick);
  font-size: 0.82rem;
  font-weight: 700;
}

.city-in-city-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.guest-lock--inline .guest-lock__cta {
  margin-top: 0;
}

.site-chat__guest {
  margin: 10px 12px 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.app-topbar__live:hover {
  color: var(--kick);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.hub-section {
  display: grid;
  gap: 14px;
}

.hub-toolbar {
  display: flex;
  gap: 10px;
}

.hub-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  padding: 0 14px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.hub-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.hub-search input::placeholder {
  color: #6f788a;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.hub-card {
  display: grid;
  gap: 10px;
  justify-items: start;
  text-align: left;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(16, 19, 26, 0.95);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.hub-card:hover {
  border-color: rgba(83, 252, 24, 0.45);
  transform: translateY(-1px);
  background: rgba(18, 24, 20, 0.98);
}

.hub-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #c8d0de;
}

.hub-card__icon--green {
  color: var(--kick);
  border-color: rgba(83, 252, 24, 0.35);
  background: rgba(83, 252, 24, 0.08);
}

.hub-card strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.hub-card > span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  body.is-dashboard .page {
    padding: 0;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.nav-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: min(82vw, 300px);
    height: 100vh;
    max-height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    display: grid;
  }

  .content {
    max-height: none;
    min-height: 100vh;
    padding: 14px 14px 28px;
    justify-items: stretch;
  }

  .profile-stack {
    width: 100%;
  }

  .app-topbar {
    display: flex;
  }

  .menu-toggle {
    display: grid;
  }

  .guest-lock--inline {
    grid-template-columns: 1fr;
  }

  .city-landing {
    grid-template-columns: 1fr;
  }

  .city-stage__chat.site-chat {
    max-height: min(42vh, 340px);
  }

  .two-col { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
}

.page-view { display: none; gap: 16px; }
.page-view.active {
  display: grid;
  width: 100%;
  justify-items: stretch;
}

.page-view[data-page="streamers"].active {
  justify-items: stretch;
  width: 100%;
}

.page-view[data-page="profile"].active {
  justify-items: start;
}

.guest-lock .subtitle,
.page-header .subtitle {
  max-width: 68ch;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.stake-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.88rem;
}

.stake-list-muted {
  color: var(--text-muted);
}

.panel { padding: 20px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.stat-card {
  background: rgba(20, 24, 36, 0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.stat-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  margin-top: 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.stream-hero {
  padding: 0;
  overflow: hidden;
  max-height: 200px;
}

.stream-hero.card {
  padding: 0;
}

.stream-hero__inner {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 0;
  height: 200px;
  max-height: 200px;
  overflow: hidden;
}

.stream-hero__media {
  position: relative;
  background: #1d2333;
  height: 200px;
  max-height: 200px;
  overflow: hidden;
  isolation: isolate;
}

.stream-hero__media--empty {
  background:
    linear-gradient(135deg, rgba(83, 252, 24, 0.08), transparent 55%),
    #1d2333;
}

.stream-hero__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

#stream-hero img {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.stream-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stream-badge--live {
  background: #e91916;
  color: #fff;
  box-shadow: 0 0 20px rgba(233, 25, 22, 0.45);
}

.stream-badge--offline {
  background: rgba(0, 0, 0, 0.65);
  color: var(--muted);
  border: 1px solid var(--border);
}

.stream-hero__body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.stream-hero__title {
  font-size: 1.5rem;
  margin: 0;
}

.stream-hero__meta {
  margin: 0;
}

.stream-hero__viewers {
  margin-top: 10px;
  font-size: 1.125rem;
  color: var(--kick);
}

.stream-hero__viewers strong {
  font-size: 1.75rem;
  font-weight: 700;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .stream-hero,
  .stream-hero__inner,
  .stream-hero__media,
  .stream-hero__thumb,
  #stream-hero img {
    height: 180px;
    max-height: 180px;
  }

  .stream-hero__inner {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table code {
  color: #d6deef;
  font-size: 0.8rem;
  word-break: break-all;
}

.url-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.url-table {
  table-layout: fixed;
  width: 100%;
  min-width: 560px;
}

.url-table th:first-child,
.url-table td:first-child {
  width: 34%;
  max-width: 240px;
  vertical-align: middle;
}

.url-table th:nth-child(2),
.url-table td.url-cell {
  width: auto;
  vertical-align: middle;
}

.url-table code,
.url-table .url-text {
  word-break: normal;
  overflow-wrap: normal;
}

.url-table .url-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.url-table .url-text:hover {
  color: var(--orange-bright, #ff7043);
}

.url-table .url-copy-cell {
  width: 80px;
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}

.copy-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.copy-row .embed-code {
  flex: 1;
  margin: 0;
}

.copy-row .btn {
  flex-shrink: 0;
  align-self: center;
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-kick { background: var(--kick); color: #081004; }
.btn-twitch { background: var(--twitch); color: white; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-compact { width: auto; }
.btn-disabled, .btn:disabled { opacity: 0.55; cursor: not-allowed; }

.actions { display: grid; gap: 12px; margin-top: 24px; }
.btn-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 700;
}

.bot-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.bot-form label {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

.bot-form input {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f131d;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.lighting-input {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f131d;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.lighting-layout-stage-wrap {
  overflow: auto;
}

.lighting-layout-stage {
  position: relative;
  width: 100%;
  max-width: 280px;
  min-height: 320px;
  height: 320px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    #0a0f18;
}

.lighting-layout-stage::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.lighting-layout-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.45;
  pointer-events: none;
}

.lighting-layout-label--top {
  top: 8px;
}

.lighting-layout-label--bottom {
  bottom: 8px;
}

.lighting-layout-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 54px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 28, 44, 0.92);
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  cursor: grab;
  user-select: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.lighting-layout-marker.is-hue {
  border-color: #f0c14b;
}

.lighting-layout-marker.is-govee {
  border-color: #5ec8ff;
}

.lighting-layout-marker.is-dragging {
  cursor: grabbing;
  z-index: 2;
}

.lighting-layout-marker.is-identifying {
  border-color: #ff3b3b;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.35), 0 6px 18px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.lighting-layout-marker.is-selected {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.lighting-layout-marker__strip {
  display: block;
  font-size: 10px;
  color: #5ec8ff;
  opacity: 0.9;
}

.lighting-layout-marker.map-blue {
  border-color: #3b8bff;
  box-shadow: 0 0 0 2px rgba(59, 139, 255, 0.45), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.lighting-layout-marker.map-red {
  border-color: #ff3b3b;
  box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.45), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.lighting-layout-marker.map-green {
  border-color: #3bff7a;
}

.lighting-layout-marker.map-orange {
  border-color: #ff9a3b;
}

.lighting-layout-marker.map-purple {
  border-color: #b43bff;
}

.lighting-layout-marker.map-cyan {
  border-color: #3bfff0;
}

.lighting-layout-marker.map-blue-red {
  border-image: linear-gradient(180deg, #3b8bff 0%, #3b8bff 50%, #ff3b3b 50%, #ff3b3b 100%) 1;
  border-width: 2px;
  border-style: solid;
}

.lighting-layout-marker__order {
  display: block;
  font-size: 10px;
  opacity: 0.7;
}

.workout-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.workout-studio__preview,
.workout-studio__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.workout-embed-frame {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0a0a0a;
}

.workout-scene-frame {
  aspect-ratio: 16 / 9;
  min-height: 220px;
}

.workout-control-frame {
  min-height: 820px;
  flex: 1;
  border: 0;
  border-radius: 12px;
}

.embed-code-block {
  margin-bottom: 16px;
}

.embed-code-block h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.embed-code {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f131d;
  color: var(--muted);
  font: 0.8rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
}

.embed-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--kick);
  font-size: 0.85rem;
  text-decoration: none;
}

.embed-link:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .workout-studio { grid-template-columns: 1fr; }
  .workout-control-frame { min-height: 640px; }
  .slots-layout,
  .slots-controls-layout,
  .widgets-layout--dual { grid-template-columns: 1fr; }
}

.slots-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.slots-layout--dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slots-controls-layout,
.widgets-layout--dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.slots-embed-frame {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0a0a0a;
}

.slots-pick-frame {
  min-height: 360px;
}

.slots-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.slots-preview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widgets-preview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.widgets-debug-log {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7e3ff;
  font-size: 12px;
  line-height: 1.45;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.widgets-embed-frame {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
}

.widgets-embed-frame--alerts {
  min-height: 96px;
  height: 96px;
}

.widgets-embed-frame--cam-overlay {
  min-height: 360px;
  aspect-ratio: 16 / 9;
  background: #cfc8bf;
}

#widgets-alert-status.ok {
  color: var(--green, #66bb6a);
}

#widgets-alert-status.err {
  color: #ff8a80;
}


.drinking-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.drinking-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drinking-preview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drinking-scene-frame {
  width: 100%;
  min-height: 380px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    repeating-conic-gradient(#1c1c22 0% 25%, #121218 0% 50%) 50% / 20px 20px;
}

.drinking-embed-frame {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0a0806;
}

.drinking-control-frame {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
}

@media (max-width: 960px) {
  .drinking-studio { grid-template-columns: 1fr; }
}

.walk-preview {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(83, 252, 24, 0.08);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.walk-form { max-width: 420px; }

.detail-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.detail-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.detail-list dt {
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-list dd { margin: 0; line-height: 1.5; }

.plain-list { margin: 0; padding-left: 18px; }

.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(83, 252, 24, 0.12);
  color: #b8f7a0;
  font-size: 0.75rem;
  font-weight: 600;
}

.pill-ok {
  background: rgba(83, 252, 24, 0.12);
  color: #b8f7a0;
}

.pill-warn {
  background: rgba(255, 107, 107, 0.15);
  color: #ffb3b3;
}

.sign-in-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  vertical-align: middle;
  border: 1px solid var(--border);
}

#sign-in-log-table .data-table td:first-child {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.tab-row { display: flex; gap: 8px; }

.tab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}

.tab.active {
  color: #081004;
  background: var(--kick);
  border-color: var(--kick);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-header h2 { margin: 0; }

.notice {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(245, 213, 101, 0.12);
  border: 1px solid rgba(245, 213, 101, 0.35);
  color: #f8e7a8;
}

.error {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffc9c9;
}

.only-pixels-steps {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.only-pixels-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.only-pixels-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
}

.only-pixels-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.only-pixels-note.ok { color: #7dffb3; }
.only-pixels-note.err { color: #ff8e8e; }

#only-pixels-twitch-current:empty {
  display: none;
}

#only-pixels-twitch-current {
  margin: 0 0 10px;
  color: #c9b7ff;
}

.discord-status-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 4px;
}

@media (min-width: 720px) {
  .discord-status-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.discord-status-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.discord-status-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.discord-status-card strong {
  font-size: 0.98rem;
  font-weight: 700;
  word-break: break-word;
}

.discord-status-value.is-owner,
.discord-status-value.is-yes {
  color: #7dffb3;
}

.discord-status-value.is-no {
  color: #ffb080;
}

.discord-status-value.is-warn {
  color: #ffd27a;
}

.only-pixels-code-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  border: 1px dashed rgba(83, 252, 24, 0.35);
  background: rgba(83, 252, 24, 0.06);
  max-width: 480px;
}

.only-pixels-code-box[hidden] {
  display: none !important;
}

.only-pixels-code {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 8px 0 12px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: var(--kick);
}

.only-pixels-signed-in {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.only-pixels-signed-in strong {
  color: var(--kick);
}

.only-pixels-points-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.only-pixels-points-head h2 {
  margin: 0 0 4px;
}

.only-pixels-points-hero {
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(83, 252, 24, 0.25);
  background: linear-gradient(135deg, rgba(83, 252, 24, 0.08), rgba(255, 255, 255, 0.03));
}

.only-pixels-points-total {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--kick);
}

.only-pixels-points-label {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

.only-pixels-stats {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.only-pixels-streamer-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.only-pixels-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.only-pixels-streamer-name {
  font-size: 1.05rem;
}

.only-pixels-pts-badge {
  min-width: 3rem;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(83, 252, 24, 0.12);
  border: 1px solid rgba(83, 252, 24, 0.3);
  color: var(--kick);
  font-weight: 700;
  text-align: center;
}

.only-pixels-used-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.only-pixels-used-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.only-pixels-used-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.only-pixels-used-chip code {
  color: var(--kick);
}

.only-pixels-commands-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}

.only-pixels-cmd-group + .only-pixels-cmd-group {
  margin-top: 10px;
}

.only-pixels-cmd-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.only-pixels-cmd-list {
  display: grid;
  gap: 8px;
}

.only-pixels-cmd {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.only-pixels-cmd code {
  color: var(--kick);
  font-weight: 700;
  white-space: nowrap;
}

.only-pixels-cmd-desc {
  font-size: 0.88rem;
  color: var(--muted);
}

.only-pixels-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.only-pixels-stat-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.only-pixels-partners-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.only-pixels-partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.only-pixels-partner-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.only-pixels-partner-meta strong {
  font-size: 0.95rem;
}

.only-pixels-partner-meta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.only-pixels-partner-row .btn {
  flex-shrink: 0;
  min-width: 88px;
}

.only-pixels-partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
}

.city-status {
  margin: 0;
}

.city-status__ok,
.city-status__wait {
  margin: 0;
  color: var(--muted);
}

.city-status__ok strong {
  color: var(--kick);
}

.city-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

body.is-guest .city-layout {
  grid-template-columns: 1fr;
}

.city-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.city-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 13, 18, 0.55);
}

.city-row strong {
  display: block;
}

.city-job {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.city-row__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.city-kick {
  color: var(--kick);
  text-decoration: none;
  font-weight: 600;
}

.city-kick:hover {
  text-decoration: underline;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.city-pill--live {
  color: #041204;
  background: var(--kick);
}

.city-pill--points {
  color: #041204;
  background: rgba(83, 252, 24, 0.85);
  font-variant-numeric: tabular-nums;
}

.city-roster {
  margin: 0;
}

.city-roster__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}

.city-roster__summary::-webkit-details-marker {
  display: none;
}

.city-roster__summary::after {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-left: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.city-roster[open] .city-roster__summary::after {
  transform: rotate(-135deg);
  margin-top: 8px;
}

.city-roster__summary h2 {
  margin: 0 0 4px;
}

.city-roster__count {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.city-roster__body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .city-layout { grid-template-columns: 1fr; }
  .city-row { flex-direction: column; }
  .city-row__meta { justify-content: flex-start; text-align: left; }
  .city-roster__summary { flex-wrap: wrap; }
}
