/*
 * NDL Calendar front styles
 * Complete cleanup pass: scoped, deduplicated, and structured.
 */

/* ==========================================================================
   01. Design tokens / shell
   ========================================================================== */
.ndlcc-calendar,
.ndlcc-modal,
.ndlcc-form-popup-scope,
.ndlcc-plugin-form-scope {
  --ndlcc-color-text: #111827;
  --ndlcc-color-text-soft: #334155;
  --ndlcc-color-muted: #64748b;
  --ndlcc-color-border: #dbe2ea;
  --ndlcc-color-border-strong: #cbd5e1;
  --ndlcc-color-surface: #ffffff;
  --ndlcc-color-surface-soft: #f8fafc;
  --ndlcc-color-surface-muted: #f1f5f9;
  --ndlcc-color-accent: #94a3b8;
  --ndlcc-color-accent-soft: #e8eef5;
  --ndlcc-color-accent-softest: #f3f7fb;
  --ndlcc-color-danger-soft: #fef2f2;
  --ndlcc-color-danger-border: #fecaca;
  --ndlcc-color-danger-text: #991b1b;
  --ndlcc-radius-sm: 10px;
  --ndlcc-radius-md: 14px;
  --ndlcc-radius-lg: 18px;
  --ndlcc-radius-xl: 22px;
  --ndlcc-radius-pill: 999px;
  --ndlcc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --ndlcc-shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
  --ndlcc-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.16);
  --ndlcc-shadow-modal: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.ndlcc-calendar-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
}

.ndlcc-calendar-shell-breakout {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  padding: 0 2px;
}

.ndlcc-calendar {
  position: relative;
  display: block;
  width: min(99.85vw, 1760px);
  max-width: min(99.85vw, 1760px);
  min-width: 1260px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 24px;
  background: var(--ndlcc-color-surface);
  color: var(--ndlcc-color-text);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-family: inherit;
}

.ndlcc-calendar,
.ndlcc-calendar *,
.ndlcc-calendar *::before,
.ndlcc-calendar *::after,
.ndlcc-modal,
.ndlcc-modal *,
.ndlcc-modal *::before,
.ndlcc-modal *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   01b. Scoped reset against theme / Kubio defaults
   ========================================================================== */
.ndlcc-calendar :where(a, button, input, select, textarea),
.ndlcc-modal :where(a, button, input, select, textarea),
.ndlcc-form-popup-scope :where(a, button, input, select, textarea),
.ndlcc-plugin-form-scope :where(a, button, input, select, textarea) {
  font: inherit;
}

.ndlcc-toolbar-actions > .ndlcc-btn,
.ndlcc-toolbar-actions > a.ndlcc-btn,
.ndlcc-toolbar-actions > button.ndlcc-btn,
.ndlcc-toolbar-actions > .ndlcc-export-menu > .ndlcc-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 10px 16px !important;
  border: 1px solid var(--ndlcc-color-border) !important;
  border-radius: var(--ndlcc-radius-pill) !important;
  background: var(--ndlcc-color-surface) !important;
  color: var(--ndlcc-color-text) !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.ndlcc-toolbar-actions > .ndlcc-btn:hover,
.ndlcc-toolbar-actions > .ndlcc-btn:focus-visible,
.ndlcc-toolbar-actions > a.ndlcc-btn:hover,
.ndlcc-toolbar-actions > a.ndlcc-btn:focus-visible,
.ndlcc-toolbar-actions > button.ndlcc-btn:hover,
.ndlcc-toolbar-actions > button.ndlcc-btn:focus-visible,
.ndlcc-toolbar-actions > .ndlcc-export-menu > .ndlcc-btn:hover,
.ndlcc-toolbar-actions > .ndlcc-export-menu > .ndlcc-btn:focus-visible {
  background: var(--ndlcc-color-accent-soft) !important;
  border-color: var(--ndlcc-color-accent) !important;
  color: var(--ndlcc-color-text) !important;
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.18) !important;
}

/* ==========================================================================
   02. Toolbar / buttons / icon buttons
   ========================================================================== */
.ndlcc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.ndlcc-toolbar-main,
.ndlcc-toolbar-actions,
.ndlcc-event-actions,
.ndlcc-day-card-actions,
.ndlcc-day-create,
.ndlcc-event-toolbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ndlcc-toolbar-main {
  gap: 12px;
}

.ndlcc-toolbar-actions {
  gap: 10px;
}

.ndlcc-brand-link {
  justify-content: flex-start;
  gap: 10px;
  padding-left: 12px;
  padding-right: 16px;
}

.ndlcc-brand-link .ndlcc-btn-icon-svg,
.ndlcc-brand-link .ndlcc-btn-icon-svg svg {
  width: 16px;
  height: 16px;
}

.ndlcc-nav .ndlcc-btn-icon-svg,
.ndlcc-nav .ndlcc-btn-icon-svg svg {
  width: 30px;
  height: 30px;
}

.ndlcc-nav {
  min-width: 42px;
  width: 42px;
  padding: 0;
}

.ndlcc-brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
  border-radius: 999px;
}

.ndlcc-mobile-only {
  display: none !important;
}

.ndlcc-btn-label--short {
  display: none;
}


.ndlcc-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ndlcc-view-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--ndlcc-color-border);
  border-radius: var(--ndlcc-radius-sm);
  background: var(--ndlcc-color-surface);
  color: var(--ndlcc-color-text-soft);
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.ndlcc-view-btn.is-active {
  background: var(--ndlcc-color-accent-softest);
  border-color: var(--ndlcc-color-accent);
  color: var(--ndlcc-color-text);
  box-shadow: var(--ndlcc-shadow-sm);
}

.ndlcc-view-btn:hover {
  background: var(--ndlcc-color-accent-soft);
  border-color: var(--ndlcc-color-accent);
  color: var(--ndlcc-color-text);
}

