: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) minmax(180px, 220px);
  gap: 14px;
  align-items: center;
  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-sort {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.admin-dashboard .modules-sort span {
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-dashboard .modules-sort select {
  width: 100%;
  min-height: 44px;
  padding: 0 36px 0 14px;
  font-weight: 780;
}

.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-preview-chat-lines {
  position: absolute;
  inset: 30px;
  display: grid;
  grid-template-rows: repeat(4, auto);
  align-content: center;
  gap: 7px;
  padding: 12px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.36);
}

.admin-dashboard .module-preview-chat-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f8fafc;
  box-shadow: none;
}

.admin-dashboard .module-preview-chat-meta {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}

.admin-dashboard .module-preview-chat-lines strong {
  flex: 0 1 auto;
  min-width: 0;
  color: #a78bfa;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .module-preview-chat-lines span {
  flex: 1 1 auto;
  min-width: 0;
  color: #e5e7eb;
  overflow-wrap: anywhere;
}

.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-billing-status {
  padding: 2px 7px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-dashboard .module-billing-status.locked {
  border-color: rgba(251, 191, 36, 0.36);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}

.admin-dashboard .module-billing-status.icon-only {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  color: #facc15;
}

.admin-dashboard .module-billing-status.icon-only svg {
  width: 15px;
  height: 15px;
  display: block;
}

.admin-dashboard .module-price-text,
.admin-dashboard .module-lock-note,
.admin-dashboard .module-trial-note {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-dashboard .module-price-text {
  color: #cbd5e1;
  font-weight: 800;
}

.admin-dashboard .module-lock-note {
  color: #fde68a;
}

.admin-dashboard .module-trial-note {
  color: #93c5fd;
  font-weight: 820;
}

.admin-dashboard .module-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  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;
  flex: 1 1 116px;
  min-width: 108px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.admin-dashboard .module-enable-toggle > span:last-child {
  min-width: 2.5em;
  line-height: 1.25;
  white-space: nowrap;
  text-align: left;
}

.admin-dashboard .module-enable-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.admin-dashboard .module-switch-ui {
  position: relative;
  flex: 0 0 auto;
  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;
  flex: 0 0 auto;
  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 .module-trial-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 40px;
  min-width: 124px;
  padding: 0 16px;
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(250, 204, 21, 0.14), rgba(245, 158, 11, 0.07)),
    rgba(15, 23, 42, 0.58);
  color: #fde68a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 920;
  letter-spacing: 0;
  white-space: nowrap;
}

.admin-dashboard .module-trial-button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
}

.admin-dashboard .module-trial-button:hover:not(:disabled) {
  border-color: rgba(250, 204, 21, 0.78);
  background:
    linear-gradient(180deg, rgba(250, 204, 21, 0.2), rgba(245, 158, 11, 0.1)),
    rgba(15, 23, 42, 0.72);
  color: #fef3c7;
}

.admin-dashboard .module-trial-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

@media (max-width: 760px) {
  .admin-dashboard .module-card-footer {
    align-items: stretch;
  }

  .admin-dashboard .module-enable-toggle {
    width: 100%;
    flex-basis: 100%;
  }

  .admin-dashboard .module-edit-button,
  .admin-dashboard .module-trial-button {
    width: 100%;
  }
}

.admin-dashboard .billing-return-page {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.admin-dashboard .billing-return-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
}

.admin-dashboard .billing-return-header h3 {
  margin: 4px 0 8px;
  color: var(--text);
}

.admin-dashboard .billing-return-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-dashboard .billing-return-crown {
  width: 42px;
  height: 42px;
  color: #facc15;
}

.admin-dashboard .billing-return-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.admin-dashboard .billing-return-summary > div,
.admin-dashboard .billing-return-item {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-dashboard .billing-return-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.admin-dashboard .billing-return-items {
  display: grid;
  gap: 10px;
}

.admin-dashboard .billing-return-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
}

.admin-dashboard .billing-return-item span {
  color: var(--muted);
  font-weight: 800;
}

.admin-dashboard .billing-return-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.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 {
  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;
}

@media (min-width: 860px) {
  .admin-dashboard .event-action-config-field:has(.event-action-variable-panel) {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
    align-items: start;
  }

  .admin-dashboard .event-actions-layout-scoped .template-editor-panel.ea-fields-two-column:has(.event-action-variable-panel),
  .admin-dashboard .graph-binding-dialog .template-editor-panel.ea-fields-two-column:has(.event-action-variable-panel) {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .event-actions-layout-scoped .template-editor-panel.ea-fields-two-column:has(.event-action-variable-panel) > .ea-fields-col,
  .admin-dashboard .graph-binding-dialog .template-editor-panel.ea-fields-two-column:has(.event-action-variable-panel) > .ea-fields-col {
    grid-column: 1 / -1;
  }

  .admin-dashboard .event-actions-layout-scoped .event-action-config-field:has(.event-action-variable-panel),
  .admin-dashboard .graph-binding-dialog .event-action-config-field:has(.event-action-variable-panel) {
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  }
}

.admin-dashboard .event-action-message-field textarea {
  min-height: 96px;
}

.admin-dashboard .event-action-config-field:has(.event-action-variable-panel) .event-action-message-field {
  grid-column: auto;
}

.admin-dashboard .event-action-variable-panel {
  padding: 12px;
  overflow-x: visible;
}

.admin-dashboard .event-action-variable-panel .template-variable-list li {
  grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr) auto;
}

.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-actions-binding-count {
  color: #a7c7dd;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-dashboard .event-action-graph-board {
  position: relative;
  height: clamp(360px, 70vh, 560px);
  border-radius: 14px;
  /* 色票定義在 Phase 2b 區塊(檔尾)的 .admin-dashboard 上,與面板共用。 */
  border: 1px solid var(--ea-graph-border);
  background:
    radial-gradient(circle at 18% 12%, rgba(64, 142, 198, 0.14), transparent 38%),
    linear-gradient(160deg, var(--ea-graph-surface), rgba(10, 17, 26, 0.95));
  overflow: hidden;
}

.admin-dashboard .event-action-graph-canvas {
  position: absolute;
  inset: 0;
}

.admin-dashboard .event-action-graph-delete {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
}

.admin-dashboard .event-action-graph-board .vue-flow__handle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(15, 26, 36, 0.9);
  background: rgba(86, 156, 214, 0.9);
}

.admin-dashboard .event-action-graph-node-action .vue-flow__handle {
  background: rgba(62, 198, 198, 0.9);
}

.admin-dashboard .event-action-graph-node-event.result .vue-flow__handle {
  background: rgba(216, 181, 62, 0.9);
}

/* Live drop-target feedback while dragging a connection: red ring on the hovered
   candidate handle, green once isValidConnection passes. */
.admin-dashboard .event-action-graph-board .vue-flow__handle-connecting {
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.35);
}

.admin-dashboard .event-action-graph-board .vue-flow__handle-connecting.vue-flow__handle-valid {
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.35);
}

.admin-dashboard .event-action-graph-node-unwired {
  font-size: 11px;
  opacity: 0.7;
}

.admin-dashboard .event-action-graph-node.unwired {
  opacity: 0.75;
  border-style: dashed;
}

.admin-dashboard .vue-flow__edge.selected .event-action-graph-edge,
.admin-dashboard .event-action-graph-board .vue-flow__node.selected .event-action-graph-node {
  filter: brightness(1.25);
}

.admin-dashboard .event-action-graph-node {
  /* Sized by the dagre layout constants via CSS vars set on .event-action-graph-board. */
  width: var(--ea-graph-node-width, 200px);
  min-height: var(--ea-graph-node-height, 64px);
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(13, 26, 38, 0.92);
  border: 1.5px solid rgba(110, 168, 220, 0.45);
  color: #dce9f5;
}

.admin-dashboard .event-action-graph-node span {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.66;
}

.admin-dashboard .event-action-graph-node strong {
  font-size: 13px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.admin-dashboard .event-action-graph-node-event { border-color: rgba(86, 156, 214, 0.75); }
.admin-dashboard .event-action-graph-node-event.result {
  border-style: dashed;
  border-color: rgba(216, 181, 62, 0.8);
  background: rgba(40, 34, 14, 0.9);
}
.admin-dashboard .event-action-graph-node-action {
  border-color: rgba(62, 198, 198, 0.75);
  background: rgba(15, 36, 36, 0.92);
}
.admin-dashboard .event-action-graph-node.disabled { opacity: 0.48; }

.admin-dashboard .event-action-graph-board .vue-flow__edge { cursor: default; }
.admin-dashboard .event-action-graph-edge { stroke: rgba(120, 178, 228, 0.78); stroke-width: 2; }
.admin-dashboard .event-action-graph-edge.disabled { stroke: rgba(140, 150, 160, 0.5); stroke-dasharray: 6 4; }
.admin-dashboard .event-action-graph-emit-edge .vue-flow__edge-path {
  stroke: rgba(216, 181, 62, 0.7);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.admin-dashboard .event-action-graph-pill {
  position: absolute;
  width: var(--ea-graph-pill-width, 190px);
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(86, 140, 190, 0.6);
  background: rgba(14, 26, 38, 0.95);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #dce9f5;
  font-size: 11px;
  pointer-events: all;
  cursor: pointer;
}

.admin-dashboard .event-action-graph-pill strong { font-size: 12px; }
.admin-dashboard .event-action-graph-pill-conditions { opacity: 0.78; }
/* Clamp text so the pill stays close to the 190x48 slot dagre reserves for it. */
.admin-dashboard .event-action-graph-pill strong,
.admin-dashboard .event-action-graph-pill-conditions {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.admin-dashboard .event-action-graph-pill-source { opacity: 0.55; }
.admin-dashboard .event-action-graph-pill-status { color: #c8a13c; }
.admin-dashboard .event-action-graph-pill.disabled {
  border-color: rgba(120, 126, 134, 0.5);
  background: rgba(22, 22, 22, 0.92);
  color: #9aa3ab;
}

.admin-dashboard .event-action-graph-node-menu {
  position: relative;
}

.admin-dashboard .event-action-graph-node-menu-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 30;
  padding: 8px 0;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.admin-dashboard .event-action-graph-node-menu-empty {
  padding: 8px 14px;
  font-size: 13px;
  opacity: 0.6;
}

.admin-dashboard .event-action-graph-node-menu-group {
  display: flex;
  flex-direction: column;
}

.admin-dashboard .event-action-graph-node-menu-group > span {
  padding: 6px 14px 2px;
  font-size: 12px;
  opacity: 0.7;
}

.admin-dashboard .event-action-graph-node-menu-group > button {
  padding: 6px 14px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #cbd5e1;
  font-size: 13px;
}

.admin-dashboard .event-action-graph-node-menu-group > button:hover,
.admin-dashboard .event-action-graph-node-menu-group > button:focus-visible {
  background: rgba(56, 189, 248, 0.1);
  color: #f1f5f9;
}

@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;
}

/* 贊助連結 page: settings stack on the left, QR preview on the right. */
.admin-dashboard .donation-link-workspace {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.admin-dashboard .donation-link-left-column,
.admin-dashboard .donation-link-right-column {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.admin-dashboard .donation-link-page-card,
.admin-dashboard .donation-link-custom-card,
.admin-dashboard .donation-link-qr-card {
  width: 100%;
}

.admin-dashboard .donation-link-workspace .template-form-actions.sticky-page-actions.donation-link-actions {
  grid-column: 1 / -1;
}

.admin-dashboard .donation-link-minimum-card {
  display: grid;
  gap: 12px;
}

.admin-dashboard .donation-link-minimum-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.admin-dashboard .donation-link-minimum-field {
  flex: 0 1 240px;
}

.admin-dashboard .donation-link-minimum-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-dashboard .donation-link-minimum-input input {
  flex: 1;
  min-width: 0;
}

.admin-dashboard .donation-link-minimum-unit {
  color: var(--ops-muted);
  font-weight: 800;
}

.admin-dashboard .donation-link-minimum-row .save-action {
  flex: none;
}

@media (max-width: 980px) {
  .admin-dashboard .donation-link-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-dashboard .plus-feature-heading {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-dashboard .plus-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-dashboard .plus-feature-badge-icon {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: #facc15;
}

.admin-dashboard .plus-feature-badge-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.admin-dashboard .donation-link-custom-card {
  display: grid;
  gap: 14px;
}

.admin-dashboard .donation-link-slug-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.65fr);
  gap: 10px;
  align-items: end;
}

.admin-dashboard .donation-link-prefix-field input,
.admin-dashboard .donation-link-slug-field input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.admin-dashboard .donation-link-prefix-field input {
  color: #9fb2ce;
}

.admin-dashboard .donation-link-qr-card {
  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-empty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
}

.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: 900px;
  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-col-donor { width: 18%; }
.admin-dashboard .donation-record-col-message { width: 25%; }
.admin-dashboard .donation-record-col-amount { width: 10%; }
.admin-dashboard .donation-record-col-progress { width: 9%; }
.admin-dashboard .donation-record-col-provider { width: 8%; }
.admin-dashboard .donation-record-col-status { width: 8%; }
.admin-dashboard .donation-record-col-date { width: 12%; }
.admin-dashboard .donation-record-col-actions { width: 10%; }

.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-progress span {
  display: inline-block;
  max-width: 6em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.admin-dashboard .donation-record-provider,
.admin-dashboard .donation-record-status,
.admin-dashboard .donation-record-date {
  white-space: nowrap;
}

.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: 2400;
  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 .blocked-term-filter-settings {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .blocked-term-filter-toggle {
    width: 100%;
    min-width: 0;
  }

  .admin-dashboard .blocked-term-filter-toggle .settings-toggle-copy {
    min-width: 0;
  }

  .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;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible;
}

.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: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  padding: 0;
}

.admin-dashboard .donation-speech-variable-panel {
  grid-column: 1 / -1;
  margin-top: -2px;
}

.admin-dashboard .donation-actions {
  margin-top: 0;
  justify-content: flex-start;
}

/* Shared sticky action bar (see components/StickySaveBar.vue): dock a page's
   save/reset/action buttons to the bottom of the viewport so they stay reachable
   from any settings block; the unsaved indicator fades in only when dirty. */
.admin-dashboard .template-form-actions.sticky-page-actions {
  position: sticky;
  bottom: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--ops-border-strong, rgba(148, 163, 184, 0.28));
  border-radius: 10px;
  background: rgba(13, 20, 29, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.32);
}

.admin-dashboard .sticky-save-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ops-muted);
  font-size: 0.86rem;
  font-weight: 750;
  opacity: 0;
  transition: opacity 160ms ease;
}

.admin-dashboard .sticky-save-status.is-visible {
  opacity: 1;
}

.admin-dashboard .sticky-save-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ops-amber, #f5bc52);
  box-shadow: 0 0 0 3px rgba(245, 188, 82, 0.16);
}

.admin-dashboard .sticky-save-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.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 {
  /* Contain the preview header / help / on-canvas adjustment-control z-indexes
     (34 / 35 / 40) inside the card's own stacking context so they can no longer
     paint over the sticky save bar (z-index 5) or the sticky app-topbar
     (z-index 32, which shows Plus days + bot status) when the page scrolls. */
  isolation: isolate;
  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;
  border-radius: 0 !important;
  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;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 3cqh, 16px);
  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: static;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 52%;
  object-fit: contain;
}

