:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7fb;
  color: #111827;
}

/* Donation settings workspace */
.admin-dashboard .donation-settings-panel {
  padding: 18px;
}

.admin-dashboard .event-actions-page {
  display: grid;
  gap: 18px;
}

.admin-dashboard .modules-page {
  display: grid;
  gap: 34px;
  padding: 30px 34px;
}

.admin-dashboard .modules-heading-row {
  display: grid;
  grid-template-columns: minmax(240px, 320px);
  gap: 24px;
  align-items: start;
  justify-content: end;
  margin-bottom: 16px;
}

.admin-dashboard .modules-heading-row p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.admin-dashboard .modules-search {
  position: relative;
  display: block;
}

.admin-dashboard .modules-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.admin-dashboard .modules-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-dashboard .modules-search-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-dashboard .modules-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.admin-dashboard .module-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.admin-dashboard .module-card:hover,
.admin-dashboard .module-card:focus-visible {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transform: translateY(-2px);
}

.admin-dashboard .module-preview {
  position: relative;
  min-height: 340px;
  margin: 14px 14px 0;
  overflow: hidden;
  border-radius: 5px;
  background:
    radial-gradient(circle at 72% 42%, rgba(59, 130, 246, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(5, 7, 12, 0.96), rgba(17, 18, 22, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.admin-dashboard .module-preview-wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 276px;
  height: 276px;
  border: 13px solid #f8fafc;
  border-radius: 999px;
  background: conic-gradient(#f43f5e 0 25%, #3b82f6 25% 50%, #22c55e 50% 75%, #facc15 75% 100%);
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.22),
    0 0 0 5px rgba(148, 163, 184, 0.72),
    0 0 0 9px rgba(15, 23, 42, 0.86);
}

.admin-dashboard .module-preview-wheel::before {
  content: "";
  position: absolute;
  inset: 90px;
  z-index: 4;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow:
    inset 0 0 0 13px rgba(226, 232, 240, 0.9),
    0 0 0 5px rgba(203, 213, 225, 0.62),
    0 12px 22px rgba(15, 23, 42, 0.3);
}

.admin-dashboard .module-preview-wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 24px;
  height: 90px;
  background: #f8fafc;
  clip-path: polygon(50% 0, 92% 100%, 8% 100%);
  transform: translate(-50%, -86%);
  transform-origin: 50% 86%;
  filter: drop-shadow(0 7px 8px rgba(15, 23, 42, 0.28));
}

.admin-dashboard .module-preview-wheel span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  max-width: 64px;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 2px 4px rgba(15, 23, 42, 0.45);
  overflow-wrap: anywhere;
}

.admin-dashboard .module-preview-wheel span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg) translateY(-92px) rotate(90deg);
}

.admin-dashboard .module-preview-wheel span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(135deg) translateY(-92px) rotate(90deg);
}

.admin-dashboard .module-preview-wheel span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(225deg) translateY(-92px) rotate(90deg);
}

.admin-dashboard .module-preview-wheel span:nth-child(4) {
  transform: translate(-50%, -50%) rotate(315deg) translateY(-92px) rotate(90deg);
}

.admin-dashboard .module-preview-raffle {
  background:
    radial-gradient(circle at 50% 18%, rgba(16, 185, 129, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(5, 7, 12, 0.96), rgba(18, 24, 28, 0.98));
}

.admin-dashboard .module-preview-raffle-ticket-list {
  position: absolute;
  inset: 34px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.admin-dashboard .module-preview-raffle-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.76);
  color: #e2e8f0;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.26);
}

.admin-dashboard .module-preview-raffle-ticket span {
  color: #86efac;
  font-weight: 900;
}

.admin-dashboard .module-card-copy {
  padding: 20px 14px 0;
}

.admin-dashboard .module-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-dashboard .module-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
}

.admin-dashboard .module-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.admin-dashboard .module-status {
  padding: 2px 7px;
  border: 1px solid rgba(167, 243, 208, 0.42);
  border-radius: 999px;
  color: #a7f3d0;
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-dashboard .module-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 18px 30px 0;
  padding: 20px 0 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.admin-dashboard .module-enable-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.admin-dashboard .module-enable-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-dashboard .module-switch-ui {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #334155;
  transition: background 160ms ease;
}

.admin-dashboard .module-switch-ui::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #f8fafc;
  transition: transform 160ms ease;
}

.admin-dashboard .module-enable-toggle input:checked + .module-switch-ui {
  background: #10b981;
}

.admin-dashboard .module-enable-toggle input:checked + .module-switch-ui::after {
  transform: translateX(20px);
}

.admin-dashboard .module-enable-toggle input:disabled + .module-switch-ui {
  opacity: 0.55;
}

.admin-dashboard .module-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  min-width: 100px;
  padding: 0 20px;
  border: 1px solid rgba(226, 232, 240, 0.42);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-dashboard .module-edit-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-dashboard .event-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-dashboard .event-actions-stat {
  min-width: 112px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-dashboard .event-actions-stat span,
.admin-dashboard .event-action-node span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-dashboard .event-actions-stat strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.1;
}

.admin-dashboard .event-actions-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-dashboard .event-actions-layout-scoped {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .event-actions-module-list {
  display: grid;
  gap: 10px;
}

.admin-dashboard .event-actions-module-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.admin-dashboard .event-actions-module-button.selected {
  border-color: rgba(125, 211, 252, 0.65);
  background: rgba(14, 165, 233, 0.16);
}

.admin-dashboard .event-actions-module-button span {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.admin-dashboard .event-actions-module-button strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.admin-dashboard .event-actions-flow-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-dashboard .event-actions-flow-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-dashboard .event-actions-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-dashboard .event-actions-flow-title {
  margin-left: auto;
}

.admin-dashboard .event-actions-mode-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.admin-dashboard .event-actions-mode-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.admin-dashboard .event-actions-mode-option.active {
  color: var(--text);
}

.admin-dashboard .event-actions-flow-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
}

.admin-dashboard .event-actions-edit-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.56);
}

.admin-dashboard .event-actions-edit-list {
  display: grid;
  gap: 12px;
}

.admin-dashboard .event-action-binding-editor {
  background: rgba(255, 255, 255, 0.035);
}

.admin-dashboard .event-actions-edit-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-dashboard .event-actions-edit-toolbar button {
  min-width: 116px;
}

.admin-dashboard .event-action-binding-summary {
  grid-template-columns: auto minmax(150px, 0.28fr) minmax(0, 1fr) auto 18px;
}

.admin-dashboard .event-action-binding-summary .template-message-preview {
  font-family: inherit;
  font-weight: 800;
}

.admin-dashboard .event-action-binding-summary::after {
  grid-column: 5;
}

.admin-dashboard .event-action-binding-remove {
  min-height: 34px;
  min-width: 64px;
  padding: 0 12px;
  white-space: nowrap;
}

.admin-dashboard .event-action-binding-inline-actions {
  grid-column: 4;
  justify-self: end;
}

.admin-dashboard .event-action-binding-toggle {
  min-width: 0;
  font-weight: 900;
}

.admin-dashboard .event-action-binding-toggle > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-dashboard .event-action-binding-editor-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.admin-dashboard .event-action-binding-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.18);
}

.admin-dashboard .event-action-binding-section-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-dashboard .event-action-command-settings {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.admin-dashboard .event-action-command-alias-editor {
  align-self: start;
}

.admin-dashboard .event-action-binding-config-fields,
.admin-dashboard .event-action-config-field {
  display: grid;
  gap: 12px;
}

.admin-dashboard .event-action-message-field textarea {
  min-height: 96px;
}

.admin-dashboard .event-action-variable-panel {
  padding: 12px;
  overflow-x: auto;
}

.admin-dashboard .event-action-variable-panel .template-variable-list li {
  grid-template-columns: max-content minmax(0, 1fr);
}

.admin-dashboard .event-action-variable-panel .template-variable-list code {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.admin-dashboard .event-action-binding-editor-panel .field-label {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-dashboard .event-action-binding-editor-panel input,
.admin-dashboard .event-action-binding-editor-panel select {
  width: 100%;
}

.admin-dashboard .event-action-repeat-toggle {
  justify-content: flex-start;
  gap: 10px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 780;
}

.admin-dashboard .event-action-repeat-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-dashboard .event-action-repeat-row .field-help {
  margin: 0;
}

.admin-dashboard .event-action-repeat-toggle .switch-ui {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .admin-dashboard .event-action-binding-section-fields,
  .admin-dashboard .event-action-command-settings {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .event-action-repeat-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

.admin-dashboard .event-action-binding-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.26);
}

.admin-dashboard .event-action-binding-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-dashboard .event-action-binding-meta strong {
  color: var(--text);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.admin-dashboard .event-actions-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-dashboard .event-action-flow-board {
  min-width: 0;
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), rgba(45, 212, 191, 0.06), rgba(250, 204, 21, 0.05));
}

.admin-dashboard .event-action-flow-columns,
.admin-dashboard .event-action-flow-row {
  display: grid;
  grid-template-columns: minmax(132px, 1fr) 36px minmax(132px, 1fr) 36px minmax(158px, 1.08fr);
  gap: 0;
  align-items: center;
  min-width: 580px;
}

.admin-dashboard .event-action-flow-columns {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-dashboard .event-action-flow-columns span:nth-child(2) {
  grid-column: 3;
}

.admin-dashboard .event-action-flow-columns span:nth-child(3) {
  grid-column: 5;
}

.admin-dashboard .event-action-flow-row + .event-action-flow-row {
  margin-top: 16px;
}

.admin-dashboard .event-action-node {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.84);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.admin-dashboard .event-action-node strong {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-dashboard .event-action-node.disabled {
  opacity: 0.48;
}

.admin-dashboard .event-action-node-event {
  border-color: rgba(147, 197, 253, 0.42);
}

.admin-dashboard .event-action-node-action {
  border-color: rgba(45, 212, 191, 0.42);
}

.admin-dashboard .event-action-node-result,
.admin-dashboard .event-action-node-terminal {
  border-color: rgba(253, 224, 71, 0.42);
}

.admin-dashboard .event-action-arrow {
  position: relative;
  height: 18px;
  background: #9bdcff;
  clip-path: polygon(0 34%, 70% 34%, 70% 0, 100% 50%, 70% 100%, 70% 66%, 0 66%);
}

.admin-dashboard .event-action-result-stack,
.admin-dashboard .event-action-result-group {
  display: grid;
  gap: 10px;
}

.admin-dashboard .event-action-node-terminal {
  min-height: 76px;
}

@media (max-width: 860px) {
  .admin-dashboard .event-actions-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .event-actions-module-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .admin-dashboard .modules-heading-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-dashboard .donation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 14px;
}

.admin-dashboard .opay-settings-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .donation-goal-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .donation-link-qr-workspace {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.admin-dashboard .qr-download-shell {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .qr-download-shell .dashboard-main {
  grid-column: 1;
}

.admin-dashboard .donation-link-qr-card {
  width: min(100%, 620px);
  justify-items: center;
  text-align: center;
}

.admin-dashboard .donation-link-qr-preview-surface {
  display: grid;
  place-items: center;
  width: min(100%, 340px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-dashboard .donation-link-qr-preview-surface.error {
  aspect-ratio: auto;
  min-height: 220px;
}

.admin-dashboard .donation-link-qr-image {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: contain;
}

.admin-dashboard .donation-link-qr-actions {
  justify-content: center;
}

.admin-dashboard .donation-link-qr-color-picker {
  flex: 0 0 auto;
  min-width: 128px;
}

.admin-dashboard .donation-link-qr-color-swatch {
  background-color: #000000;
}

.admin-dashboard .donation-link-qr-download {
  min-width: 96px;
}

.admin-dashboard .donation-records-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard #donation-records .donation-records-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  align-items: start;
}

.admin-dashboard .donation-section-card {
  align-content: start;
  min-height: 0;
  padding: 16px;
}

.admin-dashboard .donation-history-card,
.admin-dashboard .donation-url-grid {
  grid-column: 1 / -1;
}

.admin-dashboard .donation-records-main-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.admin-dashboard #donation-records .donation-records-main-column {
  align-self: stretch;
  align-content: stretch;
  grid-template-rows: auto minmax(0, 1fr);
}

.admin-dashboard .donation-url-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.admin-dashboard .donation-url-grid .donation-section-card {
  min-height: auto;
}

.admin-dashboard .donation-goal-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-dashboard .donation-link-card {
  grid-column: 1 / -1;
}

.admin-dashboard .donation-goal-form-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-dashboard .donation-goal-color-column {
  display: grid;
  gap: 14px;
}

.admin-dashboard .donation-goal-actions {
  grid-column: 1 / -1;
}

.admin-dashboard .donation-toggle-row {
  justify-content: flex-start;
  font-weight: 760;
}

.admin-dashboard .donation-alert-toggle-copy,
.admin-dashboard .settings-toggle-copy {
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 760;
}

.admin-dashboard .donation-delete-mode {
  margin: 0 0 14px;
}

.admin-dashboard .donation-record-item .compact-danger {
  justify-self: end;
  min-width: 74px;
  padding: 7px 10px;
  font-size: 12px;
}

.admin-dashboard .donation-record-table-wrap {
  display: grid;
  gap: 14px;
  overflow-x: auto;
}

.admin-dashboard .donation-record-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.admin-dashboard .donation-record-table th,
.admin-dashboard .donation-record-table td {
  border-bottom: 1px solid var(--ops-border);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.admin-dashboard .donation-record-table th:last-child,
.admin-dashboard .donation-record-table td:last-child {
  text-align: right;
}

.admin-dashboard .donation-record-table th {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.admin-dashboard .donation-record-table th:nth-child(1) {
  width: 20%;
}

.admin-dashboard .donation-record-table th:nth-child(2) {
  width: 30%;
}

.admin-dashboard .donation-record-table th:nth-child(3),
.admin-dashboard .donation-record-table th:nth-child(4),
.admin-dashboard .donation-record-table th:nth-child(6) {
  width: 11%;
}

.admin-dashboard .donation-record-table th:nth-child(5) {
  width: 17%;
}

.admin-dashboard .donation-record-table td {
  color: #dbe5f1;
  font-size: 13px;
}

.admin-dashboard .donation-record-table tbody tr:hover td {
  background: rgba(148, 163, 184, 0.06);
}

.admin-dashboard .donation-record-donor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-dashboard .donation-record-donor strong {
  color: #f8fafc;
  font-size: 14px;
}

.admin-dashboard .donation-record-message {
  color: #cbd5e1;
  overflow-wrap: anywhere;
}

.admin-dashboard .blocked-term-table-wrap {
  width: 100%;
  min-width: 0;
}

.admin-dashboard .blocked-term-table {
  width: 100%;
  min-width: 900px;
}

.admin-dashboard .default-blocked-term-table-wrap {
  width: 100%;
  min-width: 0;
}

.admin-dashboard .default-blocked-term-table {
  min-width: 0;
}

.admin-dashboard .blocked-term-table th:nth-child(1) {
  width: 18%;
}

.admin-dashboard .blocked-term-table th:nth-child(2),
.admin-dashboard .blocked-term-table th:nth-child(3),
.admin-dashboard .blocked-term-table th:nth-child(4) {
  width: 14%;
}

.admin-dashboard .blocked-term-table th:nth-child(5) {
  width: 10%;
}

.admin-dashboard .blocked-term-table th:nth-child(6) {
  width: 10%;
}

.admin-dashboard .blocked-term-table th:nth-child(7) {
  width: 20%;
}

.admin-dashboard .default-blocked-term-table th:nth-child(1) {
  width: 34%;
}

.admin-dashboard .default-blocked-term-table th:nth-child(2) {
  width: 17%;
}

.admin-dashboard .default-blocked-term-table th:nth-child(3) {
  width: 29%;
}

.admin-dashboard .default-blocked-term-table th:nth-child(4) {
  width: 20%;
}

.admin-dashboard .blocked-deletion-log-title {
  display: grid;
  gap: 4px;
}

.admin-dashboard .blocked-deletion-log-title span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 760;
}

.admin-dashboard .blocked-deletion-log-table-wrap {
  width: 100%;
  min-width: 0;
}

.admin-dashboard .blocked-term-deletion-log-table {
  min-width: 900px;
}

.admin-dashboard .blocked-term-deletion-log-table th:nth-child(1) {
  width: 18%;
}

.admin-dashboard .blocked-term-deletion-log-table th:nth-child(2) {
  width: 12%;
}

.admin-dashboard .blocked-term-deletion-log-table th:nth-child(3) {
  width: 18%;
}

.admin-dashboard .blocked-term-deletion-log-table th:nth-child(4),
.admin-dashboard .blocked-term-deletion-log-table th:nth-child(5) {
  width: 26%;
}

.admin-dashboard .blocked-deletion-log-user {
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.admin-dashboard .blocked-deletion-log-sensitive {
  display: block;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: pre-wrap;
}

.admin-dashboard .blocked-term-phonetic {
  display: inline-block;
  max-width: 260px;
  padding: 3px 7px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.68);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-dashboard .blocked-term-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 3px 8px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 999px;
  background: rgba(22, 101, 52, 0.18);
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.admin-dashboard .blocked-term-status-badge.muted {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
}

.admin-dashboard .blocked-term-source-badge {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
}

.admin-dashboard .blocked-term-source-badge.builtin {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(14, 116, 144, 0.2);
  color: #bae6fd;
}

.admin-dashboard .blocked-term-source-badge.custom {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(120, 53, 15, 0.34);
  color: #fde68a;
}

.admin-dashboard .blocked-term-sensitive {
  position: relative;
  display: inline-block;
  max-width: 12ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  filter: blur(7px);
  transition: filter 140ms ease;
}

.admin-dashboard .blocked-term-sensitive::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.54);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
  pointer-events: none;
}

.admin-dashboard .blocked-term-sensitive.revealed {
  filter: none;
}

.admin-dashboard .blocked-term-sensitive.revealed::after {
  display: none;
}

.admin-dashboard .blocked-term-sensitive.blocked-deletion-log-sensitive {
  display: block;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: pre-wrap;
}

.admin-dashboard .blocked-term-action-group {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.admin-dashboard .blocked-term-table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-dashboard .donation-record-actions .compact-edit {
  min-width: 66px;
  padding: 7px 10px;
  font-size: 12px;
}

.admin-dashboard .donation-record-amount {
  white-space: nowrap;
  font-weight: 850;
}

.admin-dashboard .donation-record-actions {
  text-align: right;
  white-space: nowrap;
}

.admin-dashboard .donation-record-actions .compact-danger {
  min-width: 66px;
  padding: 7px 10px;
  font-size: 12px;
}

.admin-dashboard .donation-record-filter-card {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 8px 0 14px;
}

.admin-dashboard .donation-record-date-range {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.admin-dashboard .donation-date-range-trigger {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 8px 12px;
  border-color: rgba(56, 189, 248, 0.24);
  background: linear-gradient(135deg, rgba(10, 15, 23, 0.9), rgba(15, 23, 42, 0.74));
  color: #dbe5f1;
  font-size: 13px;
  font-weight: 780;
  text-align: left;
}

.admin-dashboard .donation-date-range-trigger:hover,
.admin-dashboard .donation-date-range-trigger:focus-visible {
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
}

.admin-dashboard .donation-date-range-trigger span:first-child {
  display: grid;
  gap: 2px;
}

.admin-dashboard .donation-date-range-trigger strong {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 860;
}

.admin-dashboard .donation-date-range-trigger small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 760;
}

.admin-dashboard .donation-date-range-presets {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-dashboard .donation-date-range-presets button {
  min-height: 34px;
  padding: 7px 10px;
  border-color: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  font-size: 12px;
}

.admin-dashboard .donation-date-range-presets button.selected {
  border-color: rgba(56, 189, 248, 0.72);
  background: rgba(14, 116, 144, 0.34);
  color: #f8fafc;
}

.admin-dashboard .donation-date-picker-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 24;
  width: min(376px, 100%);
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  background: #0d1420;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.admin-dashboard .donation-date-picker-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.admin-dashboard .donation-date-picker-header strong {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.admin-dashboard .donation-date-picker-header button {
  min-width: 38px;
  min-height: 34px;
  padding: 6px 0;
  font-size: 18px;
  line-height: 1;
}

.admin-dashboard .donation-date-range-hint {
  margin: -2px 0 0;
  color: #bae6fd;
  font-size: 12px;
  font-weight: 820;
}

.admin-dashboard .donation-date-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.admin-dashboard .donation-date-weekday {
  display: grid;
  place-items: center;
  min-height: 24px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 850;
}

.admin-dashboard .donation-date-day {
  min-width: 0;
  min-height: 34px;
  padding: 0;
  border-color: rgba(148, 163, 184, 0.18);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.62);
  color: #dbe5f1;
  font-size: 13px;
  font-weight: 800;
}

.admin-dashboard .donation-date-day:hover,
.admin-dashboard .donation-date-day:focus-visible {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(30, 41, 59, 0.9);
}

.admin-dashboard .donation-date-day.selected {
  border-color: rgba(56, 189, 248, 0.72);
  background: rgba(14, 116, 144, 0.38);
  color: #f8fafc;
}

.admin-dashboard .donation-date-day.in-range {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(14, 116, 144, 0.2);
  color: #e0f2fe;
}

.admin-dashboard .donation-date-day.empty,
.admin-dashboard .donation-date-day.empty:disabled {
  border-color: transparent;
  background: transparent;
  cursor: default;
  opacity: 1;
}

.admin-dashboard .donation-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 2px;
}

.admin-dashboard .donation-page-size,
.admin-dashboard .donation-page-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-dashboard .donation-page-size {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 760;
}

.admin-dashboard .donation-page-size select {
  min-width: 82px;
  width: auto;
}

.admin-dashboard .donation-page-summary,
.admin-dashboard .donation-page-actions span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 760;
}

.admin-dashboard .donation-page-actions button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.admin-dashboard .donation-record-sync-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-dashboard .donation-record-sync-switch-row {
  align-self: flex-start;
  cursor: pointer;
  color: #dbeafe;
  font-weight: 700;
}

.admin-dashboard .donation-settings-grid {
  margin-top: 4px;
}

.admin-dashboard .blocked-term-filter-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-dashboard .blocked-term-filter-toggle {
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  justify-content: flex-start;
}

.admin-dashboard .blocked-term-inline-form {
  --blocked-term-side-width: 104px;
  --blocked-term-field-width: 404px;
  --blocked-term-input-width: 520px;
  position: relative;
  z-index: 32;
  overflow: visible;
  gap: 14px;
}

.admin-dashboard .blocked-term-inline-form .control-card-header {
  position: relative;
  z-index: 34;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-dashboard .inline-help-heading,
.admin-dashboard .blocked-term-heading-group {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.admin-dashboard .blocked-term-default-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-dashboard .blocked-term-default-actions button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}

.admin-dashboard .blocked-term-default-version {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.admin-dashboard .inline-help-trigger,
.admin-dashboard .blocked-term-help {
  position: relative;
  z-index: 35;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #cbd5e1;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  cursor: help;
  transform: translateY(-1px);
}

.admin-dashboard .regex-help-panel {
  position: absolute;
  left: 100%;
  top: calc(100% + 10px);
  z-index: 120;
  display: grid;
  gap: 10px;
  width: max-content;
  max-width: min(520px, 88vw);
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(0, -4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-dashboard .regex-help-panel strong {
  color: #f8fafc;
  font-size: 13px;
}

.admin-dashboard .regex-help-grid {
  display: grid;
  grid-template-columns: auto minmax(118px, auto) minmax(138px, auto);
  column-gap: 14px;
  row-gap: 7px;
  align-items: center;
}

.admin-dashboard .regex-help-heading {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.admin-dashboard .regex-help-grid code {
  justify-self: start;
  padding: 2px 6px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.78);
  color: #7dd3fc;
  font-weight: 850;
  white-space: nowrap;
}

.admin-dashboard .regex-help-note {
  display: block;
  max-width: 470px;
  padding-top: 2px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.admin-dashboard .blocked-term-help:hover .regex-help-panel,
.admin-dashboard .blocked-term-help:focus-visible .regex-help-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0);
}

.admin-dashboard .blocked-term-input-row,
.admin-dashboard .blocked-term-test-row {
  display: grid;
  grid-template-columns: var(--blocked-term-field-width) var(--blocked-term-side-width);
  align-items: center;
  gap: 12px;
  width: var(--blocked-term-input-width);
  max-width: 100%;
}

.admin-dashboard .blocked-term-input-row button {
  width: var(--blocked-term-side-width);
  min-height: 44px;
}

.admin-dashboard .blocked-term-field-shell {
  position: relative;
}

.admin-dashboard .blocked-term-field-shell input {
  padding-right: 66px;
}

.admin-dashboard .blocked-term-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: var(--blocked-term-input-width);
  max-width: 100%;
  line-height: 1.4;
}

.admin-dashboard .blocked-term-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #38bdf8;
}

.admin-dashboard .blocked-term-count {
  position: absolute;
  right: 12px;
  top: 50%;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 760;
  pointer-events: none;
  transform: translateY(-50%);
}

.admin-dashboard .blocked-term-test-row {
  padding-top: 2px;
}

.admin-dashboard .blocked-term-test-row .field-label {
  width: var(--blocked-term-field-width);
}

.admin-dashboard .blocked-term-match-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 44px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.admin-dashboard .blocked-term-match-result.is-match {
  border-color: rgba(251, 113, 133, 0.42);
  background: rgba(127, 29, 29, 0.24);
  color: #fecdd3;
}

.admin-dashboard .blocked-term-match-result.is-safe {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(22, 101, 52, 0.18);
  color: #bbf7d0;
}

.admin-dashboard .blocked-term-match-detail {
  width: var(--blocked-term-input-width);
  max-width: 100%;
  margin: -4px 0 0;
  color: #fca5a5;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.5;
}

.admin-dashboard .blocked-term-edit-scrim {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.62);
  backdrop-filter: blur(6px);
}

.admin-dashboard .blocked-term-update-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.68);
  backdrop-filter: blur(6px);
}

.admin-dashboard .blocked-term-update-dialog {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 8px;
  background: #0d1420;
  color: #dbeafe;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.46);
}

.admin-dashboard .blocked-term-update-dialog p {
  margin: 0;
  color: #b7c8df;
  line-height: 1.6;
}

.admin-dashboard .blocked-term-update-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-dashboard .blocked-term-edit-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  background: #0d1420;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.admin-dashboard .blocked-term-edit-panel .control-card-header {
  padding-bottom: 4px;
}

.admin-dashboard .blocked-term-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.admin-dashboard .blocked-term-edit-row .blocked-term-toggle {
  width: auto;
  white-space: nowrap;
}

.admin-dashboard .blocked-term-edit-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-dashboard .blocked-term-allowlist-editor {
  display: grid;
  gap: 10px;
}

.admin-dashboard .blocked-term-allowlist-editor > strong {
  color: #e2e8f0;
  font-size: 13px;
}

.admin-dashboard .blocked-term-allowlist-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-dashboard .blocked-term-allowlist-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 2px;
}

