/* ─── Calendar grid ──────────────────────────────────────────── */
.calendar-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.calendar-controls form {
    margin: 0;
}
.calendar-controls .week-label {
    font-weight: 600;
    margin: 0 0.5rem;
    flex: 1;
    text-align: center;
}

.slot-grid {
    display: grid;
    grid-template-columns: 70px repeat(5, 1fr);
    gap: 1px;
    background: var(--pico-muted-border-color);
    border: 1px solid var(--pico-muted-border-color);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.slot-grid > div {
    background: var(--pico-background-color);
    padding: 4px 6px;
    min-height: 1.6rem;
}

.slot-header {
    font-weight: 600;
    text-align: center;
    background: #eceff1 !important;
    color: #1a1a1a;
}
.slot-time {
    text-align: right;
    background: #eceff1 !important;
    color: #455a64;
}

/* Slot statuses */
.slot {
    display: block;
    text-align: center;
    border-radius: 3px;
    text-decoration: none;
    color: inherit;
    transition: filter 0.1s;
}
.slot-available {
    background: #e8f5e9 !important;
    cursor: pointer;
    color: #2e7d32;
}
.slot-available:hover {
    filter: brightness(0.95);
    text-decoration: none;
}
.slot-preferred {
    background: #66bb6a !important;
    color: #fff !important;
    cursor: pointer;
    font-weight: 600;
}
.slot-preferred:hover {
    filter: brightness(0.95);
    text-decoration: none;
}
.slot-class {
    background: #bbdefb !important;
    color: #1565c0;
    font-size: 0.75rem;
}
.slot-blocked {
    background: #f5f5f5 !important;
    color: #bdbdbd;
}
.slot-past {
    background: #fafafa !important;
    color: #e0e0e0;
}

.slot-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.slot-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.slot-legend .swatch {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 3px;
    border: 1px solid var(--pico-muted-border-color);
}

/* ─── Forms ──────────────────────────────────────────────────── */
.flash {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.flash-error {
    background: #ffebee;
    border-left: 4px solid #c62828;
}
.flash-success {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
}

.booking-summary {
    background: #f5f7fa;
    color: #1a1a1a;
    border: 1px solid #e0e4e8;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}
.booking-summary dl {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1rem;
}
.booking-summary dt {
    font-weight: 600;
}
.booking-summary dd {
    margin: 0;
}

.button-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.button-row > * {
    flex: 1;
    min-width: 150px;
}

/* ─── Personalization ──────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.page-header hgroup {
    flex: 1;
    min-width: 250px;
    margin: 0;
}
.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pico-muted-border-color);
    flex-shrink: 0;
}
.intro {
    background: #f5f7fa;
    color: #1a1a1a;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #e0e4e8;
    margin-bottom: 1.25rem;
}
.admin-photo-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.admin-photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--pico-muted-border-color);
}