.ndlcc-daylist-view {
  display: block;
}

.ndlcc-daylist-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 16px;
}

.ndlcc-daylist-title {
  margin: 0;
  min-width: min(70vw, 360px);
  text-align: center;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

.ndlcc-daylist-body .ndlcc-day-list {
  max-width: 920px;
  margin: 0 auto;
}

.ndlcc-daylist-body .ndlcc-day-create {
  justify-content: center;
}


.ndlcc-month-view[hidden],
.ndlcc-daylist-view[hidden] {
  display: none !important;
}

.ndlcc-daylist-toolbar--list {
  margin-bottom: 18px;
}

.ndlcc-upcoming-list {
  max-width: 920px;
  margin: 0 auto;
}

.ndlcc-upcoming-group + .ndlcc-upcoming-group {
  margin-top: 22px;
}

.ndlcc-upcoming-date {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

.ndlcc-upcoming-card + .ndlcc-upcoming-card {
  margin-top: 12px;
}


.ndlcc-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.ndlcc-nav,
.ndlcc-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--ndlcc-color-border);
  border-radius: var(--ndlcc-radius-pill);
  background: var(--ndlcc-color-surface);
  color: var(--ndlcc-color-text);
  text-decoration: none;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .12s ease;
}

.ndlcc-nav:hover,
.ndlcc-nav:focus-visible,
.ndlcc-btn:hover,
.ndlcc-btn:focus-visible {
  background: var(--ndlcc-color-accent-soft);
  border-color: var(--ndlcc-color-accent);
  color: var(--ndlcc-color-text);
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.18);
}

.ndlcc-btn-primary {
  background: var(--ndlcc-color-text);
  border-color: var(--ndlcc-color-text);
  color: #fff;
}

.ndlcc-btn-primary:hover,
.ndlcc-btn-primary:focus-visible {
  background: #0b1220;
  border-color: #0b1220;
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.ndlcc-btn-secondary {
  background: var(--ndlcc-color-surface);
  color: var(--ndlcc-color-text);
}

.ndlcc-btn-toolbar,
.ndlcc-day-create .ndlcc-btn {
  background: var(--ndlcc-color-surface);
  color: var(--ndlcc-color-text);
  border-color: var(--ndlcc-color-border);
  box-shadow: none;
}

.ndlcc-btn-icon,
.ndlcc-btn-icon-svg,
.ndlcc-btn-label,
.ndlcc-export-link-icon,
.ndlcc-export-link-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ndlcc-btn-icon-svg,
.ndlcc-btn-icon-svg svg {
  width: 20px;
  height: 20px;
}

.ndlcc-nav .ndlcc-btn-icon-svg,
.ndlcc-nav .ndlcc-btn-icon-svg svg {
  width: 30px;
  height: 30px;
}

.ndlcc-brand-link .ndlcc-btn-icon-svg,
.ndlcc-brand-link .ndlcc-btn-icon-svg svg {
  width: 22px;
  height: 22px;
}

.ndlcc-btn-label,
.ndlcc-export-link-label {
  min-width: 0;
}

.ndlcc-brand-link .ndlcc-btn-label,
.ndlcc-export-link .ndlcc-export-link-label,
.ndlcc-export-link-button .ndlcc-export-link-label {
  justify-content: flex-start;
  text-align: left;
}

.ndlcc-icon-btn,
button.ndlcc-icon-btn,
a.ndlcc-icon-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid var(--ndlcc-color-border);
  border-radius: var(--ndlcc-radius-pill);
  background: var(--ndlcc-color-surface);
  color: var(--ndlcc-color-text);
  text-decoration: none;
  line-height: 1;
  box-shadow: var(--ndlcc-shadow-sm);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .12s ease;
}

.ndlcc-icon-btn:hover,
.ndlcc-icon-btn:focus-visible {
  background: var(--ndlcc-color-accent-soft);
  border-color: var(--ndlcc-color-accent);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.20);
  transform: translateY(-1px);
}

.ndlcc-icon-btn .ndlcc-icon-art,
.ndlcc-export-link .ndlcc-icon-art,
.ndlcc-export-link-button .ndlcc-icon-art,
.ndlcc-modal-header-icon .ndlcc-icon-art {
  display: block;
  width: 20px;
  height: 20px;
}

.ndlcc-modal-header-icon .ndlcc-icon-art {
  width: 24px;
  height: 24px;
}

.ndlcc-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ndlcc-icon-fill {
  fill: currentColor;
}

.ndlcc-icon-btn[data-tooltip] {
  position: relative;
}

.ndlcc-icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 2147483002;
  opacity: 0;
  pointer-events: none;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--ndlcc-color-text);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  transition: opacity .15s ease, transform .15s ease;
}

.ndlcc-icon-btn[data-tooltip]:hover::after,
.ndlcc-icon-btn[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* ==========================================================================
   03. Notices / grid / month view
   ========================================================================== */
.ndlcc-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #bae6fd;
  border-radius: var(--ndlcc-radius-md);
  background: #ecfeff;
  color: var(--ndlcc-color-text);
}

.ndlcc-notice.is-hidden {
  display: none;
}

.ndlcc-notice.is-error {
  background: var(--ndlcc-color-danger-soft);
  border-color: var(--ndlcc-color-danger-border);
  color: var(--ndlcc-color-danger-text);
}

.ndlcc-weekdays,
.ndlcc-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 12px;
}

.ndlcc-weekdays {
  margin-bottom: 10px;
}

.ndlcc-weekday {
  padding: 8px 6px;
  text-align: center;
  font-weight: 700;
  color: var(--ndlcc-color-muted);
}

