/* Phase 3 — schedule workspace. Loaded after trainer.css so the calendar can
   evolve independently while retaining the existing scheduling behaviours. */

body.schedule-composer-open {
    overflow: hidden;
}

.schedule-assign-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.schedule-assign-modal.hidden {
    display: none;
}

.schedule-assign-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgb(15 23 42 / 0.58);
    backdrop-filter: blur(5px);
}

.schedule-assign-modal .schedule-assign-section {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(760px, calc(100dvh - 2rem));
    overflow-y: auto;
    padding: 0;
    border: 1px solid rgb(var(--ft-border-rgb) / 0.9);
    border-radius: 1.1rem;
    background: rgb(var(--ft-surface-rgb));
    box-shadow: 0 32px 90px rgb(15 23 42 / 0.3);
}

.schedule-assign-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem 1rem;
    border-bottom: 1px solid rgb(var(--ft-border-rgb) / 0.72);
}

.schedule-assign-header h3 {
    margin: 0.14rem 0 0;
    color: var(--ft-text-primary);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.schedule-assign-header p {
    margin: 0.22rem 0 0;
    color: rgb(var(--ft-text-muted-rgb) / 0.96);
    font-size: 0.78rem;
    font-weight: 600;
}

.schedule-assign-eyebrow {
    color: var(--ft-secondary);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.schedule-assign-close {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgb(var(--ft-border-rgb) / 0.82);
    border-radius: 999px;
    background: rgb(var(--ft-surface-rgb) / 0.94);
    color: var(--ft-text-primary);
    font-size: 1.35rem;
    line-height: 1;
}

.schedule-assign-close:hover,
.schedule-assign-close:focus-visible {
    border-color: rgb(var(--ft-secondary-rgb) / 0.48);
    background: rgb(var(--ft-secondary-rgb) / 0.1);
    outline: none;
}

.schedule-assign-modal .schedule-assign-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.35rem 1.35rem;
}

.schedule-assign-field--client {
    grid-column: 1;
    grid-row: 1;
}

.schedule-assign-field--training {
    grid-column: 2;
    grid-row: 1;
}

.schedule-assign-field--mode {
    grid-column: 1;
    grid-row: 2;
}

.schedule-assign-field--date {
    grid-column: 1 / -1;
    grid-row: 2;
}

.schedule-assign-field--mode:not(.hidden) ~ .schedule-assign-field--date {
    grid-column: 2;
}

.schedule-assign-time-grid {
    grid-column: 1 / -1;
    grid-row: 3;
}

.schedule-assign-modal .schedule-assign-submit {
    grid-column: 1 / -1;
    min-height: 3rem;
    margin-top: 0.25rem;
}

html[data-layout][data-layout-tab="schedule"] #trainerMainContainer {
    padding-top: 0.55rem;
    padding-bottom: 0.3rem;
}

@media (min-width: 1024px) {
    html[data-layout][data-layout-tab="schedule"] {
        --trainer-topbar-offset: 58px;
    }

    html[data-layout][data-layout-tab="schedule"] .trainer-header-shell {
        height: 58px;
    }

    html[data-layout][data-layout-tab="schedule"] #trainerLayoutContent {
        padding-top: 58px;
    }
}

html[data-layout][data-layout-tab="schedule"] .schedule-main-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 18px 48px rgb(var(--ft-shadow-rgb, 15 23 42) / 0.09);
}

.schedule-calendar-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgb(var(--ft-border-rgb) / 0.72);
}

.schedule-calendar-primary-row,
.schedule-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.schedule-calendar-primary-row {
    min-height: 3.8rem;
    padding: 0.42rem 1rem 0.38rem;
}

.schedule-calendar-primary-row .schedule-view-toggle {
    padding: 0.18rem;
}

.schedule-calendar-primary-row .schedule-toggle-btn {
    min-height: 2.2rem;
    padding-block: 0.32rem;
}

.schedule-filter-row {
    justify-content: flex-start;
    padding: 0.35rem 1rem;
    border-top: 1px solid rgb(var(--ft-border-rgb) / 0.56);
    background: rgb(var(--ft-text-muted-rgb) / 0.035);
}

