/**
 * Dashboard (control room) and Edit menu page styles
 */
 html,body {
  overflow-x: clip!important;
  width: -webkit-fill-available!important;
  margin: 0!important;
  padding: 0!important
}
.hidden { display: none !important; }

.dashboard-draft-modal {
  position: fixed;
  inset: 0;
  z-index: var(--ttms-z-dashboard-edit, 10001);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dashboard-draft-modal.hidden {
  display: none !important;
}

.dashboard-draft-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.dashboard-draft-modal-dialog {
  position: relative;
  z-index: 1;
  background: linear-gradient(155deg, #1e293b 0%, #16213e 55%, #0f172a 100%);
  color: #fff;
  padding: 1.35rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  max-width: 360px;
  width: 100%;
  max-height: min(90vh, 640px);
  overflow-y: auto;
}
.dashboard-draft-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.dashboard-draft-modal-text {
  margin: 0 0 1.25rem;
  opacity: 0.9;
}
.dashboard-draft-modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-save-options-dialog {
  max-width: 520px;
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.3rem 1.15rem;
  border-color: rgba(234, 179, 8, 0.35);
  background: linear-gradient(155deg, #1e293b 0%, #42200633 28%, #0f172a 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(250, 204, 21, 0.12);
  overflow: hidden;
}

.dashboard-save-options-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.dashboard-save-options-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 11px;
  font-size: 1.05rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.45) 0%, rgba(202, 138, 4, 0.35) 100%);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fef3c7;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.22);
}

.dashboard-save-options-head-text {
  flex: 1;
  min-width: 0;
}

.dashboard-save-options-title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
}

.dashboard-save-options-count {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.88);
  font-weight: 500;
}

.dashboard-save-options-count--pending {
  color: rgba(253, 224, 71, 0.95);
}

.dashboard-save-options-changes {
  flex-shrink: 0;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.dashboard-save-options-changes--pending {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(66, 32, 6, 0.28);
}

.dashboard-save-options-changes-heading {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.92);
}

.dashboard-save-options-changes-synced {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #86efac;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dashboard-save-options-changes-synced.hidden {
  display: none !important;
}

.dashboard-save-options-changes-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  max-height: min(28vh, 220px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard-save-options-changes-list.hidden {
  display: none !important;
}

.dashboard-save-options-changes-list .dashboard-edit-changes-item {
  margin-bottom: 0;
}

.dashboard-save-options-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
  max-height: min(24vh, 200px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dashboard-save-options-card {
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.45);
}

.dashboard-save-options-card--primary {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(22, 101, 52, 0.18);
}

.dashboard-save-options-card--danger {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(127, 29, 29, 0.15);
}

.dashboard-save-options-card-title {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dashboard-save-options-card-title .fa {
  opacity: 0.85;
  font-size: 0.78rem;
}

.dashboard-save-options-card-text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.88);
}

.dashboard-save-options-actions {
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-save-options-actions .btn-dash {
  width: 100%;
  justify-content: center;
  gap: 0.45rem;
}

.dashboard-save-options-publish-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: rgba(74, 222, 128, 0.5);
  font-weight: 700;
}

.dashboard-save-options-publish-btn:hover {
  filter: brightness(1.06);
}

.dashboard-save-options-cancel-btn {
  opacity: 0.88;
}

.dashboard-save-options-modal .dashboard-draft-modal-backdrop {
  backdrop-filter: blur(4px);
}

.dashboard-section-image-path-row {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.dashboard-section-image-path-row .dashboard-section-image-path-input {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.dashboard-menu-item-promo-image-path-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.dashboard-menu-item-promo-image-path-row .menu-item-promo-image {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.dashboard-image-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.35rem;
}

.dashboard-leave-snapshot-note {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.45);
  background: rgba(102, 126, 234, 0.12);
  font-size: 0.85rem;
  line-height: 1.4;
}

.dashboard-modal-step {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(199, 210, 254, 0.85);
}

.dashboard-editor-entry-dialog {
  max-width: 400px;
}

.dashboard-editor-entry-options {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dashboard-editor-entry-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dashboard-editor-entry-option:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.45);
}

.dashboard-editor-entry-option--primary {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.15);
}

.dashboard-editor-entry-option-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.dashboard-editor-entry-option-title .fa {
  opacity: 0.9;
  font-size: 0.9rem;
}

.dashboard-editor-entry-option-desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(203, 213, 225, 0.85);
}

.dashboard-editor-entry-actions {
  justify-content: flex-end;
}

.dashboard-publish-summary-modal:not(.hidden) {
  z-index: var(--ttms-z-dashboard-edit, 10001);
}

.dashboard-publish-summary-backdrop {
  backdrop-filter: blur(4px);
}

.dashboard-publish-summary-dialog {
  max-width: 520px;
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.3rem 1.2rem;
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(155deg, #1e293b 0%, #14532d22 35%, #0f172a 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(74, 222, 128, 0.12);
}

.dashboard-publish-summary-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.dashboard-publish-summary-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 11px;
  font-size: 1.05rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4) 0%, rgba(22, 163, 74, 0.35) 100%);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #ecfdf5;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.2);
}

.dashboard-publish-summary-head-text {
  flex: 1;
  min-width: 0;
}

.dashboard-publish-summary-title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
}

.dashboard-publish-summary-count {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(187, 247, 208, 0.95);
  font-weight: 500;
}

.dashboard-publish-summary-list {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0.35rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(42vh, 320px);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-publish-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(15, 23, 42, 0.55);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dashboard-publish-summary-item:hover {
  border-color: rgba(74, 222, 128, 0.38);
  background: rgba(15, 23, 42, 0.72);
}

.dashboard-publish-summary-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 500;
  color: #f1f5f9;
  word-break: break-word;
}

.dashboard-publish-summary-revert {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-publish-summary-revert:hover {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.dashboard-publish-summary-revert:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.45);
}

.dashboard-publish-summary-hint {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(203, 213, 225, 0.72);
  flex-shrink: 0;
}

.dashboard-publish-summary-actions {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: flex-end;
  gap: 0.65rem;
}

.dashboard-publish-summary-actions .btn-dash-secondary {
  min-width: 5.5rem;
  justify-content: center;
}

.dashboard-publish-summary-confirm {
  min-width: 8.5rem;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.55) 0%, rgba(22, 163, 74, 0.65) 100%) !important;
  border: 1px solid rgba(74, 222, 128, 0.55) !important;
  color: #ecfdf5 !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.28) !important;
}

.dashboard-publish-summary-confirm:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.38) !important;
  filter: brightness(1.05);
}

.dashboard-publish-summary-confirm:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* ========== Control room (/dashboard/) ========== */

.dashboard-control-room {
  min-height: 100vh;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 45%, #0f172a 100%);
  padding: 1.5rem 1.25rem 2.5rem;
  color: #fff;
  max-width: 100%;
  box-sizing: border-box;
}

.dashboard-control-room .dashboard-header {
  max-width: 1000px;
  margin: 0 auto 1.35rem;
  color: #fff;
}

.dashboard-control-room .dashboard-header-bar {
  position: relative;
  width: -webkit-fill-available;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.15rem 1.5rem;
  padding: 1.1rem 1.35rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, transparent 42%),
    linear-gradient(160deg, rgba(30, 41, 82, 0.82) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.dashboard-control-room .dashboard-header-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.85) 20%, rgba(167, 139, 250, 0.9) 50%, rgba(129, 140, 248, 0.85) 80%, transparent);
  pointer-events: none;
}

.dashboard-control-room .dashboard-logo-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  text-decoration: none;
  align-self: center;
  color: inherit;
  transition: transform 0.2s ease;
}

.dashboard-control-room .dashboard-logo-link:hover {
  transform: translateY(-1px);
}

.dashboard-control-room .dashboard-logo-link:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.9);
  outline-offset: 4px;
  border-radius: 16px;
}

.dashboard-control-room .dashboard-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.55), rgba(99, 102, 241, 0.35));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.dashboard-control-room .dashboard-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-control-room .dashboard-logo-live-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.95);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  line-height: 1.2;
}

.dashboard-control-room .dashboard-header-main {
  min-width: 0;
  padding-left: 0.15rem;
}

.dashboard-control-room .dashboard-header-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(199, 210, 254, 0.9);
  line-height: 1.2;
}

.dashboard-control-room .dashboard-header-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
  animation: dashboard-header-pulse 2.4s ease-out infinite;
}

@keyframes dashboard-header-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.dashboard-control-room .dashboard-header-site {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-control-room .dashboard-header-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.72);
  max-width: 36ch;
}

.dashboard-control-room .dashboard-header-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.55rem;
  flex-shrink: 0;
  min-width: 0;
  max-width: 15rem;
}

.dashboard-control-room .dashboard-header-account-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.45rem;
  max-width: 100%;
  min-width: 0;
  padding: 0.38rem 0.7rem 0.38rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-control-room .dashboard-header-account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 1.15rem;
  color: rgba(199, 210, 254, 0.88);
}

