/* Generated from frontend/css/pages/booking-plan.css by scripts/build_frontend.mjs. */
/*
 * Course search (templates/components/_course_search.html).
 *
 * One bar, ruled result rows, and a full-screen sheet on phones. Rows follow
 * the tee sheet: thin rules between, sage for the active row, matched letters
 * in bold. Capability words always carry a glyph; gold is never used here.
 */

.course-search {
    min-width: 0;
    position: relative;
}

.course-search .course-search__label {
    color: var(--fb-color-ink);
    display: block;
    font-size: 1rem;
    font-weight: var(--fb-font-weight-semibold);
    line-height: 1.4;
    margin: 0 0 var(--fb-space-2);
}

.course-search__anchor {
    position: relative;
}

.course-search__bar {
    align-items: center;
    display: flex;
    gap: var(--fb-space-3);
}

.course-search__field {
    align-items: center;
    background: var(--fb-color-surface);
    border: 1px solid var(--fb-color-control-border);
    border-radius: var(--fb-radius-control);
    cursor: text;
    display: flex;
    flex: 1 1 auto;
    gap: var(--fb-space-1);
    min-height: 3rem;
    min-width: 0;
    outline: 2px solid transparent;
    outline-offset: 2px;
    padding: 0 var(--fb-space-1) 0 var(--fb-space-3);
    transition: border-color var(--fb-duration-fast) var(--fb-ease-standard), box-shadow var(--fb-duration-fast) var(--fb-ease-standard);
}

.course-search__field:hover {
    border-color: var(--fb-color-ink);
}

.course-search__field:focus-within {
    border-color: var(--fb-color-evergreen);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fb-color-focus) 24%, transparent);
}

.course-search[data-state="chosen"] .course-search__field {
    border-color: var(--fb-color-evergreen);
}

.course-search__glyph {
    color: var(--fb-color-muted);
    display: flex;
    flex: none;
}

.course-search__glyph svg {
    height: 1.25rem;
    width: 1.25rem;
}

.course-search__glyph-chosen,
.course-search[data-state="chosen"] .course-search__glyph-search {
    display: none;
}

.course-search[data-state="chosen"] .course-search__glyph-chosen {
    color: var(--fb-color-success);
    display: block;
}

.course-search__field .course-search__input {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--fb-color-ink);
    flex: 1 1 auto;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    min-height: 2.75rem;
    min-width: 0;
    padding: 0 var(--fb-space-1);
    text-overflow: ellipsis;
    width: 100%;
}

.course-search__field .course-search__input::placeholder {
    color: var(--fb-color-muted);
    opacity: 1;
}

/* The field draws the focus ring for its input. */
.course-search__field .course-search__input:focus-visible {
    outline: none;
}

.course-search__field .course-search__input::selection {
    background: var(--fb-color-sage);
    color: var(--fb-color-ink);
}

.course-search__busy {
    animation: course-search-spin 700ms linear infinite;
    border: 2px solid color-mix(in srgb, var(--fb-color-evergreen) 18%, transparent);
    border-radius: 50%;
    border-top-color: var(--fb-color-evergreen);
    flex: none;
    height: 1rem;
    margin: 0 var(--fb-space-2);
    width: 1rem;
}

.course-search__busy[hidden],
.course-search__clear[hidden],
.course-search__cancel[hidden],
.course-search__hint[hidden],
.course-search__panel[hidden],
.course-search__head[hidden],
.course-search__loading[hidden],
.course-search__tip[hidden],
.course-search__more[hidden] {
    display: none;
}

.course-search__clear {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--fb-color-muted);
    cursor: pointer;
    display: inline-flex;
    flex: none;
    height: 2.75rem;
    justify-content: center;
    padding: 0;
    width: 2.75rem;
}

.course-search__clear svg {
    height: 1.125rem;
    width: 1.125rem;
}

.course-search__clear:hover {
    background: var(--fb-color-canvas-subtle);
    color: var(--fb-color-ink);
}

.course-search__key {
    border: 1px solid var(--fb-color-border-strong);
    border-radius: var(--fb-radius-sm);
    color: var(--fb-color-muted);
    display: none;
    flex: none;
    font-family: var(--fb-font-sans);
    font-size: var(--fb-text-xs);
    font-weight: var(--fb-font-weight-semibold);
    line-height: 1;
    margin-right: var(--fb-space-2);
    padding: 0.3rem 0.45rem;
}

