.scheduler-heading { align-items: center; gap: 20px; }
.scheduler-heading p:last-child { margin-bottom: 0; }
.scheduler-summary { display: grid; grid-template-columns: .75fr 1.25fr 1fr; gap: 16px; margin: 24px 0; }
.scheduler-summary > div { background: var(--surface, #fff); border: 1px solid var(--border, #d8e2f2); border-radius: 16px; padding: 20px 24px; }
.scheduler-summary > div > span { display: block; color: var(--muted, #617086); font-size: 13px; font-weight: 650; margin-bottom: 10px; }
.scheduler-summary strong { display: block; font-size: 30px; line-height: 1.25; color: var(--text, #112441); }
.scheduler-summary strong small { color: var(--muted, #617086); font-size: 16px; font-weight: 500; }
.scheduler-summary .scheduler-summary-date { font-size: 17px; line-height: 1.65; }
.scheduler-editor, .scheduler-list, .scheduler-history { margin-bottom: 24px; }
.scheduler-editor .panel-header, .scheduler-list .panel-header, .scheduler-history .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.scheduler-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.scheduler-form .field { min-width: 0; align-content: start; }
.scheduler-form small, .scheduler-footnote { color: var(--muted, #617086); font-size: 12px; line-height: 1.6; }
.scheduler-form .field > small { display: block; margin-top: 7px; }
.scheduler-optional { font-weight: 400; color: var(--muted, #617086); }
.scheduler-interval { display: flex; align-items: center; gap: 12px; }
.scheduler-interval input { width: 110px; }
.scheduler-label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 8px; }
.scheduler-check { background: var(--surface-muted, #f2f6fb); border-radius: 10px; padding: 12px 14px; }
.scheduler-check strong, .scheduler-check span { display: block; font-size: 13px; overflow-wrap: anywhere; }
.scheduler-check span { color: var(--muted, #617086); margin-top: 4px; }
.scheduler-form-footer { border-top: 1px solid var(--border, #d8e2f2); margin-top: 26px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.scheduler-enable { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.scheduler-enable input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--primary, #245bce); }
.scheduler-enable strong, .scheduler-enable small { display: block; }
.scheduler-enable strong { font-size: 13px; }
.scheduler-form-buttons, .scheduler-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.scheduler-form-buttons { flex-shrink: 0; }
.scheduler-table { width: 100%; border-collapse: collapse; }
.scheduler-table td { vertical-align: top; }
.scheduler-table td small { display: block; max-width: 290px; color: var(--muted, #617086); font-size: 12px; line-height: 1.55; margin-top: 5px; overflow-wrap: anywhere; }
.scheduler-table td strong { font-size: 13px; }
.scheduler-table .badge { white-space: normal; }
.scheduler-count { font-size: 13px; color: var(--muted, #617086); }
.scheduler-empty { padding: 28px 16px 36px; text-align: center; }
.scheduler-empty-clock { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: #edf3ff; color: #2657be; font-size: 34px; }
.scheduler-empty h4 { font-size: 17px; margin: 14px 0 8px; }
.scheduler-empty p { max-width: 510px; margin: 0 auto; color: var(--muted, #617086); line-height: 1.6; }
.scheduler-empty-history { padding: 16px; }
.scheduler-footnote { margin: 16px 0 0; }
.scheduler-notice { padding: 13px 16px; border: 1px solid #b8dbc9; background: #eef9f3; color: #20543b; border-radius: 10px; margin: 16px 0; font-size: 13px; }
.scheduler-notice.scheduler-error { border-color: #f0c0c0; background: #fff1f1; color: #852727; }
@media (max-width: 1100px) { .scheduler-summary { grid-template-columns: 1fr 1fr; } .scheduler-summary > div:last-child { grid-column: 1 / -1; } .scheduler-form-footer { align-items: flex-start; flex-direction: column; } }
@media (max-width: 650px) { .scheduler-summary, .scheduler-form-grid { grid-template-columns: 1fr; } .scheduler-summary > div:last-child { grid-column: auto; } .scheduler-heading { align-items: flex-start; flex-direction: column; } .scheduler-table { min-width: 710px; } }

/* Scheduling keeps configuration readable beside operational run evidence. */
#scheduler-root { max-width: 1460px; margin-inline: auto; min-width: 0; }
.scheduler-heading { align-items: flex-start; }
.scheduler-heading > div { min-width: 0; }
.scheduler-heading p { max-width: 78ch; font-size: 13px; }
.scheduler-heading > .button { flex: 0 0 auto; }
.scheduler-summary { grid-template-columns: .75fr 1.1fr 1.2fr; gap: 18px; margin: 24px 0; }
.scheduler-summary > div { min-width: 0; padding: 22px; border-radius: 12px; }
.scheduler-summary > div > span { margin-bottom: 12px; font-size: 12px; font-weight: 500; }
.scheduler-summary strong { font-size: 32px; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.scheduler-summary .scheduler-summary-date { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.scheduler-summary > div > small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.scheduler-editor, .scheduler-list, .scheduler-history { min-width: 0; box-shadow: none; }
.scheduler-editor .panel-header, .scheduler-list .panel-header, .scheduler-history .panel-header { align-items: flex-start; }
.scheduler-editor h3, .scheduler-list h3, .scheduler-history h3 { font-size: 17px; }
.scheduler-form { max-width: 1060px; }
.scheduler-form-grid { gap: 24px 28px; }
.scheduler-form .field > input, .scheduler-form .field > select { width: 100%; min-width: 0; }
.scheduler-check { border: 1px solid var(--border); background: var(--surface-soft); }
.scheduler-check strong { font-weight: 600; }
.scheduler-form-footer { gap: 20px; }
.scheduler-enable { min-width: 0; line-height: 1.5; }
.scheduler-enable small { max-width: 54ch; }
.scheduler-row-actions { gap: 7px; min-width: 148px; }
.scheduler-list .table-wrap, .scheduler-history .table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; box-shadow: none; border-radius: 9px; }
.scheduler-table { min-width: 780px; }
.scheduler-table th, .scheduler-table td { padding: 16px; line-height: 1.5; }
.scheduler-table th { font-size: 10px; letter-spacing: .07em; }
.scheduler-table td strong { font-weight: 600; }
.scheduler-table td small { max-width: 270px; }
.scheduler-empty { padding: 38px 20px 42px; }
.scheduler-empty-clock { width: 48px; height: 48px; font-size: 28px; border-radius: 12px; color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.scheduler-empty h4 { font-weight: 600; }
@media (max-width: 1100px) {
  .scheduler-summary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .scheduler-summary, .scheduler-form-grid { grid-template-columns: 1fr; }
  .scheduler-summary > div { padding: 20px; }
  .scheduler-heading > .button { width: 100%; }
  .scheduler-form-buttons { width: 100%; }
  .scheduler-form-buttons .button { flex: 1 1 auto; white-space: normal; }
  .scheduler-list .panel-header, .scheduler-history .panel-header { flex-wrap: wrap; }
}

/* Group related settings and keep the form summary visible on narrow screens. */
.scheduler-form-sections { display: grid; gap: 20px; }
.scheduler-form-section { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--border); border-radius: 10px; }
.scheduler-form-section legend { padding: 0 6px; font-size: 14px; font-weight: 650; color: var(--text); }
.scheduler-form-section > .field { max-width: 650px; }
.scheduler-form-section .field > select, .scheduler-topic input { width: 100%; }
.scheduler-topic { align-self: start; min-width: 0; }
.scheduler-topic summary { cursor: pointer; font-size: 13px; font-weight: 650; padding: 8px 0; }
.scheduler-topic .field { margin-top: 8px; }
.scheduler-config-summary { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); overflow-wrap: anywhere; }
.scheduler-config-summary strong { font-size: 13px; }
.scheduler-config-summary p { margin: 6px 0; font-size: 13px; line-height: 1.5; }
.scheduler-topic summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }
@media (max-width: 650px) { .scheduler-form-section { padding: 14px; } }
