:root {
    color-scheme: light;
    --ink: #002d72;
    --muted: #49658f;
    --paper: #f4f7fb;
    --surface: #ffffff;
    --line: #cbd6e6;
    --input-surface: #f4e8d5;
    --input-border: #c7a674;
    --input-focus: #ff5910;
    --green: #002d72;
    --green-light: #e7eef8;
    --coral: #ff5910;
    --yellow: #ff5910;
    --brand-primary: #002d72;
    --brand-on-primary: #ffffff;
    font-family: "Manrope", sans-serif;
}

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #ffffff;
    --muted: #b9c9e2;
    --paper: #06172f;
    --surface: #0b2450;
    --line: #294773;
    --input-surface: #142b50;
    --input-border: #8da7ca;
    --input-focus: #ff7a3d;
    --green: #7fa9e6;
    --green-light: #183865;
    --coral: #ff7a3d;
    --yellow: #ff8a52;
    --brand-primary: #ff7a3d;
    --brand-on-primary: #ffffff;
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 89, 16, .14), transparent 28rem),
        var(--paper);
}

:root[data-theme="dark"] .topbar {
    background: rgba(16, 25, 23, .94);
    border-bottom-color: rgba(237, 244, 241, .13);
}

:root[data-theme="dark"] .shell-menu-panel,
:root[data-theme="dark"] dialog,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .trip-sidebar,
:root[data-theme="dark"] .itinerary-panel,
:root[data-theme="dark"] .metric-grid article,
:root[data-theme="dark"] .foundation-grid article,
:root[data-theme="dark"] .subscription-context,
:root[data-theme="dark"] .branding-form-card,
:root[data-theme="dark"] .integration-card,
:root[data-theme="dark"] .trip-list-item.is-active,
:root[data-theme="dark"] .trip-list-item:hover,
:root[data-theme="dark"] .place-search,
:root[data-theme="dark"] .notification-empty,
:root[data-theme="dark"] .notification-card,
:root[data-theme="dark"] .validation-empty,
:root[data-theme="dark"] .validation-card,
:root[data-theme="dark"] .summary-day,
:root[data-theme="dark"] .assistant-recommendation,
:root[data-theme="dark"] .journal-card {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    color: var(--ink);
    background: var(--input-surface);
    border-color: var(--input-border);
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
    color: #9eb3d2;
}

:root[data-theme="dark"] .button-quiet,
:root[data-theme="dark"] .button-secondary,
:root[data-theme="dark"] .icon-button {
    color: var(--ink);
    background: rgba(255, 255, 255, .055);
    border-color: var(--line);
}

:root[data-theme="dark"] .button-quiet:hover,
:root[data-theme="dark"] .button-secondary:hover,
:root[data-theme="dark"] .button-quiet:focus-visible,
:root[data-theme="dark"] .button-secondary:focus-visible {
    color: #002d72;
    background: #ff5910;
    border-color: #ff5910;
}

:root[data-theme="dark"] .icon-button:hover {
    color: #ecfff8;
    background: var(--green-light);
}

:root[data-theme="dark"] .dialog-close {
    color: #ffffff;
    background: #183865;
    border: 1px solid #5579aa;
}

:root[data-theme="dark"] .dialog-close:hover,
:root[data-theme="dark"] .dialog-close:focus-visible {
    color: #002d72;
    background: var(--coral);
    border-color: var(--coral);
    outline: 3px solid rgba(255, 122, 61, .28);
}

:root[data-theme="dark"] .leaflet-container {
    background: #0a1e40;
}

:root[data-theme="dark"] .planner-map .leaflet-tile-pane {
    filter: brightness(.58) saturate(.72) contrast(1.18) hue-rotate(8deg);
}

:root[data-theme="dark"] .trip-weather-card,
:root[data-theme="dark"] .summary-weather-card,
:root[data-theme="dark"] .trip-weather-unavailable,
:root[data-theme="dark"] .map-toolbar,
:root[data-theme="dark"] .map-help,
:root[data-theme="dark"] .map-provider-status,
:root[data-theme="dark"] .day-planning-notes,
:root[data-theme="dark"] .visit-reorder-help {
    color: var(--ink);
    background: #102f60;
    border-color: var(--line);
}

:root[data-theme="dark"] .trip-weather-card > div span,
:root[data-theme="dark"] .trip-weather-card > div small,
:root[data-theme="dark"] .summary-weather-card > small,
:root[data-theme="dark"] .summary-weather-card > span:last-child,
:root[data-theme="dark"] .trip-weather-source,
:root[data-theme="dark"] .trip-weather-unavailable,
:root[data-theme="dark"] .map-help,
:root[data-theme="dark"] .map-language-select,
:root[data-theme="dark"] .map-provider-status,
:root[data-theme="dark"] .day-planning-notes p,
:root[data-theme="dark"] .visit-reorder-help {
    color: var(--muted);
}

:root[data-theme="dark"] .summary-weather-badge {
    color: #002d72;
    background: #ff7a3d;
}

:root[data-theme="dark"] .summary-weather-badge.is-expanded {
    color: #ff8a52;
    background: transparent;
}

.theme-icon-dark {
    display: none;
}

:root[data-theme="dark"] .theme-icon-light {
    display: none;
}

:root[data-theme="dark"] .theme-icon-dark {
    display: inline-block;
}

.theme-toggle {
    white-space: nowrap;
}

/* Centre des offres et quotas */
.subscription-page {
    min-height: 720px;
    padding: 64px 0 100px;
}

.subscription-loading,
.subscription-error {
    min-height: 520px;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.subscription-loading h1,
.subscription-error h1,
.subscription-hero h1 {
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    line-height: .96;
}

.subscription-loading > p:last-child,
.subscription-error > p,
.subscription-hero > div > p:last-child {
    max-width: 690px;
    color: var(--muted);
    line-height: 1.65;
}

.subscription-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: end;
    gap: 64px;
    padding-bottom: 50px;
}

.subscription-context {
    display: grid;
    gap: 14px;
    padding: 24px;
    background: rgba(255, 253, 248, .78);
    border: 1px solid rgba(23, 33, 31, .12);
    border-radius: 24px;
}

.subscription-context label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.subscription-context select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
}

.subscription-context .tag {
    justify-self: start;
}

.current-plan-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 46px;
    margin-top: 24px;
    padding: 34px;
    color: white;
    background:
        radial-gradient(circle at 90% 5%, rgba(255, 89, 16, .2), transparent 18rem),
        var(--green);
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(0, 45, 114, .18);
}

.current-plan-panel .card-kicker {
    color: var(--yellow);
}

.current-plan-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.current-plan-heading h2 {
    margin: 0;
    font-size: 2.5rem;
}

.current-plan-heading .status {
    color: var(--green);
    background: white;
}

.billing-test-badge {
    display: inline-flex;
    padding: 6px 10px;
    color: #2b2108;
    background: var(--yellow);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.billing-test-badge[data-provider="Simulation"] {
    color: white;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
}

.current-plan-copy > p:not(.card-kicker) {
    max-width: 610px;
    color: rgba(255, 255, 255, .76);
}

.current-plan-price {
    display: block;
    margin-top: 24px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 2.2rem;
}

.current-plan-copy > small {
    color: rgba(255, 255, 255, .68);
}

.current-plan-actions {
    margin-top: 22px;
}

.current-plan-actions .button-light {
    color: var(--green);
    background: white;
}

.entitlement-list {
    display: grid;
    align-content: center;
    gap: 9px;
    padding: 22px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
}

.entitlement-list span {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.entitlement-list span:last-child {
    border-bottom: 0;
}

.entitlement-list .is-unavailable {
    color: rgba(255, 255, 255, .46);
}

.billing-section {
    padding-top: 68px;
}

.billing-section .section-heading,
.plans-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}

.billing-section h2,
.billing-safety-note h2 {
    margin: 0;
    font-size: 2.1rem;
}

.billing-section .section-heading > small,
.plans-heading > div > p:last-child {
    max-width: 520px;
    color: var(--muted);
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.usage-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid rgba(23, 33, 31, .1);
    border-radius: 22px;
}

.usage-card > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.usage-card > div span {
    color: var(--muted);
    font-size: .86rem;
}

.usage-card progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    accent-color: var(--coral);
    border: 0;
    border-radius: 999px;
}

.usage-card small {
    color: var(--muted);
    line-height: 1.45;
}

.billing-cycle-toggle {
    display: inline-flex;
    padding: 4px;
    background: rgba(0, 45, 114, .08);
    border-radius: 999px;
}

.billing-cycle-toggle button {
    min-height: 38px;
    padding: 0 17px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.billing-cycle-toggle button.is-active {
    color: white;
    background: var(--green);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.plan-grid.is-busy,
.billing-cycle-toggle.is-busy {
    opacity: .55;
    pointer-events: none;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid rgba(23, 33, 31, .12);
    border-radius: 26px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 46px rgba(40, 59, 52, .12);
}

.plan-card.is-current {
    border: 2px solid var(--green);
    box-shadow: 0 18px 46px rgba(0, 45, 114, .13);
}

.plan-card.is-current::before {
    content: "Actuelle";
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 5px 9px;
    color: white;
    background: var(--green);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.plan-card h3 {
    margin: 0 0 10px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 2rem;
}

.plan-card header > p:last-child {
    min-height: 54px;
    color: var(--muted);
    line-height: 1.5;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 22px 0;
}

.plan-price strong {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 2.15rem;
}

.plan-price span {
    color: var(--muted);
    font-size: .78rem;
}

.plan-card ul {
    display: grid;
    gap: 10px;
    min-height: 106px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-card li::before {
    content: "✓";
    margin-right: 9px;
    color: var(--green);
    font-weight: 800;
}

.plan-quotas {
    padding: 14px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: .8rem;
}

.plan-seat-picker {
    display: grid;
    grid-template-columns: 1fr 90px;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: .83rem;
    font-weight: 700;
}

.plan-seat-picker input {
    min-height: 40px;
    width: 100%;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
}

.plan-card > .button {
    width: 100%;
    margin-top: auto;
}

.billing-safety-note {
    display: grid;
    grid-template-columns: minmax(240px, .6fr) minmax(0, 1.4fr);
    gap: 44px;
    margin-top: 68px;
    padding: 30px;
    background: rgba(255, 89, 16, .12);
    border: 1px solid rgba(174, 126, 15, .22);
    border-radius: 24px;
}

.billing-safety-note > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

@media (max-width: 980px) {
    .subscription-hero,
    .current-plan-panel,
    .billing-safety-note {
        grid-template-columns: 1fr;
    }

    .subscription-hero {
        gap: 30px;
    }

    .usage-grid,
    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .subscription-page {
        padding: 42px 0 72px;
    }

    .subscription-hero h1 {
        font-size: 3.25rem;
    }

    .current-plan-panel {
        padding: 24px;
    }

    .billing-section .section-heading,
    .plans-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .usage-grid,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .billing-cycle-toggle {
        align-self: flex-start;
    }

    .plan-card {
        min-height: auto;
    }
}

/* Centre de marque blanche */
.branding-page {
    min-height: 720px;
    padding: 64px 0 100px;
}

.branding-loading,
.branding-error {
    min-height: 520px;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.branding-loading h1,
.branding-error h1,
.branding-hero h1 {
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    line-height: .96;
}

.branding-loading > p:last-child,
.branding-error > p,
.branding-hero > div > p:last-child {
    max-width: 690px;
    color: var(--muted);
    line-height: 1.65;
}

.branding-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: end;
    gap: 64px;
    padding-bottom: 42px;
}

.branding-context {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 24px;
    background: rgba(255, 253, 248, .78);
    border: 1px solid rgba(23, 33, 31, .12);
    border-radius: 24px;
}

.branding-context label,
.branding-card label,
.branding-logo-card form {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.branding-context select,
.branding-card input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
}

.branding-context > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.branding-upgrade {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 24px 0;
    padding: 28px 30px;
    background: rgba(255, 89, 16, .12);
    border: 1px solid rgba(174, 126, 15, .22);
    border-radius: 24px;
}

.branding-upgrade h2,
.branding-card h2 {
    margin: 0;
    font-size: 2rem;
}

.branding-upgrade p:last-child {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.branding-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 24px;
    margin-top: 24px;
}

.branding-card,
.branding-preview {
    min-width: 0;
    padding: 30px;
    background: var(--surface);
    border: 1px solid rgba(23, 33, 31, .11);
    border-radius: 26px;
}

.branding-card {
    display: grid;
    gap: 24px;
}

.branding-card .section-heading,
.branding-logo-card .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.branding-card label small,
.branding-logo-card form small,
.branding-restriction {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.5;
}

.branding-color-fields {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

.branding-color-fields input[type="color"] {
    padding: 5px;
    cursor: pointer;
}

.branding-restriction {
    min-height: 23px;
    margin: 0;
}

.branding-card > .button {
    justify-self: start;
}

.branding-preview {
    --preview-brand: #002d72;
    --preview-on-brand: #ffffff;
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 89, 16, .18), transparent 14rem),
        #eef1ec;
}

.branding-preview-browser {
    overflow: hidden;
    margin-top: 24px;
    background: white;
    border: 1px solid rgba(23, 33, 31, .12);
    border-radius: 20px;
    box-shadow: 0 20px 46px rgba(40, 59, 52, .14);
}

.branding-preview-topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--preview-on-brand);
    background: var(--preview-brand);
}

.branding-preview-topbar > span {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--preview-brand);
    background: var(--preview-on-brand);
    border-radius: 50%;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.15rem;
}

.branding-preview-topbar img {
    width: auto;
    max-width: 150px;
    height: 44px;
    object-fit: contain;
}

.branding-preview-topbar strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branding-preview-story {
    min-height: 310px;
    display: grid;
    align-content: center;
    justify-items: start;
    padding: 42px;
}

