:root {
  --bs-card-border-radius: 0;
  --bs-card-inner-border-radius: 0;
  --schedlie-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schedlie-page-bg: #eceff3;
  --schedlie-surface: #ffffff;
  --schedlie-ink: #0f172a;
  --schedlie-ink-muted: #64748b;
  --schedlie-accent: #4f46e5;
  --schedlie-accent-hover: #4338ca;
  --schedlie-cal-line: rgba(0, 0, 0, 0.12);
  --schedlie-cal-muted-fill: rgba(0, 0, 0, 0.065);
  --schedlie-cal-toolbar-bg: #4f4f4f;
  --schedlie-cal-toolbar-border: rgba(0, 0, 0, 0.14);
  --schedlie-cal-toolbar-title: #fafafa;
  --schedlie-cal-weekday-bg: #8e8e8e;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.94);
  /* Day tiles stay neutral so event icon accents read clearly */
  --schedlie-today-ring: rgba(15, 23, 42, 0.12);
  --schedlie-today-bg: rgba(15, 23, 42, 0.035);
  --schedlie-day-selected-bg: rgba(79, 70, 229, 0.12);
  --schedlie-day-selected-ring: rgba(0, 0, 0, 0.38);
  --schedlie-cal-outside-month-bg: #f0f2f5;
  /* Fixed toast stack sits below the global navbar (approx. one-line height). */
  --schedlie-toast-below-nav: 3.75rem;
  /* Inputs, selects, checkboxes, radios — neutral border (was stay-logged-in checkbox) */
  --schedlie-form-border: #7b7b7b;
  --schedlie-form-focus-ring: rgba(123, 123, 123, 0.25);
  --schedlie-form-disabled-bg: rgba(15, 23, 42, 0.06);
  /* Chevron for disabled selects (Bootstrap default stroke is dark gray — wrong on dark surfaces) */
  --schedlie-form-select-caret-disabled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  --schedlie-form-check-unchecked-bg: #d8dce2;
  --schedlie-form-check-unchecked-border: #8d96a3;
  --schedlie-form-check-checked: #3f4754;
  --schedlie-form-check-checked-focus-ring: rgba(63, 71, 84, 0.38);
  --schedlie-form-toggle-on: #198754;
  --schedlie-form-toggle-on-border: #157347;
  --schedlie-form-toggle-on-focus-ring: rgba(25, 135, 84, 0.42);
  /* Radio: darker dot / fill, lighter ring (outline) */
  --schedlie-form-radio-unchecked-bg: #ccd2dc;
  --schedlie-form-radio-unchecked-border: #c5cdd8;
  --schedlie-form-radio-checked-center: #2c3340;
  --schedlie-form-radio-ring: #edf0f4;
  --schedlie-form-radio-focus-ring: rgba(44, 51, 64, 0.38);
  /* Links: same hue as body text, not browser blue */
  --schedlie-link-font-weight: 500;
  --schedlie-link-hover-font-weight: 600;
  --bs-link-color: var(--schedlie-ink);
  --bs-link-hover-color: var(--schedlie-ink);
}

/* Floating toast stack (alerts moved here via app.js — no document flow). */
#app-toast-host {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-bottom: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--schedlie-toast-below-nav) + 0.35rem + 10px);
  pointer-events: none;
}

#app-toast-host .alert {
  pointer-events: auto;
  width: min(100%, 28rem);
  margin-bottom: 0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

/*
 * Return to top — use explicit colours only. Do not use --schedlie-ink / --schedlie-accent here:
 * those tokens flip on dark theme (#ececec / neutral gray), which breaks FAB contrast.
 */
.schedlie-back-to-top {
  position: fixed;
  z-index: 1035;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border: 0;
  color: #fff;
  background-color: #0f172a;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.schedlie-back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Light chrome: dark control + brand hover */
.schedlie-back-to-top:hover,
.schedlie-back-to-top:focus-visible {
  color: #fff;
  background-color: #4f46e5;
  outline: none;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.45);
}

body.modal-open .schedlie-back-to-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Dark chrome: light surface control + strong hover (still indigo, not theme gray accent) */
body[data-app-scheme="dark"] .schedlie-back-to-top,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-back-to-top {
  color: #0f172a;
  background-color: #f1f5f9;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

body[data-app-scheme="dark"] .schedlie-back-to-top:hover,
body[data-app-scheme="dark"] .schedlie-back-to-top:focus-visible,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-back-to-top:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-back-to-top:focus-visible {
  color: #fff;
  background-color: #4f46e5;
  box-shadow: 0 4px 22px rgba(79, 70, 229, 0.55);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-back-to-top {
    color: #0f172a;
    background-color: #f1f5f9;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  }

  body[data-app-scheme="system"] .schedlie-back-to-top:hover,
  body[data-app-scheme="system"] .schedlie-back-to-top:focus-visible {
    color: #fff;
    background-color: #4f46e5;
    box-shadow: 0 4px 22px rgba(79, 70, 229, 0.55);
  }
}

@media (prefers-color-scheme: light) {
  body[data-app-scheme="system"] .schedlie-back-to-top {
    color: #fff;
    background-color: #0f172a;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.2);
  }

  body[data-app-scheme="system"] .schedlie-back-to-top:hover,
  body[data-app-scheme="system"] .schedlie-back-to-top:focus-visible {
    color: #fff;
    background-color: #4f46e5;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedlie-back-to-top {
    transition: none;
  }
}

body {
  font-family: var(--schedlie-font);
  color: var(--schedlie-ink);
  background: linear-gradient(165deg, #e8ecf2 0%, #eceff3 40%, #f4f6f8 100%);
  background-color: var(--schedlie-page-bg);
  -webkit-font-smoothing: antialiased;
}

/* Inline links: body colour, slightly heavier, underlined (overrides Bootstrap default blue) */
a[href] {
  color: var(--bs-link-color);
  font-weight: var(--schedlie-link-font-weight, 500);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

a[href]:hover,
a[href]:focus-visible {
  color: var(--bs-link-hover-color);
  font-weight: var(--schedlie-link-hover-font-weight, 600);
}

/* UI controls styled as <a> — no underline */
a.btn,
a.nav-link,
a.navbar-brand,
a.dropdown-item,
a.page-link,
a.list-group-item-action,
a.badge,
a.schedlie-circle-action-btn,
a.schedlie-member-setup-progress__node,
.schedlie-nav-search-dropdown a.dropdown-item,
.schedlie-nav-notif-dropdown a.dropdown-item,
.schedlie-search-result-link,
a.dashboard-cal-nav-btn,
a.dashboard-cal-event-chip,
a.dashboard-cal-month-nav-link {
  font-weight: inherit;
  text-decoration: none;
}

/* Circle-action anchors must use variant colors, not global a[href] link tokens */
a.btn.schedlie-circle-action-btn:hover,
a.btn.schedlie-circle-action-btn:focus-visible {
  font-weight: inherit;
  text-decoration: none;
}

a.btn-link {
  color: var(--bs-link-color) !important;
  font-weight: var(--schedlie-link-font-weight, 500) !important;
  text-decoration: underline !important;
  text-underline-offset: 0.14em;
}

a.btn-link:hover,
a.btn-link:focus-visible {
  color: var(--bs-link-hover-color) !important;
  font-weight: var(--schedlie-link-hover-font-weight, 600) !important;
}

a.text-decoration-none {
  text-decoration: none !important;
}

footer a[href] {
  color: inherit;
  font-weight: var(--schedlie-link-font-weight, 500);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

footer a[href]:hover,
footer a[href]:focus-visible {
  font-weight: var(--schedlie-link-hover-font-weight, 600);
}

.schedlie-site-footer {
  background-color: var(--schedlie-surface, #fff);
}

/* Marketing footer link overrides: assets/css/app.css (loaded after this file on root pages). */

/* Footer: align brand row with section headings; group link columns with even spacing */
.schedlie-footer-stack-head {
  display: flex;
  align-items: flex-end;
  min-height: 2.75rem;
  margin-bottom: 0.5rem;
}

.schedlie-footer-heading {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--schedlie-ink-muted, #94a3b8);
  opacity: 0.72;
}

.schedlie-footer-links li + li {
  margin-top: 0.35rem;
}

.schedlie-footer-theme-toggle {
  border-color: #5b3aa6;
  color: #5b3aa6;
}

.schedlie-footer-theme-toggle:hover,
.schedlie-footer-theme-toggle:focus-visible {
  border-color: #4b2f90;
  color: #4b2f90;
  background-color: rgba(91, 58, 166, 0.08);
}

.schedlie-footer-pwa-plug {
  position: relative;
  width: 100%;
  padding: 0.65rem 0.95rem 0.7rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid color-mix(in srgb, var(--schedlie-accent, #4f46e5) 16%, transparent);
  background: color-mix(in srgb, var(--schedlie-accent, #4f46e5) 4%, var(--schedlie-surface, #fff));
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.schedlie-footer-pwa-plug-link--mobile {
  display: block;
  text-decoration: none !important;
  transition: color 0.18s ease;
}

@media (max-width: 991.98px) {
  .schedlie-footer-pwa-plug {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .schedlie-footer-pwa-plug:has(.schedlie-footer-pwa-plug-link--mobile:hover),
  .schedlie-footer-pwa-plug:has(.schedlie-footer-pwa-plug-link--mobile:focus-visible) {
    border-color: color-mix(in srgb, var(--schedlie-accent, #4f46e5) 24%, transparent);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  }
}

.schedlie-footer-pwa-plug::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 45%, #7c3aed 100%);
}

.schedlie-footer-pwa-plug-link {
  position: relative;
  z-index: 1;
  color: var(--schedlie-ink, #0f172a);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none !important;
}

.schedlie-footer-pwa-plug-link:hover,
.schedlie-footer-pwa-plug-link:focus-visible {
  color: var(--schedlie-accent, #4f46e5);
  font-weight: 600;
}

.schedlie-footer-pwa-plug-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.schedlie-footer-pwa-plug-icon {
  opacity: 0.72;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.schedlie-footer-pwa-plug-link:hover .schedlie-footer-pwa-plug-icon,
.schedlie-footer-pwa-plug-link:focus-visible .schedlie-footer-pwa-plug-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

.schedlie-footer-pwa-plug-desc {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--schedlie-ink-muted, #64748b);
  font-weight: 400;
}

.schedlie-footer-pwa-plug-link:hover .schedlie-footer-pwa-plug-desc,
.schedlie-footer-pwa-plug-link:focus-visible .schedlie-footer-pwa-plug-desc {
  color: color-mix(in srgb, var(--schedlie-accent, #4f46e5) 55%, var(--schedlie-ink-muted, #64748b));
}

.schedlie-footer-pwa-plug-link--mobile:hover .schedlie-footer-pwa-plug-desc,
.schedlie-footer-pwa-plug-link--mobile:focus-visible .schedlie-footer-pwa-plug-desc {
  color: color-mix(in srgb, var(--schedlie-accent, #4f46e5) 55%, var(--schedlie-ink-muted, #64748b));
}

.schedlie-footer-pwa-plug-devices {
  margin-top: 0;
  padding-top: 0.5rem;
  border-top: 0;
}

.schedlie-footer-pwa-plug-devices li + li {
  margin-top: 0.2rem;
}

.schedlie-footer-pwa-plug-devices a {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--schedlie-ink-muted, #64748b);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.schedlie-footer-pwa-plug-devices a:hover,
.schedlie-footer-pwa-plug-devices a:focus-visible {
  color: var(--schedlie-accent, #4f46e5);
  font-weight: 600;
}

.schedlie-device-notifications-setup-page .schedlie-pwa-setup-anchor {
  scroll-margin-top: 5rem;
}

.schedlie-pwa-device-setup-accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0.75rem;
  --bs-accordion-inner-border-radius: 0.75rem;
  --bs-accordion-btn-padding-x: 1rem;
  --bs-accordion-btn-padding-y: 0;
  --bs-accordion-btn-color: var(--schedlie-ink);
  --bs-accordion-btn-bg: var(--schedlie-surface);
  --bs-accordion-btn-active-color: var(--schedlie-ink);
  --bs-accordion-btn-active-bg: var(--schedlie-surface);
  --bs-accordion-bg: var(--schedlie-surface);
  --bs-accordion-active-bg: var(--schedlie-surface);
  --bs-accordion-active-color: var(--schedlie-ink);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem var(--schedlie-form-focus-ring);
}

.schedlie-pwa-device-setup-acc-item {
  position: relative;
  background-color: var(--schedlie-surface);
  border: 1px solid color-mix(in srgb, var(--schedlie-accent, #4f46e5) 14%, var(--bs-border-color)) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.schedlie-pwa-device-setup-acc-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 45%, #7c3aed 100%);
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 2;
  pointer-events: none;
}

.schedlie-pwa-device-setup-acc-item:has(.accordion-button:not(.collapsed)) {
  border-color: color-mix(in srgb, var(--schedlie-accent, #4f46e5) 30%, var(--bs-border-color)) !important;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.08);
}

.schedlie-pwa-device-setup-acc-item:has(.accordion-button:not(.collapsed))::before {
  opacity: 1;
}

.schedlie-pwa-device-setup-acc-btn.accordion-button {
  background-color: transparent;
  color: var(--schedlie-ink);
  box-shadow: none !important;
}

.schedlie-pwa-device-setup-acc-btn.accordion-button:not(.collapsed) {
  color: var(--schedlie-ink);
  background-color: color-mix(in srgb, var(--schedlie-accent, #4f46e5) 5%, var(--schedlie-surface));
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--schedlie-ink) 8%, transparent) !important;
}

.schedlie-pwa-device-setup-acc-btn.accordion-button.collapsed:hover {
  background-color: color-mix(in srgb, var(--schedlie-ink) 4%, var(--schedlie-surface));
}

.schedlie-pwa-device-setup-acc-btn.accordion-button::after {
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  background-color: var(--schedlie-ink-muted);
  background-image: none;
  opacity: 0.8;
  transform: scale(1);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.schedlie-pwa-device-setup-acc-body {
  background-color: var(--schedlie-page-bg);
  border-top: 1px solid color-mix(in srgb, var(--schedlie-ink) 8%, transparent);
}

body[data-app-scheme="dark"] .schedlie-pwa-device-setup-acc-item,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-pwa-device-setup-acc-item {
  border-color: color-mix(in srgb, #818cf8 22%, transparent) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

body[data-app-scheme="dark"] .schedlie-pwa-device-setup-acc-item:has(.accordion-button:not(.collapsed)),
body[data-schedlie-preview-app-scheme="dark"] .schedlie-pwa-device-setup-acc-item:has(.accordion-button:not(.collapsed)) {
  border-color: color-mix(in srgb, #818cf8 38%, transparent) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

body[data-app-scheme="dark"] .schedlie-pwa-device-setup-acc-btn.accordion-button:not(.collapsed),
body[data-schedlie-preview-app-scheme="dark"] .schedlie-pwa-device-setup-acc-btn.accordion-button:not(.collapsed) {
  background-color: color-mix(in srgb, #6366f1 10%, var(--schedlie-surface));
}

body[data-app-scheme="dark"] .schedlie-pwa-device-setup-acc-btn.accordion-button::after,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-pwa-device-setup-acc-btn.accordion-button::after {
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-pwa-device-setup-acc-item {
    border-color: color-mix(in srgb, #818cf8 22%, transparent) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  }

  body[data-app-scheme="system"] .schedlie-pwa-device-setup-acc-item:has(.accordion-button:not(.collapsed)) {
    border-color: color-mix(in srgb, #818cf8 38%, transparent) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  }

  body[data-app-scheme="system"] .schedlie-pwa-device-setup-acc-btn.accordion-button:not(.collapsed) {
    background-color: color-mix(in srgb, #6366f1 10%, var(--schedlie-surface));
  }

  body[data-app-scheme="system"] .schedlie-pwa-device-setup-acc-btn.accordion-button::after {
    filter: brightness(0) invert(1);
    opacity: 0.88;
  }
}

.schedlie-pwa-device-setup-steps-grid {
  margin-bottom: 0.25rem;
}

.schedlie-pwa-device-setup-steps-grid > .row {
  align-items: stretch;
}

.schedlie-pwa-device-setup-step-card {
  background-color: var(--schedlie-surface, #fff);
  border-color: color-mix(in srgb, var(--schedlie-ink, #0f172a) 12%, transparent) !important;
}

.schedlie-pwa-device-setup-step-card--has-figure .schedlie-pwa-device-setup-step-figure {
  margin-top: auto;
  padding-top: 0.75rem;
}

body[data-app-scheme="dark"] .schedlie-pwa-device-setup-step-card,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-pwa-device-setup-step-card {
  background-color: color-mix(in srgb, var(--schedlie-surface, #1e1e1e) 88%, #000);
  border-color: color-mix(in srgb, var(--schedlie-ink, #f8fafc) 14%, transparent) !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-pwa-device-setup-step-card {
    background-color: color-mix(in srgb, var(--schedlie-surface, #1e1e1e) 88%, #000);
    border-color: color-mix(in srgb, var(--schedlie-ink, #f8fafc) 14%, transparent) !important;
  }
}

.schedlie-pwa-device-setup-step-figure {
  margin: 0;
  padding: 0 0.5rem;
}

.schedlie-pwa-device-setup-step-figure-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--schedlie-ink, #0f172a) 12%, transparent);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  background: var(--schedlie-surface, #fff);
}

body[data-app-scheme="dark"] .schedlie-pwa-device-setup-step-figure-img,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-pwa-device-setup-step-figure-img {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.schedlie-pwa-push-test-row .schedlie-pwa-push-test-label {
  line-height: 1.45;
}

.schedlie-pwa-push-test-row--in-card {
  margin-top: 0.75rem;
  margin-bottom: 0 !important;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--schedlie-ink, #0f172a) 10%, transparent);
}

.schedlie-pwa-device-manage-promo {
  border-top: 1px solid color-mix(in srgb, var(--schedlie-ink, #0f172a) 10%, transparent);
}

/* Pull-to-refresh (installed PWA on touch devices) */
.schedlie-pwa-pull-refresh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1035;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 0;
  padding-top: env(safe-area-inset-top, 0px);
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.schedlie-pwa-pull-refresh--active {
  opacity: 1;
}

.schedlie-pwa-pull-refresh__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0 0.5rem;
  color: var(--schedlie-ink-muted, #64748b);
}

.schedlie-pwa-pull-refresh__spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid color-mix(in srgb, var(--schedlie-ink, #0f172a) 14%, transparent);
  border-top-color: var(--schedlie-accent, #4f46e5);
  border-radius: 50%;
  transform: rotate(0deg) scale(0.85);
  opacity: 0.55;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.schedlie-pwa-pull-refresh--ready .schedlie-pwa-pull-refresh__spinner {
  transform: rotate(180deg) scale(1);
  opacity: 1;
}

.schedlie-pwa-pull-refresh--refreshing .schedlie-pwa-pull-refresh__spinner {
  animation: schedlie-pwa-pull-refresh-spin 0.65s linear infinite;
  opacity: 1;
}

.schedlie-pwa-pull-refresh__label {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

@keyframes schedlie-pwa-pull-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

body.schedlie-pwa-pull-refresh-pending .app-wrapper {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .schedlie-pwa-pull-refresh {
    transition: none;
  }

  .schedlie-pwa-pull-refresh__spinner {
    transition: none;
  }

  .schedlie-pwa-pull-refresh--refreshing .schedlie-pwa-pull-refresh__spinner {
    animation: none;
  }
}

body[data-app-scheme="dark"] .schedlie-footer-pwa-plug,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-footer-pwa-plug {
  border-color: color-mix(in srgb, #818cf8 22%, transparent);
  background: color-mix(in srgb, #6366f1 7%, var(--schedlie-surface, #0f172a));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

body[data-app-scheme="dark"] .schedlie-footer-pwa-plug-link,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-footer-pwa-plug-link {
  color: var(--schedlie-ink, #f1f5f9);
}

body[data-app-scheme="dark"] .schedlie-footer-pwa-plug-desc,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-footer-pwa-plug-desc {
  color: var(--schedlie-ink-muted, #94a3b8);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-footer-pwa-plug {
    border-color: color-mix(in srgb, #818cf8 22%, transparent);
    background: color-mix(in srgb, #6366f1 7%, var(--schedlie-surface, #0f172a));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  }

  body[data-app-scheme="system"] .schedlie-footer-pwa-plug-link {
    color: var(--schedlie-ink, #f1f5f9);
  }

  body[data-app-scheme="system"] .schedlie-footer-pwa-plug-desc {
    color: var(--schedlie-ink-muted, #94a3b8);
  }
}

@media (max-width: 767.98px) {
  .schedlie-footer-bottom-row {
    flex-direction: column-reverse;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    gap: 0.75rem !important;
  }
}

/* Footer link sections: accordion toggles on mobile/tablet, always open from lg up */
@media (max-width: 991.98px) {
  .schedlie-footer-link-groups {
    --schedlie-footer-acc-border: rgba(15, 23, 42, 0.1);
    --schedlie-footer-acc-pad-x: 1rem;
  }

  .schedlie-footer-acc-section + .schedlie-footer-acc-section {
    border-top: 1px solid var(--schedlie-footer-acc-border);
  }

  .schedlie-footer-acc-section .schedlie-footer-acc-panel {
    padding-bottom: 0.75rem;
    padding-inline: var(--schedlie-footer-acc-pad-x);
  }

  .schedlie-footer-acc-section .schedlie-footer-links {
    padding-top: 0.15rem;
  }

  .schedlie-footer-acc-btn.accordion-button {
    width: 100%;
    padding: 0.85rem var(--schedlie-footer-acc-pad-x);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--schedlie-ink-muted, #94a3b8);
    background-color: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    opacity: 0.92;
  }

  .schedlie-footer-acc-btn.accordion-button:not(.collapsed) {
    color: var(--schedlie-ink-muted, #94a3b8);
    background-color: transparent;
  }

  .schedlie-footer-acc-btn.accordion-button:hover {
    color: var(--schedlie-ink, #0f172a);
    background-color: color-mix(in srgb, var(--schedlie-ink, #0f172a) 4%, transparent);
  }

  .schedlie-footer-acc-btn.accordion-button:focus,
  .schedlie-footer-acc-btn.accordion-button:focus-visible {
    box-shadow: none !important;
    outline: 2px solid color-mix(in srgb, var(--schedlie-ink, #0f172a) 18%, transparent);
    outline-offset: -2px;
  }

  .schedlie-footer-acc-btn.accordion-button::after {
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    background-color: var(--schedlie-ink-muted, #94a3b8);
    background-image: none;
    opacity: 0.85;
    transform: scale(1);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
  }
}

@media (min-width: 992px) {
  .schedlie-footer-acc-panel.collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }
}

body[data-app-scheme="dark"] .schedlie-footer-acc-btn.accordion-button,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-footer-acc-btn.accordion-button {
  color: var(--schedlie-ink-muted, #94a3b8);
}

body[data-app-scheme="dark"] .schedlie-footer-acc-btn.accordion-button:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-footer-acc-btn.accordion-button:hover {
  color: var(--schedlie-ink, #e2e8f0);
  background-color: color-mix(in srgb, var(--schedlie-ink, #e2e8f0) 6%, transparent);
}

@media (max-width: 991.98px) {
  body[data-app-scheme="dark"] .schedlie-footer-link-groups,
  body[data-schedlie-preview-app-scheme="dark"] .schedlie-footer-link-groups {
    --schedlie-footer-acc-border: rgba(255, 255, 255, 0.12);
  }
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-footer-acc-btn.accordion-button {
    color: var(--schedlie-ink-muted, #94a3b8);
  }

  body[data-app-scheme="system"] .schedlie-footer-acc-btn.accordion-button:hover {
    color: var(--schedlie-ink, #e2e8f0);
    background-color: color-mix(in srgb, var(--schedlie-ink, #e2e8f0) 6%, transparent);
  }

  @media (max-width: 991.98px) {
    body[data-app-scheme="system"] .schedlie-footer-link-groups {
      --schedlie-footer-acc-border: rgba(255, 255, 255, 0.12);
    }
  }
}

body[data-app-scheme="dark"] .schedlie-site-footer,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-site-footer {
  background-color: var(--schedlie-surface, #1e293b);
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

body[data-app-scheme="dark"] .schedlie-footer-theme-toggle,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-footer-theme-toggle {
  border-color: #8f7ad4;
  color: #d8ccff;
}

body[data-app-scheme="dark"] .schedlie-footer-theme-toggle:hover,
body[data-app-scheme="dark"] .schedlie-footer-theme-toggle:focus-visible,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-footer-theme-toggle:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-footer-theme-toggle:focus-visible {
  border-color: #9b89db;
  color: #efe8ff;
  background-color: rgba(143, 122, 212, 0.14);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-site-footer {
    background-color: var(--schedlie-surface, #1e293b);
    border-top-color: rgba(255, 255, 255, 0.12) !important;
  }

  body[data-app-scheme="system"] .schedlie-footer-theme-toggle {
    border-color: #8f7ad4;
    color: #d8ccff;
  }

  body[data-app-scheme="system"] .schedlie-footer-theme-toggle:hover,
  body[data-app-scheme="system"] .schedlie-footer-theme-toggle:focus-visible {
    border-color: #9b89db;
    color: #efe8ff;
    background-color: rgba(143, 122, 212, 0.14);
  }
}

.password-field {
  isolation: isolate;
}

.password-field > .form-control {
  position: relative;
  z-index: 1;
}

.password-field .password-toggle {
  border: 0;
  line-height: 1;
  text-decoration: none;
  z-index: 20;
  touch-action: manipulation;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: calc(1.5em + 0.75rem + 2px);
  overflow: visible;
}

.password-field .password-toggle:hover,
.password-field .password-toggle:focus-visible {
  color: var(--bs-body-color) !important;
}

.password-field .password-toggle:focus {
  box-shadow: none;
}

.password-field .password-toggle-icon {
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.navbar-icon-btn:hover,
.navbar-icon-btn:focus-visible {
  background-color: rgba(15, 23, 42, 0.12);
}

.navbar-icon-btn .schedlie-icon-calendar-heart {
  flex-shrink: 0;
}

/* Bell: icon-only, no Bootstrap caret */
.schedlie-main-nav .navbar-icon-btn.dropdown-toggle::after {
  display: none;
}

/* Badge anchored to the bell SVG (not the padded circular hit target) */
.schedlie-nav-notif-bell-wrap {
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
}

.schedlie-nav-notif-badge {
  position: absolute;
  top: -0.2rem;
  inset-inline-end: -0.2rem;
  padding: 0.15em 0.4em;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1;
  min-width: 1.2rem;
  min-height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--schedlie-surface, #fff);
}

.schedlie-nav-notif-dropdown {
  width: min(100vw - 1.5rem, 22rem);
  max-height: min(50vh, 28rem);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1055;
}

/* Strip bell: anchored dropdown (no full-bleed positioning) */
.schedlie-nav-strip-notif .schedlie-nav-notif-dropdown--strip.dropdown-menu {
  z-index: 1060;
}

@media (max-width: 991.98px) {
  .schedlie-nav-dropdown-mobile-fullwidth.dropdown-menu {
    z-index: 1060;
    border-radius: 0;
  }

  .schedlie-nav-notif-dropdown.schedlie-nav-dropdown-mobile-fullwidth.dropdown-menu {
    max-height: min(50vh, 28rem);
  }
}

.schedlie-nav-notif-row {
  max-width: 100%;
}

.schedlie-nav-notif-row > .d-flex {
  min-width: 0;
  max-width: 100%;
}

/*
 * Bootstrap .dropdown-item is width:100%. Beside the action column that becomes
 * (100% + buttons) wide and overflow-x on the menu clips the text. Confine the
 * link to the remaining flex space instead.
 */
.schedlie-nav-notif-row > .d-flex > a.schedlie-nav-notif-item.dropdown-item {
  width: auto !important;
  max-width: 100%;
  flex: 1 1 0;
  min-width: 0;
}

.schedlie-nav-notif-item {
  white-space: normal;
}

.schedlie-nav-notif-item--unread {
  background-color: rgba(15, 23, 42, 0.03);
}

/* Inherit dropdown text color (do not use .text-body: --bs-body-color stays light-theme when only data-app-scheme is dark). */
.schedlie-nav-notif-title {
  color: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Multi-line preview; long tokens still wrap inside the dropdown width */
.schedlie-nav-notif-body-line {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.schedlie-nav-notif-title--strong {
  font-weight: 600;
}

.schedlie-nav-notif-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: var(--bs-primary, #0d6efd);
}

.schedlie-nav-notif-dot--read {
  background-color: transparent;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.schedlie-nav-notif-when {
  font-size: 0.75rem;
  color: var(--schedlie-ink-muted, #64748b);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.schedlie-notif-list-item--unread {
  border-left: 3px solid var(--bs-primary, #0d6efd);
}

/* Notification row actions: fixed square hit targets, stacked at top of row */
.schedlie-notif-row-actions .schedlie-notif-delete-btn,
.schedlie-notif-row-actions .schedlie-notif-toggle-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.schedlie-notif-row-actions .schedlie-notif-toggle-btn {
  position: relative;
}

.schedlie-notif-row-actions .schedlie-notif-toggle-icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.schedlie-notif-row-actions .schedlie-notif-toggle-icon .bi,
.schedlie-notif-row-actions .schedlie-notif-delete-btn .bi {
  display: block;
  font-size: 1.125rem;
  line-height: 1;
}

.schedlie-nav-notif-top .col-2 > .dropdown-item {
  min-height: 100%;
}

.schedlie-nav-notif-rows-anchor {
  display: none;
}

.schedlie-nav-notif-mark-all {
  background-color: rgba(15, 23, 42, 0.02);
}

.schedlie-nav-notif-mark-all-btn {
  border-radius: 0;
  color: inherit;
}

.schedlie-nav-notif-mark-all-btn:hover,
.schedlie-nav-notif-mark-all-btn:focus-visible {
  background-color: rgba(15, 23, 42, 0.07);
  color: inherit;
}

.schedlie-nav-notif-mark-all-icon.text-success {
  color: #198754 !important;
}

.schedlie-nav-notif-row .border-start {
  border-color: rgba(15, 23, 42, 0.12) !important;
}

body[data-app-scheme="dark"] .schedlie-nav-notif-mark-all, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-mark-all {
  background-color: rgba(255, 255, 255, 0.03);
}

body[data-app-scheme="dark"] .schedlie-nav-notif-mark-all-btn, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-mark-all-btn {
  color: #ececec !important;
}

body[data-app-scheme="dark"] .schedlie-nav-notif-mark-all-btn:hover, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-mark-all-btn:hover,
body[data-app-scheme="dark"] .schedlie-nav-notif-mark-all-btn:focus-visible, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-mark-all-btn:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ececec !important;
}

body[data-app-scheme="dark"] .schedlie-nav-notif-mark-all-icon.text-success, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-mark-all-icon.text-success {
  color: #6ee7b7 !important;
}

body[data-app-scheme="dark"] .schedlie-nav-notif-row .border-start, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-row .border-start {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-nav-notif-row .border-start {
    border-color: rgba(255, 255, 255, 0.12) !important;
  }
}

.schedlie-nav-notif-item.text-muted .schedlie-nav-notif-when {
  color: inherit;
  opacity: 0.9;
}

/* Main nav: logged-in = compact search (~1/3 width on desktop); suggest panel is NOT Bootstrap .dropdown-menu (that class keeps display:none until .show) */
.schedlie-main-nav {
  overflow: visible;
}

@media (max-width: 991.98px) {
  .schedlie-main-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
  }
}

/* App index welcome: Sign in / Register in nav — no burger */
.schedlie-main-nav--welcome-landing .navbar-toggler,
.schedlie-main-nav--welcome-landing .navbar-collapse {
  display: none !important;
}

.schedlie-main-nav--welcome-landing .schedlie-nav-welcome-auth .btn {
  white-space: nowrap;
}

/* Hamburger at all breakpoints (override Bootstrap navbar-expand-lg) */
.schedlie-main-nav--burger-all.navbar-expand-lg .navbar-toggler {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Click leaves focus on the toggler; suppress ring unless keyboard :focus-visible */
.schedlie-main-nav .navbar-toggler:focus:not(:focus-visible) {
  outline: 0;
  box-shadow: none;
}

@media (min-width: 992px) {
  .schedlie-main-nav--burger-all.navbar-expand-lg .navbar-collapse {
    display: none !important;
  }

  .schedlie-main-nav--burger-all.navbar-expand-lg .navbar-collapse.show,
  .schedlie-main-nav--burger-all.navbar-expand-lg .navbar-collapse.collapsing {
    display: block !important;
  }
}

.schedlie-plus-pill {
  --schedlie-plus-pill-gradient: linear-gradient(145deg, #a5b4fc 0%, #6366f1 42%, #7c3aed 100%);
  --schedlie-plus-pill-border: rgba(255, 255, 255, 0.55);
  --schedlie-plus-pill-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 1px 2px rgba(49, 46, 129, 0.18),
    0 4px 12px rgba(99, 102, 241, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--schedlie-plus-pill-gradient);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1.5px solid var(--schedlie-plus-pill-border);
  white-space: nowrap;
  box-shadow: var(--schedlie-plus-pill-shadow);
  text-shadow: 0 1px 0 rgba(67, 56, 202, 0.35);
}

.schedlie-main-nav .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1;
  vertical-align: middle;
}

.schedlie-main-nav .navbar-brand .schedlie-nav-brand-word {
  line-height: 1;
}

.schedlie-main-nav .navbar-brand .schedlie-plus-pill--nav {
  font-size: 0.68rem;
  padding: 0.36em 0.78em;
  margin-left: 0;
  vertical-align: unset;
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 991.98px) {
  .schedlie-main-nav .navbar-brand {
    gap: 0.38rem;
  }

  .schedlie-main-nav .navbar-brand .schedlie-plus-pill--nav {
    font-size: 0.64rem;
    padding: 0.34em 0.72em;
  }
}

.schedlie-plus-pill--inline {
  font-size: 0.58rem;
  padding: 0.34em 0.66em;
  margin-left: 0.42em;
  vertical-align: 0.05em;
}

body[data-app-scheme="dark"] .schedlie-plus-pill,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-plus-pill {
  --schedlie-plus-pill-gradient: linear-gradient(145deg, #c4b5fd 0%, #6366f1 40%, #9333ea 100%);
  --schedlie-plus-pill-border: rgba(255, 255, 255, 0.34);
  --schedlie-plus-pill-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 5px 14px rgba(99, 102, 241, 0.42);
  text-shadow: 0 1px 0 rgba(30, 27, 75, 0.55);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-plus-pill {
    --schedlie-plus-pill-gradient: linear-gradient(145deg, #c4b5fd 0%, #6366f1 40%, #9333ea 100%);
    --schedlie-plus-pill-border: rgba(255, 255, 255, 0.34);
    --schedlie-plus-pill-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 1px 2px rgba(0, 0, 0, 0.28),
      0 5px 14px rgba(99, 102, 241, 0.42);
    text-shadow: 0 1px 0 rgba(30, 27, 75, 0.55);
  }
}

.schedlie-nav-shell {
  overflow: visible;
  position: relative;
}

.schedlie-nav-search-field-wrap {
  min-width: 0;
}

.schedlie-nav-search-group {
  width: 100%;
  max-width: 28rem;
}

.schedlie-nav-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.2rem);
  max-height: min(70vh, 20rem);
  overflow-y: auto;
  z-index: 1055;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.12);
}

.schedlie-nav-search-dropdown[hidden] {
  display: none !important;
}

/* Portaled on mobile so burger-menu overflow does not clip suggestions */
.schedlie-nav-search-dropdown--portaled {
  position: fixed !important;
  right: auto !important;
  max-height: min(50vh, 16rem);
  z-index: 1060;
}

/* Visible panel (Bootstrap .dropdown-menu would override without this) */
.schedlie-nav-suggest-panel:not([hidden]) {
  display: block !important;
}

.schedlie-nav-search-dropdown .dropdown-item {
  white-space: normal;
  line-height: 1.3;
  padding: 0.5rem 0.75rem;
  color: inherit;
  text-decoration: none;
}

.schedlie-nav-search-dropdown .dropdown-item:hover,
.schedlie-nav-search-dropdown .dropdown-item:focus {
  background-color: rgba(15, 23, 42, 0.07);
  color: inherit;
}

.schedlie-nav-search-dropdown .schedlie-nav-suggest-when {
  display: block;
  font-size: 0.8rem;
  color: var(--schedlie-ink-muted, #64748b);
  margin-top: 0.15rem;
}

.schedlie-nav-search-dropdown .schedlie-nav-suggest-kind {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

/* Third-party contact autocomplete (often portaled to body — keep styles on the dropdown class alone) */
.schedlie-contact-suggest-dropdown {
  max-height: 14rem;
  overflow-y: auto;
  background: var(--schedlie-surface, #fff);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.375rem;
  box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.12);
}

.schedlie-contact-suggest-dropdown:not([hidden]) {
  display: block !important;
}

.schedlie-tp-contact-picker-list {
  max-height: min(50vh, 22rem);
  overflow-y: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.schedlie-tp-contact-picker-row .schedlie-tp-contact-picker-cb {
  margin-top: 0.2rem;
  margin-left: 0;
}

.schedlie-contact-suggest-option {
  cursor: pointer;
  color: inherit;
}

.schedlie-contact-suggest-option:hover,
.schedlie-contact-suggest-option:focus-visible {
  background-color: rgba(15, 23, 42, 0.07);
  outline: none;
}

body[data-app-scheme="dark"] .schedlie-contact-suggest-dropdown,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-contact-suggest-dropdown {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.45);
}

body[data-app-scheme="dark"] .schedlie-contact-suggest-option:hover,
body[data-app-scheme="dark"] .schedlie-contact-suggest-option:focus-visible,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-contact-suggest-option:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-contact-suggest-option:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-contact-suggest-dropdown {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.45);
  }

  body[data-app-scheme="system"] .schedlie-contact-suggest-option:hover,
  body[data-app-scheme="system"] .schedlie-contact-suggest-option:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
  }
}

/* Main nav — calendars menu (icon-only toggle; no Bootstrap caret) */
.schedlie-nav-cal-menu-btn.dropdown-toggle::after {
  display: none !important;
}

.schedlie-nav-cal-dropdown {
  min-width: 14rem;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
}

.schedlie-nav-calendars-modal .schedlie-nav-calendars-modal-header {
  border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
}

.schedlie-nav-calendars-modal .schedlie-nav-cal-dropdown {
  min-width: 0;
  max-height: none;
  overflow: visible;
  background: transparent;
  border: 0;
}

.schedlie-nav-cal-dropdown .dropdown-header.schedlie-nav-cal-dropdown__section-title,
.schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__section-title {
  text-transform: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.schedlie-nav-cal-dropdown .dropdown-header.schedlie-nav-cal-dropdown__section-title {
  background-color: #eef0ee;
}

.schedlie-nav-cal-dropdown a.schedlie-nav-cal-dropdown__list-link,
.schedlie-nav-cal-dropdown a.schedlie-nav-cal-dropdown__footer-action,
.schedlie-nav-cal-dropdown a.schedlie-nav-cal-dropdown__my-calendar {
  text-decoration: none;
}

.schedlie-nav-cal-dropdown__split .dropdown-item {
  flex: 1 1 0;
  min-width: 0;
}

.schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action,
.schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action {
  background-color: #d4d5d4;
  color: #1e293b !important;
}

.schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:hover,
.schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:focus,
.schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action:hover,
.schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action:focus {
  background-color: #c8c9c8;
  color: #0f172a !important;
}

.schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:first-child,
.schedlie-nav-cal-dropdown__split > .col-6:first-child .schedlie-nav-cal-dropdown__footer-action {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar,
.schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar {
  background-color: #d4d5d4;
  color: #0f172a !important;
  font-weight: 700;
}

.schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar:hover,
.schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar:focus,
.schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar:hover,
.schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar:focus {
  background-color: #c8c9c8;
  color: #0f172a !important;
}

.schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link {
  color: #1e293b;
}

.schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link:hover,
.schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link:focus {
  background-color: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-empty {
  background-color: #eef0ee;
}

body[data-app-scheme="dark"] .schedlie-nav-search-dropdown, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-search-dropdown {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ececec;
}

body[data-app-scheme="dark"] .schedlie-nav-search-dropdown .dropdown-item, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-search-dropdown .dropdown-item {
  color: #ececec;
}

body[data-app-scheme="dark"] .schedlie-nav-search-dropdown .dropdown-item:hover, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-search-dropdown .dropdown-item:hover,
body[data-app-scheme="dark"] .schedlie-nav-search-dropdown .dropdown-item:focus, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-search-dropdown .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.08);
}

body[data-app-scheme="dark"] .schedlie-nav-search-dropdown .schedlie-nav-suggest-when, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-search-dropdown .schedlie-nav-suggest-when {
  color: #a3a3a3;
}

body[data-app-scheme="dark"] .schedlie-nav-notif-dropdown, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-dropdown {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ececec;
}

body[data-app-scheme="dark"] .schedlie-nav-notif-dropdown .dropdown-item, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-dropdown .dropdown-item {
  color: #ececec;
}

body[data-app-scheme="dark"] .schedlie-nav-notif-dropdown .dropdown-item:hover, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-dropdown .dropdown-item:hover,
body[data-app-scheme="dark"] .schedlie-nav-notif-dropdown .dropdown-item:focus, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-dropdown .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ececec;
}

body[data-app-scheme="dark"] .schedlie-nav-notif-dropdown .dropdown-divider, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-dropdown .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-app-scheme="dark"] .schedlie-nav-notif-item--unread, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-item--unread {
  background-color: rgba(255, 255, 255, 0.05);
}

body[data-app-scheme="dark"] .schedlie-nav-notif-dot--read, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-dot--read {
  border-color: rgba(255, 255, 255, 0.35);
}

body[data-app-scheme="dark"] .schedlie-nav-notif-when, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-when {
  color: #a3a3a3;
}

/* Bootstrap .text-muted uses --bs-secondary-color; without data-bs-theme=dark it stays a dark ink on our panel. */
body[data-app-scheme="dark"] .schedlie-nav-notif-dropdown .text-muted, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-dropdown .text-muted,
body[data-app-scheme="dark"] .schedlie-nav-notif-dropdown .dropdown-item.text-muted, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-notif-dropdown .dropdown-item.text-muted {
  color: #a3a3a3 !important;
}

body[data-app-scheme="dark"] .schedlie-nav-calendars-modal .schedlie-nav-calendars-modal-header,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-calendars-modal .schedlie-nav-calendars-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body[data-app-scheme="dark"] .schedlie-nav-calendars-modal .schedlie-nav-cal-dropdown,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-calendars-modal .schedlie-nav-cal-dropdown {
  background: transparent;
  border: 0;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ececec;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item {
  color: #ececec;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item:hover, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item:hover,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item:focus, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ececec;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-divider, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .text-muted, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .text-muted,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item-text.text-muted, body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item-text.text-muted {
  color: #a3a3a3 !important;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-header.schedlie-nav-cal-dropdown__section-title,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-header.schedlie-nav-cal-dropdown__section-title,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__section-title,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__section-title {
  background-color: transparent;
  color: #a3a3a3 !important;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action {
  background-color: transparent;
  color: #ececec !important;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:hover,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:focus,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:focus,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action:hover,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action:focus,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action:focus {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ececec !important;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar {
  background-color: #121212;
  color: #ffffff !important;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar:hover,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar:focus,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar:focus,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar:hover,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar:focus,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar:focus {
  background-color: #1a1a1a;
  color: #ffffff !important;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link {
  background-color: #484848;
  color: #ececec !important;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link:hover,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link:focus,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link:focus {
  background-color: #565656;
  color: #ffffff !important;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-empty,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-empty {
  background-color: #484848;
}

body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:first-child,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:first-child,
body[data-app-scheme="dark"] .schedlie-nav-cal-dropdown__split > .col-6:first-child .schedlie-nav-cal-dropdown__footer-action,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-nav-cal-dropdown__split > .col-6:first-child .schedlie-nav-cal-dropdown__footer-action {
  border-right-color: rgba(255, 255, 255, 0.12);
}

/* Match system + OS dark: same as explicit dark (header uses prefers-color-scheme for navbar) */
@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-nav-search-dropdown {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.12);
    color: #ececec;
  }

  body[data-app-scheme="system"] .schedlie-nav-search-dropdown .dropdown-item {
    color: #ececec;
  }

  body[data-app-scheme="system"] .schedlie-nav-search-dropdown .dropdown-item:hover,
  body[data-app-scheme="system"] .schedlie-nav-search-dropdown .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ececec;
  }

  body[data-app-scheme="system"] .schedlie-nav-search-dropdown .schedlie-nav-suggest-when {
    color: #a3a3a3;
  }

  body[data-app-scheme="system"] .schedlie-nav-search-dropdown .text-muted,
  body[data-app-scheme="system"] .schedlie-nav-search-dropdown .dropdown-item-text {
    color: #a3a3a3 !important;
  }

  body[data-app-scheme="system"] .schedlie-nav-search-dropdown .border-top {
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  body[data-app-scheme="system"] .schedlie-nav-notif-dropdown {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ececec;
  }

  body[data-app-scheme="system"] .schedlie-nav-notif-dropdown .dropdown-item {
    color: #ececec;
  }

  body[data-app-scheme="system"] .schedlie-nav-notif-dropdown .dropdown-item:hover,
  body[data-app-scheme="system"] .schedlie-nav-notif-dropdown .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ececec;
  }

  body[data-app-scheme="system"] .schedlie-nav-notif-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.12);
  }

  body[data-app-scheme="system"] .schedlie-nav-notif-item--unread {
    background-color: rgba(255, 255, 255, 0.05);
  }

  body[data-app-scheme="system"] .schedlie-nav-notif-dot--read {
    border-color: rgba(255, 255, 255, 0.35);
  }

  body[data-app-scheme="system"] .schedlie-nav-notif-when {
    color: #a3a3a3;
  }

  body[data-app-scheme="system"] .schedlie-nav-notif-dropdown .text-muted,
  body[data-app-scheme="system"] .schedlie-nav-notif-dropdown .dropdown-item.text-muted {
    color: #a3a3a3 !important;
  }

  body[data-app-scheme="system"] .schedlie-nav-calendars-modal .schedlie-nav-calendars-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  body[data-app-scheme="system"] .schedlie-nav-calendars-modal .schedlie-nav-cal-dropdown {
    background: transparent;
    border: 0;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ececec;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .dropdown-item {
    color: #ececec;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .dropdown-item:hover,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ececec;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar {
    background-color: #121212;
    color: #ffffff !important;
    font-weight: 700;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar:hover,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar:focus,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar:hover,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar:focus {
    background-color: #1a1a1a;
    color: #ffffff !important;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.12);
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .text-muted,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .dropdown-item-text.text-muted {
    color: #a3a3a3 !important;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .dropdown-header.schedlie-nav-cal-dropdown__section-title,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__section-title {
    background-color: transparent;
    color: #a3a3a3 !important;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action {
    background-color: transparent;
    color: #ececec !important;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:hover,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:focus,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action:hover,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ececec !important;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link {
    background-color: #484848;
    color: #ececec !important;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link:hover,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link:focus {
    background-color: #565656;
    color: #ffffff !important;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-empty {
    background-color: #484848;
  }

  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:first-child,
  body[data-app-scheme="system"] .schedlie-nav-cal-dropdown__split > .col-6:first-child .schedlie-nav-cal-dropdown__footer-action {
    border-right-color: rgba(255, 255, 255, 0.12);
  }

  body[data-app-scheme="system"] .schedlie-nav-notif-mark-all {
    background-color: rgba(255, 255, 255, 0.03);
  }

  body[data-app-scheme="system"] .schedlie-nav-notif-mark-all-btn {
    color: #ececec !important;
  }

  body[data-app-scheme="system"] .schedlie-nav-notif-mark-all-btn:hover,
  body[data-app-scheme="system"] .schedlie-nav-notif-mark-all-btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ececec !important;
  }

  body[data-app-scheme="system"] .schedlie-nav-notif-mark-all-icon.text-success {
    color: #6ee7b7 !important;
  }
}

/* Unified nav: burger + strip; overlay panel below bar at every breakpoint */
.schedlie-nav-shell--unified {
  position: relative;
  flex-wrap: wrap !important;
}

.schedlie-nav-shell--unified > .navbar-brand,
.schedlie-nav-shell--unified .schedlie-nav-strip,
.schedlie-nav-shell--unified > .navbar-toggler {
  position: relative;
  z-index: 1040;
}

.schedlie-nav-shell--unified.schedlie-nav-shell--logged-in {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.35rem;
}

.schedlie-nav-shell--unified.schedlie-nav-shell--logged-in .navbar-brand {
  min-width: 0;
}

.schedlie-nav-shell--unified .schedlie-nav-strip {
  margin-left: auto;
  flex-shrink: 0;
  gap: 0.125rem;
}

@media (min-width: 992px) {
  .schedlie-nav-shell--unified .schedlie-nav-strip {
    margin-left: 0;
  }

  /* Center search in the bar: brand | flexible column | strip */
  .schedlie-nav-shell--unified.schedlie-nav-shell--logged-in {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.35rem;
    flex-wrap: unset !important;
  }

  .schedlie-nav-shell--unified.schedlie-nav-shell--logged-in .schedlie-nav-search-desktop {
    justify-self: center;
    width: 100%;
    max-width: 28rem;
    min-width: 0;
  }
}

.schedlie-nav-shell--unified .schedlie-nav-strip .schedlie-nav-strip-icon {
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}

/* Win over Bootstrap .nav-link hover/focus (strip + icon row need visible fill) */
.schedlie-main-nav .schedlie-nav-strip .navbar-icon-btn:hover,
.schedlie-main-nav .schedlie-nav-strip .navbar-icon-btn:focus-visible {
  background-color: rgba(15, 23, 42, 0.12) !important;
}

body[data-app-scheme="dark"] .schedlie-main-nav .schedlie-nav-strip .navbar-icon-btn:hover,
body[data-app-scheme="dark"] .schedlie-main-nav .schedlie-nav-strip .navbar-icon-btn:focus-visible,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-main-nav .schedlie-nav-strip .navbar-icon-btn:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-main-nav .schedlie-nav-strip .navbar-icon-btn:focus-visible {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-main-nav .schedlie-nav-strip .navbar-icon-btn:hover,
  body[data-app-scheme="system"] .schedlie-main-nav .schedlie-nav-strip .navbar-icon-btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.08) !important;
  }
}

.schedlie-user-profile-photo {
  object-fit: cover;
  flex-shrink: 0;
}

.schedlie-user-profile-photo--thumb {
  width: 40px;
  height: 40px;
}

.schedlie-user-profile-photo--hero {
  width: 8.5rem;
  height: 8.5rem;
}

main.schedlie-event-standalone.schedlie-peer-profile-page {
  max-width: min(44rem, 100%);
}

.schedlie-peer-profile-photo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0.1875rem;
  border-radius: 50%;
  background: var(--schedlie-surface, #fff);
  box-shadow: 0 0 0 1px var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
  box-sizing: border-box;
}

.schedlie-peer-profile-photo-wrap .schedlie-user-profile-photo {
  display: block;
  max-width: none;
  border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
}

.schedlie-peer-profile-photo-wrap--card {
  width: calc(8.5rem + 0.375rem);
  height: calc(8.5rem + 0.375rem);
}

.schedlie-peer-profile-photo-wrap--card .schedlie-user-profile-photo {
  width: 8.5rem;
  height: 8.5rem;
}

.schedlie-peer-profile-section-card .h6 {
  letter-spacing: 0.01em;
}

.schedlie-peer-profile-field {
  min-width: 0;
}

.schedlie-peer-profile a.schedlie-peer-profile-link,
.schedlie-peer-profile-field a {
  font-weight: 600;
  text-decoration: none;
}

.schedlie-peer-profile a.schedlie-peer-profile-link:hover,
.schedlie-peer-profile a.schedlie-peer-profile-link:focus-visible,
.schedlie-peer-profile-field a:hover,
.schedlie-peer-profile-field a:focus-visible {
  text-decoration: none;
}

.schedlie-peer-profile-section-card .schedlie-peer-profile-professional-group h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedlie-peer-profile-empty {
  padding: 1.25rem 1rem;
  border-radius: 0.75rem;
  background: var(--bs-tertiary-bg, rgba(0, 0, 0, 0.04));
  text-align: center;
}

.schedlie-member-profile-modal .schedlie-member-profile-modal-header {
  border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
}

body[data-app-scheme="dark"] .schedlie-member-profile-modal .schedlie-member-profile-modal-header,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-member-profile-modal .schedlie-member-profile-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body[data-app-scheme="dark"] .schedlie-peer-profile-photo-wrap,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-peer-profile-photo-wrap {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-member-profile-modal .schedlie-member-profile-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  body[data-app-scheme="system"] .schedlie-peer-profile-photo-wrap {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

.schedlie-nav-search-desktop .schedlie-nav-search-group {
  max-width: 28rem;
  width: 100%;
}

/* #mainNav lives under <nav>, not .container, so the panel matches full navbar strip width */
.schedlie-main-nav .schedlie-nav-session-collapse {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
  margin-left: 0;
  transform: none;
  z-index: 1030;
  padding: 0.75rem max(var(--bs-gutter-x, 0.75rem), env(safe-area-inset-left, 0px)) 1rem
    max(var(--bs-gutter-x, 0.75rem), env(safe-area-inset-right, 0px));
  border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.1));
  max-height: min(70vh, calc(100dvh - 4.5rem));
  overflow: hidden;
  background-color: var(--bs-light);
}

/* Let Bootstrap’s height transition run; auto overflow breaks .collapsing */
.schedlie-main-nav .schedlie-nav-session-collapse.show {
  overflow-y: auto;
}

body[data-app-scheme="dark"] .schedlie-main-nav .schedlie-nav-session-collapse,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-main-nav .schedlie-nav-session-collapse {
  background-color: var(--schedlie-surface);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.schedlie-main-nav .schedlie-nav-collapse-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.schedlie-main-nav .schedlie-nav-search--collapsed-menu {
  width: 100%;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-app-scheme="dark"] .schedlie-main-nav .schedlie-nav-search--collapsed-menu,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-main-nav .schedlie-nav-search--collapsed-menu {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.schedlie-main-nav .schedlie-nav-search--collapsed-menu .schedlie-nav-search-group {
  max-width: none;
}

.schedlie-nav-burger-links:not(.schedlie-nav-burger-links--icons) {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100%;
  padding-top: 0;
  padding-inline: 0;
  margin-inline: 0 !important;
}

.schedlie-nav-burger-links:not(.schedlie-nav-burger-links--icons) > .nav-item {
  width: 100%;
}

.schedlie-nav-burger-links--icons {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.35rem;
  width: 100%;
  padding-top: 0;
  padding-inline: 0;
}

/* Same max-width curve as Bootstrap .container — keeps the row aligned with page content */
.schedlie-main-nav .schedlie-nav-burger-links--icons {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

@media (min-width: 576px) {
  .schedlie-main-nav .schedlie-nav-burger-links--icons {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .schedlie-main-nav .schedlie-nav-burger-links--icons {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .schedlie-main-nav .schedlie-nav-burger-links--icons {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .schedlie-main-nav .schedlie-nav-burger-links--icons {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .schedlie-main-nav .schedlie-nav-burger-links--icons {
    max-width: 1320px;
  }
}

.schedlie-nav-burger-links--icons > .nav-item {
  width: auto;
}

.schedlie-main-nav .schedlie-nav-burger-links--icons .navbar-icon-btn:hover,
.schedlie-main-nav .schedlie-nav-burger-links--icons .navbar-icon-btn:focus-visible {
  background-color: rgba(15, 23, 42, 0.12) !important;
}

body[data-app-scheme="dark"] .schedlie-main-nav .schedlie-nav-burger-links--icons .navbar-icon-btn:hover,
body[data-app-scheme="dark"] .schedlie-main-nav .schedlie-nav-burger-links--icons .navbar-icon-btn:focus-visible,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-main-nav .schedlie-nav-burger-links--icons .navbar-icon-btn:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-main-nav .schedlie-nav-burger-links--icons .navbar-icon-btn:focus-visible {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-main-nav .schedlie-nav-burger-links--icons .navbar-icon-btn:hover,
  body[data-app-scheme="system"] .schedlie-main-nav .schedlie-nav-burger-links--icons .navbar-icon-btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.08) !important;
  }
}

.schedlie-nav-burger-item .btn {
  margin-top: 0.125rem;
}

.schedlie-search-result-link:hover .fw-medium,
.schedlie-search-result-link:focus-visible .fw-medium {
  text-decoration: underline;
}

/* Account sidebar (profile, settings, billing): light card, charcoal button pills */
.account-nav.card {
  background-color: var(--schedlie-surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.account-nav .nav-pills .nav-link {
  color: var(--schedlie-ink-muted);
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
}

.account-nav .nav-pills .nav-link:hover {
  color: var(--schedlie-ink);
  background-color: rgba(15, 23, 42, 0.06);
}

.account-nav .nav-pills .nav-link:focus-visible {
  color: var(--schedlie-ink);
  outline: 2px solid rgba(15, 23, 42, 0.25);
  outline-offset: 2px;
}

.account-nav .nav-pills .nav-link.active {
  background-color: #212529;
  color: #fafafa;
}

.account-nav .nav-pills .nav-link.active:hover {
  background-color: #343a40;
  color: #fff;
}

@media (min-width: 992px) {
  .account-nav .nav-pills .nav-link {
    border-radius: 0.375rem;
  }
}

@media (max-width: 991.98px) {
  .account-sidebar-sticky {
    position: static;
  }

  .account-nav .nav.nav-pills {
    display: flex;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0.25rem !important;
    padding: 0.75rem !important;
  }

  .account-nav .nav-item {
    width: 100% !important;
    flex: 0 0 auto !important;
  }

  .account-nav .nav-pills .nav-link {
    width: 100%;
    text-wrap: balance;
    line-height: 1.3;
    padding: 0.625rem 0.75rem;
  }

  .account-nav-main-row .nav-link {
    margin-bottom: 0;
  }

  .account-nav-sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
  }

  .account-nav-profile-sub {
    margin-top: 0.2rem;
    margin-left: 0;
    padding-left: 0.55rem;
    border-left-width: 1px;
  }

  .account-nav-profile-sub .nav-link {
    font-size: 0.93rem;
    padding: 0.4rem 0.6rem !important;
  }
}

/* Profile page: sidebar anchor targets clear the fixed navbar */
.schedlie-profile-anchor {
  scroll-margin-top: 5rem;
}

/* Account layout: keep sidebar visible while scrolling main column (desktop) */
@media (min-width: 992px) {
  .account-sidebar-sticky {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    z-index: 1;
  }
}

/* Profile: in-page links nested under active Profile item */
.account-nav-profile-sub {
  margin-left: 0.125rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(15, 23, 42, 0.12);
}

.account-nav-profile-sub .nav-link {
  color: var(--schedlie-ink-muted);
  border-radius: 0.375rem;
}

.account-nav-profile-sub .nav-link:hover {
  color: var(--schedlie-ink);
  background-color: rgba(15, 23, 42, 0.06);
}

.account-nav-profile-sub .nav-link:focus-visible {
  color: var(--schedlie-ink);
  outline: 2px solid rgba(15, 23, 42, 0.25);
  outline-offset: 2px;
}

.account-nav-sub-toggle {
  display: none;
  text-decoration: none;
  color: var(--schedlie-ink-muted);
  padding: 0.25rem 0.5rem;
  line-height: 1;
  border-radius: 0.375rem;
}

.account-nav-sub-toggle:hover {
  color: var(--schedlie-ink);
  background-color: rgba(15, 23, 42, 0.06);
}

.account-nav-sub-toggle:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.25);
  outline-offset: 2px;
}

.account-nav-sub-toggle-symbol {
  display: inline-block;
  width: 0.8rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
}

/* Settings layout: grouped sidebar (account + group calendar settings) */
.account-nav .schedlie-settings-nav-header {
  border-color: rgba(15, 23, 42, 0.08);
}

.account-nav .schedlie-settings-nav-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-nav .schedlie-settings-nav-group-divider {
  height: 1px;
  margin: 0.125rem 0;
  background-color: rgba(15, 23, 42, 0.08);
}

.account-nav .schedlie-settings-nav-group-label {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.account-nav .schedlie-settings-nav-group .nav.flex-column {
  gap: 0.125rem !important;
}

.schedlie-settings-layout .schedlie-settings-page-header .h5 {
  line-height: 1.3;
}

/* Notifications: third-party consent inset (light / dark / system) */
.schedlie-third-party-consent-panel {
  background-color: rgba(15, 23, 42, 0.045);
  border-color: rgba(15, 23, 42, 0.14) !important;
}

.schedlie-third-party-consent-label {
  color: var(--schedlie-ink);
}

.schedlie-third-party-consent-muted {
  color: var(--schedlie-ink-muted);
}

body[data-app-scheme="dark"] .schedlie-third-party-consent-panel,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-third-party-consent-panel {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16) !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-third-party-consent-panel {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16) !important;
  }
}

@media (prefers-color-scheme: light) {
  body[data-app-scheme="system"] .schedlie-third-party-consent-panel {
    background-color: rgba(15, 23, 42, 0.045);
    border-color: rgba(15, 23, 42, 0.14) !important;
  }
}

/* Event form: third-party recipient rows (Bootstrap .table uses --bs-body-bg, not cal surface) */
.schedlie-tp-recipients {
  /* Light: subtle darker inset */
  background-color: color-mix(in srgb, var(--schedlie-ink) 4.5%, var(--schedlie-surface));
  border-color: color-mix(in srgb, var(--schedlie-ink) 14%, transparent) !important;
}

body[data-app-scheme="dark"] .schedlie-tp-recipients,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-tp-recipients {
  /* Dark: slightly deeper than panel surface (not a light wash on top) */
  background-color: color-mix(in srgb, var(--schedlie-surface) 90%, #000);
  border-color: color-mix(in srgb, var(--schedlie-ink) 16%, transparent) !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-tp-recipients {
    background-color: color-mix(in srgb, var(--schedlie-surface) 90%, #000);
    border-color: color-mix(in srgb, var(--schedlie-ink) 16%, transparent) !important;
  }
}

@media (prefers-color-scheme: light) {
  body[data-app-scheme="system"] .schedlie-tp-recipients {
    background-color: color-mix(in srgb, var(--schedlie-ink) 4.5%, var(--schedlie-surface));
    border-color: color-mix(in srgb, var(--schedlie-ink) 14%, transparent) !important;
  }
}

.schedlie-tp-recipients .table {
  --bs-table-color: var(--schedlie-ink);
  --bs-table-bg: transparent;
  --bs-table-border-color: color-mix(in srgb, var(--schedlie-ink) 12%, transparent);
  margin-bottom: 0;
}

.schedlie-tp-recipients .table > :not(caption) > * > * {
  background-color: transparent;
  color: var(--schedlie-ink);
  border-bottom-color: color-mix(in srgb, var(--schedlie-ink) 10%, transparent);
}

.schedlie-tp-recipients .table thead th {
  color: var(--schedlie-ink);
  font-weight: 600;
  border-bottom-color: color-mix(in srgb, var(--schedlie-ink) 12%, transparent);
}

.schedlie-tp-recipient-row--accepted {
  background-color: color-mix(in srgb, var(--bs-success) 12%, transparent);
  transition: background-color 0.35s ease;
}

.schedlie-tp-in-app-rocker-wrap--disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.schedlie-tp-in-app-rocker-wrap--disabled .form-check-input.schedlie-rocker:disabled {
  cursor: not-allowed;
}

.schedlie-tp-channel-rocker-wrap--locked {
  cursor: not-allowed;
}

.schedlie-tp-channel-rocker-wrap--optout {
  cursor: not-allowed;
}

.form-check-input.schedlie-rocker.schedlie-rocker--tp-optout:disabled,
.form-check-input.schedlie-rocker[data-schedlie-tp-incoming-optout="1"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.schedlie-tp-comms-section {
  padding: 0.75rem;
  border-radius: 0.375rem;
  background-color: color-mix(in srgb, var(--schedlie-ink) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--schedlie-ink) 10%, transparent);
}

.schedlie-tp-comms-section__channels--disabled {
  opacity: 0.45;
  pointer-events: none;
}

body[data-app-scheme="dark"] .schedlie-tp-comms-section,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-tp-comms-section {
  background-color: color-mix(in srgb, var(--schedlie-paper) 90%, #000);
  border-color: color-mix(in srgb, var(--schedlie-ink) 14%, transparent);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-tp-comms-section {
    background-color: color-mix(in srgb, var(--schedlie-paper) 90%, #000);
    border-color: color-mix(in srgb, var(--schedlie-ink) 14%, transparent);
  }
}

.schedlie-tp-recipients .schedlie-tp-recipient-row:last-child {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0.25rem !important;
}

/* Site-wide cookie consent bar (light / dark / system) */
.schedlie-cookie-consent {
  z-index: 1080;
  background-color: var(--schedlie-paper, #fff);
  border-color: rgba(15, 23, 42, 0.12) !important;
}

.schedlie-cookie-consent-title,
.schedlie-cookie-consent-text {
  color: var(--schedlie-ink, #212529);
}

.schedlie-cookie-consent-link {
  color: var(--schedlie-link, #0d6efd);
}

body[data-app-scheme="dark"] .schedlie-cookie-consent,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-cookie-consent {
  background-color: var(--schedlie-paper, #1e293b);
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body[data-app-scheme="dark"] .schedlie-cookie-consent-title,
body[data-app-scheme="dark"] .schedlie-cookie-consent-text,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-cookie-consent-title,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-cookie-consent-text {
  color: var(--schedlie-ink, #f8fafc);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-cookie-consent {
    background-color: var(--schedlie-paper, #1e293b);
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  body[data-app-scheme="system"] .schedlie-cookie-consent-title,
  body[data-app-scheme="system"] .schedlie-cookie-consent-text {
    color: var(--schedlie-ink, #f8fafc);
  }
}

@media (prefers-color-scheme: light) {
  body[data-app-scheme="system"] .schedlie-cookie-consent {
    background-color: var(--schedlie-paper, #fff);
    border-color: rgba(15, 23, 42, 0.12) !important;
  }
}

/* Settings: intrinsic-width selects on desktop (override Bootstrap full-width) */
@media (min-width: 992px) {
  .settings-form-select-desktop {
    width: auto !important;
    max-width: 100%;
  }
}

/* Advanced wizard: nested calendar tree (step 3). */
.schedlie-advanced-tree-node__panel {
  margin-bottom: 0.25rem;
}

.schedlie-advanced-tree-children {
  border-left: 2px solid var(--bs-border-color);
  margin-left: 0.35rem;
  padding-left: 0.65rem;
}

/* Advanced wizard: per-calendar step navigation (step 4+). */
.schedlie-wizard-tree-nav__link {
  color: var(--bs-body-color);
  border: 1px solid transparent;
}

button.schedlie-wizard-tree-nav__link {
  font: inherit;
}

.schedlie-wizard-tree-nav__link:hover {
  background-color: var(--schedlie-cal-muted-fill);
  color: var(--bs-body-color);
}

.schedlie-wizard-tree-nav__link--active {
  background-color: var(--schedlie-cal-muted-fill);
  border-color: var(--bs-border-color);
  font-weight: 600;
}

.schedlie-wizard-tree-nav__status {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--bs-secondary-color);
  opacity: 0.45;
}

.schedlie-wizard-tree-nav__status--done {
  background-color: var(--bs-success);
  opacity: 1;
}

/* Nested shared calendars in lists, filters, and group-calendar sidebar. */
.schedlie-shared-cal-tree__item {
  margin-left: var(--schedlie-shared-cal-tree-indent, 0);
}

/* Collapsed branch children — needs !important to override d-flex */
.schedlie-cal-tree-hidden {
  display: none !important;
}

/* Branch collapse toggle — far-right chevron on parent calendar rows */
.schedlie-cal-tree-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0.25rem;
  color: var(--bs-secondary-color);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.15s, background-color 0.15s;
}
.schedlie-cal-tree-toggle:hover {
  opacity: 1;
  color: var(--schedlie-ink);
  background-color: var(--schedlie-cal-muted-fill);
}
.schedlie-cal-tree-toggle-icon {
  display: block;
  transition: transform 0.2s ease;
}
.schedlie-cal-tree-toggle[aria-expanded="false"] .schedlie-cal-tree-toggle-icon {
  transform: rotate(-90deg);
}

.schedlie-cal-hub-tree-card .list-group-item:last-child {
  border-bottom: 0;
}

.schedlie-cal-hub-accordion .schedlie-cal-hub-acc-header {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.schedlie-cal-hub-accordion .schedlie-cal-hub-acc-header > .accordion-button {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  width: auto !important;
}

.schedlie-cal-hub-accordion .schedlie-cal-hub-acc-header-actions {
  background-color: var(--schedlie-surface, var(--bs-body-bg));
  border-color: var(--schedlie-cal-line, var(--bs-border-color)) !important;
}

.schedlie-cal-hub-accordion .accordion-button {
  background-color: var(--schedlie-surface, var(--bs-body-bg));
  color: var(--schedlie-ink, var(--bs-body-color));
  box-shadow: none !important;
}

.schedlie-cal-hub-accordion .accordion-button:not(.collapsed) {
  background-color: var(--schedlie-surface, var(--bs-body-bg));
  color: var(--schedlie-ink, var(--bs-body-color));
  box-shadow: none !important;
}

.schedlie-cal-hub-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: var(--schedlie-cal-line, var(--bs-border-color));
}

.schedlie-cal-hub-accordion .accordion-button::after {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  background-color: var(--schedlie-ink-muted);
  background-image: none;
  opacity: 1;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.schedlie-cal-hub-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.schedlie-cal-hub-link-card {
  display: block;
  text-decoration: none;
  color: var(--schedlie-ink, var(--bs-body-color));
  background-color: var(--schedlie-surface, var(--bs-body-bg));
  border: 1px solid var(--schedlie-cal-line, var(--bs-border-color)) !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.schedlie-cal-hub-link-card:hover,
.schedlie-cal-hub-link-card:focus-visible {
  color: var(--schedlie-ink, var(--bs-body-color));
  background-color: color-mix(in srgb, var(--schedlie-ink) 5%, var(--schedlie-surface, var(--bs-body-bg)));
  border-color: color-mix(in srgb, var(--schedlie-ink) 16%, var(--schedlie-cal-line, var(--bs-border-color))) !important;
  box-shadow: none !important;
}

.schedlie-cal-hub-link-card .text-muted,
.schedlie-cal-hub-link-card .schedlie-text-muted {
  color: var(--schedlie-ink-muted, var(--bs-secondary-color)) !important;
}

.schedlie-cal-hub-link-card .schedlie-text-ink {
  color: var(--schedlie-ink, var(--bs-body-color));
}

.schedlie-cal-hub-link-card--is-active {
  border-color: color-mix(in srgb, var(--schedlie-ink) 35%, var(--schedlie-cal-line, var(--bs-border-color))) !important;
  background-color: color-mix(in srgb, var(--schedlie-ink) 6%, var(--schedlie-surface, var(--bs-body-bg)));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--schedlie-ink) 22%, transparent);
}

.schedlie-nav-calendars-modal-title-link {
  color: inherit;
}

.schedlie-nav-calendars-modal-title-link:hover {
  color: inherit;
  text-decoration: underline;
}

.schedlie-shared-cal-tree-nav__link {
  color: var(--bs-body-color);
  border: 1px solid transparent;
}

.schedlie-shared-cal-tree-nav__link:hover {
  background-color: var(--schedlie-cal-muted-fill);
  color: var(--bs-body-color);
}

.schedlie-shared-cal-tree-nav__link--active {
  background-color: var(--schedlie-cal-muted-fill);
  border-color: var(--bs-border-color);
}

.schedlie-wizard-step4-review__card {
  margin-left: var(--schedlie-wizard-review-indent, 0);
}

.schedlie-wizard-step5-review__card {
  margin-left: var(--schedlie-wizard-review-indent, 0);
}

.schedlie-inset-panel {
  background-color: var(--schedlie-cal-muted-fill);
  border-color: var(--bs-border-color) !important;
}

/* Wizard / org manage: ancestor reference blocks (event types + member questions) */
.schedlie-wizard-ancestor-questions__title,
.schedlie-wizard-ancestor-types__title {
  color: var(--schedlie-ink);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.schedlie-wizard-ancestor-questions__intro,
.schedlie-wizard-ancestor-questions__empty,
.schedlie-wizard-ancestor-types__intro,
.schedlie-wizard-ancestor-types__empty {
  color: var(--schedlie-ink-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.schedlie-wizard-ancestor-questions__empty,
.schedlie-wizard-ancestor-types__empty {
  margin-bottom: 0;
}

.schedlie-wizard-ancestor-questions__card,
.schedlie-wizard-ancestor-types__card {
  background-color: var(--schedlie-cal-muted-fill);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.schedlie-wizard-ancestor-questions__cal-name,
.schedlie-wizard-ancestor-types__cal-name {
  color: var(--schedlie-ink);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.schedlie-wizard-ancestor-questions__item,
.schedlie-wizard-ancestor-types__item {
  color: var(--schedlie-ink);
  font-size: 0.875rem;
}

.schedlie-wizard-ancestor-questions__item-label,
.schedlie-wizard-ancestor-types__item-label {
  color: var(--schedlie-ink);
}

.schedlie-wizard-ancestor-questions__item-type,
.schedlie-wizard-ancestor-types__item-type {
  color: var(--schedlie-ink-muted);
}

.schedlie-wizard-ancestor-types__highlight {
  background-color: var(--schedlie-cal-muted-fill) !important;
  border: 1px solid var(--bs-border-color) !important;
  color: var(--schedlie-ink-muted) !important;
  font-weight: 500;
}

/* Safety net: Bootstrap bg-light* ignores data-app-scheme (e.g. wizard preview boxes). */
body[data-app-scheme="dark"] main .bg-light-subtle,
body[data-app-scheme="dark"] main .bg-light:not(.navbar):not(.schedlie-site-footer),
body[data-schedlie-preview-app-scheme="dark"] main .bg-light-subtle,
body[data-schedlie-preview-app-scheme="dark"] main .bg-light:not(.navbar):not(.schedlie-site-footer) {
  background-color: var(--schedlie-cal-muted-fill) !important;
  color: var(--bs-body-color);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] main .bg-light-subtle,
  body[data-app-scheme="system"] main .bg-light:not(.navbar):not(.schedlie-site-footer) {
    background-color: var(--schedlie-cal-muted-fill) !important;
    color: var(--bs-body-color);
  }
}

/* Account onboarding — trial step: pricing hero + comparison table */
/* Do not use Bootstrap .text-body here: --bs-body-color can stay light-theme when only data-app-scheme is dark. */
/* Accent (trial ink + hero €0): vivid indigo on light, soft indigo on dark. */
.schedlie-onboarding-trial-ink,
.schedlie-onboarding-trial-hero-price-zero {
  color: rgb(92, 87, 255) !important;
  font-weight: 700 !important;
}

body[data-app-scheme="dark"] .schedlie-onboarding-trial-ink,
body[data-app-scheme="dark"] .schedlie-onboarding-trial-hero-price-zero,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-onboarding-trial-ink,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-onboarding-trial-hero-price-zero {
  color: rgb(145, 141, 255) !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-onboarding-trial-ink,
  body[data-app-scheme="system"] .schedlie-onboarding-trial-hero-price-zero {
    color: rgb(145, 141, 255) !important;
  }
}

/* Primary CTA — matches trial accent */
.schedlie-onboarding-trial-cta-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.schedlie-onboarding-trial-cta.btn {
  --schedlie-trial-cta-bg: rgb(92, 87, 255);
  --schedlie-trial-cta-hover: rgb(72, 68, 220);
  --schedlie-trial-cta-active: rgb(58, 54, 200);
  --schedlie-trial-cta-fg: #fff;
  width: 90%;
  font-weight: 700;
  background-color: var(--schedlie-trial-cta-bg);
  border-color: var(--schedlie-trial-cta-bg);
  color: #fff !important;
}

.schedlie-onboarding-trial-cta.btn:hover {
  background-color: var(--schedlie-trial-cta-hover);
  border-color: var(--schedlie-trial-cta-hover);
  color: #fff !important;
}

.schedlie-onboarding-trial-cta.btn:active,
.schedlie-onboarding-trial-cta.btn:focus-visible {
  background-color: var(--schedlie-trial-cta-active);
  border-color: var(--schedlie-trial-cta-active);
  color: #fff !important;
}

.schedlie-onboarding-trial-cta.btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(92, 87, 255, 0.4);
}

body[data-app-scheme="dark"] .schedlie-onboarding-trial-cta.btn,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-onboarding-trial-cta.btn {
  --schedlie-trial-cta-bg: rgb(92, 87, 255);
  --schedlie-trial-cta-hover: rgb(72, 68, 220);
  --schedlie-trial-cta-active: rgb(58, 54, 200);
  color: #fff !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-onboarding-trial-cta.btn {
    --schedlie-trial-cta-bg: rgb(92, 87, 255);
    --schedlie-trial-cta-hover: rgb(72, 68, 220);
    --schedlie-trial-cta-active: rgb(58, 54, 200);
    color: #fff !important;
  }

  body[data-app-scheme="system"] .schedlie-onboarding-trial-cta.btn:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(92, 87, 255, 0.4);
  }
}

body[data-app-scheme="dark"] .schedlie-onboarding-trial-cta.btn:focus-visible,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-onboarding-trial-cta.btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(92, 87, 255, 0.4);
}

.schedlie-onboarding-trial-pricing-below {
  max-width: 32rem;
}

.schedlie-onboarding-trial-muted {
  color: var(--schedlie-ink-muted);
}

.schedlie-onboarding-trial-hero {
  position: relative;
}

@media (max-width: 991.98px) {
  .schedlie-onboarding-trial-hero--stack {
    text-align: center;
  }
}

.schedlie-onboarding-trial-hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--schedlie-ink-muted);
}
.schedlie-onboarding-trial-hero-price-strike {
  font-size: 0.95rem;
}
.schedlie-onboarding-trial-hero-price-zero {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* “Then €…” pill — explicit contrast; avoid Bootstrap text-bg-secondary (weak on inset panel + dark scheme). */
.schedlie-onboarding-trial-hero-followup-pill.badge {
  font-weight: 600;
  background-color: rgba(15, 23, 42, 0.09);
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.14);
}

body[data-app-scheme="dark"] .schedlie-onboarding-trial-hero-followup-pill.badge,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-onboarding-trial-hero-followup-pill.badge {
  background-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.22);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-onboarding-trial-hero-followup-pill.badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.22);
  }
}

.schedlie-onboarding-trial-table table {
  --schedlie-trial-cell-pad-y: 0.85rem;
}
.schedlie-onboarding-trial-table table thead th,
.schedlie-onboarding-trial-table table tbody td {
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}
.schedlie-onboarding-trial-table table thead th {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--schedlie-ink-muted);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--bs-border-color);
}
.schedlie-onboarding-trial-table table tbody td {
  vertical-align: middle;
  padding-top: var(--schedlie-trial-cell-pad-y);
  padding-bottom: var(--schedlie-trial-cell-pad-y);
  color: var(--schedlie-ink);
}
.schedlie-onboarding-trial-feature-icon {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}
.schedlie-onboarding-trial-table table tbody td:first-child {
  max-width: 58%;
}
.schedlie-onboarding-trial-table table thead th:not(:first-child),
.schedlie-onboarding-trial-table table tbody td:not(:first-child) {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.schedlie-onboarding-trial-table table thead th:last-child,
.schedlie-onboarding-trial-table table tbody td:last-child {
  background-color: var(--schedlie-cal-muted-fill);
  box-shadow: inset 1px 0 0 var(--bs-border-color);
}

/* Subscriptions / group plans: active plan column (background only, theme tokens) */
.schedlie-plan-compare-table.schedlie-onboarding-trial-table table thead th:last-child,
.schedlie-plan-compare-table.schedlie-onboarding-trial-table table tbody td:last-child {
  background-color: transparent;
  box-shadow: none;
}
.schedlie-plan-compare-table.schedlie-onboarding-trial-table table thead th.schedlie-plan-compare-col-active,
.schedlie-plan-compare-table.schedlie-onboarding-trial-table table tbody td.schedlie-plan-compare-col-active {
  background-color: var(--schedlie-cal-muted-fill);
}
.schedlie-plan-compare-table.schedlie-onboarding-trial-table table thead th.schedlie-plan-compare-col-active {
  color: var(--schedlie-ink);
}
.schedlie-plan-compare-col-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.schedlie-plan-compare-col-name {
  display: block;
  line-height: 1.2;
}
.schedlie-plan-compare-col-pill {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.schedlie-stripe-billing-interval {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.schedlie-stripe-billing-interval--compact .btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}
.schedlie-stripe-checkout-form .schedlie-stripe-billing-interval {
  margin-bottom: 0;
}

button.schedlie-billing-inline-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--bs-link-color);
  font-weight: var(--schedlie-link-font-weight, 500);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  cursor: pointer;
  vertical-align: baseline;
}

button.schedlie-billing-inline-link:hover,
button.schedlie-billing-inline-link:focus-visible {
  color: var(--bs-link-hover-color);
  font-weight: var(--schedlie-link-hover-font-weight, 600);
}

.schedlie-billing-payment-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedlie-billing-payment-table__grid {
  display: grid;
  grid-template-columns:
    minmax(6.75rem, 1.15fr)
    minmax(5.5rem, 1.35fr)
    minmax(4.75rem, 0.9fr)
    minmax(3.75rem, 0.75fr)
    minmax(6.5rem, 1.05fr)
    minmax(5.25rem, auto);
  column-gap: 1rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  min-width: 42rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--schedlie-ink);
}

.schedlie-billing-payment-table__head {
  color: var(--schedlie-ink-muted);
  border-bottom: 1px solid var(--bs-border-color);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.schedlie-billing-payment-table__head > div {
  white-space: nowrap;
}

.schedlie-billing-payment-table__row {
  border-bottom: 1px solid var(--bs-border-color-translucent, var(--bs-border-color));
}

.schedlie-billing-payment-table__row:last-child {
  border-bottom: 0;
}

.schedlie-billing-payment-table__cell {
  min-width: 0;
  width: 100%;
}

.schedlie-billing-payment-table__link {
  color: var(--bs-link-color);
  font-weight: var(--schedlie-link-font-weight, 500);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  white-space: nowrap;
}

.schedlie-billing-payment-table__link:hover,
.schedlie-billing-payment-table__link:focus-visible {
  color: var(--bs-link-hover-color);
}

@media (max-width: 991.98px) {
  .schedlie-billing-payment-table__grid {
    min-width: 0;
    grid-template-columns: 1fr;
    row-gap: 0.35rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .schedlie-billing-payment-table__head {
    display: none;
  }

  .schedlie-billing-payment-table__mobile-label {
    display: block;
    font-size: 0.75rem;
    color: var(--schedlie-ink-muted);
    margin-bottom: 0.1rem;
  }

}

@media (min-width: 992px) {
  .schedlie-billing-payment-table__mobile-label {
    display: none;
  }
}

.schedlie-plus-upgrade-panel {
  background: linear-gradient(135deg, rgba(92, 87, 255, 0.1), rgba(92, 87, 255, 0.03));
  border-color: var(--bs-border-color) !important;
}

.schedlie-plus-upgrade-checkout--wide {
  max-width: 28rem;
}

.schedlie-plus-upgrade-checkout-footnote {
  margin-top: 0.5rem;
  border-top: 1px solid var(--bs-border-color-translucent, var(--bs-border-color));
}

.schedlie-stripe-billing-interval--cards .schedlie-stripe-billing-card {
  border-radius: 0.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: normal;
}

.schedlie-stripe-billing-interval--cards .schedlie-stripe-billing-card__price {
  line-height: 1.2;
}

/* Trial intro: stronger list-price strikethrough than default text-decoration-line-through */
.schedlie-plus-list-price-strike {
  position: relative;
  display: inline-block;
  color: var(--schedlie-ink-muted);
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-thickness: 0.14em;
  text-decoration-color: var(--schedlie-ink);
  text-underline-offset: 0.08em;
}

body[data-app-scheme="dark"] .schedlie-plus-list-price-strike,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-plus-list-price-strike {
  text-decoration-color: rgba(236, 236, 236, 0.92);
}

.schedlie-stripe-billing-interval:not(.schedlie-stripe-billing-interval--cards) .btn {
  white-space: normal;
}

.schedlie-stripe-billing-interval--cards .btn-check:checked + .schedlie-stripe-billing-card {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 1px var(--bs-primary);
  background-color: var(--schedlie-cal-muted-fill);
}

.schedlie-stripe-billing-interval--cards.schedlie-stripe-billing-interval--stack .schedlie-stripe-billing-card .badge {
  max-width: calc(100% - 1rem);
  white-space: normal;
  line-height: 1.2;
}

@media (min-width: 576px) {
  .schedlie-plus-upgrade-checkout--wide .schedlie-stripe-billing-interval--stack > .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.schedlie-group-plans-upgrade .schedlie-stripe-billing-interval--stack > .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .schedlie-group-plans-upgrade .schedlie-stripe-billing-interval--stack > .row {
    display: flex;
    flex-wrap: nowrap;
  }

  .schedlie-group-plans-upgrade .schedlie-stripe-billing-interval--stack > .row > [class*="col-"] {
    flex: 1 1 0;
    max-width: none;
  }
}

.schedlie-onboarding-trial-skip-wrap {
  margin-top: 2rem;
}

.schedlie-onboarding-trial-skip.btn.btn-link {
  border: 1px solid currentColor;
  width: 90%;
}

/* Bot protection: hidden honeypot field on auth forms */
.schedlie-hp-wrap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.schedlie-turnstile-wrap {
  min-height: 65px;
  width: 100%;
}
.schedlie-turnstile-wrap .cf-turnstile,
.schedlie-turnstile-wrap iframe {
  width: 100% !important;
  max-width: 100%;
}

/* Post-onboarding Schedlie Plus trial promo strip (below toast host, above nav). */
.schedlie-plus-trial-promo {
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(92, 87, 255, 0.14), rgba(92, 87, 255, 0.06));
  border-color: var(--bs-border-color) !important;
}

.schedlie-plus-trial-promo-inner--action {
  width: 100%;
}

@media (min-width: 768px) {
  .schedlie-plus-trial-promo-inner--action .schedlie-plus-trial-promo-text {
    margin-bottom: 0;
  }

  .schedlie-plus-trial-promo-inner--action .schedlie-plus-trial-promo-actions {
    white-space: nowrap;
  }
}

.schedlie-plus-trial-promo-dismiss {
  position: absolute;
  top: 0.35rem;
  right: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.5rem;
  max-width: min(100%, 14rem);
}

.schedlie-plus-trial-promo-hide,
.schedlie-plus-trial-promo-dont-show {
  color: var(--schedlie-ink-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.3;
}

.schedlie-plus-trial-promo-hide:hover,
.schedlie-plus-trial-promo-hide:focus-visible,
.schedlie-plus-trial-promo-dont-show:hover,
.schedlie-plus-trial-promo-dont-show:focus-visible {
  color: var(--schedlie-ink);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .schedlie-plus-trial-promo-inner {
    padding-right: 9.5rem;
  }
}

.schedlie-plus-trial-promo-text {
  color: var(--schedlie-ink);
  font-size: 0.8125rem;
  line-height: 1.45;
}

body[data-app-scheme="dark"] .schedlie-plus-trial-promo,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-plus-trial-promo {
  background: linear-gradient(90deg, rgba(92, 87, 255, 0.24), rgba(92, 87, 255, 0.1));
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-plus-trial-promo {
    background: linear-gradient(90deg, rgba(92, 87, 255, 0.24), rgba(92, 87, 255, 0.1));
  }
}

/* Plus trial week-offer modal — centered promo treatment */
.schedlie-plus-trial-week-modal .modal-content {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 24px 56px -12px rgba(79, 70, 229, 0.22);
}

.schedlie-plus-trial-week-modal-hero {
  background: linear-gradient(
    165deg,
    rgba(99, 102, 241, 0.22) 0%,
    rgba(167, 139, 250, 0.14) 42%,
    rgba(255, 255, 255, 0.65) 100%
  );
}

.schedlie-plus-trial-week-modal-tagline {
  color: var(--schedlie-ink-muted);
}

.schedlie-plus-trial-week-modal-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #6366f1 0%, #7c3aed 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.38);
}

.schedlie-plus-trial-week-modal-price {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #4338ca;
}

.schedlie-plus-trial-week-modal-subscribe {
  color: #fff !important;
  border: 0 !important;
  background: linear-gradient(145deg, #6366f1 0%, #7c3aed 100%) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.38);
}

.schedlie-plus-trial-week-modal-subscribe:hover {
  color: #fff !important;
  filter: brightness(1.07);
}

.schedlie-plus-trial-week-modal-subscribe:focus-visible {
  color: #fff !important;
  box-shadow:
    0 8px 24px rgba(99, 102, 241, 0.38),
    0 0 0 0.25rem rgba(99, 102, 241, 0.45);
}

body[data-app-scheme="dark"] .schedlie-plus-trial-week-modal .modal-content,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-plus-trial-week-modal .modal-content {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 24px 56px -12px rgba(99, 102, 241, 0.28);
}

body[data-app-scheme="dark"] .schedlie-plus-trial-week-modal-hero,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-plus-trial-week-modal-hero {
  background: linear-gradient(
    165deg,
    rgba(99, 102, 241, 0.38) 0%,
    rgba(124, 58, 237, 0.22) 45%,
    rgba(30, 30, 30, 0.92) 100%
  );
}

body[data-app-scheme="dark"] .schedlie-plus-trial-week-modal-price,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-plus-trial-week-modal-price {
  color: #c4b5fd;
}

body[data-app-scheme="dark"] .schedlie-plus-trial-week-modal-subscribe,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-plus-trial-week-modal-subscribe {
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
}

body[data-app-scheme="dark"] .schedlie-plus-trial-week-modal-subscribe:focus-visible,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-plus-trial-week-modal-subscribe:focus-visible {
  box-shadow:
    0 8px 28px rgba(99, 102, 241, 0.45),
    0 0 0 0.25rem rgba(196, 181, 253, 0.35);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-plus-trial-week-modal .modal-content {
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.45),
      0 24px 56px -12px rgba(99, 102, 241, 0.28);
  }

  body[data-app-scheme="system"] .schedlie-plus-trial-week-modal-hero {
    background: linear-gradient(
      165deg,
      rgba(99, 102, 241, 0.38) 0%,
      rgba(124, 58, 237, 0.22) 45%,
      rgba(30, 30, 30, 0.92) 100%
    );
  }

  body[data-app-scheme="system"] .schedlie-plus-trial-week-modal-price {
    color: #c4b5fd;
  }

  body[data-app-scheme="system"] .schedlie-plus-trial-week-modal-subscribe {
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
  }

  body[data-app-scheme="system"] .schedlie-plus-trial-week-modal-subscribe:focus-visible {
    box-shadow:
      0 8px 28px rgba(99, 102, 241, 0.45),
      0 0 0 0.25rem rgba(196, 181, 253, 0.35);
  }
}

/* Universal form borders + focus ring (checkboxes, radios, text fields, selects, etc.) */
.form-check-input:not(.is-invalid):not(.is-valid),
.form-select:not(.is-invalid):not(.is-valid),
.form-control:not(.form-control-plaintext):not(.is-invalid):not(.is-valid),
.input-group-text:not(.is-invalid):not(.is-valid) {
  border-color: var(--schedlie-form-border);
}

.form-check-input:focus:not(.is-invalid):not(.is-valid),
.form-select:focus:not(.is-invalid):not(.is-valid),
.form-control:focus:not(.form-control-plaintext):not(.is-invalid):not(.is-valid) {
  border-color: var(--schedlie-form-border);
  box-shadow: 0 0 0 0.25rem var(--schedlie-form-focus-ring);
}

/* Disabled / read-only fields — Bootstrap defaults stay “paper gray” in dark mode; align with app tokens */
.form-control:disabled:not(.form-control-plaintext),
.form-control[readonly]:not(.form-control-plaintext),
.form-select:disabled:not(.is-invalid):not(.is-valid),
.form-select.disabled:not(.is-invalid):not(.is-valid) {
  background-color: var(--schedlie-form-disabled-bg);
  color: var(--schedlie-ink-muted);
  border-color: var(--schedlie-form-border);
  opacity: 1;
  -webkit-text-fill-color: var(--schedlie-ink-muted);
}

.form-select:disabled:not(.is-invalid):not(.is-valid),
.form-select.disabled:not(.is-invalid):not(.is-valid) {
  background-image: var(--schedlie-form-select-caret-disabled);
}

/* Disabled outline buttons in page content — Bootstrap opacity + grays fight app light/dark surfaces */
main .btn-outline-secondary:disabled,
main .btn-outline-secondary.disabled,
main .btn-outline-dark:disabled,
main .btn-outline-dark.disabled,
main .btn-outline-success:disabled,
main .btn-outline-success.disabled,
main .btn-outline-danger:disabled,
main .btn-outline-danger.disabled {
  opacity: 1;
  background-color: var(--schedlie-form-disabled-bg);
  color: var(--schedlie-ink-muted);
  border-color: var(--schedlie-form-border);
}

.form-check-input:not(:checked):not(.is-invalid):not(.is-valid) {
  background-color: var(--schedlie-form-check-unchecked-bg);
  border-color: var(--schedlie-form-check-unchecked-border);
}

/* Radio: lighter outline ring, darker center (unchecked + checked) */
.form-check-input[type="radio"]:not(:checked):not(.is-invalid):not(.is-valid) {
  background-color: var(--schedlie-form-radio-unchecked-bg);
  border-color: var(--schedlie-form-radio-unchecked-border);
}

.form-check-input[type="radio"]:checked:not(.is-invalid):not(.is-valid) {
  background-color: var(--schedlie-form-radio-checked-center);
  border-color: var(--schedlie-form-radio-ring);
}

.form-check-input[type="radio"]:checked:focus:not(.is-invalid):not(.is-valid) {
  border-color: var(--schedlie-form-radio-ring);
  box-shadow: 0 0 0 0.25rem var(--schedlie-form-radio-focus-ring);
}

/* Standard square checkboxes (default — opt-in to rocker with .schedlie-rocker on the input). */
.form-check-input[type="checkbox"]:not(.schedlie-rocker):checked:not(.is-invalid):not(.is-valid),
.form-check-input[type="checkbox"]:not(.schedlie-rocker):indeterminate:not(.is-invalid):not(.is-valid) {
  background-color: var(--schedlie-form-check-checked);
  border-color: var(--schedlie-form-check-checked);
}

.form-check-input[type="checkbox"]:not(.schedlie-rocker):checked:focus:not(.is-invalid):not(.is-valid),
.form-check-input[type="checkbox"]:not(.schedlie-rocker):indeterminate:focus:not(.is-invalid):not(.is-valid) {
  border-color: var(--schedlie-form-check-checked);
  box-shadow: 0 0 0 0.25rem var(--schedlie-form-check-checked-focus-ring);
}

/* Rocker toggle: only when input has .schedlie-rocker (label before control — use .schedlie-rocker-field). */
.form-check-input.schedlie-rocker[type="checkbox"] {
  --schedlie-toggle-knob-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7.25' fill='%23ffffff'/%3E%3C/svg%3E");
  --schedlie-toggle-track-w: 2.75rem;
  --schedlie-toggle-track-h: 1.375rem;
  --schedlie-toggle-knob: 1.125rem;
  --schedlie-toggle-pad: 0.125rem;
  --bs-form-check-bg-image: var(--schedlie-toggle-knob-svg);
  width: var(--schedlie-toggle-track-w);
  height: var(--schedlie-toggle-track-h);
  margin-top: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 9999px;
  flex-shrink: 0;
  cursor: pointer;
  background-repeat: no-repeat !important;
  background-size: var(--schedlie-toggle-knob) var(--schedlie-toggle-knob) !important;
  background-position: left var(--schedlie-toggle-pad) center !important;
  background-image: var(--schedlie-toggle-knob-svg) !important;
  transition:
    background-color 0.2s ease,
    background-position 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.form-check-input.schedlie-rocker:checked[type="checkbox"],
.form-check-input.schedlie-rocker[type="checkbox"]:indeterminate {
  --bs-form-check-bg-image: var(--schedlie-toggle-knob-svg) !important;
}

.form-check-input.schedlie-rocker[type="checkbox"]:not(:checked):not(.is-invalid):not(.is-valid) {
  background-color: var(--schedlie-form-check-unchecked-bg);
  border-color: var(--schedlie-form-check-unchecked-border);
}

.form-check-input.schedlie-rocker[type="checkbox"]:not(:checked) {
  background-position: left var(--schedlie-toggle-pad) center !important;
}

.form-check-input.schedlie-rocker[type="checkbox"]:checked:not(.is-invalid):not(.is-valid) {
  background-color: var(--schedlie-form-toggle-on, #198754);
  border-color: var(--schedlie-form-toggle-on-border, #157347);
}

.form-check-input.schedlie-rocker[type="checkbox"]:checked {
  background-position: right var(--schedlie-toggle-pad) center !important;
}

.form-check-input.schedlie-rocker[type="checkbox"]:indeterminate:not(.is-invalid):not(.is-valid) {
  background-color: var(--schedlie-form-check-checked);
  border-color: var(--schedlie-form-check-checked);
}

.form-check-input.schedlie-rocker[type="checkbox"]:indeterminate {
  background-position: center center !important;
}

.form-check-input.schedlie-rocker[type="checkbox"].is-invalid:checked {
  background-color: var(--schedlie-form-toggle-on, #198754);
  border-color: var(--bs-danger, #dc3545);
}

.form-check-input.schedlie-rocker[type="checkbox"].is-invalid:indeterminate {
  background-color: var(--schedlie-form-check-checked);
  border-color: var(--bs-danger, #dc3545);
}

.form-check-input.schedlie-rocker[type="checkbox"]:focus:not(.is-invalid):not(.is-valid) {
  border-color: var(--schedlie-form-border);
  box-shadow: 0 0 0 0.25rem var(--schedlie-form-focus-ring);
}

.form-check-input.schedlie-rocker[type="checkbox"]:checked:focus:not(.is-invalid):not(.is-valid) {
  border-color: var(--schedlie-form-toggle-on-border, #157347);
  box-shadow: 0 0 0 0.25rem var(--schedlie-form-toggle-on-focus-ring);
}

.form-check-input.schedlie-rocker[type="checkbox"]:indeterminate:focus:not(.is-invalid):not(.is-valid) {
  border-color: var(--schedlie-form-check-checked);
  box-shadow: 0 0 0 0.25rem var(--schedlie-form-check-checked-focus-ring);
}

.form-check-input.schedlie-rocker[type="checkbox"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Label left, rocker right — overrides Bootstrap .form-check float when using .schedlie-rocker-field */
.form-check.schedlie-rocker-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-left: 0;
}

.form-check.schedlie-rocker-field .form-check-label {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.form-check.schedlie-rocker-field .form-check-input.schedlie-rocker {
  float: none;
  margin-left: 0;
}

/* Notification settings + account privacy: responsive row/column controls */
.schedlie-notification-channels-masters {
  padding-bottom: 0.15rem;
}

.schedlie-notification-channels-masters--mobile {
  border-bottom: 1px solid color-mix(in srgb, var(--schedlie-ink) 10%, transparent);
  padding-bottom: 0.65rem;
}

.schedlie-notification-channels-grid .schedlie-notification-channels-row:first-of-type,
.schedlie-privacy-visibility-grid .schedlie-privacy-visibility-row:first-of-type {
  border-top: 0 !important;
}

.schedlie-notification-channels-grid .schedlie-notification-channels-row,
.schedlie-privacy-visibility-grid .schedlie-privacy-visibility-row,
.schedlie-privacy-visibility-grid .schedlie-privacy-visibility-section {
  align-items: flex-start;
}

.form-check.schedlie-rocker-field.schedlie-rocker-field--channel-cell {
  justify-content: center;
  min-width: 0;
}
.form-check.schedlie-rocker-field.schedlie-rocker-field--channel-cell .form-check-input.schedlie-rocker {
  margin-top: 0;
}

@media (max-width: 767.98px) {
  .schedlie-notification-channels-grid .schedlie-notification-channels-row .col-4 {
    padding-top: 0.1rem;
  }
}
.schedlie-channel-rocker-wrap--soon {
  cursor: help;
}

/* Native date/time fields: calendar & clock icons follow light vs dark (browser-drawn indicators). */
body[data-app-scheme="light"] .form-control[type="date"],
body[data-app-scheme="light"] .form-control[type="time"] {
  color-scheme: light;
}

body[data-app-scheme="dark"] .form-control[type="date"],
body[data-app-scheme="dark"] .form-control[type="time"],
body[data-schedlie-preview-app-scheme="dark"] .form-control[type="date"],
body[data-schedlie-preview-app-scheme="dark"] .form-control[type="time"] {
  color-scheme: dark;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .form-control[type="date"],
body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .form-control[type="time"] {
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  body[data-app-scheme="system"] .form-control[type="date"],
  body[data-app-scheme="system"] .form-control[type="time"] {
    color-scheme: light;
  }
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .form-control[type="date"],
  body[data-app-scheme="system"] .form-control[type="time"] {
    color-scheme: dark;
  }

  body[data-app-scheme="system"][data-schedlie-preview-app-scheme="light"] .form-control[type="date"],
  body[data-app-scheme="system"][data-schedlie-preview-app-scheme="light"] .form-control[type="time"] {
    color-scheme: light;
  }
}

/* —— Dashboard calendar sidebar —— */
.dashboard-cal-sidebar {
  background: var(--schedlie-surface);
}

.dashboard-cal-sidebar-heading {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--schedlie-ink);
}

main.dashboard-page :is(#dashboardCalSidebarAside, #groupCalEventTypeFilterAside).dashboard-home-widget.card {
  background: var(--schedlie-surface);
  color: var(--schedlie-ink);
  border: 1px solid var(--schedlie-cal-line) !important;
}

main.dashboard-page :is(#dashboardCalSidebarAside, #groupCalEventTypeFilterAside).dashboard-home-widget .card-body {
  color: var(--schedlie-ink);
}

/* ── Dashboard home widget max height ── */
[data-dashboard-widget="cal-filter"] .card-body,
[data-dashboard-widget="upcoming"] .card-body,
#schedlie-dashboard-mini .card-body {
  max-height: 600px;
  overflow-y: auto;
}

.dashboard-cal-sidebar-cal-link {
  color: var(--schedlie-ink);
}

.dashboard-cal-sidebar-cal-link:hover {
  color: var(--schedlie-ink);
  background-color: rgba(127, 127, 127, 0.16);
}

.dashboard-cal-sidebar-cal-link.is-active {
  color: var(--schedlie-ink);
  background-color: rgba(127, 127, 127, 0.24);
}

.dashboard-cal-filter-type-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.dashboard-cal-filter-check .form-check-input {
  margin-top: 0;
  align-self: center;
}

/*
 * Calendar filter sidebars: truncation for long names in flex accordion headers.
 */
:is(#dashboardCalSidebarAside, #groupCalEventTypeFilterAside) {
  max-width: 100%;
  overflow-x: hidden;
}

:is(#dashboardCalSidebarAside, #groupCalEventTypeFilterAside) .dashboard-cal-sidebar-accordion {
  max-width: 100%;
}

:is(#dashboardCalSidebarAside, #groupCalEventTypeFilterAside) .accordion-header {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

:is(#dashboardCalSidebarAside, #groupCalEventTypeFilterAside) .accordion-header.d-flex > .dashboard-cal-sidebar-acc-btn.accordion-button {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 100%;
  width: 100% !important;
  overflow: hidden;
}

:is(#dashboardCalSidebarAside, #groupCalEventTypeFilterAside) .dashboard-cal-sidebar-acc-btn.accordion-button > .dashboard-cal-sidebar-acc-text-cluster {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

:is(#dashboardCalSidebarAside, #groupCalEventTypeFilterAside) .dashboard-cal-sidebar-acc-title {
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

:is(#dashboardCalSidebarAside, #groupCalEventTypeFilterAside) .dashboard-cal-sidebar-acc-sub {
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dashboard-cal-sidebar-group-link.disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* —— Dashboard —— */
.dashboard-main-card {
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.045),
    0 12px 32px -8px rgba(0, 0, 0, 0.09) !important;
  background: var(--schedlie-surface);
}

@media (max-width: 767.98px) {
  .dashboard-main-card {
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible;
    margin-left: 5px;
    margin-right: 5px;
  }
}

/* Time picker modal: width fits wheel columns only */
#schedlieTimePickerModal .schedlie-time-picker-modal-dialog {
  max-width: none !important;
  width: max-content !important;
  margin-left: auto;
  margin-right: auto;
}

#schedlieTimePickerModal .schedlie-time-picker-modal-content {
  min-width: 0;
  border-radius: var(--bs-modal-border-radius, 0.5rem);
  /* Same surface as other modals; stronger edge reads against the dimmed backdrop */
  background-color: var(--bs-modal-bg, var(--schedlie-surface, #fff));
  border: 1px solid rgba(15, 23, 42, 0.22);
  box-shadow: var(--bs-modal-box-shadow);
}

body[data-app-scheme="dark"] #schedlieTimePickerModal .schedlie-time-picker-modal-content {
  background-color: var(--bs-modal-bg, var(--schedlie-surface, #1e1e1e));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--bs-modal-box-shadow);
}

/* Title band: centered horizontally; vertically centered in space above the wheels */
#schedlieTimePickerModal .schedlie-time-picker-modal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 1rem 1.25rem 1rem;
  border: 0;
  min-height: 3.25rem;
  box-sizing: border-box;
}

#schedlieTimePickerModal .schedlie-time-picker-modal-head .modal-title {
  flex: 1 1 auto;
  text-align: center;
  line-height: 1.35;
}

.schedlie-time-picker-icon-btn {
  line-height: 1;
  border: 0 !important;
  text-decoration: none !important;
}

.schedlie-time-picker-icon-btn:hover {
  background-color: rgba(15, 23, 42, 0.07) !important;
}

.schedlie-time-picker-icon-btn:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  outline-offset: 2px;
}

body[data-app-scheme="dark"] .schedlie-time-picker-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Event form: date + time stay two columns on narrow screens */
.schedlie-event-datetime-row .col-6 {
  min-width: 0;
}

.schedlie-event-datetime-row .schedlie-time-input-row {
  min-width: 0;
}

/* Event form: HH:MM text + optional scroll-wheel picker (hidden inputs POST) */
.schedlie-time-input-row .schedlie-time-text {
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.schedlie-time-wheel-panel {
  padding: 0.35rem 0.25rem 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.03);
}

body[data-app-scheme="dark"] .schedlie-time-wheel-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.schedlie-time-wheels {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  max-width: 100%;
}

.schedlie-time-wheels-sep {
  align-self: center;
  font-weight: 600;
  opacity: 0.88;
  padding: 0 0.15rem;
  user-select: none;
}

.schedlie-time-wheel {
  position: relative;
  flex: 1 1 4rem;
  min-width: 3.25rem;
  max-width: 5rem;
  border-radius: 0.65rem;
  background: var(--bs-body-bg, #fff);
}

.schedlie-time-wheel-selection {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2.75rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(99, 102, 241, 0.38);
  background: rgba(99, 102, 241, 0.09);
  pointer-events: none;
  z-index: 0;
}

.schedlie-time-wheel-track {
  position: relative;
  z-index: 1;
  height: 10.5rem;
  max-height: 38vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: transparent;
  /* JS snaps to the nearest row on scroll end; avoid CSS mandatory snap (fights mouse wheel). */
  overscroll-behavior: contain;
}

.schedlie-time-wheel-track::-webkit-scrollbar {
  display: none;
}

.schedlie-time-wheel-item {
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 1rem;
  color: var(--schedlie-ink, #0f172a);
  opacity: 0.45;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.schedlie-time-wheel-item:hover {
  opacity: 0.75;
}

body[data-app-scheme="dark"] .schedlie-time-wheel {
  background: var(--bs-body-bg, #0f172a);
}

body[data-app-scheme="dark"] .schedlie-time-wheel-track {
  border-color: rgba(255, 255, 255, 0.14);
}

body[data-app-scheme="dark"] .schedlie-time-wheel-item {
  color: var(--schedlie-ink, #f8fafc);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-time-wheel-track {
    border-color: rgba(255, 255, 255, 0.14);
  }
}

.dashboard-cal-toolbar {
  background: var(--schedlie-cal-toolbar-bg);
  border-bottom: 1px solid var(--schedlie-cal-toolbar-border);
}

.dashboard-month-title {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--schedlie-cal-toolbar-title);
}

.dashboard-cal-nav {
  gap: 0.35rem;
}

.dashboard-cal-nav-side {
  flex: 0 0 auto;
  min-width: 5.5rem;
  align-self: center;
}

.dashboard-cal-toolbar-tools-start,
.dashboard-cal-toolbar-tools-end {
  min-width: 0;
}

.dashboard-cal-toolbar-month {
  flex-basis: 15rem;
}

/*
 * Mobile: month title on top; icon clusters below aligned left / right (match desktop).
 * Bootstrap order-* on toolbar children is reset here so grid placement wins.
 */
@media (max-width: 767.98px) {
  /*
   * Override Bootstrap .d-flex { display:flex!important } so grid layout applies.
   * Override .order-* { order:N!important } so month sits row 1 per grid placement.
   */
  .dashboard-cal-toolbar .dashboard-cal-nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.35rem;
    row-gap: 0.5rem;
    align-items: center;
  }

  .dashboard-cal-toolbar .dashboard-cal-nav-side {
    min-width: 0;
  }

  .dashboard-cal-toolbar .dashboard-cal-toolbar-month {
    grid-column: 1 / -1;
    grid-row: 1;
    flex-basis: auto;
    width: 100%;
    max-width: none;
    order: 0 !important;
  }

  .dashboard-cal-toolbar .dashboard-cal-toolbar-tools-start {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    order: 0 !important;
  }

  .dashboard-cal-toolbar .dashboard-cal-toolbar-tools-end {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    order: 0 !important;
  }
}

@media (min-width: 576px) {
  .dashboard-cal-nav-side {
    min-width: 7.5rem;
  }

  .dashboard-cal-toolbar-tools-start,
  .dashboard-cal-toolbar-tools-end {
    min-width: auto;
  }
}

.dashboard-cal-toolbar .dashboard-cal-nav-btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem !important;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.dashboard-cal-toolbar .dashboard-cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.dashboard-cal-toolbar .dashboard-cal-nav-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.dashboard-cal-nav-icon {
  display: block;
  line-height: 0;
}

.dashboard-cal-appearance-icon,
.dashboard-cal-filter-icon,
.dashboard-cal-new-icon,
.dashboard-cal-refresh-icon {
  display: block;
}

.dashboard-cal-toolbar .dashboard-cal-nav-btn.dashboard-cal-filter-btn-active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

/* Wide mode: calendar uses full row (col-12) inside normal container; sidebar moves to offcanvas */
@media (min-width: 1200px) {
  main.dashboard-page.dashboard-page--wide .dashboard-cal-sidebar-column {
    display: none !important;
  }

  main.dashboard-page.dashboard-page--wide .dashboard-cal-main-column {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }
}

.dashboard-cal-sidebar-offcanvas-toggle,
.group-cal-event-type-filter-offcanvas-toggle {
  display: none !important;
}

@media (min-width: 1200px) {
  main.dashboard-page.dashboard-page--wide .dashboard-cal-sidebar-offcanvas-toggle,
  main.dashboard-page.dashboard-page--wide .group-cal-event-type-filter-offcanvas-toggle {
    display: inline-flex !important;
  }
}

/* My Calendar / group calendar: mobile collapse for filter widget (below xl, same as sidebar column) */
@media (max-width: 1199.98px) {
  :is(#dashboardCalSidebarAside, #groupCalEventTypeFilterAside).dashboard-home-widget--collapsible.dashboard-home-widget--collapsed .dashboard-home-widget-collapse-body {
    display: none !important;
  }

  :is(#dashboardCalSidebarAside, #groupCalEventTypeFilterAside).dashboard-home-widget--collapsible.dashboard-home-widget--collapsed .dashboard-home-widget-head {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 1200px) {
  :is(#dashboardCalSidebarAside, #groupCalEventTypeFilterAside).dashboard-home-widget--collapsible.dashboard-home-widget--collapsed .dashboard-home-widget-collapse-body {
    display: block !important;
  }
}

.dashboard-cal-filters-offcanvas.offcanvas {
  --bs-offcanvas-width: min(100vw - 1rem, 22rem);
  background: var(--schedlie-surface, #fff);
  color: var(--schedlie-ink, #0f172a);
}

.dashboard-cal-filters-offcanvas .offcanvas-header {
  background: var(--schedlie-surface, #fff);
  color: var(--schedlie-ink, #0f172a);
  border-color: var(--schedlie-cal-line, rgba(0, 0, 0, 0.1)) !important;
}

.dashboard-cal-filters-offcanvas .offcanvas-title {
  color: var(--schedlie-ink, #0f172a);
}

.dashboard-cal-filters-offcanvas .offcanvas-body .dashboard-cal-sidebar {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.dashboard-cal-filters-offcanvas .offcanvas-body .dashboard-cal-sidebar > .card-body > .dashboard-home-widget-head,
.dashboard-cal-filters-offcanvas .offcanvas-body .dashboard-cal-sidebar.dashboard-home-widget--collapsed .dashboard-home-widget-collapse-body {
  display: block !important;
}

.dashboard-cal-filters-offcanvas .offcanvas-body .dashboard-cal-sidebar > .card-body > .dashboard-home-widget-head {
  display: none;
}

.dashboard-cal-filters-offcanvas .offcanvas-body .dashboard-cal-sidebar > .card-body {
  padding-top: 0.75rem;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-filters-offcanvas .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.75;
}

/* Fixed home dashboard (/dashboard.php) */
main.dashboard-page .dashboard-home-widget.card {
  background: var(--schedlie-surface);
  color: var(--schedlie-ink);
  border: 1px solid var(--schedlie-cal-line) !important;
}

main.dashboard-page .dashboard-home-widget .card-body {
  color: var(--schedlie-ink);
}

main.dashboard-page .dashboard-home-widget .text-muted {
  color: var(--schedlie-ink-muted) !important;
}

main.dashboard-page .dashboard-home-widget-heading,
main.dashboard-page .dashboard-home-page-title {
  color: var(--schedlie-ink);
}

main.dashboard-page .dashboard-home-widget-link {
  color: var(--schedlie-ink);
}

main.dashboard-page .dashboard-home-widget-link:hover {
  color: var(--schedlie-accent);
}

main.dashboard-page .btn-schedlie-cal-outline {
  --bs-btn-color: var(--schedlie-ink);
  --bs-btn-border-color: var(--schedlie-cal-line);
  --bs-btn-hover-color: var(--schedlie-ink);
  --bs-btn-hover-bg: var(--schedlie-cal-muted-fill);
  --bs-btn-hover-border-color: var(--schedlie-cal-line);
  --bs-btn-focus-shadow-rgb: 79, 70, 229;
  --bs-btn-active-color: var(--schedlie-ink);
  --bs-btn-active-bg: var(--schedlie-cal-muted-fill);
  --bs-btn-active-border-color: var(--schedlie-cal-line);
}

main.dashboard-page .dashboard-home-widget-icon-btn.btn {
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
}

main.dashboard-page .dashboard-home-widget-cal-nav {
  display: flex;
  width: 100%;
}

main.dashboard-page .dashboard-home-widget-cal-nav-title {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.dashboard-home-mini-dow,
.dashboard-home-mini-weekrow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.dashboard-page .dashboard-home-mini-dow > div {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--schedlie-cal-weekday-fg);
  background: var(--schedlie-cal-weekday-bg);
  border-radius: 0.25rem;
}

.dashboard-home-mini-day {
  min-height: 2.35rem;
  font-size: 0.75rem;
}

.dashboard-page .dashboard-home-mini-day--in {
  background: var(--schedlie-surface);
}

.dashboard-page .dashboard-home-mini-day--outside {
  background: var(--schedlie-cal-outside-month-bg);
}

.dashboard-page .dashboard-home-mini-day--today {
  background: var(--schedlie-today-bg);
  box-shadow: inset 0 0 0 1px var(--schedlie-today-ring);
}

.dashboard-page .dashboard-home-mini-day--day-highlight-multi .dashboard-home-mini-dots {
  margin-top: 0.1rem;
}

.dashboard-page .dashboard-home-mini-day-btn {
  color: var(--schedlie-ink);
}

.dashboard-page .dashboard-home-mini-day--selectable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.dashboard-page .dashboard-home-mini-day--day-selected {
  background: var(--schedlie-day-selected-bg);
}

.dashboard-page .dashboard-home-mini-day--day-selected:not(.dashboard-home-mini-day--day-highlight) {
  outline: 2px solid var(--schedlie-day-selected-ring);
  outline-offset: -2px;
}

.dashboard-page .dashboard-home-mini-day--today.dashboard-home-mini-day--day-selected:not(.dashboard-home-mini-day--day-highlight) {
  background: var(--schedlie-day-selected-bg);
  box-shadow: inset 0 0 0 1px var(--schedlie-today-ring);
  outline: 2px solid var(--schedlie-day-selected-ring);
  outline-offset: -2px;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-home-mini-day--day-selected:not(.dashboard-home-mini-day--day-highlight) {
  outline-color: rgba(255, 255, 255, 0.38);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-home-mini-day--today.dashboard-home-mini-day--day-selected:not(.dashboard-home-mini-day--day-highlight) {
  outline-color: rgba(255, 255, 255, 0.3);
}

body[data-app-scheme="dark"] main.dashboard-page .dashboard-home-mini-day--day-selected:not(.dashboard-home-mini-day--day-highlight),
body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page .dashboard-home-mini-day--day-selected:not(.dashboard-home-mini-day--day-highlight) {
  outline-color: rgba(255, 255, 255, 0.42);
}

body[data-app-scheme="dark"] main.dashboard-page .dashboard-home-mini-day--today.dashboard-home-mini-day--day-selected:not(.dashboard-home-mini-day--day-highlight),
body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page .dashboard-home-mini-day--today.dashboard-home-mini-day--day-selected:not(.dashboard-home-mini-day--day-highlight) {
  outline-color: rgba(255, 255, 255, 0.34);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] main.dashboard-page .dashboard-home-mini-day--day-selected:not(.dashboard-home-mini-day--day-highlight) {
    outline-color: rgba(255, 255, 255, 0.42);
  }

  body[data-app-scheme="system"] main.dashboard-page .dashboard-home-mini-day--today.dashboard-home-mini-day--day-selected:not(.dashboard-home-mini-day--day-highlight) {
    outline-color: rgba(255, 255, 255, 0.34);
  }
}

/* Mobile-only collapse for dashboard home sidebar widgets (Calendars, Upcoming). */
@media (max-width: 991.98px) {
  .dashboard-home-widget--collapsible.dashboard-home-widget--collapsed .dashboard-home-widget-collapse-body {
    display: none !important;
  }

  .dashboard-home-widget--collapsible.dashboard-home-widget--collapsed.h-100 {
    height: auto !important;
  }

  .dashboard-home-widget--collapsible.dashboard-home-widget--collapsed .card-body.d-flex {
    display: block !important;
  }

  .dashboard-home-widget--collapsible.dashboard-home-widget--collapsed .dashboard-home-widget-head {
    margin-bottom: 0 !important;
  }

  .dashboard-home-widget-collapse-toggle {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--schedlie-ink-muted);
    text-decoration: none;
  }

  .dashboard-home-widget-collapse-toggle:hover,
  .dashboard-home-widget-collapse-toggle:focus-visible {
    color: var(--schedlie-ink);
  }

  .dashboard-home-widget--collapsible .dashboard-home-widget-collapse-heading {
    cursor: pointer;
  }

  .dashboard-home-widget-collapse-chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 0.15s ease;
  }

  .dashboard-home-widget--collapsed .dashboard-home-widget-collapse-chevron {
    transform: rotate(-90deg);
  }
}

@media (min-width: 992px) {
  .dashboard-home-widget--collapsible.dashboard-home-widget--collapsed .dashboard-home-widget-collapse-body {
    display: block !important;
  }

  .dashboard-home-widget--collapsible.dashboard-home-widget--collapsed.h-100 {
    height: 100% !important;
  }

  .dashboard-home-widget--collapsible.dashboard-home-widget--collapsed .card-body.d-flex {
    display: flex !important;
  }

  .dashboard-home-widget--collapsible.dashboard-home-widget--collapsed .dashboard-home-widget-head {
    margin-bottom: revert !important;
  }

  .dashboard-home-widget--collapsible .dashboard-home-widget-collapse-heading {
    cursor: default;
  }

  .dashboard-home-widget--collapsed .dashboard-home-widget-collapse-chevron {
    transform: none;
  }
}

.dashboard-cal-day-panel--mini {
  scroll-margin-top: 0.5rem;
}

.dashboard-cal-day-panel--mini .dashboard-cal-day-panel-date {
  font-size: 0.95rem;
}

.dashboard-cal-day-panel--mini .dashboard-cal-mobile-list-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.dashboard-cal-day-panel--mini .dashboard-cal-mobile-event-title {
  font-size: 0.875rem;
}

.dashboard-page .dashboard-home-mini-day--outside .dashboard-home-widget-link {
  color: var(--schedlie-ink-muted);
}

.schedlie-dashboard-mini-back-spacer {
  display: inline-block;
  width: 1.75rem;
  flex-shrink: 0;
}

.dashboard-home-mini-day-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-home-mini-day-event {
  background: var(--schedlie-surface);
  border: 1px solid var(--schedlie-cal-line);
  border-left-width: 3px;
  border-left-style: solid;
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-home-mini-day-event {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.dashboard-home-mini-day-event-time {
  display: block;
  font-size: 0.72rem;
  margin-bottom: 0.1rem;
}

.dashboard-home-mini-day-event-title {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.dashboard-home-week-dow-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--schedlie-cal-line);
  border: 1px solid var(--schedlie-cal-line);
  border-radius: 0.35rem;
  overflow: hidden;
}

.dashboard-page .dashboard-home-week-dow-row .dashboard-cal-weekday.dashboard-home-week-dow {
  border-bottom: none;
  padding: 0.45rem 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.dashboard-page .dashboard-home-week-dow-num {
  color: var(--schedlie-cal-weekday-fg);
  font-variant-numeric: tabular-nums;
}

.dashboard-home-week-desktop {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.dashboard-home-week-cols {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: stretch;
}

.dashboard-home-week-col {
  min-height: 10rem;
  max-height: 22rem;
  overflow-y: auto;
  background: var(--schedlie-surface);
  border: 1px solid var(--schedlie-cal-line);
}

/* Today: match main calendar (.dashboard-cal-cell--today), not Bootstrap --bs-primary */
.dashboard-page .dashboard-home-week-dow-row .dashboard-cal-weekday.dashboard-home-week-dow.dashboard-home-week-dow--today {
  background: var(--schedlie-today-bg);
  box-shadow: inset 0 0 0 1px var(--schedlie-today-ring);
  color: var(--schedlie-ink);
}

.dashboard-page .dashboard-home-week-dow--today .dashboard-home-week-dow-num {
  color: var(--schedlie-ink);
  font-weight: 700;
}

.dashboard-page .dashboard-home-week-col--today {
  background: var(--schedlie-today-bg);
  box-shadow: inset 0 0 0 1px var(--schedlie-today-ring);
}

.dashboard-home-week-mobile-day {
  border: 1px solid var(--schedlie-cal-line);
  background: var(--schedlie-surface);
}

.dashboard-home-week-mobile-head {
  background: var(--schedlie-cal-weekday-bg);
  color: var(--schedlie-cal-weekday-fg);
  border-bottom: 1px solid var(--schedlie-cal-line);
}

.dashboard-page .dashboard-home-week-mobile-day--today {
  box-shadow: inset 0 0 0 1px var(--schedlie-today-ring);
}

.dashboard-page .dashboard-home-week-mobile-day--today .dashboard-home-week-mobile-head {
  background: var(--schedlie-today-bg);
  color: var(--schedlie-ink);
  border-bottom-color: var(--schedlie-today-ring);
}

.dashboard-page .dashboard-home-week-mobile-day--today .dashboard-home-week-mobile-daynum {
  color: var(--schedlie-ink);
  font-weight: 700;
}

.dashboard-home-upcoming {
  max-height: 28rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--schedlie-ink) 38%, transparent)
    color-mix(in srgb, var(--schedlie-ink) 7%, transparent);
}

/* At lg+ the Upcoming card is h-100 and sits beside the mini calendar.
   Remove the fixed cap and let the list scroll within the card's natural height. */
@media (min-width: 992px) {
  #schedlie-dash-fragment-upcoming .dashboard-home-widget-collapse-body {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .dashboard-home-upcoming {
    max-height: none;
    flex: 1 1 0;
    min-height: 0;
  }
}

.dashboard-home-upcoming::-webkit-scrollbar {
  width: 10px;
}

.dashboard-home-upcoming::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--schedlie-ink) 7%, transparent);
  border-radius: 999px;
}

.dashboard-home-upcoming::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--schedlie-ink) 38%, transparent);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.dashboard-home-upcoming::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--schedlie-ink) 52%, transparent);
}

.dashboard-page .dashboard-home-upcoming-item {
  border-bottom: 1px solid var(--schedlie-cal-line);
}

.dashboard-page .dashboard-home-upcoming-item:last-child {
  border-bottom: none;
}

.dashboard-cal-et-filter-menu {
  min-width: 16rem;
  max-width: min(100vw - 1.5rem, 22rem);
  max-height: min(70vh, 24rem);
  overflow-y: auto;
  background: var(--schedlie-surface);
  color: var(--schedlie-ink);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.65rem;
}

.dashboard-cal-et-filter-menu .form-check-label {
  color: var(--schedlie-ink);
}

.dashboard-cal-et-filter-menu .text-muted {
  color: var(--schedlie-ink-muted) !important;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-et-filter-menu {
  border-color: rgba(255, 255, 255, 0.12);
}

.dashboard-calendar-sheet {
  border: 1px solid var(--schedlie-cal-line);
  border-radius: 0;
  overflow: hidden;
  background: var(--schedlie-cal-line);
  touch-action: pan-y;
}

.dashboard-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
}

.dashboard-cal-weekday {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--schedlie-cal-weekday-fg);
  background: var(--schedlie-cal-weekday-bg);
  padding: 0.65rem 0.4rem;
  text-align: center;
  border-bottom: 1px solid var(--schedlie-cal-line);
}

.dashboard-cal-cell {
  position: relative;
  background: var(--schedlie-surface);
  min-height: 4.25rem;
  padding: 0.55rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.35rem;
  padding-top: 0.5rem;
}

@media (min-width: 576px) {
  .dashboard-cal-cell {
    min-height: 5.75rem;
    padding: 0.85rem 0.65rem;
    padding-top: 0.95rem;
  }
}

@media (min-width: 992px) {
  .dashboard-cal-cell {
    min-height: 6.5rem;
    padding: 1rem 0.75rem;
    padding-top: 1.1rem;
  }
}

.dashboard-cal-cell--outside-month {
  background: var(--schedlie-cal-outside-month-bg);
}

.dashboard-cal-cell--outside-month .dashboard-cal-daynum {
  color: var(--schedlie-ink-muted);
  font-weight: 500;
}

/* Today: accent outline + light tint — distinct from gray outside-month cells */
.dashboard-cal-cell--today {
  background: var(--schedlie-today-bg);
  box-shadow: inset 0 0 0 1px var(--schedlie-today-ring);
}

.dashboard-cal-cell--today.dashboard-cal-cell--outside-month {
  background: rgba(15, 23, 42, 0.045);
  box-shadow: inset 0 0 0 1px var(--schedlie-today-ring);
}

/* Multiple highlight-day types: nested inset rings come from inline box-shadow */
.dashboard-cal-cell--day-highlight-multi .dashboard-cal-events-full-desktop,
.dashboard-cal-cell--day-highlight-multi .dashboard-cal-events-compact {
  margin-inline: 1px;
}

.dashboard-cal-daynum {
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--schedlie-ink);
  line-height: 1;
}

@media (min-width: 576px) {
  .dashboard-cal-daynum {
    font-size: 1.125rem;
  }
}

@media (min-width: 992px) {
  .dashboard-cal-daynum {
    font-size: 1.2rem;
  }
}

.dashboard-cal-cell--today .dashboard-cal-daynum {
  color: var(--schedlie-ink);
  font-weight: 700;
}

.dashboard-cal-cell-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
}

/* View mode: uses .dashboard-cal-nav-btn; .active = selected layout */
.dashboard-cal-toolbar .dashboard-cal-view-btn.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.dashboard-cal-view-icon {
  display: block;
}

.dashboard-cal-events-full-desktop {
  width: 100%;
  min-height: 0;
}

.dashboard-cal-event-chip {
  display: block;
  font-size: 0.62rem;
  line-height: 1.25;
  padding: 0.15rem 0.35rem;
  border-radius: 0.3rem;
  text-decoration: none;
  color: var(--schedlie-ink);
  background: rgba(15, 23, 42, 0.05);
  border-left: 3px solid rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.dashboard-cal-event-chip--preview {
  pointer-events: none;
  cursor: inherit;
  user-select: none;
}

a.dashboard-cal-event-chip.dashboard-cal-event-chip--preview {
  pointer-events: auto;
  cursor: pointer;
  user-select: auto;
  text-decoration: none;
  color: inherit;
}

a.dashboard-cal-event-chip.dashboard-cal-event-chip--preview:hover,
a.dashboard-cal-event-chip.dashboard-cal-event-chip--preview:focus-visible {
  filter: brightness(0.97);
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
  outline: none;
}

.dashboard-cal-event-chip-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  min-width: 0;
}

.dashboard-cal-event-chip-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}

.dashboard-cal-event-chip-icon svg {
  display: block;
}

.dashboard-cal-event-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  overflow: hidden;
  min-width: 0;
}

.dashboard-cal-event-title {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--schedlie-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.dashboard-cal-event-time {
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--schedlie-ink-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

@media (max-width: 767.98px) {
  .dashboard-cal-cell--selectable {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .dashboard-cal-cell {
    min-height: 3.75rem;
    padding-bottom: 0.45rem;
    align-items: center;
  }
}

.dashboard-cal-cell--day-selected {
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.38);
  border-radius: 0.35rem;
}

.dashboard-cal-cell--today.dashboard-cal-cell--day-selected {
  box-shadow:
    inset 0 0 0 1px var(--schedlie-today-ring),
    inset 0 0 0 3px rgba(0, 0, 0, 0.35);
}

/* Dark calendar cells: default black inset ring disappears — use light ring + faint lift */
:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-cell--day-selected {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.38);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-cell--today.dashboard-cal-cell--day-selected {
  box-shadow:
    inset 0 0 0 1px var(--schedlie-today-ring),
    inset 0 0 0 3px rgba(255, 255, 255, 0.3);
}

body[data-app-scheme="dark"] main.dashboard-page .dashboard-cal-cell--day-selected, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page .dashboard-cal-cell--day-selected {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42);
}

body[data-app-scheme="dark"] main.dashboard-page .dashboard-cal-cell--today.dashboard-cal-cell--day-selected, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page .dashboard-cal-cell--today.dashboard-cal-cell--day-selected {
  box-shadow:
    inset 0 0 0 1px var(--schedlie-today-ring),
    inset 0 0 0 3px rgba(255, 255, 255, 0.34);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] main.dashboard-page .dashboard-cal-cell--day-selected {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42);
  }

  body[data-app-scheme="system"] main.dashboard-page .dashboard-cal-cell--today.dashboard-cal-cell--day-selected {
    box-shadow:
      inset 0 0 0 1px var(--schedlie-today-ring),
      inset 0 0 0 3px rgba(255, 255, 255, 0.34);
  }
}

@media (min-width: 768px) {
  .dashboard-cal-cell--selectable {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
}

.dashboard-cal-event-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
  justify-items: center;
  width: 100%;
}

@media (max-width: 767.98px) {
  .dashboard-cal-events-full-desktop {
    display: none !important;
  }

  .dashboard-cal-event-icons {
    display: grid !important;
    grid-template-columns: repeat(2, 1rem);
    justify-content: center;
    justify-items: center;
    gap: 0.2rem;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .dashboard-calendar-sheet.dashboard-cal-desktop-full .dashboard-cal-events-full-desktop {
    display: flex !important;
  }

  .dashboard-calendar-sheet.dashboard-cal-desktop-full .dashboard-cal-event-icons {
    display: none !important;
  }

  .dashboard-calendar-sheet.dashboard-cal-desktop-compact .dashboard-cal-events-full-desktop {
    display: none !important;
  }

  .dashboard-calendar-sheet.dashboard-cal-desktop-compact .dashboard-cal-event-icons {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dashboard-cal-events-full-desktop .dashboard-cal-event-line {
  white-space: normal;
}

.dashboard-cal-events-full-desktop .dashboard-cal-event-title {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.dashboard-cal-event-icon-ring {
  box-sizing: border-box;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0.22rem;
  border-style: solid;
  border-width: 2px;
  background-color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  cursor: pointer;
  /* color: set inline to accent_color so SVG currentColor strokes stay visible on white */
}

.dashboard-cal-event-icon-ring:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.dashboard-cal-event-icon-ring svg {
  width: 0.72rem;
  height: 0.72rem;
}

@media (max-width: 767.98px) {
  .dashboard-cal-event-icon-ring {
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem;
    min-height: 1rem;
    padding: 0.1rem;
    border-width: 1.5px;
    flex-shrink: 0;
  }

  .dashboard-cal-event-icon-ring svg {
    width: 0.52rem !important;
    height: 0.52rem !important;
  }
}

.dashboard-cal-day-panel {
  scroll-margin-top: 1rem;
  scroll-margin-bottom: 0.75rem;
}

.dashboard-cal-day-panel .dashboard-cal-day-panel-date {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--schedlie-ink);
}

.dashboard-cal-day-panel .dashboard-cal-mobile-list-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.dashboard-cal-day-panel .dashboard-cal-mobile-body .min-w-0 {
  min-width: 0;
}

.dashboard-cal-mobile-event-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.dashboard-cal-mobile-event-time {
  font-size: 0.8rem !important;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.dashboard-cal-mobile-events .dashboard-cal-mobile-event-time {
  margin-bottom: 0.05rem;
}

.dashboard-cal-event-source-link {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.25;
  margin-top: 0.06rem;
  margin-bottom: 0.1rem;
  text-decoration: none !important;
  /* Deliberately softer than time row (.text-muted) */
  color: color-mix(in srgb, var(--schedlie-ink-muted, #64748b) 62%, var(--schedlie-surface, #fff) 38%);
}

.dashboard-cal-event-source-link:hover,
.dashboard-cal-event-source-link:focus-visible {
  text-decoration: none !important;
  color: color-mix(in srgb, var(--schedlie-ink-muted, #64748b) 82%, var(--schedlie-ink, #0f172a) 18%);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-event-source-link {
  color: rgba(255, 255, 255, 0.38);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-event-source-link:hover,
:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-event-source-link:focus-visible {
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.52);
}

/* —— Calendar themes (data-cal-theme on dashboard, event pages, event modal, or .schedlie-cal-theme-preview-root) —— */
/*
 * Light-theme calendars restate surface/ink so global body vars do not bleed when the app shell is dark.
 * Chromatic presets (ocean, rainbow, sunset, desert, retro, forest) set accents; app-dark pairings near the end of this file
 * darken white/neutral areas only while keeping gradients and hue accents.
 */
:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="light"],
div.schedlie-cal-theme-preview-root[data-cal-theme="light"] {
  --schedlie-surface: #fafbfc;
  --schedlie-ink: #0f172a;
  --schedlie-ink-muted: #64748b;
  --schedlie-cal-weekday-bg: #6b7280;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.95);
  --schedlie-cal-outside-month-bg: #f0f2f4;
  --schedlie-today-bg: rgba(15, 23, 42, 0.032);
  --schedlie-today-ring: rgba(15, 23, 42, 0.11);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"],
div.schedlie-cal-theme-preview-root[data-cal-theme="dark"] {
  --schedlie-surface: #1e1e1e;
  --schedlie-ink: #ececec;
  --schedlie-ink-muted: #a3a3a3;
  --schedlie-cal-line: rgba(255, 255, 255, 0.1);
  --schedlie-cal-toolbar-bg: #2a2a2a;
  --schedlie-cal-toolbar-title: #f5f5f5;
  --schedlie-cal-weekday-bg: #3a3a3a;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.92);
  --schedlie-cal-outside-month-bg: #262626;
  --schedlie-today-bg: rgba(255, 255, 255, 0.04);
  --schedlie-today-ring: rgba(255, 255, 255, 0.2);
  --schedlie-day-selected-bg: rgba(129, 140, 248, 0.18);
  --schedlie-day-selected-ring: rgba(255, 255, 255, 0.38);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-toolbar .dashboard-cal-nav-btn,
div.schedlie-cal-theme-preview-root[data-cal-theme="dark"] .dashboard-cal-toolbar .dashboard-cal-nav-btn {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-toolbar .dashboard-cal-nav-btn:hover,
div.schedlie-cal-theme-preview-root[data-cal-theme="dark"] .dashboard-cal-toolbar .dashboard-cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-toolbar .dashboard-cal-nav-btn.dashboard-cal-filter-btn-active,
div.schedlie-cal-theme-preview-root[data-cal-theme="dark"]
  .dashboard-cal-toolbar
  .dashboard-cal-nav-btn.dashboard-cal-filter-btn-active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-toolbar .dashboard-cal-view-btn.active,
div.schedlie-cal-theme-preview-root[data-cal-theme="dark"] .dashboard-cal-toolbar .dashboard-cal-view-btn.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-event-icon-ring {
  background-color: rgba(38, 38, 38, 0.96);
  /* color: from inline accent (same as border) */
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-day-panel {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"],
div.schedlie-cal-theme-preview-root[data-cal-theme="ocean"] {
  --schedlie-surface: #f8fafb;
  --schedlie-ink: #134e4a;
  --schedlie-ink-muted: #5b8a87;
  --schedlie-cal-toolbar-title: #ecfeff;
  --schedlie-cal-weekday-bg: #155e75;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.96);
  --schedlie-cal-outside-month-bg: #eef1f3;
  --schedlie-today-bg: rgba(15, 23, 42, 0.035);
  --schedlie-today-ring: rgba(14, 116, 144, 0.22);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-toolbar,
div.schedlie-cal-theme-preview-root[data-cal-theme="ocean"] .dashboard-cal-toolbar {
  background: linear-gradient(90deg, #0369a1 0%, #0e7490 22%, #14b8a6 50%, #0d9488 78%, #155e75 100%);
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"],
div.schedlie-cal-theme-preview-root[data-cal-theme="rainbow"] {
  --schedlie-surface: #fafbfc;
  --schedlie-ink: #0f172a;
  --schedlie-ink-muted: #64748b;
  --schedlie-cal-toolbar-title: #ffffff;
  --schedlie-cal-weekday-bg: #5b21b6;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.96);
  --schedlie-cal-outside-month-bg: #f0f2f4;
  --schedlie-today-bg: rgba(15, 23, 42, 0.035);
  --schedlie-today-ring: rgba(15, 23, 42, 0.11);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-toolbar,
div.schedlie-cal-theme-preview-root[data-cal-theme="rainbow"] .dashboard-cal-toolbar {
  background: linear-gradient(
    90deg,
    #dc2626 0%,
    #ea580c 11%,
    #ca8a04 22%,
    #16a34a 33%,
    #0d9488 44%,
    #2563eb 55%,
    #7c3aed 66%,
    #c026d3 77%,
    #db2777 88%,
    #e11d48 100%
  );
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"],
div.schedlie-cal-theme-preview-root[data-cal-theme="vibe"] {
  --schedlie-surface: #ffffff;
  --schedlie-ink: #0f172a;
  --schedlie-ink-muted: #64748b;
  --schedlie-cal-toolbar-title: #ffffff;
  --schedlie-cal-weekday-bg: #6d28d9;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.96);
  --schedlie-cal-outside-month-bg: #faf5ff;
  --schedlie-today-bg: rgba(124, 58, 237, 0.1);
  --schedlie-today-ring: rgba(124, 58, 237, 0.6);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-toolbar,
div.schedlie-cal-theme-preview-root[data-cal-theme="vibe"] .dashboard-cal-toolbar {
  background: linear-gradient(90deg, #db2777 0%, #7c3aed 45%, #2563eb 100%);
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-cell--today .dashboard-cal-daynum,
div.schedlie-cal-theme-preview-root[data-cal-theme="vibe"] .dashboard-cal-cell--today .dashboard-cal-daynum {
  color: #6d28d9;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-home-week-dow--today .dashboard-home-week-dow-num,
:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-home-week-mobile-day--today .dashboard-home-week-mobile-daynum {
  color: #6d28d9;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"],
div.schedlie-cal-theme-preview-root[data-cal-theme="sunset"] {
  --schedlie-surface: #fafbfc;
  --schedlie-ink: #334155;
  --schedlie-ink-muted: #64748b;
  --schedlie-cal-toolbar-bg: #6366f1;
  --schedlie-cal-toolbar-title: #ffffff;
  --schedlie-cal-weekday-bg: #4f46e5;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.96);
  --schedlie-cal-outside-month-bg: #f0f2f4;
  --schedlie-today-bg: rgba(15, 23, 42, 0.035);
  --schedlie-today-ring: rgba(15, 23, 42, 0.11);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-toolbar,
div.schedlie-cal-theme-preview-root[data-cal-theme="sunset"] .dashboard-cal-toolbar {
  background: linear-gradient(
    90deg,
    #38bdf8 0%,
    #60a5fa 12%,
    #818cf8 24%,
    #c084fc 38%,
    #f472b6 52%,
    #fb923c 68%,
    #f97316 82%,
    #ea580c 100%
  );
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"],
div.schedlie-cal-theme-preview-root[data-cal-theme="desert"] {
  --schedlie-surface: #fafaf8;
  --schedlie-ink: #713f12;
  --schedlie-ink-muted: #a16207;
  --schedlie-cal-toolbar-bg: #b45309;
  --schedlie-cal-toolbar-title: #fefce8;
  --schedlie-cal-weekday-bg: #92400e;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.96);
  --schedlie-cal-outside-month-bg: #efede9;
  --schedlie-today-bg: rgba(15, 23, 42, 0.035);
  --schedlie-today-ring: rgba(15, 23, 42, 0.11);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"],
div.schedlie-cal-theme-preview-root[data-cal-theme="retro"] {
  --schedlie-surface: #faf9fb;
  --schedlie-ink: #4c1d95;
  --schedlie-ink-muted: #a21caf;
  --schedlie-cal-toolbar-title: #faf5ff;
  --schedlie-cal-weekday-bg: #86198f;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.96);
  --schedlie-cal-outside-month-bg: #efecf2;
  --schedlie-today-bg: rgba(15, 23, 42, 0.035);
  --schedlie-today-ring: rgba(15, 23, 42, 0.11);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-toolbar,
div.schedlie-cal-theme-preview-root[data-cal-theme="retro"] .dashboard-cal-toolbar {
  background: linear-gradient(90deg, #ec4899 0%, #c026d3 38%, #06b6d4 100%);
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"],
div.schedlie-cal-theme-preview-root[data-cal-theme="forest"] {
  --schedlie-surface: #f9faf9;
  --schedlie-ink: #14532d;
  --schedlie-ink-muted: #166534;
  --schedlie-cal-toolbar-bg: #166534;
  --schedlie-cal-toolbar-title: #ecfdf5;
  --schedlie-cal-weekday-bg: #15803d;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.96);
  --schedlie-cal-outside-month-bg: #eef0ee;
  --schedlie-today-bg: rgba(15, 23, 42, 0.035);
  --schedlie-today-ring: rgba(22, 101, 52, 0.25);
}

/* Dashboard sidebar: Bootstrap outline buttons ignore --schedlie-*; theme these with the calendar chrome */
:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-sidebar {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-sidebar-heading {
  color: #ececec;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-sidebar .text-muted {
  color: #a3a3a3 !important;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .btn-outline-dark {
  color: #ececec;
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.06);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .btn-outline-dark:hover {
  color: #121212;
  background-color: #e8e8e8;
  border-color: #e8e8e8;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(255, 255, 255, 0.08);
  color: #a3a3a3;
  border-color: rgba(255, 255, 255, 0.14);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn,
:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-home-widget .dashboard-cal-sidebar-create-btn,
div.schedlie-cal-theme-preview-root[data-cal-theme="dark"] .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn {
  color: #121212;
  background-color: #e8e8e8;
  border-color: #e8e8e8;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn:hover,
:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn:focus-visible,
:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-home-widget .dashboard-cal-sidebar-create-btn:hover,
:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-home-widget .dashboard-cal-sidebar-create-btn:focus-visible,
div.schedlie-cal-theme-preview-root[data-cal-theme="dark"] .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn:hover,
div.schedlie-cal-theme-preview-root[data-cal-theme="dark"] .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn:focus-visible {
  color: #121212;
  background-color: #fff;
  border-color: #fff;
  filter: none;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .dashboard-cal-sidebar .list-group-item {
  background-color: rgba(255, 255, 255, 0.05);
  color: #e8e8e8;
  border-color: rgba(255, 255, 255, 0.1);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar {
  background: #ecfeff;
  border: 1px solid rgba(14, 116, 144, 0.22);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar-heading {
  color: #134e4a;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar .text-muted {
  color: #5b8a87 !important;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .btn-outline-dark {
  color: #115e59;
  border-color: #0d9488;
  background-color: rgba(255, 255, 255, 0.65);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .btn-outline-dark:hover {
  color: #fff;
  background-color: #0d9488;
  border-color: #0d9488;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(13, 148, 136, 0.25);
  color: #5b8a87;
  border-color: rgba(13, 148, 136, 0.35);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar .list-group-item {
  background-color: #fff;
  color: #134e4a;
  border-color: rgba(14, 116, 144, 0.25);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar {
  background: #f8fafc;
  border: 1px solid rgba(79, 70, 229, 0.18);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar-heading {
  color: #3730a3;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar .text-muted {
  color: #6366f1 !important;
  opacity: 0.85;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .btn-outline-dark {
  color: #4338ca;
  border-color: #6366f1;
  background-color: rgba(255, 255, 255, 0.9);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .btn-outline-dark:hover {
  color: #fff;
  background-color: #4f46e5;
  border-color: #4f46e5;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.32);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar .list-group-item {
  background-color: #fff;
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.22);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar {
  background: #faf5ff;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar-heading {
  color: #4c1d95;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar .text-muted {
  color: #7c3aed !important;
  opacity: 0.85;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .btn-outline-dark {
  color: #5b21b6;
  border-color: #7c3aed;
  background-color: rgba(255, 255, 255, 0.85);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .btn-outline-dark:hover {
  color: #fff;
  background-color: #7c3aed;
  border-color: #7c3aed;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(124, 58, 237, 0.15);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.35);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar .list-group-item {
  background-color: #fff;
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.28);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar {
  background: #f8fafc;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar-heading {
  color: #4338ca;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar .text-muted {
  color: #64748b !important;
  opacity: 0.92;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .btn-outline-dark {
  color: #4338ca;
  border-color: #6366f1;
  background-color: rgba(255, 255, 255, 0.9);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .btn-outline-dark:hover {
  color: #fff;
  background-color: #4f46e5;
  border-color: #4f46e5;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.32);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar .list-group-item {
  background-color: #fff;
  color: #334155;
  border-color: rgba(99, 102, 241, 0.2);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar {
  background: #fefce8;
  border: 1px solid rgba(180, 83, 9, 0.28);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar-heading {
  color: #78350f;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar .text-muted {
  color: #a16207 !important;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .btn-outline-dark {
  color: #713f12;
  border-color: #ca8a04;
  background-color: rgba(255, 255, 255, 0.8);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .btn-outline-dark:hover {
  color: #fff;
  background-color: #b45309;
  border-color: #b45309;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(180, 83, 9, 0.18);
  color: #a16207;
  border-color: rgba(180, 83, 9, 0.35);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar .list-group-item {
  background-color: #fff;
  color: #713f12;
  border-color: rgba(180, 83, 9, 0.28);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar {
  background: #faf5ff;
  border: 1px solid rgba(168, 85, 247, 0.28);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar-heading {
  color: #6b21a8;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar .text-muted {
  color: #a21caf !important;
  opacity: 0.9;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .btn-outline-dark {
  color: #86198f;
  border-color: #c026d3;
  background-color: rgba(255, 255, 255, 0.85);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .btn-outline-dark:hover {
  color: #fff;
  background-color: #c026d3;
  border-color: #c026d3;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(192, 38, 211, 0.15);
  color: #a855f7;
  border-color: rgba(192, 38, 211, 0.35);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar .list-group-item {
  background-color: #fff;
  color: #6b21a8;
  border-color: rgba(168, 85, 247, 0.32);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar {
  background: #ecfdf5;
  border: 1px solid rgba(22, 163, 74, 0.28);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar-heading {
  color: #14532d;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar .text-muted {
  color: #15803d !important;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .btn-outline-dark {
  color: #166534;
  border-color: #22c55e;
  background-color: rgba(255, 255, 255, 0.85);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .btn-outline-dark:hover {
  color: #fff;
  background-color: #16a34a;
  border-color: #16a34a;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(22, 163, 74, 0.15);
  color: #4ade80;
  border-color: rgba(22, 163, 74, 0.35);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar .list-group-item {
  background-color: #fff;
  color: #14532d;
  border-color: rgba(22, 163, 74, 0.28);
}

/*
 * Sidebar filter accordion: typography + surfaces follow dashboard calendar theme
 * (`data-cal-theme` / --schedlie-* on main.dashboard-page), not global Bootstrap body colors.
 */
main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-filter-form {
  font-size: 0.8125rem;
  line-height: 1.4;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-heading,
main.dashboard-page .dashboard-cal-sidebar .dashboard-home-widget-collapse-heading {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--schedlie-ink);
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-hint {
  font-size: 0.75rem;
  line-height: 1.35;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-accordion {
  background: transparent !important;
  border-color: var(--schedlie-cal-line) !important;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-accordion .accordion-item.dashboard-cal-sidebar-item {
  min-width: 0;
  background: transparent;
}

/* Narrow xl sidebar: allow flex children to shrink so text-truncate ellipsis works on long calendar names */
main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-accordion .accordion-header {
  min-width: 0;
  max-width: 100%;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-strip {
  background: color-mix(in srgb, var(--schedlie-ink) 6%, var(--schedlie-surface));
  border-color: var(--schedlie-cal-line) !important;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-btn.accordion-button {
  width: 100% !important;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 500;
  background-color: color-mix(in srgb, var(--schedlie-ink) 4%, var(--schedlie-surface));
  color: var(--schedlie-ink);
  border: 0;
  box-shadow: none !important;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-btn.accordion-button.collapsed {
  background-color: color-mix(in srgb, var(--schedlie-ink) 4%, var(--schedlie-surface));
  color: var(--schedlie-ink);
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-btn.accordion-button:not(.collapsed) {
  background-color: color-mix(in srgb, var(--schedlie-ink) 9%, var(--schedlie-surface));
  color: var(--schedlie-ink);
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-btn.accordion-button:hover {
  background-color: color-mix(in srgb, var(--schedlie-ink) 11%, var(--schedlie-surface));
  color: var(--schedlie-ink);
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-btn.accordion-button:focus,
main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-btn.accordion-button:focus-visible {
  box-shadow: none !important;
  color: var(--schedlie-ink);
  outline: 2px solid color-mix(in srgb, var(--schedlie-ink) 24%, transparent);
  outline-offset: -2px;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-btn.accordion-button::after {
  flex-shrink: 0;
  width: 0.85rem;
  height: 0.85rem;
  background-color: var(--schedlie-ink-muted);
  background-image: none;
  opacity: 1;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-btn.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-title {
  font-size: 0.8125rem;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-sub {
  font-size: 0.7rem;
  margin-top: 0.05rem;
  color: var(--schedlie-ink-muted);
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-panel {
  background: color-mix(in srgb, var(--schedlie-ink) 5%, var(--schedlie-surface)) !important;
  color: var(--schedlie-ink);
  border-top: 1px solid var(--schedlie-cal-line);
}

/* Settings / admin sidebars: calendar-theme accordion (same as dashboard filter sidebar) */
.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-accordion {
  background: transparent !important;
  border-color: var(--schedlie-cal-line) !important;
}

.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-accordion .accordion-item.dashboard-cal-sidebar-item {
  min-width: 0;
  background: transparent;
}

.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-accordion .accordion-header {
  min-width: 0;
  max-width: 100%;
}

.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-acc-btn.accordion-button {
  width: 100% !important;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 500;
  background-color: color-mix(in srgb, var(--schedlie-ink) 4%, var(--schedlie-surface));
  color: var(--schedlie-ink);
  border: 0;
  box-shadow: none !important;
}

.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-acc-btn.accordion-button.collapsed {
  background-color: color-mix(in srgb, var(--schedlie-ink) 4%, var(--schedlie-surface));
  color: var(--schedlie-ink);
}

.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-acc-btn.accordion-button:not(.collapsed) {
  background-color: color-mix(in srgb, var(--schedlie-ink) 9%, var(--schedlie-surface));
  color: var(--schedlie-ink);
}

.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-acc-btn.accordion-button:hover {
  background-color: color-mix(in srgb, var(--schedlie-ink) 11%, var(--schedlie-surface));
  color: var(--schedlie-ink);
}

.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-acc-btn.accordion-button:focus,
.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-acc-btn.accordion-button:focus-visible {
  box-shadow: none !important;
  color: var(--schedlie-ink);
  outline: 2px solid color-mix(in srgb, var(--schedlie-ink) 24%, transparent);
  outline-offset: -2px;
}

.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-acc-btn.accordion-button::after {
  flex-shrink: 0;
  width: 0.85rem;
  height: 0.85rem;
  background-color: var(--schedlie-ink-muted);
  background-image: none;
  opacity: 1;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-acc-btn.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-acc-panel {
  background: color-mix(in srgb, var(--schedlie-ink) 5%, var(--schedlie-surface)) !important;
  color: var(--schedlie-ink);
  border-top: 1px solid var(--schedlie-cal-line);
}

.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-accordion .dashboard-cal-sidebar-item + .dashboard-cal-sidebar-item {
  border-top: 1px solid var(--schedlie-cal-line) !important;
}

.schedlie-settings-sidebar-theme-root .dashboard-cal-sidebar-acc-panel .nav.flex-column {
  gap: 0.125rem !important;
}

/* Settings sidebars: card + nav pills follow calendar theme (not global app chrome) */
.schedlie-settings-sidebar-theme-root[data-cal-theme] {
  --schedlie-settings-sidebar-line: var(
    --schedlie-cal-line,
    color-mix(in srgb, var(--schedlie-ink) 10%, transparent)
  );
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .account-nav.card,
.schedlie-settings-sidebar-theme-root[data-cal-theme] .schedlie-admin-nav.card {
  background-color: var(--schedlie-surface);
  border-color: var(--schedlie-settings-sidebar-line);
  color: var(--schedlie-ink);
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .schedlie-settings-nav-header {
  border-bottom-color: var(--schedlie-settings-sidebar-line) !important;
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .schedlie-text-ink {
  color: var(--schedlie-ink) !important;
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .schedlie-text-muted-ink,
.schedlie-settings-sidebar-theme-root[data-cal-theme] .text-muted {
  color: var(--schedlie-ink-muted) !important;
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .account-nav .nav-pills .nav-link,
.schedlie-settings-sidebar-theme-root[data-cal-theme] .schedlie-admin-nav .nav-pills .nav-link {
  color: var(--schedlie-ink-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.625rem;
  border-radius: 0.375rem;
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .account-nav .nav-pills .nav-link:hover,
.schedlie-settings-sidebar-theme-root[data-cal-theme] .schedlie-admin-nav .nav-pills .nav-link:hover {
  color: var(--schedlie-ink);
  background-color: color-mix(in srgb, var(--schedlie-ink) 6%, var(--schedlie-surface));
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .account-nav .nav-pills .nav-link:focus-visible,
.schedlie-settings-sidebar-theme-root[data-cal-theme] .schedlie-admin-nav .nav-pills .nav-link:focus-visible {
  color: var(--schedlie-ink);
  outline: 2px solid color-mix(in srgb, var(--schedlie-ink) 24%, transparent);
  outline-offset: 2px;
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .account-nav .nav-pills .nav-link.active,
.schedlie-settings-sidebar-theme-root[data-cal-theme] .schedlie-admin-nav .nav-pills .nav-link.active {
  color: var(--schedlie-ink);
  background-color: color-mix(in srgb, var(--schedlie-ink) 12%, var(--schedlie-surface));
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .account-nav .nav-pills .nav-link.active:hover,
.schedlie-settings-sidebar-theme-root[data-cal-theme] .schedlie-admin-nav .nav-pills .nav-link.active:hover {
  color: var(--schedlie-ink);
  background-color: color-mix(in srgb, var(--schedlie-ink) 15%, var(--schedlie-surface));
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .account-nav-profile-sub {
  border-left-color: var(--schedlie-settings-sidebar-line);
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .account-nav-profile-sub .nav-link {
  color: var(--schedlie-ink-muted);
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .account-nav-profile-sub .nav-link:hover {
  color: var(--schedlie-ink);
  background-color: color-mix(in srgb, var(--schedlie-ink) 6%, var(--schedlie-surface));
}

.schedlie-settings-sidebar-theme-root[data-cal-theme] .dashboard-cal-sidebar-accordion .dashboard-cal-sidebar-item + .dashboard-cal-sidebar-item {
  border-top-color: var(--schedlie-settings-sidebar-line) !important;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-filter-form .form-check-input {
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.12rem;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-filter-form .form-check-label {
  font-size: 0.75rem;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-filter-type-icon svg {
  width: 0.85rem;
  height: 0.85rem;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-filter-form .btn-link {
  font-size: 0.75rem;
  color: var(--schedlie-ink-muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-filter-form .btn-link:hover {
  color: var(--schedlie-ink);
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-actions .btn-sm {
  font-size: 0.75rem;
  padding: 0.28rem 0.55rem;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn,
main.dashboard-page .dashboard-home-widget .dashboard-cal-sidebar-create-btn,
div.schedlie-cal-theme-preview-root .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn {
  color: var(--schedlie-cal-toolbar-title);
  background-color: var(--schedlie-cal-toolbar-bg);
  border-color: var(--schedlie-cal-toolbar-bg);
  font-weight: 600;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn:hover,
main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn:focus-visible,
main.dashboard-page .dashboard-home-widget .dashboard-cal-sidebar-create-btn:hover,
main.dashboard-page .dashboard-home-widget .dashboard-cal-sidebar-create-btn:focus-visible,
div.schedlie-cal-theme-preview-root .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn:hover,
div.schedlie-cal-theme-preview-root .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn:focus-visible {
  color: var(--schedlie-cal-toolbar-title);
  background-color: var(--schedlie-cal-toolbar-bg);
  border-color: var(--schedlie-cal-toolbar-bg);
  filter: brightness(1.12);
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn:active,
main.dashboard-page .dashboard-home-widget .dashboard-cal-sidebar-create-btn:active,
div.schedlie-cal-theme-preview-root .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn:active {
  filter: brightness(0.92);
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn:disabled,
main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn.disabled,
main.dashboard-page .dashboard-home-widget .dashboard-cal-sidebar-create-btn:disabled,
main.dashboard-page .dashboard-home-widget .dashboard-cal-sidebar-create-btn.disabled,
div.schedlie-cal-theme-preview-root .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn:disabled,
div.schedlie-cal-theme-preview-root .dashboard-cal-sidebar .dashboard-cal-sidebar-create-btn.disabled {
  color: var(--schedlie-cal-toolbar-title);
  background-color: var(--schedlie-cal-toolbar-bg);
  border-color: var(--schedlie-cal-toolbar-bg);
  filter: none;
  opacity: 0.55;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-view-cal {
  font-size: 0.75rem;
  color: var(--schedlie-ink-muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-view-cal:hover {
  color: var(--schedlie-ink);
}

#groupCalEventTypeFilterAside .group-cal-et-filter-accordion .accordion-button.dashboard-cal-sidebar-acc-btn {
  background-color: color-mix(in srgb, var(--schedlie-ink) 4%, var(--schedlie-surface));
  color: var(--schedlie-ink);
  box-shadow: none !important;
}

#groupCalEventTypeFilterAside .group-cal-et-filter-accordion .accordion-button.dashboard-cal-sidebar-acc-btn:not(.collapsed) {
  background-color: color-mix(in srgb, var(--schedlie-ink) 9%, var(--schedlie-surface));
}

#groupCalEventTypeFilterAside .group-cal-et-filter-accordion .accordion-button .dashboard-cal-sidebar-heading {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--schedlie-ink);
}

#dashboardCalSidebarAside .dashboard-cal-sidebar-open-cal,
#groupCalEventTypeFilterAside .dashboard-cal-sidebar-open-cal,
main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-open-cal {
  color: var(--schedlie-ink-muted);
  border-color: var(--schedlie-cal-line) !important;
  min-width: 2.25rem;
  text-decoration: none;
}

#dashboardCalSidebarAside .dashboard-cal-sidebar-open-cal:hover,
#dashboardCalSidebarAside .dashboard-cal-sidebar-open-cal:focus-visible,
#groupCalEventTypeFilterAside .dashboard-cal-sidebar-open-cal:hover,
#groupCalEventTypeFilterAside .dashboard-cal-sidebar-open-cal:focus-visible,
main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-open-cal:hover,
main.dashboard-page .dashboard-cal-sidebar .dashboard-cal-sidebar-open-cal:focus-visible {
  color: var(--schedlie-ink);
  background: color-mix(in srgb, var(--schedlie-ink) 8%, transparent);
}

div.schedlie-cal-theme-preview-root .dashboard-cal-sidebar .dashboard-cal-sidebar-filter-form {
  font-size: 0.8125rem;
  line-height: 1.4;
}

div.schedlie-cal-theme-preview-root .dashboard-cal-sidebar .dashboard-cal-sidebar-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--schedlie-ink);
}

div.schedlie-cal-theme-preview-root .dashboard-cal-sidebar .dashboard-cal-sidebar-accordion .accordion-header {
  min-width: 0;
  max-width: 100%;
}

div.schedlie-cal-theme-preview-root .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-btn.accordion-button {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  width: 100% !important;
  overflow: hidden;
  color: var(--schedlie-ink);
  background-color: color-mix(in srgb, var(--schedlie-ink) 4%, var(--schedlie-surface));
}

div.schedlie-cal-theme-preview-root .dashboard-cal-sidebar .dashboard-cal-sidebar-acc-panel {
  color: var(--schedlie-ink);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="light"] .dashboard-cal-sidebar {
  border: 1px solid var(--schedlie-cal-line);
}

/* Live dashboard look preview (calendar settings) */
.schedlie-cal-theme-preview-root .dashboard-cal-cell {
  min-height: 2.35rem;
  padding: 0.35rem 0.4rem;
  padding-top: 0.4rem;
}

.schedlie-cal-theme-preview-root .dashboard-cal-weekday {
  padding: 0.45rem 0.2rem;
  font-size: 0.6rem;
}

@media (max-width: 767.98px) {
  .schedlie-cal-theme-preview-root .schedlie-cal-theme-preview-card.dashboard-main-card {
    background: var(--schedlie-surface) !important;
  }
}

/* Calendar settings: theme presets — btn-check must be input then label (sibling), not nested */
.cal-theme-picker .cal-theme-option {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem !important;
  min-width: 5.75rem;
  text-align: center;
  line-height: 1.2;
}

.cal-theme-picker.cal-theme-picker--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem 0.45rem;
  max-width: 26.5rem;
  margin-left: auto;
  margin-right: auto;
  justify-items: stretch;
}

.cal-theme-picker.cal-theme-picker--grid .cal-theme-option {
  min-width: 0;
  width: 100%;
}

.cal-theme-app-preview-block {
  max-width: 26.5rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 575.98px) {
  .cal-theme-picker.cal-theme-picker--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 15rem;
  }
}

.cal-theme-preview {
  display: block;
  height: 1.85rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cal-theme-preview--light {
  /* Toolbar grey + weekday strip + white cells */
  background: linear-gradient(
    180deg,
    #4f4f4f 0%,
    #4f4f4f 34%,
    #8e8e8e 34%,
    #8e8e8e 48%,
    #ffffff 48%,
    #ffffff 62%,
    #eceff3 62%
  );
}

.cal-theme-preview--dark {
  background: linear-gradient(
    180deg,
    #2a2a2a 0%,
    #2a2a2a 32%,
    #404040 32%,
    #404040 46%,
    #1e1e1e 46%
  );
}

.cal-theme-preview--ocean {
  background: linear-gradient(
    180deg,
    #0369a1 0%,
    #14b8a6 28%,
    #155e75 28%,
    #155e75 40%,
    #155e75 46%,
    #f8fafb 46%,
    #eef1f3 100%
  );
}

.cal-theme-preview--rainbow {
  background: linear-gradient(
    180deg,
    #db2777 0%,
    #2563eb 33%,
    #16a34a 66%,
    #5b21b6 66%,
    #5b21b6 78%,
    #fafbfc 78%,
    #f0f2f4 100%
  );
  border-color: rgba(0, 0, 0, 0.18);
}

.cal-theme-preview--vibe {
  background: linear-gradient(90deg, #db2777 0%, #7c3aed 50%, #2563eb 100%);
  border-color: rgba(0, 0, 0, 0.18);
}

.cal-theme-preview--sunset {
  background: linear-gradient(
    180deg,
    #38bdf8 0%,
    #f97316 28%,
    #818cf8 56%,
    #4f46e5 56%,
    #4f46e5 68%,
    #fafbfc 68%,
    #f0f2f4 100%
  );
}

.cal-theme-preview--desert {
  background: linear-gradient(
    180deg,
    #b45309 0%,
    #b45309 32%,
    #92400e 32%,
    #92400e 46%,
    #fafaf8 46%,
    #efede9 100%
  );
}

.cal-theme-preview--retro {
  background: linear-gradient(90deg, #ec4899 0%, #c026d3 45%, #06b6d4 100%);
  border-color: rgba(0, 0, 0, 0.18);
}

.cal-theme-preview--forest {
  background: linear-gradient(
    180deg,
    #166534 0%,
    #166534 34%,
    #15803d 34%,
    #15803d 46%,
    #f9faf9 46%,
    #eef0ee 100%
  );
}

.cal-theme-label {
  font-size: 0.8rem;
  font-weight: 600;
}

.cal-theme-picker .btn-check:checked + .cal-theme-option {
  border-color: var(--schedlie-ink);
  background-color: rgba(15, 23, 42, 0.06);
  color: var(--schedlie-ink);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.18);
}

.cal-theme-picker .btn-check:focus-visible + .cal-theme-option {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.35);
}

.calendar-settings-type-table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--schedlie-ink-muted);
}

.schedlie-settings-mini-label {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

/* Group members (admin) — keep role select compact beside Update/Remove */
#manage-members-card .schedlie-member-role-select {
  width: auto;
  min-width: 7rem;
  max-width: 100%;
}

#manage-members-card .schedlie-member-admin-profile-link {
  text-decoration: none;
}

#manage-members-card .schedlie-member-admin-profile-link:hover {
  text-decoration: underline;
}

#manage-members-card .schedlie-member-row-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 2.25rem;
  min-height: 2.25rem;
}

/* Primary UI text — use instead of Bootstrap .text-body when data-app-scheme drives colours (see nav dropdown comment). */
.schedlie-text-ink {
  color: var(--schedlie-ink);
}

.schedlie-text-muted {
  color: var(--schedlie-ink-muted);
}

/* Shared calendar admin — member questions accordion (Schedlie light/dark tokens, not raw Bootstrap grays) */
.schedlie-admin-cmpf-accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0.5rem;
  --bs-accordion-inner-border-radius: 0.5rem;
  --bs-accordion-btn-padding-x: 1.25rem;
  --bs-accordion-btn-padding-y: 1rem;
  --bs-accordion-btn-color: var(--schedlie-ink);
  --bs-accordion-btn-bg: var(--schedlie-surface);
  --bs-accordion-btn-active-color: var(--schedlie-ink);
  --bs-accordion-btn-active-bg: var(--schedlie-surface);
  --bs-accordion-bg: var(--schedlie-surface);
  --bs-accordion-active-bg: var(--schedlie-surface);
  --bs-accordion-active-color: var(--schedlie-ink);
  --bs-accordion-border-color: var(--bs-border-color);
  --bs-accordion-btn-focus-border-color: var(--bs-border-color);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem var(--schedlie-form-focus-ring);
}

.schedlie-admin-cmpf-accordion .schedlie-admin-cmpf-accordion-item.accordion-item {
  background-color: var(--schedlie-surface);
  border: 1px solid var(--bs-border-color);
}

.schedlie-admin-cmpf-accordion .accordion-button {
  background-color: var(--schedlie-surface);
  color: var(--schedlie-ink);
  box-shadow: none;
}

.schedlie-admin-cmpf-accordion .accordion-button:not(.collapsed) {
  color: var(--schedlie-ink);
  background-color: var(--schedlie-surface);
  box-shadow: inset 0 -1px 0 var(--bs-border-color);
}

.schedlie-admin-cmpf-accordion .accordion-button.collapsed {
  box-shadow: none;
}

.schedlie-admin-cmpf-accordion .schedlie-admin-cmpf-accordion-body {
  background-color: var(--schedlie-page-bg);
  border-top: 1px solid var(--bs-border-color);
}

/* Accordion chevron: Bootstrap SVG is tuned for light backgrounds */
body[data-app-scheme="dark"] .schedlie-admin-cmpf-accordion .accordion-button::after,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-admin-cmpf-accordion .accordion-button::after {
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-admin-cmpf-accordion .accordion-button::after {
    filter: brightness(0) invert(1);
    opacity: 0.88;
  }
}

/* Calendar name settings — member profile modal: scroll long form (mobile fullscreen + tall desktop) */
.schedlie-shared-member-profile-modal .schedlie-shared-member-profile-modal__form {
  min-height: 0;
  flex: 1 1 auto;
}

.schedlie-shared-member-profile-modal .modal-body {
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
  .schedlie-shared-member-profile-modal .modal-dialog {
    height: 100%;
    margin: 0;
    max-height: none;
  }

  .schedlie-shared-member-profile-modal .modal-content {
    max-height: 100vh;
    max-height: 100dvh;
  }
}

@media (min-width: 576px) {
  .schedlie-shared-member-profile-modal .modal-dialog.modal-xl {
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
  }

  .schedlie-shared-member-profile-modal .modal-dialog.modal-xl .modal-content {
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
  }
}

/* Event-type icon/colour settings — Bootstrap row grid (replaces table layout) */
.schedlie-etype-icon-grid__head > [class*="col"] {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--schedlie-ink-muted);
}

.schedlie-etype-icon-grid__item + .schedlie-etype-icon-grid__item {
  border-top: 0;
}

@media (min-width: 768px) {
  .schedlie-etype-icon-grid__row {
    flex-wrap: nowrap;
  }

  .schedlie-etype-icon-grid__controls-bundle,
  .schedlie-etype-icon-grid__controls-inner {
    display: contents;
  }

  .schedlie-etype-icon-grid__col-icon,
  .schedlie-etype-icon-grid__col-colour {
    width: 5rem;
    min-width: 5rem;
  }

  .schedlie-etype-icon-grid__col-highlight {
    width: 6.5rem;
    min-width: 6.5rem;
  }

  .schedlie-etype-icon-grid__col-preview {
    min-width: 9rem;
  }

  .schedlie-etype-icon-grid__col-actions {
    width: 3.5rem;
    min-width: 3.5rem;
  }

  .schedlie-etype-icon-grid--actions-wide .schedlie-etype-icon-grid__col-actions {
    width: 4.5rem;
    min-width: 4.5rem;
  }
}

.schedlie-etype-icon-grid .schedlie-etype-label-input {
  width: 100%;
  min-width: 0;
}

.schedlie-etype-icon-grid .schedlie-etype-preview-label {
  max-width: none;
  white-space: normal;
  word-break: break-word;
}

.schedlie-etype-icon-grid .calendar-settings-day-preview-wrap {
  min-width: 0;
}

.schedlie-etype-icon-grid .cal-icon-picker-trigger,
.schedlie-etype-icon-grid .cal-accent-picker-trigger {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.schedlie-etype-icon-grid__col-tight {
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedlie-etype-icon-grid__preview-below .calendar-settings-day-preview-wrap {
  width: 100%;
}

.schedlie-etype-icon-grid .schedlie-etype-row--pending-delete {
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

@media (max-width: 767.98px) {
  .schedlie-etype-icon-grid__col-type {
    min-width: 0;
  }

  .schedlie-etype-icon-grid__controls-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    width: 100%;
  }

  .schedlie-etype-icon-grid__col-tight .cal-icon-picker-trigger,
  .schedlie-etype-icon-grid__col-tight .cal-accent-picker-trigger {
    min-width: 2.15rem;
    min-height: 2.15rem;
    padding: 0.1rem;
  }

  .schedlie-etype-icon-grid__col-tight .cal-accent-trigger-swatch {
    width: 1.35rem;
    height: 1.35rem;
  }

  .schedlie-etype-icon-grid__col-tight .schedlie-rocker-field {
    transform: scale(0.85);
    transform-origin: center;
  }

  .schedlie-etype-icon-grid__col-actions .btn {
    padding: 0.2rem;
  }

  .schedlie-etype-icon-grid__preview-below .calendar-settings-chip-preview {
    width: 100%;
    min-width: 0;
  }
}

/* Preview chip always on its own row below controls (wizard / narrow layouts) */
.schedlie-etype-icon-grid--preview-stacked .schedlie-etype-icon-grid__col-preview {
  display: none !important;
}

.schedlie-etype-icon-grid--preview-stacked .schedlie-etype-icon-grid__preview-below {
  display: flex;
}

.schedlie-etype-icon-grid--preview-stacked .schedlie-etype-icon-grid__preview-below .calendar-settings-chip-preview {
  width: 100%;
  min-width: 0;
}

.cal-icon-picker-trigger {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.cal-icon-picker-trigger:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.cal-icon-trigger-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.cal-icon-trigger-svg svg {
  width: 1.35rem;
  height: 1.35rem;
}

.cal-icon-picker-dialog {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.cal-icon-picker-modal .modal-header {
  padding: 0.75rem 1rem;
  justify-content: flex-end;
}

.cal-icon-picker-modal .modal-body {
  padding: 0 1rem 1rem;
}

.cal-icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 2.5rem);
  gap: 0.4rem;
  justify-content: center;
  max-width: 100%;
}

.cal-icon-picker-option {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  line-height: 0;
  border: 1px solid color-mix(in srgb, var(--schedlie-ink) 14%, transparent);
  background-color: color-mix(in srgb, var(--schedlie-ink) 4%, var(--schedlie-surface, #fff));
  color: var(--schedlie-ink-muted);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease, transform 0.12s ease, color 0.12s ease;
}

.cal-icon-picker-option:hover {
  background-color: color-mix(in srgb, var(--schedlie-ink) 8%, var(--schedlie-surface, #fff));
  border-color: color-mix(in srgb, var(--schedlie-ink) 22%, transparent);
  transform: scale(1.05);
}

.cal-icon-picker-option.is-selected {
  border-color: var(--schedlie-accent) !important;
  background-color: color-mix(in srgb, var(--schedlie-accent) 14%, var(--schedlie-surface, #fff)) !important;
  color: var(--schedlie-accent);
  transform: scale(1.02);
}

body[data-app-scheme="dark"] .cal-icon-picker-option,
body[data-schedlie-preview-app-scheme="dark"] .cal-icon-picker-option {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--schedlie-ink-muted, #94a3b8);
}

body[data-app-scheme="dark"] .cal-icon-picker-option:hover,
body[data-schedlie-preview-app-scheme="dark"] .cal-icon-picker-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

body[data-app-scheme="dark"] .cal-icon-picker-option.is-selected,
body[data-schedlie-preview-app-scheme="dark"] .cal-icon-picker-option.is-selected {
  background-color: color-mix(in srgb, var(--schedlie-accent) 22%, transparent) !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .cal-icon-picker-option {
    border-color: rgba(255, 255, 255, 0.14);
    background-color: rgba(255, 255, 255, 0.05);
  }

  body[data-app-scheme="system"] .cal-icon-picker-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
  }
}

.cal-icon-picker-modal-svg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-icon-picker-modal-svg svg {
  width: 1.35rem;
  height: 1.35rem;
}

.cal-accent-cell {
  vertical-align: middle;
}

.cal-accent-picker-trigger {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}

.cal-accent-picker-trigger:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.cal-accent-trigger-swatch {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-color: rgba(15, 23, 42, 0.18) !important;
}

.cal-accent-picker-dialog {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.cal-accent-picker-modal .modal-header {
  padding: 0.75rem 1rem;
  justify-content: flex-end;
}

.cal-accent-picker-modal .modal-body {
  padding: 0 1rem 1rem;
}

.cal-accent-swatches--modal {
  display: grid;
  grid-template-columns: repeat(6, 2.5rem);
  gap: 0.35rem;
  justify-content: center;
  max-width: 100%;
}

.cal-accent-swatch {
  width: 100%;
  aspect-ratio: 1;
  min-height: 2.5rem;
  min-width: 0;
  padding: 0;
  border: 2px solid rgba(15, 23, 42, 0.14);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.cal-accent-swatch:hover {
  transform: scale(1.06);
}

.cal-accent-swatch.is-selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--schedlie-accent, #0d6efd);
  border-color: rgba(15, 23, 42, 0.35);
}

.cal-accent-swatch:focus-visible {
  outline: 2px solid var(--schedlie-accent, #0d6efd);
  outline-offset: 2px;
}

.event-form-type-dropdown .event-form-type-trigger-btn.btn {
  --bs-btn-bg: var(--schedlie-surface, #ffffff);
  --bs-btn-color: var(--schedlie-ink, #0f172a);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: rgba(15, 23, 42, 0.06);
  --bs-btn-hover-color: var(--schedlie-ink, #0f172a);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: rgba(15, 23, 42, 0.1);
  --bs-btn-active-color: var(--schedlie-ink, #0f172a);
  --bs-btn-active-border-color: transparent;
  background-color: var(--schedlie-surface, #ffffff);
  color: var(--schedlie-ink, #0f172a);
  border-color: transparent;
}

.event-form-type-dropdown .event-form-type-trigger-btn.btn:hover {
  background-color: rgba(15, 23, 42, 0.06);
  color: var(--schedlie-ink, #0f172a);
}

.event-form-type-dropdown .event-form-type-trigger-btn.btn:active {
  background-color: rgba(15, 23, 42, 0.1);
  color: var(--schedlie-ink, #0f172a);
}

.event-form-type-dropdown .event-form-type-trigger-btn.btn:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.35);
}

/* Dark: default = card/surface. Modal, schedlie-event-standalone (event-new/edit full page) = page bg. */
body[data-app-scheme="dark"] .event-form-type-dropdown .event-form-type-trigger-btn.btn,
body[data-schedlie-preview-app-scheme="dark"] .event-form-type-dropdown .event-form-type-trigger-btn.btn {
  --bs-btn-bg: var(--schedlie-surface, #1e1e1e);
  --bs-btn-color: var(--schedlie-ink, #ececec);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-hover-color: var(--schedlie-ink, #ececec);
  --bs-btn-active-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-active-color: var(--schedlie-ink, #ececec);
  background-color: var(--schedlie-surface, #1e1e1e);
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .event-form-type-dropdown .event-form-type-trigger-btn.btn:hover,
body[data-schedlie-preview-app-scheme="dark"] .event-form-type-dropdown .event-form-type-trigger-btn.btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .event-form-type-dropdown .event-form-type-trigger-btn.btn:active,
body[data-schedlie-preview-app-scheme="dark"] .event-form-type-dropdown .event-form-type-trigger-btn.btn:active {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .event-form-type-dropdown .event-form-type-trigger-btn.btn:focus-visible,
body[data-schedlie-preview-app-scheme="dark"] .event-form-type-dropdown .event-form-type-trigger-btn.btn:focus-visible {
  box-shadow: 0 0 0 0.2rem var(--schedlie-form-focus-ring, rgba(255, 255, 255, 0.22));
}

/* Modal content uses page background (#121212), not the elevated card surface. */
body[data-app-scheme="dark"] .schedlie-event-modal .event-form-type-dropdown .event-form-type-trigger-btn.btn,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-modal .event-form-type-dropdown .event-form-type-trigger-btn.btn {
  --bs-btn-bg: var(--schedlie-page-bg, #121212);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-hover-color: var(--schedlie-ink, #ececec);
  --bs-btn-active-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-active-color: var(--schedlie-ink, #ececec);
  background-color: var(--schedlie-page-bg, #121212);
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .schedlie-event-modal .event-form-type-dropdown .event-form-type-trigger-btn.btn:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-modal .event-form-type-dropdown .event-form-type-trigger-btn.btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .schedlie-event-modal .event-form-type-dropdown .event-form-type-trigger-btn.btn:active,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-modal .event-form-type-dropdown .event-form-type-trigger-btn.btn:active {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .schedlie-event-modal .event-form-type-dropdown .event-form-type-trigger-btn.btn:focus-visible,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-modal .event-form-type-dropdown .event-form-type-trigger-btn.btn:focus-visible {
  box-shadow: 0 0 0 0.2rem var(--schedlie-form-focus-ring, rgba(255, 255, 255, 0.22));
}

/* Full-page event-new / event-edit: type control matches body (#121212), not the card surface. */
body[data-app-scheme="dark"] .schedlie-event-standalone .event-form-type-dropdown .event-form-type-trigger-btn.btn,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-standalone .event-form-type-dropdown .event-form-type-trigger-btn.btn {
  --bs-btn-bg: var(--schedlie-page-bg, #121212);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-hover-color: var(--schedlie-ink, #ececec);
  --bs-btn-active-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-active-color: var(--schedlie-ink, #ececec);
  background-color: var(--schedlie-page-bg, #121212);
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .schedlie-event-standalone .event-form-type-dropdown .event-form-type-trigger-btn.btn:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-standalone .event-form-type-dropdown .event-form-type-trigger-btn.btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .schedlie-event-standalone .event-form-type-dropdown .event-form-type-trigger-btn.btn:active,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-standalone .event-form-type-dropdown .event-form-type-trigger-btn.btn:active {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .schedlie-event-standalone .event-form-type-dropdown .event-form-type-trigger-btn.btn:focus-visible,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-standalone .event-form-type-dropdown .event-form-type-trigger-btn.btn:focus-visible {
  box-shadow: 0 0 0 0.2rem var(--schedlie-form-focus-ring, rgba(255, 255, 255, 0.22));
}

/* Event banner: scheme-aligned drop zone, aspect-safe preview, delete control */
.schedlie-event-banner-preview-img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: contain;
  background: var(--bs-tertiary-bg, rgba(0, 0, 0, 0.04));
}

.schedlie-event-banner-image-card {
  background-color: var(--schedlie-surface, #f8fafc);
}

.schedlie-event-banner-delete-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-danger, #dc3545);
}

.schedlie-event-banner-delete-btn:hover {
  color: var(--bs-danger, #b02a37);
  background-color: rgba(255, 255, 255, 1) !important;
}

body[data-app-scheme="dark"] .schedlie-event-banner-delete-btn,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-banner-delete-btn {
  background-color: rgba(30, 30, 30, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: var(--bs-danger, #ff6b6b);
}

body[data-app-scheme="dark"] .schedlie-event-banner-delete-btn:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-banner-delete-btn:hover {
  background-color: rgba(40, 40, 40, 0.95) !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-event-banner-delete-btn {
    background-color: rgba(30, 30, 30, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--bs-danger, #ff6b6b);
  }

  body[data-app-scheme="system"] .schedlie-event-banner-delete-btn:hover {
    background-color: rgba(40, 40, 40, 0.95) !important;
  }
}

.schedlie-event-banner-dropzone-surface {
  background-color: var(--schedlie-surface, #f8fafc);
  border-style: dashed !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  border-width: 2px !important;
  color: var(--schedlie-ink, #0f172a);
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
  outline: none;
}

.schedlie-event-banner-dropzone-surface:hover {
  border-color: rgba(15, 23, 42, 0.28) !important;
  background-color: rgba(15, 23, 42, 0.03);
}

.schedlie-event-banner-dropzone-surface:focus-visible {
  box-shadow: 0 0 0 0.2rem var(--schedlie-form-focus-ring, rgba(13, 110, 253, 0.25));
}

.schedlie-event-banner-dropzone-surface.is-dragging {
  border-color: #3b82f6 !important;
  background-color: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.2);
}

.schedlie-event-banner-drop-icon-svg svg {
  display: block;
  margin: 0 auto;
  opacity: 0.85;
}

body[data-app-scheme="dark"] .schedlie-event-banner-dropzone-surface,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-banner-dropzone-surface {
  background-color: var(--schedlie-page-bg, #121212);
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .schedlie-event-banner-dropzone-surface:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-banner-dropzone-surface:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32) !important;
}

body[data-app-scheme="dark"] .schedlie-event-banner-dropzone-surface.is-dragging,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-banner-dropzone-surface.is-dragging {
  border-color: #60a5fa !important;
  background-color: rgba(96, 165, 250, 0.14);
  box-shadow: 0 0 0 0.15rem rgba(96, 165, 250, 0.28);
}

body[data-app-scheme="dark"] .schedlie-event-banner-image-card,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-banner-image-card {
  background-color: var(--schedlie-surface, #1e1e1e);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-event-banner-dropzone-surface {
    background-color: var(--schedlie-page-bg, #121212);
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .schedlie-event-banner-dropzone-surface:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.32) !important;
  }

  body[data-app-scheme="system"] .schedlie-event-banner-dropzone-surface.is-dragging {
    border-color: #60a5fa !important;
    background-color: rgba(96, 165, 250, 0.14);
    box-shadow: 0 0 0 0.15rem rgba(96, 165, 250, 0.28);
  }

  body[data-app-scheme="system"] .schedlie-event-banner-image-card {
    background-color: var(--schedlie-surface, #1e1e1e);
  }
}

/* Profile photo: 10rem square shell; circle clips only the image; delete sits in corner (not clipped) */
.schedlie-profile-photo-stack-max {
  max-width: 22rem;
}

.schedlie-profile-photo-avatar-shell {
  position: relative;
  width: 10rem;
  height: 10rem;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.schedlie-profile-photo-preview-circle {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--schedlie-surface, #f8fafc);
}

.schedlie-profile-photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  display: block;
}

.schedlie-profile-photo-delete-fab {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  z-index: 4;
}

.schedlie-profile-photo-dropzone-wrap.is-uploading .js-profile-photo-dropzone {
  pointer-events: none;
  opacity: 0.65;
}

body[data-app-scheme="dark"] .schedlie-profile-photo-preview-circle,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-profile-photo-preview-circle {
  background-color: var(--schedlie-surface, #1e1e1e);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-profile-photo-preview-circle {
    background-color: var(--schedlie-surface, #1e1e1e);
  }
}

.schedlie-event-attachments-dropzone {
  background-color: var(--schedlie-surface, #f8fafc);
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: var(--schedlie-ink, #0f172a);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.schedlie-event-attachments-dropzone.is-dragging {
  border-color: #3b82f6 !important;
  background-color: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.2);
}

.schedlie-event-attachments-dropzone input[type="file"]::file-selector-button {
  background-color: rgba(15, 23, 42, 0.06);
  color: var(--schedlie-ink, #0f172a);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.45rem;
  padding: 0.35rem 0.7rem;
  margin-right: 0.75rem;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.schedlie-event-attachments-dropzone input[type="file"]::file-selector-button:hover {
  background-color: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.2);
}

body[data-app-scheme="dark"] .schedlie-event-attachments-dropzone,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-attachments-dropzone {
  background-color: var(--schedlie-page-bg, #121212);
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .schedlie-event-attachments-dropzone.is-dragging,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-attachments-dropzone.is-dragging {
  border-color: #60a5fa !important;
  background-color: rgba(96, 165, 250, 0.14);
  box-shadow: 0 0 0 0.15rem rgba(96, 165, 250, 0.28);
}

body[data-app-scheme="dark"] .schedlie-event-attachments-dropzone input[type="file"]::file-selector-button,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-attachments-dropzone input[type="file"]::file-selector-button {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--schedlie-ink, #ececec);
  border-color: rgba(255, 255, 255, 0.2);
}

body[data-app-scheme="dark"] .schedlie-event-attachments-dropzone input[type="file"]::file-selector-button:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-attachments-dropzone input[type="file"]::file-selector-button:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-event-attachments-dropzone {
    background-color: var(--schedlie-page-bg, #121212);
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .schedlie-event-attachments-dropzone.is-dragging {
    border-color: #60a5fa !important;
    background-color: rgba(96, 165, 250, 0.14);
    box-shadow: 0 0 0 0.15rem rgba(96, 165, 250, 0.28);
  }

  body[data-app-scheme="system"] .schedlie-event-attachments-dropzone input[type="file"]::file-selector-button {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--schedlie-ink, #ececec);
    border-color: rgba(255, 255, 255, 0.2);
  }

  body[data-app-scheme="system"] .schedlie-event-attachments-dropzone input[type="file"]::file-selector-button:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
  }

  body[data-app-scheme="system"] .event-form-type-dropdown .event-form-type-trigger-btn.btn {
    --bs-btn-bg: var(--schedlie-surface, #1e1e1e);
    --bs-btn-color: var(--schedlie-ink, #ececec);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
    --bs-btn-hover-color: var(--schedlie-ink, #ececec);
    --bs-btn-active-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-active-color: var(--schedlie-ink, #ececec);
    background-color: var(--schedlie-surface, #1e1e1e);
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .event-form-type-dropdown .event-form-type-trigger-btn.btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .event-form-type-dropdown .event-form-type-trigger-btn.btn:active {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .event-form-type-dropdown .event-form-type-trigger-btn.btn:focus-visible {
    box-shadow: 0 0 0 0.2rem var(--schedlie-form-focus-ring, rgba(255, 255, 255, 0.22));
  }

  body[data-app-scheme="system"] .schedlie-event-modal .event-form-type-dropdown .event-form-type-trigger-btn.btn {
    --bs-btn-bg: var(--schedlie-page-bg, #121212);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
    --bs-btn-hover-color: var(--schedlie-ink, #ececec);
    --bs-btn-active-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-active-color: var(--schedlie-ink, #ececec);
    background-color: var(--schedlie-page-bg, #121212);
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .schedlie-event-modal .event-form-type-dropdown .event-form-type-trigger-btn.btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .schedlie-event-modal .event-form-type-dropdown .event-form-type-trigger-btn.btn:active {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .schedlie-event-modal .event-form-type-dropdown .event-form-type-trigger-btn.btn:focus-visible {
    box-shadow: 0 0 0 0.2rem var(--schedlie-form-focus-ring, rgba(255, 255, 255, 0.22));
  }

  body[data-app-scheme="system"] .schedlie-event-standalone .event-form-type-dropdown .event-form-type-trigger-btn.btn {
    --bs-btn-bg: var(--schedlie-page-bg, #121212);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
    --bs-btn-hover-color: var(--schedlie-ink, #ececec);
    --bs-btn-active-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-active-color: var(--schedlie-ink, #ececec);
    background-color: var(--schedlie-page-bg, #121212);
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .schedlie-event-standalone .event-form-type-dropdown .event-form-type-trigger-btn.btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .schedlie-event-standalone .event-form-type-dropdown .event-form-type-trigger-btn.btn:active {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .schedlie-event-standalone .event-form-type-dropdown .event-form-type-trigger-btn.btn:focus-visible {
    box-shadow: 0 0 0 0.2rem var(--schedlie-form-focus-ring, rgba(255, 255, 255, 0.22));
  }
}

/* Do not use .text-body on the trigger: it forces :root --bs-body-color with !important, so in
   data-app-scheme dark (without data-bs-theme=dark) chip text stays near-black. Tie label to btn token. */
.calendar-settings-chip-preview {
  min-width: 150px;
}

.calendar-settings-preview-example {
  align-self: flex-start;
}

.event-form-type-dropdown .event-form-type-trigger-btn .calendar-settings-chip-preview,
.event-form-type-dropdown .event-form-type-trigger-btn .calendar-settings-chip-preview .text-truncate {
  color: var(--bs-btn-color);
}

.event-form-type-menu .event-form-type-option.dropdown-item .calendar-settings-chip-preview,
.event-form-type-menu .event-form-type-option.dropdown-item .calendar-settings-chip-preview .text-truncate {
  color: inherit;
}

.event-form-type-menu {
  max-height: min(320px, 70vh);
  overflow-y: auto;
}

/* Light / default: match app surface (#fff); dark scheme overrides later in this file. */
.event-form-type-menu.dropdown-menu {
  background-color: var(--schedlie-surface, #ffffff);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.1);
}

.event-form-type-menu .event-form-type-option.dropdown-item {
  color: var(--schedlie-ink, #0f172a);
}

.event-form-type-menu .event-form-type-option.dropdown-item:hover,
.event-form-type-menu .event-form-type-option.dropdown-item:focus,
.event-form-type-menu .event-form-type-option.dropdown-item:focus-visible {
  background-color: rgba(15, 23, 42, 0.06);
  color: var(--schedlie-ink, #0f172a);
}

.event-form-type-menu .event-form-type-option.dropdown-item.active,
.event-form-type-menu .event-form-type-option.dropdown-item:active {
  background-color: rgba(15, 23, 42, 0.1);
  color: var(--schedlie-ink, #0f172a);
}

.event-form-type-option .calendar-settings-chip-preview {
  pointer-events: none;
}

/* Event form: header action chips (dashboard calendar toolbar–style rounded squares) */
.btn.schedlie-circle-action-btn {
  --schedlie-circle-action-accent: var(--schedlie-ink, #0f172a);
  --schedlie-circle-action-accent-hover: var(--schedlie-circle-action-accent);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 0.65rem !important;
  border: 1px solid color-mix(in srgb, var(--schedlie-circle-action-accent) 42%, transparent);
  background-color: color-mix(in srgb, var(--schedlie-circle-action-accent) 10%, transparent);
  color: var(--schedlie-circle-action-accent);
  --bs-btn-color: var(--schedlie-circle-action-accent);
  --bs-btn-border-color: color-mix(in srgb, var(--schedlie-circle-action-accent) 42%, transparent);
  --bs-btn-bg: color-mix(in srgb, var(--schedlie-circle-action-accent) 10%, transparent);
  --bs-btn-hover-color: var(--schedlie-circle-action-accent-hover);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--schedlie-circle-action-accent-hover) 52%, transparent);
  --bs-btn-hover-bg: color-mix(in srgb, var(--schedlie-circle-action-accent-hover) 16%, transparent);
  --bs-btn-active-bg: color-mix(in srgb, var(--schedlie-circle-action-accent-hover) 16%, transparent);
  --bs-btn-disabled-bg: color-mix(in srgb, var(--schedlie-circle-action-accent) 10%, transparent);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn.schedlie-circle-action-btn:hover,
.btn.schedlie-circle-action-btn:focus-visible {
  border-color: color-mix(in srgb, var(--schedlie-circle-action-accent-hover) 52%, transparent);
  background-color: color-mix(in srgb, var(--schedlie-circle-action-accent-hover) 16%, transparent);
  color: var(--schedlie-circle-action-accent-hover);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--schedlie-circle-action-accent-hover) 20%, transparent);
}

.btn.schedlie-circle-action-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--schedlie-circle-action-accent-hover) 45%, transparent);
  outline-offset: 2px;
}

.btn.schedlie-circle-action-btn:active {
  background-color: color-mix(in srgb, var(--schedlie-circle-action-accent-hover) 16%, transparent);
}

.schedlie-circle-action-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.btn.schedlie-circle-action-btn.schedlie-circle-action-btn--confirm {
  --schedlie-circle-action-accent: #198754;
  --schedlie-circle-action-accent-hover: #146c43;
}

.btn.schedlie-circle-action-btn.schedlie-circle-action-btn--edit {
  --schedlie-circle-action-accent: #ffcc00;
  --schedlie-circle-action-accent-hover: #e6b800;
}

.btn.schedlie-circle-action-btn.schedlie-circle-action-btn--cancel {
  text-decoration: none;
  --schedlie-circle-action-accent: #dc3545;
  --schedlie-circle-action-accent-hover: #b02a37;
}

.btn.schedlie-circle-action-btn.schedlie-circle-action-btn--fullpage {
  text-decoration: none;
  --schedlie-circle-action-accent: #666666;
  --schedlie-circle-action-accent-hover: #555555;
}

body[data-app-scheme="dark"] .btn.schedlie-circle-action-btn.schedlie-circle-action-btn--fullpage,
body[data-schedlie-preview-app-scheme="dark"] .btn.schedlie-circle-action-btn.schedlie-circle-action-btn--fullpage,
:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .btn.schedlie-circle-action-btn.schedlie-circle-action-btn--fullpage {
  --schedlie-circle-action-accent: #aaaaaa;
  --schedlie-circle-action-accent-hover: #bbbbbb;
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="light"] .btn.schedlie-circle-action-btn.schedlie-circle-action-btn--fullpage {
  --schedlie-circle-action-accent: #666666;
  --schedlie-circle-action-accent-hover: #555555;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .btn.schedlie-circle-action-btn.schedlie-circle-action-btn--fullpage,
  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="dark"] .btn.schedlie-circle-action-btn.schedlie-circle-action-btn--fullpage {
    --schedlie-circle-action-accent: #aaaaaa;
    --schedlie-circle-action-accent-hover: #bbbbbb;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="light"] .btn.schedlie-circle-action-btn.schedlie-circle-action-btn--fullpage {
    --schedlie-circle-action-accent: #666666;
    --schedlie-circle-action-accent-hover: #555555;
  }
}

.btn.schedlie-circle-action-btn.schedlie-circle-action-btn--add-calendar {
  --schedlie-circle-action-accent: #17a2b8;
  --schedlie-circle-action-accent-hover: #138496;
}

.btn.schedlie-circle-action-btn.schedlie-circle-action-btn--share {
  --schedlie-circle-action-accent: #0d6efd;
  --schedlie-circle-action-accent-hover: #0a58ca;
}

.btn.schedlie-circle-action-btn.schedlie-circle-action-btn--danger {
  --schedlie-circle-action-accent: #dc3545;
  --schedlie-circle-action-accent-hover: #b02a37;
}

/* Bootstrap btn-* utilities must not add fills on circle actions */
.btn.schedlie-circle-action-btn.btn-primary,
.btn.schedlie-circle-action-btn.btn-outline-secondary,
.btn.schedlie-circle-action-btn.btn-outline-danger {
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: transparent;
  --bs-btn-active-bg: transparent;
  --bs-btn-disabled-bg: transparent;
}

.btn.schedlie-circle-action-btn.btn-primary:hover,
.btn.schedlie-circle-action-btn.btn-primary:focus,
.btn.schedlie-circle-action-btn.btn-primary:active,
.btn.schedlie-circle-action-btn.btn-outline-secondary:hover,
.btn.schedlie-circle-action-btn.btn-outline-secondary:focus,
.btn.schedlie-circle-action-btn.btn-outline-secondary:active,
.btn.schedlie-circle-action-btn.btn-outline-danger:hover,
.btn.schedlie-circle-action-btn.btn-outline-danger:focus,
.btn.schedlie-circle-action-btn.btn-outline-danger:active {
  background-color: color-mix(in srgb, var(--schedlie-circle-action-accent-hover) 16%, transparent);
  border-color: color-mix(in srgb, var(--schedlie-circle-action-accent-hover) 52%, transparent);
}

/* Modals (including edit recurrence dialogs): lighter close control on dark backgrounds */
body[data-app-scheme="dark"] .modal .btn-close,
body[data-schedlie-preview-app-scheme="dark"] .modal .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.88;
}

body[data-app-scheme="dark"] .modal .btn-close:hover,
body[data-app-scheme="dark"] .modal .btn-close:focus,
body[data-schedlie-preview-app-scheme="dark"] .modal .btn-close:hover,
body[data-schedlie-preview-app-scheme="dark"] .modal .btn-close:focus {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .modal .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.88;
  }

  body[data-app-scheme="system"] .modal .btn-close:hover,
  body[data-app-scheme="system"] .modal .btn-close:focus {
    opacity: 1;
  }
}

/* App pages: default modal/action button tokens (settings, etc. without a calendar theme) */
body:not(.schedlie-main-site) {
  --schedlie-modal-btn-fg: var(--schedlie-ink);
  --schedlie-modal-btn-bg: color-mix(in srgb, var(--schedlie-ink) 6%, var(--schedlie-surface, #fff));
  --schedlie-modal-btn-border: color-mix(in srgb, var(--schedlie-ink) 18%, transparent);
  --schedlie-modal-btn-bg-hover: color-mix(in srgb, var(--schedlie-ink) 10%, var(--schedlie-surface, #fff));
  --schedlie-modal-btn-border-hover: color-mix(in srgb, var(--schedlie-ink) 24%, transparent);
}

/* App primary action (not marketing site; non-calendar surfaces) */
body:not(.schedlie-main-site) .btn-schedlie,
body:not(.schedlie-main-site) .schedlie-modal-btn--primary {
  --schedlie-modal-btn-fg: #fff;
  --schedlie-modal-btn-bg: var(--schedlie-accent);
  --schedlie-modal-btn-border: var(--schedlie-accent);
  --schedlie-modal-btn-bg-hover: var(--schedlie-accent-hover);
  --schedlie-modal-btn-border-hover: var(--schedlie-accent-hover);
}

/* Calendar / user theme surfaces: actions follow ink & surface, not global app accent */
:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme] {
  --schedlie-modal-btn-fg: var(--schedlie-ink);
  --schedlie-modal-btn-bg: color-mix(in srgb, var(--schedlie-ink) 6%, var(--schedlie-surface, #fff));
  --schedlie-modal-btn-border: color-mix(in srgb, var(--schedlie-ink) 18%, transparent);
  --schedlie-modal-btn-bg-hover: color-mix(in srgb, var(--schedlie-ink) 10%, var(--schedlie-surface, #fff));
  --schedlie-modal-btn-border-hover: color-mix(in srgb, var(--schedlie-ink) 24%, transparent);
}

:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme]
  .schedlie-modal-btn--primary,
:is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme] .btn.btn-schedlie {
  --schedlie-modal-btn-fg: var(--schedlie-surface, #fff);
  --schedlie-modal-btn-bg: var(--schedlie-ink);
  --schedlie-modal-btn-border: var(--schedlie-ink);
  --schedlie-modal-btn-bg-hover: color-mix(in srgb, var(--schedlie-ink) 88%, var(--schedlie-surface, #fff));
  --schedlie-modal-btn-border-hover: color-mix(in srgb, var(--schedlie-ink) 88%, var(--schedlie-surface, #fff));
  --bs-btn-color: var(--schedlie-surface, #fff);
  --bs-btn-bg: var(--schedlie-ink);
  --bs-btn-border-color: var(--schedlie-ink);
  --bs-btn-hover-color: var(--schedlie-surface, #fff);
  --bs-btn-hover-bg: color-mix(in srgb, var(--schedlie-ink) 88%, var(--schedlie-surface, #fff));
  --bs-btn-hover-border-color: color-mix(in srgb, var(--schedlie-ink) 88%, var(--schedlie-surface, #fff));
  --bs-btn-active-color: var(--schedlie-surface, #fff);
  --bs-btn-active-bg: color-mix(in srgb, var(--schedlie-ink) 82%, var(--schedlie-surface, #fff));
  --bs-btn-active-border-color: color-mix(in srgb, var(--schedlie-ink) 82%, var(--schedlie-surface, #fff));
}

/* Schedlie modals: bordered surface, even padding, custom actions (light / dark / system) */
.schedlie-modal.modal-content,
.modal .modal-content.schedlie-modal {
  --schedlie-modal-border: color-mix(in srgb, var(--schedlie-ink) 14%, transparent);
  --schedlie-modal-btn-fg: var(--schedlie-ink);
  --schedlie-modal-btn-bg: color-mix(in srgb, var(--schedlie-ink) 6%, var(--schedlie-surface, #fff));
  --schedlie-modal-btn-border: color-mix(in srgb, var(--schedlie-ink) 18%, transparent);
  --schedlie-modal-btn-bg-hover: color-mix(in srgb, var(--schedlie-ink) 10%, var(--schedlie-surface, #fff));
  --schedlie-modal-btn-border-hover: color-mix(in srgb, var(--schedlie-ink) 24%, transparent);
  background-color: var(--schedlie-surface, #fff);
  color: var(--schedlie-ink);
  border: 1px solid var(--schedlie-modal-border) !important;
  border-radius: 0.75rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
}

.schedlie-modal .modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--schedlie-modal-border);
}

.schedlie-modal .modal-header.border-0 {
  border-bottom: 1px solid var(--schedlie-modal-border) !important;
}

.schedlie-modal .modal-body {
  padding: 1rem 1.25rem;
}

.schedlie-modal .modal-footer {
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid var(--schedlie-modal-border);
  gap: 0.5rem;
}

.schedlie-modal .modal-footer.border-0 {
  border-top: 1px solid var(--schedlie-modal-border) !important;
}

.schedlie-modal-btn,
.schedlie-modal .modal-footer .schedlie-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 0.45rem;
  border: 1px solid var(--schedlie-modal-btn-border);
  background-color: var(--schedlie-modal-btn-bg);
  color: var(--schedlie-modal-btn-fg);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.schedlie-modal-btn:hover,
.schedlie-modal-btn:focus-visible,
.schedlie-modal .modal-footer .schedlie-modal-btn:hover,
.schedlie-modal .modal-footer .schedlie-modal-btn:focus-visible {
  background-color: var(--schedlie-modal-btn-bg-hover);
  border-color: var(--schedlie-modal-btn-border-hover);
  color: var(--schedlie-modal-btn-fg);
  outline: none;
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--schedlie-modal-btn-border) 28%, transparent);
}

.schedlie-modal-btn--primary,
.schedlie-modal .modal-footer .schedlie-modal-btn--primary,
.schedlie-modal .modal-footer .btn-schedlie {
  --schedlie-modal-btn-fg: #fff;
  --schedlie-modal-btn-bg: var(--schedlie-accent);
  --schedlie-modal-btn-border: var(--schedlie-accent);
  --schedlie-modal-btn-bg-hover: var(--schedlie-accent-hover);
  --schedlie-modal-btn-border-hover: var(--schedlie-accent-hover);
}

.schedlie-modal-btn--danger {
  --schedlie-modal-btn-fg: #fff;
  --schedlie-modal-btn-bg: #dc3545;
  --schedlie-modal-btn-border: #dc3545;
  --schedlie-modal-btn-bg-hover: #bb2d3b;
  --schedlie-modal-btn-border-hover: #bb2d3b;
}

.schedlie-modal-btn--danger:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.35);
}

.schedlie-modal-btn:disabled,
.schedlie-modal-btn--primary:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.schedlie-modal-btn.btn-sm {
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
}

body[data-app-scheme="dark"] .schedlie-modal.modal-content,
body[data-app-scheme="dark"] .modal .modal-content.schedlie-modal,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-modal.modal-content,
body[data-schedlie-preview-app-scheme="dark"] .modal .modal-content.schedlie-modal {
  --schedlie-modal-border: rgba(255, 255, 255, 0.14);
  --schedlie-modal-btn-fg: var(--schedlie-ink, #f1f5f9);
  --schedlie-modal-btn-bg: rgba(255, 255, 255, 0.06);
  --schedlie-modal-btn-border: rgba(255, 255, 255, 0.16);
  --schedlie-modal-btn-bg-hover: rgba(255, 255, 255, 0.1);
  --schedlie-modal-btn-border-hover: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-modal.modal-content,
  body[data-app-scheme="system"] .modal .modal-content.schedlie-modal {
    --schedlie-modal-border: rgba(255, 255, 255, 0.14);
    --schedlie-modal-btn-fg: var(--schedlie-ink, #f1f5f9);
    --schedlie-modal-btn-bg: rgba(255, 255, 255, 0.06);
    --schedlie-modal-btn-border: rgba(255, 255, 255, 0.16);
    --schedlie-modal-btn-bg-hover: rgba(255, 255, 255, 0.1);
    --schedlie-modal-btn-border-hover: rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

/* Dark neutral accent is light gray — primary actions need dark label for contrast */
body[data-app-scheme="dark"] .schedlie-modal-btn--primary,
body[data-app-scheme="dark"] .schedlie-modal .modal-footer .schedlie-modal-btn--primary,
body[data-app-scheme="dark"] .schedlie-modal .modal-footer .btn-schedlie,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-modal-btn--primary,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-modal .modal-footer .schedlie-modal-btn--primary,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-modal .modal-footer .btn-schedlie,
body[data-app-scheme="dark"]:not(.schedlie-main-site) .schedlie-modal-btn--primary,
body[data-app-scheme="dark"]:not(.schedlie-main-site) .btn-schedlie {
  --schedlie-modal-btn-fg: var(--schedlie-page-bg, #121212);
  --schedlie-modal-btn-bg: var(--schedlie-accent);
  --schedlie-modal-btn-border: var(--schedlie-accent);
  --schedlie-modal-btn-bg-hover: var(--schedlie-accent-hover);
  --schedlie-modal-btn-border-hover: var(--schedlie-accent-hover);
}

/* Calendar-themed surfaces keep ink/surface primaries even when app scheme is dark */
body[data-app-scheme="dark"]
  :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme]
  .schedlie-modal-btn--primary,
body[data-app-scheme="dark"]
  :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme]
  .btn.btn-schedlie,
body[data-schedlie-preview-app-scheme="dark"]
  :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme]
  .schedlie-modal-btn--primary,
body[data-schedlie-preview-app-scheme="dark"]
  :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme]
  .btn.btn-schedlie {
  --schedlie-modal-btn-fg: var(--schedlie-surface, #1e1e1e);
  --schedlie-modal-btn-bg: var(--schedlie-ink);
  --schedlie-modal-btn-border: var(--schedlie-ink);
  --schedlie-modal-btn-bg-hover: color-mix(in srgb, var(--schedlie-ink) 88%, var(--schedlie-surface, #1e1e1e));
  --schedlie-modal-btn-border-hover: color-mix(in srgb, var(--schedlie-ink) 88%, var(--schedlie-surface, #1e1e1e));
  --bs-btn-color: var(--schedlie-surface, #1e1e1e);
  --bs-btn-bg: var(--schedlie-ink);
  --bs-btn-border-color: var(--schedlie-ink);
  --bs-btn-hover-color: var(--schedlie-surface, #1e1e1e);
  --bs-btn-hover-bg: color-mix(in srgb, var(--schedlie-ink) 88%, var(--schedlie-surface, #1e1e1e));
  --bs-btn-hover-border-color: color-mix(in srgb, var(--schedlie-ink) 88%, var(--schedlie-surface, #1e1e1e));
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-modal-btn--primary,
  body[data-app-scheme="system"] .schedlie-modal .modal-footer .schedlie-modal-btn--primary,
  body[data-app-scheme="system"] .schedlie-modal .modal-footer .btn-schedlie,
  body[data-app-scheme="system"]:not(.schedlie-main-site) .schedlie-modal-btn--primary,
  body[data-app-scheme="system"]:not(.schedlie-main-site) .btn-schedlie {
    --schedlie-modal-btn-fg: var(--schedlie-page-bg, #121212);
    --schedlie-modal-btn-bg: var(--schedlie-accent);
    --schedlie-modal-btn-border: var(--schedlie-accent);
    --schedlie-modal-btn-bg-hover: var(--schedlie-accent-hover);
    --schedlie-modal-btn-border-hover: var(--schedlie-accent-hover);
  }

  body[data-app-scheme="system"]
    :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme]
    .schedlie-modal-btn--primary,
  body[data-app-scheme="system"]
    :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme]
    .btn.btn-schedlie {
    --schedlie-modal-btn-fg: var(--schedlie-surface, #1e1e1e);
    --schedlie-modal-btn-bg: var(--schedlie-ink);
    --schedlie-modal-btn-border: var(--schedlie-ink);
    --schedlie-modal-btn-bg-hover: color-mix(in srgb, var(--schedlie-ink) 88%, var(--schedlie-surface, #1e1e1e));
    --schedlie-modal-btn-border-hover: color-mix(in srgb, var(--schedlie-ink) 88%, var(--schedlie-surface, #1e1e1e));
    --bs-btn-color: var(--schedlie-surface, #1e1e1e);
    --bs-btn-bg: var(--schedlie-ink);
    --bs-btn-border-color: var(--schedlie-ink);
    --bs-btn-hover-color: var(--schedlie-surface, #1e1e1e);
    --bs-btn-hover-bg: color-mix(in srgb, var(--schedlie-ink) 88%, var(--schedlie-surface, #1e1e1e));
    --bs-btn-hover-border-color: color-mix(in srgb, var(--schedlie-ink) 88%, var(--schedlie-surface, #1e1e1e));
  }
}

/* Modal scrollbars: match light / dark / system appearance (Firefox scrollbar-color + WebKit) */
.modal .modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.38) rgba(15, 23, 42, 0.07);
}

.modal .modal-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.modal .modal-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.07);
  border-radius: 999px;
}

.modal .modal-body::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.38);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.52);
}

body[data-app-scheme="dark"] .modal .modal-body,
body[data-schedlie-preview-app-scheme="dark"] .modal .modal-body {
  scrollbar-color: rgba(255, 255, 255, 0.38) rgba(255, 255, 255, 0.09);
}

body[data-app-scheme="dark"] .modal .modal-body::-webkit-scrollbar-track,
body[data-schedlie-preview-app-scheme="dark"] .modal .modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.09);
}

body[data-app-scheme="dark"] .modal .modal-body::-webkit-scrollbar-thumb,
body[data-schedlie-preview-app-scheme="dark"] .modal .modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.38);
}

body[data-app-scheme="dark"] .modal .modal-body::-webkit-scrollbar-thumb:hover,
body[data-schedlie-preview-app-scheme="dark"] .modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.52);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .modal .modal-body {
    scrollbar-color: rgba(255, 255, 255, 0.38) rgba(255, 255, 255, 0.09);
  }

  body[data-app-scheme="system"] .modal .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.09);
  }

  body[data-app-scheme="system"] .modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.38);
  }

  body[data-app-scheme="system"] .modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.52);
  }

  body[data-app-scheme="system"] #schedlieEventRsvpGuestListModal .modal-content.border.shadow-lg {
    box-shadow: var(--bs-box-shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
  }
}

@media (prefers-color-scheme: light) {
  body[data-app-scheme="system"] .modal .modal-body {
    scrollbar-color: rgba(15, 23, 42, 0.38) rgba(15, 23, 42, 0.07);
  }

  body[data-app-scheme="system"] .modal .modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.07);
  }

  body[data-app-scheme="system"] .modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.38);
  }

  body[data-app-scheme="system"] .modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.52);
  }
}

/* Calendar-themed modals: shared wash (event, contacts, calendars list, settings, etc.) */
:is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme] .modal-content {
  --schedlie-modal-border: color-mix(in srgb, var(--schedlie-ink) 14%, transparent);
  --schedlie-event-page-accent: var(--schedlie-cal-weekday-bg, var(--schedlie-ink-muted, #64748b));
  border: 1px solid var(--schedlie-modal-border) !important;
  background-color: var(--schedlie-page-bg, var(--schedlie-surface));
  color: var(--schedlie-ink);
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--schedlie-event-page-accent) 7%, var(--schedlie-page-bg, var(--schedlie-surface))) 0%,
    color-mix(in srgb, var(--schedlie-event-page-accent) 2.5%, var(--schedlie-page-bg, var(--schedlie-surface))) 45%,
    var(--schedlie-page-bg, var(--schedlie-surface)) 100%
  );
}

:is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme="light"] {
  --schedlie-event-page-accent: var(--schedlie-ink-muted, #64748b);
}

/* Contacts modal: slightly stronger theme wash than other app modals */
.schedlie-contacts-modal[data-cal-theme] .modal-content {
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--schedlie-event-page-accent) 14%, var(--schedlie-page-bg, var(--schedlie-surface))) 0%,
    color-mix(in srgb, var(--schedlie-event-page-accent) 6%, var(--schedlie-page-bg, var(--schedlie-surface))) 50%,
    var(--schedlie-page-bg, var(--schedlie-surface)) 100%
  );
}

.schedlie-contacts-modal[data-cal-theme] .modal-header,
.schedlie-contacts-modal[data-cal-theme] .schedlie-contacts-modal-header {
  background-color: color-mix(
    in srgb,
    var(--schedlie-surface, var(--schedlie-page-bg)) 82%,
    var(--schedlie-event-page-accent) 18%
  );
}

:is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme] .modal-header,
:is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme] .schedlie-event-modal-header {
  background-color: color-mix(
    in srgb,
    var(--schedlie-surface, var(--schedlie-page-bg)) 90%,
    var(--schedlie-event-page-accent) 10%
  );
  border-bottom-color: color-mix(in srgb, var(--schedlie-event-page-accent) 20%, transparent);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--schedlie-event-page-accent) 6%, transparent);
  color: var(--schedlie-ink);
}

:is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme] .modal-title {
  color: var(--schedlie-ink);
}

:is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme] .text-muted,
:is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme] .modal-body .text-muted {
  color: var(--schedlie-ink-muted) !important;
}

:is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme="dark"] .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.88;
}

:is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme="dark"] .btn-close:hover,
:is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme="dark"] .btn-close:focus {
  opacity: 1;
}

/* Calendar list modal: nav dropdown uses theme tokens instead of fixed greys */
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown {
  background: transparent;
  border: 0;
  color: var(--schedlie-ink);
}

.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .dropdown-header.schedlie-nav-cal-dropdown__section-title,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__section-title {
  background-color: transparent;
  color: var(--schedlie-ink-muted) !important;
}

.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .dropdown-item,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link {
  color: var(--schedlie-ink);
}

.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .dropdown-item:hover,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .dropdown-item:focus,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link:hover,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link:focus {
  background-color: color-mix(in srgb, var(--schedlie-ink) 6%, var(--schedlie-surface));
  color: var(--schedlie-ink);
}

.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .dropdown-divider {
  border-color: color-mix(in srgb, var(--schedlie-ink) 12%, transparent);
}

.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .text-muted,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .dropdown-item-text.text-muted {
  color: var(--schedlie-ink-muted) !important;
}

.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action {
  background-color: color-mix(in srgb, var(--schedlie-ink) 10%, var(--schedlie-surface));
  color: var(--schedlie-ink) !important;
}

.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:hover,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:focus,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action:hover,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown__split .schedlie-nav-cal-dropdown__footer-action:focus {
  background-color: color-mix(in srgb, var(--schedlie-ink) 14%, var(--schedlie-surface));
  color: var(--schedlie-ink) !important;
}

.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown__split .dropdown-item.schedlie-nav-cal-dropdown__footer-action:first-child,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown__split > .col-6:first-child .schedlie-nav-cal-dropdown__footer-action {
  border-right-color: color-mix(in srgb, var(--schedlie-ink) 12%, transparent);
}

.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar {
  background-color: color-mix(in srgb, var(--schedlie-ink) 12%, var(--schedlie-surface));
  color: var(--schedlie-ink) !important;
}

.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar:hover,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .dropdown-item.schedlie-nav-cal-dropdown__my-calendar:focus,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar:hover,
.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__my-calendar:focus {
  background-color: color-mix(in srgb, var(--schedlie-ink) 16%, var(--schedlie-surface));
  color: var(--schedlie-ink) !important;
}

.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-link {
  background-color: color-mix(in srgb, var(--schedlie-ink) 8%, var(--schedlie-surface));
}

.schedlie-cal-themed-modal[data-cal-theme] .schedlie-nav-cal-dropdown .schedlie-nav-cal-dropdown__list-empty {
  background-color: color-mix(in srgb, var(--schedlie-ink) 5%, var(--schedlie-surface));
  color: var(--schedlie-ink-muted);
}

body[data-app-scheme="dark"] :is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme] .schedlie-event-modal-header,
body[data-schedlie-preview-app-scheme="dark"] :is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme] .schedlie-event-modal-header,
body[data-app-scheme="dark"] :is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme] .modal-header,
body[data-schedlie-preview-app-scheme="dark"] :is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme] .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] :is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme] .schedlie-event-modal-header,
  body[data-app-scheme="system"] :is(.schedlie-event-modal, .schedlie-cal-themed-modal)[data-cal-theme] .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}

/* Event form section dividers — breathing room below the rule */
:is(main.schedlie-event-standalone, .schedlie-event-modal) form .border-top.pt-2,
:is(main.schedlie-event-standalone, .schedlie-event-modal) .schedlie-event-reminders-section,
:is(main.schedlie-event-standalone, .schedlie-event-modal) .schedlie-event-rsvp-section,
:is(main.schedlie-event-standalone, .schedlie-event-modal) .schedlie-event-repeat-section {
  padding-top: 0.75rem !important;
}

/* Light mode: default Bootstrap border-top is too faint on themed event surfaces */
body[data-app-scheme="light"] :is(main.schedlie-event-standalone, .schedlie-event-modal) form .border-top,
body[data-app-scheme="light"] :is(main.schedlie-event-standalone, .schedlie-event-modal) .schedlie-event-reminders-section,
body[data-app-scheme="light"] :is(main.schedlie-event-standalone, .schedlie-event-modal) .schedlie-event-rsvp-section,
body[data-app-scheme="light"] :is(main.schedlie-event-standalone, .schedlie-event-modal) .schedlie-event-repeat-section {
  border-top-color: color-mix(in srgb, var(--schedlie-ink, #0f172a) 22%, transparent) !important;
}

@media (prefers-color-scheme: light) {
  body[data-app-scheme="system"] :is(main.schedlie-event-standalone, .schedlie-event-modal) form .border-top,
  body[data-app-scheme="system"] :is(main.schedlie-event-standalone, .schedlie-event-modal) .schedlie-event-reminders-section,
  body[data-app-scheme="system"] :is(main.schedlie-event-standalone, .schedlie-event-modal) .schedlie-event-rsvp-section,
  body[data-app-scheme="system"] :is(main.schedlie-event-standalone, .schedlie-event-modal) .schedlie-event-repeat-section {
    border-top-color: color-mix(in srgb, var(--schedlie-ink, #0f172a) 22%, transparent) !important;
  }
}

/* Event modal: keep type menu above modal stacking context */
.schedlie-event-modal .event-form-type-menu.dropdown-menu {
  z-index: 1060;
}

/* RSVP guest list opens over the event modal; reinforce the card edge in dark UI */
body[data-app-scheme="dark"] #schedlieEventRsvpGuestListModal .modal-content.border.shadow-lg,
body[data-schedlie-preview-app-scheme="dark"] #schedlieEventRsvpGuestListModal .modal-content.border.shadow-lg {
  box-shadow: var(--bs-box-shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

/* Full-page event edit / contact edit: match event modal form width (modal-lg) */
main.schedlie-event-standalone.schedlie-event-form-page,
main.schedlie-event-standalone.schedlie-contact-edit-page {
  max-width: var(--bs-modal-lg, 800px);
}

/* Full-page standalone routes: flat page canvas (card holds surface content) */
body:has(main.schedlie-event-standalone) {
  background-color: var(--schedlie-page-bg);
  background-image: none;
}

main.schedlie-event-standalone {
  flex-grow: 1;
  width: 100%;
  background-color: var(--schedlie-page-bg);
  background-image: none;
}

main.schedlie-event-standalone[data-cal-theme] {
  --schedlie-event-page-accent: var(--schedlie-cal-weekday-bg, var(--schedlie-ink-muted, #64748b));
}

main.schedlie-event-standalone[data-cal-theme="light"] {
  --schedlie-event-page-accent: var(--schedlie-ink-muted, #64748b);
}

/* Event standalones: page canvas is app page-bg only (no calendar outside-month wash behind the panel) */
main.schedlie-event-standalone:is(.schedlie-event-view-page, .schedlie-event-form-page, .schedlie-event-public-page) {
  background-color: var(--schedlie-page-bg) !important;
  background-image: none !important;
}

main.schedlie-event-standalone:is(.schedlie-event-view-page, .schedlie-event-form-page, .schedlie-event-public-page)
  .schedlie-event-standalone-panel__body {
  background-color: transparent;
}

main.schedlie-event-standalone[data-cal-theme] > .alert {
  background-color: var(--schedlie-surface, #fff);
}

main.schedlie-event-standalone .schedlie-event-standalone-panel {
  border-radius: var(--bs-modal-border-radius, 0.5rem);
  box-shadow: var(--bs-modal-box-shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
  background-color: var(--schedlie-surface, #fff);
}

main.schedlie-event-standalone[data-cal-theme] .schedlie-event-standalone-panel {
  --schedlie-modal-border: color-mix(in srgb, var(--schedlie-ink) 14%, transparent);
  background-color: var(--schedlie-surface, #fff);
  border: 1px solid color-mix(
    in srgb,
    var(--schedlie-event-page-accent) 14%,
    var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08))
  ) !important;
}

body[data-app-scheme="dark"] main.schedlie-event-standalone[data-cal-theme] .schedlie-event-standalone-panel,
body[data-schedlie-preview-app-scheme="dark"] main.schedlie-event-standalone[data-cal-theme] .schedlie-event-standalone-panel {
  box-shadow: var(--bs-modal-box-shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15)), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Standalone card headers: stay visible while scrolling the page */
main.schedlie-event-standalone .schedlie-event-standalone-panel > .schedlie-event-page-topbar,
main.schedlie-event-standalone .schedlie-event-standalone-panel > .schedlie-event-modal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 0;
  border-radius: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (max-width: 991.98px) {
  body:has(.schedlie-main-nav) main.schedlie-event-standalone .schedlie-event-standalone-panel > .schedlie-event-page-topbar,
  body:has(.schedlie-main-nav) main.schedlie-event-standalone .schedlie-event-standalone-panel > .schedlie-event-modal-header {
    top: var(--schedlie-toast-below-nav, 3.75rem);
  }
}

main.schedlie-event-standalone[data-cal-theme] .schedlie-event-standalone-panel .schedlie-event-page-topbar,
main.schedlie-event-standalone[data-cal-theme] .schedlie-event-standalone-panel .schedlie-event-modal-header {
  background-color: color-mix(
    in srgb,
    var(--schedlie-surface, var(--schedlie-page-bg)) 90%,
    var(--schedlie-event-page-accent) 10%
  );
  border-bottom-color: color-mix(in srgb, var(--schedlie-event-page-accent) 20%, transparent) !important;
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--schedlie-event-page-accent) 6%, transparent);
}

body[data-app-scheme="dark"] main.schedlie-event-standalone[data-cal-theme] .schedlie-event-standalone-panel .schedlie-event-page-topbar,
body[data-schedlie-preview-app-scheme="dark"] main.schedlie-event-standalone[data-cal-theme] .schedlie-event-standalone-panel .schedlie-event-page-topbar {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] main.schedlie-event-standalone[data-cal-theme] .schedlie-event-standalone-panel .schedlie-event-page-topbar {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  }
}

/* Event read-only view: narrower modal, layout, links */
.schedlie-event-modal .schedlie-event-view-embed {
  padding: 2rem;
}

.schedlie-event-modal:has(.schedlie-event-embed-root[data-schedlie-mode="view"]) .modal-dialog {
  max-width: min(50rem, calc(100vw - 1rem));
}

/* Full-page event viewer (/event-view.php): edge-to-edge on small screens */
.schedlie-event-view-page,
.schedlie-event-public-page,
.schedlie-contact-view-page,
.schedlie-contact-edit-page,
.schedlie-peer-profile-page {
  max-width: 50rem;
}

main.schedlie-event-standalone[data-cal-theme] .schedlie-event-standalone-panel .schedlie-peer-profile-personal-card,
main.schedlie-event-standalone[data-cal-theme] .schedlie-event-standalone-panel .schedlie-peer-profile .card {
  background-color: var(--schedlie-surface, #fff);
  border-color: color-mix(
    in srgb,
    var(--schedlie-event-page-accent) 14%,
    var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08))
  ) !important;
}

@media (max-width: 575.98px) {
  .schedlie-event-modal:has(.schedlie-event-embed-root[data-schedlie-mode="view"]) .modal-dialog {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .schedlie-event-modal .schedlie-event-view-embed {
    padding: 1rem 1rem 1.25rem;
  }

  .schedlie-event-view-page.container,
  .schedlie-event-form-page.container,
  .schedlie-event-public-page.container,
  .schedlie-contact-view-page.container,
  .schedlie-contact-edit-page.container,
  .schedlie-peer-profile-page.container {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
  }

  main.schedlie-event-standalone > .alert {
    margin-left: 1rem;
    margin-right: 1rem;
    margin-top: 0.75rem;
  }

  .schedlie-event-view-page .schedlie-event-standalone-panel .schedlie-event-page-topbar,
  .schedlie-event-form-page .schedlie-event-standalone-panel .schedlie-event-page-topbar,
  .schedlie-event-public-page .schedlie-event-standalone-panel .schedlie-event-page-topbar,
  .schedlie-contact-view-page .schedlie-event-standalone-panel .schedlie-event-page-topbar,
  .schedlie-contact-edit-page .schedlie-event-standalone-panel .schedlie-event-page-topbar,
  .schedlie-peer-profile-page .schedlie-event-standalone-panel .schedlie-event-page-topbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .schedlie-event-view-page .schedlie-event-standalone-panel,
  .schedlie-event-form-page .schedlie-event-standalone-panel,
  .schedlie-event-public-page .schedlie-event-standalone-panel,
  .schedlie-contact-view-page .schedlie-event-standalone-panel,
  .schedlie-contact-edit-page .schedlie-event-standalone-panel,
  .schedlie-peer-profile-page .schedlie-event-standalone-panel {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  .schedlie-event-view-page .schedlie-event-standalone-panel__body,
  .schedlie-event-form-page .schedlie-event-standalone-panel__body,
  .schedlie-event-public-page .schedlie-event-standalone-panel__body,
  .schedlie-contact-view-page .schedlie-event-standalone-panel__body,
  .schedlie-contact-edit-page .schedlie-event-standalone-panel__body,
  .schedlie-peer-profile-page .schedlie-event-standalone-panel__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Align banner width with event view details column (28rem) */
.schedlie-event-banner-column-max,
.schedlie-event-view-banner-wrap {
  max-width: min(28rem, 100%);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.schedlie-event-view-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--bs-tertiary-bg, rgba(0, 0, 0, 0.04));
}

.schedlie-rsvp-headcount {
  max-width: min(16rem, 100%);
}

.schedlie-rsvp-headcount-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: var(--schedlie-cal-muted-fill);
  overflow: hidden;
}

.schedlie-rsvp-headcount-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--schedlie-form-toggle-on);
  transition: width 0.2s ease;
}

.schedlie-rsvp-headcount-bar--full span {
  background: #ca8a04;
}

.schedlie-event-view-type-icon svg {
  width: 0.9375rem;
  height: 0.9375rem;
  display: block;
}

.schedlie-event-view-type-row {
  line-height: 1.2;
}

.schedlie-event-view-datetime-col {
  min-width: 0;
}

/* One divider before the first optional block; one between optional blocks (RSVP, Remind me, appointment sheet). */
.schedlie-event-view-details > :not(.schedlie-event-view-section) + .schedlie-event-view-section,
.schedlie-event-view-details > .schedlie-event-view-section + .schedlie-event-view-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bs-border-color-translucent, var(--bs-border-color));
}

.schedlie-event-view-details .schedlie-event-view-section .table > :not(caption) > * > * {
  border-bottom-width: 0;
}

.schedlie-event-view-reminder-list .schedlie-event-view-reminder-item:first-child {
  padding-top: 0;
}

.schedlie-sms-meter--ok {
  border-color: color-mix(in srgb, var(--bs-success) 35%, var(--bs-border-color));
  background: color-mix(in srgb, var(--bs-success) 8%, transparent);
}

.schedlie-sms-meter--warn {
  border-color: color-mix(in srgb, var(--bs-warning) 45%, var(--bs-border-color));
  background: color-mix(in srgb, var(--bs-warning) 12%, transparent);
}

.schedlie-sms-meter--danger {
  border-color: color-mix(in srgb, var(--bs-danger) 45%, var(--bs-border-color));
  background: color-mix(in srgb, var(--bs-danger) 12%, transparent);
}

.schedlie-sms-credits-monthly-cap {
  font-size: 0.7rem;
  line-height: 1.3;
}

.schedlie-appt-sheet-list .schedlie-appt-sheet-row + .schedlie-appt-sheet-row {
  border-top: 1px solid var(--bs-border-color-translucent, var(--bs-border-color));
}

body[data-app-scheme="light"] .schedlie-event-view-details > :not(.schedlie-event-view-section) + .schedlie-event-view-section,
body[data-app-scheme="light"] .schedlie-event-view-details > .schedlie-event-view-section + .schedlie-event-view-section,
body[data-app-scheme="light"] .schedlie-appt-sheet-list .schedlie-appt-sheet-row + .schedlie-appt-sheet-row {
  border-top-color: color-mix(in srgb, var(--schedlie-ink, #0f172a) 12%, transparent);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-event-view-details > :not(.schedlie-event-view-section) + .schedlie-event-view-section,
  body[data-app-scheme="system"] .schedlie-event-view-details > .schedlie-event-view-section + .schedlie-event-view-section,
  body[data-app-scheme="system"] .schedlie-appt-sheet-list .schedlie-appt-sheet-row + .schedlie-appt-sheet-row {
    border-top-color: color-mix(in srgb, var(--schedlie-ink, #0f172a) 12%, transparent);
  }
}

.schedlie-event-view-location-link {
  color: var(--bs-link-color, #0d6efd);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.schedlie-event-view-location-link:hover {
  color: var(--bs-link-hover-color, #0a58ca);
}

.schedlie-event-view-attachment-link {
  color: var(--bs-link-color, #0d6efd);
}

.schedlie-event-view-attachment-link:hover {
  color: var(--bs-link-hover-color, #0a58ca);
  text-decoration: underline !important;
}

body[data-app-scheme="dark"] .schedlie-event-view-location-link,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-view-location-link {
  color: #6ea8fe;
}

body[data-app-scheme="dark"] .schedlie-event-view-location-link:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-view-location-link:hover {
  color: #9ec5fe;
}

body[data-app-scheme="dark"] .schedlie-event-view-attachment-link,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-view-attachment-link {
  color: #6ea8fe;
}

body[data-app-scheme="dark"] .schedlie-event-view-attachment-link:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-view-attachment-link:hover {
  color: #9ec5fe;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-event-view-location-link {
    color: #6ea8fe;
  }

  body[data-app-scheme="system"] .schedlie-event-view-location-link:hover {
    color: #9ec5fe;
  }

  body[data-app-scheme="system"] .schedlie-event-view-attachment-link {
    color: #6ea8fe;
  }

  body[data-app-scheme="system"] .schedlie-event-view-attachment-link:hover {
    color: #9ec5fe;
  }

}

.schedlie-calendar-settings-modal .modal-body {
  max-height: min(85vh, 44rem);
  overflow-y: auto;
}

/* Icon/colour pickers open above the calendar settings shell */
.schedlie-calendar-settings-modal .cal-icon-picker-modal,
.schedlie-calendar-settings-modal .cal-accent-picker-modal {
  z-index: 1060;
}

body[data-app-scheme="dark"] .event-form-type-menu.dropdown-menu, body[data-schedlie-preview-app-scheme="dark"] .event-form-type-menu.dropdown-menu {
  background-color: var(--schedlie-surface, #1e1e1e);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.45);
}

body[data-app-scheme="dark"] .schedlie-event-modal .event-form-type-menu.dropdown-menu,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-modal .event-form-type-menu.dropdown-menu {
  background-color: var(--schedlie-page-bg, #121212);
}

body[data-app-scheme="dark"] .schedlie-event-standalone .event-form-type-menu.dropdown-menu,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-event-standalone .event-form-type-menu.dropdown-menu {
  background-color: var(--schedlie-page-bg, #121212);
}

body[data-app-scheme="dark"] .event-form-type-menu .event-form-type-option.dropdown-item, body[data-schedlie-preview-app-scheme="dark"] .event-form-type-menu .event-form-type-option.dropdown-item {
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .event-form-type-menu .event-form-type-option.dropdown-item:hover, body[data-schedlie-preview-app-scheme="dark"] .event-form-type-menu .event-form-type-option.dropdown-item:hover,
body[data-app-scheme="dark"] .event-form-type-menu .event-form-type-option.dropdown-item:focus, body[data-schedlie-preview-app-scheme="dark"] .event-form-type-menu .event-form-type-option.dropdown-item:focus,
body[data-app-scheme="dark"] .event-form-type-menu .event-form-type-option.dropdown-item:focus-visible, body[data-schedlie-preview-app-scheme="dark"] .event-form-type-menu .event-form-type-option.dropdown-item:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--schedlie-ink, #ececec);
}

body[data-app-scheme="dark"] .event-form-type-option.dropdown-item.active, body[data-schedlie-preview-app-scheme="dark"] .event-form-type-option.dropdown-item.active,
body[data-app-scheme="dark"] .event-form-type-option.dropdown-item:active, body[data-schedlie-preview-app-scheme="dark"] .event-form-type-option.dropdown-item:active {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--schedlie-ink, #ececec);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .event-form-type-menu.dropdown-menu {
    background-color: var(--schedlie-surface, #1e1e1e);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.45);
  }

  body[data-app-scheme="system"] .schedlie-event-modal .event-form-type-menu.dropdown-menu {
    background-color: var(--schedlie-page-bg, #121212);
  }

  body[data-app-scheme="system"] .schedlie-event-standalone .event-form-type-menu.dropdown-menu {
    background-color: var(--schedlie-page-bg, #121212);
  }

  body[data-app-scheme="system"] .event-form-type-menu .event-form-type-option.dropdown-item {
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .event-form-type-menu .event-form-type-option.dropdown-item:hover,
  body[data-app-scheme="system"] .event-form-type-menu .event-form-type-option.dropdown-item:focus,
  body[data-app-scheme="system"] .event-form-type-menu .event-form-type-option.dropdown-item:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--schedlie-ink, #ececec);
  }

  body[data-app-scheme="system"] .event-form-type-option.dropdown-item.active,
  body[data-app-scheme="system"] .event-form-type-option.dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--schedlie-ink, #ececec);
  }
}

.event-form-type-dropdown .cal-icon-preview-svg svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* Member setup wizard: numbered stepper (Schedlie tokens; no Bootstrap primary blue bar) */
.schedlie-member-setup-progress {
  padding-left: 1rem;
  padding-right: 1rem;
  /* Local tokens: stepper sits on page canvas, not card surface — avoid surface-on-page contrast bugs */
  --schedlie-wiz-canvas: var(--schedlie-page-bg);
  --schedlie-wiz-seg-todo: var(--bs-border-color);
  --schedlie-wiz-seg-done: var(--schedlie-ink-muted);
  --schedlie-wiz-up-bg: var(--schedlie-cal-muted-fill);
  --schedlie-wiz-up-fg: var(--schedlie-ink-muted);
  --schedlie-wiz-up-border: var(--bs-border-color);
}

@media (min-width: 768px) {
  .schedlie-member-setup-progress {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

.schedlie-member-setup-progress__row {
  min-height: 2.5rem;
}

.schedlie-member-setup-progress__seg {
  height: 3px;
  min-width: 0.35rem;
  margin-left: 0.2rem;
  margin-right: 0.2rem;
  border-radius: 999px;
  background-color: var(--schedlie-wiz-seg-todo);
  align-self: center;
}

.schedlie-member-setup-progress__seg--done {
  background-color: var(--schedlie-wiz-seg-done);
}

.schedlie-member-setup-progress__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: filter 0.12s ease, box-shadow 0.12s ease;
}

.schedlie-member-setup-progress__node--done,
.schedlie-member-setup-progress__node--current {
  background-color: var(--schedlie-ink);
  color: var(--schedlie-surface);
  border-color: var(--schedlie-ink);
  -webkit-text-fill-color: var(--schedlie-surface);
}

.schedlie-member-setup-progress__node--current {
  /* Ring matches page canvas so it reads on body background (not card white in light mode) */
  box-shadow: 0 0 0 2px var(--schedlie-wiz-canvas), 0 0 0 4px var(--schedlie-ink-muted);
  -webkit-text-fill-color: var(--schedlie-surface);
}

.schedlie-member-setup-progress__node--upcoming {
  background-color: var(--schedlie-wiz-up-bg);
  color: var(--schedlie-wiz-up-fg);
  border-color: var(--schedlie-wiz-up-border);
  -webkit-text-fill-color: var(--schedlie-wiz-up-fg);
}

.schedlie-member-setup-progress__node--plug {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.schedlie-member-setup-progress__node-wrap {
  display: flex;
  justify-content: center;
}

.schedlie-member-setup-progress__node--done:hover {
  filter: brightness(1.07);
}

.schedlie-member-setup-progress__node--done:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--schedlie-form-focus-ring);
}

.schedlie-member-setup-progress__meta {
  color: var(--schedlie-ink-muted);
}

/* Filled step circles must keep surface-coloured numerals (global a[href] link colour breaks dark mode) */
a.schedlie-member-setup-progress__node--done,
a.schedlie-member-setup-progress__node--done:link,
a.schedlie-member-setup-progress__node--done:visited,
a.schedlie-member-setup-progress__node--done:hover,
a.schedlie-member-setup-progress__node--done:focus-visible,
a.schedlie-member-setup-progress__node--done:active {
  color: var(--schedlie-surface) !important;
  -webkit-text-fill-color: var(--schedlie-surface);
  font-weight: 600 !important;
}

.schedlie-member-setup-progress__title {
  color: var(--schedlie-ink);
  font-weight: 600;
}

/* Prefer over Bootstrap text-body / text-muted for theme switches (system + Schedlie tokens) */
.schedlie-text-ink {
  color: var(--schedlie-ink);
}

.schedlie-text-muted-ink {
  color: var(--schedlie-ink-muted);
}

.schedlie-back-link {
  font-size: 0.8125rem;
  color: var(--schedlie-ink-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.schedlie-back-link:hover {
  color: var(--schedlie-ink);
  text-decoration: none;
}

/* Member setup wizard: Back (flush left) / Next (flush right), each capped at 200px */
.schedlie-member-setup-wizard-actions {
  width: 100%;
  flex-wrap: nowrap;
  gap: 0.75rem 1rem;
  padding-inline: 0.5rem;
  box-sizing: border-box;
}

.schedlie-member-setup-wizard-actions__cap {
  flex: 0 1 200px;
  max-width: 200px;
  min-width: 0;
}

.schedlie-member-setup-wizard-actions__cap .btn {
  max-width: 100%;
}

.schedlie-member-setup-wizard-actions__cap > .w-100,
.schedlie-member-setup-wizard-actions__cap > form {
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .schedlie-member-setup-progress__node {
    transition: none;
  }
}

/* Member setup review summary: theme tokens (light/dark) */
.schedlie-setup-review-summary__subtitle {
  color: var(--schedlie-ink-muted);
  font-weight: 600;
}

.schedlie-setup-review-summary__muted {
  color: var(--schedlie-ink-muted);
}

.schedlie-setup-review-summary__badge {
  background-color: transparent !important;
  color: var(--schedlie-ink) !important;
  border-color: var(--bs-border-color) !important;
}

.schedlie-setup-review-summary__answer a[href] {
  color: var(--schedlie-ink);
  font-weight: var(--schedlie-link-font-weight, 500);
}

.schedlie-review-channel {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  display: inline-block;
  min-width: 1.25rem;
}

.schedlie-review-channel--on {
  color: var(--schedlie-ink);
}

.schedlie-review-channel--off {
  color: var(--schedlie-ink-muted);
  opacity: 0.88;
}

.schedlie-review-channel--na {
  font-size: 1rem;
  font-weight: 600;
}

/* —— App color scheme: neutral grayscale dark (no blue/purple tint) —— */

body[data-app-scheme="dark"], body[data-schedlie-preview-app-scheme="dark"] {
  --schedlie-page-bg: #121212;
  --schedlie-surface: #1e1e1e;
  --schedlie-ink: #ececec;
  --schedlie-ink-muted: #a3a3a3;
  --schedlie-form-disabled-bg: rgba(255, 255, 255, 0.08);
  --schedlie-form-select-caret-disabled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23a3a3a3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  --schedlie-accent: #d4d4d4;
  --schedlie-accent-hover: #e8e8e8;
  --schedlie-cal-line: rgba(255, 255, 255, 0.1);
  --schedlie-cal-muted-fill: rgba(255, 255, 255, 0.05);
  --schedlie-form-border: #525252;
  --schedlie-form-focus-ring: rgba(255, 255, 255, 0.22);
  --schedlie-form-check-unchecked-bg: #5f6670;
  --schedlie-form-check-unchecked-border: #656b76;
  --schedlie-form-check-checked: #34363c;
  --schedlie-form-check-checked-focus-ring: rgba(52, 54, 60, 0.45);
  --schedlie-form-radio-unchecked-bg: #5c626c;
  --schedlie-form-radio-unchecked-border: #8e939d;
  --schedlie-form-radio-checked-center: #121214;
  --schedlie-form-radio-ring: #b8bcc4;
  --schedlie-form-radio-focus-ring: rgba(18, 18, 20, 0.55);
  --bs-body-bg: #121212;
  --bs-body-color: #ececec;
  --bs-secondary-color: #a3a3a3;
  --bs-emphasis-color: #f5f5f5;
  --bs-card-bg: #1e1e1e;
  --bs-card-border-color: rgba(255, 255, 255, 0.12);
  --bs-border-color: rgba(255, 255, 255, 0.12);
  --bs-link-color: var(--schedlie-ink);
  --bs-link-hover-color: var(--schedlie-ink);
  --bs-table-color: #ececec;
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, #121212 0%, #181818 45%, #141414 100%);
  background-color: var(--schedlie-page-bg);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] {
    --schedlie-page-bg: #121212;
    --schedlie-surface: #1e1e1e;
    --schedlie-ink: #ececec;
    --schedlie-ink-muted: #a3a3a3;
    --schedlie-form-disabled-bg: rgba(255, 255, 255, 0.08);
    --schedlie-form-select-caret-disabled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23a3a3a3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    --schedlie-accent: #d4d4d4;
    --schedlie-accent-hover: #e8e8e8;
    --schedlie-cal-line: rgba(255, 255, 255, 0.1);
    --schedlie-cal-muted-fill: rgba(255, 255, 255, 0.05);
    --schedlie-form-border: #525252;
    --schedlie-form-focus-ring: rgba(255, 255, 255, 0.22);
    --schedlie-form-check-unchecked-bg: #5f6670;
    --schedlie-form-check-unchecked-border: #656b76;
    --schedlie-form-check-checked: #34363c;
    --schedlie-form-check-checked-focus-ring: rgba(52, 54, 60, 0.45);
    --schedlie-form-radio-unchecked-bg: #5c626c;
    --schedlie-form-radio-unchecked-border: #8e939d;
    --schedlie-form-radio-checked-center: #121214;
    --schedlie-form-radio-ring: #b8bcc4;
    --schedlie-form-radio-focus-ring: rgba(18, 18, 20, 0.55);
    --bs-body-bg: #121212;
    --bs-body-color: #ececec;
    --bs-secondary-color: #a3a3a3;
    --bs-emphasis-color: #f5f5f5;
    --bs-card-bg: #1e1e1e;
    --bs-card-border-color: rgba(255, 255, 255, 0.12);
    --bs-border-color: rgba(255, 255, 255, 0.12);
    --bs-link-color: var(--schedlie-ink);
    --bs-link-hover-color: var(--schedlie-ink);
    --bs-table-color: #ececec;
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, #121212 0%, #181818 45%, #141414 100%);
    background-color: var(--schedlie-page-bg);
  }

  body[data-app-scheme="system"] .navbar.navbar-light.bg-light {
    background-color: var(--schedlie-surface) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  }

  body[data-app-scheme="system"] .navbar-brand,
  body[data-app-scheme="system"] .navbar .nav-link.text-dark {
    color: var(--schedlie-ink) !important;
  }

  body[data-app-scheme="system"] .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.28);
  }

  body[data-app-scheme="system"] .navbar-toggler-icon {
    filter: invert(1) brightness(1.05);
  }

  body[data-app-scheme="system"] .schedlie-main-nav .schedlie-nav-session-collapse {
    background-color: var(--schedlie-surface);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  body[data-app-scheme="system"] .navbar-icon-btn:hover,
  body[data-app-scheme="system"] .navbar-icon-btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
  }

  body[data-app-scheme="system"] footer.bg-light {
    background-color: var(--schedlie-surface) !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
  }

  body[data-app-scheme="system"] footer .text-muted {
    color: var(--schedlie-ink-muted) !important;
  }

  body[data-app-scheme="system"] .account-nav.card {
    background-color: var(--schedlie-surface);
    border-color: rgba(255, 255, 255, 0.1);
  }

  body[data-app-scheme="system"] .account-nav .nav-pills .nav-link {
    color: var(--schedlie-ink-muted);
  }

  body[data-app-scheme="system"] .account-nav .nav-pills .nav-link:hover {
    color: var(--schedlie-ink);
    background-color: rgba(255, 255, 255, 0.06);
  }

  body[data-app-scheme="system"] .account-nav .nav-pills .nav-link.active {
    background-color: #333333;
    color: #f0f0f0;
  }

  body[data-app-scheme="system"] .account-nav .nav-pills .nav-link.active:hover {
    background-color: #404040;
    color: #ffffff;
  }

  body[data-app-scheme="system"] .account-nav-profile-sub .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
  }

  body[data-app-scheme="system"] .dashboard-main-card {
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.35),
      0 12px 32px -8px rgba(0, 0, 0, 0.5) !important;
  }

  body[data-app-scheme="system"] .btn-outline-dark {
    color: #e8e8e8;
    border-color: rgba(255, 255, 255, 0.38);
    background-color: transparent;
  }

  body[data-app-scheme="system"] .btn-outline-dark:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.48);
  }

  body[data-app-scheme="system"] .btn-outline-secondary {
    color: var(--schedlie-ink-muted);
    border-color: rgba(255, 255, 255, 0.35);
    background-color: transparent;
  }

  body[data-app-scheme="system"] .btn-outline-secondary:hover {
    color: var(--schedlie-ink);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
  }

  body[data-app-scheme="system"] .btn-dark {
    background-color: #333333;
    border-color: #474747;
    color: #f0f0f0;
  }

  body[data-app-scheme="system"] .btn-dark:hover {
    background-color: #404040;
    border-color: #555555;
    color: #ffffff;
  }

  body[data-app-scheme="system"] .btn-dark:disabled,
  body[data-app-scheme="system"] .btn-dark.disabled {
    background-color: #2a2a2a;
    border-color: #383838;
    color: #737373;
  }

  /* Cards: solid charcoal on charcoal was illegible (login/register CTAs) */
  body[data-app-scheme="system"] main .card .btn.btn-dark {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
  }

  body[data-app-scheme="system"] main .card .btn.btn-dark:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
  }

  body[data-app-scheme="system"] main .card .btn.btn-dark:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(148, 163, 184, 0.45);
  }

  body[data-app-scheme="system"] main .card .btn.btn-dark:disabled,
  body[data-app-scheme="system"] main .card .btn.btn-dark.disabled {
    background-color: #334155;
    border-color: #475569;
    color: #94a3b8;
    opacity: 1;
  }

  body[data-app-scheme="system"] #app-toast-host .alert {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  }

  body[data-app-scheme="system"] .table {
    color: var(--schedlie-ink);
    --bs-table-color: var(--schedlie-ink);
  }

  body[data-app-scheme="system"] .calendar-settings-type-table td,
  body[data-app-scheme="system"] .schedlie-etype-icon-grid__row {
    color: var(--schedlie-ink);
  }

  body[data-app-scheme="system"] .cal-theme-picker .btn-check:checked + .cal-theme-option {
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--schedlie-ink);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
  }
}

body[data-app-scheme="dark"] .navbar.navbar-light.bg-light, body[data-schedlie-preview-app-scheme="dark"] .navbar.navbar-light.bg-light {
  background-color: var(--schedlie-surface) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body[data-app-scheme="dark"] .navbar-brand, body[data-schedlie-preview-app-scheme="dark"] .navbar-brand,
body[data-app-scheme="dark"] .navbar .nav-link.text-dark, body[data-schedlie-preview-app-scheme="dark"] .navbar .nav-link.text-dark {
  color: var(--schedlie-ink) !important;
}

body[data-app-scheme="dark"] .navbar-toggler, body[data-schedlie-preview-app-scheme="dark"] .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.28);
}

body[data-app-scheme="dark"] .navbar-toggler-icon, body[data-schedlie-preview-app-scheme="dark"] .navbar-toggler-icon {
  filter: invert(1) brightness(1.05);
}

body[data-app-scheme="dark"] .navbar-icon-btn:hover, body[data-schedlie-preview-app-scheme="dark"] .navbar-icon-btn:hover,
body[data-app-scheme="dark"] .navbar-icon-btn:focus-visible, body[data-schedlie-preview-app-scheme="dark"] .navbar-icon-btn:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
}

body[data-app-scheme="dark"] footer.bg-light, body[data-schedlie-preview-app-scheme="dark"] footer.bg-light {
  background-color: var(--schedlie-surface) !important;
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

body[data-app-scheme="dark"] footer .text-muted, body[data-schedlie-preview-app-scheme="dark"] footer .text-muted {
  color: var(--schedlie-ink-muted) !important;
}

body[data-app-scheme="dark"] .account-nav.card, body[data-schedlie-preview-app-scheme="dark"] .account-nav.card {
  background-color: var(--schedlie-surface);
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-app-scheme="dark"] .account-nav .nav-pills .nav-link, body[data-schedlie-preview-app-scheme="dark"] .account-nav .nav-pills .nav-link {
  color: var(--schedlie-ink-muted);
}

body[data-app-scheme="dark"] .account-nav .nav-pills .nav-link:hover, body[data-schedlie-preview-app-scheme="dark"] .account-nav .nav-pills .nav-link:hover {
  color: var(--schedlie-ink);
  background-color: rgba(255, 255, 255, 0.06);
}

body[data-app-scheme="dark"] .account-nav .nav-pills .nav-link.active, body[data-schedlie-preview-app-scheme="dark"] .account-nav .nav-pills .nav-link.active {
  background-color: #333333;
  color: #f0f0f0;
}

body[data-app-scheme="dark"] .account-nav .nav-pills .nav-link.active:hover, body[data-schedlie-preview-app-scheme="dark"] .account-nav .nav-pills .nav-link.active:hover {
  background-color: #404040;
  color: #ffffff;
}

body[data-app-scheme="dark"] .account-nav-profile-sub .nav-link, body[data-schedlie-preview-app-scheme="dark"] .account-nav-profile-sub .nav-link {
  color: var(--schedlie-ink-muted);
}

body[data-app-scheme="dark"] .account-nav-profile-sub .nav-link:hover, body[data-schedlie-preview-app-scheme="dark"] .account-nav-profile-sub .nav-link:hover {
  color: var(--schedlie-ink);
  background-color: rgba(255, 255, 255, 0.06);
}

body[data-app-scheme="dark"] .account-nav-profile-sub .nav-link:focus-visible, body[data-schedlie-preview-app-scheme="dark"] .account-nav-profile-sub .nav-link:focus-visible {
  outline-color: rgba(255, 255, 255, 0.35);
}

body[data-app-scheme="dark"] .dashboard-main-card, body[data-schedlie-preview-app-scheme="dark"] .dashboard-main-card {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 12px 32px -8px rgba(0, 0, 0, 0.5) !important;
}

body[data-app-scheme="dark"] .btn-outline-dark, body[data-schedlie-preview-app-scheme="dark"] .btn-outline-dark {
  color: #e8e8e8;
  border-color: rgba(255, 255, 255, 0.38);
  background-color: transparent;
}

body[data-app-scheme="dark"] .btn-outline-dark:hover, body[data-schedlie-preview-app-scheme="dark"] .btn-outline-dark:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.48);
}

body[data-app-scheme="dark"] .btn-outline-secondary, body[data-schedlie-preview-app-scheme="dark"] .btn-outline-secondary {
  color: var(--schedlie-ink-muted);
  border-color: rgba(255, 255, 255, 0.35);
  background-color: transparent;
}

body[data-app-scheme="dark"] .btn-outline-secondary:hover, body[data-schedlie-preview-app-scheme="dark"] .btn-outline-secondary:hover {
  color: var(--schedlie-ink);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

body[data-app-scheme="dark"] .btn-dark, body[data-schedlie-preview-app-scheme="dark"] .btn-dark {
  background-color: #333333;
  border-color: #474747;
  color: #f0f0f0;
}

body[data-app-scheme="dark"] .btn-dark:hover, body[data-schedlie-preview-app-scheme="dark"] .btn-dark:hover {
  background-color: #404040;
  border-color: #555555;
  color: #ffffff;
}

body[data-app-scheme="dark"] .btn-dark:disabled, body[data-schedlie-preview-app-scheme="dark"] .btn-dark:disabled,
body[data-app-scheme="dark"] .btn-dark.disabled, body[data-schedlie-preview-app-scheme="dark"] .btn-dark.disabled {
  background-color: #2a2a2a;
  border-color: #383838;
  color: #737373;
}

/* Primary actions on cards in dark mode: light surface + dark text (was charcoal-on-charcoal) */
body[data-app-scheme="dark"] main .card .btn.btn-dark,
body[data-schedlie-preview-app-scheme="dark"] main .card .btn.btn-dark {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

body[data-app-scheme="dark"] main .card .btn.btn-dark:hover,
body[data-schedlie-preview-app-scheme="dark"] main .card .btn.btn-dark:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

body[data-app-scheme="dark"] main .card .btn.btn-dark:focus-visible,
body[data-schedlie-preview-app-scheme="dark"] main .card .btn.btn-dark:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(148, 163, 184, 0.45);
}

body[data-app-scheme="dark"] main .card .btn.btn-dark:disabled,
body[data-schedlie-preview-app-scheme="dark"] main .card .btn.btn-dark:disabled,
body[data-app-scheme="dark"] main .card .btn.btn-dark.disabled,
body[data-schedlie-preview-app-scheme="dark"] main .card .btn.btn-dark.disabled {
  background-color: #334155;
  border-color: #475569;
  color: #94a3b8;
  opacity: 1;
}

body[data-app-scheme="dark"] #app-toast-host .alert, body[data-schedlie-preview-app-scheme="dark"] #app-toast-host .alert {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

body[data-app-scheme="dark"] .table, body[data-schedlie-preview-app-scheme="dark"] .table {
  color: var(--schedlie-ink);
  --bs-table-color: var(--schedlie-ink);
}

body[data-app-scheme="dark"] .calendar-settings-type-table td,
body[data-app-scheme="dark"] .schedlie-etype-icon-grid__row,
body[data-schedlie-preview-app-scheme="dark"] .calendar-settings-type-table td,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-etype-icon-grid__row {
  color: var(--schedlie-ink);
}

body[data-app-scheme="dark"] .cal-theme-picker .btn-check:checked + .cal-theme-option, body[data-schedlie-preview-app-scheme="dark"] .cal-theme-picker .btn-check:checked + .cal-theme-option {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--schedlie-ink);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

/*
 * App dark / OS dark: map white & near-white calendar neutrals to dark surfaces.
 * Chromatic accents stay on toolbars; weekday headers use one solid colour per theme; day cells stay neutral.
 */
body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="light"], body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="light"],
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="light"], body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="light"] {
  --schedlie-surface: #1e1e1e;
  --schedlie-ink: #ececec;
  --schedlie-ink-muted: #a3a3a3;
  --schedlie-cal-line: rgba(255, 255, 255, 0.1);
  --schedlie-cal-outside-month-bg: #2a2a2a;
  --schedlie-cal-toolbar-bg: #3d3d3d;
  --schedlie-cal-weekday-bg: #525252;
  --schedlie-today-bg: rgba(255, 255, 255, 0.04);
  --schedlie-today-ring: rgba(255, 255, 255, 0.18);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="light"] .dashboard-cal-event-icon-ring, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="light"] .dashboard-cal-event-icon-ring {
  background-color: rgba(30, 30, 30, 0.96);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"], body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"],
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="rainbow"], body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="rainbow"] {
  --schedlie-surface: #1a1b1f;
  --schedlie-ink: #e2e8f0;
  --schedlie-ink-muted: #94a3b8;
  --schedlie-cal-outside-month-bg: #22252c;
  --schedlie-today-bg: rgba(255, 255, 255, 0.04);
  --schedlie-today-ring: rgba(255, 255, 255, 0.14);
  --schedlie-cal-weekday-bg: #4338ca;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.94);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-toolbar,
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="rainbow"] .dashboard-cal-toolbar,
body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-toolbar,
body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="rainbow"] .dashboard-cal-toolbar {
  background: linear-gradient(
    90deg,
    #7f1d1d 0%,
    #7c2d12 10%,
    #713f12 20%,
    #14532d 30%,
    #134e4a 40%,
    #1e3a8a 50%,
    #4c1d95 60%,
    #701a75 70%,
    #831843 80%,
    #881337 90%,
    #7f1d1d 100%
  );
  border-bottom-color: rgba(0, 0, 0, 0.35);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-event-icon-ring, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-event-icon-ring {
  background-color: rgba(22, 25, 34, 0.96);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar {
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(129, 140, 248, 0.32) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar-heading, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar-heading {
  color: #c7d2fe !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar .text-muted, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar .text-muted {
  color: #a5b4fc !important;
  opacity: 0.92 !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .btn-outline-dark, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .btn-outline-dark {
  color: #e0e7ff !important;
  border-color: #6366f1 !important;
  background-color: rgba(79, 70, 229, 0.2) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .btn-outline-dark:hover, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .btn-outline-dark:hover {
  color: #fff !important;
  background-color: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar .btn-dark:disabled, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(79, 70, 229, 0.18) !important;
  color: #a5b4fc !important;
  border-color: rgba(129, 140, 248, 0.38) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar .list-group-item, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar .list-group-item {
  background-color: rgba(22, 26, 38, 0.96) !important;
  color: #e2e8f0 !important;
  border-color: rgba(129, 140, 248, 0.28) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"], body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"],
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="vibe"], body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="vibe"] {
  --schedlie-surface: #1b1628;
  --schedlie-ink: #ede9fe;
  --schedlie-ink-muted: #a78bfa;
  --schedlie-cal-outside-month-bg: #221a35;
  --schedlie-today-bg: rgba(124, 58, 237, 0.22);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-cell--today .dashboard-cal-daynum, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-cell--today .dashboard-cal-daynum,
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="vibe"] .dashboard-cal-cell--today .dashboard-cal-daynum, body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="vibe"] .dashboard-cal-cell--today .dashboard-cal-daynum {
  color: #c4b5fd;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-home-week-dow--today .dashboard-home-week-dow-num,
body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-home-week-dow--today .dashboard-home-week-dow-num,
body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-home-week-mobile-day--today .dashboard-home-week-mobile-daynum,
body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-home-week-mobile-day--today .dashboard-home-week-mobile-daynum {
  color: #c4b5fd;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-event-icon-ring, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-event-icon-ring {
  background-color: rgba(27, 22, 40, 0.96);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.38) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar-heading, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar-heading {
  color: #c4b5fd !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar .text-muted, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar .text-muted {
  color: #a78bfa !important;
  opacity: 0.92 !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .btn-outline-dark, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .btn-outline-dark {
  color: #ddd6fe !important;
  border-color: #7c3aed !important;
  background-color: rgba(124, 58, 237, 0.18) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .btn-outline-dark:hover, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .btn-outline-dark:hover {
  color: #fff !important;
  background-color: #7c3aed !important;
  border-color: #7c3aed !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar .btn-dark:disabled, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(124, 58, 237, 0.2) !important;
  color: #a78bfa !important;
  border-color: rgba(124, 58, 237, 0.45) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar .list-group-item, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar .list-group-item {
  background-color: rgba(30, 22, 48, 0.95) !important;
  color: #ddd6fe !important;
  border-color: rgba(124, 58, 237, 0.35) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"], body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"],
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="ocean"], body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="ocean"] {
  --schedlie-surface: #111c1e;
  --schedlie-ink: #ccfbf1;
  --schedlie-ink-muted: #5eead4;
  --schedlie-cal-outside-month-bg: #151a1c;
  --schedlie-today-bg: rgba(255, 255, 255, 0.04);
  --schedlie-today-ring: rgba(45, 212, 191, 0.2);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-toolbar,
body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-toolbar,
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="ocean"] .dashboard-cal-toolbar,
body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="ocean"] .dashboard-cal-toolbar {
  background: linear-gradient(90deg, #0c4a6e 0%, #134e4a 24%, #0f766e 52%, #115e59 100%);
  border-bottom-color: rgba(0, 0, 0, 0.35);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-event-icon-ring,
body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-event-icon-ring,
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="ocean"] .dashboard-cal-event-icon-ring,
body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="ocean"] .dashboard-cal-event-icon-ring {
  background-color: rgba(17, 28, 30, 0.96);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar {
  background: rgba(14, 116, 144, 0.2) !important;
  border-color: rgba(45, 212, 191, 0.35) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar-heading, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar-heading {
  color: #99f6e4 !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar .text-muted, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar .text-muted {
  color: #5eead4 !important;
  opacity: 0.88 !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .btn-outline-dark, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .btn-outline-dark {
  color: #ccfbf1 !important;
  border-color: #14b8a6 !important;
  background-color: rgba(13, 148, 136, 0.22) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .btn-outline-dark:hover, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .btn-outline-dark:hover {
  color: #042f2e !important;
  background-color: #2dd4bf !important;
  border-color: #2dd4bf !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar .btn-dark:disabled, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(13, 148, 136, 0.2) !important;
  color: #5eead4 !important;
  border-color: rgba(45, 212, 191, 0.35) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar .list-group-item, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar .list-group-item {
  background-color: rgba(15, 35, 38, 0.95) !important;
  color: #ccfbf1 !important;
  border-color: rgba(45, 212, 191, 0.28) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"], body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"],
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="sunset"], body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="sunset"] {
  --schedlie-surface: #181b22;
  --schedlie-ink: #e2e8f0;
  --schedlie-ink-muted: #94a3b8;
  --schedlie-cal-outside-month-bg: #22252d;
  --schedlie-today-bg: rgba(255, 255, 255, 0.04);
  --schedlie-today-ring: rgba(255, 255, 255, 0.14);
  --schedlie-cal-weekday-bg: #4f46e5;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.94);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-toolbar,
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="sunset"] .dashboard-cal-toolbar,
body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-toolbar,
body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="sunset"] .dashboard-cal-toolbar {
  background: linear-gradient(
    90deg,
    #0c4a6e 0%,
    #1e3a8a 16%,
    #3730a3 32%,
    #831843 48%,
    #9a3412 64%,
    #c2410c 84%,
    #7c2d12 100%
  );
  border-bottom-color: rgba(0, 0, 0, 0.38);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-event-icon-ring,
body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-event-icon-ring,
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="sunset"] .dashboard-cal-event-icon-ring,
body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="sunset"] .dashboard-cal-event-icon-ring {
  background-color: rgba(20, 27, 36, 0.96);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar {
  background: rgba(79, 70, 229, 0.12) !important;
  border-color: rgba(129, 140, 248, 0.3) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar-heading, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar-heading {
  color: #c7d2fe !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar .text-muted, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar .text-muted {
  color: #a5b4fc !important;
  opacity: 0.9 !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .btn-outline-dark, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .btn-outline-dark {
  color: #e0e7ff !important;
  border-color: #6366f1 !important;
  background-color: rgba(79, 70, 229, 0.2) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .btn-outline-dark:hover, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .btn-outline-dark:hover {
  color: #0f172a !important;
  background-color: #a5b4fc !important;
  border-color: #a5b4fc !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar .btn-dark:disabled, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(79, 70, 229, 0.16) !important;
  color: #a5b4fc !important;
  border-color: rgba(129, 140, 248, 0.32) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar .list-group-item, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar .list-group-item {
  background-color: rgba(24, 32, 44, 0.96) !important;
  color: #e2e8f0 !important;
  border-color: rgba(129, 140, 248, 0.26) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"], body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"],
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="desert"], body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="desert"] {
  --schedlie-surface: #1c1810;
  --schedlie-ink: #fef3c7;
  --schedlie-ink-muted: #d6b589;
  --schedlie-cal-outside-month-bg: #252018;
  --schedlie-today-bg: rgba(255, 255, 255, 0.04);
  --schedlie-today-ring: rgba(253, 230, 138, 0.22);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-event-icon-ring, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-event-icon-ring {
  background-color: rgba(28, 24, 16, 0.96);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar {
  background: rgba(180, 83, 9, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.32) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar-heading, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar-heading {
  color: #fde68a !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar .text-muted, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar .text-muted {
  color: #d6b589 !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .btn-outline-dark, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .btn-outline-dark {
  color: #fef3c7 !important;
  border-color: #ca8a04 !important;
  background-color: rgba(180, 83, 9, 0.22) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .btn-outline-dark:hover, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .btn-outline-dark:hover {
  color: #422006 !important;
  background-color: #f59e0b !important;
  border-color: #f59e0b !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar .btn-dark:disabled, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(180, 83, 9, 0.18) !important;
  color: #d6b589 !important;
  border-color: rgba(245, 158, 11, 0.32) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar .list-group-item, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar .list-group-item {
  background-color: rgba(42, 34, 21, 0.95) !important;
  color: #fef3c7 !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"], body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"],
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="retro"], body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="retro"] {
  --schedlie-surface: #1a1024;
  --schedlie-ink: #fae8ff;
  --schedlie-ink-muted: #e879f9;
  --schedlie-cal-outside-month-bg: #1e1428;
  --schedlie-today-bg: rgba(255, 255, 255, 0.04);
  --schedlie-today-ring: rgba(232, 121, 249, 0.22);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-event-icon-ring, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-event-icon-ring {
  background-color: rgba(26, 16, 36, 0.96);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar {
  background: rgba(168, 85, 247, 0.14) !important;
  border-color: rgba(217, 70, 239, 0.38) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar-heading, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar-heading {
  color: #f0abfc !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar .text-muted, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar .text-muted {
  color: #e879f9 !important;
  opacity: 0.9 !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .btn-outline-dark, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .btn-outline-dark {
  color: #fae8ff !important;
  border-color: #c026d3 !important;
  background-color: rgba(192, 38, 211, 0.18) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .btn-outline-dark:hover, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .btn-outline-dark:hover {
  color: #fff !important;
  background-color: #c026d3 !important;
  border-color: #c026d3 !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar .btn-dark:disabled, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(192, 38, 211, 0.16) !important;
  color: #e879f9 !important;
  border-color: rgba(217, 70, 239, 0.35) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar .list-group-item, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar .list-group-item {
  background-color: rgba(34, 16, 48, 0.95) !important;
  color: #f5d0fe !important;
  border-color: rgba(217, 70, 239, 0.32) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"], body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"],
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="forest"], body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-cal-theme="forest"] {
  --schedlie-surface: #0f1f14;
  --schedlie-ink: #ecfdf5;
  --schedlie-ink-muted: #86efac;
  --schedlie-cal-outside-month-bg: #142218;
  --schedlie-today-bg: rgba(255, 255, 255, 0.04);
  --schedlie-today-ring: rgba(74, 222, 128, 0.22);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-event-icon-ring, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-event-icon-ring {
  background-color: rgba(15, 31, 20, 0.96);
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar {
  background: rgba(22, 163, 74, 0.16) !important;
  border-color: rgba(74, 222, 128, 0.32) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar-heading, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar-heading {
  color: #bbf7d0 !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar .text-muted, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar .text-muted {
  color: #86efac !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .btn-outline-dark, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .btn-outline-dark {
  color: #ecfdf5 !important;
  border-color: #22c55e !important;
  background-color: rgba(22, 163, 74, 0.2) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .btn-outline-dark:hover, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .btn-outline-dark:hover {
  color: #052e16 !important;
  background-color: #4ade80 !important;
  border-color: #4ade80 !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar .btn-dark:disabled, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(22, 163, 74, 0.16) !important;
  color: #86efac !important;
  border-color: rgba(74, 222, 128, 0.3) !important;
}

body[data-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar .list-group-item, body[data-schedlie-preview-app-scheme="dark"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar .list-group-item {
  background-color: rgba(19, 42, 26, 0.95) !important;
  color: #ecfdf5 !important;
  border-color: rgba(74, 222, 128, 0.26) !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="light"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="light"] {
    --schedlie-surface: #1e1e1e;
    --schedlie-ink: #ececec;
    --schedlie-ink-muted: #a3a3a3;
    --schedlie-cal-line: rgba(255, 255, 255, 0.1);
    --schedlie-cal-outside-month-bg: #2a2a2a;
    --schedlie-cal-toolbar-bg: #3d3d3d;
    --schedlie-cal-weekday-bg: #525252;
    --schedlie-today-bg: rgba(255, 255, 255, 0.04);
    --schedlie-today-ring: rgba(255, 255, 255, 0.18);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="light"] .dashboard-cal-event-icon-ring {
    background-color: rgba(30, 30, 30, 0.96);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="rainbow"] {
    --schedlie-surface: #1a1b1f;
    --schedlie-ink: #e2e8f0;
    --schedlie-ink-muted: #94a3b8;
    --schedlie-cal-outside-month-bg: #22252c;
    --schedlie-today-bg: rgba(255, 255, 255, 0.04);
    --schedlie-today-ring: rgba(255, 255, 255, 0.14);
    --schedlie-cal-weekday-bg: #4338ca;
    --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.94);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-toolbar,
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="rainbow"] .dashboard-cal-toolbar {
    background: linear-gradient(
      90deg,
      #7f1d1d 0%,
      #7c2d12 10%,
      #713f12 20%,
      #14532d 30%,
      #134e4a 40%,
      #1e3a8a 50%,
      #4c1d95 60%,
      #701a75 70%,
      #831843 80%,
      #881337 90%,
      #7f1d1d 100%
    );
    border-bottom-color: rgba(0, 0, 0, 0.35);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-event-icon-ring {
    background-color: rgba(22, 25, 34, 0.96);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(129, 140, 248, 0.32) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar-heading {
    color: #c7d2fe !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar .text-muted {
    color: #a5b4fc !important;
    opacity: 0.92 !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .btn-outline-dark {
    color: #e0e7ff !important;
    border-color: #6366f1 !important;
    background-color: rgba(79, 70, 229, 0.2) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .btn-outline-dark:hover {
    color: #fff !important;
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar .btn-dark:disabled {
    background-color: rgba(79, 70, 229, 0.18) !important;
    color: #a5b4fc !important;
    border-color: rgba(129, 140, 248, 0.38) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="rainbow"] .dashboard-cal-sidebar .list-group-item {
    background-color: rgba(22, 26, 38, 0.96) !important;
    color: #e2e8f0 !important;
    border-color: rgba(129, 140, 248, 0.28) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="vibe"] {
    --schedlie-surface: #1b1628;
    --schedlie-ink: #ede9fe;
    --schedlie-ink-muted: #a78bfa;
    --schedlie-cal-outside-month-bg: #221a35;
    --schedlie-today-bg: rgba(124, 58, 237, 0.22);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-cell--today .dashboard-cal-daynum,
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="vibe"] .dashboard-cal-cell--today .dashboard-cal-daynum {
    color: #c4b5fd;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-home-week-dow--today .dashboard-home-week-dow-num,
  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-home-week-mobile-day--today .dashboard-home-week-mobile-daynum {
    color: #c4b5fd;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-toolbar,
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="vibe"] .dashboard-cal-toolbar {
    background: linear-gradient(90deg, #831843 0%, #4c1d95 45%, #1e3a8a 100%);
    border-bottom-color: rgba(0, 0, 0, 0.35);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-event-icon-ring {
    background-color: rgba(27, 22, 40, 0.96);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar {
    background: rgba(124, 58, 237, 0.14);
    border-color: rgba(124, 58, 237, 0.38) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar-heading {
    color: #c4b5fd !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar .text-muted {
    color: #a78bfa !important;
    opacity: 0.92 !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .btn-outline-dark {
    color: #ddd6fe !important;
    border-color: #7c3aed !important;
    background-color: rgba(124, 58, 237, 0.18) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .btn-outline-dark:hover {
    color: #fff !important;
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar .btn-dark:disabled {
    background-color: rgba(124, 58, 237, 0.2) !important;
    color: #a78bfa !important;
    border-color: rgba(124, 58, 237, 0.45) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar .list-group-item {
    background-color: rgba(30, 22, 48, 0.95) !important;
    color: #ddd6fe !important;
    border-color: rgba(124, 58, 237, 0.35) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="ocean"] {
    --schedlie-surface: #111c1e;
    --schedlie-ink: #ccfbf1;
    --schedlie-ink-muted: #5eead4;
    --schedlie-cal-outside-month-bg: #151a1c;
    --schedlie-today-bg: rgba(255, 255, 255, 0.04);
    --schedlie-today-ring: rgba(45, 212, 191, 0.2);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-toolbar,
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="ocean"] .dashboard-cal-toolbar {
    background: linear-gradient(90deg, #0c4a6e 0%, #134e4a 24%, #0f766e 52%, #115e59 100%);
    border-bottom-color: rgba(0, 0, 0, 0.35);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-event-icon-ring {
    background-color: rgba(17, 28, 30, 0.96);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar {
    background: rgba(14, 116, 144, 0.2) !important;
    border-color: rgba(45, 212, 191, 0.35) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar-heading {
    color: #99f6e4 !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar .text-muted {
    color: #5eead4 !important;
    opacity: 0.88 !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .btn-outline-dark {
    color: #ccfbf1 !important;
    border-color: #14b8a6 !important;
    background-color: rgba(13, 148, 136, 0.22) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .btn-outline-dark:hover {
    color: #042f2e !important;
    background-color: #2dd4bf !important;
    border-color: #2dd4bf !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar .btn-dark:disabled {
    background-color: rgba(13, 148, 136, 0.2) !important;
    color: #5eead4 !important;
    border-color: rgba(45, 212, 191, 0.35) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="ocean"] .dashboard-cal-sidebar .list-group-item {
    background-color: rgba(15, 35, 38, 0.95) !important;
    color: #ccfbf1 !important;
    border-color: rgba(45, 212, 191, 0.28) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="sunset"] {
    --schedlie-surface: #181b22;
    --schedlie-ink: #e2e8f0;
    --schedlie-ink-muted: #94a3b8;
    --schedlie-cal-outside-month-bg: #22252d;
    --schedlie-today-bg: rgba(255, 255, 255, 0.04);
    --schedlie-today-ring: rgba(255, 255, 255, 0.14);
    --schedlie-cal-weekday-bg: #4f46e5;
    --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.94);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-toolbar,
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="sunset"] .dashboard-cal-toolbar {
    background: linear-gradient(
      90deg,
      #0c4a6e 0%,
      #1e3a8a 16%,
      #3730a3 32%,
      #831843 48%,
      #9a3412 64%,
      #c2410c 84%,
      #7c2d12 100%
    );
    border-bottom-color: rgba(0, 0, 0, 0.38);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-event-icon-ring {
    background-color: rgba(20, 27, 36, 0.96);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar {
    background: rgba(79, 70, 229, 0.12) !important;
    border-color: rgba(129, 140, 248, 0.3) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar-heading {
    color: #c7d2fe !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar .text-muted {
    color: #a5b4fc !important;
    opacity: 0.9 !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .btn-outline-dark {
    color: #e0e7ff !important;
    border-color: #6366f1 !important;
    background-color: rgba(79, 70, 229, 0.2) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .btn-outline-dark:hover {
    color: #0f172a !important;
    background-color: #a5b4fc !important;
    border-color: #a5b4fc !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar .btn-dark:disabled {
    background-color: rgba(79, 70, 229, 0.16) !important;
    color: #a5b4fc !important;
    border-color: rgba(129, 140, 248, 0.32) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="sunset"] .dashboard-cal-sidebar .list-group-item {
    background-color: rgba(24, 32, 44, 0.96) !important;
    color: #e2e8f0 !important;
    border-color: rgba(129, 140, 248, 0.26) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="desert"] {
    --schedlie-surface: #1c1810;
    --schedlie-ink: #fef3c7;
    --schedlie-ink-muted: #d6b589;
    --schedlie-cal-outside-month-bg: #252018;
    --schedlie-today-bg: rgba(255, 255, 255, 0.04);
    --schedlie-today-ring: rgba(253, 230, 138, 0.22);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-event-icon-ring {
    background-color: rgba(28, 24, 16, 0.96);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar {
    background: rgba(180, 83, 9, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.32) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar-heading {
    color: #fde68a !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar .text-muted {
    color: #d6b589 !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .btn-outline-dark {
    color: #fef3c7 !important;
    border-color: #ca8a04 !important;
    background-color: rgba(180, 83, 9, 0.22) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .btn-outline-dark:hover {
    color: #422006 !important;
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar .btn-dark:disabled {
    background-color: rgba(180, 83, 9, 0.18) !important;
    color: #d6b589 !important;
    border-color: rgba(245, 158, 11, 0.32) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="desert"] .dashboard-cal-sidebar .list-group-item {
    background-color: rgba(42, 34, 21, 0.95) !important;
    color: #fef3c7 !important;
    border-color: rgba(245, 158, 11, 0.28) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="retro"] {
    --schedlie-surface: #1a1024;
    --schedlie-ink: #fae8ff;
    --schedlie-ink-muted: #e879f9;
    --schedlie-cal-outside-month-bg: #1e1428;
    --schedlie-today-bg: rgba(255, 255, 255, 0.04);
    --schedlie-today-ring: rgba(232, 121, 249, 0.22);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-event-icon-ring {
    background-color: rgba(26, 16, 36, 0.96);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar {
    background: rgba(168, 85, 247, 0.14) !important;
    border-color: rgba(217, 70, 239, 0.38) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar-heading {
    color: #f0abfc !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar .text-muted {
    color: #e879f9 !important;
    opacity: 0.9 !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .btn-outline-dark {
    color: #fae8ff !important;
    border-color: #c026d3 !important;
    background-color: rgba(192, 38, 211, 0.18) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .btn-outline-dark:hover {
    color: #fff !important;
    background-color: #c026d3 !important;
    border-color: #c026d3 !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar .btn-dark:disabled {
    background-color: rgba(192, 38, 211, 0.16) !important;
    color: #e879f9 !important;
    border-color: rgba(217, 70, 239, 0.35) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="retro"] .dashboard-cal-sidebar .list-group-item {
    background-color: rgba(34, 16, 48, 0.95) !important;
    color: #f5d0fe !important;
    border-color: rgba(217, 70, 239, 0.32) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="forest"] {
    --schedlie-surface: #0f1f14;
    --schedlie-ink: #ecfdf5;
    --schedlie-ink-muted: #86efac;
    --schedlie-cal-outside-month-bg: #142218;
    --schedlie-today-bg: rgba(255, 255, 255, 0.04);
    --schedlie-today-ring: rgba(74, 222, 128, 0.22);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-event-icon-ring {
    background-color: rgba(15, 31, 20, 0.96);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar {
    background: rgba(22, 163, 74, 0.16) !important;
    border-color: rgba(74, 222, 128, 0.32) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar-heading {
    color: #bbf7d0 !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar .text-muted {
    color: #86efac !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .btn-outline-dark {
    color: #ecfdf5 !important;
    border-color: #22c55e !important;
    background-color: rgba(22, 163, 74, 0.2) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .btn-outline-dark:hover {
    color: #052e16 !important;
    background-color: #4ade80 !important;
    border-color: #4ade80 !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar .btn-dark:disabled {
    background-color: rgba(22, 163, 74, 0.16) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.3) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="forest"] .dashboard-cal-sidebar .list-group-item {
    background-color: rgba(19, 42, 26, 0.95) !important;
    color: #ecfdf5 !important;
    border-color: rgba(74, 222, 128, 0.26) !important;
  }
}

/*
 * Calendar settings: data-schedlie-preview-app-scheme on main / #schedlieCalThemePreviewRoot simulates
 * light-app vs dark-app calendar pairing without changing the global nav theme.
 */
main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="light"],
div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="light"] {
  --schedlie-surface: #1e1e1e;
  --schedlie-ink: #ececec;
  --schedlie-ink-muted: #a3a3a3;
  --schedlie-cal-line: rgba(255, 255, 255, 0.1);
  --schedlie-cal-outside-month-bg: #2a2a2a;
  --schedlie-cal-toolbar-bg: #3d3d3d;
  --schedlie-cal-weekday-bg: #525252;
  --schedlie-today-bg: rgba(255, 255, 255, 0.04);
  --schedlie-today-ring: rgba(255, 255, 255, 0.18);
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="light"] .dashboard-cal-event-icon-ring,
div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="light"] .dashboard-cal-event-icon-ring {
  background-color: rgba(30, 30, 30, 0.96);
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"],
div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] {
  --schedlie-surface: #1a1b1f;
  --schedlie-ink: #e2e8f0;
  --schedlie-ink-muted: #94a3b8;
  --schedlie-cal-outside-month-bg: #22252c;
  --schedlie-today-bg: rgba(255, 255, 255, 0.04);
  --schedlie-today-ring: rgba(255, 255, 255, 0.14);
  --schedlie-cal-weekday-bg: #4338ca;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.94);
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] .dashboard-cal-toolbar,
div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] .dashboard-cal-toolbar {
  background: linear-gradient(
    90deg,
    #7f1d1d 0%,
    #7c2d12 10%,
    #713f12 20%,
    #14532d 30%,
    #134e4a 40%,
    #1e3a8a 50%,
    #4c1d95 60%,
    #701a75 70%,
    #831843 80%,
    #881337 90%,
    #7f1d1d 100%
  );
  border-bottom-color: rgba(0, 0, 0, 0.35);
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] .dashboard-cal-event-icon-ring,
div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] .dashboard-cal-event-icon-ring {
  background-color: rgba(22, 25, 34, 0.96);
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] .dashboard-cal-sidebar {
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(129, 140, 248, 0.32) !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] .dashboard-cal-sidebar-heading {
  color: #c7d2fe !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] .dashboard-cal-sidebar .text-muted {
  color: #a5b4fc !important;
  opacity: 0.92 !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] .btn-outline-dark {
  color: #e0e7ff !important;
  border-color: #6366f1 !important;
  background-color: rgba(79, 70, 229, 0.2) !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] .btn-outline-dark:hover {
  color: #fff !important;
  background-color: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(79, 70, 229, 0.18) !important;
  color: #a5b4fc !important;
  border-color: rgba(129, 140, 248, 0.38) !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] .dashboard-cal-sidebar .list-group-item {
  background-color: rgba(22, 26, 38, 0.96) !important;
  color: #e2e8f0 !important;
  border-color: rgba(129, 140, 248, 0.28) !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"],
div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] {
  --schedlie-surface: #111c1e;
  --schedlie-ink: #ccfbf1;
  --schedlie-ink-muted: #5eead4;
  --schedlie-cal-outside-month-bg: #151a1c;
  --schedlie-today-bg: rgba(255, 255, 255, 0.04);
  --schedlie-today-ring: rgba(45, 212, 191, 0.2);
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] .dashboard-cal-toolbar,
div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] .dashboard-cal-toolbar {
  background: linear-gradient(90deg, #0c4a6e 0%, #134e4a 24%, #0f766e 52%, #115e59 100%);
  border-bottom-color: rgba(0, 0, 0, 0.35);
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] .dashboard-cal-event-icon-ring,
div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] .dashboard-cal-event-icon-ring {
  background-color: rgba(17, 28, 30, 0.96);
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] .dashboard-cal-sidebar {
  background: rgba(14, 116, 144, 0.2) !important;
  border-color: rgba(45, 212, 191, 0.35) !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] .dashboard-cal-sidebar-heading {
  color: #99f6e4 !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] .dashboard-cal-sidebar .text-muted {
  color: #5eead4 !important;
  opacity: 0.88 !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] .btn-outline-dark {
  color: #ccfbf1 !important;
  border-color: #14b8a6 !important;
  background-color: rgba(13, 148, 136, 0.22) !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] .btn-outline-dark:hover {
  color: #042f2e !important;
  background-color: #2dd4bf !important;
  border-color: #2dd4bf !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(13, 148, 136, 0.2) !important;
  color: #5eead4 !important;
  border-color: rgba(45, 212, 191, 0.35) !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] .dashboard-cal-sidebar .list-group-item {
  background-color: rgba(15, 35, 38, 0.95) !important;
  color: #ccfbf1 !important;
  border-color: rgba(45, 212, 191, 0.28) !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"],
div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"] {
  --schedlie-surface: #181b22;
  --schedlie-ink: #e2e8f0;
  --schedlie-ink-muted: #94a3b8;
  --schedlie-cal-outside-month-bg: #22252d;
  --schedlie-today-bg: rgba(255, 255, 255, 0.04);
  --schedlie-today-ring: rgba(255, 255, 255, 0.14);
  --schedlie-cal-weekday-bg: #4f46e5;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.94);
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"] .dashboard-cal-toolbar,
div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"] .dashboard-cal-toolbar {
  background: linear-gradient(
    90deg,
    #0c4a6e 0%,
    #1e3a8a 16%,
    #3730a3 32%,
    #831843 48%,
    #9a3412 64%,
    #c2410c 84%,
    #7c2d12 100%
  );
  border-bottom-color: rgba(0, 0, 0, 0.38);
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"] .dashboard-cal-event-icon-ring,
div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"] .dashboard-cal-event-icon-ring {
  background-color: rgba(20, 27, 36, 0.96);
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"] .dashboard-cal-sidebar {
  background: rgba(79, 70, 229, 0.12) !important;
  border-color: rgba(129, 140, 248, 0.3) !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"] .dashboard-cal-sidebar-heading {
  color: #c7d2fe !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"] .dashboard-cal-sidebar .text-muted {
  color: #a5b4fc !important;
  opacity: 0.9 !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"] .btn-outline-dark {
  color: #e0e7ff !important;
  border-color: #6366f1 !important;
  background-color: rgba(79, 70, 229, 0.2) !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"] .btn-outline-dark:hover {
  color: #0f172a !important;
  background-color: #a5b4fc !important;
  border-color: #a5b4fc !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(79, 70, 229, 0.16) !important;
  color: #a5b4fc !important;
  border-color: rgba(129, 140, 248, 0.32) !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="sunset"] .dashboard-cal-sidebar .list-group-item {
  background-color: rgba(24, 32, 44, 0.96) !important;
  color: #e2e8f0 !important;
  border-color: rgba(129, 140, 248, 0.26) !important;
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"] .dashboard-cal-cell--day-selected {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42);
}

main.dashboard-page[data-schedlie-preview-app-scheme="dark"] .dashboard-cal-cell--today.dashboard-cal-cell--day-selected {
  box-shadow:
    inset 0 0 0 1px var(--schedlie-today-ring),
    inset 0 0 0 3px rgba(255, 255, 255, 0.34);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="light"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="light"] {
    --schedlie-surface: #1e1e1e;
    --schedlie-ink: #ececec;
    --schedlie-ink-muted: #a3a3a3;
    --schedlie-cal-line: rgba(255, 255, 255, 0.1);
    --schedlie-cal-outside-month-bg: #2a2a2a;
    --schedlie-cal-toolbar-bg: #3d3d3d;
    --schedlie-cal-weekday-bg: #525252;
    --schedlie-today-bg: rgba(255, 255, 255, 0.04);
    --schedlie-today-ring: rgba(255, 255, 255, 0.18);
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="light"] .dashboard-cal-event-icon-ring,
  body[data-app-scheme="system"]
    div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="light"]
    .dashboard-cal-event-icon-ring {
    background-color: rgba(30, 30, 30, 0.96);
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] {
    --schedlie-surface: #1a1b1f;
    --schedlie-ink: #e2e8f0;
    --schedlie-ink-muted: #94a3b8;
    --schedlie-cal-outside-month-bg: #22252c;
    --schedlie-today-bg: rgba(255, 255, 255, 0.04);
    --schedlie-today-ring: rgba(255, 255, 255, 0.14);
    --schedlie-cal-weekday-bg: #4338ca;
    --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.94);
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"] .dashboard-cal-toolbar,
  body[data-app-scheme="system"]
    div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="rainbow"]
    .dashboard-cal-toolbar {
    background: linear-gradient(
      90deg,
      #7f1d1d 0%,
      #7c2d12 10%,
      #713f12 20%,
      #14532d 30%,
      #134e4a 40%,
      #1e3a8a 50%,
      #4c1d95 60%,
      #701a75 70%,
      #831843 80%,
      #881337 90%,
      #7f1d1d 100%
    );
    border-bottom-color: rgba(0, 0, 0, 0.35);
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] {
    --schedlie-surface: #111c1e;
    --schedlie-ink: #ccfbf1;
    --schedlie-ink-muted: #5eead4;
    --schedlie-cal-outside-month-bg: #151a1c;
    --schedlie-today-bg: rgba(255, 255, 255, 0.04);
    --schedlie-today-ring: rgba(45, 212, 191, 0.2);
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"] .dashboard-cal-toolbar,
  body[data-app-scheme="system"]
    div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="ocean"]
    .dashboard-cal-toolbar {
    background: linear-gradient(90deg, #0c4a6e 0%, #134e4a 24%, #0f766e 52%, #115e59 100%);
    border-bottom-color: rgba(0, 0, 0, 0.35);
  }
}

/* Preview “light app” while global shell is dark (overrides dark-app calendar pairing above) */
body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="light"], body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="light"],
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="light"], body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="light"] {
  --schedlie-surface: #ffffff;
  --schedlie-ink: #0f172a;
  --schedlie-ink-muted: #64748b;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="light"] .dashboard-cal-event-icon-ring, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="light"] .dashboard-cal-event-icon-ring,
body[data-app-scheme="dark"]
  div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="light"]
  .dashboard-cal-event-icon-ring {
  background-color: rgba(255, 255, 255, 0.94);
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"], body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"],
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"], body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] {
  --schedlie-surface: #fafbfc;
  --schedlie-ink: #0f172a;
  --schedlie-ink-muted: #64748b;
  --schedlie-cal-toolbar-title: #ffffff;
  --schedlie-cal-weekday-bg: #5b21b6;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.96);
  --schedlie-cal-outside-month-bg: #f0f2f4;
  --schedlie-today-bg: rgba(15, 23, 42, 0.035);
  --schedlie-today-ring: rgba(15, 23, 42, 0.11);
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"], body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"],
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"], body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] {
  --schedlie-surface: #f8fafb;
  --schedlie-ink: #134e4a;
  --schedlie-ink-muted: #5b8a87;
  --schedlie-cal-toolbar-title: #ecfeff;
  --schedlie-cal-weekday-bg: #155e75;
  --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.96);
  --schedlie-cal-outside-month-bg: #eef1f3;
  --schedlie-today-bg: rgba(15, 23, 42, 0.035);
  --schedlie-today-ring: rgba(14, 116, 144, 0.22);
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-toolbar,
body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-toolbar,
body[data-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-toolbar,
body[data-schedlie-preview-app-scheme="dark"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-toolbar {
  background: linear-gradient(90deg, #0369a1 0%, #0e7490 22%, #14b8a6 50%, #0d9488 78%, #155e75 100%);
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar {
  background: #f8fafc;
  border-color: rgba(79, 70, 229, 0.18) !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar-heading, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar-heading {
  color: #3730a3 !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar .text-muted, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar .text-muted {
  color: #6366f1 !important;
  opacity: 0.85 !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .btn-outline-dark, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .btn-outline-dark {
  color: #4338ca !important;
  border-color: #6366f1 !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .btn-outline-dark:hover, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .btn-outline-dark:hover {
  color: #fff !important;
  background-color: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar .btn-dark:disabled, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(99, 102, 241, 0.12) !important;
  color: #6366f1 !important;
  border-color: rgba(99, 102, 241, 0.32) !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar .list-group-item, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar .list-group-item {
  background-color: #fff !important;
  color: #4338ca !important;
  border-color: rgba(99, 102, 241, 0.22) !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-sidebar, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-sidebar {
  background: #ecfeff !important;
  border-color: rgba(14, 116, 144, 0.22) !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-sidebar-heading, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-sidebar-heading {
  color: #134e4a !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-sidebar .text-muted, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-sidebar .text-muted {
  color: #5b8a87 !important;
  opacity: 1 !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .btn-outline-dark, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .btn-outline-dark {
  color: #115e59 !important;
  border-color: #0d9488 !important;
  background-color: rgba(255, 255, 255, 0.65) !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .btn-outline-dark:hover, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .btn-outline-dark:hover {
  color: #fff !important;
  background-color: #0d9488 !important;
  border-color: #0d9488 !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-sidebar .btn-dark:disabled, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-sidebar .btn-dark:disabled {
  background-color: rgba(13, 148, 136, 0.25) !important;
  color: #5b8a87 !important;
  border-color: rgba(13, 148, 136, 0.35) !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-sidebar .list-group-item, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-sidebar .list-group-item {
  background-color: #fff !important;
  color: #134e4a !important;
  border-color: rgba(14, 116, 144, 0.25) !important;
}

body[data-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"]:not([data-cal-theme="dark"]) .dashboard-cal-cell--day-selected, body[data-schedlie-preview-app-scheme="dark"] main.dashboard-page[data-schedlie-preview-app-scheme="light"]:not([data-cal-theme="dark"]) .dashboard-cal-cell--day-selected {
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.38);
  background-color: transparent;
}

body[data-app-scheme="dark"]
  main.dashboard-page[data-schedlie-preview-app-scheme="light"]:not([data-cal-theme="dark"])
  .dashboard-cal-cell--today.dashboard-cal-cell--day-selected {
  box-shadow:
    inset 0 0 0 1px var(--schedlie-today-ring),
    inset 0 0 0 3px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="light"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="light"] {
    --schedlie-surface: #ffffff;
    --schedlie-ink: #0f172a;
    --schedlie-ink-muted: #64748b;
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] {
    --schedlie-surface: #ffffff;
    --schedlie-ink: #0f172a;
    --schedlie-ink-muted: #64748b;
    --schedlie-cal-toolbar-title: #ffffff;
    --schedlie-cal-weekday-bg: #6d28d9;
    --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.96);
    --schedlie-cal-outside-month-bg: #faf5ff;
    --schedlie-today-bg: rgba(124, 58, 237, 0.1);
    --schedlie-today-ring: rgba(124, 58, 237, 0.6);
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] {
    --schedlie-surface: #ffffff;
    --schedlie-ink: #134e4a;
    --schedlie-ink-muted: #5b8a87;
    --schedlie-cal-toolbar-title: #ecfeff;
    --schedlie-cal-weekday-bg: #155e75;
    --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.96);
    --schedlie-cal-outside-month-bg: #e0f2fe;
    --schedlie-today-bg: rgba(14, 116, 144, 0.1);
    --schedlie-today-ring: rgba(6, 95, 115, 0.75);
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-toolbar,
  body[data-app-scheme="system"]
    div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"]
    .dashboard-cal-toolbar {
    background: linear-gradient(90deg, #0369a1 0%, #0e7490 22%, #14b8a6 50%, #0d9488 78%, #155e75 100%);
    border-bottom-color: rgba(0, 0, 0, 0.12);
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"]
    .dashboard-cal-cell--today
    .dashboard-cal-daynum,
  body[data-app-scheme="system"]
    div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"]
    .dashboard-cal-cell--today
    .dashboard-cal-daynum {
    color: #6d28d9;
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"]
    .dashboard-cal-cell--today
    .dashboard-cal-daynum,
  body[data-app-scheme="system"]
    div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"]
    .dashboard-cal-cell--today
    .dashboard-cal-daynum {
    color: #0e7490;
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar {
    background: #faf5ff !important;
    border-color: rgba(124, 58, 237, 0.2) !important;
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar-heading {
    color: #4c1d95 !important;
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="rainbow"] .dashboard-cal-sidebar .text-muted {
    color: #7c3aed !important;
    opacity: 0.85 !important;
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-sidebar {
    background: #ecfeff !important;
    border-color: rgba(14, 116, 144, 0.22) !important;
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="ocean"] .dashboard-cal-sidebar-heading {
    color: #134e4a !important;
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"]:not([data-cal-theme="dark"]) .dashboard-cal-cell--day-selected {
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.38);
    background-color: transparent;
  }
}

/* Calendar settings: force light app shell when previewing “Light app” on a dark global theme */
body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] {
  --schedlie-page-bg: #eceff3;
  --schedlie-surface: #ffffff;
  --schedlie-ink: #0f172a;
  --schedlie-ink-muted: #64748b;
  --schedlie-accent: #4f46e5;
  --schedlie-accent-hover: #4338ca;
  --schedlie-cal-line: rgba(0, 0, 0, 0.12);
  --schedlie-cal-muted-fill: rgba(0, 0, 0, 0.065);
  --schedlie-form-border: #7b7b7b;
  --schedlie-form-focus-ring: rgba(123, 123, 123, 0.25);
  --schedlie-form-check-unchecked-bg: #d8dce2;
  --schedlie-form-check-unchecked-border: #8d96a3;
  --schedlie-form-check-checked: #3f4754;
  --schedlie-form-check-checked-focus-ring: rgba(63, 71, 84, 0.38);
  --schedlie-form-radio-unchecked-bg: #ccd2dc;
  --schedlie-form-radio-unchecked-border: #c5cdd8;
  --schedlie-form-radio-checked-center: #2c3340;
  --schedlie-form-radio-ring: #edf0f4;
  --schedlie-form-radio-focus-ring: rgba(44, 51, 64, 0.38);
  --bs-body-bg: #eceff3;
  --bs-body-color: #0f172a;
  --bs-secondary-color: #64748b;
  --bs-emphasis-color: #0f172a;
  --bs-card-bg: #ffffff;
  --bs-card-border-color: rgba(0, 0, 0, 0.08);
  --bs-border-color: rgba(0, 0, 0, 0.12);
  --bs-table-color: #0f172a;
  --bs-table-border-color: rgba(0, 0, 0, 0.1);
  background: linear-gradient(165deg, #e8ecf2 0%, #eceff3 40%, #f4f6f8 100%);
  background-color: var(--schedlie-page-bg);
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .navbar.navbar-light.bg-light {
  background-color: #f8f9fa !important;
  border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .navbar-brand,
body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .navbar .nav-link.text-dark {
  color: #212529 !important;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.15);
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .navbar-toggler-icon {
  filter: none;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .navbar-icon-btn:hover,
body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .navbar-icon-btn:focus-visible {
  background-color: rgba(0, 0, 0, 0.05);
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] footer.bg-light {
  background-color: #f8f9fa !important;
  border-top-color: rgba(0, 0, 0, 0.1) !important;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] footer .text-muted {
  color: #6c757d !important;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .account-nav.card {
  background-color: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .account-nav .nav-pills .nav-link {
  color: #64748b;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .account-nav .nav-pills .nav-link:hover {
  color: #0f172a;
  background-color: rgba(0, 0, 0, 0.04);
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .account-nav .nav-pills .nav-link.active {
  background-color: #0f172a;
  color: #fff;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .account-nav .nav-pills .nav-link.active:hover {
  background-color: #1e293b;
  color: #fff;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .dashboard-main-card {
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.045),
    0 12px 32px -8px rgba(15, 23, 42, 0.09) !important;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .btn-outline-dark {
  color: #212529;
  border-color: rgba(0, 0, 0, 0.35);
  background-color: transparent;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .btn-outline-dark:hover {
  color: #fff;
  background-color: #212529;
  border-color: #212529;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .btn-outline-secondary {
  color: #64748b;
  border-color: rgba(0, 0, 0, 0.2);
  background-color: transparent;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .btn-outline-secondary:hover {
  color: #0f172a;
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.25);
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .btn-dark {
  background-color: #212529;
  border-color: #212529;
  color: #fff;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .btn-dark:hover {
  background-color: #000;
  border-color: #000;
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] #app-toast-host .alert {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .calendar-settings-type-table td,
body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .schedlie-etype-icon-grid__row {
  color: var(--schedlie-ink);
}

body[data-app-scheme="dark"][data-schedlie-preview-app-scheme="light"] .cal-theme-picker .btn-check:checked + .cal-theme-option {
  border-color: rgba(0, 0, 0, 0.2);
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--schedlie-ink);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"][data-schedlie-preview-app-scheme="light"] {
    --schedlie-page-bg: #eceff3;
    --schedlie-surface: #ffffff;
    --schedlie-ink: #0f172a;
    --schedlie-ink-muted: #64748b;
    --schedlie-accent: #4f46e5;
    --schedlie-accent-hover: #4338ca;
    --schedlie-cal-line: rgba(0, 0, 0, 0.12);
    --schedlie-cal-muted-fill: rgba(0, 0, 0, 0.065);
    --schedlie-form-border: #7b7b7b;
    --schedlie-form-focus-ring: rgba(123, 123, 123, 0.25);
    --schedlie-form-check-unchecked-bg: #d8dce2;
    --schedlie-form-check-unchecked-border: #8d96a3;
    --schedlie-form-check-checked: #3f4754;
    --schedlie-form-check-checked-focus-ring: rgba(63, 71, 84, 0.38);
    --schedlie-form-radio-unchecked-bg: #ccd2dc;
    --schedlie-form-radio-unchecked-border: #c5cdd8;
    --schedlie-form-radio-checked-center: #2c3340;
    --schedlie-form-radio-ring: #edf0f4;
    --schedlie-form-radio-focus-ring: rgba(44, 51, 64, 0.38);
    --bs-body-bg: #eceff3;
    --bs-body-color: #0f172a;
    --bs-secondary-color: #64748b;
    --bs-emphasis-color: #0f172a;
    --bs-card-bg: #ffffff;
    --bs-card-border-color: rgba(0, 0, 0, 0.08);
    --bs-border-color: rgba(0, 0, 0, 0.12);
    --bs-table-color: #0f172a;
    --bs-table-border-color: rgba(0, 0, 0, 0.1);
    background: linear-gradient(165deg, #e8ecf2 0%, #eceff3 40%, #f4f6f8 100%);
    background-color: var(--schedlie-page-bg);
  }

  body[data-app-scheme="system"][data-schedlie-preview-app-scheme="light"] .navbar.navbar-light.bg-light {
    background-color: #f8f9fa !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
  }

  body[data-app-scheme="system"][data-schedlie-preview-app-scheme="light"] .navbar-brand,
  body[data-app-scheme="system"][data-schedlie-preview-app-scheme="light"] .navbar .nav-link.text-dark {
    color: #212529 !important;
  }

  body[data-app-scheme="system"][data-schedlie-preview-app-scheme="light"] .navbar-toggler-icon {
    filter: none;
  }

  body[data-app-scheme="system"][data-schedlie-preview-app-scheme="light"] footer.bg-light {
    background-color: #f8f9fa !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
  }

  body[data-app-scheme="system"][data-schedlie-preview-app-scheme="light"] .account-nav.card {
    background-color: #fff;
    border-color: rgba(0, 0, 0, 0.08);
  }

  body[data-app-scheme="system"][data-schedlie-preview-app-scheme="light"] .dashboard-main-card {
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.045),
      0 12px 32px -8px rgba(15, 23, 42, 0.09) !important;
  }
}

/* Calendar settings: icon-only light/dark full-page preview toggle */
.schedlie-cal-app-preview-picker .cal-app-preview-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.schedlie-cal-app-preview-picker .cal-app-preview-icon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="vibe"],
  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="vibe"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="vibe"] {
    --schedlie-surface: #1b1628;
    --schedlie-ink: #ede9fe;
    --schedlie-ink-muted: #a78bfa;
    --schedlie-cal-outside-month-bg: #221a35;
    --schedlie-today-bg: rgba(124, 58, 237, 0.22);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-toolbar,
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-cal-theme="vibe"] .dashboard-cal-toolbar,
  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="vibe"] .dashboard-cal-toolbar,
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="dark"][data-cal-theme="vibe"] .dashboard-cal-toolbar {
    background: linear-gradient(90deg, #831843 0%, #4c1d95 45%, #1e3a8a 100%);
    border-bottom-color: rgba(0, 0, 0, 0.35);
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .dashboard-cal-sidebar,
  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="vibe"] .dashboard-cal-sidebar {
    background: rgba(124, 58, 237, 0.14);
    border-color: rgba(124, 58, 237, 0.38) !important;
  }

  body[data-app-scheme="system"] :is(main.dashboard-page, main.schedlie-event-standalone, .schedlie-event-modal, .modal[data-cal-theme], .schedlie-settings-sidebar-theme-root)[data-cal-theme="vibe"] .btn-outline-dark,
  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="dark"][data-cal-theme="vibe"] .btn-outline-dark {
    color: #ddd6fe !important;
    border-color: #7c3aed !important;
    background-color: rgba(124, 58, 237, 0.18) !important;
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="vibe"],
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="vibe"] {
    --schedlie-surface: #ffffff;
    --schedlie-ink: #0f172a;
    --schedlie-ink-muted: #64748b;
    --schedlie-cal-toolbar-title: #ffffff;
    --schedlie-cal-weekday-bg: #6d28d9;
    --schedlie-cal-weekday-fg: rgba(255, 255, 255, 0.96);
    --schedlie-cal-outside-month-bg: #faf5ff;
    --schedlie-today-bg: rgba(124, 58, 237, 0.1);
    --schedlie-today-ring: rgba(124, 58, 237, 0.6);
  }

  body[data-app-scheme="system"] main.dashboard-page[data-schedlie-preview-app-scheme="light"][data-cal-theme="vibe"] .dashboard-cal-toolbar,
  body[data-app-scheme="system"] div.schedlie-cal-theme-preview-root[data-schedlie-preview-app-scheme="light"][data-cal-theme="vibe"] .dashboard-cal-toolbar {
    background: linear-gradient(90deg, #db2777 0%, #7c3aed 45%, #2563eb 100%);
    border-bottom-color: rgba(0, 0, 0, 0.12);
  }
}

/* Professional profile — third-party email “Include in email” panel */
.schedlie-tp-include-panel {
  background-color: var(--bs-tertiary-bg);
}

@media (max-width: 991.98px) {
  #schedlie-communications-card .schedlie-tp-email-sidebar {
    max-width: none !important;
  }
}

.schedlie-comms-sms-sample {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.5;
  color: var(--schedlie-ink, #1c1917);
  background-color: var(--bs-tertiary-bg, #f5f5f4);
  border-color: var(--bs-border-color, #e7e5e4) !important;
}

body[data-app-scheme="dark"] .schedlie-comms-sms-sample {
  color: var(--schedlie-ink, #ececec);
  background-color: rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-comms-sms-sample {
    color: var(--schedlie-ink, #ececec);
    background-color: rgba(255, 255, 255, 0.06);
  }
}

/* Profile: sticky bottom-center Save All Changes control */
.profile-page-main {
  padding-bottom: 6.5rem;
}

.profile-save-all-dock {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 1030;
  width: auto;
}

.profile-save-all-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0;
}

#profile-save-all-btn {
  border-radius: 999px;
  min-width: 13.125rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
}

#profile-save-all-status {
  line-height: 1.2;
  text-align: center;
}

body[data-app-scheme="dark"] #profile-save-all-btn,
body[data-schedlie-preview-app-scheme="dark"] #profile-save-all-btn {
  border: 1px solid rgba(255, 255, 255, 0.85);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] #profile-save-all-btn {
    border: 1px solid rgba(255, 255, 255, 0.85);
  }
}

/* Organisation manage: centered floating green save pill */
.schedlie-org-manage-save-dock {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.schedlie-org-manage-save-dock.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.2s ease, opacity 0.35s ease;
}

.schedlie-org-manage-save-dock--fading {
  opacity: 0;
  pointer-events: none;
}

.schedlie-org-manage-save-pill {
  --schedlie-org-save-pill-bg: #00612c;
  --schedlie-org-save-pill-border: #004d23;
  --schedlie-org-save-pill-hover: #004d23;
  --schedlie-org-save-pill-active: #003d1c;
  border-radius: 999px;
  min-width: 11.5rem;
  padding: 0.5rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  background-color: var(--schedlie-org-save-pill-bg);
  border: 1px solid var(--schedlie-org-save-pill-border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.schedlie-org-manage-save-pill:hover,
.schedlie-org-manage-save-pill:focus-visible {
  color: #fff;
  background-color: var(--schedlie-org-save-pill-hover);
  border-color: var(--schedlie-org-save-pill-active);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
}

.schedlie-org-manage-save-pill:active {
  color: #fff;
  background-color: var(--schedlie-org-save-pill-active);
  border-color: #003318;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.schedlie-org-manage-save-pill:disabled:not(.schedlie-org-manage-save-pill--saved) {
  opacity: 0.65;
}

.schedlie-org-manage-save-pill--saved,
.schedlie-org-manage-save-pill--saved:disabled {
  opacity: 1;
  color: #fff;
  background-color: var(--schedlie-org-save-pill-bg);
  border-color: var(--schedlie-org-save-pill-border);
  pointer-events: none;
}

body[data-app-scheme="dark"] .schedlie-org-manage-save-pill,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-org-manage-save-pill {
  --schedlie-org-save-pill-bg: #00612c;
  --schedlie-org-save-pill-border: #004d23;
  --schedlie-org-save-pill-hover: #007a37;
  --schedlie-org-save-pill-active: #004d23;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-org-manage-save-pill {
    --schedlie-org-save-pill-bg: #00612c;
    --schedlie-org-save-pill-border: #004d23;
    --schedlie-org-save-pill-hover: #007a37;
    --schedlie-org-save-pill-active: #004d23;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  }
}

/* Settings pages: sticky bottom save bar when a form is dirty */
body.schedlie-settings-save-dirty {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

.schedlie-settings-save-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.schedlie-settings-save-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.schedlie-settings-save-bar__shell {
  background-color: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.schedlie-settings-save-bar__content {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 576px) {
  .schedlie-settings-save-bar__content {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .schedlie-settings-save-bar__content {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .schedlie-settings-save-bar__content {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .schedlie-settings-save-bar__content {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .schedlie-settings-save-bar__content {
    max-width: 1320px;
  }
}

.schedlie-settings-save-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
}

.schedlie-settings-save-bar__dirty {
  color: var(--bs-warning-text-emphasis, #664d03);
  font-weight: 600;
}

.schedlie-settings-save-bar__btn {
  font-weight: 600;
}

body[data-app-scheme="dark"] .schedlie-settings-save-bar__shell,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-settings-save-bar__shell {
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

body[data-app-scheme="dark"] .schedlie-settings-save-bar__dirty,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-settings-save-bar__dirty {
  color: #fbbf24;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-settings-save-bar__shell {
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  }

  body[data-app-scheme="system"] .schedlie-settings-save-bar__dirty {
    color: #fbbf24;
  }
}

body[data-app-scheme="dark"] .schedlie-tp-include-panel {
  background-color: #161616 !important;
  border-color: #333 !important;
  color: #e5e5e5;
}

body[data-app-scheme="dark"] .schedlie-tp-include-panel .schedlie-tp-include-panel__title-border {
  border-color: #404040 !important;
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-tp-include-panel {
    background-color: #161616 !important;
    border-color: #333 !important;
    color: #e5e5e5;
  }

  body[data-app-scheme="system"] .schedlie-tp-include-panel .schedlie-tp-include-panel__title-border {
    border-color: #404040 !important;
  }
}

/* Group calendar — member profile field editor */
.schedlie-member-questions-page .schedlie-inline-code {
  font-size: 0.8125em;
  padding: 0.12em 0.42em;
  border-radius: 0.25rem;
  color: var(--bs-emphasis-color);
  background-color: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
}

.schedlie-profile-belongs-divider {
  border-top: 1px solid var(--bs-border-color) !important;
}

.schedlie-profile-type-col {
  max-width: 22rem;
}

.schedlie-profile-fields-save-bar {
  border-top: 1px solid var(--bs-border-color);
}

.schedlie-profile-field-icon-btn {
  color: var(--bs-secondary-color);
  text-decoration: none;
  border-radius: 0.35rem;
  line-height: 0;
}

.schedlie-profile-field-icon-btn:hover,
.schedlie-profile-field-icon-btn:focus-visible {
  color: var(--bs-body-color);
  background-color: var(--bs-tertiary-bg);
}

.schedlie-profile-field-icon-btn:focus-visible {
  outline: 2px solid var(--schedlie-form-focus-ring, rgba(79, 70, 229, 0.35));
  outline-offset: 2px;
}

.schedlie-profile-field-pending-delete {
  opacity: 0.48;
  pointer-events: none;
}

.schedlie-profile-field-pending-delete .schedlie-profile-field-icon-group {
  pointer-events: auto;
}

.schedlie-profile-field-pending-delete .schedlie-profile-field-undo-btn {
  color: var(--bs-body-color);
  opacity: 1;
}

.schedlie-profile-field-card .schedlie-profile-share-panel {
  background-color: var(--bs-tertiary-bg);
  border-color: var(--bs-border-color) !important;
}

.schedlie-profile-belongs-panel {
  background-color: var(--bs-body-bg);
  border-radius: 0.375rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--bs-border-color);
}

.schedlie-profile-belongs-heading {
  font-weight: 600;
  color: var(--bs-emphasis-color);
  margin-bottom: 0.5rem;
}

.schedlie-profile-belongs-hint {
  color: var(--bs-secondary-color);
}

.schedlie-profile-sort-input {
  width: 4.25rem;
  min-width: 4.25rem;
}

.schedlie-profile-field-type-badge {
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
}

@media (min-width: 992px) {
  .schedlie-profile-field-actions {
    margin-left: auto;
  }
}

body[data-app-scheme="dark"] .schedlie-profile-field-card .schedlie-profile-field-icon-btn:hover,
body[data-app-scheme="dark"] .schedlie-profile-field-card .schedlie-profile-field-icon-btn:focus-visible,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-profile-field-card .schedlie-profile-field-icon-btn:hover,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-profile-field-card .schedlie-profile-field-icon-btn:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-profile-field-card .schedlie-profile-field-icon-btn:hover,
  body[data-app-scheme="system"] .schedlie-profile-field-card .schedlie-profile-field-icon-btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
  }
}

body[data-app-scheme="dark"] .schedlie-profile-field-card,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-profile-field-card {
  background-color: #141414;
  border-color: #2a2a2a !important;
}

body[data-app-scheme="dark"] .schedlie-profile-field-card .schedlie-profile-share-panel,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-profile-field-card .schedlie-profile-share-panel {
  background-color: #0f0f0f !important;
  border-color: #333 !important;
}

body[data-app-scheme="dark"] .schedlie-profile-field-card .schedlie-profile-belongs-panel,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-profile-field-card .schedlie-profile-belongs-panel {
  background-color: #0a0a0a !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body[data-app-scheme="dark"] .schedlie-profile-field-card .schedlie-profile-field-type-badge,
body[data-schedlie-preview-app-scheme="dark"] .schedlie-profile-field-card .schedlie-profile-field-type-badge {
  background-color: rgba(255, 255, 255, 0.06);
  color: #e0e0e0;
  border-color: rgba(255, 255, 255, 0.14);
}

@media (prefers-color-scheme: dark) {
  body[data-app-scheme="system"] .schedlie-profile-field-card {
    background-color: #141414;
    border-color: #2a2a2a !important;
  }

  body[data-app-scheme="system"] .schedlie-profile-field-card .schedlie-profile-share-panel {
    background-color: #0f0f0f !important;
    border-color: #333 !important;
  }

  body[data-app-scheme="system"] .schedlie-profile-field-card .schedlie-profile-belongs-panel {
    background-color: #0a0a0a !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
  }

  body[data-app-scheme="system"] .schedlie-profile-field-card .schedlie-profile-field-type-badge {
    background-color: rgba(255, 255, 255, 0.06);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.14);
  }
}

/* Dashboard guided tour (post-onboarding) */
body.schedlie-dashboard-tour-active {
  overflow: hidden;
  --schedlie-dashboard-tour-frame: 2px solid rgba(255, 255, 255, 0.92);
}

/*
 * Tour layers above sticky nav (1030) and burger panel. Guide card is portaled to <body>,
 * not inside the burger dropdown — see dashboard-tour.js buildUi().
 */
body.schedlie-dashboard-tour-active .schedlie-main-nav {
  z-index: 12030;
}

body.schedlie-dashboard-tour-active.schedlie-dashboard-tour--nav-menu-open
  .schedlie-main-nav
  .schedlie-nav-session-collapse.show {
  z-index: 12040;
}

body.schedlie-dashboard-tour-active .schedlie-dashboard-tour__backdrop {
  z-index: 12000;
}

body.schedlie-dashboard-tour-active .schedlie-dashboard-tour__focus,
body.schedlie-dashboard-tour-active .schedlie-dashboard-tour__focus--portal {
  /* Portaled to <body>; above sticky nav (12030) so top-bar targets keep the spotlight ring */
  z-index: 12045;
}

body.schedlie-dashboard-tour-active .schedlie-dashboard-tour__popover,
body.schedlie-dashboard-tour-active .schedlie-dashboard-tour__popover--portal {
  z-index: 12050;
}

.schedlie-dashboard-tour {
  --schedlie-dashboard-tour-frame: 2px solid rgba(255, 255, 255, 0.92);
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.schedlie-dashboard-tour__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.45);
  pointer-events: auto;
}

.schedlie-dashboard-tour__focus {
  position: fixed;
  border: var(--schedlie-dashboard-tour-frame);
  border-radius: 0.5rem;
  box-shadow: 0 0 0 9999px rgba(15, 15, 15, 0.45);
  background: transparent;
  pointer-events: none;
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.schedlie-dashboard-tour__popover {
  position: fixed;
  width: min(360px, calc(100vw - 1.5rem));
  border: var(--schedlie-dashboard-tour-frame);
  border-radius: 0.5rem;
  background-color: var(--schedlie-surface, #fff);
  box-shadow: 0 0.5rem 1.25rem rgba(15, 15, 15, 0.28);
  pointer-events: auto;
}

.schedlie-dashboard-tour__skip {
  text-decoration: none;
}

.schedlie-dashboard-tour--choice .schedlie-dashboard-tour__popover--centered {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .schedlie-dashboard-tour__focus {
    transition: none;
  }
}

/* Appointment sheet (event form + event view) */
.schedlie-appt-sheet-row--taken {
  opacity: 0.65;
  background: rgba(15, 23, 42, 0.04);
}

.schedlie-appt-sheet-row--break {
  background: rgba(217, 119, 6, 0.08);
  border-left: 3px solid rgba(217, 119, 6, 0.45);
}

.schedlie-appt-sheet-row--mine {
  background: rgba(79, 70, 229, 0.06);
  border-left: 3px solid rgba(79, 70, 229, 0.35);
}

.schedlie-event-appointment-sheet-section .schedlie-appt-slot-editor-row {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.schedlie-event-appointment-sheet-section .schedlie-appt-gen-duration-input {
  width: 5.5rem;
  max-width: 100%;
}

.js-event-appt-conflict-section[hidden] {
  display: none !important;
}

.schedlie-appt-assign-user-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1060;
  max-height: 12rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.375rem;
  margin-top: 0.15rem;
}

.schedlie-appt-assign-user-dropdown .dropdown-item:hover {
  background: rgba(15, 23, 42, 0.04);
}

/* Logged-out app welcome (original glam-up): always dark */
body.schedlie-main-site.schedlie-app-welcome {
  color-scheme: dark;
  --schedlie-page-bg: #121212;
  --schedlie-surface: #1e1e1e;
  --schedlie-ink: #ececec;
  --schedlie-ink-muted: #a3a3a3;
  --bs-body-bg: #121212;
  --bs-body-color: #ececec;
  --bs-secondary-color: #a3a3a3;
  --bs-emphasis-color: #f5f5f5;
  --bs-link-color: #ececec;
  --bs-link-hover-color: #ececec;
  background: linear-gradient(165deg, #121212 0%, #181818 45%, #141414 100%);
  background-color: var(--schedlie-page-bg);
  color: var(--schedlie-ink);
}

body.schedlie-main-site.schedlie-app-welcome .app-wrapper {
  background: transparent;
}

body.schedlie-main-site.schedlie-app-welcome .navbar.navbar-light.bg-light {
  background-color: var(--schedlie-surface) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.schedlie-main-site.schedlie-app-welcome .navbar-brand,
body.schedlie-main-site.schedlie-app-welcome .navbar .nav-link.text-dark {
  color: var(--schedlie-ink) !important;
}

body.schedlie-main-site.schedlie-app-welcome .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.28);
}

body.schedlie-main-site.schedlie-app-welcome .navbar-toggler-icon {
  filter: invert(1) grayscale(100%);
}

body.schedlie-main-site.schedlie-app-welcome footer.schedlie-site-footer {
  background-color: var(--schedlie-surface) !important;
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-hero--home {
  background: linear-gradient(145deg, #1c1c2e 0%, #121212 45%, #0f1814 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-band--founder {
  background: #0f0f0f;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-band--founder .schedlie-mkt-about-story {
  background: var(--schedlie-surface);
  border-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--schedlie-mkt-accent, #818cf8);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: var(--schedlie-ink);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-band--founder .text-muted {
  color: var(--schedlie-ink-muted) !important;
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-hero-lead {
  color: var(--schedlie-ink-muted);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-band--calm {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 34%, #3730a3 68%, #0f766e 100%);
  color: var(--schedlie-ink);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-band--calm .text-muted {
  color: var(--schedlie-ink-muted) !important;
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-band--calm strong {
  color: var(--schedlie-ink);
  font-weight: 600;
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-use-card {
  background: var(--schedlie-surface);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  color: var(--schedlie-ink);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-use-card :is(h2, h3, h5, .h5) {
  color: var(--schedlie-ink);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-showcase-card {
  background: var(--schedlie-surface);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-showcase-title,
body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-showcase-day-label strong,
body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-showcase-chip-title {
  color: var(--schedlie-ink);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-showcase-pill,
body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-showcase-day-label,
body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-showcase-chip-time {
  color: var(--schedlie-ink-muted);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-showcase-pill {
  background: rgba(255, 255, 255, 0.08);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-showcase-day {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-showcase-day.is-today {
  background: rgba(129, 140, 248, 0.15);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.45);
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-hero-blob {
  opacity: 0.28;
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-app-welcome-cta .text-muted,
body.schedlie-main-site.schedlie-app-welcome .schedlie-mkt-hero-copy .text-muted {
  color: var(--schedlie-ink-muted) !important;
}

body.schedlie-main-site.schedlie-app-welcome .schedlie-app-welcome-cta h2 {
  color: var(--schedlie-ink);
}

.schedlie-app-welcome-main .schedlie-mkt-hero--home {
  min-height: min(85vh, 52rem);
}

/* ── Demo reminder preview card (in-app tab) ────────────────── */
.schedlie-demo-reminder-preview {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
}

.schedlie-demo-reminder-preview__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.12);
  color: #4f46e5;
  flex-shrink: 0;
}

/* ── Demo reminder preview — SMS full-size phone frame ───────── */
.schedlie-drp-sms-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 1.5rem;
}

.schedlie-drp-phone {
  width: 340px;
  background: #1c1c1e;
  border-radius: 50px;
  border: 8px solid #2c2c2e;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 30px 60px rgba(0,0,0,0.4),
    0 8px 20px rgba(0,0,0,0.25);
  overflow: hidden;
  position: relative;
  /* Full screen area */
  display: flex;
  flex-direction: column;
}

/* Dynamic island */
.schedlie-drp-phone__island {
  width: 110px;
  height: 30px;
  background: #1c1c1e;
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Everything below the island is the "screen" */
.schedlie-drp-phone__status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 0;
  background: #f2f2f7;
  font-size: 12px;
  font-weight: 700;
  color: #1c1c1e;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  flex-shrink: 0;
}

.schedlie-drp-phone__time {
  letter-spacing: -0.02em;
}

.schedlie-drp-phone__icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #1c1c1e;
}

/* Messages header */
.schedlie-drp-phone__msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 10px;
  background: rgba(242,242,247,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.schedlie-drp-phone__back {
  display: flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: #007aff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 16px;
  padding: 0;
  cursor: default;
}

.schedlie-drp-phone__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.schedlie-drp-phone__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedlie-drp-phone__contact-name {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #1c1c1e;
  line-height: 1;
}

.schedlie-drp-phone__info {
  background: none;
  border: none;
  color: #007aff;
  padding: 0;
  cursor: default;
}

/* Conversation area */
.schedlie-drp-phone__convo {
  flex: 1;
  background: #f2f2f7;
  padding: 12px 14px 16px;
  overflow-y: auto;
  min-height: 260px;
}

.schedlie-drp-phone__timestamp {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #8e8e93;
  text-align: center;
  margin-bottom: 12px;
}

.schedlie-drp-phone__bubble-wrap {
  display: flex;
  justify-content: flex-start;
}

.schedlie-drp-phone__bubble {
  background: #e5e5ea;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px;
  max-width: 85%;
}

.schedlie-drp-sms-text {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #1c1c1e;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Input bar */
.schedlie-drp-phone__input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 18px;
  background: rgba(242,242,247,0.95);
  border-top: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.schedlie-drp-phone__input-field {
  flex: 1;
  background: #fff;
  border: 1px solid #d1d1d6;
  border-radius: 20px;
  padding: 7px 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 14px;
  color: #c7c7cc;
}

.schedlie-drp-phone__send-btn {
  width: 30px;
  height: 30px;
  background: #007aff;
  border: none;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  flex-shrink: 0;
}

/* Email iframe inside the preview modal */
.schedlie-drp-email-iframe {
  width: 100%;
  height: 540px;
  border: 0;
  display: block;
}

/* ── Schedlie demo mode bar ────────────────────────────────────────────────── */

.schedlie-demo-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 1.25rem;
  padding-right: max(1.25rem, env(safe-area-inset-right));
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  height: 3rem;
  font-family: inherit;
}

.schedlie-demo-bar__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.schedlie-demo-bar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* "Live demo" animated dot + label */
.schedlie-demo-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.schedlie-demo-bar__badge svg {
  color: #22d3ee;
  animation: schedlie-demo-pulse 2s ease-in-out infinite;
}

@keyframes schedlie-demo-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* Vertical separator */
.schedlie-demo-bar__sep {
  display: inline-block;
  width: 1px;
  height: 1.125rem;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Plan toggle form wrapper */
.schedlie-demo-bar__plan-form {
  display: inline-flex;
  margin: 0;
  flex-shrink: 0;
}

/* Plus / Free plan pill */
.schedlie-demo-bar__plan {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.schedlie-demo-bar__plan-label {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedlie-demo-bar__plan-switch {
  font-weight: 400;
  opacity: 0.65;
  font-size: 0.625rem;
  letter-spacing: 0.02em;
}

.schedlie-demo-bar__plan--plus {
  background: #4f46e5;
  color: #fff;
}

.schedlie-demo-bar__plan--plus:hover {
  background: #3730a3;
  color: #fff;
}

.schedlie-demo-bar__plan--free {
  background: rgba(255,255,255,0.07);
  color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.1);
}

.schedlie-demo-bar__plan--free:hover {
  background: rgba(255,255,255,0.12);
  color: #e2e8f0;
}

/* Ghost text buttons (Reset, Exit) */
.schedlie-demo-bar__ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}

.schedlie-demo-bar__ghost:hover {
  color: #cbd5e1;
  text-decoration: none;
}

.schedlie-demo-bar__ghost--exit {
  color: #475569;
}

/* Primary CTA */
.schedlie-demo-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #14532d;
  color: #fff;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: background 0.15s;
  flex-shrink: 0;
}

.schedlie-demo-bar__cta:hover {
  background: #15803d;
  color: #fff;
  text-decoration: none;
}

/* Offset app content so it doesn't hide behind the bar */
body.schedlie-has-demo-bar .app-wrapper {
  padding-bottom: 3rem;
}

/* Raise fixed UI elements above the demo bar */
body.schedlie-has-demo-bar .schedlie-back-to-top {
  bottom: calc(3rem + 1rem + env(safe-area-inset-bottom, 0px));
}

body.schedlie-has-demo-bar .schedlie-org-manage-save-dock {
  bottom: calc(3rem + 1rem + env(safe-area-inset-bottom, 0px));
}

body.schedlie-has-demo-bar .schedlie-settings-save-bar {
  bottom: 3rem;
}

/* Demo reminder notification preview */
.schedlie-demo-notif-preview {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10500;
  width: 18.5rem;
  max-width: calc(100vw - 2rem);
  background: #1a2332;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.875rem 1rem 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: translateX(calc(100% + 1.25rem));
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
}
.schedlie-demo-notif-preview.is-visible {
  transform: translateX(0);
  opacity: 1;
}
.schedlie-demo-notif-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.schedlie-demo-notif-preview__app {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.schedlie-demo-notif-preview__app svg {
  color: #38bdf8;
  flex-shrink: 0;
}
.schedlie-demo-notif-preview__time {
  font-size: 0.625rem;
  color: #475569;
  letter-spacing: 0.02em;
}
.schedlie-demo-notif-preview__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedlie-demo-notif-preview__sub {
  font-size: 0.75rem;
  color: #64748b;
}
.schedlie-demo-notif-preview__progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  margin-top: 0.8rem;
  overflow: hidden;
}
.schedlie-demo-notif-preview__bar {
  height: 100%;
  background: #38bdf8;
  border-radius: 2px;
  transform-origin: left center;
  animation: schedlie-demo-notif-bar 4.5s linear forwards;
}
@keyframes schedlie-demo-notif-bar {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@media (max-width: 639.98px) {
  .schedlie-demo-bar {
    padding: 0 0.875rem;
  }

  .schedlie-demo-bar__sep:nth-of-type(2) {
    display: none;
  }

  .schedlie-demo-bar__ghost--exit {
    display: none;
  }

  .schedlie-demo-bar__plan-switch {
    display: none;
  }

  .schedlie-demo-bar__cta {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
}


/* ── PWA launch splash screen ────────────────────────────────── */
#schedlie-pwa-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* icon sits just above true centre, mirroring Instagram's layout */
  padding-bottom: 8vh;
  opacity: 0;
  transition: opacity 0.45s ease;
}
@media (prefers-color-scheme: dark) {
  #schedlie-pwa-splash { background: #000; }
}
#schedlie-pwa-splash.schedlie-pwa-splash--visible {
  display: flex;
  opacity: 1;
}
#schedlie-pwa-splash.schedlie-pwa-splash--out {
  opacity: 0;
}
.schedlie-pwa-splash__icon-wrap {
  position: relative;
  display: inline-block;
  border-radius: 44px;
  overflow: hidden;
}
.schedlie-pwa-splash__icon-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 44px;
  background: linear-gradient(115deg, #4f46e5 0%, #7c3aed 30%, #a855f7 55%, #ec4899 80%, #4f46e5 100%);
  background-size: 250% auto;
  mix-blend-mode: color;
  animation: schedlie-splash-shimmer 2.2s linear infinite;
}
#schedlie-pwa-splash img {
  width: 192px;
  height: 192px;
  border-radius: 44px;
  display: block;
}
.schedlie-pwa-splash__name {
  position: absolute;
  bottom: 4.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--schedlie-font, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
  /* indigo → violet → purple → pink shimmer */
  background: linear-gradient(115deg, #4f46e5 0%, #7c3aed 30%, #a855f7 55%, #ec4899 80%, #4f46e5 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: schedlie-splash-shimmer 2.2s linear infinite;
}
@keyframes schedlie-splash-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Third-party recipient email field: suppress autofill tint ── */
.schedlie-tp-email-field,
.schedlie-tp-email-field:focus {
  background-color: var(--bs-body-bg) !important;
}
/* Webkit autofill override — forces the browser's autofill highlight
   to use the app's own background instead of the browser's blue/yellow. */
.schedlie-tp-email-field:-webkit-autofill,
.schedlie-tp-email-field:-webkit-autofill:focus,
.schedlie-tp-email-field:-webkit-autofill:hover {
  -webkit-box-shadow: 0 0 0 1000px var(--bs-body-bg, #fff) inset !important;
  box-shadow: 0 0 0 1000px var(--bs-body-bg, #fff) inset !important;
  -webkit-text-fill-color: var(--bs-body-color, #212529) !important;
  caret-color: var(--bs-body-color, #212529);
}
[data-app-scheme="dark"] .schedlie-tp-email-field:-webkit-autofill,
[data-app-scheme="dark"] .schedlie-tp-email-field:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #121212 inset !important;
  box-shadow: 0 0 0 1000px #121212 inset !important;
  -webkit-text-fill-color: #f8f9fa !important;
  caret-color: #f8f9fa;
}