.work-area.is-advanced-fields,.work-area.is-schedule{display:block}
.work-area.is-advanced-fields .list-pane,.work-area.is-advanced-fields .detail-pane,.work-area.is-schedule .list-pane,.work-area.is-schedule .detail-pane{display:none}
.advanced-pane{display:none;height:100%;min-width:0;min-height:0;overflow:auto;background:var(--canvas)}
.work-area.is-advanced-fields #advanced-fields-pane,.work-area.is-schedule #schedule-pane{display:block}
.advanced-pane [hidden]{display:none!important}
.advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;padding:14px 17px 36px}
.advanced-stack{display:grid;align-content:start;gap:9px}
.advanced-stack>p{margin:0;color:var(--muted);line-height:1.45}
.advanced-stack label{display:grid;gap:5px;font-weight:700}
.advanced-stack input:not([type=checkbox]):not([type=file]),.advanced-stack select{min-width:0;width:100%;min-height:33px;padding:5px 7px;border:1px solid var(--rule-strong);border-radius:0;background:var(--control-bg);color:var(--ink);font:inherit;font-weight:400}
.advanced-stack input[aria-invalid=true]{border-color:var(--timeline-failed)!important}
.advanced-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.advanced-multi-trigger{text-align:left;justify-self:start;min-width:150px}
.advanced-multi-panel{border:1px solid var(--rule-strong);padding:8px;background:var(--paper)}
.advanced-options{max-height:180px;overflow:auto;display:grid;gap:0;margin-top:7px}
.advanced-options label{display:flex;align-items:center;gap:7px;padding:5px;font-weight:400}
.advanced-options label:hover{background:var(--hover-bg)}
.advanced-file-label{border:1px solid var(--rule-strong);padding:8px;background:var(--paper)}
.advanced-file-label input{font-weight:400;max-width:100%}
.advanced-stack small{color:var(--muted);font-size:calc(10px * var(--text-scale))}
#file-progress-wrap{display:flex;align-items:center;gap:8px}
#file-progress-wrap progress{flex:1;height:12px;accent-color:var(--navy)}
#repeat-weekdays{display:flex;flex-wrap:wrap;gap:6px 10px;margin:0;padding:7px;border:1px solid var(--rule)}
#repeat-weekdays legend{font-weight:700}
#repeat-weekdays label{display:flex;gap:4px;align-items:center;font-weight:400}
.schedule-pane{overflow:hidden;display:none;flex-direction:column}
.work-area.is-schedule #schedule-pane{display:flex}
.schedule-toolbar{display:flex;align-items:center;gap:10px;padding:7px 12px;border-bottom:1px solid var(--rule-strong);background:var(--paper)}
.schedule-toolbar>div{display:flex;align-items:center;gap:4px}
.schedule-toolbar button{min-height:29px;padding:4px 9px;border:1px solid var(--rule-strong);background:var(--paper);color:var(--ink);font:inherit;font-size:calc(11px * var(--text-scale))}
.schedule-toolbar button[aria-pressed=true]{background:var(--selected-bg);box-shadow:inset 0 -2px var(--navy);font-weight:700}
.schedule-date-nav{margin-left:auto}.schedule-date-nav strong{margin-left:5px;font-size:calc(11px * var(--text-scale))}
.schedule-workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,280px)}
.schedule-main{min-width:0;min-height:0;display:flex;flex-direction:column}
.schedule-instruction{margin:0;padding:7px 12px;color:var(--muted);font-size:calc(10px * var(--text-scale));border-bottom:1px solid var(--rule)}
.schedule-grid{flex:1;min-height:0;overflow:auto;background:var(--paper)}
.schedule-grid.is-month{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));align-content:start}
.schedule-day{min-height:105px;padding:4px;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);min-width:0}
.schedule-day.is-outside{background:var(--surface-soft);opacity:.75}
.schedule-day-label{display:block;width:100%;padding:3px 2px;border:0;background:none;color:var(--ink);text-align:left;font:inherit;font-size:calc(10px * var(--text-scale));font-weight:700;cursor:pointer}
.schedule-week-head{display:grid;grid-template-columns:45px repeat(7,minmax(65px,1fr));position:sticky;top:0;z-index:2;background:var(--surface-soft)}
.schedule-grid.is-day .schedule-week-head{grid-template-columns:45px minmax(0,1fr)}
.schedule-week-head strong{padding:7px;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule-strong);font-size:calc(10px * var(--text-scale))}
.schedule-hours{min-width:500px}.schedule-grid.is-day .schedule-hours{min-width:0}
.schedule-hour-row{display:grid;grid-template-columns:45px repeat(7,minmax(65px,1fr));min-height:61px}
.schedule-grid.is-day .schedule-hour-row{grid-template-columns:45px minmax(0,1fr)}
.schedule-hour-row>span{padding:5px 4px;color:var(--muted);font-size:calc(10px * var(--text-scale));border-bottom:1px solid var(--rule)}
.schedule-slot{position:relative;min-width:0;padding:4px;border-left:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.schedule-slot:hover{background:var(--hover-bg)}
.schedule-slot-add{position:absolute;right:3px;top:3px;display:none;border:0;background:var(--paper);color:var(--ink);cursor:pointer}
.schedule-slot:hover .schedule-slot-add,.schedule-slot-add:focus-visible{display:block}
.schedule-card{display:grid;width:100%;min-width:0;gap:3px;margin:2px 0;padding:5px;border:1px solid var(--rule-strong);border-left:3px solid var(--navy);background:var(--selected-bg);color:var(--ink);text-align:left;font:inherit;font-size:calc(10px * var(--text-scale));cursor:grab}
.schedule-card[draggable=true]:active{cursor:grabbing}
.schedule-card strong,.schedule-card span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-card span{color:var(--muted)}
.schedule-card.is-selected{outline:2px solid var(--focus);outline-offset:0}
.schedule-feedback{margin:0;min-height:30px;padding:7px 12px;border-top:1px solid var(--rule);background:var(--paper);font-size:calc(10px * var(--text-scale))}
.schedule-editor{min-width:0;overflow:auto;padding:12px;border-left:1px solid var(--rule-strong);background:var(--paper)}
.schedule-editor h2{margin:0 0 12px;font-size:calc(14px * var(--text-scale))}
.schedule-editor form{font-size:calc(11px * var(--text-scale))}
.schedule-editor-note{font-size:calc(10px * var(--text-scale));line-height:1.45}
#schedule-form-error{padding:8px;background:var(--red);color:var(--issue-text)}
.schedule-form-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
.schedule-form-actions button:last-child{margin-left:auto}
@media(max-width:850px){.schedule-workspace{grid-template-columns:minmax(0,1fr) 225px}.schedule-toolbar{flex-wrap:wrap}.schedule-date-nav{margin-left:0}}
@media(max-width:690px){.advanced-grid{grid-template-columns:1fr;padding:10px 12px 24px}.advanced-pair{grid-template-columns:1fr}.schedule-pane{overflow:auto}.schedule-workspace{display:flex;flex-direction:column;overflow:visible}.schedule-main{min-height:370px}.schedule-grid.is-month{min-width:680px}.schedule-editor{border-left:0;border-top:1px solid var(--rule-strong)}.schedule-instruction{display:none}.schedule-toolbar{gap:5px}.schedule-date-nav{order:3;width:100%}}