.branding-preview-story small {
    color: var(--preview-brand);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.branding-preview-story h3 {
    margin: 10px 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;
}

.branding-preview-story p {
    max-width: 440px;
    color: var(--muted);
    line-height: 1.6;
}

.branding-preview-story > span:last-child {
    margin-top: 14px;
    padding: 10px 16px;
    color: var(--preview-on-brand);
    background: var(--preview-brand);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.branding-logo-card {
    margin-top: 24px;
}

.branding-logo-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: center;
    gap: 32px;
}

.branding-logo-current {
    min-height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 20px;
    background-color: #f3f4f0;
    background-image:
        linear-gradient(45deg, #e6e9e4 25%, transparent 25%),
        linear-gradient(-45deg, #e6e9e4 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e6e9e4 75%),
        linear-gradient(-45deg, transparent 75%, #e6e9e4 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.branding-logo-current img {
    width: 100%;
    max-height: 110px;
    object-fit: contain;
}

.branding-logo-current span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.branding-logo-card form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.branding-logo-card form > .button {
    white-space: nowrap;
}

.branding-page.is-busy .branding-grid,
.branding-page.is-busy .branding-logo-card {
    opacity: .62;
}

@media (max-width: 900px) {
    .branding-hero,
    .branding-grid,
    .branding-logo-layout {
        grid-template-columns: 1fr;
    }

    .branding-hero {
        gap: 30px;
    }

    .branding-logo-current {
        max-width: 360px;
    }
}

@media (max-width: 760px) {
    .topbar-context-actions .shell-menu-label-text {
        display: none;
    }
}

@media (max-width: 620px) {
    .branding-page {
        padding: 42px 0 72px;
    }

    .branding-hero h1 {
        font-size: 3.25rem;
    }

    .branding-card,
    .branding-preview {
        padding: 22px;
    }

    .branding-upgrade,
    .branding-card .section-heading,
    .branding-logo-card .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .branding-upgrade > .button,
    .branding-card > .button {
        width: 100%;
    }

    .branding-logo-card form {
        grid-template-columns: 1fr;
    }

    .branding-preview-story {
        min-height: 280px;
        padding: 28px;
    }
}

/* Centre des intégrations et clés API */
.integrations-page {
    min-height: 720px;
    padding: 64px 0 100px;
}

.integrations-loading,
.integrations-error {
    min-height: 520px;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.integrations-loading h1,
.integrations-error h1,
.integrations-hero h1 {
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    line-height: .96;
}

.integrations-loading > p:last-child,
.integrations-error > p,
.integrations-hero > div > p:last-child {
    max-width: 690px;
    color: var(--muted);
    line-height: 1.65;
}

.integrations-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: end;
    gap: 64px;
    padding-bottom: 42px;
}

.integrations-context {
    min-width: 0;
    display: grid;
    gap: 14px;
    padding: 24px;
    background: rgba(255, 253, 248, .78);
    border: 1px solid rgba(23, 33, 31, .12);
    border-radius: 24px;
}

.integrations-context label,
.integration-card label {
    min-width: 0;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.integrations-context select,
.integration-card input,
.integration-card select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
}

.webhook-event-options {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.webhook-event-options legend {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.webhook-event-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    color: var(--ink);
    background: rgba(0, 45, 114, .05);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: .76rem;
}

.webhook-event-options input {
    width: 17px;
    height: 17px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--green);
}

.integrations-context > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.integrations-upgrade {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 24px 0;
    padding: 28px 30px;
    background: rgba(255, 89, 16, .12);
    border: 1px solid rgba(174, 126, 15, .22);
    border-radius: 24px;
}

.integrations-upgrade h2,
.integration-card h2,
.integration-keys-section h2,
.api-secret-content h2 {
    margin: 0;
    font-size: 2rem;
}

.integrations-upgrade p:last-child {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.integration-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.integration-metrics article {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid rgba(23, 33, 31, .1);
    border-radius: 20px;
}

.integration-metrics span,
.integration-metrics small {
    color: var(--muted);
}

.integration-metrics span {
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.integration-metrics strong {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 2rem;
}

.integration-metrics small {
    font-size: .74rem;
}

.integrations-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 24px;
}

.integration-card {
    min-width: 0;
    padding: 30px;
    background: var(--surface);
    border: 1px solid rgba(23, 33, 31, .11);
    border-radius: 26px;
}

.integration-create-card {
    display: grid;
    gap: 24px;
}

.integration-card .section-heading,
.integration-keys-section .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.integration-field-pair {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.integration-restriction {
    min-height: 23px;
    margin: 0;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.5;
}

.integration-create-card > .button {
    justify-self: start;
}

.integration-doc-card {
    display: grid;
    align-content: start;
    gap: 18px;
    color: white;
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 89, 16, .18), transparent 14rem),
        var(--green);
}

.integration-doc-card .card-kicker {
    color: var(--yellow);
}

.integration-doc-card > p:not(.card-kicker) {
    max-width: 630px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.6;
}

.integration-endpoint {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
}

.integration-endpoint span {
    color: rgba(255, 255, 255, .62);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.integration-endpoint code,
.integration-code-block code,
.api-secret-value code {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.integration-code-block {
    min-width: 0;
    display: grid;
    gap: 14px;
    padding: 18px;
    color: #dff5ea;
    background: rgba(7, 24, 21, .62);
    border-radius: 16px;
}

.integration-code-block code {
    white-space: pre-wrap;
    line-height: 1.65;
}

.integration-code-block .text-button {
    justify-self: start;
    color: var(--yellow);
}

.integration-doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    font-size: .8rem;
    font-weight: 800;
}

.integration-doc-links a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.integration-keys-section {
    padding-top: 64px;
}

.integration-keys-section .section-heading {
    align-items: end;
    margin-bottom: 24px;
}

.integration-keys-section .section-heading small {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.5;
}

.integration-key-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.integration-key-card {
    min-width: 0;
    display: grid;
    gap: 20px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid rgba(23, 33, 31, .1);
    border-radius: 22px;
}

.integration-key-card header {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.integration-key-card header > div {
    min-width: 0;
}

.integration-key-card h3 {
    overflow-wrap: anywhere;
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.integration-key-card header code {
    display: block;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: .75rem;
}

.integration-key-card .status[data-status="Active"] {
    color: #15563c;
    background: #dcefe3;
}

.integration-key-card .status[data-status="Expired"],
.integration-key-card .status[data-status="Revoked"],
.integration-key-card .status[data-status="Disabled"] {
    color: #78372b;
    background: #f5dfd8;
}

.integration-key-card dl {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.integration-key-card dl > div {
    min-width: 0;
}

.integration-key-card dt {
    color: var(--muted);
    font-size: .69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.integration-key-card dd {
    overflow-wrap: anywhere;
    margin: 5px 0 0;
    font-size: .84rem;
}

.integration-key-card > .text-button {
    justify-self: start;
}

.webhook-setup-grid {
    margin-bottom: 24px;
}

.webhook-list {
    margin-top: 18px;
}

.webhook-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.webhook-actions .text-button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.webhook-doc-note {
    color: rgba(255, 255, 255, .72) !important;
    font-size: .78rem;
}

.integration-doc-card p code {
    overflow-wrap: anywhere;
    color: #dff5ea;
}

.integration-empty {
    padding: 34px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 253, 248, .55);
    border: 1px dashed var(--line);
    border-radius: 22px;
}

.integrations-page.is-busy .integrations-grid,
.integrations-page.is-busy .integration-keys-section {
    opacity: .62;
    pointer-events: none;
}

.api-secret-dialog {
    width: min(640px, calc(100% - 24px));
    max-width: 100%;
    padding: 0;
    overflow: visible;
    color: var(--ink);
    background: transparent;
    border: 0;
}

.api-secret-dialog::backdrop {
    background: rgba(15, 29, 26, .68);
    backdrop-filter: blur(5px);
}

.api-secret-content {
    min-width: 0;
    padding: 34px;
    background: var(--surface);
    border-radius: 26px;
    box-shadow: 0 28px 90px rgba(12, 31, 27, .28);
}

.api-secret-content > p:not(.card-kicker) {
    color: var(--muted);
    line-height: 1.6;
}

.api-secret-value {
    min-width: 0;
    margin: 22px 0;
    padding: 18px;
    color: #dff5ea;
    background: #123c34;
    border-radius: 16px;
}

.api-secret-value code {
    display: block;
    font-size: .9rem;
    line-height: 1.55;
    user-select: all;
}

@media (max-width: 900px) {
    .integrations-hero,
    .integrations-grid {
        grid-template-columns: 1fr;
    }

    .integrations-hero {
        gap: 30px;
    }

    .integration-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .integration-metrics,
    .integration-key-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .integrations-page {
        padding: 42px 0 72px;
    }

    .integrations-hero h1 {
        font-size: 3.25rem;
    }

    .integrations-upgrade,
    .integration-card .section-heading,
    .integration-keys-section .section-heading,
    .integration-key-card header {
        align-items: stretch;
        flex-direction: column;
    }

    .integrations-upgrade > .button,
    .integration-create-card > .button {
        width: 100%;
    }

    .integration-field-pair,
    .integration-key-card dl,
    .webhook-event-options {
        grid-template-columns: 1fr;
    }

    .integration-card,
    .api-secret-content {
        padding: 22px;
    }

    .api-secret-content .actions {
        align-items: stretch;
    }
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-width: 320px;
    background: var(--paper);
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 89, 16, .16), transparent 28rem),
        radial-gradient(circle at 8% 18%, rgba(0, 45, 114, .12), transparent 32rem),
        var(--paper);
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    width: 100%;
    margin: 0;
}

.shell > main,
.shell > footer {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.billing-consent-dialog {
    width: min(680px, calc(100vw - 2rem));
    border: 1px solid var(--border-color, #cbd5d1);
    border-radius: 1.5rem;
    padding: 2rem;
    color: var(--text-color, #10231f);
    background: var(--surface-color, #ffffff);
    box-shadow: 0 24px 80px rgb(0 0 0 / 28%);
}

.billing-consent-dialog::backdrop {
    background: rgb(5 20 17 / 72%);
}

.legal-consent-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .8rem;
    align-items: start;
    margin: 1rem 0;
    line-height: 1.45;
}

.legal-consent-row input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: .15rem;
}

.legal-consent-note {
    color: var(--muted-color, #60706c);
    font-size: .9rem;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 84px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    box-sizing: border-box;
    width: 100%;
    padding-inline: max(20px, calc(50% - 590px));
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(0, 45, 114, .16);
    backdrop-filter: blur(16px);
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--brand-on-primary);
    background: var(--brand-primary);
    border-radius: 50% 50% 44% 56%;
    font-family: "Bricolage Grotesque", sans-serif;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand > [data-brand-name] {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

nav {
    display: flex;
    gap: 26px;
    color: var(--muted);
    font-size: .92rem;
}

nav a.active,
nav a:hover {
    color: var(--ink);
}

.topbar > .button,
.topbar-session {
    justify-self: end;
}

.topbar-session,
.topbar-context-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.topbar-session {
    grid-column: 2 / 4;
}

.topbar.topbar-authenticated {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 12px;
}

.topbar-authenticated > .brand { flex: 0 1 auto; }
.topbar-authenticated > .topbar-session {
    flex: 0 1 auto;
    flex-wrap: wrap;
    max-width: 100%;
    margin-left: auto;
}
.topbar-authenticated .topbar-context-actions { flex-wrap: wrap; }
.topbar-authenticated .topbar-session > *,
.topbar-authenticated .topbar-context-actions > * { flex-shrink: 0; }

.topbar-user {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    gap: .45rem;
    max-width: 15rem;
    min-height: 40px;
    padding: .45rem .75rem;
}

.topbar-planner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .topbar-planner span { display: none; }
    .topbar-planner { padding: 10px; min-width: 44px; min-height: 44px; }
}

.topbar-user:hover,
.topbar-user:focus-visible {
    background: var(--surface-subtle);
    border-color: var(--brand-primary);
}

.topbar-user span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user .topbar-test-account{background:var(--coral);border-radius:999px;color:#071a33;font-size:.62rem;font-weight:800;padding:.12rem .35rem;text-transform:uppercase;white-space:nowrap}

.topbar-public-actions {
    grid-column: 3;
    grid-row: 1;
}

.topbar-context-actions .button,
.shell-menu > summary.button {
    min-height: 40px;
    padding-inline: 15px;
    white-space: nowrap;
}

.menu-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shell-menu {
    position: relative;
}

.shell-menu > summary {
    list-style: none;
}

.shell-menu > summary::-webkit-details-marker {
    display: none;
}

.shell-menu > summary::after {
    content: "▾";
    margin-left: 8px;
    font-size: .72rem;
}

.shell-menu[open] > summary::after {
    content: "▴";
}

.shell-menu[open] > summary.button {
    color: #002d72;
    background: #ff5910;
    border-color: #ff5910;
}

.shell-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1100;
    width: max-content;
    min-width: 230px;
    max-width: min(340px, calc(100vw - 24px));
    display: grid;
    gap: 3px;
    padding: 9px;
    color: var(--ink);
    background: rgba(255, 253, 248, .99);
    border: 1px solid rgba(23, 33, 31, .14);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(23, 33, 31, .16);
}

nav.shell-menu-panel {
    gap: 3px;
    color: var(--ink);
    font-size: .9rem;
}

.shell-menu-panel > a,
.shell-menu-panel > button {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 8px 12px;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

.shell-menu-item-label {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.shell-menu-panel > a:hover,
.shell-menu-panel > a.active,
.shell-menu-panel > button:hover,
.shell-menu-panel > button:focus-visible {
    color: #002d72;
    background: #ff5910;
    outline: none;
}

.shell-menu-panel > .shell-menu-danger {
    color: #9b3025;
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
}

.shell-trip-menu .shell-menu-panel {
    min-width: 290px;
}

.shell-ai-menu .shell-menu-panel,
.shell-team-menu .shell-menu-panel {
    min-width: 245px;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: transform .18s ease, background .18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #002d72;
    background: #ff5910;
    box-shadow: 0 8px 22px rgba(255, 89, 16, .24);
}

.button-primary:hover,
.button-primary:focus-visible {
    color: #002d72;
    background: #ff5910;
    box-shadow: 0 10px 26px rgba(255, 89, 16, .3);
}

.button-secondary,
.button-quiet {
    border-color: rgba(23, 33, 31, .2);
    background: rgba(255, 255, 255, .38);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-quiet:hover,
.button-quiet:focus-visible {
    color: #002d72;
    background: #ff5910;
    border-color: #ff5910;
}

.button-danger {
    color: #fff;
    background: #a53a2e;
    border-color: #8c2d24;
}

.button-danger:hover {
    background: #8c2d24;
}

.button-small {
    min-height: 36px;
    padding-inline: 14px;
    font-size: .82rem;
}

.icon-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    color: var(--ink);
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(23, 33, 31, .18);
    border-radius: 50%;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    color: var(--green);
    background: var(--green-light);
    outline: none;
    transform: translateY(-2px);
}

.icon-button:disabled {
    cursor: progress;
    opacity: .55;
    transform: none;
}

.icon-button-danger {
    color: #9b3025;
    border-color: rgba(155, 48, 37, .28);
}

.icon-button-danger:hover,
.icon-button-danger:focus-visible {
    color: #fff;
    background: #a53a2e;
}

.hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 80px;
    padding: 72px 0;
}

.eyebrow,
.card-kicker {
    margin: 0 0 14px;
    color: var(--coral);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: "Bricolage Grotesque", sans-serif;
    letter-spacing: -.035em;
}

.hero h1 {
    max-width: 670px;
    margin: 0;
    font-size: clamp(4rem, 8vw, 7.4rem);
    line-height: .89;
}

.hero-lead {
    max-width: 610px;
    margin: 32px 0;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.65;
}

.actions,
.trust-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.trust-row {
    margin-top: 38px;
    color: var(--muted);
    font-size: .82rem;
}

.trust-row span:not(:last-child)::after {
    content: "·";
    margin-left: 14px;
}

.journey-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid rgba(23, 33, 31, .1);
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(40, 59, 52, .13);
    transform: rotate(1.5deg);
}

.card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.card-header h2 {
    margin: 0;
    font-size: 1.75rem;
}

.status,
.tag {
    display: inline-flex;
    padding: 7px 11px;
    color: var(--green);
    background: var(--green-light);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.route-map {
    position: relative;
    height: 235px;
    margin: 26px 0;
    overflow: hidden;
    background:
        linear-gradient(35deg, transparent 48%, rgba(0, 45, 114, .08) 49% 51%, transparent 52%),
        linear-gradient(145deg, transparent 48%, rgba(0, 45, 114, .08) 49% 51%, transparent 52%),
        #eaf0f8;
    background-size: 54px 54px;
    border-radius: 24px;
}

.map-line {
    position: absolute;
    inset: 47% 15% auto 15%;
    height: 5px;
    background: var(--coral);
    border-radius: 999px;
    transform: rotate(-12deg);
}

.pin {
    position: absolute;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--green);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
    font-size: .7rem;
}

.pin-one { left: 12%; top: 58%; }
.pin-two { left: 36%; top: 49%; }
.pin-three { right: 34%; top: 37%; }
.pin-four { right: 11%; top: 25%; }

.day-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.day-number {
    color: var(--muted);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.35rem;
}

.day-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.alert-dot,
.ok-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--yellow);
}

.ok-dot {
    background: #56a47d;
}

.feature-grid,
.metric-grid,
.foundation-grid {
    display: grid;
    gap: 18px;
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 60px 0 100px;
    border-top: 1px solid rgba(23, 33, 31, .12);
}

.feature-grid article {
    padding: 32px;
}

.feature-index {
    color: var(--coral);
    font-size: .8rem;
    font-weight: 700;
}

.feature-grid h2,
.foundation-grid h2 {
    margin: 42px 0 12px;
    font-size: 2rem;
}

.feature-grid p,
.foundation-grid p,
.dashboard-hero p {
    color: var(--muted);
    line-height: 1.65;
}

.dashboard-hero {
    max-width: 850px;
    padding: 110px 0 58px;
}

.dashboard-hero h1 {
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    line-height: .95;
}

.dashboard-hero > p:last-child {
    max-width: 680px;
    font-size: 1.15rem;
}

.metric-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 24px;
}

.metric-grid article,
.foundation-grid article {
    padding: 28px;
    background: rgba(255, 253, 248, .76);
    border: 1px solid rgba(23, 33, 31, .1);
    border-radius: 24px;
}

.metric {
    display: block;
    color: var(--green);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 3.4rem;
}

.metric-grid p {
    margin: 2px 0;
    font-weight: 700;
}

.metric-grid small {
    color: var(--muted);
}

.foundation-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 0 100px;
}

.foundation-grid h2 {
    margin-top: 16px;
}

.tag-next {
    color: #7b5410;
    background: #f7e5b7;
}

.planner-page {
    padding: 64px 0 110px;
}

.planner-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 26px;
}

.planner-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(3.4rem, 7vw, 6.4rem);
    line-height: .92;
}

.planner-hero p:last-child {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.planner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.planner-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 12px 0;
    padding: 15px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: 0 18px 46px rgba(3, 25, 56, .24);
    animation: waynture-notice-in .2s ease-out;
}

.planner-page > .planner-notice[data-role="notice"] {
    position: fixed;
    z-index: 1900;
    top: 96px;
    right: max(20px, calc((100vw - 1500px) / 2));
    width: min(520px, calc(100vw - 32px));
    margin: 0;
}

.planner-notice[hidden] {
    display: none;
}

.planner-notice-close {
    flex: 0 0 auto;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    color: currentColor;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
}

@keyframes waynture-notice-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.waynture-message-dialog {
    width: min(520px, calc(100% - 32px));
    max-width: none;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
}

.waynture-message-dialog::backdrop {
    background: rgba(3, 25, 56, .62);
    backdrop-filter: blur(4px);
}

.waynture-message-dialog-content {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(3, 25, 56, .34);
}

.waynture-message-dialog-header .eyebrow {
    margin: 0 0 8px;
}

.waynture-message-dialog-header h2,
.waynture-message-dialog-body {
    margin: 0;
}

.waynture-message-dialog-body {
    margin-top: 18px;
    white-space: pre-line;
}

.waynture-message-dialog .form-actions {
    margin-top: 24px;
    justify-content: flex-end;
}

.planner-notice.is-success {
    color: #002d72;
    background: #e2f1e9;
    border-color: #bddccc;
}

.planner-notice.is-error {
    color: #812f24;
    background: #fce8e2;
    border-color: #efc1b6;
}

.planner-notice.is-info {
    color: #24495a;
    background: #e7f1f5;
    border-color: #bfd6df;
}

.planner-network-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 13px 18px;
    color: #704214;
    background: #fff4d6;
    border: 1px solid #e8c978;
    border-radius: 16px;
}

.planner-network-status[hidden] {
    display: none;
}

.planner-network-status span {
    color: #765d38;
    font-weight: 500;
}

#travel-planner.is-offline form {
    opacity: .62;
}

.planner-loading {
    min-height: 360px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    color: var(--muted);
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid var(--green-light);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.button.is-busy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
}

.button.is-busy::before {
    content: "";
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.waynture-notification-region {
    position: fixed;
    z-index: 10000;
    top: 1.25rem;
    right: 1.25rem;
    width: min(420px, calc(100vw - 2rem));
    display: grid;
    gap: .75rem;
    pointer-events: none;
}

.waynture-notification {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(4, 35, 71, .22);
    pointer-events: auto;
}

.waynture-notification.is-error {
    color: #721c24;
    background: #fff1f0;
    border-color: #efb2ad;
    border-left-color: var(--orange);
}

.waynture-notification p {
    margin: 0;
    line-height: 1.45;
}

.waynture-notification-close {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    color: currentColor;
    background: transparent;
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

:root[data-theme="dark"] .waynture-notification {
    color: var(--text);
    background: var(--surface-strong);
}

:root[data-theme="dark"] .waynture-notification.is-error {
    color: #ffd7d2;
    background: #4b2024;
    border-color: #9b4a4d;
    border-left-color: var(--orange);
}

.planner-error {
    min-height: 360px;
    display: grid;
    place-content: center;
    justify-items: start;
    max-width: 720px;
    margin: 0 auto;
    padding: 42px;
    background: var(--surface);
    border: 1px solid #efc1b6;
    border-radius: 26px;
}

.planner-error h2 {
    margin: 0;
    font-size: 2.4rem;
}

.planner-error > p:not(.eyebrow) {
    max-width: 620px;
    margin: 18px 0 26px;
    color: #812f24;
    line-height: 1.6;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.account-page {
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .82fr);
    align-items: center;
    gap: 80px;
    padding: 72px 0 100px;
}

.account-intro {
    max-width: 650px;
}

.account-intro h1 {
    margin: 0;
    font-size: clamp(3.8rem, 7vw, 6.8rem);
    line-height: .9;
}

.account-intro > p:last-child {
    max-width: 570px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.account-card {
    display: grid;
    gap: 24px;
    padding: 44px;
    background: var(--surface);
    border: 1px solid rgba(23, 33, 31, .1);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(40, 59, 52, .1);
}

.account-card h2,
.panel-heading h2,
.itinerary-empty h2 {
    margin: 0;
    font-size: 2rem;
}

.itinerary-empty p {
    color: var(--muted);
    line-height: 1.6;
}

.account-card form,
.stacked-form {
    display: grid;
    gap: 16px;
}

.account-card label,
.stacked-form label,
.day-selector {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 700;
}

.stacked-form label span {
    color: var(--muted);
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    color: var(--ink);
    background: var(--input-surface);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    outline: none;
    font: inherit;
}

/* Native choice controls must never inherit the dimensions of text fields. */
input[type="checkbox"] {
    appearance: auto;
    box-sizing: border-box;
    width: 1.15rem !important;
    min-width: 1.15rem !important;
    height: 1.15rem !important;
    min-height: 1.15rem !important;
    margin: 0;
    padding: 0 !important;
    border-radius: .2rem;
    accent-color: var(--accent);
    vertical-align: middle;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgb(255 89 16 / .2);
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
    cursor: wait;
    opacity: .6;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-card small {
    color: var(--muted);
    line-height: 1.5;
}

.account-card .button {
    width: 100%;
    margin-top: 4px;
}

.account-notice {
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.45;
}

.account-notice.is-success {
    color: #002d72;
    background: #e2f1e9;
    border-color: #bddccc;
}

.account-notice.is-error {
    color: #812f24;
    background: #fce8e2;
    border-color: #efc1b6;
}

.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

.field-error {
    color: #9b3528;
    font-size: .76rem;
    font-weight: 600;
}

.field-validation-valid {
    display: none;
}

.checkbox-field {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    font-weight: 500 !important;
}

.checkbox-field input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--green);
}

.account-switch {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}

.account-switch a {
    color: var(--green);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.invitation-details {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.invitation-details div {
    display: grid;
    gap: 4px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
}

.invitation-details div:last-child {
    border-bottom: 0;
}

.invitation-details dt {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.invitation-details dd {
    margin: 0;
    font-weight: 700;
}

.invitation-entry-actions {
    display: grid;
    gap: .75rem;
}

.planner-workspace {
    position: relative;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.trip-sidebar,
.itinerary-panel {
    background: rgba(255, 253, 248, .9);
    border: 1px solid rgba(23, 33, 31, .1);
    border-radius: 26px;
}

.trip-sidebar {
    position: sticky;
    top: 20px;
    padding: 24px;
}

.trip-sidebar-toggle {
    position: absolute;
    z-index: 5;
    top: 24px;
    right: -21px;
    display: grid;
    place-items: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    color: #002d72;
    background: #ff5910;
    border: 2px solid #ff7a40;
    border-radius: 50%;
    font-size: 1.65rem;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(255, 89, 16, .34);
    transition: transform .18s ease, box-shadow .18s ease,
        background-color .18s ease;
}

.trip-sidebar-toggle:hover {
    color: #002d72;
    background: #ff6b2b;
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(255, 89, 16, .45);
}

.trip-sidebar-toggle:focus-visible {
    outline: 3px solid #78b7ff;
    outline-offset: 3px;
}

.trip-sidebar-content {
    min-width: 0;
}

.planner-workspace.is-sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
    gap: 58px;
}

.planner-workspace.is-sidebar-collapsed .trip-sidebar {
    min-width: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.planner-workspace.is-sidebar-collapsed .trip-sidebar-content {
    display: none;
}

.planner-workspace.is-sidebar-collapsed .trip-sidebar-toggle {
    position: absolute;
    top: 18px;
    left: 6px;
    right: auto;
}

.workspace-switcher {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.workspace-switcher label {
    display: grid;
    gap: 7px;
    font-size: .78rem;
    font-weight: 700;
}

.role-badge {
    justify-self: start;
    padding: 6px 9px;
    color: var(--green);
    background: var(--green-light);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
}

.role-badge[data-role="Administrator"] {
    color: #6c4607;
    background: #f7e5b7;
}

.role-badge[data-role="Advisor"] {
    color: #174b70;
    background: #dcebf5;
}

.role-badge[data-role="Traveler"],
.role-badge[data-role="Viewer"] {
    color: #5e536c;
    background: #ebe5f1;
}

.itinerary-panel {
    min-height: 680px;
    overflow: hidden;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.panel-heading .card-kicker {
    margin-bottom: 8px;
}

.trip-count {
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--green);
    background: var(--green-light);
    border-radius: 50%;
    font-size: .82rem;
    font-weight: 800;
}

.trip-sidebar .stacked-form {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trip-create-launch {
    width: 100%;
    margin: 24px 0;
}

.trip-create-dialog-content {
    width: 100%;
}

.trip-create-dialog .stacked-form {
    margin: 22px 0 0;
    padding: 0;
    border: 0;
}

.field-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.trip-list {
    display: grid;
    gap: 9px;
}

.trip-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
}

.trip-list-item {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 14px;
    color: var(--ink);
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
}

.trip-list-item:hover,
.trip-list-item.is-active {
    background: white;
    border-color: #cbd7d1;
}

.trip-list-item.is-active {
    box-shadow: inset 4px 0 0 var(--coral);
}

.trip-list-item span,
.trip-list-item small,
.sidebar-empty {
    color: var(--muted);
}

.trip-list-item span {
    font-size: .84rem;
}

.trip-list-delete {
    width: 36px;
    height: 36px;
}

.trip-list-actions {
    display: grid;
    gap: 6px;
}

.trip-list-budget,
.trip-list-delete {
    width: 36px;
    height: 36px;
}

.trip-list-budget .menu-icon,
.trip-list-delete .menu-icon {
    width: 17px;
    height: 17px;
}

.sidebar-empty {
    padding: 10px 4px;
    font-size: .88rem;
    line-height: 1.5;
}

.itinerary-empty {
    min-height: 680px;
    display: grid;
    place-content: center;
    justify-items: start;
    max-width: 560px;
    padding: 50px;
}

.itinerary-empty:has([data-view="first-trip-onboarding"]:not([hidden])) {
    max-width: none;
    place-content: center stretch;
}

.onboarding-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.onboarding-steps li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 12px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: .78rem;
    font-weight: 700;
}

.onboarding-steps li > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: rgba(0, 45, 114, .08);
    border-radius: 50%;
}

.onboarding-steps li.is-current {
    color: var(--green);
    border-color: rgba(0, 45, 114, .4);
    background: var(--green-light);
}

.onboarding-steps li.is-complete > span {
    color: white;
    background: var(--green);
}

.trip-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.trip-template-card {
    display: grid;
    gap: 5px;
    padding: 17px;
    color: var(--ink);
    text-align: left;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    cursor: pointer;
    font: inherit;
}

.trip-template-card:hover,
.trip-template-card:focus-visible,
.trip-template-card.is-selected {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 45, 114, .1);
}

.trip-template-card span {
    color: var(--muted);
    font-size: .8rem;
}

.onboarding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.itinerary-heading {
    padding: 26px 28px 22px;
}

.itinerary-heading h2 {
    font-size: 2.4rem;
}

.itinerary-heading > div > p:last-child {
    margin: 6px 0 0;
    color: var(--muted);
}

.itinerary-heading-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.route-summary {
    max-width: 230px;
    padding: 9px 12px;
    color: var(--green);
    text-align: right;
    background: var(--green-light);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}

.trip-weather-strip {
    padding: 0 28px 20px;
}

.trip-weather-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    color: #174d40;
    background: linear-gradient(100deg, #e3f1e9, #f5ead0);
    border: 1px solid #c7dbd0;
    border-radius: 16px;
}

.trip-weather-card > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.trip-weather-card > div span,
.trip-weather-card > div small,
.trip-weather-source {
    color: var(--muted);
    font-size: .75rem;
}

.trip-weather-icon {
    display: inline-grid;
    place-items: center;
    font-size: 1.75rem;
    line-height: 1;
}

.trip-weather-source {
    text-align: right;
}

.trip-weather-unavailable {
    margin: 0;
    padding: 11px 14px;
    color: var(--muted);
    background: #f2f5f0;
    border: 1px dashed #bdcac3;
    border-radius: 13px;
    font-size: .78rem;
    line-height: 1.45;
}

.planner-map {
    width: 100%;
    height: 440px;
    background: #dfe8e2;
    border-block: 1px solid rgba(23, 33, 31, .1);
    z-index: 0;
}

.planner-map .leaflet-tile-pane {
    filter: saturate(.72) contrast(.96) sepia(.08) hue-rotate(176deg);
}

.planner-map .leaflet-popup-content-wrapper,
.planner-map .leaflet-popup-tip {
    color: var(--ink);
    background: var(--surface);
}

.leaflet-container {
    font-family: "Manrope", sans-serif;
}

.map-help {
    margin: 0;
    padding: 12px 28px;
    color: var(--muted);
    background: #f2f5f0;
    border-bottom: 1px solid var(--line);
    font-size: .76rem;
    line-height: 1.45;
}

.map-toolbar {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-right: 28px;
    background: #f2f5f0;
    border-bottom: 1px solid var(--line);
}

.map-discovery-controls {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 12px;
    padding: 10px 0;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
}

.map-discovery-controls > span {
    flex-basis: 100%;
    text-align: right;
    color: var(--ink);
}

.map-discovery-controls label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.map-discovery-controls input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
}

@media (max-width: 900px) {
    .map-toolbar {
        align-items: stretch;
    }

    .map-discovery-controls {
        flex-basis: 100%;
        justify-content: flex-start;
        padding: 0 20px 12px;
    }

    .map-discovery-controls > span {
        text-align: left;
    }
}

.waynture-poi-marker-host {
    background: transparent;
    border: 0;
}

.waynture-poi-marker {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #002d72;
    background: #ffffff;
    border: 2px solid #ff5910;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgb(7 26 51 / 28%);
    font-size: .9rem;
}

.waynture-poi-popup {
    display: grid;
    min-width: 190px;
    gap: 7px;
}

.waynture-poi-popup small {
    color: var(--muted);
}

.waynture-poi-popup .button {
    width: 100%;
}

.map-toolbar .map-help {
    min-width: 0;
    flex: 1 1 auto;
    border-bottom: 0;
}

.map-language-select {
    display: grid;
    min-width: 170px;
    gap: 5px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
}

.map-language-select select {
    width: 100%;
    min-width: 0;
}

.map-provider-status {
    display: block;
    padding: 8px 28px;
    color: var(--muted);
    background: #fafbf8;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
}

.itinerary-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
}

.day-itinerary {
    min-height: 440px;
    padding: 26px 28px 34px;
}

.day-itinerary-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface, #fff);
    padding: 12px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.day-navigation {
    display: grid;
    grid-template-columns: 47px minmax(220px, 340px) 47px;
    align-items: end;
    gap: 10px;
    min-width: 0;
    flex: 1 1 620px;
}

.day-selector {
    width: 100%;
    max-width: 340px;
    margin: 0;
}

.day-navigation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 47px;
    width: 47px;
    padding: 0;
    white-space: nowrap;
}

.day-navigation-button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.day-add-actions {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.day-add-visit,
.day-add-ai {
    flex: 0 0 auto;
}

.day-add-ai {
    color: var(--green);
    border-color: #abcbbd;
    background: #eef7f3;
}

.visit-list {
    display: grid;
    gap: 10px;
}

.visit-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.day-route-segment {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: -5px 0;
    padding: 9px 12px;
    color: var(--ink);
    background: #eef7f3;
    border: 1px dashed #abcbbd;
    border-radius: 12px;
    font-size: .82rem;
}

.day-route-segment.is-estimated {
    background: #fff5ee;
    border-color: #f3a47e;
}

.day-route-segment-icon {
    text-align: center;
    font-size: 1.2rem;
}

.day-route-segment small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    line-height: 1.35;
}

.waynture-map-marker-host {
    background: transparent;
    border: 0;
}

.waynture-map-marker {
    position: relative;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #071a33;
    background: #ff5910;
    border: 3px solid #ffffff;
    border-radius: 50% 50% 50% 8px;
    box-shadow: 0 4px 12px rgb(7 26 51 / 35%);
    transform: rotate(-45deg);
    font-size: .78rem;
    font-weight: 900;
}

.waynture-map-marker {
    line-height: 1;
}

.waynture-map-marker > * {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    transform: rotate(45deg);
}

:root[data-theme="dark"] .day-route-segment {
    color: var(--ink);
    background: #102f60;
    border-color: #5579aa;
}

:root[data-theme="dark"] .day-route-segment.is-estimated {
    border-color: #ff5910;
}

.visit-reorder-help {
    margin: 0;
    padding: 10px 12px;
    color: var(--muted);
    background: #f7f9f5;
    border: 1px dashed #bdcac3;
    border-radius: 12px;
    font-size: .8rem;
    line-height: 1.45;
}

.visit-position {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 6px;
}

.visit-drag-handle {
    width: 32px;
    height: 28px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: grab;
    touch-action: none;
    font: inherit;
    font-size: 1.2rem;
    line-height: 1;
}

.visit-drag-handle:hover,
.visit-drag-handle:focus-visible {
    color: var(--green);
    background: #edf4ef;
    border-color: #bdcac3;
    outline: none;
}

.visit-drag-handle:active {
    cursor: grabbing;
}

.visit-drag-handle:disabled {
    cursor: progress;
    opacity: .45;
}

.visit-card.is-dragging {
    padding-inline: 10px;
    background: #f1f8f5;
    border: 1px dashed var(--green);
    border-radius: 14px;
    opacity: .68;
    box-shadow: 0 10px 24px rgb(22 78 67 / 12%);
}

.visit-list.is-reordering .visit-card {
    opacity: .72;
}

.visit-sequence {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--green);
    border-radius: 50%;
    font-size: .76rem;
    font-weight: 800;
}

.visit-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.visit-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.5;
}

