.schedule-card{padding:20px}.schedule-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.schedule-toolbar>.hint{margin-left:auto}.schedule-view{display:flex;border:1px solid var(--stroke);border-radius:10px;padding:3px;background:var(--bg)}.schedule-view button{border:0;background:transparent;border-radius:7px;padding:10px 16px;min-height:40px;font-weight:800;color:var(--muted)}.schedule-view button[aria-pressed=true]{background:var(--brand);color:var(--bg)}.schedule-day-picker{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.schedule-day-picker button{min-height:44px;flex:1 0 44px;border-radius:9px;border:1px solid var(--stroke);background:var(--raised);font-size:13px;font-weight:800}.schedule-day-picker button[aria-current=true]{border-color:var(--brand);color:var(--brand)}.schedule-legend{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:16px;font-size:12px;color:var(--muted)}.schedule-legend>span{display:flex;align-items:center;gap:6px}.schedule-legend i{width:12px;height:12px;border:1px solid var(--stroke);border-radius:3px}.schedule-legend .booked{background:var(--raised);border-color:var(--brand)}.schedule-legend .mine{background:var(--raised);border-color:var(--green)}.schedule-scroll{height:min(65vh,640px);min-height:350px;overflow:auto;border:1px solid var(--stroke);border-radius:12px;scrollbar-gutter:stable;isolation:isolate;background:var(--bg)}.schedule-days,.schedule-timeline{display:grid;grid-template-columns:52px repeat(var(--schedule-days),minmax(0,1fr))}.schedule-days{position:sticky;top:0;z-index:4;background:var(--surface);box-shadow:0 1px var(--stroke);min-height:46px}.schedule-days>*{padding:14px 4px;text-align:center;white-space:nowrap;font-size:12px;border-right:1px solid var(--stroke)}.schedule-days>span{color:var(--muted);font-size:11px}.schedule-times span{display:block;height:44px;padding:7px 6px;text-align:right;font-size:11px;color:var(--muted);border-bottom:1px solid var(--stroke)}.schedule-column{position:relative;height:2112px;min-width:0;border-left:1px solid var(--stroke)}.schedule-cell{display:block;width:100%;height:44px;border:0;border-bottom:1px dashed var(--stroke);background:transparent;touch-action:pan-y;padding:0;user-select:none}.schedule-cell:nth-child(2n){border-bottom-style:solid}.schedule-cell>span{font-size:20px;color:var(--brand);opacity:0}.schedule-cell:hover:not(.occupied):not(:disabled),.schedule-cell:focus-visible:not(.occupied),.schedule-cell.selecting{background:var(--raised);box-shadow:inset 3px 0 var(--brand)}.schedule-cell:hover:not(.occupied):not(:disabled)>span,.schedule-cell:focus-visible:not(.occupied)>span{opacity:1}.schedule-cell.occupied{cursor:default}.schedule-cell:disabled{cursor:default;opacity:1}.schedule-event.week-slot{position:absolute;z-index:2;top:calc(var(--start)/30 * 44px);height:calc(var(--length)/30 * 44px - 2px);left:3px;right:3px;width:calc(100% - 6px);min-height:20px;overflow:hidden;margin:0;padding:5px 6px;border:1px solid var(--brand);border-left-width:3px;border-radius:7px;background:var(--raised);color:var(--text);user-select:none}.schedule-card .schedule-event.week-slot.mine{border-color:var(--green)}.schedule-event.week-slot strong{font-size:12px;line-height:1.2;margin-bottom:3px}.schedule-event.week-slot small{margin:0;font-size:11px;color:var(--muted);line-height:1.2}.schedule-event.week-slot>span{display:block;font-size:10px;line-height:1.2;color:var(--brand);margin-top:4px}.schedule-event.week-slot:hover{filter:brightness(1.15)}.schedule-hint{margin:14px 0 0}.schedule-reservation{display:flex;flex-direction:column;gap:8px;border:1px solid var(--stroke);border-left:4px solid var(--brand);border-radius:10px;background:var(--raised);padding:16px}.schedule-reservation>strong{font-size:20px}.schedule-reservation p{margin:0}.schedule-owner{display:flex;align-items:center;gap:12px}.schedule-owner img{width:40px;height:56px;object-fit:contain;image-rendering:pixelated}.schedule-owner span{color:var(--muted);font-size:12px}.schedule-owner strong{display:block;color:var(--text);font-size:16px}.schedule-adjustments{border-top:1px solid var(--stroke);padding-top:8px}.schedule-adjustments summary{cursor:pointer;color:var(--brand);font-weight:800;padding:12px 0;min-height:44px}.schedule-adjustments>.fields{margin-top:12px}@media(max-width:600px){.schedule-card{padding:12px}.schedule-day-picker{gap:4px}.schedule-day-picker button{font-size:12px;padding:5px;min-width:44px}.schedule-toolbar{gap:8px}.schedule-toolbar>.hint{width:100%;margin-left:0}.schedule-legend{gap:10px}.schedule-legend>.hint{font-size:11px}.schedule-reservation>strong{font-size:18px}.schedule-scroll{height:55vh}.schedule-days{grid-template-columns:48px repeat(var(--schedule-days),minmax(0,1fr))}.schedule-timeline{grid-template-columns:48px repeat(var(--schedule-days),minmax(0,1fr))}.schedule-scroll:has(.schedule-column:nth-child(8)) .schedule-days,.schedule-scroll:has(.schedule-column:nth-child(8)) .schedule-timeline{min-width:850px}}

.schedule-heading-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
@media(max-width:650px){.schedule-heading-actions{width:100%}.schedule-heading-actions .button{flex:1}}

/* Shared programs: kind badges, crew avatars, dated specials and member management. */
:root{--special:#ffc66f;--special-soft:#ffc66f1f}
.schedule-day-picker button small,.schedule-days b small{display:block;font-size:10px;font-weight:700;color:var(--muted);margin-top:2px}
.schedule-legend .special{background:var(--special-soft);border-color:var(--special)}
.schedule-card .schedule-event.week-slot{display:flex;flex-direction:column;align-items:stretch;gap:2px;text-align:left;animation:slot-in .18s cubic-bezier(.2,.8,.2,1) both;transition:filter .15s ease,transform .15s ease}
.schedule-event.week-slot:active{transform:scale(.98)}
.schedule-event.week-slot>small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.schedule-event.week-slot>.week-slot-time{font-size:10px;line-height:1.2;color:var(--brand)}
.schedule-event.week-slot.special{z-index:3;border-color:var(--special);background:linear-gradient(170deg,#3a2b1d 0%,var(--raised) 70%);box-shadow:0 6px 18px #0008}
.schedule-event.week-slot.special>.week-slot-time{color:var(--special)}
.schedule-card .schedule-event.week-slot.mine{border-color:var(--green);box-shadow:inset 0 0 0 1px #76d9bd33}
.schedule-event.compact .slot-crew,.schedule-event.compact .slot-kind,.schedule-event.compact>small{display:none}
.slot-head,.special-title{display:flex;align-items:center;gap:6px;min-width:0}
.slot-head strong,.special-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.slot-kind{flex:none;display:inline-flex;align-items:center;height:17px;padding:0 6px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.5px;text-transform:uppercase;background:#a88bff26;color:var(--lavender);box-shadow:inset 0 0 0 1px #a88bff59}
.slot-kind.special{background:var(--special-soft);color:var(--special);box-shadow:inset 0 0 0 1px #ffc66f73}
.slot-kind.normal{background:#ffffff0d;color:var(--muted);box-shadow:inset 0 0 0 1px var(--stroke)}
.slot-crew{display:flex;align-items:center;gap:6px;margin-top:auto;padding-top:4px;min-width:0}
.slot-crew em{font-style:normal;font-size:10px;font-weight:800;color:var(--muted);white-space:nowrap}
.slot-stack{display:flex;align-items:center}
.slot-stack img,.slot-stack b{width:22px;height:22px;border-radius:50%;margin-left:-7px;box-shadow:0 0 0 2px var(--raised);background:var(--surface);flex:none}
.slot-stack img{object-fit:contain;object-position:center;padding:2px}
.slot-stack :first-child{margin-left:0}
.slot-stack b{display:grid;place-items:center;font-size:9px;color:var(--text)}
.schedule-specials,.schedule-limits{margin-top:18px;padding:20px}
.schedule-specials-head h2,.schedule-limits h2{margin:0 0 4px;font-size:18px}
.schedule-specials-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;margin-top:14px}
.schedule-special{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;align-items:center;text-align:left;padding:12px;border-radius:12px;border:1px solid var(--stroke);border-left:3px solid var(--special);background:var(--raised);color:var(--text);animation:slot-in .22s cubic-bezier(.2,.8,.2,1) both;transition:border-color .15s ease,transform .15s ease}
.schedule-special:hover{border-color:var(--special)}.schedule-special:active{transform:scale(.99)}
.schedule-special.mine{box-shadow:inset 0 0 0 1px #76d9bd55}
.special-date{display:flex;flex-direction:column;align-items:center;justify-content:center;height:58px;border-radius:10px;background:var(--special-soft);color:var(--special);font-size:11px;font-weight:800;text-transform:uppercase}
.special-date b{font-size:18px;letter-spacing:-.5px}
.special-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.special-body small{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-special .slot-stack img,.schedule-special .slot-stack b{box-shadow:0 0 0 2px var(--raised)}
.schedule-empty{grid-column:1/-1;margin:0;padding:22px;border:1px dashed var(--stroke);border-radius:12px;color:var(--muted)}
.schedule-limits{display:flex;gap:20px;align-items:flex-end;justify-content:space-between;flex-wrap:wrap}
.schedule-limits form{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.schedule-limits .field{min-width:150px}
.schedule-reservation.special{border-left-color:var(--special,#ffc66f)}
.slot-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.schedule-team{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.schedule-team section{border:1px solid var(--stroke);border-radius:10px;padding:12px;background:var(--bg);min-width:0}
.schedule-team h3{display:flex;flex-direction:column;gap:2px;margin:0 0 10px;font-size:13px}
.schedule-team h3 small{font-size:11px;font-weight:700;color:var(--muted)}
.schedule-team ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.schedule-team li{display:flex;align-items:center;gap:8px;min-width:0;animation:slot-in .2s cubic-bezier(.2,.8,.2,1) both}
.schedule-team li img{width:32px;height:44px;object-fit:contain;image-rendering:pixelated;flex:none}
.schedule-team li span{display:flex;flex-direction:column;min-width:0;flex:1}
.schedule-team li b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-team li small{font-size:11px;color:var(--green)}
.schedule-team .hint{margin:0}
.schedule-invite{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.schedule-invite .field{flex:1;min-width:180px}
.schedule-invite .hint{flex-basis:100%;margin:0}
.schedule-dated{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:800;font-size:13px;min-height:44px}
.schedule-dated input{width:18px;height:18px;accent-color:var(--brand)}
.schedule-dated small{flex-basis:100%;margin:0;font-weight:600}
.schedule-weekday[hidden],.schedule-date[hidden]{display:none}
.schedule-weekday,.schedule-date{display:contents}
@keyframes slot-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.schedule-event.week-slot,.schedule-special,.schedule-team li{animation:none;transition:none}}
@media(max-width:760px){.schedule-team{grid-template-columns:1fr}}
@media(max-width:640px){.schedule-specials,.schedule-limits{padding:12px}.schedule-specials-list{grid-template-columns:1fr}.schedule-limits form,.schedule-limits .field{width:100%}.schedule-limits .button{width:100%}}

/* One-hour cards: avatars only, the count lives in the details dialog. */
.week-slot.short .slot-crew em{display:none}.week-slot.short .slot-crew{padding-top:2px}