.admin-dashboard .widget-alert-preview .alert-copy {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  padding: clamp(8px, 8cqh, 18px) clamp(10px, 5cqw, 18px);
}

.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 .widget-layout-inline-range-field {
  display: grid;
  gap: 8px;
}

.admin-dashboard .chat-overlay-opacity-field {
  grid-column: 1 / -1;
}

.admin-dashboard .widget-layout-inline-range-controls {
  display: grid;
  grid-template-columns: minmax(74px, 0.34fr) minmax(120px, 1fr) minmax(44px, auto);
  gap: 10px;
  align-items: center;
}

.admin-dashboard .widget-layout-inline-range-controls input[type="number"],
.admin-dashboard .widget-layout-inline-range-controls input[type="range"] {
  width: 100%;
}

.admin-dashboard .widget-layout-inline-range-controls output {
  color: var(--ops-muted, #94a3b8);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.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;
}

.admin-dashboard .donation-asset-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-dashboard .donation-asset-label {
  color: #dbe4ef;
  font-size: 0.92rem;
  font-weight: 750;
}

.admin-dashboard .donation-asset-preview-surface {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.55), rgba(8, 47, 73, 0.16)),
    #0b121d;
}

.admin-dashboard .donation-asset-preview-surface.is-empty {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.32);
}

.admin-dashboard .donation-asset-preview-audio {
  min-height: 0;
  padding: 16px;
}

.admin-dashboard .donation-asset-preview {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.admin-dashboard audio.donation-asset-preview {
  width: 100%;
  max-height: none;
}

.admin-dashboard .donation-asset-empty {
  margin: 0;
  color: var(--ops-muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.admin-dashboard .donation-asset-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-dashboard .donation-asset-upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(76, 201, 147, 0.48);
  border-radius: 6px;
  background: #1d5f47;
  color: #effdf7;
  font-weight: 800;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.admin-dashboard .donation-asset-upload-button:hover {
  border-color: rgba(104, 223, 173, 0.58);
  background: #267052;
}

.admin-dashboard .donation-asset-upload-button:active {
  transform: translateY(1px);
}

.admin-dashboard .donation-asset-upload-button:disabled {
  border-color: rgba(100, 116, 139, 0.22);
  background: #101722;
  color: #6f7d8f;
  cursor: not-allowed;
}

.admin-dashboard .donation-asset-actions .donation-asset-secondary,
.admin-dashboard .donation-asset-actions .donation-asset-remove {
  min-height: 38px;
  padding: 0 14px;
}

.admin-dashboard .donation-asset-remove:not(:disabled):hover {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(127, 29, 41, 0.32);
  color: #fecdd3;
}

.admin-dashboard .donation-asset-hint {
  margin: 0;
  color: var(--ops-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Asset upload modal — mirrors the blocked-term modal values for system consistency */
.admin-dashboard .asset-upload-scrim {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 11, 0.76);
  backdrop-filter: blur(6px);
}

.admin-dashboard .asset-upload-dialog {
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(132, 150, 170, 0.28);
  border-radius: 8px;
  background: #0d141d;
  color: var(--ops-text);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.46);
  animation: asset-upload-in 160ms ease;
}

@keyframes asset-upload-in {
  from { opacity: 0; transform: translateY(6px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-dashboard .asset-upload-dialog { animation: none; }
}

.admin-dashboard .asset-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-dashboard .asset-upload-head strong {
  color: #eef4fb;
  font-size: 16px;
  font-weight: 760;
}

.admin-dashboard .asset-upload-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--ops-border);
  border-radius: 7px;
  background: #121c28;
  color: #cbd5e1;
}

.admin-dashboard .asset-upload-close:hover {
  border-color: rgba(148, 163, 184, 0.42);
  background: #16212f;
  color: #f8fafc;
}

.admin-dashboard .asset-upload-dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 20px;
  cursor: pointer;
  text-align: center;
  border: 1.5px dashed rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.32);
  color: #cbd5e1;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.admin-dashboard .asset-upload-dropzone:hover {
  border-color: rgba(148, 163, 184, 0.46);
}

.admin-dashboard .asset-upload-dropzone.is-dragover {
  border-color: rgba(47, 208, 143, 0.7);
  border-style: solid;
  background: rgba(29, 95, 71, 0.22);
  color: #effdf7;
}

.admin-dashboard .asset-upload-dropzone > input[type="file"] {
  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 .asset-upload-glyph {
  color: #64758a;
  transition: color 140ms ease;
}

.admin-dashboard .asset-upload-dropzone.is-dragover .asset-upload-glyph {
  color: var(--ops-green);
}

.admin-dashboard .asset-upload-primary {
  margin: 2px 0 0;
  font-size: 0.96rem;
  font-weight: 750;
}

.admin-dashboard .asset-upload-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 220px;
  margin: 2px 0;
  color: var(--ops-muted);
  font-size: 0.8rem;
}

.admin-dashboard .asset-upload-or::before,
.admin-dashboard .asset-upload-or::after {
  content: "";
  height: 1px;
  background: rgba(148, 163, 184, 0.22);
}

.admin-dashboard .asset-upload-pick {
  margin-top: 2px;
  pointer-events: none;
}

.admin-dashboard .asset-upload-busy {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  background: rgba(11, 18, 29, 0.78);
  color: #cbd5e1;
  font-weight: 750;
}

.admin-dashboard .asset-upload-dropzone.is-busy {
  cursor: default;
  border-color: rgba(148, 163, 184, 0.3);
}

.admin-dashboard .asset-upload-dropzone.is-busy .asset-upload-busy {
  display: flex;
}

.admin-dashboard .asset-upload-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-top-color: var(--ops-green);
  animation: asset-upload-spin 720ms linear infinite;
}

@keyframes asset-upload-spin {
  to { transform: rotate(360deg); }
}

.admin-dashboard .asset-upload-hint {
  margin: 0;
  color: var(--ops-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

@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-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 img {
  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 img {
  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-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-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;
}

#gateway-chooser,
#progress-target-chooser {
  border: 1px solid #2b384d;
  border-radius: 8px;
  padding: 14px 16px;
}

#gateway-chooser legend,
#progress-target-chooser legend {
  font-size: 16px;
  font-weight: 800;
  padding: 0 6px;
}

#gateway-chooser-options,
#progress-target-chooser-options {
  display: grid;
  gap: 10px;
}

.donate-vip-reward-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #2b384d;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
  padding: 14px 16px;
  color: #e2e8f0;
}

.donate-vip-reward-panel[hidden] {
  display: none;
}

.donate-vip-reward-panel strong {
  font-size: 16px;
  font-weight: 900;
}

.donate-vip-reward-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.donate-vip-reward-panel li {
  color: #c4d3e7;
  font-size: 14px;
  font-weight: 750;
}

.donate-gateway-option,
.donate-progress-target-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
}

.donate-gateway-option input,
.donate-progress-target-option input {
  min-height: 0;
  width: auto;
  cursor: pointer;
}

.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;
  flex-wrap: wrap;
  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;
  font-size: 18px;
  line-height: 1.2;
  color: #f8fbff;
}

.admin-dashboard .context-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.admin-dashboard .context-identity-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(125, 211, 252, 0.5);
  background: rgba(15, 23, 42, 0.72);
}

.admin-dashboard .context-identity-avatar.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e0f2fe;
  font-weight: 850;
}

.admin-dashboard .context-identity-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-dashboard .context-identity-note {
  color: #9fb6c2;
  font-size: 12px;
}

.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;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 2px;
}

.dashboard-header h2 {
  font-size: 28px;
  line-height: 1.2;
}

.admin-dashboard .plus-membership-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(250, 204, 21, 0.46);
  border-radius: 8px;
  background: rgba(146, 64, 14, 0.28);
  color: #fde68a;
  padding: 0 14px;
  font-weight: 820;
  cursor: pointer;
}

.admin-dashboard .plus-membership-button:hover,
.admin-dashboard .plus-membership-button:focus-visible {
  border-color: rgba(250, 204, 21, 0.82);
  background: rgba(180, 83, 9, 0.36);
}

.admin-dashboard .plus-crown-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #facc15;
  flex: 0 0 auto;
}

.admin-dashboard .plus-crown-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.admin-dashboard .plus-modal-crown-icon {
  width: 32px;
  height: 32px;
}

.admin-dashboard .plus-membership-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.admin-dashboard .plus-membership-modal {
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  padding: 22px;
}

.admin-dashboard .plus-membership-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-dashboard .plus-membership-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-dashboard .plus-membership-title-row h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.35rem;
}

.admin-dashboard .plus-membership-title-row p {
  margin: 4px 0 0;
  color: var(--ops-muted);
  font-weight: 720;
}

.admin-dashboard .plus-membership-title-row .plus-membership-full-countdown {
  color: #facc15;
  font-size: 13px;
  font-weight: 860;
}

.admin-dashboard .plus-membership-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  padding: 16px;
}

.admin-dashboard .plus-info-card,
.admin-dashboard .plus-info-section {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  padding: 16px;
}

.admin-dashboard .plus-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  align-items: stretch;
}

.admin-dashboard .plus-benefits-card,
.admin-dashboard .plus-module-price-card {
  min-width: 0;
}

.admin-dashboard .plus-price-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.admin-dashboard .plus-info-card h4,
.admin-dashboard .plus-info-section h4 {
  margin: 6px 0 0;
  color: #f8fafc;
  font-size: 1.15rem;
}

.admin-dashboard .plus-info-card strong {
  display: block;
  margin-top: 0;
  color: #fde68a;
  font-size: 1.6rem;
  white-space: nowrap;
}

.admin-dashboard .plus-info-card p,
.admin-dashboard .plus-info-section p,
.admin-dashboard .plus-empty-note {
  margin: 8px 0 0;
  color: var(--ops-muted);
  font-weight: 720;
  line-height: 1.6;
}

.admin-dashboard .plus-info-section {
  margin-top: 0;
}

.admin-dashboard .plus-info-section-header {
  display: grid;
  gap: 2px;
}

.admin-dashboard .plus-benefit-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-dashboard .plus-benefit-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 8px;
  background: rgba(146, 64, 14, 0.12);
  color: #e5edf8;
  font-weight: 820;
}

.admin-dashboard .plus-benefit-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  color: #facc15;
  font-size: 14px;
  font-weight: 900;
}

.admin-dashboard .plus-info-price-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-dashboard .plus-info-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 10px 0;
}

.admin-dashboard .plus-info-price-row:last-child {
  border-bottom: 0;
}

.admin-dashboard .plus-info-price-row strong {
  color: #e5edf8;
}

.admin-dashboard .plus-info-price-row span {
  color: #fde68a;
  font-weight: 860;
}

.admin-dashboard .plus-back-action {
  margin-bottom: 14px;
}

.admin-dashboard .plus-membership-card strong {
  display: block;
  margin-top: 6px;
  color: #fde68a;
  font-size: 1.5rem;
}

.admin-dashboard .plus-membership-card .plus-cart-product-title {
  margin-top: 0;
  color: #e5edf8;
  font-size: 1.05rem;
  font-weight: 900;
}

.admin-dashboard .plus-cart-product-meta {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.admin-dashboard .plus-membership-card .plus-cart-price {
  margin-top: 0;
  color: #fde68a;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.admin-dashboard .plus-cart-note {
  display: block;
  margin-top: 0;
  color: var(--ops-muted);
  font-size: 0.92rem;
  font-weight: 720;
}

.admin-dashboard .plus-membership-primary-action {
  min-width: 180px;
}

.admin-dashboard .button.secondary.plus-trial-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-color: rgba(250, 204, 21, 0.46);
  background:
    linear-gradient(180deg, rgba(250, 204, 21, 0.16), rgba(245, 158, 11, 0.08)),
    rgba(15, 23, 42, 0.7);
  color: #fde68a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-weight: 920;
  white-space: nowrap;
}

.admin-dashboard .button.secondary.plus-trial-action:hover:not(:disabled) {
  border-color: rgba(250, 204, 21, 0.72);
  background:
    linear-gradient(180deg, rgba(250, 204, 21, 0.22), rgba(245, 158, 11, 0.11)),
    rgba(15, 23, 42, 0.82);
  color: #fef3c7;
}

.admin-dashboard .plus-trial-action-icon {
  width: 17px;
  height: 17px;
  color: #facc15;
  flex: 0 0 auto;
}

.admin-dashboard .plus-trial-action-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.admin-dashboard .plus-benefits-card .plus-trial-action {
  margin-top: 14px;
  width: 100%;
}

.admin-dashboard .plus-cart-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbeafe;
  font-weight: 820;
  white-space: nowrap;
}

.admin-dashboard .plus-cart-check input {
  width: 18px;
  height: 18px;
  accent-color: #facc15;
}

.admin-dashboard .plus-module-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-dashboard .plus-module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 12px 0;
}

.admin-dashboard .plus-module-row:last-child {
  border-bottom: 0;
}

.admin-dashboard .plus-module-row strong {
  display: block;
  color: #e5edf8;
}

.admin-dashboard .plus-module-row .plus-module-meta {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.admin-dashboard .plus-module-row .plus-module-price {
  color: #fde68a;
  font-size: 1.12rem;
  font-weight: 900;
}

.admin-dashboard .plus-module-row .plus-module-note {
  display: block;
  color: var(--ops-muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.admin-dashboard .plus-payment-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
  padding: 12px 16px;
}

.admin-dashboard .plus-payment-method-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-dashboard .plus-payment-method-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(13, 20, 34, 0.8);
  color: #dbe5f1;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.admin-dashboard .plus-payment-method-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #facc15;
}

.admin-dashboard .plus-payment-method-option.active {
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(146, 64, 14, 0.22);
  color: #fde68a;
}

.admin-dashboard .plus-cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 8px;
  background: rgba(146, 64, 14, 0.18);
  padding: 16px;
}

.admin-dashboard .plus-cart-summary strong {
  display: block;
  margin-top: 6px;
  color: #fde68a;
  font-size: 1.45rem;
}

.admin-dashboard .plus-cart-summary p {
  margin: 4px 0 0;
  color: var(--ops-muted);
  font-weight: 720;
}

@media (max-width: 760px) {
  .admin-dashboard .dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dashboard .plus-info-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .plus-membership-card,
  .admin-dashboard .plus-module-row,
  .admin-dashboard .plus-cart-summary,
  .admin-dashboard .plus-payment-method-card,
  .admin-dashboard .plus-info-price-row,
  .admin-dashboard .plus-price-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dashboard .plus-membership-primary-action,
  .admin-dashboard .plus-trial-action,
  .admin-dashboard .plus-module-row .button {
    width: 100%;
  }
}

.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: 220;
  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 .shoutout-page {
  display: grid;
  gap: 14px;
}

.admin-dashboard .module-settings-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.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);
  grid-template-areas:
    "enable enable"
    "prizes prizes"
    "preview results"
    "actions actions";
  gap: 14px;
  align-items: start;
  margin: 0;
}

.admin-dashboard .activity-wheel-settings-column,
.admin-dashboard .activity-wheel-preview-column {
  display: contents;
}

.admin-dashboard .activity-wheel-enable-card {
  grid-area: enable;
}

.admin-dashboard .activity-wheel-preview-card {
  grid-area: preview;
}