.visit-card-content {
    display: grid;
    min-width: 0;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
}

.visit-card-image {
    width: 88px;
    height: 76px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #e8eee9;
}

.visit-card-visual,
.summary-stop-visual {
    min-width: 0;
    margin: 0;
}

.visit-card-visual figcaption,
.summary-stop-visual figcaption {
    margin-top: 4px;
    color: var(--muted);
    font-size: .62rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.visit-card-visual figcaption a,
.summary-stop-visual figcaption a {
    color: inherit;
    text-decoration: underline;
}

.place-image-placeholder {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 88px;
    height: 76px;
    padding: 6px;
    border: 1px dashed #b9c9c1;
    border-radius: 12px;
    background: #f1f5f2;
    color: #52645c;
    text-align: center;
}

.place-image-placeholder span {
    font-size: 1.15rem;
    line-height: 1;
}

.place-image-placeholder small,
.visit-card .place-image-placeholder small,
.summary-stop .place-image-placeholder small {
    display: block;
    margin: 0;
    color: inherit;
    font-size: .58rem;
    line-height: 1.2;
}

.summary-stop-visual .place-image-placeholder {
    width: 76px;
    height: 66px;
    border-radius: .65rem;
}

.visit-card-details {
    min-width: 0;
    overflow-wrap: anywhere;
}

.visit-card-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.visit-category-icon {
    display: inline-grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #365e50;
    background: #e8f1ed;
    border: 1px solid #b9cec5;
    border-radius: 9px;
}

.visit-category-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.visit-category-icon.is-restaurant {
    color: #9b482d;
    background: #fff1ea;
    border-color: #e5b6a5;
}

.visit-category-icon.is-accommodation {
    color: #40578d;
    background: #eef2ff;
    border-color: #bac5e3;
}

.visit-category-icon.is-activity {
    color: #836016;
    background: #fff8dc;
    border-color: #dec77d;
}

.visit-website {
    display: inline-block;
    margin-top: 7px;
    color: var(--green);
    font-size: .82rem;
    font-weight: 700;
}

.visit-place-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.visit-description {
    white-space: pre-line;
}

.day-empty {
    padding: 26px;
    color: var(--muted);
    background: #f2f5f0;
    border: 1px dashed #bdcac3;
    border-radius: 16px;
    line-height: 1.5;
}

.visit-form {
    align-self: stretch;
    padding: 26px;
    background: #f2f5f0;
    border-left: 1px solid var(--line);
}

.visit-dialog {
    width: min(760px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
}

.visit-dialog::backdrop {
    background: rgba(15, 29, 26, .58);
    backdrop-filter: blur(3px);
}

.visit-dialog-content {
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 28px;
    background: var(--surface);
    border: 1px solid rgba(23, 33, 31, .12);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 29, 26, .28);
}

.visit-dialog .visit-form {
    margin-top: 22px;
    padding: 0;
    background: transparent;
    border: 0;
}

.visit-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.trip-overflow-panel {
    padding: 1rem;
    border: 1px solid rgba(190, 120, 30, 0.35);
    border-radius: 1rem;
    background: rgba(255, 245, 224, 0.7);
}

.trip-overflow-panel > div:first-child {
    margin-bottom: 0.85rem;
}

.trip-overflow-day {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(120, 90, 60, 0.18);
}

.trip-overflow-day small {
    color: var(--text-muted);
}

.visit-form h3 {
    margin: 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.65rem;
}

.place-search {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: white;
    border: 1px solid #cbd7d1;
    border-radius: 14px;
}

.place-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 7px;
}

.place-search-row .button {
    min-height: 44px;
    padding-inline: 14px;
}

.place-search > small,
.place-search-result small {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.4;
}

.place-search-results {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    min-width: 0;
    gap: 6px;
    max-height: 230px;
    overflow-y: auto;
}

.place-search-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    gap: 3px;
    width: 100%;
    padding: 10px 11px;
    color: var(--ink);
    text-align: left;
    background: #f2f5f0;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
}

.place-search-result:hover,
.place-search-result:focus-visible {
    background: var(--green-light);
    border-color: #a9bbb2;
    outline: none;
}

.place-search-result strong {
    font-size: .84rem;
}

.team-dialog {
    width: min(1040px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 28px;
}

.team-dialog::backdrop {
    background: rgba(9, 24, 21, .62);
    backdrop-filter: blur(4px);
}

.team-dialog-content {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 34px;
    background: var(--surface);
    border: 1px solid rgba(23, 33, 31, .12);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(9, 24, 21, .3);
}

.team-dialog-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.team-dialog-header h2,
.team-section h3 {
    margin: 0;
    font-family: "Bricolage Grotesque", sans-serif;
}

.team-dialog-header h2 {
    font-size: 2.5rem;
}

.team-dialog-header p:last-child,
.team-section > div > p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.dialog-close {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0 0 4px;
    color: var(--ink);
    background: #f0eee8;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font: 400 2rem/1 sans-serif;
}

.team-dialog-grid,
.team-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.team-seat-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 18px;
    padding: 20px 22px;
    background: rgba(216, 233, 223, .58);
    border: 1px solid #b8d4c6;
    border-radius: 20px;
}

.team-seat-summary > div {
    min-width: 0;
    flex: 1;
}

.team-seat-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.team-seat-heading h3 {
    margin: 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.5rem;
}

.team-seat-heading strong {
    color: var(--green);
    white-space: nowrap;
}

.team-seat-summary progress {
    width: 100%;
    height: 9px;
    margin: 12px 0 7px;
    overflow: hidden;
    accent-color: var(--coral);
    border: 0;
    border-radius: 999px;
}

.team-seat-summary small {
    display: block;
    color: var(--muted);
    line-height: 1.45;
}

.team-seat-summary > .button {
    flex: 0 0 auto;
}

.team-section,
.team-readonly {
    padding: 22px;
    background: #f4f5f1;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.team-dialog-content > .team-section,
.team-readonly {
    margin-top: 18px;
}

.compact-form {
    margin-top: 18px;
}

.invitation-link {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 13px;
    color: var(--green);
    background: var(--green-light);
    border: 1px solid #b8d4c6;
    border-radius: 14px;
}

.invitation-link > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.invitation-link small {
    line-height: 1.4;
}

.section-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.member-list,
.invitation-list {
    display: grid;
    gap: 8px;
}

.member-card,
.invitation-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.member-card > div:first-child,
.invitation-card > div:first-child {
    min-width: 0;
}

.member-card strong,
.member-card small,
.invitation-card strong,
.invitation-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-card small,
.invitation-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .72rem;
}

.member-actions {
    min-width: 145px;
    display: grid;
    justify-items: end;
    gap: 5px;
}

.member-actions select {
    min-height: 36px;
    padding: 6px 9px;
    font-size: .76rem;
}

.text-button {
    padding: 2px;
    color: var(--green);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
}

.text-button.is-danger {
    color: #9b3528;
}

.team-readonly {
    color: var(--muted);
    line-height: 1.6;
}

.notifications-dialog {
    width: min(760px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 28px;
}

.notifications-dialog::backdrop {
    background: rgba(9, 24, 21, .68);
    backdrop-filter: blur(5px);
}

.notifications-dialog-content {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 34px;
    background:
        radial-gradient(circle at 92% 0, #f7e8b9 0, transparent 28%),
        var(--surface);
    border: 1px solid rgba(23, 33, 31, .12);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(9, 24, 21, .34);
}

.notification-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f4f5f1;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.notification-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-preferences {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .68);
}

.notification-preferences > div,
.notification-channel span {
    display: grid;
    gap: 3px;
}

.notification-preferences small,
.notification-channel small {
    color: var(--muted);
}

.notification-channel {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.notification-channel input {
    margin-top: 4px;
}

.notification-empty {
    padding: 42px 18px;
    color: var(--muted);
    background: white;
    border: 1px dashed #c8d0cb;
    border-radius: 15px;
    text-align: center;
}

.notification-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-left: 5px solid #d6a63c;
    border-radius: 15px;
}

.notification-card[data-read="true"] {
    border-left-color: #b9c1bc;
    opacity: .82;
}

.notification-card > header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.notification-card > header strong,
.notification-card > header small {
    display: block;
}

.notification-card > header small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .7rem;
}

.notification-card > p {
    margin: 0;
    line-height: 1.5;
}

.notification-unread {
    flex: none;
    padding: 5px 8px;
    color: #6d581e;
    background: #f7e8b9;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.notification-count {
    background: #d26b3e;
}

.validation-dialog {
    width: min(1120px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 28px;
}

.validation-dialog::backdrop {
    background: rgba(9, 24, 21, .7);
    backdrop-filter: blur(6px);
}

.validation-dialog-content {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 34px;
    background:
        radial-gradient(circle at 88% 2%, #e4efe7 0, transparent 34%),
        var(--surface);
    border: 1px solid rgba(23, 33, 31, .12);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(9, 24, 21, .36);
}

.validation-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.validation-request,
.validation-history {
    padding: 22px;
    background: #f4f5f1;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.validation-request h3,
.validation-history h3 {
    margin: 2px 0 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.55rem;
}

.validation-request > p:not(.card-kicker) {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.55;
}

.validation-list {
    display: grid;
    gap: 12px;
}

.validation-empty {
    padding: 34px 18px;
    color: var(--muted);
    background: white;
    border: 1px dashed #c8d0cb;
    border-radius: 14px;
    text-align: center;
}

.validation-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-left: 5px solid #d6a63c;
    border-radius: 15px;
}

.validation-card[data-status="Approved"] {
    border-left-color: #2e7d62;
}

.validation-card[data-status="ChangesRequested"] {
    border-left-color: #bd5748;
}

.validation-card[data-status="Superseded"],
.validation-card[data-status="ApprovedStale"],
.validation-card[data-status="Cancelled"] {
    border-left-color: #89938e;
    opacity: .78;
}

.validation-card > header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.validation-card > header strong,
.validation-card > header small {
    display: block;
}

.validation-card > header small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .7rem;
}

.validation-status-badge {
    flex: none;
    padding: 5px 8px;
    color: #6d581e;
    background: #f7e8b9;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.validation-card[data-status="Approved"] .validation-status-badge {
    color: #002d72;
    background: #dcece5;
}

.validation-card[data-status="ChangesRequested"] .validation-status-badge {
    color: #812f24;
    background: #f7ddd7;
}

.validation-card[data-status="Superseded"] .validation-status-badge,
.validation-card[data-status="ApprovedStale"] .validation-status-badge,
.validation-card[data-status="Cancelled"] .validation-status-badge {
    color: #46514d;
    background: #e5e9e6;
}

.validation-message,
.validation-decision p,
.validation-comments p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
}

.validation-message {
    color: #35433e;
}

.validation-decision {
    padding: 12px;
    background: #f1f5f2;
    border-radius: 11px;
}

.validation-decision strong,
.validation-comments small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .68rem;
}

.validation-decision p,
.validation-comments p {
    font-size: .78rem;
}

.validation-comments {
    display: grid;
    gap: 8px;
}

.validation-comments > div {
    padding: 10px 12px;
    background: #f7f7f4;
    border-radius: 10px;
}

.validation-comment-form,
.validation-decision-form {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.validation-comment-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.validation-comment-form textarea,
.validation-decision-form textarea {
    min-height: 64px;
}

.validation-decision-form > div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.validation-self-review-help {
    color: var(--muted);
    line-height: 1.45;
}

.validation-count {
    background: #2e7d62;
}

.alert-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.alert-count {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    place-items: center;
    color: white;
    background: #b94838;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
}

.alerts-dialog {
    width: min(820px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 28px;
}

.alerts-dialog::backdrop {
    background: rgba(9, 24, 21, .7);
    backdrop-filter: blur(6px);
}

.alerts-dialog-content {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 34px;
    background:
        radial-gradient(circle at 88% 2%, #f4e8c8 0, transparent 34%),
        var(--surface);
    border: 1px solid rgba(23, 33, 31, .12);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(9, 24, 21, .36);
}

.alerts-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.alerts-toolbar strong,
.alerts-toolbar small {
    display: block;
}

.alerts-toolbar small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .72rem;
}

.alerts-list {
    display: grid;
    gap: 12px;
    min-height: 180px;
}

.alerts-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    padding: 30px;
    color: var(--muted);
    background: #f4f5f1;
    border: 1px dashed #cbd3cd;
    border-radius: 18px;
    text-align: center;
}

.travel-alert {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.travel-alert::before {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    background: #64887c;
    border-radius: 50%;
    content: "";
}

.travel-alert[data-severity="Warning"]::before {
    background: #d9a93e;
}

.travel-alert[data-severity="Critical"]::before {
    background: #c8513f;
    box-shadow: 0 0 0 5px rgba(200, 81, 63, .12);
}

.travel-alert h3 {
    margin: 0;
    font-size: .98rem;
}

.travel-alert p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.55;
}

.travel-alert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    color: var(--muted);
    font-size: .67rem;
}

.travel-alert-status {
    padding: 4px 7px;
    color: #6d581e;
    background: #f7e8b9;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
}

.travel-alert-source {
    padding: 4px 7px;
    color: #426157;
    background: #e7efeb;
    border-radius: 999px;
    font-weight: 800;
}

.travel-alert-source[data-external="true"] {
    color: #155c6b;
    background: #dceff3;
}

.travel-alert[data-status="Acknowledged"] {
    opacity: .72;
}

.travel-alert[data-status="Acknowledged"] .travel-alert-status {
    color: #426157;
    background: #dce8e2;
}