.ndlcc-day {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-height: 148px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: var(--ndlcc-radius-lg);
  background: var(--ndlcc-color-surface);
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

.ndlcc-day:hover {
  box-shadow: var(--ndlcc-shadow-md);
}

.ndlcc-day:focus-visible {
  outline: 2px solid rgba(17, 24, 39, 0.12);
  outline-offset: 1px;
}

.ndlcc-day.is-today {
  border-color: var(--ndlcc-color-text);
}

.ndlcc-day-empty {
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.ndlcc-day-number {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  margin-bottom: 2px;
  color: var(--ndlcc-color-text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.ndlcc-day-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.98rem;
  height: 1.98rem;
  padding: 0 0.55rem;
  border-radius: var(--ndlcc-radius-pill);
  background: transparent;
  color: inherit;
}

.ndlcc-day.is-today .ndlcc-day-number-badge {
  background: var(--ndlcc-color-text);
  color: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.ndlcc-more,
.ndlcc-day-card-meta,
.ndlcc-form-help {
  color: var(--ndlcc-color-muted);
  font-size: 12px;
}

.ndlcc-time-emphasis {
  display: inline-block;
  font-size: 1.08em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ndlcc-color-text);
  font-variant-numeric: tabular-nums;
}

.ndlcc-day-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ndlcc-day-mobile-summary {
  display: none;
}

.ndlcc-day-markers {
  display: none;
}

.ndlcc-day-marker {
  display: none;
}


.ndlcc-month-view {
  --ndlcc-swipe-shift: 0px;
  --ndlcc-swipe-scale: 1;
  position: relative;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1), opacity .24s ease;
  transform: translate3d(var(--ndlcc-swipe-shift), 0, 0) scale(var(--ndlcc-swipe-scale));
}

.ndlcc-month-view::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}

.ndlcc-month-view.is-swiping {
  --ndlcc-swipe-scale: .992;
  opacity: .97;
}

.ndlcc-month-view.is-peeking-prev::after {
  opacity: .85;
  background: linear-gradient(90deg, rgba(148, 163, 184, .16) 0%, rgba(148, 163, 184, .08) 18%, rgba(148, 163, 184, 0) 42%);
}

.ndlcc-month-view.is-peeking-next::after {
  opacity: .85;
  background: linear-gradient(270deg, rgba(148, 163, 184, .16) 0%, rgba(148, 163, 184, .08) 18%, rgba(148, 163, 184, 0) 42%);
}

.ndlcc-month-view.is-loading-prev {
  --ndlcc-swipe-shift: 18px;
  --ndlcc-swipe-scale: .994;
  opacity: .64;
}

.ndlcc-month-view.is-loading-next {
  --ndlcc-swipe-shift: -18px;
  --ndlcc-swipe-scale: .994;
  opacity: .64;
}

.ndlcc-calendar.is-month-loading .ndlcc-toolbar-main .ndlcc-nav,
.ndlcc-calendar.is-month-loading .ndlcc-day,
.ndlcc-calendar.is-month-loading .ndlcc-view-btn {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .ndlcc-month-view {
    transition: none;
  }
}

.ndlcc-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 9px;
  border-left: 4px solid var(--ndlcc-color-border-strong);
  border-radius: 12px;
  color: var(--ndlcc-color-text);
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition: opacity .2s ease, filter .2s ease;
}

.ndlcc-chip.is-past {
  background: #f3f4f6;
  color: #6b7280;
  border-left-color: var(--ndlcc-color-border-strong);
}

.ndlcc-chip-time {
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: .9;
}

.ndlcc-chip-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.ndlcc-day-count {
  display: none !important;
}

.ndlcc-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ndlcc-color-border);
}

.ndlcc-chip,
.ndlcc-chip.is-past {
  border-left-width: 3px;
  border-radius: 10px;
}

.ndlcc-chip {
  padding: 6px 8px;
}

.ndlcc-day-card-actions .ndlcc-icon-btn,
.ndlcc-event-actions .ndlcc-icon-btn,
.ndlcc-day-card-actions a.ndlcc-icon-btn,
.ndlcc-event-actions a.ndlcc-icon-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex-basis: 40px;
  border-color: #e5e7eb;
  border-radius: 12px;
  box-shadow: none;
}

.ndlcc-day-card-actions .ndlcc-icon-btn:hover,
.ndlcc-event-actions .ndlcc-icon-btn:hover,
.ndlcc-day-card-actions .ndlcc-icon-btn:focus-visible,
.ndlcc-event-actions .ndlcc-icon-btn:focus-visible {
  box-shadow: 0 6px 14px rgba(148, 163, 184, 0.14);
}

/* ==========================================================================
   04. Modal system
   ========================================================================== */
.ndlcc-modal[hidden] {
  display: none;
}

html.ndlcc-modal-open,
body.ndlcc-modal-open {
  overflow: hidden;
}

.ndlcc-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow: auto;
  isolation: isolate;
}

.ndlcc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}

.ndlcc-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(88vw, 640px);
  max-height: calc(100vh - 40px);
  margin: 0;
  border-radius: var(--ndlcc-radius-xl);
  background: var(--ndlcc-color-surface);
  overflow: auto;
  box-shadow: var(--ndlcc-shadow-modal);
  isolation: isolate;
}

.ndlcc-modal-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--ndlcc-radius-xl);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.7);
}

.ndlcc-modal-dialog-wide {
  width: min(90vw, 820px);
}

.ndlcc-modal-dialog-form {
  width: min(88vw, 760px);
}

.ndlcc-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: var(--ndlcc-color-surface);
  text-align: left;
}

.ndlcc-modal-body {
  padding: 18px;
  background: var(--ndlcc-color-surface);
  text-align: left;
}

.ndlcc-modal-title,
.ndlcc-event-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.ndlcc-modal-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ndlcc-modal-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: var(--ndlcc-color-text-soft);
}

.ndlcc-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ndlcc-color-text-soft);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ndlcc-close:hover,
.ndlcc-close:focus-visible {
  color: var(--ndlcc-color-text);
}

