@font-face {
    font-family: 'VWHeadBold';
    src: url('../resources/VW-Head-Fonts/VWHeadBold.otf');
}

@font-face {
    font-family: 'VWHeadRegular';
    src: url('../resources/VW-Head-Fonts/VWHeadRegular.otf');
}

@font-face {
    font-family: 'VWTextBold';
    src: url('../resources/VW-Head-Fonts/VWTextBold.otf');
}

@font-face {
    font-family: 'VWTextLight';
    src: url('../resources/VW-Head-Fonts/VWTextLight.ttf');
}

@font-face {
    font-family: 'VWTextRegular';
    src: url('../resources/VW-Head-Fonts/VWTextRegular.otf');
}

:root {
    --vm-primary: #4ccdca;
    --vm-primary-light: #9ad9d8;
    --vm-primary-dark: #3da5a3;
    --vm-secondary: #f29262;
    --vm-secondary-light: #f6c4aa;
    --vm-secondary-dark: #dc7440;
    --vm-ink: rgba(0, 0, 0, 0.87);
    --vm-ink-medium: rgba(0, 0, 0, 0.6);
    --vm-ink-low: rgba(0, 0, 0, 0.38);
    --vm-gray: #b5b5b5;
    --vm-surface: #ffffff;
    --vm-surface-muted: #ebebeb;
    --vm-surface-warm: #fff5ee;
    --vm-link: #0099fd;
    --vm-danger: #ec342c;
    --vm-line: rgba(0, 0, 0, 0.08);
    --vm-line-strong: rgba(0, 0, 0, 0.14);
    --vm-shadow-lg: 0 28px 70px rgba(61, 165, 163, 0.16);
    --vm-shadow-md: 0 18px 38px rgba(0, 0, 0, 0.08);
    --vm-shadow-sm: 0 10px 22px rgba(0, 0, 0, 0.06);
    --ink: var(--vm-ink);
    --ink-soft: var(--vm-ink-medium);
    --accent: var(--vm-primary);
    --accent-soft: rgba(76, 205, 202, 0.15);
    --paper: var(--vm-surface);
    --mist: var(--vm-surface-muted);
    --danger: var(--vm-danger);
    --warning: var(--vm-secondary-light);
    --shadow: var(--vm-shadow-lg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    font-family: 'VWTextRegular', Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(76, 205, 202, 0.18), transparent 34%),
        radial-gradient(circle at bottom left, rgba(242, 146, 98, 0.18), transparent 30%),
        linear-gradient(180deg, #f7f8f7 0%, #ffffff 42%, #ebebeb 100%);
    color: var(--ink);
    min-height: 100vh;
    min-height: 100dvh;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 1rem;
}

button.is-loading {
    opacity: 0.7;
    cursor: progress;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.flow-page {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2.5rem clamp(1.5rem, 4vw, 4rem) 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    overflow: hidden;
}

.flow-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    pointer-events: none;
}

.flow-page::after {
    content: '';
    position: absolute;
    inset: 2rem clamp(1rem, 5vw, 4rem) auto;
    height: 16rem;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(76, 205, 202, 0.2), rgba(76, 205, 202, 0.03) 48%, rgba(255, 255, 255, 0)),
        linear-gradient(180deg, rgba(76, 205, 202, 0.08), rgba(255, 255, 255, 0));
    filter: blur(0.5px);
    pointer-events: none;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    position: relative;
    z-index: 30;
    padding: 0.8rem 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--vm-shadow-sm);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex: 0 1 auto;
}

.brand-logo {
    width: clamp(108px, 14vw, 138px);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    margin-left: auto;
}

.language-picker {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.language-picker label {
    font-family: 'VWTextBold', sans-serif;
}

.language-picker select {
    border: 1px solid rgba(76, 205, 202, 0.45);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    padding: 0.7rem 0.9rem;
    min-width: 10rem;
    width: 100%;
}

.language-picker--compact {
    margin-right: 0;
}

.auth-user {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.text-link {
    font-family: 'VWTextBold', sans-serif;
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--vm-link);
}

.topbar-menu {
    position: relative;
}

.topbar-menu summary {
    list-style: none;
}

.topbar-menu summary::-webkit-details-marker {
    display: none;
}

.topbar-menu__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.65rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(76, 205, 202, 0.28);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--vm-shadow-sm);
    color: var(--ink);
    cursor: pointer;
    font-family: 'VWTextBold', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    user-select: none;
}

