#view-schedule .page-head h1 { font-size: 30px; line-height: 1.2; letter-spacing: 0; }
.schedule-service { padding: 10px 12px; border-left: 3px solid #27815a; background: #edf6f0; margin-bottom: 18px; font-size: 13px; }
.schedule-service.is-disabled { border-color: #b07b20; background: #fff6e5; }
.schedule-toolbar, .schedule-week-controls, .schedule-modes, .schedule-record-actions, .schedule-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.schedule-toolbar { justify-content: space-between; margin-bottom: 10px; }
.schedule-toolbar label { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.schedule-toolbar select { max-width: 190px; }
.schedule-modes { gap: 0; border: 1px solid #dfe3e8; border-radius: 5px; overflow: hidden; }
.schedule-modes button { border: 0; background: #fff; padding: 8px 12px; cursor: pointer; font: inherit; font-size: 12px; }
.schedule-modes button[aria-pressed="true"] { color: #fff; background: #343a40; }
.schedule-week-controls strong { font-size: 12px; }
.schedule-meta { justify-content: space-between; color: #647079; font-size: 12px; }
.schedule-message { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.schedule-message:empty { display: none; }
.schedule-message.is-error { color: #b52630; }
.schedule-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #dfe3e8; border-bottom: 1px solid #dfe3e8; margin-top: 16px; }
.schedule-day { min-width: 0; border-right: 1px solid #dfe3e8; padding: 10px 6px; }
.schedule-day:last-child { border-right: 0; }
.schedule-day > h2 { font-size: 12px; margin: 0 0 12px; }
.schedule-record { min-width: 0; padding: 12px; border: 1px solid #dfe3e8; border-radius: 5px; background: #fff; margin-bottom: 10px; overflow-wrap: anywhere; }
.schedule-record h3 { font-size: 13px; line-height: 1.5; margin: 8px 0; letter-spacing: 0; }
.schedule-time { display: block; font-size: 11px; color: #647079; }
.schedule-record-actions { margin-top: 10px; }
.schedule-record-actions button { padding: 6px 8px; font-size: 11px; min-height: 32px; }
.schedule-status { display: inline-block; border-radius: 3px; padding: 3px 6px; background: #edf0f2; color: #4c5964; font-size: 11px; font-weight: 700; }
.schedule-status-queued, .schedule-status-published { background: #e3f3e9; color: #23774d; }
.schedule-status-needs_review, .schedule-status-legacy, .schedule-status-expired { background: #fff1d6; color: #875b13; }
.schedule-status-failed { background: #fce7e8; color: #ad2634; }
.schedule-muted { font-size: 12px; color: #647079; overflow-wrap: anywhere; }
.schedule-empty { font-size: 12px; color: #647079; margin: 12px 0; }
.schedule-list { margin-top: 16px; }
.schedule-list .schedule-record { display: grid; grid-template-columns: 160px minmax(160px, 1fr) auto; align-items: start; gap: 6px 14px; border: 0; border-bottom: 1px solid #dfe3e8; border-radius: 0; padding: 14px 0; margin: 0; }
.schedule-list .schedule-record h3 { margin: 0; }
.schedule-list .schedule-record > p { grid-column: 2; margin: 0; }
.schedule-list .schedule-record-actions { grid-column: 3; grid-row: 2 / span 3; margin: 0; }
.schedule-dialog, .schedule-picker { width: min(880px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; }
.schedule-dialog[open], .schedule-picker[open] { display: flex; flex-direction: column; }
.schedule-dialog .modal-head, .schedule-picker .modal-head { flex-shrink: 0; gap: 12px; }
.schedule-dialog .modal-head > div { min-width: 0; }
.schedule-dialog h2, .schedule-picker h2 { font-size: 18px; letter-spacing: 0; }
#publicationScheduleIdentity { font-size: 12px; margin: 4px 0 0; color: #647079; overflow-wrap: anywhere; }
.schedule-dialog-body { padding: 20px; overflow-y: auto; min-height: 0; }
#publicationScheduleDetails { margin: 18px 0; overflow-wrap: anywhere; }
#publicationScheduleDetails h3 { font-size: 21px; line-height: 1.4; margin: 12px 0; letter-spacing: 0; }
.schedule-deck { font-size: 15px; line-height: 1.6; }
.schedule-dialog figure { margin: 18px 0; }
.schedule-dialog figure img { width: 100%; max-height: 360px; object-fit: contain; background: #f4f6f8; }
.schedule-dialog figcaption { font-size: 12px; color: #647079; margin-top: 6px; }
.schedule-article-body { border-top: 1px solid #dfe3e8; border-bottom: 1px solid #dfe3e8; padding: 14px 0; font-size: 14px; line-height: 1.75; }
.schedule-article-body summary, .schedule-history summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.schedule-article-body h3, .schedule-article-body h4 { font-size: 16px !important; }
.schedule-dialog a { color: #ad2634; overflow-wrap: anywhere; }
.schedule-sources { padding: 12px 0; }
.schedule-sources h4 { font-size: 13px; margin: 10px 0; }
.schedule-form-grid, .schedule-picker-filters { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.schedule-form-grid label, .schedule-picker-filters label { font-size: 12px; font-weight: 700; display: grid; gap: 6px; min-width: 0; }
.schedule-form-grid input { width: 100%; min-width: 0; }
.schedule-review-check { display: flex; gap: 10px; align-items: start; font-size: 13px; line-height: 1.6; margin: 16px 0; }
.schedule-review-check input { flex-shrink: 0; margin-top: 4px; }
.schedule-history { border-top: 1px solid #dfe3e8; padding-top: 14px; }
.schedule-history-record { display: block; border: 0; border-bottom: 1px solid #dfe3e8; background: transparent; padding: 10px 0; text-align: left; font: inherit; font-size: 12px; cursor: pointer; width: 100%; overflow-wrap: anywhere; }
.schedule-event { border-bottom: 1px solid #dfe3e8; padding: 12px 0; font-size: 12px; }
.schedule-anime-metadata { font: 12px/1.6 monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.schedule-dialog .modal-actions { flex-shrink: 0; flex-wrap: wrap; gap: 8px; padding: 14px 20px; }
.schedule-dialog .modal-actions button { margin: 0; }
.schedule-picker-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px 0; border-bottom: 1px solid #dfe3e8; font-size: 13px; overflow-wrap: anywhere; }
.schedule-picker-row span { grid-column: 1; }
.schedule-picker-row button { grid-column: 2; grid-row: 1 / span 2; }
.schedule-dialog [hidden], .schedule-picker [hidden], #view-schedule [hidden] { display: none !important; }
@media (max-width: 1200px) { .schedule-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } .schedule-day { border-bottom: 1px solid #dfe3e8; } }
@media (max-width: 700px) {
  #view-schedule .page-head h1 { font-size: 24px; }
  .schedule-week { grid-template-columns: 1fr; }
  .schedule-day { border-right: 0; padding: 12px 0; }
  .schedule-toolbar { justify-content: flex-start; }
  .schedule-week-controls { width: 100%; }
  .schedule-week-controls strong { width: 100%; }
  .schedule-list .schedule-record { display: block; }
  .schedule-list .schedule-record > * { margin: 8px 0; }
  .schedule-dialog-body { padding: 14px; }
  .schedule-form-grid, .schedule-picker-filters { grid-template-columns: 1fr; }
  .schedule-dialog .modal-actions { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; }
  .schedule-dialog .modal-actions button { padding: 8px; min-width: 0; white-space: normal; font-size: 12px; }
  .schedule-dialog .modal-head, .schedule-picker .modal-head { padding: 14px; }
  #publicationScheduleDetails h3 { font-size: 18px; }
}
