:root {
    --nffb-ink: var(--nf-ui-text, #172033);
    --nffb-muted: var(--nf-ui-text-muted, #64748b);
    --nffb-line: var(--nf-ui-border, #dbe4f0);
    --nffb-page: var(--nf-ui-page, #f6f8fc);
    --nffb-card: var(--nf-ui-card, #fff);
    --nffb-blue: var(--nf-ui-brand, #1463ff);
    --nffb-blue-dark: #0b46bf;
    --nffb-violet: #3b22ff;
    --nffb-green: #00a884;
    --nffb-green-dark: #087a55;
    --nffb-dark: #020817;
    --nffb-dark-soft: #071735;
    --nffb-warning: #9a5b09;
    --nffb-radius: 22px;
    --nffb-radius-sm: 13px;
    --nffb-shadow: 0 18px 50px rgba(2, 8, 23, .09);
    --nffb-focus: 0 0 0 4px rgba(20, 99, 255, .2);
}

body.nffb-app-page {
    background: var(--nffb-page);
}

body.nffb-app-page .header-wrapper.stuck {
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 7px 22px rgba(7, 23, 53, .1);
}

.nffb-shell,
.nffb-shell *,
.nffb-shell *::before,
.nffb-shell *::after {
    box-sizing: border-box;
}

.nffb-shell [hidden] {
    display: none !important;
}

.nffb-shell {
    color: var(--nffb-ink);
    margin: 0 auto;
    max-width: 1120px;
    padding: 14px 16px 64px;
}

.nffb-shell button,
.nffb-shell input,
.nffb-shell select {
    font: inherit;
}

.nffb-shell button,
.nffb-shell select {
    cursor: pointer;
}

.nffb-shell button:focus-visible,
.nffb-shell input:focus-visible,
.nffb-shell select:focus-visible,
.nffb-shell a:focus-visible {
    box-shadow: var(--nffb-focus);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.nffb-hero {
    background:
        radial-gradient(circle at 86% 10%, rgba(0, 224, 164, .25), transparent 28%),
        radial-gradient(circle at 12% 100%, rgba(59, 34, 255, .35), transparent 34%),
        linear-gradient(135deg, var(--nffb-dark), var(--nffb-dark-soft) 62%, #061226);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(2, 8, 23, .2);
    color: #fff;
    display: grid;
    gap: 20px;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(22px, 4vw, 36px);
    position: relative;
}

.nffb-hero__glow {
    background: linear-gradient(135deg, rgba(59, 34, 255, .68), rgba(20, 99, 255, .12) 55%, rgba(0, 224, 164, .3));
    border-radius: 999px;
    filter: blur(18px);
    height: 210px;
    opacity: .44;
    position: absolute;
    right: -90px;
    top: -90px;
    transform: rotate(-18deg);
    width: 310px;
    z-index: -1;
}

.nffb-hero__copy {
    align-self: center;
    max-width: 720px;
}

.nffb-eyebrow,
.nffb-section-kicker,
.nffb-next-result__eyebrow,
.nffb-location-card__kicker {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .11em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.nffb-eyebrow {
    color: #94f5d9;
}

.nffb-hero h1 {
    color: #fff;
    font-size: clamp(34px, 5.2vw, 56px);
    letter-spacing: -.055em;
    line-height: .98;
    margin: 0;
    max-width: 760px;
}

.nffb-hero__lead {
    color: #cfdaea;
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 560;
    line-height: 1.55;
    margin: 14px 0 0;
    max-width: 620px;
}

.nffb-hero__context {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.nffb-context-pill {
    align-items: center;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #e6edf7;
    display: inline-flex;
    font-size: 13px;
    font-weight: 750;
    min-height: 34px;
    padding: 7px 12px;
}

.nffb-context-pill--today {
    background: rgba(0, 224, 164, .13);
    border-color: rgba(148, 245, 217, .28);
    color: #b9f9e7;
}

.nffb-location-card {
    align-content: start;
    align-self: stretch;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 22px;
    box-shadow: 0 20px 54px rgba(2, 8, 23, .25);
    color: var(--nffb-ink);
    display: grid;
    gap: 15px;
    padding: 22px;
}

.nffb-location-card__icon {
    background: linear-gradient(135deg, var(--nffb-violet), var(--nffb-blue), var(--nffb-green));
    border: 5px solid #e8f1ff;
    border-radius: 50% 50% 50% 8px;
    box-shadow: 0 10px 24px rgba(20, 99, 255, .22);
    display: block;
    height: 42px;
    position: relative;
    transform: rotate(-45deg);
    width: 42px;
}

.nffb-location-card__icon::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 11px;
    left: 10px;
    position: absolute;
    top: 10px;
    width: 11px;
}

.nffb-location-card__kicker {
    color: var(--nffb-blue-dark);
    margin-bottom: 5px;
}

.nffb-location-card h2 {
    color: var(--nffb-ink);
    font-size: 21px;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0;
}

.nffb-location-card p:not(.nffb-location-card__kicker) {
    color: var(--nffb-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 7px 0 0;
}

.nffb-location-card small {
    color: var(--nffb-muted);
    font-size: 11px;
    line-height: 1.4;
}

.nffb-auto-action {
    align-content: center;
    align-self: stretch;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    display: grid;
    gap: 8px 10px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 18px 0 0;
}

.nffb-auto-action__icon {
    background: linear-gradient(135deg, var(--nffb-violet), var(--nffb-blue), var(--nffb-green));
    border: 3px solid rgba(255, 255, 255, .82);
    border-radius: 50% 50% 50% 8px;
    height: 32px;
    position: relative;
    transform: rotate(-45deg);
    width: 32px;
}

.nffb-auto-action__icon::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 9px;
    position: absolute;
    top: 9px;
    width: 8px;
}

.nffb-auto-action__copy {
    grid-column: 2;
    min-width: 0;
}

.nffb-auto-action__kicker {
    color: #94f5d9;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .09em;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.nffb-auto-action h2 {
    color: #fff;
    font-size: 17px;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0;
}

.nffb-auto-action p:not(.nffb-auto-action__kicker) {
    color: #b9c8da;
    font-size: 12px;
    line-height: 1.5;
    margin: 6px 0 0;
}

.nffb-auto-action .nffb-button {
    align-self: center;
    grid-column: 3;
    grid-row: 1;
    min-height: 42px;
    width: auto;
}

.nffb-auto-action > small {
    color: #93a5bc;
    font-size: 10px;
    grid-column: 2 / -1;
    line-height: 1.4;
    text-align: left;
}

.nffb-button {
    align-items: center;
    border: 0;
    border-radius: var(--nffb-radius-sm);
    display: inline-flex;
    font-weight: 800;
    gap: 9px;
    justify-content: center;
    min-height: 48px;
    padding: 12px 17px;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, background .16s ease;
}

.nffb-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.nffb-button:disabled {
    cursor: not-allowed;
    filter: grayscale(.25);
    opacity: .55;
}

.nffb-button--location {
    background: #fff;
    color: #071735;
}

.nffb-button--location:hover {
    background: #eaf1ff;
    color: #071735;
}

.nffb-button--location.is-loading > span:first-child {
    animation: nffb-pulse .8s ease-in-out infinite alternate;
}

.nffb-app-grid {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.nffb-panel {
    background: var(--nffb-card);
    border: 1px solid var(--nffb-line);
    border-radius: var(--nffb-radius);
    box-shadow: var(--nffb-shadow);
}

.nffb-search-panel,
.nffb-next-panel,
.nffb-timetable {
    padding: clamp(20px, 3vw, 30px);
}

.nffb-section-heading {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.nffb-section-kicker {
    color: var(--nffb-blue-dark);
    margin-bottom: 5px;
}

.nffb-section-heading h2,
.nffb-next-empty h2,
.nffb-next-result h2 {
    color: var(--nffb-ink);
    font-size: clamp(21px, 3vw, 27px);
    letter-spacing: -.035em;
    line-height: 1.15;
    margin: 0;
}

.nffb-live-dot {
    align-items: center;
    background: #effbf7;
    border: 1px solid #c8f0e4;
    border-radius: 999px;
    color: var(--nffb-green-dark);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    gap: 7px;
    min-height: 30px;
    padding: 6px 10px;
}

.nffb-live-dot i {
    background: var(--nffb-green);
    border: 3px solid #dff8f1;
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.nffb-favorites {
    display: flex;
    gap: 7px;
    margin: 21px -3px 0;
    overflow-x: auto;
    padding: 3px;
    scrollbar-width: thin;
}

.nffb-favorites button {
    background: #f1f5fb;
    border: 1px solid #e0e8f3;
    border-radius: 999px;
    color: #334155;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    min-height: 38px;
    padding: 8px 12px;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.nffb-favorites button:hover,
.nffb-favorites button.is-active {
    background: #e8f1ff;
    border-color: #adc9ff;
    color: #0d4fd1;
}

.nffb-form {
    display: grid;
    gap: 16px;
    margin-top: 21px;
}

.nffb-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.nffb-field label,
.nffb-field legend {
    color: #26344b;
    font-size: 12px;
    font-weight: 820;
    line-height: 1.35;
    margin: 0;
    padding: 0;
}

.nffb-field small {
    color: var(--nffb-muted);
    font-size: 11px;
    line-height: 1.4;
}

.nffb-field input,
.nffb-field select {
    appearance: none;
    background: #fff;
    border: 1px solid #ccd8e8;
    border-radius: var(--nffb-radius-sm);
    color: var(--nffb-ink);
    font-size: 14px;
    font-weight: 650;
    height: 48px;
    margin: 0;
    outline: 0;
    padding: 10px 13px;
    transition: border-color .16s ease, box-shadow .16s ease;
    width: 100%;
}

.nffb-field select {
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 13px) calc(50% - 2px);
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    padding-right: 36px;
}

.nffb-field input:hover,
.nffb-field select:hover {
    border-color: #9fb0c5;
}

.nffb-field input:focus,
.nffb-field select:focus {
    border-color: var(--nffb-blue);
    box-shadow: var(--nffb-focus);
}

.nffb-field select:disabled,
.nffb-field input:disabled {
    background-color: #f1f5f9;
    color: #7b8ba1;
    cursor: not-allowed;
}

.nffb-day-field {
    border: 0;
    margin: 0;
    padding: 0;
}

.nffb-segmented {
    background: #eef3f9;
    border: 1px solid #dde6f1;
    border-radius: 14px;
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 4px;
}

.nffb-segmented button {
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: #526277;
    font-size: 11px;
    font-weight: 800;
    min-height: 38px;
    padding: 7px 6px;
}

.nffb-segmented button[aria-pressed="true"] {
    background: #fff;
    box-shadow: 0 5px 14px rgba(2, 8, 23, .09);
    color: var(--nffb-blue-dark);
}

.nffb-next-panel {
    background:
        radial-gradient(circle at 92% 10%, rgba(0, 224, 164, .2), transparent 28%),
        linear-gradient(155deg, #061226, #071735 60%, #0a1d43);
    border-color: rgba(255, 255, 255, .07);
    color: #fff;
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    min-height: 280px;
    overflow: hidden;
    position: relative;
}

.nffb-next-panel__topline {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.nffb-saved-journeys {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    gap: 14px;
    margin-top: 14px;
    padding-bottom: 14px;
}

.nffb-saved-journeys[hidden] {
    display: none;
}

.nffb-saved-journeys__heading {
    flex: 0 0 auto;
}

.nffb-saved-journeys__heading strong,
.nffb-saved-journeys__heading small {
    display: block;
}

.nffb-saved-journeys__heading strong {
    color: #fff;
    font-size: 12px;
}

.nffb-saved-journeys__heading small {
    color: #93a5bc;
    font-size: 9px;
    margin-top: 1px;
}

.nffb-saved-journeys__list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.nffb-saved-journeys__list button {
    align-items: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(148, 245, 217, .24);
    border-radius: 999px;
    color: #dff8f1;
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 780;
    min-height: 44px;
    padding: 8px 12px;
}

.nffb-saved-journeys__list button:hover,
.nffb-saved-journeys__list button:focus-visible {
    background: rgba(0, 224, 164, .14);
    border-color: rgba(148, 245, 217, .55);
    outline: 0;
}

.nffb-trip-badges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.nffb-status-badge,
.nffb-direction-badge,
.nffb-day-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    min-height: 30px;
    padding: 7px 10px;
}

.nffb-status-badge {
    background: rgba(0, 224, 164, .14);
    border: 1px solid rgba(148, 245, 217, .25);
    color: #b9f9e7;
}

.nffb-direction-badge {
    background: rgba(20, 99, 255, .2);
    border: 1px solid rgba(142, 181, 255, .38);
    color: #dce8ff;
}

.nffb-day-badge {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    color: #d7e1ef;
}

.nffb-center-destination {
    align-items: end;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(148, 245, 217, .22);
    border-radius: 16px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, .8fr) minmax(250px, 1.2fr);
    margin-top: 18px;
    padding: 15px;
}

.nffb-center-destination[hidden] {
    display: none;
}

.nffb-center-destination > div > span,
.nffb-center-destination label {
    display: block;
}

.nffb-center-destination > div > span {
    color: #94f5d9;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .07em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.nffb-center-destination label {
    color: #fff;
    font-size: 17px;
    font-weight: 820;
}

.nffb-center-destination select {
    appearance: none;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, transparent 50%, #526277 50%),
        linear-gradient(135deg, #526277 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 13px) calc(50% - 2px);
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    border: 0;
    border-radius: 12px;
    color: #172033;
    font-size: 14px;
    font-weight: 760;
    min-height: 48px;
    outline: 0;
    padding: 10px 38px 10px 13px;
    width: 100%;
}

.nffb-center-destination select:focus {
    box-shadow: 0 0 0 4px rgba(142, 181, 255, .3);
}

.nffb-next-empty {
    align-content: center;
    display: grid;
    flex: 1;
    justify-items: start;
    padding: 42px 0 18px;
}

.nffb-next-empty__icon {
    align-items: center;
    background: linear-gradient(135deg, rgba(59, 34, 255, .75), rgba(20, 99, 255, .75));
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    display: inline-flex;
    font-size: 25px;
    height: 54px;
    justify-content: center;
    margin-bottom: 20px;
    width: 54px;
}

.nffb-next-empty h2,
.nffb-next-result h2 {
    color: #fff;
}

.nffb-next-empty p {
    color: #aebdd1;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0 0;
    max-width: 390px;
}

.nffb-next-result {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    padding-top: 28px;
}

.nffb-next-result__eyebrow {
    color: #94f5d9;
    margin-bottom: 8px;
}

.nffb-next-result__time-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.nffb-next-time {
    color: #fff;
    font-size: clamp(42px, 8vw, 70px);
    font-weight: 880;
    letter-spacing: -.07em;
    line-height: .95;
}

.nffb-countdown {
    background: #dff8f1;
    border-radius: 999px;
    color: #086b4d;
    font-size: 12px;
    font-weight: 850;
    padding: 8px 11px;
}

.nffb-next-result h2 {
    font-size: 22px;
    margin-top: 18px;
}

.nffb-next-result__sense {
    margin-top: 12px;
    max-width: 560px;
}

.nffb-journey__path {
    align-items: center;
    display: grid;
    gap: 11px;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
}

.nffb-journey__point {
    min-width: 0;
}

.nffb-journey__point small,
.nffb-journey__point strong {
    display: block;
}

.nffb-journey__point small {
    color: #94f5d9;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.nffb-journey__point strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
    margin-top: 3px;
}

.nffb-journey__arrow {
    align-items: center;
    background: rgba(148, 245, 217, .13);
    border: 1px solid rgba(148, 245, 217, .22);
    border-radius: 50%;
    color: #94f5d9;
    display: flex;
    font-size: 15px;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.nffb-journey__detail {
    color: #9eb0c7;
    font-size: 10px;
    line-height: 1.4;
    margin: 7px 0 0;
}

.nffb-journey--featured {
    border-left: 3px solid #5ce7c0;
    padding-left: 12px;
}

.nffb-journey--featured .nffb-journey__point strong {
    font-size: 17px;
}

.nffb-variant {
    align-items: center;
    align-self: flex-start;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    margin-top: 11px;
    min-height: 30px;
    padding: 7px 10px;
}

.nffb-remember {
    align-items: center;
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(148, 245, 217, .32);
    border-radius: 999px;
    color: #b9f9e7;
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 7px;
    margin-top: 12px;
    min-height: 44px;
    padding: 8px 12px;
}

.nffb-remember:hover,
.nffb-remember:focus-visible,
.nffb-remember.is-saved {
    background: rgba(0, 224, 164, .14);
    border-color: rgba(148, 245, 217, .58);
    outline: 0;
}

.nffb-remember > span:first-child {
    font-size: 16px;
    line-height: 1;
}

.nffb-arrival-estimate {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(148, 245, 217, .2);
    border-radius: 16px;
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 13px;
}

.nffb-arrival-estimate__icon {
    align-items: center;
    background: rgba(0, 224, 164, .18);
    border-radius: 12px;
    color: #94f5d9;
    display: flex;
    flex: 0 0 42px;
    font-size: 21px;
    height: 42px;
    justify-content: center;
}

.nffb-arrival-estimate span,
.nffb-arrival-estimate strong,
.nffb-arrival-estimate small {
    display: block;
}

.nffb-arrival-estimate span {
    color: #aebdd1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.nffb-arrival-estimate strong {
    color: #fff;
    font-size: 17px;
    margin-top: 2px;
}

.nffb-arrival-estimate small {
    color: #9eb0c7;
    font-size: 10px;
    margin-top: 3px;
}

.nffb-upcoming {
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 18px;
}

.nffb-upcoming > span {
    color: #93a5bc;
    font-size: 11px;
    font-weight: 800;
    padding-top: 6px;
    text-transform: uppercase;
}

.nffb-upcoming > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nffb-upcoming time {
    background: rgba(255, 255, 255, .09);
    border-radius: 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 8px;
}

.nffb-location-feedback {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    color: #d6e1ee;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 16px;
    padding: 12px;
}

.nffb-location-feedback.is-error {
    background: rgba(180, 35, 24, .18);
    border-color: rgba(254, 228, 226, .25);
    color: #ffe1de;
}

.nffb-nearby {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 22px;
    padding-top: 18px;
}

.nffb-nearby__heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 6px;
}

.nffb-nearby__heading strong {
    color: #fff;
    font-size: 13px;
}

.nffb-nearby__heading span {
    color: #94a6bd;
    font-size: 11px;
    font-weight: 750;
}

.nffb-nearby__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nffb-nearby__list > li:not(.nffb-nearby__group) {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .09);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr) minmax(78px, auto);
    padding: 16px 0;
}

.nffb-nearby__list li.nffb-nearby__group {
    border-top: 1px solid rgba(148, 245, 217, .22);
    color: #94f5d9;
    display: block;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .07em;
    padding: 15px 0 7px;
    text-transform: uppercase;
}

.nffb-nearby__list > li > time {
    color: #fff;
    font-size: 19px;
    font-weight: 850;
    letter-spacing: -.025em;
}

.nffb-nearby__list > li > div {
    min-width: 0;
}

.nffb-nearby__route {
    color: #f8fbff;
    display: block;
    font-size: 14px;
    font-weight: 850;
}

.nffb-journey--compact {
    margin-top: 8px;
    max-width: 430px;
}

.nffb-journey--compact .nffb-journey__path {
    gap: 8px;
    grid-template-columns: minmax(82px, 1fr) 24px minmax(82px, 1fr);
}

.nffb-journey--compact .nffb-journey__arrow {
    font-size: 13px;
    height: 24px;
    width: 24px;
}

.nffb-journey--compact .nffb-journey__point strong {
    font-size: 13px;
}

.nffb-nearby__wait {
    color: #94f5d9;
    display: block;
    font-size: 10px;
    font-weight: 800;
    max-width: 110px;
    text-align: right;
}

.nffb-controls,
.nffb-timetable-disclosure {
    margin-top: 16px;
    overflow: hidden;
}

.nffb-controls > summary,
.nffb-timetable-disclosure > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
    min-height: 72px;
    padding: 17px 20px;
}

.nffb-controls > summary::-webkit-details-marker,
.nffb-timetable-disclosure > summary::-webkit-details-marker {
    display: none;
}

.nffb-controls > summary small,
.nffb-controls > summary strong,
.nffb-timetable-disclosure > summary small,
.nffb-timetable-disclosure > summary strong {
    display: block;
}

.nffb-controls > summary small,
.nffb-timetable-disclosure > summary small {
    color: var(--nffb-blue-dark);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.nffb-controls > summary strong,
.nffb-timetable-disclosure > summary strong {
    color: var(--nffb-ink);
    font-size: 14px;
}

.nffb-controls > summary > span:last-child,
.nffb-timetable-disclosure > summary > span:last-child {
    color: var(--nffb-blue-dark);
    font-size: 22px;
    transition: transform .18s ease;
}

.nffb-controls[open] > summary > span:last-child,
.nffb-timetable-disclosure[open] > summary > span:last-child {
    transform: rotate(45deg);
}

.nffb-controls[open] > summary,
.nffb-timetable-disclosure[open] > summary {
    border-bottom: 1px solid var(--nffb-line);
}

.nffb-controls .nffb-search-panel,
.nffb-timetable-disclosure .nffb-timetable {
    border: 0;
    box-shadow: none;
    margin: 0;
}

.nffb-timetable {
    margin-top: 0;
}

.nffb-section-heading--table {
    border-bottom: 1px solid var(--nffb-line);
    padding-bottom: 20px;
}

.nffb-section-heading--table p:not(.nffb-section-kicker) {
    color: var(--nffb-muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 8px 0 0;
}

.nffb-source-link {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #dbe4f0;
    border-radius: 11px;
    color: #334155;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    min-height: 42px;
    padding: 9px 12px;
    text-decoration: none;
}

.nffb-source-link:hover {
    border-color: #9fb0c5;
    color: var(--nffb-blue-dark);
}

.nffb-time-groups {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.nffb-time-group {
    min-width: 0;
}

.nffb-time-group h3 {
    align-items: center;
    color: #526277;
    display: flex;
    font-size: 11px;
    font-weight: 850;
    gap: 7px;
    letter-spacing: .08em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.nffb-time-group h3::before {
    background: #adc9ff;
    border-radius: 50%;
    content: "";
    height: 8px;
    width: 8px;
}

.nffb-time-group:nth-child(2) h3::before {
    background: #f6c453;
}

.nffb-time-group:nth-child(3) h3::before {
    background: #7c6df2;
}

.nffb-time-list {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
}

.nffb-time-chip {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    color: #26344b;
    display: flex;
    font-size: 14px;
    font-weight: 820;
    justify-content: center;
    min-height: 42px;
    padding: 8px;
}

.nffb-time-chip.is-next {
    background: #e8f1ff;
    border-color: #8eb5ff;
    box-shadow: 0 7px 18px rgba(20, 99, 255, .12);
    color: #0b46bf;
}

.nffb-time-chip.is-past {
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.nffb-table-placeholder {
    align-items: center;
    color: var(--nffb-muted);
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 150px;
    text-align: center;
}

.nffb-table-placeholder span {
    background: linear-gradient(90deg, #e8eef6 20%, #f5f7fa 40%, #e8eef6 60%);
    background-size: 200% 100%;
    border-radius: 11px;
    height: 42px;
    width: min(100%, 330px);
}

.nffb-table-placeholder p {
    font-size: 13px;
    margin: 0;
}

.nffb-table-empty {
    background: #fff8e7;
    border: 1px solid #f3d692;
    border-radius: 14px;
    color: #744307;
    font-size: 13px;
    line-height: 1.55;
    padding: 16px;
}

.nffb-trust-grid {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.nffb-trust-grid article {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--nffb-line);
    border-radius: 17px;
    display: flex;
    gap: 13px;
    padding: 17px;
}

.nffb-trust-grid article > span {
    align-items: center;
    background: #e8f1ff;
    border-radius: 10px;
    color: #0b46bf;
    display: flex;
    flex: 0 0 38px;
    font-size: 11px;
    font-weight: 900;
    height: 38px;
    justify-content: center;
}

.nffb-trust-grid strong {
    color: var(--nffb-ink);
    display: block;
    font-size: 13px;
    line-height: 1.3;
}

.nffb-trust-grid p {
    color: var(--nffb-muted);
    font-size: 11px;
    line-height: 1.5;
    margin: 5px 0 0;
}

.nffb-source-note {
    align-items: flex-start;
    background: #f0f5fb;
    border: 1px solid #d9e4f1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    margin-top: 18px;
    padding: 17px;
}

.nffb-source-note strong {
    color: #26344b;
    display: block;
    font-size: 12px;
}

.nffb-source-note p {
    color: #526277;
    font-size: 11px;
    line-height: 1.5;
    margin: 5px 0 0;
}

.nffb-source-note > span {
    color: #526277;
    font-size: 10px;
    font-weight: 800;
}

.nffb-noscript {
    background: #fff3d1;
    border: 1px solid #f4d27a;
    border-radius: 14px;
    color: #70430b;
    margin-top: 18px;
    padding: 14px;
}

.nffb-error-state {
    background: #fff;
    border: 1px solid #f0b5b0;
    border-radius: 16px;
    color: #8f251d;
    line-height: 1.55;
    margin: 18px 0;
    padding: 18px;
}

/* Tempo real: uma única superfície de decisão, sem empilhar cartões. */
.nffb-live {
    margin-top: 16px;
    overflow: hidden;
    padding: clamp(20px, 3vw, 32px);
}

.nffb-live__header {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.nffb-live__header h2 {
    color: var(--nffb-ink);
    font-size: clamp(24px, 3.4vw, 34px);
    letter-spacing: -.045em;
    line-height: 1.08;
    margin: 0;
}

.nffb-live__header p:not(.nffb-section-kicker) {
    color: var(--nffb-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 7px 0 0;
}

.nffb-live__badge {
    align-items: center;
    background: #eafbf6;
    border: 1px solid #bcebdc;
    border-radius: 999px;
    color: #087a55;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 850;
    gap: 6px;
    min-height: 32px;
    padding: 7px 10px;
    text-transform: uppercase;
}

.nffb-live__badge i {
    animation: nffb-live-pulse 1.8s ease-in-out infinite;
    background: #00a884;
    border: 3px solid #c9f3e7;
    border-radius: 50%;
    height: 11px;
    width: 11px;
}

.nffb-live__badge small {
    background: #fff;
    border-radius: 999px;
    color: #526277;
    font-size: 8px;
    letter-spacing: .05em;
    padding: 3px 5px;
}

.nffb-live > .nffb-center-destination {
    background: linear-gradient(135deg, #f7faff, #eef5ff);
    border-color: #cddcf2;
    margin-top: 20px;
}

.nffb-live > .nffb-center-destination > div > span {
    color: var(--nffb-blue-dark);
}

.nffb-live > .nffb-center-destination label {
    color: var(--nffb-ink);
}

.nffb-live > .nffb-center-destination select {
    border: 1px solid #b9cbe3;
    box-shadow: 0 5px 16px rgba(20, 99, 255, .06);
}

.nffb-live > .nffb-center-destination select:focus {
    border-color: var(--nffb-blue);
    box-shadow: var(--nffb-focus);
}

.nffb-live-line-picker {
    border-bottom: 1px solid var(--nffb-line);
    margin-top: 8px;
    padding-bottom: 14px;
}

.nffb-live-line-picker summary {
    align-items: center;
    border-radius: 10px;
    color: var(--nffb-blue-dark);
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 850;
    min-height: 38px;
    padding: 7px 8px;
}

.nffb-live-line-picker summary:hover,
.nffb-live-line-picker summary:focus-visible {
    background: #eef4ff;
    outline: 0;
}

.nffb-live-line-picker__body {
    background: #f7f9fc;
    border: 1px solid #d8e2ee;
    border-radius: 14px;
    display: grid;
    gap: 8px;
    margin-top: 5px;
    padding: 13px;
}

.nffb-live-line-picker__body label {
    color: #334155;
    font-size: 12px;
    font-weight: 850;
}

.nffb-live-line-picker__body select {
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, #64748b 50%) calc(100% - 18px) calc(50% - 2px) / 5px 5px no-repeat,
        linear-gradient(135deg, #64748b 50%, transparent 50%) calc(100% - 13px) calc(50% - 2px) / 5px 5px no-repeat,
        #fff;
    border: 1px solid #b9cbe3;
    border-radius: 12px;
    color: #172033;
    font-size: 13px;
    font-weight: 750;
    min-height: 46px;
    padding: 10px 38px 10px 12px;
    width: 100%;
}

.nffb-live-line-picker__body select:focus {
    border-color: var(--nffb-blue);
    box-shadow: var(--nffb-focus);
    outline: 0;
}

.nffb-live-line-picker__body small {
    color: #6b7c91;
    font-size: 10px;
    line-height: 1.45;
}

.nffb-live-line-picker__body button {
    background: #fff;
    border: 1px solid #b9cbe3;
    border-radius: 10px;
    color: var(--nffb-blue-dark);
    font-size: 11px;
    font-weight: 850;
    justify-self: start;
    min-height: 38px;
    padding: 8px 11px;
}

.nffb-shell.is-line-map-mode .nffb-live-line-picker {
    border-bottom-color: #b9d0fb;
}

.nffb-shell.is-line-map-mode .nffb-live > .nffb-center-destination {
    display: none;
}

.nffb-live__stops {
    border-bottom: 1px solid var(--nffb-line);
    margin-top: 5px;
    padding-bottom: 10px;
}

.nffb-live__stops summary {
    border-radius: 10px;
    color: #526277;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    min-height: 38px;
    padding: 10px 8px;
    width: max-content;
}

.nffb-live__stops summary:hover,
.nffb-live__stops summary:focus-visible {
    background: #f1f5f9;
    color: var(--nffb-blue-dark);
    outline: 0;
}

.nffb-live__stops-body,
.nffb-live__stops > .nffb-live__stops-body {
    background: #f7f9fc;
    border: 1px solid #d8e2ee;
    border-radius: 14px;
    display: block;
    margin-top: 5px;
    overflow: visible;
    padding: 13px;
}

.nffb-live__stops > span {
    color: #526277;
    display: block;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.nffb-live__stops > div {
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px 2px 5px;
    scrollbar-width: thin;
}

.nffb-live-stop {
    align-items: center;
    background: #f5f8fc;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    color: #2e3e55;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 9px;
    min-height: 42px;
    padding: 8px 11px;
}

.nffb-live-stop strong {
    font-size: 12px;
}

.nffb-live-stop span {
    color: #6b7c91;
    font-size: 10px;
    font-weight: 750;
}

.nffb-live-stop[aria-pressed="true"] {
    background: #eaf1ff;
    border-color: #a8c7ff;
    color: #0b46bf;
}

.nffb-live__loading,
.nffb-live__empty {
    align-items: center;
    display: flex;
    gap: 12px;
    min-height: 92px;
    padding: 20px 0 4px;
}

.nffb-live__loading > span {
    animation: nffb-spin .9s linear infinite;
    border: 3px solid #dce6f3;
    border-radius: 50%;
    border-top-color: var(--nffb-blue);
    height: 26px;
    width: 26px;
}

.nffb-live__loading p,
.nffb-live__empty p {
    color: var(--nffb-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.nffb-live__empty {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
}

.nffb-live__results {
    margin-top: 22px;
}

.nffb-live__results-heading {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 5px;
}

.nffb-live__results-heading > div {
    display: grid;
    gap: 2px;
}

.nffb-live__results-heading span {
    color: var(--nffb-ink);
    font-size: 13px;
    font-weight: 850;
}

.nffb-live__results-heading strong {
    color: var(--nffb-muted);
    font-size: 10px;
    font-weight: 700;
}

.nffb-live__refresh {
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--nffb-blue-dark);
    font-size: 11px;
    font-weight: 800;
    min-height: 38px;
    padding: 7px 9px;
}

.nffb-live__refresh:disabled {
    cursor: wait;
    opacity: .5;
}

.nffb-live__arrivals {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nffb-live-arrival {
    align-items: start;
    border-top: 1px solid var(--nffb-line);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(105px, .28fr) minmax(0, 1fr);
    padding: 19px 0;
}

.nffb-live-arrival.is-next {
    background: linear-gradient(90deg, rgba(20, 99, 255, .07), transparent 78%);
    border-top-color: #b9d0fb;
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
}

.nffb-live-arrival__time {
    display: grid;
    gap: 2px;
}

.nffb-live-arrival__time strong {
    color: #071735;
    font-size: clamp(22px, 3.3vw, 31px);
    letter-spacing: -.045em;
    line-height: 1;
}

.nffb-live-arrival.is-next .nffb-live-arrival__time strong {
    color: var(--nffb-blue-dark);
}

.nffb-live-arrival__time span {
    color: var(--nffb-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.nffb-live-arrival__content {
    min-width: 0;
}

.nffb-live-arrival__route {
    align-items: center;
    display: flex;
    gap: 9px;
}

.nffb-live-arrival__route > strong {
    color: var(--nffb-ink);
    font-size: 15px;
    line-height: 1.25;
}

.nffb-live-arrival__line {
    align-items: center;
    background: #071735;
    border-radius: 9px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-height: 29px;
    min-width: 42px;
    padding: 5px 8px;
}

.nffb-live-journey {
    align-items: center;
    display: grid;
    gap: 9px;
    grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
    margin-top: 11px;
    max-width: 590px;
}

.nffb-live-journey > span {
    display: grid;
    min-width: 0;
}

.nffb-live-journey small {
    color: #718096;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.nffb-live-journey strong {
    color: #18243a;
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.nffb-live-journey i {
    align-items: center;
    background: #eaf1ff;
    border-radius: 50%;
    color: var(--nffb-blue-dark);
    display: inline-flex;
    font-size: 13px;
    font-style: normal;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.nffb-live-arrival__detail {
    color: var(--nffb-muted);
    font-size: 10px;
    line-height: 1.45;
    margin: 9px 0 0;
}

.nffb-live-arrival__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.nffb-live-arrival__actions button {
    background: #f5f8fc;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    color: #334155;
    font-size: 10px;
    font-weight: 800;
    min-height: 36px;
    padding: 7px 10px;
}

.nffb-live-arrival__actions .nffb-live-alert-button {
    background: #eafbf6;
    border-color: #bcebdc;
    color: #087a55;
}

.nffb-live-arrival__actions .nffb-live-alert-button[aria-pressed="true"] {
    background: #087a55;
    border-color: #087a55;
    color: #fff;
}

.nffb-live-map {
    background: #eef3f9;
    border: 1px solid #d7e1ed;
    border-radius: 18px;
    margin: 10px -10px 0;
    overflow: hidden;
    padding: 16px;
    scroll-margin-top: 112px;
}

.nffb-live-map__journey {
    background: linear-gradient(135deg, #071735 0%, #0b2f49 100%);
    border-radius: 15px;
    color: #fff;
    margin-bottom: 14px;
    padding: 14px 16px;
}

.nffb-live-map__journey > p {
    color: #63f0d1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.nffb-live-map__journey-route {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
}

.nffb-live-map__journey-route > span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.nffb-live-map__journey-route small {
    color: #b9cce0;
    font-size: 9px;
    font-weight: 750;
}

.nffb-live-map__journey-route strong {
    color: #fff;
    font-size: clamp(16px, 2.6vw, 22px);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.nffb-live-map__journey-route i {
    align-items: center;
    background: #14e2bd;
    border-radius: 50%;
    color: #071735;
    display: inline-flex;
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.nffb-live-map__journey-detail {
    border-top: 1px solid rgba(255, 255, 255, .13);
    color: #c8d7e6;
    display: block;
    font-size: 9px;
    line-height: 1.45;
    margin-top: 11px;
    padding-top: 9px;
}

.nffb-live-map__heading {
    align-items: end;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.nffb-live-map__status {
    display: grid;
    gap: 3px;
    justify-items: end;
    text-align: right;
}

.nffb-live-map__status small {
    color: #475569;
    font-size: 9px;
    font-weight: 700;
}

.nffb-live-map__heading span {
    color: #475569;
    font-size: 10px;
    font-weight: 800;
}

.nffb-live-map__heading h3 {
    color: var(--nffb-ink);
    font-size: 20px;
    letter-spacing: -.025em;
    margin: 2px 0 0;
}

.nffb-live-map__heading > span {
    text-align: right;
}

.nffb-live-map__scope {
    background: #dfe8f3;
    border-radius: 12px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
    padding: 4px;
}

.nffb-live-map__scope button {
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #526277;
    font-size: 11px;
    font-weight: 850;
    min-height: 42px;
    padding: 8px 10px;
}

.nffb-live-map__scope button[aria-pressed="true"] {
    background: #fff;
    box-shadow: 0 3px 12px rgba(7, 23, 53, .1);
    color: #071735;
}

.nffb-live-map__scope button:focus-visible {
    outline: 3px solid rgba(23, 92, 255, .28);
    outline-offset: 2px;
}

.nffb-live-map__directions {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 10px 0;
}

.nffb-live-map__directions-label {
    color: #526277;
    font-size: 10px;
    font-weight: 850;
    grid-column: 1 / -1;
}

.nffb-live-map__direction {
    align-items: center;
    background: rgba(255, 255, 255, .72);
    border: 1px solid #d4deea;
    border-radius: 11px;
    color: #334155;
    display: flex;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
}

.nffb-live-map__direction > i {
    background: #175cff;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(7, 23, 53, .15);
    flex: 0 0 13px;
    height: 13px;
    width: 13px;
}

.nffb-live-map__direction.is-direction-2 > i {
    background: #00a98f;
}

.nffb-live-map__direction > span {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.nffb-live-map__direction strong {
    color: #334155;
    font-size: 10px;
    font-weight: 850;
}

.nffb-live-map__direction small {
    color: #64748b;
    font-size: 9px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nffb-live-map__direction.is-intended {
    background: #fff;
    border-color: #9ebcff;
    box-shadow: 0 4px 14px rgba(23, 92, 255, .08);
}

.nffb-live-map__alerts {
    display: grid;
    gap: 8px;
    margin: 0 0 10px;
}

.nffb-live-map__alert {
    align-items: flex-start;
    background: #fff6dd;
    border: 1px solid #efca65;
    border-radius: 12px;
    color: #694b00;
    display: flex;
    gap: 9px;
    padding: 10px 12px;
    text-align: left;
    width: 100%;
}

.nffb-live-map__alert > span:first-child {
    align-items: center;
    background: #b96b00;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 14px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
}

.nffb-live-map__alert strong,
.nffb-live-map__alert small {
    display: block;
}

.nffb-live-map__alert strong {
    font-size: 11px;
    margin-bottom: 2px;
}

.nffb-live-map__alert small {
    font-size: 9px;
    line-height: 1.45;
}

.nffb-live-map__canvas {
    background: #d9e4ec;
    border: 1px solid #c7d4df;
    border-radius: 14px;
    height: clamp(310px, 47vw, 440px);
    overflow: hidden;
    width: 100%;
    z-index: 0;
}

.nffb-live-map__canvas .leaflet-control-attribution {
    font-size: 8px;
}

.nffb-live-map__canvas .leaflet-control-zoom a {
    color: #071735;
}

.nffb-live-map__vehicle-card {
    background: #fff;
    border: 1px solid #cbd8e6;
    border-radius: 13px;
    box-shadow: 0 10px 30px rgba(7, 23, 53, .14);
    margin-top: 10px;
    padding: 13px 44px 13px 14px;
    position: relative;
}

.nffb-live-map__vehicle-card-close {
    align-items: center;
    background: #e8eef6;
    border: 0;
    border-radius: 50%;
    color: #334155;
    display: inline-flex;
    font-size: 20px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 9px;
    top: 9px;
    width: 32px;
}

.nffb-live-map__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.nffb-live-map__legend span {
    align-items: center;
    color: #526277;
    display: inline-flex;
    font-size: 9px;
    font-weight: 750;
    gap: 5px;
}

.nffb-live-map__legend i {
    background: #175cff;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #aab8c8;
    height: 10px;
    width: 10px;
}

.nffb-live-map__legend .is-user { background: #00a884; }
.nffb-live-map__legend .is-bus { background: #071735; border-radius: 3px; width: 14px; }
.nffb-live-map__legend .is-waiting-bus { background: #8a6614; border-radius: 3px; width: 14px; }
.nffb-live-map__legend .is-last-known-bus { background: #94a3b8; border-radius: 3px; width: 14px; }

.nffb-live-map__notice {
    color: #475569;
    font-size: 9px;
    line-height: 1.45;
    margin: 8px 0 0;
}

.nffb-live-map__report {
    color: #4c6078;
    display: inline-block;
    font-size: 9px;
    font-weight: 750;
    margin-top: 3px;
    text-decoration: none;
}

.nffb-live-map__report:hover {
    color: var(--nffb-blue-dark);
    text-decoration: underline;
}

.nffb-public-notices {
    background: #f8fafc;
    border: 1px solid #d8e2ee;
    border-radius: 14px;
    margin-top: 14px;
    overflow: hidden;
}

.nffb-public-notices__heading {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    display: flex;
    font-size: 12px;
    gap: 8px;
    padding: 9px 12px;
}

.nffb-public-notices__heading > span {
    align-items: center;
    background: #175cff;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.nffb-public-notices [data-public-notice-list] {
    display: grid;
}

.nffb-public-notice {
    align-items: flex-start;
    display: grid;
    gap: 10px;
    grid-template-columns: 25px minmax(0, 1fr);
    padding: 12px;
}

.nffb-public-notice + .nffb-public-notice {
    border-top: 1px solid #e2e8f0;
}

.nffb-public-notice__icon {
    align-items: center;
    background: #e9f1ff;
    border-radius: 50%;
    color: #0b46bf;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    height: 25px;
    justify-content: center;
    width: 25px;
}

.nffb-public-notice strong {
    color: #172033;
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.nffb-public-notice p {
    color: #526277;
    font-size: 12px;
    line-height: 1.5;
    margin: 4px 0 0;
}

.nffb-public-notice a {
    color: #0b46bf;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 7px;
    text-decoration: none;
}

.nffb-public-notice.is-attention {
    background: #fffaf0;
}

.nffb-public-notice.is-attention .nffb-public-notice__icon {
    background: #ffedbd;
    color: #81530c;
}

.nffb-public-notice.is-urgent {
    background: #fff5f4;
}

.nffb-public-notice.is-urgent .nffb-public-notice__icon {
    background: #fbd4d0;
    color: #9f241b;
}

.nffb-ad-slot {
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin: 16px 0 2px;
    min-height: 90px;
    overflow: hidden;
    padding: 10px;
    text-align: center;
}

.nffb-ad-slot__label {
    color: #7b899b;
    display: block;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.nffb-ad-slot.is-direct {
    background: #fff;
    min-height: 0;
    padding: 0;
    text-align: left;
}

.nffb-ad-slot__direct {
    align-items: center;
    color: inherit;
    display: grid;
    gap: 13px;
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 11px;
    text-decoration: none;
}

.nffb-ad-slot__direct.has-no-image {
    grid-template-columns: 1fr;
}

.nffb-ad-slot__direct img {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.nffb-ad-slot__direct-copy {
    display: grid;
    gap: 4px;
}

.nffb-ad-slot__direct-copy .nffb-ad-slot__label {
    margin: 0;
}

.nffb-ad-slot__direct-copy strong {
    color: var(--nffb-ink);
    font-size: 14px;
    line-height: 1.25;
}

.nffb-ad-slot__direct-copy p {
    color: var(--nffb-muted);
    font-size: 10px;
    line-height: 1.45;
    margin: 0;
}

.nffb-ad-slot__direct:hover strong {
    color: var(--nffb-blue-dark);
}

.nffb-map-bus-marker {
    background: transparent;
    border: 0;
    display: block !important;
    filter: drop-shadow(0 7px 7px rgba(2, 8, 23, .34));
    transition: transform 9s linear, opacity .2s ease;
    will-change: transform;
}

.nffb-live-map__canvas.is-repositioning .nffb-map-bus-marker {
    transition: none;
}

.nffb-map-bus-marker__bus {
    height: 52px;
    left: 4px;
    overflow: visible;
    position: absolute;
    top: 0;
    width: 44px;
}

.nffb-map-bus-marker::after {
    background: #00a98f;
    border: 2px solid #fff;
    border-radius: 50%;
    bottom: 1px;
    box-shadow: 0 1px 4px rgba(2, 8, 23, .32);
    content: "";
    height: 8px;
    left: 22px;
    position: absolute;
    width: 8px;
}

.nffb-map-bus-marker__body {
    fill: #071735;
    stroke: #fff;
    stroke-width: 2.2px;
}

.nffb-map-bus-marker.is-direction-1 .nffb-map-bus-marker__body { fill: #175cff; }
.nffb-map-bus-marker.is-direction-2 .nffb-map-bus-marker__body { fill: #008e79; }

.nffb-map-bus-marker__window { fill: #c9f7ec; }
.nffb-map-bus-marker__divider { stroke: #80cabd; stroke-width: 1.3px; }
.nffb-map-bus-marker__light { fill: #ffca3a; stroke: #fff; stroke-width: .7px; }
.nffb-map-bus-marker__bumper { fill: #fff; }
.nffb-map-bus-marker__wheel { fill: #020817; stroke: #fff; stroke-width: 1.2px; }

.nffb-map-bus-marker b {
    background: #fff;
    border-radius: 5px;
    color: #071735;
    font-size: 9px;
    font-weight: 900;
    left: 50%;
    line-height: 1;
    min-width: 20px;
    padding: 2px 3px;
    position: absolute;
    text-align: center;
    top: 11px;
    transform: translateX(-50%);
    z-index: 2;
}

.nffb-map-city-dot {
    background: transparent;
    border: 0;
    display: block !important;
}

.nffb-map-city-dot > span {
    background: #718096;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(2, 8, 23, .34);
    display: block;
    height: 14px;
    margin: 8px;
    transition: transform 9s linear, background-color .2s ease;
    width: 14px;
}

.nffb-live-map__canvas.is-repositioning .nffb-map-city-dot > span {
    transition: none;
}

.nffb-map-city-dot.is-moving > span { background: #46647f; }
.nffb-map-city-dot.is-paused > span { background: #c07a10; }
.nffb-map-city-dot.is-delayed > span { background: #8293a7; }
.nffb-map-city-dot.is-signal-waiting > span { background: #9b7921; }
.nffb-map-city-dot.is-last-known > span { background: #b1bcc9; opacity: .72; }

.nffb-map-bus-marker__motion {
    display: none;
    left: -1px;
    position: absolute;
    top: 15px;
    z-index: 3;
}

.nffb-map-bus-marker__motion i {
    background: #00a98f;
    border-radius: 999px;
    display: block;
    height: 3px;
    margin: 5px 0;
    width: 10px;
}

.nffb-map-bus-marker__motion i:last-child {
    margin-left: 3px;
    width: 7px;
}

.nffb-map-bus-marker.is-moving .nffb-map-bus-marker__motion {
    display: block;
}

.nffb-map-bus-marker.is-moving .nffb-map-bus-marker__bus {
    animation: nffb-bus-drive .7s ease-in-out infinite alternate;
}

.nffb-map-bus-marker.is-paused::after {
    background: #f59e0b;
}

.nffb-map-bus-marker.is-delayed .nffb-map-bus-marker__body { fill: #315978; }
.nffb-map-bus-marker.is-delayed .nffb-map-bus-marker__window { fill: #dbeaf3; }

.nffb-map-bus-marker.is-signal-waiting .nffb-map-bus-marker__body { fill: #8a6614; }
.nffb-map-bus-marker.is-signal-waiting .nffb-map-bus-marker__window { fill: #fff0b8; }

.nffb-map-bus-marker.is-last-known {
    filter: grayscale(.35) drop-shadow(0 5px 6px rgba(2, 8, 23, .24));
    opacity: .74;
}

.nffb-map-bus-marker.is-last-known .nffb-map-bus-marker__body { fill: #64748b; }
.nffb-map-bus-marker.is-last-known .nffb-map-bus-marker__window { fill: #e2e8f0; }
.nffb-map-bus-marker.is-last-known::after { background: #94a3b8; }

.nffb-map-bus-marker.is-stationary .nffb-map-bus-marker__body { fill: #9a5800; }
.nffb-map-bus-marker.is-stationary .nffb-map-bus-marker__window { fill: #fff3c4; }
.nffb-map-bus-marker.is-stationary .nffb-map-bus-marker__motion {
    align-items: center;
    background: #b96b00;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 12px;
    font-weight: 900;
    height: 21px;
    justify-content: center;
    left: auto;
    right: -4px;
    top: -3px;
    width: 21px;
}

.nffb-map-bus-marker.is-stationary .nffb-map-bus-marker__motion::before { content: "!"; }
.nffb-map-bus-marker.is-stationary .nffb-map-bus-marker__motion i { display: none; }

@keyframes nffb-bus-drive {
    from { transform: translateY(0); }
    to { transform: translateY(-1.5px); }
}

.nffb-map-popup strong {
    color: #071735;
    font-size: 12px;
}

.nffb-map-popup p {
    color: #334155;
    font-size: 11px;
    margin: 5px 0;
}

.nffb-map-popup .nffb-map-popup__destination {
    color: #0757d9;
    font-size: 12px;
    font-weight: 800;
    margin: 7px 0 4px;
}

.nffb-map-popup .nffb-map-popup__projection {
    background: #ecfdf8;
    border: 1px solid #9de5d2;
    border-radius: 8px;
    color: #075e54;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    padding: 7px 8px;
}

.nffb-map-popup small {
    color: #64748b;
    font-size: 9px;
}

.nffb-map-popup .nffb-map-popup__warning {
    background: #fff6dd;
    border: 1px solid #efca65;
    border-radius: 8px;
    color: #694b00;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    padding: 7px 8px;
}

.nffb-map-popup .nffb-map-popup__last-known {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    padding: 7px 8px;
}

.nffb-map-popup .nffb-map-popup__direction-note {
    background: #eef6ff;
    border: 1px solid #bfd7ff;
    border-radius: 8px;
    color: #173f77;
    font-size: 10px;
    line-height: 1.4;
    padding: 7px 8px;
}

.nffb-map-popup .nffb-map-popup__signal-note {
    background: #fff8e3;
    border: 1px solid #ead18a;
    border-radius: 8px;
    color: #6a4d08;
    font-size: 10px;
    line-height: 1.4;
    padding: 7px 8px;
}

.nffb-live-toast {
    background: #071735;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    bottom: max(18px, env(safe-area-inset-bottom));
    box-shadow: 0 18px 44px rgba(2, 8, 23, .28);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    left: 50%;
    line-height: 1.45;
    max-width: min(92vw, 520px);
    padding: 13px 16px;
    position: fixed;
    transform: translateX(-50%);
    width: max-content;
    z-index: 100001;
}

.nffb-live-toast.is-error {
    background: #8f251d;
}

@keyframes nffb-live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 168, 132, .24); }
    50% { box-shadow: 0 0 0 6px rgba(0, 168, 132, 0); }
}

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

@keyframes nffb-pulse {
    from { opacity: .35; }
    to { opacity: 1; }
}

@media (min-width: 680px) {
    .nffb-shell {
        padding: 30px 22px 76px;
    }

    .nffb-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nffb-field--full {
        grid-column: 1 / -1;
    }

    .nffb-time-groups,
    .nffb-trust-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nffb-source-note {
        align-items: center;
        flex-direction: row;
    }
}

@media (min-width: 900px) {
    .nffb-hero {
        align-items: center;
        grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
    }

    .nffb-auto-action {
        border-left: 1px solid rgba(255, 255, 255, .14);
        border-top: 0;
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 0 0 0 28px;
    }

    .nffb-auto-action .nffb-button {
        grid-column: 1 / -1;
        grid-row: auto;
        margin-top: 4px;
        width: 100%;
    }

    .nffb-auto-action > small {
        grid-column: 2;
    }

    .nffb-next-panel { padding: 30px 36px; }
}

@media (max-width: 679px) {
    body.nffb-app-page #header,
    body.nffb-app-page .header-wrapper.stuck,
    body.nffb-app-page .header-wrapper.stuck #masthead,
    body.nffb-app-page .header-wrapper.stuck .header-inner {
        height: 58px !important;
        min-height: 58px !important;
    }

    body.nffb-app-page .header-wrapper.stuck #logo {
        width: 148px !important;
    }

    body.nffb-app-page .header-wrapper.stuck #logo img {
        max-height: 33px !important;
        width: auto !important;
    }

    .nffb-hero {
        border-radius: 24px;
        gap: 16px;
        padding: 22px;
    }

    .nffb-eyebrow {
        margin-bottom: 7px;
    }

    .nffb-hero h1 {
        font-size: 38px;
        line-height: 1.02;
    }

    .nffb-hero__lead {
        line-height: 1.45;
    }

    .nffb-auto-action {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .nffb-auto-action .nffb-button {
        grid-column: 1 / -1;
        grid-row: auto;
        margin-top: 4px;
        width: 100%;
    }

    .nffb-auto-action > small {
        display: none;
    }

    .nffb-section-heading {
        display: grid;
    }

    .nffb-next-panel__topline {
        align-items: flex-start;
    }

    .nffb-saved-journeys {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .nffb-saved-journeys__list {
        flex-wrap: nowrap;
        margin-right: -20px;
        max-width: calc(100% + 20px);
        overflow-x: auto;
        padding-right: 20px;
        width: calc(100% + 20px);
    }

    .nffb-saved-journeys__list button {
        flex: 0 0 auto;
    }

    .nffb-day-badge {
        flex: 0 0 auto;
    }

    .nffb-center-destination {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .nffb-live-dot,
    .nffb-source-link {
        justify-self: start;
    }

    .nffb-segmented {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nffb-next-time {
        font-size: 46px;
    }

    .nffb-nearby__list > li:not(.nffb-nearby__group) {
        align-items: start;
        gap: 8px 12px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .nffb-nearby__list > li > div {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .nffb-nearby__wait {
        grid-column: 2;
        grid-row: 1;
        max-width: none;
        text-align: left;
    }

    .nffb-nearby__list > li > time {
        grid-column: 1;
        grid-row: 1;
    }

    .nffb-journey--compact,
    .nffb-journey--featured {
        max-width: none;
    }

    .nffb-live {
        border-radius: 19px;
        padding: 18px;
    }

    .nffb-live__header {
        gap: 10px;
    }

    .nffb-live__header h2 {
        font-size: 25px;
    }

    .nffb-live__badge {
        font-size: 9px;
        padding: 6px 8px;
    }

    .nffb-live__badge small {
        display: none;
    }

    .nffb-live-arrival {
        gap: 11px;
        grid-template-columns: 82px minmax(0, 1fr);
        padding: 17px 0;
    }

    .nffb-live-arrival__time strong {
        font-size: 22px;
    }

    .nffb-live-arrival__route {
        align-items: flex-start;
    }

    .nffb-live-arrival__route > strong {
        font-size: 13px;
    }

    .nffb-live-journey {
        gap: 6px;
        grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    }

    .nffb-live-journey i {
        font-size: 11px;
        height: 22px;
        width: 22px;
    }

    .nffb-live-map {
        border-radius: 15px;
        margin-left: -8px;
        margin-right: -8px;
        padding: 10px;
    }

    .nffb-live-map__journey {
        border-radius: 13px;
        padding: 12px;
    }

    .nffb-live-map__journey-route {
        gap: 7px;
        grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
    }

    .nffb-live-map__journey-route i {
        height: 26px;
        width: 26px;
    }

    .nffb-live-map__heading {
        align-items: flex-start;
    }

    .nffb-live-map__heading h3 {
        font-size: 15px;
    }

    .nffb-live-map__canvas {
        height: 330px;
    }

    .nffb-ad-slot__direct {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .nffb-live-toast {
        max-width: calc(100vw - 28px);
        width: calc(100vw - 28px);
    }
}

/* Experiência automática unificada: intenção + tempo real + tabela + mapa. */
.nffb-shell.is-unified-location > .nffb-next-panel {
    display: none;
}

.nffb-shell.is-unified-location > .nffb-controls,
.nffb-shell.is-unified-location.is-awaiting-destination > .nffb-timetable-disclosure {
    display: none;
}

.nffb-shell.is-unified-location .nffb-hero {
    border-radius: 24px;
    box-shadow: 0 18px 46px rgba(2, 8, 23, .16);
    gap: 14px;
    padding: 20px 24px;
}

.nffb-shell.is-unified-location .nffb-hero h1 {
    font-size: clamp(29px, 3.5vw, 40px);
}

.nffb-shell.is-unified-location .nffb-hero__lead {
    font-size: 14px;
    line-height: 1.42;
    margin-top: 8px;
}

.nffb-shell.is-unified-location .nffb-hero__context {
    margin-top: 10px;
}

.nffb-shell.is-unified-location .nffb-auto-action {
    gap: 8px;
}

.nffb-shell.is-unified-location .nffb-auto-action__copy > p:last-child,
.nffb-shell.is-unified-location .nffb-auto-action > small {
    display: none;
}

.nffb-shell.is-unified-location .nffb-button--location {
    min-height: 42px;
    padding-bottom: 9px;
    padding-top: 9px;
}

.nffb-live__stops label {
    color: #334155;
    display: block;
    font-size: 11px;
    font-weight: 850;
    margin-bottom: 7px;
}

.nffb-live__stops select {
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, #64748b 50%) calc(100% - 18px) calc(50% - 2px) / 5px 5px no-repeat,
        linear-gradient(135deg, #64748b 50%, transparent 50%) calc(100% - 13px) calc(50% - 2px) / 5px 5px no-repeat,
        #f7f9fc;
    border: 1px solid #cad7e7;
    border-radius: 12px;
    color: #172033;
    font-size: 13px;
    font-weight: 750;
    min-height: 46px;
    padding: 10px 38px 10px 12px;
    width: 100%;
}

.nffb-live__stops-body > small {
    color: #6b7c91;
    display: block;
    font-size: 10px;
    line-height: 1.4;
    margin-top: 6px;
}

.nffb-live-source {
    border: 1px solid transparent;
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .04em;
    padding: 4px 7px;
    text-transform: uppercase;
}

.nffb-live-source.is-live {
    background: #e8faf4;
    border-color: #b9eadb;
    color: #087a55;
}

.nffb-live-source.is-scheduled {
    background: #fff5dc;
    border-color: #f0d89b;
    color: #81530c;
}

.nffb-live-arrival.is-scheduled {
    background: linear-gradient(90deg, rgba(255, 184, 0, .05), transparent 75%);
}

.nffb-live-arrival.is-scheduled.is-next {
    background: linear-gradient(90deg, rgba(255, 184, 0, .12), transparent 78%);
    border-top-color: #ead49f;
}

.nffb-live-arrival.is-scheduled .nffb-live-arrival__time strong {
    font-size: clamp(21px, 3vw, 28px);
}

.nffb-live-map {
    margin-top: 16px;
}

.nffb-shell.is-city-map-mode .nffb-live-map {
    border-color: #bed7ed;
    box-shadow: 0 12px 32px rgba(7, 23, 53, .08);
}

.nffb-shell.is-city-map-mode .nffb-live-map__heading h3 {
    font-size: clamp(18px, 2.7vw, 24px);
}

@media (min-width: 900px) {
    .nffb-shell.is-unified-location .nffb-hero {
        grid-template-columns: minmax(0, 1fr) minmax(280px, .5fr);
    }
}

@media (max-width: 679px) {
    .nffb-shell.is-unified-location .nffb-hero {
        border-radius: 18px;
        gap: 0;
        padding: 12px 14px;
    }

    .nffb-shell.is-unified-location .nffb-hero__copy {
        display: none;
    }

    .nffb-shell.is-unified-location .nffb-auto-action {
        border-top: 0;
        padding: 0;
    }

    .nffb-shell.is-unified-location .nffb-auto-action__copy {
        align-self: center;
    }

    .nffb-shell.is-unified-location .nffb-auto-action__copy h2 {
        font-size: 15px;
    }

    .nffb-shell.is-unified-location .nffb-auto-action .nffb-button {
        font-size: 13px;
        margin-top: 2px;
    }

    .nffb-shell.is-unified-location .nffb-live {
        margin-top: 10px;
        padding: 16px;
    }

    .nffb-live__header p:not(.nffb-section-kicker) {
        font-size: 14px;
    }

    .nffb-live__badge {
        font-size: 10px;
    }

    .nffb-live > .nffb-center-destination {
        margin-top: 15px;
        padding: 13px;
    }

    .nffb-center-destination label {
        font-size: 18px;
        line-height: 1.25;
    }

    .nffb-center-destination select {
        font-size: 15px;
        min-height: 50px;
    }

    .nffb-live-line-picker summary,
    .nffb-live__stops label,
    .nffb-live__results-heading strong,
    .nffb-live__refresh {
        font-size: 12px;
    }

    .nffb-live__stops select,
    .nffb-live__results-heading span {
        font-size: 14px;
    }

    .nffb-live__stops-body > small,
    .nffb-live-line-picker__body small,
    .nffb-live-arrival__detail {
        font-size: 11px;
    }

    .nffb-live-arrival__route > strong,
    .nffb-live-journey strong {
        font-size: 14px;
    }

    .nffb-live-journey small,
    .nffb-live-map__journey-route small,
    .nffb-live-map__journey-detail,
    .nffb-live-map__status small,
    .nffb-live-map__heading span,
    .nffb-live-map__legend span,
    .nffb-live-map__notice,
    .nffb-live-map__report {
        font-size: 10px;
    }

    .nffb-live-map__directions {
        grid-template-columns: 1fr;
    }

    .nffb-live-map__directions-label {
        grid-column: 1;
    }

    .nffb-live-arrival:nth-child(n + 3) {
        display: none;
    }

    .nffb-live-arrival {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .nffb-live-arrival__route {
        flex-wrap: wrap;
    }

    .nffb-live-map__canvas {
        height: 360px;
    }

    .nffb-live-map__journey-detail {
        display: none;
    }

    .nffb-live-map__journey {
        margin-bottom: 10px;
    }

    .nffb-live-map__scope {
        margin-top: 11px;
    }

    .nffb-live-map__scope button {
        font-size: 11px;
        min-height: 44px;
        padding: 7px 5px;
    }

    .nffb-live-map__direction {
        padding: 7px 9px;
    }

    .nffb-live-map__direction small {
        font-size: 10px;
        white-space: normal;
    }

    .nffb-live-map__status {
        justify-items: start;
        max-width: none;
        text-align: left;
    }

    .nffb-live-map__status > span {
        line-height: 1.25;
    }

    .nffb-live-map__heading {
        display: grid;
        gap: 5px;
    }

    .nffb-live-map__heading h3 {
        font-size: 17px;
    }

    .nffb-live-map__status small {
        display: none;
    }

    #menu-legal-nortfly {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 8px;
        justify-content: center;
    }

    #menu-legal-nortfly > li {
        margin: 0;
    }

    #menu-legal-nortfly > li > a {
        align-items: center;
        display: inline-flex;
        min-height: 32px;
        padding: 4px 3px;
    }
}

/* Fluxo inicial simples: primeiro a intenção, depois horários e mapa. */
.nffb-auto-action__buttons {
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
}

.nffb-auto-action__buttons .nffb-button {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    width: 100%;
}

.nffb-button--manual {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .34);
    color: #fff;
}

.nffb-button--manual:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.nffb-shell.is-awaiting-start > .nffb-next-panel,
.nffb-shell.is-awaiting-start > .nffb-controls,
.nffb-shell.is-awaiting-start > .nffb-timetable-disclosure,
.nffb-shell.is-awaiting-start > .nffb-source-note {
    display: none;
}

.nffb-shell.is-unified-location .nffb-button--manual {
    display: none;
}

.nffb-shell.is-unified-location .nffb-auto-action__buttons {
    grid-template-columns: 1fr;
}

.nffb-live__results-heading time {
    color: var(--nffb-muted);
    font-size: 10px;
    font-weight: 700;
}

.nffb-live-map-toggle {
    align-items: center;
    background: #eef5ff;
    border: 1px solid #bfd4fb;
    border-radius: 14px;
    color: #082f7d;
    display: none;
    justify-content: space-between;
    margin-top: 14px;
    min-height: 58px;
    padding: 11px 13px;
    text-align: left;
    width: 100%;
}

.nffb-live-map-toggle span,
.nffb-live-map-toggle small {
    display: block;
}

.nffb-live-map-toggle span {
    font-size: 14px;
    font-weight: 850;
}

.nffb-live-map-toggle small {
    color: #526b92;
    font-size: 10px;
    line-height: 1.3;
    max-width: 52%;
    text-align: right;
}

@media (max-width: 679px) {
    .nffb-auto-action__buttons {
        grid-template-columns: 1fr;
    }

    .nffb-live-map-toggle:not([hidden]) {
        display: flex;
    }

    .nffb-live-map:not(.is-mobile-open) {
        display: none;
    }

}

@media (prefers-reduced-motion: reduce) {
    .nffb-shell *,
    .nffb-shell *::before,
    .nffb-shell *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .nffb-hero,
    .nffb-controls,
    .nffb-next-panel,
    .nffb-live,
    .nffb-source-link {
        display: none !important;
    }

    .nffb-shell,
    .nffb-timetable {
        box-shadow: none;
        margin: 0;
        max-width: none;
        padding: 0;
    }
}