.dashboard-control-room .dashboard-header-account {
  margin: 0;
  max-width: 100%;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(241, 245, 249, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-control-room .dashboard-header-signout {
  font-size: 0.8rem;
  padding: 0.48rem 0.95rem;
  border-radius: 10px;
  white-space: nowrap;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-control-room .dashboard-header-signout:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.dashboard-control-room .dashboard-header-signout .fa {
  opacity: 0.88;
}

@media (max-width: 720px) {
  .dashboard-control-room .dashboard-header-bar {
    width: 100%;
    max-width: 100%;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo main"
      "end end";
  }

  .dashboard-control-room .dashboard-logo-link {
    grid-area: logo;
  }

  .dashboard-control-room .dashboard-header-main {
    grid-area: main;
  }

  .dashboard-control-room .dashboard-header-end {
    grid-area: end;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.65rem;
  }

  .dashboard-control-room .dashboard-header-account-wrap {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .dashboard-control-room .dashboard-header-account {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .dashboard-control-room .dashboard-logo-link {
    flex-direction: row;
    gap: 0;
  }

  .dashboard-control-room .dashboard-logo-live-badge {
    position: absolute;
    bottom: -0.15rem;
    right: -0.35rem;
    font-size: 0.58rem;
    padding: 0.1rem 0.38rem;
  }
}

.dashboard-control-room .dashboard-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #f8fafc;
}

.dashboard-control-room .dashboard-card-title .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #c7d2fe;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.card-dashboard-menu-images .dashboard-card-title .fa {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.18);
}

.card-dashboard-analytics .dashboard-card-title .fa {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.18);
}

.card-dashboard-notify .dashboard-card-title .fa {
  color: #86efac;
  background: rgba(34, 197, 94, 0.18);
}

.dashboard-control-room .dashboard-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-control-room .btn-dash {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.dashboard-control-room .btn-dash:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dashboard-control-room .btn-dash-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.dashboard-control-room .btn-dash-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.dashboard-control-room .btn-dash-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.dashboard-control-room .cards {
  max-width: min(1000px, 100%);
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 1rem;
}

.dashboard-control-room .card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09) 0%, rgba(15, 23, 42, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.25rem 1.3rem;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.dashboard-control-room .card:hover {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(15, 23, 42, 0.5) 100%);
  border-color: rgba(129, 140, 248, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.dashboard-control-room .card h3:not(.dashboard-card-title):not(.card-edit-menu-title) {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.dashboard-control-room .card-dashboard-menu-images {
  grid-column: 1 / -1;
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(165deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.dashboard-control-room .card p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.9rem;
  line-height: 1.5;
}

.dashboard-control-room .card a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.dashboard-control-room .card a:hover {
  text-decoration: underline;
}

.dashboard-control-room .card .btn-dash {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.dashboard-card-notify-snapshot {
  margin: 0.75rem 0 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-card-notify-snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

.dashboard-card-notify-snapshot-cell {
  min-width: 0;
}

.dashboard-card-notify-snapshot-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.78;
  margin-bottom: 0.15rem;
}

.dashboard-card-notify-snapshot-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.dashboard-card-analytics-hint {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(252, 211, 77, 0.92);
}

.dashboard-card-analytics-hint.hidden {
  display: none !important;
}

.dashboard-menu-images-tagline {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  opacity: 0.9;
  line-height: 1.45;
}

.dashboard-menu-images-tagline strong {
  color: #86efac;
}

.dashboard-menu-images-reel-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}

.dashboard-menu-images-reel-stat {
  font-weight: 600;
  color: #e2e8f0;
}

.dashboard-menu-images-reel-stat--muted {
  font-weight: 500;
  opacity: 0.7;
}

.dashboard-menu-images-reel {
  margin-top: 0.25rem;
}

.dashboard-menu-images-reel__stack {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  min-height: 280px;
  touch-action: none;
  user-select: none;
}

.dashboard-menu-images-card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: grab;
  will-change: transform;
  transition: transform 0.28s ease, box-shadow 0.2s ease;
  --approve-stamp-opacity: 0;
  --decline-stamp-opacity: 0;
}

.dashboard-menu-images-card.is-behind {
  transform: scale(0.94) translateY(10px);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.dashboard-menu-images-card.is-top {
  z-index: 2;
}

.dashboard-menu-images-card.is-dragging {
  cursor: grabbing;
  transition: none;
}

.dashboard-menu-images-card.is-snapping-back {
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.dashboard-menu-images-card.is-exiting {
  pointer-events: none;
  transition: transform 0.32s ease-out, opacity 0.32s ease-out;
}

.dashboard-menu-images-card.is-exit-approve {
  transform: translate(120%, -8%) rotate(18deg) !important;
  opacity: 0;
}

.dashboard-menu-images-card.is-exit-decline {
  transform: translate(-120%, -8%) rotate(-18deg) !important;
  opacity: 0;
}

.dashboard-menu-images-card__stamp {
  position: absolute;
  top: 1.25rem;
  z-index: 4;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 3px solid currentColor;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.dashboard-menu-images-card__stamp--smash {
  left: 1rem;
  color: #4ade80;
  border-color: #4ade80;
  transform: rotate(-12deg);
  opacity: var(--smash-stamp-opacity, 0);
}

.dashboard-menu-images-card__stamp--pass {
  right: 1rem;
  color: #f87171;
  border-color: #f87171;
  transform: rotate(12deg);
  opacity: var(--pass-stamp-opacity, 0);
}

.dashboard-menu-images-card__media {
  position: absolute;
  inset: 0;
}

.dashboard-menu-images-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.dashboard-menu-images-card__img--empty {
  background: linear-gradient(145deg, #1e293b, #334155);
}

.dashboard-menu-images-card__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 2.5rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #fff;
}

.dashboard-menu-images-card__title {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: capitalize;
}

.dashboard-menu-images-card__path {
  display: block;
  font-size: 0.78rem;
  color: #c4b5fd;
  text-decoration: none;
  margin-bottom: 0.15rem;
  word-break: break-word;
}

.dashboard-menu-images-card__path:hover {
  text-decoration: underline;
}

.dashboard-menu-images-card__meta {
  font-size: 0.72rem;
  opacity: 0.8;
}

.dashboard-menu-images-reel__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 0 0.5rem;
}

.dashboard-menu-images-reel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.dashboard-menu-images-reel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dashboard-menu-images-reel-btn:not(:disabled):hover {
  transform: scale(1.06);
}

.dashboard-menu-images-reel-btn:not(:disabled):active {
  transform: scale(0.95);
}

.dashboard-menu-images-reel-btn__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.dashboard-menu-images-reel-btn--decline .dashboard-menu-images-reel-btn__icon {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
  border: 2px solid rgba(248, 113, 113, 0.55);
}

.dashboard-menu-images-reel-btn--approve .dashboard-menu-images-reel-btn__icon {
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
  border: 2px solid rgba(74, 222, 128, 0.55);
}

.dashboard-menu-images-reel-btn__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.dashboard-menu-images-reel-btn--approve .dashboard-menu-images-reel-btn__label {
  color: #86efac;
}

.dashboard-menu-images-reel-btn--decline .dashboard-menu-images-reel-btn__label {
  color: #fca5a5;
}

.dashboard-menu-images-loading,
.dashboard-menu-images-empty {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
  text-align: center;
}

.dashboard-menu-images-error {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #fca5a5;
}

.dashboard-card-menu-images-actions {
  margin-top: 0.85rem;
  text-align: center;
}

.dashboard-menu-images-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: var(--ttms-z-modal, 10050);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: rgba(22, 33, 62, 0.95);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.dashboard-menu-images-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* —— Edit menu card (featured) —— */
.dashboard-control-room .card-edit-menu {
  grid-column: 1 / -1;
  padding: 1.35rem 1.4rem 1.25rem;
  background: linear-gradient(155deg, rgba(30, 41, 82, 0.55) 0%, rgba(15, 23, 42, 0.72) 100%);
  border: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-control-room .card-edit-menu > h3 {
  display: none;
}

.card-edit-menu-head {
  margin-bottom: 1rem;
}

.card-edit-menu-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f8fafc;
}

.card-edit-menu-title .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(129, 140, 248, 0.22);
  color: #c7d2fe;
  font-size: 0.95rem;
}

.card-edit-menu-lead {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.82);
  max-width: 42rem;
}

.dashboard-card-edit-menu-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.dashboard-card-edit-menu-top .btn-dash {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 10rem;
  justify-content: center;
}

.dashboard-card-edit-menu-top .btn-dash .fa {
  opacity: 0.92;
  font-size: 0.9rem;
}

.dashboard-menu-status-block-foot {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-menu-status-open-editor {
  width: 100%;
  justify-content: center;
}

.dashboard-menu-status-block-foot--publish:has(.btn-dash-publish.hidden) {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
}

.dashboard-menu-status-more-btn {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: rgba(199, 210, 254, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.dashboard-menu-status-more-btn:hover {
  color: #e0e7ff;
}

.dashboard-control-room .btn-dash-publish,
.dashboard-menu-status-block-foot--publish .btn-dash-publish {
  width: 100%;
  margin-top: 0;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.45) 0%, rgba(22, 163, 74, 0.55) 100%);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #ecfdf5;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.22);
}

.dashboard-control-room .btn-dash-publish:hover,
.dashboard-menu-status-block-foot--publish .btn-dash-publish:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.58) 0%, rgba(22, 163, 74, 0.68) 100%);
  border-color: rgba(134, 239, 172, 0.7);
}

.dashboard-publish-flash {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
  font-size: 0.86rem;
  line-height: 1.4;
}
.dashboard-publish-flash.hidden {
  display: none !important;
}

.dashboard-menu-status-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.65rem;
  margin: 0;
  min-width: 0;
}

.dashboard-menu-status-block {
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.dashboard-menu-status-block--snapshots {
  border-color: rgba(129, 140, 248, 0.22);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(0, 0, 0, 0.18) 100%);
}

.dashboard-menu-status-block--drafts {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(0, 0, 0, 0.18) 100%);
}

.dashboard-menu-status-block--publish {
  border-color: rgba(34, 197, 94, 0.22);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, rgba(0, 0, 0, 0.18) 100%);
}

.dashboard-menu-status-block + .dashboard-menu-status-block {
  margin-top: 0;
  padding-top: 0.75rem;
  border-top: none;
}

.dashboard-menu-status-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.88);
}

.dashboard-menu-status-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.dashboard-menu-status-block--snapshots .dashboard-menu-status-heading-icon {
  background: rgba(129, 140, 248, 0.25);
  color: #c7d2fe;
}

.dashboard-menu-status-block--drafts .dashboard-menu-status-heading-icon {
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
}

.dashboard-menu-status-block--publish .dashboard-menu-status-heading-icon {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
}

.dashboard-menu-status-body p {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.92);
}

.dashboard-menu-status-body p:last-child {
  margin-bottom: 0;
}

.dashboard-menu-status-intro {
  font-size: 0.82rem !important;
}

.dashboard-menu-status-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-right: 0.15rem;
  font-weight: 600;
}

.dashboard-menu-status-stat-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-menu-status-block--snapshots .dashboard-menu-status-stat-num {
  background: rgba(129, 140, 248, 0.35);
  color: #e0e7ff;
}

.dashboard-menu-status-block--drafts .dashboard-menu-status-stat-num {
  background: rgba(245, 158, 11, 0.35);
  color: #fef3c7;
}

.dashboard-menu-status-muted {
  color: rgba(203, 213, 225, 0.78) !important;
  font-size: 0.78rem !important;
}

.dashboard-menu-status-success {
  color: #bbf7d0 !important;
  font-weight: 600;
}

.dashboard-menu-status-error {
  color: #fecaca !important;
  font-weight: 600;
}

.dashboard-menu-status-loading {
  font-style: italic;
  opacity: 0.85;
}

.dashboard-menu-status-rows,
.dashboard-menu-status-file-list {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.dashboard-menu-status-row {
  margin: 0 0 0.35rem;
}

.dashboard-menu-status-row:last-child {
  margin-bottom: 0;
}

.dashboard-menu-status-row--more {
  font-size: 0.76rem;
  color: rgba(203, 213, 225, 0.7);
  padding-left: 0.15rem;
}

.dashboard-menu-status-snapshot-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dashboard-menu-status-snapshot-item:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(165, 180, 252, 0.55);
  transform: translateY(-1px);
}

.dashboard-menu-status-snapshot-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
}

.dashboard-menu-status-snapshot-item-when {
  font-size: 0.72rem;
  color: rgba(199, 210, 254, 0.85);
}

.dashboard-menu-status-draft-chip {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(254, 243, 199, 0.95);
  word-break: break-word;
}

.dashboard-menu-status-publish-chip {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(220, 252, 231, 0.95);
  word-break: break-word;
}

.dashboard-menu-status-file-list li {
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.3rem;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .dashboard-control-room {
    padding: 1rem 0.75rem 2rem;
  }

  .dashboard-control-room .cards {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .dashboard-control-room .card {
    padding: 1rem 0.85rem;
  }

  .dashboard-control-room .card-edit-menu {
    grid-column: 1;
    padding: 1rem 0.85rem 0.95rem;
  }

  .dashboard-control-room .card-dashboard-menu-images {
    grid-column: 1;
  }

  .dashboard-menu-status-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-card-edit-menu-top .btn-dash {
    min-width: 0;
    width: 100%;
  }

  .dashboard-control-room .btn-dash {
    text-wrap-mode: wrap;
    white-space: normal;
  }

  .dashboard-menu-images-reel__stack {
    max-width: min(340px, 100%);
  }
}

.dashboard-control-room .user-info {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Shared .btn-dash for edit page (outside .dashboard-control-room) */
.btn-dash {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-size: xx-small;
  text-wrap-mode: nowrap;
  justify-content: center;
}

.btn-dash:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-dash-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.btn-dash-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-dash-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-dash-danger {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: 1px solid rgba(220, 38, 38, 0.5);
}
.btn-dash-danger:hover {
  background: rgba(185, 28, 28, 0.95);
  border-color: rgba(220, 38, 38, 0.8);
}
.btn-dash-danger .fa {
}

/* ========== Edit menu page (/edit-menu/) ========== */

.dashboard-edit-page {
  --dashboard-edit-header-height: 3.5rem;
  min-height: 100vh;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.dashboard-edit-header {
  --edit-header-accent: #818cf8;
  --edit-header-accent-soft: rgba(129, 140, 248, 0.2);
  flex-shrink: 0;
  position: relative;
  z-index: 110;
  background: linear-gradient(180deg, rgba(22, 33, 62, 0.98) 0%, rgba(15, 23, 42, 0.96) 100%);
  border-bottom: 1px solid rgba(129, 140, 248, 0.22);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  padding: 0.65rem 1rem;
  height: min-content;
  color: #fff;
}

.dashboard-edit-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.45), transparent);
  pointer-events: none;
}

.dashboard-edit-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.dashboard-edit-header-inner a {
  color: #e2e8f0;
}

.dashboard-edit-header-inner a:hover {
  color: #fff;
}

.dashboard-edit-header--menu .dashboard-edit-header-inner {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  flex-wrap: nowrap;
}

.dashboard-edit-header-start,
.dashboard-edit-header-center,
.dashboard-edit-header-end {
  display: flex;
  align-items: center;
  min-width: 0;
}

.dashboard-edit-header-start {
  gap: 0.65rem;
}

.dashboard-edit-header-center {
  justify-content: center;
  flex-wrap: wrap;
  gap: .2em;
}

.dashboard-edit-header-end {
  justify-content: flex-end;
  overflow: visible;
}

.dashboard-edit-header-cluster {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
}

.dashboard-edit-header-cluster-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1;
  padding-left: 0.15rem;
}

.dashboard-edit-header .btn-dash {
  font-size: 0.8rem;
  border-radius: 10px;
  box-shadow: none;
}

.dashboard-edit-header .btn-dash:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.dashboard-edit-header-back {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.dashboard-edit-header-back:hover {
  background: var(--edit-header-accent-soft);
  border-color: rgba(129, 140, 248, 0.45);
}

.dashboard-edit-header-save {
  position: relative;
  min-height: 2.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  color: #ecfdf5;
}

.dashboard-edit-header-save:hover {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.dashboard-edit-header-save.dashboard-edit-header-save--synced {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  color: #ecfdf5;
}

.dashboard-edit-header-save.dashboard-edit-header-save--synced:hover {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.dashboard-edit-header-save.dashboard-edit-header-save--pending {
  background: linear-gradient(135deg, #fde047 0%, #eab308 55%, #ca8a04 100%);
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.38);
  color: #422006;
}

.dashboard-edit-header-save.dashboard-edit-header-save--pending:hover {
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.48);
}

.dashboard-edit-header-save.dashboard-edit-header-save--pending .fa,
.dashboard-edit-header-save.dashboard-edit-header-save--pending .dashboard-edit-header-save-label {
  color: #422006;
}

.dashboard-edit-header-save-count {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: .1em;
  border-radius: 999px;
  font-size: large;
  background: #111;
  font-weight: 700;
  line-height: 1;
  color: #fef3c7;
  pointer-events: none;
  z-index: 2;
}

.dashboard-edit-header-save-count.hidden {
  display: none !important;
}

.dashboard-edit-header-save .fa {
  font-size: 0.95rem;
}

.dashboard-edit-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.dashboard-edit-mode-toggle {
  display: inline-flex;
  padding: 0.2rem;
  gap: 0.15rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.dashboard-edit-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.5rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-edit-toggle-btn .fa {
  font-size: 0.95rem;
  opacity: 0.92;
}

.dashboard-edit-toggle-btn-label {
  line-height: 1;
}

.dashboard-edit-toggle-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-edit-toggle-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.dashboard-edit-toggle-btn.active .fa {
  opacity: 1;
}

.dashboard-edit-submode-wrap {
  display: inline-flex;
  align-items: flex-start;
}

.dashboard-edit-submode-wrap.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .dashboard-edit-header--menu .dashboard-edit-header-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "start end"
      "center center";
  }

  .dashboard-edit-header-start {
    grid-area: start;
  }

  .dashboard-edit-header-center {
    grid-area: center;
  }

  .dashboard-edit-header-end {
    grid-area: end;
  }
}

@media (max-width: 640px) {
  .dashboard-edit-header-cluster-label,
  .dashboard-edit-toggle-btn-label {
    display: none;
  }

  .dashboard-edit-toggle-btn {
    min-width: 2.35rem;
    padding: 0.4rem 0.55rem;
  }

  .dashboard-edit-header-save .dashboard-edit-header-save-label {
    display: none;
  }

  .dashboard-edit-header-save {
    width: auto;
    min-width: 2.5rem;
    padding: 0 0.45rem;
  }
}

.dashboard-edit-layout {
  flex: 1;
  display: flex;
  grid-template-columns: 1fr 320px;
  grid-template-rows: 1fr;
  min-height: 0;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  justify-content: space-between;
}

.dashboard-edit-preview {
  display: flex;
  flex-direction: column;
  width: -webkit-fill-available;
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-edit-preview-frame-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
}

.dashboard-edit-preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.dashboard-edit-options {
  overflow: hidden;
  min-width: 0;
  width: -webkit-fill-available;
  max-width: 444PX;
  top: var(--dashboard-edit-header-height, 3.5rem);
  height: calc(100vh - var(--dashboard-edit-header-height, 3.5rem));
  max-height: calc(100vh - var(--dashboard-edit-header-height, 3.5rem));
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(13, 27, 42, 0.88) 100%);
  border-left: 1px solid rgba(129, 140, 248, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.22);
  transition: max-width 0.25s ease;
  position: fixed;
  right: 0;
  z-index: 100;
}

