.week-schedule {
    --week-time-width: 38px;
    --week-slot-height: 14px;
    color: #374151;
    user-select: none;
}
.week-schedule-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.week-schedule-nav {
    width: 30px;
    height: 30px;
    border: 1px solid #f3f4f6;
    border-radius: 999px;
    background: #fff;
    color: #9ca3af;
}
.week-schedule-range {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}
.week-schedule-hint {
    margin-bottom: 10px;
    border-radius: 10px;
    background: #fff7ed;
    padding: 8px 10px;
    color: #c2410c;
    font-size: 10px;
    line-height: 1.5;
}
.week-schedule-frame {
    display: flex;
    height: 25vh;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    background: #fff;
}
.week-schedule-head {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: var(--week-time-width) repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
}
.week-schedule-corner {
    border-right: 1px solid #f3f4f6;
}
.week-schedule-day {
    padding: 7px 0 6px;
    text-align: center;
}
.week-schedule-day-name {
    display: block;
    color: #9ca3af;
    font-size: 9px;
}
.week-schedule-day-date {
    display: flex;
    width: 22px;
    height: 22px;
    margin: 2px auto 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.week-schedule-day-date:empty {
    height: 5px;
    margin-top: 0;
}
.week-schedule-day.is-today .week-schedule-day-date {
    background: #f97316;
    color: #fff;
}
.week-schedule-scroll {
    position: relative;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}
.week-schedule-scroll::-webkit-scrollbar { display: none; }
.week-schedule-body {
    position: relative;
    display: grid;
    grid-template-columns: var(--week-time-width) repeat(7, minmax(0, 1fr));
}
.week-schedule-times {
    position: relative;
    height: calc(76 * var(--week-slot-height));
    border-right: 1px solid #f3f4f6;
    background: #fff;
}
.week-schedule-time {
    position: absolute;
    right: 5px;
    transform: translateY(-6px);
    color: #9ca3af;
    font-size: 9px;
}
.week-schedule-column {
    position: relative;
    height: calc(76 * var(--week-slot-height));
    border-right: 1px solid #fff;
    background: #fafafa;
}
.week-schedule-column:last-child { border-right: 0; }
.week-slot {
    position: absolute;
    left: 0;
    right: 0;
    height: var(--week-slot-height);
    border-bottom: 1px solid #fff;
    background: #f7f7f7;
    cursor: pointer;
}
.week-slot.is-hour { border-top: 1px solid #eceff3; }
.week-slot.is-unavailable {
    background: #e5e7eb;
    cursor: not-allowed;
}
.week-slot.is-conflict {
    background: #fee2e2;
    cursor: not-allowed;
}
.week-slot.is-pending { background: #ffedd5; }
.week-slot.is-draft {
    background: #fdba74;
    box-shadow: inset 0 0 0 1px #f97316;
}
.week-slot.is-selected { background: #fb923c; }
.week-slot.is-selected-start {
    border-radius: 5px 5px 0 0;
    box-shadow: inset 0 2px #ea580c;
}
.week-slot.is-selected-end {
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 -2px #ea580c;
}
.week-schedule-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 9px;
    color: #9ca3af;
    font-size: 9px;
}
.week-schedule-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.week-schedule-legend i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}
.week-schedule-summary {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}
.week-schedule-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
    font-size: 11px;
}
.week-schedule-summary-item button {
    color: #d1d5db;
}
.complete-group-picker .week-schedule-summary {
    display: none;
}
