:root {
  color-scheme: dark;
  --app-sidebar-width: 17.25rem;
  --app-header-height: 3.75rem;
  --app-shell-bg: #161618;
  --app-shell-card: #1f1f21;
  --app-shell-border: rgba(255, 255, 255, 0.08);
  --app-shell-muted: #939397;
  --app-shell-primary: #5f4afe;
  --app-shell-primary-hover: #725fff;
  --app-shell-shadow: 0 1px 2px rgba(0, 0, 0, 0.24), 0 12px 32px rgba(0, 0, 0, 0.18);
  --bg: #161618;
  --panel: #1f1f21;
  --panel-border: rgba(255, 255, 255, 0.085);
  --text: #f3f2f7;
  --muted: #939397;
  --accent: #7664ff;
  --accent-soft: rgba(95, 74, 254, 0.14);
  --win: #48cf89;
  --loss: #ff7583;
  --shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.24), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

body {
  background: var(--app-shell-bg);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

body.sidebar-open {
  overflow: hidden;
}

.app-main {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% -10%, rgba(95, 74, 254, 0.12), transparent 32rem),
    var(--app-shell-bg);
}

.app-wrapper {
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--app-sidebar-width);
  transition: margin-left 180ms ease;
}

body.sidebar-collapsed .app-wrapper {
  margin-left: 0;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--app-sidebar-width);
  overflow-y: auto;
  border-right: 1px solid var(--app-shell-border);
  background: var(--app-shell-card);
  box-shadow: var(--app-shell-shadow);
  transition: transform 180ms ease;
}

body.sidebar-collapsed .app-sidebar {
  transform: translateX(-100%);
}

.app-sidebar-header {
  display: flex;
  min-height: var(--app-header-height);
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--app-shell-border);
  color: var(--text);
  text-decoration: none;
}

.app-sidebar-close {
  position: absolute;
  top: 0.62rem;
  right: 0.75rem;
  z-index: 1;
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--app-shell-border);
  border-radius: 0.5rem;
  background: #29292b;
  color: var(--text);
}

.app-sidebar-close svg {
  width: 1.15rem;
  height: 1.15rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--app-shell-primary);
  color: white;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 1rem));
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#main-content:focus {
  outline: none;
}

.moderator-access > :not(.moderator-access-message),
.moderator-access-message {
  display: none;
}

body.auth-resolved.is-moderator .moderator-access > :not(.moderator-access-message) {
  display: revert;
}

body.auth-resolved:not(.is-moderator) .moderator-access-message {
  display: grid;
}

.app-main .moderator-access-message {
  min-height: 16rem;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  border-style: dashed;
  text-align: center;
}

.moderator-access-message h2,
.moderator-access-message p {
  margin: 0;
}

.moderator-access-message .muted {
  max-width: 32rem;
  line-height: 1.6;
}