.admin-dashboard .activity-wheel-prizes-card {
  grid-area: prizes;
}

.admin-dashboard .activity-wheel-results-card {
  grid-area: results;
  min-width: 0;
}

.admin-dashboard .activity-wheel-form-actions {
  grid-area: actions;
}

.admin-dashboard .activity-wheel-prizes-card,
.admin-dashboard .activity-wheel-results-card,
.admin-dashboard .activity-wheel-preview-card {
  min-width: 0;
}

.admin-dashboard .activity-wheel-results-card .module-result-history-table-wrap,
.admin-dashboard .prank-wheel-results-card .module-result-history-table-wrap {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}

.admin-dashboard .activity-wheel-results-card .module-result-history-table thead,
.admin-dashboard .prank-wheel-results-card .module-result-history-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(15, 23, 42, 0.96);
}

.admin-dashboard .activity-wheel-results-card .module-result-history-pagination,
.admin-dashboard .prank-wheel-results-card .module-result-history-pagination {
  flex-wrap: wrap;
}

.admin-dashboard .chat-overlay-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .chat-overlay-settings-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: 16px;
  align-items: start;
  margin: 0;
}

.admin-dashboard .chat-overlay-settings-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-dashboard .chat-overlay-behavior-grid {
  align-items: end;
}

.admin-dashboard .chat-overlay-behavior-grid .donation-toggle-row {
  align-self: end;
  min-height: 48px;
}

.admin-dashboard .chat-overlay-retention-field {
  transition: opacity 0.16s ease, filter 0.16s ease;
}

.admin-dashboard .chat-overlay-retention-field.disabled {
  opacity: 0.55;
  filter: grayscale(0.25);
}

.admin-dashboard .chat-overlay-retention-field.disabled input {
  cursor: not-allowed;
}

.admin-dashboard .chat-overlay-preview-column {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
  min-width: 0;
  align-self: start;
}

.admin-dashboard .chat-overlay-preview-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}

.admin-dashboard .chat-overlay-preview-header {
  align-items: baseline;
}

.admin-dashboard .chat-overlay-preview-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-dashboard .chat-overlay-preview-stage {
  overflow: hidden;
  border: 1px solid rgba(110, 168, 220, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(3, 7, 18, 0.96)),
    rgba(2, 6, 23, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-dashboard .chat-overlay-preview-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(110, 168, 220, 0.16);
}

.admin-dashboard .chat-overlay-preview-toolbar span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.admin-dashboard .chat-overlay-preview-viewport {
  display: grid;
  height: 320px;
  min-height: 320px;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 16%, rgba(155, 77, 255, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.5), rgba(2, 6, 23, 0.78));
}

.admin-dashboard .chat-overlay-settings-preview.chat-overlay-widget {
  --chat-overlay-font-size: 20px;
  align-self: end;
  display: grid;
  align-content: end;
  width: 100%;
  height: 100%;
  min-height: 198px;
  box-sizing: border-box;
  padding: 0.52em;
  overflow: hidden;
  border-radius: 0.32em;
  background: rgba(0, 0, 0, 0.74);
  background: color-mix(in srgb, var(--chat-overlay-bg, #000000) 74%, transparent);
  color: var(--chat-overlay-text, #fafafa);
  font-size: var(--chat-overlay-font-size);
  line-height: 1.15;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.36);
}

.admin-dashboard .widget-layout-chat-overlay-preview.chat-overlay-widget {
  min-height: 0;
  box-shadow: none;
}

.admin-dashboard .chat-overlay-settings-preview.chat-overlay-widget.preset-twitch-classic {
  min-height: 160px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.admin-dashboard .chat-overlay-settings-preview.chat-overlay-widget.preset-clean-translucent {
  padding: 0.42em;
  border-radius: 0.36em;
  background: transparent;
}

.admin-dashboard .chat-overlay-settings-preview.chat-overlay-widget.preset-compact-list {
  min-height: 160px;
  padding: 0.28em;
  border-radius: 0.18em;
  background: transparent;
}

.admin-dashboard .chat-overlay-settings-preview .chat-overlay-list {
  display: grid;
  align-content: end;
  gap: 0.22em;
  min-height: 0;
  overflow: hidden;
}

.admin-dashboard .chat-overlay-settings-preview .chat-overlay-row {
  display: block;
  gap: 0.24em;
  min-width: 0;
  max-width: 100%;
  padding: 0.2em 0.28em;
  border-radius: 0.22em;
  background: rgba(0, 0, 0, 0.32);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.54);
}

.admin-dashboard .chat-overlay-settings-preview .chat-overlay-row.enter {
  animation: chat-overlay-preview-enter 180ms ease-out both;
}

.admin-dashboard .chat-overlay-settings-preview .chat-overlay-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.24em;
  min-width: 0;
  vertical-align: baseline;
}

.admin-dashboard .chat-overlay-settings-preview .chat-overlay-platform,
.admin-dashboard .chat-overlay-settings-preview .chat-overlay-badge {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 0.86em;
  height: 0.86em;
  min-width: 0.7em;
  min-height: 0.7em;
  line-height: 1.1;
}

.admin-dashboard .chat-overlay-settings-preview .chat-overlay-platform img,
.admin-dashboard .chat-overlay-settings-preview .chat-overlay-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-dashboard .chat-overlay-settings-preview .chat-overlay-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 10em;
  overflow: hidden;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .chat-overlay-settings-preview .chat-overlay-name::after {
  content: ":";
}

.admin-dashboard .chat-overlay-settings-preview .chat-overlay-message-text {
  display: inline;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--chat-overlay-text, #fafafa);
  font-weight: 750;
  word-break: break-word;
}

.admin-dashboard .chat-overlay-settings-preview.preset-twitch-classic .chat-overlay-list {
  grid-auto-flow: column;
  grid-template-columns: repeat(var(--chat-overlay-visible-count, 1), minmax(0, 1fr));
  grid-auto-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  align-content: stretch;
  gap: 0.4em;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.admin-dashboard .chat-overlay-settings-preview.preset-twitch-classic .chat-overlay-row {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.24em;
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: 0.38em 0.44em;
  border: 0.05em solid rgba(255, 255, 255, 0.15);
  border-radius: 0.34em;
  background: color-mix(in srgb, var(--chat-overlay-bg, #000000) 58%, transparent);
  box-shadow: 0 0.38em 0.9em rgba(0, 0, 0, 0.3);
}

.admin-dashboard .chat-overlay-settings-preview.preset-twitch-classic .chat-overlay-message-text {
  display: block;
  min-height: 0;
  overflow: hidden;
  font-size: 0.88em;
  line-height: 1.2;
}

.admin-dashboard .chat-overlay-settings-preview.preset-clean-translucent .chat-overlay-list {
  gap: 0.34em;
  justify-items: start;
}

.admin-dashboard .chat-overlay-settings-preview.preset-clean-translucent .chat-overlay-row {
  width: fit-content;
  gap: 0.18em;
  padding: 0.34em 0.42em 0.38em;
  border: 0.05em solid rgba(255, 255, 255, 0.16);
  border-radius: 0.5em 0.5em 0.5em 0.12em;
  background: color-mix(in srgb, var(--chat-overlay-bg, #000000) 82%, transparent);
  box-shadow: 0 0.4em 0.9em rgba(0, 0, 0, 0.34);
}

.admin-dashboard .chat-overlay-settings-preview.preset-clean-translucent .chat-overlay-message-text {
  overflow-wrap: anywhere;
}

.admin-dashboard .chat-overlay-settings-preview.preset-compact-list .chat-overlay-row {
  gap: 0.18em;
  padding: 0.1em 0.18em;
  background: transparent;
}

.admin-dashboard .chat-overlay-settings-preview.preset-compact-list .chat-overlay-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
  min-width: 0;
  white-space: nowrap;
}

@keyframes chat-overlay-preview-enter {
  from {
    opacity: 0;
    transform: translateY(0.42em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-dashboard .raffle-settings-column,
.admin-dashboard .raffle-preview-column,
.admin-dashboard .raffle-form-card {
  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(140px, 0.86fr) minmax(84px, 0.28fr) minmax(184px, 0.56fr) auto;
  grid-template-areas: "color name weight quantity remove";
  gap: 10px 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-dashboard .prank-wheel-prize-row {
  grid-template-columns: 44px minmax(112px, 0.72fr) minmax(72px, 0.2fr) minmax(72px, 0.2fr) minmax(190px, 0.5fr) auto;
  grid-template-areas: "color name display probability quantity remove";
}

.admin-dashboard .activity-wheel-prize-row.is-sold-out,
.admin-dashboard .prank-wheel-prize-row.is-sold-out {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.16);
}

.admin-dashboard .activity-wheel-prize-row .activity-wheel-color {
  grid-area: color;
  align-self: center;
}

.admin-dashboard .wheel-prize-name-field {
  grid-area: name;
  min-width: 0;
}

.admin-dashboard .wheel-prize-weight-field {
  grid-area: weight;
}

.admin-dashboard .wheel-prize-display-field {
  grid-area: display;
}

.admin-dashboard .wheel-prize-probability-field {
  grid-area: probability;
}

.admin-dashboard .wheel-prize-quantity-controls {
  grid-area: quantity;
  display: block;
  min-width: 184px;
}

.admin-dashboard .wheel-prize-quantity-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-dashboard .wheel-prize-mode-input {
  display: grid;
  grid-template-columns: auto minmax(72px, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-dashboard .wheel-prize-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 820;
  white-space: nowrap;
  cursor: pointer;
}

.admin-dashboard .wheel-prize-mode-switch .switch-ui {
  width: 48px;
  height: 28px;
}

.admin-dashboard .wheel-prize-mode-switch .switch-ui::after {
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
}

.admin-dashboard .wheel-prize-mode-switch input:checked + .switch-ui::after {
  transform: translateX(20px);
}

.admin-dashboard .wheel-prize-mode-text {
  display: inline-flex;
  align-items: center;
  min-width: 2.25em;
  line-height: 28px;
}

.admin-dashboard .wheel-prize-mode-input > input[type="number"] {
  width: 100%;
  min-width: 72px;
}

.admin-dashboard .wheel-prize-mode-input > input[type="number"]:disabled {
  color: #94a3b8;
  opacity: 0.66;
  cursor: not-allowed;
}

.admin-dashboard .wheel-prize-mode-input > input[type="number"]:disabled:hover {
  border-color: var(--border);
}

.admin-dashboard .wheel-prize-mode-input > input[type="number"]:disabled:focus {
  outline: none;
}

.admin-dashboard .wheel-prize-mode-input > input[type="number"]:disabled::placeholder {
  color: #64748b;
}

.admin-dashboard .wheel-prize-mode-input > input[type="number"]:disabled {
  background: rgba(15, 23, 42, 0.42);
}

.admin-dashboard .wheel-prize-mode-input > input[type="number"]::-webkit-outer-spin-button,
.admin-dashboard .wheel-prize-mode-input > input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
}

.admin-dashboard .wheel-prize-mode-input > input[type="number"] {
  appearance: textfield;
}

.admin-dashboard .wheel-prize-mode-input > input[type="number"]:not(:disabled) {
  color: var(--text);
}

.admin-dashboard .wheel-prize-mode-input > input[type="number"]:disabled {
  -webkit-text-fill-color: #94a3b8;
}

.admin-dashboard .activity-wheel-color {
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 8px;
}

.admin-dashboard .wheel-prize-remove-button {
  grid-area: remove;
  align-self: center;
  justify-self: end;
  min-width: 44px;
  padding-inline: 10px;
}

.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 .chat-overlay-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .chat-overlay-preview-column {
    position: static;
    order: -1;
  }

  .admin-dashboard .chat-overlay-preview-viewport {
    height: 320px;
    min-height: 320px;
  }

  .admin-dashboard .activity-wheel-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "enable"
      "preview"
      "prizes"
      "results"
      "actions";
  }

  .admin-dashboard .activity-wheel-prize-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
      "color name remove"
      "weight weight weight"
      "quantity quantity quantity";
  }

  .admin-dashboard .activity-wheel-copy-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .admin-dashboard .wheel-prize-quantity-controls {
    min-width: 0;
  }
}

@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 .r2-overview-card {
  margin-bottom: 16px;
}

.admin-dashboard .r2-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-dashboard .r2-overview-header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 20px;
  line-height: 1.2;
}

.admin-dashboard .r2-overview-header p {
  margin: 4px 0 0;
  color: var(--ops-muted);
  font-size: 0.86rem;
}

.admin-dashboard .r2-detail-item {
  grid-template-columns: 92px minmax(0, 1fr);
}

.admin-dashboard .r2-detail-value {
  min-width: 0;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
  text-align: right;
}

.admin-dashboard .r2-overview-actions {
  display: flex;
}

.admin-dashboard .r2-overview-actions .button {
  min-width: 132px;
  min-height: 38px;
  justify-content: center;
}

.admin-dashboard .r2-test-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-dashboard .r2-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-dashboard .r2-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.48);
}

.admin-dashboard .r2-step-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #64748b;
}

.admin-dashboard .r2-step.is-ok .r2-step-dot {
  background: var(--ops-green);
  box-shadow: 0 0 0 3px rgba(47, 208, 143, 0.16);
}

.admin-dashboard .r2-step.is-fail .r2-step-dot {
  background: var(--ops-red);
  box-shadow: 0 0 0 3px rgba(255, 122, 138, 0.16);
}

.admin-dashboard .r2-step-label {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 750;
}

.admin-dashboard .r2-step-detail {
  grid-column: 2;
  color: var(--ops-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 640px) {
  .admin-dashboard .r2-step-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.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;
}

.variable-insert-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.variable-insert-heading .meta-label {
  margin: 0;
}

.variable-insert-heading span {
  color: var(--ops-dim, #94a3b8);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.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;
}

.variable-insert-list {
  gap: 8px;
}

.template-variable-list li.variable-insert-row {
  grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
}

.template-variable-list li.variable-insert-row:hover {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(20, 34, 55, 0.72);
}

.template-variable-list .variable-insert-token {
  white-space: nowrap;
}

.template-variable-list .variable-insert-description {
  align-self: center;
  min-width: 0;
  line-height: 1.35;
}

.variable-insert-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 7px;
  background: #164e63;
  color: #dffaff;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.variable-insert-button:hover,
.variable-insert-button:focus-visible {
  border-color: rgba(103, 232, 249, 0.45);
  background: #155e75;
  outline: none;
  transform: translateY(-1px);
}

.variable-insert-button.inserted {
  border-color: rgba(134, 239, 172, 0.55);
  background: rgba(22, 101, 52, 0.86);
  color: #dcfce7;
}

.variable-insert-empty {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  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;
  }

  .template-variable-list li.variable-insert-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .variable-insert-button {
    width: 100%;
  }

  .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-table-card > .control-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-dashboard .admin-users-page-head {
  display: grid;
  gap: 2px;
}

.admin-dashboard .admin-users-page-head strong {
  font-size: 1.18rem;
}

.admin-dashboard .admin-users-summary-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-dashboard .admin-users-summary-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  color: var(--ops-muted);
  font-size: 0.82rem;
  font-weight: 760;
  white-space: nowrap;
}

.admin-dashboard .admin-users-summary-strip strong {
  color: var(--text);
  font-size: 0.95rem;
}

.admin-dashboard .admin-registration-card {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  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-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

.admin-dashboard .admin-registration-switch {
  flex: 0 0 auto;
  width: auto;
  min-width: 190px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.48);
  font-weight: 760;
  white-space: nowrap;
}

.admin-dashboard .admin-review-switch {
  min-width: 202px;
}

.admin-dashboard .admin-registration-limit-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.admin-dashboard .admin-registration-limit-field {
  display: grid;
  gap: 6px;
  min-width: 160px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-dashboard .registration-limit-input {
  width: 140px;
  min-height: 38px;
  border-radius: 8px;
}

.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 .admin-billing-settings-form {
  display: grid;
  gap: 18px;
}

.admin-dashboard .admin-billing-settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.admin-dashboard .billing-settings-grid {
  grid-template-columns: minmax(220px, 320px) minmax(180px, 1fr);
}

.admin-dashboard .billing-price-preview {
  justify-content: flex-end;
}

.admin-dashboard .billing-price-preview strong {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: 1.05rem;
}

.admin-dashboard .admin-billing-page-actions {
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 2px;
}

.admin-dashboard .module-pricing-table-wrap {
  margin-top: 4px;
}

.admin-dashboard .module-pricing-table {
  min-width: 0;
  table-layout: fixed;
}

.admin-dashboard .module-pricing-table th:nth-child(1),
.admin-dashboard .module-pricing-table td:nth-child(1) {
  width: 46%;
}

.admin-dashboard .module-pricing-table th:nth-child(2),
.admin-dashboard .module-pricing-table td:nth-child(2) {
  width: 22%;
}

.admin-dashboard .module-pricing-table th:nth-child(3),
.admin-dashboard .module-pricing-table td:nth-child(3) {
  width: 32%;
}

.admin-dashboard .module-price-field input {
  min-width: 120px;
}

.admin-dashboard .admin-payment-settings-workspace {
  max-width: 760px;
}

.admin-dashboard .opay-preflight-card {
  display: grid;
  gap: 18px;
}

.admin-dashboard .opay-preflight-list {
  display: grid;
  gap: 10px;
}

.admin-dashboard .opay-preflight-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
}

.admin-dashboard .opay-preflight-row.ok {
  border-color: rgba(16, 185, 129, 0.32);
}

.admin-dashboard .opay-preflight-row.warning {
  border-color: rgba(251, 191, 36, 0.34);
}

.admin-dashboard .opay-preflight-status {
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.admin-dashboard .opay-preflight-row.ok .opay-preflight-status {
  background: rgba(16, 185, 129, 0.16);
  color: #86efac;
}

.admin-dashboard .opay-preflight-row.warning .opay-preflight-status {
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
}

.admin-dashboard .opay-preflight-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-dashboard .opay-preflight-copy strong {
  color: var(--text);
}

.admin-dashboard .opay-preflight-copy small,
.admin-dashboard .opay-preflight-note {
  color: #9fb2ce;
  line-height: 1.6;
}

.admin-dashboard .opay-preflight-url-list {
  display: grid;
  gap: 12px;
}

.admin-dashboard .opay-preflight-url input {
  color: #bae6fd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.admin-dashboard .opay-preflight-note {
  margin: 0;
}

.admin-dashboard .success-message {
  margin: 14px 0 0;
  color: #15803d;
  font-weight: 700;
}

.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-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ops-muted);
  font-size: 13px;
  font-weight: 760;
}

.admin-dashboard .admin-users-search input,
.admin-dashboard .admin-users-page-size select {
  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-page-size select {
  min-width: 82px;
}

.admin-dashboard .admin-users-review-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
}

.admin-dashboard .admin-users-review-filter-button {
  min-height: 30px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #9fb2ce;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-dashboard .admin-users-review-filter-button:hover,
.admin-dashboard .admin-users-review-filter-button:focus-visible {
  border-color: rgba(148, 163, 184, 0.24);
  color: #e5edf8;
}

.admin-dashboard .admin-users-review-filter-button.active {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(14, 165, 233, 0.16);
  color: #dff6ff;
}

.admin-dashboard .admin-users-count {
  color: #9fb2ce;
  font-size: 13px;
  white-space: nowrap;
}

.admin-dashboard .admin-billing-orders-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-dashboard .admin-billing-orders-filter {
  display: grid;
  gap: 6px;
  min-width: 180px;
  color: var(--ops-muted);
  font-size: 13px;
  font-weight: 760;
}

.admin-dashboard .admin-billing-orders-filter select {
  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-billing-orders-filter select option {
  background: #111827;
  color: #e5edf8;
}

.admin-dashboard .admin-billing-orders-count {
  margin-left: auto;
  color: #9fb2ce;
  font-size: 13px;
  white-space: nowrap;
}

.admin-dashboard .admin-broadcaster-table {
  width: 100%;
  min-width: 1180px;
  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-summary-row {
  cursor: pointer;
}

.admin-dashboard .admin-user-summary-row:hover td,
.admin-dashboard .admin-user-summary-row.expanded td {
  background: rgba(59, 130, 246, 0.07);
}

.admin-dashboard .admin-billing-orders-table td small,
.admin-dashboard .admin-billing-order-row td small {
  display: block;
  margin-top: 4px;
  color: #9fb2ce;
  font-size: 12px;
}

.admin-dashboard .admin-billing-order-row {
  cursor: pointer;
}

.admin-dashboard .admin-billing-order-row:hover td,
.admin-dashboard .admin-billing-order-row.expanded td {
  background: rgba(59, 130, 246, 0.07);
}

.admin-dashboard .admin-billing-order-detail-row td {
  padding: 0 10px 14px;
  background: rgba(8, 13, 24, 0.34);
}

.admin-dashboard .admin-billing-order-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
}

.admin-dashboard .admin-billing-order-detail > div,
.admin-dashboard .admin-billing-order-items {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-dashboard .admin-billing-order-detail span,
.admin-dashboard .admin-billing-order-detail small {
  color: #9fb2ce;
  font-size: 12px;
}

.admin-dashboard .admin-billing-order-detail strong {
  color: #e5edf8;
  overflow-wrap: anywhere;
}

.admin-dashboard .admin-billing-order-items {
  grid-column: 1 / -1;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(8, 13, 24, 0.42);
}

.admin-dashboard .admin-billing-order-item {
  display: grid;
  grid-template-columns: minmax(90px, 0.3fr) minmax(180px, 1fr) minmax(90px, 0.3fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
}

.admin-dashboard .admin-user-billing-row td {
  padding: 0 10px 14px;
  background: rgba(8, 13, 24, 0.34);
}

.admin-dashboard .admin-user-billing-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 2px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-dashboard .admin-user-billing-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-dashboard .admin-user-billing-panel-header > div {
  display: grid;
  gap: 3px;
}

.admin-dashboard .admin-user-billing-panel-header strong {
  color: #f8fafc;
  font-size: 14px;
}

.admin-dashboard .admin-user-billing-panel-header span {
  color: #94a3b8;
  font-size: 12px;
}

.admin-dashboard .admin-user-billing-panel-header .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.admin-dashboard .admin-user-billing-loading,
.admin-dashboard .admin-user-billing-error,
.admin-dashboard .admin-user-billing-empty {
  color: #9fb2ce;
  font-size: 13px;
}

.admin-dashboard .admin-user-billing-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fecdd3;
}

.admin-dashboard .admin-user-billing-plus,
.admin-dashboard .admin-user-billing-modules,
.admin-dashboard .admin-user-billing-actions {
  display: grid;
  gap: 8px;
}

.admin-dashboard .admin-user-billing-plus > span,
.admin-dashboard .admin-user-billing-modules > span,
.admin-dashboard .admin-user-billing-actions > span {
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-dashboard .admin-user-billing-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(300px, 1fr);
  gap: 14px;
}

.admin-dashboard .admin-user-billing-plus {
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.36);
}

.admin-dashboard .admin-user-billing-plus small,
.admin-dashboard .admin-user-entitlement-button {
  grid-column: 1 / -1;
}

.admin-dashboard .admin-user-billing-plus small,
.admin-dashboard .admin-user-billing-module small {
  color: #9fb2ce;
  font-size: 12px;
}

.admin-dashboard .admin-user-billing-module-list {
  display: grid;
  gap: 8px;
}

.admin-dashboard .admin-user-billing-modules {
  grid-column: 1 / -1;
}

.admin-dashboard .admin-user-billing-module {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(190px, max-content) minmax(190px, 0.7fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
}

.admin-dashboard .admin-user-billing-module-statuses {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.admin-dashboard .admin-user-entitlement-button {
  justify-self: start;
}

.admin-dashboard .admin-user-expand-button {
  display: inline-flex;
  min-width: 68px;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
}

.admin-dashboard .admin-user-entitlement-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.64);
  backdrop-filter: blur(6px);
}

.admin-dashboard .admin-user-entitlement-panel {
  width: min(640px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 48px));
  overflow-y: auto;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

.admin-dashboard .admin-user-entitlement-panel-header,
.admin-dashboard .admin-user-entitlement-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-dashboard .admin-user-entitlement-panel-header strong {
  display: block;
  color: #f8fafc;
  font-size: 20px;
}

.admin-dashboard .admin-user-entitlement-panel-header p,
.admin-dashboard .admin-user-entitlement-section-header span {
  margin: 4px 0 0;
  color: #9fb2ce;
  font-size: 13px;
}

.admin-dashboard .admin-user-entitlement-plus-expiry {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.54);
  color: #dbe4ef;
}

.admin-dashboard .admin-user-entitlement-plus-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-weight: 800;
  cursor: pointer;
}

.admin-dashboard .admin-user-entitlement-plus-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #facc15;
}