.dashboard-edit-options-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-edit-options-header .dashboard-edit-selected-type {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-edit-options-header .dashboard-edit-selected-type:empty {
  display: none;
}

.dashboard-edit-options-header .dashboard-edit-header-mark-btn {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
}

.dashboard-edit-options-header .dashboard-edit-header-mark-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dashboard-edit-options-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  width: auto;
  max-width: 100%;
  margin-left: 0;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.dashboard-edit-options-toggle:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.dashboard-edit-options-toggle-icon {
  font-size: 0.75rem;
}

.dashboard-edit-options-collapsed .dashboard-edit-options-inner {
  display: none;
}

.dashboard-edit-options-collapsed {
  background: none;
  max-width: 0;
}

.dashboard-edit-options-collapsed .dashboard-edit-options-toggle-text {
  display: none;
}

.dashboard-edit-options-collapsed .dashboard-edit-options-header {
  padding: 0.5rem;
}

.dashboard-edit-options-collapsed .dashboard-edit-header-mark-btn {
  display: none;
}

.dashboard-edit-options-inner {
  padding: 0.75rem 1rem 1.25rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dashboard-edit-changes-panel {
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.55) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dashboard-edit-changes-panel--pending {
  border-color: rgba(250, 204, 21, 0.45);
  background: linear-gradient(165deg, rgba(66, 32, 6, 0.35) 0%, rgba(30, 41, 59, 0.65) 100%);
}

.dashboard-edit-changes-panel--synced {
  border-color: rgba(74, 222, 128, 0.35);
}

.dashboard-edit-changes-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-edit-changes-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.95);
}

.dashboard-edit-changes-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 8px;
  background: rgba(129, 140, 248, 0.22);
  color: #c4b5fd;
  font-size: 0.72rem;
}

.dashboard-edit-changes-panel--pending .dashboard-edit-changes-title-icon {
  background: rgba(234, 179, 8, 0.25);
  color: #fde047;
}

.dashboard-edit-changes-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(234, 179, 8, 0.92);
  color: #422006;
}

.dashboard-edit-changes-count.hidden {
  display: none !important;
}

.dashboard-edit-changes-synced {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #86efac;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.dashboard-edit-changes-synced.hidden {
  display: none !important;
}

.dashboard-edit-changes-list {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  max-height: 11rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dashboard-edit-changes-panel--synced .dashboard-edit-changes-list {
  display: none;
}

.dashboard-edit-changes-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.35rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.45);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.dashboard-edit-changes-item:last-child {
  margin-bottom: 0;
}

.dashboard-edit-changes-item[role="button"] {
  cursor: pointer;
}

.dashboard-edit-changes-item[role="button"]:hover {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(30, 41, 59, 0.65);
  transform: translateY(-1px);
}

.dashboard-edit-changes-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(102, 126, 234, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.28);
  white-space: nowrap;
  margin-top: 0.1rem;
}

.dashboard-edit-changes-item--delete .dashboard-edit-changes-kind {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.35);
}

.dashboard-edit-changes-item--new .dashboard-edit-changes-kind {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.35);
}

.dashboard-edit-changes-item--unsaved .dashboard-edit-changes-kind {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.2);
  border-color: rgba(250, 204, 21, 0.35);
}

.dashboard-edit-changes-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.dashboard-edit-changes-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.96);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-edit-changes-status {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.dashboard-edit-changes-item--draft .dashboard-edit-changes-status { color: #fcd34d; }
.dashboard-edit-changes-item--new .dashboard-edit-changes-status { color: #86efac; }
.dashboard-edit-changes-item--delete .dashboard-edit-changes-status { color: #fca5a5; }
.dashboard-edit-changes-item--unsaved .dashboard-edit-changes-status { color: #fde047; }

.dashboard-edit-prompt-hero {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(129, 140, 248, 0.22);
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.12) 0%, rgba(15, 23, 42, 0.35) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard-edit-prompt-hero-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(102, 126, 234, 0.28);
  color: #c4b5fd;
  font-size: 0.95rem;
}

.dashboard-edit-options-pending-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #eab308;
  color: #422006;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1rem;
  text-align: center;
  border: 2px solid rgba(15, 23, 42, 0.9);
  pointer-events: none;
}

.dashboard-edit-options-pending-badge.hidden {
  display: none !important;
}

.dashboard-edit-options-toggle {
  position: relative;
}

.dashboard-edit-options-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.dashboard-edit-options-intro {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.55;
}

.dashboard-edit-prompt {
  margin-bottom: 0;
  flex-shrink: 0;
}

.dashboard-edit-form.hidden,
.dashboard-edit-prompt.hidden {
  display: none !important;
}

/* ----- Edit form: layout and header ----- */
.dashboard-edit-form {
  padding: 0.25rem 0;
}
.dashboard-edit-selected-type {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.35);
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.dashboard-edit-content-source {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: xx-small;
  padding: 0.25rem 0.5rem;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  word-break: break-all;
  line-height: 1.4;
}

.dashboard-edit-options.hidden {
  display: none !important;
}

/* ========== Color mode aside (independent from content aside) ========== */
.dashboard-edit-color-aside {
  --color-aside-accent: #818cf8;
  --color-aside-accent-soft: rgba(129, 140, 248, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 17.5rem;
  max-width: 17.5rem;
  width: 100%;
  top: var(--dashboard-edit-header-height, 3.5rem);
  height: calc(100vh - var(--dashboard-edit-header-height, 3.5rem));
  max-height: calc(100vh - var(--dashboard-edit-header-height, 3.5rem));
  position: fixed;
  right: 0;
  background: linear-gradient(165deg, rgba(22, 33, 62, 0.97) 0%, rgba(15, 23, 42, 0.98) 55%, rgba(10, 15, 30, 0.99) 100%);
  border-left: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
  transition: max-width 0.28s ease, min-width 0.28s ease, box-shadow 0.28s ease;
  z-index: 100;
}

.dashboard-edit-color-aside.hidden {
  display: none !important;
}

.dashboard-edit-color-aside-inner {
  padding: 1rem 1rem 1.25rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 140, 248, 0.45) transparent;
}

.dashboard-edit-color-aside-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-bottom: 0.85rem;
}

.dashboard-edit-color-aside-title-block {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dashboard-edit-color-aside-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #c7d2fe;
  font-size: 0.95rem;
}

.dashboard-edit-color-aside-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-edit-color-aside-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.dashboard-edit-color-aside-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-edit-color-aside-close:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.dashboard-edit-color-aside-close.hidden {
  display: none !important;
}

.dashboard-edit-color-aside-close .fa {
  font-size: 1rem;
  line-height: 1;
}

.dashboard-edit-color-aside--section-open #dashboardEditColorPrompt {
  display: none !important;
}

.dashboard-edit-color-aside-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-edit-color-aside-toggle:hover {
  background: var(--color-aside-accent-soft);
  border-color: rgba(129, 140, 248, 0.55);
  color: #fff;
}

.dashboard-edit-color-aside-toggle-text {
  display: none !important;
}

.dashboard-edit-color-aside-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dashboard-edit-color-aside-toggle-icon .fa {
  font-size: 0.85rem;
}

.dashboard-edit-color-prompt {
  width: 100%;
}

.dashboard-edit-color-intro {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.82);
}

.dashboard-edit-color-sections {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.dashboard-edit-color-section-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  text-align: left;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #667eea9c;
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.dashboard-edit-color-section-btn:hover {
  background: #764ba2;
  transform: translateX(-2px);
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.dashboard-edit-color-section-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.dashboard-edit-color-section-btn.is-active {
  background: #764ba2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.dashboard-edit-color-section-btn.hidden {
  display: none !important;
}

.dashboard-edit-color-section-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
}

.dashboard-edit-color-section-btn-text {
  flex: 1;
  min-width: 0;
  color: #fff;
}

.dashboard-edit-color-section-btn-chevron {
  flex-shrink: 0;
  opacity: 0.75;
  color: #fff;
  font-size: 0.7rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dashboard-edit-color-section-btn:hover .dashboard-edit-color-section-btn-chevron {
  opacity: 0.9;
  transform: translateX(2px);
}

.dashboard-edit-color-form.hidden {
  display: none !important;
}

.dashboard-edit-color-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-edit-color-field {
  margin: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-edit-color-field label {
  display: block;
  margin: 0 0 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.95);
}

.dashboard-edit-color-var-hint {
  display: block;
  margin: 0 0 0.45rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.65rem;
  color: rgba(148, 163, 184, 0.85);
  word-break: break-all;
}

.dashboard-edit-color-field--text .dashboard-edit-input {
  width: 100%;
  box-sizing: border-box;
}

.dashboard-edit-color-fields .dashboard-edit-input,
.dashboard-edit-color-value-input {
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.65);
  color: #f8fafc;
  font-size: 0.72rem;
}

.dashboard-edit-color-fields .dashboard-edit-input:focus,
.dashboard-edit-color-value-input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.25);
}

.dashboard-edit-color-field-row {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  grid-template-rows: auto auto;
  gap: 0.4rem 0.5rem;
  align-items: center;
}

.dashboard-edit-color-picker {
  grid-row: 1 / span 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 3px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.dashboard-edit-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.dashboard-edit-color-picker::-webkit-color-swatch {
  border-radius: 6px;
  border: none;
}

.dashboard-edit-color-field-row .dashboard-edit-color-value-input {
  grid-column: 2;
  width: 100%;
  min-width: 0;
}

.dashboard-edit-color-slider-wrap {
  grid-column: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
}

.dashboard-edit-color-slider-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(203, 213, 225, 0.75);
}

.dashboard-edit-color-slider-value {
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #c7d2fe;
  min-width: 2.25rem;
  text-align: right;
}

.dashboard-edit-color-slider {
  width: 100%;
  min-width: 0;
  height: 0.4rem;
  margin: 0;
  accent-color: var(--color-aside-accent);
  cursor: pointer;
}

.dashboard-edit-color-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.25rem;
}

.dashboard-edit-color-actions .btn-dash {
  width: 100%;
  justify-content: center;
}

.dashboard-edit-color-actions .btn-dash-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Collapsed rail: icon-only section shortcuts */
.dashboard-edit-color-aside-collapsed {
  min-width: 4.25rem;
  max-width: 4.25rem;
  box-shadow: none;
  border-left: none;
  background: none;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-aside-inner {
  padding: 0.65rem 0.45rem;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-form {
  display: none !important;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-aside-toggle,
.dashboard-edit-color-aside-collapsed .dashboard-edit-color-aside-close {
  display: none !important;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-aside-title-block {
  display: none;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-intro {
  display: none;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-section-btn {
  justify-content: center;
  padding: 0.55rem;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-section-btn-text,
.dashboard-edit-color-aside-collapsed .dashboard-edit-color-section-btn-chevron {
  display: none;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-section-btn-icon {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1rem;
}

.dashboard-edit-form-fields-wrap {
  position: relative;
  min-height: 10rem;
  margin-bottom: 1.25rem;
}
.dashboard-edit-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 0;
}
.dashboard-edit-form-fields[aria-busy="true"] {
  pointer-events: none;
  user-select: none;
  opacity: 0.35;
}
.dashboard-edit-form-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(13, 27, 42, 0.82);
  backdrop-filter: blur(6px);
  border-radius: 0.85em;
}
.dashboard-edit-form-loading.hidden {
  display: none !important;
}
.dashboard-edit-form-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
}
.dashboard-edit-form-loading-inner .fa-spinner {
  font-size: 1.75rem;
  color: #a5b4fc;
}

.dashboard-edit-field-group.hidden {
  display: none !important;
}
.dashboard-edit-section-fields.hidden {
  display: none !important;
}
.dashboard-edit-menuitem-fields.hidden {
  display: none !important;
}

/* Edit panel: shared chrome for all .dashboard-btn (secondary actions, wizard footer, etc.) */
.dashboard-edit-options-inner .dashboard-btn,
.dashboard-edit-form .dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.dashboard-edit-options-inner .dashboard-btn-secondary,
.dashboard-edit-form .dashboard-btn-secondary {
  padding: 0.45rem 0.85rem;
  width: -webkit-fill-available;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}
.dashboard-edit-options-inner .dashboard-btn-secondary:hover,
.dashboard-edit-form .dashboard-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}
.dashboard-edit-options-inner .dashboard-btn-secondary:focus-visible,
.dashboard-edit-form .dashboard-btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.55);
}

/* Menu item wizard: step tabs (aligned with .btn-dash-secondary / edit panel) */
.dashboard-menu-item-wizard-nav {
  display: flex;
  margin-block-end: .25em;
  gap: 0.4rem;
  width: -webkit-fill-available;
  flex-wrap: wrap;
  justify-content: center;
}
.dashboard-wizard-tab {
  margin: 0;
  text-wrap-mode: nowrap;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.dashboard-wizard-tab:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}
.dashboard-wizard-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.55);
}
.dashboard-wizard-tab-active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.45) 0%, rgba(118, 75, 162, 0.4) 100%);
  border-color: rgba(102, 126, 234, 0.75);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.dashboard-wizard-tab-active:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.55) 0%, rgba(118, 75, 162, 0.48) 100%);
  border-color: rgba(102, 126, 234, 0.9);
}
.dashboard-menu-item-wizard-progress {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}
.dashboard-menu-item-wizard-note {
  margin-bottom: 0.65rem;
}