.schedule-period-controls,
.schedule-calendar-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-period-controls .trainee-cal-period-label {
    min-width: clamp(10.5rem, 16vw, 15rem);
    color: var(--ft-text-primary);
    font-size: clamp(0.98rem, 1.2vw, 1.15rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-align: center;
}

.schedule-open-assign-btn {
    min-height: 2.2rem;
    padding-inline: 1rem;
}

.schedule-open-assign-btn > span {
    font-size: 1.05rem;
}

.schedule-filter-row .schedule-filter-control {
    min-height: 2.2rem;
    min-width: 11rem;
    background-color: rgb(var(--ft-surface-rgb));
}

.schedule-filter-row .schedule-icon-toggle,
.schedule-filter-row .schedule-icon-select-wrap {
    min-height: 2.2rem;
    height: 2.2rem;
    background: rgb(var(--ft-surface-rgb));
}

.schedule-completed-workout-link {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-top: 0.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ft-secondary);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
}

.schedule-completed-workout-link span {
    font-size: 1rem;
    line-height: 0.7;
    transition: transform 0.15s ease;
}

.schedule-completed-workout-link:hover,
.schedule-completed-workout-link:focus-visible {
    color: rgb(var(--ft-secondary-rgb) / 0.82);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
    outline: none;
}

.schedule-completed-workout-link:hover span,
.schedule-completed-workout-link:focus-visible span {
    transform: translateX(2px);
}

.schedule-selection-hint {
    margin-left: auto;
    color: rgb(var(--ft-text-muted-rgb) / 0.8);
    font-size: 0.68rem;
    font-weight: 650;
    white-space: nowrap;
}

.schedule-bulk-action-bar,
.trainee-cal-pending-banner,
.schedule-sub-panel,
.schedule-needs-tray {
    margin: 0.75rem 1rem 0;
}

