.schedule-dashboard {
  --sched-surface-radius: 22px;
  --sched-surface-line: var(--ui-line, rgba(213, 223, 232, 0.96));
  --sched-surface-bg: linear-gradient(180deg, var(--ui-surface, #ffffff) 0%, var(--ui-surface-soft, #f8fafc) 100%);
  --sched-surface-shadow: 0 14px 28px rgba(33, 55, 75, 0.07);
  --sched-scroll-thumb: #b7cad8;
  --sched-scroll-thumb-hover: #9fb7c8;
  --sched-hero-start: #16324b;
  --sched-hero-mid: #224a6a;
  --sched-hero-end: #315f85;
  --sched-hero-text: #f7fbff;
  --sched-hero-chip-text: #eff7fd;
  --sched-action-start: #f4f9fd;
  --sched-action-end: #d7e8f5;
  --sched-action-text: #16324b;
  --sched-title: #18354b;
  --sched-title-inverse: #ffffff;
  --sched-body-inverse: rgba(236, 245, 251, 0.84);
  --sched-text-main: #17354b;
  --sched-text-muted: #5c7384;
  --sched-text-soft: #6a7e8e;
  --sched-chip-bg: #eef4f8;
  --sched-chip-text: #234762;
  --sched-card-line: #dde7ee;
  --sched-card-bg: #ffffff;
  --sched-card-bg-soft: #f8fbfd;
  --sched-focus: rgba(35, 71, 98, 0.2);
  --sched-focus-soft: rgba(35, 71, 98, 0.08);
}

/* Shared primitives to reduce one-off style declarations. */
:where(.schedule-primary-link, .schedule-secondary-link, .schedule-hero-primary-btn) {
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease;
}

:where(.schedule-primary-link, .schedule-secondary-link, .schedule-reset-link, .schedule-inline-link, .schedule-side-item, .schedule-template-card, .schedule-alert-item):hover {
  transform: translateY(-1px);
}

.schedule-dashboard {
  gap: 20px;
  padding: 24px;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 24px;
  border: 1px solid rgba(209, 220, 229, 0.9);
  background:
    radial-gradient(circle at top left, rgba(81, 126, 163, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 253, 0.98) 100%);
  box-shadow: 0 22px 50px rgba(26, 48, 68, 0.1);
  font-family: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #b7cad8 transparent;
}

.schedule-dashboard [hidden] {
  display: none !important;
}

.schedule-dashboard::-webkit-scrollbar {
  width: 10px;
}

.schedule-dashboard::-webkit-scrollbar-track {
  background-color: transparent;
}

.schedule-dashboard::-webkit-scrollbar-thumb {
  background-color: var(--sched-scroll-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.schedule-dashboard::-webkit-scrollbar-thumb:hover {
  background-color: var(--sched-scroll-thumb-hover);
}

.schedule-management-header {
  align-items: flex-start;
}

.schedule-header-copy {
  display: grid;
  gap: 8px;
  max-width: 860px;
}

.schedule-header-copy h2 {
  margin: 0;
}

.schedule-icon-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.schedule-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) auto;
  gap: 20px;
  padding: 28px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(119, 151, 177, 0.2);
  background:
    radial-gradient(circle at 18% 18%, rgba(130, 181, 214, 0.34), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(135deg, var(--sched-hero-start) 0%, var(--sched-hero-mid) 52%, var(--sched-hero-end) 100%);
  color: var(--sched-hero-text);
}

.schedule-hero::after {
  content: '';
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 62%);
  pointer-events: none;
}

.schedule-hero-copy,
.schedule-hero-actions {
  position: relative;
  z-index: 1;
}

.schedule-title-frame {
  display: grid;
  gap: 10px;
  max-width: 760px;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(224, 238, 248, 0.2);
  background:
    linear-gradient(180deg, rgba(6, 18, 31, 0.24) 0%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 34px rgba(11, 24, 37, 0.18);
}

.schedule-title-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(235, 244, 250, 0.16);
  background-color: rgba(6, 20, 34, 0.22);
  color: #f2f8fc;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.schedule-eyebrow,
.schedule-section-kicker {
  margin: 0 0 10px;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.schedule-eyebrow {
  color: rgba(244, 249, 253, 0.92);
}

.schedule-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--sched-title-inverse);
}

.schedule-title-frame h2 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 72px;
  padding: 10px 20px 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #ffffff 0%, #deedf7 100%);
  box-shadow: 0 16px 30px rgba(7, 20, 31, 0.22);
  color: #143149;
  text-shadow: none;
}

.schedule-hero-text {
  max-width: 64ch;
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(235, 245, 252, 0.86);
}

.schedule-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.schedule-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(219, 234, 245, 0.22);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--sched-hero-chip-text);
  font-size: 0.84rem;
  font-weight: 700;
}

.schedule-hero-actions {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 10px;
}

.schedule-hero-sidecard {
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(222, 236, 246, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(4px);
}

.schedule-hero-sidecard h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--sched-title-inverse);
}

.schedule-hero-card-text {
  margin: 0;
  color: var(--sched-body-inverse);
  line-height: 1.6;
  font-size: 0.92rem;
}

.schedule-hero-action-row {
  display: grid;
  gap: 10px;
}

.schedule-hero-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sched-action-start) 0%, var(--sched-action-end) 100%);
  color: var(--sched-action-text);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.schedule-hero-primary-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #deedf7 100%);
}

.schedule-day-card,
.schedule-side-card,
.schedule-empty-state,
.schedule-directory-card,
.schedule-calendar-panel {
  border-radius: var(--sched-surface-radius);
  border: 1px solid var(--sched-surface-line);
  background: var(--sched-surface-bg);
  box-shadow: var(--sched-surface-shadow);
}