.topbar-menu[open] .topbar-menu__trigger {
    border-color: rgba(76, 205, 202, 0.52);
    box-shadow: 0 14px 30px rgba(28, 47, 58, 0.12);
}

.topbar-menu__trigger:focus-visible {
    outline: 2px solid rgba(76, 205, 202, 0.42);
    outline-offset: 2px;
}

.topbar-menu__trigger-text {
    white-space: nowrap;
}

.topbar-menu__chevron {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: var(--ink-soft);
    transform: rotate(45deg) translateY(-0.08rem);
    transform-origin: center;
    transition: transform 180ms ease, color 180ms ease;
    flex: 0 0 auto;
}

.topbar-menu[open] .topbar-menu__chevron {
    transform: rotate(-135deg) translateY(-0.02rem);
    color: var(--ink);
}

.topbar-menu__avatar {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 205, 202, 0.14);
    color: var(--vm-primary-dark);
    font-size: 0.82rem;
    line-height: 1;
}

.topbar-menu__avatar.is-authenticated {
    background: rgba(242, 146, 98, 0.16);
    color: #b9613a;
}

.topbar-menu__panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(18rem, calc(100vw - 2rem));
    padding: 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(76, 205, 202, 0.18);
    box-shadow: 0 24px 42px rgba(28, 47, 58, 0.16);
    backdrop-filter: blur(18px);
    z-index: 40;
}

.topbar-menu__panel--account {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.topbar-menu__guest-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.topbar-menu__guest-actions .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    background: rgba(76, 205, 202, 0.08);
    color: var(--vm-primary-dark);
}

.topbar-menu__guest-actions .cta,
.topbar-menu__panel [data-auth-logout] {
    width: 100%;
}

