.hwcc-admin form { margin: 1em 0; }
.hwcc-admin .hwcc-editor { max-width: 620px; }
.hwcc-admin .hwcc-editor select { min-width: 75px; }
.hwcc-calendar {
    --director: #e1efe5; --deputy: #dae8fa; --closed: #f4d7d7; --pmclosed: #ffcf99;
    max-width: 880px; margin: 1rem auto; color: #12382e; font-family: system-ui, sans-serif;
}
.hwcc-nav {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 14px;
}
.hwcc-nav a {
    display: grid; place-items: center; min-height: 48px; width: min(100%, 176px);
    border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none;
}
.hwcc-nav .hwcc-prev { justify-self: start; color: #000; background: #eaf0f2; border: 1px solid #d2dde3; }
.hwcc-nav .hwcc-next { justify-self: end; color: white; background: #21578b; border: 1px solid #21578b; }
.hwcc-month { text-align: center; white-space: nowrap; font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.hwcc-month small { display: block; font-size: .95rem; margin-bottom: 4px; }
.hwcc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hwcc-weekday { text-align: center; font-weight: 700; padding-block: .25rem; }
.hwcc-day {
    display: grid; grid-template-rows: 1fr 1fr; align-items: center; height: 90px; min-width: 0;
    border: 1px solid #c4d0c8; border-radius: 7px; text-align: center;
    background: linear-gradient(to bottom, var(--am) 50%, var(--pm) 50%);
}
.hwcc-am-director { --am: var(--director); } .hwcc-pm-director { --pm: var(--director); }
.hwcc-am-deputy { --am: var(--deputy); } .hwcc-pm-deputy { --pm: var(--deputy); }
.hwcc-am-closed { --am: var(--closed); } .hwcc-pm-closed { --pm: var(--closed); }
.hwcc-pm-pmclosed { --pm: var(--pmclosed); }
.hwcc-number { align-self: end; font-size: clamp(1.2rem, 4.6vw, 1.8rem); line-height: 1.15; font-weight: 800; }
.hwcc-detail { font-size: clamp(.65rem, 2.6vw, .95rem); font-weight: 700; line-height: 1.12; }
.hwcc-circle { font-size: 1.25rem; }
.hwcc-legend { margin-top: 14px; padding: 12px; border: 1px solid #c4d0c8; border-radius: 8px; font-size: 1.05rem; }
.hwcc-legend div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.hwcc-legend span { text-align: center; font-weight: 700; padding: .4em .2em; border-radius: 5px; }
.hwcc-director { background: var(--director); } .hwcc-deputy { background: var(--deputy); }
.hwcc-pmclosed { background: var(--pmclosed); } .hwcc-closed { background: var(--closed); }
@media (max-width: 540px) {
    .hwcc-legend div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hwcc-day { height: 70px; }
}