/* ==========================================================================
   05. Day view / detail view
   ========================================================================== */
.ndlcc-event-header {
  padding-right: 42px;
}

.ndlcc-event-toolbar-left {
  min-width: 0;
  gap: 10px;
}

.ndlcc-event-color {
  display: inline-block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: var(--ndlcc-radius-pill);
  background: var(--ndlcc-color-border-strong);
}

.ndlcc-event-created-by {
  font-size: 14px;
  color: var(--ndlcc-color-text-soft);
}

.ndlcc-event-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--ndlcc-color-text-soft);
}

.ndlcc-event-description,
.ndlcc-day-list,
.ndlcc-day-card,
.ndlcc-day-card-head,
.ndlcc-day-card-meta,
.ndlcc-day-card-actions,
.ndlcc-day-card-title {
  text-align: left;
}

.ndlcc-event-description {
  color: var(--ndlcc-color-text);
}

.ndlcc-day-list {
  display: grid;
  gap: 12px;
}

.ndlcc-day-card {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: var(--ndlcc-color-surface);
}

.ndlcc-day-card.is-past {
  background: var(--ndlcc-color-surface-soft);
}

.ndlcc-day-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ndlcc-day-title,
.ndlcc-day-card-title {
  margin: 0;
}

.ndlcc-day-title {
  font-size: 22px;
}

.ndlcc-day-card-title {
  font-size: 16px;
  line-height: 1.25;
}

.ndlcc-day-card-actions,
.ndlcc-event-actions,
.ndlcc-event-export-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ndlcc-event-actions {
  margin-top: 16px;
}

.ndlcc-event-export-links {
  width: 100%;
  margin-top: 4px;
}

/* ==========================================================================
   06. Shared content normalisation inside modals
   ========================================================================== */
.ndlcc-modal-body .em,
.ndlcc-modal-body form,
.ndlcc-modal-body .em-event,
.ndlcc-modal-body .em-booking-form,
.ndlcc-modal-body .wp-editor-wrap,
.ndlcc-modal-body .mce-container,
.ndlcc-modal-body .mce-panel,
.ndlcc-modal-body p,
.ndlcc-modal-body .em-form-field,
.ndlcc-modal-body .form-field,
.ndlcc-modal-body label,
.ndlcc-modal-body h1,
.ndlcc-modal-body h2,
.ndlcc-modal-body h3,
.ndlcc-modal-body h4 {
  text-align: left;
}

.ndlcc-modal-body h1,
.ndlcc-modal-body h2,
.ndlcc-modal-body h3,
.ndlcc-modal-body h4 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

/* ==========================================================================
   07. Subscribe / export UI
   ========================================================================== */
.ndlcc-export-menu {
  position: relative;
}

.ndlcc-export-menu.is-open .ndlcc-export-menu-panel {
  display: flex;
}

.ndlcc-export-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 1200;
  display: none;
  min-width: 280px;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: var(--ndlcc-color-surface);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.ndlcc-export-menu-panel[hidden] {
  display: none;
}

.ndlcc-export-menu-panel .ndlcc-export-link,
.ndlcc-export-menu-panel .ndlcc-export-link-button,
.ndlcc-export-menu-panel a.ndlcc-export-link,
.ndlcc-export-menu-panel button.ndlcc-export-link-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ndlcc-color-border);
  border-radius: var(--ndlcc-radius-pill);
  background: var(--ndlcc-color-surface);
  color: var(--ndlcc-color-text);
  text-decoration: none;
  box-shadow: none;
}

.ndlcc-export-menu-panel .ndlcc-export-link:hover,
.ndlcc-export-menu-panel .ndlcc-export-link:focus-visible,
.ndlcc-export-menu-panel .ndlcc-export-link-button:hover,
.ndlcc-export-menu-panel .ndlcc-export-link-button:focus-visible {
  background: var(--ndlcc-color-accent-soft);
  border-color: var(--ndlcc-color-accent);
  color: var(--ndlcc-color-text);
}

.ndlcc-export-link,
.ndlcc-export-link-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--ndlcc-color-border);
  border-radius: var(--ndlcc-radius-pill);
  background: var(--ndlcc-color-surface);
  color: var(--ndlcc-color-text);
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.ndlcc-export-link:hover,
.ndlcc-export-link-button:hover,
.ndlcc-export-link:focus-visible,
.ndlcc-export-link-button:focus-visible {
  background: var(--ndlcc-color-accent-soft);
  border-color: var(--ndlcc-color-accent);
  color: var(--ndlcc-color-text);
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.18);
}

.ndlcc-export-link-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--ndlcc-color-text);
}

.ndlcc-export-link-icon svg,
.ndlcc-export-link-icon .ndlcc-icon-art {
  width: 20px;
  height: 20px;
}

.ndlcc-export-link-label {
  min-width: 0;
  color: var(--ndlcc-color-text);
  white-space: nowrap;
}

.ndlcc-event-export-links .ndlcc-export-link,
.ndlcc-event-export-links .ndlcc-export-link-button {
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
  padding-inline: 16px;
}


/* ==========================================================================
   08. Datepicker
   ========================================================================== */
.ndlcc-ui-datepicker {
  position: absolute;
  z-index: 999999;
  max-width: min(92vw, 290px);
  padding: 6px;
  border: 1px solid var(--ndlcc-color-border);
  border-radius: 12px;
  background: var(--ndlcc-color-surface);
  box-shadow: var(--ndlcc-shadow-lg);
  overflow: hidden;
  font-size: 13px;
}

.ndlcc-ui-datepicker .ui-datepicker-header {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
  background: var(--ndlcc-color-surface-soft);
}

.ndlcc-ui-datepicker .ui-datepicker-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ndlcc-color-text);
}

.ndlcc-ui-datepicker .ui-datepicker-prev,
.ndlcc-ui-datepicker .ui-datepicker-next {
  top: 8px;
}