.admin-dashboard .admin-user-entitlement-plus-datetime {
  display: grid;
  gap: 8px;
}

.admin-dashboard .admin-user-entitlement-plus-datetime > span {
  color: #f8fafc;
  font-weight: 800;
}

.admin-dashboard .admin-user-entitlement-plus-datetime input {
  width: min(260px, 100%);
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.5);
  color: #f8fafc;
  color-scheme: dark;
  padding: 9px 12px;
  font: inherit;
}

.admin-dashboard .admin-user-entitlement-plus-datetime input:disabled {
  opacity: 0.5;
}

.admin-dashboard .admin-user-entitlement-plus-datetime small {
  color: #9fb2ce;
  font-size: 12px;
}

.admin-dashboard .admin-user-entitlement-modules {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.54);
  color: #dbe4ef;
}

.admin-dashboard .admin-user-entitlement-module-list {
  display: grid;
  gap: 10px;
}

.admin-dashboard .admin-user-entitlement-module {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 0.72fr) minmax(130px, 0.5fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.72);
  color: #dbe4ef;
}

.admin-dashboard .admin-user-entitlement-module-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 8px;
  min-width: 0;
}

.admin-dashboard .admin-user-entitlement-module-title,
.admin-dashboard .admin-user-entitlement-module-action {
  display: grid;
  gap: 6px;
}

.admin-dashboard .admin-user-entitlement-module-title strong,
.admin-dashboard .admin-user-entitlement-module-title small,
.admin-dashboard .admin-user-entitlement-module-action span {
  display: block;
}

.admin-dashboard .admin-user-entitlement-module-title small,
.admin-dashboard .admin-user-entitlement-module-action span {
  margin-top: 3px;
  color: #9fb2ce;
  font-size: 12px;
}

.admin-dashboard .admin-user-entitlement-module-action select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
}

.admin-dashboard .admin-user-entitlement-module-meta small {
  margin-top: 0;
  text-align: right;
}

.admin-dashboard .admin-user-entitlement-error {
  margin: 0;
  color: #fecdd3;
  font-size: 13px;
}

.admin-dashboard .admin-user-entitlement-actions {
  justify-content: flex-end;
}

.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 .state-label.muted {
  color: #94a3b8;
  background: rgba(51, 65, 85, 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-user-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: none;
}

.admin-dashboard .admin-user-row-actions .button,
.admin-dashboard .admin-user-row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.admin-dashboard .admin-user-row-actions .admin-impersonate-button {
  min-width: 96px;
}

.admin-dashboard .admin-user-row-actions .admin-ban-button,
.admin-dashboard .admin-user-row-actions .admin-delete-user-button {
  min-width: 92px;
}

.admin-dashboard .admin-broadcaster-table td:last-child {
  white-space: normal;
}

.admin-dashboard .admin-users-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: #b9c7dc;
  font-size: 13px;
}

.admin-dashboard .admin-users-pagination-meta,
.admin-dashboard .admin-users-pagination-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-dashboard .admin-users-pagination-actions {
  justify-content: flex-end;
  margin-left: auto;
}