.schedule-day-header,
.schedule-side-header,
.schedule-event-top,
.schedule-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.schedule-day-header h3,
.schedule-side-header h3,
.schedule-empty-state h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: -0.03em;
  color: var(--sched-title);
}

.schedule-primary-link,
.schedule-secondary-link,
.schedule-reset-link,
.schedule-inline-link,
.schedule-side-item,
.schedule-template-card,
.schedule-alert-item {
  text-decoration: none;
}

.schedule-primary-link,
.schedule-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 210px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.schedule-secondary-link {
  width: 100%;
}

.schedule-primary-link {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--sched-action-start) 0%, var(--sched-action-end) 100%);
  color: var(--sched-action-text);
}

.schedule-secondary-link {
  border: 1px solid rgba(220, 234, 245, 0.24);
  background-color: rgba(255, 255, 255, 0.08);
  color: #eef6fc;
}

.schedule-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 14px;
}

.schedule-metric-card {
  display: grid;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(214, 224, 233, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f6fafc 100%);
  box-shadow: 0 12px 24px rgba(31, 56, 77, 0.06);
}

.schedule-metric-card.is-accent {
  background: linear-gradient(135deg, #1f4462 0%, #35678f 100%);
  border-color: rgba(45, 87, 121, 0.9);
}

.schedule-coverage-card {
  gap: 14px;
}

.schedule-metric-label {
  color: var(--sched-text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-metric-card.is-accent .schedule-metric-label,
.schedule-metric-card.is-accent .schedule-metric-sub,
.schedule-metric-card.is-accent .schedule-metric-value {
  color: var(--sched-title-inverse);
}

.schedule-metric-value {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--sched-text-main);
}

.schedule-metric-sub {
  color: var(--sched-text-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.schedule-coverage-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.schedule-coverage-heading {
  display: grid;
  gap: 4px;
}

.schedule-coverage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(236, 244, 250, 0.22);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
}

.schedule-coverage-toggle-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(247, 251, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.schedule-coverage-toggle-link.is-active {
  background-color: var(--sched-title-inverse);
  box-shadow: 0 8px 16px rgba(7, 20, 31, 0.18);
  color: var(--sched-text-main);
}

.schedule-coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.schedule-coverage-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(236, 244, 250, 0.14);
  background: linear-gradient(180deg, rgba(6, 22, 35, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.schedule-coverage-item-label {
  color: rgba(247, 251, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule-coverage-item .schedule-metric-value {
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
}

.schedule-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 16px 18px;
  border: 1px solid rgba(214, 224, 233, 0.92);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98) 0%, rgba(244, 249, 252, 0.98) 100%);
}

.schedule-filter-grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(180px, 1.45fr) repeat(6, minmax(92px, 1fr));
  gap: 10px;
  align-items: end;
}

.schedule-filter-field {
  display: grid;
  gap: 5px;
}

.schedule-filter-field-wide {
  grid-column: span 1;
}

.schedule-filter-field label {
  color: var(--sched-text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-filter-field input,
.schedule-filter-field select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--sched-card-line);
  border-radius: 12px;
  background-color: var(--sched-card-bg);
  color: var(--sched-chip-text);
  font-size: 0.84rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.schedule-filter-field input:focus,
.schedule-filter-field select:focus {
  border-color: var(--sched-scroll-thumb-hover);
  outline: none;
  box-shadow: 0 0 0 3px var(--sched-focus-soft);
}

.schedule-filter-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: end;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

.schedule-filter-actions .icon-btn,
.schedule-filter-actions .user-add-btn {
  flex: 0 0 auto;
}

.schedule-submit-btn {
  min-width: 144px;
  margin: 0;
  border-color: var(--sched-chip-text);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sched-chip-text) 0%, var(--sched-hero-end) 100%);
}

.schedule-reset-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--sched-card-line);
  background-color: var(--sched-card-bg);
  color: var(--sched-chip-text);
  font-size: 0.85rem;
  font-weight: 700;
}

.schedule-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.schedule-main-column,
.schedule-side-column {
  display: grid;
  gap: 18px;
}

.schedule-day-card,
.schedule-side-card,
.schedule-directory-card,
.schedule-calendar-panel {
  padding: 20px;
}

.schedule-directory-card,
.schedule-calendar-panel {
  display: grid;
  gap: 16px;
}

.schedule-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.schedule-directory-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--sched-card-line);
  background: linear-gradient(180deg, var(--sched-card-bg) 0%, var(--sched-card-bg-soft) 100%);
  box-shadow: 0 10px 22px rgba(31, 56, 77, 0.06);
}

.schedule-directory-top,
.schedule-calendar-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.schedule-directory-top h3,
.schedule-calendar-day-head h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  color: var(--sched-text-main);
}

