/* Booking + form flow shell. Loaded last via {% block page_assets %} so it
   wins over the public override layers. Every selector is prefixed .flow or
   lives under .flow to keep it off the rest of the site. */

.flow {
    display: grid;
    grid-template-columns: 300px minmax(0, 640px);
    justify-content: center;
    align-items: start;
    gap: clamp(32px, 5vw, 64px);
    padding-block: clamp(28px, 5vw, 56px);
}

/* Author display rules must never beat the hidden attribute (no-JS fallback). */
.flow [hidden] { display: none !important; }

/* Rail ------------------------------------------------------------------- */
.flow-rail {
    position: sticky;
    top: 84px;
    display: grid;
    gap: var(--space-5);
    align-self: start;
}
.flow--scorecard .flow-rail { gap: 18px; }

.flow-host {
    display: flex;
    align-items: center;
    gap: 14px;
}
.flow-host-photo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(16, 16, 20, .12);
}
.flow-host strong {
    display: block;
    font: 800 1rem/1.2 var(--font-display);
    color: var(--ink);
}
.flow-host span {
    display: block;
    color: var(--muted);
    font-size: .84rem;
}

.flow-meta {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.flow-meta li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-2);
    font-size: .92rem;
    line-height: 1.35;
}
.flow-ico {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--brand-ink);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flow-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: flow-step;
}
.flow-steps li {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font: 600 .92rem/1.2 var(--font-display);
}
.flow-step-dot {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    font: 800 .72rem/1 var(--font-display);
    transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.flow-steps li.is-current { color: var(--ink); }
.flow-steps li.is-current .flow-step-dot {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 0 0 4px rgba(19, 163, 111, .16);
}
.flow-steps li.is-done { color: var(--ink-2); }
.flow-steps li.is-done .flow-step-dot {
    border-color: var(--green);
    background: var(--mint);
    color: var(--green-ink);
}
.flow-steps li.is-done .flow-step-dot::before { content: "\2713"; }
.flow-steps li.is-done .flow-step-dot span { display: none; }

.flow-next-label {
    margin: 0 0 8px;
    color: var(--muted);
    font: 800 .7rem/1 var(--font-display);
    letter-spacing: .09em;
    text-transform: uppercase;
}
.flow-next-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.flow-next-chips li {
    padding: 6px 10px;
    border: 1px solid rgba(19, 163, 111, .28);
    border-radius: 999px;
    background: #f4fbf7;
    color: var(--green-ink);
    font: 700 .8rem/1 var(--font-display);
    white-space: nowrap;
}
.flow-next small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .74rem;
}

.flow-rail-link {
    color: var(--brand-ink);
    font: 700 .86rem/1.3 var(--font-display);
    text-decoration: underline;
    text-decoration-color: rgba(135, 95, 170, .35);
    text-underline-offset: 4px;
}
.flow-rail .check-list { margin: 0; }
.flow-rail .check-list li { font-size: .92rem; }
.flow--scorecard .flow-rail .check-list { display: grid; gap: 11px; }
.flow--scorecard .flow-rail .check-list li { padding-left: 40px; line-height: 1.38; }

.flow-rail-card {
    padding: 14px 16px;
    border: 1px solid rgba(135, 95, 170, .24);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #f6effd, #fff);
    font-size: .88rem;
}
.flow-rail-card p { margin: 0 0 8px; }
.flow-rail-card p:last-child { margin: 0; }

.scorecard-rail-art {
    position: relative;
    width: min(86%, 258px);
    margin: -4px auto 0;
    isolation: isolate;
}
.scorecard-rail-art::before {
    content: "";
    position: absolute;
    inset: 22% 8% 18%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(135, 95, 170, .17), rgba(19, 163, 111, .06) 54%, transparent 72%);
    filter: blur(18px);
}
.scorecard-rail-art img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(40, 28, 52, .11));
}