/* Section editor: CDN icon picker */
.dashboard-edit-optional {
  font-weight: 500;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.55);
}

.dashboard-section-icon-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dashboard-section-icon-selected-preview {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgb(123 123 123 / 92%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.dashboard-section-icon-selected-preview--empty .dashboard-section-icon-preview-img {
  opacity: 0.25;
}
.dashboard-section-icon-preview-img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}
.dashboard-section-icon-selected-label {
  flex: 1 1 8rem;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-word;
}
.dashboard-section-icon-clear-btn {
  flex: 0 0 auto;
}
.dashboard-section-icon-category-tabs {
  display: flex;
  overflow: scroll;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.dashboard-section-icon-category-tab {
  margin: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  display: flex;
  gap: .25em;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.dashboard-section-icon-category-tab:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(102, 126, 234, 0.45);
}
.dashboard-section-icon-category-tab-active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.45) 0%, rgba(118, 75, 162, 0.4) 100%);
  border-color: rgba(102, 126, 234, 0.75);
  color: #fff;
}
.dashboard-section-icon-category-count {
  opacity: 0.75;
  font-weight: 500;
}
.dashboard-section-icon-search {
  width: 100%;
  margin-bottom: 0.4rem;
  box-sizing: border-box;
}
.dashboard-section-icon-status {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}
#dashboardEditSectionIconWrap {
  overflow: hidden;
}
.dashboard-section-icon-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
}
.dashboard-section-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr));
  gap: 0.35rem;
  max-height: min(13rem, 30vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard-section-icon-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dashboard-section-icon-pager.hidden {
  display: none;
}
.dashboard-section-icon-pager-btn {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}
.dashboard-section-icon-pager-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(102, 126, 234, 0.45);
}
.dashboard-section-icon-pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dashboard-section-icon-pager-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  min-width: 6.5rem;
  text-align: center;
}
@media (max-width: 480px) {
  #dashboardEditSectionIconWrap {
  }
  .dashboard-section-icon-grid {
    max-height: min(11rem, 28vh);
    grid-template-columns: repeat(auto-fill, minmax(3.75rem, 1fr));
  }
}
.dashboard-section-icon-grid-empty {
  grid-column: 1 / -1;
  margin: 0.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.dashboard-section-icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.62rem;
  line-height: 1.2;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.dashboard-section-icon-option:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(102, 126, 234, 0.45);
}
.dashboard-section-icon-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.55);
}
.dashboard-section-icon-option--selected {
  border-color: rgba(102, 126, 234, 0.9);
  background: rgba(102, 126, 234, 0.22);
  box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.35);
}
.dashboard-section-icon-option img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  pointer-events: none;
  background: rgb(137 137 137 / 92%);
  border-radius: 4px;
}
.dashboard-section-icon-option-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
#dashboardWizardPanel4 .dashboard-edit-field.dashboard-menu-item-availability-times {
  display: inline-block;
  width: calc(50% - 0.35rem);
  vertical-align: top;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  #dashboardWizardPanel4 .dashboard-edit-field.dashboard-menu-item-availability-times {
    width: 100%;
  }
}
.dashboard-menu-item-wizard-panels {
  margin-bottom: 0.75rem;
  background: #111;
  border-radius: 1em;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.dashboard-menu-item-wizard-panel {
  border-radius: 0.85em;
  padding: 0.65rem 0.5rem 0.5rem;
  border: 2px solid transparent;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.dashboard-menu-item-wizard-panel.hidden {
  display: none !important;
  content-visibility: hidden;
}
.dashboard-menu-item-wizard-panels--prompt-complete {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}
.dashboard-menu-item-wizard-panels--prompt-required {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.08);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12);
}
.dashboard-menu-item-wizard-panels--prompt-empty,
.dashboard-menu-item-wizard-panels--prompt-progress {
}
.dashboard-menu-item-wizard-panel--prompt-complete {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.08);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.08);
}
.dashboard-menu-item-wizard-panel--prompt-required {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.07);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.08);
}
.dashboard-menu-item-wizard-panel--prompt-empty {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.06);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.06);
}
.dashboard-wizard-tab--prompt-complete:not(.dashboard-wizard-tab-active) {
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
}
.dashboard-wizard-tab--prompt-required:not(.dashboard-wizard-tab-active) {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}
.dashboard-wizard-tab--prompt-empty:not(.dashboard-wizard-tab-active) {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}
.dashboard-wizard-tab-active.dashboard-wizard-tab--prompt-complete {
  border-color: rgba(74, 222, 128, 0.85);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
}
.dashboard-wizard-tab-active.dashboard-wizard-tab--prompt-required {
  border-color: rgba(248, 113, 113, 0.85);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
}
.dashboard-wizard-tab-active.dashboard-wizard-tab--prompt-empty {
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3), 0 1px 3px rgba(0, 0, 0, 0.25);
}
.dashboard-menu-item-wizard-footer {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: space-between;
}
.dashboard-menu-item-wizard-footer .dashboard-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dashboard-edit-field {
  margin-bottom: 0.5rem;
}
.dashboard-edit-field:last-child {
  margin-bottom: 0;
}

/* Add buttons (Add price, Add category, etc.) — dashed outline on top of base .dashboard-btn-secondary */
.dashboard-edit-field .dashboard-btn-secondary.dashboard-btn-add-cat,
.dashboard-edit-field .dashboard-btn-secondary.dashboard-btn-add-item,
.dashboard-edit-field .dashboard-btn-secondary#btnAddPrice,
.dashboard-edit-field .dashboard-btn-secondary#btnAddModification,
.dashboard-edit-field .dashboard-btn-secondary#btnAddAddition,
.dashboard-edit-field .dashboard-btn-secondary#btnAddTag,
.dashboard-edit-field .dashboard-btn-secondary#btnAddIngredient,
.dashboard-edit-field .dashboard-btn-secondary#btnAddCookingmethod,
.dashboard-edit-field .dashboard-btn-secondary#btnAddType,
.dashboard-edit-field .dashboard-btn-secondary#btnAddEvent,
.dashboard-edit-field .dashboard-btn-secondary#btnAddMenuItemPromotion,
.dashboard-edit-field .dashboard-btn-secondary#btnAddPromoDay {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.dashboard-edit-field .dashboard-btn-secondary#btnAddPrice:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddModification:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddAddition:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddTag:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddIngredient:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddCookingmethod:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddType:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddEvent:hover,
.dashboard-edit-field .dashboard-btn-secondary.dashboard-btn-add-cat:hover,
.dashboard-edit-field .dashboard-btn-secondary.dashboard-btn-add-item:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddMenuItemPromotion:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddPromoDay:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}
.dashboard-edit-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.dashboard-edit-checkbox-wrap input[type="checkbox"] {
  margin: 0;
  width: 1.1em;
  height: 1.1em;
}