.schedule-planner-root {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.schedule-global-calendar,
.schedule-global-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.schedule-global-month-grid.trainee-cal-month-grid {
    width: 100%;
    min-width: 0;
    gap: 0;
    border-radius: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.schedule-global-month-grid .trainee-cal-month-header {
    min-height: 2.35rem;
    display: grid;
    place-items: center;
    padding: 0.45rem;
    border-right: 1px solid rgb(var(--ft-border-rgb) / 0.62);
    border-bottom: 1px solid rgb(var(--ft-border-rgb) / 0.75);
    background: rgb(var(--ft-text-muted-rgb) / 0.04);
    color: rgb(var(--ft-text-muted-rgb) / 0.95);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.schedule-global-month-grid .trainee-cal-month-header:nth-child(7) {
    border-right: 0;
}

.schedule-global-month-grid > :nth-child(7n) {
    border-right: 0;
}

.schedule-global-day,
.trainee-training-calendar--month .schedule-global-day {
    min-height: clamp(7rem, 13.5vh, 9.35rem);
    padding: 0.5rem;
    gap: 0.35rem;
    border: 0;
    border-right: 1px solid rgb(var(--ft-border-rgb) / 0.62);
    border-bottom: 1px solid rgb(var(--ft-border-rgb) / 0.62);
    border-radius: 0;
    background: rgb(var(--ft-surface-rgb) / 0.98);
}

.schedule-global-day:nth-child(7n) {
    border-right: 0;
}

.schedule-global-day:nth-last-child(-n + 7) {
    border-bottom: 0;
}

.schedule-global-day:nth-child(7n + 6),
.schedule-global-day:nth-child(7n) {
    background: rgb(var(--ft-text-muted-rgb) / 0.025);
}

.schedule-global-day.trainee-cal-month-day--outside {
    opacity: 1;
    background: rgb(var(--ft-text-muted-rgb) / 0.055);
}

.schedule-global-day.trainee-cal-month-day--outside .trainee-cal-month-day-number {
    opacity: 0.5;
}

.schedule-global-day.schedule-day-selected {
    background: rgb(var(--ft-secondary-rgb) / 0.045);
    box-shadow: 0 0 0 2px rgb(var(--ft-secondary-rgb) / 0.54) inset;
}

.schedule-global-day .trainee-cal-month-day-top {
    margin-bottom: 0;
}

.schedule-global-day .trainee-cal-month-day-number {
    font-size: 0.76rem;
    font-weight: 850;
}

.schedule-day-count {
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.28rem;
    font-size: 0.62rem;
}

.schedule-global-card.schedule-global-card--month {
    min-height: 3.3rem;
    padding: 0.44rem 0.48rem 0.42rem 0.62rem;
    border: 0;
    border-left: 3px solid rgb(var(--ft-secondary-rgb));
    border-radius: 0.5rem;
    background: rgb(var(--ft-secondary-rgb) / 0.085);
    box-shadow: none;
}

.schedule-global-card.schedule-global-card--month:hover {
    background: rgb(var(--ft-secondary-rgb) / 0.13);
}

.schedule-global-card--month.trainee-cal-card--complete {
    border-left-color: rgb(var(--ft-success-rgb));
    background: rgb(var(--ft-success-rgb) / 0.085);
}

.schedule-global-card--month.trainee-cal-card--missed {
    border-left-color: rgb(var(--ft-error-rgb, 239 68 68));
    background: rgb(var(--ft-error-rgb, 239 68 68) / 0.075);
}

.schedule-global-card--month.trainee-cal-card--due {
    border-left-color: rgb(var(--ft-warning-rgb, 245 158 11));
    background: rgb(var(--ft-warning-rgb, 245 158 11) / 0.08);
}

.schedule-global-card--month .trainee-cal-card-title {
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.2;
}

.schedule-global-card--month .schedule-global-card-trainee {
    margin-top: 0.1rem;
    font-size: 0.64rem;
    line-height: 1.2;
}

.schedule-global-card-time {
    display: block;
    margin-top: 0.16rem;
    color: rgb(var(--ft-text-muted-rgb) / 0.88);
    font-size: 0.58rem;
    font-weight: 750;
}

.schedule-global-card--month .schedule-card-meta-row {
    position: absolute;
    right: 0.38rem;
    top: 0.36rem;
    margin: 0;
}

.schedule-global-card--month .schedule-card-mode {
    min-height: 1.08rem;
    padding: 2px 6px;
    border: 1px solid currentColor;
    font-size: 0.56rem;
    line-height: 1;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}

.schedule-global-card--month .schedule-card-mode--online {
    color: #b45309;
    background: #fff1e6;
}

.schedule-global-card--month .schedule-card-mode--irl {
    color: #15803d;
    background: #e9f8ee;
}

.schedule-global-card--month .schedule-card-status {
    right: 0.38rem;
    bottom: 0.34rem;
    min-height: 1.08rem;
    padding: 2px 6px;
    font-size: 0.55rem;
    line-height: 1;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.12);
}

.schedule-global-card--month .schedule-card-status--complete {
    color: #fff;
    background: #15803d;
}

.schedule-global-card--month .schedule-card-status--due {
    color: #fff;
    background: #b45309;
}

.schedule-global-card--month .trainee-cal-card-body {
    padding-right: 3.15rem;
}

.trainee-cal-month-overflow {
    margin-top: auto;
    color: var(--ft-secondary);
    font-size: 0.64rem;
    font-weight: 850;
}

.trainee-cal-month-overflow:hover,
.trainee-cal-month-overflow:focus-visible {
    color: var(--ft-secondary);
    background: rgb(var(--ft-secondary-rgb) / 0.14);
    outline: none;
}

html[data-theme="light"] .trainee-cal-month-overflow:hover,
html[data-theme="light"] .trainee-cal-month-overflow:focus-visible {
    color: #b45309;
    background: #fff1e6;
    outline: none;
}

html[data-layout][data-layout-tab="schedule"][data-schedule-large-display="true"] .schedule-global-month-grid {
    min-height: clamp(38rem, calc(100dvh - var(--trainer-topbar-offset) - 10.75rem), 55rem);
    grid-template-rows: auto repeat(var(--schedule-month-rows, 6), minmax(7rem, 1fr));
}

html[data-layout][data-layout-tab="schedule"][data-schedule-large-display="true"] .schedule-global-day {
    min-height: 7rem;
}

.schedule-week-grid {
    grid-template-columns: repeat(7, minmax(9rem, 1fr));
    gap: 0;
    padding: 0;
    border-radius: 0;
    overflow-x: auto;
}

.schedule-week-grid--with-hours {
    grid-template-columns: 3.65rem repeat(7, minmax(9rem, 1fr));
}

.schedule-week-time-axis,
.schedule-week-column {
    border: 0;
    border-right: 1px solid rgb(var(--ft-border-rgb) / 0.62);
    border-radius: 0;
    background: rgb(var(--ft-surface-rgb) / 0.98);
}

.schedule-week-column:last-child {
    border-right: 0;
}

.schedule-week-column {
    padding: 0;
}

.schedule-week-column:nth-last-child(-n + 2) {
    background: rgb(var(--ft-text-muted-rgb) / 0.025);
}

.schedule-week-column-head,
.schedule-week-time-axis-head {
    min-height: 3.4rem;
    margin: 0;
    padding: 0.7rem 0.65rem;
    border-bottom: 1px solid rgb(var(--ft-border-rgb) / 0.68);
}

.schedule-week-column-head {
    color: rgb(var(--ft-text-muted-rgb) / 0.9);
    font-size: 0.69rem;
    font-weight: 800;
    text-transform: uppercase;
}

.schedule-week-column-head strong {
    color: var(--ft-text-primary);
    font-size: 0.78rem;
}

.schedule-week-anytime {
    height: 12rem;
    min-height: 12rem;
    margin: 0;
    padding: 0.5rem;
    border-bottom: 1px solid rgb(var(--ft-border-rgb) / 0.68);
    background: rgb(var(--ft-secondary-rgb) / 0.025);
}

.schedule-week-time-axis-anytime {
    height: 12rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0.55rem 0.45rem;
    border-bottom: 1px solid rgb(var(--ft-border-rgb) / 0.68);
    color: rgb(var(--ft-text-muted-rgb) / 0.78);
    font-size: 0.55rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.schedule-week-grid--with-hours .schedule-week-anytime-head > span {
    visibility: hidden;
}

.schedule-week-anytime-head strong {
    color: var(--ft-secondary);
}

.schedule-week-grid-area,
.schedule-week-time-axis-grid {
    position: relative;
    border-top: 0;
    background: transparent;
}

.schedule-week-time-axis-grid > span {
    position: absolute;
    right: 0.45rem;
    z-index: 2;
    padding: 0 0.12rem;
    transform: translateY(-50%);
    background: rgb(var(--ft-surface-rgb));
    color: rgb(var(--ft-text-muted-rgb) / 0.82);
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.schedule-hour-line {
    border-top: 1px solid rgb(var(--ft-border-rgb) / 0.42);
}

.schedule-week-timed-card {
    min-height: 3.25rem;
}

.schedule-week-timed-card .schedule-global-card {
    min-height: 3.25rem;
    padding: 0.48rem 0.52rem;
    border: 0;
    border-left: 3px solid rgb(var(--ft-success-rgb));
    border-radius: 0.5rem;
    background: rgb(var(--ft-success-rgb) / 0.11);
    box-shadow: 0 4px 14px rgb(var(--ft-shadow-rgb, 15 23 42) / 0.08);
}

html[data-theme="light"] .schedule-week-timed-card .schedule-global-card {
    border-color: transparent;
    border-left-color: rgb(var(--ft-success-rgb));
    background: rgb(var(--ft-success-rgb) / 0.09);
}

html[data-theme="light"] .schedule-week-timed-card .schedule-global-card:hover {
    border-left-color: rgb(var(--ft-success-rgb));
    background: rgb(var(--ft-success-rgb) / 0.14);
}

.schedule-week-timed-card .trainee-cal-card-thumb {
    display: none;
}

.schedule-week-timed-card .trainee-cal-card-title {
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.2;
}

.schedule-week-grid--online-expanded {
    height: auto;
    min-height: clamp(24rem, 63vh, 45rem);
}

.schedule-week-grid--online-expanded .schedule-week-column {
    min-height: clamp(24rem, 63vh, 45rem);
}

.schedule-week-grid--online-expanded .schedule-week-anytime {
    padding: 0.65rem;
}

.schedule-week-agenda {
    display: grid;
    gap: 0.65rem;
    padding: 0.75rem;
    background: rgb(var(--ft-text-muted-rgb) / 0.025);
}

.schedule-week-agenda-day {
    overflow: hidden;
    border: 1px solid rgb(var(--ft-border-rgb) / 0.75);
    border-radius: 0.8rem;
    background: rgb(var(--ft-surface-rgb));
}

.schedule-week-agenda-day > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid rgb(var(--ft-border-rgb) / 0.62);
}

.schedule-week-agenda-list {
    padding: 0.75rem;
}

.schedule-week-column.trainee-cal-drop-target--active,
.schedule-global-day.trainee-cal-drop-target--active,
.schedule-week-agenda-day.trainee-cal-drop-target--active {
    background: rgb(var(--ft-secondary-rgb) / 0.11);
    box-shadow: 0 0 0 2px rgb(var(--ft-secondary-rgb) / 0.65) inset;
}

@media (max-width: 1100px) {
    .schedule-selection-hint {
        display: none;
    }

    .schedule-filter-row {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

@media (max-width: 760px) {
    .schedule-assign-modal {
        place-items: end center;
        padding: 0;
    }

    .schedule-assign-modal .schedule-assign-section {
        width: 100%;
        max-height: 92dvh;
        border-radius: 1rem 1rem 0 0;
    }

    .schedule-assign-modal .schedule-assign-form {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .schedule-assign-modal .schedule-assign-field,
    .schedule-assign-modal .schedule-assign-time-grid {
        grid-column: 1;
        grid-row: auto;
    }

    .schedule-assign-header {
        padding: 1rem;
    }

    .schedule-calendar-primary-row {
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .schedule-period-controls {
        flex: 1 1 100%;
    }

    .schedule-period-controls .trainee-cal-period-label {
        min-width: 0;
        flex: 1;
    }

    .schedule-calendar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .schedule-filter-row {
        padding: 0.6rem 0.75rem;
    }

    .schedule-filter-row .schedule-filter-control {
        width: auto;
        min-width: 9.5rem;
    }

    .schedule-global-month-grid {
        grid-template-columns: repeat(7, minmax(7.5rem, 1fr));
        overflow-x: auto;
    }

    .schedule-global-day,
    .trainee-training-calendar--month .schedule-global-day {
        min-height: 7.5rem;
    }

    .schedule-week-agenda.schedule-week-viewport-fit {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 430px) {
    .schedule-open-assign-btn {
        padding-inline: 0.75rem;
    }

    .schedule-toggle-btn {
        padding-inline: 0.7rem;
    }
}

/* Client Training calendars reuse Schedule's grid and card components. */
#trainee-training-calendar-shell {
    border: 1px solid rgb(var(--ft-border-rgb) / 0.75);
    border-radius: 1rem;
    background: rgb(var(--ft-surface-rgb) / 0.98);
    box-shadow: 0 18px 48px rgb(var(--ft-shadow-rgb, 15 23 42) / 0.09);
    min-width: 0;
}
#trainee-training-calendar-shell > .schedule-calendar-header { border-radius: 1rem 1rem 0 0; }
#trainee-training-calendar-shell .schedule-calendar-primary-row { flex-wrap: wrap; }
#trainee-training-calendar-shell .schedule-calendar-actions { flex-wrap: wrap; }
#trainee-training-calendar-shell .trainee-cal-panel {
    padding: 0; border: 0; background: transparent; min-height: 0;
    border-radius: 0 0 1rem 1rem;
}
#trainee-training-calendar-shell .trainee-cal-root { min-height: 0; overflow-x: auto; border-radius: 0 0 1rem 1rem; }
#trainee-training-calendar-shell .trainee-cal-month-grid { gap: 0; min-width: 700px; }
#trainee-training-calendar-shell .schedule-global-day {
    min-height: clamp(7rem, 13.5vh, 9.35rem); padding: 0.5rem; gap: 0.35rem;
    border-radius: 0; background: rgb(var(--ft-surface-rgb) / 0.98);
}
#trainee-training-calendar-shell .schedule-global-day:nth-child(7n + 6),
#trainee-training-calendar-shell .schedule-global-day:nth-child(7n) { background: rgb(var(--ft-text-muted-rgb) / 0.025); }
#trainee-training-calendar-shell .trainee-cal-week-grid { gap: 0; min-height: 0; align-items: stretch; }
#trainee-training-calendar-shell .schedule-week-column { padding: 0; border-radius: 0; background: rgb(var(--ft-surface-rgb) / 0.98); }
#trainee-training-calendar-shell .schedule-week-column:nth-last-child(-n + 2) { background: rgb(var(--ft-text-muted-rgb) / 0.025); }
#trainee-training-calendar-shell .schedule-week-anytime {
    height: 12rem; min-height: 12rem; margin: 0; padding: 0.5rem;
    border: 0; border-bottom: 1px solid rgb(var(--ft-border-rgb) / 0.68);
    border-radius: 0; opacity: 1; background: rgb(var(--ft-secondary-rgb) / 0.025);
}
#trainee-training-calendar-shell .schedule-week-grid-area {
    padding: 0; border: 0; border-radius: 0; background: transparent; flex: 0 0 auto;
}
#trainee-training-calendar-shell .schedule-week-column-head { min-height: 3.4rem; margin: 0; padding: 0.7rem 0.65rem; }
#trainee-training-calendar-shell .trainee-cal-week-column-label { color: var(--ft-text-muted); font-size: 0.69rem; font-weight: 800; }
#trainee-training-calendar-shell .trainee-cal-week-column-date { font-size: 0.78rem; color: var(--ft-text-primary); }
#trainee-training-calendar-shell .schedule-week-grid--online-expanded .schedule-week-anytime { height: auto; flex: 1; }
#trainee-training-calendar-shell :is(.trainee-cal-toolbar-btn, .trainee-cal-nav-btn, .trainee-cal-open-schedule-btn) {
    min-height: 2.2rem; border-radius: 0.625rem; font-size: 0.85rem;
    border: 1px solid rgb(var(--ft-border-rgb) / 0.85);
    background: rgb(var(--ft-surface-rgb) / 0.9); color: var(--ft-text-primary);
}
#trainee-training-calendar-shell .trainee-cal-view-toggle { padding: 0.18rem; border-radius: 0.7rem; }
#trainee-training-calendar-shell .trainee-cal-view-toggle-btn { min-height: 2.2rem; padding: 0.32rem 0.9rem; }
#trainee-training-calendar-shell .trainee-cal-view-toggle-btn--active { background: rgb(var(--ft-secondary-rgb) / 0.14); color: var(--ft-secondary); box-shadow: 0 8px 20px rgb(var(--ft-secondary-rgb) / 0.14); }
#trainee-training-calendar-shell .trainee-cal-card-title { margin: 0; }
#trainee-training-calendar-shell .schedule-week-timed-card .trainee-cal-card { min-height: 0; }
#trainee-training-calendar-shell .schedule-week-timed-card.is-compact .trainee-cal-card {
    padding: 3px 5px; min-height: 22px;
}
#trainee-training-calendar-shell .schedule-week-timed-card.is-compact .schedule-card-meta-row { display: none; }
#trainee-training-calendar-shell .schedule-week-timed-card.is-compact .schedule-global-card--has-status .trainee-cal-card-body { padding-right: 2.7rem; }
#trainee-training-calendar-shell .schedule-week-timed-card.is-compact .schedule-card-status { bottom: 3px; }
#trainee-training-calendar-shell .trainee-cal-view-toggle-btn { border: 0; font-size: 0.875rem; font-weight: 700; }
#trainee-training-calendar-shell .trainee-cal-view-toggle-btn--active { box-shadow: 0 8px 20px rgb(var(--ft-secondary-rgb) / 0.14) !important; }
