.aec-production-view{min-width:0}
.aec-production-viewbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0 12px 10px}
.aec-production-view-options{display:flex;gap:3px;padding:3px;border:1px solid var(--ui-border,#dce5ee);border-radius:7px;background:var(--ui-surface-muted,#f3f7fb)}
.aec-production-view-options button{font:inherit;font-size:calc(11px * var(--ui-font-scale,1));font-weight:600;min-height:30px;padding:5px 12px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--ui-fg-secondary,#526e84);cursor:pointer}
.aec-production-view-options button[aria-pressed=true]{background:var(--ui-surface,#fff);border-color:var(--ui-border,#cddfea);color:var(--ui-fg-accent,#1965a2);box-shadow:0 1px 3px #00000008}
.aec-production-view-options button:focus-visible{outline:2px solid var(--ui-fg-accent,#1965a2);outline-offset:2px}
.aec-production-view-note{font-size:calc(11px * var(--ui-font-scale,1));color:var(--ui-fg-muted,#72889b)}
/* Match the publication board's density; keep hierarchy without tall headers. */
.aec-production-view>.month-week-groups{gap:10px;padding:12px}
.aec-production-view>.month-week-groups>.weekday-group{border:1px solid var(--ui-border,#cbdcea);border-radius:8px;margin:0}
.aec-production-view>.month-week-groups>.weekday-group>header{background:var(--ui-surface-muted,#edf3f8);color:var(--ui-fg,#29465d)}
.aec-production-view>.month-week-groups>.weekday-group>header .period-toggle{padding:8px 12px;min-height:40px}
.aec-production-view>.month-week-groups>.weekday-group>header .period-toggle:hover{background:var(--ui-soft-accent,#e8f1f8)}
.aec-production-view>.month-week-groups>.weekday-group>header .period-title :is(b,strong){font-size:calc(12px * var(--ui-font-scale,1));letter-spacing:0}
.aec-production-view>.month-week-groups>.weekday-group>header :is(small,.week-current,.period-current,.period-meta){color:var(--ui-fg-secondary,#526e84)}
.aec-production-view>.month-week-groups>.weekday-group>header .period-meta>:not(svg){color:var(--ui-fg-secondary,#526e84);background:var(--ui-surface,#fff);padding:2px 6px;border-radius:4px}
.aec-production-days{display:grid;min-width:0;padding:8px 10px 10px 14px;gap:6px;background:var(--ui-surface-muted,#f3f7fb)}
.aec-production-days>div{min-width:0}
.aec-production-days .weekday-group{margin:0;border:1px solid var(--ui-border,#dce5ee);border-left:2px solid var(--ui-border,#dce5ee);border-radius:6px;overflow:hidden;min-width:0}
.aec-production-days .weekday-group.today{border-left-color:var(--ui-fg-accent,#1965a2)}
.aec-production-days .weekday-group>header{background:var(--ui-surface,#fff)}
.aec-production-days .weekday-group.today>header{background:var(--ui-surface-muted,#eef5fb)}
.aec-production-days .period-toggle{min-height:36px;padding:6px 12px}
.aec-production-days .period-title :is(b,strong){font-size:calc(12px * var(--ui-font-scale,1));letter-spacing:0}
.aec-production-days .table-scroll{border-radius:0}
.aec-production-days .weekday-empty{margin:0;padding:9px 12px}
@media(max-width:640px){
 .aec-production-viewbar{align-items:stretch;flex-direction:column;margin:0 10px 8px;gap:6px}
 .aec-production-view-options button{flex:1;min-height:44px}
 .aec-production-view-note{line-height:1.5}
 .aec-production-view>.month-week-groups{padding:10px;gap:8px}
 .aec-production-view>.month-week-groups>.weekday-group>header .period-toggle{padding:8px 10px;min-height:44px}
 .aec-production-days{padding:6px 6px 8px 9px;gap:6px}
 .aec-production-days .period-toggle{padding:7px 9px;gap:8px;min-height:44px}
 .aec-production-days .period-title{flex-wrap:wrap;gap:5px}
 .aec-production-days .period-meta{flex-shrink:0}
 .aec-production-heading{align-items:stretch;flex-direction:column;gap:14px}
 .aec-production-heading .heading-actions{flex-wrap:wrap;justify-content:flex-start;min-width:0;width:100%}
 .aec-production-heading .heading-actions>.btn{white-space:normal}
}
@media(pointer:coarse){.aec-production-view .period-toggle,.aec-production-view-options button{min-height:44px!important}}
