/* Administration 004: schedule-draft content only, no shell overrides. */
/* Existing #main width:auto + auto margins otherwise takes the roster's intrinsic width. */
#admin-shell #main:has(> .schedule-editor) { width:100%; max-width:100%; }
.schedule-editor { min-width:0; max-width:100%; font-size:14px; overflow-wrap:anywhere; }
.schedule-editor h1 { font-size:23px; line-height:1.3; margin:0 0 6px; }
.schedule-editor .subtitle { font-size:14px; line-height:1.5; margin:0 0 16px; }
.schedule-heading { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:16px; }
.schedule-heading > div { min-width:0; }
.schedule-heading .subtitle { margin-bottom:0; }
.schedule-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.schedule-heading .schedule-actions { margin:0; }
.schedule-editor :is(button,input,select,.button-link,summary) { min-width:44px; min-height:44px; max-width:100%; box-sizing:border-box; }
.schedule-editor :is(button,.button-link) { padding:8px 11px; font-size:13px; white-space:normal; overflow-wrap:anywhere; border-radius:8px; box-shadow:none; }
.schedule-editor .button-link { display:inline-flex; align-items:center; justify-content:center; }
.schedule-editor button.primary { background:#1568d4; border-color:#4b9cff; }
.schedule-editor :is(button,input,select,a,summary,[tabindex]):focus-visible { outline:3px solid #6bb7ff; outline-offset:3px; }
.schedule-meta,.schedule-row-meta { color:#a8abb0; font-size:12px; line-height:1.5; }
.schedule-plans { border:1px solid #35383d; border-radius:8px; background:#191b1e; }
.schedule-list-head,.schedule-list-row { display:grid; grid-template-columns:minmax(0,1fr) 100px 155px 100px; align-items:center; gap:14px; padding:12px 14px; }
.schedule-list-head { font-size:12px; color:#a8abb0; border-bottom:1px solid #35383d; }
.schedule-list-row { border-bottom:1px solid #292c30; }
.schedule-list-row:last-child { border-bottom:0; }
.schedule-list-row > div { min-width:0; }
.schedule-list-row h2 { font-size:15px; line-height:1.5; margin:0; }
.schedule-list-row p { margin:4px 0 0; }
.schedule-badge { font-size:12px; border:1px solid #35383d; border-radius:6px; padding:5px 8px; justify-self:start; }
.schedule-notice { background:#191b1e; border:1px solid #35383d; border-radius:8px; padding:12px 14px; margin:0 0 12px; line-height:1.6; }
.schedule-status { padding:18px 0; }
.schedule-save-status { margin:12px 0 6px; line-height:1.5; }
.schedule-editor .draft-scroll { width:100%; max-width:100%; overflow:auto; border:1px solid #35383d; border-radius:8px; margin:12px 0; overscroll-behavior-x:contain; }
.schedule-editor .draft-table { border-collapse:collapse; width:max-content; min-width:100%; table-layout:fixed; margin:0; background:#191b1e; font-size:13px; }
.schedule-editor .draft-table :is(th,td) { border:1px solid #35383d; padding:6px; text-align:center; vertical-align:middle; position:static; background:transparent; }
.schedule-editor .draft-table th[scope=col] { height:36px; color:#a8abb0; }
.schedule-editor .draft-table th[scope=row],.schedule-editor .draft-table th:first-child { width:180px; min-width:180px; max-width:180px; white-space:normal; text-align:left; }
.schedule-editor .member-label { min-width:0; white-space:normal; overflow-wrap:anywhere; }
.schedule-editor .member-label strong { white-space:normal; }
.schedule-row-meta { display:block; margin-top:4px; }
.schedule-editor .draft-cell { display:flex; flex-direction:column; gap:4px; min-width:64px; width:64px; }
.schedule-editor .draft-code { display:block; width:64px; height:44px; min-height:44px; padding:4px; margin:0; font-size:13px; text-align:center; border-radius:6px; }
.schedule-editor .draft-code-select { position:static; opacity:1; cursor:pointer; color:#f4f5f6; background:#222529; }
.schedule-editor .draft-code:disabled { opacity:.6; }
.schedule-code-legend { margin-top:14px; border-top:1px solid #35383d; }
.schedule-code-legend summary { cursor:pointer; padding:12px 4px; }
.schedule-code-legend p { display:inline-block; margin:6px 16px 6px 0; line-height:1.5; }
.schedule-editor-dialog .schedule-rule { padding:12px; margin:0 0 12px; border:1px solid #b88d49; border-left-width:3px; border-radius:6px; background:#302b22; }
.schedule-editor-dialog .schedule-rule.block { background:#332128; border-color:#d76c7d; }
.schedule-editor-dialog .schedule-rule p { margin:6px 0 0; }
.schedule-editor-dialog .field input { min-width:0; }
@media(max-width:1200px) {
 .schedule-list-head { display:none; }
 .schedule-list-row { grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; }
 .schedule-list-row > div { grid-column:1; }
 .schedule-list-row .schedule-badge { grid-column:2; grid-row:1; }
 .schedule-list-row > p { grid-column:1; }
 .schedule-list-row > button { grid-column:2; grid-row:2; }
}
@media(max-width:700px) {
 .schedule-editor h1 { font-size:22px; }
 .schedule-heading { flex-direction:column; }
 .schedule-actions { gap:8px; }
 .schedule-list-row { padding:12px; }
 .schedule-editor .draft-table th[scope=row],.schedule-editor .draft-table th:first-child { min-width:140px; width:140px; max-width:140px; }
}