.assistant-dialog {
    width: min(1080px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 28px;
}

.day-chat-launcher { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 1050; width: 3.5rem; height: 3.5rem; border: 0; border-radius: 50%; background: #ff5910; color: #071a33; font-size: 1.5rem; box-shadow: 0 12px 30px rgb(15 23 42 / .28); cursor: pointer; }
.day-chat-launcher[hidden] { display: none; }
.day-chat { position: fixed; right: 1.5rem; bottom: 5.75rem; z-index: 1049; width: min(27rem, calc(100vw - 2rem)); height: min(42rem, calc(100vh - 8rem)); display: grid; grid-template-rows: auto auto 1fr auto auto; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); color: var(--ink); box-shadow: 0 18px 55px rgb(15 23 42 / .25); }
.day-chat[hidden] { display: none; }
.day-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); }
.day-chat-header div { display: grid; gap: .15rem; }
.day-chat-header button { border: 0; background: transparent; color: inherit; font-size: 1.5rem; cursor: pointer; }
.day-chat-header-actions { display: flex; align-items: center; gap: .25rem; }
.day-chat-header-actions button { width: 2rem; height: 2rem; border-radius: 50%; }
.day-chat-header-actions button {
    min-width: 2rem;
    min-height: 2rem;
    display: inline-grid;
    place-items: center;
    flex: 0 0 2rem;
    padding: 0;
    aspect-ratio: 1;
    line-height: 1;
}
.day-chat-header-actions button:hover { background: rgb(255 255 255 / .18); }
.day-chat-scope { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.day-chat-scope label { font-size: .8rem; font-weight: 700; }
.day-chat-scope select { width: auto; min-width: 10rem; padding: .4rem .65rem; }
.day-chat-messages { overflow-anchor: none; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.day-chat-message { flex-shrink: 0; max-width: 88%; padding: .7rem .85rem; border-radius: .85rem; white-space: pre-wrap; background: var(--paper); }
.day-chat-message.is-user { align-self: flex-end; color: #fff; background: #2563eb; }
.day-chat-message.is-system { align-self: center; max-width: 100%; padding: .35rem .6rem; font-size: .8rem; color: var(--muted); background: transparent; }
.day-chat-message.is-pending { opacity: .7; }
.day-chat-message.is-error { color: #b42318; background: #fee4e2; }
.day-chat-action { display: grid; gap: .55rem; padding: .75rem; border: 1px solid var(--line); border-radius: .75rem; }
.day-chat-action .button { justify-self: start; }
.day-chat-action small { display: block; color: var(--muted); }
.day-chat-undo { width: 100%; }
.day-chat-action-summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem; border-radius: .75rem; background: #eaf1fb; }
:root[data-theme="dark"] .day-chat-action-summary {
    color: #ffffff;
    background: #183865;
    border: 1px solid #5579aa;
}

:root[data-theme="dark"] .day-chat-action-summary .button-primary {
    color: #071a33;
    background: #ff5910;
}
.day-chat-suggestions { display: flex; gap: .4rem; overflow-x: auto; padding: .65rem 1rem; border-top: 1px solid var(--line); }
.day-chat-suggestions button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .65rem; background: transparent; color: inherit; cursor: pointer; }
.day-chat-form { display: grid; grid-template-columns: 1fr auto; gap: .55rem; padding: .8rem 1rem 1rem; }
.day-chat-form textarea { resize: none; }
.day-chat-send { align-self: stretch; width: 3rem; min-height: 3rem; padding: .7rem; }
.day-chat-send svg { display: block; width: 1.35rem; height: 1.35rem; fill: currentColor; }
@media (max-width: 600px) { .day-chat-launcher { right: 1rem; bottom: 1rem; } .day-chat { inset: 4.5rem .5rem 5.5rem; width: auto; height: auto; } }

.assistant-dialog::backdrop {
    background: rgba(9, 24, 21, .7);
    backdrop-filter: blur(6px);
}

.assistant-dialog-content {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 34px;
    background:
        radial-gradient(circle at 88% 2%, #e4efe7 0, transparent 32%),
        var(--surface);
    border: 1px solid rgba(23, 33, 31, .12);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(9, 24, 21, .36);
}

.assistant-provider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.assistant-provider > div:first-child {
    display: flex;
    align-items: center;
    gap: 9px;
}

.assistant-provider small,
.assistant-usage {
    color: var(--muted);
    font-size: .72rem;
}

.assistant-mode {
    padding: 5px 9px;
    color: #3e4f49;
    background: #e5e9e6;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.assistant-mode[data-provider="OpenAI"] {
    color: #002d72;
    background: #dcece5;
}

.assistant-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: stretch;
    gap: 20px;
}

.inspiration-dialog {
    width: min(1180px, calc(100% - 32px));
    max-width: calc(100% - 32px);
}

.inspiration-dialog .assistant-dialog-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.inspiration-generation-progress {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding: 16px 18px;
    color: var(--ink);
    background: color-mix(in srgb, var(--green-light) 62%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line));
    border-radius: 16px;
}

.inspiration-generation-progress[hidden] {
    display: none;
}

.inspiration-progress-heading,
.inspiration-progress-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.inspiration-progress-heading > div {
    display: grid;
    gap: 2px;
}

.inspiration-progress-heading small,
.inspiration-progress-details,
.inspiration-generation-progress .form-help {
    color: var(--muted);
}

.inspiration-progress-heading > strong:last-child {
    color: var(--green);
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.inspiration-generation-progress progress {
    width: 100%;
    height: 12px;
    overflow: hidden;
    accent-color: var(--green);
    border: 0;
    border-radius: 999px;
}

.inspiration-generation-progress progress::-webkit-progress-bar {
    background: color-mix(in srgb, var(--line) 70%, transparent);
    border-radius: 999px;
}

.inspiration-generation-progress progress::-webkit-progress-value,
.inspiration-generation-progress progress::-moz-progress-bar {
    background: var(--green);
    border-radius: 999px;
    transition: width .45s ease;
}

.inspiration-generation-progress progress.is-indeterminate {
    accent-color: var(--green);
}

.inspiration-generation-progress progress.is-indeterminate::-webkit-progress-value {
    background: var(--green);
}

.inspiration-progress-details {
    font-size: .83rem;
}

.inspiration-progress-details > span:last-child {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.inspiration-progress-log {
    max-height: 7.5rem;
    margin: 0;
    padding-left: 1.4rem;
    overflow-y: auto;
    color: var(--muted);
    font-size: 0.82rem;
}

.inspiration-progress-log li + li {
    margin-top: 0.25rem;
}

.inspiration-progress-actions {
    display: flex;
    justify-content: flex-end;
}

.inspiration-progress-actions .button {
    min-height: 38px;
}

.discovery-dialog {
    width: min(1220px, calc(100% - 32px));
    max-width: calc(100% - 32px);
}

.discovery-dialog-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.replacement-dialog {
    width: min(1220px, calc(100% - 32px));
    max-width: calc(100% - 32px);
}

.replacement-dialog-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.replacement-current {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 16px;
    padding: 14px 16px;
    background: #f2f7f4;
    border: 1px solid #d7e6de;
    border-radius: 14px;
}

.replacement-current strong {
    overflow-wrap: anywhere;
}

.replacement-current small {
    flex-basis: 100%;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.replacement-form {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(150px, .7fr));
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
}

.replacement-form > *,
.replacement-results > *,
.replacement-card {
    min-width: 0;
    max-width: 100%;
}

.replacement-form label {
    display: grid;
    gap: 6px;
}

.replacement-form label span {
    color: var(--muted);
    font-weight: 500;
}

.replacement-form .button {
    grid-column: 1 / -1;
    width: min(100%, 440px);
    white-space: normal;
}

.day-suggestion-form {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.day-suggestion-form .day-suggestion-query,
.day-suggestion-form .day-suggestion-preference {
    grid-column: span 2;
}

.day-suggestion-context .role-badge {
    flex: 0 0 auto;
}

.replacement-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.replacement-rank,
.replacement-score,
.replacement-schedule {
    display: inline-flex;
    padding: 5px 9px;
    color: var(--green);
    background: var(--green-light);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
}

.replacement-score {
    color: #704d00;
    background: #fff0c9;
}

.replacement-schedule {
    color: #294d63;
    background: #e8f2f7;
}

.replacement-reason {
    padding: 11px 12px;
    color: #263b35 !important;
    background: #eef6f2;
    border-left: 4px solid var(--green);
    border-radius: 9px;
}

.replacement-place-summary {
    margin: 10px 0;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--green-light);
    border-left: 4px solid var(--coral);
    border-radius: 10px;
    line-height: 1.5;
}

.replacement-financial-impact {
    margin: 0.65rem 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    font-size: 0.9rem;
    line-height: 1.45;
}

.replacement-photo-unavailable {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    width: 100%;
    height: 180px;
    padding: 18px;
    color: #52645c;
    background: #eef3f0;
    text-align: center;
}

.replacement-photo-unavailable span {
    font-size: 1.6rem;
}

.replacement-photo-unavailable strong {
    font-size: .8rem;
}

.visit-replace-button {
    color: var(--green);
    border-color: #abcbbd;
    background: #eef7f3;
}

.discovery-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
}

.discovery-form > *,
.discovery-results > *,
.discovery-card,
.discovery-card-content {
    min-width: 0;
    max-width: 100%;
}

.discovery-form label {
    display: grid;
    gap: 6px;
}

.discovery-form label:nth-child(2) {
    grid-column: span 2;
}

.discovery-form .button {
    grid-column: span 2;
    max-width: 100%;
    white-space: normal;
}

.discovery-day-target {
    margin: 14px 0;
    color: var(--green);
    font-weight: 700;
}

.discovery-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.discovery-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.discovery-card[hidden] {
    display: none;
}

.discovery-card-media {
    position: relative;
    margin: 0;
    background: #e7eee9;
}

.discovery-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e7eee9;
}

.discovery-google-photo-credit {
    position: absolute;
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 5px 8px;
    color: #fff;
    background: rgb(18 27 25 / 82%);
    border-radius: 7px;
    font-size: .68rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.discovery-google-photo-credit a {
    color: #fff;
    font-weight: 700;
}

.discovery-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    overflow-wrap: anywhere;
}

.discovery-card-content h3,
.discovery-card-content p {
    margin: 0;
}

.discovery-card-content > p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}

.discovery-card-meta,
.discovery-card-links {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: .76rem;
}

.discovery-card-links {
    align-items: flex-start;
    flex-direction: column;
}

.discovery-card-links a {
    color: var(--green);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.discovery-card-description {
    padding: 10px;
    background: #f4f7f3;
    border-radius: 10px;
}

.discovery-google-disclosure {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 14px;
    color: #3e504b;
    background: #f5f7f6;
    border: 1px solid #dfe6e2;
    border-radius: 10px;
    font-size: .78rem;
    line-height: 1.45;
}

.discovery-google-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    padding: 10px;
    color: #263b35;
    background: #fff8e5;
    border: 1px solid #f0dca9;
    border-radius: 10px;
    font-size: .8rem;
}

.discovery-google-source {
    color: #34433f;
}

.discovery-google-rating {
    color: #704d00;
    font-weight: 750;
}

.discovery-google-panel a {
    color: var(--green);
    font-weight: 700;
}

.discovery-google-persistence-note {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.4;
}

.discovery-detail-list {
    display: grid;
    grid-template-columns: minmax(115px, .8fr) minmax(0, 1.5fr);
    gap: 6px 12px;
    margin: 0;
    padding: 10px;
    color: #263b35;
    background: #f7f9f6;
    border: 1px solid #e3eae6;
    border-radius: 10px;
    font-size: .8rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.discovery-detail-list dt {
    font-weight: 750;
}

.discovery-detail-list dd {
    margin: 0;
}

.discovery-detail-list dd.is-unavailable {
    color: var(--muted);
    font-style: italic;
}

.discovery-card-content > .button {
    width: 100%;
    margin-top: auto;
    white-space: normal;
}

.discovery-load-more {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    padding: 8px 0 2px;
}

.discovery-load-more .button {
    width: min(100%, 420px);
    white-space: normal;
}

.inspiration-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.inspiration-form label {
    display: grid;
    gap: .4rem;
}

.inspiration-form .inspiration-destination,
.inspiration-form .inspiration-cities {
    grid-column: span 2;
}

.inspiration-form .inspiration-concept {
    grid-column: 1 / -1;
}

.inspiration-form label small {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.35;
}

.inspiration-form .inspiration-cities textarea {
    min-height: 76px;
}

.inspiration-form .inspiration-destination input,
.inspiration-form .inspiration-cities textarea {
    min-height: 76px;
}

.inspiration-form .inspiration-concept textarea {
    min-height: 96px;
}

.inspiration-form > *,
.inspiration-results > *,
.inspiration-card,
.inspiration-days,
.inspiration-notes,
.inspiration-stop-list,
.inspiration-stop {
    min-width: 0;
    max-width: 100%;
}

.inspiration-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.inspiration-address-help {
    grid-column: 1 / -1;
    margin: 0;
    padding: .8rem 1rem;
    color: #002d72;
    background: #e4f2ec;
    border: 1px solid #b9d8ca;
    border-radius: .8rem;
    line-height: 1.45;
}

.inspiration-card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.2rem;
    border: 1px solid var(--border-color, #d9ded9);
    border-radius: 1rem;
    background: #fff;
    overflow-wrap: anywhere;
}

.inspiration-card h3,
.inspiration-card p {
    margin: 0;
    overflow-wrap: anywhere;
}

.inspiration-card .inspiration-cities {
    color: var(--green);
    font-weight: 750;
}

.inspiration-card .inspiration-concept-summary {
    padding: .65rem .75rem;
    color: #513a16;
    background: #fff5d9;
    border: 1px solid #ebd69b;
    border-radius: .7rem;
    font-size: .86rem;
    font-weight: 700;
}

.inspiration-budget-comparison {
    padding: .65rem .75rem;
    border: 1px solid #b9d8ca;
    border-radius: .7rem;
    background: #eff8f4;
    color: #002d72;
    font-size: .86rem;
    font-weight: 800;
}

.inspiration-budget-comparison.is-over-budget {
    border-color: #d88178;
    background: #fff1f0;
    color: #8f1d14;
}

.inspiration-days,
.inspiration-notes {
    display: grid;
    gap: .55rem;
    padding-left: 1.25rem;
}

.inspiration-days li span {
    display: block;
    color: var(--muted, #59645f);
    font-size: .88rem;
    margin-top: .2rem;
}

.inspiration-stop-list {
    display: grid;
    gap: .65rem;
    margin-top: .5rem;
}

.inspiration-stop {
    padding: .65rem;
    border-left: 3px solid #8ab8a5;
    background: #f5faf8;
    overflow-wrap: anywhere;
}

.inspiration-cost {
    display: block;
    margin: .35rem 0 .55rem;
    padding: .45rem .55rem;
    color: #002d72 !important;
    background: #e4f2ec;
    border-radius: .5rem;
    font-size: .78rem !important;
    font-weight: 700;
    line-height: 1.4;
}

.inspiration-category {
    display: inline-flex;
    width: fit-content;
    margin-bottom: .45rem;
    padding: .25rem .55rem;
    color: #002d72;
    background: #dcece5;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
}

.inspiration-category.is-restaurant {
    color: #74351f;
    background: #fbe7dc;
}

.inspiration-category.is-accommodation {
    color: #3f3b70;
    background: #e9e7f8;
}

.inspiration-stop.has-error {
    border: 2px solid #b42318;
    border-left-width: 5px;
    background: #fff1f0;
}

.inspiration-stop.has-error::before {
    content: "Lieu introuvable — modifiez la recherche puis réessayez";
    display: block;
    margin-bottom: .5rem;
    color: #8f1d14;
    font-weight: 700;
}

.inspiration-stop.has-error.has-validation-conflict::before {
    content: "Lieu Google reconnu — précisez l’adresse cartographique";
}

.inspiration-stop.is-validated {
    border-left-color: #247a52;
    background: #effaf4;
}

.inspiration-leg,
.trip-leg-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .8rem;
    min-width: 0;
    padding: .85rem 1rem;
    color: #153f37;
    background: linear-gradient(120deg, #e2f0ea, #fff8e7);
    border: 1px solid #bdd8cd;
    border-radius: .85rem;
    overflow-wrap: anywhere;
}

.inspiration-leg {
    margin: .65rem 0;
}

.inspiration-days li .inspiration-leg .trip-leg-icon,
.trip-leg-card .trip-leg-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    background: rgba(255, 255, 255, .72);
    border-radius: 50%;
    font-size: 1.2rem;
}

.inspiration-leg > div,
.trip-leg-content {
    display: grid;
    gap: .25rem;
    min-width: 0;
}

.inspiration-leg > div > span,
.inspiration-leg > div > small,
.trip-leg-content > span,
.trip-leg-content > small {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.4;
}

.trip-leg-card {
    margin-bottom: .9rem;
}

.summary-trip-leg {
    margin: 0 0 1rem;
}

.address-validation-result {
    margin-top: .5rem;
    padding: .6rem .7rem;
    border-radius: .55rem;
    background: #eef3f1;
    font-size: .84rem;
}

.address-validation-result.is-success {
    color: #155c3b;
    background: #dff4e8;
}

.address-validation-result.is-error {
    color: #8f1d14;
    background: #fff1f0;
}

.address-validation-result > p {
    margin: .45rem 0 0;
}

.address-validation-google {
    display: grid;
    gap: .25rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid currentColor;
}

.address-validation-google strong {
    color: #1f1f1f;
}

.address-validation-google a {
    width: fit-content;
    font-weight: 750;
}

.finance-dialog {
    width: min(1240px, calc(100% - 32px));
    max-width: calc(100% - 32px);
}

.finance-dialog-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.finance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.finance-payment-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.9rem 0;
}

.finance-payment-summary > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.finance-payment-state {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.45rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.finance-payment-state.is-paid { background: #dff5e8; color: #12653a; }
.finance-payment-state.is-unpaid { background: #fff0df; color: #8a3d00; }

.finance-line-notes {
    max-width: min(52ch, 100%);
    margin: 0.45rem 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
}

.reservation-itinerary-fields {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.stacked-form .checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
}

.stacked-form .checkbox-label input[type="checkbox"] {
    appearance: auto;
    width: 1.15rem;
    min-width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    padding: 0;
    accent-color: var(--accent);
}

.reservation-place-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

@media (max-width: 720px) {
    .finance-payment-summary { grid-template-columns: 1fr; }
}

:root[data-theme="dark"] .finance-payment-state.is-paid {
    background: #174d36;
    color: #d9ffea;
}

:root[data-theme="dark"] .finance-payment-state.is-unpaid {
    background: #613516;
    color: #fff0df;
}

.finance-metrics article {
    display: grid;
    min-width: 0;
    gap: .25rem;
    padding: .9rem;
    border: 1px solid #d8e2dd;
    border-radius: .8rem;
    background: #f7faf8;
    overflow-wrap: anywhere;
}

.finance-metrics strong {
    color: #002d72;
    font-size: 1.1rem;
}

.finance-metrics .is-over-budget {
    border-color: #d88178;
    background: #fff1f0;
}

.finance-metrics .is-over-budget strong {
    color: #8f1d14;
}

.finance-forecast {
    margin: 0 0 1rem;
    padding: .85rem 1rem;
    border: 1px solid #c8ded5;
    border-radius: .8rem;
    background: #eff8f4;
    color: #002d72;
    font-weight: 750;
}

.finance-forecast.is-over-budget {
    border-color: #d88178;
    background: #fff1f0;
    color: #8f1d14;
}

.finance-forecast.is-neutral {
    border-color: #d8e2dd;
    background: #f7faf8;
    color: #5e6964;
}

.finance-estimator {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.2fr);
    gap: .75rem 1.25rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #c8ded5;
    border-radius: .9rem;
    background: #f1f8f5;
}

.finance-estimator h3,
.finance-estimator p {
    margin: .25rem 0 0;
}

.finance-estimator > small {
    grid-column: 1 / -1;
    color: #5e6964;
}

.finance-estimate-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(90px, .45fr)) repeat(2, minmax(170px, 1fr));
    gap: .65rem;
    align-items: end;
}

.finance-estimate-form label {
    display: grid;
    min-width: 0;
    gap: .35rem;
}

.finance-estimate-form .button {
    width: 100%;
    white-space: normal;
}

.finance-budget-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.finance-optimizer {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #d8e2dd;
    border-radius: .9rem;
    background: #fff;
}

.finance-optimizer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.finance-optimizer-heading h3,
.finance-optimizer-heading p {
    margin: .25rem 0 0;
}

.finance-optimization-results {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #d8e2dd;
}

.finance-optimization-results h4 {
    margin: 0 0 .65rem;
}

.finance-optimization-summary,
.finance-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.finance-optimization-summary article,
.finance-scenario-card {
    padding: .8rem;
    border: 1px solid #d8e2dd;
    border-radius: .75rem;
    background: #f8fbfa;
}

.finance-optimization-summary span,
.finance-optimization-summary strong {
    display: block;
}

.finance-optimization-summary strong {
    margin-top: .2rem;
    color: #002d72;
    font-size: 1.05rem;
}

.finance-category-breakdown {
    display: grid;
    gap: .55rem;
}

.finance-category-breakdown > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .25rem .75rem;
}

.finance-category-track {
    grid-column: 1 / -1;
    height: .45rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eeea;
}

.finance-category-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2f7d68;
}

.finance-scenario-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.finance-scenario-card h5,
.finance-scenario-card p {
    margin: 0;
}

.finance-scenario-card > strong {
    display: block;
    margin: .65rem 0 .25rem;
    color: #002d72;
    font-size: 1.15rem;
}

.finance-scenario-card > div span {
    padding: .15rem .45rem;
    border-radius: 999px;
    background: #d9eee6;
    color: #002d72;
    font-size: .72rem;
    font-weight: 800;
}

.finance-scenario-card.is-recommended {
    border-color: #2f7d68;
    box-shadow: 0 0 0 1px #2f7d68 inset;
}

.finance-scenario-card.is-over-budget small {
    color: #8f1d14;
}

.finance-scenario-saving {
    margin-bottom: .4rem !important;
    color: #2f7d68;
    font-weight: 750;
}

.finance-scenario-card > .button {
    width: 100%;
    margin-top: .75rem;
}

.optimization-preview-content {
    width: min(760px, calc(100vw - 2rem));
}

.optimization-preview-lines {
    display: grid;
    max-height: min(52vh, 520px);
    margin: 1rem 0;
    overflow: auto;
    border-block: 1px solid #d8e2dd;
}

.optimization-preview-lines label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .7rem .25rem;
    border-bottom: 1px solid #e8efec;
}

