.usp-calendar__meeting--count {
    justify-content: center;
    width: 100%;
    border: 0;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.usp-calendar__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--tgc-accent, #2563eb);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
}

body.tgc-schedule-modal-open {
    overflow: hidden;
}

.usp-calendar-modal {
    position: fixed;
    inset: 0;
    z-index: 90000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
}

.usp-calendar-modal[hidden] {
    display: none;
}

.usp-calendar-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(520px, 100%);
    max-height: min(640px, 80vh);
    padding: 20px;
    border: 1px solid var(--tgc-border, #dbe3ec);
    border-radius: var(--tgc-radius, 12px);
    background: var(--tgc-surface, #ffffff);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    color: var(--tgc-text, #1e293b);
}

.usp-calendar-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--tgc-text-muted, #64748b);
    line-height: 0;
    cursor: pointer;
}

.usp-calendar-modal__close:hover {
    background: var(--tgc-surface-muted, #f1f5f9);
    color: var(--tgc-text, #1e293b);
}

.usp-calendar-modal__title {
    margin: 0 40px 14px 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.usp-calendar-modal__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 2px;
}

.usp-calendar-modal__card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--tgc-border, #dbe3ec);
    border-radius: var(--tgc-radius-sm, 8px);
    background: var(--tgc-surface-2, #f8fafc);
    color: inherit;
    text-decoration: none;
}

.usp-calendar-modal__card:hover {
    border-color: var(--tgc-accent, #2563eb);
    background: var(--tgc-accent-soft, #e8f1ff);
}

.usp-calendar-modal__card-time {
    flex: 0 0 auto;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--tgc-accent-dark, #1d4ed8);
}

.usp-calendar-modal__card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.usp-calendar-modal__card-title {
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.usp-calendar-modal__card-meta {
    color: var(--tgc-text-muted, #64748b);
    font-size: 12px;
}

.usp-calendar-modal__empty {
    margin: 0;
    padding: 12px;
    color: var(--tgc-text-muted, #64748b);
    text-align: center;
}

@media (max-width: 600px) {
    .usp-calendar-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .usp-calendar-modal__dialog {
        width: 100%;
        max-height: 85vh;
        padding: 16px;
        border-radius: var(--tgc-radius, 12px);
    }
}