.schedule-directory-count,
.schedule-calendar-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background-color: var(--sched-chip-bg);
  color: var(--sched-chip-text);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-directory-text {
  margin: 0;
  color: var(--sched-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.schedule-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-directory-actions .action-icon-btn,
.schedule-directory-actions .inline-action-form {
  flex: 0 0 auto;
}

.schedule-directory-table-wrap {
  border-color: var(--sched-card-line);
  box-shadow: 0 10px 22px rgba(31, 56, 77, 0.06);
}

.schedule-directory-table {
  min-width: 980px;
}

.schedule-directory-table tbody tr.is-selected {
  background: linear-gradient(90deg, rgba(41, 101, 144, 0.14) 0%, rgba(41, 101, 144, 0.04) 100%);
}

.schedule-directory-table tbody tr:hover {
  background-color: #f8fbfd;
}

.schedule-directory-table tbody tr.is-selected:hover {
  background: linear-gradient(90deg, rgba(41, 101, 144, 0.18) 0%, rgba(41, 101, 144, 0.07) 100%);
}

.schedule-directory-table td {
  vertical-align: middle;
}

.schedule-directory-table .table-actions-cell {
  min-width: 360px;
}

.schedule-directory-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.schedule-directory-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.schedule-directory-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.schedule-directory-header-actions .schedule-inline-link:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.schedule-directory-row-title strong {
  color: var(--sched-text-main);
  font-size: 0.96rem;
  font-weight: 800;
}

.schedule-directory-table tbody tr.is-selected .schedule-directory-row-title strong {
  color: #123e61;
}

.schedule-directory-inline-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background-color: var(--sched-chip-bg);
  color: var(--sched-chip-text);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-directory-selection-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #bfd6e7;
  background: linear-gradient(135deg, #eef6fb 0%, #e1edf6 100%);
  color: #1f4a6a;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-directory-selection-badge.is-inline {
  border-color: #2e7097;
  background: linear-gradient(135deg, #245a7d 0%, #2f789e 100%);
  color: #f7fbff;
}

.schedule-directory-row-text {
  margin: 0;
  color: var(--sched-text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.schedule-directory-row-meta {
  justify-content: flex-start;
}

.schedule-directory-row-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-directory-row-actions .schedule-inline-link,
.schedule-directory-row-actions .action-icon-btn,
.schedule-directory-row-actions .inline-action-form {
  flex: 0 0 auto;
}

.schedule-month-panel {
  display: grid;
  gap: 18px;
}

.schedule-month-panel-head {
  align-items: center;
}

.schedule-month-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.schedule-month-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--sched-card-line);
  background-color: var(--sched-card-bg);
  color: var(--sched-chip-text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.schedule-month-nav:hover {
  transform: translateY(-1px);
  border-color: var(--sched-scroll-thumb);
  box-shadow: 0 10px 20px rgba(31, 56, 77, 0.08);
}

.schedule-month-today {
  min-height: 42px;
}

.schedule-month-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.schedule-month-summary-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background-color: var(--sched-chip-bg);
  color: var(--sched-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.schedule-month-summary-item.is-warning {
  background-color: rgba(197, 139, 34, 0.12);
  color: #9a620b;
}

.schedule-month-board-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.schedule-month-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  min-width: 980px;
  border: 1px solid var(--sched-card-line);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sched-card-bg) 0%, var(--sched-card-bg-soft) 100%);
}

.schedule-month-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  border-bottom: 1px solid var(--sched-card-line);
  background: linear-gradient(180deg, #f7fbfd 0%, #edf4f9 100%);
  color: var(--sched-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-month-day {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 164px;
  padding: 12px;
  border-right: 1px solid var(--sched-card-line);
  border-bottom: 1px solid var(--sched-card-line);
  background-color: rgba(255, 255, 255, 0.98);
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.schedule-month-day:nth-child(7n) {
  border-right: none;
}

.schedule-month-day[data-calendar-day] {
  cursor: pointer;
}

.schedule-month-day[data-calendar-day]:hover {
  background-color: #f7fbfe;
}

.schedule-month-day[data-calendar-day]:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--sched-focus);
  outline-offset: -3px;
}

.schedule-month-day.is-weekend {
  background-color: rgba(247, 250, 252, 0.98);
}

.schedule-month-day.is-outside {
  background-color: rgba(244, 248, 251, 0.7);
}

.schedule-month-day.is-today {
  background: linear-gradient(180deg, #ffffff 0%, #edf4f9 100%);
}

.schedule-month-day.is-selected {
  background: linear-gradient(180deg, #f8fbfe 0%, #e8f1f8 100%);
  box-shadow: inset 0 0 0 2px rgba(35, 71, 98, 0.14);
}

.schedule-month-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.schedule-month-day-number-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule-month-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #17354b;
  font-size: 0.95rem;
  font-weight: 800;
}

.schedule-month-day.is-today .schedule-month-day-number {
  background: linear-gradient(135deg, #234762 0%, #315f85 100%);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(35, 71, 98, 0.22);
}

.schedule-month-day.is-outside .schedule-month-day-number,
.schedule-month-day.is-outside .schedule-month-day-label {
  color: #8ca0af;
}

.schedule-month-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background-color: #eef4f8;
  color: #234762;
  font-size: 0.72rem;
  font-weight: 800;
}

.schedule-month-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  border-radius: 10px;
  border: 1px dashed #c7d5e0;
  background-color: #ffffff;
  color: #315f85;
}

.schedule-month-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.schedule-month-day-label {
  margin: 0;
  color: #6f8697;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-month-items {
  display: grid;
  align-content: start;
  gap: 6px;
}

.schedule-month-item,
.schedule-month-more {
  text-decoration: none;
}

.schedule-month-item {
  --month-item-color: #234762;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background-color: #f5f9fc;
  box-shadow: inset 3px 0 0 var(--month-item-color);
  color: #1f4662;
}

.schedule-month-item.is-match {
  --month-item-color: #2f7758;
}

.schedule-month-item.is-open {
  --month-item-color: #c58b22;
}

.schedule-month-item.is-partial {
  --month-item-color: #5c86a7;
}

.schedule-month-item.is-mismatch {
  --month-item-color: #c45358;
}

.schedule-month-item.is-inactive {
  --month-item-color: #8a5f6a;
}

.schedule-month-item-time {
  color: #2d556f;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-month-item-text {
  color: #17354b;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.schedule-month-more {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  background-color: #eef4f8;
  color: #315f85;
  font-size: 0.76rem;
  font-weight: 800;
}

.schedule-month-empty {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px dashed #d7e3ec;
  color: #8aa0af;
  font-size: 0.74rem;
  font-weight: 700;
}

.schedule-calendar-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.schedule-calendar-day {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 280px;
  scroll-margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #dde7ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 12px 24px rgba(31, 56, 77, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.schedule-calendar-day[data-day-anchor] {
  cursor: pointer;
}

.schedule-calendar-day[data-day-anchor]:hover {
  transform: translateY(-2px);
  border-color: #c7d5e0;
  box-shadow: 0 16px 30px rgba(31, 56, 77, 0.1);
}

.schedule-calendar-day[data-day-anchor]:focus-visible {
  outline: 3px solid rgba(35, 71, 98, 0.22);
  outline-offset: 2px;
}

.schedule-calendar-day.is-today {
  border-color: #b7cad8;
  background: linear-gradient(180deg, #ffffff 0%, #edf4f9 100%);
}

.schedule-calendar-day.is-selected {
  border-color: #234762;
  background: linear-gradient(180deg, #ffffff 0%, #e7f0f7 100%);
  box-shadow: 0 18px 34px rgba(35, 71, 98, 0.14);
}

.schedule-calendar-cta,
.schedule-calendar-add,
.schedule-empty-action {
  margin: 0;
}

.schedule-calendar-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px dashed #bfd0dc;
  border-radius: 12px;
  background-color: #f8fbfd;
  color: #234762;
  font-size: 0.84rem;
  font-weight: 800;
}

.schedule-calendar-cta:disabled,
.schedule-calendar-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.schedule-calendar-slots {
  display: grid;
  gap: 10px;
  align-content: start;
}

.schedule-calendar-empty {
  display: grid;
  place-items: center;
  min-height: 136px;
  margin: 0;
  padding: 18px;
  border: 1px dashed #d8e3ec;
  border-radius: 16px;
  background-color: #fbfdfe;
  color: #6a7e8e;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.schedule-calendar-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.schedule-calendar-entry {
  --entry-color: #234762;
  display: grid;
  gap: 4px;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  border: 1px solid #dde7ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: inset 4px 0 0 var(--entry-color);
  color: #27435a;
  text-decoration: none;
}

.schedule-calendar-entry.is-match {
  --entry-color: #2f7758;
}

.schedule-calendar-entry.is-open {
  --entry-color: #c58b22;
}

.schedule-calendar-entry.is-partial {
  --entry-color: #5c86a7;
}

.schedule-calendar-entry.is-mismatch {
  --entry-color: #c45358;
}

.schedule-calendar-entry.is-inactive {
  --entry-color: #8a5f6a;
}

.schedule-calendar-entry.is-neutral {
  --entry-color: #234762;
}

.schedule-calendar-entry strong {
  color: #17354b;
  font-size: 0.9rem;
}

.schedule-calendar-entry span {
  color: #617687;
  font-size: 0.82rem;
  font-weight: 700;
}

.schedule-calendar-entry-time {
  color: #2d556f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule-calendar-entry-delete {
  display: flex;
}

.schedule-calendar-entry-delete .action-icon-btn {
  width: 42px;
  min-height: 100%;
  height: auto;
}

.schedule-calendar-entry-actions {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.schedule-calendar-entry-actions .action-icon-btn,
.schedule-calendar-entry-actions .inline-action-form,
.schedule-calendar-entry-actions .inline-action-form .action-icon-btn {
  width: 42px;
  min-height: 100%;
  height: auto;
}

.schedule-day-focus-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(201, 214, 225, 0.96);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(234, 242, 248, 0.98) 100%);
  box-shadow: 0 14px 28px rgba(33, 55, 75, 0.07);
}

.schedule-day-focus-bar h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
  color: #17354b;
}

.schedule-day-focus-text {
  margin: 8px 0 0;
  color: #5b7182;
  font-size: 0.88rem;
  line-height: 1.55;
}

.schedule-day-focus-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.schedule-day-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.schedule-day-stats span,
.schedule-live-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d8e2ea;
  background-color: #f4f8fb;
  color: #486073;
  font-size: 0.8rem;
  font-weight: 700;
}

.schedule-live-indicator {
  border-color: rgba(84, 142, 111, 0.26);
  background-color: rgba(89, 158, 122, 0.12);
  color: #2d6a4f;
}

.schedule-day-timeline-wrap {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.schedule-day-time-axis {
  --timeline-hour-height: 64px;
  position: relative;
  min-height: calc(24 * var(--timeline-hour-height));
}

.schedule-day-time-axis span {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-50%);
  color: #7d94a5;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-day-time-axis span:last-child {
  transform: translateY(-100%);
}

.schedule-day-timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.schedule-day-timeline-board {
  --timeline-hour-height: 64px;
  position: relative;
  min-width: 760px;
  min-height: calc(24 * var(--timeline-hour-height));
  border: 1px solid #dde7ee;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 253, 0.98) 100%),
    repeating-linear-gradient(to bottom, rgba(236, 243, 248, 0.38) 0, rgba(236, 243, 248, 0.38) 1px, transparent 1px, transparent var(--timeline-hour-height));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 12px 24px rgba(26, 48, 68, 0.06);
}

.schedule-day-timeline-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid #e6eef4;
}

.schedule-event-junction {
  --junction-top: 0%;
  --junction-left: 0%;
  --junction-width: 100%;
  position: absolute;
  top: var(--junction-top);
  left: calc(var(--junction-left) + 10px);
  width: calc(var(--junction-width) - 20px);
  height: 22px;
  transform: translateY(-50%);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: row-resize;
  z-index: 4;
  touch-action: none;
  user-select: none;
}

.schedule-event-junction-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 2px dashed rgba(35, 71, 98, 0.28);
  transform: translateY(-50%);
}