.dashboard-side-categories-ui {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.side-cat-block {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.side-cat-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.6rem;
  justify-content: center;
}
.side-cat-header .side-cat-name { flex: 1 1 120px; min-width: 100px; }
.side-cat-header .side-cat-display-name { flex: 1 1 160px; min-width: 120px; }
.side-cat-min-max-group {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.side-cat-min-max-wrap {
  display: inline-flex;
  flex-direction: row;
  gap: 0.2rem;
  align-items: center;
}
.side-cat-min-max-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.side-cat-header .side-cat-min,
.side-cat-header .side-cat-max { width: 4rem; }
.side-cat-items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.side-cat-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.side-cat-item .side-item-name { flex: 1 1 140px; min-width: 100px; }
.side-cat-item .side-item-price { width: 5rem; }
.dashboard-edit-options-inner .dashboard-btn-remove-cat,
.dashboard-edit-options-inner .dashboard-btn-remove-item,
.dashboard-edit-form .dashboard-btn-remove-cat,
.dashboard-edit-form .dashboard-btn-remove-item {
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.dashboard-edit-options-inner .dashboard-btn-remove-cat:hover,
.dashboard-edit-options-inner .dashboard-btn-remove-item:hover,
.dashboard-edit-form .dashboard-btn-remove-cat:hover,
.dashboard-edit-form .dashboard-btn-remove-item:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
}
.dashboard-btn-add-item {
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  margin-top: 0.25rem;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-prices-ui,
.dashboard-pairs-ui,
.dashboard-list-ui {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.dashboard-price-row,
.dashboard-pair-row,
.dashboard-list-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard-price-row .price-size { flex: 1 1 100px; min-width: 80px; }
.dashboard-price-row .price-flavour { flex: 1 1 80px; min-width: 60px; }
.dashboard-price-row .price-price { width: 5rem; }
.dashboard-pair-row .pair-name { flex: 1 1 120px; min-width: 80px; }
.dashboard-pair-row .pair-price { width: 5rem; }
.dashboard-list-row .list-value { flex: 1 1 160px; min-width: 100px; }
.dashboard-edit-options-inner .dashboard-btn-remove-row,
.dashboard-edit-form .dashboard-btn-remove-row {
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.dashboard-edit-options-inner .dashboard-btn-remove-row:hover,
.dashboard-edit-form .dashboard-btn-remove-row:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Item promotions block (wizard step 5) */
.dashboard-menu-item-promotions-ui {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.dashboard-menu-item-promo-row {
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard-menu-item-promo-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.dashboard-menu-item-promo-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.dashboard-menu-item-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  align-items: start;
}
.dashboard-menu-item-promo-field-span {
  grid-column: 1 / -1;
}
@media (max-width: 520px) {
  .dashboard-menu-item-promo-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-menu-item-images-hint {
  margin: 0 0 0.5rem !important;
  font-size: 0.72rem !important;
  text-align: left !important;
}

.dashboard-menu-item-images-ui {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dashboard-menu-item-images-upload-status {
  display: none;
  margin: 0 0 0.45rem;
  min-height: 1.15em;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(147, 197, 253, 0.95);
}

.dashboard-menu-item-images-upload-status--active {
  display: block;
}

.dashboard-menu-item-images-upload-status--error {
  color: rgba(252, 165, 165, 0.95);
}

.dashboard-menu-item-images-empty {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.dashboard-menu-item-image-row {
  display: grid;
  grid-template-columns: auto 4.25rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Home hero: single image row (no drag handle column) */
.dashboard-hero-image-row.dashboard-menu-item-image-row {
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.6rem;
}

.dashboard-hero-image-row .dashboard-menu-item-image-path-actions {
  flex-wrap: wrap;
}

.dashboard-edit-input.dashboard-hero-image-path-input.hidden {
  display: none !important;
}

.dashboard-site-image-modal-dialog {
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dashboard-site-image-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.dashboard-site-image-modal-head .dashboard-draft-modal-title {
  margin: 0;
  flex: 1;
}
.dashboard-site-image-modal-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.dashboard-site-image-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.dashboard-site-image-modal-hint {
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}
.dashboard-site-image-modal-loading {
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.dashboard-site-image-modal-loading.hidden {
  display: none !important;
}
.dashboard-site-image-modal-error {
  color: #fca5a5;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.dashboard-site-image-modal-empty {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.dashboard-site-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.5rem;
  overflow-y: auto;
  max-height: min(50vh, 22rem);
  padding: 0.15rem 0 0.25rem;
}
.dashboard-site-image-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.dashboard-site-image-pick-btn:hover {
  border-color: rgba(102, 126, 234, 0.55);
  background: rgba(102, 126, 234, 0.12);
}
.dashboard-site-image-pick-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}
.dashboard-site-image-pick-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dashboard-site-image-pick-thumb--broken {
  background: rgba(239, 68, 68, 0.2);
}
.dashboard-site-image-pick-label {
  font-size: 0.62rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.75);
  word-break: break-all;
  max-height: 2.4em;
  overflow: hidden;
}

.dashboard-menu-item-image-row--over {
  border-color: rgba(102, 126, 234, 0.65);
  box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.3);
}

.dashboard-menu-item-image-row--dragging {
  opacity: 0.8;
}

.dashboard-menu-item-image-drag {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  padding: 0.35rem 0.2rem;
  color: rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  line-height: 1;
  align-self: center;
}

.dashboard-menu-item-image-drag:active {
  cursor: grabbing;
}

.dashboard-menu-item-image-thumb-wrap {
  position: relative;
  width: 4.25rem;
  height: 3.5rem;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.dashboard-menu-item-image-thumb-loading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.2rem;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.58rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.dashboard-menu-item-image-thumb-loading .fa-spinner {
  font-size: 0.95rem;
  opacity: 0.95;
}

.dashboard-menu-item-image-thumb-loading-label {
  display: block;
}

.dashboard-menu-item-image-row--uploading .dashboard-menu-item-image-thumb-loading {
  display: flex;
}

.dashboard-menu-item-image-thumb-wrap--empty {
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 6px,
    rgba(255, 255, 255, 0.09) 6px,
    rgba(255, 255, 255, 0.09) 12px
  );
}

.dashboard-menu-item-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-menu-item-image-path-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard-menu-item-image-path-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.dashboard-menu-item-image-replace {
  font-size: 0.75rem !important;
  padding: 0.28rem 0.45rem !important;
  align-self: flex-start;
  min-width: auto;
}

.dashboard-menu-item-image-path.dashboard-edit-input {
  margin: 0;
  width: 100%;
  min-width: 0;
  font-size: 0.82rem;
}

.dashboard-menu-item-image-remove {
  padding: 0.35rem 0.5rem;
  min-width: 2rem;
}

@media (max-width: 520px) {
  .dashboard-menu-item-image-row {
    grid-template-columns: auto 3.5rem minmax(0, 1fr) auto;
  }
  .dashboard-hero-image-row.dashboard-menu-item-image-row {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }
  .dashboard-menu-item-image-thumb-wrap {
    width: 3.5rem;
    height: 3rem;
  }
}

.dashboard-edit-slideshow-view {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 0;
  min-height: 4rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dashboard-edit-slide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 6rem;
  flex-shrink: 0;
}
.dashboard-edit-slide-item img {
  width: 100%;
  height: 4rem;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard-edit-slide-cap {
  font-size: 0.65rem;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  word-break: break-all;
}

.dashboard-edit-field-note {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  text-align: center;
}

.dashboard-edit-field label {
  display: block;
  margin-block: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
}

.dashboard-edit-input,
.dashboard-edit-textarea {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: #1a1a2e;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dashboard-edit-input::placeholder,
.dashboard-edit-textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.dashboard-edit-input:focus,
.dashboard-edit-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.35);
}

.dashboard-edit-textarea {
  min-height: 5em;
  resize: vertical;
}

/* Inputs inside row UIs (slightly smaller, sit in card) */
.dashboard-price-row .dashboard-edit-input,
.dashboard-pair-row .dashboard-edit-input,
.dashboard-list-row .dashboard-edit-input,
.side-cat-block .dashboard-edit-input {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

/* ========== Opening hours – week + zoomable day ========== */
.hours-editor {
  margin-top: 0.5rem;
}
.hours-view.hidden {
  display: none !important;
}
.hours-editor-week .hours-week-day-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.25rem;
  padding: 0 2px;
}
.hours-editor-week .hours-week-day-labels span {
  flex: 1;
  text-align: center;
}
/* Single week timeline: one continuous strip, 7 segments */
.hours-week-timeline {
  display: flex;
  margin-bottom: 0.25rem;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  min-height: 40px;
  cursor: pointer;
}
.hours-week-segment {
  flex: 1;
  position: relative;
  min-width: 0;
  display: flex;
  align-items: stretch;
}
.hours-week-segment:hover {
  background: rgba(255, 255, 255, 0.06);
}
.hours-week-segment-track {
  position: relative;
  flex: 1;
  margin: 4px 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.hours-week-segment:first-child .hours-week-segment-track {
  margin-left: 4px;
}
.hours-week-segment:last-child .hours-week-segment-track {
  margin-right: 4px;
}
.hours-week-segment-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  pointer-events: none;
  transition: left 0.08s, width 0.08s;
}
.hours-day-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.hours-back-btn, .hours-delete-day-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
}
.hours-back-btn:hover, .hours-delete-day-btn:hover {
  background: rgba(255,255,255,0.2);
}
.hours-delete-day-btn:hover {
  border-color: rgba(220,80,80,0.6);
  background: rgba(220,80,80,0.2);
}
.hours-day-view-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.hours-day-handles {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.hours-day-handle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  width: -webkit-fill-available;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  justify-content: center;
}
.hours-day-handle-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}
.hours-day-handle-btn.hours-day-handle-selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.5);
}
.hours-day-handle-label {
  opacity: 0.9;
}
.hours-day-handle-time {
  font-weight: 700;
  min-width: 2.5em;
}
.hours-day-week-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}
.hours-day-week-labels span {
  flex: 1;
  text-align: center;
}
.hours-day-track-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  cursor: crosshair;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}
.hours-day-view .hours-timeline-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.15);
}
.hours-day-view .hours-timeline-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  pointer-events: none;
  transition: left 0.1s, width 0.1s;
}
.hours-day-view .hours-range {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.hours-day-view .hours-day-close {
  z-index: 3;
}
.hours-day-view .hours-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  cursor: grab;
}
.hours-day-view .hours-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  cursor: grab;
  border: none;
}
.hours-day-summary {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  opacity: 0.9;
}
.dashboard-edit-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-edit-form-actions .btn-dash {
  flex: 1;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 8px;
}

