.shift-event-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 10px; }
.shift-event-tools label { min-width: min(270px,100%); font-size: .87rem; font-weight: 700; }
.shift-event-tools select { display: block; width: 100%; margin-top: 4px; }
.shift-export { margin: 0; }
.shift-jump { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; padding: 3px; border-radius: 9px; background: #e9eef8; }
.shift-jump a { color: #2e4079; }
.shift-setup { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); align-items: start; gap: 10px; margin-top: 12px; }
.shift-setup:not(:has(> :not([hidden]))) { display: none; }
.shift-setup > details { margin: 0 0 12px; }
.shift-setup > details[open] { grid-column: 1 / -1; }
.shift-setup summary ~ * { margin-top: 10px; }
#shiftUpdates:empty, #pushControls:empty, #pushNotice:empty { display: none; }
#shiftBoard { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 13px; }
#shiftBoard > :is(#wishSection,#placementSection,.draft-panel,.empty-events) { grid-column: 1 / -1; }
#shiftBoard > section, #shiftBoard > details { min-width: 0; margin: 0; scroll-margin-top: 12px; }
#shiftBoard .panel summary ~ * { margin-top: 9px; }
#shiftBoard .draft-panel { background: #fff8ec; border-color: #f0d7ad; }
#shiftBoard .draft-panel p { margin-top: 0; }
.shift-row,.assignments { display: flex; flex-wrap: wrap; gap: 6px 9px; align-items: center; margin-block: 8px; }
.shift-row > label { min-width: 0; margin: 0; }
.shift-row input:not([type=number]) { width: min(100%,160px); }
.assignments label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: .85rem; background: #f7f9fd; }
.assignments label:has(input:checked) { border-color: #b1bdf0; background: var(--tint); color: var(--accent-hover); }
.assignments label input { margin: 0; }
#shiftBoard fieldset { min-width: 0; margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; }
#shiftBoard legend { padding-inline: 5px; font-weight: 650; }
#shiftBoard .wish-days { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 8px; align-items: start; }
#shiftBoard .wish-day { margin-block: 3px; }
#shiftBoard :is(#placementSection,#chatSection,#hairSection) ul { padding-inline-start: 20px; }
#shiftBoard li { margin-bottom: 7px; }
#wishSection form > :is(label,p) { margin-block: 8px; }
#wishSection input:not([type=checkbox]) { max-width: 100%; }

@media (max-width: 640px) {
  #shiftBoard { grid-template-columns: 1fr; gap: 10px; }
  .shift-event-tools label { width: 100%; }
  .shift-jump { gap: 2px; }
  .shift-jump a { padding-inline: 7px; font-size: .79rem; }
}
