.schedule-layout {
  display: grid;
  gap: 18px;
  padding: 22px 28px 32px;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  container-type: inline-size;
}
.schedule-layout .card { padding: 24px; border-radius: 12px; min-width: 0; }
.schedule-layout h2 { font-size: 21px; line-height: 1.35; margin: 0; }
.schedule-upload {
  display: grid;
  gap: 22px;
  background: linear-gradient(115deg, #fff, #f5faf9);
  border-color: #bfd9d1;
}
.schedule-kicker { color: var(--green); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.schedule-upload h2 { margin-top: 7px; }
.schedule-upload-intro p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 9px 0 16px; }
.schedule-steps { display: flex; gap: 16px; flex-wrap: wrap; color: #4d6479; font-size: 12px; }
.schedule-steps > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.schedule-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e5f1ed; color: #2c8067; font-size: 11px; }
.schedule-upload-controls { display: grid; gap: 12px; align-content: center; }
.schedule-file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px;
  border: 1px dashed #94b7ad;
  border-radius: 9px;
  background: rgba(255,255,255,.8);
  cursor: pointer;
}
.schedule-file-picker:hover, .schedule-file-picker:focus-within { border-color: var(--green); background: #f1f8f5; }
.schedule-file-picker:focus-within { outline: 2px solid #2c8067; outline-offset: 3px; }
.schedule-file-picker.is-disabled { opacity: .6; cursor: default; }
.schedule-file-picker input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: inherit; }
.schedule-file-picker > span:last-child { min-width: 0; }
.schedule-file-picker strong { display: block; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.schedule-file-picker small { display: block; margin-top: 5px; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.5; }
.schedule-file-symbol { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: #e5f1ed; color: var(--green); font-size: 22px; }
.schedule-upload-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.schedule-upload-bottom small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.schedule-upload-bottom button { font-size: 13px; white-space: nowrap; }
.schedule-import-status { grid-column: 1 / -1; margin: 0; padding: 12px 14px; background: #ecf5f1; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.schedule-manual > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.schedule-manual > summary::-webkit-details-marker { display: none; }
.schedule-manual > summary b { font-size: 15px; }
.schedule-manual > summary small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.schedule-disclosure { color: var(--muted); font-size: 20px; }
.schedule-manual[open] .schedule-disclosure { transform: rotate(180deg); }
.schedule-manual-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.schedule-manual-form label { font-size: 12px; min-width: 0; }
.schedule-manual-form input, .schedule-manual-form select, .schedule-manual-form textarea { font-size: 14px; }
.schedule-manual-form textarea { min-height: 70px; }
.schedule-field-wide { grid-column: 1 / -1; }
.schedule-form-actions { display: flex; justify-content: flex-end; }
.schedule-quick { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.schedule-quick > label { font-size: 14px; font-weight: 600; }
.schedule-quick > p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 7px 0 12px; }
.schedule-quick textarea { min-height: 100px; font-size: 15px; line-height: 1.7; resize: vertical; }
.schedule-quick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.schedule-quick-actions button, .schedule-audio-picker { min-height: 40px; font-size: 13px; padding: 9px 12px; }
.schedule-quick-actions .primary { margin-left: auto; }
.schedule-quick-actions [hidden], .schedule-quick [hidden] { display: none; }
.schedule-audio-picker { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; margin: 0; overflow: hidden; }
.schedule-audio-picker input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: inherit; }
.schedule-audio-picker.is-disabled { opacity: .5; }
.schedule-audio-picker:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.schedule-quick-actions .is-recording { color: #a43e35; border-color: #cc7c73; background: #fff4f2; }
.schedule-manual-fields { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.schedule-manual-fields > summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.schedule-manual > .schedule-review { margin-top: 18px; border: 1px solid var(--line); }
.schedule-list-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.schedule-list-header p { font-size: 13px; color: var(--muted); margin: 7px 0 0; }
.schedule-type-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.schedule-type-legend span { font-size: 11px; color: #42655a; background: #edf5f1; padding: 6px 9px; border-radius: 6px; white-space: nowrap; }
.schedule-empty { display: grid; justify-items: center; padding: 32px 12px 20px; text-align: center; }
.schedule-empty > span { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #dbe9e4; background: #f3f8f6; border-radius: 12px; color: #62917f; font-size: 27px; margin-bottom: 15px; }
.schedule-empty b { font-size: 15px; color: #486174; }
.schedule-empty p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 8px 0 0; }
.schedule-list-rows { margin-top: 18px; }
.schedule-item > div > b, .schedule-item > div > small { display: block; }
.schedule-item > div > b { font-size: 14px; overflow-wrap: anywhere; }
.schedule-item > div > small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.schedule-item > strong { font-size: 13px; color: var(--green); white-space: nowrap; }
.schedule-item > button { font-size: 12px; padding: 8px 12px; }
.schedule-completed { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.schedule-completed summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.schedule-completed summary span { margin-left: 8px; }
.schedule-timezone { color: var(--muted); font-size: 11px; line-height: 1.6; margin: -4px 0 0; text-align: center; }
.deadline-banner [data-countdown] { color: inherit; font-size: inherit; font-weight: inherit; }
.schedule-review > p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 8px 0 18px; overflow-wrap: anywhere; }
.schedule-review fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; align-items: start; gap: 10px; }
.schedule-calendar { padding: 16px; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; background: #f1f8f4; min-width: 0; }
.schedule-calendar h3 { margin: 0; font-size: 15px; }
.schedule-calendar p, .schedule-calendar a, .schedule-calendar summary { font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.schedule-calendar label { display: grid; gap: 6px; margin-top: 10px; font-size: 12px; }
.schedule-calendar input, .schedule-calendar textarea { width: 100%; min-width: 0; font-size: 14px; }
.schedule-calendar .inline-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schedule-weekdays { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.schedule-draft .schedule-weekdays label { display: flex; align-items: center; gap: 5px; margin: 0; }
.schedule-draft .schedule-weekdays input { width: auto; }
.schedule-draft { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fafcfd; min-width: 0; }
.schedule-draft .schedule-review-select { position: absolute; top: 5px; left: 5px; width: 40px; height: 40px; display: grid; place-items: center; margin: 0; z-index: 1; cursor: pointer; }
.schedule-review-select input { width: 20px !important; height: 20px; margin: 0; }
.schedule-draft-editor { min-width: 0; }
.schedule-draft-summary { position: relative; padding-left: 32px; padding-right: 16px; cursor: pointer; list-style: none; }
.schedule-draft-summary::-webkit-details-marker { display: none; }
.schedule-draft-summary > b { display: block; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.schedule-review-chevron { position: absolute; right: 0; top: 0; color: var(--muted); font-size: 18px; }
.schedule-draft-editor[open] .schedule-review-chevron { transform: rotate(180deg); }
.schedule-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 5px; font-size: 12px; line-height: 1.5; }
[data-review-kind] { font-size: 10px; border-radius: 4px; padding: 1px 5px; background: #eaf0f4; color: #516878; }
.schedule-review-context, .schedule-review-note, .schedule-review-warning { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.schedule-review-context { display: block; }
.schedule-review-note, .schedule-review-warning { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.schedule-review-warning { color: #945318; }
.schedule-draft-summary [hidden] { display: none; }
.schedule-draft-fields { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.schedule-draft-editor[open] .schedule-review-note { display: none; }
.schedule-review-actions { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 0 2px; background: #fff; border-top: 1px solid var(--line); }
.schedule-review-actions > span { margin-right: auto; font-size: 12px; color: var(--muted); }
.schedule-review-actions button { min-height: 40px; font-size: 13px; padding: 9px 12px; }
.schedule-save-progress { flex-basis: 100%; display: grid; gap: 6px; color: var(--green); font-size: 12px; line-height: 1.5; }
.schedule-save-progress progress { width: 100%; height: 8px; accent-color: var(--green); }
.schedule-draft label { display: grid; gap: 6px; margin-bottom: 10px; font-size: 12px; }
.schedule-draft .inline-fields { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.schedule-draft input, .schedule-draft textarea, .schedule-draft select { width: 100%; min-width: 0; font-size: 14px; padding: 10px 12px; }
.schedule-draft textarea { min-height: 64px; }
.schedule-draft .schedule-select { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--green); }
.schedule-select input { width: auto; }
.schedule-draft p { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.schedule-warning { color: #945318; background: #fff6e7; padding: 10px; border-radius: 8px; }
.schedule-review fieldset > .inline-fields { grid-column: 1 / -1; display: flex; justify-content: flex-end; flex-wrap: wrap; }
@container (min-width: 800px) {
  .schedule-upload { grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; }
  .schedule-review fieldset { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container (max-width: 480px) {
  .schedule-layout .card { padding: 18px; }
  .schedule-manual-form, .schedule-draft .inline-fields { grid-template-columns: 1fr; }
  .schedule-draft { padding: 12px; }
  .schedule-draft input:not([type="checkbox"]), .schedule-draft textarea, .schedule-draft select { font-size: 16px; }
  .schedule-quick textarea { font-size: 16px; }
  .schedule-quick-actions .primary { width: 100%; margin: 0; }
  .schedule-item { grid-template-columns: auto minmax(0,1fr); gap: 10px; }
  .schedule-item > strong { grid-column: 2; }
  .schedule-item > button { grid-column: 2; justify-self: start; }
  .schedule-upload-bottom { align-items: flex-start; }
  .schedule-steps { gap: 10px; font-size: 11px; }
}
@media (max-width: 900px) {
  .schedule-layout { padding: 18px 20px 28px; }
}

.schedule-review-duplicate { grid-column: 1 / -1; color: var(--green); font-size: 11px; line-height: 1.6; font-weight: 500; }

.schedule-review .schedule-draft.has-input-issues { border-color: #d38a18; box-shadow: inset 3px 0 #d38a18; }
.schedule-review-required { grid-column: 1 / -1; color: #945318; background: #fff4df; padding: 4px 7px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.6; }
.schedule-review .schedule-draft [aria-invalid="true"] { border: 2px solid #d38a18; background: #fff8ec; outline-offset: 2px; }
.schedule-field-error { color: #945318; font-size: 12px; line-height: 1.6; font-weight: 500; }
.schedule-review-validation { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid #d38a18; background: #fff4df; color: #7c4612; border-radius: 5px; font-size: 12px; line-height: 1.6; }
.schedule-review-validation[hidden], .schedule-review-validation button[hidden] { display: none; }
.schedule-review-validation b { flex: 1; min-width: 180px; font-weight: 500; }
.schedule-review-validation button { flex-shrink: 0; color: #7c4612; border-color: #d38a18; background: white; }