.dashboard-edit-option-note {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.dashboard-edit-option-group {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-edit-option-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dashboard-edit-option-heading {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.dashboard-edit-option-desc {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.4;
}

.dashboard-edit-option-btn {
  width: 100%;
  justify-content: center;
}

.dashboard-edit-option-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


@media (max-width: 900px) {
  .dashboard-edit-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh 1fr;
  }

  .dashboard-edit-preview {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ========== Analytics page (/analytics/) ========== */

.dashboard-analytics-page {
  min-height: 100vh;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.dashboard-analytics-page--full {
  background: linear-gradient(165deg, #1a1a2e 0%, #16213e 42%, #0f172a 100%);
}

.dashboard-analytics-header .dashboard-edit-header-inner {
  align-items: center;
  gap: 0.85rem 1rem;
}

.dashboard-analytics-header-start {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.dashboard-analytics-header-text {
  flex: 1;
  min-width: 0;
}

.dashboard-analytics-lead {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.88);
  max-width: 28rem;
}

.dashboard-analytics-external-link {
  flex-shrink: 0;
  white-space: nowrap;
  gap: 0.4rem;
}

.dashboard-analytics-upgrade-link {
  flex-shrink: 0;
  white-space: nowrap;
  gap: 0.4rem;
}

.dashboard-analytics-external-link .fa {
  font-size: 0.85em;
  opacity: 0.9;
}

.dashboard-analytics-upgrade-link .fa {
  font-size: 0.85em;
}

.dashboard-analytics-main {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

.dashboard-analytics-main--full {
  max-width: 920px;
  padding: 1.35rem 1rem 2.5rem;
}

.dashboard-analytics-period {
  margin-bottom: 2rem;
}

.dashboard-analytics-panel {
  border-color: rgba(56, 189, 248, 0.22);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.07) 0%, rgba(0, 0, 0, 0.2) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.dashboard-analytics-panel-icon {
  background: rgba(56, 189, 248, 0.22);
  color: #bae6fd;
}

.dashboard-analytics-panel .dashboard-analytics-heading {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.dashboard-analytics-panel .dashboard-analytics-subtitle {
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0.82;
}

.dashboard-analytics-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #fff;
}

.dashboard-analytics-subtitle {
  margin: 0 0 1.5rem;
  opacity: 0.85;
  font-size: 0.95rem;
}

.dashboard-analytics-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-analytics-metrics--full {
  margin: 0 0 1.15rem;
  gap: 0.75rem;
}

.dashboard-analytics-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}

.dashboard-analytics-metric-card {
  position: relative;
  padding: 1rem 1rem 1rem 2.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.dashboard-analytics-metric-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.dashboard-analytics-metric-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.dashboard-analytics-metric-card .dashboard-analytics-card-value {
  font-size: 1.35rem;
  color: #e0f2fe;
}

.dashboard-analytics-card-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.dashboard-analytics-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.dashboard-analytics-note {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

.dashboard-analytics-footnote {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.dashboard-analytics-note--loading {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: rgba(203, 213, 225, 0.9);
}

.dashboard-analytics-note--ok {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
}

.dashboard-analytics-note--warn {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: #fde68a;
}

.dashboard-analytics-note-icon {
  margin-top: 0.12rem;
  flex-shrink: 0;
}

.dashboard-analytics-note-icon--loading {
  color: #7dd3fc;
}

.dashboard-analytics-note-icon--ok {
  color: #86efac;
}

.dashboard-analytics-note-icon--warn {
  color: #fcd34d;
}

.dashboard-analytics-note-icon[hidden] {
  display: none !important;
}

.dashboard-analytics-note-text {
  flex: 1;
  min-width: 0;
}

.dashboard-analytics-main > .dashboard-analytics-note {
  margin-top: 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-analytics-note a {
  color: #7dd3fc;
  font-weight: 600;
}

.dashboard-analytics-note--ok a {
  color: #86efac;
}

.dashboard-analytics-note--warn a {
  color: #fde68a;
}

.dashboard-analytics-note a:hover {
  color: #fff;
  text-decoration: underline;
}

.dashboard-analytics-trends {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-analytics-trends-legend-item--pageviews .fa {
  color: #93c5fd;
}

.dashboard-analytics-trends-legend-item--visits .fa {
  color: #86efac;
}

.dashboard-analytics-trends-legend-item--menu .fa {
  color: #fcd34d;
}

.dashboard-analytics-trends-legend-item--cart .fa {
  color: #c4b5fd;
}

.dashboard-analytics-trends-legend-item--orders .fa {
  color: #f472b6;
}

.dashboard-analytics-trends-legend-item--search .fa {
  color: #67e8f9;
}

.dashboard-analytics-trends-bar--pageviews {
  fill: rgba(96, 165, 250, 0.9);
}

.dashboard-analytics-trends-bar--visits {
  fill: rgba(74, 222, 128, 0.85);
}

.dashboard-analytics-trends-bar--menu {
  fill: rgba(251, 191, 36, 0.9);
}

.dashboard-analytics-trends-bar--cart {
  fill: rgba(167, 139, 250, 0.85);
}

.dashboard-analytics-trends-bar--orders {
  fill: rgba(244, 114, 182, 0.88);
}

.dashboard-analytics-trends-bar--search {
  fill: rgba(103, 232, 249, 0.88);
}

@media (max-width: 640px) {
  .dashboard-analytics-header .dashboard-edit-header-inner {
    flex-wrap: wrap;
  }

  .dashboard-analytics-external-link,
  .dashboard-analytics-upgrade-link {
    width: 100%;
    justify-content: center;
  }

  .dashboard-analytics-metrics--full {
    grid-template-columns: 1fr;
  }
}

/* ========== Notifications dashboard (/notifications/) ========== */

.dashboard-notify-page {
  background: linear-gradient(165deg, #1a1a2e 0%, #16213e 42%, #0f172a 100%);
}

.dashboard-notify-header .dashboard-edit-header-inner {
  align-items: center;
  gap: 0.85rem 1rem;
}

.dashboard-notify-header-start {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.dashboard-notify-header-text {
  flex: 1;
  min-width: 0;
}

.dashboard-notify-lead {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.88);
  max-width: 28rem;
}

.dashboard-notify-external-link {
  flex-shrink: 0;
  white-space: nowrap;
  gap: 0.4rem;
}

.dashboard-notify-external-link .fa {
  font-size: 0.85em;
  opacity: 0.9;
}

.dashboard-notify-main {
  max-width: 1120px;
  padding: 1.35rem 1rem 2.5rem;
}

.dashboard-notify-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  margin: 0 0 1rem;
  flex-direction: column;
}

.dashboard-notify-banner[hidden] {
  display: none !important;
}

.dashboard-notify-banner .fa {
  margin-top: 0.12rem;
  flex-shrink: 0;
}

.dashboard-notify-banner-warn {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.dashboard-notify-banner .dashboard-notify-relink-btn {
  margin-top: 0.5rem;
}

.dashboard-notify-overview-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  color: #c7d2fe;
  font-size: 0.88rem;
}

.dashboard-notify-overview-loading[hidden] {
  display: none !important;
}

.dashboard-notify-panel--loading .dashboard-notify-metrics {
  opacity: 0.72;
}

.dashboard-notify-panel--loading .dashboard-notify-metric-card .dashboard-analytics-card-value {
  color: rgba(226, 232, 240, 0.55);
}

.dashboard-analytics-card-value--counting {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.dashboard-notify-panel--loading .dashboard-analytics-card-value--counting {
  color: rgba(254, 243, 199, 0.92);
}

.dashboard-notify-trends-chart-wrap--loading {
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-notify-trends-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.88rem;
  color: rgba(203, 213, 225, 0.8);
}

.dashboard-notify-table-loading-row td {
  text-align: center;
  padding: 1.25rem 0.75rem;
  color: rgba(203, 213, 225, 0.8);
  font-size: 0.88rem;
}

.dashboard-notify-photo-history-section {
  margin-bottom: 1.25rem;
}

.dashboard-notify-code,
.dashboard-notify-inline-code {
  font-size: 0.82em;
  word-break: break-all;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.dashboard-notify-status-error {
  color: #fca5a5 !important;
}

.dashboard-notify-panel {
  margin-bottom: 0;
}

.dashboard-notify-panel--overview {
  border-color: rgba(245, 158, 11, 0.25);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.dashboard-notify-panel--welcome {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.dashboard-notify-panel--send {
  border-color: rgba(56, 189, 248, 0.22);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.dashboard-notify-panel--history {
  border-color: rgba(129, 140, 248, 0.22);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.dashboard-notify-panel-icon {
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
}

.dashboard-notify-panel--send .dashboard-notify-panel-icon {
  background: rgba(56, 189, 248, 0.22);
  color: #bae6fd;
}

.dashboard-notify-panel--history .dashboard-notify-panel-icon {
  background: rgba(129, 140, 248, 0.22);
  color: #c7d2fe;
}

.dashboard-notify-metrics {
  margin: 0;
  display: flex;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  flex-direction: column;
}

@media (min-width: 720px) {
  .dashboard-notify-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .dashboard-notify-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dashboard-notify-metric-card {
  position: relative;
  padding: 1rem 1rem 1rem 2.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.dashboard-notify-metric-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.dashboard-notify-metric-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.75rem;
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.dashboard-notify-metric-card .dashboard-analytics-card-value {
  font-size: 1.35rem;
  color: #fef3c7;
}

.dashboard-notify-metric-card .dashboard-analytics-card-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(203, 213, 225, 0.72);
}

.dashboard-notify-metric-card--primary {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.dashboard-notify-metric-card--growth {
  border-color: rgba(45, 212, 191, 0.22);
}

.dashboard-notify-metric-card--loss {
  border-color: rgba(248, 113, 113, 0.22);
}

.dashboard-notify-metric-icon--growth {
  background: rgba(45, 212, 191, 0.2);
  color: #99f6e4;
}

.dashboard-notify-metric-icon--loss {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

.dashboard-notify-trends {
  margin-top: 1.25rem;
}

.dashboard-notify-trends-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-notify-trends-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.75rem;
  color: rgba(203, 213, 225, 0.78);
}

.dashboard-notify-trends-legend-item .fa {
  margin-right: 0.3rem;
}

.dashboard-notify-trends-legend-item--sent .fa {
  color: #fcd34d;
}

.dashboard-notify-trends-legend-item--delivered .fa {
  color: #86efac;
}

.dashboard-notify-trends-legend-item--confirmed .fa {
  color: #93c5fd;
}

.dashboard-notify-trends-legend-item--clicked .fa {
  color: #c4b5fd;
}

.dashboard-notify-trends-legend-item--subscribed .fa {
  color: #5eead4;
}

.dashboard-notify-trends-legend-item--unsubscribed .fa {
  color: #fca5a5;
}

.dashboard-notify-trends-chart-wrap {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.45);
}

.dashboard-notify-trends-chart {
  width: 100%;
  min-height: 220px;
  overflow-x: auto;
}

.dashboard-notify-trends-svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 640px;
}

.dashboard-notify-trends-grid {
  stroke: rgba(148, 163, 184, 0.14);
  stroke-width: 1;
}

.dashboard-notify-trends-axis-y,
.dashboard-notify-trends-axis-x {
  fill: rgba(148, 163, 184, 0.75);
  font-size: 10px;
}

.dashboard-notify-trends-bar--sent {
  fill: rgba(251, 191, 36, 0.9);
}

.dashboard-notify-trends-bar--delivered {
  fill: rgba(74, 222, 128, 0.85);
}

.dashboard-notify-trends-bar--confirmed {
  fill: rgba(96, 165, 250, 0.85);
}

.dashboard-notify-trends-bar--clicked {
  fill: rgba(167, 139, 250, 0.85);
}

.dashboard-notify-trends-bar--subscribed {
  fill: rgba(45, 212, 191, 0.88);
}

.dashboard-notify-trends-bar--unsubscribed {
  fill: rgba(248, 113, 113, 0.85);
}

.dashboard-notify-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-notify-history-item {
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(129, 140, 248, 0.18);
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, background 0.15s ease;
  overflow: hidden;
}

.dashboard-notify-history-item:hover,
.dashboard-notify-history-item--open {
  border-color: rgba(129, 140, 248, 0.38);
  background: rgba(15, 23, 42, 0.6);
}

.dashboard-notify-history-toggle {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  padding: 0.75rem 2.25rem 0.75rem 0.85rem;
  margin: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.dashboard-notify-history-toggle:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.45);
}

.dashboard-notify-history-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(199, 210, 254, 0.65);
  transition: transform 0.15s ease;
}

.dashboard-notify-history-item--open .dashboard-notify-history-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.dashboard-notify-history-detail {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid rgba(129, 140, 248, 0.12);
}

.dashboard-notify-history-detail[hidden] {
  display: none;
}

.dashboard-notify-history-hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.65);
}

.dashboard-notify-history-hint .fa {
  margin-right: 0.35rem;
  opacity: 0.85;
}

.dashboard-notify-history-subtabs {
  margin-top: 0.5rem;
}

.dashboard-notify-history-tablist {
  margin-bottom: 1rem;
}

.dashboard-notify-history-panels > .dashboard-notify-history-pane {
  display: none;
}

.dashboard-notify-history-panels > .dashboard-notify-history-pane.dashboard-notify-preview-pane--active {
  display: block;
}

.dashboard-notify-photos-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-notify-photos-item {
  margin: 0;
}

.dashboard-notify-photos-link {
  display: flex;
  align-items: stretch;
  gap: 0.875rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(129, 140, 248, 0.18);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.dashboard-notify-photos-link:hover,
.dashboard-notify-photos-link:focus-visible {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-1px);
}

.dashboard-notify-photos-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-notify-photos-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-notify-photos-thumb--empty {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.25rem;
}

.dashboard-notify-photos-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.dashboard-notify-photos-title {
  font-weight: 600;
  color: #f8fafc;
}

.dashboard-notify-photos-meta {
  font-size: 0.8125rem;
  color: rgba(226, 232, 240, 0.72);
}

.dashboard-notify-photos-action {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: #c7d2fe;
}

.dashboard-notify-photos-action .fa {
  margin-left: 0.25rem;
  font-size: 0.75rem;
}

.dashboard-notify-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.9);
}

.dashboard-notify-detail-stat strong {
  color: rgba(199, 210, 254, 0.85);
  font-weight: 600;
}

.dashboard-notify-detail-loading,
.dashboard-notify-detail-empty,
.dashboard-notify-detail-error {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: rgba(203, 213, 225, 0.75);
}

.dashboard-notify-detail-error {
  color: #fca5a5;
}

.dashboard-notify-subsection {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-notify-subsection-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
}

.dashboard-notify-subsection-lead {
  margin-bottom: 0.85rem;
}

.dashboard-notify-admin-alert-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 36rem;
}

.dashboard-notify-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.dashboard-notify-toggle input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #818cf8;
}

.dashboard-notify-toggle-label {
  font-weight: 600;
  color: #f1f5f9;
}

.dashboard-notify-admin-alert-hint {
  margin: 0;
  padding-left: 1.75rem;
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.75);
}

.dashboard-notify-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(129, 140, 248, 0.15);
  background: rgba(0, 0, 0, 0.18);
}

.dashboard-notify-detail-table-wrap {
  margin-top: 0.25rem;
}

.dashboard-notify-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.dashboard-notify-table th,
.dashboard-notify-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.dashboard-notify-table th {
  font-weight: 600;
  color: rgba(199, 210, 254, 0.9);
  background: rgba(15, 23, 42, 0.55);
  white-space: nowrap;
}

.dashboard-notify-table tbody tr:last-child td {
  border-bottom: none;
}

.dashboard-notify-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-notify-sub-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  word-break: break-all;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.dashboard-notify-status-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-notify-status-badge--delivered {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.dashboard-notify-status-badge--confirmed {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.dashboard-notify-status-badge--clicked {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

.dashboard-notify-status-badge--pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.dashboard-notify-status-badge--failed {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.dashboard-notify-error-cell {
  max-width: 14rem;
  font-size: 0.72rem;
  color: #fca5a5;
  word-break: break-word;
}

.dashboard-notify-history-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #f8fafc;
}

.dashboard-notify-history-meta {
  font-size: 0.8rem;
  color: rgba(199, 210, 254, 0.78);
}

.dashboard-notify-empty {
  margin: 0.5rem 0 0;
  padding: 1rem;
  text-align: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(203, 213, 225, 0.75);
}

.dashboard-notify-tabs {
  margin-bottom: 0.25rem;
}

.dashboard-notify-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  padding: 0.35rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  justify-content: center;
}

.dashboard-notify-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.55rem 0.95rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(203, 213, 225, 0.82);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-notify-tab .fa {
  font-size: 0.9em;
  opacity: 0.88;
}

.dashboard-notify-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-notify-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45);
}

.dashboard-notify-tab[aria-selected="true"],
.dashboard-notify-tab.dashboard-notify-tab--active {
  color: #fff;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.28) 100%);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
}

.dashboard-notify-tab-panels {
  min-height: 10rem;
}

.dashboard-notify-tab-panel[hidden] {
  display: none !important;
}

.dashboard-notify-tab-section.dashboard-settings-panel {
  margin-bottom: 0;
}

.dashboard-notify-page .dashboard-settings-form-actions .btn-dash-primary {
  min-width: 10rem;
  justify-content: center;
  gap: 0.4rem;
}

.dashboard-notify-page .dashboard-settings-form-grid {
  gap: 0.85rem 1rem;
}

.dashboard-notify-page .dashboard-settings-input:disabled,
.dashboard-notify-page .dashboard-settings-input.dashboard-settings-textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dashboard-notify-send-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.28) !important;
}

.dashboard-notify-send-btn:hover {
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.38) !important;
}

.dashboard-notify-footnote {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 0.84rem;
  line-height: 1.5;
  opacity: 0.92;
}

.dashboard-notify-footnote .fa {
  margin-top: 0.15rem;
  color: #fcd34d;
  flex-shrink: 0;
}

.dashboard-notify-footnote a {
  color: #fde68a;
  font-weight: 600;
}

.dashboard-notify-footnote a:hover {
  color: #fff;
  text-decoration: underline;
}

.dashboard-notify-branding-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.dashboard-notify-branding-upload .dashboard-branding-file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.dashboard-notify-branding-upload .dashboard-branding-preview[hidden] {
  display: none !important;
}

.dashboard-notify-branding-upload .dashboard-notify-clear-image[hidden] {
  display: none !important;
}

.dashboard-notify-upload-status--error {
  color: #fecaca !important;
}

/* Form sections (Welcome / Send tabs) */
.dashboard-notify-welcome-form,
.dashboard-notify-send-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.dashboard-notify-form-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dashboard-notify-form-section + .dashboard-notify-form-section {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-notify-form-section-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.dashboard-notify-form-section-lead {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.72);
  max-width: 36rem;
}

.dashboard-notify-form-grid {
  margin-top: 0.15rem;
}

.dashboard-notify-form-actions {
  margin-top: 0.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-notify-panel--welcome .dashboard-notify-form-actions .btn-dash-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22);
}

.dashboard-notify-panel--send .dashboard-notify-form-actions .btn-dash-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.22);
}

/* Media upload cards */
.dashboard-notify-branding-grid {
  margin-top: 0.25rem;
}

.dashboard-notify-branding-grid .dashboard-settings-branding-row {
  border-color: rgba(245, 158, 11, 0.2);
}

.dashboard-notify-branding-grid .dashboard-settings-branding-row:hover {
  border-color: rgba(245, 158, 11, 0.42);
}

.dashboard-notify-branding-grid--send .dashboard-settings-branding-row {
  border-color: rgba(56, 189, 248, 0.2);
}

.dashboard-notify-branding-grid--send .dashboard-settings-branding-row:hover {
  border-color: rgba(56, 189, 248, 0.42);
}

.dashboard-notify-media-card.dashboard-notify-media-card--has-image {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(15, 23, 42, 0.55);
}

.dashboard-notify-media-card.dashboard-notify-media-card--using-default {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.45);
}

.dashboard-notify-media-card--using-default .dashboard-settings-hint::after {
  content: ' · Site default';
  opacity: 0.85;
}

.dashboard-notify-media-upload {
  width: 100%;
}

.dashboard-notify-media-preview-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.dashboard-notify-media-preview-wrap--icon {
  width: 6em;
  height: 6em;
  margin: auto;
}

.dashboard-notify-media-preview-wrap--wide {
  width: 100%;
  max-width: 220px;
  height: 72px;
}

.dashboard-notify-media-preview-wrap .dashboard-branding-preview {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  border-radius: 9px;
  border: none;
  object-fit: contain;
}

.dashboard-notify-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(148, 163, 184, 0.55);
  font-size: 1.35rem;
}

.dashboard-notify-media-card--has-image .dashboard-notify-media-placeholder {
  display: none;
}

.dashboard-notify-media-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  justify-content: center;
}

.dashboard-notify-media-upload .dashboard-settings-hint {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.75);
}

.dashboard-notify-send-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 560px) {
  .dashboard-notify-send-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-notify-broadcast-callout {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.dashboard-notify-broadcast-callout[hidden] {
  display: none !important;
}

.dashboard-notify-broadcast-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  margin: 0;
}

.dashboard-notify-broadcast-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #818cf8;
}

.dashboard-notify-broadcast-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.92);
}

.dashboard-notify-broadcast-text strong {
  color: #e0e7ff;
}