.admin-dashboard .blocked-term-allowlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 3px 0 8px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.7);
  color: #dbeafe;
  font-size: 12px;
}

.admin-dashboard .blocked-term-allowlist-value {
  min-width: 0;
  padding-block: 7px;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.admin-dashboard .blocked-term-allowlist-remove {
  align-self: stretch;
  width: 30px;
  min-width: 30px;
  min-height: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(125, 211, 252, 0.1);
  border-radius: 0 6px 6px 0;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1;
}

.admin-dashboard .blocked-term-allowlist-remove:hover,
.admin-dashboard .blocked-term-allowlist-remove:focus-visible {
  border-left-color: rgba(248, 113, 113, 0.24);
  background: rgba(127, 29, 29, 0.22);
  color: #fecdd3;
}

.admin-dashboard .blocked-term-allowlist-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

@media (max-width: 720px) {
  .admin-dashboard .blocked-term-inline-form {
    --blocked-term-side-width: 100%;
    --blocked-term-field-width: 100%;
    --blocked-term-input-width: 100%;
  }

  .admin-dashboard .donation-record-date-range {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .donation-date-range-presets {
    justify-content: flex-start;
  }

  .admin-dashboard .blocked-term-input-row,
  .admin-dashboard .blocked-term-test-row,
  .admin-dashboard .blocked-term-edit-row {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .blocked-term-allowlist-input-row {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .blocked-term-inline-form .control-card-header,
  .admin-dashboard .blocked-term-default-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .admin-dashboard .blocked-term-input-row button {
    width: 100%;
  }

  .admin-dashboard .blocked-term-test-row .field-label {
    width: 100%;
  }

  .admin-dashboard .regex-help-panel {
    left: 100%;
    max-width: min(300px, calc(100vw - 96px));
    transform: translate(0, -4px);
  }

  .admin-dashboard .regex-help-grid {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .admin-dashboard .regex-help-heading {
    display: none;
  }

  .admin-dashboard .blocked-term-help:hover .regex-help-panel,
  .admin-dashboard .blocked-term-help:focus-visible .regex-help-panel {
    transform: translate(0, 0);
  }
}

.admin-dashboard .opay-settings-card {
  gap: 16px;
}

.admin-dashboard .opay-provider-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: rgba(10, 15, 23, 0.5);
  padding: 16px;
}

.admin-dashboard .opay-provider-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ops-border);
}

.admin-dashboard .opay-settings-help-panel {
  min-width: 260px;
  max-width: min(360px, calc(100vw - 40px));
}

.admin-dashboard .opay-settings-heading {
  align-items: baseline;
}

.admin-dashboard .opay-settings-help {
  transform: translateY(-1px);
}

.admin-dashboard .opay-settings-external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-left: 1px;
  padding: 0;
  border: 0;
  color: #8fd3ff;
  background: transparent;
  text-decoration: none;
  line-height: 1;
  transform: translateY(2px);
}

.admin-dashboard .opay-settings-external-link:hover,
.admin-dashboard .opay-settings-external-link:focus-visible {
  color: #bae6fd;
}

.admin-dashboard .opay-settings-external-link svg {
  width: 15px;
  height: 15px;
}

.admin-dashboard .opay-settings-external-link path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-dashboard .opay-settings-help:hover .opay-settings-help-panel,
.admin-dashboard .opay-settings-help:focus .opay-settings-help-panel,
.admin-dashboard .opay-settings-help:focus-visible .opay-settings-help-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0);
}

.admin-dashboard .opay-help-steps {
  display: grid;
  gap: 5px;
}

.admin-dashboard .opay-switch-row {
  justify-content: flex-start;
}

.admin-dashboard .opay-fields-grid {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .donation-goal-fields-grid {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .settings-url-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: rgba(10, 15, 23, 0.74);
  padding: 8px 10px;
}

.admin-dashboard .settings-url-row.compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-dashboard .secret-url-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-dashboard .settings-url-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.admin-dashboard .settings-url-row span {
  color: #dbe5f1;
  font-size: 13px;
  font-weight: 800;
}

.admin-dashboard .settings-url-row code {
  min-width: 0;
  color: #bfdbfe;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.admin-dashboard .settings-url-row.compact code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 8px;
  background: #172033;
}

.admin-dashboard .icon-button svg {
  width: 19px;
  height: 19px;
  color: #8fd3ff;
}

.admin-dashboard .widget-layout-svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.admin-dashboard .widget-layout-svg-icon svg {
  display: block;
}

.admin-dashboard .icon-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-dashboard .goal-preview-card {
  display: grid;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  padding: 14px;
}

.admin-dashboard .goal-preview-meter {
  display: grid;
  gap: 4px;
  position: relative;
  min-height: 78px;
  height: auto;
  background: transparent !important;
}

.admin-dashboard .goal-meter-title {
  display: block;
  min-width: 0;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 8px rgb(0 0 0 / 35%);
}

.admin-dashboard .goal-meter-bar {
  position: relative;
  overflow: hidden;
  min-height: 34px;
  height: 100%;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.admin-dashboard .goal-preview-meter .goal-meter-fill {
  display: block;
  height: 100%;
  min-height: 34px;
}

.admin-dashboard .goal-meter-label {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 0;
  padding: 0 14px;
  text-shadow: 0 2px 8px rgb(0 0 0 / 35%);
}

.admin-dashboard .goal-meter-label em {
  justify-self: center;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.admin-dashboard .goal-meter-label .goal-meter-percent {
  justify-self: center;
}

.admin-dashboard .goal-meter-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 850;
  line-height: 1;
  text-shadow: 0 2px 8px rgb(0 0 0 / 35%);
}

.admin-dashboard .goal-meter-range span {
  display: inline;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.admin-dashboard .donation-speech-variable-panel {
  grid-column: 1 / -1;
  margin-top: -2px;
}

.admin-dashboard .donation-actions {
  margin-top: 0;
  justify-content: flex-start;
}

.admin-dashboard .opay-actions {
  justify-content: flex-end;
}

.admin-dashboard .donation-actions .danger {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(127, 29, 29, 0.3);
  color: #fecdd3;
}

.admin-dashboard .donation-actions .danger:hover {
  background: rgba(127, 29, 29, 0.46);
}

.admin-dashboard .widget-layout-workspace {
  display: grid;
  gap: 14px;
}

.admin-dashboard .widget-layout-url-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.admin-dashboard .widget-layout-editor-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: start;
  gap: 14px;
}

.admin-dashboard .widget-layer-picker-card {
  gap: 12px;
}

.admin-dashboard .widget-layer-groups {
  display: grid;
  gap: 8px;
}

.admin-dashboard .widget-layer-group {
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: rgba(10, 15, 23, 0.72);
  overflow: hidden;
}

.admin-dashboard .widget-layer-group-summary {
  cursor: pointer;
  list-style: none;
  padding: 9px 12px;
  font-weight: 800;
  color: #e2e8f0;
}

.admin-dashboard .widget-layer-group-summary::-webkit-details-marker {
  display: none;
}

.admin-dashboard .widget-layer-group-summary::after {
  content: "▾";
  float: right;
  color: #93c5fd;
}

.admin-dashboard .widget-layer-group:not([open]) .widget-layer-group-summary::after {
  content: "▸";
}

.admin-dashboard .widget-layout-preview-card {
  gap: 12px;
}

.admin-dashboard .widget-layout-preview-header {
  position: relative;
  z-index: 34;
  align-items: center;
}

.admin-dashboard .widget-layout-preview-heading {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1;
}

.admin-dashboard .widget-layout-preview-heading strong {
  line-height: 1.2;
}

.admin-dashboard .widget-layout-mobile-mode-actions {
  margin-left: auto;
  display: inline-flex;
  gap: 8px;
}

.admin-dashboard .widget-layout-mobile-edit-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.admin-dashboard .widget-layout-mobile-edit-toggle.active {
  border-color: rgba(56, 189, 248, 0.68);
  background: #1e3a5f;
  color: #f8fafc;
}

.admin-dashboard .widget-layout-mobile-edit-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-dashboard .widget-layout-mobile-edit-toggle [data-icon="move-four-way-arrows"] {
  width: 26px;
  height: 24px;
}

.admin-dashboard .widget-layout-help {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  line-height: 1;
  transform: translateY(-1px);
  z-index: 35;
}

.admin-dashboard .widget-layout-help-panel {
  min-width: 142px;
  width: max-content;
  max-width: min(220px, calc(100vw - 40px));
  padding: 10px 12px;
  line-height: 1.45;
  text-align: left;
}

.admin-dashboard .widget-layout-help:hover .widget-layout-help-panel,
.admin-dashboard .widget-layout-help:focus-visible .widget-layout-help-panel {
  opacity: 1;
  transform: translate(0, 0);
  pointer-events: auto;
}

.admin-dashboard .widget-layout-preview-stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--preview-aspect-ratio, 16 / 9);
  overflow: hidden;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    #050814;
  background-size: 40px 40px;
}

.admin-dashboard .widget-layout-preview-canvas {
  position: absolute;
  inset: 0;
  width: var(--preview-canvas-width, 1920px);
  height: var(--preview-canvas-height, 1080px);
  transform: scale(var(--preview-scale, 1));
  transform-origin: top left;
}

.admin-dashboard .widget-layout-mobile-controls {
  position: absolute;
  inset: 0;
  z-index: 40;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  --widget-layout-scale-control-offset: clamp(72px, 28%, 132px);
}

.admin-dashboard .widget-layout-mobile-controls .widget-layout-adjustment-row {
  display: contents;
}

.admin-dashboard .widget-layout-mobile-controls .widget-layout-icon-button {
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-align-center"] {
  left: 50%;
  top: 50%;
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-align-top"] {
  left: 50%;
  top: 24px;
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-align-bottom"] {
  left: 50%;
  top: calc(100% - 24px);
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-align-left"] {
  left: 24px;
  top: 50%;
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-align-right"] {
  left: calc(100% - 24px);
  top: 50%;
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-align-top-left"] {
  left: 24px;
  top: 24px;
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-align-top-right"] {
  left: calc(100% - 24px);
  top: 24px;
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-align-bottom-left"] {
  left: 24px;
  top: calc(100% - 24px);
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-align-bottom-right"] {
  left: calc(100% - 24px);
  top: calc(100% - 24px);
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-move-up"] {
  left: 50%;
  top: calc(50% - 54px);
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-move-down"] {
  left: 50%;
  top: calc(50% + 54px);
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-move-left"] {
  left: calc(50% - 54px);
  top: 50%;
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-move-right"] {
  left: calc(50% + 54px);
  top: 50%;
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-move-up-left"] {
  left: calc(50% - 54px);
  top: calc(50% - 54px);
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-move-up-right"] {
  left: calc(50% + 54px);
  top: calc(50% - 54px);
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-move-down-left"] {
  left: calc(50% - 54px);
  top: calc(50% + 54px);
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-move-down-right"] {
  left: calc(50% + 54px);
  top: calc(50% + 54px);
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-width-smaller"] {
  left: calc(50% - 54px);
  top: 50%;
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-width-larger"] {
  left: calc(50% + 54px);
  top: 50%;
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-height-smaller"] {
  left: 50%;
  top: calc(50% - 54px);
}

.admin-dashboard .widget-layout-mobile-controls [data-control-position="mobile-height-larger"] {
  left: 50%;
  top: calc(50% + 54px);
}

.admin-dashboard .widget-layout-layer {
  position: absolute;
  box-sizing: border-box;
  container-type: size;
  --layer-font-size: 100px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: move;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-dashboard .widget-layout-layer.selected {
  border-color: #ef4444;
  border-style: solid;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.42), 0 14px 30px rgba(0, 0, 0, 0.28);
}

.admin-dashboard .widget-layout-layer-muted > :not(.widget-layout-resize-handle) {
  opacity: 0.45;
}

.admin-dashboard .widget-layout-layer-hidden > :not(.widget-layout-resize-handle) {
  opacity: 0;
}

.admin-dashboard .widget-layout-layer-hidden:not(.selected) {
  border-color: transparent;
  pointer-events: none;
}

.admin-dashboard .widget-layout-layer:not(.selected) .widget-layout-resize-handle {
  opacity: 0;
  pointer-events: none;
}

.admin-dashboard .widget-layout-resize-handle {
  position: absolute;
  right: calc(-6px * var(--preview-inverse-scale, 1));
  bottom: calc(-6px * var(--preview-inverse-scale, 1));
  width: calc(18px * var(--preview-inverse-scale, 1));
  min-width: calc(18px * var(--preview-inverse-scale, 1));
  height: calc(18px * var(--preview-inverse-scale, 1));
  min-height: calc(18px * var(--preview-inverse-scale, 1));
  padding: 0;
  border: calc(2px * var(--preview-inverse-scale, 1)) solid #020617;
  border-radius: calc(6px * var(--preview-inverse-scale, 1));
  background: #38bdf8;
  cursor: nwse-resize;
}

.admin-dashboard .widget-goal-preview {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

.admin-dashboard .widget-goal-preview .goal-preview-meter {
  position: relative;
  min-height: 0;
  height: 100%;
  background: transparent !important;
  border: 0;
  box-sizing: border-box;
  overflow: visible;
}

.admin-dashboard .widget-goal-preview .goal-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  min-height: 0;
}

.admin-dashboard .widget-goal-preview .goal-meter-title {
  font-size: var(--layer-font-size);
}

.admin-dashboard .widget-goal-preview .goal-meter-label em {
  font-size: var(--layer-font-size);
}

.admin-dashboard .widget-goal-preview .goal-meter-label .goal-meter-percent {
  font-size: var(--layer-font-size);
}

.admin-dashboard .widget-goal-preview .goal-meter-range {
  font-size: var(--layer-font-size);
}

.admin-dashboard .widget-layout-alert-layer.selected {
  border-color: transparent;
  box-shadow: none;
}

.admin-dashboard .widget-layout-alert-layer.selected::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--alert-frame-top, 0px);
  bottom: 0;
  border: 1px solid #ef4444;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.42), 0 14px 30px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.admin-dashboard .widget-alert-preview {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--alert-bg, transparent);
  box-shadow: none;
  color: var(--alert-heading-color, #ffffff);
  opacity: 0.78;
  transform: none;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.72);
  text-align: center;
  overflow: visible;
}

.admin-dashboard .widget-alert-preview.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.admin-dashboard .widget-alert-preview .alert-animation {
  position: absolute;
  left: 50%;
  bottom: calc(50% + 0.9em);
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translateX(-50%);
  z-index: 1;
}

.admin-dashboard .widget-alert-preview .alert-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(8px, 8cqh, 18px) clamp(10px, 5cqw, 18px);
  z-index: 2;
}

.admin-dashboard .donation-alert-appearance-card .widget-alert-preview {
  min-height: 150px;
}

.admin-dashboard .widget-alert-preview .alert-heading {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--layer-font-size);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  color: var(--alert-heading-color, #ffffff);
}

.admin-dashboard .widget-alert-preview .alert-heading-accent {
  color: var(--alert-accent-color, var(--alert-heading-color, #ffffff));
}

.admin-dashboard .widget-alert-preview .alert-message {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
  font-size: calc(var(--layer-font-size) * 0.72);
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
  color: var(--alert-message-color, #ffffff);
}

.admin-dashboard .widget-layout-activity-wheel-layer .activity-wheel-preview {
  position: absolute;
  inset: 50%;
  width: min(100cqw, 100cqh);
  border-width: calc(var(--layer-font-size) * 0.22);
  transform: translate(-50%, -50%);
}

.admin-dashboard .widget-layout-activity-wheel-layer .activity-wheel-preview-center {
  width: calc(var(--layer-font-size) * 2.5);
  height: calc(var(--layer-font-size) * 2.5);
}

.admin-dashboard .widget-layout-activity-wheel-layer .activity-wheel-preview-label {
  max-width: 28cqw;
  font-size: var(--layer-font-size);
}

.admin-dashboard .widget-layout-activity-wheel-layer .activity-wheel-preview-center-pointer {
  width: calc(var(--layer-font-size) * 1.1);
  height: calc(var(--layer-font-size) * 3);
}

.admin-dashboard .widget-layout-raffle-layer {
  --raffle-visible-count: 10;
  overflow: hidden;
}

.admin-dashboard .widget-layout-raffle-layer .raffle-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.34em;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0.62em;
  border: 0.08em solid rgb(255 255 255 / 36%);
  border-radius: 0.36em;
  background: linear-gradient(145deg, rgb(15 23 42 / 88%), rgb(17 24 39 / 76%));
  color: #fff;
  font-size: var(--layer-font-size);
  line-height: 1.1;
  overflow: hidden;
}

.admin-dashboard .widget-layout-raffle-layer .raffle-preview-header {
  display: grid;
  place-items: center;
  min-width: 0;
  font-weight: 900;
  text-align: center;
}

.admin-dashboard .widget-layout-raffle-layer .raffle-preview-header span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .widget-layout-raffle-layer .raffle-preview-list-window {
  --raffle-entry-height: 1.74em;
  --raffle-entry-gap: 0.22em;
  min-height: 0;
  max-height: calc((var(--raffle-entry-height) * var(--raffle-visible-count)) + (var(--raffle-entry-gap) * (var(--raffle-visible-count) - 1)));
  overflow: hidden;
}

.admin-dashboard .widget-layout-raffle-layer .raffle-preview-list {
  display: grid;
  align-content: start;
  grid-auto-rows: var(--raffle-entry-height);
  gap: var(--raffle-entry-gap);
  min-height: 0;
}

.admin-dashboard .widget-layout-raffle-layer .raffle-preview-list.marquee {
  animation: raffle-preview-marquee-y 32s linear infinite;
}

.admin-dashboard .widget-layout-raffle-layer .raffle-preview-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.36em;
  height: var(--raffle-entry-height);
  box-sizing: border-box;
  min-width: 0;
  padding: 0.22em 0.36em;
  border-radius: 0.24em;
  background: rgb(255 255 255 / 12%);
}

.admin-dashboard .widget-layout-raffle-layer .raffle-preview-entry span {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .widget-layout-raffle-layer .raffle-preview-entry strong {
  color: #93c5fd;
  font-size: 0.82em;
  white-space: nowrap;
}

.admin-dashboard .widget-layout-raffle-layer .raffle-preview-entry em {
  color: #5eead4;
  font-size: 0.9em;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

@keyframes raffle-preview-marquee-y {
  to { transform: translateY(calc((50% + (var(--raffle-entry-gap) / 2)) * -1)); }
}

.admin-dashboard .widget-layer-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: rgba(10, 15, 23, 0.72);
}

.admin-dashboard .widget-layer-tabs.vertical {
  display: grid;
  grid-template-columns: 1fr;
  align-self: stretch;
  border: 0;
  border-top: 1px solid var(--ops-border);
  border-radius: 0;
  background: transparent;
}

.admin-dashboard .widget-layer-tabs button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 7px;
  background: transparent;
  color: #cbd5e1;
}

.admin-dashboard .widget-layer-tabs button.active {
  background: #1e3a5f;
  color: #f8fafc;
}

.admin-dashboard .widget-layout-adjustment-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.26);
}