.optimization-preview-lines label:last-child {
    border-bottom: 0;
}

.optimization-preview-lines strong {
    color: #002d72;
    white-space: nowrap;
}

@media (max-width: 620px) {
    .onboarding-steps,
    .trip-template-grid {
        grid-template-columns: 1fr;
    }

    .itinerary-empty {
        padding: 30px 22px;
    }

    .optimization-preview-lines label {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .optimization-preview-lines strong {
        grid-column: 2;
        white-space: normal;
    }
}

.finance-budget-form label {
    display: grid;
    min-width: 0;
    flex: 1 1 220px;
    gap: .35rem;
}

.finance-budget-form .button,
.inspiration-form .button {
    max-width: 100%;
    white-space: normal;
}

.finance-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.finance-entry-workspace,
.finance-unified-history {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface-soft);
}

.finance-entry-heading {
    align-items: flex-end;
}

.finance-entry-heading p:last-child {
    margin: .25rem 0 0;
    color: var(--muted);
}

.finance-entry-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.finance-entry-tabs .is-active {
    color: #071b33;
    background: var(--accent);
    border-color: var(--accent);
}

.finance-entry-panels {
    grid-template-columns: minmax(0, 1fr);
}

.finance-unified-history {
    margin-top: 1.25rem;
}

.finance-unified-history .finance-list-card[data-entry-kind="reservation"] {
    border-left: .35rem solid var(--accent);
}

.finance-unified-history .finance-list-card[data-entry-kind="expense"] {
    border-left: .35rem solid var(--green);
}

.finance-columns > section {
    min-width: 0;
}

.finance-list {
    display: grid;
    gap: .65rem;
    margin-top: 1rem;
}

.finance-list-card {
    display: flex;
    min-width: 0;
    max-width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    padding: .8rem;
    border: 1px solid #d8e2dd;
    border-radius: .75rem;
    background: #fff;
}

.finance-list-card strong,
.finance-list-card small {
    display: block;
    overflow-wrap: anywhere;
}

.finance-list-card > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.finance-list-card .member-actions {
    min-width: 0;
    flex: 0 0 auto;
}

.finance-list-card small {
    margin-top: .2rem;
    color: #5e6964;
}

@media (max-width: 900px) {
    .finance-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-columns {
        grid-template-columns: 1fr;
    }

    .finance-estimator {
        grid-template-columns: 1fr;
    }

    .finance-estimator > small {
        grid-column: auto;
    }

    .finance-scenario-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .finance-optimizer-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .finance-optimization-summary {
        grid-template-columns: 1fr;
    }
}

