:root {
  --schedule-ink: #132238;
  --schedule-muted: #637287;
  --schedule-line: #dce6f0;
  --schedule-canvas: #f5f8fb;
  --schedule-teal: #0a8378;
  --schedule-teal-dark: #075f59;
  --schedule-coral: #ec6b4c;
  --schedule-sun: #f3b74a;
  --schedule-violet: #6956d8;
}

.schedule-page {
  color: var(--schedule-ink);
  max-width: 1780px;
  margin: 0 auto;
  padding-bottom: 34px;
}

.schedule-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  min-height: 112px;
  margin-bottom: 16px;
  padding: 24px 28px;
  border: 1px solid #d8e9eb;
  border-radius: 18px;
  color: #f8ffff;
  background:
    radial-gradient(circle at 87% 12%, rgba(243, 183, 74, 0.45), transparent 28%),
    radial-gradient(circle at 72% 130%, rgba(46, 197, 183, 0.46), transparent 44%),
    linear-gradient(120deg, #0b4052 0%, #0d756f 52%, #147f76 100%);
  box-shadow: 0 13px 30px rgba(11, 64, 82, 0.14);
}

.schedule-page-head h1 {
  margin: 3px 0 6px;
  color: #fff;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(24px, 2.15vw, 34px);
  line-height: 1.15;
  letter-spacing: -1.4px;
}