.admin-dashboard .widget-layout-adjustment-row {
  display: grid;
  grid-template-columns: repeat(5, 44px);
  gap: 8px;
  align-items: center;
}

.admin-dashboard .widget-layout-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #111827;
  color: #bfdbfe;
  pointer-events: auto;
}

.admin-dashboard .widget-layout-icon-button:hover {
  border-color: #38bdf8;
  background: #14345c;
}

.admin-dashboard .widget-layout-icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-dashboard .widget-layout-align-controls [data-icon^="align-"][data-icon$="-arrow"] {
  width: 28px;
  height: 25px;
}

.admin-dashboard .widget-layout-scale-controls [data-icon^="scale-"] {
  width: 28px;
  height: 25px;
}

.admin-dashboard .widget-layout-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-dashboard .widget-layer-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-dashboard .widget-layer-settings-row .donation-toggle-row {
  min-width: 0;
}

.admin-dashboard .widget-layer-feature-settings-link {
  margin-left: auto;
  white-space: nowrap;
}

.admin-dashboard .widget-layout-color-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-dashboard .color-field-controls {
  display: grid;
  grid-template-columns: minmax(56px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-dashboard .color-picker-control {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--ops-border);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.88);
  color: #dbe4ef;
  font-size: 0.82rem;
  cursor: pointer;
  overflow: hidden;
}

.admin-dashboard .color-picker-control:hover {
  border-color: rgba(56, 189, 248, 0.42);
}

.admin-dashboard .color-picker-control input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-dashboard .color-preview-swatch {
  width: 22px;
  min-width: 22px;
  height: 22px;
  border: 1px solid rgba(226, 232, 240, 0.54);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.24);
}

.admin-dashboard .color-preview-swatch.is-transparent,
.admin-dashboard .transparent-preview-surface {
  background-color: #f8fafc !important;
  background-image:
    linear-gradient(45deg, #cbd5e1 25%, transparent 25% 75%, #cbd5e1 75%),
    linear-gradient(45deg, #cbd5e1 25%, transparent 25% 75%, #cbd5e1 75%) !important;
  background-position: 0 0, 6px 6px !important;
  background-size: 12px 12px !important;
}

.admin-dashboard .color-transparent-button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--ops-border);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.88);
  color: #cbd5e1;
  font-size: 0.82rem;
}

.admin-dashboard .color-transparent-button:hover {
  border-color: rgba(148, 163, 184, 0.42);
  color: #f8fafc;
}

.admin-dashboard .widget-layout-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.admin-dashboard .donation-alert-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-dashboard .donation-alert-left-column,
.admin-dashboard .donation-alert-right-column {
  display: grid;
  gap: 14px;
}

.admin-dashboard .field-help {
  margin: -2px 0 0;
  color: var(--ops-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .admin-dashboard .donation-workspace {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .donation-record-layer-card {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-dashboard .donation-url-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .donation-goal-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .donation-goal-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .widget-layout-url-grid,
  .admin-dashboard .donation-alert-settings-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 700px) {
  .admin-dashboard .settings-url-row,
  .admin-dashboard .settings-url-row.compact {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-dashboard .settings-url-row > span {
    grid-column: 1 / -1;
  }

  .admin-dashboard .opay-fields-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .widget-layout-color-fields {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .widget-layout-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .opay-provider-header {
    align-items: flex-start;
  }

  .admin-dashboard .opay-actions {
    justify-content: stretch;
  }

  .admin-dashboard .widget-layout-actions {
    justify-content: stretch;
  }
}

body {
  margin: 0;
}

a {
  color: #2563eb;
}

button,
.button {
  border: 0;
  border-radius: 6px;
  background: #111827;
  color: white;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

[hidden] {
  display: none !important;
}

input,
textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  font: inherit;
  box-sizing: border-box;
  width: 100%;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.topbar h1 {
  font-size: 20px;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.layout {
  display: grid;
  gap: 18px;
  padding: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

section,
.login-panel,
.donate-panel {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
}

section h2 {
  margin-top: 0;
}

.auth-page,
.donate-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.landing-page {
  --landing-bg: #080c13;
  --landing-surface: rgba(15, 23, 42, 0.76);
  --landing-surface-strong: rgba(15, 23, 42, 0.94);
  --landing-border: rgba(148, 163, 184, 0.2);
  --landing-border-strong: rgba(148, 163, 184, 0.32);
  --landing-text: #f8fafc;
  --landing-muted: #a7b4c7;
  --landing-dim: #718096;
  --landing-green: #22c55e;
  --landing-cyan: #38bdf8;
  --landing-amber: #fbbf24;
  --landing-red: #fb7185;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.18), transparent 30%),
    radial-gradient(circle at 82% 5%, rgba(34, 197, 94, 0.13), transparent 28%),
    linear-gradient(140deg, #080c13 0%, #0f172a 50%, #071611 100%);
  color: var(--landing-text);
}

.landing-page section {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.landing-page::before,
.landing-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.landing-page::before {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.13) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.landing-page::after {
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.08), transparent 34%, rgba(56, 189, 248, 0.08) 72%, transparent),
    linear-gradient(to bottom, transparent 0 58%, rgba(8, 12, 19, 0.74));
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 12, 19, 0.72);
  backdrop-filter: blur(18px);
}

.landing-brand,
.admin-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 900;
  text-decoration: none;
}

.landing-brand img,
.admin-login-brand img {
  border-radius: 10px;
}

.landing-brand img {
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18), 0 12px 32px rgba(34, 197, 94, 0.14);
}

.landing-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-nav-links a,
.landing-secondary-action {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 800;
}

.landing-nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
}

.landing-nav-login {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.landing-nav-links a:hover,
.landing-nav-links a:focus-visible,
.landing-secondary-action:hover,
.landing-secondary-action:focus-visible {
  color: #f8fafc;
}

.landing-hero,
.landing-section,
.landing-cta {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(52px, 7vw, 96px) 0 clamp(44px, 6vw, 78px);
}

.landing-hero-copy {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.landing-kicker {
  margin: 0;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-hero h1,
.landing-section h2,
.landing-cta h2 {
  margin: 0;
  color: #f8fafc;
  line-height: 1.05;
  letter-spacing: 0;
}

.landing-hero h1 {
  max-width: 780px;
  font-size: clamp(2.6rem, 5.15vw, 5.35rem);
  text-wrap: balance;
}

.landing-lede {
  max-width: 700px;
  margin: 0;
  color: var(--landing-muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.landing-primary-action,
.landing-secondary-action {
  flex: 0 0 auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.landing-primary-action {
  border: 1px solid rgba(74, 222, 128, 0.42);
  background: linear-gradient(180deg, #42e49f, #19b875);
  color: #052e26;
  box-shadow: 0 20px 42px rgba(34, 197, 94, 0.22);
}

.landing-primary-action:hover,
.landing-primary-action:focus-visible {
  background: linear-gradient(180deg, #62efb1, #20c981);
  color: #052e26;
}

.landing-secondary-action {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.055);
}

.landing-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.landing-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.56);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 800;
}

.landing-product-shot {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.12), transparent 38%),
    rgba(15, 23, 42, 0.8);
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.38);
}

.landing-product-shot::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.34), transparent 34%, rgba(34, 197, 94, 0.28));
  opacity: 0.42;
  pointer-events: none;
}

.landing-window-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.64);
}

.landing-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fb7185;
}

.landing-window-bar span:nth-child(2) {
  background: #fbbf24;
}

.landing-window-bar span:nth-child(3) {
  background: #34d399;
}

.landing-dashboard-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-width: 0;
  min-height: 430px;
}

.landing-preview-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px 18px;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.36);
}

.landing-preview-sidebar span {
  display: block;
  height: 34px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.18);
}

.landing-preview-sidebar .active {
  background: rgba(16, 185, 129, 0.8);
}

.landing-preview-main {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 26px;
}

.landing-preview-status {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(16, 185, 129, 0.12)),
    rgba(255, 255, 255, 0.04);
}

.landing-preview-status span {
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-preview-status strong {
  color: #f8fafc;
  font-size: 1.7rem;
}

.landing-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-preview-grid span {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-height: 98px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.16);
}

.landing-preview-grid strong {
  color: #f8fafc;
  font-size: 0.92rem;
}

.landing-preview-grid small {
  color: #b8c7d9;
  font-size: 0.72rem;
  font-weight: 800;
}

.landing-preview-grid span:nth-child(2) {
  background: rgba(45, 212, 191, 0.18);
}

.landing-preview-grid span:nth-child(3) {
  background: rgba(251, 113, 133, 0.16);
}

.landing-preview-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.landing-preview-panel span {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 800;
}

.landing-preview-panel span:nth-child(1) {
  width: 100%;
}

.landing-preview-panel span:nth-child(2) {
  width: 100%;
}

.landing-preview-panel span:nth-child(3) {
  width: 100%;
}

.landing-section {
  display: grid;
  gap: 32px;
  padding: 38px 0 78px;
}

.landing-section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.landing-section h2,
.landing-cta h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.landing-feature {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 228px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.05);
}

.landing-feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--landing-cyan), var(--landing-green));
  opacity: 0.62;
}

.landing-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(125, 211, 252, 0.12);
  color: #7dd3fc;
  font-weight: 900;
}

.landing-feature h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.18rem;
}

.landing-feature p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 64px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 18%, rgba(34, 197, 94, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(255, 255, 255, 0.055));
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #7c8da5;
}

.landing-footer p {
  margin: 0;
  color: #7c8da5;
  font-size: 12px;
  font-weight: 700;
}

.landing-footer .creator-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-footer .creator-social-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.66);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.landing-footer .creator-social-icon,
.landing-footer .creator-social-icon svg {
  width: 18px;
  height: 18px;
}

.landing-footer .creator-social-icon {
  display: inline-grid;
  place-items: center;
  color: #8fb7e6;
  transition: color 160ms ease;
}

.landing-footer .creator-social-icon svg {
  display: block;
}

.landing-footer .creator-social-link:hover,
.landing-footer .creator-social-link:focus-visible {
  background: rgba(15, 23, 42, 0.92);
  outline: none;
  transform: translateY(-1px);
}

.landing-footer .email-link:hover,
.landing-footer .email-link:focus-visible,
.landing-footer .twitch-link:hover,
.landing-footer .twitch-link:focus-visible,
.landing-footer .discord-link:hover,
.landing-footer .discord-link:focus-visible {
  border-color: rgba(147, 197, 253, 0.5);
}

.landing-footer .email-link:hover .creator-social-icon,
.landing-footer .email-link:focus-visible .creator-social-icon,
.landing-footer .twitch-link:hover .creator-social-icon,
.landing-footer .twitch-link:focus-visible .creator-social-icon,
.landing-footer .discord-link:hover .creator-social-icon,
.landing-footer .discord-link:focus-visible .creator-social-icon {
  color: #bfdbfe;
}

.admin-login-page {
  padding: 24px 16px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98) 58%, rgba(6, 20, 18, 0.98)),
    #0f172a;
  color: #e5edf7;
}

.admin-login-panel {
  display: grid;
  gap: 22px;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 32px));
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.88);
  color: #e5edf7;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.36);
}

.admin-login-heading {
  display: grid;
  gap: 6px;
}

.admin-login-heading p {
  margin: 0;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-login-heading h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.8rem;
}

.admin-login-panel label {
  color: #cbd5e1;
}

.admin-login-panel input {
  min-height: 44px;
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.58);
  color: #f8fafc;
}

.admin-login-panel input:focus {
  border-color: #38bdf8;
  outline: 3px solid rgba(56, 189, 248, 0.18);
}

.admin-login-submit {
  min-height: 46px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: #0f172a;
  color: #f8fafc;
}

.admin-login-submit:hover,
.admin-login-submit:focus-visible {
  background: #1e293b;
}

@media (max-width: 1080px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .landing-product-shot {
    order: -1;
  }

  .landing-dashboard-preview {
    min-height: 340px;
  }

  .landing-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-feature {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .landing-nav {
    position: static;
    align-items: flex-start;
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .landing-nav,
  .landing-cta {
    flex-direction: column;
  }

  .landing-nav-links,
  .landing-actions,
  .landing-primary-action,
  .landing-secondary-action {
    width: 100%;
  }

  .landing-primary-action,
  .landing-secondary-action {
    flex-basis: auto;
  }

  .landing-nav-links {
    justify-content: space-between;
  }

  .landing-hero,
  .landing-section,
  .landing-cta,
  .landing-footer {
    width: min(100% - 28px, 1180px);
  }

  .landing-hero {
    padding: 32px 0 52px;
  }

  .landing-hero h1 {
    font-size: 2.35rem;
  }

  .landing-lede {
    font-size: 1rem;
  }

  .landing-dashboard-preview {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 300px;
  }

  .landing-preview-sidebar {
    padding: 16px 12px;
  }

  .landing-preview-main {
    gap: 12px;
    padding: 16px;
  }

  .landing-preview-status {
    padding: 16px;
  }

  .landing-preview-status strong {
    font-size: 1.28rem;
  }

  .landing-preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-preview-grid span {
    min-height: 58px;
    padding: 10px 12px;
  }

  .landing-cta {
    align-items: stretch;
    padding: 20px;
  }
}

.login-panel,
.donate-panel {
  width: min(440px, calc(100vw - 32px));
}

.registration-closed-panel {
  display: grid;
  gap: 14px;
}

.auth-status-badge {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 760;
}

.login-panel form,
.donate-panel form,
.grid-form {
  display: grid;
  gap: 14px;
}

.donate-page {
  min-height: 100vh;
  place-items: start center;
  padding: 36px 16px;
  background: linear-gradient(135deg, #090f1a 0%, #101827 48%, #07120f 100%);
  color: #e6edf7;
}

.donate-shell {
  width: min(980px, 100%);
  display: grid;
  gap: 16px;
}

.donate-error-state .donate-hero,
.donate-error-state .donate-panel {
  display: none;
}

.donate-error-panel {
  width: min(560px, calc(100vw - 32px));
  min-height: 180px;
  justify-self: center;
  display: grid;
  place-items: center;
  padding: 32px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 22px 64px rgba(2, 6, 23, 0.35);
  text-align: center;
}

.donate-error-panel h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 30px;
  line-height: 1.35;
}

.donate-hero,
.donate-panel {
  border: 1px solid #253249;
  border-radius: 8px;
  background: #0d1422;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.donate-hero {
  position: relative;
  min-height: 244px;
  overflow: hidden;
  padding: 0;
  color: #f8fafc;
}

.donate-hero-art {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b1220 0%, #132033 56%, #06323c 100%);
}

.donate-hero-art span {
  position: absolute;
  inset-block: 0;
  display: block;
}

.donate-hero-art span:nth-child(1) {
  left: 0;
  width: 42%;
  clip-path: polygon(0 0, 84% 0, 100% 100%, 0 100%);
  background: rgba(56, 189, 248, 0.2);
}

.donate-hero-art span:nth-child(2) {
  left: 36%;
  width: 28%;
  clip-path: polygon(0 0, 100% 0, 76% 100%, 16% 100%);
  background: rgba(20, 184, 166, 0.18);
}

.donate-hero-art span:nth-child(3) {
  right: 0;
  width: 34%;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  background: rgba(148, 163, 184, 0.12);
}

.donate-hero-content {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 244px;
  padding: 28px 32px;
  text-align: center;
}

.donate-hero h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 72px;
  line-height: 1.02;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.donate-channel-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(760px, 100%);
  min-height: 54px;
  margin-top: 24px;
  padding: 11px 20px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 8px;
  background: rgba(8, 13, 23, 0.68);
  color: #ecfeff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.donate-channel-card span {
  color: #d1fae5;
}

.donate-channel-card img {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(125, 211, 252, 0.28);
  border-radius: 50%;
  background: #0f172a;
  object-fit: cover;
}

.donate-channel-card a {
  color: #ffffff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.donate-channel-card a:hover,
.donate-channel-card a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.donate-panel {
  width: auto;
  padding: 26px 32px 30px;
}

.donate-footer {
  display: flex;
  justify-content: center;
  min-height: 28px;
  color: #8da0b8;
  font-size: 12px;
  font-weight: 650;
}

.donate-footer p {
  margin: 0;
}

.donate-panel form {
  gap: 22px;
}

.donate-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 18px;
}

.donate-field {
  color: #e2e8f0;
  font-weight: 800;
}

.donate-field span {
  font-size: 16px;
}

.donate-field input,
.donate-field textarea {
  min-height: 54px;
  border: 1px solid #2b384d;
  border-radius: 8px;
  background: #070d17;
  color: #f8fafc;
  padding: 14px 16px;
  font-size: 16px;
}

.donate-field textarea {
  min-height: 170px;
  resize: vertical;
}

.donate-field input:focus,
.donate-field textarea:focus {
  border-color: #38bdf8;
  outline: 3px solid rgba(56, 189, 248, 0.18);
}

.donate-field small {
  min-height: 18px;
  color: #90a7c4;
  font-size: 13px;
  font-weight: 700;
}

.donate-submit-row {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.donate-submit-row p {
  margin: 2px 0 0;
  color: #f8fafc;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.donate-submit-row button {
  width: min(520px, 100%);
  min-height: 58px;
  border: 1px solid #5eead4;
  border-radius: 8px;
  background: #14b8a6;
  color: #03120d;
  font-size: 18px;
}

.donate-submit-row button:hover,
.donate-submit-row button:focus-visible {
  background: #2dd4bf;
  outline: none;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
}

.toggle-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.toggle-form label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-form input {
  width: auto;
}

.state-label {
  font-weight: 800;
}

.state-label.enabled {
  color: #047857;
}

.state-label.disabled {
  color: #b91c1c;
}

.template-list {
  display: grid;
  gap: 12px;
}

.template {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 10px;
  align-items: center;
}

.list p {
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
}

.status-panel {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.status-panel p {
  margin: 4px 0;
}

code {
  overflow-wrap: anywhere;
}

.error {
  color: #dc2626;
}

@media (max-width: 720px) {
  .template,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .donate-page {
    padding: 16px 10px;
  }

  .donate-hero,
  .donate-hero-content {
    min-height: 230px;
  }

  .donate-hero h1 {
    margin: 0;
    font-size: 42px;
  }

  .donate-channel-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
  }

  .donate-panel {
    padding: 20px 16px 22px;
  }

  .donate-form-grid {
    grid-template-columns: 1fr;
  }

  .donate-submit-row p {
    font-size: 22px;
  }
}

.admin-dashboard {
  min-height: 100vh;
  background: #0c111d;
  color: #e6edf7;
}

.admin-dashboard a {
  color: #7dd3fc;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  background: #080c16;
  border-right: 1px solid #1d2636;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #10b981;
  color: #03120d;
  font-weight: 900;
}

.profile-image {
  width: 44px;
  height: 44px;
  border: 2px solid #1fbc83;
  border-radius: 8px;
  object-fit: cover;
  background: #151f31;
}

.brand-block h1,
.dashboard-header h2,
.section-heading h3 {
  margin: 0;
  letter-spacing: 0;
}

.brand-block h1 {
  font-size: 19px;
}

.brand-block p,
.dashboard-header p,
.section-heading p,
.account-card p,
.donation-item p,
.obs-card p {
  margin: 4px 0 0;
  color: #94a3b8;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  padding: 11px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 750;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
  background: #121a29;
  color: #ffffff;
  outline: none;
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.dashboard-main {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 28px;
}

.dashboard-header,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-header {
  min-height: 56px;
}

.dashboard-header h2 {
  font-size: 28px;
}

.admin-dashboard .impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  background: rgba(14, 116, 144, 0.16);
  color: #dbeafe;
}

.admin-dashboard .impersonation-banner strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.eyebrow,
.meta-label {
  color: #8aa0bd;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel {
  background: #111827;
  border: 1px solid #243044;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.panel h3 {
  font-size: 20px;
}

.admin-dashboard button,
.admin-dashboard .button {
  border: 1px solid #2f3d53;
  border-radius: 8px;
  background: #10b981;
  color: #04130d;
  min-height: 42px;
  padding: 10px 14px;
}

.admin-dashboard button:hover,
.admin-dashboard .button:hover {
  background: #34d399;
}

.admin-dashboard .secondary,
.admin-dashboard .ghost {
  background: #151f31;
  color: #e2e8f0;
}

.admin-dashboard .ghost {
  text-align: center;
}

.login-button {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e8f0;
}

.admin-dashboard input,
.admin-dashboard textarea,
.admin-dashboard select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #2b384d;
  border-radius: 8px;
  background: #0d1422;
  color: #f8fafc;
  padding: 10px 12px;
  font: inherit;
  box-sizing: border-box;
}

.admin-dashboard textarea {
  min-height: 74px;
  resize: vertical;
}

.admin-dashboard input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.admin-dashboard input:focus,
.admin-dashboard textarea:focus,
.admin-dashboard select:focus {
  border-color: #38bdf8;
  outline: 3px solid rgba(56, 189, 248, 0.16);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-grid,
.split-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.status-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
}

.split-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.status-panel,
.control-panel,
.account-card,
.obs-card,
.donation-item {
  background: #0d1422;
  border: 1px solid #253249;
  border-radius: 8px;
}

.status-panel {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
}

.status-panel div {
  display: grid;
  gap: 6px;
}

.status-panel code {
  color: #bfdbfe;
}

.control-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 16px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
}

.switch-row input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.switch-ui {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #334155;
  transition: background 160ms ease;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #f8fafc;
  transition: transform 160ms ease;
}

.switch-row input:checked + .switch-ui {
  background: #10b981;
}

.switch-row input:checked + .switch-ui::after {
  transform: translateX(20px);
}