/* v1.1.20 — mode En voyage */
.travel-mode-launcher { white-space: nowrap; }
.travel-mode-dialog {
    background: var(--surface, #fff);
    border: 0;
    border-radius: 1.5rem;
    color: var(--text-color, #002d72);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    padding: 0;
    width: min(54rem, calc(100% - 2rem));
}
.travel-mode-dialog::backdrop { background: rgb(0 18 48 / 72%); }
.travel-mode-shell { display: grid; gap: 1.25rem; padding: 1.5rem; }
.travel-mode-header {
    align-items: start;
    display: flex;
    justify-content: space-between;
}
.travel-mode-header h2 { margin: 0; }
.travel-mode-weather {
    align-items: center;
    background: #002d72;
    border-radius: 1rem;
    color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}
.travel-mode-weather strong { color: #ff5910; font-size: 1.6rem; }
.travel-mode-overview { font-weight: 800; }
.travel-nearby {
    background: rgb(0 45 114 / 5%);
    border: 1px solid rgb(0 45 114 / 18%);
    border-radius: 1rem;
    padding: 1rem;
}
.travel-nearby-controls {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1rem 0;
}
.travel-nearby-controls label { display: grid; gap: .3rem; min-width: 9rem; }
.travel-nearby-status { margin: .75rem 0; }
.travel-nearby-map { border-radius: 1rem; height: 15rem; margin: .75rem 0; overflow: hidden; }
.travel-nearby-results { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.travel-nearby-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border-color, #dbe1dc);
    border-radius: .9rem;
    display: grid;
    gap: .35rem;
    padding: .9rem;
}
.travel-nearby-card p { margin: 0; }
.travel-nearby-card small { color: var(--muted-color, #64748b); }
.travel-nearby-card-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.travel-nearby-alert-settings,
.travel-nearby-favorites {
    border-top: 1px solid rgb(0 45 114 / 16%);
    margin-top: 1rem;
    padding-top: .8rem;
}
.travel-nearby-alert-settings summary,
.travel-nearby-favorites summary { color: #002d72; cursor: pointer; font-weight: 800; }
.travel-nearby-settings-grid { display: grid; gap: .75rem; margin-top: .75rem; }
.travel-nearby-settings-grid fieldset { border: 0; display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; padding: 0; }
.travel-nearby-settings-grid legend { font-weight: 700; margin-bottom: .35rem; width: 100%; }
.travel-nearby-alert {
    align-items: center;
    background: #ff5910;
    border-radius: .9rem;
    color: #002d72;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-top: .9rem;
    padding: .8rem 1rem;
}
.travel-nearby-favorite-line { align-items: center; display: flex; gap: .75rem; justify-content: space-between; padding: .55rem 0; }
.travel-nearby-favorite-line + .travel-nearby-favorite-line { border-top: 1px solid rgb(0 45 114 / 12%); }
.travel-position-marker {
    background: #ff5910;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgb(0 45 114 / 35%);
    height: 1.15rem;
    width: 1.15rem;
}
.travel-mode-offline {
    background: rgb(255 89 16 / 14%);
    border: 1px solid #ff5910;
    border-radius: .8rem;
    padding: .75rem 1rem;
}
.travel-mode-visits { display: grid; gap: .75rem; }
.travel-mode-visit {
    align-items: center;
    border: 1px solid var(--border-color, #dbe1dc);
    border-left: .4rem solid #002d72;
    border-radius: 1rem;
    display: grid;
    gap: .85rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1rem;
}
.travel-mode-visit.is-completed { border-left-color: #2f9e44; opacity: .78; }
.travel-mode-visit.is-postponed { border-left-color: #ff5910; }
.travel-mode-visit.is-skipped { border-left-color: #8792a5; opacity: .68; }
.travel-mode-time { color: #ff5910; font-weight: 800; }
.travel-mode-visit small { display: block; margin-top: .2rem; }
.travel-mode-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: end; }
.travel-mode-support-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.travel-mode-support-grid article {
    border: 1px solid var(--border-color, #dbe1dc);
    border-radius: 1rem;
    padding: 1rem;
}
@media (max-width: 700px) {
    .travel-mode-dialog { border-radius: 0; height: 100dvh; max-height: 100dvh; width: 100%; }
    .travel-mode-shell { padding: 1rem; }
    .travel-mode-weather { align-items: start; flex-direction: column; }
    .travel-mode-visit { align-items: start; grid-template-columns: auto 1fr; }
    .travel-mode-actions { grid-column: 1 / -1; justify-content: stretch; }
    .travel-mode-actions .button { flex: 1; }
    .travel-mode-support-grid { grid-template-columns: 1fr; }
    .travel-nearby-results { grid-template-columns: 1fr; }
    .travel-nearby-controls > * { flex: 1 1 9rem; }
    .travel-nearby-alert { align-items: stretch; flex-direction: column; }
}

.inspiration-stop p {
    margin: .25rem 0 .5rem;
    font-size: .88rem;
}

.inspiration-stop label {
    display: grid;
    gap: .25rem;
    font-size: .82rem;
}

.visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .65rem;
}

.visit-actions .button {
    padding: .45rem .7rem;
    font-size: .82rem;
}

.visit-actions .visit-order-button {
    min-width: 2.25rem;
    padding-inline: .55rem;
    font-size: 1rem;
    line-height: 1;
}

.inspiration-card .button {
    margin-top: auto;
}

.day-planning-notes {
    padding: 1rem;
    border: 1px solid #c8ded5;
    border-radius: .8rem;
    background: #f1f8f5;
}

.day-planning-notes p {
    margin: .45rem 0 0;
    white-space: pre-line;
}

@media (max-width: 960px) {
    .inspiration-form,
    .inspiration-results,
    .discovery-results,
    .replacement-results {
        grid-template-columns: 1fr 1fr;
    }

    .discovery-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discovery-form label:nth-child(2),
    .discovery-form .button {
        grid-column: span 1;
    }

    .replacement-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .replacement-preference,
    .day-suggestion-form .day-suggestion-query,
    .day-suggestion-form .day-suggestion-preference,
    .replacement-form .button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .inspiration-dialog,
    .finance-dialog,
    .discovery-dialog,
    .replacement-dialog {
        max-width: calc(100% - 16px);
    }

    .inspiration-form,
    .inspiration-results,
    .discovery-form,
    .discovery-results,
    .replacement-form,
    .replacement-results {
        grid-template-columns: 1fr;
    }

    .replacement-preference,
    .day-suggestion-form .day-suggestion-query,
    .day-suggestion-form .day-suggestion-preference,
    .replacement-form .button {
        grid-column: span 1;
    }

    .inspiration-form .inspiration-destination,
    .inspiration-form .inspiration-cities,
    .inspiration-form .inspiration-concept {
        grid-column: span 1;
    }

    .inspiration-card {
        padding: 1rem;
    }

    .inspiration-days,
    .inspiration-notes {
        padding-left: 1rem;
    }

    .finance-budget-form,
    .finance-list-card {
        align-items: stretch;
        flex-direction: column;
    }

    .finance-budget-form .button {
        width: 100%;
    }

    .finance-budget-form label {
        width: 100%;
        flex: 0 1 auto;
    }

    .finance-estimate-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-estimate-form .button {
        grid-column: 1 / -1;
    }

    .finance-list-card .member-actions {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-list-card .member-actions .button {
        width: 100%;
        padding-inline: 12px;
    }

    .map-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 0 22px 14px;
    }

    .map-toolbar .map-help {
        padding-inline: 0;
    }

    .map-language-select {
        width: 100%;
        min-width: 0;
    }

    .map-provider-status {
        padding-inline: 22px;
    }

    .itinerary-panel,
    .day-itinerary {
        min-height: 0;
    }

    .visit-card-content {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .visit-card-image {
        width: 64px;
        height: 58px;
    }

    .visit-card-visual .place-image-placeholder {
        width: 64px;
        height: 58px;
    }
}

.trip-summary-page {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.user-guide-page {
    padding: 64px 0 110px;
}

.guide-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    padding: 44px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), #23453e);
    border-radius: 28px;
}

.guide-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: .96;
}

.guide-hero p:last-child {
    max-width: 700px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.6;
}

.guide-hero .button-primary {
    color: var(--ink);
    background: var(--yellow);
    white-space: nowrap;
}

.guide-toc {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 24px 0 34px;
}

.guide-toc a {
    padding: 9px 13px;
    color: var(--green);
    background: #edf3ee;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
}

.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 34px;
}

.guide-content {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.guide-section {
    padding: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    scroll-margin-top: 24px;
}

.guide-section h2,
.guide-section h3 {
    margin-top: 0;
}

.guide-section h3 {
    margin-top: 26px;
}

.guide-section p,
.guide-section li,
.guide-section dd {
    color: var(--muted);
    line-height: 1.65;
}

.guide-section li + li {
    margin-top: 7px;
}

.guide-callout {
    margin-top: 20px;
    padding: 15px 17px;
    color: #174d40;
    background: #e6f1eb;
    border-left: 4px solid var(--green);
    border-radius: 10px;
    line-height: 1.55;
}

.guide-callout.is-warning {
    color: #762e25;
    background: #fbeae5;
    border-left-color: var(--coral);
}

.guide-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.guide-role-grid > div {
    display: grid;
    min-width: 0;
    gap: 5px;
    padding: 14px;
    background: #f4f6f2;
    border-radius: 12px;
}

.guide-role-grid span {
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.45;
}

.guide-faq dt {
    margin-top: 18px;
    font-weight: 800;
}

.guide-faq dd {
    margin: 5px 0 0;
}

.guide-aside {
    position: sticky;
    top: 24px;
    padding: 26px;
    background: #f0e4c7;
    border-radius: 20px;
}

.guide-aside h2 {
    margin-top: 0;
}

.guide-aside ul {
    padding-left: 20px;
    line-height: 1.7;
}

.guide-aside .button {
    width: 100%;
    margin-top: 12px;
    background: rgba(255, 255, 255, .58);
}

@media (max-width: 900px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-aside {
        position: static;
    }
}

@media (max-width: 620px) {
    .user-guide-page {
        padding-top: 32px;
    }

    .guide-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 28px 22px;
    }

    .guide-hero .button {
        width: 100%;
    }

    .guide-section {
        padding: 24px 20px;
    }

    .guide-role-grid {
        grid-template-columns: 1fr;
    }
}

.summary-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-hero h1,
.summary-hero p {
    margin-top: 0;
}

.summary-actions {
    display: flex;
    min-width: 0;
    align-items: end;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .75rem;
}

.summary-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-weather {
    margin-bottom: 1rem;
    padding: 1.1rem;
    background: linear-gradient(110deg, #edf6f1, #fff7e5);
    border: 1px solid #cddfd6;
    border-radius: 1rem;
}

.summary-weather-heading,
.summary-day-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.summary-weather-heading {
    margin-bottom: .8rem;
}

.summary-weather-heading h2,
.summary-weather-heading small,
.summary-day-heading h2 {
    margin: 0;
}

.summary-weather-heading small {
    color: var(--muted);
}

.summary-weather-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .7rem;
}

.summary-weather-card {
    min-width: 0;
    display: grid;
    gap: .35rem;
    padding: .8rem;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(0, 45, 114, .13);
    border-radius: .8rem;
}

.summary-weather-card > small,
.summary-weather-card > span:last-child {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.summary-weather-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .65rem;
    color: var(--green);
    background: var(--green-light);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 750;
    white-space: nowrap;
}

.summary-weather-badge.is-expanded {
    justify-self: start;
    padding: 0;
    background: transparent;
    border-radius: 0;
    white-space: normal;
}

.summary-weather-badge .trip-weather-icon {
    font-size: 1.35rem;
}

.summary-finance {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #d8e2dd;
    border-radius: 1rem;
    background: #f7faf8;
}

.summary-finance h2,
.summary-finance p {
    margin-top: 0;
}

.summary-reservations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .75rem;
}

.summary-reservations article {
    display: grid;
    gap: .2rem;
    padding: .8rem;
    border: 1px solid #d8e2dd;
    border-radius: .75rem;
    background: #fff;
}

.summary-metrics article {
    display: grid;
    gap: .2rem;
    padding: 1rem 1.2rem;
    border: 1px solid #d8e2dd;
    border-radius: .9rem;
    background: #fff;
}

.summary-metrics strong {
    color: #002d72;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.7rem;
}

.summary-map {
    width: 100%;
    min-height: 520px;
    border: 1px solid #cad8d1;
    border-radius: 1rem;
    overflow: hidden;
}

.summary-days {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.summary-day {
    padding: 1.25rem;
    border: 1px solid #d8e2dd;
    border-radius: 1rem;
    background: #fff;
}

.summary-day h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.summary-day-heading {
    margin-bottom: 1rem;
}

.summary-day-heading h2 {
    margin-bottom: 0;
}

.summary-stop {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: .8rem 0;
    border-top: 1px solid #edf0ee;
}

.summary-stop-time {
    color: #002d72;
    font-weight: 700;
}

.summary-stop small,
.summary-stop p {
    display: block;
    margin: .25rem 0 0;
    color: #5e6964;
}

.summary-stop-content {
    display: grid;
    min-width: 0;
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: .9rem;
    overflow-wrap: anywhere;
}

.summary-stop-image {
    width: 76px;
    height: 66px;
    object-fit: cover;
    border: 1px solid #d8e2dd;
    border-radius: .65rem;
    background: #e7eee9;
}

.summary-stop-details {
    min-width: 0;
    overflow-wrap: anywhere;
}

.summary-stop-details .discovery-detail-list,
.visit-card-details .discovery-detail-list {
    margin-top: .55rem;
}

@media (max-width: 700px) {
    .summary-hero {
        display: grid;
    }

    .summary-actions {
        justify-content: flex-start;
    }

    .summary-actions > * {
        width: 100%;
    }

    .summary-metrics {
        grid-template-columns: 1fr;
    }

    .summary-day-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-map {
        min-height: 380px;
    }

    .summary-stop {
        grid-template-columns: 1fr;
    }

    .summary-stop-content {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .summary-stop-image {
        width: 64px;
        height: 58px;
    }

    .summary-stop-visual .place-image-placeholder {
        width: 64px;
        height: 58px;
    }
}

.assistant-form,
.assistant-result,
.assistant-placeholder {
    padding: 22px;
    background: #f4f5f1;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.assistant-result,
.assistant-placeholder {
    min-height: 390px;
}

.assistant-result h3,
.assistant-placeholder h3 {
    margin: 4px 0 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 2rem;
}

.assistant-answer {
    margin: 14px 0 0;
    color: #3e4845;
    white-space: pre-wrap;
    line-height: 1.7;
}

.assistant-recommendations {
    display: grid;
    gap: 9px;
    margin: 18px 0;
}

.assistant-recommendation {
    position: relative;
    padding: 14px 92px 14px 14px;
    background: white;
    border: 1px solid var(--line);
    border-left: 4px solid #9baba4;
    border-radius: 13px;
}

.assistant-recommendation[data-priority="medium"] {
    border-left-color: #d9a93e;
}

.assistant-recommendation[data-priority="high"] {
    border-left-color: #c96552;
}

.assistant-recommendation strong {
    display: block;
    font-size: .88rem;
}

.assistant-recommendation p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.5;
}

.assistant-recommendation span {
    position: absolute;
    top: 14px;
    right: 13px;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.assistant-actions {
    display: grid;
    gap: 12px;
    margin: 20px 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.assistant-actions[hidden] {
    display: none;
}

.assistant-actions h4 {
    margin: 0;
    font-size: .98rem;
}

.assistant-actions > div:first-child small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.assistant-action-list {
    display: grid;
    gap: 10px;
}

.assistant-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #edf5f0;
    border: 1px solid #c9ddd3;
    border-radius: 13px;
}

.assistant-action[data-status="Applied"] {
    background: #f3f5f2;
    border-color: var(--line);
}

.assistant-action strong,
.assistant-action-schedule {
    display: block;
}

.assistant-action-type {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 3px 7px;
    color: #315c4c;
    background: #dcece4;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.assistant-action-schedule {
    margin-top: 3px;
    color: var(--green);
    font-size: .76rem;
    font-weight: 800;
}

.assistant-action p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.45;
}

.assistant-action .assistant-action-notes {
    color: var(--ink);
    font-style: italic;
}

.assistant-action-explanation {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .25rem .65rem;
    margin: .65rem 0 0;
    font-size: .88rem;
}

.assistant-action-explanation dt {
    color: var(--muted);
    font-weight: 700;
}

.assistant-action-explanation dd {
    margin: 0;
}

.assistant-undo-batch {
    width: 100%;
    margin-top: .65rem;
}

@media (max-width: 640px) {
    .assistant-action {
        grid-template-columns: minmax(0, 1fr);
    }

    .assistant-action .button {
        width: 100%;
    }
}

.assistant-placeholder {
    display: grid;
    place-content: center;
    justify-items: center;
    color: var(--muted);
    text-align: center;
}

.assistant-placeholder > span {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    color: var(--green);
    background: var(--green-light);
    border-radius: 50%;
    font-size: 2rem;
}

.assistant-placeholder p {
    max-width: 420px;
    line-height: 1.6;
}

.journal-dialog {
    width: min(1180px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 28px;
}

.journal-dialog::backdrop {
    background: rgba(9, 24, 21, .68);
    backdrop-filter: blur(5px);
}

.journal-dialog-content {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 34px;
    background: var(--surface);
    border: 1px solid rgba(23, 33, 31, .12);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(9, 24, 21, .34);
}

.journal-layout {
    display: grid;
    grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.journal-editor,
.journal-feed {
    padding: 22px;
    background: #f4f5f1;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.journal-editor {
    position: sticky;
    top: 0;
}

.journal-editor h3,
.journal-feed h3,
.journal-card h4 {
    margin: 0;
    font-family: "Bricolage Grotesque", sans-serif;
}

.journal-editor .stacked-form {
    margin-top: 18px;
}

.form-help {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.5;
}

.journal-list {
    display: grid;
    gap: 14px;
}

.journal-empty {
    margin: 0;
    padding: 28px;
    color: var(--muted);
    text-align: center;
    background: white;
    border: 1px dashed #b9c6bf;
    border-radius: 16px;
    line-height: 1.6;
}

.journal-card {
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(18, 46, 40, .05);
}

.journal-card > header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.journal-card h4 {
    font-size: 1.35rem;
}

.journal-meta {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .72rem;
}

.visibility-badge {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: #514727;
    background: #f8efcd;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.visibility-badge[data-visibility="Travelers"] {
    color: #184d43;
    background: #dcece5;
}

.visibility-badge[data-visibility="Public"] {
    color: #743728;
    background: #f5ded6;
}

.journal-body {
    margin: 16px 0 0;
    color: #3e4845;
    white-space: pre-wrap;
    line-height: 1.7;
}

.journal-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.journal-photo {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #edf0ec;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.journal-photo > a {
    display: block;
}

.journal-photo img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
}

.journal-photo figcaption {
    padding: 9px 11px;
    color: var(--muted);
    font-size: .72rem;
}

.journal-photo-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 9px;
    padding: 9px;
    background: white;
}

.journal-photo-controls input {
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    font-size: .72rem;
}

.journal-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.text-button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.public-story,
.public-story-empty {
    width: min(900px, 100% - 32px);
    margin: 0 auto;
    padding: 80px 0 100px;
}

.public-story {
    --story-brand: var(--green);
    border-top: 5px solid var(--story-brand);
}

.public-story-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 54px;
}

.public-story-brand img {
    width: auto;
    max-width: 190px;
    height: 54px;
    object-fit: contain;
}

.public-story-brand > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--story-brand);
    border-radius: 50%;
    font-family: "Bricolage Grotesque", sans-serif;
}

.public-story-brand strong {
    font-size: 1.05rem;
}

.public-story[style] .public-story-hero .eyebrow {
    color: var(--story-brand);
}

.public-story-empty {
    min-height: 70vh;
    display: grid;
    place-content: center;
    justify-items: start;
}

.public-story-empty h1,
.public-story-hero h1 {
    max-width: 820px;
    margin: 8px 0 14px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(3.2rem, 8vw, 6.4rem);
    line-height: .95;
    letter-spacing: -.04em;
}

.public-story-empty > p:not(.eyebrow),
.public-story-hero > p:last-child {
    color: var(--muted);
    line-height: 1.6;
}

.public-story-empty .button {
    margin-top: 18px;
}

.public-story-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 46px;
}

.public-story-gallery figure {
    margin: 0;
    overflow: hidden;
    background: #edf0ec;
    border-radius: 20px;
}

.public-story-gallery figure:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
}

.public-story-gallery img {
    width: 100%;
    max-height: 620px;
    display: block;
    object-fit: cover;
}

.public-story-gallery figcaption {
    padding: 12px 15px;
    color: var(--muted);
    font-size: .78rem;
}

.public-story-body {
    max-width: 720px;
    margin: 46px auto 0;
    color: #303c38;
    white-space: pre-wrap;
    font-size: 1.08rem;
    line-height: 1.9;
}

.public-story-footer {
    min-height: auto;
    margin-top: 54px;
    padding-top: 22px;
    font-size: .8rem;
}

.public-story-footer a {
    color: var(--story-brand, var(--green));
    font-weight: 800;
}

.empty-state {
    min-height: 70vh;
    display: grid;
    place-content: center;
    justify-items: start;
}

.empty-state h1 {
    margin: 0;
    font-size: 4rem;
}

footer {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    border-top: 1px solid rgba(23, 33, 31, .12);
    font-size: .82rem;
}

.app-version {
    flex: 0 0 auto;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 20px 20px 20px;
    padding: 16px;
    color: white;
    background: #8d3428;
    border-radius: 14px;
    z-index: 1000;
}

@media (max-width: 900px) {
    .topbar {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .topbar > nav.shell-inline-nav {
        display: none;
    }

    .topbar-session {
        grid-column: auto;
    }

    .topbar-public-actions {
        grid-row: auto;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: clamp(3.8rem, 16vw, 6rem);
    }

    .journey-card {
        transform: none;
    }

    .feature-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .account-page {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .account-intro {
        max-width: 720px;
    }

    .planner-workspace {
        grid-template-columns: 1fr;
    }

    .planner-workspace.is-sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .planner-workspace.is-sidebar-collapsed .trip-sidebar {
        width: 0;
        height: 0;
    }

    .planner-workspace.is-sidebar-collapsed {
        gap: 58px;
    }

    .trip-sidebar {
        position: static;
    }

    .itinerary-editor {
        grid-template-columns: 1fr;
    }

    .team-dialog-grid,
    .team-columns,
    .validation-layout,
    .assistant-layout,
    .journal-layout {
        grid-template-columns: 1fr;
    }

    .team-seat-summary {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .team-seat-summary > .button {
        align-self: flex-start;
    }

    .journal-editor {
        position: static;
    }

    .visit-form {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 620px) {
    .shell > main,
    .shell > footer {
        width: min(100% - 24px, 1180px);
    }

    .topbar {
        min-height: 72px;
        padding-inline: 12px;
    }

    .topbar > nav.shell-inline-nav {
        display: none;
    }

    .brand > [data-brand-name] {
        display: none;
    }

    .topbar-session,
    .topbar-context-actions {
        gap: 5px;
    }

    .topbar-context-actions .shell-menu-label-text {
        display: none;
    }

    .topbar-user {
        justify-content: center;
        padding: 0;
        width: 40px;
    }

    .topbar-user span {
        display: none;
    }

    .topbar-context-actions .shell-menu > summary.button {
        width: 40px;
        min-height: 38px;
        padding: 0;
        font-size: .82rem;
    }

    .topbar-context-actions .shell-menu > summary::after {
        display: none;
    }

    .shell-navigation-menu > summary.button {
        min-height: 38px;
        padding-inline: 10px;
        font-size: .82rem;
    }

    .shell-menu-panel {
        position: fixed;
        top: 68px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }

    .hero {
        padding-top: 46px;
    }

    .hero h1 {
        font-size: 3.7rem;
    }

    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .foundation-grid {
        grid-template-columns: 1fr;
    }

    .planner-page {
        padding-top: 42px;
    }

    .planner-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .planner-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .planner-hero h1 {
        font-size: 3.5rem;
    }

    .account-page {
        min-height: auto;
        padding: 46px 0 72px;
    }

    .account-intro h1 {
        font-size: 3.7rem;
    }

    .account-card {
        padding: 26px;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .field-pair {
        grid-template-columns: 1fr;
    }

    .place-search-row {
        grid-template-columns: 1fr;
    }

    .team-dialog,
    .notifications-dialog,
    .validation-dialog,
    .alerts-dialog,
    .assistant-dialog,
    .journal-dialog,
    .visit-dialog {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
    }

    .team-dialog-content,
    .notifications-dialog-content,
    .validation-dialog-content,
    .alerts-dialog-content,
    .assistant-dialog-content,
    .journal-dialog-content {
        max-height: calc(100vh - 16px);
        padding: 20px;
        border-radius: 20px;
    }

    .visit-dialog-content {
        max-height: calc(100vh - 16px);
        padding: 20px;
        border-radius: 20px;
    }

    .notification-toolbar,
    .notification-card > header {
        align-items: stretch;
        flex-direction: column;
    }

    .journal-gallery,
    .public-story-gallery {
        grid-template-columns: 1fr;
    }

    .assistant-provider {
        align-items: flex-start;
        flex-direction: column;
    }

    .alerts-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .travel-alert {
        grid-template-columns: 12px minmax(0, 1fr);
    }

    .travel-alert > .button {
        grid-column: 2;
        justify-self: start;
    }

    .assistant-recommendation {
        padding-right: 14px;
    }

    .assistant-recommendation span {
        position: static;
        display: block;
        margin-top: 8px;
    }

    .validation-card > header,
    .validation-comment-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .validation-card > header {
        flex-direction: column;
    }

    .validation-comment-form .button {
        justify-self: start;
    }

    .assistant-action {
        grid-template-columns: 1fr;
    }

    .assistant-action .button {
        justify-self: start;
    }

    .public-story-gallery figure:first-child:nth-last-child(odd) {
        grid-column: auto;
    }

    .public-story,
    .public-story-empty {
        padding-top: 52px;
    }

    .invitation-link > div,
    .member-card,
    .invitation-card {
        grid-template-columns: 1fr;
    }

    .member-card,
    .invitation-card {
        align-items: stretch;
        flex-direction: column;
    }

    .member-actions {
        width: 100%;
        justify-items: stretch;
    }

    .itinerary-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .day-itinerary-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .day-selector {
        max-width: none;
    }

    .day-navigation {
        grid-template-columns: auto minmax(0, 1fr) auto;
        width: 100%;
        flex: 0 0 auto;
    }

    .day-navigation .day-selector {
        grid-column: 2;
        grid-row: 1;
    }

    .day-navigation-button {
        width: 47px;
        white-space: normal;
    }

    .day-navigation-button.is-previous {
        grid-column: 1;
        grid-row: 1;
    }

    .day-navigation-button.is-next {
        grid-column: 3;
        grid-row: 1;
    }

    .day-add-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .day-add-visit,
    .day-add-ai {
        width: 100%;
    }

    .route-summary {
        max-width: none;
        text-align: left;
    }

    .planner-map {
        height: min(320px, 42dvh);
        min-height: 240px;
    }

    .day-itinerary,
    .visit-form {
        padding: 22px;
    }

    .trip-weather-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .trip-weather-source {
        grid-column: 2;
        text-align: left;
    }

    .visit-dialog-actions {
        align-items: stretch;
        flex-direction: column;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}
/* Language selectors share the compact top-bar visual vocabulary. */
.topbar-language-field,
.shell-language-field {
    margin: 0;
    position: relative;
}

.topbar-language-field > summary {
    width: 3.65rem;
    min-height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
    color: var(--ink);
    padding: 0.45rem 1.15rem 0.45rem 0.55rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    list-style: none;
}

.topbar-language-field > summary::-webkit-details-marker {
    display: none;
}

.topbar-language-field > summary::after {
    content: "";
    position: absolute;
    right: 0.48rem;
    border: 0.25rem solid transparent;
    border-top-color: var(--muted);
    margin-top: 0.25rem;
}

.topbar-language-field img {
    width: 1.55rem;
    height: 1.05rem;
    object-fit: cover;
    border-radius: 0.12rem;
    box-shadow: 0 0 0 1px rgb(15 23 42 / 16%);
}

.language-menu-options {
    max-height: min(70dvh, 30rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    position: absolute;
    z-index: 1200;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 9.5rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.language-menu-options button {
    width: 100%;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--ink);
    padding: 0.55rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font: inherit;
    cursor: pointer;
}

[data-language-current-flag], [data-language-flag] {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.language-menu-options button:hover,
.language-menu-options button[aria-current="true"] {
    color: #002d72;
    background: #ff5910;
}

.shell-language-field {
    display: grid;
    gap: 0.35rem;
    padding: 0.65rem 0.85rem;
}

.shell-language-field > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 720px) {
    .topbar-language-field > summary {
        width: 3.65rem;
    }
}
/* Administration opérationnelle */
.admin-page{max-width:1240px;margin:0 auto;padding:2.5rem 1.25rem 4rem}.admin-hero{display:flex;justify-content:space-between;gap:2rem;align-items:flex-start;margin-bottom:1.5rem}.admin-hero h1{margin:.2rem 0}.admin-freshness{color:var(--muted);font-size:.9rem}.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.5rem 0}.admin-metrics article,.admin-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:1.25rem;box-shadow:0 10px 30px rgba(23,33,31,.06)}.admin-metrics span,.admin-metrics small{display:block;color:var(--muted)}.admin-metrics strong{display:block;font-size:1.7rem;margin:.4rem 0}.admin-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:1rem;margin-bottom:1rem}.admin-card h2{margin-top:0}.admin-provider,.admin-issue{display:flex;justify-content:space-between;gap:1rem;padding:.9rem 0;border-top:1px solid var(--line)}.admin-provider:first-child,.admin-issue:first-child{border-top:0}.admin-provider small{display:block;color:var(--muted)}.admin-provider>span,.admin-issue>small{text-align:right;color:var(--muted)}.admin-queue{display:grid;gap:.7rem}.admin-queue span{display:flex;justify-content:space-between;padding:.8rem;border-radius:12px;background:var(--paper)}.admin-issue strong{display:block;margin:.45rem 0}.admin-issue p{margin:0}.admin-empty{padding:1rem;text-align:center;color:var(--muted)}
@media(max-width:850px){.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-grid{grid-template-columns:1fr}}@media(max-width:560px){.admin-hero,.admin-issue{display:block}.admin-metrics{grid-template-columns:1fr}.admin-issue>small{display:block;text-align:left;margin-top:.8rem}}
.collaboration-tasks {
    margin-top: 1.5rem;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}

.collaboration-tasks > .stacked-form {
    margin-bottom: 1rem;
}

.collaboration-tasks details {
    margin-top: 1rem;
}

.collaboration-tasks summary {
    cursor: pointer;
    font-weight: 700;
}

/* v1.1.21 — checklist de préparation */
.checklist-summary { display: grid; gap: .65rem; margin-bottom: 1rem; }
.checklist-summary progress { accent-color: #ff5910; height: .8rem; width: 100%; }
.checklist-card { border-left: .35rem solid #ff5910; }
.checklist-category {
    background: rgb(0 45 114 / 9%); border-radius: 999px; color: #002d72;
    display: inline-flex; font-size: .75rem; font-weight: 800; padding: .25rem .65rem;
}
.reservation-import {
    display: grid;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color, #dbe1dc);
    border-radius: 1rem;
    background: rgba(226, 239, 234, .45);
}

.reservation-import > div:first-child {
    display: grid;
    gap: .25rem;
}

/* v0.67.0 — accessibilité, navigation clavier et petits écrans */
.skip-link {
    position: fixed;
    z-index: 5000;
    top: .75rem;
    left: .75rem;
    padding: .75rem 1rem;
    border-radius: .65rem;
    color: #fff;
    background: #0b3d35;
    box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
    transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #0b6dd7;
    outline-offset: 3px;
}

:where(button, .button, summary, input:not([type="checkbox"]), select) { min-height: 44px; }

dialog::backdrop { background: rgb(7 20 17 / 58%); }

.responsive-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
}

.responsive-table > table { min-width: 42rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 720px) {
    body { overflow-x: hidden; }
    .shell { width: 100%; }
    .topbar { padding-inline: .75rem; }
    .topbar-session { min-width: 0; gap: .35rem; }
    .topbar-context-actions { min-width: 0; }
    .shell-menu-label-text { display: none; }
    .shell-menu-panel { max-height: calc(100dvh - 5.5rem); overflow-y: auto; }
    dialog { margin: auto; }
    dialog > :first-child { max-height: calc(100dvh - 1rem); overflow-y: auto; }
    .planner-page, .admin-page, .subscription-page { padding-inline: .75rem; }
    .planner-hero h1, .hero h1, .account-intro h1 { font-size: clamp(2.35rem, 13vw, 3.4rem); }
    .button, button { max-width: 100%; }
}

@media (forced-colors: active) {
    :where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid Highlight; }
    .button, button, input, select, textarea, dialog { border: 1px solid CanvasText; }
}

/* v0.68.0 — observabilité de production */

/* v0.69.0 — extraction locale des confirmations PDF et image */

/* v0.70.0 — contrôle de préparation production */
.admin-readiness {
    display: grid;
    gap: .7rem;
    margin-top: 1rem;
}

.admin-readiness-item {
    align-items: flex-start;
    border: 1px solid var(--border-color, #d9e2df);
    border-left: 4px solid #c58b21;
    border-radius: .75rem;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(6.8rem, auto) 1fr;
    padding: .85rem;
}

.admin-readiness-item[data-status="Ready"] { border-left-color: #18805d; }
.admin-readiness-item[data-status="Blocked"] { border-left-color: #b33c35; }
.admin-readiness-item p { margin: .2rem 0 0; }

@media (max-width: 600px) {
    .admin-readiness-item { grid-template-columns: 1fr; }
}
.reservation-import-progress {
    display: grid;
    gap: .35rem;
}

.reservation-import-progress progress {
    width: 100%;
    min-height: .75rem;
    accent-color: var(--color-primary, #002d72);
}

.reservation-import-progress[hidden] {
    display: none;
}
.admin-observability-table {
    width: 100%;
    min-width: 38rem;
    border-collapse: collapse;
}

.admin-observability-table th,
.admin-observability-table td {
    padding: .7rem .85rem;
    border-bottom: 1px solid var(--border-color, #dbe1dc);
    text-align: left;
}

.admin-observability-table code {
    white-space: nowrap;
    color: inherit;
}

/* v1.1.0 — gestion du compte et sécurité de l’identité */
.account-management-page {
    display: grid;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 72rem;
    padding: 3rem 1.25rem;
}

.account-management-hero {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.account-management-hero h1 { margin-bottom: .35rem; }
.account-management-hero p { margin-bottom: 0; }

.account-management-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.account-settings-card {
    align-content: start;
    background: var(--surface, #fff);
    border: 1px solid var(--border-color, #dbe1dc);
    border-radius: 1rem;
    box-shadow: 0 .75rem 2rem rgb(20 52 46 / 8%);
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.account-settings-card h2 { margin-bottom: 0; }
.tag.is-warning { border-color: #c58b21; color: #9a6411; }

@media (max-width: 600px) {
    .account-management-hero { align-items: flex-start; flex-direction: column; }
}

.legal-page {
    width: min(52rem, calc(100% - 2rem));
    margin: 3rem auto;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid var(--border-color, #dbe1dc);
    border-radius: 1.5rem;
    background: var(--surface, #ffffff);
}

.legal-page h2 { margin-top: 2rem; }
.legal-page p, .legal-page li { line-height: 1.65; }
.legal-page dl {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) 2fr;
    gap: .6rem 1rem;
}
.legal-page dt { font-weight: 700; }
.legal-page dd { margin: 0; }
.legal-page blockquote {
    margin: 1rem 0;
    padding: 1.25rem;
    border-left: .3rem solid var(--color-primary, #002d72);
    background: rgb(22 78 67 / 7%);
    line-height: 1.65;
}

.legal-configuration-warning {
    padding: 1rem;
    border: 1px solid #c58b21;
    border-radius: .8rem;
    background: rgb(197 139 33 / 10%);
}

.shell > footer nav,
.account-shell > footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
}

@media (max-width: 600px) {
    .legal-page dl { grid-template-columns: 1fr; }
}

/* v1.1.19 — voyageurs et préférences */
.traveler-profile-dialog { max-width: 46rem; }
.traveler-section-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: .75rem;
}
.traveler-section-heading h3 { margin: 0; }
.traveler-list { display: grid; gap: .75rem; }
.traveler-row {
    align-items: end;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(10rem, 1fr) minmax(9rem, .7fr) auto;
}
@media (max-width: 600px) {
    .traveler-section-heading { align-items: stretch; flex-direction: column; }
    .traveler-row { grid-template-columns: 1fr auto; }
    .traveler-row label:first-child { grid-column: 1 / -1; }
}
.partner-mailbox-list { display: grid; gap: 1rem; }
.partner-mailbox-message { border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; background: var(--surface); }
.partner-mailbox-message header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.partner-mailbox-message header div { display: grid; gap: .2rem; }
.partner-mailbox-message h3 { margin: 1rem 0 .5rem; }
.partner-mailbox-body { white-space: pre-wrap; overflow-wrap: anywhere; padding: .8rem; border-radius: .7rem; background: var(--surface-subtle); }
.partner-mailbox-message label { display: grid; gap: .4rem; margin-top: .8rem; font-weight: 700; }
.partner-mailbox-message input, .partner-mailbox-message textarea { width: 100%; font: inherit; padding: .7rem; color: var(--ink); background: var(--input-surface); border: 1px solid var(--input-border); border-radius: .65rem; }
.admin-accordion-stack { display: grid; gap: .8rem; margin-top: 1rem; }
.admin-accordion { padding: 0; overflow: clip; }
.admin-accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; user-select: none; }
.admin-accordion summary::-webkit-details-marker { display: none; }
.admin-accordion summary > span:first-child { display: grid; gap: .2rem; }
.admin-accordion summary small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.admin-accordion summary strong { font-size: 1.08rem; }
.admin-summary-meta { display: flex; align-items: center; gap: .8rem; }
.admin-accordion-chevron { width: .7rem; height: .7rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .18s ease; flex: 0 0 auto; }
.admin-accordion[open] .admin-accordion-chevron { transform: rotate(225deg); }
.admin-accordion[open] summary { border-bottom: 1px solid var(--line); }
.admin-accordion-content { padding: 1.25rem; }
.admin-accordion summary:hover, .admin-accordion summary:focus-visible { background: var(--paper); }
@media(max-width:560px){.admin-summary-meta .status{display:none}.admin-accordion summary{padding:1rem}.admin-accordion-content{padding:1rem}}

/* v1.1.40 — pipeline prospects lisible et compact */
.prospect-configuration { border: 1px solid var(--border); border-radius: .9rem; background: var(--surface-subtle); margin-bottom: 1.25rem; overflow: clip; }
.prospect-configuration > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; padding: 1rem 1.1rem; }
.prospect-configuration > summary::-webkit-details-marker, .prospect-card > summary::-webkit-details-marker { display: none; }
.prospect-configuration > summary > span:first-child { display: grid; gap: .15rem; }
.prospect-configuration > summary small { color: var(--muted); }
.prospect-configuration[open] > summary { border-bottom: 1px solid var(--border); }
.prospect-configuration[open] > summary .admin-accordion-chevron, .prospect-card[open] .admin-accordion-chevron { transform: rotate(225deg); }
.prospect-configuration-content { display: grid; gap: 1.4rem; padding: 1rem; }
.prospect-pipeline { margin-top: 1.4rem; }
.prospect-pipeline-heading { align-items: end; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: .8rem; }
.prospect-pipeline-heading h3, .prospect-pipeline-heading p { margin: 0; }
.prospect-cockpit{display:grid;gap:.7rem;grid-template-columns:repeat(4,minmax(0,1fr));margin:1rem 0}
.prospect-cockpit>div{background:var(--surface-subtle);border:1px solid var(--border);border-radius:.9rem;display:grid;gap:.25rem;padding:.85rem}
.prospect-cockpit small{color:var(--muted);font-weight:700}.prospect-cockpit strong{color:var(--coral);font-size:1.45rem}
.prospect-toolbar { align-items: end; background: var(--surface-subtle); border: 1px solid var(--border); border-radius: .9rem; display: grid; gap: .75rem; grid-template-columns: minmax(14rem, 2fr) minmax(10rem, 1fr) minmax(10rem, 1fr); margin-bottom: 1rem; padding: .9rem; }
.prospect-toolbar label { display: grid; gap: .35rem; font-weight: 700; }
.prospect-toolbar label span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.prospect-toolbar input, .prospect-toolbar select { background: var(--input-surface); border: 1px solid var(--input-border); border-radius: .65rem; color: var(--ink); font: inherit; min-height: 2.8rem; padding: .65rem .75rem; width: 100%; }
.prospect-list { gap: .75rem; }
.prospect-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; overflow: clip; transition: border-color .18s ease, box-shadow .18s ease; }
.prospect-card:hover { border-color: var(--coral); }
.prospect-card[open] { box-shadow: 0 .65rem 1.7rem rgba(0,45,114,.08); }
.prospect-card-summary { align-items: center; cursor: pointer; display: grid; gap: .9rem; grid-template-columns: auto minmax(0,1fr) auto; list-style: none; padding: .9rem 1rem; }
.prospect-card-summary:hover, .prospect-card-summary:focus-visible { background: var(--surface-subtle); }
.prospect-score { align-items: baseline; background: var(--brand-primary); border-radius: .75rem; color: #fff; display: flex; justify-content: center; min-width: 4rem; padding: .65rem .5rem; }
.prospect-score strong { font-size: 1.35rem; line-height: 1; }
.prospect-score small { color: inherit; font-size: .7rem; }
.prospect-identity { display: grid; gap: .2rem; min-width: 0; }
.prospect-identity > strong { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prospect-identity > small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prospect-quick-meta { color: var(--muted); display: flex; flex-wrap: wrap; font-size: .78rem; gap: .35rem .75rem; }
.prospect-ai-badge { color: var(--brand-primary); font-weight: 800; }
.prospect-summary-status { align-items: center; display: flex; gap: .8rem; }
.prospect-card-content { border-top: 1px solid var(--border); padding: 1rem; }
.prospect-source { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: .9rem; gap: .5rem 1rem; justify-content: space-between; }
.prospect-ai-analysis { background: #fff7ed; border: 1px solid #ffd6bd; border-left: .3rem solid var(--coral); border-radius: .8rem; margin: 1rem 0; padding: 1rem; }
:root[data-theme="dark"] .prospect-ai-analysis { background: #2d1d18; border-color: #75402d; }

/* Customer-facing home page */
.home-hero {
    position: relative;
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, .88fr);
    align-items: center;
    gap: clamp(50px, 7vw, 110px);
    padding: 78px 0 96px;
}

.home-hero::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    left: -280px;
    top: 30px;
    border-radius: 50%;
    background: rgba(255, 89, 16, .07);
    filter: blur(2px);
    pointer-events: none;
}

.home-eyebrow,
.home-card-kicker,
.home-benefit-step {
    margin: 0 0 16px;
    color: var(--coral);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(4rem, 7.4vw, 7rem);
    line-height: .9;
}

.home-hero h1 span {
    color: var(--coral);
}

.home-hero-lead {
    max-width: 610px;
    margin: 30px 0;
    color: var(--muted);
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
    line-height: 1.65;
}

.home-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.home-actions .button,
.home-final-cta .button {
    min-height: 56px;
    padding-inline: 26px;
}

.home-text-link {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.home-text-link span {
    display: inline-block;
    margin-left: 6px;
    color: var(--coral);
    transition: transform .2s ease;
}

.home-text-link:hover span,
.home-text-link:focus-visible span {
    transform: translateY(4px);
}

.home-reassurance {
    display: flex;
    gap: 12px 22px;
    flex-wrap: wrap;
    margin: 32px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: .82rem;
    list-style: none;
}

.home-reassurance span {
    display: inline-grid;
    width: 19px;
    height: 19px;
    margin-right: 5px;
    place-items: center;
    color: var(--coral);
    background: rgba(255, 89, 16, .11);
    border-radius: 50%;
    font-size: .7rem;
}

.home-trip-preview {
    position: relative;
    isolation: isolate;
    padding: 28px 8px 44px 30px;
}

.home-preview-glow {
    position: absolute;
    inset: 12% 2% 2% 12%;
    z-index: -1;
    background: linear-gradient(145deg, rgba(255, 89, 16, .24), rgba(0, 45, 114, .12));
    border-radius: 46% 54% 44% 56%;
    filter: blur(36px);
}

.home-trip-card {
    position: relative;
    padding: 30px;
    color: #002d72;
    background: #fffdf9;
    border: 1px solid rgba(0, 45, 114, .1);
    border-radius: 34px;
    box-shadow: 0 32px 80px rgba(0, 45, 114, .18);
    transform: rotate(1deg);
}

.home-trip-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.home-trip-header h2 {
    margin: 0;
    color: #002d72;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.home-trip-header > div > p:last-child {
    margin: 7px 0 0;
    color: #607392;
    font-size: .84rem;
}

.home-weather {
    flex: 0 0 auto;
    padding: 9px 12px;
    color: #87300c;
    background: #fff0e8;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.home-route-visual {
    position: relative;
    height: 175px;
    margin: 24px 0 14px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 26%, rgba(255,255,255,.95) 0 5%, transparent 5.5%),
        radial-gradient(circle at 76% 70%, rgba(255,255,255,.8) 0 7%, transparent 7.5%),
        linear-gradient(135deg, rgba(0, 45, 114, .07) 25%, transparent 25%) 0 0 / 38px 38px,
        #eef5ee;
    border-radius: 24px;
}

.home-route-line {
    position: absolute;
    width: 68%;
    height: 5px;
    left: 16%;
    top: 49%;
    background: var(--coral);
    border-radius: 99px;
    transform: rotate(-10deg);
    box-shadow: 0 5px 12px rgba(255, 89, 16, .24);
}

.home-stop {
    position: absolute;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #002d72;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 5px 13px rgba(0, 45, 114, .22);
    font-size: .68rem;
    font-weight: 800;
}

.home-stop-one { left: 14%; top: 55%; }
.home-stop-two { left: 46%; top: 44%; }
.home-stop-three { right: 13%; top: 29%; }

.home-location-label {
    position: absolute;
    color: #002d72;
    font-size: .7rem;
    font-weight: 800;
}

.home-label-one { left: 10%; top: 79%; }
.home-label-two { left: 44%; top: 68%; }
.home-label-three { right: 12%; top: 53%; }

.home-day-label {
    margin: 0 0 5px;
    color: #ff5910;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-plan-row {
    display: grid;
    grid-template-columns: 44px 34px 1fr;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #e5ebf2;
}

.home-plan-time {
    color: #607392;
    font-size: .74rem;
}

.home-plan-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    background: #fff0e8;
    border-radius: 10px;
}

.home-plan-row strong,
.home-plan-row small,
.home-ai-note strong,
.home-ai-note small {
    display: block;
}

.home-plan-row strong {
    font-size: .84rem;
}

.home-plan-row small {
    margin-top: 2px;
    color: #607392;
    font-size: .7rem;
}

.home-ai-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 13px 15px;
    color: #002d72;
    background: #eaf2ff;
    border-radius: 16px;
}

.home-ai-note > span {
    color: #ff5910;
    font-size: 1.25rem;
}

.home-ai-note p {
    margin: 0;
    font-size: .78rem;
}

.home-ai-note small {
    margin-top: 2px;
    color: #607392;
}

.home-memory-card {
    position: absolute;
    right: -30px;
    bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 15px 20px;
    color: #fff;
    background: #ff5910;
    border: 4px solid var(--paper);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(121, 42, 8, .24);
    transform: rotate(-3deg);
}

.home-memory-card span {
    font-size: .67rem;
    opacity: .86;
}

.home-memory-card strong {
    font-size: .8rem;
}

.home-how {
    padding: 100px 0 110px;
    border-top: 1px solid rgba(0, 45, 114, .12);
}

.home-section-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.home-section-heading h2,
.home-final-cta h2 {
    margin: 0;
    font-size: clamp(2.7rem, 5.5vw, 5rem);
    line-height: .98;
}

.home-section-heading > p:last-child,
.home-final-cta > div > p:last-child {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.home-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.home-benefit-grid article {
    padding: 30px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid rgba(0, 45, 114, .11);
    border-radius: 26px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-benefit-grid article:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 42px rgba(0, 45, 114, .1);
}

.home-benefit-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
    place-items: center;
    color: #fff;
    background: #002d72;
    border-radius: 15px;
    font-size: 1.25rem;
}

.home-benefit-grid article:nth-child(2) .home-benefit-icon {
    background: #ff5910;
}

.home-benefit-step {
    margin-bottom: 9px;
}

.home-benefit-grid h3 {
    margin: 0 0 13px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.45rem;
    letter-spacing: -.025em;
}

.home-benefit-grid article > p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.home-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 100px;
    padding: clamp(36px, 6vw, 70px);
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 89, 16, .35), transparent 16rem),
        #002d72;
    border-radius: 36px;
    box-shadow: 0 26px 65px rgba(0, 45, 114, .2);
}

.home-final-cta h2,
.home-final-cta > div > p:last-child {
    color: #fff;
}

.home-final-cta .home-eyebrow {
    color: #ff8a52;
}

.home-final-cta .button-primary {
    flex: 0 0 auto;
    color: #002d72;
    background: #fff;
}

:root[data-theme="dark"] .home-benefit-grid article {
    background: rgba(11, 36, 80, .72);
    border-color: rgba(127, 169, 230, .2);
}

:root[data-theme="dark"] .home-memory-card {
    border-color: var(--paper);
}

@media (max-width: 980px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 60px;
    }

    .home-hero-copy {
        max-width: 760px;
    }

    .home-trip-preview {
        width: min(100%, 620px);
        margin-inline: auto;
    }

    .home-benefit-grid {
        grid-template-columns: 1fr;
    }

    .home-benefit-grid article {
        display: grid;
        grid-template-columns: 58px 1fr;
        column-gap: 16px;
    }

    .home-benefit-icon {
        grid-row: 1 / 4;
    }
}

@media (max-width: 640px) {
    .home-hero {
        min-height: auto;
        padding: 48px 0 70px;
    }

    .home-hero h1 {
        font-size: clamp(3.35rem, 17vw, 5rem);
    }

    .home-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-actions .button {
        justify-content: center;
    }

    .home-text-link {
        padding: 8px 2px;
        text-align: center;
    }

    .home-reassurance {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-trip-preview {
        padding: 12px 0 45px;
    }

    .home-trip-card {
        padding: 20px;
        border-radius: 25px;
        transform: none;
    }

    .home-weather {
        display: none;
    }

    .home-memory-card {
        right: 10px;
    }

    .home-how {
        padding: 75px 0 80px;
    }

    .home-benefit-grid article {
        display: block;
    }

    .home-final-cta {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 70px;
        border-radius: 28px;
    }

    .home-final-cta .button {
        justify-content: center;
    }
}
.prospect-ai-analysis header { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
.prospect-ai-analysis p { margin: .7rem 0; }
.prospect-ai-analysis dl { display: grid; gap: .65rem; margin: .8rem 0; }
.prospect-ai-analysis dl div { display: grid; gap: .15rem; }
.prospect-ai-analysis dt { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.prospect-ai-analysis dd { margin: 0; }
.prospect-edit-section { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: .2rem; }
.prospect-edit-section h4 { margin: 1rem 0 .2rem; }
.prospect-card label { display: grid; gap: .4rem; margin-top: .8rem; font-weight: 700; }
.prospect-card input, .prospect-card textarea { background: var(--input-surface); border: 1px solid var(--input-border); border-radius: .65rem; color: var(--ink); font: inherit; padding: .7rem; width: 100%; }
.prospect-card .button-row { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; }
.prospect-destructive { margin-left: auto; }
@media(max-width:760px){.prospect-cockpit{grid-template-columns:repeat(2,minmax(0,1fr))}.prospect-toolbar{grid-template-columns:1fr}.prospect-card-summary{grid-template-columns:auto minmax(0,1fr)}.prospect-summary-status{grid-column:1/-1;justify-content:space-between}.prospect-destructive{margin-left:0}}
@media(max-width:480px){.prospect-score{min-width:3.5rem}.prospect-card-summary{padding:.8rem}.prospect-card-content{padding:.85rem}.prospect-ai-analysis header{align-items:flex-start;flex-direction:column}}

/* v1.1.45 — qualification IA par lot */
.prospect-batch-panel{background:linear-gradient(135deg,rgba(0,45,114,.08),rgba(255,89,16,.08));border:1px solid color-mix(in srgb,var(--brand-primary) 22%,transparent);border-radius:1rem;display:grid;gap:.85rem;margin:1rem 0;padding:1rem}
.prospect-batch-panel h4{font-size:1.05rem;margin:.1rem 0}.prospect-batch-panel .form-help{margin:.3rem 0 0}.prospect-batch-actions{display:flex;flex-wrap:wrap;gap:.6rem}.prospect-batch-summary{font-weight:700;margin:0}.prospect-batch-progress{align-items:center;display:grid;gap:.45rem;grid-template-columns:minmax(10rem,1fr) auto}.prospect-batch-progress progress{accent-color:var(--coral);height:.75rem;width:100%}
.prospect-card-row{align-items:start;display:grid;gap:.55rem;grid-template-columns:2rem minmax(0,1fr)}.prospect-card-row>.prospect-card{margin:0;width:100%}.prospect-select{align-items:center;cursor:pointer;display:flex;justify-content:center;padding-top:1.2rem}.prospect-select input{height:1.15rem;margin:0;width:1.15rem}.prospect-card-row:has(.prospect-select input:checked)>.prospect-card{box-shadow:0 0 0 2px color-mix(in srgb,var(--coral) 65%,transparent)}
:root[data-theme="dark"] .prospect-batch-panel{background:linear-gradient(135deg,rgba(52,115,210,.14),rgba(255,89,16,.12));border-color:#36557d}
@media(max-width:600px){.prospect-batch-actions .button{width:100%}.prospect-batch-progress{grid-template-columns:1fr}.prospect-card-row{gap:.3rem;grid-template-columns:1.55rem minmax(0,1fr)}.prospect-select{padding-top:1rem}}
.journey-progress { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--surface); overflow: hidden; }
.journey-progress-accordion > summary { align-items: center; cursor: pointer; display: flex; gap: 1rem; justify-content: space-between; list-style: none; padding: 1.1rem 1.25rem; }
.journey-progress-accordion > summary::-webkit-details-marker { display: none; }
.journey-progress-accordion > summary > span:first-child { display: grid; gap: .2rem; }
.journey-progress-accordion > summary strong { font-size: 1.15rem; }
.journey-progress-accordion > summary small { color: var(--muted); }
.journey-progress-accordion > summary:hover, .journey-progress-accordion > summary:focus-visible { background: var(--green-light); }
.journey-progress-accordion[open] > summary { border-bottom: 1px solid var(--line); }
.journey-progress-accordion[open] > summary .journey-accordion-chevron { transform: rotate(225deg); }
.journey-progress-content { padding: 1.25rem; }
.journey-progress progress { width: 100%; accent-color: var(--color-orange); }
.gamification-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gamification-columns ul { display: grid; gap: .65rem; padding: 0; list-style: none; }
.gamification-columns li { display: grid; gap: .2rem; padding: .75rem; border: 1px solid var(--border-color); border-radius: 1rem; opacity: .72; }
.gamification-columns li.is-earned { border-color: #ff5910; opacity: 1; }
.gamification-columns li span { font-size: .88rem; }
@media (max-width: 720px) { .gamification-columns { grid-template-columns: 1fr; } }
.journey-accordion { border: 1px solid var(--line); border-radius: 1rem; margin-top: 1rem; overflow: hidden; }
.journey-accordion > summary { align-items: center; cursor: pointer; display: flex; gap: 1rem; justify-content: space-between; list-style: none; padding: 1rem; }
.journey-accordion > summary::-webkit-details-marker { display: none; }
.journey-accordion > summary > span:first-child { display: grid; gap: .15rem; }
.journey-accordion > summary strong { font-size: 1.05rem; }
.journey-accordion > summary small { color: var(--muted); }
.journey-accordion > summary:hover, .journey-accordion > summary:focus-visible { background: var(--surface-subtle); }
.journey-accordion[open] > summary { border-bottom: 1px solid var(--line); }
.journey-accordion-chevron { border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; display: inline-block; height: .65rem; margin-right: .25rem; transform: rotate(45deg); transition: transform .2s ease; width: .65rem; }
.journey-accordion[open] > summary .journey-accordion-chevron { transform: rotate(225deg); }
.journey-accordion-content { padding: 1rem; }
.private-challenges { margin-top: 1rem; }
.private-challenge-list { display: grid; gap: .75rem; }
.private-challenge-card { border: 1px solid var(--line); border-radius: 1rem; display: grid; gap: .55rem; padding: .9rem; }
.private-challenge-card header { align-items: center; display: flex; gap: .75rem; justify-content: space-between; }
.private-challenge-card progress { accent-color: var(--coral); width: 100%; }
.private-challenge-meta { color: var(--muted); font-size: .88rem; }
.private-challenge-create summary { color: var(--brand-primary); cursor: pointer; font-weight: 800; }
:root[data-theme="dark"] .private-challenge-create summary { color: var(--coral); }

/* v1.6.3 — harmonisation des contrastes et des composants signalés en recette. */
:root[data-theme="dark"] .current-plan-panel,
:root[data-theme="dark"] .team-seat-summary,
:root[data-theme="dark"] .notification-preferences {
    color: var(--ink);
    background: #102f60;
    border-color: #5579aa;
}

:root[data-theme="dark"] .current-plan-panel .card-kicker,
:root[data-theme="dark"] .current-plan-heading h2,
:root[data-theme="dark"] .current-plan-price,
:root[data-theme="dark"] .entitlement-list,
:root[data-theme="dark"] .team-seat-summary h3,
:root[data-theme="dark"] .team-seat-summary strong,
:root[data-theme="dark"] .notification-preferences strong,
:root[data-theme="dark"] .notification-preferences label {
    color: var(--ink);
}

:root[data-theme="dark"] .current-plan-copy > p:not(.card-kicker),
:root[data-theme="dark"] .current-plan-copy > small,
:root[data-theme="dark"] .team-seat-summary small,
:root[data-theme="dark"] .notification-preferences small,
:root[data-theme="dark"] .notification-channel small {
    color: var(--muted);
}

:root[data-theme="dark"] .current-plan-heading .status {
    color: #071a33;
    background: #ffffff;
}

:root[data-theme="dark"] .notification-preferences input[type="checkbox"] {
    accent-color: var(--coral);
}

.visit-sequence {
    width: 32px;
    min-width: 32px;
    padding-inline: 0;
    border-radius: 50%;
}

:root[data-theme="dark"] .visit-sequence {
    color: #071a33;
    background: #ff5910;
}

/* Global dark-theme contrast safety net for content cards across all pages. */
:root[data-theme="dark"] .branding-preview-browser,
:root[data-theme="dark"] .branding-logo-current,
:root[data-theme="dark"] .trip-template-card,
:root[data-theme="dark"] .day-empty,
:root[data-theme="dark"] .visit-form,
:root[data-theme="dark"] .place-search-result,
:root[data-theme="dark"] .team-section,
:root[data-theme="dark"] .team-readonly,
:root[data-theme="dark"] .member-card,
:root[data-theme="dark"] .invitation-card,
:root[data-theme="dark"] .notification-toolbar,
:root[data-theme="dark"] .notification-empty,
:root[data-theme="dark"] .notification-card,
:root[data-theme="dark"] .validation-request,
:root[data-theme="dark"] .validation-history,
:root[data-theme="dark"] .validation-empty,
:root[data-theme="dark"] .validation-card,
:root[data-theme="dark"] .validation-decision,
:root[data-theme="dark"] .validation-comments > div,
:root[data-theme="dark"] .alerts-empty,
:root[data-theme="dark"] .travel-alert,
:root[data-theme="dark"] .replacement-current,
:root[data-theme="dark"] .replacement-card,
:root[data-theme="dark"] .place-search,
:root[data-theme="dark"] .discovery-card,
:root[data-theme="dark"] .discovery-card-description,
:root[data-theme="dark"] .discovery-google-disclosure,
:root[data-theme="dark"] .discovery-google-panel,
:root[data-theme="dark"] .discovery-detail-list,
:root[data-theme="dark"] .inspiration-card,
:root[data-theme="dark"] .inspiration-concept-summary,
:root[data-theme="dark"] .inspiration-leg,
:root[data-theme="dark"] .trip-leg-card,
:root[data-theme="dark"] .finance-metrics article,
:root[data-theme="dark"] .finance-estimator,
:root[data-theme="dark"] .finance-optimizer,
:root[data-theme="dark"] .finance-optimization-summary article,
:root[data-theme="dark"] .finance-scenario-card,
:root[data-theme="dark"] .finance-list-card,
:root[data-theme="dark"] .travel-nearby-alert,
:root[data-theme="dark"] .guide-role-grid > div,
:root[data-theme="dark"] .guide-aside,
:root[data-theme="dark"] .summary-weather,
:root[data-theme="dark"] .summary-finance,
:root[data-theme="dark"] .summary-reservations article,
:root[data-theme="dark"] .summary-metrics article,
:root[data-theme="dark"] .summary-day,
:root[data-theme="dark"] .assistant-form,
:root[data-theme="dark"] .assistant-result,
:root[data-theme="dark"] .assistant-placeholder,
:root[data-theme="dark"] .assistant-recommendation,
:root[data-theme="dark"] .journal-editor,
:root[data-theme="dark"] .journal-feed,
:root[data-theme="dark"] .journal-empty,
:root[data-theme="dark"] .journal-card,
:root[data-theme="dark"] .journal-photo-controls,
:root[data-theme="dark"] .home-trip-card,
:root[data-theme="dark"] .home-weather,
:root[data-theme="dark"] .home-memory-card {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
}

:root[data-theme="dark"] .planner-network-status,
:root[data-theme="dark"] .inspiration-stop,
:root[data-theme="dark"] .inspiration-budget-comparison.is-over-budget,
:root[data-theme="dark"] .finance-metrics .is-over-budget,
:root[data-theme="dark"] .finance-forecast.is-over-budget,
:root[data-theme="dark"] .finance-forecast.is-neutral,
:root[data-theme="dark"] .guide-callout.is-warning {
    color: var(--ink);
    background: #352718;
    border-color: #80502f;
}

/* Dark-theme accent normalization: orange for emphasis, light tones for copy. */
:root[data-theme="dark"] .summary-metrics strong,
:root[data-theme="dark"] .summary-stop-time,
:root[data-theme="dark"] .finance-metrics strong,
:root[data-theme="dark"] .finance-optimization-summary strong,
:root[data-theme="dark"] .finance-scenario-card strong,
:root[data-theme="dark"] .optimization-preview-lines strong,
:root[data-theme="dark"] .travel-nearby-alert-settings summary,
:root[data-theme="dark"] .travel-nearby-favorites summary,
:root[data-theme="dark"] .prospect-ai-badge,
:root[data-theme="dark"] .home-trip-header h2,
:root[data-theme="dark"] .home-location-label {
    color: var(--coral);
}

:root[data-theme="dark"] .summary-stop small,
:root[data-theme="dark"] .summary-stop p,
:root[data-theme="dark"] .discovery-card-description,
:root[data-theme="dark"] .discovery-detail-list,
:root[data-theme="dark"] .inspiration-concept-summary,
:root[data-theme="dark"] .finance-optimization-summary span,
:root[data-theme="dark"] .finance-scenario-card span,
:root[data-theme="dark"] .home-weather {
    color: var(--muted);
}

:root[data-theme="dark"] .checklist-category,
:root[data-theme="dark"] .validation-card[data-status="Approved"] .validation-status-badge,
:root[data-theme="dark"] .assistant-mode[data-provider="OpenAI"] {
    color: var(--coral);
    background: rgba(255, 89, 16, .14);
    border-color: rgba(255, 122, 61, .45);
}

:root[data-theme="dark"] .discovery-score,
:root[data-theme="dark"] .discovery-google-disclosure,
:root[data-theme="dark"] .inspiration-budget-comparison,
:root[data-theme="dark"] .finance-forecast,
:root[data-theme="dark"] .finance-optimization-summary strong {
    color: var(--coral) !important;
}

/* Components which inherit the light-theme blue must stay readable on navy surfaces. */
:root[data-theme="dark"] .summary-day a,
:root[data-theme="dark"] .summary-stop a,
:root[data-theme="dark"] .summary-stop-source,
:root[data-theme="dark"] .trip-leg-card a,
:root[data-theme="dark"] .inspiration-leg a,
:root[data-theme="dark"] .journal-card a,
:root[data-theme="dark"] .assistant-result a {
    color: #ff9a6c;
}

:root[data-theme="dark"] .summary-stop,
:root[data-theme="dark"] .summary-stop-address,
:root[data-theme="dark"] .summary-stop-description,
:root[data-theme="dark"] .summary-stop-budget,
:root[data-theme="dark"] .summary-weather small,
:root[data-theme="dark"] .summary-finance p,
:root[data-theme="dark"] .summary-reservations p,
:root[data-theme="dark"] .trip-leg-card p,
:root[data-theme="dark"] .inspiration-leg p,
:root[data-theme="dark"] .assistant-result p,
:root[data-theme="dark"] .journal-card p {
    color: var(--muted);
}
.journal-video{margin:16px 0;border:1px solid #dce4ee;border-radius:16px;padding:12px;overflow-wrap:anywhere}.journal-video video{display:block;width:100%;max-height:520px;background:#111;border-radius:12px}.journal-video figcaption{font-weight:700;margin-bottom:8px}.journal-video .record-actions{display:flex;gap:8px;flex-wrap:wrap}

.community-shell{max-width:920px;margin:20px auto;color:#10366b;min-width:0}
.community-hero{background:linear-gradient(120deg,#082d65,#11617d);color:white;padding:24px;border-radius:24px;margin-bottom:18px}
.community-hero h2{color:white;margin:8px 0;font-size:1.6rem}.community-hero small{color:#ffbc8c;letter-spacing:.12em;font-weight:700}
.community-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.community-tabs button[aria-pressed="true"]{background:#083572;color:white;border-color:#083572}
.community-profile:empty,.community-following:empty{display:none}.community-profile,.community-following,.community-invite{padding:16px;background:#f2f6fb;border-radius:18px;margin:14px 0}
.community-profile small{display:block;margin-top:10px}.community-following button{margin:4px}.community-invite input{max-width:100%;box-sizing:border-box;margin:10px 0}
.community-card{border:1px solid #dfe7f0;border-radius:22px;padding:20px;background:white;margin:20px 0;box-shadow:0 5px 18px #0b32650b;overflow-wrap:anywhere}
.community-card header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.community-card h3{margin:12px 0;font-size:1.3rem}.community-card .preserve-lines{white-space:pre-wrap}
.community-card img,.community-card video{max-width:100%;border-radius:16px}.community-card figure{margin:12px 0}.community-card figure button{padding:0;overflow:hidden}.community-card a{display:inline-block;margin:8px 0;font-weight:700}.community-card small{color:#52657d}.community-shell button{max-width:100%;white-space:normal}
@media(max-width:500px){.community-card{padding:14px}.community-hero{padding:18px}.community-tabs button{flex:1;min-width:100px}}

button.media-icon-button,.record-actions>button.media-icon-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;border-radius:50%;gap:0;vertical-align:middle}
button.media-icon-button svg{display:block;width:22px;height:22px;flex:none;margin:0}
button.media-icon-button[aria-pressed="true"]{color:#073774;background:#e2efff;border-color:#073774}
button.media-icon-button.media-confirm{color:#a62020;background:#fff0ed;border:2px solid #a62020}
button.media-icon-button:focus-visible{outline:3px solid #ff7b35;outline-offset:3px}
.home-trip-picker{display:grid;gap:5px;margin:4px 0 18px;min-width:0}.home-trip-picker>span{font-size:12px;color:#536780;font-weight:600}.home-trip-picker select{width:100%;min-width:0;max-width:100%;padding:10px 30px 10px 12px;border:1px solid #d9e3ee;border-radius:12px;background:#f5f8fc;color:#123968;font:inherit;font-size:14px;text-overflow:ellipsis}.home-trip-picker small{font-size:12px;color:#536780}
/* Public memories: navigation, story and social sharing. */
.story-site{color:#123565;background:#f7f9fc;min-height:100vh;font-family:Manrope,system-ui,sans-serif}
.story-nav,.story-site-footer{max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 28px;flex-wrap:wrap}
.story-wordmark{display:inline-flex;align-items:center;gap:10px;text-decoration:none!important;color:#002d72;font-size:24px}.story-wordmark img{object-fit:contain}.story-nav nav,.story-site-footer nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.story-nav a,.story-site-footer a{font-weight:700}
.story-content{max-width:1200px;margin:auto;padding:0 28px 40px}.story-cover{padding:64px 48px;border-radius:30px;color:white;background:radial-gradient(ellipse at 100% 0,#236480,transparent 65%),linear-gradient(135deg,#002d72,#06234d);position:relative;overflow:hidden}.story-cover h1{font-size:clamp(30px,5vw,58px);line-height:1.08;max-width:900px;color:white;margin:18px 0;overflow-wrap:anywhere}.story-cover a{color:white;text-decoration:underline;text-underline-offset:4px}.story-cover .eyebrow{color:#ffc095}.story-cover>p{line-height:1.7}.story-cover>a{display:inline-block;margin-top:16px}
.story-columns{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:32px;margin-top:30px}.story-narrative,.story-photo-section,.story-video-section,.story-sidebar>section{padding:24px;background:white;border:1px solid #e0e7f1;border-radius:22px;margin-bottom:20px}.story-narrative .public-story-body{font-size:17px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;max-width:none;margin:0}.story-sidebar h2{font-size:22px;margin:12px 0}.story-sidebar p{font-size:14px;line-height:1.65}.story-author .button{white-space:normal}.story-sidebar .eyebrow{font-size:11px}
.story-content .public-story-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}.story-content figure{margin:0;min-width:0}.story-content .public-story-gallery img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:16px}.story-content .public-story-gallery button{padding:0;border:0;background:transparent;width:100%}.story-content figcaption{font-size:13px;padding:8px 0;color:#56697f}.story-content video{width:100%;max-height:560px;border-radius:16px}.story-partner{display:flex;align-items:center;gap:10px;margin:16px 0}.story-partner img{object-fit:contain}
.story-share-links{display:flex;gap:8px;flex-wrap:wrap}.story-share-links a,.story-share-links button{font:inherit;font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #d4e1ee;border-radius:12px;color:#073572;background:#f5f8fc;text-decoration:none;cursor:pointer}.story-share-links button[hidden]{display:none}.story-share input{max-width:100%;box-sizing:border-box}.story-share [role=status]{overflow-wrap:anywhere}
.story-related{margin:32px 0}.story-related>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.story-related a{display:flex;flex-direction:column;gap:12px;padding:24px;border-radius:20px;background:white;border:1px solid #dae4f0;text-decoration:none;overflow-wrap:anywhere}.story-related strong{font-size:20px}.story-related small{color:#60718a}.story-invitation{padding:32px;border-radius:24px;background:#fff0e6;margin-top:30px}.story-invitation h2{margin-top:0}.story-invitation>a{display:inline-block;margin:10px 14px 0 0}.story-unavailable{max-width:800px;margin:60px auto;padding:30px}.story-site-footer{border-top:1px solid #dce5ef}.story-site a:focus-visible,.story-site button:focus-visible{outline:3px solid #ff7b35;outline-offset:4px}
@media(max-width:850px){.story-columns{grid-template-columns:1fr}.story-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.story-related>div{grid-template-columns:1fr}.story-nav nav{gap:12px;font-size:13px}.story-share{grid-column:1/-1}}
@media(max-width:500px){.story-nav,.story-site-footer{padding:16px}.story-content{padding:0 14px 24px}.story-cover{padding:30px 22px;border-radius:22px}.story-sidebar{display:block}.story-narrative,.story-photo-section,.story-video-section,.story-sidebar>section{padding:18px}.story-content .public-story-gallery{grid-template-columns:1fr}.story-nav nav{width:100%;justify-content:space-between}.story-nav .button{padding:8px 10px}.story-invitation{padding:24px}}

/* Public stories own their palette: the global dark theme must never leak onto light cards. */
:root .story-site {
    --story-paper:#f4f7fb; --story-surface:#ffffff; --story-ink:#123565;
    --story-muted:#425975; --story-line:#b7c8de; --story-soft:#eaf0f8;
    --story-invitation:#fff0e6; --story-accent:#a63808;
    color:var(--story-ink); background:var(--story-paper);
}
:root[data-theme="dark"] .story-site {
    --story-paper:#07172f; --story-surface:#102846; --story-ink:#edf4ff;
    --story-muted:#c0d0e5; --story-line:#587697; --story-soft:#1a3658;
    --story-invitation:#252e43; --story-accent:#ffb383;
}
:root .story-site :is(h1,h2,h3,strong,a) {color:var(--story-ink)}
:root .story-site :is(p,figcaption,small,.journal-video-name) {color:var(--story-muted)}
:root .story-site .eyebrow {color:var(--story-accent)}
:root .story-site :is(.story-narrative,.story-photo-section,.story-video-section,.story-sidebar>section,.story-related a) {
    color:var(--story-ink);background:var(--story-surface);border-color:var(--story-line);
}
:root .story-site :is(.public-story-gallery figure,.journal-video) {color:var(--story-ink);background:var(--story-soft);border-color:var(--story-line)}
:root .story-site .public-story-gallery figcaption {padding:10px 12px}
:root .story-site .story-invitation {background:var(--story-invitation)}
:root .story-site .story-site-footer {border-color:var(--story-line)}
:root .story-site .story-cover :is(h1,p,a) {color:#ffffff}
:root .story-site .story-cover .eyebrow {color:#ffe0c7}
:root .story-site :is(.button,.story-share-links a,.story-share-links button) {
    display:inline-flex;align-items:center;justify-content:center;text-align:center;
    box-sizing:border-box;min-height:46px;max-width:100%;height:auto;
    padding:11px 20px;line-height:1.4;white-space:normal;text-decoration:none;
}
:root .story-site :is(.button-secondary,.story-share-links a,.story-share-links button) {
    color:var(--story-ink);background:var(--story-soft);border:1px solid var(--story-line);
}
:root .story-site :is(.button-primary,.button-primary:hover,.button-primary:focus-visible) {
    color:#09244b;background:#ff7a35;border-color:#ff7a35;
}
:root .story-site :is(.button-secondary,.story-share-links a,.story-share-links button):is(:hover,:focus-visible) {
    color:#09244b;background:#ffb383;border-color:#ffb383;
}
:root .story-site .story-share-links button[hidden] {display:none}
:root .story-site :is(a,button):focus-visible {outline:3px solid var(--story-ink);outline-offset:4px}
:root .story-site .story-cover a:focus-visible {outline-color:#ffffff}
:root .story-site .story-email-help {font-size:13px;line-height:1.6}
@media(prefers-reduced-motion:reduce){:root .story-site .button{transition:none;transform:none}}

:root .story-site .media-icon-button {width:46px;min-width:46px;padding:10px;color:var(--story-ink);background:var(--story-soft);border-color:var(--story-line)}
:root .story-site .public-story-body {color:var(--story-ink)}

/* Journal: date navigation and a composer that preserves its draft when folded. */
.journal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}
.journal-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px}
.journal-date-browser{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:18px;margin:18px 0;min-width:0}
.journal-date-browser label{display:flex;flex-direction:column;gap:6px;font-weight:650;min-width:0}
.journal-date-browser :is(input,select){width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:46px;font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:10px}
.journal-date-controls{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;align-items:end;gap:8px;margin:14px 0}
.journal-date-controls button{min-width:0;width:46px;height:46px;padding:0;text-align:center;display:flex;align-items:center;justify-content:center}
.journal-date-browser small{display:block;font-weight:400;font-size:.8rem;line-height:1.5;color:var(--muted)}
.journal-day-heading{text-transform:capitalize;margin:20px 0 10px}
.journal-browser [hidden],.journal-layout [hidden]{display:none!important}
.journal-date-browser button[hidden],.journal-date-controls[hidden]{display:none!important}
.journal-date-browser :is(button,input,select):focus-visible{outline:3px solid var(--ink);outline-offset:3px}
@media(max-width:420px){.journal-date-browser{padding:12px}.journal-date-controls{gap:5px}.journal-date-browser select{font-size:.85rem;padding:8px 3px}}

.journal-layout{grid-template-columns:minmax(0,1fr)}
.journal-layout .journal-editor{position:static}

.saved-places-page{max-width:1200px;margin:0 auto;padding:24px}.saved-filters{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:24px 0}.saved-filters label,.saved-add label{display:grid;gap:6px;font-weight:700}.saved-filters select,.saved-add input,.saved-add select{min-height:44px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;max-width:100%}.saved-map{height:380px;border-radius:20px;z-index:0}.saved-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px;margin-top:24px}.saved-card{padding:18px;display:grid;gap:12px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:20px;align-content:start;overflow:hidden}.saved-card h2,.saved-card p{margin:0}.saved-card>img{width:100%;height:180px;object-fit:cover;border-radius:12px}.saved-add{display:grid;gap:12px;margin-top:12px}.saved-card summary{cursor:pointer;padding:12px 0;font-weight:750}.saved-card .button{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px}.saved-card p{overflow-wrap:anywhere}

.saved-places-page>.button{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:44px;padding:10px 18px}

/* Departure preparation: shared visual language on web and Android. */
.departure-panel{max-width:1120px;margin:24px auto;display:grid;gap:18px;color:var(--ink);min-width:0}.departure-panel h2,.departure-panel h3,.departure-panel h4,.departure-panel p{margin:0}.departure-panel p{line-height:1.6}.departure-panel small{display:block;line-height:1.5}.departure-progress,.departure-info,.departure-task,.departure-reservation,.departure-editor{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:20px;display:grid;gap:12px;min-width:0;overflow-wrap:anywhere}.departure-progress{border-left:5px solid #ff5910}.departure-progress progress{width:100%;height:14px;accent-color:#ff5910}.departure-links,.departure-filters,.departure-ideas,.departure-panel .record-actions{display:flex;flex-wrap:wrap;gap:12px}.departure-panel label{display:grid;gap:6px;min-width:0}.departure-panel input:not([type=checkbox]),.departure-panel select,.departure-panel textarea{width:100%;min-height:46px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit}.departure-panel textarea{min-height:96px;resize:vertical}.departure-filters>label{flex:1 1 180px}.departure-panel .departure-check{display:flex;align-items:center;gap:14px;cursor:pointer}.departure-check input{flex:0 0 24px;width:24px;height:24px;accent-color:#ff5910}.departure-panel button,.departure-panel .button{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:44px;white-space:normal}.departure-panel summary{cursor:pointer;font-weight:700;padding:10px 0}.departure-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px}.departure-column{display:grid;align-content:start;gap:16px;min-width:0}.departure-task-list,.departure-reservation-list{display:grid;gap:14px}.departure-panel :focus-visible{outline:3px solid #ff5910;outline-offset:3px}.departure-panel [hidden]{display:none!important}.departure-home{display:flex;align-items:center;gap:16px;width:100%;padding:18px;margin:12px 0;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);text-align:left}.departure-home>span:first-child{font-size:1.7rem;color:#c44200}.departure-home>span:nth-child(2){flex:1}.departure-home small{display:block;margin-top:5px}.departure-editor{scroll-margin-top:90px}
@media(max-width:760px){.departure-grid{grid-template-columns:minmax(0,1fr)}.departure-panel{margin:16px 0}.departure-links>*{flex:1 1 150px}.departure-panel .record-actions>*{flex:1}.departure-progress,.departure-task,.departure-reservation,.departure-editor{padding:16px}}

.departure-panel>[data-content]{display:grid;gap:20px}

.account-deletion-links{display:flex;flex-wrap:wrap;gap:1rem;margin-block:1.25rem}
[data-account-deletion] .account-settings-card{max-width:42rem;margin-block:1.5rem}
[data-account-deletion] button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;text-align:center}
[data-account-deletion] [data-spaces] label{display:grid;gap:.5rem;margin-block:1rem}

[data-account-deletion] [data-delete-form][hidden]{display:none}[data-account-deletion] form label{display:grid;gap:.5rem;min-width:0}[data-account-deletion] form input,[data-account-deletion] form select{width:100%;min-width:0;min-height:48px;box-sizing:border-box;padding:.75rem;border:1px solid var(--border-color,#b5c4d7);border-radius:.75rem;background:var(--surface,#fff);color:var(--text-color,#12385d);font:inherit}

/* Guided day adaptation keeps the compact Copilot entry point. */
[data-form="day-adaptation"] { display: grid; gap: 1rem; }
[data-form="day-adaptation"] label { display: grid; gap: .4rem; }
[data-form="day-adaptation"] [hidden] { display: none; }
[data-form="day-adaptation"] select, [data-form="day-adaptation"] input { width: 100%; min-height: 44px; }

:root:not([data-theme="dark"]) .planner-map.waynture-vector-water .leaflet-tile-pane { filter: none; }

.accommodation-boundary{display:flex;align-items:center;gap:12px;padding:14px 18px;margin:18px 0;border:1px solid #cbd9eb;border-left:4px solid #ff5910;border-radius:12px;background:#fff;color:#002d72;box-shadow:0 3px 12px #002d7209}.accommodation-boundary>img{width:48px;height:48px;object-fit:contain;flex:none}.accommodation-boundary>div:first-of-type{flex:1;min-width:0;display:grid;gap:3px}.accommodation-boundary strong{font-size:16px}.accommodation-boundary small{color:#ad3900;font-size:11px;font-weight:700}.accommodation-boundary span{font-size:12px;overflow-wrap:anywhere}.accommodation-boundary button{flex:none}.accommodation-boundary .record-actions{display:flex;gap:4px}[data-theme="dark"] .accommodation-boundary{background:#172d4a;color:#e6efff;border-color:#455e7e;border-left-color:#ff8b45}[data-theme="dark"] .accommodation-boundary small{color:#ffab76}

@media(max-width:640px){.accommodation-boundary{flex-wrap:wrap}.accommodation-boundary>div:first-of-type{min-width:130px}}

.route-leg-choice{display:flex;flex-direction:column;gap:5px;font-size:.82rem;font-weight:650;margin:10px 0;max-width:100%}.route-leg-choice select{font:inherit;padding:9px 12px;border:1px solid #ff8b45;border-radius:10px;background:var(--surface,#fff);color:var(--ink,#002d72);min-height:42px;max-width:100%}.route-leg-choice select:focus-visible{outline:3px solid #ff591055}.timeline-transfer:has(.route-leg-choice){flex-wrap:wrap}.timeline-transfer>.route-leg-choice{flex-basis:100%}

.social-providers{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:18px 0}.social-providers p{grid-column:1/-1}.social-providers button,.social-providers a{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;box-sizing:border-box;border:1px solid var(--line,#bdcce0);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#002d72);padding:12px;text-decoration:none;font-weight:700}.social-providers a:hover,.social-providers button:hover{border-color:#ff5910}.social-providers form{margin:0}