@media (pointer: fine) and (min-width: 64rem) {
    .course-search[data-enhanced] .course-search__field:not(:focus-within):has(.course-search__input:placeholder-shown) .course-search__key {
        display: inline-block;
    }
}

.course-search__submit {
    background: var(--fb-color-evergreen);
    border: 0;
    border-radius: var(--fb-radius-control);
    color: var(--fb-color-on-night);
    cursor: pointer;
    flex: none;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: var(--fb-font-weight-semibold);
    min-height: 2.5rem;
    padding: 0 var(--fb-space-5);
    transition: background-color var(--fb-duration-fast) var(--fb-ease-standard);
}

.course-search__submit:hover {
    background: var(--fb-color-evergreen-hover);
}

.course-search__submit:focus-visible {
    outline: 3px solid var(--fb-color-focus);
    outline-offset: 2px;
}

.course-search__cancel {
    background: transparent;
    border: 0;
    color: var(--fb-color-evergreen);
    cursor: pointer;
    flex: none;
    font: inherit;
    font-size: 1rem;
    font-weight: var(--fb-font-weight-semibold);
    min-height: 2.75rem;
    padding: 0 var(--fb-space-1);
}

.course-search__hint {
    color: var(--fb-color-ink);
    font-size: var(--fb-text-sm);
    line-height: 1.5;
    margin: var(--fb-space-2) 0 0;
    overflow-wrap: anywhere;
}

.course-search__help {
    color: var(--fb-color-muted);
    font-size: var(--fb-text-sm);
    line-height: 1.5;
    margin: var(--fb-space-2) 0 0;
}

/* Floating results: one panel under the bar, ruled like a tee sheet, with the
   heavy ink rule along its square top edge. */
