.calendar-section {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - var(--h-topbar));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.calendar-wrapper {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--c-surface-bg);
}
.cal-nav-bar {
    height: 60px;
    background: var(--c-sidebar-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--c-surface-alt);
    flex-shrink: 0;
}
.cal-nav-bar h2 {
    color: var(--c-text-2);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}
.cal-nav-bar h2 span {
    font-weight: 400;
    opacity: 0.7;
    margin-left: 10px;
}
.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.jump-picker {
    background: var(--c-accent);
    border: 1px solid var(--c-surface-alt);
    color: var(--c-text-2);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}
.jump-picker:hover {
    border-color: var(--c-brand-primary);
}
.cal-grid-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--c-cards);
    border-radius: 8px;
    margin: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cal-grid-scroll {
    flex: 1;
    overflow-y: auto;
    background: var(--c-surface-bg);
}
.cal-grid {
    display: grid;
    grid-template-columns: 70px repeat(7, 1fr);
    grid-template-rows: auto repeat(24, 1fr);
    gap: 1px;
    background: var(--c-surface-alt);
    height: 100%;
    min-height: 1000px;
}
.cal-day-head {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--c-accent);
    color: var(--c-text-2);
    padding: 18px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--c-brand-primary);
}
.cal-day-head span {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 3px;
    font-weight: 400;
}
.cal-time-label {
    background: var(--c-surface-bg);
    color: var(--c-brand-primary);
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    left: 0;
    z-index: 10;
}
.cal-slot {
    background-color: var(--c-cards);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-muted);
    font-size: 0.7rem;
    transition: 0.15s;
    user-select: none;
}
.cal-slot:hover:not(.busy):not(.unavailable) {
    background-color: var(--c-brand-primary);
    color: #fff;
    transform: scale(1.02);
    z-index: 5;
}
.cal-slot.partially-busy {
    background-color: var(--c-cards);
    background-image: repeating-linear-gradient(
        45deg,
        var(--c-cards),
        var(--c-cards) 8px,
        #2a2e38 8px,
        #2a2e38 16px
    );
    opacity: 0.9;
}
.cal-slot.busy,
.cal-slot.unavailable {
    background-color: #2a2e38;
    background-image: none;
    cursor: not-allowed;
    color: #4c566a;
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}
.modal-card {
    background: var(--c-cards);
    width: 100%;
    max-width: 750px;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    max-height: 95vh;
    overflow-y: auto;
}
.modal-card h4 {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--c-surface-alt);
    padding-bottom: 12px;
    font-size: 1.25rem;
}
.modal-card h4 span {
    color: var(--c-brand-primary);
    font-weight: 700;
}
.time-slots-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--c-surface-alt);
    border-radius: 8px;
}
.time-slot-btn {
    background: var(--c-cards);
    border: 1px solid var(--c-border);
    color: var(--c-text-1);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    font-weight: 600;
}
.time-slot-btn:hover:not(.selected) {
    border-color: var(--c-brand-primary);
    color: var(--c-brand-primary);
}
.time-slot-btn.selected {
    background: var(--c-brand-primary);
    color: #fff;
    border-color: var(--c-brand-primary);
}
.modal-card .row.gtr-uniform > .col-12 {
    margin-bottom: 15px;
}
.modal-card .form-group-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.modal-card label {
    font-weight: 600;
    color: var(--c-text-muted);
    margin-bottom: 6px;
}
.modal-card input,
.modal-card select,
.modal-card textarea {
    width: 100%;
    background-color: var(--c-surface-alt);
    border-color: var(--c-border);
    transition: 0.2s;
}
.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus {
    border-color: var(--c-brand-primary);
}
#guests {
    margin-bottom: 10px;
}
.modal-card .actions {
    margin-top: 25px;
    border-top: 1px solid var(--c-surface-alt);
    padding-top: 15px;
}
.page-nav, .last-mod-corner { 
    display: none !important; 
    visibility: hidden !important; 
}
@media (min-width: 769px) {
    .mobile-calendar-section { 
        display: none !important; 
    }
}
@media (max-width: 768px) {
    .calendar-section { 
        display: none !important; 
    }
    .mobile-calendar-section {
        padding: 20px;
        background: var(--c-surface-bg);
        color: var(--c-text-1);
        min-height: calc(100vh - var(--h-topbar));
    }
    .mobile-wrapper {
        max-width: 500px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .mob-step {
        width: 100%;
    }
    .mob-day-container {
        display: none;
        width: 100%;
    }
    .mob-day-container.active {
        display: block;
    }
    .mob-nav-buttons {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
    }
    .mob-day-slots {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .mob-slot-btn {
        flex: 1 1 calc(33% - 10px);
        text-align: center;
        background: var(--c-cards);
        border: 1px solid var(--c-border);
        color: var(--c-text-1);
        padding: 12px 16px;
        border-radius: 6px;
        cursor: pointer;
        transition: 0.2s;
        font-size: 0.9rem;
        font-weight: 600;
    }
    .mob-slot-btn.selected {
        background: var(--c-brand-primary);
        color: #fff;
        border-color: var(--c-brand-primary);
    }
}