.schedule-event-junction-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #c8d6e2;
  background: linear-gradient(180deg, #ffffff 0%, #edf4f9 100%);
  box-shadow: 0 8px 18px rgba(26, 48, 68, 0.1);
  transform: translate(-50%, -50%);
}

.schedule-event-junction-grip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  border-top: 2px dotted #7b93a5;
  transform: translate(-50%, -50%);
}

.schedule-event-junction-label {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 16px);
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.96);
  color: #294a62;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(26, 48, 68, 0.08);
}

.schedule-event-junction:hover .schedule-event-junction-line,
.schedule-event-junction.is-dragging .schedule-event-junction-line {
  border-top-color: rgba(35, 71, 98, 0.54);
}

.schedule-event-junction:hover .schedule-event-junction-grip,
.schedule-event-junction.is-dragging .schedule-event-junction-grip {
  border-color: #9fb7c8;
  box-shadow: 0 12px 22px rgba(26, 48, 68, 0.16);
}

.schedule-event-junction.is-dragging .schedule-event-junction-label {
  background-color: #234762;
  color: #ffffff;
}

.schedule-event-junction:focus-visible {
  outline: none;
}

.schedule-event-junction:focus-visible .schedule-event-junction-grip {
  box-shadow: 0 0 0 3px rgba(35, 71, 98, 0.18), 0 12px 22px rgba(26, 48, 68, 0.16);
}