.dashboard-notify-broadcast-hint {
  font-size: 0.78rem;
  color: rgba(199, 210, 254, 0.72);
  line-height: 1.4;
}

/* Platform notification previews */
.dashboard-notify-form-layout {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

@media (min-width: 960px) {
  .dashboard-notify-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 1.35rem 1.5rem;
    align-items: start;
  }

  .dashboard-notify-form-aside,
  .dashboard-notify-preview-panel {
    position: sticky;
    top: 0.85rem;
  }
}

.dashboard-notify-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
}

.dashboard-notify-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.95rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-notify-preview-kind="welcome"] .dashboard-notify-preview-panel {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(0, 0, 0, 0.22) 100%);
}

[data-notify-preview-kind="send"] .dashboard-notify-preview-panel {
  border-color: rgba(56, 189, 248, 0.22);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06) 0%, rgba(0, 0, 0, 0.22) 100%);
}

.dashboard-notify-preview-panel-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dashboard-notify-preview-panel-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f8fafc;
}

.dashboard-notify-preview-panel-lead {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.82);
}

.dashboard-notify-media-panels {
  margin-top: 0.65rem;
}

.dashboard-notify-media-pane .dashboard-notify-media-card {
  margin: 0;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(15, 23, 42, 0.45);
}

.dashboard-notify-media-tabs-root--send .dashboard-notify-media-pane .dashboard-notify-media-card {
  border-color: rgba(56, 189, 248, 0.22);
}

.dashboard-notify-media-tablist--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-notify-media-upload--tabbed {
  align-items: center;
  text-align: center;
}

.dashboard-notify-media-upload--tabbed .dashboard-notify-media-preview-wrap--wide {
  max-width: 100%;
  width: 100%;
  height: 8rem;
}

.dashboard-notify-preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-notify-preview-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.45rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.78);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dashboard-notify-preview-tab .fa {
  font-size: 0.85em;
}

.dashboard-notify-preview-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-notify-preview-tab--active,
.dashboard-notify-preview-tab[aria-selected="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.dashboard-notify-preview-stage {
  min-height: 22rem;
  position: relative;
}

.dashboard-notify-preview-pane {
  display: none;
}

.dashboard-notify-preview-pane.dashboard-notify-preview-pane--active {
  display: block;
}

.dashboard-notify-stage-label {
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}

.dashboard-notify-stage-canvas {
  border-radius: 12px;
  overflow: hidden;
  min-height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
}

.dashboard-notify-stage-canvas--web {
  background:
    radial-gradient(circle at 20% 18%, rgba(59, 130, 246, 0.18) 0%, transparent 45%),
    linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-notify-stage-canvas--phone {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.65rem;
}

/* Chrome / Windows notification */
.dashboard-notify-chrome-toast {
  width: 100%;
  max-width: 17.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.14),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.dashboard-notify-chrome-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem 0.35rem;
}