.ndlcc-ui-datepicker table {
  margin: 6px 0 0;
  background: var(--ndlcc-color-surface);
}

.ndlcc-ui-datepicker td a,
.ndlcc-ui-datepicker td span {
  display: block;
  padding: 4px 6px;
  border-radius: 8px;
  background: var(--ndlcc-color-surface);
  text-align: center;
}

/* ==========================================================================
   09. Form scopes (plugin form + editor + datepicker)
   ========================================================================== */
.ndlcc-form-visibility {
  margin: 0 0 18px;
}

.ndlcc-form-visibility label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #374151;
}

.ndlcc-form-visibility select {
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid var(--ndlcc-color-border);
  border-radius: 12px;
  background: var(--ndlcc-color-surface);
}

.ndlcc-form-popup-scope h1,
.ndlcc-form-popup-scope h2,
.ndlcc-form-popup-scope h3,
.ndlcc-form-popup-scope h4,
.ndlcc-plugin-form-scope h1,
.ndlcc-plugin-form-scope h2,
.ndlcc-plugin-form-scope h3,
.ndlcc-plugin-form-scope h4 {
  margin: 0 0 8px;
  color: var(--ndlcc-color-text);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.ndlcc-form-popup-scope .wp-editor-wrap,
.ndlcc-plugin-form-scope .wp-editor-wrap {
  max-width: 100%;
}

.ndlcc-form-popup-scope .wp-editor-tabs,
.ndlcc-form-popup-scope .quicktags-toolbar,
.ndlcc-form-popup-scope .switch-html,
.ndlcc-plugin-form-scope .wp-editor-tabs,
.ndlcc-plugin-form-scope .quicktags-toolbar,
.ndlcc-plugin-form-scope .switch-html {
  display: none;
}

.ndlcc-form-popup-scope .mce-toolbar .mce-btn button,
.ndlcc-form-popup-scope .mce-toolbar .mce-btn-group .mce-btn button,
.ndlcc-plugin-form-scope .mce-toolbar .mce-btn button,
.ndlcc-plugin-form-scope .mce-toolbar .mce-btn-group .mce-btn button {
  height: 28px;
  padding: 3px 5px;
  line-height: 1;
}

.ndlcc-form-popup-scope .mce-toolbar .mce-ico,
.ndlcc-plugin-form-scope .mce-toolbar .mce-ico {
  font-size: 13px;
}

.ndlcc-form-popup-scope iframe,
.ndlcc-form-popup-scope textarea,
.ndlcc-form-popup-scope .wp-editor-area,
.ndlcc-plugin-form-scope .wp-editor-area,
.ndlcc-plugin-form-scope textarea.ndlcc-editor-textarea {
  min-height: 220px;
}

.ndlcc-form-popup-scope .ndlcc-time-fields,
.ndlcc-plugin-form-scope .ndlcc-time-fields {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 14px;
}

.ndlcc-form-popup-scope .ndlcc-time-field,
.ndlcc-plugin-form-scope .ndlcc-time-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.ndlcc-form-popup-scope .ndlcc-time-field label,
.ndlcc-plugin-form-scope .ndlcc-time-field label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.ndlcc-form-popup-scope .ndlcc-time-select,
.ndlcc-plugin-form-scope .ndlcc-time-select {
  display: block;
  width: 100%;
  max-width: 150px;
  padding: 8px 10px;
  border: 1px solid var(--ndlcc-color-border-strong);
  border-radius: 8px;
  background: var(--ndlcc-color-surface);
  font-size: 14px;
}

.ndlcc-form-popup-scope .ndlcc-all-day-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--ndlcc-color-border);
  border-radius: var(--ndlcc-radius-sm);
  background: var(--ndlcc-color-surface);
  color: #374151;
  font-size: 13px;
}

.ndlcc-form-popup-scope .ndlcc-time-fields.is-all-day .ndlcc-time-field {
  opacity: .65;
}

.ndlcc-plugin-form-scope .ndlcc-event-form {
  display: grid;
  gap: 16px;
}

.ndlcc-plugin-form-scope .ndlcc-form-grid {
  display: grid;
  gap: 14px;
}

.ndlcc-plugin-form-scope .ndlcc-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ndlcc-plugin-form-scope .ndlcc-form-row {
  display: grid;
  gap: 6px;
}

.ndlcc-plugin-form-scope .ndlcc-form-row > label {
  color: var(--ndlcc-color-text-soft);
  font-size: 14px;
  font-weight: 600;
}

.ndlcc-plugin-form-scope input[type="text"],
.ndlcc-plugin-form-scope select,
.ndlcc-plugin-form-scope textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ndlcc-color-border);
  border-radius: 12px;
  background: var(--ndlcc-color-surface);
  color: var(--ndlcc-color-text);
  font-size: 14px;
  line-height: 1.35;
}

.ndlcc-plugin-form-scope .ndlcc-time-select-direct {
  max-width: none;
}

.ndlcc-plugin-form-scope .ndlcc-form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.ndlcc-plugin-form-scope .ndlcc-form-errors {
  padding: 10px 12px;
  border: 1px solid var(--ndlcc-color-danger-border);
  border-radius: 12px;
  background: var(--ndlcc-color-danger-soft);
  color: var(--ndlcc-color-danger-text);
  font-size: 13px;
}


.ndlcc-plugin-form-scope .ndlcc-overlap-warning {
  padding: 12px 14px;
  border: 1px solid var(--ndlcc-color-danger-border);
  border-radius: 12px;
  background: var(--ndlcc-color-danger-soft);
  color: var(--ndlcc-color-danger-text);
  gap: 10px;
}

.ndlcc-plugin-form-scope .ndlcc-overlap-warning-text {
  font-size: 13px;
  font-weight: 700;
}

.ndlcc-plugin-form-scope .ndlcc-overlap-warning-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.ndlcc-plugin-form-scope .ndlcc-overlap-warning-list li {
  margin: 0;
}