.schedule-event-block {
  --status-color: #234762;
  --event-top: 0%;
  --event-height: 10%;
  --event-left: 0%;
  --event-width: 100%;
  position: absolute;
  top: var(--event-top);
  left: calc(var(--event-left) + 10px);
  width: calc(var(--event-width) - 20px);
  height: var(--event-height);
  min-height: 72px;
  padding: 12px 12px 10px 16px;
  border-radius: 18px;
  border: 1px solid rgba(218, 228, 236, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 252, 0.98) 100%);
  box-shadow: 0 12px 24px rgba(26, 48, 68, 0.08);
  overflow: hidden;
  z-index: 1;
}

.schedule-event-block::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--status-color) 0%, rgba(26, 48, 68, 0.82) 100%);
}

.schedule-event-block.is-open {
  border-color: rgba(197, 139, 34, 0.34);
}

.schedule-event-edge-handle {
  --edge-top: 0%;
  --edge-left: 0%;
  --edge-width: 100%;
  position: absolute;
  top: var(--edge-top);
  left: calc(var(--edge-left) + 10px);
  width: calc(var(--edge-width) - 20px);
  height: 20px;
  transform: translateY(calc(-50% - 7px));
  border: 0;
  padding: 0;
  background: transparent;
  cursor: ns-resize;
  z-index: 5;
  touch-action: none;
  user-select: none;
}

.schedule-event-edge-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 2px solid rgba(35, 71, 98, 0.2);
  transform: translateY(-50%);
}

.schedule-event-edge-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #bfd0dd;
  background: linear-gradient(180deg, #ffffff 0%, #eef4f8 100%);
  box-shadow: 0 6px 14px rgba(26, 48, 68, 0.14);
  transform: translate(-50%, -50%);
}

.schedule-event-edge-grip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  border-top: 2px dotted #7b93a5;
  transform: translate(-50%, -50%);
}

.schedule-event-edge-label {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  max-width: calc(100% - 10px);
  padding: 0 8px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.98);
  color: #294a62;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 16px rgba(26, 48, 68, 0.08);
}

.schedule-event-edge-handle.is-start .schedule-event-edge-label {
  bottom: calc(100% + 3px);
}

.schedule-event-edge-handle.is-end .schedule-event-edge-label {
  top: calc(100% + 3px);
}

.schedule-event-edge-handle:hover .schedule-event-edge-line,
.schedule-event-edge-handle.is-dragging .schedule-event-edge-line {
  border-top-color: rgba(35, 71, 98, 0.45);
}

.schedule-event-edge-handle:hover .schedule-event-edge-grip,
.schedule-event-edge-handle.is-dragging .schedule-event-edge-grip {
  border-color: #96afc1;
  box-shadow: 0 10px 18px rgba(26, 48, 68, 0.18);
}

.schedule-event-edge-handle.is-dragging .schedule-event-edge-label {
  background-color: #234762;
  color: #ffffff;
}

.schedule-event-edge-handle:focus-visible {
  outline: none;
}

.schedule-event-edge-handle:focus-visible .schedule-event-edge-grip {
  box-shadow: 0 0 0 3px rgba(35, 71, 98, 0.18), 0 10px 18px rgba(26, 48, 68, 0.18);
}

.schedule-event-block.is-match {
  border-color: rgba(47, 119, 88, 0.26);
}

.schedule-event-block.is-partial {
  border-color: rgba(92, 134, 167, 0.34);
}

.schedule-event-block.is-mismatch {
  border-color: rgba(196, 83, 88, 0.34);
}

.schedule-event-block.is-inactive {
  border-color: rgba(138, 95, 106, 0.34);
}

.schedule-event-block.is-live {
  border-color: rgba(77, 138, 107, 0.34);
  box-shadow: 0 18px 30px rgba(59, 103, 80, 0.14);
}

.schedule-event-block-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.schedule-event-block-time {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: #2d556f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-event-block h4 {
  margin: 0;
  color: #17354b;
  font-size: 0.95rem;
  line-height: 1.24;
}

.schedule-event-block-subtitle {
  margin: 5px 0 0;
  color: #5b7182;
  font-size: 0.82rem;
  font-weight: 700;
}