.cta {
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 0.92rem 1.55rem;
    min-height: 50px;
    font-family: 'VWTextBold', sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.cta.primary {
    background: var(--vm-secondary);
    color: var(--paper);
    box-shadow: 0 14px 26px rgba(220, 116, 64, 0.28);
}

.cta.secondary {
    background: var(--vm-primary);
    color: var(--paper);
    box-shadow: 0 12px 22px rgba(61, 165, 163, 0.22);
}

.cta.small {
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
}

.cta.full {
    width: 100%;
}

.ghost-button,
.text-button,
.social-button {
    border: 1px solid rgba(76, 205, 202, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: var(--vm-primary-dark);
    border-radius: 16px;
    padding: 0.78rem 1.2rem;
    cursor: pointer;
    font-family: 'VWTextBold', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ghost-button.small {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
}

.text-button {
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    color: var(--vm-link);
}

.social-button {
    width: 100%;
    margin-top: 0.5rem;
}

.google-button {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
}

.search-suggestions {
    margin-top: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(76, 205, 202, 0.2);
    background: var(--paper);
    box-shadow: var(--vm-shadow-md);
    max-height: 220px;
    overflow-y: auto;
}

.search-suggestion {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: 'VWTextRegular', sans-serif;
}

.search-suggestion:hover,
.search-suggestion:focus {
    background: rgba(76, 205, 202, 0.08);
    outline: none;
}

.search-suggestion__title {
    font-family: 'VWTextBold', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
}

.search-suggestion__sub {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 3rem;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.flow-page[data-authenticated="false"] #create-flow {
    display: none;
}

.flow-page[data-authenticated="true"] #auth-flow {
    display: none;
}

.flow-page[data-authenticated="true"] {
    height: 100dvh;
    padding: 1rem clamp(1rem, 2vw, 1.5rem) 0;
    gap: 1rem;
}

.flow-page[data-authenticated="true"] .main-content {
    gap: 1rem;
    overflow: hidden;
}

.flow-page[data-authenticated="true"] .topbar {
    padding: 0.7rem 0.95rem;
}

.flow-page[data-authenticated="true"] .flow-shell {
    --flow-shell-inline-padding: clamp(1.25rem, 2vw, 2rem);
    --flow-shell-top-padding: clamp(1.25rem, 2vw, 2rem);
    padding: var(--flow-shell-top-padding) var(--flow-shell-inline-padding) 0;
}

.flow-page[data-authenticated="true"] .flow-shell__header {
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.flow-shell {
    --flow-shell-inline-padding: clamp(1.5rem, 2.5vw, 2.8rem);
    --flow-shell-top-padding: clamp(1.5rem, 2.5vw, 2.8rem);
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    width: min(100%, 1320px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
    border-radius: 32px;
    padding: var(--flow-shell-top-padding) var(--flow-shell-inline-padding) 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    overflow-x: hidden;
    overflow-y: auto;
}

.flow-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at top right, rgba(76, 205, 202, 0.08), transparent 24%),
        radial-gradient(circle at top left, rgba(242, 146, 98, 0.08), transparent 22%);
    pointer-events: none;
}

.flow-shell__header {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.flow-shell__nav {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.2rem;
}

.flow-shell__titles {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.flow-shell__label {
    font-family: 'VWTextBold', sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--vm-primary-dark);
}

.flow-shell__title {
    font-family: 'VWHeadBold', sans-serif;
    font-size: clamp(1.9rem, 2.7vw, 2.8rem);
    line-height: 1.05;
}

.flow-shell__count {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.flow-shell__status {
    display: grid;
    justify-items: end;
    gap: 0.35rem;
}

.status-chip {
    background: rgba(76, 205, 202, 0.14);
    color: var(--vm-primary-dark);
    padding: 0.48rem 0.82rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-family: 'VWTextBold', sans-serif;
    border: 1px solid rgba(76, 205, 202, 0.24);
}

.flow-shell__status-note {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.flow-shell__intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(245, 245, 245, 0.92), rgba(255, 245, 238, 0.95));
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.flow-shell__intro p {
    max-width: 44rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.flow-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(235, 235, 235, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-family: 'VWTextBold', sans-serif;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.stepper-item::before {
    content: '';
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
}

.stepper-item.is-active {
    background: rgba(76, 205, 202, 0.14);
    border-color: rgba(76, 205, 202, 0.3);
    color: var(--vm-primary-dark);
    box-shadow: inset 0 0 0 1px rgba(76, 205, 202, 0.05);
}

.stepper-item.is-active::before {
    background: var(--vm-primary);
}

.stepper-item.is-complete {
    background: rgba(242, 146, 98, 0.16);
    border-color: rgba(242, 146, 98, 0.24);
    color: var(--vm-secondary-dark);
}

.stepper-item.is-complete::before {
    background: var(--vm-secondary);
}

.flow-steps {
    display: flex;
    flex: 1;
    min-height: 0;
}

.flow-step {
    display: none;
    width: 100%;
    min-height: 0;
}

.flow-step.is-active {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1.25rem;
    animation: step-fade 220ms ease;
    min-height: 0;
}

@keyframes step-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
    flex: 0 0 auto;
    min-height: auto;
    padding: 0.1rem 0.1rem 0.75rem;
}

.flow-body--single {
    grid-template-columns: minmax(0, 1fr);
}

.loading-state {
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(235, 235, 235, 0.65);
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.flow-body--center {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.flow-body--map-first {
    grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
}

.panel-card {
    background: linear-gradient(180deg, #ffffff, #fcfcfc);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--vm-shadow-md);
}

.welcome-card {
    max-width: 40rem;
    min-width: min(100%, 30rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: center;
    padding: clamp(1.8rem, 4vw, 3rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.96)),
        linear-gradient(135deg, rgba(76, 205, 202, 0.12), rgba(242, 146, 98, 0.08));
}

.welcome-card h2 {
    font-family: 'VWHeadBold', sans-serif;
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1;
}

.welcome-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(76, 205, 202, 0.12);
    color: var(--vm-primary-dark);
    font-family: 'VWTextBold', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.welcome-card__lead {
    max-width: 32rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

.welcome-card__highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.welcome-icon {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(76, 205, 202, 0.18), rgba(242, 146, 98, 0.16));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 36px rgba(76, 205, 202, 0.18);
}

.welcome-icon img {
    width: 46px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-group label {
    font-family: 'VWHeadRegular', sans-serif;
    font-size: 1rem;
    color: var(--vm-ink);
}

.field-group input,
.field-group textarea,
.field-group select {
    border: 1px solid rgba(76, 205, 202, 0.55);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    min-height: 50px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.field-group textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.38);
}

.field-group input:read-only {
    background: rgba(235, 235, 235, 0.55);
    color: rgba(0, 0, 0, 0.6);
}

.field-group.is-error input,
.field-group.is-error textarea,
.field-group.is-error select {
    border-color: rgba(236, 52, 44, 0.7);
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
    outline: 3px solid rgba(76, 205, 202, 0.16);
    border-color: var(--vm-primary-dark);
}

.field-group.compact {
    margin-top: 1rem;
}

.field-helper,
.helper {
    font-size: 0.87rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.field-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.field-error {
    font-size: 0.82rem;
    color: var(--danger);
    display: none;
}

.field-group.is-error .field-error {
    display: block;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 5rem;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--vm-primary-dark);
    font-family: 'VWTextBold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.button-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.segmented-control {
    display: inline-flex;
    padding: 0.25rem;
    background: rgba(235, 235, 235, 0.92);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.segmented-control__item {
    border: none;
    background: transparent;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-family: 'VWTextBold', sans-serif;
    font-size: 0.82rem;
    color: var(--ink-soft);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.segmented-control__item.is-active {
    background: var(--paper);
    color: var(--vm-primary-dark);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.toggle input {
    display: none;
}

.toggle-ui {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(181, 181, 181, 0.55);
    position: relative;
    transition: background 0.2s ease;
}

.toggle-ui::after {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--paper);
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-ui {
    background: var(--vm-primary);
}

.toggle input:checked + .toggle-ui::after {
    transform: translateX(20px);
}

.inline-error {
    background: rgba(236, 52, 44, 0.08);
    border: 1px solid rgba(236, 52, 44, 0.16);
    color: var(--danger);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    display: none;
}

.inline-error.is-visible {
    display: block;
}

.map-panel {
    display: flex;
    flex-direction: column;
}

.map-frame {
    position: relative;
    flex: 1;
    min-height: 400px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(76, 205, 202, 0.2), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, #bfe6e5, #f7faf9 72%);
    border: 1px solid rgba(76, 205, 202, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.map-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.65) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.42;
}

.map-frame.has-map {
    background: #dbe7f8;
}

.map-frame.has-map::after {
    display: none;
}

.map-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.map-canvas.leaflet-container {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1;
}

.map-pill {
    background: rgba(255, 255, 255, 0.94);
    padding: 0.5rem 0.82rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-family: 'VWTextBold', sans-serif;
    color: var(--vm-primary-dark);
    border: 1px solid rgba(76, 205, 202, 0.2);
    box-shadow: var(--vm-shadow-sm);
}

.map-pin {
    position: absolute;
    background: var(--vm-primary);
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -100%) rotate(-45deg);
    box-shadow: 0 18px 28px rgba(61, 165, 163, 0.3);
    z-index: 1;
    pointer-events: none;
}

.map-pin::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--paper);
    left: 9px;
    top: 9px;
    transform: rotate(45deg);
}

.map-pin--small {
    width: 16px;
    height: 16px;
    background: var(--vm-secondary);
    transform: translate(-50%, -100%) rotate(-45deg);
}

.map-pin--small::after {
    width: 6px;
    height: 6px;
    left: 5px;
    top: 5px;
}

.map-pin--offset {
    left: 62%;
    top: 40%;
}

.map-frame--radius .map-pin {
    left: 45%;
    top: 58%;
}

.map-radius {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px dashed rgba(76, 205, 202, 0.7);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.map-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.94);
    padding: 0.55rem 0.92rem;
    border-radius: 999px;
    font-size: 0.75rem;
    z-index: 1;
    color: var(--vm-secondary-dark);
    border: 1px solid rgba(242, 146, 98, 0.24);
}

.banner {
    background: rgba(76, 205, 202, 0.14);
    color: var(--vm-primary-dark);
    padding: 0.75rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(76, 205, 202, 0.24);
    font-family: 'VWTextBold', sans-serif;
    margin-bottom: 0.75rem;
}

.banner.warning {
    background: rgba(255, 245, 238, 0.96);
    border-color: rgba(242, 146, 98, 0.2);
    color: var(--vm-secondary-dark);
}

.place-preview {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 1rem 0;
}

.duplicates-list:empty {
    display: none;
}

.place-preview img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
}

.preview-panel .panel-title {
    font-family: 'VWHeadRegular', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--vm-ink);
}

.preview-card {
    background: rgba(235, 235, 235, 0.52);
    border-radius: 16px;
    padding: 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-title {
    font-family: 'VWTextBold', sans-serif;
    margin-bottom: 0.4rem;
}

.preview-sub {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.preview-panel--details .panel-title {
    margin-bottom: 1rem;
}

.place-detail-preview {
    --preview-teal: var(--vm-primary);
    --preview-teal-dark: var(--vm-primary-dark);
    --preview-amber: var(--vm-secondary);
    --preview-amber-dark: var(--vm-secondary-dark);
    background: var(--paper);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--vm-shadow-md);
}

.place-detail-hero {
    position: relative;
}

.place-detail-carousel {
    background: #f1f3f5;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.place-detail-carousel__track {
    display: flex;
}

.place-detail-carousel__item {
    min-width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
}

.place-detail-carousel__item--empty {
    min-height: clamp(220px, 40vh, 360px);
    background: #e5e7eb;
}

.place-detail-carousel__image {
    width: 100%;
    height: clamp(220px, 40vh, 360px);
    object-fit: contain;
    display: block;
}

.place-detail-hero__actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.preview-icon-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.preview-icon-button img {
    width: 18px;
    height: 18px;
}

.place-detail-body {
    padding: 1.1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.place-detail-category-row {
    display: flex;
    justify-content: flex-end;
}

.place-detail-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(76, 205, 202, 0.14);
    font-size: 0.75rem;
    font-family: 'VWTextBold', sans-serif;
    color: var(--ink);
}

.place-detail-category-chip img {
    width: 18px;
    height: 18px;
}

.place-detail-title {
    font-family: 'VWHeadBold', sans-serif;
    font-size: 1.4rem;
}

.place-detail-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--ink-soft);
    font-family: 'VWTextBold', sans-serif;
}

.place-detail-rating__icon {
    width: 16px;
    height: 16px;
}

.place-detail-created {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.place-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.place-detail-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(76, 205, 202, 0.2);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-family: 'VWTextBold', sans-serif;
    color: var(--ink);
    pointer-events: none;
}

.place-detail-action.is-disabled {
    opacity: 0.45;
}

.place-detail-action img {
    width: 16px;
    height: 16px;
}

.place-detail-cta {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.1rem;
}

.place-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 16px;
    padding: 0.7rem 0.9rem;
    font-family: 'VWTextBold', sans-serif;
    font-size: 0.85rem;
    pointer-events: none;
}

.place-detail-button img {
    width: 18px;
    height: 18px;
}

.place-detail-button.primary img,
.place-detail-button.secondary img {
    filter: brightness(0) invert(1);
}

.place-detail-button.primary {
    background: linear-gradient(90deg, var(--preview-teal), var(--preview-teal-dark));
    color: var(--paper);
}

.place-detail-button.secondary {
    background: linear-gradient(90deg, var(--preview-amber), var(--preview-amber-dark));
    color: var(--paper);
}

.place-detail-button.muted {
    background: rgba(255, 245, 238, 0.96);
    color: var(--vm-secondary-dark);
    border: 1px solid rgba(242, 146, 98, 0.35);
}

.place-detail-section {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.place-detail-section h4 {
    font-family: 'VWTextBold', sans-serif;
    font-size: 0.95rem;
}

.place-detail-description {
    font-size: 0.85rem;
    color: var(--ink);
    line-height: 1.5;
}

.place-detail-opening-card {
    background: rgba(235, 235, 235, 0.52);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    border-left: 4px solid rgba(76, 205, 202, 0.45);
    display: grid;
    gap: 0.35rem;
}

.opening-title {
    font-family: 'VWTextBold', sans-serif;
}

.opening-detail,
.opening-period {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.place-detail-service-list,
.place-detail-about-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.place-detail-service-list li,
.place-detail-about-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
}

.place-detail-service-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
}

.place-detail-service-price {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.45rem;
    border-radius: 10px;
    background: rgba(255, 245, 238, 0.96);
    font-size: 0.75rem;
    color: var(--vm-secondary-dark);
    white-space: nowrap;
}

.place-detail-service-list img,
.place-detail-about-list img {
    width: 22px;
    height: 22px;
}

.place-detail-service-price img {
    width: 16px;
    height: 16px;
}

.place-detail-empty {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.image-processing {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.5rem 0 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    background: rgba(76, 205, 202, 0.1);
    font-size: 0.85rem;
    color: var(--vm-primary-dark);
}

.image-processing::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(76, 205, 202, 0.18);
    border-top-color: rgba(61, 165, 163, 0.9);
    animation: image-spin 0.8s linear infinite;
}

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

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.category-grid .loading-state {
    grid-column: 1 / -1;
}

.category-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.98));
    transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card input {
    display: none;
}

.category-card img {
    width: 40px;
    height: 40px;
}

.category-card span {
    font-size: 0.85rem;
    text-align: center;
}

.category-card:has(input:checked) {
    border-color: var(--vm-primary);
    box-shadow: 0 16px 28px rgba(61, 165, 163, 0.18);
    transform: translateY(-2px);
}

.service-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: none;
    border-radius: 20px;
    background: rgba(245, 245, 245, 0.62);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-row.is-price-hidden .price-select,
.service-row.is-price-hidden .price-input {
    display: none;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.service-info img {
    width: 36px;
    height: 36px;
}

.service-info h4 {
    font-family: 'VWTextBold', sans-serif;
    font-size: 0.95rem;
}

.service-info p {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.service-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.price-select,
.price-input {
    border: 1px solid rgba(76, 205, 202, 0.42);
    border-radius: 16px;
    padding: 0.72rem 0.9rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.95);
}

.service-row.is-error .field-error {
    display: block;
    margin-top: 0.5rem;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section h3 {
    font-family: 'VWTextBold', sans-serif;
    margin-bottom: 0.75rem;
}

.field-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.pill {
    border: 1px solid rgba(76, 205, 202, 0.28);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 16px;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.pill.is-active,
.pill-group .pill.is-active {
    background: var(--vm-primary);
    color: var(--paper);
    border-color: var(--vm-primary);
}

.pill input {
    display: none;
}

.panel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.upgrade-banner {
    background: linear-gradient(90deg, rgba(255, 245, 238, 0.98), rgba(246, 196, 170, 0.5));
    border-radius: 20px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(242, 146, 98, 0.18);
}

.upgrade-banner > div {
    flex: 1 1 auto;
    min-width: 0;
}

.upgrade-banner h3,
.upgrade-banner h4 {
    font-family: 'VWTextBold', sans-serif;
    margin-bottom: 0.25rem;
}

.upgrade-banner.compact {
    margin-top: 1.2rem;
}

.image-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.badge {
    background: rgba(76, 205, 202, 0.14);
    color: var(--vm-primary-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-family: 'VWTextBold', sans-serif;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.image-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    border-radius: 16px;
    border: 1px dashed rgba(76, 205, 202, 0.3);
    color: var(--ink-soft);
    background: rgba(245, 245, 245, 0.68);
}

.image-dropzone {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px dashed rgba(76, 205, 202, 0.28);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 245, 0.92));
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.image-dropzone.is-dragging {
    border-color: var(--vm-primary-dark);
    background: rgba(76, 205, 202, 0.12);
    box-shadow: 0 0 0 3px rgba(76, 205, 202, 0.14);
}

.image-dropzone.is-disabled {
    opacity: 0.65;
}

.image-dropzone__hint {
    margin: 0;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.image-carousel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.image-carousel__shell {
    position: relative;
}

.image-carousel__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(76, 205, 202, 0.2);
    background: rgba(245, 245, 245, 0.94);
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.image-carousel__frame::-webkit-scrollbar {
    display: none;
}

.image-carousel__track {
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

.image-carousel__item {
    position: relative;
    min-width: 100%;
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 245, 245, 0.75);
    scroll-snap-align: start;
}

.image-carousel__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.64);
    color: var(--paper);
    padding: 0.45rem 0.75rem;
    font-family: 'VWTextBold', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 3;
}

.image-remove:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    color: var(--vm-primary-dark);
    border: 1px solid rgba(76, 205, 202, 0.24);
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
    cursor: pointer;
    z-index: 2;
}

.image-nav--prev {
    left: 0.5rem;
}

.image-nav--next {
    right: 0.5rem;
}

.image-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.image-delete {
    align-self: flex-start;
    position: static;
}

.image-delete:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.image-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.image-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(76, 205, 202, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
}

.image-dot.is-active {
    background: var(--vm-secondary);
}

.cropper-frame {
    width: 100%;
    min-height: 320px;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 245, 245, 0.88);
    border-radius: 16px;
    overflow: hidden;
}

.cropper-frame img {
    max-width: 100%;
    display: block;
}

.image-tile {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(245, 245, 245, 0.88);
}

.image-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-tile--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--ink-soft);
    min-height: 90px;
}