.ndlcc-plugin-form-scope .ndlcc-overlap-warning-list li span {
  display: block;
  opacity: 0.9;
}

.ndlcc-plugin-form-scope .ndlcc-overlap-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.ndlcc-plugin-form-scope .ndlcc-overlap-confirm input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
}

/* ==========================================================================
   10. Icon variants (embedded SVGs)
   ========================================================================== */
.ndlcc-icon-art--google path,
.ndlcc-icon-art--google circle,
.ndlcc-icon-art--google rect,
.ndlcc-icon-art--google polygon,
.ndlcc-icon-art--apple path,
.ndlcc-icon-art--apple circle,
.ndlcc-icon-art--apple rect,
.ndlcc-icon-art--apple polygon,
.ndlcc-icon-art--outlook path,
.ndlcc-icon-art--outlook circle,
.ndlcc-icon-art--outlook rect,
.ndlcc-icon-art--outlook polygon {
  stroke: none;
}

.ndlcc-icon-art--outlook path,
.ndlcc-icon-art--outlook circle,
.ndlcc-icon-art--outlook rect,
.ndlcc-icon-art--outlook polygon,
.ndlcc-icon-art--outlook line,
.ndlcc-icon-art--outlook polyline,
.ndlcc-icon-art--download path,
.ndlcc-icon-art--download circle,
.ndlcc-icon-art--download rect,
.ndlcc-icon-art--download polygon,
.ndlcc-icon-art--download line,
.ndlcc-icon-art--download polyline,
.ndlcc-icon-art--plus path,
.ndlcc-icon-art--plus circle,
.ndlcc-icon-art--plus rect,
.ndlcc-icon-art--plus polygon,
.ndlcc-icon-art--plus line,
.ndlcc-icon-art--plus polyline,
.ndlcc-icon-art--sync path,
.ndlcc-icon-art--sync circle,
.ndlcc-icon-art--sync rect,
.ndlcc-icon-art--sync polygon,
.ndlcc-icon-art--sync line,
.ndlcc-icon-art--sync polyline,
.ndlcc-icon-art--delete path,
.ndlcc-icon-art--delete circle,
.ndlcc-icon-art--delete rect,
.ndlcc-icon-art--delete polygon,
.ndlcc-icon-art--delete line,
.ndlcc-icon-art--delete polyline,
.ndlcc-icon-art--edit path,
.ndlcc-icon-art--edit circle,
.ndlcc-icon-art--edit rect,
.ndlcc-icon-art--edit polygon,
.ndlcc-icon-art--edit line,
.ndlcc-icon-art--edit polyline,
.ndlcc-icon-art--view path,
.ndlcc-icon-art--view circle,
.ndlcc-icon-art--view rect,
.ndlcc-icon-art--view polygon,
.ndlcc-icon-art--view line,
.ndlcc-icon-art--view polyline,
.ndlcc-icon-art--subscribe path,
.ndlcc-icon-art--subscribe circle,
.ndlcc-icon-art--subscribe rect,
.ndlcc-icon-art--subscribe polygon,
.ndlcc-icon-art--subscribe line,
.ndlcc-icon-art--subscribe polyline,
.ndlcc-icon-art--detail_header path,
.ndlcc-icon-art--detail_header circle,
.ndlcc-icon-art--detail_header rect,
.ndlcc-icon-art--detail_header polygon,
.ndlcc-icon-art--detail_header line,
.ndlcc-icon-art--detail_header polyline,
.ndlcc-icon-art--day_header path,
.ndlcc-icon-art--day_header circle,
.ndlcc-icon-art--day_header rect,
.ndlcc-icon-art--day_header polygon,
.ndlcc-icon-art--day_header line,
.ndlcc-icon-art--day_header polyline {
  fill: currentColor;
  stroke: none;
}


.ndlcc-icon-art--home path,
.ndlcc-icon-art--home circle,
.ndlcc-icon-art--home rect,
.ndlcc-icon-art--home polygon,
.ndlcc-icon-art--home line,
.ndlcc-icon-art--home polyline,
.ndlcc-icon-art--arrow_prev path,
.ndlcc-icon-art--arrow_prev circle,
.ndlcc-icon-art--arrow_prev rect,
.ndlcc-icon-art--arrow_prev polygon,
.ndlcc-icon-art--arrow_prev line,
.ndlcc-icon-art--arrow_prev polyline,
.ndlcc-icon-art--arrow_next path,
.ndlcc-icon-art--arrow_next circle,
.ndlcc-icon-art--arrow_next rect,
.ndlcc-icon-art--arrow_next polygon,
.ndlcc-icon-art--arrow_next line,
.ndlcc-icon-art--arrow_next polyline {
  stroke: none;
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .ndlcc-calendar {
    min-width: 1040px;
  }

  .ndlcc-weekdays,
  .ndlcc-grid {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
  }
}