.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-table-card > .control-card-header,
  .admin-dashboard .admin-registration-card,
  .admin-dashboard .admin-registration-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dashboard .admin-users-summary-strip,
  .admin-dashboard .admin-registration-controls {
    justify-content: flex-start;
  }

  .admin-dashboard .admin-registration-switch,
  .admin-dashboard .admin-review-switch {
    min-width: 0;
  }

  .admin-dashboard .admin-registration-limit-form {
    align-items: stretch;
  }

  .admin-dashboard .admin-broadcaster-table {
    min-width: 1120px;
  }

  .admin-dashboard .admin-users-toolbar,
  .admin-dashboard .admin-billing-orders-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dashboard .admin-users-review-filter {
    width: 100%;
  }

  .admin-dashboard .admin-users-review-filter-button {
    flex: 1 1 0;
  }

  .admin-dashboard .admin-maintenance-grid,
  .admin-dashboard .admin-billing-settings-grid,
  .admin-dashboard .admin-maintenance-settings-grid,
  .admin-dashboard .billing-settings-grid,
  .admin-dashboard .maintenance-log-summary {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .module-pricing-table {
    min-width: 560px;
  }

  .admin-dashboard .admin-billing-order-detail,
  .admin-dashboard .admin-billing-order-item,
  .admin-dashboard .admin-user-billing-grid,
  .admin-dashboard .admin-user-entitlement-module {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .admin-user-entitlement-panel-backdrop {
    align-items: stretch;
    padding: 16px;
  }

  .admin-dashboard .admin-user-entitlement-panel {
    width: 100%;
    max-height: calc(100vh - 32px);
  }

  .admin-dashboard .admin-user-entitlement-panel-header,
  .admin-dashboard .admin-user-entitlement-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-dashboard .admin-user-entitlement-module-meta {
    justify-content: flex-start;
  }

  .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 .topbar-plus-membership-button {
  margin-left: auto;
  flex: 0 0 auto;
}

.admin-dashboard .plus-membership-countdown {
  position: absolute;
  left: 50%;
  max-width: min(420px, calc(100vw - 420px));
  transform: translateX(-50%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(250, 204, 21, 0.38);
  border-radius: 8px;
  background: rgba(113, 63, 18, 0.28);
  color: #facc15;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 860;
  letter-spacing: 0;
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.12);
  pointer-events: none;
}

.admin-dashboard .plus-membership-countdown.expired {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(127, 29, 29, 0.32);
  color: #fde68a;
}

.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 {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 12px;
    overflow: hidden;
  }

  .admin-dashboard .app-topbar .brand-block {
    gap: 9px;
    min-width: 0;
  }

  .admin-dashboard .app-topbar .brand-title-row h1 {
    max-width: min(96px, 24vw);
    font-size: 17px;
  }

  .admin-dashboard .topbar-plus-membership-button {
    width: auto;
    min-width: 64px;
    min-height: 38px;
    margin-left: 0;
    padding-inline: 9px 11px;
  }

  .admin-dashboard .plus-membership-countdown {
    position: static;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    transform: none;
    padding: 7px 10px;
    font-size: 12px;
    text-align: center;
  }

  .admin-dashboard .topbar-plus-membership-button span:last-child {
    display: inline;
  }

  .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 .module-preview-shoutout {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 68% 34%, rgba(56, 189, 248, 0.18), transparent 31%),
    radial-gradient(circle at 30% 72%, rgba(16, 185, 129, 0.16), transparent 35%),
    linear-gradient(135deg, #080d16 0%, #111827 58%, #071014 100%);
}

.admin-dashboard .module-preview-shoutout::before {
  content: "";
  position: absolute;
  left: 21%;
  right: 18%;
  bottom: 29%;
  height: 18px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  filter: blur(14px);
}

.admin-dashboard .module-preview-shoutout-art {
  position: absolute;
  left: 50%;
  top: 41%;
  display: grid;
  place-items: center;
  width: min(calc(100% - 48px), 330px);
  aspect-ratio: 320 / 250;
  transform: translate(-50%, -50%);
}

.admin-dashboard .module-preview-megaphone {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 24px 42px rgba(2, 6, 23, 0.42));
}

.admin-dashboard .module-preview-megaphone-shadow {
  fill: rgba(2, 6, 23, 0.42);
}

.admin-dashboard .module-preview-megaphone-horn {
  fill: #38bdf8;
  stroke: rgba(224, 242, 254, 0.92);
  stroke-width: 8;
  stroke-linejoin: round;
}

.admin-dashboard .module-preview-megaphone-horn-face {
  fill: #0ea5e9;
  opacity: 0.9;
}

.admin-dashboard .module-preview-megaphone-body {
  fill: #f8fafc;
  stroke: rgba(203, 213, 225, 0.95);
  stroke-width: 8;
  stroke-linejoin: round;
}

.admin-dashboard .module-preview-megaphone-rim {
  fill: none;
  stroke: rgba(15, 23, 42, 0.32);
  stroke-width: 8;
  stroke-linecap: round;
}

.admin-dashboard .module-preview-megaphone-handle {
  fill: #10b981;
  stroke: rgba(209, 250, 229, 0.9);
  stroke-width: 8;
  stroke-linejoin: round;
}

.admin-dashboard .module-preview-megaphone-handle-highlight {
  fill: none;
  stroke: rgba(236, 253, 245, 0.7);
  stroke-width: 6;
  stroke-linecap: round;
}

.admin-dashboard .module-preview-megaphone-bolt {
  fill: #0f172a;
  opacity: 0.42;
}

.admin-dashboard .module-preview-sound-wave {
  fill: none;
  stroke: #7dd3fc;
  stroke-linecap: round;
  opacity: 0.9;
}

.admin-dashboard .module-preview-sound-wave-outer {
  stroke-width: 11;
}

.admin-dashboard .module-preview-sound-wave-inner {
  stroke-width: 9;
}

.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 .chat-sender-picker {
  align-items: start;
  gap: 10px;
}

.admin-dashboard .chat-sender-heading strong {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}

.admin-dashboard .chat-sender-list {
  display: flex;
  align-items: start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 2px 8px;
  scrollbar-width: thin;
}

.admin-dashboard .chat-sender-option {
  position: relative;
  display: block;
  flex: 0 0 84px;
  width: 84px;
  min-width: 84px;
  height: 102px;
  min-height: 102px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 160ms ease, opacity 160ms ease, background 160ms ease;
}

.admin-dashboard .chat-sender-option:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.7);
  outline-offset: 2px;
}

.admin-dashboard .chat-sender-avatar-frame {
  position: absolute;
  top: 7px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  min-width: 62px;
  min-height: 62px;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: box-shadow 160ms ease;
}

.admin-dashboard .chat-sender-avatar {
  display: block;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  object-fit: cover;
  transition: filter 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.admin-dashboard .chat-sender-image {
  display: block;
  border: 0;
  background: transparent;
}

.admin-dashboard .chat-sender-fallback {
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.34);
}

.admin-dashboard .chat-sender-option:not(.selected) .chat-sender-avatar {
  filter: grayscale(1);
  opacity: 0.58;
}

.admin-dashboard .chat-sender-option:hover:not(:disabled) .chat-sender-avatar,
.admin-dashboard .chat-sender-option:focus-visible:not(:disabled) .chat-sender-avatar {
  filter: grayscale(0.28);
  opacity: 0.86;
}

.admin-dashboard .chat-sender-option.selected {
  color: #f8fafc;
  background: rgba(14, 165, 233, 0.08);
}

.admin-dashboard .chat-sender-option.selected .chat-sender-avatar {
  filter: none;
  opacity: 1;
}

.admin-dashboard .chat-sender-option.selected .chat-sender-avatar-frame {
  box-shadow:
    0 0 0 3px rgba(14, 165, 233, 0.82),
    0 0 18px rgba(56, 189, 248, 0.42);
}

.admin-dashboard .chat-sender-option:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.admin-dashboard .chat-sender-name {
  position: absolute;
  top: 75px;
  left: 50%;
  display: block;
  box-sizing: border-box;
  width: 76px;
  max-width: 76px;
  height: 20px;
  max-height: 20px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.56);
  color: currentColor;
  font-size: 12px;
  font-weight: 760;
  line-height: 16px;
  text-align: center;
  overflow: hidden;
  transform: translateX(-50%);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .chat-sender-option.selected .chat-sender-name {
  color: #f8fafc;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.32);
}

.admin-dashboard .announcement-compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 18px;
  align-items: start;
}

.admin-dashboard .announcement-preview-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-dashboard .announcement-preview-header strong {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 850;
}

.admin-dashboard .announcement-preview-group {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-dashboard .announcement-preview-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-dashboard .announcement-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid rgba(79, 143, 182, 0.34);
  border-radius: 8px;
  background: rgba(79, 143, 182, 0.14);
}

.admin-dashboard .announcement-preview-banner-warning {
  border-color: rgba(211, 160, 68, 0.46);
  background: rgba(211, 160, 68, 0.14);
}

.admin-dashboard .announcement-preview-banner-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  min-width: 0;
  color: var(--ops-muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-dashboard .announcement-preview-banner-copy strong {
  color: var(--ops-text);
  font-size: 14px;
  font-weight: 900;
}

.admin-dashboard .announcement-preview-banner-copy span {
  overflow-wrap: anywhere;
}

.admin-dashboard .announcement-preview-link {
  color: var(--accent);
  font-weight: 850;
}

.admin-dashboard .announcement-preview-dismiss {
  flex: none;
  color: var(--ops-muted);
  font-size: 16px;
  line-height: 1;
}

.admin-dashboard .announcement-preview-push {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

.admin-dashboard .announcement-preview-push strong {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .announcement-preview-push span {
  display: block;
  min-width: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: normal;
}

.admin-dashboard .announcement-preview-push small {
  display: block;
  min-width: 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

.admin-dashboard .announcement-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
}

.admin-dashboard .announcement-history-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.admin-dashboard .announcement-history-table th,
.admin-dashboard .announcement-history-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
  vertical-align: middle;
}

.admin-dashboard .announcement-history-table th {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  background: rgba(15, 23, 42, 0.42);
}

.admin-dashboard .announcement-history-table td {
  color: #dbe5f1;
  font-size: 13px;
  line-height: 1.45;
}

.admin-dashboard .announcement-history-table th:nth-child(1) {
  width: 27%;
}

.admin-dashboard .announcement-history-table th:nth-child(2) {
  width: 33%;
}

.admin-dashboard .announcement-history-table th:nth-child(3),
.admin-dashboard .announcement-history-table th:nth-child(4) {
  width: 12%;
}

.admin-dashboard .announcement-history-table th:nth-child(5) {
  width: 8%;
}

.admin-dashboard .announcement-history-table th:nth-child(6) {
  width: 8%;
}

.admin-dashboard .announcement-history-table td:nth-child(1),
.admin-dashboard .announcement-history-table td:nth-child(3),
.admin-dashboard .announcement-history-table td:nth-child(4),
.admin-dashboard .announcement-history-table td:nth-child(5) {
  white-space: nowrap;
}

.admin-dashboard .announcement-history-table td:nth-child(2) {
  color: #f8fafc;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.admin-dashboard .announcement-history-table th:last-child,
.admin-dashboard .announcement-history-table td:last-child {
  text-align: right;
}

.admin-dashboard .announcement-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-dashboard .announcement-history-table tbody tr:hover td {
  background: rgba(148, 163, 184, 0.06);
}

@media (max-width: 980px) {
  .admin-dashboard .announcement-compose-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.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-card-list {
  display: none;
  gap: 10px;
}

.admin-dashboard .authorized-manager-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.54);
}

.admin-dashboard .authorized-manager-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-dashboard .authorized-manager-card .button {
  width: auto;
  min-width: 58px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-dashboard .authorized-manager-permission-summary {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-dashboard .authorized-manager-permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.admin-dashboard .authorized-manager-permission-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.24);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.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;
}

/* Push row stacks title / switch+label on the row grid; the guidance copy is a
   direct grid child now, so strip the UA paragraph margins. */
.admin-dashboard .push-notification-row .home-muted {
  margin: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.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);
}

.admin-dashboard .state-label.helper {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.22);
}

.admin-dashboard .admin-user-activity-page {
  display: grid;
  gap: 1rem;
}

.admin-dashboard .admin-user-activity-topbar,
.admin-dashboard .admin-user-activity-actions,
.admin-dashboard .admin-user-activity-user-strip,
.admin-dashboard .admin-user-activity-section-header,
.admin-dashboard .admin-user-activity-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-dashboard .admin-user-activity-topbar,
.admin-dashboard .admin-user-activity-section-header {
  justify-content: space-between;
}

.admin-dashboard .admin-user-activity-breadcrumb,
.admin-dashboard .admin-user-activity-section-header span,
.admin-dashboard .admin-user-activity-metric span,
.admin-dashboard .admin-user-activity-metric small,
.admin-dashboard .admin-user-activity-definition-list dt,
.admin-dashboard .admin-user-activity-timeline small {
  color: #94a3b8;
}

.admin-dashboard .admin-user-activity-topbar h2 {
  margin: 0;
}

.admin-dashboard .admin-user-activity-breadcrumb {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
}

.admin-dashboard .admin-user-activity-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-dashboard .admin-user-activity-user-strip {
  justify-content: flex-start;
}

.admin-dashboard .admin-user-activity-user-strip img,
.admin-dashboard .admin-user-activity-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.admin-dashboard .admin-user-activity-avatar {
  display: grid;
  place-items: center;
  background: rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  font-weight: 800;
}

.admin-dashboard .admin-user-activity-user-strip > div,
.admin-dashboard .admin-user-activity-section-header > div,
.admin-dashboard .admin-user-activity-metric,
.admin-dashboard .admin-user-activity-timeline td strong,
.admin-dashboard .admin-user-activity-timeline td small {
  display: grid;
  gap: 0.25rem;
}

.admin-dashboard .admin-user-activity-verdict-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
}

.admin-dashboard .admin-user-activity-verdict {
  border-left: 5px solid rgba(96, 165, 250, 0.72);
}

.admin-dashboard .admin-user-activity-verdict .admin-user-activity-section-header strong {
  font-size: 1.35rem;
}

.admin-dashboard .admin-user-activity-reasons {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0;
  padding-left: 1.15rem;
}

.admin-dashboard .admin-user-activity-badges {
  flex-wrap: wrap;
}

.admin-dashboard .admin-user-activity-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-dashboard .admin-user-activity-metric {
  min-height: 118px;
  align-content: space-between;
}

.admin-dashboard .admin-user-activity-metric strong {
  font-size: 1.18rem;
  line-height: 1.25;
}

.admin-dashboard .admin-user-activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
}

.admin-dashboard .admin-user-activity-table-wrap {
  overflow-x: auto;
}

.admin-dashboard .admin-user-activity-timeline table {
  min-width: 760px;
  width: 100%;
  border-collapse: collapse;
}

.admin-dashboard .admin-user-activity-timeline th,
.admin-dashboard .admin-user-activity-timeline td {
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
  vertical-align: top;
}

.admin-dashboard .admin-user-activity-timeline th {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-dashboard .admin-user-activity-timeline tr:last-child td {
  border-bottom: 0;
}

.admin-dashboard .admin-user-activity-timeline code {
  display: inline-block;
  max-width: 190px;
  overflow-wrap: anywhere;
  border-radius: 5px;
  padding: 0.15rem 0.35rem;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
}

.admin-dashboard .admin-user-activity-side {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.admin-dashboard .admin-user-activity-definition-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.admin-dashboard .admin-user-activity-definition-list dd {
  margin: 0 0 0.62rem;
  padding-bottom: 0.62rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-weight: 700;
}

.admin-dashboard .admin-user-activity-definition-list dd:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-dashboard .admin-user-activity-cleanup {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.07);
}

.admin-dashboard .admin-user-activity-empty,
.admin-dashboard .admin-user-activity-error {
  display: grid;
  gap: 0.4rem;
}

@media (max-width: 1100px) {
  .admin-dashboard .admin-user-activity-verdict-grid,
  .admin-dashboard .admin-user-activity-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-dashboard .admin-user-activity-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-dashboard .admin-user-activity-actions {
    justify-content: flex-start;
  }

  .admin-dashboard .admin-user-activity-metrics {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .admin-user-activity-user-strip {
    align-items: flex-start;
  }
}

@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;
  }

  .admin-dashboard .authorized-manager-table-wrap {
    display: none;
  }

  .admin-dashboard .authorized-manager-card-list {
    display: grid;
  }

  .admin-dashboard .authorized-manager-card-head {
    align-items: start;
  }

  .admin-dashboard .authorized-manager-card .authorized-manager-profile {
    align-items: flex-start;
  }
}

@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;
  margin-bottom: 14px;
}

.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);
  grid-template-areas:
    "enable enable"
    "prizes prizes"
    "preview results"
    "actions actions";
  gap: 14px;
  align-items: start;
  margin: 0;
}

.admin-dashboard .prank-wheel-settings-column,
.admin-dashboard .prank-wheel-preview-column {
  display: contents;
}

.admin-dashboard .prank-wheel-results-card {
  grid-area: results;
  min-width: 0;
}

.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-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 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "enable"
      "preview"
      "prizes"
      "results"
      "actions";
  }

  .admin-dashboard .prank-wheel-prize-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
      "color name remove"
      "display display display"
      "probability probability probability"
      "quantity quantity quantity";
  }

  .admin-dashboard .prank-wheel-copy-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .admin-dashboard .prank-wheel-preview-burst {
    inset: 0;
  }
}

@media (max-width: 560px) {
  .admin-dashboard .raffle-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .raffle-stats-grid div {
    min-width: 0;
  }

  .admin-dashboard .raffle-stats-grid strong {
    font-size: 1.25rem;
    overflow-wrap: anywhere;
  }
}

