:root {
  color-scheme: dark;
  --bg: #07090c;
  --card: #12161f;
  --border: #252b38;
  --text: #f2f4f8;
  --muted: #8b95a8;
  --kick: #53fc18;
  --twitch: #9146ff;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(83, 252, 24, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(40, 55, 40, 0.35), transparent 45%),
    linear-gradient(180deg, #0a0d11 0%, var(--bg) 40%, #06080a 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 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 48px);
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 0 56px;
}

.login-stage {
  width: 100%;
  animation: login-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.login-kicker {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-brand {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 14vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--kick);
  animation: login-brand-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

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

.login-tagline {
  margin: 0 0 32px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 400;
}

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

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

.login-cta .btn-kick:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

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

.login-note {
  margin: 0 0 36px;
  max-width: 42ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

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

.login-steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.login-steps li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.login-steps__n {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--kick);
  opacity: 0.85;
}

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

.login-steps code {
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}

.login-live {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.login-live a {
  color: var(--kick);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

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

#kick-redirect-hint {
  margin-top: 16px;
  font-size: 0.85rem;
}

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

@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: 268px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 48px);
  max-width: none;
  margin: 0;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10, 12, 16, 0.72);
}

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

body.is-dashboard {
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(83, 252, 24, 0.07), transparent 50%),
    linear-gradient(180deg, #080a0d 0%, #06080a 100%);
}

.sidebar-backdrop {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  padding: 16px 12px 16px;
  background: #0b0d11;
  border-right: 1px solid var(--border);
  overflow: auto;
}

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

.sidebar-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

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

.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: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 6px 8px;
}

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

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

.sidebar-profile__meta {
  min-width: 0;
}

.sidebar-profile__meta strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.sidebar-profile__meta .subtitle {
  margin: 4px 0 0;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: grid;
  gap: 14px;
  flex: 1;
}

.nav-group {
  display: grid;
  gap: 4px;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  background: transparent;
  color: #c4ccd9;
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-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.035);
}

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

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

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

.sidebar-logout {
  margin-top: auto;
  width: 100%;
}

.content {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-content: start;
  padding: 16px 18px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 120px),
    #090b0f;
  overflow: auto;
  max-height: calc(100vh - 48px);
}

.app-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  margin: -4px 0 4px;
}

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

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

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

.menu-toggle {
  display: grid;
  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;
  }

  .app-topbar {
    display: flex;
  }

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

.page-view { display: none; gap: 16px; }
.page-view.active { display: grid; }

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

.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; }

.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; }
}