.state-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.state-label.enabled {
  background: rgba(16, 185, 129, 0.14);
  color: #86efac;
}

.state-label.disabled {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.account-card {
  padding: 14px;
}

.account-card strong {
  display: block;
  margin-top: 5px;
}

.template-list {
  margin-top: 18px;
}

.template {
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px;
  background: #0d1422;
  border: 1px solid #253249;
  border-radius: 8px;
}

.template label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: #dbeafe;
}

.template input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-form {
  margin-top: 0;
}

.compact-form button,
.fake-event-form button {
  grid-column: 1 / -1;
}

.inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 18px;
}

.fake-event-form {
  margin-top: 14px;
}

.obs-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
}

.goal-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #1e293b;
}

.goal-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #38bdf8;
}

.donation-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.donation-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.donation-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.donation-badge {
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.donation-meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 4px;
  white-space: nowrap;
}

.donation-meta span {
  color: #94a3b8;
  font-size: 12px;
}

.text-good {
  color: #86efac;
}

.text-danger {
  color: #fca5a5;
}

.empty-state {
  color: #94a3b8;
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .sidebar-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .sidebar-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .dashboard-main {
    padding: 18px;
  }

  .status-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-header,
  .section-heading,
  .donation-item {
    align-items: stretch;
    flex-direction: column;
  }

  .account-grid,
  .template,
  .grid-form,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .donation-meta {
    justify-items: start;
  }
}

/* Polished dashboard workspace */
.admin-dashboard {
  background:
    linear-gradient(180deg, rgba(20, 26, 38, 0.96), rgba(11, 16, 25, 0.98)),
    #0b1019;
  color: #edf2f7;
}

.admin-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  gap: 22px;
  padding: 20px 16px;
  background: #080d15;
  border-right-color: rgba(148, 163, 184, 0.16);
}

.brand-block {
  min-height: 56px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.brand-block h1 {
  font-size: 18px;
  font-weight: 820;
}

.brand-block p {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-image {
  width: 42px;
  height: 42px;
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.09);
}

.sidebar-nav {
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #aebbd0;
  padding: 0 12px;
  font: inherit;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: rgba(148, 163, 184, 0.08);
  color: #ffffff;
  outline: none;
}

.nav-item.active {
  background: rgba(14, 165, 233, 0.13);
  border-color: rgba(56, 189, 248, 0.22);
  color: #e0f2fe;
}

.sidebar-footer {
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-dashboard .dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding: 18px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #7c8da5;
}

.admin-dashboard .dashboard-footer p {
  margin: 0;
  color: #7c8da5;
  font-size: 12px;
  font-weight: 700;
}

.admin-dashboard .creator-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-dashboard .creator-social-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.66);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-dashboard .creator-social-icon,
.admin-dashboard .creator-social-icon svg {
  width: 18px;
  height: 18px;
}

.admin-dashboard .creator-social-icon {
  display: inline-grid;
  place-items: center;
  color: #8fb7e6;
  transition: color 160ms ease;
}

.admin-dashboard .creator-social-icon svg {
  display: block;
}

.admin-dashboard .creator-social-icon svg[stroke],
.admin-dashboard .creator-social-icon svg [stroke] {
  stroke: currentColor;
}

.admin-dashboard .creator-social-icon svg[fill]:not([fill="none"]),
.admin-dashboard .creator-social-icon svg [fill]:not([fill="none"]) {
  fill: currentColor;
}

.admin-dashboard .creator-social-link:hover,
.admin-dashboard .creator-social-link:focus-visible {
  background: rgba(15, 23, 42, 0.92);
  outline: none;
  transform: translateY(-1px);
}

.admin-dashboard .email-link:hover,
.admin-dashboard .email-link:focus-visible,
.admin-dashboard .twitch-link:hover,
.admin-dashboard .twitch-link:focus-visible {
  border-color: rgba(147, 197, 253, 0.5);
}

.admin-dashboard .email-link:hover .creator-social-icon,
.admin-dashboard .email-link:focus-visible .creator-social-icon,
.admin-dashboard .twitch-link:hover .creator-social-icon,
.admin-dashboard .twitch-link:focus-visible .creator-social-icon {
  color: #bfdbfe;
}

.admin-dashboard .discord-link:hover,
.admin-dashboard .discord-link:focus-visible {
  border-color: rgba(147, 197, 253, 0.5);
}

.admin-dashboard .discord-link:hover .creator-social-icon,
.admin-dashboard .discord-link:focus-visible .creator-social-icon {
  color: #bfdbfe;
}

.dashboard-main {
  gap: 16px;
  padding: 24px 28px 36px;
}

.dashboard-header {
  min-height: 54px;
  padding-bottom: 2px;
}

.dashboard-header h2 {
  font-size: 28px;
  line-height: 1.2;
}

.eyebrow,
.meta-label {
  color: #8da0b8;
  font-size: 11px;
  letter-spacing: 0;
}

.dashboard-alert {
  position: sticky;
  top: 16px;
  z-index: 4;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 8px;
  background: rgba(6, 78, 59, 0.94);
  color: #dcfce7;
  padding: 12px 14px;
  font-weight: 750;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.dashboard-alert.error {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.94);
  color: #fee2e2;
}

.view-panel[hidden] {
  display: none !important;
}

.panel {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.17);
  box-shadow: none;
}

.view-panel.active {
  display: block;
}

.section-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.section-heading h3 {
  font-size: 21px;
  line-height: 1.25;
}

.admin-dashboard button,
.admin-dashboard .button {
  border-color: rgba(148, 163, 184, 0.2);
  background: #16a34a;
  color: #f8fafc;
  font-weight: 800;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.admin-dashboard button:hover,
.admin-dashboard .button:hover {
  background: #22c55e;
}

.admin-dashboard button:active,
.admin-dashboard .button:active {
  transform: translateY(1px);
}

.admin-dashboard button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.admin-dashboard .nav-item {
  border-color: transparent;
  background: transparent;
  color: #aebbd0;
  min-height: 42px;
}

.admin-dashboard .nav-item:hover,
.admin-dashboard .nav-item:focus-visible {
  background: rgba(148, 163, 184, 0.08);
  color: #ffffff;
}

.admin-dashboard .nav-item.active {
  background: rgba(14, 165, 233, 0.13);
  border-color: rgba(56, 189, 248, 0.22);
  color: #e0f2fe;
}

.admin-dashboard .secondary,
.admin-dashboard .ghost {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(51, 65, 85, 0.72);
  color: #e6edf7;
}

.admin-dashboard .secondary:hover,
.admin-dashboard .ghost:hover {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(71, 85, 105, 0.86);
}

.status-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.status-panel,
.control-panel,
.account-card,
.obs-card,
.donation-item,
.template {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.16);
}

.status-panel,
.control-panel {
  min-height: 126px;
}

.account-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.account-card {
  min-height: 74px;
}

.template-list {
  gap: 10px;
}

.template {
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr) auto;
  padding: 12px;
}

.template textarea {
  min-height: 66px;
}

.grid-form {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.fake-event-form {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.fake-event-form input[name="message"] {
  grid-column: span 2;
}

.inline-form {
  max-width: 860px;
}

.obs-card a {
  color: #93c5fd;
  word-break: break-all;
}

.goal-meter {
  background: #263244;
}

.goal-meter span {
  background: linear-gradient(90deg, #38bdf8, #22c55e);
}

.donation-item {
  align-items: center;
}

.text-good {
  color: #7ee7a7;
}

.text-danger {
  color: #fda4af;
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    height: auto;
    gap: 12px;
    padding: 14px;
  }

  .brand-block {
    padding: 0 4px 12px;
  }

  .sidebar-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-item {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .sidebar-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-main {
    padding: 18px;
  }

  .status-grid,
  .split-grid,
  .fake-event-form {
    grid-template-columns: 1fr;
  }

  .fake-event-form input[name="message"] {
    grid-column: auto;
  }
}

/* Broadcast ops console refinement */
.admin-dashboard {
  --ops-bg: #090b10;
  --ops-surface: #121722;
  --ops-surface-2: #171e2b;
  --ops-panel: #0f141e;
  --ops-border: rgba(180, 192, 208, 0.14);
  --ops-border-strong: rgba(180, 192, 208, 0.22);
  --ops-text: #eef3f8;
  --ops-muted: #93a1b3;
  --ops-dim: #66758a;
  --ops-green: #2fd08f;
  --ops-cyan: #58c7f3;
  --ops-amber: #f5bc52;
  --ops-red: #ff7a8a;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(47, 208, 143, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(88, 199, 243, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(145deg, #0a0c12 0%, #111721 46%, #0b0f17 100%);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--ops-text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
}

.admin-shell {
  grid-template-columns: 276px minmax(0, 1fr);
}

.sidebar {
  gap: 18px;
  padding: 18px 14px;
  background: rgba(8, 11, 17, 0.94);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--ops-border);
}

.brand-block {
  min-height: 58px;
  padding: 8px 10px 18px;
}

.brand-block h1 {
  font-size: 18px;
  font-weight: 850;
}

.brand-block p {
  color: var(--ops-muted);
  font-size: 13px;
}

.profile-image {
  border-radius: 10px;
  border-color: var(--ops-green);
  box-shadow: 0 0 0 4px rgba(47, 208, 143, 0.1);
}

.sidebar-nav {
  gap: 7px;
}

.admin-dashboard .nav-item {
  position: relative;
  min-height: 46px;
  gap: 11px;
  border-radius: 8px;
  padding: 0 12px;
  color: #b8c4d4;
  font-size: 14px;
}

.admin-dashboard .nav-item::before {
  content: attr(data-icon);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ops-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ops-cyan);
  font-size: 11px;
  font-weight: 900;
}

.admin-dashboard .nav-item.active {
  background: rgba(47, 208, 143, 0.12);
  border-color: rgba(47, 208, 143, 0.26);
  color: #f3fff9;
}

.admin-dashboard .nav-item.active::before {
  border-color: rgba(47, 208, 143, 0.38);
  background: rgba(47, 208, 143, 0.18);
  color: #b8f7dc;
}

.sidebar-footer {
  padding-top: 16px;
}

.dashboard-main {
  max-width: 1520px;
  width: 100%;
  box-sizing: border-box;
  gap: 18px;
  padding: 28px 34px 44px;
}

.dashboard-header {
  min-height: 74px;
  align-items: flex-start;
}

.dashboard-header h2 {
  margin-top: 4px;
  font-size: 31px;
  font-weight: 880;
}

.view-description {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ops-muted);
  line-height: 1.6;
}

.eyebrow,
.meta-label {
  color: var(--ops-amber);
  font-size: 11px;
  font-weight: 850;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  position: relative;
  min-height: 94px;
  overflow: hidden;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 30, 43, 0.94), rgba(13, 18, 27, 0.94));
  padding: 15px;
  box-sizing: border-box;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ops-green), var(--ops-cyan), var(--ops-amber));
  opacity: 0.74;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ops-text);
  font-size: 20px;
}

.metric-card p {
  margin: 5px 0 0;
  color: var(--ops-muted);
  font-size: 13px;
}

.panel {
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: rgba(15, 20, 30, 0.93);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.view-panel.active {
  animation: panel-in 180ms ease-out both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-heading {
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ops-border);
}

.section-heading h3 {
  font-size: 22px;
  font-weight: 850;
}

.actions {
  justify-content: flex-end;
}

.admin-dashboard button,
.admin-dashboard .button {
  border: 1px solid rgba(47, 208, 143, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, #35d899, #1fb879);
  color: #06110c;
  min-height: 42px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(47, 208, 143, 0.13);
}

.admin-dashboard .secondary,
.admin-dashboard .ghost {
  border-color: var(--ops-border-strong);
  background: #182130;
  color: #e9f0f7;
  box-shadow: none;
}

.admin-dashboard .secondary:hover,
.admin-dashboard .ghost:hover {
  border-color: rgba(88, 199, 243, 0.34);
  background: #202b3c;
}

.status-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.status-panel,
.control-panel,
.account-card,
.obs-card,
.donation-item,
.template {
  border: 1px solid var(--ops-border);
  background: rgba(10, 15, 23, 0.82);
}

.status-panel,
.control-panel {
  min-height: 142px;
}

.status-panel code {
  display: block;
  color: #bfe9ff;
  font-size: 13px;
}

.switch-ui {
  background: #3a4658;
}

.switch-row input:checked + .switch-ui {
  background: var(--ops-green);
}

.state-label {
  border: 1px solid currentColor;
  font-size: 13px;
}

.state-label.enabled {
  color: #9af4cf;
  background: rgba(47, 208, 143, 0.13);
}

.state-label.disabled {
  color: #ffb0ba;
  background: rgba(255, 122, 138, 0.13);
}

.account-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.account-card {
  padding: 16px;
}

.account-card strong {
  font-size: 18px;
}

.template-list {
  gap: 12px;
}

.template {
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr) auto;
  padding: 14px;
}

.template-title {
  display: grid;
  gap: 6px;
}

.template-title span {
  color: var(--ops-dim);
  font-size: 12px;
  font-weight: 750;
}

.template label,
.field-label {
  display: grid;
  gap: 7px;
  color: #dbe5f1;
  font-size: 13px;
  font-weight: 800;
}

.template label {
  display: flex;
}

.field-label span {
  color: var(--ops-muted);
}

.field-span {
  grid-column: 1 / -1;
}

.admin-dashboard input,
.admin-dashboard textarea,
.admin-dashboard select {
  border: 1px solid rgba(180, 192, 208, 0.16);
  background: #0a0f17;
  color: var(--ops-text);
}

.admin-dashboard input:focus,
.admin-dashboard textarea:focus,
.admin-dashboard select:focus {
  border-color: rgba(88, 199, 243, 0.72);
  outline: 3px solid rgba(88, 199, 243, 0.14);
}

.grid-form {
  grid-template-columns: repeat(2, minmax(190px, 1fr));
}

.fake-event-form {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.fake-event-form button,
.compact-form button {
  justify-self: start;
  min-width: 160px;
}

.inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.obs-card {
  padding: 16px;
}

.goal-meter {
  height: 12px;
  border: 1px solid rgba(180, 192, 208, 0.12);
  background: #202a3a;
}

.goal-meter span {
  background: linear-gradient(90deg, var(--ops-cyan), var(--ops-green));
}

.donation-item {
  min-height: 64px;
}

.text-good {
  color: #9af4cf;
}

.text-danger {
  color: #ffb0ba;
}

@media (max-width: 1180px) {
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fake-event-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .dashboard-main {
    padding: 20px;
  }

  .dashboard-header {
    flex-direction: column;
  }

  .status-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .dashboard-main {
    padding: 16px;
  }

  .metric-strip,
  .template,
  .grid-form,
  .fake-event-form,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .actions,
  .admin-dashboard .button,
  .admin-dashboard button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .admin-dashboard .nav-item {
    width: auto;
  }

  .fake-event-form button,
  .compact-form button {
    justify-self: stretch;
  }
}

/* Clean admin system: calm, consistent, minimal */
.admin-dashboard {
  --ops-bg: #0b0f16;
  --ops-surface: #111827;
  --ops-surface-2: #151d2a;
  --ops-panel: #101722;
  --ops-border: rgba(148, 163, 184, 0.18);
  --ops-border-strong: rgba(148, 163, 184, 0.28);
  --ops-text: #edf2f7;
  --ops-muted: #9aa8ba;
  --ops-dim: #6f7e91;
  --ops-green: #22c55e;
  --ops-cyan: #38bdf8;
  --ops-amber: #cbd5e1;
  --ops-red: #fb7185;
  background: var(--ops-bg);
  background-image: none;
  color: var(--ops-text);
}

.admin-shell {
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  gap: 18px;
  padding: 18px 14px;
  background: #080c13;
  backdrop-filter: none;
  border-right: 1px solid var(--ops-border);
}

.brand-block {
  padding: 6px 8px 16px;
}

.profile-image {
  border-radius: 8px;
  border-color: #334155;
  box-shadow: none;
}

.brand-block h1 {
  font-size: 18px;
  font-weight: 760;
}

.brand-block p {
  color: var(--ops-muted);
}

.admin-dashboard .nav-item {
  min-height: 42px;
  gap: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 12px;
  background: transparent;
  color: #b6c2d1;
  font-size: 14px;
  font-weight: 700;
}

.admin-dashboard .nav-item::before {
  content: none;
}

.admin-dashboard .nav-item:hover,
.admin-dashboard .nav-item:focus-visible {
  background: rgba(148, 163, 184, 0.08);
  color: #f8fafc;
}

.admin-dashboard .nav-item.active {
  background: #172033;
  border-color: var(--ops-border);
  color: #f8fafc;
}

.dashboard-main {
  max-width: 1380px;
  gap: 16px;
  padding: 26px 30px 40px;
}

.dashboard-header {
  min-height: auto;
  align-items: flex-start;
}

.dashboard-header h2 {
  margin-top: 3px;
  font-size: 28px;
  font-weight: 760;
}

.view-description {
  max-width: 720px;
  margin-top: 6px;
  color: var(--ops-muted);
  line-height: 1.55;
}

.eyebrow,
.meta-label {
  color: var(--ops-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.metric-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  min-height: 86px;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: var(--ops-surface);
  padding: 14px;
  box-shadow: none;
}

.metric-card::after {
  content: none;
}

.metric-card strong {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 760;
}

.metric-card p {
  color: var(--ops-muted);
}

.panel {
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: var(--ops-surface);
  box-shadow: none;
}

.view-panel.active {
  animation: none;
}

.section-heading {
  align-items: flex-start;
  border-bottom-color: var(--ops-border);
}

.section-heading h3 {
  font-size: 20px;
  font-weight: 760;
}

.admin-dashboard button,
.admin-dashboard .button {
  border: 1px solid var(--ops-border-strong);
  border-radius: 7px;
  background: #1f2937;
  color: #f8fafc;
  min-height: 40px;
  font-weight: 740;
  box-shadow: none;
  transition: background 120ms ease, border-color 120ms ease;
}

.admin-dashboard button:hover,
.admin-dashboard .button:hover {
  background: #263244;
  border-color: rgba(148, 163, 184, 0.38);
}

.admin-dashboard button:active,
.admin-dashboard .button:active {
  transform: none;
}

.admin-dashboard .secondary,
.admin-dashboard .ghost {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(51, 65, 85, 0.72);
  color: #dbe4ef;
}

.admin-dashboard .secondary:hover,
.admin-dashboard .ghost:hover {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(71, 85, 105, 0.86);
}

.status-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.status-panel,
.control-panel,
.account-card,
.obs-card,
.donation-item,
.template {
  border: 1px solid var(--ops-border);
  background: #0d1420;
  box-shadow: none;
}

.status-panel,
.control-panel {
  min-height: 128px;
}

.switch-row {
  gap: 10px;
  color: #dbe4ef;
}

.switch-ui {
  width: 46px;
  height: 26px;
  background: #334155;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.switch-ui::after {
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
}

.switch-row input:checked + .switch-ui {
  background: var(--ops-green);
  border-color: var(--ops-green);
}

.switch-row input:checked + .switch-ui::after {
  transform: translateX(20px);
}

.state-label {
  border: 1px solid var(--ops-border);
  border-radius: 999px;
  background: #111827;
  font-size: 13px;
}

.state-label.enabled {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
}

.state-label.disabled {
  color: #fda4af;
  background: rgba(251, 113, 133, 0.12);
}

.template {
  grid-template-columns: minmax(150px, 0.24fr) 112px minmax(0, 1fr) auto;
  align-items: center;
  padding: 14px;
}

.template-title {
  gap: 4px;
}

.template-title strong {
  color: #eef4fb;
  font-size: 14px;
}

.template-title span {
  color: var(--ops-muted);
  font-size: 12px;
}

.template-switch {
  min-height: 40px;
  align-content: center;
}

.template textarea {
  min-height: 62px;
}

.admin-dashboard input,
.admin-dashboard textarea,
.admin-dashboard select {
  border-color: var(--ops-border);
  border-radius: 7px;
  background: #090f19;
  color: var(--ops-text);
}

.admin-dashboard input:focus,
.admin-dashboard textarea:focus,
.admin-dashboard select:focus {
  border-color: rgba(56, 189, 248, 0.7);
  outline: 2px solid rgba(56, 189, 248, 0.14);
}

.goal-meter span {
  background: var(--ops-green);
}

.dashboard-alert {
  border-radius: 8px;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template {
    grid-template-columns: minmax(150px, 0.28fr) 110px minmax(0, 1fr);
  }

  .template button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .template {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .template-switch {
    justify-content: flex-start;
  }
}

/* Focused Twitch home controls */
.admin-dashboard .brand-block {
  position: relative;
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
}

.admin-dashboard .brand-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.admin-dashboard .bot-presence-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.1);
}

.admin-dashboard .bot-presence-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.admin-dashboard .bot-presence-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.13);
}

.admin-dashboard .profile-identity {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.admin-dashboard .profile-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: default;
}

.admin-dashboard .profile-image {
  border-radius: 999px;
}

.admin-dashboard .profile-fallback {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 999px;
  background: #111827;
  color: #e6edf7;
  font-weight: 780;
}

.admin-dashboard .toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.admin-dashboard .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;
}

.admin-dashboard .dashboard-alert {
  position: static;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 8px;
  background: #102016;
  color: #dffbea;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: auto;
}

.admin-dashboard .dashboard-alert.error {
  border-color: rgba(251, 113, 133, 0.34);
  background: #2a1219;
  color: #ffe4e9;
}

.admin-dashboard .dashboard-alert.leaving {
  opacity: 0;
  transform: translateY(8px);
}

.admin-dashboard #twitch .section-heading {
  align-items: center;
}

.admin-dashboard #twitch .actions {
  align-items: center;
}

.admin-dashboard .reauth-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(56, 189, 248, 0.08);
  color: #d8efff;
}

.admin-dashboard .reauth-button::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 999px;
}

.admin-dashboard .reauth-button:hover {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(56, 189, 248, 0.13);
}

.admin-dashboard #twitch .status-grid {
  display: none;
}

.admin-dashboard #twitch-status[hidden] {
  display: none !important;
}

.admin-dashboard #twitch-status:not([hidden]) {
  margin-top: 16px;
}

.admin-dashboard .home-panel {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.admin-dashboard .profile-overview-grid {
  display: grid;
  gap: 10px;
}

.admin-dashboard .profile-account-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px 18px;
  background: #0d1420;
}

.admin-dashboard .profile-account-card strong {
  display: block;
  margin: 0 0 4px;
  color: #f1f5f9;
  font-size: 20px;
  line-height: 1.2;
}