@media (max-width: 860px) {
  .ndlcc-calendar-shell {
    overflow-x: visible;
  }

  .ndlcc-calendar-shell-breakout {
    left: auto;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 0;
  }

  .ndlcc-calendar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    border-radius: 18px;
  }

  .ndlcc-toolbar {
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }

  .ndlcc-toolbar-main,
  .ndlcc-toolbar-actions {
    width: 100%;
  }

  .ndlcc-toolbar-main {
    justify-content: space-between;
    gap: 8px;
  }

  .ndlcc-mobile-hide {
    display: none !important;
  }

  .ndlcc-mobile-only {
    display: flex !important;
  }

  .ndlcc-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }

  .ndlcc-toolbar-actions > .ndlcc-btn,
  .ndlcc-toolbar-actions > a.ndlcc-btn,
  .ndlcc-toolbar-actions > button.ndlcc-btn,
  .ndlcc-toolbar-actions > .ndlcc-export-menu,
  .ndlcc-toolbar-actions > .ndlcc-export-menu > .ndlcc-btn {
    width: auto !important;
    min-width: 0;
  }

  .ndlcc-toolbar-actions > .ndlcc-btn,
  .ndlcc-toolbar-actions > a.ndlcc-btn,
  .ndlcc-toolbar-actions > button.ndlcc-btn,
  .ndlcc-toolbar-actions > .ndlcc-export-menu > .ndlcc-btn {
    min-height: 42px;
    padding: 8px 10px;
    justify-content: center;
    gap: 6px;
  }

  .ndlcc-toolbar-actions .ndlcc-btn-icon-svg,
  .ndlcc-toolbar-actions .ndlcc-btn-icon-svg svg {
    width: 18px;
    height: 18px;
  }

  .ndlcc-btn-label--full {
    display: none;
  }

  .ndlcc-btn-label--short {
    display: inline;
  }

  .ndlcc-mobile-more-menu {
    position: relative;
  }

  .ndlcc-mobile-more-menu .ndlcc-export-menu-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    width: auto;
    max-width: none;
    max-height: min(62vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin-top: 0;
    z-index: 1400;
  }

  .ndlcc-mobile-more-menu .ndlcc-export-link,
  .ndlcc-mobile-more-menu .ndlcc-export-link-button,
  .ndlcc-mobile-more-menu a.ndlcc-export-link,
  .ndlcc-mobile-more-menu button.ndlcc-export-link-button {
    width: 100% !important;
    justify-content: flex-start;
  }

  .ndlcc-mobile-more-menu .ndlcc-export-menu-panel .ndlcc-export-link-label {
    white-space: normal;
  }

  .ndlcc-view-switch {
    display: flex;
    width: 100%;
    margin: 0 0 10px;
  }

  .ndlcc-view-btn {
    flex: 1 1 0;
  }

  .ndlcc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 6px;
  }

  .ndlcc-weekday {
    padding: 4px 0;
    font-size: 11px;
    letter-spacing: .01em;
  }

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

  .ndlcc-day {
    min-height: 88px;
    padding: 6px 4px;
    gap: 4px;
    justify-content: flex-start;
    border-radius: 14px;
  }

  .ndlcc-day-empty {
    min-height: 88px;
    border: 1px dashed rgba(148, 163, 184, .22);
    border-radius: 14px;
  }

  .ndlcc-modal {
    align-items: stretch;
    padding: 0;
  }

  .ndlcc-modal-dialog,
  .ndlcc-modal-dialog-wide,
  .ndlcc-modal-dialog-form {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .ndlcc-modal-dialog::before {
    border-radius: 0;
  }

  .ndlcc-modal-header {
    padding: 14px 16px;
  }

  .ndlcc-modal-body {
    padding: 16px;
  }

  .ndlcc-modal-title,
  .ndlcc-event-title {
    font-size: 20px;
  }

  .ndlcc-day-number {
    justify-content: flex-start;
    align-self: stretch;
    width: auto;
    margin-bottom: 0;
    font-size: .9rem;
    text-align: left;
  }

  .ndlcc-day-number-badge {
    min-width: 1.72rem;
    height: 1.72rem;
    padding: 0 .42rem;
  }

  .ndlcc-day-mobile-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: auto;
  }

  .ndlcc-day-count {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 2px 7px;
    border-radius: var(--ndlcc-radius-pill);
    background: var(--ndlcc-color-surface-soft);
    color: var(--ndlcc-color-text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }

  .ndlcc-day-markers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 8px;
  }

  .ndlcc-day-marker {
    display: inline-flex;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
  }

  .ndlcc-day-marker.is-past {
    opacity: .55;
  }

  .ndlcc-day-events {
    display: none;
  }

  .ndlcc-daylist-toolbar {
    justify-content: space-between;
    gap: 8px;
  }

  .ndlcc-daylist-title {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 18px;
  }

  .ndlcc-day-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ndlcc-day-card-actions,
  .ndlcc-event-actions,
  .ndlcc-event-export-links {
    width: 100%;
  }

  .ndlcc-event-header {
    padding-right: 16px;
    align-items: flex-start;
  }

  .ndlcc-event-toolbar-left {
    width: 100%;
    flex-wrap: wrap;
  }

  .ndlcc-export-menu-panel {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    margin-top: 10px;
  }

  .ndlcc-mobile-more-menu .ndlcc-export-menu-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    width: auto;
    max-width: none;
    max-height: min(62vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin-top: 0;
  }

  .ndlcc-footer {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .ndlcc-plugin-form-scope .ndlcc-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ndlcc-toolbar-main {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
  }

  .ndlcc-title {
    grid-column: 2;
    order: 0;
    min-width: 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    writing-mode: horizontal-tb !important;
    word-break: normal;
    overflow-wrap: normal;
  }

  .ndlcc-nav {
    width: 40px;
    min-width: 40px;
  }

  .ndlcc-toolbar-actions > .ndlcc-btn,
  .ndlcc-toolbar-actions > a.ndlcc-btn,
  .ndlcc-toolbar-actions > button.ndlcc-btn,
  .ndlcc-toolbar-actions > .ndlcc-export-menu > .ndlcc-btn {
    min-height: 40px;
    padding: 7px 8px;
  }

  .ndlcc-toolbar-actions .ndlcc-btn-label,
  .ndlcc-mobile-more-menu .ndlcc-export-link-label {
    font-size: 13px;
  }

  .ndlcc-weekday {
    font-size: 10px;
  }

  .ndlcc-day {
    min-height: 78px;
    padding: 4px 3px;
    gap: 3px;
  }

  .ndlcc-day-empty {
    min-height: 78px;
  }

  .ndlcc-day-number {
    font-size: 0.84rem;
  }

  .ndlcc-day-number-badge {
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.35rem;
  }

  .ndlcc-day-mobile-summary {
    gap: 4px;
  }

  .ndlcc-day-count,
  .ndlcc-more {
    font-size: 10px;
  }

  .ndlcc-day-marker {
    width: 6px;
    height: 6px;
  }

  .ndlcc-daylist-toolbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    display: grid;
    align-items: center;
  }

  .ndlcc-daylist-title {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.2;
    white-space: normal;
    writing-mode: horizontal-tb !important;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .ndlcc-daylist-toolbar--list {
    display: block;
  }

  .ndlcc-modal-title-wrap {
    gap: 8px;
  }

  .ndlcc-modal-title,
  .ndlcc-event-title {
    font-size: 18px;
  }

  .ndlcc-help-section {
    padding: 12px 14px;
  }

  .ndlcc-event-export-links .ndlcc-export-link,
  .ndlcc-event-export-links .ndlcc-export-link-button {
    width: 100%;
  }

  .ndlcc-chip,
  .ndlcc-chip-title,
  .ndlcc-day-card-title,
  .ndlcc-event-title {
    writing-mode: horizontal-tb !important;
    word-break: normal;
    overflow-wrap: normal;
  }

  .ndlcc-chip {
    gap: 4px;
    padding: 5px 6px;
    font-size: 11px;
  }

  .ndlcc-chip-time {
    font-size: 10px;
  }

  .ndlcc-chip-title {
    font-size: 11px;
    line-height: 1.2;
  }

  .ndlcc-day-card-title,
  .ndlcc-event-title,
  .ndlcc-modal-title {
    font-size: 16px;
    line-height: 1.2;
  }

}