.course-search__panel {
    animation: course-search-reveal var(--fb-duration-fast) var(--fb-ease-standard);
    background: var(--fb-color-surface);
    border: 1px solid var(--fb-color-border);
    border-radius: 0 0 var(--fb-radius-panel) var(--fb-radius-panel);
    border-top: 2px solid var(--fb-color-rule-heavy);
    box-shadow: var(--fb-shadow-float);
    container: course-search / inline-size;
    left: 0;
    margin-top: var(--fb-space-2);
    max-height: min(32rem, var(--course-search-room, 32rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 40;
}

.course-search__head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: var(--fb-space-1) var(--fb-space-2) 0 var(--fb-space-4);
}

.course-search__head-label,
.course-search__group-label {
    color: var(--fb-color-muted);
    font-size: var(--fb-text-sm);
    font-weight: var(--fb-font-weight-semibold);
    line-height: 1.4;
}

.course-search__head-action {
    background: transparent;
    border: 0;
    color: var(--fb-color-evergreen);
    cursor: pointer;
    font: inherit;
    font-size: var(--fb-text-sm);
    font-weight: var(--fb-font-weight-semibold);
    min-height: 2.75rem;
    padding: 0 var(--fb-space-2);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.course-search__options,
.course-search__group-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.course-search__options {
    transition: opacity var(--fb-duration-fast) var(--fb-ease-standard);
}

/* Rows narrowed in the browser, or the last miss, while the server answers.
   The rows stay choosable, so the dim keeps muted text above 4.5:1. */
.course-search__options.is-provisional,
.course-search__panel.is-pending .course-search__empty {
    opacity: 0.85;
}

.course-search__group + .course-search__group {
    border-top: 1px solid var(--fb-color-border);
}

.course-search__group-label {
    color: var(--fb-color-ink);
    display: block;
    padding: var(--fb-space-3) var(--fb-space-4) var(--fb-space-1);
}

.course-search__option {
    align-items: center;
    column-gap: var(--fb-space-4);
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 1.125rem;
    min-height: 3.5rem;
    padding: var(--fb-space-3) var(--fb-space-4);
    position: relative;
    transition: background-color var(--fb-duration-fast) var(--fb-ease-standard);
}

.course-search__option + .course-search__option {
    border-top: 1px solid var(--fb-color-border);
}

.course-search__option:hover,
.course-search__option[aria-selected="true"] {
    background: var(--fb-color-sage);
}

.course-search__text {
    display: grid;
    gap: 0.125rem;
    min-width: 0;
}

.course-search__name {
    color: var(--fb-color-ink);
    font-size: 1rem;
    font-weight: var(--fb-font-weight-medium);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.course-search__match {
    background: transparent;
    color: inherit;
    font-weight: var(--fb-font-weight-bold);
}

.course-search__meta {
    color: var(--fb-color-muted);
    font-size: var(--fb-text-sm);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* The separator ends a line rather than starting the next one. */
.course-search__meta > span:not(:last-child)::after {
    color: var(--fb-color-border-strong);
    content: "\00a0\00b7\0020";
    font-weight: var(--fb-font-weight-regular);
}

.course-search__layout {
    color: var(--fb-color-ink);
    font-weight: var(--fb-font-weight-medium);
}

.course-search__fit {
    align-items: center;
    color: var(--fb-color-muted);
    display: inline-flex;
    font-size: var(--fb-text-sm);
    font-weight: var(--fb-font-weight-medium);
    gap: 0.375rem;
    line-height: 1.3;
    white-space: nowrap;
}

.course-search__fit[data-tone="ready"] {
    color: var(--fb-color-success);
}

.course-search__fit-icon,
.course-search__go {
    fill: none;
    flex: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.course-search__fit-icon {
    height: 1rem;
    stroke-width: 2;
    width: 1rem;
}

.course-search__go {
    color: var(--fb-color-muted);
    height: 1.125rem;
    stroke-width: 1.8;
    transition: transform var(--fb-duration-fast) var(--fb-ease-standard), color var(--fb-duration-fast) var(--fb-ease-standard);
    width: 1.125rem;
}

.course-search__option:hover .course-search__go,
.course-search__option[aria-selected="true"] .course-search__go {
    color: var(--fb-color-evergreen);
    transform: translateX(2px);
}

.course-search__option[data-opening] .course-search__fit,
.course-search__option[data-opening] .course-search__go {
    display: none;
}

.course-search__opening {
    color: var(--fb-color-evergreen);
    font-size: var(--fb-text-sm);
    font-weight: var(--fb-font-weight-semibold);
    grid-column: 2 / -1;
    white-space: nowrap;
}

.course-search__loading,
.course-search__tip,
.course-search__more,
.course-search__note {
    color: var(--fb-color-muted);
    font-size: var(--fb-text-sm);
    line-height: 1.5;
    margin: 0;
    padding: var(--fb-space-3) var(--fb-space-4);
}

.course-search__more,
.course-search__note {
    border-top: 1px solid var(--fb-color-border);
}

.course-search__options:empty + .course-search__tip,
.course-search__options:empty ~ .course-search__note {
    border-top: 0;
}

/* The page's own "not listed" block, shown inside the panel on a miss. */
.course-search__empty {
    border-top: 1px solid var(--fb-color-border);
    transition: opacity var(--fb-duration-fast) var(--fb-ease-standard);
    display: grid;
    gap: var(--fb-space-3);
    justify-items: start;
    padding: var(--fb-space-4);
}

.course-search__options:empty + .course-search__empty,
.course-search__options:empty ~ .course-search__empty {
    border-top: 0;
}

.course-search__empty[hidden] {
    display: none;
}

.course-search__empty p {
    color: var(--fb-color-ink);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

.course-search__empty strong {
    display: block;
    overflow-wrap: anywhere;
}

/* A narrow panel puts the capability under the place, keeping the name whole. */
@container course-search (max-width: 30rem) {
    .course-search__option {
        grid-template-columns: minmax(0, 1fr) 1.125rem;
        row-gap: var(--fb-space-1);
    }

    .course-search__fit {
        grid-column: 1;
        grid-row: 2;
        white-space: normal;
    }

    .course-search__go {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .course-search__opening {
        grid-column: 1;
        grid-row: 2;
    }
}

.course-search__sr {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Sizes: "large" leads a page (home hero, course check, results page). */
.course-search--large .course-search__field {
    min-height: 3.75rem;
    padding-left: var(--fb-space-4);
}

.course-search--large .course-search__field .course-search__input {
    font-size: 1.125rem;
}

.course-search--large .course-search__glyph svg {
    height: 1.375rem;
    width: 1.375rem;
}

.course-search--large .course-search__submit {
    min-height: 3rem;
    padding: 0 var(--fb-space-6);
}

/* Phones: the bar reads as a search field; tapping it opens the sheet. */
@media (max-width: 47.9375rem) {
    .course-search[data-enhanced] .course-search__submit {
        display: none;
    }

    .course-search__field {
        padding-right: var(--fb-space-1);
    }

    .course-search.is-sheet .course-search__anchor {
        animation: course-search-sheet 180ms var(--fb-ease-standard);
        background: var(--fb-color-canvas);
        display: flex;
        flex-direction: column;
        height: var(--course-search-sheet-height, 100dvh);
        left: 0;
        padding: calc(var(--fb-safe-top) + var(--fb-space-3)) calc(var(--fb-safe-right) + var(--fb-space-4)) 0 calc(var(--fb-safe-left) + var(--fb-space-4));
        position: fixed;
        right: 0;
        top: var(--course-search-sheet-top, 0);

        /* Full screen, like a dialog: above the cookie bar and the push or
           install cards (1190–1200), which return when it closes; below the
           sign-in page's full-screen install prompt (1300). */
        z-index: 1210;
    }

    .course-search.is-sheet .course-search__bar {
        flex: none;
    }

    .course-search.is-sheet .course-search__hint {
        flex: none;
    }

    .course-search.is-sheet .course-search__panel {
        animation: none;
        background: transparent;
        border: 0;
        border-radius: 0;
        border-top: 2px solid var(--fb-color-rule-heavy);
        box-shadow: none;
        flex: 1 1 auto;
        margin: var(--fb-space-3) calc(-1 * (var(--fb-safe-right) + var(--fb-space-4))) 0 calc(-1 * (var(--fb-safe-left) + var(--fb-space-4)));
        max-height: none;
        padding-bottom: var(--fb-safe-bottom);
        position: static;
    }

    .course-search.is-sheet .course-search__option {
        min-height: 4rem;
        padding-left: calc(var(--fb-safe-left) + var(--fb-space-4));
        padding-right: calc(var(--fb-safe-right) + var(--fb-space-4));
    }

    .course-search.is-sheet .course-search__option:hover {
        background: transparent;
    }

    .course-search.is-sheet .course-search__option:active,
    .course-search.is-sheet .course-search__option[aria-selected="true"] {
        background: var(--fb-color-sage);
    }

    .course-search__option + .course-search__option,
    .course-search.is-sheet .course-search__group,
    .course-search.is-sheet .course-search__more,
    .course-search.is-sheet .course-search__note {
        border-color: var(--fb-color-border);
    }

    .course-search.is-sheet .course-search__tip {
        font-size: 1rem;
        padding-top: var(--fb-space-5);
    }

    .course-search.is-sheet .course-search__empty {
        padding-left: calc(var(--fb-safe-left) + var(--fb-space-4));
        padding-right: calc(var(--fb-safe-right) + var(--fb-space-4));
    }
}

html.course-search-sheet-open,
html.course-search-sheet-open body {
    overflow: hidden;
}

@keyframes course-search-reveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

@keyframes course-search-sheet {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

@keyframes course-search-spin {
    to {
        transform: rotate(1turn);
    }
}

@media (prefers-reduced-motion: reduce) {
    .course-search__panel,
    .course-search.is-sheet .course-search__anchor {
        animation: none;
    }

    .course-search__busy {
        animation: none;
        border-color: var(--fb-color-evergreen);
        border-right-color: transparent;
    }

    .course-search__go,
    .course-search__option,
    .course-search__options,
    .course-search__field {
        transition: none;
    }

    .course-search__option:hover .course-search__go,
    .course-search__option[aria-selected="true"] .course-search__go {
        transform: none;
    }
}

@media (forced-colors: active) {
    .course-search__field:focus-within {
        outline-color: Highlight;
    }

    .course-search__option[aria-selected="true"] {
        outline: 2px solid Highlight;
        outline-offset: -2px;
    }

    .course-search__match {
        text-decoration: underline;
    }
}/* Native details keeps its keyboard and focus behavior. Older browsers retain
   the same disclosure without motion when intrinsic-size transitions are absent. */
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    @media (prefers-reduced-motion: no-preference) {
        .landing-faq__list details,
        .plan-partner-disclosure {
            interpolate-size: allow-keywords;
        }

        .landing-faq__list details::details-content,
        .plan-partner-disclosure::details-content {
            block-size: 0;
            opacity: 0;
            overflow: clip;

            /* Exclude closing inputs from Tab order before geometry settles. */
            visibility: hidden;
            transition:
                block-size var(--fb-duration-normal) var(--fb-ease-standard),
                opacity var(--fb-duration-fast) var(--fb-ease-standard),
                content-visibility var(--fb-duration-normal) allow-discrete;
        }

        .landing-faq__list details[open]::details-content,
        .plan-partner-disclosure[open]::details-content {
            block-size: auto;
            opacity: 1;
            visibility: visible;
        }
    }
}

.plan-frame { width: min(1160px, 100%); margin: 0 auto; padding: 28px 24px 60px; }
.plan-heading { max-width: 700px; margin-bottom: 36px; }
.plan-summary-label { color: var(--fb-color-evergreen); font-size: var(--fb-text-sm); font-weight: 700; }
.plan-heading h1 { margin: 14px 0 20px; font-family: var(--fb-font-display); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.06; font-weight: var(--fb-display-weight); font-stretch: var(--fb-display-stretch); letter-spacing: var(--fb-display-tracking); }
.plan-heading h1 em { color: var(--fb-color-evergreen); font-weight: 400; }
.plan-heading > p:last-child { max-width: 620px; color: var(--fb-color-muted); font-size: 1.0625rem; line-height: 1.7; }
.plan-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 28px; }

/* Keep text contrast stable as autosave enables and disables the actions. */
.plan-layout .fb-button { transition: none; }
.plan-editor { min-width: 0; padding: 30px; background: var(--fb-color-surface); border: 1px solid var(--fb-color-border); border-radius: var(--fb-radius-panel); }
.plan-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.plan-section-title h2 { margin: 0; font-size: 1.2rem; }
.plan-section-title--group { margin-top: 32px; }
.plan-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.plan-section-title + .plan-fields { margin-top: 0; margin-bottom: 24px; }
.plan-timing { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 28px; }
.plan-timing__icon { color: var(--fb-color-evergreen); margin-top: 1px; }
.plan-timing h3 { font-size: 1rem; line-height: 1.4; margin: 0 0 6px; }
.plan-timing p { color: var(--fb-color-muted); font-size: .875rem; line-height: 1.6; margin: 0; }
.plan-fields > *, .plan-editor .fb-field, .plan-summary { min-width: 0; }
.plan-editor input, .plan-editor select { width: 100%; max-width: 100%; min-width: 0; min-height: 48px; }
.plan-editor .fb-field__control[readonly] { color: var(--fb-color-ink); }
.plan-editor select { overflow: hidden; text-overflow: ellipsis; }
.plan-window { min-width: 0; border: 0; margin: 28px 0 0; padding: 0; }
.plan-window legend { font-weight: 600; }
.plan-window > p { color: var(--fb-color-muted); margin: 8px 0 0; font-size: .875rem; }
.plan-window .plan-fields { margin-top: 14px; }
.plan-partners { margin-top: 20px; display: grid; gap: 16px; }
.plan-optional { color: var(--fb-color-muted); font-size: .75rem; font-weight: 400; }
.plan-save-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--fb-color-border); margin-top: 28px; padding-top: 22px; }
.plan-save-row span { color: var(--fb-color-muted); font-size: .8125rem; }
.plan-summary { position: sticky; top: 24px; border: 1px solid var(--fb-color-border); border-radius: var(--fb-radius-panel); padding: 30px; background: var(--fb-color-sage); }
.plan-summary-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.plan-draft-badge { border: 1px solid var(--fb-color-on-night-muted); color: var(--fb-color-evergreen); padding: 5px 8px; border-radius: var(--fb-radius-sm); font-size: 0.75rem; }
.plan-summary h2 { font-family: var(--fb-font-display); font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.15; margin: 28px 0 18px; font-weight: var(--fb-display-weight); font-stretch: var(--fb-display-stretch); letter-spacing: var(--fb-display-tracking); }
.plan-preview-course { font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.plan-preview-time { display: flex; flex-direction: column; gap: 8px; margin: 28px 0; }
.plan-preview-time strong { font-family: var(--fb-font-display); font-size: 3rem; font-weight: var(--fb-display-weight); font-stretch: var(--fb-display-stretch); letter-spacing: var(--fb-display-tracking); }
.plan-preview-time span { font-size: .875rem; color: var(--fb-color-muted); }
.plan-preview-details { margin: 0; display: grid; gap: 18px; }
.plan-preview-details > div { display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px; border-bottom: 1px solid var(--fb-color-border); padding-bottom: 15px; font-size: .8125rem; line-height: 1.5; }
.plan-preview-details dt { color: var(--fb-color-muted); }
.plan-preview-details dd { margin: 0; text-align: right; font-weight: 600; }
.plan-release-note, .plan-next-step p, .plan-footnote { color: var(--fb-color-muted); font-size: .8125rem; line-height: 1.65; }
.plan-release-note { margin: 18px 0 26px; }
.plan-next-step { border-top: 1px solid var(--fb-color-border); padding-top: 22px; }
.plan-next-step h3 { font-size: 1.0625rem; margin: 10px 0; }
.plan-next-step p a { color: var(--fb-color-evergreen); text-underline-offset: .2em; }
.plan-continue { width: 100%; margin-top: 16px; white-space: normal; text-align: center; }
.plan-footnote { text-align: center; font-size: 0.75rem; margin-bottom: 0; }
.plan-notice { padding: 16px 20px; background: var(--fb-color-sage); border: 1px solid var(--fb-color-border); border-radius: var(--fb-radius-panel); margin-bottom: 24px; line-height: 1.6; }
.plan-notice--error { background: var(--fb-color-danger-bg); color: var(--fb-color-danger); border-color: var(--fb-color-danger); }
.plan-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0 0 28px; list-style: none; }
.plan-progress li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--fb-color-border); border-radius: var(--fb-radius-panel); font-size: .8125rem; line-height: 1.4; }
.plan-progress li > span { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fb-color-sage); color: var(--fb-color-evergreen); font-weight: 700; }
.plan-progress small { display: block; margin-top: 3px; color: var(--fb-color-muted); font-size: 0.75rem; }
.plan-progress [aria-current="step"] { border-color: var(--fb-color-evergreen); }
.plan-progress [data-complete="true"] small { color: var(--fb-color-success); }
.plan-course-support { border-left: 3px solid var(--fb-color-evergreen); padding: 12px 14px; margin-top: 16px; background: var(--fb-color-sage); font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.plan-course-support p { margin: 6px 0 0; color: var(--fb-color-muted); }
.plan-course-support a, .plan-expired a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--fb-color-evergreen); font-weight: 600; }
.plan-expired p { margin: 6px 0 0; }
.plan-expired[hidden], .plan-course-support[hidden], .plan-course-support a[hidden] { display: none; }
.plan-confirm { display: flex; align-items: start; gap: 10px; margin-top: 12px; font-size: .875rem; line-height: 1.6; }
.plan-confirm input { width: 20px; min-height: 20px; margin-top: 3px; flex-shrink: 0; }

@media (width <= 800px) {
    .plan-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .plan-layout { grid-template-columns: 1fr; }
    .plan-summary { position: static; }
    .plan-heading { margin-bottom: 26px; }
}

@media (width <= 440px) {
    .plan-frame { padding: 16px 16px 40px; }
    .plan-editor, .plan-summary { padding: 22px 18px; }
    .plan-fields { gap: 16px; grid-template-columns: 1fr; }
    .plan-editor .fb-field__label { font-size: .8125rem; }
    .plan-heading h1 { font-size: 2.75rem; }
}

.plan-signout { color: var(--fb-color-muted); background: transparent; border: 0; padding: 8px; font: inherit; cursor: pointer; text-decoration: underline; }

.plan-account-label { color: var(--fb-color-muted); font-size: .8125rem; margin: 0 0 24px; overflow-wrap: anywhere; }

.fb-plan-page .fb-auth-footer nav { flex-wrap: wrap; justify-content: center; gap: 12px 24px; }

.fb-plan-page .fb-auth-footer a { min-height: 44px; display: inline-flex; align-items: center; }

.fb-plan-page { --public-line: var(--fb-color-border); --public-soft: var(--fb-color-sage); --public-green: var(--fb-color-evergreen); --public-ink: var(--fb-color-ink); --public-muted: var(--fb-color-muted); }
.plan-partner-disclosure { border-top: 1px solid var(--fb-color-border); margin-top: 20px; }
.plan-partner-disclosure > summary { display: flex; align-items: center; gap: 8px; min-height: 52px; cursor: pointer; font-size: .875rem; font-weight: 600; list-style: none; }
.plan-partner-disclosure > summary::-webkit-details-marker { display: none; }
.plan-partner-disclosure > summary span { font-size: 0.75rem; color: var(--fb-color-muted); font-weight: 400; margin-left: auto; }
.plan-partner-disclosure > summary svg { flex-shrink: 0; }
.plan-partner-disclosure[open] > summary svg { transform: rotate(180deg); }
.plan-partner-directory { margin-bottom: 16px; }
.plan-partner-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.plan-partner-tools p { flex: 1 1 180px; margin: 0; }
.plan-partner-notice { border-left: 3px solid var(--fb-color-evergreen); padding: 10px 12px; background: var(--fb-color-sage); font-size: .8125rem; line-height: 1.6; }
.plan-partner-notice[hidden] { display: none; }
.plan-save-status { display: grid; grid-template-columns: 1rem minmax(0, 1fr); align-items: start; gap: 6px; color: var(--fb-color-muted); font-size: .8125rem; line-height: 1.5; min-height: 4.5em; margin: 14px 0 0; }
.plan-save-status[data-state="saved"] { color: var(--fb-color-success); }
.plan-save-status[data-state="error"] { color: var(--fb-color-danger); }
.plan-save-status__check { width: 1rem; height: 1rem; margin-top: .125rem; opacity: 0; transform: scale(.8); }
.plan-save-status[data-state="saved"] .plan-save-status__check { opacity: 1; transform: scale(1); transition: opacity var(--fb-duration-fast) var(--fb-ease-standard), transform var(--fb-duration-normal) var(--fb-ease-standard); }
.plan-save-status__text--updated { animation: plan-save-status-swap var(--fb-duration-fast) var(--fb-ease-standard); }

@keyframes plan-save-status-swap {
    /* Status text must retain its full contrast throughout the swap. */
    from { transform: translateY(3px); }
    to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .plan-save-status__text--updated { animation: none; }
    .plan-save-status[data-state="saved"] .plan-save-status__check { transition: none; }
}

.plan-reload { display: inline-flex; align-items: center; min-height: 44px; color: var(--fb-color-evergreen); font-weight: 600; }
.plan-reload[hidden] { display: none; }
.plan-mobile-bar { display: none; }

/* Step aside instantly: a fading bar is briefly translucent, unreadable text. */
.plan-mobile-bar.plan-mobile-bar--covered { visibility: hidden; pointer-events: none; }
.plan-editor input[type="date"], .plan-editor input[type="time"] { font-size: 1rem; padding-inline: 12px; }
.plan-editor input[type="date"] { scroll-margin-top: 60px; }

/* Phones: keep the next step reachable without scrolling back up. */
@media (width <= 800px) {
    .fb-plan-page { padding-bottom: 84px; }
    .plan-mobile-bar { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--fb-color-border); background: var(--fb-color-canvas); box-shadow: 0 -4px 20px color-mix(in srgb, var(--fb-color-night) 5%, transparent); }
    .plan-mobile-bar > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .plan-mobile-bar strong { font-size: .8125rem; overflow-wrap: anywhere; }

    /* 44px hit area without making the bar taller: the negative margin keeps
       the visual line height while the target extends into the bar padding. */
    .plan-mobile-bar a:not(.fb-button) { display: inline-flex; align-items: center; align-self: flex-start; font-size: .8125rem; color: var(--fb-color-evergreen); min-height: 44px; margin-block: -10px; }
    .plan-mobile-bar .fb-button { flex: 0 1 auto; min-height: 44px; width: auto; white-space: normal; text-align: center; }
    .plan-mobile-bar--keyboard { display: none; }
    .plan-summary { position: static; }
    html:has(.fb-plan-page) { scroll-padding-bottom: 100px; }
}