.icon-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.64);
    color: var(--paper);
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
    cursor: pointer;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.chip {
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    background: rgba(76, 205, 202, 0.12);
    font-size: 0.8rem;
    color: var(--vm-primary-dark);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.review-card {
    background: rgba(245, 245, 245, 0.72);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-card h4 {
    font-family: 'VWTextBold', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.review-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
}

.review-row span:first-child {
    color: var(--ink-soft);
}

.review-row span:last-child {
    text-align: right;
    word-break: break-word;
}

.review-empty,
.review-sub {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.summary-item {
    background: rgba(245, 245, 245, 0.72);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
}

.summary-value {
    font-family: 'VWTextBold', sans-serif;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.flow-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 1rem;
    margin-top: auto;
    margin-inline: calc(var(--flow-shell-inline-padding) * -1);
    padding: 1rem var(--flow-shell-inline-padding) max(0.9rem, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 -18px 30px rgba(255, 255, 255, 0.96),
        0 -8px 18px rgba(0, 0, 0, 0.08);
    z-index: 5;
    backdrop-filter: blur(8px);
}

.footer-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.flow-footer .cta.secondary {
    background: rgba(255, 255, 255, 0.94);
    color: var(--vm-primary-dark);
    border-color: rgba(76, 205, 202, 0.35);
    box-shadow: none;
}

.auth-shell {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.auth-shell__header h2 {
    font-family: 'VWHeadBold', sans-serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 0.75rem;
}

.auth-shell__header .lead {
    color: var(--ink-soft);
    max-width: 40rem;
}

.auth-shell__body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1.5rem;
}

.auth-card {
    background: var(--paper);
    border-radius: 24px;
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow);
}

.auth-card__top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-step {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(235, 235, 235, 0.82);
    color: var(--ink-soft);
}

.auth-step.is-active {
    background: rgba(76, 205, 202, 0.14);
    color: var(--vm-primary-dark);
}

.auth-debug {
    background: rgba(245, 245, 245, 0.72);
    border-radius: 14px;
    padding: 0.75rem 1rem;
}

.auth-debug summary {
    cursor: pointer;
    font-family: 'VWTextBold', sans-serif;
    font-size: 0.85rem;
}

.auth-route-options {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.auth-steps {
    display: grid;
}

.auth-step-panel {
    display: none;
    gap: 1rem;
}

.auth-step-panel.is-active {
    display: grid;
}

.auth-login-password,
.auth-sso {
    display: grid;
    gap: 0.75rem;
}

.link-stage {
    display: grid;
    gap: 0.75rem;
}

.link-stage[hidden] {
    display: none;
}


.divider {
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin: 0.75rem 0;
}

.success-message {
    display: none;
    background: rgba(76, 205, 202, 0.12);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--vm-primary-dark);
}

.auth-step-panel.is-complete .success-message {
    display: block;
}

.auth-step-panel.is-complete .field-group,
.auth-step-panel.is-complete .cta {
    display: none;
}

.auth-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10;
}

.modal[hidden] {
    display: none;
}

.modal-dialog {
    background: var(--paper);
    border-radius: 24px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.promo-actions {
    justify-content: space-between;
}

.toast-stack {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 20;
    display: grid;
    gap: 0.75rem;
}

.toast {
    background: rgba(0, 0, 0, 0.82);
    color: var(--paper);
    padding: 0.75rem 1rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-size: 0.88rem;
    min-width: 220px;
}

.toast.is-success {
    background: rgba(61, 165, 163, 0.92);
}

.toast.is-error {
    background: rgba(236, 52, 44, 0.92);
}

.modal-dialog--wide {
    max-width: 980px;
    max-height: 85vh;
    overflow: hidden;
}

.modal-body {
    overflow: auto;
    max-height: 60vh;
    padding-right: 0.35rem;
    display: grid;
    gap: 1.5rem;
}

.modal-header {
    display: grid;
    gap: 0.35rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.opening-summary-card {
    border-radius: 16px;
    border: 1px solid rgba(76, 205, 202, 0.2);
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.88);
    display: grid;
    gap: 0.25rem;
}

.opening-summary-title {
    font-family: 'VWTextBold', sans-serif;
}

.opening-summary-detail,
.opening-summary-period {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.opening-section {
    display: grid;
    gap: 1rem;
}

.opening-weekly,
.opening-scopes {
    display: grid;
    gap: 0.85rem;
}

.opening-day,
.scope-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    gap: 0.75rem;
}

.scope-card {
    background: rgba(76, 205, 202, 0.08);
    border-color: rgba(76, 205, 202, 0.22);
}

.scope-period-card {
    background: rgba(255, 255, 255, 0.82);
}

.opening-day.is-disabled {
    opacity: 0.7;
}

.opening-day__header,
.scope-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.opening-day__title,
.scope-title {
    font-family: 'VWTextBold', sans-serif;
}

.opening-day__controls,
.scope-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.scope-badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.opening-day__intervals {
    display: grid;
    gap: 0.5rem;
}

.switch-group .switch-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.88rem;
}

.switch-label input {
    accent-color: var(--vm-primary);
}

.period-card {
    border-radius: 16px;
    background: rgba(245, 245, 245, 0.72);
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.period-controls {
    display: grid;
    gap: 0.75rem;
}

.period-controls[hidden],
.period-subsection[hidden] {
    display: none;
}

.period-subsection {
    margin-top: -0.35rem;
}

.interval-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.interval-row input[type="time"] {
    border: 1px solid rgba(76, 205, 202, 0.45);
    border-radius: 16px;
    padding: 0.65rem 0.75rem;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.95);
}

.interval-row .ghost-button.small {
    padding: 0.35rem 0.7rem;
}

.opening-validation {
    background: rgba(236, 52, 44, 0.08);
    border: 1px solid rgba(236, 52, 44, 0.18);
    border-radius: 16px;
    padding: 1rem;
}

.validation-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    color: var(--danger);
    font-size: 0.85rem;
    margin: 0;
    padding: 0;
}

@media (max-width: 1100px) {
    .flow-shell__nav {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 0.75rem;
    }

    .flow-shell__status {
        justify-self: start;
        justify-items: start;
    }

    .flow-shell__intro {
        padding: 0.95rem 1rem;
    }

    .flow-body,
    .auth-shell__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .flow-body--map-first {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-controls {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .flow-page {
        padding: 1rem 0.85rem 1.25rem;
        gap: 0.85rem;
    }

    .flow-page[data-authenticated="true"] {
        padding: 0.75rem 0.75rem 0;
        gap: 0.75rem;
    }

    .topbar {
        gap: 0.7rem;
        padding: 0.72rem 0.8rem;
    }

    .brand-logo {
        width: clamp(104px, 34vw, 126px);
    }

    .topbar-actions {
        justify-content: flex-end;
    }

    .topbar-menu__trigger {
        min-height: 42px;
        padding: 0.55rem 0.72rem;
    }

    .topbar-menu__panel {
        width: min(17rem, calc(100vw - 1.5rem));
    }

    .upgrade-banner[data-owner-upsell] {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.9rem;
    }

    .upgrade-banner[data-owner-upsell] > div {
        width: 100%;
    }

    .upgrade-banner[data-owner-upsell] .cta {
        width: 100%;
        align-self: stretch;
    }

    .flow-stepper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .flow-shell {
        --flow-shell-inline-padding: 1.15rem;
        --flow-shell-top-padding: 1.15rem;
        padding: var(--flow-shell-top-padding) var(--flow-shell-inline-padding) 0;
    }

    .flow-shell__header {
        gap: 0.85rem;
        margin-bottom: 1rem;
    }

    .flow-shell__title {
        font-size: clamp(1.8rem, 6.4vw, 2.2rem);
    }

    .flow-body {
        padding: 0.05rem 0.05rem 0.6rem;
    }

    .flow-footer {
        flex-direction: column;
        align-items: stretch;
        padding-top: 1rem;
    }

    .footer-actions {
        justify-content: space-between;
    }

    .auth-shell {
        gap: 1rem;
    }

    .auth-shell__header h2 {
        font-size: clamp(1.8rem, 6.8vw, 2.25rem);
        margin-bottom: 0.5rem;
    }

    .auth-shell__header .lead {
        font-size: 0.95rem;
    }

    .auth-card {
        padding: 1.15rem;
    }

    .auth-card__top {
        margin-bottom: 1rem;
    }

    .auth-progress {
        gap: 0.4rem;
    }

    .auth-step {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        padding: 0.3rem 0.55rem;
    }

    .flow-body--map-first .panel-card {
        order: 2;
    }

    .flow-body--map-first .map-panel {
        order: 1;
    }
}

@media (max-width: 540px) {
    .flow-shell {
        --flow-shell-inline-padding: 1rem;
        --flow-shell-top-padding: 1rem;
        padding: var(--flow-shell-top-padding) var(--flow-shell-inline-padding) 0;
        border-radius: 24px;
    }

    .flow-shell__title {
        font-size: 1.6rem;
    }

    .topbar-menu__trigger-text--optional {
        display: none;
    }

    .topbar-menu__trigger {
        padding-inline: 0.7rem;
    }

    .cta,
    .ghost-button,
    .social-button {
        width: 100%;
    }

    .flow-shell__nav .ghost-button,
    .flow-back {
        width: auto;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-card,
    .service-row,
    .panel-card,
    .welcome-card {
        padding: 1rem;
    }

    .map-frame {
        min-height: 320px;
    }
}