.dashboard-notify-chrome-toast-origin {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.dashboard-notify-chrome-toast-origin-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.dashboard-notify-chrome-toast-site {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-notify-chrome-toast-via {
  font-size: 0.62rem;
  color: #6b7280;
}

.dashboard-notify-chrome-toast-when {
  flex-shrink: 0;
  font-size: 0.62rem;
  color: #9ca3af;
}

.dashboard-notify-chrome-toast-content {
  padding: 0 0.65rem 0.55rem;
}

.dashboard-notify-chrome-toast-content .dashboard-notify-mock-title {
  color: #111827;
  font-size: 0.84rem;
  margin-bottom: 0.12rem;
}

.dashboard-notify-chrome-toast-content .dashboard-notify-mock-message {
  color: #4b5563;
  font-size: 0.76rem;
}

.dashboard-notify-chrome-toast-image {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-notify-chrome-toast-image .dashboard-notify-mock-banner {
  max-height: 7rem;
}

/* Phone bezel */
.dashboard-notify-phone-bezel {
  width: 100%;
  max-width: 15.5rem;
  min-height: 18.5rem;
  margin: 0 auto;
  border-radius: 1.65rem;
  padding: 0.55rem 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 16px 36px rgba(0, 0, 0, 0.45);
}

.dashboard-notify-phone-bezel--android {
  background: linear-gradient(180deg, #1e1b4b 0%, #312e81 35%, #0f172a 100%);
}

.dashboard-notify-phone-bezel--ios {
  background: linear-gradient(180deg, #475569 0%, #1e293b 50%, #0f172a 100%);
}

.dashboard-notify-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.35rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #f8fafc;
}

.dashboard-notify-phone-status--ios {
  padding-top: 0.15rem;
}

.dashboard-notify-phone-status-icons {
  display: inline-flex;
  gap: 0.25rem;
  font-size: 0.56rem;
  opacity: 0.9;
}

.dashboard-notify-phone-camera {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  background: #020617;
}

.dashboard-notify-dynamic-island {
  width: 4.25rem;
  height: 1.05rem;
  margin: 0 auto 0.45rem;
  border-radius: 999px;
  background: #020617;
}

.dashboard-notify-phone-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 1.15rem;
  overflow: hidden;
}

.dashboard-notify-phone-display--android {
  justify-content: flex-end;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.18);
}

.dashboard-notify-phone-display--ios {
  padding: 0.35rem 0.4rem 0.45rem;
  background: rgba(0, 0, 0, 0.15);
}

/* Android Material card */
.dashboard-notify-material-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(32, 32, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-notify-material-card-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem 0.2rem;
  font-size: 0.62rem;
  color: rgba(203, 213, 225, 0.78);
}

.dashboard-notify-material-app {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-notify-material-dot {
  opacity: 0.6;
}

.dashboard-notify-material-when {
  flex-shrink: 0;
}

.dashboard-notify-material-chevron {
  flex-shrink: 0;
  margin-left: 0.15rem;
  font-size: 0.55rem;
  opacity: 0.55;
}

.dashboard-notify-material-body {
  padding: 0 0.6rem 0.5rem;
}

.dashboard-notify-material-body .dashboard-notify-mock-title {
  color: #f9fafb;
  font-size: 0.8rem;
  margin-bottom: 0.1rem;
}

.dashboard-notify-material-body .dashboard-notify-mock-message {
  color: rgba(209, 213, 219, 0.9);
  font-size: 0.74rem;
  -webkit-line-clamp: 2;
}

.dashboard-notify-material-hero {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-notify-material-hero .dashboard-notify-mock-banner {
  max-height: 6.5rem;
}

/* iOS lock screen */
.dashboard-notify-ios-lock {
  text-align: center;
  color: #fff;
  margin-bottom: 0.65rem;
}

.dashboard-notify-ios-lock-day {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.dashboard-notify-ios-lock-time {
  display: block;
  font-size: 2.35rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.dashboard-notify-ios-notifs {
  width: 100%;
}

.dashboard-notify-ios-group {
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(150%);
}

.dashboard-notify-ios-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
}

.dashboard-notify-ios-banner-copy {
  flex: 1;
  min-width: 0;
}

.dashboard-notify-ios-banner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.1rem;
}

.dashboard-notify-ios-app {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-notify-ios-when {
  flex-shrink: 0;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.55);
}

.dashboard-notify-ios-banner .dashboard-notify-mock-title {
  color: #fff;
  font-size: 0.78rem;
  margin-bottom: 0.08rem;
}

.dashboard-notify-ios-banner .dashboard-notify-mock-message {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  -webkit-line-clamp: 2;
}

.dashboard-notify-ios-rich {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-notify-ios-rich[hidden] {
  display: none !important;
}

.dashboard-notify-mock-banner--ios {
  width: 100%;
  max-height: 5.5rem;
  object-fit: cover;
  display: block;
}

/* Shared mock elements */
.dashboard-notify-mock-icon-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.22);
}

.dashboard-notify-mock-icon-wrap--chrome {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
}

.dashboard-notify-mock-icon-wrap--material {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
}

.dashboard-notify-mock-icon-wrap--ios {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
}

.dashboard-notify-mock-icon-wrap--has-img {
  background: transparent;
}

.dashboard-notify-mock-icon-wrap--has-img .dashboard-notify-mock-icon-fallback {
  display: none;
}

.dashboard-notify-mock-icon-fallback {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.8);
}

.dashboard-notify-mock-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-notify-mock-icon[hidden] {
  display: none !important;
}

.dashboard-notify-mock-title {
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-notify-mock-message {
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-notify-mock-banner {
  display: block;
  width: 100%;
  object-fit: cover;
}

[data-preview-banner-wrap][hidden] {
  display: none !important;
}

.dashboard-notify-previews--has-banner .dashboard-notify-chrome-toast,
.dashboard-notify-previews--has-banner .dashboard-notify-material-card,
.dashboard-notify-previews--has-banner .dashboard-notify-ios-group {
  animation: dashboard-notify-preview-pop 0.35s ease;
}

@keyframes dashboard-notify-preview-pop {
  from {
    opacity: 0.88;
    transform: translateY(3px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .dashboard-notify-form-layout {
    gap: 1rem;
  }

  .dashboard-notify-preview-panel {
    position: static;
    padding: 0.8rem;
  }

  .dashboard-notify-preview-stage {
    min-height: 19rem;
  }

  .dashboard-notify-stage-canvas {
    min-height: 17rem;
    padding: 0.65rem;
  }

  .dashboard-notify-phone-bezel {
    min-height: 16.5rem;
  }

  .dashboard-notify-ios-lock-time {
    font-size: 1.85rem;
  }

  .dashboard-notify-header .dashboard-edit-header-inner {
    flex-wrap: wrap;
  }

  .dashboard-notify-external-link {
    width: 100%;
    justify-content: center;
  }

  .dashboard-notify-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }

  .dashboard-notify-tab .fa {
    display: none;
  }
}

/* ========== Menu settings page – key/value rows ========== */

.dashboard-settings-page {
  background: linear-gradient(165deg, #1a1a2e 0%, #16213e 42%, #0f172a 100%);
}

.dashboard-settings-header .dashboard-edit-header-inner {
  align-items: flex-start;
  gap: 0.85rem 1rem;
}

.dashboard-settings-header-text {
  flex: 1;
  min-width: 0;
}

.dashboard-settings-lead {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.88);
  max-width: 36rem;
}

.dashboard-settings-main {
  max-width: 920px;
  padding: 1.35rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.dashboard-settings-section {
  margin-bottom: 0;
}

.dashboard-settings-panel {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.15rem 1.25rem 1.3rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.dashboard-settings-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-settings-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  font-size: 1rem;
  flex-shrink: 0;
  background: rgba(129, 140, 248, 0.22);
  color: #c7d2fe;
}

.dashboard-settings-panel--ordering .dashboard-settings-panel-icon {
  background: rgba(99, 102, 241, 0.28);
  color: #e0e7ff;
}

.dashboard-settings-panel--notify .dashboard-settings-panel-icon {
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
}

.dashboard-settings-panel--services .dashboard-settings-panel-icon {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.dashboard-settings-panel--social .dashboard-settings-panel-icon {
  background: rgba(56, 189, 248, 0.2);
  color: #bae6fd;
}

.dashboard-settings-panel--branding .dashboard-settings-panel-icon {
  background: rgba(168, 85, 247, 0.22);
  color: #e9d5ff;
}

.dashboard-settings-panel-head-text {
  flex: 1;
  min-width: 0;
}

.dashboard-settings-panel--ordering {
  border-color: rgba(129, 140, 248, 0.22);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.dashboard-ordering-layout {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dashboard-ordering-group {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
}

.dashboard-ordering-group--channel {
  border-color: rgba(34, 197, 94, 0.2);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.dashboard-ordering-group-title {
  display: block;
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(199, 210, 254, 0.92);
}

.dashboard-ordering-group-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.72);
}

.dashboard-ordering-group-body {
  margin: 0;
}

.dashboard-ordering-switch-row {
  align-items: center;
}

.dashboard-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

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

.dashboard-switch-track {
  position: relative;
  width: 2.85rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.dashboard-switch-input:checked + .dashboard-switch-track {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.dashboard-switch-input:checked + .dashboard-switch-track::after {
  transform: translateX(1.3rem);
}

.dashboard-switch-input:focus-visible + .dashboard-switch-track {
  outline: 2px solid rgba(129, 140, 248, 0.85);
  outline-offset: 2px;
}

.dashboard-ordering-channel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dashboard-ordering-channel-switch {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.22rem;
  gap: 0.2rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.dashboard-ordering-channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.45rem 0.95rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-ordering-channel-btn .fa {
  font-size: 1rem;
}

.dashboard-ordering-channel-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-ordering-channel-btn.active {
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#os-channel-whatsapp.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(22, 163, 74, 0.95) 100%);
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.32);
}

#os-channel-phone.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.32);
}

.dashboard-ordering-channel-btn:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.85);
  outline-offset: 2px;
}

.dashboard-ordering-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dashboard-ordering-contact-field {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-ordering-contact-field:focus-within {
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.dashboard-ordering-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  font-size: 1.05rem;
}

.dashboard-ordering-group--channel .dashboard-ordering-contact-icon .fa-whatsapp {
  color: #4ade80;
}

.dashboard-ordering-group--channel .dashboard-ordering-contact-icon .fa-phone {
  color: #93c5fd;
}

.dashboard-ordering-contact-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dashboard-ordering-contact-input:focus {
  box-shadow: none !important;
}

.dashboard-ordering-contact-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.65);
}

.dashboard-ordering-form .dashboard-settings-form-grid {
  gap: 0.45rem 1rem;
}

.dashboard-ordering-form .dashboard-settings-row {
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-settings-panel--notify {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.dashboard-settings-panel--services {
  border-color: rgba(148, 163, 184, 0.2);
}

.dashboard-settings-panel--social {
  border-color: rgba(56, 189, 248, 0.2);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.dashboard-settings-panel--branding {
  border-color: rgba(168, 85, 247, 0.22);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.dashboard-settings-section .dashboard-analytics-heading {
  margin-bottom: 0.2rem;
  font-size: 1.15rem;
}

.dashboard-settings-section .dashboard-analytics-subtitle {
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0.82;
}

.dashboard-settings-footnote {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(129, 140, 248, 0.2);
  font-size: 0.84rem;
  line-height: 1.5;
  opacity: 0.9;
}

.dashboard-settings-footnote .fa {
  margin-top: 0.15rem;
  color: #a5b4fc;
  flex-shrink: 0;
}

.dashboard-settings-footnote code {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.dashboard-settings-readonly-hint {
  font-size: 0.88rem;
  opacity: 0.78;
  margin-bottom: 0.85rem !important;
}

.dashboard-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 100%;
}

.dashboard-settings-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .dashboard-settings-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
  }

  .dashboard-settings-form-grid .dashboard-settings-row--full {
    grid-column: 1 / -1;
  }
}

.dashboard-settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dashboard-settings-form .dashboard-settings-row:hover {
  border-color: rgba(129, 140, 248, 0.18);
  background: rgba(15, 23, 42, 0.5);
}

.dashboard-settings-readonly-grid .dashboard-settings-row {
  background: rgba(0, 0, 0, 0.15);
}

.dashboard-settings-readonly-grid .dashboard-settings-row:hover {
  border-color: transparent;
  background: rgba(0, 0, 0, 0.15);
}

.dashboard-settings-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(226, 232, 240, 0.92);
  min-width: 0;
  flex: 0 0 100%;
}

@media (min-width: 520px) {
  .dashboard-settings-form .dashboard-settings-label {
    flex: 0 0 8.5rem;
    max-width: 8.5rem;
  }

  .dashboard-settings-readonly-grid .dashboard-settings-label {
    flex: 0 0 9.5rem;
    max-width: 9.5rem;
  }
}

.dashboard-settings-value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  flex: 1 1 12rem;
  min-width: 0;
  width: 100%;
}

.dashboard-settings-value code {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.dashboard-settings-thumb {
  vertical-align: middle;
  border-radius: 8px;
  margin-right: 0.5rem;
}

/* Branding uploads: fixed slots + contain so any aspect ratio is letterboxed, not stretched */
.dashboard-branding-preview {
  display: block;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.dashboard-branding-preview:not(.dashboard-branding-preview--wide) {
  width: 48px;
  height: 48px;
}

.dashboard-branding-preview--wide {
  width: 96px;
  height: 48px;
  background: rgba(0, 0, 0, 0.25);
}

.dashboard-settings-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  line-height: 1.3;
}

.dashboard-settings-pill--on {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.dashboard-settings-pill--off {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dashboard-settings-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  word-break: break-all;
}

.dashboard-settings-branding .dashboard-settings-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-settings-form .dashboard-settings-row {
  align-items: flex-start;
}

.dashboard-settings-form .dashboard-settings-label {
  padding-top: 0.35rem;
}

.dashboard-settings-input,
.dashboard-settings-input.dashboard-settings-textarea {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(0, 0, 0, 0.32);
  color: #f8fafc;
  font-size: 0.88rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-settings-input::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.dashboard-settings-input:hover {
  border-color: rgba(129, 140, 248, 0.4);
}

.dashboard-settings-input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.dashboard-settings-textarea {
  resize: vertical;
  min-height: 3.25rem;
}

.dashboard-settings-textarea--autosize {
  resize: none;
  overflow-y: hidden;
  min-height: 3.25rem;
  line-height: 1.45;
}

.dashboard-settings-value--textarea {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard-settings-char-count {
  align-self: flex-end;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.85);
}

.dashboard-settings-char-count--limit {
  color: #fca5a5;
  font-weight: 600;
}

select.dashboard-settings-input {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(199, 210, 254, 0.9) 50%),
    linear-gradient(135deg, rgba(199, 210, 254, 0.9) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) calc(50% - 3px), calc(100% - 0.75rem) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.dashboard-settings-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: center;
}

.dashboard-settings-page .dashboard-settings-form-actions .btn-dash-primary {
  min-width: 10rem;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  border: 1px solid rgba(129, 140, 248, 0.45);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
}

.dashboard-settings-page .dashboard-settings-form-actions .btn-dash-primary:hover {
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.38);
}

.dashboard-settings-save-status {
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.85);
}

.dashboard-settings-save-status:not(:empty) {
  color: #86efac;
  font-weight: 500;
}

.dashboard-settings-save-status.dashboard-notify-status-error {
  color: #fca5a5;
}

.dashboard-settings-branding-row {
  align-items: flex-start;
}

.dashboard-settings-branding-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 100%;
}

.dashboard-branding-file-label {
  cursor: pointer;
  margin: 0;
  display: inline-block;
  position: relative;
}

.dashboard-branding-file-label 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;
}

.dashboard-branding-upload-status {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  min-height: 1.2em;
}

.dashboard-settings-branding-grid {
  max-width: none !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0.85rem;
}

.dashboard-settings-branding-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.dashboard-settings-branding-card:hover {
  border-color: rgba(168, 85, 247, 0.38);
  transform: translateY(-1px);
}

.dashboard-settings-branding-card-title {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(233, 213, 255, 0.95);
  line-height: 1.3;
}

.dashboard-settings-branding-card-usage {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.78);
}

.dashboard-settings-branding-card-file {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.85);
}

.dashboard-settings-branding-card-file code {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.dashboard-settings-branding-card-upload {
  padding-top: 0.1rem;
}

.dashboard-settings-branding-card--mappin {
  grid-column: 1 / -1;
}

.dashboard-settings-branding-mappin-body {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
}

.dashboard-mappin-style-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(15, 23, 42, 0.5);
}

.dashboard-mappin-style-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-mappin-style-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(187, 247, 208, 0.92);
}

.dashboard-mappin-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-mappin-preview-pin {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 60px;
  color: var(--ttms-map-pin-color, #000000);
}

.dashboard-mappin-preview__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

.dashboard-mappin-preview__icon {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 48%;
  height: 60%;
  z-index: 2;
  object-fit: contain;
  pointer-events: none;
}

.dashboard-mappin-preview-svg {
  display: block;
}

.dashboard-mappin-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.65rem 0.85rem;
}

.dashboard-mappin-style-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.dashboard-mappin-style-field .dashboard-settings-label {
  flex: none;
  min-width: 0;
  font-size: 0.76rem;
}

.dashboard-mappin-color-input {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dashboard-mappin-color-picker {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
  cursor: pointer;
}

.dashboard-mappin-color-text {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.dashboard-mappin-style-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .dashboard-settings-branding-mappin-body {
    grid-template-columns: 1fr;
  }
}

.dashboard-settings-branding-grid .dashboard-settings-branding-row {
  margin: 0;
  padding: 0.9rem;
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.dashboard-settings-branding-grid .dashboard-settings-branding-row:hover {
  border-color: rgba(168, 85, 247, 0.38);
  transform: translateY(-1px);
}

.dashboard-settings-branding-grid .dashboard-settings-branding-row .dashboard-settings-label {
  min-width: 0;
  font-weight: 600;
  font-size: 0.82rem;
  flex: none;
}

.dashboard-settings-branding-grid .dashboard-settings-branding-upload,
.dashboard-settings-branding-card-upload {
  padding-top: 0.15rem;
}

.dashboard-settings-branding-upload .dashboard-branding-preview,
.dashboard-settings-branding-card-upload .dashboard-branding-preview {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.dashboard-settings-branding-upload .dashboard-branding-file-label,
.dashboard-settings-branding-card-upload .dashboard-branding-file-label {
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
}

.dashboard-settings-branding-upload .dashboard-branding-upload-status:not(:empty),
.dashboard-settings-branding-card-upload .dashboard-branding-upload-status:not(:empty) {
  color: #86efac;
  font-weight: 500;
}

@media (min-width: 720px) {
  .dashboard-settings-branding-grid .dashboard-settings-branding-row,
  .dashboard-settings-branding-card {
    flex-direction: column;
  }
}

/* ========== Edit menu field prompts (onboarding-style validation colors) ========== */
.dashboard-edit-page .dashboard-edit-field--prompt-complete > label,
.dashboard-edit-color-aside .dashboard-edit-field--prompt-complete > label {
  color: #4ade80;
}

.dashboard-edit-page .dashboard-edit-field--prompt-required > label,
.dashboard-edit-color-aside .dashboard-edit-field--prompt-required > label {
  color: #f87171;
}

.dashboard-edit-page .dashboard-edit-field--prompt-empty > label,
.dashboard-edit-color-aside .dashboard-edit-field--prompt-empty > label {
  color: #fbbf24;
}

.dashboard-edit-page .dashboard-edit-field--prompt-complete .dashboard-edit-input:not([type="checkbox"]):not([type="hidden"]),
.dashboard-edit-page .dashboard-edit-field--prompt-complete .dashboard-edit-textarea,
.dashboard-edit-page .dashboard-edit-field--prompt-complete select.dashboard-edit-input,
.dashboard-edit-color-aside .dashboard-edit-field--prompt-complete .dashboard-edit-input {
  border-color: rgba(34, 197, 94, 0.72);
  background: rgba(240, 253, 244, 0.96);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.dashboard-edit-page .dashboard-edit-field--prompt-required .dashboard-edit-input:not([type="checkbox"]):not([type="hidden"]),
.dashboard-edit-page .dashboard-edit-field--prompt-required .dashboard-edit-textarea,
.dashboard-edit-page .dashboard-edit-field--prompt-required select.dashboard-edit-input,
.dashboard-edit-color-aside .dashboard-edit-field--prompt-required .dashboard-edit-input {
  border-color: rgba(239, 68, 68, 0.72);
  background: rgba(254, 242, 242, 0.96);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.dashboard-edit-page .dashboard-edit-field--prompt-empty .dashboard-edit-input:not([type="checkbox"]):not([type="hidden"]),
.dashboard-edit-page .dashboard-edit-field--prompt-empty .dashboard-edit-textarea,
.dashboard-edit-page .dashboard-edit-field--prompt-empty select.dashboard-edit-input,
.dashboard-edit-color-aside .dashboard-edit-field--prompt-empty .dashboard-edit-input {
  border-color: rgba(245, 158, 11, 0.72);
  background: rgba(255, 251, 235, 0.96);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.dashboard-edit-page .dashboard-edit-field--prompt-complete .dashboard-price-row .dashboard-edit-input,
.dashboard-edit-page .dashboard-edit-field--prompt-complete .dashboard-pair-row .dashboard-edit-input,
.dashboard-edit-page .dashboard-edit-field--prompt-complete .dashboard-list-row .dashboard-edit-input,
.dashboard-edit-page .dashboard-edit-field--prompt-complete .side-cat-block .dashboard-edit-input,
.dashboard-edit-page .dashboard-edit-field--prompt-complete .dashboard-menu-item-promo-row .dashboard-edit-input,
.dashboard-edit-page .dashboard-edit-field--prompt-required .dashboard-price-row .dashboard-edit-input,
.dashboard-edit-page .dashboard-edit-field--prompt-required .dashboard-pair-row .dashboard-edit-input,
.dashboard-edit-page .dashboard-edit-field--prompt-empty .dashboard-price-row .dashboard-edit-input,
.dashboard-edit-page .dashboard-edit-field--prompt-empty .dashboard-pair-row .dashboard-edit-input,
.dashboard-edit-page .dashboard-edit-field--prompt-empty .dashboard-list-row .dashboard-edit-input,
.dashboard-edit-page .dashboard-edit-field--prompt-empty .side-cat-block .dashboard-edit-input,
.dashboard-edit-page .dashboard-edit-field--prompt-empty .dashboard-menu-item-promo-row .dashboard-edit-input {
  border-color: inherit;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.dashboard-edit-page .dashboard-edit-field--prompt-complete .dashboard-menu-item-images-empty,
.dashboard-edit-page .dashboard-edit-field--prompt-empty .dashboard-menu-item-images-empty {
  color: rgba(255, 255, 255, 0.75);
}

.dashboard-edit-page .dashboard-edit-field--prompt-complete.dashboard-edit-field[data-dashboard-composite],
.dashboard-edit-page .dashboard-edit-field--prompt-empty.dashboard-edit-field[data-dashboard-composite],
.dashboard-edit-page .dashboard-edit-field--prompt-required.dashboard-edit-field[data-dashboard-composite] {
  border-radius: 10px;
  padding: 0.5rem 0.55rem 0.65rem;
  margin-bottom: 0.65rem;
}

.dashboard-edit-page .dashboard-edit-field--prompt-complete[data-dashboard-composite] {
  border: 2px dashed rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.06);
}

.dashboard-edit-page .dashboard-edit-field--prompt-required[data-dashboard-composite] {
  border: 2px dashed rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.06);
}

.dashboard-edit-page .dashboard-edit-field--prompt-empty[data-dashboard-composite] {
  border: 2px dashed rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.06);
}

.dashboard-edit-page .dashboard-edit-field label .ttms-required,
.dashboard-edit-page .dashboard-edit-field label .dashboard-edit-required {
  color: #fb923c;
  font-weight: 800;
}
