﻿/* ---------- Dashboard ---------- */
.dashboard-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--dashboard-widget-gap);
    width: 100%;
    min-height: 100%;
}

.dashboard-hero {
    display: flex;
    flex-direction: column;
    gap: var(--dashboard-widget-gap);
}

.dashboard-body {
    display: flex;
    flex-direction: column;
    gap: var(--dashboard-widget-gap);
    flex: 1;
    background: transparent;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    color: var(--brand-charcoal);
}

.dashboard-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 20px 20px 0;
}

.dashboard-card__heading {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--brand-charcoal);
    letter-spacing: -0.02em;
}

.dashboard-card__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.dashboard-empty--compact {
    padding: 1rem 1.25rem 1.25rem;
}

.dashboard-card__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-card);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.dashboard-card__view-all:hover,
.dashboard-card__view-all:focus-visible {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.dashboard-upcoming,
.dashboard-recent {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-bottom: 20px;
}

.dashboard-upcoming .dashboard-schedule-list,
.dashboard-recent .dashboard-recent-list {
    padding: 0 20px;
}

.app-build-footer {
    margin: auto 0 0;
    padding-top: 0.5rem;
    font-size: 0.6875rem;
    color: var(--color-text-muted, #6b7280);
    text-align: center;
}

.dashboard-page__header {
    margin-bottom: 0;
}

.dashboard-page__refresh {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dashboard-page__refresh-time {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}

.dashboard-page__refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        opacity 0.2s var(--ease),
        color 0.2s var(--ease),
        background-color 0.2s var(--ease),
        transform 0.15s var(--ease);
}

.dashboard-page__refresh-btn svg {
    transition: transform 0.35s var(--ease);
}

.dashboard-page__refresh-btn:hover:not(:disabled),
.dashboard-page__refresh-btn:focus-visible:not(:disabled) {
    color: var(--text-primary);
    background: var(--surface-muted);
}

.dashboard-page__refresh-btn:hover:not(:disabled):not(.dashboard-page__refresh-btn--spinning) svg,
.dashboard-page__refresh-btn:focus-visible:not(:disabled):not(.dashboard-page__refresh-btn--spinning) svg {
    transform: rotate(-75deg);
}

.dashboard-page__refresh-btn:active:not(:disabled) {
    transform: scale(0.9);
}

.dashboard-page__refresh-btn:disabled {
    cursor: wait;
}

.dashboard-page__refresh-btn--spinning {
    color: var(--brand-orange);
    background: var(--accent-soft);
}

.dashboard-page__refresh-btn--spinning svg {
    animation: dashboard-refresh-spin 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes dashboard-refresh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-page__refresh-btn svg {
        transition: none;
    }

    .dashboard-page__refresh-btn--spinning svg {
        animation: dashboard-refresh-pulse 1.2s ease-in-out infinite;
    }
}

@keyframes dashboard-refresh-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

.dashboard-stats {
    display: grid;
    gap: var(--dashboard-widget-gap);
}

.dashboard-recent {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.dashboard-upcoming {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.schedule-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1400px;
    margin-inline: auto;
    width: 100%;
}

.schedule-page__title {
    font-size: 1.5rem;
}

.schedule-page__schedule-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    padding-inline: 1rem;
    font-weight: 600;
}

/* ---------- Quick scheduling form ---------- */
.schedule-form.glass-panel {
    padding: 1rem 1.25rem 1.1rem;
    border-radius: 14px;
    border-color: color-mix(in srgb, var(--border) 88%, transparent);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.schedule-form__header {
    margin-bottom: 0.85rem;
}

.schedule-form__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.schedule-form__row {
    display: grid;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.schedule-form__row--primary {
    grid-template-columns: minmax(14rem, 2.2fr) minmax(9rem, 1fr) minmax(9rem, 1fr);
}

.schedule-form__row--secondary {
    grid-template-columns: minmax(10rem, 1.4fr) minmax(8rem, 1fr) minmax(7rem, 0.8fr);
}

.schedule-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.schedule-form__field--operator {
    min-width: 0;
}

.schedule-form__field--dropdown {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.schedule-form__field--dropdown.is-dropdown-open {
    z-index: 26;
}

.schedule-form__field--dropdown .operator-search.is-open {
    position: relative;
    z-index: 27;
}

.schedule-form__field--notes {
    margin-bottom: 0.75rem;
}

.schedule-form__field--full {
    grid-column: 1 / -1;
}

.schedule-form__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.schedule-form .form-control,
.schedule-form .form-select,
.schedule-form .operator-search__input {
    min-height: 42px;
    font-size: 0.875rem;
    border-radius: 10px;
}

.schedule-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
}

.schedule-form__footer-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
}

.schedule-form__notes-toggle {
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.schedule-form__submit {
    min-height: 42px;
    padding-inline: 1.1rem;
    font-weight: 700;
    color: var(--text-on-brand);
    background: var(--gradient-brand-vertical);
    border-color: transparent;
    box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.schedule-form__submit:disabled {
    filter: none;
    opacity: var(--opacity-disabled);
}

.schedule-form__hint {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.schedule-form__validation {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--danger, #e55353);
}

.schedule-form .form-control.is-invalid {
    border-color: var(--danger, #e55353);
}

/* ---------- Success banner ---------- */
.schedule-success-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, #22c55e 35%, var(--border));
    background: color-mix(in srgb, #22c55e 8%, var(--surface-elevated, #fff));
}

.schedule-success-banner__content {
    flex: 1;
    min-width: 0;
}

.schedule-success-banner__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #15803d;
}

.schedule-success-banner__detail {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.schedule-success-banner__link {
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.schedule-success-banner__dismiss {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.15rem 0.35rem;
    cursor: pointer;
}

/* ---------- Calendar card ---------- */
.schedule-calendar-card.glass-panel {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    border-color: color-mix(in srgb, var(--border) 88%, transparent);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.schedule-calendar-card.glass-panel:has(.is-dropdown-open),
.schedule-calendar-card.glass-panel:has(.is-popover-open) {
    overflow: visible;
}

.schedule-calendar-card__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: 1rem 1.25rem;
    background: color-mix(in srgb, var(--foreground) 3%, transparent);
    border-bottom: 1px solid #E2E5EA;
}

.schedule-calendar-card__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    min-width: 0;
    flex: 1 1 12rem;
}

.schedule-calendar-card__title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
}

.schedule-calendar-card__count-sep,
.schedule-calendar-card__count {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.schedule-calendar-card__body {
    padding: 1rem 1.25rem 1.25rem;
}

.schedule-calendar-card__body.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.schedule-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin: 0;
    flex: 2 1 20rem;
}

.schedule-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.schedule-toolbar__row--route {
    justify-content: space-between;
}

.schedule-toolbar > .page-toolbar {
    flex: 1 1 auto;
}

.schedule-toolbar__views,
.schedule-toolbar__nav {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.schedule-toolbar__btn {
    border: 1px solid #E2E5EA;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
    color: inherit;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    min-height: 36px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.schedule-toolbar__btn:hover {
    border-color: color-mix(in srgb, var(--brand-orange) 35%, var(--border));
}

.schedule-toolbar__btn.is-active {
    background: color-mix(in srgb, var(--brand-orange) 14%, transparent);
    border-color: color-mix(in srgb, var(--brand-orange) 45%, var(--border));
    color: var(--brand-orange);
}

.schedule-toolbar__btn:focus-visible,
.schedule-toolbar__nav-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.schedule-toolbar__nav-btn {
    border: 1px solid #E2E5EA;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
    color: inherit;
    border-radius: 8px;
    min-width: 2.25rem;
    min-height: 36px;
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.schedule-toolbar__nav-btn--today {
    min-width: 4.5rem;
}

.schedule-toolbar__loading {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.schedule-toolbar__spinner {
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid color-mix(in srgb, var(--text-muted) 25%, transparent);
    border-top-color: var(--brand-orange);
    border-radius: 50%;
    animation: schedule-spin 0.7s linear infinite;
}

@keyframes schedule-spin {
    to { transform: rotate(360deg); }
}

/* ---------- List / event cards ---------- */
.schedule-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.schedule-list__item,
.schedule-event-card {
    display: block;
    padding: 0.75rem 1rem 0.75rem 1.1rem;
    border-radius: 12px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
    border: 1px solid #E2E5EA;
    border-left-width: 4px;
}

.schedule-event-card--scheduled { border-left-color: var(--info); }
.schedule-event-card--progress,
.schedule-event-card--overdue { border-left-color: var(--brand-orange); }
.schedule-event-card--completed { border-left-color: #22c55e; }
.schedule-event-card--cancelled,
.schedule-event-card--missed { border-left-color: var(--danger, #e55353); }
.schedule-event-card--muted { border-left-color: var(--text-muted); }

.schedule-event-card__body {
    min-width: 0;
}

.schedule-event-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.schedule-event-card__when {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.schedule-event-card__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 0.35rem;
}

.schedule-event-card__content {
    min-width: 0;
    flex: 1;
}

.schedule-event-card__operator {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
}

.schedule-event-card__meta,
.schedule-event-card__coach {
    margin: 0.15rem 0 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.35;
}

.schedule-event-card__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.schedule-event-card__primary-action {
    white-space: nowrap;
}

.schedule-event-card__menu {
    position: relative;
}

.schedule-event-card__menu-btn {
    min-width: 2rem;
    padding-inline: 0.45rem;
}

.schedule-event-card__menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: none;
    background: transparent;
    cursor: default;
}

.schedule-event-card__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 50;
    min-width: 10.5rem;
    padding: 4px;
    background: var(--card, #fff);
    border: 1px solid #E2E5EA;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.schedule-event-card__dropdown-item {
    display: block;
    width: 100%;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    text-align: left;
    color: inherit;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.schedule-event-card__dropdown-item:hover {
    background: color-mix(in srgb, var(--foreground) 5%, transparent);
}

.schedule-event-card__dropdown-item--danger {
    color: var(--danger, #e55353);
}

.schedule-event-card__details {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #E2E5EA;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.schedule-event-card__details p {
    margin: 0.2rem 0 0;
}

.schedule-event-card__details-label {
    font-weight: 700;
    color: var(--foreground);
}

/* Shared status pills → levelup-components.css (.chip / legacy bridges) */

/* ---------- Calendar grid ---------- */
.schedule-calendar--week .schedule-calendar__week-grid {
    border-radius: 0 0 12px 12px;
}

.schedule-calendar--week .schedule-calendar__day-header .schedule-calendar__day-name {
    display: none;
}

.schedule-calendar__week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #E2E5EA;
    border-radius: 12px;
    overflow: hidden;
}

.schedule-calendar__day-column {
    min-height: 11rem;
    border-right: 1px solid #E2E5EA;
    border-bottom: 1px solid #E2E5EA;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.03));
    display: flex;
    flex-direction: column;
    transition: background 0.15s ease;
}

.schedule-calendar__day-column:nth-child(7n) {
    border-right: none;
}

.schedule-calendar__day-column.is-weekend {
    background: #F5F6F8;
}

.schedule-calendar__day-column.is-today {
    background: color-mix(in srgb, var(--brand-orange) 6%, #fff);
}

.schedule-calendar__day-column.is-selected {
    background: color-mix(in srgb, var(--brand-orange) 5%, #fff);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand-orange) 28%, transparent);
}

.schedule-calendar__day-column:hover {
    background: color-mix(in srgb, var(--foreground) 3%, #fff);
}

.schedule-calendar__day-column.is-weekend:hover {
    background: #EFF1F4;
}

.schedule-calendar__day-column.is-today:hover {
    background: color-mix(in srgb, var(--brand-orange) 8%, #fff);
}

.schedule-calendar__day-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid #E2E5EA;
    font-size: 0.8125rem;
    font-weight: 700;
}

.schedule-calendar__day-header-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.schedule-calendar__day-number,
.schedule-calendar__month-day {
    font-size: 0.875rem;
}

.schedule-calendar__today-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-orange);
}

.schedule-calendar__day-events {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.5rem;
    flex: 1;
}

.schedule-calendar__empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
    min-height: 6rem;
}

.schedule-calendar__empty-title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
}

.schedule-calendar__empty-text {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: color-mix(in srgb, var(--text-muted) 85%, transparent);
    line-height: 1.4;
}

.schedule-calendar__event {
    display: none;
}

/* Calendar event chips + popover */
.schedule-cal-event {
    position: relative;
    min-width: 0;
}

.schedule-cal-event.is-dragging {
    opacity: 0.55;
}

.schedule-cal-event__trigger {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    width: 100%;
    text-align: left;
    border: 1px solid #E2E5EA;
    border-left-width: 3px;
    border-radius: 8px;
    padding: 0.4rem 0.45rem;
    background: var(--card, #fff);
    color: inherit;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.schedule-cal-event__trigger:hover,
.schedule-cal-event.is-popover-open .schedule-cal-event__trigger {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.schedule-cal-event__trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.schedule-cal-event__trigger--scheduled { border-left-color: var(--info); }
.schedule-cal-event__trigger--progress,
.schedule-cal-event__trigger--overdue { border-left-color: var(--brand-orange); }
.schedule-cal-event__trigger--completed { border-left-color: #22c55e; }
.schedule-cal-event__trigger--cancelled,
.schedule-cal-event__trigger--missed { border-left-color: var(--danger, #e55353); }
.schedule-cal-event__trigger--muted { border-left-color: var(--text-muted); }

.schedule-cal-event__line1 {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    width: 100%;
}

.schedule-cal-event__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.schedule-cal-event__dot--scheduled { background: var(--info); }
.schedule-cal-event__dot--progress,
.schedule-cal-event__dot--overdue { background: var(--brand-orange); }
.schedule-cal-event__dot--completed { background: #22c55e; }
.schedule-cal-event__dot--cancelled,
.schedule-cal-event__dot--missed { background: var(--danger, #e55353); }
.schedule-cal-event__dot--muted { background: var(--text-muted); }

.schedule-cal-event__time {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--foreground);
}

.schedule-cal-event__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
}

.schedule-cal-event__meta {
    padding-left: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.schedule-cal-event--compact .schedule-cal-event__trigger {
    border: none;
    border-left: 2px solid transparent;
    border-radius: 4px;
    padding: 0.12rem 0.2rem;
    background: transparent;
    box-shadow: none;
}

.schedule-cal-event--compact .schedule-cal-event__trigger:hover,
.schedule-cal-event--compact.is-popover-open .schedule-cal-event__trigger {
    background: color-mix(in srgb, var(--foreground) 5%, transparent);
    transform: none;
    box-shadow: none;
}

.schedule-cal-event--compact .schedule-cal-event__trigger--scheduled { border-left-color: var(--info); }
.schedule-cal-event--compact .schedule-cal-event__trigger--progress,
.schedule-cal-event--compact .schedule-cal-event__trigger--overdue { border-left-color: var(--brand-orange); }
.schedule-cal-event--compact .schedule-cal-event__trigger--completed { border-left-color: #22c55e; }
.schedule-cal-event--compact .schedule-cal-event__trigger--cancelled,
.schedule-cal-event--compact .schedule-cal-event__trigger--missed { border-left-color: var(--danger, #e55353); }

.schedule-cal-event--compact .schedule-cal-event__meta {
    display: none;
}

.schedule-cal-event__popover {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 30;
    min-width: 13rem;
    max-width: 16rem;
    padding: 0.65rem 0.75rem;
    background: var(--card, #fff);
    border: 1px solid #E2E5EA;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.schedule-cal-event__popover-list {
    margin: 0;
}

.schedule-cal-event__popover-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.35rem;
}

.schedule-cal-event__popover-row dt {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.schedule-cal-event__popover-row dd {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.schedule-cal-event__popover-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid #E2E5EA;
}

.schedule-cal-event__popover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: none;
    background: transparent;
    cursor: default;
}

.schedule-calendar__day-column.is-drop-target,
.schedule-calendar__month-cell-wrap.is-drop-target {
    outline: 2px dashed var(--brand-orange);
    outline-offset: -2px;
    background: color-mix(in srgb, var(--brand-orange) 8%, transparent);
}

.schedule-calendar__slot-hint {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    color: color-mix(in srgb, var(--text-muted) 80%, transparent);
}

.schedule-calendar__day-header-btn {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.schedule-calendar__weekday-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 0;
    border: 1px solid #E2E5EA;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #FAFBFC;
}

.schedule-calendar__weekday {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.55rem 0.35rem;
    border-right: 1px solid #E2E5EA;
}

.schedule-calendar__weekday:last-child {
    border-right: none;
}

.schedule-calendar__month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #E2E5EA;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.schedule-calendar__month-cell-wrap {
    min-height: 6.5rem;
    border-right: 1px solid #E2E5EA;
    border-bottom: 1px solid #E2E5EA;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.03));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    transition: background 0.15s ease;
}

.schedule-calendar__month-cell-wrap:nth-child(7n) {
    border-right: none;
}

.schedule-calendar__month-cell-wrap.is-outside {
    background: #F5F6F8;
    opacity: 0.72;
}

.schedule-calendar__month-cell-wrap.is-weekend:not(.is-outside) {
    background: #F5F6F8;
}

.schedule-calendar__month-cell-wrap.is-today {
    background: color-mix(in srgb, var(--brand-orange) 6%, #fff);
}

.schedule-calendar__month-cell-wrap.is-selected {
    background: color-mix(in srgb, var(--brand-orange) 5%, #fff);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand-orange) 28%, transparent);
}

.schedule-calendar__month-cell-wrap:hover {
    background: color-mix(in srgb, var(--foreground) 3%, #fff);
}

.schedule-calendar__month-cell {
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    padding: 0.4rem 0.45rem 0;
    text-align: left;
    cursor: pointer;
}

.schedule-calendar__month-events {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    padding: 0 0.25rem 0.35rem;
}

.schedule-calendar__month-more {
    border: none;
    background: transparent;
    padding: 0.1rem 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--brand-orange);
    text-align: left;
    cursor: pointer;
}

.schedule-calendar__month-more:hover {
    text-decoration: underline;
}

.schedule-day-detail,
.schedule-edit-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.schedule-day-detail__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.schedule-edit-panel {
    padding: 1rem 1.25rem;
    margin: 0;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--foreground) 2%, transparent);
}

.schedule-edit-panel__meta {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ---------- Bulk panel ---------- */
.schedule-bulk__intro {
    margin: 0 0 0.85rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.schedule-bulk__filters {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(16rem, 2fr);
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.schedule-bulk__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.schedule-bulk__list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    max-height: 16rem;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.schedule-bulk__item {
    border-bottom: 1px solid var(--border);
}

.schedule-bulk__item:last-child {
    border-bottom: none;
}

.schedule-bulk__item label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
}

.schedule-bulk__item.is-selected {
    background: color-mix(in srgb, var(--brand-orange) 8%, transparent);
}

.schedule-bulk__operator {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.schedule-bulk__meta {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.schedule-bulk__empty {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

/* ---------- Empty states ---------- */
.schedule-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    min-height: 12rem;
}

.schedule-empty__icon {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.schedule-empty__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.schedule-empty__text {
    margin: 0.4rem 0 0;
    max-width: 24rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.schedule-workload {
    width: 100%;
    border-collapse: collapse;
}

.schedule-workload th,
.schedule-workload td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.schedule-workload thead th {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--foreground) 3%, transparent);
}

.schedule-workload__warn {
    color: var(--danger, #e55353);
    font-weight: 700;
}

.employee-schedules__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.employee-schedules__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.employee-schedules__item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.employee-schedules__item:last-child {
    border-bottom: none;
}

.employee-schedules__when {
    margin: 0;
    font-weight: 700;
}

.employee-schedules__meta,
.employee-schedules__notes,
.employee-schedules__empty {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 1180px) {
    .schedule-form__row--primary,
    .schedule-form__row--secondary {
        grid-template-columns: 1fr 1fr;
    }

    .schedule-form__field--operator {
        grid-column: 1 / -1;
    }

    .schedule-toolbar__row--route {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-toolbar__nav {
        margin-left: auto;
    }
}

@media (max-width: 820px) {
    .schedule-calendar__week-grid {
        grid-template-columns: 1fr;
    }

    .schedule-calendar__day-column {
        border-right: none;
    }

    .schedule-calendar-card__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-toolbar {
        width: 100%;
    }

    .schedule-event-card__main {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-event-card__actions {
        justify-content: flex-end;
    }

    .schedule-form__row--primary,
    .schedule-form__row--secondary {
        grid-template-columns: 1fr;
    }
}

.dashboard-recent__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-recent__view-all {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-orange);
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-recent__view-all:hover,
.dashboard-recent__view-all:focus-visible {
    text-decoration: underline;
}

.dashboard-recent__heading {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--brand-charcoal);
    letter-spacing: -0.02em;
}

.dashboard-schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-schedule-list__item {
    margin: 0;
}

.dashboard-schedule-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 7.5rem 4.5rem 6.75rem;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-card);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.dashboard-schedule-row:hover,
.dashboard-schedule-row:focus-visible {
    border-color: var(--border-strong);
    background: #fafbfc;
}

.dashboard-schedule-row--readonly {
    cursor: default;
}

.dashboard-schedule-row--readonly:hover,
.dashboard-schedule-row--readonly:focus-visible {
    border-color: var(--border-color);
    background: var(--surface-card);
}

.dashboard-schedule-row__main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.dashboard-schedule-row__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-schedule-row__meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-schedule-row__date,
.dashboard-schedule-row__time {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* dashboard-schedule-pill → levelup-components.css (.chip bridges) */

.dashboard-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-recent-list__item {
    margin: 0;
}

.dashboard-recent-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 7.5rem 6.75rem auto;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-card);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.dashboard-recent-row:hover,
.dashboard-recent-row:focus-visible {
    border-color: var(--border-strong);
    background: #fafbfc;
}

.dashboard-recent-row--static {
    cursor: default;
}

.dashboard-recent-row--static:hover,
.dashboard-recent-row--static:focus-visible {
    border-color: var(--border-color);
    box-shadow: var(--shadow-xs);
}

.dashboard-recent-row__icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.dashboard-recent-row__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.dashboard-recent-row__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-recent-row__meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-recent-row__progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    min-width: 0;
}

.dashboard-recent-row__progress-track {
    display: block;
    width: 100%;
    max-width: 5.5rem;
    height: 0.35rem;
    border-radius: 999px;
    background: var(--surface-muted);
    overflow: hidden;
}

.dashboard-recent-row__progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-orange);
}

.dashboard-recent-row__progress-fill--low {
    background: linear-gradient(90deg, var(--semantic-fail) 0%, var(--semantic-fail-600) 100%);
}

.dashboard-recent-row__progress-fill--medium {
    background: linear-gradient(90deg, var(--warning) 0%, #d4a017 100%);
}

.dashboard-recent-row__progress-fill--high {
    background: linear-gradient(90deg, var(--semantic-pass) 0%, #1aa861 100%);
}

.dashboard-recent-row__progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.dashboard-recent-row__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    justify-self: end;
}

.dashboard-recent-row__badge--empty {
    visibility: hidden;
}

.dashboard-recent-row__score {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

/* dashboard-recent-row__badge chips: levelup-components.css */

.dashboard-recent-row__chevron {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.dashboard-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1.25rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    text-align: center;
}

.dashboard-empty__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    color: var(--text-secondary);
}

.dashboard-empty__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-empty__text {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dashboard-empty__cta {
    min-width: 10rem;
}

/* Shared empty state (generic version of .dashboard-empty) */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1.25rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    text-align: center;
}

.empty-state__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    color: var(--text-secondary);
}

.empty-state__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.empty-state__text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

/* Load failure card with retry */
.load-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(217, 45, 57, 0.35);
    border-radius: 0.65rem;
    background: var(--danger-soft);
}

.load-error__text {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-stat-card {
    position: relative;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 6.5rem;
    padding: 1.15rem 1.2rem;
    text-align: left;
}

.dashboard-stat-card__icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    color: var(--text-secondary);
}

.dashboard-stat-card__icon--neutral {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

.dashboard-stat-card--progress .dashboard-stat-card__icon {
    background: rgba(255, 106, 0, 0.1);
    color: var(--brand-orange);
}

.dashboard-stat-card--completed .dashboard-stat-card__icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--semantic-pass);
}

.dashboard-stat-card--operators .dashboard-stat-card__value {
    color: var(--brand-charcoal);
}

.dashboard-stat-card--operators .dashboard-stat-card__icon {
    background: var(--info-soft);
    color: var(--info);
}

.dashboard-stat-card__value {
    font-size: clamp(1.875rem, 2.2vw, 2.125rem);
    font-weight: 600;
    line-height: 1;
    color: var(--brand-charcoal);
    letter-spacing: -0.03em;
}

.dashboard-stat-card__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.dashboard-stat-card--progress .dashboard-stat-card__value {
    color: var(--brand-orange);
}

.dashboard-stat-card--completed .dashboard-stat-card__value {
    color: var(--semantic-pass);
}

.dashboard-stat-card__hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

.dashboard-grid {
    display: grid;
    gap: var(--dashboard-widget-gap);
    align-items: start;
}

.dashboard-grid__main,
.dashboard-grid__sidebar,
.dashboard-grid__quick-actions,
.dashboard-grid__sync,
.dashboard-grid__upcoming,
.dashboard-grid__recent {
    display: flex;
    flex-direction: column;
    gap: var(--dashboard-widget-gap);
    min-width: 0;
}

.dashboard-grid__sidebar {
    align-self: stretch;
}

.dashboard-sidebar-panel {
    padding: 20px;
}

.dashboard-sidebar-panel__title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-sidebar-panel__admin-link {
    display: inline-flex;
    margin-top: 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
}

.dashboard-sidebar-panel__admin-link:hover,
.dashboard-sidebar-panel__admin-link:focus-visible {
    color: var(--brand-orange);
    text-decoration: underline;
}

.dashboard-sync-panel {
    padding: 20px;
}

.dashboard-sync-panel__status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.dashboard-sync-panel__server-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-muted);
}

.dashboard-sync-panel__server-dot--connected {
    background: var(--status-dot-online);
}

.dashboard-sync-panel__server-dot--unavailable,
.dashboard-sync-panel__server-dot--offline {
    background: var(--status-dot-unavailable);
}

.dashboard-sync-panel__server-dot--checking {
    background: var(--brand-orange);
    animation: server-status-pulse 1.1s ease-in-out infinite;
}

.dashboard-sync-panel__server-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-sync-panel__meta {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.dashboard-sync-panel__meta--warning {
    color: var(--color-warning, #d97706);
    font-weight: 600;
}

.dashboard-sync-panel__link {
    display: inline-flex;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
}

.dashboard-sync-panel__link:hover,
.dashboard-sync-panel__link:focus-visible {
    color: var(--brand-orange);
}

.dashboard-sync-panel__loading {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.dashboard-upcoming.glass-panel,
.dashboard-recent.glass-panel {
    padding: 0;
    border-radius: 14px;
    border-color: color-mix(in srgb, var(--border) 88%, transparent);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.quick-actions__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 4.75rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-card);
    color: var(--brand-charcoal);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.quick-actions__btn:hover:not(:disabled),
.quick-actions__btn:focus-visible {
    background: #fafbfc;
    border-color: rgba(255, 106, 0, 0.28);
    color: var(--brand-charcoal);
    outline: none;
}

.quick-actions__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quick-actions__btn--span {
    grid-column: 1 / -1;
}

.hub-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

/* page-header / hub-page__header: levelup-components.css */

.hub-section.glass-panel {
    padding: var(--card-body-padding);
}

.dashboard-page-skeleton .dashboard-stat-card--skeleton,
.dashboard-recent-row--skeleton {
    pointer-events: none;
}

.skeleton-box--dashboard-new-btn {
    width: 8.5rem;
    height: 2.25rem;
    border-radius: var(--radius-pill);
}

.skeleton-box--recent-progress {
    width: 5.5rem;
    height: 1.25rem;
    border-radius: var(--radius-sm);
}

.skeleton-box--sync-status {
    width: 100%;
    height: 4.5rem;
    border-radius: var(--radius-sm);
}

.skeleton-box--quick-actions {
    width: 100%;
    height: 10rem;
    border-radius: var(--radius-md);
}

.skeleton-box--stat-value {
    width: 2.5rem;
    height: 2rem;
    border-radius: var(--radius-sm);
}

.skeleton-box--stat-label {
    width: 5.5rem;
    height: 0.75rem;
    border-radius: var(--radius-sm);
}

.skeleton-box--section-heading {
    width: 5rem;
    height: 1.25rem;
    border-radius: var(--radius-sm);
}

.skeleton-box--recent-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
}

.skeleton-box--recent-name {
    width: 9rem;
    height: 0.9rem;
    border-radius: var(--radius-sm);
}

.skeleton-box--recent-meta {
    width: 12rem;
    height: 0.75rem;
    border-radius: var(--radius-sm);
}

.skeleton-box--recent-score {
    width: 3rem;
    height: 0.9rem;
    border-radius: var(--radius-sm);
}

.skeleton-box--recent-badge {
    width: 5.5rem;
    height: 1.5rem;
    border-radius: var(--radius-pill);
}

.skeleton-box--recent-chevron {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: var(--radius-sm);
}

@media (max-width: 819px) {
    .dashboard-page__header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-page__header .page-actions {
        justify-content: space-between;
    }

    .dashboard-schedule-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "main main"
            "date status"
            "time status";
        row-gap: 0.35rem;
    }

    .dashboard-schedule-row__main { grid-area: main; }
    .dashboard-schedule-row__date { grid-area: date; }
    .dashboard-schedule-row__time { grid-area: time; }
    .dashboard-schedule-row__status { grid-area: status; justify-self: end; align-self: center; }

    .dashboard-recent-row {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "icon body"
            "progress progress"
            "badge chevron";
        row-gap: 0.55rem;
    }

    .dashboard-recent-row__icon {
        grid-area: icon;
        align-self: start;
    }

    .dashboard-recent-row__body {
        grid-area: body;
    }

    .dashboard-recent-row__progress {
        grid-area: progress;
        flex-direction: row;
        align-items: center;
        gap: 0.65rem;
    }

    .dashboard-recent-row__progress-track {
        max-width: none;
        flex: 1;
    }

    .dashboard-recent-row__badge {
        grid-area: badge;
        justify-self: start;
    }

    .dashboard-recent-row__chevron {
        grid-area: chevron;
        justify-self: end;
    }
}

@media (min-width: 820px) {
    .dashboard-stat-card {
        min-height: 6.25rem;
        padding: 1.25rem 1.2rem;
    }

    .dashboard-recent-list,
    .dashboard-schedule-list {
        gap: 0.65rem;
    }

    .dashboard-recent-row,
    .dashboard-schedule-row {
        padding: 0.9rem 1rem;
    }
}