.admin-dashboard .profile-account-card a {
  color: #9fb7d3;
  font-size: 14px;
  text-decoration: none;
  word-break: break-all;
}

.admin-dashboard .profile-account-card a:hover {
  color: #dbeafe;
}

.admin-dashboard .profile-account-main {
  min-width: 0;
}

.admin-dashboard .profile-account-notices {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.admin-dashboard .profile-action-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  margin-top: 0;
}

.admin-dashboard .profile-action-card {
  min-height: 58px;
  padding: 12px 14px;
  background: #0d1420;
}

.admin-dashboard .profile-auth-card {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.admin-dashboard .profile-auth-card .actions {
  justify-content: flex-end;
  gap: 0;
}

.admin-dashboard .profile-auth-card .button {
  min-width: 142px;
  justify-content: center;
  min-height: 38px;
  padding-inline: 14px;
}

.admin-dashboard .home-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.admin-dashboard #bot-toggle {
  min-height: auto;
  align-content: center;
  padding: 18px;
}

.admin-dashboard .home-control-card {
  min-height: 116px;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
}

.admin-dashboard .control-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.admin-dashboard .control-card-header strong {
  color: #eef4fb;
  font-size: 16px;
  font-weight: 760;
}

.admin-dashboard #bot-toggle .switch-row {
  justify-content: flex-start;
  width: 100%;
}

.admin-dashboard #bot-toggle .switch-row > span:last-child {
  font-weight: 760;
}

.admin-dashboard .bot-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #9fb0c3;
  font-size: 13px;
}

.admin-dashboard .bot-status-row small {
  color: #8da0b7;
  font-size: 13px;
}

.admin-dashboard .bot-mod-hint {
  margin: -6px 0 0;
  color: #a7b7ca;
  font-size: 13px;
  line-height: 1.55;
}

.admin-dashboard #accounts {
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
}

.admin-dashboard .broadcaster-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px;
}

.admin-dashboard .broadcaster-card strong {
  margin-top: 0;
  font-size: 22px;
  font-weight: 760;
}

.admin-dashboard .broadcaster-card a {
  display: inline-block;
  margin-top: 0;
  font-size: 15px;
  color: #9bd6ff;
  word-break: break-all;
}

.admin-dashboard .broadcaster-card .account-warning {
  margin: 4px 0 0;
  color: #f6c56b;
  font-size: 13px;
  line-height: 1.5;
}

.admin-dashboard #twitch .home-panel .profile-account-card {
  padding: 16px 18px;
}

.admin-dashboard #twitch .home-panel .profile-account-card strong {
  font-size: 20px;
}

.admin-dashboard #twitch .home-panel .profile-action-card,
.admin-dashboard #twitch .home-panel #bot-toggle {
  min-height: 58px;
  padding: 12px 14px;
}

.admin-dashboard #twitch .home-panel #bot-toggle .switch-row {
  gap: 12px;
}

.admin-dashboard #twitch .state-label {
  padding: 6px 10px;
}

@media (max-width: 720px) {
  .admin-dashboard .toast-stack {
    right: 16px;
    bottom: 16px;
  }

  .admin-dashboard #twitch .section-heading {
    align-items: stretch;
  }

  .admin-dashboard #accounts,
  .admin-dashboard #twitch .status-grid,
  .admin-dashboard .home-control-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact template and OPay settings */
.admin-dashboard .template-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-dashboard .template-form > button {
  justify-self: start;
  min-width: 150px;
}

.admin-dashboard .template-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.admin-dashboard .template-form-actions.donation-actions {
  justify-content: flex-start;
}

.admin-dashboard .template-form-actions.donation-actions.widget-layout-actions {
  justify-content: flex-start;
}

.admin-dashboard .template-form-actions.redemption-message-actions {
  justify-content: space-between;
}

.admin-dashboard .redemption-message-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.admin-dashboard .template-form-actions.redemption-message-actions .icon-button {
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
}

.admin-dashboard .template-form-actions.redemption-message-actions .redemption-message-primary-actions button {
  width: auto;
}

.admin-dashboard .activity-wheel-page {
  display: grid;
  gap: 14px;
}

.admin-dashboard .raffle-page {
  display: grid;
  gap: 14px;
}

.admin-dashboard .video-queue-page {
  display: grid;
  gap: 14px;
}

.admin-dashboard .module-settings-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-dashboard .module-settings-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.admin-dashboard .module-back-link,
.admin-dashboard .module-layer-settings-link,
.admin-dashboard .module-event-actions-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(51, 65, 85, 0.72);
  color: #dbe4ef;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-dashboard .module-back-link:hover,
.admin-dashboard .module-back-link:focus-visible,
.admin-dashboard .module-layer-settings-link:hover,
.admin-dashboard .module-layer-settings-link:focus-visible,
.admin-dashboard .module-event-actions-link:hover,
.admin-dashboard .module-event-actions-link:focus-visible {
  border-color: rgba(125, 211, 252, 0.58);
  background: #263244;
  color: var(--text);
  outline: none;
}

.admin-dashboard .module-back-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-dashboard .module-event-actions-link {
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-dashboard .module-layer-settings-link.disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-dashboard .activity-wheel-prize-header,
.admin-dashboard .activity-wheel-copy-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-dashboard .activity-wheel-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .activity-wheel-link-grid {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .activity-wheel-copy-row input {
  flex: 1;
  min-width: 0;
}

.admin-dashboard .activity-wheel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0;
}

.admin-dashboard .activity-wheel-settings-column,
.admin-dashboard .activity-wheel-preview-column {
  display: grid;
  gap: 14px;
}

.admin-dashboard .raffle-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .raffle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0;
}

.admin-dashboard .raffle-settings-column,
.admin-dashboard .raffle-preview-column,
.admin-dashboard .raffle-form-card {
  display: grid;
  gap: 14px;
}

.admin-dashboard .raffle-enable-toggle {
  font-weight: 780;
}

.admin-dashboard .raffle-number-grid,
.admin-dashboard .raffle-test-grid,
.admin-dashboard .raffle-remove-grid,
.admin-dashboard .raffle-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-dashboard .raffle-action-card {
  display: grid;
  gap: 12px;
}

.admin-dashboard .raffle-test-grid,
.admin-dashboard .raffle-remove-grid {
  align-items: end;
}

.admin-dashboard .raffle-remove-grid {
  grid-template-columns: minmax(0, 2fr) minmax(96px, 1fr);
}

.admin-dashboard .raffle-test-grid .button,
.admin-dashboard .raffle-remove-grid .button {
  align-self: end;
  justify-self: stretch;
  min-height: 40px;
  min-width: 96px;
  padding-block: 8px;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-dashboard .raffle-stats-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
}

.admin-dashboard .raffle-stats-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-dashboard .raffle-stats-grid strong {
  color: var(--text);
  font-size: 1.55rem;
}

.admin-dashboard .raffle-entry-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-dashboard .raffle-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-dashboard .raffle-entry-row span {
  color: #a7f3d0;
  font-weight: 900;
}

.admin-dashboard .raffle-form-actions button {
  min-width: 116px;
}

.admin-dashboard .module-result-history-card {
  display: grid;
  gap: 12px;
}

.admin-dashboard .module-result-history-header,
.admin-dashboard .module-result-history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-dashboard .module-result-history-header strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.admin-dashboard .module-result-history-header span,
.admin-dashboard .module-result-history-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-dashboard .module-result-history-table-wrap {
  overflow-x: auto;
}

.admin-dashboard .module-result-history-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  color: var(--text);
  table-layout: fixed;
}

.admin-dashboard .module-result-history-table th,
.admin-dashboard .module-result-history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
  vertical-align: middle;
}

.admin-dashboard .module-result-history-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-dashboard .module-result-history-table td:last-child,
.admin-dashboard .module-result-history-table th:last-child {
  width: 84px;
  text-align: right;
  white-space: nowrap;
}

.admin-dashboard .module-result-history-table .button {
  min-width: 72px;
  padding: 7px 10px;
}

.admin-dashboard .module-result-history-pagination button {
  min-width: 88px;
}

.admin-dashboard .activity-wheel-form {
  display: grid;
  gap: 16px;
}

.admin-dashboard .command-page {
  display: grid;
  gap: 14px;
}

.admin-dashboard .command-custom-shell {
  display: grid;
  gap: 14px;
}

.admin-dashboard .command-custom-form {
  display: grid;
  gap: 12px;
}

.admin-dashboard .command-custom-top-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.admin-dashboard .command-custom-count {
  grid-column: 2;
  justify-self: center;
  color: #a7c7dd;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-dashboard .command-custom-action-buttons {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-self: end;
}

.admin-dashboard .command-built-in-row .template-summary,
.admin-dashboard .command-custom-row .template-summary {
  grid-template-columns: auto minmax(130px, 0.22fr) minmax(0, 1fr) auto auto 18px;
}

.admin-dashboard .command-built-in-row .template-summary::after,
.admin-dashboard .command-custom-row .template-summary::after {
  grid-column: 6;
}

.admin-dashboard .command-custom-create-row .template-summary {
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr) auto 18px;
}

.admin-dashboard .command-custom-create-row .template-summary::after {
  grid-column: 4;
}

.admin-dashboard .command-custom-create-row .template-summary .template-title {
  grid-column: 1;
}

.admin-dashboard .command-custom-create-row .template-summary .template-message-preview {
  grid-column: 2;
}

.admin-dashboard .command-custom-create-row .command-custom-inline-actions {
  grid-column: 3;
}

.admin-dashboard .command-custom-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.admin-dashboard .command-custom-primary-column,
.admin-dashboard .command-built-in-options-column,
.admin-dashboard .command-custom-options-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-dashboard .command-custom-primary-column > .field-label,
.admin-dashboard .command-response-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.admin-dashboard .command-response-field {
  grid-column: 1 / -1;
}

.admin-dashboard .command-custom-primary-column > .field-label input,
.admin-dashboard .command-custom-primary-column > .field-label select,
.admin-dashboard .command-response-field textarea {
  width: 100%;
}

.admin-dashboard .command-response-field textarea {
  min-height: 112px;
  resize: vertical;
}

.admin-dashboard .command-summary-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 4;
  min-width: 0;
}

.admin-dashboard .command-summary-meta span {
  border: 1px solid rgba(88, 199, 243, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.84);
  color: #a7c7dd;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.admin-dashboard .command-custom-inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 5;
}

.admin-dashboard .command-form-actions {
  padding-top: 2px;
}

.admin-dashboard .command-built-in-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.admin-dashboard .command-cooldown-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.admin-dashboard .command-cooldown-grid .field-label {
  display: grid;
  grid-template-columns: minmax(118px, max-content) minmax(0, 128px);
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}

.admin-dashboard .command-cooldown-grid .field-label span {
  white-space: nowrap;
}

.admin-dashboard .command-cooldown-grid .field-label input {
  width: 100%;
  min-width: 0;
}

.admin-dashboard .command-timer-settings {
  display: grid;
  gap: 12px;
}

.admin-dashboard .command-timer-toggle {
  justify-content: start;
  color: #cfe8ff;
  font-weight: 760;
}

.admin-dashboard .command-timer-settings .field-label {
  display: grid;
  grid-template-columns: minmax(118px, max-content) minmax(0, 128px);
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}

.admin-dashboard .command-timer-settings .field-label span {
  white-space: nowrap;
}

.admin-dashboard .command-timer-settings .field-label input {
  width: 100%;
  min-width: 0;
}

.admin-dashboard .command-permission-field {
  display: grid;
  width: min(340px, 100%);
}

.admin-dashboard .command-custom-primary-column .field-label,
.admin-dashboard .command-custom-primary-column .command-permission-field {
  width: 100%;
}

.admin-dashboard .command-custom-editor .command-alias-editor {
  align-self: start;
}

.admin-dashboard .command-permission-field span {
  white-space: nowrap;
}

.admin-dashboard .command-permission-field select {
  width: 100%;
}

.admin-dashboard .command-alias-editor {
  width: 100%;
  min-width: 0;
}

.admin-dashboard .command-alias-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-dashboard .command-alias-heading strong {
  color: #e2e8f0;
  font-size: 13px;
}

.admin-dashboard .command-custom-editor .command-alias-heading strong {
  color: #94a3b8;
}

.admin-dashboard .command-alias-heading span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 760;
}

.admin-dashboard .command-alias-input-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-dashboard .command-alias-input-row .field-label {
  display: grid;
  min-width: 0;
}

.admin-dashboard .command-alias-input-row input {
  width: 100%;
}

.admin-dashboard .template .command-alias-input-row button {
  grid-column: auto;
  justify-self: auto;
}

.admin-dashboard .command-alias-list {
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
}