.schedule-event-block-note {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: #36566f;
  font-size: 0.8rem;
  line-height: 1.45;
}

.schedule-event-block-note.is-muted {
  color: #667d8e;
}

.schedule-event-block-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.schedule-event-block-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.schedule-event-block-actions .schedule-inline-link {
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.schedule-event-block-actions .action-icon-btn {
  width: 34px;
  height: 34px;
}

.schedule-user-action-btn {
  border-color: #315c7a;
  background-color: #315c7a;
}

.schedule-user-action-btn:hover {
  background-color: #274a63;
}

.schedule-note-action-btn {
  border-color: #35664f;
  background-color: #3f7a5f;
}

.schedule-note-action-btn:hover {
  background-color: #35664f;
}

.schedule-user-remove-btn {
  border-color: #98661a;
  background-color: #b27a22;
}

.schedule-user-remove-btn:hover {
  background-color: #98661a;
}

.schedule-event-block.is-compact {
  min-height: 56px;
  padding: 10px 10px 8px 14px;
}

.schedule-event-block.is-compact .schedule-status-pill,
.schedule-event-block.is-compact .schedule-event-block-note,
.schedule-event-block.is-compact .schedule-compatibility-pill,
.schedule-event-block.is-compact .schedule-inline-link {
  display: none;
}

.schedule-event-block.is-compact .schedule-event-block-head {
  gap: 8px;
}

.schedule-event-block.is-compact .schedule-event-block-time {
  margin-bottom: 4px;
  font-size: 0.68rem;
}

.schedule-event-block.is-compact h4 {
  font-size: 0.84rem;
}

.schedule-event-block.is-compact .schedule-event-block-subtitle {
  font-size: 0.74rem;
}

.schedule-event-block.is-compact .schedule-event-block-footer {
  margin-top: 6px;
  justify-content: flex-end;
}

.schedule-hour-scale {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 18px;
  padding: 0 0 8px;
  border-bottom: 1px solid #e1eaf1;
}

.schedule-hour-scale span {
  position: relative;
  color: #7990a1;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule-hour-scale span::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  width: 1px;
  height: 10px;
  background-color: #d8e2ea;
}

.schedule-hour-scale span:last-child {
  text-align: right;
}

.schedule-hour-scale span:last-child::after {
  left: auto;
  right: 0;
}

.schedule-events-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.schedule-event-card {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #dde7ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 10px 24px rgba(26, 48, 68, 0.06);
}

.schedule-event-card.is-open {
  border-color: rgba(197, 139, 34, 0.34);
}

.schedule-event-card.is-match {
  border-color: rgba(47, 119, 88, 0.26);
}

.schedule-event-card.is-partial {
  border-color: rgba(92, 134, 167, 0.34);
}

.schedule-event-card.is-mismatch {
  border-color: rgba(196, 83, 88, 0.34);
}

.schedule-event-card.is-inactive {
  border-color: rgba(138, 95, 106, 0.34);
}

.schedule-event-card.is-live {
  border-color: rgba(77, 138, 107, 0.34);
  box-shadow: 0 16px 30px rgba(59, 103, 80, 0.12);
}

.schedule-event-accent {
  min-height: 100%;
  border-radius: 999px;
}

.schedule-event-main {
  display: grid;
  gap: 12px;
}

.schedule-event-time {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: #2d556f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-soon-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background-color: rgba(240, 172, 72, 0.16);
  color: #9a620b;
  font-size: 0.7rem;
}

.schedule-soon-pill.is-live {
  background-color: rgba(47, 119, 88, 0.16);
  color: #246346;
}

.schedule-event-card h4 {
  margin: 0;
  font-size: 1.07rem;
  line-height: 1.25;
  color: #18354b;
}

.schedule-event-subtitle {
  margin: 6px 0 0;
  color: #5b7182;
  font-size: 0.9rem;
  font-weight: 600;
}

.schedule-status-pill {
  --status-color: #2f4558;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background-color: rgba(23, 53, 75, 0.06);
  color: #1f4662;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-status-pill::before,
.schedule-status-card::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--status-color);
  box-shadow: 0 0 0 3px rgba(23, 53, 75, 0.06);
}

.schedule-event-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, #edf3f7 0%, #e7eff5 100%);
}

.schedule-event-track-fill {
  --status-color: #2f4558;
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 4%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--status-color) 0%, rgba(26, 48, 68, 0.82) 100%);
  box-shadow: 0 6px 16px rgba(26, 48, 68, 0.18);
}

.schedule-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background-color: #f4f8fb;
  color: #50677a;
  font-size: 0.84rem;
  font-weight: 700;
}

.schedule-function-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-function-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background-color: #eef4f8;
  color: #234762;
  font-size: 0.8rem;
  font-weight: 800;
}

.schedule-function-pill small {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background-color: rgba(35, 71, 98, 0.08);
  color: #365e7b;
  font-size: 0.68rem;
  font-weight: 800;
}

.schedule-function-pill.is-caller {
  background-color: rgba(28, 70, 102, 0.12);
}

.schedule-function-pill.is-empty {
  background-color: #f6f9fb;
  color: #607585;
}

.schedule-compatibility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.schedule-compatibility-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 800;
}

.schedule-compatibility-pill.is-match {
  background-color: rgba(47, 119, 88, 0.12);
  color: #246346;
}

.schedule-compatibility-pill.is-neutral {
  background-color: rgba(35, 71, 98, 0.1);
  color: #234762;
}

.schedule-compatibility-pill.is-open {
  background-color: rgba(197, 139, 34, 0.14);
  color: #8f6317;
}

.schedule-compatibility-pill.is-partial {
  background-color: rgba(92, 134, 167, 0.14);
  color: #3e6481;
}