.schedule-page-head p { margin: 0; color: rgba(241, 253, 252, 0.82); font-size: 13px; }
.schedule-eyebrow { color: #a4f0e6; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.schedule-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.schedule-head-actions .btn { min-height: 36px; border-color: rgba(255, 255, 255, 0.45); color: #fff; background: rgba(255,255,255,0.08); }
.schedule-head-actions .btn.primary { border-color: #fff; color: var(--schedule-teal-dark); background: #fff; }

.schedule-toolbar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.schedule-period-controls,
.schedule-view-tabs,
.schedule-filter-row,
.schedule-head-actions {
  display: flex;
  align-items: center;
}
.schedule-period-controls { gap: 6px; }
.schedule-period-controls strong { min-width: 118px; margin-left: 6px; font-size: 17px; }
.schedule-view-tabs { justify-content: flex-end; gap: 3px; }
.schedule-view-tabs button { min-width: 48px; height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 7px; color: var(--schedule-muted); background: transparent; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.schedule-view-tabs button.active { border-color: #c4e3df; color: #08776d; background: #e2f5f1; }
.schedule-filter-row { grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; border-top: 1px solid #edf2f6; padding-top: 11px; }
.schedule-filter-row select,
.schedule-filter-row input { height: 34px; min-width: 126px; padding: 0 9px; border: 1px solid #d7e1ea; border-radius: 7px; color: var(--schedule-ink); background: #fff; font: inherit; font-size: 12px; }
.schedule-search { flex: 1 1 220px; }
.schedule-search input { width: 100%; }

.schedule-main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.schedule-side-rail { display: grid; gap: 14px; }
.schedule-side-rail .surface { padding: 14px; }

.schedule-calendar-card { overflow: hidden; padding: 0; }
.schedule-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--schedule-line); background: #f7fbfc; }
.schedule-weekdays span { padding: 10px; color: var(--schedule-muted); text-align: center; font-size: 12px; font-weight: 800; }
.schedule-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.schedule-month-day { min-height: 122px; border-right: 1px solid #e6edf3; border-bottom: 1px solid #e6edf3; padding: 7px; cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.schedule-month-day:nth-child(7n) { border-right: 0; }
.schedule-month-day:hover { background: #f2fbfa; box-shadow: inset 0 0 0 1px #a9dfd7; }
.schedule-month-day.outside { background: #fafcfd; color: #a8b3c0; }
.schedule-month-day.today { background: linear-gradient(145deg, #effcf9, #fff); }
.schedule-day-number { display: flex; justify-content: space-between; min-height: 20px; font-size: 12px; font-weight: 800; }
.schedule-day-number span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; }
.schedule-month-day.today .schedule-day-number span { color: #fff; background: var(--schedule-teal); }
.schedule-day-number em { color: var(--schedule-teal); font-style: normal; font-size: 10px; }
.schedule-day-events { display: grid; gap: 3px; margin-top: 4px; }

.schedule-event-chip { display: flex; position: relative; align-items: center; min-width: 0; gap: 5px; width: 100%; padding: 5px 7px; overflow: hidden; border: 0; border-left: 3px solid var(--schedule-color); border-radius: 5px; color: #233144; background: color-mix(in srgb, var(--schedule-color) 10%, #fff); text-align: left; cursor: pointer; }
.schedule-event-chip:hover { filter: saturate(1.15); background: color-mix(in srgb, var(--schedule-color) 16%, #fff); }
.schedule-event-chip strong { overflow: hidden; font-size: 11px; font-weight: 800; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.schedule-event-chip small { margin-left: auto; color: #68768a; font-size: 10px; white-space: nowrap; }
.schedule-event-chip.compact { min-height: 19px; padding: 3px 4px; border-left-width: 2px; }
.schedule-event-chip.compact strong { font-size: 10px; }
.schedule-event-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--schedule-color); }
.schedule-resize-handle { width: 7px; height: 15px; margin-left: auto; border-right: 2px dotted var(--schedule-color); cursor: ew-resize; }

.schedule-week-card, .schedule-day-card, .schedule-list-card, .schedule-timeline-card, .campaign-gantt { padding: 16px; }
.schedule-week-grid { display: grid; grid-template-columns: repeat(7, minmax(155px, 1fr)); overflow-x: auto; }
.schedule-week-day { min-height: 470px; padding: 10px; border-right: 1px solid #e7eef4; background: #fff; }
.schedule-week-day:last-child { border-right: 0; }
.schedule-week-day.today { background: #f2fbfa; }
.schedule-week-day header, .schedule-day-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.schedule-week-day header button { width: 23px; height: 23px; border: 1px solid #cfe2e5; border-radius: 50%; color: #08776d; background: #fff; cursor: pointer; }
.schedule-week-day .schedule-event-chip { margin-bottom: 7px; }
.schedule-empty-day { color: #a5b2bf; font-size: 12px; }
.schedule-day-card > header h2 { margin: 3px 0 0; font-size: 23px; }
.schedule-day-list { display: grid; gap: 10px; }
.schedule-day-event { padding: 12px; border-left: 4px solid var(--schedule-color); border-radius: 8px; background: #f8fbfd; }
.schedule-day-event p { margin: 8px 0 0; color: var(--schedule-muted); font-size: 13px; }

.schedule-table-wrap { overflow: auto; }
.schedule-table { width: 100%; min-width: 800px; border-collapse: collapse; }
.schedule-table th { padding: 11px 12px; border-bottom: 1px solid var(--schedule-line); color: #65758a; background: #f7fafc; text-align: left; font-size: 12px; white-space: nowrap; }
.schedule-table td { padding: 12px; border-bottom: 1px solid #e8eff5; color: #223148; font-size: 13px; }
.schedule-table tbody tr[data-schedule-action] { cursor: pointer; }
.schedule-table tbody tr[data-schedule-action]:hover { background: #effbf9; }
.schedule-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.schedule-category-label, .schedule-category-pill { display: inline-flex; align-items: center; gap: 5px; color: #344257; font-size: 11px; font-weight: 800; }
.schedule-category-label::before, .schedule-category-pill::before { width: 8px; height: 8px; border-radius: 50%; background: var(--schedule-color); content: ""; }
.schedule-category-pill { margin: 5px 8px 5px 0; padding: 6px 9px; border: 1px solid #dbe7ed; border-radius: 999px; background: #fff; }

.schedule-timeline-card { overflow: hidden; }
.schedule-timeline-scroll { overflow-x: auto; padding-bottom: 8px; }
.schedule-timeline { display: grid; grid-template-columns: 170px repeat(var(--schedule-days), minmax(45px, 1fr)); min-width: 1550px; border-top: 1px solid var(--schedule-line); border-left: 1px solid var(--schedule-line); }
.schedule-timeline > * { min-height: 36px; border-right: 1px solid var(--schedule-line); border-bottom: 1px solid var(--schedule-line); }
.schedule-timeline-label { display: flex; align-items: center; padding: 6px 10px; overflow: hidden; background: #fbfcfd; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.schedule-timeline-date { padding-top: 8px; color: #64748b; background: #f7fafc; text-align: center; font-size: 10px; font-weight: 800; }
.schedule-timeline-corner { color: #08776d; }
.schedule-timeline-bar { grid-column: var(--bar-start) / span var(--bar-span); grid-row: auto; z-index: 1; align-self: center; height: 24px; margin: 4px; padding: 0 8px; overflow: hidden; border: 0; border-radius: 6px; color: #fff; background: var(--schedule-color); font: inherit; font-size: 11px; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 5px color-mix(in srgb, var(--schedule-color) 30%, transparent); }

.schedule-agenda-row { display: grid; grid-template-columns: 51px 4px minmax(0, 1fr); gap: 8px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid #edf2f5; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.schedule-agenda-row:last-child { border-bottom: 0; }
.schedule-agenda-row time { color: #526277; font-size: 10px; font-weight: 800; }
.schedule-agenda-row time small { display: block; color: #8996a7; font-size: 9px; font-weight: 500; }
.schedule-agenda-row > span { border-radius: 999px; background: var(--schedule-color); }
.schedule-agenda-row strong, .schedule-agenda-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-agenda-row strong { font-size: 12px; }
.schedule-agenda-row small { margin-top: 2px; color: var(--schedule-muted); font-size: 10px; }
.schedule-campaign-mini { display: grid; grid-template-columns: auto 1fr auto; gap: 5px 8px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid #edf2f5; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.schedule-campaign-mini span { color: #a44c16; font-size: 10px; font-weight: 800; }
.schedule-campaign-mini strong { font-size: 12px; }
.schedule-campaign-mini small { grid-column: 1 / span 2; color: var(--schedule-muted); font-size: 10px; }
.schedule-campaign-mini em { color: #0f8177; font-style: normal; font-size: 10px; font-weight: 800; }
.schedule-insight { margin-top: 8px; padding: 9px; border: 1px solid #e4ebf0; border-left: 3px solid var(--schedule-sun); border-radius: 7px; background: #fff; }
.schedule-insight.urgent { border-left-color: #dc4040; background: #fff9f8; }
.schedule-insight.high { border-left-color: var(--schedule-coral); }
.schedule-insight strong { display: block; font-size: 11px; line-height: 1.45; }
.schedule-insight p { margin: 3px 0 8px; color: var(--schedule-muted); font-size: 10px; line-height: 1.45; }
.schedule-insight button { padding: 0; border: 0; color: #08776d; background: transparent; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }

.schedule-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.schedule-metric-grid article { min-height: 108px; padding: 17px; border: 1px solid #dce9ed; border-radius: 13px; background: linear-gradient(140deg, #fff, #f3fbfa); box-shadow: 0 4px 12px rgba(16, 54, 71, 0.05); }
.schedule-metric-grid article:nth-child(2) { background: linear-gradient(140deg, #fff, #f3f5ff); }
.schedule-metric-grid article:nth-child(3) { background: linear-gradient(140deg, #fff, #fff6ee); }
.schedule-metric-grid span { display: block; color: var(--schedule-muted); font-size: 12px; font-weight: 700; }
.schedule-metric-grid strong { display: block; margin: 7px 0 4px; color: var(--schedule-ink); font-size: clamp(18px, 1.5vw, 25px); letter-spacing: -1px; white-space: nowrap; }
.schedule-metric-grid small { color: #718096; font-size: 10px; }
.schedule-metric-grid .campaign-metric-card { padding: 0; overflow: hidden; }
.campaign-metric-trigger { display: block; width: 100%; min-height: 108px; padding: 17px; border: 0; border-radius: inherit; color: inherit; background: transparent; font: inherit; text-align: start; cursor: pointer; }
.campaign-metric-trigger:hover:not(:disabled) { background: rgba(9, 120, 108, .06); }
.campaign-metric-trigger:focus-visible { outline: 3px solid #087b73; outline-offset: -3px; }
.campaign-metric-trigger:disabled { cursor: wait; opacity: .65; }
.schedule-metric-grid .campaign-metric-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: #08776d; font-size: 11px; }
.campaign-metric-link i { font-size: 19px; font-style: normal; line-height: 1; }
.campaign-metric-modal { width: min(1280px, 100%); }
.campaign-metric-content { padding: 20px 22px; }
.campaign-metric-summary { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin-bottom: 20px; }
.campaign-metric-summary article { padding: 16px; border: 1px solid #d8e7ec; border-radius: 10px; background: linear-gradient(120deg, #f0faf8, #f8fbfd); }
.campaign-metric-summary span { display: block; color: #627489; font-size: 12px; font-weight: 700; }
.campaign-metric-summary strong { display: block; margin-top: 7px; color: #0c6863; font-size: clamp(19px, 2.3vw, 28px); overflow-wrap: anywhere; }
.campaign-metric-modal .schedule-table th, .campaign-metric-modal .schedule-table .num { white-space: nowrap; }
.campaign-metric-modal .schedule-table td:first-child { min-width: 220px; }
.campaign-metric-modal .schedule-table tfoot { background: #f1faf8; font-weight: 800; }
.campaign-metric-modal .schedule-table-wrap:focus-visible { outline: 2px solid #087b73; outline-offset: 3px; }
.campaign-metric-record { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; max-width: 340px; padding: 4px 0; text-align: start; overflow-wrap: anywhere; }
.campaign-metric-record small { color: #728299; font-size: 11px; }
.campaign-metric-documents { margin-top: 10px; font-size: 12px; }
.campaign-metric-documents summary { padding: 5px 0; color: #52667d; cursor: pointer; }
.campaign-metric-documents ul { display: grid; gap: 9px; margin: 8px 0 0; padding: 0; list-style: none; }
.campaign-metric-documents li { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; padding: 8px; border: 1px solid #e1eaf0; border-radius: 7px; background: #f8fbfd; }
.campaign-metric-documents li small { width: 100%; color: #6c7c90; }
@media (max-width: 620px) {
  .campaign-metric-content { padding: 15px; }
  .campaign-metric-summary { grid-template-columns: minmax(0, 1fr); }
}
.campaign-gantt { margin-bottom: 16px; }
.campaign-gantt .schedule-timeline-card { padding: 0; border: 0; box-shadow: none; }
.campaign-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.campaign-card { padding: 15px; border: 1px solid #dbe6ed; border-radius: 13px; background: #fff; box-shadow: 0 5px 14px rgba(15, 41, 56, .04); }
.campaign-card header, .campaign-card footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.campaign-card header > span { color: #08776d; font-size: 10px; font-weight: 900; }
.campaign-card h3 { margin: 10px 0 4px; font-size: 17px; letter-spacing: -0.5px; }
.campaign-card > p { min-height: 18px; margin: 0; color: var(--schedule-muted); font-size: 11px; }
.campaign-card-date { display: flex; align-items: center; gap: 7px; margin: 13px 0 9px; color: #526276; font-size: 11px; font-weight: 700; }
.campaign-card-date i { width: 16px; height: 1px; background: #b8c5d1; }
.campaign-card-date em { margin-left: auto; padding: 3px 6px; border-radius: 999px; color: #0d7168; background: #e1f5f0; font-size: 9px; font-style: normal; }
.campaign-progress { height: 5px; overflow: hidden; border-radius: 999px; background: #e9eef3; }
.campaign-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--schedule-teal), #55cbb8); }
.campaign-card > small { display: block; margin: 5px 0 10px; color: #718096; font-size: 10px; }
.campaign-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0; padding: 9px 0; border-top: 1px solid #edf2f5; border-bottom: 1px solid #edf2f5; }
.campaign-card dl div { min-width: 0; }
.campaign-card dt { color: #7b899a; font-size: 9px; }
.campaign-card dd { margin: 3px 0 0; overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.campaign-card footer { margin-top: 10px; }
.campaign-card footer button { padding: 0; border: 0; color: #08776d; background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.schedule-reservation-table { margin-top: 16px; padding: 16px; }
.schedule-row-warning { background: #fff6f5; }

.meeting-room-grid, .template-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.meeting-room-card, .template-card { display: flex; flex-direction: column; min-height: 176px; padding: 17px; }
.meeting-room-card > div:first-child { flex: 1; }
.meeting-room-card span, .template-card > span { color: #0e8b80; font-size: 11px; font-weight: 800; }
.meeting-room-card h2, .template-card h2 { margin: 7px 0; font-size: 20px; }
.meeting-room-card p, .template-card p { margin: 0; color: var(--schedule-muted); font-size: 12px; line-height: 1.5; }
.meeting-room-card > div:last-child, .template-card footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.template-card { border-top: 3px solid var(--schedule-color); }
.template-card small { margin-top: auto; padding-top: 13px; color: #788699; font-size: 11px; }

.schedule-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.schedule-settings-grid .surface, .schedule-category-manager, .schedule-ai-suggestions, .schedule-notification-log { padding: 18px; }
.schedule-settings-grid h2, .schedule-category-manager h2, .schedule-ai-suggestions h2, .schedule-notification-log h2 { margin: 0 0 11px; font-size: 18px; }
.schedule-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border-bottom: 1px solid #edf2f5; }
.schedule-suggestion:last-child { border-bottom: 0; }
.schedule-suggestion.urgent { border-left: 3px solid #de3b3b; background: #fff8f7; }
.schedule-suggestion.high { border-left: 3px solid #f2a022; }
.schedule-suggestion strong { font-size: 13px; }
.schedule-suggestion p { margin: 3px 0 0; color: var(--schedule-muted); font-size: 11px; }
.schedule-notification-log { margin-top: 16px; }
.schedule-notification-log article { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid #edf2f5; font-size: 12px; }
.schedule-notification-log span { color: var(--schedule-muted); }

.schedule-modal-backdrop { display: grid; position: fixed; z-index: 12000; inset: 0; place-items: center; padding: 24px; overflow: auto; background: rgba(15, 25, 40, .58); backdrop-filter: blur(5px); }
.schedule-modal { width: min(1050px, 100%); max-height: min(900px, calc(100vh - 48px)); overflow: auto; border: 1px solid #cfdee6; border-radius: 16px; color: var(--schedule-ink); background: #fff; box-shadow: 0 24px 70px rgba(15, 25, 40, .32); }
.schedule-form-modal { width: min(960px, 100%); }
.campaign-form-modal { width: min(1100px, 100%); }
.schedule-form { padding: 22px; }
.schedule-form-title, .schedule-modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid #dbe7ed; background: linear-gradient(115deg, #f6fffd, #f1f8ff); }
.schedule-form .schedule-form-title { margin: -22px -22px 20px; }
.schedule-form-title h2, .schedule-modal > header h1 { margin: 3px 0 0; font-size: 23px; letter-spacing: -1px; }
.schedule-modal > header p { margin: 5px 0 0; color: var(--schedule-muted); font-size: 12px; }
.schedule-modal > header > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.schedule-form-grid { display: grid; gap: 12px; }
.schedule-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schedule-form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.schedule-form-grid .span-2 { grid-column: span 2; }
.schedule-form .field { display: grid; gap: 5px; }
.schedule-form .field > span, .schedule-form fieldset legend { color: #617187; font-size: 11px; font-weight: 800; }
.schedule-form input, .schedule-form select, .schedule-form textarea { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #cedae5; border-radius: 7px; color: var(--schedule-ink); background: #fff; font: inherit; font-size: 13px; }
.schedule-form textarea { min-height: auto; resize: vertical; line-height: 1.45; }
.schedule-form select[multiple] { height: auto; min-height: 94px; }
.schedule-form .check-row { display: flex; align-items: center; gap: 7px; color: #445368; font-size: 12px; }
.schedule-form .check-row input { width: auto; min-height: 0; }
.schedule-repeat-fieldset { margin: 2px 0; padding: 13px; border: 1px dashed #c7d8e2; border-radius: 8px; }
.schedule-repeat-fieldset legend { padding: 0 5px; }
.schedule-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; padding-top: 15px; border-top: 1px solid #e8eef3; }
.schedule-form-footer > div { display: flex; gap: 7px; margin-left: auto; }
.compact-form { width: min(540px, 100%); }

.event-detail-content, .campaign-detail-content { padding: 20px 22px; }
.event-meta-grid, .campaign-detail-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.event-meta-grid article, .campaign-detail-kpis article { padding: 11px; border: 1px solid #d8e7ec; border-radius: 8px; background: #fbfefd; }
.event-meta-grid span, .campaign-detail-kpis span { display: block; color: #6c7c90; font-size: 10px; font-weight: 800; }
.event-meta-grid strong, .campaign-detail-kpis strong { display: block; margin-top: 5px; font-size: 13px; }
.event-detail-block { margin-top: 18px; padding-top: 17px; border-top: 1px solid #e6edf2; }
.event-detail-block h2, .campaign-workflow h2, .campaign-settlement-table h2 { margin: 0 0 9px; font-size: 16px; }
.event-detail-block p { margin: 0; color: #445369; white-space: pre-wrap; line-height: 1.6; }
.event-related-links { display: flex; flex-wrap: wrap; gap: 7px; }
.event-related-links button { padding: 7px 9px; border: 1px solid #bce1db; border-radius: 7px; color: #06786f; background: #effaf8; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.schedule-checklist { display: grid; gap: 7px; }
.schedule-checklist label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.schedule-checklist input { width: 15px; height: 15px; accent-color: #0b897d; }
.schedule-attachment-list { display: flex; flex-wrap: wrap; gap: 7px; }
.schedule-attachment-list button { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid #d4e1e8; border-radius: 7px; color: #355066; background: #f9fcfd; text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.schedule-attachment-list small { color: #8a98a9; font-size: 10px; }
.schedule-conflicts article { display: flex; flex-direction: column; gap: 3px; margin: 6px 0; padding: 9px; border-left: 3px solid #f0aa26; background: #fff9ed; font-size: 12px; }
.schedule-conflicts article.error { border-left-color: #db4141; background: #fff6f6; }
.schedule-comments article { margin: 8px 0; padding: 10px; border-radius: 8px; background: #f7fafc; }
.schedule-comments article header { display: flex; align-items: center; justify-content: space-between; }
.schedule-comments article header strong { font-size: 12px; }
.schedule-comments article time { color: #8492a3; font-size: 10px; }
.schedule-comments article p { margin-top: 6px; font-size: 13px; }
.schedule-comments form { display: grid; gap: 7px; margin-top: 10px; }
.schedule-comments textarea { min-height: 68px; padding: 8px; border: 1px solid #cfdce5; border-radius: 7px; font: inherit; }
.schedule-comments form button { justify-self: end; }

.campaign-workflow { margin-top: 18px; }
.workflow-stage { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e9eff3; }
.workflow-stage > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #607187; background: #eaf0f4; font-size: 10px; font-weight: 800; }
.workflow-stage.completed > span { color: #fff; background: #0b8b7c; }
.workflow-stage strong, .workflow-stage small { display: block; }
.workflow-stage strong { font-size: 13px; }
.workflow-stage small { margin-top: 2px; color: #778599; font-size: 10px; }
.workflow-stage em { padding: 4px 6px; border-radius: 999px; color: #526275; background: #edf2f6; font-size: 10px; font-style: normal; }
.workflow-stage.completed em { color: #087b70; background: #dff7f0; }
.campaign-settlement-table { margin-top: 20px; }
.campaign-settlement-table table { width: 100%; border-collapse: collapse; }
.campaign-settlement-table th, .campaign-settlement-table td { padding: 8px 10px; border-bottom: 1px solid #e8eff3; font-size: 12px; }
.campaign-settlement-table th { color: #526276; text-align: left; }
.campaign-settlement-table td { text-align: right; font-weight: 800; }
.campaign-detail-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.campaign-settlement-form { width: 100%; }
.settlement-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.settlement-fields .muted { font-size: 12px; line-height: 1.6; }
.settlement-expenses { margin: 20px 0; padding: 16px; border: 1px solid #d9e7ed; border-radius: 12px; background: #f7fbfc; }
.settlement-expenses h3 { margin: 0 0 14px; font-size: 16px; }
.settlement-expense-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: end; }
.settlement-expense-row .field { min-width: 0; }
.settlement-expense-row input, .settlement-expense-row select { min-width: 0; width: 100%; }
.settlement-form-error { padding: 12px 15px; margin-bottom: 15px; border: 1px solid #efb8b8; border-radius: 9px; color: #9c2626; background: #fff4f3; font-size: 13px; line-height: 1.5; }
.settlement-form-error[hidden] { display: none; }
.settlement-result { margin-top: 20px; }
.settlement-profit-list { margin: 16px 0; }
.settlement-profit-list h2 { font-size: 16px; }
.settlement-profit-list td small { display: block; margin-top: 4px; color: #6c7c90; }
@media (max-width: 620px) {
  .settlement-expense-row { grid-template-columns: minmax(0, 1fr); padding-top: 14px; border-top: 1px solid #d9e7ed; }
}

.schedule-state-page { display: grid; min-height: 45vh; place-items: center; }
.schedule-state-page .surface { min-width: 320px; padding: 30px; text-align: center; }
.schedule-loading-ring { display: inline-block; width: 28px; height: 28px; margin-bottom: 12px; border: 3px solid #cce9e5; border-top-color: #0a8378; border-radius: 50%; animation: schedule-spin .75s linear infinite; }
@keyframes schedule-spin { to { transform: rotate(360deg); } }
.schedule-empty { padding: 28px; color: #7b8999; text-align: center; }

.schedule-dashboard-widget .dashboard-schedule-item { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }

@media (max-width: 1240px) {
  .schedule-main-layout { grid-template-columns: minmax(0, 1fr); }
  .schedule-side-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .campaign-card-grid, .meeting-room-grid, .template-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
  .schedule-page-head { align-items: flex-start; flex-direction: column; padding: 20px; }
  .schedule-head-actions { justify-content: flex-start; }
  .schedule-toolbar { grid-template-columns: 1fr; }
  .schedule-view-tabs { justify-content: flex-start; overflow-x: auto; }
  .schedule-filter-row { grid-column: auto; }
  .schedule-side-rail, .schedule-metric-grid, .schedule-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-month-day { min-height: 98px; padding: 5px; }
  .schedule-event-chip.compact strong { font-size: 9px; }
  .schedule-modal-backdrop { align-items: start; padding: 10px; }
  .schedule-modal { max-height: calc(100vh - 20px); border-radius: 12px; }
  .event-meta-grid, .campaign-detail-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .schedule-page-head h1 { font-size: 25px; }
  .schedule-head-actions .btn { flex: 1 1 auto; }
  .schedule-side-rail, .schedule-metric-grid, .schedule-settings-grid, .campaign-card-grid, .meeting-room-grid, .template-card-grid { grid-template-columns: 1fr; }
  .schedule-month-grid { min-width: 690px; }
  .schedule-calendar-card { overflow-x: auto; }
  .schedule-weekdays { min-width: 690px; }
  .schedule-filter-row select, .schedule-filter-row .schedule-search { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .schedule-form { padding: 15px; }
  .schedule-form .schedule-form-title { margin: -15px -15px 15px; padding: 15px; }
  .schedule-form-grid.two, .schedule-form-grid.three { grid-template-columns: 1fr; }
  .schedule-form-grid .span-2 { grid-column: auto; }
  .schedule-form-footer { align-items: stretch; flex-direction: column; }
  .schedule-form-footer > div { margin-left: 0; }
  .schedule-form-footer > div .btn { flex: 1; }
  .schedule-modal > header { padding: 15px; }
  .schedule-modal > header h1 { font-size: 20px; }
  .event-detail-content, .campaign-detail-content { padding: 15px; }
  .workflow-stage { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .workflow-stage button { grid-column: 2 / -1; justify-self: start; }
  .campaign-detail-footer { flex-direction: column; }
}
.campaign-cancellation-panel {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #f0d5cd;
  border-radius: 14px;
  background: linear-gradient(120deg, #fffaf6, #fff);
}
.campaign-cancellation-panel summary { cursor: pointer; list-style: none; width: fit-content; }
.campaign-cancellation-panel summary::-webkit-details-marker { display: none; }
.campaign-cancellation-panel summary::after { content: "+"; margin-left: 12px; }
.campaign-cancellation-panel details[open] summary::after { content: "-"; }
.campaign-cancellation-panel .btn { color: #9b3829; border-color: #e8b9ad; }
.campaign-cancellation-body { display: grid; gap: 14px; margin-top: 16px; }
.campaign-cancellation-body > p { line-height: 1.65; margin: 0; }
.campaign-cancellation-body > .btn { justify-self: start; }
.campaign-cancellation-body textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.campaign-cancellation-history { margin: 20px 0; }
.campaign-cancellation-history ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.campaign-cancellation-history li { padding: 16px; border: 1px solid #dbe5ee; border-radius: 12px; background: #f8fafc; line-height: 1.7; overflow-wrap: anywhere; }
.campaign-cancellation-history li p { margin: 8px 0 0; white-space: pre-wrap; }