.admin-dashboard .command-alias-row {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.admin-dashboard .command-alias-row .blocked-term-allowlist-remove {
  width: 34px;
  min-width: 34px;
}

.admin-dashboard .template .command-alias-row .blocked-term-allowlist-remove {
  grid-column: auto;
  justify-self: stretch;
}

.admin-dashboard .command-alias-editor .field-help,
.admin-dashboard .command-alias-editor .field-error {
  margin: -2px 0 0;
}

@media (max-width: 760px) {
  .admin-dashboard .command-built-in-editor,
  .admin-dashboard .command-custom-editor {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .command-built-in-row .template-summary,
  .admin-dashboard .command-custom-row .template-summary {
    grid-template-columns: auto minmax(0, 1fr) 18px;
  }

  .admin-dashboard .command-built-in-row .template-summary::after,
  .admin-dashboard .command-custom-row .template-summary::after {
    grid-column: 3;
    grid-row: 1;
  }

  .admin-dashboard .command-built-in-row .template-title,
  .admin-dashboard .command-custom-row .template-title {
    grid-column: 2;
    grid-row: 1;
  }

  .admin-dashboard .command-built-in-row .template-message-preview,
  .admin-dashboard .command-summary-meta,
  .admin-dashboard .command-custom-row .template-message-preview,
  .admin-dashboard .command-custom-inline-actions {
    grid-column: 1 / 4;
  }

  .admin-dashboard .command-summary-meta,
  .admin-dashboard .command-custom-inline-actions {
    justify-content: flex-start;
  }

  .admin-dashboard .command-cooldown-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .command-cooldown-grid .field-label,
  .admin-dashboard .command-timer-settings .field-label {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-dashboard .command-custom-create-row .template-summary {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .admin-dashboard .command-custom-create-row .template-summary .template-title {
    grid-column: 1;
  }

  .admin-dashboard .command-custom-create-row .template-summary .template-message-preview {
    grid-column: 1 / 3;
  }

  .admin-dashboard .command-custom-create-row .command-custom-inline-actions {
    grid-column: 1 / 3;
    justify-content: flex-start;
  }
}

.admin-dashboard .activity-wheel-enable-stack {
  display: flex;
  align-items: center;
}

.admin-dashboard .activity-wheel-enable-toggle {
  gap: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 780;
}

.admin-dashboard .activity-wheel-enable-toggle .switch-ui {
  flex: 0 0 auto;
}

.admin-dashboard .activity-wheel-prizes {
  display: grid;
  gap: 12px;
}

.admin-dashboard .activity-wheel-prize-header {
  justify-content: space-between;
}

.admin-dashboard .activity-wheel-prize-list {
  display: grid;
  gap: 10px;
}

.admin-dashboard .activity-wheel-prize-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-dashboard .activity-wheel-form-actions {
  gap: 10px;
}

.admin-dashboard .activity-wheel-form-actions button {
  min-width: 116px;
}

.admin-dashboard .activity-wheel-prize-row {
  display: grid;
  grid-template-columns: 44px minmax(150px, 1.5fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-dashboard .activity-wheel-color {
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 8px;
}

.admin-dashboard .activity-wheel-preview-card {
  overflow: hidden;
}

.admin-dashboard .activity-wheel-preview-surface {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-dashboard .activity-wheel-preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  background:
    radial-gradient(circle at center, rgba(250, 204, 21, 0.1), transparent 54%),
    rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}

.admin-dashboard .activity-wheel-preview {
  position: relative;
  z-index: 3;
  width: min(310px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid #fff;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.42),
    inset 0 0 0 3px rgba(255, 255, 255, 0.25),
    0 0 0 3px rgba(148, 163, 184, 0.82),
    0 0 0 7px rgba(255, 255, 255, 0.38);
}

.admin-dashboard .activity-wheel-preview-center {
  position: absolute;
  inset: 50%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    inset 0 0 0 10px rgba(226, 232, 240, 0.9),
    0 0 0 6px rgba(203, 213, 225, 0.62),
    0 12px 24px rgba(15, 23, 42, 0.34);
}

.admin-dashboard .activity-wheel-preview-label {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 88px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.62);
  overflow-wrap: anywhere;
}

.admin-dashboard .activity-wheel-preview-center-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 34px;
  height: 88px;
  background: #fff;
  clip-path: polygon(50% 0, 92% 100%, 8% 100%);
  transform: translate(-50%, -86%);
  transform-origin: 50% 86%;
  filter: drop-shadow(0 8px 10px rgba(15, 23, 42, 0.34));
}

.admin-dashboard .activity-wheel-preview-burst {
  position: absolute;
  inset: -18%;
  z-index: 1;
  pointer-events: none;
}

.admin-dashboard .activity-wheel-preview-firework {
  position: absolute;
  width: 6px;
  height: 6px;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: activity-wheel-preview-firework 1.45s ease-out var(--delay, 0ms) forwards;
}

.admin-dashboard .activity-wheel-preview-firework-ray {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 16px;
  border-radius: 999px;
  opacity: 0.68;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(calc(var(--distance) * -1))
    scaleY(0.2);
  transform-origin: 50% 100%;
  box-shadow: 0 0 11px currentColor;
}

@keyframes activity-wheel-preview-firework {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  18% {
    opacity: 0.64;
  }
  72% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.32);
  }
}

.admin-dashboard .activity-wheel-legend {
  display: grid;
  gap: 10px;
}

.admin-dashboard .activity-wheel-legend-row {
  display: grid;
  grid-template-columns: 16px minmax(90px, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.admin-dashboard .activity-wheel-legend-row span {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.admin-dashboard .activity-wheel-legend-row strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .admin-dashboard .activity-wheel-grid,
  .admin-dashboard .activity-wheel-prize-row {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .activity-wheel-copy-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .admin-dashboard .activity-wheel-preview-burst {
    inset: 0;
  }
}

.admin-dashboard .template-form-actions button {
  min-width: 116px;
}

.admin-dashboard .event-actions-edit-actions button {
  min-width: 116px;
}

.admin-dashboard .template-form-actions .save-action:not(:disabled),
.admin-dashboard .event-actions-edit-actions .save-action:not(:disabled) {
  background: #126153;
  border-color: rgba(45, 212, 191, 0.48);
  color: #f0fdfa;
}

.admin-dashboard .template-form-actions .save-action:not(:disabled):hover,
.admin-dashboard .event-actions-edit-actions .save-action:not(:disabled):hover {
  background: #167264;
  border-color: rgba(94, 234, 212, 0.58);
}

.admin-dashboard .template-form-actions .save-action:disabled,
.admin-dashboard .event-actions-edit-actions .save-action:disabled {
  background: #111827;
  border-color: rgba(100, 116, 139, 0.22);
  color: #718096;
}

.admin-dashboard .template-form-actions button:disabled,
.admin-dashboard .event-actions-edit-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.admin-dashboard .template-list {
  margin-top: 0;
}

.admin-dashboard .template-row {
  grid-template-columns: minmax(130px, 0.22fr) 112px minmax(0, 1fr);
}

.admin-dashboard .template-message {
  position: relative;
  display: block;
  min-width: 0;
}

.admin-dashboard .template-message input {
  padding-right: 72px;
}

.admin-dashboard .char-count {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--ops-dim);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-dashboard .danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-dashboard .danger-actions button {
  min-width: 160px;
}

.admin-dashboard .danger-actions .danger {
  border-color: rgba(251, 113, 133, 0.32);
  color: #fecdd3;
}

.admin-dashboard .danger-actions .danger:hover {
  border-color: rgba(251, 113, 133, 0.48);
  background: rgba(251, 113, 133, 0.1);
}

.admin-dashboard .obs-card a {
  display: inline-block;
  word-break: break-all;
}

@media (max-width: 900px) {
  .admin-dashboard .template-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-dashboard .template-form > button,
  .admin-dashboard .template-form-actions button,
  .admin-dashboard .danger-actions button {
    width: 100%;
  }
}

/* RWD admin layout pass */
.admin-dashboard,
.admin-dashboard * {
  box-sizing: border-box;
}

.admin-dashboard {
  overflow-x: hidden;
}

.admin-dashboard .admin-shell,
.admin-dashboard .dashboard-main,
.admin-dashboard .panel,
.admin-dashboard .control-panel,
.admin-dashboard .account-card,
.admin-dashboard .template,
.admin-dashboard .obs-card,
.admin-dashboard .donation-item,
.admin-dashboard .field-label,
.admin-dashboard input,
.admin-dashboard select,
.admin-dashboard textarea {
  min-width: 0;
}

.admin-dashboard .sidebar {
  z-index: 160;
  width: 260px;
}

.admin-dashboard .dashboard-main {
  justify-self: center;
}

.admin-dashboard .panel {
  width: 100%;
}

.admin-dashboard .view-description:empty {
  display: none;
}

.admin-dashboard .section-heading {
  gap: 12px;
}

.admin-dashboard .home-control-grid,
.admin-dashboard .split-grid,
.admin-dashboard .grid-form,
.admin-dashboard .fake-event-form,
.admin-dashboard .template-row {
  width: 100%;
}

.admin-dashboard .template-title,
.admin-dashboard .template-message,
.admin-dashboard .template-message input,
.admin-dashboard .obs-card a,
.admin-dashboard .broadcaster-card a,
.admin-dashboard .donation-item p {
  overflow-wrap: anywhere;
}

.admin-dashboard .color-field input[type="color"] {
  padding: 3px;
}

@media (max-width: 1080px) {
  .admin-dashboard .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .sidebar {
    position: sticky;
    top: 0;
    z-index: 160;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--ops-border);
    background: rgba(8, 12, 19, 0.98);
  }

  .admin-dashboard .brand-block {
    min-height: 0;
    padding: 0;
    border-bottom: 0;
  }

  .admin-dashboard .brand-block p {
    max-width: min(48vw, 320px);
  }

  .admin-dashboard .sidebar-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    margin-inline: -4px;
    padding: 0 4px 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .admin-dashboard .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .admin-dashboard .sidebar-footer {
    align-self: center;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    border-top: 0;
  }

  .admin-dashboard .sidebar-footer .button,
  .admin-dashboard .sidebar-footer button {
    min-height: 36px;
    padding: 8px 11px;
    white-space: nowrap;
  }

  .admin-dashboard .dashboard-main {
    max-width: none;
    padding: 20px;
  }

  .admin-dashboard .dashboard-header h2 {
    font-size: 26px;
  }

  .admin-dashboard .home-control-grid,
  .admin-dashboard .profile-action-grid,
  .admin-dashboard .split-grid,
  .admin-dashboard .status-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .template-row {
    grid-template-columns: minmax(130px, 0.24fr) 104px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .admin-dashboard .dashboard-main {
    gap: 12px;
    padding: 14px;
  }

  .admin-dashboard .dashboard-header {
    min-height: 0;
  }

  .admin-dashboard .dashboard-header h2 {
    font-size: 24px;
  }

  .admin-dashboard .panel {
    padding: 16px;
  }

  .admin-dashboard .section-heading {
    padding-bottom: 14px;
  }

  .admin-dashboard .section-heading h3 {
    font-size: 18px;
  }

  .admin-dashboard #accounts {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .home-control-card,
  .admin-dashboard .profile-action-card,
  .admin-dashboard #bot-toggle,
  .admin-dashboard .control-panel,
  .admin-dashboard .account-card,
  .admin-dashboard .obs-card,
  .admin-dashboard .template {
    min-height: 0;
    padding: 14px;
  }

  .admin-dashboard .control-card-header,
  .admin-dashboard #bot-toggle .switch-row {
    align-items: flex-start;
  }

  .admin-dashboard .profile-account-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-dashboard .profile-account-card strong {
    font-size: 20px;
  }

  .admin-dashboard .profile-auth-card .actions,
  .admin-dashboard .profile-auth-card .button {
    width: 100%;
  }

  .admin-dashboard .actions,
  .admin-dashboard .danger-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-dashboard .actions .button,
  .admin-dashboard .danger-actions button,
  .admin-dashboard .template-form > button,
  .admin-dashboard .template-form-actions button,
  .admin-dashboard .grid-form button,
  .admin-dashboard .inline-form button,
  .admin-dashboard #fake-event button {
    width: 100%;
    justify-self: stretch;
    text-align: center;
  }

  .admin-dashboard .grid-form,
  .admin-dashboard .fake-event-form,
  .admin-dashboard .inline-form,
  .admin-dashboard .template-row {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .template-switch {
    justify-content: space-between;
    width: 100%;
  }

  .admin-dashboard .template-message input {
    padding-right: 64px;
  }

  .admin-dashboard .donation-item {
    display: grid;
    gap: 10px;
  }

  .admin-dashboard .donation-meta {
    justify-items: start;
  }

  .admin-dashboard .toast-stack {
    right: 12px;
    bottom: 12px;
    width: min(360px, calc(100vw - 24px));
  }
}

@media (max-width: 520px) {
  .admin-dashboard .sidebar {
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }

  .admin-dashboard .brand-block {
    gap: 10px;
  }

  .admin-dashboard .brand-block h1 {
    font-size: 16px;
  }

  .admin-dashboard .brand-block p {
    max-width: calc(100vw - 92px);
    font-size: 12px;
  }

  .admin-dashboard .profile-image {
    width: 38px;
    height: 38px;
  }

  .admin-dashboard .sidebar-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-dashboard .sidebar-footer .button,
  .admin-dashboard .sidebar-footer button {
    width: 100%;
    text-align: center;
  }

  .admin-dashboard .nav-item {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .admin-dashboard .dashboard-main {
    padding: 12px;
  }

  .admin-dashboard .dashboard-header h2 {
    font-size: 22px;
  }

  .admin-dashboard .eyebrow,
  .admin-dashboard .meta-label {
    font-size: 10px;
  }

  .admin-dashboard .panel {
    padding: 14px;
  }

  .admin-dashboard .broadcaster-card strong {
    font-size: 19px;
  }

  .admin-dashboard .control-card-header {
    display: flex;
    gap: 8px;
  }

  .admin-dashboard #bot-toggle .switch-row {
    justify-content: flex-start;
  }

  .admin-dashboard input,
  .admin-dashboard select,
  .admin-dashboard textarea,
  .admin-dashboard button,
  .admin-dashboard .button {
    min-height: 44px;
  }
}

/* Template editor modal */
.admin-dashboard .template-row,
.admin-dashboard .default-template-row {
  grid-template-columns: minmax(130px, 0.22fr) 112px minmax(0, 1fr) auto;
}

.admin-dashboard .default-template-row {
  grid-template-columns: minmax(130px, 0.22fr) minmax(0, 1fr) auto;
}

.admin-dashboard .template-message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.admin-dashboard .template-message p {
  margin: 0;
  color: #dbe4ef;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .template-message .char-count {
  position: static;
  transform: none;
}

.admin-dashboard .template-edit-button {
  min-width: 76px;
  justify-self: end;
}

.template-dialog {
  width: min(720px, calc(100vw - 28px));
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: #111827;
  color: #edf2f7;
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.template-dialog::backdrop {
  background: rgba(3, 7, 18, 0.72);
}

.template-dialog-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.template-dialog-header,
.template-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.template-dialog-header h3 {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 760;
}

.admin-dashboard .icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.template-dialog textarea {
  min-height: 92px;
  resize: vertical;
}

.template-dialog-count {
  justify-self: end;
  margin-top: -10px;
  color: var(--ops-dim);
  font-size: 12px;
  font-weight: 700;
}

.template-variable-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: #0d1420;
  padding: 14px;
}

.template-variable-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-variable-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.template-variable-list code {
  color: #bfdbfe;
  font-weight: 760;
}

.template-variable-list span {
  color: #cbd5e1;
  line-height: 1.5;
}

.template-dialog-actions {
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .admin-dashboard .template-row {
    grid-template-columns: minmax(130px, 0.24fr) 104px minmax(0, 1fr) auto;
  }

  .admin-dashboard .default-template-row {
    grid-template-columns: minmax(130px, 0.24fr) minmax(0, 1fr) auto;
  }
}

@media (max-width: 760px) {
  .admin-dashboard .template-row,
  .admin-dashboard .default-template-row,
  .template-variable-list li {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .template-message p {
    white-space: normal;
  }

  .admin-dashboard .template-edit-button,
  .template-dialog-actions button {
    width: 100%;
    justify-self: stretch;
  }

  .template-dialog-header,
  .template-dialog-actions {
    align-items: stretch;
  }

  .template-dialog-actions {
    display: grid;
  }
}

/* Admin-only management workspace */
.admin-dashboard .admin-zone-nav {
  display: grid;
  gap: 6px;
}

.admin-dashboard .admin-zone-nav[hidden] {
  display: none !important;
}

.admin-dashboard .admin-nav-item {
  margin-left: 12px;
  width: calc(100% - 12px);
}

.admin-dashboard .admin-zone-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.admin-dashboard .admin-zone-grid.single {
  max-width: 680px;
}

.admin-dashboard .admin-focus-card {
  gap: 18px;
}

.admin-dashboard .admin-card-copy {
  margin: -4px 0 0;
  color: var(--ops-muted);
  line-height: 1.55;
}

.admin-dashboard .admin-table-card {
  min-height: 0;
}

.admin-dashboard .admin-registration-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
}

.admin-dashboard .admin-registration-switch {
  flex: 0 0 auto;
  width: auto;
  min-width: 190px;
  font-weight: 760;
  white-space: nowrap;
}

.admin-dashboard .admin-maintenance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}

.admin-dashboard .admin-maintenance-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-dashboard .admin-maintenance-log-card {
  grid-column: 1 / -1;
}

.admin-dashboard .admin-maintenance-switch {
  justify-content: flex-start;
}

.admin-dashboard .admin-maintenance-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-dashboard .admin-maintenance-actions {
  display: flex;
  gap: 36px;
  justify-content: flex-start;
}

.admin-dashboard .maintenance-cleanup-list {
  display: grid;
  gap: 12px;
}

.admin-dashboard .maintenance-cleanup-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
}

.admin-dashboard .maintenance-cleanup-item p {
  margin: 6px 0 0;
  color: #b9c7dc;
  line-height: 1.6;
}

.admin-dashboard .maintenance-cleanup-count {
  flex: 0 0 auto;
  justify-content: center;
  min-width: 68px;
  white-space: nowrap;
}

.admin-dashboard .maintenance-log-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-dashboard .maintenance-log-summary > div {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
}

.admin-dashboard .maintenance-log-summary span {
  display: block;
  color: #9fb2ce;
  font-size: 13px;
  margin-bottom: 6px;
}

.admin-dashboard .maintenance-log-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-dashboard .admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-dashboard .admin-users-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-dashboard .admin-users-search {
  display: grid;
  gap: 6px;
  min-width: min(340px, 100%);
  color: var(--ops-muted);
  font-size: 13px;
  font-weight: 760;
}

.admin-dashboard .admin-users-search input {
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  color: #e5edf8;
  padding: 0 12px;
}

.admin-dashboard .admin-users-count {
  color: #9fb2ce;
  font-size: 13px;
  white-space: nowrap;
}

.admin-dashboard .admin-broadcaster-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.admin-dashboard .admin-broadcaster-table th,
.admin-dashboard .admin-broadcaster-table td {
  border-bottom: 1px solid var(--ops-border);
  padding: 12px 10px;
  color: #dbe4ef;
  text-align: left;
  vertical-align: middle;
}

.admin-dashboard .admin-broadcaster-table th {
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-dashboard .table-sort-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-dashboard .table-sort-button:hover,
.admin-dashboard .table-sort-button:focus-visible {
  color: #dbeafe;
}

.admin-dashboard .admin-broadcaster-table tr:last-child td {
  border-bottom: 0;
}

.admin-dashboard .admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-dashboard .admin-user-cell img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  background: #111827;
}

.admin-dashboard .admin-user-cell strong,
.admin-dashboard .admin-user-cell a {
  display: block;
}

.admin-dashboard .admin-user-cell a {
  margin-top: 3px;
  color: #9bd6ff;
  font-size: 13px;
  text-decoration: none;
}

.admin-dashboard .admin-bot-switch {
  display: inline-flex;
  width: auto;
  min-width: 104px;
  font-weight: 760;
  white-space: nowrap;
}

.admin-dashboard .admin-bot-switch input:disabled + .switch-ui {
  opacity: 0.55;
}

.admin-dashboard .state-label.banned {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.12);
}

.admin-dashboard .state-label.warning {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
}

.admin-dashboard button.danger {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(127, 29, 29, 0.28);
  color: #fecdd3;
}

.admin-dashboard button.danger:hover {
  border-color: rgba(251, 113, 133, 0.48);
  background: rgba(127, 29, 29, 0.42);
}

.admin-dashboard .admin-delete-user-button {
  margin-left: 8px;
}

.admin-dashboard .admin-impersonate-button {
  margin-right: 8px;
  white-space: nowrap;
}

.admin-dashboard .admin-broadcaster-table td:last-child {
  white-space: nowrap;
}

.admin-dashboard .admin-users-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  color: #b9c7dc;
  font-size: 13px;
}

.admin-dashboard .danger-link {
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(127, 29, 29, 0.58);
  color: #ffe4e6;
  text-align: center;
}

.admin-dashboard .danger-link:hover,
.admin-dashboard .danger-link:focus-visible {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(153, 27, 27, 0.72);
  color: #fff1f2;
}

.admin-dashboard #bot-toggle.banned .switch-ui {
  opacity: 0.55;
}

@media (max-width: 1080px) {
  .admin-dashboard .admin-zone-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  .admin-dashboard .admin-zone-nav summary {
    min-height: 38px;
    white-space: nowrap;
  }

  .admin-dashboard .admin-nav-item {
    margin-left: 0;
    width: auto;
  }
}

@media (max-width: 760px) {
  .admin-dashboard .admin-broadcaster-table {
    min-width: 1060px;
  }

  .admin-dashboard .admin-users-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dashboard .admin-maintenance-grid,
  .admin-dashboard .admin-maintenance-settings-grid,
  .admin-dashboard .maintenance-log-summary {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .maintenance-cleanup-item {
    flex-direction: column;
  }
}

/* Sidebar navigation hierarchy */
.admin-dashboard .nav-group {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 6px;
  background: transparent;
}

.admin-dashboard .nav-group[hidden] {
  display: none !important;
}

.admin-dashboard .nav-group[open] {
  background: rgba(148, 163, 184, 0.055);
}

.admin-dashboard .nav-group summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #bcc7d8;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  list-style: none;
}

.admin-dashboard .nav-group summary::-webkit-details-marker {
  display: none;
}

.admin-dashboard .nav-group summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  margin-left: auto;
  color: var(--ops-muted);
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

.admin-dashboard .nav-group[open] summary::after {
  transform: rotate(135deg) translate(-1px, 1px);
}

.admin-dashboard .nav-group summary:hover,
.admin-dashboard .nav-group summary:focus-visible {
  background: rgba(148, 163, 184, 0.08);
  color: #ffffff;
  outline: none;
}

.admin-dashboard .nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #aebbd0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-dashboard .nav-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 22px;
}

.admin-dashboard .nav-icon path,
.admin-dashboard .nav-icon rect,
.admin-dashboard .nav-icon circle,
.admin-dashboard .nav-icon line,
.admin-dashboard .nav-icon polyline,
.admin-dashboard .nav-icon polygon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-dashboard .nav-group summary .nav-icon {
  color: #cbd5e1;
}

.admin-dashboard .nav-item {
  gap: 11px;
}

.admin-dashboard .nav-item::before {
  content: none;
}

.admin-dashboard .nav-item .nav-icon {
  color: #94a3b8;
}

.admin-dashboard .nav-item.active .nav-icon {
  color: #7dd3fc;
}

.admin-dashboard .admin-nav-item {
  margin-left: 0;
  width: 100%;
}

.admin-dashboard .nav-group .nav-item {
  min-height: 40px;
  padding-inline: 10px;
}

.admin-dashboard .admin-shell {
  transition: grid-template-columns 180ms ease;
}

.admin-dashboard .admin-shell.sidebar-collapsed {
  grid-template-columns: 116px minmax(0, 1fr);
}

.admin-dashboard .sidebar-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
}

.admin-dashboard .sidebar-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  border-radius: 99px;
  background: currentColor;
}

.admin-dashboard .sidebar-menu-toggle:hover,
.admin-dashboard .sidebar-menu-toggle:focus-visible {
  background: transparent;
  border-color: transparent;
  color: #ffffff;
  outline: none;
}

.admin-dashboard .nav-primary-item {
  margin-bottom: 3px;
}

.admin-dashboard .sidebar-collapsed .sidebar {
  align-items: center;
  padding-inline: 12px;
}

.admin-dashboard .sidebar-collapsed .brand-block {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  padding-inline: 0;
}

.admin-dashboard .sidebar-collapsed .brand-title-row {
  display: none;
}

.admin-dashboard .sidebar-collapsed .profile-image,
.admin-dashboard .sidebar-collapsed .profile-fallback {
  width: 44px;
  height: 44px;
}

.admin-dashboard .sidebar-collapsed .sidebar-nav {
  width: 100%;
}

.admin-dashboard .sidebar-collapsed .nav-item,
.admin-dashboard .sidebar-collapsed .nav-group summary {
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding-inline: 0;
}

.admin-dashboard .sidebar-collapsed .nav-item span,
.admin-dashboard .sidebar-collapsed .nav-group summary span,
.admin-dashboard .sidebar-collapsed .nav-group summary::after {
  display: none;
}

.admin-dashboard .sidebar-collapsed .nav-group {
  width: 100%;
  padding: 0;
  background: transparent;
}

.admin-dashboard .sidebar-collapsed .nav-group[open] {
  background: transparent;
}

.admin-dashboard .sidebar-collapsed .nav-group summary {
  margin-bottom: 3px;
}

.admin-dashboard .sidebar-collapsed .nav-group .nav-item {
  padding-inline: 0;
}

@media (max-width: 1080px) {
  .admin-dashboard .admin-shell,
  .admin-dashboard .admin-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .nav-group,
  .admin-dashboard .nav-group[open],
  .admin-dashboard .admin-zone-nav {
    display: grid;
    align-items: stretch;
    gap: 6px;
    flex: initial;
    width: 100%;
    padding: 0;
    background: transparent;
  }

  .admin-dashboard .nav-item,
  .admin-dashboard .nav-primary-item {
    flex: initial;
    width: 100%;
    white-space: normal;
    scroll-snap-align: unset;
  }

  .admin-dashboard .nav-group summary {
    min-height: 38px;
    white-space: normal;
  }

  .admin-dashboard .nav-group summary::after {
    display: block;
  }

  .admin-dashboard .nav-group:not([open]) .nav-item {
    display: none;
  }

  .admin-dashboard .nav-group .nav-item {
    width: calc(100% - 26px);
    margin-left: 26px;
  }

  .admin-dashboard .sidebar-collapsed .sidebar {
    align-items: stretch;
  }

  .admin-dashboard .sidebar-collapsed .sidebar-nav {
    display: none;
  }

  .admin-dashboard .sidebar-collapsed .brand-title-row {
    display: flex;
  }

  .admin-dashboard .sidebar-collapsed .brand-block {
    justify-content: flex-start;
  }
}

/* Expandable event template settings */
.admin-dashboard .template-list {
  display: grid;
  gap: 10px;
}

.admin-dashboard details.template,
.admin-dashboard details.template-row,
.admin-dashboard details.default-template-row {
  display: block;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: #0d1420;
  padding: 0;
  overflow: hidden;
}

.admin-dashboard details.template[open] {
  border-color: rgba(125, 211, 252, 0.28);
}

.admin-dashboard .template-summary {
  display: grid;
  grid-template-columns: auto minmax(130px, 0.22fr) minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.admin-dashboard .template-summary::-webkit-details-marker {
  display: none;
}

.admin-dashboard .template-summary::after {
  content: "";
  grid-column: 4;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--ops-muted);
  border-right: 2px solid var(--ops-muted);
  justify-self: end;
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

.admin-dashboard details.template[open] .template-summary::after {
  transform: rotate(135deg) translate(-1px, 1px);
}

.admin-dashboard .event-action-binding-summary::after {
  grid-column: 5;
}

.admin-dashboard .event-action-binding-summary .event-action-binding-inline-actions {
  grid-column: 4;
  align-self: center;
}

.admin-dashboard .template-summary:hover,
.admin-dashboard .template-summary:focus-visible {
  background: rgba(148, 163, 184, 0.055);
  outline: none;
}

.admin-dashboard .template-mode-pill {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.admin-dashboard .template-summary-switch {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-height: 34px;
  margin: 0;
  cursor: pointer;
}

.admin-dashboard .template-summary .template-title {
  grid-column: 2;
  min-width: 0;
}

.admin-dashboard .template-summary .template-message-preview {
  grid-column: 3;
}

.admin-dashboard .default-template-row .template-message-preview {
  grid-column: 2 / 4;
}

.admin-dashboard .default-template-row .template-title {
  grid-column: 1;
}

.admin-dashboard .template-message-preview {
  min-width: 0;
  margin: 0;
  color: #dbe4ef;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .template-editor-panel {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--ops-border);
  padding: 14px;
}

.admin-dashboard .template-message-field {
  display: grid;
  gap: 8px;
}

.admin-dashboard .template-message-field textarea {
  min-height: 44px;
  resize: vertical;
  line-height: 1.5;
}

.admin-dashboard .template-message-field .char-count,
.admin-dashboard .command-response-field .char-count {
  position: static;
  justify-self: end;
  transform: none;
}

.admin-dashboard .template-send-mode {
  display: grid;
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
}

.admin-dashboard .template-send-mode legend {
  margin-bottom: 8px;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 780;
}

.admin-dashboard .template-send-mode label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dbe4ef;
  font-size: 14px;
}

.admin-dashboard .template-send-mode input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--ops-blue);
}

.admin-dashboard .template-editor-panel .template-variable-panel {
  margin-top: 0;
}

@media (max-width: 760px) {
  .admin-dashboard .template-summary {
    grid-template-columns: auto minmax(0, 1fr) 18px;
    gap: 8px 12px;
  }

  .admin-dashboard .template-summary .template-title {
    grid-column: 2;
    grid-row: 1;
  }

  .admin-dashboard .template-summary .template-message-preview {
    grid-column: 1 / 4;
    grid-row: 2;
  }

  .admin-dashboard .template-summary-switch {
    grid-column: 1;
    grid-row: 1;
  }

  .admin-dashboard .template-summary::after {
    grid-column: 3;
    grid-row: 1;
  }

  .admin-dashboard .default-template-row .template-message-preview {
    grid-column: 1 / 3;
  }

  .admin-dashboard .default-template-row .template-title {
    grid-column: 1 / 3;
  }

  .admin-dashboard .template-message-preview {
    white-space: normal;
  }
}

/* YouTube-style app shell: top bar owns identity controls, sidebar owns navigation only. */
.admin-dashboard .channel-point-layout {
  display: block;
}

.admin-dashboard .channel-point-warning {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.06);
}

.admin-dashboard .channel-point-warning p {
  margin: 0;
  color: #cbd5e1;
}

.admin-dashboard .channel-point-editor {
  display: grid;
  gap: 14px;
}

.admin-dashboard .channel-point-editor .control-card-header {
  justify-content: space-between;
}

.admin-dashboard .admin-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.admin-dashboard .admin-shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.admin-dashboard .app-topbar {
  position: sticky;
  top: 0;
  z-index: 32;
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid var(--ops-border);
  background: rgba(8, 12, 19, 0.98);
  backdrop-filter: blur(14px);
}

.admin-dashboard .app-topbar .brand-block {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  gap: 12px;
}

.admin-dashboard .app-topbar .brand-title-row {
  flex: 0 1 auto;
  min-width: 0;
}

.admin-dashboard .app-topbar .brand-title-row h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .sidebar {
  position: sticky;
  top: 72px;
  z-index: 160;
  grid-column: 1;
  grid-row: 2;
  width: auto;
  height: calc(100vh - 72px);
  padding: 18px 16px;
  border-right: 1px solid var(--ops-border);
  background: #080c16;
  overflow-y: auto;
  scrollbar-width: thin;
}

.admin-dashboard .sidebar .sidebar-nav {
  width: 100%;
}

.admin-dashboard .dashboard-main {
  grid-column: 2;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
}

.admin-dashboard .sidebar-collapsed .sidebar {
  display: none;
}

.admin-dashboard .sidebar-collapsed .dashboard-main {
  grid-column: 2;
}