.schedule-compatibility-pill.is-mismatch {
  background-color: rgba(196, 83, 88, 0.12);
  color: #9c353a;
}

.schedule-compatibility-pill.is-inactive {
  background-color: rgba(138, 95, 106, 0.14);
  color: #70434f;
}

.schedule-mini-note {
  color: #5c7384;
  font-size: 0.81rem;
  font-weight: 700;
}

.schedule-event-actions {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 8px;
}

.schedule-event-actions .action-icon-btn {
  width: 38px;
  height: 38px;
}

.schedule-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #d2dee8;
  background-color: #f6fafc;
  color: #20415a;
  font-size: 0.84rem;
  font-weight: 800;
}

.schedule-inline-link.is-secondary {
  background-color: #ffffff;
}

.schedule-inline-link.is-selected {
  border-color: #2e7097;
  background: linear-gradient(135deg, #245a7d 0%, #2f789e 100%);
  color: #f7fbff;
}

.schedule-side-card {
  display: grid;
  gap: 14px;
}

.schedule-side-list,
.schedule-bar-list {
  display: grid;
  gap: 12px;
}

.schedule-side-item {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #dce6ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  color: #27435a;
}

.schedule-side-item strong {
  font-size: 0.96rem;
  color: #17354b;
}

.schedule-side-item span {
  color: #5b7182;
  font-size: 0.84rem;
  font-weight: 700;
}

.schedule-side-item-time {
  color: #2d556f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-bar-row {
  display: grid;
  gap: 7px;
}

.schedule-bar-head {
  align-items: center;
}

.schedule-bar-head strong {
  color: #17354b;
  font-size: 0.9rem;
}

.schedule-bar-head span {
  color: #627788;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.schedule-bar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-bar-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background-color: #eef4f8;
  color: #4f6779;
  font-size: 0.74rem;
  font-weight: 800;
}

.schedule-bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background-color: #e8f0f5;
}

.schedule-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1c4666 0%, #5c97bc 100%);
}

.schedule-bar-fill.is-soft {
  background: linear-gradient(90deg, #4e7d8d 0%, #9bc5d5 100%);
}

.schedule-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.schedule-status-card {
  --status-color: #2f4558;
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #dde7ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.schedule-status-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #17354b;
  font-size: 0.92rem;
}

.schedule-status-card span,
.schedule-side-empty {
  color: #627788;
  font-size: 0.84rem;
  font-weight: 700;
}

.schedule-template-list,
.schedule-alert-list,
.schedule-switch-list {
  display: grid;
  gap: 12px;
}

.schedule-template-card,
.schedule-alert-item,
.schedule-switch-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #dde7ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  color: #27435a;
}

.schedule-template-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.schedule-template-top strong,
.schedule-alert-item strong,
.schedule-switch-item strong {
  color: #17354b;
  font-size: 0.94rem;
}

.schedule-template-top span {
  color: #627788;
  font-size: 0.78rem;
  font-weight: 800;
}

.schedule-template-card p {
  margin: 0;
  color: #5c7384;
  font-size: 0.84rem;
  line-height: 1.5;
}

.schedule-template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-template-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background-color: #eef4f8;
  color: #4f6779;
  font-size: 0.74rem;
  font-weight: 800;
}

.schedule-create-modal {
  width: min(760px, 96vw);
}

.schedule-create-form {
  display: grid;
}

.schedule-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.schedule-create-field {
  display: grid;
  gap: 7px;
}

.schedule-create-field-wide {
  grid-column: 1 / -1;
}

.schedule-create-field label {
  color: #55697a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule-create-field textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid #c9d6e2;
  border-radius: 14px;
  background-color: #ffffff;
  color: #2c3e50;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.55;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-create-field textarea:focus {
  outline: none;
  border-color: #7f98af;
  box-shadow: 0 0 0 3px rgba(47, 85, 120, 0.16);
}

.schedule-create-help,
.schedule-create-empty,
.schedule-create-note {
  margin: 0;
  color: #617687;
  font-size: 0.82rem;
  line-height: 1.55;
}

.schedule-part-user-summary {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #d8e3ec;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.schedule-part-user-summary strong {
  color: #17354b;
  font-size: 0.94rem;
}

.schedule-part-user-summary span {
  color: #617687;
  font-size: 0.82rem;
  line-height: 1.55;
}

.schedule-part-user-helper {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.schedule-part-helper-btn {
  width: fit-content;
  min-width: 0;
  margin: 0;
}

.schedule-part-helper-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.schedule-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.schedule-checkbox-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d8e3ec;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.schedule-checkbox-card:hover {
  transform: translateY(-1px);
  border-color: #b8cbdb;
}

.schedule-checkbox-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.schedule-checkbox-content {
  display: grid;
  gap: 4px;
}

.schedule-checkbox-content strong {
  color: #17354b;
  font-size: 0.9rem;
}

.schedule-checkbox-content small {
  color: #627788;
  font-size: 0.76rem;
  font-weight: 800;
}

.schedule-create-note {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 14px;
  background-color: #eff5f9;
}

.schedule-create-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.schedule-modal-cancel {
  margin: 0;
}

.schedule-alert-item.is-open {
  border-color: rgba(197, 139, 34, 0.34);
}

.schedule-alert-item.is-partial {
  border-color: rgba(92, 134, 167, 0.34);
}

.schedule-alert-item.is-mismatch {
  border-color: rgba(196, 83, 88, 0.34);
}

.schedule-alert-item.is-inactive {
  border-color: rgba(138, 95, 106, 0.34);
}

.schedule-alert-item span,
.schedule-switch-item span {
  color: #5b7182;
  font-size: 0.82rem;
  font-weight: 700;
}

.schedule-empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 20px;
  text-align: center;
}