.ndlcc-modal-dialog-help {
  max-width: min(92vw, 760px);
}

.ndlcc-help-body {
  background: linear-gradient(180deg, #fffdf6 0%, #ffffff 100%);
}

.ndlcc-help-content {
  display: grid;
  gap: 14px;
}

.ndlcc-help-section {
  padding: 14px 16px;
  border: 1px solid var(--ndlcc-color-border);
  border-radius: 16px;
  background: var(--ndlcc-color-surface);
  box-shadow: var(--ndlcc-shadow-sm);
}

.ndlcc-help-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ndlcc-color-text);
}

.ndlcc-help-lead,
.ndlcc-help-paragraph,
.ndlcc-help-footer {
  margin: 0;
  color: var(--ndlcc-color-text-soft);
  line-height: 1.55;
}

.ndlcc-help-list {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--ndlcc-color-text);
  display: grid;
  gap: 6px;
}

.ndlcc-help-list li code {
  background: var(--ndlcc-color-surface-soft);
  border: 1px solid var(--ndlcc-color-border);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
}

/* Mini calendrier du formulaire : fond visible même si le thème applique de la transparence */
.ndlcc-form-popup-scope .ui-datepicker,
.ndlcc-plugin-form-scope .ui-datepicker,
.ndlcc-modal .ui-datepicker {
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 8px 18px rgba(15,23,42,0.08) !important;
}
.ndlcc-form-popup-scope .ui-datepicker table,
.ndlcc-plugin-form-scope .ui-datepicker table,
.ndlcc-modal .ui-datepicker table {
  background: transparent !important;
}



/* Renfort mini calendrier formulaire : certains themes/integrations detachent le datepicker hors du scope du formulaire */
#ui-datepicker-div.ndlcc-ui-datepicker,
#ui-datepicker-div.ui-datepicker,
.ndlcc-ui-datepicker,
.ui-datepicker.ndlcc-ui-datepicker {
  background: #f3f4f6 !important;
  background-color: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(15,23,42,0.10) !important;
  opacity: 1 !important;
}
#ui-datepicker-div.ndlcc-ui-datepicker .ui-datepicker-header,
#ui-datepicker-div.ui-datepicker .ui-datepicker-header,
.ndlcc-ui-datepicker .ui-datepicker-header {
  background: #eef2f7 !important;
  background-color: #eef2f7 !important;
  border-bottom: 1px solid #d1d5db !important;
}
#ui-datepicker-div.ndlcc-ui-datepicker table,
#ui-datepicker-div.ui-datepicker table,
.ndlcc-ui-datepicker table,
#ui-datepicker-div.ndlcc-ui-datepicker td a,
#ui-datepicker-div.ndlcc-ui-datepicker td span,
#ui-datepicker-div.ui-datepicker td a,
#ui-datepicker-div.ui-datepicker td span,
.ndlcc-ui-datepicker td a,
.ndlcc-ui-datepicker td span {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
}
#ui-datepicker-div.ndlcc-ui-datepicker .ui-state-active,
#ui-datepicker-div.ui-datepicker .ui-state-active,
.ndlcc-ui-datepicker .ui-state-active {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
  color: #0f172a !important;
}


.ndlcc-version-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.35rem .65rem;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.78);
  color:#475569;
  border-radius:999px;
  font-size:.78rem;
  line-height:1;
  white-space:nowrap;
  backdrop-filter: blur(6px);
}

@media (max-width: 782px){
  .ndlcc-version-badge{
    font-size:.72rem;
    padding:.3rem .55rem;
  }
}


.ndlcc-version-badge{
  gap:.45rem;
}
.ndlcc-version-badge__label{
  display:inline-flex;
  align-items:center;
}
.ndlcc-version-badge__label--link{
  color:#1e293b;
  text-decoration:none;
  font-weight:600;
  transition:color .15s ease, opacity .15s ease;
}
.ndlcc-version-badge__label--link:hover,
.ndlcc-version-badge__label--link:focus{
  color:#0f172a;
  text-decoration:none;
  opacity:.88;
}
@media (max-width: 782px){
  .ndlcc-version-badge{
    gap:.35rem;
  }
  .ndlcc-version-badge__link{
    padding:.2rem .45rem;
    font-size:.72rem;
  }
}