/* Professional dark admin palette: color-only refinement */
.admin-dashboard {
  color-scheme: dark;
  --ops-bg: #080c12;
  --ops-surface: #101720;
  --ops-surface-2: #151f2b;
  --ops-panel: #0c131c;
  --ops-border: rgba(132, 150, 170, 0.2);
  --ops-border-strong: rgba(151, 169, 190, 0.34);
  --ops-text: #e7edf5;
  --ops-muted: #9aa8ba;
  --ops-dim: #6e7d8f;
  --ops-blue: #4f8fb6;
  --ops-blue-strong: #5fa6cf;
  --ops-green: #36b37e;
  --ops-green-strong: #4cc993;
  --ops-amber: #d3a044;
  --ops-red: #d66b76;
  --text: var(--ops-text);
  --muted: var(--ops-muted);
  --accent: var(--ops-blue-strong);
  --border: var(--ops-border);
  background: var(--ops-bg);
  background-image: none;
  color: var(--ops-text);
}

.admin-dashboard .app-topbar,
.admin-dashboard .sidebar {
  border-color: var(--ops-border);
  background: #070b10;
}

.admin-dashboard .panel,
.admin-dashboard .metric-card,
.admin-dashboard .status-panel,
.admin-dashboard .control-panel,
.admin-dashboard .account-card,
.admin-dashboard .profile-account-card,
.admin-dashboard .profile-action-card,
.admin-dashboard .obs-card,
.admin-dashboard .donation-item,
.admin-dashboard .template,
.admin-dashboard .module-card,
.admin-dashboard .billing-return-summary > div,
.admin-dashboard .billing-return-item,
.admin-dashboard .event-actions-stat,
.admin-dashboard .event-actions-module-button,
.admin-dashboard .event-actions-edit-panel,
.admin-dashboard .event-action-binding-editor,
.admin-dashboard .plus-membership-card,
.admin-dashboard .plus-cart-summary,
.admin-dashboard .plus-module-row,
.admin-dashboard .opay-preflight-row,
.admin-dashboard .channel-point-warning,
.admin-dashboard .blocked-term-update-dialog {
  border-color: var(--ops-border);
  background: var(--ops-surface);
  color: var(--ops-text);
  box-shadow: none;
}

.admin-dashboard .module-card:hover,
.admin-dashboard .module-card:focus-visible,
.admin-dashboard .event-actions-module-button:hover,
.admin-dashboard .event-actions-module-button:focus-visible {
  border-color: var(--ops-border-strong);
  background: var(--ops-surface-2);
}

.admin-dashboard h1,
.admin-dashboard h2,
.admin-dashboard h3,
.admin-dashboard h4,
.admin-dashboard strong,
.admin-dashboard .template-title strong,
.admin-dashboard .control-card-header strong,
.admin-dashboard .profile-account-card strong,
.admin-dashboard .broadcaster-card strong {
  color: var(--ops-text);
}

.admin-dashboard p,
.admin-dashboard small,
.admin-dashboard .view-description,
.admin-dashboard .field-label span,
.admin-dashboard .template-title span,
.admin-dashboard .bot-status-row,
.admin-dashboard .bot-status-row small,
.admin-dashboard .bot-mod-hint,
.admin-dashboard .module-card p,
.admin-dashboard .module-price-text,
.admin-dashboard .billing-return-item span,
.admin-dashboard .plus-membership-title-row p,
.admin-dashboard .channel-point-warning p {
  color: var(--ops-muted);
}

.admin-dashboard .eyebrow,
.admin-dashboard .meta-label,
.admin-dashboard .module-trial-note,
.admin-dashboard a,
.admin-dashboard .profile-account-card a,
.admin-dashboard .broadcaster-card a {
  color: #a9c7de;
}

.admin-dashboard a:hover,
.admin-dashboard .profile-account-card a:hover,
.admin-dashboard .broadcaster-card a:hover {
  color: #d7edf9;
}

.admin-dashboard input,
.admin-dashboard textarea,
.admin-dashboard select,
.admin-dashboard .modules-search input {
  border-color: var(--ops-border);
  background: #091018;
  color: var(--ops-text);
}

.admin-dashboard input:focus,
.admin-dashboard textarea:focus,
.admin-dashboard select:focus,
.admin-dashboard .modules-search input:focus {
  border-color: rgba(95, 166, 207, 0.76);
  outline: 2px solid rgba(95, 166, 207, 0.16);
}

.admin-dashboard button,
.admin-dashboard .button {
  border-color: rgba(95, 166, 207, 0.32);
  background: #17283a;
  color: #eef6fb;
  box-shadow: none;
}

.admin-dashboard button:hover,
.admin-dashboard .button:hover,
.admin-dashboard button:focus-visible,
.admin-dashboard .button:focus-visible {
  border-color: rgba(95, 166, 207, 0.58);
  background: #1f3448;
  color: #f7fbff;
  outline: none;
}

.admin-dashboard .secondary,
.admin-dashboard .ghost,
.admin-dashboard .module-back-link,
.admin-dashboard .module-layer-settings-link,
.admin-dashboard .module-event-actions-link {
  border-color: var(--ops-border);
  background: #121c28;
  color: #d8e2ee;
}

.admin-dashboard .secondary:hover,
.admin-dashboard .ghost:hover,
.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(95, 166, 207, 0.5);
  background: #1a2938;
  color: var(--ops-text);
}

.admin-dashboard .save-action:not(:disabled),
.admin-dashboard .template-form-actions .save-action:not(:disabled),
.admin-dashboard .event-actions-edit-actions .save-action:not(:disabled) {
  border-color: rgba(76, 201, 147, 0.48);
  background: #1d5f47;
  color: #effdf7;
}

.admin-dashboard .save-action:not(:disabled):hover,
.admin-dashboard .template-form-actions .save-action:not(:disabled):hover,
.admin-dashboard .event-actions-edit-actions .save-action:not(:disabled):hover {
  border-color: rgba(104, 223, 173, 0.58);
  background: #267052;
}

.admin-dashboard button:disabled,
.admin-dashboard .button:disabled,
.admin-dashboard .save-action:disabled,
.admin-dashboard .template-form-actions .save-action:disabled,
.admin-dashboard .event-actions-edit-actions .save-action:disabled {
  border-color: rgba(100, 116, 139, 0.22);
  background: #101722;
  color: #6f7d8f;
}

.admin-dashboard .switch-ui,
.admin-dashboard .module-switch-ui {
  border-color: rgba(132, 150, 170, 0.26);
  background: #2a3543;
}

.admin-dashboard .switch-row input:checked + .switch-ui,
.admin-dashboard .module-enable-toggle input:checked + .module-switch-ui {
  border-color: var(--ops-green);
  background: var(--ops-green);
}

.admin-dashboard .goal-meter-range span {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  padding: 0;
}

.admin-dashboard .state-label.enabled,
.admin-dashboard .module-status {
  border-color: rgba(76, 201, 147, 0.36);
  background: rgba(54, 179, 126, 0.14);
  color: #b9f3d7;
}

.admin-dashboard .state-label.disabled {
  border-color: rgba(214, 107, 118, 0.32);
  background: rgba(127, 29, 35, 0.24);
  color: #f4c3c8;
}

.admin-dashboard .state-label.warning,
.admin-dashboard .module-billing-status.locked,
.admin-dashboard .account-warning,
.admin-dashboard .broadcaster-card .account-warning,
.admin-dashboard .module-lock-note,
.admin-dashboard .plus-membership-countdown,
.admin-dashboard .plus-membership-title-row .plus-membership-full-countdown {
  border-color: rgba(211, 160, 68, 0.38);
  background: rgba(112, 74, 22, 0.24);
  color: #ead39a;
}

.admin-dashboard button.danger,
.admin-dashboard .danger,
.admin-dashboard .danger-link,
.admin-dashboard .donation-actions .danger,
.admin-dashboard .danger-actions .danger {
  border-color: rgba(214, 107, 118, 0.42);
  background: rgba(105, 31, 39, 0.36);
  color: #f7c8cd;
}

.admin-dashboard button.danger:hover,
.admin-dashboard .danger:hover,
.admin-dashboard .danger-link:hover,
.admin-dashboard .danger-link:focus-visible,
.admin-dashboard .donation-actions .danger:hover,
.admin-dashboard .danger-actions .danger:hover {
  border-color: rgba(226, 129, 139, 0.58);
  background: rgba(128, 38, 48, 0.48);
  color: #ffe5e8;
}

.admin-dashboard .nav-group summary,
.admin-dashboard .nav-item {
  color: #aebac9;
}

.admin-dashboard .nav-icon,
.admin-dashboard .nav-item .nav-icon,
.admin-dashboard .nav-group summary .nav-icon {
  color: #8799ab;
}

.admin-dashboard .nav-group summary:hover,
.admin-dashboard .nav-group summary:focus-visible,
.admin-dashboard .nav-item:hover,
.admin-dashboard .nav-item:focus-visible {
  border-color: rgba(132, 150, 170, 0.18);
  background: rgba(132, 150, 170, 0.08);
  color: #e8eef6;
}

.admin-dashboard .nav-item.active {
  border-color: rgba(95, 166, 207, 0.36);
  background: rgba(79, 143, 182, 0.18);
  color: #f2f8fc;
}

.admin-dashboard .nav-item.active .nav-icon {
  color: #9ed1ec;
}

.admin-dashboard .admin-zone-nav summary {
  color: #c4cfdb;
}

.admin-dashboard .sidebar-footer {
  border-top-color: rgba(132, 150, 170, 0.16);
}

.admin-dashboard .creator-social-link {
  border-color: rgba(132, 150, 170, 0.22);
  background: rgba(16, 23, 32, 0.78);
}

.admin-dashboard .creator-social-icon {
  color: #8ea5b8;
}

.admin-dashboard .creator-social-link:hover,
.admin-dashboard .creator-social-link:focus-visible {
  border-color: rgba(95, 166, 207, 0.48);
  background: #141f2b;
}

.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,
.admin-dashboard .discord-link:hover .creator-social-icon,
.admin-dashboard .discord-link:focus-visible .creator-social-icon {
  color: #c5dfef;
}

.admin-dashboard .dashboard-alert {
  border-color: rgba(76, 201, 147, 0.34);
  background: #11251d;
  color: #d9f8e9;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.admin-dashboard .dashboard-alert.error {
  border-color: rgba(214, 107, 118, 0.42);
  background: #2b1419;
  color: #f9d5d9;
}

.admin-dashboard .success-message {
  color: #b9f3d7;
}

.admin-dashboard .text-danger {
  color: #f4b9bf;
}

.admin-dashboard .opay-preflight-row.warning,
.admin-dashboard .channel-point-warning {
  border-color: rgba(211, 160, 68, 0.32);
  background: rgba(112, 74, 22, 0.14);
}

.admin-dashboard .opay-preflight-row.warning .opay-preflight-status {
  background: rgba(211, 160, 68, 0.18);
  color: #ead39a;
}

.admin-dashboard .blocked-term-update-scrim,
.admin-dashboard .plus-membership-modal-backdrop {
  background: rgba(3, 7, 11, 0.76);
}

.admin-dashboard .blocked-term-update-dialog,
.admin-dashboard .plus-membership-modal {
  border-color: rgba(132, 150, 170, 0.28);
  background: #0d141d;
  color: var(--ops-text);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.46);
}

.admin-dashboard .blocked-term-update-dialog p {
  color: var(--ops-muted);
}

.admin-dashboard .plus-membership-button,
.admin-dashboard .button.secondary.plus-trial-action {
  border-color: rgba(211, 160, 68, 0.46);
  background: rgba(112, 74, 22, 0.3);
  color: #ead39a;
}

.admin-dashboard .plus-membership-button:hover,
.admin-dashboard .plus-membership-button:focus-visible,
.admin-dashboard .button.secondary.plus-trial-action:hover:not(:disabled) {
  border-color: rgba(224, 181, 94, 0.62);
  background: rgba(132, 88, 28, 0.38);
}

.admin-dashboard .plus-crown-icon,
.admin-dashboard .billing-return-crown {
  color: #d6b15c;
}

.admin-dashboard .plus-membership-countdown.expired {
  border-color: rgba(214, 107, 118, 0.44);
  background: rgba(105, 31, 39, 0.36);
  color: #f2c6ca;
}

/* Final public landing override. Kept at EOF so dashboard/admin styles are untouched. */
.landing-page {
  --landing-bg: #17151d;
  --landing-surface: rgba(255, 244, 223, 0.1);
  --landing-surface-strong: rgba(255, 249, 237, 0.94);
  --landing-border: rgba(255, 244, 223, 0.22);
  --landing-border-strong: rgba(244, 189, 69, 0.46);
  --landing-text: #fff8ec;
  --landing-muted: #dacdc0;
  --landing-dim: #9f8f86;
  --landing-green: #69d8bd;
  --landing-cyan: #5aa9f6;
  --landing-amber: #f4bd45;
  --landing-red: #d84f55;
  --landing-paper: #fff4df;
  --landing-ink: #24161b;
  background:
    linear-gradient(90deg, rgba(255, 244, 223, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 244, 223, 0.028) 1px, transparent 1px),
    linear-gradient(145deg, #17151d 0%, #281a25 40%, #12372f 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.landing-page::before {
  opacity: 0.32;
  background:
    linear-gradient(120deg, transparent 0 20%, rgba(216, 79, 85, 0.16) 20% 21%, transparent 21% 52%, rgba(244, 189, 69, 0.12) 52% 53%, transparent 53%),
    linear-gradient(30deg, transparent 0 38%, rgba(105, 216, 189, 0.1) 38% 39%, transparent 39%);
  background-size: 420px 420px, 360px 360px;
}

.landing-page::after {
  background:
    linear-gradient(180deg, rgba(23, 21, 29, 0) 0%, rgba(23, 21, 29, 0.38) 100%),
    repeating-linear-gradient(135deg, rgba(255, 244, 223, 0.04) 0 1px, transparent 1px 16px);
}

.landing-nav {
  border-bottom: 1px solid rgba(255, 244, 223, 0.14);
  background: rgba(23, 21, 29, 0.78);
  backdrop-filter: blur(18px);
}

.landing-brand img {
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(244, 189, 69, 0.4), 0 12px 28px rgba(216, 79, 85, 0.24);
}

.landing-nav-links a,
.landing-secondary-action {
  color: var(--landing-paper);
}

.landing-nav-login,
.landing-secondary-action {
  border-color: rgba(255, 244, 223, 0.28);
  background: rgba(255, 244, 223, 0.08);
}

.landing-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: clamp(32px, 5vw, 76px);
  padding: clamp(54px, 7vw, 92px) 0 clamp(64px, 8vw, 104px);
}

.landing-kicker {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(244, 189, 69, 0.38);
  border-radius: 999px;
  background: rgba(244, 189, 69, 0.12);
  color: #ffd879;
}

.landing-hero h1 {
  max-width: 760px;
  color: var(--landing-text);
  font-size: clamp(2.5rem, 5vw, 4.95rem);
  line-height: 0.98;
}

.landing-lede {
  color: var(--landing-muted);
}