.schedule-day-focus-empty {
  gap: 14px;
}

.schedule-day-focus-empty .schedule-day-focus-actions {
  justify-content: center;
}

.schedule-empty-state i {
  font-size: 2rem;
  color: #5c7a90;
}

.schedule-empty-state p {
  max-width: 46ch;
  margin: 0;
  color: #5b7182;
  line-height: 1.6;
}

.schedule-empty-template-block {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid #dce6ee;
  text-align: left;
}

.schedule-empty-template-header {
  align-items: center;
}

.schedule-empty-template-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background-color: #eef4f8;
  color: #234762;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 1320px) {
  .schedule-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-filters {
    display: grid;
    gap: 12px;
  }

  .schedule-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .schedule-filter-field-wide {
    grid-column: span 3;
  }

  .schedule-filter-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 1080px) {
  .schedule-hero,
  .schedule-content {
    grid-template-columns: 1fr;
  }

  .schedule-coverage-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-hero-actions {
    justify-items: stretch;
  }

  .schedule-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-filter-field-wide {
    grid-column: span 2;
  }

  .schedule-day-header,
  .schedule-side-header,
  .schedule-event-top,
  .schedule-bar-head,
  .schedule-template-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-day-stats {
    justify-content: flex-start;
  }

  .schedule-directory-header-meta,
  .schedule-directory-header-actions {
    justify-content: flex-start;
  }

  .schedule-create-grid {
    grid-template-columns: 1fr;
  }

  .schedule-directory-table {
    min-width: 900px;
  }

  .schedule-month-panel-head {
    align-items: flex-start;
  }

  .schedule-month-toolbar {
    justify-content: flex-start;
  }

  .schedule-create-field-wide,
  .schedule-create-note,
  .schedule-create-actions {
    grid-column: auto;
  }

  .schedule-day-timeline-wrap {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .schedule-day-timeline-board {
    min-width: 680px;
  }
}

@media (max-width: 760px) {
  .app-main {
    padding: 16px;
  }

  .schedule-dashboard {
    padding: 16px;
  }

  .schedule-coverage-grid {
    grid-template-columns: 1fr;
  }

  .schedule-coverage-toggle {
    width: 100%;
    justify-content: stretch;
  }

  .schedule-coverage-toggle-link {
    flex: 1 1 0;
  }

  .schedule-hero {
    padding: 22px;
  }

  .schedule-metrics,
  .schedule-filter-grid {
    grid-template-columns: 1fr;
  }

  .schedule-management-header {
    align-items: flex-start;
  }

  .schedule-filter-field-wide {
    grid-column: span 1;
  }

  .schedule-event-card {
    grid-template-columns: 6px 1fr;
  }

  .schedule-day-timeline-wrap {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .schedule-day-time-axis {
    --timeline-hour-height: 58px;
  }

  .schedule-day-time-axis span {
    font-size: 0.66rem;
  }

  .schedule-day-timeline-board {
    --timeline-hour-height: 58px;
    min-width: 620px;
    border-radius: 18px;
  }

  .schedule-event-junction-grip {
    width: 56px;
  }

  .schedule-event-junction-label {
    right: 8px;
    min-height: 22px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  .schedule-event-block {
    min-height: 60px;
    padding: 10px 10px 8px 12px;
    border-radius: 14px;
  }

  .schedule-event-block-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .schedule-event-block h4 {
    font-size: 0.84rem;
  }

  .schedule-event-block-subtitle,
  .schedule-event-block-note {
    font-size: 0.74rem;
  }

  .schedule-event-block-actions {
    justify-content: flex-start;
  }

  .schedule-event-block-actions .schedule-inline-link {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .schedule-event-block-actions .action-icon-btn {
    width: 30px;
    height: 30px;
  }

  .schedule-event-actions {
    grid-column: 2;
    justify-items: stretch;
  }

  .schedule-event-actions .action-icon-btn {
    width: 100%;
  }

  .schedule-primary-link,
  .schedule-secondary-link,
  .schedule-inline-link {
    width: 100%;
  }

  .schedule-filter-actions {
    justify-content: flex-start;
  }

  .schedule-calendar-day-head,
  .schedule-month-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-directory-table {
    min-width: 860px;
  }

  .schedule-directory-table .table-actions-cell {
    min-width: 320px;
  }

  .schedule-directory-row-actions {
    width: max-content;
  }

  .schedule-directory-row-actions .schedule-inline-link,
  .schedule-directory-row-actions .action-icon-btn,
  .schedule-directory-row-actions .inline-action-form,
  .schedule-directory-row-actions .inline-action-form .action-icon-btn {
    width: auto;
  }

  .schedule-calendar-entry-card {
    grid-template-columns: 1fr;
  }

  .schedule-calendar-entry-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .schedule-calendar-entry-actions .action-icon-btn,
  .schedule-calendar-entry-actions .inline-action-form,
  .schedule-calendar-entry-actions .inline-action-form .action-icon-btn {
    width: 100%;
    min-height: 38px;
  }

  .schedule-calendar-entry-delete .action-icon-btn {
    width: 100%;
    min-height: 38px;
  }

  .schedule-calendar-grid {
    grid-auto-columns: minmax(86vw, 1fr);
  }

  .schedule-month-toolbar,
  .schedule-day-focus-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .schedule-month-board {
    min-width: 820px;
  }

  .schedule-month-day {
    min-height: 148px;
  }

  .schedule-calendar-cta,
  .schedule-calendar-add,
  .schedule-empty-action,
  .schedule-month-today {
    width: 100%;
  }

  .schedule-compatibility-row,
  .schedule-template-meta,
  .schedule-bar-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}