.app-brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, var(--app-shell-primary), #4d33c9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 22px rgba(95, 74, 254, 0.32);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.app-brand-copy {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.app-brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.app-brand-copy span {
  overflow: hidden;
  color: var(--app-shell-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-menu {
  padding: 1.15rem 0.9rem 2rem;
}

.side-nav-group + .side-nav-group {
  margin-top: 1.1rem;
}

.side-nav-heading {
  margin: 0 0 0.45rem;
  padding: 0 0.85rem;
  color: var(--app-shell-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.side-nav-list {
  display: grid;
  gap: 0.22rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-nav-link {
  display: flex;
  min-height: 2.55rem;
  align-items: center;
  gap: 0.72rem;
  padding: 0.68rem 0.85rem;
  border-radius: 0.45rem;
  color: #b9bac3;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.side-nav-link::before {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.55;
}

.side-nav-link:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  transform: translateX(2px);
}

.side-nav-link[aria-current="page"] {
  background: var(--app-shell-primary);
  color: white;
  box-shadow: 0 1px 2px rgba(55, 17, 184, 0.32), 0 8px 24px rgba(62, 24, 190, 0.2);
}

.side-nav-link[aria-current="page"]::before {
  background: currentColor;
  opacity: 1;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  min-height: var(--app-header-height);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--app-shell-border);
  background: rgba(31, 31, 33, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(14px);
}

.app-sidebar-toggle {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--app-shell-border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition: border-color 120ms ease, background-color 120ms ease;
}

.app-sidebar-toggle:hover {
  border-color: rgba(95, 74, 254, 0.5);
  background: rgba(95, 74, 254, 0.1);
}

.app-sidebar-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.top-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.top-nav a {
  position: relative;
  padding: 0.62rem 0.8rem;
  border-radius: 0.45rem;
  color: #b9bac3;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.top-nav a[aria-current="page"],
.top-nav a[aria-current="location"] {
  color: white;
}

.top-nav a[aria-current="page"]::after,
.top-nav a[aria-current="location"]::after {
  position: absolute;
  right: 0.8rem;
  bottom: 0.2rem;
  left: 0.8rem;
  height: 2px;
  border-radius: 999px;
  background: var(--app-shell-primary);
  content: "";
}

:where(a, button):focus-visible {
  outline: 2px solid #a995ff;
  outline-offset: 3px;
}

.app-header .header-actions {
  grid-area: auto;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.app-header .auth-controls {
  flex-wrap: nowrap;
}

.app-header .auth-identity {
  max-width: 15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header .auth-button,
.app-header #refresh-button {
  min-height: 2.35rem;
  border-radius: 0.45rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.app-header .auth-button {
  border-color: var(--app-shell-primary);
  background: var(--app-shell-primary);
}

.app-header .auth-button:hover {
  background: var(--app-shell-primary-hover);
}

.app-header .auth-button--secondary {
  border-color: var(--app-shell-border);
  background: rgba(255, 255, 255, 0.035);
}

.app-header #last-refreshed {
  margin: 0;
  white-space: nowrap;
}

.app-header #refresh-button {
  border-color: var(--app-shell-border);
  background: rgba(255, 255, 255, 0.035);
}

.app-content-wrapper {
  min-width: 0;
  padding: 1.6rem 1.5rem 3rem;
}

.app-page-header {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.4rem 0 0.35rem;
}

.app-page-header--fluid {
  width: 100%;
}

.app-page-header h1 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.app-page-header .eyebrow {
  color: #9a88ff;
}

.app-page-description {
  max-width: 46rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  visibility: hidden;
  border: 0;
  background: rgba(0, 0, 0, 0.66);
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.marketing-layout {
  display: grid;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  gap: 1.25rem;
  padding: 1.25rem 0 2rem;
}

.dashboard-layout-fluid {
  width: 100%;
  max-width: none;
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: 26rem;
  align-content: end;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid rgba(95, 74, 254, 0.28);
  border-radius: 1.1rem;
  background:
    linear-gradient(120deg, rgba(8, 10, 16, 0.94) 22%, rgba(8, 10, 16, 0.5)),
    radial-gradient(circle at 78% 28%, rgba(95, 74, 254, 0.5), transparent 30%),
    linear-gradient(145deg, #17152a, #0e1722);
  box-shadow: var(--app-shell-shadow);
}

.landing-hero::after {
  position: absolute;
  top: 12%;
  right: 8%;
  width: clamp(8rem, 22vw, 16rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28% 72% 62% 38%;
  box-shadow: inset 0 0 5rem rgba(95, 74, 254, 0.08), 0 0 5rem rgba(95, 74, 254, 0.18);
  content: "";
  transform: rotate(24deg);
}

.landing-copy {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.landing-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 7vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.landing-copy > p:not(.eyebrow) {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: #b9bac3;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.landing-action {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--app-shell-primary);
  border-radius: 0.5rem;
  background: var(--app-shell-primary);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.landing-action--secondary {
  border-color: var(--app-shell-border);
  background: rgba(255, 255, 255, 0.045);
}

.contact-placeholder {
  display: grid;
  min-height: 22rem;
  place-content: center;
  justify-items: start;
  gap: 0.85rem;
}

.contact-placeholder p {
  max-width: 38rem;
  margin: 0;
  line-height: 1.65;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.landing-feature-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 1.4rem;
  border: 1px solid var(--app-shell-border);
  border-radius: 0.75rem;
  background: var(--app-shell-card);
  box-shadow: var(--shadow);
}

.landing-feature-card::after {
  position: absolute;
  right: -2.5rem;
  bottom: -3.5rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--feature-color) 14%, transparent);
  content: "";
}

.landing-feature-card:nth-child(1) {
  --feature-color: #8b72ff;
}

.landing-feature-card:nth-child(2) {
  --feature-color: #48cf89;
}

.landing-feature-card:nth-child(3) {
  --feature-color: #59c3ff;
}

.landing-feature-index {
  display: inline-flex;
  min-width: 2rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--feature-color) 18%, transparent);
  color: var(--feature-color);
  font-size: 0.72rem;
  font-weight: 800;
}

.landing-feature-card h2 {
  font-size: 1rem;
  font-weight: 700;
}

.landing-feature-card p {
  position: relative;
  z-index: 1;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.dashboard-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
}

.dashboard-section-heading h2,
.dashboard-section-heading p {
  margin: 0;
}

.dashboard-section-heading .muted {
  max-width: 32rem;
  text-align: right;
}

.overview-panel {
  display: grid;
  gap: 1rem;
}

/* Conca-aligned dashboard component layer. Kept here so OBS pages retain their own visual system. */
.app-main .panel {
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  padding: 1.4rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.app-main .panel-heading {
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.app-main .panel-heading h2,
.app-main .panel > h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.app-main .panel-heading p,
.app-main .panel-heading .muted {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.app-main .eyebrow {
  color: #9a88ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.app-main .stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.app-main .stat-card {
  --metric-color: #8b72ff;
  position: relative;
  min-height: 8.5rem;
  overflow: hidden;
  padding: 1.3rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.app-main .stat-card:nth-child(2) {
  --metric-color: #48cf89;
}

.app-main .stat-card:nth-child(3) {
  --metric-color: #59c3ff;
}

.app-main .stat-card::after {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.35), transparent 24%),
    var(--metric-color);
  box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--metric-color) 12%, transparent);
  content: "";
}

.app-main .stat-card .muted {
  display: block;
  max-width: calc(100% - 3.4rem);
  color: #b9bac3;
  font-size: 0.78rem;
  font-weight: 600;
}

.app-main .stat-card strong {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-top: 2.1rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.app-main :where(
  input[type="text"],
  input[type="number"],
  input[type="datetime-local"],
  select,
  textarea
) {
  border: 1px solid var(--panel-border);
  border-radius: 0.5rem;
  background: #19191b;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.app-main :where(
  input[type="text"],
  input[type="number"],
  input[type="datetime-local"],
  select,
  textarea
):focus,
.app-main :where(
  input[type="text"],
  input[type="number"],
  input[type="datetime-local"],
  select,
  textarea
):focus-visible {
  border-color: var(--app-shell-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(95, 74, 254, 0.16);
}

.app-main :where(input, select, textarea):disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-main input[type="checkbox"],
.app-main input[type="radio"] {
  accent-color: var(--app-shell-primary);
}

.app-main :where(
  #enqueue-button,
  .bot-profile-save,
  .host-action,
  .submission-form button[type="submit"],
  .voice-upload-action
) {
  border: 1px solid var(--app-shell-primary);
  border-radius: 0.5rem;
  background: var(--app-shell-primary);
  color: white;
  box-shadow: 0 1px 2px rgba(55, 17, 184, 0.28);
  font-weight: 700;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.app-main :where(
  #enqueue-button,
  .bot-profile-save,
  .host-action,
  .submission-form button[type="submit"],
  .voice-upload-action
):hover:not(:disabled) {
  border-color: var(--app-shell-primary-hover);
  background: var(--app-shell-primary-hover);
  transform: translateY(-1px);
}

.app-main .control-action {
  border-radius: 0.5rem;
  box-shadow: none;
}

.app-main :where(.control-card, .queue-entry, .enqueue-form, .submission-card, .live-feed-column, .dashboard-match-row, .character-popularity-row, .bot-stat, .prompt-set-panel) {
  border-color: var(--panel-border);
  border-radius: 0.65rem;
  background: #19191b;
  box-shadow: none;
}

.app-main .event-mode-switch {
  border-color: var(--panel-border);
  border-radius: 0.55rem;
  background: #161618;
}

.app-main .event-mode-switch span {
  border-radius: 0.4rem;
}

.app-main .event-mode-switch input:checked + span {
  background: var(--app-shell-primary);
  color: white;
  box-shadow: none;
}

.app-main :where(table, .stats-table) {
  border-collapse: separate;
  border-spacing: 0;
}

.app-main :where(th, .stats-table th) {
  padding: 0.8rem 0.75rem;
  border-bottom: 0;
  background: #1b1d26;
  color: #b9bac3;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.app-main :where(th, .stats-table th):first-child {
  border-radius: 0.5rem 0 0 0.5rem;
}

.app-main :where(th, .stats-table th):last-child {
  border-radius: 0 0.5rem 0.5rem 0;
}

.app-main :where(td, .stats-table td) {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--panel-border);
  vertical-align: middle;
}

.app-main tbody tr {
  transition: background-color 100ms ease;
}

.app-main tbody tr:hover {
  background: rgba(95, 74, 254, 0.055);
}

.app-main :where(.tag, .bot-result, .submission-source-badge) {
  border-radius: 0.4rem;
  font-weight: 700;
}

.status-banner {
  z-index: 40;
  width: min(34rem, calc(100vw - 2rem));
  border-radius: 0.6rem;
  background: rgba(31, 31, 33, 0.96);
  box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.4);
}

.app-main .twitch-stream {
  border-radius: 0.65rem;
  box-shadow: none;
}

.app-main .live-player {
  border-radius: 0.65rem;
  box-shadow: none;
}

.app-main .character-popularity-track,
.app-main .bar-track {
  height: 0.4rem;
  background: #242630;
}

.app-main .character-popularity-fill,
.app-main .bar-fill {
  background: linear-gradient(90deg, var(--app-shell-primary), #9d89ff);
}

.app-main .bot-profile-panel {
  border-color: rgba(95, 74, 254, 0.32);
  background:
    radial-gradient(circle at 94% 0%, rgba(95, 74, 254, 0.11), transparent 25rem),
    var(--panel);
}

.app-main :where(.stats-layout, .controls-layout, .submissions-layout, .host-configuration-layout, .layout) {
  gap: 1rem;
}

.app-main .stats-chart-wrap {
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  padding: 0.75rem;
  background: #19191b;
}

.app-main .bot-stat {
  padding: 1rem;
}

.app-main .bot-stat dt {
  color: #b9bac3;
  font-size: 0.68rem;
}

.app-main .bot-stat dd {
  color: var(--text);
  font-weight: 700;
}

.app-main .bot-stat--featured {
  border-color: rgba(95, 74, 254, 0.35);
  background: rgba(95, 74, 254, 0.08);
}

.app-main .bot-stat--featured dd {
  color: #a995ff;
}

.app-main .character-popularity-row {
  padding: 0.85rem 1rem;
}

.app-main .character-popularity-row:hover,
.app-main .submission-card:hover,
.app-main .dashboard-match-row:hover {
  border-color: rgba(95, 74, 254, 0.28);
  background: rgba(95, 74, 254, 0.035);
}

.app-main .submission-intro {
  border-color: rgba(95, 74, 254, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(95, 74, 254, 0.13), transparent 24rem),
    var(--panel);
}

.app-main .submission-card {
  padding: 1rem 1.1rem;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.app-main .submission-username {
  color: #a995ff;
}

.app-main .submission-actions button,
.app-main .queue-remove,
.app-main .voice-preview-action,
.dialog-actions button {
  border-radius: 0.45rem;
}

.edit-dialog,
.voice-upload-dialog {
  border-radius: 0.75rem;
  background: var(--panel);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.56);
}

.app-main .prompt-set-panel {
  padding: 1.1rem;
}

.app-main .prompt-set-panel legend,
.app-main .prompt-reset-action,
.app-main .voice-selector-feedback {
  color: #a995ff;
}

.app-main .prompt-set-panel legend {
  font-size: 0.95rem;
}

.app-main .announcer-form select:focus-visible,
.app-main .announcer-form textarea:focus-visible {
  border-color: var(--app-shell-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(95, 74, 254, 0.16);
}

.app-main .event-composer {
  border-color: rgba(95, 74, 254, 0.3);
}

.app-main .random-event-card {
  border-color: rgba(95, 74, 254, 0.22);
}

.app-main .control-kicker {
  color: #a995ff;
}

.app-main .live-feed-column-heading h3 {
  font-size: 0.9rem;
  font-weight: 700;
}

.app-main .queue-entry.is-active {
  border-color: rgba(95, 74, 254, 0.5);
  box-shadow: inset 0 0 0 1px rgba(95, 74, 254, 0.12);
}

@media (max-width: 1199px) {
  .app-wrapper {
    margin-left: 0;
  }

  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-sidebar-header {
    padding-right: 4.25rem;
  }

  .app-sidebar-close:not([hidden]) {
    display: grid;
  }

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

  body.sidebar-open .app-backdrop {
    visibility: visible;
    opacity: 1;
  }

}

@media (max-width: 800px) {
  .app-header {
    grid-template-areas:
      "toggle actions"
      "nav nav";
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 1rem;
  }

  .app-sidebar-toggle {
    grid-area: toggle;
  }

  .top-nav {
    grid-area: nav;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 0.1rem;
  }

  .app-header .header-actions {
    grid-area: actions;
  }

  .app-header #last-refreshed {
    display: none;
  }

  .app-content-wrapper {
    padding: 1.1rem 0.75rem 2rem;
  }

  .landing-hero {
    min-height: 24rem;
  }

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

  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-section-heading .muted {
    text-align: left;
  }

  .app-main .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .app-header .auth-identity {
    display: none;
  }

  .app-header .auth-button,
  .app-header #refresh-button {
    padding: 0.5rem 0.62rem;
    font-size: 0.75rem;
  }

  .top-nav a {
    padding-inline: 0.58rem;
    font-size: 0.8rem;
  }

  .app-main .panel-heading {
    flex-direction: column;
  }

  .app-main .stat-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero::after {
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-wrapper,
  .app-sidebar,
  .app-backdrop,
  .side-nav-link,
  .skip-link {
    transition: none;
  }

  .live-dot.is-live {
    animation: none;
  }
}