.landing-primary-action {
  border-color: rgba(244, 189, 69, 0.65);
  background: linear-gradient(180deg, #ffdb74, #f39c39);
  color: #351914;
  box-shadow: 0 16px 34px rgba(216, 79, 85, 0.25);
}

.landing-primary-action:hover,
.landing-primary-action:focus-visible {
  background: linear-gradient(180deg, #ffe596, #ffb253);
  color: #351914;
}

.landing-trust-row span {
  border-color: rgba(255, 244, 223, 0.18);
  background: rgba(255, 244, 223, 0.08);
  color: #f6e3c8;
}

.landing-hero-stage {
  isolation: isolate;
  min-height: 640px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.landing-hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% 2% 0;
  z-index: -2;
  border: 1px solid rgba(255, 244, 223, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 244, 223, 0.12), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 244, 223, 0.06) 0 1px, transparent 1px 22px),
    rgba(255, 244, 223, 0.06);
  transform: rotate(-2deg);
}

.landing-product-shot.landing-hero-stage::before {
  content: "";
}

.landing-product-shot:not(.landing-hero-stage)::before {
  content: none;
}

.landing-mascot-frame {
  position: absolute;
  right: clamp(-46px, -3vw, -18px);
  bottom: 0;
  z-index: 4;
  width: min(86%, 620px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid rgba(255, 244, 223, 0.72);
  border-radius: 8px;
  background: var(--landing-paper);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), 0 0 0 9px rgba(216, 79, 85, 0.14);
  transform: rotate(2deg);
}

.landing-mascot-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.landing-dashboard-art {
  position: absolute;
  left: 0;
  top: 62px;
  z-index: 2;
  width: min(64%, 520px);
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 244, 223, 0.72);
  border-radius: 8px;
  background: var(--landing-paper);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
  transform: rotate(-4deg);
}

.landing-dashboard-art img {
  display: block;
  width: 100%;
  aspect-ratio: 112 / 82;
  object-fit: cover;
}

.landing-section {
  padding-block: 24px 42px;
}

.landing-section-heading {
  max-width: 820px;
}

.landing-feature-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.landing-feature {
  min-height: 334px;
  overflow: hidden;
  border: 1px solid rgba(255, 244, 223, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 249, 237, 0.12), rgba(255, 249, 237, 0.055)),
    rgba(23, 21, 29, 0.74);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.landing-feature::after {
  background: linear-gradient(90deg, var(--landing-red), var(--landing-amber), var(--landing-green));
}

.landing-feature-icon {
  border-color: rgba(244, 189, 69, 0.42);
  background: rgba(244, 189, 69, 0.12);
  color: #ffdc76;
}

.landing-feature h3 {
  color: var(--landing-paper);
}

.landing-feature p {
  color: var(--landing-muted);
}

.landing-cta {
  border: 1px solid rgba(244, 189, 69, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(216, 79, 85, 0.22), transparent 46%),
    rgba(255, 244, 223, 0.08);
}

.landing-footer {
  border-top-color: rgba(255, 244, 223, 0.14);
}

.landing-footer p {
  color: var(--landing-dim);
}

@media (max-width: 1180px) {
  .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-hero-stage {
    min-height: 620px;
  }

  .landing-dashboard-art {
    width: min(58%, 430px);
  }

  .landing-mascot-frame {
    width: min(78%, 560px);
  }
}

@media (max-width: 720px) {
  .landing-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-hero-stage {
    min-height: 560px;
  }

  .landing-mascot-frame {
    right: 0;
    width: min(96%, 500px);
  }

  .landing-dashboard-art {
    top: 34px;
    width: min(76%, 360px);
  }

}

.landing-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.landing-feature-art {
  margin: 0 0 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 244, 223, 0.18);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.1);
}

.landing-feature-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ───────────────────────────────────────────────────────────────────────────
   Narrow-screen layout fixes (mobile). Appended last so they win the cascade
   over the per-page sticky-bar modifiers and the duplicated blocks above
   without needing !important.
   ─────────────────────────────────────────────────────────────────────────── */

/* The prank wheel collapsed its two-column grid on mobile but the raffle grid
   was never given the same rule, so its columns kept squeezing and overlapping
   on phones. Mirror the prank-wheel treatment. */
@media (max-width: 980px) {
  .admin-dashboard .raffle-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  /* Modules gallery used minmax(320px, 1fr), forcing the grid wider than a
     phone viewport and leaking a white strip past the right edge. Let the
     cards shrink to a single full-width column and trim the page padding. */
  .admin-dashboard .modules-page {
    padding: 20px 16px;
  }

  .admin-dashboard .modules-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  /* Raffle inner control grids are 3-up; too cramped to sit side by side on a
     phone, so stack them. */
  .admin-dashboard .raffle-number-grid,
  .admin-dashboard .raffle-test-grid,
  .admin-dashboard .raffle-remove-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Unified sticky save bar on narrow screens: the unsaved-changes hint takes
     its own line, then every button stacks full-width so the toolbar reads as
     one consistent block regardless of which page's buttons it hosts. The
     four-class selectors match (and, appended last, beat) the per-page
     modifiers like redemption-message-primary-actions / raffle-form-actions. */
  .admin-dashboard .template-form-actions.sticky-page-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .admin-dashboard .template-form-actions.sticky-page-actions .sticky-save-status {
    justify-content: flex-start;
  }

  .admin-dashboard .template-form-actions.sticky-page-actions .sticky-save-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  /* Button groups some pages nest inside the slot (count + buttons, sync icon +
     buttons) also stack so each control is its own full-width row. */
  .admin-dashboard .template-form-actions.sticky-page-actions .sticky-save-buttons > div {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    margin: 0;
  }

  .admin-dashboard .template-form-actions.sticky-page-actions .sticky-save-buttons button,
  .admin-dashboard .template-form-actions.sticky-page-actions .sticky-save-buttons .button,
  .admin-dashboard .template-form-actions.sticky-page-actions .sticky-save-buttons a {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
}

/* The wheel/raffle save bars were hoisted out of the preview column to be a
   direct child of the two-column form grid, so they span the full width as a
   docked bottom row. Spanning all tracks makes the form grid (not the short
   preview column) the bar's containing block, so position:sticky;bottom:0 docks
   it to the viewport across the whole page instead of only within that column. */
.admin-dashboard .activity-wheel-grid > .activity-wheel-form-actions,
.admin-dashboard .raffle-grid > .raffle-form-actions,
.admin-dashboard .chat-overlay-settings-grid > .chat-overlay-form-actions {
  grid-column: 1 / -1;
}

/* Privacy & cookie policy page (privacy.html) */
.privacy-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.privacy-article h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.privacy-article .privacy-updated {
  opacity: 0.7;
  margin-bottom: 32px;
}

.privacy-article h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.privacy-article h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.privacy-article p,
.privacy-article li {
  line-height: 1.7;
}

.privacy-article ul {
  padding-left: 1.4em;
}

/* Browsers shrink unsized monospace to 13px; keep code identifiers at body size. */
.privacy-article code {
  font-size: 1em;
}

.privacy-cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.privacy-cookie-table th,
.privacy-cookie-table td {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.footer-legal-link {
  opacity: 0.8;
}

.landing-consent-note {
  margin: -10px 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.landing-consent-note a {
  color: inherit;
  text-decoration: underline;
}

.footer-legal-separator {
  opacity: 0.5;
  margin: 0 4px;
}

/* Landing install guide (#install) — placed after the final landing override
   so these rules win the cascade against the themed .landing-section block. */
.landing-section {
  scroll-margin-top: 84px;
}

.landing-install-body {
  margin-top: 26px;
  display: grid;
  gap: 14px;
  justify-items: start;
}

button.landing-primary-action {
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.landing-install-steps {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 10px;
  color: var(--landing-text);
  line-height: 1.7;
}

.landing-install-note {
  max-width: 700px;
  margin: 0;
  color: var(--landing-muted);
  line-height: 1.7;
}

@media (max-width: 620px) {
  .landing-install-body {
    justify-items: stretch;
  }

  .landing-install-body .landing-primary-action {
    width: 100%;
  }
}

/* Event-actions graph mode: canvas + binding panel two-column shell (Phase 2b) */
/* 圖區共用色票:畫布(.event-action-graph-board,~889 行)與面板用同一組,
   調色只改這裡。 */
.admin-dashboard {
  --ea-graph-border: rgba(110, 168, 220, 0.22);
  --ea-graph-surface: rgba(13, 24, 34, 0.92);
}
.admin-dashboard .event-actions-graph-shell {
  display: flex;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}
.admin-dashboard .event-actions-graph-shell .event-action-graph-board {
  flex: 1;
  min-width: 0;
}
.admin-dashboard .event-action-binding-locked-endpoint {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  color: inherit;
}
@media (max-width: 640px) {
  .admin-dashboard .event-actions-graph-shell {
    display: block;
  }
}

/* Event-actions binding fields: optional two-column layout (Phase 2c) */
/* 預設 stack:col 包裝對 layout 透明,沿用 .template-editor-panel 既有單欄 grid。 */
.admin-dashboard .template-editor-panel:not(.ea-fields-two-column) .ea-fields-col {
  display: contents;
}
.admin-dashboard .template-editor-panel.ea-fields-two-column {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}
.admin-dashboard .template-editor-panel.ea-fields-two-column > .event-action-binding-section {
  grid-column: 1 / -1;
}
.admin-dashboard .template-editor-panel.ea-fields-two-column > .ea-fields-col {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.admin-dashboard .graph-binding-dialog .template-editor-panel.ea-fields-two-column {
  grid-template-columns: 1fr;
}
.admin-dashboard .graph-binding-dialog .template-editor-panel.ea-fields-two-column > .ea-fields-col {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .admin-dashboard .template-editor-panel.ea-fields-two-column {
    grid-template-columns: 1fr;
  }
}

/* Event-actions binding editor dialog (Phase 2c) — replaces the 2b docked side panel */
.admin-dashboard .graph-binding-dialog-scrim {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.68);
  backdrop-filter: blur(6px);
}
.admin-dashboard .graph-binding-dialog {
  width: min(680px, 100%);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* body 是唯一捲動區,header/footer 釘住、圓角不被內容溢出 */
  border: 1px solid var(--ea-graph-border);
  border-radius: 14px;
  background: var(--ea-graph-surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.admin-dashboard .graph-binding-dialog.graph-binding-dialog-narrow {
  width: min(520px, 100%);
}
.admin-dashboard .graph-binding-dialog.graph-binding-dialog-roomy {
  width: min(1040px, calc(100vw - 48px));
}
.admin-dashboard .graph-binding-dialog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(110, 168, 220, 0.18);
  flex-shrink: 0;
}
.admin-dashboard .graph-binding-dialog-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-dashboard .graph-binding-dialog-body {
  flex: 1;
  min-height: 0; /* flex 子項預設 min-height:auto 會撐破容器,歸零才會內部捲動而非把 footer 推出視窗 */
  overflow-y: auto;
  padding: 14px;
}
.admin-dashboard .graph-binding-dialog-body .event-action-binding-editor-panel {
  border: none;
  background: transparent;
  padding: 0;
}
.admin-dashboard .graph-binding-dialog-foot {
  display: none;
}
@media (max-width: 640px) {
  .admin-dashboard .graph-binding-dialog-scrim {
    padding: 0;
    place-items: stretch;
  }
  .admin-dashboard .graph-binding-dialog,
  .admin-dashboard .graph-binding-dialog.graph-binding-dialog-narrow {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
  }
  .admin-dashboard .graph-binding-dialog.graph-binding-dialog-roomy {
    width: 100%;
  }
  .admin-dashboard .graph-binding-dialog-foot {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid rgba(110, 168, 220, 0.18);
    flex-shrink: 0;
  }
  .admin-dashboard .graph-binding-dialog-foot .secondary {
    flex: 1;
  }
}

/* Admin users tone alignment: keep expanded user details and activity pages on the same dark ops surface. */
.admin-dashboard .admin-user-billing-panel,
.admin-dashboard .admin-user-billing-plus,
.admin-dashboard .admin-user-billing-actions,
.admin-dashboard .admin-user-billing-modules,
.admin-dashboard .admin-user-activity-metrics,
.admin-dashboard .admin-user-activity-page .control-panel {
  border: 1px solid rgba(110, 168, 220, 0.18);
  background: rgba(10, 18, 27, 0.82);
  color: var(--ops-text);
  box-shadow: none;
}

.admin-dashboard .admin-user-billing-panel {
  background: rgba(8, 14, 22, 0.7);
}

.admin-dashboard .admin-user-billing-plus,
.admin-dashboard .admin-user-billing-actions,
.admin-dashboard .admin-user-billing-modules {
  align-content: start;
  padding: 14px;
  border-radius: 8px;
}

.admin-dashboard .admin-user-billing-actions {
  min-height: 100%;
}

.admin-dashboard .admin-user-billing-module,
.admin-dashboard .admin-user-activity-timeline tr,
.admin-dashboard .admin-user-activity-definition-list dd {
  border-color: rgba(110, 168, 220, 0.14);
}

.admin-dashboard .admin-user-billing-module {
  background: rgba(15, 27, 39, 0.72);
}

.admin-dashboard .admin-user-billing-row td {
  background: rgba(4, 10, 18, 0.48);
}

.admin-dashboard .admin-user-billing-panel-header,
.admin-dashboard .admin-user-activity-section-header {
  border-color: rgba(110, 168, 220, 0.16);
}

.admin-dashboard .admin-user-billing-actions .button,
.admin-dashboard .admin-user-billing-actions button,
.admin-dashboard .admin-user-activity-actions .button,
.admin-dashboard .admin-user-activity-actions button {
  border-color: rgba(110, 168, 220, 0.24);
  background: rgba(17, 31, 45, 0.92);
  color: #eef6ff;
}

.admin-dashboard .admin-user-billing-actions .button:hover,
.admin-dashboard .admin-user-billing-actions button:hover,
.admin-dashboard .admin-user-activity-actions .button:hover,
.admin-dashboard .admin-user-activity-actions button:hover {
  border-color: rgba(110, 168, 220, 0.38);
  background: rgba(24, 43, 61, 0.96);
}

.admin-dashboard .admin-user-billing-actions button.danger,
.admin-dashboard .admin-user-billing-actions .danger {
  border-color: rgba(214, 107, 118, 0.34);
  background: rgba(88, 28, 36, 0.5);
  color: #fecdd3;
}

.admin-dashboard .admin-user-billing-actions button:disabled,
.admin-dashboard .admin-user-billing-actions .button[aria-disabled="true"],
.admin-dashboard .admin-user-activity-actions button:disabled {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(30, 41, 59, 0.34);
  color: rgba(203, 213, 225, 0.58);
  opacity: 1;
  cursor: not-allowed;
}

.admin-dashboard .admin-user-activity-page {
  border-color: rgba(110, 168, 220, 0.18);
  background: rgba(8, 14, 22, 0.72);
}

.admin-dashboard .admin-user-activity-metric {
  min-height: 118px;
  background: rgba(12, 22, 33, 0.9);
}

.admin-dashboard .admin-user-activity-metrics {
  padding: 14px;
  border-radius: 8px;
}

.admin-dashboard .admin-user-activity-metric strong,
.admin-dashboard .admin-user-activity-user-strip strong,
.admin-dashboard .admin-user-activity-verdict .admin-user-activity-section-header strong,
.admin-dashboard .admin-user-activity-definition-list dd {
  color: #eef6ff;
}

.admin-dashboard .admin-user-activity-verdict {
  border-left: 0;
  box-shadow: inset 3px 0 0 rgba(95, 166, 207, 0.68);
}

.admin-dashboard .admin-user-activity-timeline table {
  color: #dbe7f5;
}

.admin-dashboard .admin-user-activity-timeline tbody tr:hover td {
  background: rgba(95, 166, 207, 0.08);
}

.admin-dashboard .admin-user-activity-cleanup {
  border-color: rgba(211, 160, 68, 0.3);
  background: rgba(74, 54, 22, 0.28);
}
.admin-dashboard .module-preview-progress-goals {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 68% 34%, rgba(34, 197, 94, 0.16), transparent 31%),
    radial-gradient(circle at 30% 72%, rgba(59, 130, 246, 0.16), transparent 35%),
    linear-gradient(135deg, #070b12 0%, #111827 58%, #071014 100%);
}

.admin-dashboard .module-preview-progress-bars {
  width: min(calc(100% - 52px), 340px);
  max-width: 100%;
  display: grid;
  align-content: center;
  gap: 18px;
}

.admin-dashboard .module-preview-progress-bars span {
  display: block;
  height: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.admin-dashboard .module-preview-progress-bars span::before {
  content: "";
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #22c55e;
}

.admin-dashboard .module-preview-progress-bars span:nth-child(1)::before {
  width: 72%;
}

.admin-dashboard .module-preview-progress-bars span:nth-child(2)::before {
  width: 46%;
  background: #3b82f6;
}

.admin-dashboard .module-preview-progress-bars span:nth-child(3)::before {
  width: 28%;
  background: #f97316;
}

.admin-dashboard .progress-goals-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(360px, 1.2fr) minmax(300px, 0.84fr);
  gap: 16px;
  align-items: start;
}

.admin-dashboard .progress-goals-control-column,
.admin-dashboard .progress-goal-picker-list,
.admin-dashboard .progress-goal-detail-card,
.admin-dashboard .progress-goal-form-section {
  display: grid;
  gap: 14px;
}

.admin-dashboard .progress-goals-enable-card,
.admin-dashboard .progress-goal-picker-card,
.admin-dashboard .progress-goal-detail-card,
.admin-dashboard .progress-goals-preview-column {
  border-radius: 8px;
}

.admin-dashboard .progress-goal-detail-header,
.admin-dashboard .progress-goal-preview-summary,
.admin-dashboard .progress-goal-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-dashboard .progress-goal-picker-item {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.admin-dashboard .progress-goal-picker-item:hover,
.admin-dashboard .progress-goal-picker-item.selected {
  border-color: rgba(96, 165, 250, 0.68);
  background: rgba(30, 64, 175, 0.32);
}

.admin-dashboard .progress-goal-picker-item.selected {
  transform: translateX(2px);
}

.admin-dashboard .progress-goal-picker-item.disabled {
  color: var(--text-muted);
}

.admin-dashboard .progress-goal-picker-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-dashboard .progress-goal-picker-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .progress-goal-picker-main small,
.admin-dashboard .progress-goal-preview-summary,
.admin-dashboard .progress-goals-preview-column .control-card-header span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-dashboard .progress-goal-picker-status-light {
  flex: 0 0 auto;
  margin-right: 3px;
  transform: translateY(-1px);
}

.admin-dashboard .progress-goal-basic-grid {
  grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(120px, 0.8fr));
}

.admin-dashboard .progress-goal-title-field {
  grid-column: span 3;
}

.admin-dashboard .progress-goal-style-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-dashboard .progress-goal-reset-button {
  align-self: end;
  min-height: 40px;
  white-space: normal;
}

.admin-dashboard .progress-goals-preview-column {
  position: sticky;
  top: 16px;
}

.admin-dashboard .progress-goals-actions {
  grid-column: 1 / -1;
}

.admin-dashboard .progress-goal-live-preview-stage {
  padding: 14px 16px;
  display: grid;
  place-items: center;
  min-height: 132px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.72)),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.admin-dashboard .progress-goal-live-preview {
  width: min(100%, 360px);
  height: 64px;
  min-height: 64px;
}

.admin-dashboard .progress-goal-live-preview.disabled {
  opacity: 0.52;
}

.admin-dashboard .progress-goal-live-preview .progress-goal-widget {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: calc(var(--layer-font-size) * 0.16);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  color: var(--progress-goal-text-color);
  text-shadow: 0 2px 8px rgb(0 0 0 / 45%);
}

.admin-dashboard .progress-goal-live-preview .progress-goal-title {
  min-width: 0;
  color: var(--progress-goal-text-color);
  font-size: var(--layer-font-size);
  font-weight: 900;
  line-height: 1.05;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: center;
}

.admin-dashboard .progress-goal-live-preview .progress-goal-bar {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 3px solid rgb(255 255 255 / 92%);
  border-radius: var(--progress-goal-radius);
  background: var(--progress-goal-bg);
  box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
}

.admin-dashboard .progress-goal-live-preview .progress-goal-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: var(--progress-goal-radius);
  background: var(--progress-goal-color);
  transition: width 450ms ease;
}

.admin-dashboard .progress-goal-live-preview .progress-goal-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 calc(var(--layer-font-size) * 0.45);
  color: var(--progress-goal-text-color);
  font-size: var(--layer-font-size);
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .progress-goal-preview-summary {
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-dashboard .progress-goals-preview-column .empty-state {
  margin-top: 12px;
}

.admin-dashboard .widget-layout-progress-goal-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: calc(var(--layer-font-size) * 0.16);
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  color: var(--progress-goal-text-color);
  text-shadow: 0 2px 8px rgb(0 0 0 / 45%);
}

.admin-dashboard .widget-layout-progress-goal-preview > strong {
  display: none;
}

.admin-dashboard .progress-goal-preview-title {
  min-width: 0;
  color: var(--progress-goal-text-color);
  font-size: var(--layer-font-size);
  font-weight: 900;
  line-height: 1.05;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: center;
}

.admin-dashboard .widget-layout-progress-goal-preview span {
  position: relative;
  display: block;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 3px solid rgb(255 255 255 / 92%);
  border-radius: var(--progress-goal-radius);
  background: var(--progress-goal-bg);
  box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
}

.admin-dashboard .widget-layout-progress-goal-preview i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  height: 100%;
  border-radius: var(--progress-goal-radius);
  background: var(--progress-goal-color);
}

.admin-dashboard .widget-layout-progress-goal-preview em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 calc(var(--layer-font-size) * 0.45);
  color: var(--progress-goal-text-color);
  font-size: var(--layer-font-size);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .admin-dashboard .progress-goals-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .progress-goals-preview-column {
    position: static;
  }

  .admin-dashboard .progress-goal-basic-grid,
  .admin-dashboard .progress-goal-style-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .admin-dashboard .progress-goal-title-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .admin-dashboard .progress-goal-basic-grid,
  .admin-dashboard .progress-goal-style-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .progress-goal-picker-item,
  .admin-dashboard .progress-goal-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dashboard .progress-goal-live-preview {
    height: 60px;
    min-height: 60px;
  }
}
.admin-dashboard .module-preview-vip-automation {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(250, 204, 21, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 23, 0.98));
}