/* Pane ------------------------------------------------------------------- */
.flow-pane {
    min-width: 0;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid rgba(16, 16, 20, .09);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
    animation: flow-enter .32s cubic-bezier(.22, 1, .36, 1) both;
}
.flow-pane > .eyebrow { margin-bottom: 6px; }
.flow-pane > h1 {
    max-width: none;
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    letter-spacing: var(--track-tight);
}
.flow-pane > .lead {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--muted);
}
.flow .audit-form { padding: 0; }
.flow .afield-row { gap: 12px; }
.flow .audit-form details { margin: 2px 0 14px; }
.flow .audit-form summary {
    cursor: pointer;
    color: var(--muted);
    font: 600 .86rem var(--font-display);
}
.flow .audit-form details[open] summary { margin-bottom: 8px; color: var(--ink); }
.flow .button.full { margin-top: 6px; }
.flow .button.ghost { color: var(--muted); font-weight: 700; }
.flow-alt {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .88rem;
    text-align: center;
}
.flow-alt a { color: var(--brand-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.flow-fieldset {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    min-width: 0;
}
.flow-fieldset legend {
    padding: 0;
    margin: 0 0 12px;
    color: var(--ink);
    font: 800 .95rem/1.2 var(--font-display);
}
.flow-fieldset:not([hidden]) + .flow-fieldset { padding-top: 14px; border-top: 1px solid var(--line); }
.flow-fieldset .button.full { margin-top: 10px; }
.flow-fieldset .button.ghost.full { margin-top: 6px; }

.scorecard-delivery-step {
    max-height: 1200px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition:
        max-height .52s cubic-bezier(.22, 1, .36, 1),
        opacity .28s ease,
        transform .38s cubic-bezier(.22, 1, .36, 1),
        padding-top .38s ease,
        margin .38s ease;
}
.is-progressive-enhanced[data-progressive-expanded="false"] .progressive-rest {
    max-height: 0;
    margin: 0;
    padding-top: 0;
    border-top: 0;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
}

/* Floating first answer -------------------------------------------------- */
.progressive-first-card {
    position: relative;
    isolation: isolate;
    margin: 0;
}
.progressive-first-card--scorecard {
    display: grid;
    align-items: end;
    min-height: 168px;
    padding: 52px 10px 10px;
    border: 1px solid rgba(135, 95, 170, .12);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(250, 247, 253, .88), rgba(249, 252, 250, .96));
    box-shadow: 0 18px 46px rgba(40, 28, 52, .09);
    overflow: hidden;
}
.progressive-first-art {
    position: absolute;
    z-index: -1;
    top: -102px;
    right: 10px;
    width: 205px;
    opacity: .46;
    pointer-events: none;
    filter: saturate(.86);
}
.progressive-first-art::before {
    content: "";
    position: absolute;
    inset: 24% 0 16%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(135, 95, 170, .23), rgba(19, 163, 111, .08) 54%, transparent 73%);
    filter: blur(18px);
}
.progressive-first-art img { display: block; width: 100%; height: auto; }
.progressive-first-control {
    position: relative;
    z-index: 1;
}
.progressive-first-control .afield,
.progressive-first-card--plain .field { margin: 0; }
.progressive-first-control input {
    min-height: 58px;
    padding-right: 70px;
    border-radius: 17px;
    border-color: rgba(16, 16, 20, .14);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px rgba(40, 28, 52, .12);
    font-size: 1.02rem;
}
.progressive-first-confirm {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 8px 20px rgba(16, 16, 20, .2);
    cursor: pointer;
    font: 800 1.22rem/1 var(--font-display);
    transition: transform .18s ease, background-color .22s ease, box-shadow .22s ease;
}
.progressive-first-control > .progressive-first-confirm {
    position: absolute;
    right: 6px;
    bottom: 6px;
}
.progressive-first-confirm:hover { transform: translateX(2px); box-shadow: 0 10px 24px rgba(16, 16, 20, .24); }
.progressive-first-confirm:focus-visible { outline: 3px solid rgba(135, 95, 170, .38); outline-offset: 3px; }
.progressive-first-check { display: none; }
.is-progressive-confirmed .progressive-first-confirm {
    background: var(--green);
    box-shadow: 0 8px 22px rgba(19, 163, 111, .28);
    animation: flow-confirm-pop .28s cubic-bezier(.22, 1, .36, 1);
}
.is-progressive-confirmed .progressive-first-arrow { display: none; }
.is-progressive-confirmed .progressive-first-check { display: inline; }
.progressive-first-error {
    position: relative;
    z-index: 1;
    margin: 7px 4px 0;
    color: var(--coral-ink);
    font-size: .8rem;
    font-weight: 700;
}
.progressive-first-card--choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
}
.progressive-first-card--choice .afield { margin: 0; }
.progressive-first-card--choice .progressive-first-error { grid-column: 1 / -1; }
.progressive-first-card--plain { margin-bottom: 16px; }
.progressive-first-card--plain .progressive-first-control { display: block; }
.progressive-first-card--plain .progressive-first-confirm { bottom: 6px; }
.progressive-rest {
    max-height: 1800px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: max-height .52s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, transform .36s cubic-bezier(.22, 1, .36, 1), margin .36s ease, padding .36s ease;
}
.is-progressive-enhanced[data-progressive-expanded="true"] .progressive-rest { overflow: visible; }