@media (width > 800px) and (height <= 900px) {
    .fb-plan-page .fb-auth-main { padding-block: 16px 24px; }
    .plan-frame { padding-block: 12px 32px; }
    .plan-heading { max-width: none; margin-bottom: 24px; }
    .plan-heading h1 { font-size: clamp(2.25rem, 4vw, 3rem); margin-block: 8px 12px; }
    .plan-heading > p:last-child { max-width: 48rem; margin-bottom: 0; }
    .plan-heading h1 br { display: none; }
    .plan-heading h1 em::before { content: " "; }
    .plan-editor, .plan-summary { padding: 24px; }
}

/* Short desktop windows (≤760px tall): the summary's button can sit below the
   fold, so a compact floating bar keeps Continue reachable. Not on taller desktops. */
@media (width > 800px) and (height <= 760px) {
    .fb-plan-page { padding-bottom: 84px; }
    .plan-mobile-bar { position: fixed; z-index: 20; right: 24px; bottom: 16px; display: flex; align-items: center; gap: 16px; max-width: 32rem; padding: 10px 12px 10px 16px; border: 1px solid var(--fb-color-border-strong); border-radius: var(--fb-radius-panel); background: var(--fb-color-surface); box-shadow: var(--fb-shadow-float); }
    .plan-mobile-bar > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .plan-mobile-bar strong { font-size: .875rem; }
    .plan-mobile-bar a:not(.fb-button) { font-size: .875rem; color: var(--fb-color-evergreen); }
    .plan-mobile-bar--keyboard { display: none; }
}