.admin-dashboard .sidebar-collapsed .brand-title-row {
  display: flex;
}

.admin-dashboard .sidebar-collapsed .profile-image,
.admin-dashboard .sidebar-collapsed .profile-fallback {
  width: 44px;
  height: 44px;
}

@media (max-width: 1080px) {
  .admin-dashboard .admin-shell,
  .admin-dashboard .admin-shell.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 68px auto minmax(0, 1fr);
  }

  .admin-dashboard .app-topbar {
    min-height: 68px;
    padding: 0 16px;
  }

  .admin-dashboard .sidebar {
    position: relative;
    top: 0;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 68px);
    display: block;
    padding: 12px 16px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--ops-border);
    overflow-y: auto;
  }

  .admin-dashboard .sidebar-nav {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .admin-dashboard .sidebar-collapsed .sidebar {
    display: none;
  }

  .admin-dashboard .dashboard-main,
  .admin-dashboard .sidebar-collapsed .dashboard-main {
    grid-column: 1;
    grid-row: 3;
  }
}

@media (max-width: 560px) {
  .admin-dashboard .app-topbar {
    padding-inline: 12px;
  }

  .admin-dashboard .app-topbar .brand-block {
    gap: 9px;
  }

  .admin-dashboard .app-topbar .brand-title-row h1 {
    max-width: 132px;
    font-size: 17px;
  }

  .admin-dashboard .sidebar-menu-toggle,
  .admin-dashboard .profile-avatar,
  .admin-dashboard .profile-image,
  .admin-dashboard .profile-fallback {
    width: 38px;
    height: 38px;
  }
}

.admin-dashboard .app-topbar .profile-avatar,
.admin-dashboard .app-topbar .profile-image,
.admin-dashboard .app-topbar .profile-fallback,
.admin-dashboard .sidebar-collapsed .app-topbar .profile-avatar,
.admin-dashboard .sidebar-collapsed .app-topbar .profile-image,
.admin-dashboard .sidebar-collapsed .app-topbar .profile-fallback {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

@media (max-width: 560px) {
  .admin-dashboard .app-topbar .profile-avatar,
  .admin-dashboard .app-topbar .profile-image,
  .admin-dashboard .app-topbar .profile-fallback,
  .admin-dashboard .sidebar-collapsed .app-topbar .profile-avatar,
  .admin-dashboard .sidebar-collapsed .app-topbar .profile-image,
  .admin-dashboard .sidebar-collapsed .app-topbar .profile-fallback {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}

.admin-dashboard .module-preview-video-queue {
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, #0b0f18 0%, #05070c 100%);
}

.admin-dashboard .youtube-play-icon {
  --youtube-icon-width: 112px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--youtube-icon-width);
  aspect-ratio: 1.43 / 1;
  border-radius: calc(var(--youtube-icon-width) * 0.18);
  background: #ff0000;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.admin-dashboard .youtube-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: calc(var(--youtube-icon-width) * 0.035);
  border-top: calc(var(--youtube-icon-width) * 0.14) solid transparent;
  border-bottom: calc(var(--youtube-icon-width) * 0.14) solid transparent;
  border-left: calc(var(--youtube-icon-width) * 0.24) solid #ffffff;
}

.admin-dashboard .module-preview-video-player {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: min(calc(100% - 46px), 390px);
  aspect-ratio: 16 / 9;
  min-width: 0;
  border-radius: 10px;
  background: #05070c;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 54px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.admin-dashboard .module-preview-youtube-icon {
  --youtube-icon-width: 190px;
}

.admin-dashboard .video-queue-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .video-queue-config-grid,
.admin-dashboard .video-queue-settings-column,
.admin-dashboard .video-queue-enable-card,
.admin-dashboard .video-queue-settings-card,
.admin-dashboard .video-queue-preview-card,
.admin-dashboard .video-queue-list-card {
  display: grid;
  gap: 14px;
}

.admin-dashboard .video-queue-config-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: start;
}

.admin-dashboard .video-queue-admin-list {
  display: grid;
  gap: 0;
}

.admin-dashboard .video-queue-form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.4fr);
}

.admin-dashboard .video-queue-preview-form {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .video-queue-volume-field {
  grid-column: 1 / -1;
}

.admin-dashboard .video-queue-label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.admin-dashboard .video-queue-help-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.admin-dashboard .video-queue-help-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 30;
  width: max-content;
  max-width: 240px;
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  background: #020617;
  color: #e2e8f0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.admin-dashboard .video-queue-help-icon:hover::after,
.admin-dashboard .video-queue-help-icon:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-dashboard .video-queue-current-admin,
.admin-dashboard .video-queue-admin-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-dashboard .video-queue-admin-item {
  grid-template-columns: 34px 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.admin-dashboard .video-queue-admin-item:last-child {
  border-bottom-width: 1px;
}

.admin-dashboard .video-queue-admin-item:hover,
.admin-dashboard .video-queue-admin-item:focus-visible,
.admin-dashboard .video-queue-admin-item.expanded {
  background: rgba(148, 163, 184, 0.06);
  outline: none;
}

.admin-dashboard .video-queue-admin-item-index {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: right;
}

.admin-dashboard .video-queue-admin-thumbnail-button {
  display: block;
  width: 88px;
  min-width: 88px;
  height: 50px;
  min-height: 50px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 4px;
  background: #020617;
  color: inherit;
}

.admin-dashboard .video-queue-admin-item:hover .video-queue-admin-thumbnail-button,
.admin-dashboard .video-queue-admin-item:focus-visible .video-queue-admin-thumbnail-button {
  border-color: rgba(125, 211, 252, 0.68);
  background: #020617;
}

.admin-dashboard .video-queue-admin-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-dashboard .video-queue-admin-item-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.admin-dashboard .video-queue-queue-preview-frame {
  width: min(100%, 420px);
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #020617;
}

.admin-dashboard .video-queue-current-admin strong,
.admin-dashboard .video-queue-admin-item strong,
.admin-dashboard .video-queue-current-admin a,
.admin-dashboard .video-queue-admin-item a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .video-queue-admin-item-title {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .video-queue-current-admin span,
.admin-dashboard .video-queue-admin-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-dashboard .video-queue-admin-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-dashboard .video-queue-admin-requester {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .video-queue-admin-duration {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.admin-dashboard .video-queue-admin-duration .video-queue-admin-duration-label {
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-dashboard .video-queue-admin-item .video-queue-status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 3px 8px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.2);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.admin-dashboard .video-queue-admin-item .video-queue-status-badge.is-playing {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(22, 101, 52, 0.2);
  color: #bbf7d0;
}

.admin-dashboard .video-queue-admin-item .video-queue-status-badge.is-queued {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(120, 53, 15, 0.34);
  color: #fde68a;
}

.admin-dashboard .video-queue-admin-item .video-queue-status-badge.is-approved {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(14, 116, 144, 0.2);
  color: #bae6fd;
}

.admin-dashboard .video-queue-admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-dashboard .video-queue-admin-item-details {
  display: grid;
  grid-template-columns: minmax(180px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  grid-column: 2 / -1;
  padding: 0 12px 4px 0;
  cursor: default;
}

.admin-dashboard .video-queue-admin-item-details a {
  min-width: 0;
  overflow: hidden;
  color: #7dd3fc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .video-queue-preview-action {
  justify-self: end;
}

.admin-dashboard .video-queue-admin-item-detail-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  align-self: start;
}

.admin-dashboard .video-queue-icon-action {
  display: inline-grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 38px;
  padding: 0;
}

.admin-dashboard .template-form-actions .video-queue-icon-action {
  flex: 0 0 46px;
  width: 46px;
  min-width: 46px;
}

.admin-dashboard .video-queue-playback-actions {
  position: relative;
}

.admin-dashboard .video-queue-control-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.admin-dashboard .video-queue-speed-panel {
  position: absolute;
  left: 224px;
  top: calc(100% + 10px);
  z-index: 20;
  display: grid;
  gap: 12px;
  width: min(330px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.36);
}

.admin-dashboard .video-queue-speed-panel strong {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.admin-dashboard .video-queue-speed-adjust {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
}

.admin-dashboard .video-queue-speed-adjust input[type="range"] {
  width: 100%;
  min-width: 0;
}

.admin-dashboard .video-queue-speed-step {
  display: inline-grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0;
  border-radius: 8px;
}

.admin-dashboard .video-queue-speed-step .video-queue-control-icon {
  width: 18px;
  height: 18px;
}

.admin-dashboard .video-queue-speed-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-dashboard .video-queue-speed-presets button {
  width: auto;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 900;
}

.admin-dashboard .video-queue-speed-presets button.active {
  border-color: rgba(125, 211, 252, 0.58);
  background: rgba(14, 165, 233, 0.24);
  color: #e0f2fe;
}

.admin-dashboard .video-queue-admin-item-preview {
  grid-column: 1;
  display: flex;
  justify-content: flex-start;
}

.admin-dashboard .video-queue-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-dashboard .video-queue-pagination span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-dashboard .video-queue-history-card {
  display: grid;
  gap: 14px;
}

.admin-dashboard .video-queue-history-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.admin-dashboard .video-queue-history-retention {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-dashboard .video-queue-history-count {
  justify-self: center;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-dashboard .video-queue-history-header-spacer {
  min-width: 0;
}

.admin-dashboard .video-queue-history-table {
  table-layout: fixed;
}

.admin-dashboard .video-queue-history-table th:nth-child(1),
.admin-dashboard .video-queue-history-table td:nth-child(1) {
  width: 42%;
}

.admin-dashboard .video-queue-history-table th:nth-child(2),
.admin-dashboard .video-queue-history-table td:nth-child(2) {
  width: 24%;
}

.admin-dashboard .video-queue-history-table th:nth-child(3),
.admin-dashboard .video-queue-history-table td:nth-child(3) {
  width: 13%;
}

.admin-dashboard .video-queue-history-table th:nth-child(4),
.admin-dashboard .video-queue-history-table td:nth-child(4) {
  width: 12%;
}

.admin-dashboard .video-queue-history-table th:nth-child(5),
.admin-dashboard .video-queue-history-table td:nth-child(5) {
  width: 9%;
  text-align: right;
}

.admin-dashboard .video-queue-history-video-cell {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-dashboard .video-queue-history-preview {
  display: block;
  width: 112px;
  height: 63px;
  min-width: 112px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 4px;
  background: #020617;
  cursor: pointer;
}

.admin-dashboard .video-queue-history-preview img,
.admin-dashboard .video-queue-history-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.admin-dashboard .video-queue-history-title-text,
.admin-dashboard .video-queue-history-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .video-queue-history-link {
  color: #7dd3fc;
  font-weight: 800;
}

.admin-dashboard .video-queue-history-pagination {
  justify-content: flex-end;
}

.admin-dashboard .video-queue-player-preview {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: rgb(2 6 23 / calc(0.86 * var(--video-queue-player-surface-opacity, 1)));
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / calc(0.2 * var(--video-queue-player-surface-opacity, 1))),
    0 10px 28px rgb(0 0 0 / calc(0.24 * var(--video-queue-player-surface-opacity, 1)));
}

.admin-dashboard .widget-layout-youtube-icon {
  --youtube-icon-width: clamp(38px, 7vw, 120px);
  opacity: calc(0.88 * var(--video-queue-player-surface-opacity, 1));
  box-shadow:
    0 10px 28px rgb(0 0 0 / calc(0.25 * var(--video-queue-player-surface-opacity, 1))),
    inset 0 0 0 1px rgb(255 255 255 / calc(0.2 * var(--video-queue-player-surface-opacity, 1)));
}

@media (max-width: 980px) {
  .admin-dashboard .video-queue-workspace,
  .admin-dashboard .video-queue-config-grid,
  .admin-dashboard .video-queue-form-grid,
  .admin-dashboard .video-queue-preview-form,
  .admin-dashboard .video-queue-admin-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .video-queue-admin-item-index {
    text-align: left;
  }

  .admin-dashboard .video-queue-admin-item-preview {
    grid-column: 1;
  }

  .admin-dashboard .video-queue-admin-item-detail-actions {
    grid-column: 1;
  }

  .admin-dashboard .video-queue-admin-item-details {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    padding-right: 0;
  }

  .admin-dashboard .video-queue-preview-action {
    justify-self: start;
  }

}

/* Sidebar hierarchy: categories align with primary pages; child pages indent. */
.admin-dashboard .sidebar-nav > .nav-primary-item,
.admin-dashboard .sidebar-nav > .nav-group > summary {
  min-height: 42px;
  padding: 0 12px;
  gap: 11px;
}

.admin-dashboard .sidebar-nav > .nav-group {
  padding: 0;
  background: transparent;
}

.admin-dashboard .sidebar-nav > .nav-group[open] {
  background: transparent;
}

.admin-dashboard .sidebar-nav > .nav-group > .nav-item {
  width: calc(100% - 26px);
  margin-left: 26px;
  min-height: 40px;
  padding: 0 10px;
}

.admin-dashboard .mobile-sidebar-scrim {
  display: none;
}

/* Home overview */
.admin-dashboard .home-panel {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 0;
}

.admin-dashboard .home-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) minmax(400px, 1.06fr);
  gap: 16px;
  align-items: start;
  width: 100%;
}

.admin-dashboard .home-control-column,
.admin-dashboard .home-status-column {
  min-width: 0;
}

.admin-dashboard .home-settings-list {
  overflow: visible;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: #0d1420;
}

.admin-dashboard .home-status-overview {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.28)),
    #0d1420;
}

.admin-dashboard .home-status-overview-header {
  display: grid;
  gap: 2px;
}

.admin-dashboard .home-status-overview-header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 22px;
  line-height: 1.2;
}

.admin-dashboard .home-status-section {
  display: grid;
  gap: 7px;
}

.admin-dashboard .home-status-section h3 {
  margin: 0;
  color: #93c5fd;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}

.admin-dashboard .home-status-list {
  display: grid;
  gap: 6px;
}

.admin-dashboard .home-status-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.48);
}

.admin-dashboard .home-status-label {
  min-width: 0;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

.admin-dashboard .home-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.admin-dashboard .home-status-pill.is-enabled {
  border-color: rgba(34, 197, 94, 0.42);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.18);
}

.admin-dashboard .home-status-pill.is-partial {
  border-color: rgba(56, 189, 248, 0.42);
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.16);
}

.admin-dashboard .home-status-pill.is-disabled {
  border-color: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  background: rgba(71, 85, 105, 0.16);
}

.admin-dashboard .home-status-pill.is-warning {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
  background: rgba(180, 83, 9, 0.18);
}

.admin-dashboard .home-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--ops-border);
}

.admin-dashboard .home-settings-row:last-child {
  border-bottom: 0;
}

.admin-dashboard .home-row-value {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.admin-dashboard .home-channel-row {
  flex-wrap: wrap;
}

.admin-dashboard .home-row-value strong {
  flex: 0 1 auto;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.25;
}

.admin-dashboard .home-row-value a,
.admin-dashboard .home-muted {
  flex: 1 1 260px;
  max-width: 100%;
  color: #9fd7ff;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.admin-dashboard .home-row-value a:hover {
  color: #dbeafe;
}

.admin-dashboard .manager-invite-panel .home-row-value {
  display: grid;
  align-items: stretch;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.58), rgba(15, 23, 42, 0.84) 56%),
    rgba(2, 6, 23, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 34px rgba(2, 6, 23, 0.26);
}

.admin-dashboard .manager-invite-content {
  width: 100%;
  min-width: 0;
}

.admin-dashboard .manager-invite-header {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.admin-dashboard .manager-invite-header strong {
  color: #f8fafc;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.2;
}

.admin-dashboard .manager-invite-help {
  position: relative;
  z-index: 35;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #cbd5e1;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  cursor: help;
  transform: translateY(-1px);
}

.admin-dashboard .manager-invite-help-panel {
  position: absolute;
  left: 100%;
  top: calc(100% + 10px);
  z-index: 120;
  width: max-content;
  max-width: min(320px, 72vw);
  padding: 10px 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(0, -4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-dashboard .manager-invite-help:hover .manager-invite-help-panel,
.admin-dashboard .manager-invite-help:focus-visible .manager-invite-help-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0);
}

.admin-dashboard .manager-invite-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.admin-dashboard .manager-invite-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.admin-dashboard .manager-invite-permissions,
.admin-dashboard .manager-invite-generate {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.admin-dashboard .manager-invite-generate {
  width: min(100%, 560px);
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.4), rgba(8, 47, 73, 0.18));
}

.admin-dashboard .manager-invite-generate-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.admin-dashboard .manager-invite-section-label {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.admin-dashboard .manager-category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 148px));
  justify-content: start;
  gap: 8px;
  width: 100%;
}

.admin-dashboard .manager-category-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid rgba(100, 116, 139, 0.36);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.56);
  color: #dbe5f1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.admin-dashboard .manager-category-card:hover,
.admin-dashboard .manager-category-card:focus-within {
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(12, 35, 54, 0.68);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.admin-dashboard .manager-category-card:has(input:checked) {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(6, 78, 59, 0.28);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.admin-dashboard .manager-category-card:not(:has(input:checked)) {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.18);
}

.admin-dashboard .manager-category-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-dashboard .manager-category-status {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  border: 1px solid rgba(248, 113, 113, 0.54);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.42);
  color: #fecaca;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.08);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.admin-dashboard .manager-category-check,
.admin-dashboard .manager-category-deny {
  grid-area: 1 / 1;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transition: opacity 140ms ease, transform 140ms ease;
}

.admin-dashboard .manager-category-check {
  color: #bbf7d0;
  opacity: 0;
  transform: scale(0.78);
}

.admin-dashboard .manager-category-deny {
  color: #fecaca;
  opacity: 1;
  transform: scale(1);
}

.admin-dashboard .manager-category-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-width: 0;
}

.admin-dashboard .manager-category-status::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(34, 197, 94, 0.22);
  opacity: 0;
  transition: opacity 140ms ease;
}

.admin-dashboard .manager-category-card input:checked ~ .manager-category-status {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(20, 83, 45, 0.62);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.admin-dashboard .manager-category-card input:checked ~ .manager-category-status::after {
  opacity: 1;
}

.admin-dashboard .manager-category-card input:checked ~ .manager-category-status .manager-category-check {
  opacity: 1;
  transform: scale(1);
}

.admin-dashboard .manager-category-card input:checked ~ .manager-category-status .manager-category-deny {
  opacity: 0;
  transform: scale(0.78);
}

.admin-dashboard .manager-category-name {
  min-width: 0;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.admin-dashboard .manager-invite-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.admin-dashboard .manager-invite-actions .button {
  width: 100%;
  min-width: 0;
}

.admin-dashboard .manager-invite-generate .button {
  width: min(100%, 236px);
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  line-height: 1;
  justify-content: center;
  white-space: nowrap;
}

.admin-dashboard .manager-invite-generate .button:active {
  transform: none;
}

.admin-dashboard .manager-invite-url-row {
  height: 46px;
  min-height: 46px;
  box-sizing: border-box;
  padding: 6px 8px;
}

.admin-dashboard .manager-invite-url-row .manager-invite-url {
  width: 100%;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
}

.admin-dashboard .home-settings-row .icon-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
}

.admin-dashboard .authorized-manager-panel .home-row-value {
  display: grid;
  gap: 12px;
  width: 100%;
}

.admin-dashboard .authorized-manager-content {
  min-width: 0;
}

.admin-dashboard .authorized-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-dashboard .authorized-manager-header strong {
  font-size: 16px;
}

.admin-dashboard .authorized-manager-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: visible;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.2);
}

.admin-dashboard .authorized-manager-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-dashboard .authorized-manager-table th,
.admin-dashboard .authorized-manager-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 9px 6px;
  color: #dbe5f1;
  text-align: center;
  vertical-align: middle;
}

.admin-dashboard .authorized-manager-table th {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-dashboard .authorized-manager-table th:first-child,
.admin-dashboard .authorized-manager-table td:first-child {
  width: 31%;
  text-align: left;
}

.admin-dashboard .authorized-manager-table th:last-child,
.admin-dashboard .authorized-manager-table td:last-child {
  width: 72px;
  text-align: right;
}

.admin-dashboard .authorized-manager-table tr:last-child td {
  border-bottom: 0;
}

.admin-dashboard .authorized-manager-table tbody tr:hover td {
  background: rgba(148, 163, 184, 0.06);
}

.admin-dashboard .authorized-manager-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-dashboard .authorized-manager-avatar {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.86);
}

.admin-dashboard .authorized-manager-avatar.placeholder {
  display: grid;
  place-items: center;
  color: #e0f2fe;
  font-weight: 850;
}

.admin-dashboard .authorized-manager-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-dashboard .authorized-manager-name,
.admin-dashboard .authorized-manager-login {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .authorized-manager-name {
  color: #f8fafc;
  font-size: 13px;
}

.admin-dashboard .authorized-manager-login {
  color: #94a3b8;
  font-size: 11px;
}

.admin-dashboard .permission-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  background: rgba(15, 23, 42, 0.56);
}

.admin-dashboard .permission-mark.enabled {
  border-color: rgba(34, 197, 94, 0.52);
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.32);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.admin-dashboard .authorized-manager-table .button {
  width: auto;
  min-width: 58px;
  min-height: 32px;
  padding: 0 9px;
  font-size: 12px;
}

.admin-dashboard .manageable-channel-table .button {
  min-width: 62px;
}

.admin-dashboard .home-settings-row .button,
.admin-dashboard .home-settings-row button {
  width: min(220px, 100%);
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-dashboard .home-settings-row .manager-invite-actions .button {
  width: min(100%, 236px);
}

.admin-dashboard .home-settings-row .switch-row {
  width: fit-content;
  font-weight: 740;
}

.admin-dashboard .home-settings-list #bot-toggle {
  min-height: 52px;
  padding: 10px 16px;
}

.admin-dashboard .home-settings-row .switch-row input:disabled + .switch-ui {
  opacity: 0.55;
}

.admin-dashboard .state-label.paused {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
}

.admin-dashboard .state-label.banned {
  color: #fecdd3;
  background: rgba(127, 29, 29, 0.24);
}