/* Existing-site choice uses the same arrow-to-check language. */
.progressive-choice-gate .intake-choice { position: relative; padding-right: 70px; }
.intake-choice-action {
    position: absolute;
    top: 50%;
    right: 16px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    transform: translateY(-50%);
    font: 800 1rem/1 var(--font-display);
}
.intake-choice-action b { display: none; }
.intake-choice.is-confirmed { border-color: var(--green); background: #f4fbf7; }
.intake-choice.is-confirmed .intake-choice-action { background: var(--green); animation: flow-confirm-pop .28s cubic-bezier(.22, 1, .36, 1); }
.intake-choice.is-confirmed .intake-choice-action span { display: none; }
.intake-choice.is-confirmed .intake-choice-action b { display: inline; }

.flow .consent-row {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
    margin: 0 0 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: .84rem;
    line-height: 1.4;
}
.flow .consent-row input { width: 18px; height: 18px; margin: 1px 0 0; }
.flow .consent-row .afield-error { display: block; }
.flow .consent-row.has-error { border-color: var(--coral); }
.flow .scorecard-consent label {
    display: inline;
    color: inherit;
    cursor: pointer;
}
.flow .consent-legal {
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.45;
}
.flow .consent-legal a {
    color: var(--brand-ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(135, 95, 170, .35);
    text-underline-offset: 2px;
}
.flow .contact-consent { margin: 0; }
.flow .form-assent { margin-top: 10px; }
.flow .message.error { margin: 0 0 14px; }

/* Scope chips (progressive enhancement over the select) ------------------- */
.flow [data-scope-enhance].is-enhanced > select { display: none; }
.scope-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.scope-chip {
    display: grid;
    gap: 2px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.scope-chip:hover { border-color: rgba(135, 95, 170, .5); box-shadow: 0 8px 20px rgba(135, 95, 170, .12); transform: translateY(-1px); }
.scope-chip:focus-visible { outline: 3px solid rgba(135, 95, 170, .35); outline-offset: 2px; }
.scope-chip-name { font: 700 .9rem/1.2 var(--font-display); }
.scope-chip-price { color: var(--muted); font-size: .78rem; font-weight: 600; }
.scope-chip.is-selected {
    border-color: var(--brand);
    background: #f6effd;
    box-shadow: 0 0 0 3px rgba(135, 95, 170, .14);
    animation: flow-pop .22s ease-out;
}
.scope-chip.is-selected .scope-chip-price { color: var(--brand-ink); }
.scope-chip--plain { grid-column: 1 / -1; min-height: 44px; }

/* Time picker inside the shell -------------------------------------------- */
.flow .booking-slots { margin-top: 4px; gap: 16px; }
.flow .booking-slot-picker {
    padding: clamp(14px, 2vw, 20px);
    border-color: var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: none;
}
.flow .booking-picker-head { display: none; }
.flow .booking-slot-picker.is-enhanced .booking-picker-head { display: flex; }
.flow .booking-picker-step { display: none; }
.flow .booking-picker-head strong { font-size: .95rem; }
.flow .booking-calendar-shell { padding: 0; border: 0; }
.flow .booking-time-panel.is-entering { animation: flow-slide .28s cubic-bezier(.22, 1, .36, 1) both; }
.flow .booking-slot-picker-hint { margin: 0; font-size: .8rem; }
.flow-confirm { display: grid; gap: 8px; }
.flow-selected {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(46, 139, 87, .26);
    border-radius: 12px;
    color: var(--green-ink);
    background: #f4fbf7;
    font: 800 .94rem/1.4 var(--font-display);
}

/* The post-booking page is a call lobby, not another funnel step. */
.flow--lobby {
    grid-template-columns: minmax(0, 720px);
    gap: 0;
}
.appointment-lobby-page .appt-banner { display: none; }
.flow .booking-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper-2);
}
.flow .booking-empty h2 { font-size: 1.1rem; margin-bottom: 6px; }
.flow .booking-empty p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.flow .booking-empty form { margin: 0; }
.flow .booking-fallback { margin-top: 14px; }

@media (min-width: 760px) {
    .flow .booking-slot-picker.is-enhanced {
        grid-template-columns: minmax(280px, 1fr) minmax(200px, .8fr);
        grid-template-areas: "head head" "cal times" "hint hint";
        column-gap: 20px;
    }
    .flow .booking-slot-picker.is-enhanced .booking-picker-head { grid-area: head; }
    .flow .booking-slot-picker.is-enhanced .booking-calendar-shell { grid-area: cal; }
    .flow .booking-slot-picker.is-enhanced .booking-time-panel {
        grid-area: times;
        align-self: start;
        padding: 0 0 0 20px;
        border-top: 0;
        border-left: 1px solid var(--line);
    }
    .flow .booking-slot-picker.is-enhanced .booking-time-options {
        grid-template-columns: 1fr;
        max-height: 328px;
        overflow-y: auto;
        padding: 2px 6px 2px 2px;
        scrollbar-width: thin;
        overscroll-behavior: contain;
    }
    .flow .booking-slot-picker.is-enhanced .booking-time-heading { margin-bottom: 4px; }
    .flow .booking-slot-picker.is-enhanced .booking-slot-picker-hint { grid-area: hint; }
    .flow .booking-slot-picker.is-enhanced:not(.is-day-chosen)::after {
        grid-area: times;
        display: grid;
        place-items: center;
        min-height: 140px;
        padding: 0 0 0 20px;
        border-left: 1px solid var(--line);
        color: var(--muted);
        content: attr(data-empty-label);
        font: 600 .88rem var(--font-display);
        text-align: center;
    }
}

/* Confirmation card --------------------------------------------------------- */
.flow-confirm-card { display: grid; gap: 12px; }
.flow-check {
    width: 52px;
    height: 52px;
}
.flow-check circle, .flow-check path {
    fill: none;
    stroke: var(--green);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.flow-check circle { opacity: .35; }
.flow-check path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: flow-draw .6s cubic-bezier(.22, 1, .36, 1) .15s forwards;
}
.flow-confirm-card--pending .flow-check circle,
.flow-confirm-card--pending .flow-check path,
.flow-confirm-card--failed .flow-check circle,
.flow-confirm-card--failed .flow-check path,
.flow-confirm-card--canceled .flow-check circle,
.flow-confirm-card--canceled .flow-check path { stroke: var(--gold); }
.flow-confirm-card--failed .flow-check circle,
.flow-confirm-card--failed .flow-check path { stroke: var(--coral); }
.flow-confirm-card--canceled .flow-check circle,
.flow-confirm-card--canceled .flow-check path { stroke: var(--muted); }
.flow-badge {
    justify-self: start;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--green-ink);
    font: 800 .7rem/1 var(--font-display);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.flow-confirm-card--pending .flow-badge { background: #fff4d9; color: #8a5a00; }
.flow-confirm-card--failed .flow-badge { background: #ffe9e3; color: var(--coral-ink); }
.flow-confirm-card--canceled .flow-badge { background: var(--soft); color: var(--muted); }
.flow-confirm-card h1 { margin: 2px 0 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.flow-when {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper-2);
}
.flow-date {
    display: grid;
    justify-items: center;
    padding: 6px 0;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
    line-height: 1;
}
.flow-date span {
    color: var(--muted);
    font: 800 .62rem/1 var(--font-display);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.flow-date strong {
    margin: 3px 0;
    color: var(--ink);
    font: 800 1.6rem/1 var(--font-display);
}
.flow-time { margin: 0; font: 700 1rem/1.3 var(--font-display); color: var(--ink); }
.flow-meet {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .88rem;
}
.flow-meet .flow-ico { margin: 0; }
.flow-confirm-card .lead { margin: 0; font-size: 1rem; color: var(--ink-2); }
.flow-confirm-card p { margin: 0; }
.flow-confirm-card .button { justify-self: start; }
.flow-confirm-card p.flow-note { color: var(--muted); font-size: .86rem; }
.flow-call-details { margin: 20px 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfaf7; text-align: left; }
.flow-call-details--confirmed { margin-top: 18px; }
.flow-call-details-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.flow-call-details-head h2 { margin: 0; font-size: 1rem; }
.flow-call-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 18px; margin: 0; }
.flow-call-details dl > div { min-width: 0; }
.flow-call-details dt { margin-bottom: 3px; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.flow-call-details dd { margin: 0; color: var(--ink); font-size: .91rem; line-height: 1.45; overflow-wrap: anywhere; }
.flow-call-details-comments { grid-column: 1 / -1; }
.flow-back-link { margin: 18px 0 0; }
.flow--call-details { max-width: 760px; }
.booking-details-form { margin-top: 22px; }
.booking-details-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.booking-details-step[hidden] { display: none; }
.booking-details-step > legend { margin-bottom: 16px; padding: 0; color: var(--ink); font-size: 1.08rem; font-weight: 850; }
.booking-details-actions { display: grid; gap: 10px; margin-top: 14px; }
.flow-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.flow-panels { display: grid; gap: 6px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.meeting-lobby {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    padding: 16px;
    border: 1px solid rgba(135, 95, 170, .2);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #f7f1fc, #fff 72%);
}
.meeting-join-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.flow-confirm-card .meeting-join-button { justify-self: auto; min-width: 140px; }
.meeting-join-button:disabled {
    cursor: not-allowed;
    border-color: #d7d5dc;
    background: #d7d5dc;
    color: #6d6a75;
    box-shadow: none;
    opacity: 1;
}
.meeting-countdown {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.2;
}
.meeting-countdown strong,
.meeting-countdown-ready {
    color: var(--ink);
    font: 800 1rem/1.2 var(--font-display);
    font-variant-numeric: tabular-nums;
}
.meeting-countdown-ready::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--green);
    content: "";
}
.flow-confirm-card p.meeting-lobby-note {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.4;
}
.flow-panel { margin: 0; padding: 0; border: 0; background: transparent; }
.flow-panel summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--muted);
    font: 700 .86rem var(--font-display);
    text-decoration: underline;
    text-decoration-color: rgba(88, 90, 107, .35);
    text-underline-offset: 4px;
    list-style: none;
}
.flow-panel summary::-webkit-details-marker { display: none; }
.flow-panel[open] summary { color: var(--ink); margin-bottom: 12px; }
.flow-panel textarea { display: block; width: 100%; margin: 6px 0 12px; }
.flow-panel label { display: block; font: 600 .84rem var(--font-display); }
.flow-panel .booking-slots { margin: 0; }

/* Mobile: single column, rail becomes a compact strip --------------------- */
@media (max-width: 899px) {
    .flow { grid-template-columns: 1fr; gap: 14px; padding-block: 18px 40px; }
    .flow-rail {
        position: static;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 8px 12px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, .72);
    }
    .flow-host { gap: 10px; }
    .flow-host-photo { width: 40px; height: 40px; border-radius: 12px; }
    .flow-host strong { font-size: .92rem; white-space: nowrap; }
    .flow-host span { display: none; }
    .flow-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
    .flow-meta li { font-size: .8rem; gap: 6px; white-space: nowrap; }
    .flow-meta li:nth-child(n+3) { display: none; }
    .flow--scorecard .flow-meta li:nth-child(n+2) { display: none; }
    .flow--scorecard .flow-pane > .lead { display: none; }
    .flow--scorecard .flow-pane > h1 { margin-bottom: 16px; }
    .flow-pane > h1 { font-size: 1.5rem; }
    .flow-meta-more { display: none; }
    .flow-ico { width: 15px; height: 15px; margin-top: 0; }
    .flow-steps {
        grid-column: 1 / -1;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .flow-steps::-webkit-scrollbar { display: none; }
    .flow-steps li {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 10px 5px 5px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
        font-size: .78rem;
        white-space: nowrap;
    }
    .flow-step-dot { width: 20px; height: 20px; font-size: .64rem; }
    .flow-steps li.is-current { border-color: rgba(19, 163, 111, .4); background: #f4fbf7; }
    .flow-steps li.is-current .flow-step-dot { transform: none; box-shadow: none; }
    .flow-next { grid-column: 1 / -1; }
    .flow-next-label { margin-bottom: 6px; }
    .flow-next-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .flow-next-chips::-webkit-scrollbar { display: none; }
    .flow-next small { display: none; }
    .flow-rail-link { grid-column: 1 / -1; font-size: .8rem; }
    .flow-rail .check-list { display: none; }
    .flow--scorecard .flow-rail .check-list {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .flow--scorecard .flow-rail .check-list li { padding: 0 0 0 27px; font-size: .76rem; }
    .flow--scorecard .flow-rail .check-list li::before { width: 20px; height: 20px; }
    .flow-rail-card { grid-column: 1 / -1; }
    .scorecard-rail-art { display: none; }
    .flow-pane { padding: 18px 16px 20px; border-radius: 16px; }
    .flow-when { grid-template-columns: 56px 1fr; }
}

@media (max-width: 760px) {
    .flow-confirm {
        position: sticky;
        bottom: 0;
        z-index: 3;
        margin: 0 -16px -20px;
        padding: 10px 16px max(14px, env(safe-area-inset-bottom));
        background: linear-gradient(rgba(255, 255, 255, 0), #fff 32%);
    }
    body.has-flow-sticky .swrl-chat { bottom: calc(var(--flow-sticky-h, 0px) + 12px); }
}

@media (max-width: 520px) {
    .flow-call-details dl { grid-template-columns: 1fr; }
    .meeting-join-row { align-items: stretch; }
    .flow-confirm-card .meeting-join-button { width: 100%; justify-content: center; }
    .flow .afield-row { grid-template-columns: 1fr; }
    .scope-choice-grid { grid-template-columns: 1fr; }
    .scope-chip { min-height: 48px; grid-template-columns: 1fr auto; align-items: center; }
    .scope-chip-price { text-align: right; }
    .scope-chip--plain { grid-template-columns: 1fr; }
    .flow--scorecard .flow-rail .check-list { grid-template-columns: 1fr; }
    .progressive-first-card--scorecard { min-height: 150px; padding: 42px 6px 6px; border-radius: 18px; }
    .progressive-first-art { top: -84px; right: -8px; width: 178px; opacity: .4; }
    .progressive-first-card--choice { grid-template-columns: 1fr; }
    .progressive-first-card--choice .progressive-first-confirm { justify-self: end; }
}

/* Motion ----------------------------------------------------------------- */
@keyframes flow-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes flow-pop { from { transform: scale(.98); } to { transform: scale(1); } }
@keyframes flow-slide { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes flow-draw { to { stroke-dashoffset: 0; } }
@keyframes flow-confirm-pop { 0% { transform: scale(.82); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .flow-pane,
    .scope-chip.is-selected,
    .flow .booking-time-panel.is-entering { animation: none; }
    .flow-check path { stroke-dashoffset: 0; animation: none; }
    .flow-step-dot, .scope-chip, .scorecard-delivery-step, .progressive-rest, .progressive-first-confirm { transition: none; }
    .is-progressive-confirmed .progressive-first-confirm,
    .intake-choice.is-confirmed .intake-choice-action { animation: none; }
}
