#shift-calendar { max-width: 58rem; margin-inline: auto; }
#shift-calendar .global-panel { margin-block: 1rem; }
#shift-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; border: 0; padding: 0; margin: 0; min-width: 0; }
#shift-form legend { margin-bottom: .75rem; }
#shift-form label { display: grid; gap: .35rem; }
#shift-form input { min-width: 0; width: 100%; box-sizing: border-box; padding: .65rem; font: inherit; }
#shift-form .shift-pattern, #shift-help { grid-column: 1 / -1; }
#shift-help { margin: 0; }
#shift-error:empty { display: none; }
#shift-calendar table { width: 100%; table-layout: fixed; border-collapse: collapse; }
#shift-answer { overflow-wrap: anywhere; }
#shift-calendar caption { font-weight: bold; padding: .75rem; }
#shift-calendar td, #shift-calendar th { padding: .35rem .12rem; border: 1px solid #d2d8cb; vertical-align: top; text-align: center; }
#shift-calendar td span { display: block; overflow-wrap: anywhere; font-size: .875rem; }
#shift-calendar td[data-selected] { background: #fff3c1; outline: 2px solid #504116; outline-offset: -2px; }
#shift-calendar .shift-nav { display: flex; justify-content: space-between; }
.shift-nav button { min-height: 44px; padding-inline: 1rem; }
@media (max-width: 36rem) { #shift-form fieldset { grid-template-columns: 1fr; } }