.admin-dashboard .module-preview-vip-icon {
  width: min(46%, 156px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 18px 28px rgba(250, 204, 21, 0.22));
}

.admin-dashboard .module-preview-vip-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.admin-dashboard .module-preview-vip-shadow {
  fill: rgba(2, 6, 23, 0.52);
}

.admin-dashboard .module-preview-vip-gem {
  fill: #facc15;
  stroke: rgba(253, 230, 138, 0.72);
  stroke-width: 3;
}

.admin-dashboard .module-preview-vip-top {
  fill: #fde047;
}

.admin-dashboard .module-preview-vip-facet-left {
  fill: #eab308;
}

.admin-dashboard .module-preview-vip-facet-right {
  fill: #ca8a04;
}

.admin-dashboard .module-preview-vip-facet-center {
  fill: #fef3c7;
  opacity: 0.72;
}

.admin-dashboard .module-preview-vip-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-linecap: round;
  stroke-width: 6;
}

.admin-dashboard .vip-automation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  padding-bottom: 96px;
}

.admin-dashboard .vip-automation-main-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-dashboard .vip-automation-scope-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: rgba(250, 204, 21, 0.38);
}

.admin-dashboard .vip-automation-scope-card p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.admin-dashboard .vip-automation-settings-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px);
  gap: 16px;
  align-items: end;
}

.admin-dashboard .vip-manual-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 160px) minmax(100px, 140px) auto;
  gap: 14px;
  align-items: end;
}

.admin-dashboard .vip-list-header,
.admin-dashboard .vip-list-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-dashboard .vip-grant-list {
  display: grid;
  gap: 12px;
}

.admin-dashboard .vip-grant-row {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background: rgba(2, 6, 23, 0.22);
}

.admin-dashboard .vip-grant-identity,
.admin-dashboard .vip-grant-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-dashboard .vip-grant-identity {
  justify-content: space-between;
}

.admin-dashboard .vip-grant-identity > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-dashboard .vip-grant-identity small {
  color: var(--text-muted);
}

.admin-dashboard .vip-grant-controls {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-dashboard .field-label.compact {
  min-width: 112px;
}

.admin-dashboard .field-label.compact input,
.admin-dashboard .field-label.compact select {
  min-height: 42px;
}

.admin-dashboard .vip-grant-error {
  margin: 0;
  color: #fca5a5;
}

.admin-dashboard .vip-automation-grid,
.admin-dashboard .vip-automation-main {
  display: grid;
  gap: 16px;
}

.admin-dashboard .vip-automation-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: start;
}

.admin-dashboard .vip-automation-enable-card,
.admin-dashboard .vip-automation-manual-grid,
.admin-dashboard .vip-automation-list-header,
.admin-dashboard .vip-automation-row-editor {
  display: grid;
  gap: 12px;
}

.admin-dashboard .vip-automation-enable-card {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px);
  align-items: end;
}

.admin-dashboard .vip-automation-manual-grid {
  grid-template-columns: minmax(220px, 1fr) 150px 120px auto;
  align-items: end;
}

.admin-dashboard .vip-automation-list-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-dashboard .vip-automation-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-dashboard .vip-automation-vip-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-dashboard .vip-automation-vip-identity div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-dashboard .vip-automation-vip-identity span {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-dashboard .vip-automation-pill {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.72);
  white-space: nowrap;
}

.admin-dashboard .vip-automation-expiry {
  color: var(--text-muted);
  white-space: nowrap;
}

.admin-dashboard .vip-automation-row-editor {
  grid-template-columns: 110px 86px auto auto;
  align-items: center;
}

@media (max-width: 1040px) {
  .admin-dashboard .vip-automation-grid,
  .admin-dashboard .vip-automation-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-dashboard .vip-automation-enable-card,
  .admin-dashboard .vip-automation-manual-grid,
  .admin-dashboard .vip-automation-list-header,
  .admin-dashboard .vip-automation-row-editor,
  .admin-dashboard .vip-automation-settings-card,
  .admin-dashboard .vip-manual-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .vip-automation-scope-card,
  .admin-dashboard .vip-grant-identity,
  .admin-dashboard .vip-grant-controls {
    align-items: stretch;
    flex-direction: column;
  }
}

.admin-dashboard .vip-automation-workspace {
  display: block;
  padding-bottom: 96px;
}

.admin-dashboard .vip-automation-grid,
.admin-dashboard .vip-automation-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-dashboard .vip-automation-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.admin-dashboard .vip-automation-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .vip-automation-enable-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.admin-dashboard .vip-automation-manual-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 180px) minmax(110px, 150px) auto;
  gap: 14px;
  align-items: end;
}

.admin-dashboard .vip-automation-grant-mode-input {
  grid-template-columns: auto;
}

.admin-dashboard .vip-automation-list-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.admin-dashboard .vip-automation-list-header > div:first-child {
  display: grid;
  gap: 4px;
}

.admin-dashboard .vip-automation-list-header > div:first-child span {
  color: var(--text-muted);
  font-weight: 700;
}

.admin-dashboard .vip-automation-table-toolbar {
  margin: 16px 0 14px;
  display: flex;
  justify-content: flex-start;
}

.admin-dashboard .vip-automation-search-field {
  width: min(420px, 100%);
}

.admin-dashboard .vip-automation-table-wrap {
  display: grid;
  gap: 14px;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.18);
}

.admin-dashboard .vip-automation-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.admin-dashboard .vip-automation-table th,
.admin-dashboard .vip-automation-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--ops-border);
  text-align: left;
  vertical-align: middle;
}

.admin-dashboard .vip-automation-table th:last-child,
.admin-dashboard .vip-automation-table td:last-child {
  text-align: left;
}

.admin-dashboard .vip-automation-table th {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  background: rgba(15, 23, 42, 0.42);
}

.admin-dashboard .vip-automation-table td {
  color: #dbe5f1;
  font-size: 13px;
}

.admin-dashboard .vip-automation-table tr:last-child td {
  border-bottom: 0;
}

.admin-dashboard .vip-automation-table tbody tr:hover td {
  background: rgba(148, 163, 184, 0.06);
}

.admin-dashboard .vip-automation-table th:nth-child(1),
.admin-dashboard .vip-automation-table td:nth-child(1) {
  width: 30%;
}

.admin-dashboard .vip-automation-table th:nth-child(2),
.admin-dashboard .vip-automation-table td:nth-child(2) {
  width: 14%;
}

.admin-dashboard .vip-automation-table th:nth-child(3),
.admin-dashboard .vip-automation-table td:nth-child(3) {
  width: 18%;
}

.admin-dashboard .vip-automation-table th:nth-child(4),
.admin-dashboard .vip-automation-table td:nth-child(4) {
  width: 24%;
}

.admin-dashboard .vip-automation-table th:nth-child(5),
.admin-dashboard .vip-automation-table td:nth-child(5) {
  width: 14%;
}

.admin-dashboard .vip-automation-vip-identity strong,
.admin-dashboard .vip-automation-vip-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .vip-automation-adjust-heading {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 82px;
  gap: 10px;
  max-width: 390px;
}

.admin-dashboard .vip-automation-row-editor {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 82px;
  gap: 10px;
  align-items: center;
  max-width: 390px;
}

.admin-dashboard .vip-automation-row-editor select,
.admin-dashboard .vip-automation-row-editor input {
  width: 100%;
  height: 44px;
  min-height: 44px;
}

.admin-dashboard .vip-automation-row-days-field {
  display: block;
}

.admin-dashboard .vip-automation-row-days-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-dashboard .vip-automation-table-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.admin-dashboard .vip-automation-table-actions .button {
  display: inline-flex;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.admin-dashboard .vip-automation-pagination {
  margin-top: 14px;
  justify-content: center;
}

@media (max-width: 760px) {
  .admin-dashboard .vip-automation-top-row,
  .admin-dashboard .vip-automation-enable-card,
  .admin-dashboard .vip-automation-manual-grid,
  .admin-dashboard .vip-automation-list-header {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .vip-automation-list-actions,
  .admin-dashboard .vip-automation-table-toolbar,
  .admin-dashboard .vip-automation-table-actions {
    justify-content: flex-start;
  }

  .admin-dashboard .vip-automation-table {
    min-width: 820px;
  }
}