@media (width <= 800px) {
    .fb-plan-page .fb-auth-main { padding-inline: 0; }
    .plan-frame { padding-top: 12px; }
    .plan-heading h1 { font-size: clamp(2.15rem, 7vw, 3rem); margin: 10px 0 14px; }
    .plan-heading > p:last-child { font-size: .9375rem; line-height: 1.6; }
    .plan-heading { margin-bottom: 22px; }
    .plan-summary { padding: 24px; }
    .plan-summary h2 { font-size: 1.65rem; margin: 18px 0 12px; scroll-margin-top: 20px; }
    .plan-preview-time { margin: 20px 0; }
    .plan-preview-time strong { font-size: 2.25rem; }
    .plan-preview-details > div { padding-bottom: 10px; }
}

@media (width <= 440px) {
    .plan-editor, .plan-summary { padding: 20px 16px; }
    .plan-window .plan-fields { grid-template-columns: 1fr 1fr; gap: 12px; }
    .plan-window .fb-field__label { line-height: 1.45; }
    .plan-window select { font-size: 1rem; padding-inline: 9px; }
    .plan-partner-disclosure > summary { flex-wrap: nowrap; }
}

/* While planning on a phone the action bar replaces the bottom menu, so the
   top bar, form and one action share the screen (the top bar still links home). */
@media (width <= 800px) {
    body.fb-plan-page[data-app-page] .mobile-bottom-nav { display: none; }
    .fb-plan-page[data-app-page] .plan-mobile-bar { bottom: 0; padding-bottom: max(10px, var(--fb-safe-bottom)); }
    .fb-plan-page[data-app-page] .plan-frame { padding-bottom: 100px; }
}

@media (width >= 1200px) and (height <= 900px) {
    .fb-plan-page[data-app-page] .plan-mobile-bar { left: calc(var(--fb-sidebar-width) + (100% - var(--fb-sidebar-width)) / 2); width: calc(100% - var(--fb-sidebar-width) - 64px); }
}

.plan-heading__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--fb-color-evergreen); font-weight: 600; text-underline-offset: 3px; }
.plan-heading__link:hover { color: var(--fb-color-evergreen-hover); }