@media (max-width: 680px) {
  .admin-dashboard .home-settings-row {
    gap: 10px;
    min-height: 0;
    padding: 14px;
  }

  .admin-dashboard .home-settings-list #bot-toggle {
    min-height: 0;
    padding: 14px;
  }

  .admin-dashboard .home-settings-row .button,
  .admin-dashboard .home-settings-row button {
    width: 100%;
  }

  .admin-dashboard .manager-category-list,
  .admin-dashboard .manager-invite-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .manager-invite-panel .home-row-value {
    padding: 14px;
  }

  .admin-dashboard .manager-invite-help {
    position: relative;
  }

  .admin-dashboard .manager-invite-help-panel {
    position: absolute;
    left: 50%;
    right: auto;
    top: calc(100% + 10px);
    display: block;
    box-sizing: border-box;
    width: min(280px, calc(100vw - 110px));
    max-width: none;
    transform: translate(-50%, -4px);
  }

  .admin-dashboard .manager-invite-help:hover .manager-invite-help-panel,
  .admin-dashboard .manager-invite-help:focus-visible .manager-invite-help-panel {
    transform: translate(-50%, 0);
  }

  .admin-dashboard .manager-invite-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .manager-invite-actions .button {
    width: 100%;
  }

  .admin-dashboard .home-settings-row .icon-button {
    width: 38px;
  }
}

@media (max-width: 980px) {
  .admin-dashboard .home-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .admin-dashboard .admin-shell,
  .admin-dashboard .admin-shell.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 68px minmax(0, 1fr);
  }

  .admin-dashboard .sidebar,
  .admin-dashboard .sidebar-collapsed .sidebar {
    position: fixed;
    inset: 68px auto 0 0;
    z-index: 160;
    display: block;
    width: min(82vw, 312px);
    height: auto;
    max-height: none;
    padding: 14px 12px 18px;
    border-right: 1px solid var(--ops-border);
    border-bottom: 0;
    background: #080c16;
    box-shadow: 28px 0 44px rgba(0, 0, 0, 0.34);
    overflow-y: auto;
    transform: translateX(0);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .admin-dashboard .sidebar-collapsed .sidebar {
    pointer-events: none;
    transform: translateX(-104%);
    box-shadow: none;
  }

  .admin-dashboard .sidebar-nav,
  .admin-dashboard .sidebar-collapsed .sidebar-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 8px;
    align-content: start;
    width: 100%;
    margin-inline: 0;
    padding: 0;
    overflow-x: visible;
  }

  .admin-dashboard .nav-group,
  .admin-dashboard .nav-group[open],
  .admin-dashboard .admin-zone-nav {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
  }

  .admin-dashboard .nav-group summary,
  .admin-dashboard .nav-group .nav-item,
  .admin-dashboard .nav-primary-item,
  .admin-dashboard .nav-item {
    flex: initial;
    width: 100%;
    white-space: normal;
  }

  .admin-dashboard .nav-group summary {
    display: flex;
    justify-content: flex-start;
  }

  .admin-dashboard .nav-group summary::after {
    display: block;
    margin-left: auto;
  }

  .admin-dashboard .nav-group > .nav-item {
    display: flex;
    margin-top: 4px;
  }

  .admin-dashboard .nav-group:not([open]) .nav-item {
    display: none;
  }

  .admin-dashboard .sidebar-nav > .nav-group > .nav-item {
    width: calc(100% - 26px);
    margin-left: 26px;
  }

  .admin-dashboard .mobile-sidebar-scrim {
    position: fixed;
    inset: 68px 0 0;
    z-index: 150;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(3, 7, 18, 0.56);
    cursor: default;
  }

  .admin-dashboard .sidebar-collapsed .mobile-sidebar-scrim {
    display: none;
  }

  .admin-dashboard .dashboard-main,
  .admin-dashboard .sidebar-collapsed .dashboard-main {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .admin-dashboard .admin-shell {
    grid-template-columns: 272px minmax(0, 1fr);
    grid-template-rows: 72px minmax(0, 1fr);
  }

  .admin-dashboard .admin-shell.sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
    grid-template-rows: 72px minmax(0, 1fr);
  }

  .admin-dashboard .app-topbar {
    min-height: 72px;
    padding: 0 24px;
  }

  .admin-dashboard .sidebar {
    position: sticky;
    top: 72px;
    grid-column: 1;
    grid-row: 2;
    display: block;
    width: auto;
    height: calc(100vh - 72px);
    max-height: none;
    padding: 18px 16px;
    border-right: 1px solid var(--ops-border);
    border-bottom: 0;
    background: #080c16;
    box-shadow: none;
    overflow-y: auto;
    transform: none;
  }

  .admin-dashboard .sidebar-collapsed .sidebar {
    display: none;
  }

  .admin-dashboard .sidebar-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 8px;
    align-content: start;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .admin-dashboard .nav-group,
  .admin-dashboard .nav-group[open],
  .admin-dashboard .admin-zone-nav {
    display: grid;
    width: 100%;
    padding: 0;
    background: transparent;
  }

  .admin-dashboard .sidebar-nav > .nav-primary-item,
  .admin-dashboard .sidebar-nav > .nav-group > summary {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    white-space: normal;
  }

  .admin-dashboard .sidebar-nav > .nav-group > .nav-item {
    display: flex;
    width: calc(100% - 26px);
    margin-left: 26px;
    white-space: normal;
  }

  .admin-dashboard .dashboard-main,
  .admin-dashboard .sidebar-collapsed .dashboard-main {
    grid-column: 2;
    grid-row: 2;
  }

  .admin-dashboard .mobile-sidebar-scrim {
    display: none;
  }
}

.admin-dashboard .app-topbar .profile-avatar,
.admin-dashboard .app-topbar .profile-image,
.admin-dashboard .app-topbar .profile-fallback {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  aspect-ratio: 1;
  flex: 0 0 44px;
}

.admin-dashboard .app-topbar .profile-image {
  display: block;
  object-fit: cover;
}

.admin-dashboard .donation-record-layer-card {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.admin-dashboard .donation-record-layer-card .donation-settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.admin-dashboard .donation-record-layer-preview {
  display: flex;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgb(148 163 184 / 18%);
  border-radius: 8px;
  background: rgb(2 6 23 / 28%);
  gap: 10px;
}

.admin-dashboard .donation-record-layer-preview.title-left {
  flex-direction: row;
  align-items: center;
}

.admin-dashboard .donation-record-layer-preview.title-right {
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
}

.admin-dashboard .donation-record-layer-preview.title-top {
  flex-direction: column;
  align-items: center;
}

.admin-dashboard .donation-record-layer-preview.title-bottom {
  flex-direction: column-reverse;
  align-items: center;
}

.admin-dashboard .donation-record-layer-preview-title {
  max-width: 100%;
  max-height: 100%;
  color: #f8fafc;
  background: transparent;
  font-size: calc(0.92rem * 1.3);
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .donation-record-layer-preview-item {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: #f8fafc;
  background: rgb(15 23 42 / 88%);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.2;
  overflow: hidden;
}

.admin-dashboard .donation-record-layer-preview-item span,
.admin-dashboard .donation-record-layer-preview-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .donation-record-marquee-fields {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgb(148 163 184 / 18%);
}

.admin-dashboard .widget-layout-donation-records-layer {
  overflow: hidden;
}

@media (max-width: 980px) {
  .admin-dashboard #donation-records .donation-records-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .donation-record-layer-card {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-dashboard .donation-record-layer-card .donation-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .admin-dashboard .donation-record-layer-card .donation-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .app-topbar .profile-avatar,
  .admin-dashboard .app-topbar .profile-image,
  .admin-dashboard .app-topbar .profile-fallback {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    flex-basis: 38px;
  }
}


.admin-dashboard .widget-layout-prank-wheel-layer .prank-wheel-preview {
  position: absolute;
  inset: 50%;
  width: min(100cqw, 100cqh);
  border-width: calc(var(--layer-font-size) * 0.22);
  transform: translate(-50%, -50%);
}

.admin-dashboard .widget-layout-prank-wheel-layer .prank-wheel-preview-center {
  width: calc(var(--layer-font-size) * 2.5);
  height: calc(var(--layer-font-size) * 2.5);
}

.admin-dashboard .widget-layout-prank-wheel-layer .prank-wheel-preview-label {
  max-width: 28cqw;
  font-size: var(--layer-font-size);
}

.admin-dashboard .widget-layout-prank-wheel-layer .prank-wheel-preview-center-pointer {
  width: calc(var(--layer-font-size) * 1.1);
  height: calc(var(--layer-font-size) * 3);
}

.admin-dashboard .prank-wheel-page {
  display: grid;
  gap: 14px;
}

.admin-dashboard .raffle-page {
  display: grid;
  gap: 14px;
}

.admin-dashboard .video-queue-page {
  display: grid;
  gap: 14px;
}

.admin-dashboard .module-settings-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-dashboard .module-settings-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.admin-dashboard .module-back-link,
.admin-dashboard .module-layer-settings-link,
.admin-dashboard .module-event-actions-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(51, 65, 85, 0.72);
  color: #dbe4ef;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-dashboard .module-back-link:hover,
.admin-dashboard .module-back-link:focus-visible,
.admin-dashboard .module-layer-settings-link:hover,
.admin-dashboard .module-layer-settings-link:focus-visible,
.admin-dashboard .module-event-actions-link:hover,
.admin-dashboard .module-event-actions-link:focus-visible {
  border-color: rgba(125, 211, 252, 0.58);
  background: #263244;
  color: var(--text);
  outline: none;
}

.admin-dashboard .module-back-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-dashboard .module-event-actions-link {
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-dashboard .module-layer-settings-link.disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-dashboard .prank-wheel-prize-header,
.admin-dashboard .prank-wheel-copy-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-dashboard .prank-wheel-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .prank-wheel-link-grid {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .prank-wheel-copy-row input {
  flex: 1;
  min-width: 0;
}

.admin-dashboard .prank-wheel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0;
}

.admin-dashboard .prank-wheel-settings-column,
.admin-dashboard .prank-wheel-preview-column {
  display: grid;
  gap: 14px;
}

.admin-dashboard .raffle-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .raffle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0;
}

.admin-dashboard .raffle-settings-column,
.admin-dashboard .raffle-preview-column,
.admin-dashboard .raffle-form-card {
  display: grid;
  gap: 14px;
}

.admin-dashboard .raffle-enable-toggle {
  font-weight: 780;
}

.admin-dashboard .raffle-number-grid,
.admin-dashboard .raffle-test-grid,
.admin-dashboard .raffle-remove-grid,
.admin-dashboard .raffle-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-dashboard .raffle-action-card {
  display: grid;
  gap: 12px;
}

.admin-dashboard .raffle-test-grid,
.admin-dashboard .raffle-remove-grid {
  align-items: end;
}

.admin-dashboard .raffle-remove-grid {
  grid-template-columns: minmax(0, 2fr) minmax(96px, 1fr);
}

.admin-dashboard .raffle-test-grid .button,
.admin-dashboard .raffle-remove-grid .button {
  align-self: end;
  justify-self: stretch;
  min-height: 40px;
  min-width: 96px;
  padding-block: 8px;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-dashboard .raffle-stats-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
}

.admin-dashboard .raffle-stats-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-dashboard .raffle-stats-grid strong {
  color: var(--text);
  font-size: 1.55rem;
}

.admin-dashboard .raffle-entry-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-dashboard .raffle-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-dashboard .raffle-entry-row span {
  color: #a7f3d0;
  font-weight: 900;
}

.admin-dashboard .raffle-form-actions button {
  min-width: 116px;
}

.admin-dashboard .module-result-history-card {
  display: grid;
  gap: 12px;
}

.admin-dashboard .module-result-history-header,
.admin-dashboard .module-result-history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-dashboard .module-result-history-header strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.admin-dashboard .module-result-history-header span,
.admin-dashboard .module-result-history-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-dashboard .module-result-history-table-wrap {
  overflow-x: auto;
}

.admin-dashboard .module-result-history-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  color: var(--text);
  table-layout: fixed;
}

.admin-dashboard .module-result-history-table th,
.admin-dashboard .module-result-history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
  vertical-align: middle;
}

.admin-dashboard .module-result-history-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-dashboard .module-result-history-table td:last-child,
.admin-dashboard .module-result-history-table th:last-child {
  width: 84px;
  text-align: right;
  white-space: nowrap;
}

.admin-dashboard .module-result-history-table .button {
  min-width: 72px;
  padding: 7px 10px;
}

.admin-dashboard .module-result-history-pagination button {
  min-width: 88px;
}

.admin-dashboard .prank-wheel-form {
  display: grid;
  gap: 16px;
}

.admin-dashboard .command-page {
  display: grid;
  gap: 14px;
}

.admin-dashboard .command-custom-shell {
  display: grid;
  gap: 14px;
}

.admin-dashboard .command-custom-form {
  display: grid;
  gap: 12px;
}

.admin-dashboard .command-custom-top-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.admin-dashboard .command-custom-count {
  grid-column: 2;
  justify-self: center;
  color: #a7c7dd;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-dashboard .command-custom-action-buttons {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-self: end;
}

.admin-dashboard .command-built-in-row .template-summary,
.admin-dashboard .command-custom-row .template-summary {
  grid-template-columns: auto minmax(130px, 0.22fr) minmax(0, 1fr) auto auto 18px;
}

.admin-dashboard .command-built-in-row .template-summary::after,
.admin-dashboard .command-custom-row .template-summary::after {
  grid-column: 6;
}

.admin-dashboard .command-custom-create-row .template-summary {
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr) auto 18px;
}

.admin-dashboard .command-custom-create-row .template-summary::after {
  grid-column: 4;
}

.admin-dashboard .command-custom-create-row .template-summary .template-title {
  grid-column: 1;
}

.admin-dashboard .command-custom-create-row .template-summary .template-message-preview {
  grid-column: 2;
}

.admin-dashboard .command-custom-create-row .command-custom-inline-actions {
  grid-column: 3;
}

.admin-dashboard .command-custom-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.admin-dashboard .command-custom-primary-column,
.admin-dashboard .command-built-in-options-column,
.admin-dashboard .command-custom-options-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-dashboard .command-custom-primary-column > .field-label,
.admin-dashboard .command-response-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.admin-dashboard .command-response-field {
  grid-column: 1 / -1;
}

.admin-dashboard .command-custom-primary-column > .field-label input,
.admin-dashboard .command-custom-primary-column > .field-label select,
.admin-dashboard .command-response-field textarea {
  width: 100%;
}

.admin-dashboard .command-response-field textarea {
  min-height: 112px;
  resize: vertical;
}

.admin-dashboard .command-summary-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 4;
  min-width: 0;
}

.admin-dashboard .command-summary-meta span {
  border: 1px solid rgba(88, 199, 243, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.84);
  color: #a7c7dd;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.admin-dashboard .command-custom-inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 5;
}

.admin-dashboard .command-form-actions {
  padding-top: 2px;
}

.admin-dashboard .command-built-in-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.admin-dashboard .command-cooldown-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.admin-dashboard .command-cooldown-grid .field-label {
  display: grid;
  grid-template-columns: minmax(118px, max-content) minmax(0, 128px);
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}

.admin-dashboard .command-cooldown-grid .field-label span {
  white-space: nowrap;
}

.admin-dashboard .command-cooldown-grid .field-label input {
  width: 100%;
  min-width: 0;
}

.admin-dashboard .command-timer-settings {
  display: grid;
  gap: 12px;
}

.admin-dashboard .command-timer-toggle {
  justify-content: start;
  color: #cfe8ff;
  font-weight: 760;
}

.admin-dashboard .command-timer-settings .field-label {
  display: grid;
  grid-template-columns: minmax(118px, max-content) minmax(0, 128px);
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}

.admin-dashboard .command-timer-settings .field-label span {
  white-space: nowrap;
}

.admin-dashboard .command-timer-settings .field-label input {
  width: 100%;
  min-width: 0;
}

.admin-dashboard .command-permission-field {
  display: grid;
  width: min(340px, 100%);
}

.admin-dashboard .command-custom-primary-column .field-label,
.admin-dashboard .command-custom-primary-column .command-permission-field {
  width: 100%;
}

.admin-dashboard .command-custom-editor .command-alias-editor {
  align-self: start;
}

.admin-dashboard .command-permission-field span {
  white-space: nowrap;
}

.admin-dashboard .command-permission-field select {
  width: 100%;
}

.admin-dashboard .command-alias-editor {
  width: 100%;
  min-width: 0;
}

.admin-dashboard .command-alias-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-dashboard .command-alias-heading strong {
  color: #e2e8f0;
  font-size: 13px;
}

.admin-dashboard .command-custom-editor .command-alias-heading strong {
  color: #94a3b8;
}

.admin-dashboard .command-alias-heading span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 760;
}

.admin-dashboard .command-alias-input-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-dashboard .command-alias-input-row .field-label {
  display: grid;
  min-width: 0;
}

.admin-dashboard .command-alias-input-row input {
  width: 100%;
}

.admin-dashboard .template .command-alias-input-row button {
  grid-column: auto;
  justify-self: auto;
}

.admin-dashboard .command-alias-list {
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
}

.admin-dashboard .command-alias-row {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.admin-dashboard .command-alias-row .blocked-term-allowlist-remove {
  width: 34px;
  min-width: 34px;
}

.admin-dashboard .template .command-alias-row .blocked-term-allowlist-remove {
  grid-column: auto;
  justify-self: stretch;
}

.admin-dashboard .command-alias-editor .field-help,
.admin-dashboard .command-alias-editor .field-error {
  margin: -2px 0 0;
}

@media (max-width: 760px) {
  .admin-dashboard .command-built-in-editor,
  .admin-dashboard .command-custom-editor {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .command-built-in-row .template-summary,
  .admin-dashboard .command-custom-row .template-summary {
    grid-template-columns: auto minmax(0, 1fr) 18px;
  }

  .admin-dashboard .command-built-in-row .template-summary::after,
  .admin-dashboard .command-custom-row .template-summary::after {
    grid-column: 3;
    grid-row: 1;
  }

  .admin-dashboard .command-built-in-row .template-title,
  .admin-dashboard .command-custom-row .template-title {
    grid-column: 2;
    grid-row: 1;
  }

  .admin-dashboard .command-built-in-row .template-message-preview,
  .admin-dashboard .command-summary-meta,
  .admin-dashboard .command-custom-row .template-message-preview,
  .admin-dashboard .command-custom-inline-actions {
    grid-column: 1 / 4;
  }

  .admin-dashboard .command-summary-meta,
  .admin-dashboard .command-custom-inline-actions {
    justify-content: flex-start;
  }

  .admin-dashboard .command-cooldown-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .command-cooldown-grid .field-label,
  .admin-dashboard .command-timer-settings .field-label {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-dashboard .command-custom-create-row .template-summary {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .admin-dashboard .command-custom-create-row .template-summary .template-title {
    grid-column: 1;
  }

  .admin-dashboard .command-custom-create-row .template-summary .template-message-preview {
    grid-column: 1 / 3;
  }

  .admin-dashboard .command-custom-create-row .command-custom-inline-actions {
    grid-column: 1 / 3;
    justify-content: flex-start;
  }
}

.admin-dashboard .prank-wheel-enable-stack {
  display: flex;
  align-items: center;
}

.admin-dashboard .prank-wheel-enable-toggle {
  gap: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 780;
}

.admin-dashboard .prank-wheel-enable-toggle .switch-ui {
  flex: 0 0 auto;
}

.admin-dashboard .prank-wheel-prizes {
  display: grid;
  gap: 12px;
}

.admin-dashboard .prank-wheel-prize-header {
  justify-content: space-between;
}

.admin-dashboard .prank-wheel-prize-list {
  display: grid;
  gap: 10px;
}

.admin-dashboard .prank-wheel-prize-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-dashboard .prank-wheel-form-actions {
  gap: 10px;
}

.admin-dashboard .prank-wheel-form-actions button {
  min-width: 116px;
}

.admin-dashboard .prank-wheel-prize-row {
  display: grid;
  grid-template-columns: 44px minmax(150px, 1.5fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-dashboard .prank-wheel-color {
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 8px;
}

.admin-dashboard .prank-wheel-preview-card {
  overflow: hidden;
}

.admin-dashboard .prank-wheel-preview-surface {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-dashboard .prank-wheel-preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  background:
    radial-gradient(circle at center, rgba(250, 204, 21, 0.1), transparent 54%),
    rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}

.admin-dashboard .prank-wheel-preview {
  position: relative;
  z-index: 3;
  width: min(310px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid #fff;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.42),
    inset 0 0 0 3px rgba(255, 255, 255, 0.25),
    0 0 0 3px rgba(148, 163, 184, 0.82),
    0 0 0 7px rgba(255, 255, 255, 0.38);
}

.admin-dashboard .prank-wheel-preview-center {
  position: absolute;
  inset: 50%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    inset 0 0 0 10px rgba(226, 232, 240, 0.9),
    0 0 0 6px rgba(203, 213, 225, 0.62),
    0 12px 24px rgba(15, 23, 42, 0.34);
}

.admin-dashboard .prank-wheel-preview-label {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 88px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.62);
  overflow-wrap: anywhere;
}

.admin-dashboard .prank-wheel-preview-center-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 34px;
  height: 88px;
  background: #fff;
  clip-path: polygon(50% 0, 92% 100%, 8% 100%);
  transform: translate(-50%, -86%);
  transform-origin: 50% 86%;
  filter: drop-shadow(0 8px 10px rgba(15, 23, 42, 0.34));
}

.admin-dashboard .prank-wheel-preview-burst {
  position: absolute;
  inset: -18%;
  z-index: 1;
  pointer-events: none;
}

.admin-dashboard .prank-wheel-preview-firework {
  position: absolute;
  width: 6px;
  height: 6px;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: prank-wheel-preview-firework 1.45s ease-out var(--delay, 0ms) forwards;
}

.admin-dashboard .prank-wheel-preview-firework-ray {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 16px;
  border-radius: 999px;
  opacity: 0.68;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(calc(var(--distance) * -1))
    scaleY(0.2);
  transform-origin: 50% 100%;
  box-shadow: 0 0 11px currentColor;
}

@keyframes prank-wheel-preview-firework {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  18% {
    opacity: 0.64;
  }
  72% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.32);
  }
}

.admin-dashboard .prank-wheel-legend {
  display: grid;
  gap: 10px;
}

.admin-dashboard .prank-wheel-legend-row {
  display: grid;
  grid-template-columns: 16px minmax(90px, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.admin-dashboard .prank-wheel-legend-row span {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.admin-dashboard .prank-wheel-legend-row strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .admin-dashboard .prank-wheel-grid,
  .admin-dashboard .prank-wheel-prize-row {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .prank-wheel-copy-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .admin-dashboard .prank-wheel-preview-burst {
    inset: 0;
  }
}

.admin-dashboard .admin-shell.qr-download-shell,
.admin-dashboard .admin-shell.qr-download-shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .qr-download-shell .dashboard-main {
  grid-column: 1;
  justify-self: center;
  max-width: 620px;
}
