.ht-crew-calendar{border:1px solid #dce5d8;border-radius:13px;background:#f7faf1;margin:10px 0 14px;color:#283a22}
.ht-crew-calendar>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:57px;padding:8px 10px}
.ht-crew-calendar>summary::-webkit-details-marker{display:none}
.ht-crew-calendar>summary strong{display:block;font-size:1rem;line-height:1.18;letter-spacing:-.02em}
.ht-crew-calendar>summary>span{font-size:1.37rem;color:#486440;line-height:1;transition:transform .18s}
.ht-crew-calendar[open]>summary>span{transform:rotate(90deg)}
.ht-crew-calendar>summary:focus-visible,.ht-crew-calendar button:focus-visible{outline:2px solid #325b9c;outline-offset:2px}
.ht-crew-calendar [data-ht-calendar-content]{padding:0 10px 10px}
.ht-calendar-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;border-top:1px solid #e2eadc;padding-top:8px}
.ht-calendar-intro h3,.ht-calendar-upcoming h3{margin:2px 0 3px!important;font-size:1.06rem}
.ht-crew-calendar .hint{color:#465641;margin:4px 0 7px}
.ht-crew-calendar .ht-calendar-form{margin:9px 0}
.ht-calendar-opt-in{padding:8px;border:1px solid #dbead0;border-radius:8px;background:#eef7e6;font-size:.89rem;line-height:1.35}
.ht-calendar-settings{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:6px;margin-top:7px}
.ht-calendar-form label{margin:0;font-size:.85rem;font-weight:710}
.ht-calendar-form label input:not([type=checkbox]){min-height:42px}
.ht-calendar-fieldset,.ht-calendar-weekday{min-width:0;border:0;margin:7px 0;padding:0}
.ht-calendar-fieldset>legend{font-weight:820}
.ht-calendar-weekday{margin:4px 0 8px;background:#fffcf8;border:1px solid #e3e8db;border-radius:8px;padding:5px 6px 6px}
.ht-calendar-weekday>legend{padding:0 4px;font-weight:780;color:#374934;font-size:.83rem}
.ht-calendar-shift,.ht-calendar-exception{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:5px;margin:3px 0 4px}
.ht-calendar-midnight{grid-column:1/-1;font-size:.78rem!important;margin:2px 0 0!important}
.ht-calendar-exception{grid-template-columns:minmax(0,1fr) auto}
.ht-calendar-form button.alt{min-height:44px;font-size:.81rem;padding-inline:7px}
.ht-calendar-form button.primary{width:100%;min-height:46px}
.ht-calendar-actions{margin-top:10px}
.ht-calendar-upcoming{border-top:1px solid #e0e9d8;padding:7px 0 2px}
.ht-calendar-bookings{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.ht-calendar-bookings li{background:#fffcf9;border:1px solid #e2e8da;border-radius:7px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:6px 7px}
.ht-calendar-bookings li strong,.ht-calendar-bookings li div>span{display:block;font-size:.85rem;line-height:1.3}
.ht-calendar-bookings li div>span{font-size:.74rem;color:#4b5b46}.ht-calendar-bookings .tag{white-space:nowrap;font-size:.7rem}
.ht-calendar-assignment-note{font-size:.83rem;color:#354e2d}
@media(max-width:354px){.ht-calendar-settings{grid-template-columns:1fr}.ht-calendar-shift{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ht-calendar-shift button{grid-column:1/-1;justify-self:end}.ht-calendar-bookings .tag{white-space:normal}}

/* Scheduled availability and confirmed bookings use the role-workspace palette. */
.ht-crew-calendar{border-color:var(--line,#d9dede);border-radius:13px;background:#fff;margin:0;color:var(--ink,#1b2125)}
.ht-crew-calendar>summary{padding:12px 14px}
.ht-crew-calendar>summary>span{color:#9d8251}
.ht-crew-calendar>summary:focus-visible,.ht-crew-calendar button:focus-visible{outline-color:#945d00}
.ht-crew-calendar [data-ht-calendar-content]{padding:0 13px 12px}
.ht-calendar-intro,.ht-calendar-upcoming{border-color:var(--line,#d9dede)}
.ht-crew-calendar .hint,.ht-calendar-bookings li div>span{color:var(--muted,#4f5a60)}
.ht-calendar-opt-in{border-color:#ebf6f8;background:#f6fdfe;color:#604d29}
.ht-calendar-weekday,.ht-calendar-bookings li{background:#faf9fd;border-color:var(--line,#d9dede);border-radius:9px}
.ht-calendar-weekday>legend,.ht-calendar-assignment-note{color:var(--brand-dark,#66440a)}
.ht-calendar-assignment-note{padding:6px 9px;background:var(--brand-wash,#fff0cd);border-radius:8px;margin:7px 0}
