.dashboard-grid > .nearest-schedule-panel {
    container: local-flying / inline-size;
    min-width: 0;
    padding: 0;
}

.nearest-schedule-panel .local-flying-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
    background: var(--byp-blue-50);
    border-bottom: 1px solid var(--byp-line);
}

.nearest-schedule-panel .local-flying-details { min-width: 0; }
.nearest-schedule-panel .local-flying-caption { margin: 12px 0 4px; font-size: .875rem; }
.nearest-schedule-panel .local-flying-name { margin: 0; font-size: 1.35rem; line-height: 1.3; overflow-wrap: anywhere; letter-spacing: 0; }
.nearest-schedule-panel .local-flying-description { margin: 12px 0 0; color: var(--byp-muted); font-size: .875rem; line-height: 1.55; }
.nearest-schedule-panel .local-flying-availability { margin: 16px 0 0; padding-left: 12px; border-left: 3px solid #d28c39; color: #864114; font-size: .8125rem; font-weight: 600; line-height: 1.5; }

.nearest-schedule-panel .local-flying-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-content: start;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.nearest-schedule-panel .button {
    min-width: 0;
    min-height: 48px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.35;
    letter-spacing: 0;
}

.nearest-schedule-panel .local-flying-actions .button { width: 100%; }
.nearest-schedule-panel .schedule-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
.nearest-schedule-panel .local-flying-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--byp-line); border-radius: 8px; background: var(--byp-blue-50); }
.nearest-schedule-panel .local-flying-scope .button { padding: 10px 8px; font-size: .8125rem; border-radius: 4px; }
.nearest-schedule-panel .schedule-pilot-filter { min-width: 0; width: 100%; margin: 0; }
.nearest-schedule-panel .schedule-pilot-filter select { min-height: 48px; font-size: 1rem; }
.nearest-schedule-panel .data-empty-state { padding: 28px 20px; min-width: 0; overflow-wrap: anywhere; }
.nearest-schedule-panel .monthly-schedule { padding: 0 20px 20px; }
.nearest-schedule-panel .monthly-schedule-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; min-height: 72px; }
.nearest-schedule-panel .monthly-schedule-row span { grid-column: 1 / -1; grid-row: 2; overflow-wrap: anywhere; }
.nearest-schedule-panel .monthly-schedule-row b { white-space: normal; }

/* Use the section's available width, including when it shares a desktop row. */
@container local-flying (min-width: 620px) {
    .nearest-schedule-panel .local-flying-heading { grid-template-columns: minmax(0, 1fr) 220px; padding: 24px; gap: 24px; }
    .nearest-schedule-panel .schedule-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 230px); padding: 20px 24px; }
    .nearest-schedule-panel .monthly-schedule { padding-inline: 24px; }
    .nearest-schedule-panel .monthly-schedule-row { grid-template-columns: 100px minmax(0, 1fr) auto; }
    .nearest-schedule-panel .monthly-schedule-row span { grid-column: auto; grid-row: auto; }
}
