/* Mock page utilities — supplement tailwind.css until `npm run build:css` is run */

/* Gateway page — compact mobile layout, all stream cards visible */
.mock-gateway {
    min-height: calc(100vh - 5rem);
    overflow: visible;
}

.mock-gateway__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.mock-gateway__eyebrow {
    margin-bottom: 0.5rem;
}

.mock-gateway__title {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.mock-gateway__intro {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.mock-gateway__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.mock-gateway__card {
    padding: 0.875rem 1rem;
}

.mock-gateway__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.625rem;
}

.mock-gateway__card-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.mock-gateway__card-title {
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.375rem;
}

.mock-gateway__card-desc {
    font-size: 0.75rem;
    line-height: 1.45;
    margin-bottom: 0.625rem;
}

.mock-gateway__card-cta {
    font-size: 0.75rem;
}

.mock-gateway__footer {
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .mock-gateway__inner {
        justify-content: center;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .mock-gateway__eyebrow {
        margin-bottom: 1rem;
    }

    .mock-gateway__title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .mock-gateway__intro {
        font-size: 1.125rem;
        margin-bottom: 3rem;
    }

    .mock-gateway__grid {
        gap: 1.5rem;
    }

    .mock-gateway__card {
        padding: 1.5rem;
    }

    .mock-gateway__card-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 1.25rem;
    }

    .mock-gateway__card-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .mock-gateway__card-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .mock-gateway__card-desc {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .mock-gateway__card-cta {
        font-size: 0.875rem;
    }

    .mock-gateway__footer {
        margin-top: 2.5rem;
    }
}

@media (min-width: 768px) {
    .mock-gateway__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .mock-gateway__inner {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .mock-gateway__title {
        font-size: 3.75rem;
    }

    .mock-gateway__grid {
        gap: 2rem;
    }

    .mock-gateway__card {
        padding: 2rem;
    }
}

/* Layout */
.grid { display: grid; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col-reverse { flex-direction: column-reverse; }
.flex-wrap { flex-wrap: wrap; }
.items-baseline { align-items: baseline; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.bottom-0 { bottom: 0; }

/* Sizing */
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-xl { max-width: 36rem; }
.min-w-\[4\.5rem\] { min-width: 4.5rem; }
.w-2 { width: 0.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.h-2 { height: 0.5rem; }
.h-8 { height: 2rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-px { height: 1px; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[21\/9\] { aspect-ratio: 21 / 9; }

/* Spacing */
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-11 { padding-top: 2.75rem; padding-bottom: 2.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }

/* Typography */
.text-\[10px\] { font-size: 10px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.leading-tight { line-height: 1.25; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-all { word-break: break-all; }
.uppercase { text-transform: uppercase; }

/* Borders & radius */
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: 1rem; }
.border-2 { border-width: 2px; }
.border-dashed { border-style: dashed; }
.border-primary\/15 { border-color: hsl(var(--primary) / 0.15); }
.border-primary\/20 { border-color: hsl(var(--primary) / 0.2); }
.border-primary\/25 { border-color: hsl(var(--primary) / 0.25); }
.border-primary\/30 { border-color: hsl(var(--primary) / 0.3); }
.border-white\/20 { border-color: rgb(255 255 255 / 0.2); }
.border-white\/30 { border-color: rgb(255 255 255 / 0.3); }

/* Backgrounds */
.bg-white { background-color: #fff; }
.bg-white\/10 { background-color: rgb(255 255 255 / 0.1); }
.bg-white\/15 { background-color: rgb(255 255 255 / 0.15); }
.bg-white\/60 { background-color: rgb(255 255 255 / 0.6); }
.bg-white\/70 { background-color: rgb(255 255 255 / 0.7); }
.bg-accent\/30 { background-color: hsl(var(--accent) / 0.3); }
.bg-primary\/5 { background-color: hsl(var(--primary) / 0.05); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/60 { background-color: hsl(var(--primary) / 0.6); }
.bg-primary\/\[0\.02\] { background-color: hsl(var(--primary) / 0.02); }
.bg-primary\/\[0\.04\] { background-color: hsl(var(--primary) / 0.04); }
.bg-black\/50 { background-color: rgb(0 0 0 / 0.5); }

/* Text colors */
.text-white { color: #fff; }
.text-white\/20 { color: rgb(255 255 255 / 0.2); }
.text-white\/50 { color: rgb(255 255 255 / 0.5); }
.text-white\/70 { color: rgb(255 255 255 / 0.7); }
.text-white\/75 { color: rgb(255 255 255 / 0.75); }
.text-white\/80 { color: rgb(255 255 255 / 0.8); }
.text-primary\/80 { color: hsl(var(--primary) / 0.8); }
.text-primary\/90 { color: hsl(var(--primary) / 0.9); }

/* Gradients */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-primary { --tw-gradient-from: hsl(var(--primary)); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-black\/50 { --tw-gradient-from: rgb(0 0 0 / 0.5); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-black\/60 { --tw-gradient-from: rgb(0 0 0 / 0.6); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-emerald-900\/60 { --tw-gradient-from: rgb(6 78 59 / 0.6); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-slate-800\/60 { --tw-gradient-from: rgb(30 41 59 / 0.6); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-amber-900\/40 { --tw-gradient-from: rgb(120 53 15 / 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-\[\#3d2b1f\]\/80 { --tw-gradient-from: rgb(61 43 31 / 0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-\[\#1a1a1a\]\/80 { --tw-gradient-from: rgb(26 26 26 / 0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-\[\#2c2416\]\/80 { --tw-gradient-from: rgb(44 36 22 / 0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-\[\#003320\] { --tw-gradient-stops: var(--tw-gradient-from), #003320, var(--tw-gradient-to, transparent); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, transparent); }
.to-\[\#001a10\] { --tw-gradient-to: #001a10; }
.to-transparent { --tw-gradient-to: transparent; }
.to-primary\/85 { --tw-gradient-to: hsl(var(--primary) / 0.85); }
.to-primary\/90 { --tw-gradient-to: hsl(var(--primary) / 0.9); }

/* Effects */
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.overflow-hidden { overflow: hidden; }
.resize-y { resize: vertical; }
.appearance-none { appearance: none; }
.cursor-pointer { cursor: pointer; }
.shrink-0 { flex-shrink: 0; }
.accent-primary { accent-color: hsl(var(--primary)); }
.ring-4 { box-shadow: 0 0 0 4px var(--tw-ring-color, transparent); }
.ring-primary\/15 { --tw-ring-color: hsl(var(--primary) / 0.15); }

/* Form focus */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color); }
.focus\:ring-primary\/20:focus { --tw-ring-color: hsl(var(--primary) / 0.2); }
.focus\:border-primary:focus { border-color: hsl(var(--primary)); }

/* Disabled */
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* Hover */
.hover\:bg-white\/15:hover { background-color: rgb(255 255 255 / 0.15); }
.hover\:bg-primary\/\[0\.04\]:hover { background-color: hsl(var(--primary) / 0.04); }
.hover\:border-primary\/30:hover { border-color: hsl(var(--primary) / 0.3); }
.hover\:border-primary\/50:hover { border-color: hsl(var(--primary) / 0.5); }
.hover\:border-white\/30:hover { border-color: rgb(255 255 255 / 0.3); }
.hover\:text-white\/80:hover { color: rgb(255 255 255 / 0.8); }
.hover\:text-primary\/90:hover { color: hsl(var(--primary) / 0.9); }
.hover\:underline:hover { text-decoration-line: underline; }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.hover\:gap-2:hover { gap: 0.5rem; }
.group:hover .group-hover\:opacity-40 { opacity: 0.4; }
.group:hover .group-hover\:gap-2 { gap: 0.5rem; }
.group:hover .group-hover\:text-primary\/90 { color: hsl(var(--primary) / 0.9); }

/* Transitions */
.duration-300 { transition-duration: 300ms; }

/* Responsive */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:flex-row-reverse { flex-direction: row-reverse; }
    .sm\:items-center { align-items: center; }
    .sm\:items-baseline { align-items: baseline; }
    .sm\:justify-between { justify-content: space-between; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:p-8 { padding: 2rem; }
    .sm\:p-12 { padding: 3rem; }
    .sm\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .sm\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:text-xs { font-size: 0.75rem; line-height: 1rem; }
    .sm\:gap-0 { gap: 0; }
    .sm\:w-48 { width: 12rem; }
    .sm\:min-w-\[5\.5rem\] { min-width: 5.5rem; }
    .sm\:block { display: block; }
    .sm\:mb-14 { margin-bottom: 3.5rem; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:gap-8 { gap: 2rem; }
    .lg\:text-5xl { font-size: 3rem; line-height: 1; }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .lg\:mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
    .lg\:w-12 { width: 3rem; }
}

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

/* Path 1 — inspiration photo thumbnail grid */
.mock-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mock-photo-thumb {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mock-photo-thumb__preview {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid hsl(var(--border));
    background: linear-gradient(135deg, hsl(var(--primary) / 0.08), hsl(var(--primary) / 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mock-photo-thumb__preview svg {
    width: 1.75rem;
    height: 1.75rem;
    color: hsl(var(--primary) / 0.5);
}

.mock-photo-thumb__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mock-photo-thumb__remove {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    border: none;
    background-color: rgb(0 0 0 / 0.55);
    color: #fff;
    cursor: pointer;
    transition: background-color 150ms;
}

.mock-photo-thumb__remove:hover {
    background-color: rgb(0 0 0 / 0.75);
}

.mock-photo-thumb__remove svg {
    width: 0.75rem;
    height: 0.75rem;
}

.mock-photo-thumb__name {
    font-size: 0.6875rem;
    line-height: 1.25;
    color: hsl(var(--muted-foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mock-photo-upload-zone {
    position: relative;
    border-radius: calc(var(--radius) + 4px);
    border: 2px dashed hsl(var(--primary) / 0.3);
    background-color: hsl(var(--primary) / 0.02);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 150ms, background-color 150ms;
}

.mock-photo-upload-zone:hover {
    border-color: hsl(var(--primary) / 0.5);
    background-color: hsl(var(--primary) / 0.04);
}

.mock-photo-upload-zone--uploading {
    opacity: 0.45;
    cursor: wait;
    border-color: hsl(var(--primary) / 0.2);
    background-color: hsl(var(--primary) / 0.03);
}

.mock-photo-upload-zone--uploading:hover {
    border-color: hsl(var(--primary) / 0.2);
    background-color: hsl(var(--primary) / 0.03);
}

.mock-session-status {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.mock-session-status__spinner {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    border: 2px solid hsl(var(--primary) / 0.2);
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: mock-session-spin 0.7s linear infinite;
}

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

.mock-photo-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.mock-photo-counter {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--primary));
    margin-bottom: 0.75rem;
}

.mock-photo-limit-msg {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    padding: 0.75rem 1rem;
    border-radius: calc(var(--radius));
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--accent) / 0.3);
    margin-bottom: 1rem;
}

.mock-photo-review-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.mock-photo-review-thumb {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: calc(var(--radius));
    border: 1px solid hsl(var(--border));
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--primary) / 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mock-photo-review-thumb svg {
    width: 0.875rem;
    height: 0.875rem;
    color: hsl(var(--primary) / 0.5);
}

.mock-photo-review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 640px) {
    .mock-photo-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.5rem;
    }
}

/* Path 1 — horizontal progress bar with moving thumb */
.mock-progress {
    --mock-progress-green: #004225;
    --mock-progress-grey: #8A8D8F;
    --mock-progress-track: #E4E5E6;
    --mock-progress-thumb-size: 1.375rem;
    --mock-progress-track-height: 0.3125rem;
    --mock-progress-padding-x: calc(var(--mock-progress-thumb-size) / 2);

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    min-width: 0;
    margin-bottom: 1.75rem;
    overflow: visible;
}

.mock-progress__bar {
    flex: 1 1 auto;
    min-width: 0;
    min-height: var(--mock-progress-thumb-size);
    display: flex;
    align-items: center;
    overflow: visible;
}

.mock-progress__track {
    position: relative;
    width: 100%;
    height: var(--mock-progress-track-height);
    margin-inline: var(--mock-progress-padding-x);
    background-color: var(--mock-progress-track);
    border-radius: 9999px;
    overflow: visible;
}

.mock-progress__fill {
    position: absolute;
    inset-block: 0;
    left: 0;
    width: calc(var(--progress, 0) * 1%);
    background: linear-gradient(90deg, var(--mock-progress-green) 0%, #005c33 100%);
    border-radius: 9999px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.mock-progress__thumb {
    position: absolute;
    top: 50%;
    left: calc(var(--progress, 0) * 1%);
    transform: translate(-50%, -50%);
    width: var(--mock-progress-thumb-size);
    height: var(--mock-progress-thumb-size);
    transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mock-progress__thumb-ring {
    position: absolute;
    inset: -3px;
    border-radius: 9999px;
    background: rgb(0 66 37 / 0.12);
    animation: mock-progress-pulse 2.4s ease-in-out infinite;
}

.mock-progress__thumb-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background-color: var(--mock-progress-green);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1;
    box-shadow:
        0 0 0 2px #fff,
        0 2px 6px rgb(0 66 37 / 0.28);
}

.mock-progress__thumb-icon svg {
    display: block;
}

.mock-progress__meta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.375rem;
    flex: 0 0 auto;
    margin: 0;
    min-width: 0;
    white-space: nowrap;
    font-size: 0.6875rem;
    line-height: 1;
}

.mock-progress__step-name {
    color: var(--mock-progress-green);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-progress__counter {
    color: var(--mock-progress-grey);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

@keyframes mock-progress-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.85;
    }
}

@media (min-width: 640px) {
    .mock-progress {
        --mock-progress-thumb-size: 1.75rem;
        --mock-progress-track-height: 0.4375rem;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .mock-progress__thumb-ring {
        inset: -4px;
    }

    .mock-progress__thumb-icon {
        font-size: 0.75rem;
    }

    .mock-progress__thumb-icon svg {
        width: 16px;
        height: 16px;
    }

    .mock-progress__meta {
        font-size: 0.8125rem;
        gap: 0.5rem;
    }

    .mock-progress__counter::before {
        content: "·";
        margin-right: 0.5rem;
        color: var(--mock-progress-grey);
        font-weight: 400;
    }
}

@media (max-width: 639px) {
    .mock-progress__step-name {
        display: none;
    }
}

/* Path 1 — contact form styling (matches paddysinteriors.co.uk/contact) */
.mock-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: Inter, sans-serif;
}

.mock-contact-form__heading {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #111827;
    margin-bottom: 0.5rem;
}

.mock-contact-form__intro {
    font-size: 0.875rem;
    color: #8a8d8f;
    margin-bottom: 0.5rem;
}

.mock-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mock-contact-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.mock-contact-form__label {
    font-family: Inter, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: hsl(var(--foreground));
}

.mock-contact-form__control,
.mock-contact-form__select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid #d1d5db;
    background-color: #fff;
    color: #111827;
    padding: 0.75rem 1rem;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: border-color 150ms, box-shadow 150ms;
}

.mock-contact-form__control--readonly {
    background-color: #f9fafb;
    color: #374151;
    cursor: default;
}

.mock-contact-form__textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 7.5rem;
    height: auto;
    padding: 0.75rem 1rem;
    resize: vertical;
}

.mock-contact-form__control::placeholder,
.mock-contact-form__textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.mock-contact-form__control:focus-visible,
.mock-contact-form__select:focus-visible,
.mock-contact-form__textarea:focus-visible {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 1px hsl(var(--ring));
}

.mock-contact-form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.75rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mock-contact-form__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mock-contact-form__control,
    .mock-contact-form__select,
    .mock-contact-form__textarea {
        font-size: 0.875rem;
    }
}

/* Path 2 — preset image lightbox */
.preset-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.preset-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgb(0 0 0 / 0.75);
    cursor: pointer;
}

.preset-lightbox__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 56rem);
    max-height: calc(100vh - 2rem);
}

.preset-lightbox__close {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.95);
    color: #111827;
    cursor: pointer;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
    transition: background-color 150ms;
}

.preset-lightbox__close:hover {
    background: #fff;
}

.preset-lightbox__stage {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #111827;
}

.preset-lightbox__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms;
}

.preset-lightbox__image--active {
    opacity: 1;
    pointer-events: auto;
}

.preset-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 9999px;
    background: rgb(0 0 0 / 0.45);
    color: #fff;
    cursor: pointer;
    transition: background-color 150ms;
}

.preset-lightbox__nav:hover {
    background: rgb(0 0 0 / 0.65);
}

.preset-lightbox__nav--prev {
    left: 0.75rem;
}

.preset-lightbox__nav--next {
    right: 0.75rem;
}

.preset-lightbox__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.preset-lightbox__counter {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
}

.preset-lightbox__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.preset-lightbox__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.45);
    cursor: pointer;
    transition: background-color 150ms, transform 150ms;
}

.preset-lightbox__dot--active {
    background: #fff;
    transform: scale(1.15);
}

.preset-hero__open-lightbox {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 9999px;
    background: rgb(0 0 0 / 0.45);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: opacity 200ms, background-color 150ms;
}

.group:hover .preset-hero__open-lightbox,
.preset-hero__open-lightbox:focus-visible {
    opacity: 1;
}

.preset-hero__open-lightbox:hover {
    background: rgb(0 0 0 / 0.65);
}

/* Path 2 estimate — floating pin when in-flow card leaves the viewport.
   Discreet bottom bar: ~12–16px + safe-area. Online DB chip is corner-only. */
.path2-estimate-pin {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(112%);
    transition:
        opacity 280ms ease,
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.path2-estimate-pin--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.path2-estimate-pin__inner {
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--primary) / 0.15);
    background: rgb(255 255 255 / 0.94);
    backdrop-filter: blur(10px);
    box-shadow:
        0 10px 28px hsl(var(--primary) / 0.14),
        0 2px 8px rgb(0 0 0 / 0.06);
    padding: 0.75rem 1rem;
    text-align: center;
}

.path2-estimate-pin__tier {
    margin: 0 0 0.2rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsl(var(--primary) / 0.7);
}

.path2-estimate-pin__price {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.15;
    color: hsl(var(--primary));
}

@media (min-width: 640px) {
    .path2-estimate-pin__inner {
        padding: 0.875rem 1.25rem;
    }

    .path2-estimate-pin__price {
        font-size: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .path2-estimate-pin {
        transition: opacity 150ms ease;
        transform: none;
    }

    .path2-estimate-pin--visible {
        transform: none;
    }
}

/* Path 3 — room shape cards + top-down schematic */
.path3-shape-grid {
    display: grid;
    gap: 0.75rem;
}

.path3-shape-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    text-align: left;
    border-radius: 0.75rem;
    border: 1px solid #E4E5E6;
    background: #fff;
    padding: 1rem 1.1rem;
    color: #004225;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

button.path3-shape-card {
    cursor: pointer;
}

button.path3-shape-card:hover {
    border-color: rgb(0 66 37 / 0.35);
    background: rgb(0 66 37 / 0.03);
}

.path3-shape-card--selected {
    border-color: #004225;
    background: rgb(0 66 37 / 0.06);
    box-shadow: 0 0 0 1px #004225;
}

.path3-shape-card--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f7f7f7;
}

.path3-shape-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8A8D8F;
    background: #fff;
    border: 1px solid #E4E5E6;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

.path3-shape-card__icon {
    color: #004225;
    margin-bottom: 0.25rem;
}

.path3-shape-card__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #004225;
}

.path3-shape-card__desc {
    font-size: 0.8125rem;
    color: #8A8D8F;
    line-height: 1.4;
}

.path3-room-svg-wrap {
    border-radius: 0.75rem;
    border: 1px solid #E4E5E6;
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f4 100%);
    padding: 0.75rem 0.5rem 0.25rem;
}

.path3-room-svg__canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 16rem;
}

.path3-room-svg--large .path3-room-svg__canvas {
    max-height: min(28rem, 70vh);
}

/* Walls step: keep the diagram compact on phones so the wall list appears earlier. */
@media (max-width: 640px) {
    .path3-room-svg-wrap--walls .path3-room-svg--large .path3-room-svg__canvas {
        max-height: min(14rem, 38vh);
    }
}

.path3-room-svg--interactive .path3-room-svg__wall-hit {
    cursor: pointer;
}

.path3-room-svg__wall-hitarea {
    stroke: transparent;
    stroke-width: 22;
    stroke-linecap: round;
    fill: none;
    pointer-events: stroke;
}

.path3-room-svg__wall-halo {
    stroke: #004225;
    stroke-width: 16;
    stroke-linecap: round;
    stroke-opacity: 0.22;
    fill: none;
    pointer-events: none;
}

.path3-room-svg__wall {
    stroke: #8A8D8F;
    stroke-width: 2.5;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.path3-room-svg__wall--fitted {
    stroke: #004225;
    stroke-width: 5;
    stroke-linecap: round;
}

.path3-room-svg--has-selection .path3-room-svg__wall--fitted.path3-room-svg__wall--muted {
    stroke: #A8B0AB;
    stroke-width: 3.5;
    stroke-opacity: 0.55;
}

.path3-room-svg__wall--selected {
    stroke: #004225;
    stroke-width: 9;
    stroke-linecap: round;
}

.path3-room-svg__floor {
    stroke: none;
}

.path3-room-svg__fitted-guide {
    stroke: #004225;
    stroke-width: 1;
    stroke-dasharray: 4 4;
    opacity: 0.45;
}

.path3-room-svg__depth-fill--selected {
    opacity: 1;
}

.path3-room-svg__depth-fill--muted {
    opacity: 0.22;
}

.path3-room-svg__depth-edge--muted {
    opacity: 0.25;
}

.path3-room-svg__depth-edge--selected {
    stroke: #004225;
    stroke-width: 1.75;
    opacity: 0.85;
}

.path3-room-svg__label {
    font-family: Inter, system-ui, sans-serif;
    font-size: 11px;
    fill: #004225;
    font-weight: 500;
}

.path3-room-svg__label--selected {
    fill: #004225;
    font-weight: 700;
    font-size: 12.5px;
}

.path3-room-svg__label--muted {
    fill: #9AA0A2;
    font-weight: 400;
    font-size: 10.5px;
    opacity: 0.75;
}

.path3-room-svg__label--height {
    fill: #004225;
    font-size: 12px;
    font-weight: 600;
}

.path3-room-svg__label--depth {
    fill: #004225;
    font-size: 11px;
    font-weight: 700;
    paint-order: stroke fill;
    stroke: #fafafa;
    stroke-width: 3px;
    stroke-linejoin: round;
}

.path3-room-svg__depth-fill {
    stroke: #004225;
    stroke-width: 1.25;
    stroke-opacity: 0.55;
    transition:
        y 220ms cubic-bezier(0.22, 1, 0.36, 1),
        x 220ms cubic-bezier(0.22, 1, 0.36, 1),
        height 220ms cubic-bezier(0.22, 1, 0.36, 1),
        width 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.path3-room-svg__depth-edge {
    stroke: #004225;
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
    opacity: 0.65;
    transition: y1 220ms cubic-bezier(0.22, 1, 0.36, 1), y2 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.path3-room-svg__frame {
    fill: rgba(255, 255, 255, 0.88);
    stroke: #004225;
    stroke-width: 1.35;
    pointer-events: none;
}

.path3-room-svg__frame--selected {
    fill: rgba(232, 240, 236, 0.95);
    stroke-width: 1.75;
}

.path3-room-svg__frame--muted {
    fill: rgba(255, 255, 255, 0.55);
    stroke-opacity: 0.45;
}

.path3-room-svg__frame--corner {
    fill: rgba(0, 66, 37, 0.16);
}

.path3-room-svg__wall.path3-room-svg__corner-empty {
    stroke-dasharray: 6 4;
}

.path3-room-svg__frame-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 600;
    fill: #004225;
    pointer-events: none;
}

.path3-room-svg__frame--muted + .path3-room-svg__frame-label,
.path3-room-svg__frame-label--muted {
    fill-opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
    .path3-room-svg__depth-fill,
    .path3-room-svg__depth-edge {
        transition: none;
    }
}

@media (min-width: 640px) {
    .path3-shape-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .path3-shape-card {
        min-height: 9.5rem;
    }
}

/* Path 3 — wall elevation + design modal.
   The face height fills this card and does not change with wall width.
   Width is that height times the viewBox ratio (the wall ratio, plus padding). */
.path3-elevation {
    width: 100%;
    height: 100%;
    min-height: 12rem;
    min-width: 0;
    display: flex;
    justify-content: safe center;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    container-type: size;
    container-name: path3-elev;
}

.path3-elevation__canvas {
    display: block;
    flex: 0 0 auto;
    height: 100%;
    max-height: 100%;
    max-width: none;
    width: calc(100cqh * var(--path3-elev-w) / var(--path3-elev-h));
    aspect-ratio: var(--path3-elev-w) / var(--path3-elev-h);
    /* Labels are inside the viewBox. Do not clip them at the SVG edge. */
    overflow: visible;
}

.path3-elevation--compact {
    height: 14rem;
    min-height: 0;
}

.path3-elevation__face {
    stroke: none;
}

.path3-elevation__outline {
    stroke: #004225;
    stroke-width: 3;
}

.path3-elevation__floor-line {
    stroke: #C5C8C9;
    stroke-width: 1.5;
}

.path3-elevation__bay {
    fill: rgba(0, 66, 37, 0.08);
    fill-opacity: 1;
    stroke: none;
}

.path3-elevation__bay-divider {
    stroke: #004225;
    stroke-width: 1.5;
    stroke-opacity: 0.45;
}

.path3-elevation__interior-dot {
    fill: #004225;
    opacity: 0.85;
}

.path3-elevation__needs-interior-dot {
    fill: none;
    stroke: #004225;
    stroke-width: 1.5;
    opacity: 0.45;
}

.path3-elevation__frame--needs-interior {
    fill: rgba(0, 66, 37, 0.06);
    stroke-dasharray: 5 3;
}

.path3-elevation__frame--has-interior {
    fill: #f7f8f7;
}

.path3-elevation__frame--has-interior.path3-elevation__frame--selected {
    fill: #f7f8f7;
}

.path3-elevation__frame--coloured {
    transition: fill 220ms ease, stroke-width 180ms ease;
}

/* Keep SVG pattern fill (wood/panel) — class fills would otherwise override. */
.path3-elevation__frame--coloured.path3-elevation__frame--needs-interior,
.path3-elevation__frame--coloured.path3-elevation__frame--has-interior,
.path3-elevation__frame--coloured.path3-elevation__frame--selected,
.path3-elevation__frame--coloured.path3-elevation__frame--has-interior.path3-elevation__frame--selected {
    fill: unset;
}

.path3-elevation__frame--coloured.path3-elevation__frame--needs-interior {
    stroke-dasharray: 5 3;
}

.path3-elevation__frame--coloured.path3-elevation__frame--selected {
    stroke-width: 2.5;
}

.path3-elevation__door-face {
    stroke: #004225;
    stroke-width: 1.6;
}

.path3-elevation__door-gloss-shine {
    pointer-events: none;
}

.path3-elevation__door-panel {
    stroke: rgba(0, 66, 37, 0.35);
    stroke-width: 1;
}

.path3-elevation__door-stile {
    stroke: rgba(0, 66, 37, 0.45);
    stroke-width: 1.25;
}

.path3-elevation__door-meeting {
    stroke: rgba(0, 66, 37, 0.55);
    stroke-width: 1.75;
    stroke-linecap: round;
}

.path3-elevation__door-handle {
    fill: #2a2a2a;
    stroke: #111;
    stroke-width: 0.5;
}

.path3-door-handle-section {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.path3-door-handle-section__label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6B6F71;
}

.path3-door-handle-type-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 4.5rem;
    min-height: 4.25rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #E4E5E6;
    border-radius: 0.5rem;
    background: #fff;
    color: #004225;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.path3-door-handle-type-chip:hover:not(:disabled) {
    border-color: rgba(0, 66, 37, 0.45);
    background: #f3f7f5;
}

.path3-door-handle-type-chip--selected {
    border-color: #004225;
    box-shadow: 0 0 0 1px #004225;
    background: rgba(0, 66, 37, 0.06);
}

.path3-door-handle-type-chip__label {
    font-size: 0.75rem;
    font-weight: 600;
}

.path3-door-handle-type-chip__icon {
    width: 1.35rem;
    height: 1.75rem;
    position: relative;
}

.path3-door-handle-type-chip__icon--knob::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #2a2a2a;
    transform: translate(-50%, -50%);
}

.path3-door-handle-type-chip__icon--handle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.15rem;
    width: 0.28rem;
    height: 1.45rem;
    border-radius: 999px;
    background: #2a2a2a;
    transform: translateX(-50%);
}

/* Preview: door visibility sliding pill — absolute bottom-right of canvas. */
.path3-door-slider {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.65rem 0.35rem 0.45rem;
    border: 1px solid rgba(0,66,37,0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 4px 16px rgba(0,66,37,0.18), 0 1px 4px rgba(0,0,0,0.08);
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(6px);
    /* No explicit width — let labels do it */
}

.path3-door-slider__track {
    position: relative;
    flex: 0 0 auto;
    width: 2.6rem;
    height: 1.45rem;
    border-radius: 999px;
    background: #E4E5E6;
    transition: background-color 0.25s ease;
}

.path3-door-slider--doors .path3-door-slider__track {
    background: #004225;
}

.path3-door-slider__thumb {
    position: absolute;
    top: 0.175rem;
    left: 0.175rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.path3-door-slider--doors .path3-door-slider__thumb {
    transform: translateX(1.15rem);
}

.path3-door-slider__label {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    transition: color 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
}

/* Show only the relevant label */
.path3-door-slider__label--doors {
    color: #004225;
    display: none;
}

.path3-door-slider__label--open {
    color: #8A8D8F;
}

.path3-door-slider--doors .path3-door-slider__label--doors {
    display: inline;
}

.path3-door-slider--doors .path3-door-slider__label--open {
    display: none;
}

.path3-door-slider:hover {
    border-color: rgba(0,66,37,0.35);
}

.path3-door-slider:focus-visible {
    outline: 2px solid #004225;
    outline-offset: 2px;
}

.path3-door-range-chip-wrap {
    position: relative;
    flex: 0 0 auto;
}

.path3-door-range-chip {
    min-height: 6.25rem;
}

.path3-door-range-chip__meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
    color: #1a2e1f;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.path3-door-range-chip__preview {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    border: 1px solid rgba(0, 66, 37, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #004225;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(26, 46, 31, 0.16);
}

.path3-door-range-chip__preview:hover {
    background: #fff;
    border-color: #004225;
}

/* Door Range tab: range -> profile -> finish -> colour. Steps slide (transform/opacity only). */
.path3-door-flow {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.path3-door-flow__bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    min-width: 0;
}

.path3-door-flow__back,
.path3-door-flow__view {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 1.9rem;
    padding: 0 0.7rem 0 0.5rem;
    border: 1px solid rgba(0, 66, 37, 0.28);
    border-radius: 999px;
    background: #fff;
    color: #004225;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.path3-door-flow__view {
    margin-left: auto;
    padding: 0 0.7rem;
}

.path3-door-flow__back:hover,
.path3-door-flow__view:hover {
    background: rgba(0, 66, 37, 0.06);
    border-color: #004225;
}

.path3-door-flow__back:focus-visible,
.path3-door-flow__view:focus-visible,
.path3-door-flow__crumb-button:focus-visible,
.path3-door-card:focus-visible {
    outline: 2px solid #004225;
    outline-offset: 2px;
}

.path3-door-flow__crumbs {
    min-width: 0;
}

.path3-door-flow__crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.75rem;
    color: #8A8D8F;
}

.path3-door-flow__crumb + .path3-door-flow__crumb::before {
    content: "\203A";
    margin: 0 0.35rem;
    color: #b4b7b9;
}

.path3-door-flow__crumb--chosen {
    color: #1a2e1f;
    font-weight: 600;
}

.path3-door-flow__crumb--current {
    color: #004225;
    font-weight: 700;
}

.path3-door-flow__crumb-button {
    padding: 0.1rem 0.2rem;
    border: none;
    border-radius: 0.3rem;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.path3-door-flow__crumb-button:hover {
    background: rgba(0, 66, 37, 0.06);
}

.path3-door-flow__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1a2e1f;
}

.path3-door-flow__current {
    margin: 0;
    font-size: 0.75rem;
    color: #8A8D8F;
    line-height: 1.4;
}

.path3-door-flow__current strong {
    color: #1a2e1f;
}

.path3-door-flow__current--incomplete strong {
    color: #8a5a00;
}

.path3-door-flow__stage {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    min-width: 0;
}

.path3-door-step {
    min-width: 0;
}

.path3-door-step--in-forward {
    animation: path3-door-step-in-forward 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.path3-door-step--in-back {
    animation: path3-door-step-in-back 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.path3-door-step--out {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.path3-door-step--out-forward {
    animation: path3-door-step-out-forward 220ms cubic-bezier(0.4, 0, 1, 1) both;
}

.path3-door-step--out-back {
    animation: path3-door-step-out-back 220ms cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes path3-door-step-in-forward {
    from {
        opacity: 0;
        transform: translateX(32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes path3-door-step-in-back {
    from {
        opacity: 0;
        transform: translateX(-32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes path3-door-step-out-forward {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-32px);
    }
}

@keyframes path3-door-step-out-back {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(32px);
    }
}

.path3-door-cards {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0.2rem 0.2rem 0.4rem;
    touch-action: pan-x pan-y;
    max-width: 100%;
}

.path3-door-cards > .path3-door-range-chip-wrap {
    display: flex;
}

.path3-door-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    box-sizing: border-box;
    width: 7.75rem;
    padding: 0.4rem 0.4rem 0.45rem;
    border: 1.5px solid rgba(0, 66, 37, 0.18);
    border-radius: 0.7rem;
    background: #fff;
    color: #1a2e1f;
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
    box-shadow: 0 1px 2px rgba(26, 46, 31, 0.08);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.path3-door-card:hover:not(:disabled) {
    border-color: #004225;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(26, 46, 31, 0.14);
}

.path3-door-card--selected {
    border-color: #004225;
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px #004225,
        0 4px 12px rgba(26, 46, 31, 0.16);
}

.path3-door-card:disabled {
    cursor: default;
}

.path3-door-card__thumb {
    display: block;
    width: 100%;
    height: 4.25rem;
    border-radius: 0.45rem;
    overflow: hidden;
    background: var(--chip-fill, #eceeed);
    border: 1px solid rgba(0, 66, 37, 0.14);
}

.path3-door-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.path3-door-card__thumb--glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f4;
}

.path3-door-card__glyph {
    height: 3.6rem;
    width: auto;
}

.path3-door-card__glyph-door {
    fill: #fff;
    stroke: #004225;
    stroke-width: 1.6;
}

.path3-door-card__glyph-panel {
    fill: none;
    stroke: #004225;
    stroke-width: 1.2;
}

.path3-door-card__name {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
}

.path3-door-card__meta {
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8A8D8F;
    min-height: 0.7rem;
}

@media (prefers-reduced-motion: reduce) {
    .path3-door-step--in-forward,
    .path3-door-step--in-back,
    .path3-door-step--out-forward,
    .path3-door-step--out-back,
    .path3-door-card,
    .path3-door-flow__back,
    .path3-door-flow__view {
        animation: none;
        transition: none;
    }

    .path3-door-step--out {
        display: none;
    }
}

.path3-door-range-preview {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.path3-door-range-preview__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(12, 24, 18, 0.62);
    cursor: pointer;
}

.path3-door-range-preview__panel {
    position: relative;
    z-index: 1;
    width: min(42rem, 100%);
    max-height: min(85vh, 40rem);
    overflow: auto;
    padding: 1.1rem 1.1rem 1.25rem;
    border-radius: 0.85rem;
    background: #f7f5f0;
    box-shadow: 0 18px 48px rgba(12, 24, 18, 0.28);
}

.path3-door-range-preview__close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1a2e1f;
    cursor: pointer;
}

.path3-door-range-preview__title {
    margin: 0 2rem 0.75rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a2e1f;
}

.path3-door-range-preview__image {
    display: block;
    width: 100%;
    max-height: min(70vh, 32rem);
    object-fit: contain;
    border-radius: 0.5rem;
    background: #e8e4dc;
}

.path3-door-range-preview__stage {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #e8e4dc;
}

.path3-door-range-preview__image--slide {
    position: absolute;
    inset: 0;
    height: 100%;
    max-height: none;
    border-radius: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms;
}

.path3-door-range-preview__image--active {
    opacity: 1;
    pointer-events: auto;
}

.path3-door-range-preview__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(0, 66, 37, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #004225;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(26, 46, 31, 0.16);
}

.path3-door-range-preview__nav:hover {
    background: #fff;
    border-color: #004225;
}

.path3-door-range-preview__nav--prev {
    left: 0.65rem;
}

.path3-door-range-preview__nav--next {
    right: 0.65rem;
}

.path3-door-range-preview__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.path3-door-range-preview__counter {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a2e1f;
}

.path3-door-range-preview__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.path3-door-range-preview__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 66, 37, 0.28);
    cursor: pointer;
}

.path3-door-range-preview__dot--active {
    background: #004225;
}

.path3-door-range-preview__empty {
    margin: 0;
    padding: 1.5rem 0.5rem;
    color: #4a5c50;
    font-size: 0.875rem;
    line-height: 1.45;
}

.path3-elevation__interior {
    pointer-events: none;
    transform-box: fill-box;
    transform-origin: center;
}

.path3-elevation__interior--in {
    animation: path3-frame-interior-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.path3-frame-design-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0.85rem;
    min-height: 0;
    flex: 1;
}

.path3-frame-design-preview {
    border-radius: 0.65rem;
    border: 1px solid #E4E5E6;
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f4 100%);
    padding: 0.55rem 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-height: 20rem;
    min-width: 0;
    flex: 1 1 auto;
}

.path3-frame-preview {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.path3-frame-preview--enter {
    animation: path3-frame-preview-enter 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.path3-frame-preview__canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(32rem, calc(100vh - 14rem));
}

.path3-frame-preview__stage {
    transform-box: fill-box;
    transform-origin: center;
}

.path3-frame-preview__empty-face {
    stroke: none;
    opacity: 1;
    transition: opacity 320ms ease;
}

.path3-frame-preview__empty-face--dimmed {
    opacity: 0;
}

.path3-frame-preview__outline {
    stroke: #004225;
    stroke-width: 2.5;
}

.path3-frame-preview__interior {
    pointer-events: none;
    transform-box: fill-box;
    transform-origin: center;
}

.path3-frame-preview__interior--in {
    animation: path3-frame-interior-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.path3-frame-preview__interior--out {
    animation: path3-frame-interior-out 320ms ease both;
}

.path3-frame-preview__dims {
    animation: path3-frame-dims-in 360ms ease both;
}

.path3-frame-design-preview__meta {
    text-align: center;
    width: 100%;
    animation: path3-frame-meta-in 300ms ease both;
}

.path3-frame-design-preview__name {
    margin: 0;
    font-weight: 600;
    color: #004225;
}

.path3-frame-design-preview__desc,
.path3-frame-design-preview__empty {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #8A8D8F;
    max-width: 22rem;
    text-align: center;
    margin-inline: auto;
}

.path3-frame-design-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.55rem;
    align-content: start;
    overflow: auto;
    min-height: 0;
    padding-bottom: 0.25rem;
}

.path3-frame-design-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.4rem 0.5rem;
    border-radius: 0.55rem;
    border: 1px solid #E4E5E6;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition:
        border-color 0.2s ease,
        box-shadow 0.22s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.2s ease;
}

.path3-frame-design-option:hover:not(:disabled) {
    border-color: #004225;
    transform: translateY(-1px);
}

.path3-frame-design-option--selected {
    border-color: #004225;
    box-shadow: 0 0 0 1px #004225;
    background: #f7faf8;
    transform: translateY(-1px);
}

.path3-frame-design-option:disabled {
    opacity: 0.6;
    cursor: wait;
}

.path3-frame-design-option__thumb {
    width: 3.25rem;
    height: 5.5rem;
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.path3-frame-design-option--selected .path3-frame-design-option__thumb {
    transform: scale(1.05);
}

.path3-frame-design-option__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #004225;
    line-height: 1.25;
}

.path3-frame-design-option__meta {
    font-size: 0.65rem;
    color: #8A8D8F;
}

@keyframes path3-frame-preview-enter {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes path3-frame-interior-in {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes path3-frame-interior-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(1.03);
    }
}

@keyframes path3-frame-dims-in {
    from {
        opacity: 0.35;
    }
    to {
        opacity: 1;
    }
}

@keyframes path3-frame-meta-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .path3-frame-design-body {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 0.65rem;
    }

    .path3-frame-design-preview {
        min-height: clamp(16rem, 58vh, 34rem);
        padding: 0.4rem 0.65rem 0.55rem;
        justify-content: flex-end;
    }

    .path3-frame-preview__canvas {
        max-height: min(28rem, 58vh);
    }

    .path3-frame-design-preview__meta {
        flex: 0 0 auto;
    }

    /* Single-row horizontal scroll strip of interiors under the large preview. */
    .path3-frame-design-options {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding: 0.15rem 0.1rem 0.45rem;
        min-height: 0;
    }

    .path3-frame-design-option {
        flex: 0 0 auto;
        width: 6.75rem;
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .path3-frame-preview--enter,
    .path3-frame-preview__interior--in,
    .path3-frame-preview__interior--out,
    .path3-elevation__interior--in,
    .path3-frame-preview__dims,
    .path3-frame-design-preview__meta {
        animation: none;
    }

    .path3-frame-preview__empty-face,
    .path3-frame-design-option,
    .path3-frame-design-option__thumb {
        transition: none;
    }

    .path3-frame-design-option:hover:not(:disabled),
    .path3-frame-design-option--selected,
    .path3-frame-design-option--selected .path3-frame-design-option__thumb {
        transform: none;
    }
}

.path3-elevation__frame {
    fill: rgba(0, 66, 37, 0.12);
    fill-opacity: 1;
    stroke: #004225;
    stroke-width: 1.5;
    transition: fill 180ms ease, stroke-width 180ms ease;
}

.path3-elevation__frame--selected {
    fill: rgba(0, 66, 37, 0.28);
    stroke-width: 2.5;
    stroke-dasharray: none;
}

.path3-elevation__corner-return {
    fill: none;
    stroke: #004225;
    stroke-width: 2.5;
    stroke-linecap: square;
    pointer-events: none;
}

.path3-elevation--interactive .path3-elevation__frame-hit {
    cursor: pointer;
}

.path3-elevation__frame-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    /* Size is the font-size attribute (user units) so the label scales with the wall. */
    fill: #004225;
    font-weight: 600;
    pointer-events: none;
}

.path3-elevation__delete {
    cursor: pointer;
}

.path3-elevation__delete-hit {
    fill: transparent;
    stroke: none;
    pointer-events: all;
}

.path3-elevation__delete-bg {
    fill: #fff;
    stroke: #004225;
    stroke-width: 1.5;
    pointer-events: none;
}

.path3-elevation__delete-x {
    font-family: system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    fill: #004225;
    pointer-events: none;
}

.path3-elevation__expand {
    cursor: pointer;
}

.path3-elevation__expand:focus-visible {
    outline: 2px solid #004225;
    outline-offset: 2px;
}

.path3-elevation__expand-hit {
    fill: transparent;
    stroke: none;
    pointer-events: all;
}

.path3-elevation__expand-bg {
    fill: #fff;
    stroke: #004225;
    stroke-width: 1.5;
    pointer-events: none;
}

.path3-elevation__expand-icon {
    pointer-events: none;
}

.path3-frame-palette {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 721px) {
    .path3-frame-palette {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Single-row horizontal scroll strip — same breakpoint/UX as frame interiors. */
@media (max-width: 720px) {
    .path3-frame-palette {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding: 0.05rem 0.05rem 0.35rem;
        min-height: 0;
        max-width: 100%;
        touch-action: pan-x pan-y;
    }

    .path3-frame-palette__item {
        flex: 0 0 auto;
        width: 7rem;
        min-height: 2.75rem;
        scroll-snap-align: start;
    }
}

.path3-frame-palette__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #E4E5E6;
    background: #fff;
    color: #004225;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.path3-frame-palette__item:hover:not(:disabled) {
    border-color: #004225;
    background: #f3f7f5;
}

.path3-frame-palette__item:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.path3-frame-palette__item--selected {
    border-color: #004225;
    background: #f7faf8;
    box-shadow: 0 0 0 1px #004225;
}

.path3-corner-picker {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.path3-frame-palette__name {
    font-size: 0.8125rem;
    font-weight: 600;
}

.path3-frame-palette__width {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    color: #8A8D8F;
}

.path3-elevation__dim-line,
.path3-elevation__dim-tick {
    stroke: #004225;
    stroke-width: 1.25;
    stroke-linecap: square;
}

.path3-elevation__dim-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    /* Size is the font-size attribute (user units) so the label scales with the wall. */
    fill: #004225;
    font-weight: 600;
}

/* Floating mm/cm display toggle — fixed top-right chip on quote pages. */
.path3-unit-toggle {
    position: fixed;
    z-index: 90;
    right: max(1rem, env(safe-area-inset-right, 0px));
    /*
     * Sit below sticky quote headers so the chip stays usable
     * without covering top-right page actions.
     */
    top: calc(3.75rem + env(safe-area-inset-top, 0px));
    bottom: auto;
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #E4E5E6;
    border-radius: 0.65rem;
    background: rgb(255 255 255 / 0.97);
    overflow: hidden;
    box-shadow:
        0 10px 28px rgba(0, 66, 37, 0.22),
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Configure/Preview modal owns its own canvas-corner toggle — hide the page chip. */
body:has(.path3-wall-modal) .path3-unit-toggle:not(.path3-unit-toggle--canvas) {
    display: none;
}

/* In the canvas corner, in flow above the drawing so it cannot cover labels. */
.path3-unit-toggle--canvas {
    position: relative;
    z-index: 5;
    align-self: flex-end;
    flex: 0 0 auto;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    margin: 0 0 0.35rem auto;
}

.path3-unit-toggle__btn {
    min-width: 2.75rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #8A8D8F;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}

.path3-unit-toggle__btn:focus-visible {
    outline: 2px solid #004225;
    outline-offset: -2px;
    z-index: 1;
}

.path3-unit-toggle__btn + .path3-unit-toggle__btn {
    border-left: 1px solid #E4E5E6;
}

.path3-unit-toggle__btn:hover:not(.path3-unit-toggle__btn--active) {
    background: #f3f7f5;
    color: #004225;
}

.path3-unit-toggle__btn--active {
    background: #004225;
    color: #fff;
}

@media (max-width: 640px) {
    .path3-unit-toggle {
        top: calc(5.25rem + env(safe-area-inset-top, 0px));
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        bottom: auto;
    }

    .path3-unit-toggle--canvas {
        top: auto;
        right: auto;
        margin: 0 0 0.25rem auto;
    }

    .path3-unit-toggle__btn {
        min-width: 2.5rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

.path3-frame-design-section {
    scroll-margin-top: 1.25rem;
    outline: none;
}

.path3-frame-design-section:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 66, 37, 0.25);
}

.path3-frame-design-section__canvas {
    width: 100%;
}

.path3-frame-design-section__canvas .path3-elevation {
    width: 100%;
}

.path3-frame-design-placeholder {
    margin-top: 1.5rem;
}

.path3-wall-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: #f7f8f7;
    display: flex;
    flex-direction: column;
    /* Header stays pinned. The body below is the scrollport (elevation + dock). */
    overflow: hidden;
    overscroll-behavior: none;
    padding:
        env(safe-area-inset-top, 0px)
        env(safe-area-inset-right, 0px)
        env(safe-area-inset-bottom, 0px)
        env(safe-area-inset-left, 0px);
}

.path3-wall-modal__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    max-width: 72rem;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.path3-wall-modal__header {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 0.55rem 1.15rem;
    border-bottom: 1px solid #E4E5E6;
    background: #fff;
    z-index: 1;
}

.path3-wall-modal__back {
    justify-self: start;
    font-size: 0.875rem;
    font-weight: 500;
    color: #004225;
    background: transparent;
    border: none;
    padding: 0.35rem 0.25rem;
    cursor: pointer;
    text-align: left;
}

.path3-wall-modal__back:hover {
    text-decoration: underline;
}

.path3-wall-modal__title-block {
    min-width: 0;
    text-align: center;
}

.path3-wall-modal__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #004225;
    margin: 0;
}

.path3-wall-modal__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: #8A8D8F;
}

.path3-wall-modal__save {
    color: #004225;
}

.path3-wall-modal__header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
}

.path3-wall-modal__done {
    justify-self: end;
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.25rem;
    padding: 0 1.1rem;
    border-radius: 0.5rem;
    background: #004225;
    color: #fff;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
}

.path3-wall-modal__continue-label--short {
    display: none;
}

.path3-wall-modal__done:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.path3-wall-modal__done--secondary {
    background: transparent;
    color: #004225;
    border: 1px solid #E4E5E6;
}

.path3-wall-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.65rem 1.15rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    /* Corner picker + frame grids can be taller than the viewport. Scroll this
       region; do not clip it. The shell and panel stay overflow:hidden so the
       page behind the fixed modal does not scroll. */
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.path3-wall-modal__surface {
    /* Grow into spare space, but never shrink the elevation away. flex-shrink: 0
       keeps the drawing's content height in the body's scroll height. */
    flex: 1 0 auto;
    min-height: min(12rem, 40dvh);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow: visible;
}

.path3-wall-modal__surface--enter,
.path3-wall-modal__controls--enter {
    animation: path3-workspace-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes path3-workspace-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.path3-wall-modal__canvas {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 0.65rem;
    border: 1px solid #E4E5E6;
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f4 100%);
    padding: 0.35rem 0.5rem 0.15rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
}

.path3-wall-modal__canvas-caption {
    margin: 0;
    padding: 0 0.15rem;
    font-size: 0.75rem;
    color: #8A8D8F;
    line-height: 1.4;
    text-align: center;
}

.path3-wall-modal__canvas .path3-elevation {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1 1 0%;
    justify-content: safe center;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
}

.path3-wall-modal__controls {
    flex: 0 0 auto;
    border-radius: 0.65rem;
    border: 1px solid #E4E5E6;
    background: #fff;
    padding: 0.45rem 0.9rem 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    min-width: 0;
    /* Stay as tall as the corner picker and frame grids so the body can scroll to them. */
    min-height: min-content;
    /* Horizontal strips scroll inside; don't let them widen the modal. */
    overflow-x: hidden;
}

/* Frames | Interiors | Internal Colour tabs live in the bottom selection strip (not under the header). */
.path3-wall-modal__mode-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0 0 0.55rem;
    padding: 0;
    border-bottom: 1px solid #E4E5E6;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    /* pan-y lets a vertical swipe scroll the modal body; pan-x keeps the tab strip. */
    touch-action: pan-x pan-y;
    scrollbar-width: none;
}

.path3-wall-modal__mode-bar::-webkit-scrollbar {
    display: none;
}

.path3-wall-modal__mode {
    flex: 1 1 0;
    min-width: 5.25rem;
    height: 2.35rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #8A8D8F;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.path3-wall-modal__mode:hover:not(:disabled) {
    color: #004225;
    background: rgba(0, 66, 37, 0.04);
}

.path3-wall-modal__mode--active {
    color: #004225;
    border-bottom-color: #004225;
}

.path3-wall-modal__mode:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.path3-wall-modal__interior-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0.05rem 0.05rem 0.3rem;
    touch-action: pan-x pan-y;
    max-width: 100%;
}

.path3-wall-modal__interior-strip .path3-frame-design-option {
    flex: 0 0 auto;
    width: 6.75rem;
    min-height: 2.75rem;
    scroll-snap-align: start;
}

.path3-wall-modal__colour-strip,
.path3-internal-colour-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0.05rem 0.05rem 0.3rem;
    touch-action: pan-x pan-y;
    max-width: 100%;
}

.path3-internal-colour-chip {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    box-sizing: border-box;
    width: 8.75rem;
    min-width: 8.75rem;
    min-height: 5.75rem;
    padding: 0.55rem 0.6rem 0.5rem;
    border: 1.5px solid rgba(0, 66, 37, 0.18);
    border-radius: 0.7rem;
    background: var(--chip-fill, #fff);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.06));
    color: #1a2e1f;
    cursor: pointer;
    scroll-snap-align: start;
    box-shadow: 0 1px 2px rgba(26, 46, 31, 0.08);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.path3-internal-colour-chip--light {
    border-color: rgba(0, 66, 37, 0.28);
    box-shadow: inset 0 0 0 1px rgba(0, 66, 37, 0.08), 0 1px 2px rgba(26, 46, 31, 0.06);
}

.path3-internal-colour-chip:hover:not(:disabled) {
    border-color: #004225;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(26, 46, 31, 0.14);
}

.path3-internal-colour-chip--selected {
    border-color: #004225;
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px #004225,
        0 4px 12px rgba(26, 46, 31, 0.16);
}

.path3-internal-colour-chip:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.path3-internal-colour-chip__label {
    display: block;
    width: 100%;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    color: #1a2e1f;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .path3-wall-modal__surface--enter,
    .path3-wall-modal__controls--enter,
    .path3-wall-modal__mode,
    .path3-elevation__interior--in,
    .path3-elevation__frame--coloured,
    .path3-internal-colour-chip {
        animation: none;
        transition: none;
    }
}

.path3-wall-modal__hint {
    margin: 0 0 0.55rem;
    font-size: 0.8125rem;
    color: #8A8D8F;
    line-height: 1.4;
}

.path3-wall-modal__hint--preview {
    margin: 0;
    text-align: center;
}

.path3-wall-modal__bay-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.path3-wall-modal__bay-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #004225;
}

.path3-wall-modal__bay-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.path3-wall-modal__step {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 1px solid #E4E5E6;
    background: #fff;
    color: #004225;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.path3-wall-modal__step:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.path3-wall-modal__bay-value {
    min-width: 1.75rem;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 600;
    color: #004225;
}

.path3-wall-modal__bay-meta {
    font-size: 0.75rem;
    color: #8A8D8F;
}

/* Status chip — label/tag, not a control */
.path3-wall-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 1rem);
    padding: 0.15rem 0.5rem;
    border: 1px solid #D9DBDC;
    border-radius: 999px;
    background: #F4F5F5;
    color: #6B6F71;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.path3-wall-status--idle {
    background: #F4F5F5;
    border-color: #D9DBDC;
    color: #6B6F71;
}

.path3-wall-status--progress {
    background: #EEF5F1;
    border-color: rgba(0, 66, 37, 0.22);
    color: #004225;
}

.path3-wall-status--designed {
    background: #EEF5F1;
    border-color: rgba(0, 66, 37, 0.35);
    color: #004225;
}

/* Walls step: compact per-card Configure on the far right */
.path3-wall-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #E4E5E6;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.65rem 0.75rem 0.65rem 0.25rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.path3-wall-card--selected {
    border-color: #004225;
    background: rgba(0, 66, 37, 0.05);
}

.path3-wall-card__hit {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    min-width: 0;
    padding: 0.2rem 0.5rem;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.path3-wall-card:not(.path3-wall-card--selected):hover {
    background: rgba(0, 66, 37, 0.04);
}

.path3-wall-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.path3-wall-card__title {
    display: block;
    font-weight: 500;
    color: #004225;
}

.path3-wall-card__dims {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.75rem;
    color: #8A8D8F;
}

.path3-wall-card__aside {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: wrap;
    /* Clear the absolute status tag above the action buttons. */
    margin-top: 1.15rem;
}

.path3-wall-card--designed .path3-wall-card__aside {
    margin-top: 0;
}

.path3-wall-card__configure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 0.7rem;
    border: 0;
    border-radius: 0.375rem;
    background: #004225;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.path3-wall-card__configure:hover {
    background: rgba(0, 66, 37, 0.9);
}

.path3-wall-card__preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 0.65rem;
    border: 1px solid #E4E5E6;
    border-radius: 0.375rem;
    background: #fff;
    color: #004225;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.path3-wall-card__preview:hover {
    background: rgba(0, 66, 37, 0.05);
}

/* Phone + narrow tablet: keep elevation prominent, dock reachable, touch targets ≥44px. */
@media (max-width: 720px) {
    /* Wall cards: title/dims on one line; tag top-right; actions in a bottom row. */
    .path3-wall-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        padding: 0.75rem;
    }

    .path3-wall-status {
        top: 0.55rem;
        right: 0.55rem;
    }

    .path3-wall-card__hit {
        width: 100%;
        padding: 0;
        padding-right: 6.75rem; /* keep title/dims clear of the status tag */
        align-items: center;
    }

    .path3-wall-card--designed .path3-wall-card__hit {
        padding-right: 0;
    }

    .path3-wall-card__meta {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: baseline;
        gap: 0.45rem;
        width: 100%;
    }

    .path3-wall-card__title {
        flex: 0 1 auto;
        white-space: nowrap;
    }

    .path3-wall-card__dims {
        flex: 1 1 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .path3-wall-card__aside {
        width: 100%;
        margin-top: 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.4rem;
    }

    .path3-wall-card__preview,
    .path3-wall-card__configure {
        flex: 1 1 0;
        min-width: 0;
        min-height: 2.5rem;
    }

    .path3-wall-modal__header {
        padding: 0.45rem 0.75rem;
        gap: 0.4rem 0.65rem;
    }

    .path3-wall-modal__back {
        min-height: 2.5rem;
        padding: 0.4rem 0.2rem;
    }

    .path3-wall-modal__title {
        font-size: 1.05rem;
    }

    .path3-wall-modal__subtitle {
        font-size: 0.6875rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .path3-wall-modal__header-actions {
        gap: 0.35rem;
    }

    .path3-wall-modal__done {
        height: 2.5rem;
        padding: 0 0.8rem;
        font-size: 0.8125rem;
    }

    .path3-wall-modal__continue-label--full {
        display: none;
    }

    .path3-wall-modal__continue-label--short {
        display: inline;
    }

    .path3-wall-modal__body {
        padding: 0.45rem 0.7rem 0.45rem;
        gap: 0.45rem;
    }

    .path3-wall-modal__canvas {
        padding: 0.25rem 0.35rem 0.1rem;
    }

    .path3-wall-modal__canvas-caption {
        font-size: 0.6875rem;
        line-height: 1.35;
    }

    .path3-wall-modal__controls {
        padding: 0.4rem 0.7rem 0.65rem;
        border-radius: 0.75rem;
    }

    .path3-wall-modal__mode {
        flex: 0 0 auto;
        min-height: 2.75rem;
        min-width: auto;
        padding: 0 0.75rem;
        font-size: 0.8125rem;
    }

    .path3-wall-modal__hint {
        margin-bottom: 0.4rem;
        font-size: 0.75rem;
    }

    .path3-frame-palette__item {
        min-height: 2.75rem;
    }

    .path3-wall-modal__interior-strip .path3-frame-design-option {
        width: 6.25rem;
    }

    .path3-internal-colour-chip {
        width: 8.25rem;
        min-width: 8.25rem;
        min-height: 5.5rem;
    }
}

@media (max-width: 639px) {
    .path3-wall-modal__header {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "back actions"
            "title title";
    }

    .path3-wall-modal__back { grid-area: back; }
    .path3-wall-modal__header-actions { grid-area: actions; }
    .path3-wall-modal__title-block { grid-area: title; text-align: left; }
}

/* Very short viewports (landscape phones / small height): shrink chrome, keep dock. */
@media (max-width: 720px) and (max-height: 520px) {
    .path3-wall-modal__canvas-caption {
        display: none;
    }

    .path3-wall-modal__hint {
        display: none;
    }

}

@media (max-width: 390px) {
    .path3-wall-modal__done {
        padding: 0 0.65rem;
        font-size: 0.75rem;
    }

    .path3-wall-modal__mode {
        padding: 0 0.65rem;
        font-size: 0.75rem;
    }

    .path3-frame-palette__item {
        width: 6.5rem;
    }

    .path3-internal-colour-chip {
        width: 7.75rem;
        min-width: 7.75rem;
        min-height: 5.25rem;
        padding: 0.5rem 0.55rem 0.45rem;
    }

    .path3-internal-colour-chip__label {
        font-size: 0.625rem;
    }
}

/* Path 3 design summary (Patrick email mirror / deposit admin / customer review) */
.path3-design-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.path3-design-summary__project {
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 0.75rem;
}

.path3-design-summary__wall {
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.55);
}

.path3-design-summary__wall-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.path3-design-summary__wall-title {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: hsl(var(--primary));
    margin: 0;
}

.path3-design-summary__status {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
}

.path3-design-summary__wall-size {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #8a8d8f;
}

.path3-design-summary__elevations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
    margin: 0 0 0.85rem;
}

.path3-design-summary__elevation-figure {
    margin: 0;
}

.path3-design-summary__elevation {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0;
    background: #f7f8f7;
    border: 1px solid #E4E5E6;
    border-radius: 0.5rem;
    object-fit: contain;
}

.path3-design-summary__elevation-caption {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: hsl(var(--muted-foreground));
}

.path3-design-summary__dl {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
}

.path3-design-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.path3-design-summary__row dt {
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
}

.path3-design-summary__row dd {
    margin: 0;
    text-align: right;
    color: hsl(var(--primary));
    font-weight: 500;
    word-break: break-word;
}

.path3-design-summary__empty {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: #8a8d8f;
}

.path3-design-summary__frames {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.path3-design-summary__frames li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.5rem;
    border-top: 1px solid hsl(var(--border) / 0.7);
    font-size: 0.8125rem;
}

.path3-design-summary__frame-name {
    color: hsl(var(--primary));
    font-weight: 500;
}

.path3-design-summary__frame-meta {
    color: #8a8d8f;
    font-size: 0.75rem;
}

.path3-incomplete-banner {
    border: 1px solid hsl(var(--primary) / 0.25);
    background: hsl(var(--primary) / 0.05);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}

.path3-incomplete-banner__title {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--primary));
}

.path3-incomplete-banner__body {
    margin: 0;
    font-size: 0.8125rem;
    color: #8a8d8f;
    line-height: 1.45;
}

.path3-incomplete-banner__list {
    margin: 0.6rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.75rem;
    color: #8a8d8f;
}

@media (min-width: 640px) {
    .path3-design-summary__frames li {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
    }

    .path3-design-summary__frame-meta {
        text-align: right;
        white-space: nowrap;
    }
}

/* ---- Interiors tab: component palette, parts list, preview card, draggable parts ---- */

.path3-parts-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr));
    gap: 0.5rem;
    margin: 0.35rem 0 0.6rem;
}

.path3-part-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.45rem 0.4rem 0.4rem;
    border: 1px solid #E4E5E6;
    border-radius: 0.55rem;
    background: #fff;
    color: #004225;
    font: inherit;
    cursor: pointer;
    min-height: 3.6rem;
    transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.path3-part-chip:hover:not(:disabled) {
    border-color: #004225;
    background: #f4f8f6;
}

.path3-part-chip:active:not(:disabled) {
    transform: scale(0.98);
}

.path3-part-chip:focus-visible {
    outline: 2px solid #004225;
    outline-offset: 2px;
}

.path3-part-chip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f6f6f6;
}

.path3-part-chip__icon {
    display: inline-flex;
    line-height: 0;
}

.path3-part-chip__label {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.15;
}

.path3-part-chip__meta {
    font-size: 0.72rem;
    color: #5f6264;
    line-height: 1.1;
}

.path3-parts-body {
    display: grid;
    grid-template-columns: minmax(7rem, 9.5rem) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.path3-parts-preview {
    border-radius: 0.55rem;
    border: 1px solid #E4E5E6;
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f4 100%);
    padding: 0.35rem;
    min-width: 0;
}

.path3-parts-preview .path3-frame-preview__canvas {
    max-height: 14rem;
}

.path3-parts-list-wrap {
    min-width: 0;
}

.path3-parts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.path3-parts-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name actions" "meta actions";
    column-gap: 0.5rem;
    align-items: center;
    padding: 0.35rem 0.5rem;
    border: 1px solid #E4E5E6;
    border-radius: 0.5rem;
    background: #fff;
}

.path3-parts-list__name {
    grid-area: name;
    font-size: 0.9rem;
    font-weight: 600;
    color: #004225;
}

.path3-parts-list__meta {
    grid-area: meta;
    font-size: 0.75rem;
    color: #5f6264;
}

.path3-parts-list__actions {
    grid-area: actions;
    display: inline-flex;
    gap: 0.25rem;
}

.path3-parts-list__btn {
    min-width: 2.25rem;
    min-height: 2.25rem;
    border: 1px solid #E4E5E6;
    border-radius: 0.4rem;
    background: #fff;
    color: #004225;
    font: inherit;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
}

.path3-parts-list__btn:hover:not(:disabled) {
    border-color: #004225;
    background: #f4f8f6;
}

.path3-parts-list__btn:focus-visible {
    outline: 2px solid #004225;
    outline-offset: 2px;
}

.path3-parts-list__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.path3-parts-list__btn--remove {
    color: #8a1f1f;
}

.path3-parts-list__empty {
    margin: 0;
    font-size: 0.85rem;
    color: #5f6264;
}

/* Interiors tab: a quiet prompt, then a compact outline control once a carcass is selected. */
.path3-interior-prompt {
    margin: 0.15rem 0 0.25rem;
    font-size: 0.8125rem;
    color: #8A8D8F;
    line-height: 1.4;
}

.path3-interior-design {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin: 0.15rem 0 0.25rem;
    text-align: center;
}

.path3-interior-design__name {
    margin: 0;
    max-width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    color: #004225;
    line-height: 1.3;
    text-align: center;
}

.path3-interior-design__button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding: 0 0.9rem;
    border: 1px solid #004225;
    border-radius: 0.5rem;
    background: #fff;
    color: #004225;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.path3-interior-design__button:hover:not(:disabled) {
    background: #f4f8f6;
}

.path3-interior-design__button:focus-visible {
    outline: 2px solid #004225;
    outline-offset: 2px;
}

.path3-interior-design__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.path3-interior-design__icon {
    display: block;
    flex: 0 0 auto;
}

.path3-interior-editor {
    position: fixed;
    inset: 0;
    /* Sibling of .path3-wall-modal (z-index 80), not a child. Must paint above that shell. */
    z-index: 110;
    display: flex;
    flex-direction: column;
    background: #f7f8f7;
    overflow: hidden;
    padding:
        env(safe-area-inset-top, 0px)
        env(safe-area-inset-right, 0px)
        env(safe-area-inset-bottom, 0px)
        env(safe-area-inset-left, 0px);
}

.path3-interior-editor__header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.85rem;
    background: #fff;
    border-bottom: 1px solid #E4E5E6;
}

/* Same in-flow chip as the wall elevation: a row above the carcass drawing. */
.path3-interior-editor__units {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 0.35rem 0.85rem 0;
}

.path3-interior-editor__title {
    margin: 0;
    min-width: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #004225;
}

.path3-interior-editor__stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    container-type: size;
    touch-action: none;
    padding: 0.25rem 0.5rem;
}

.path3-interior-editor__stage .path3-frame-preview--fill {
    height: min(100cqh, calc(100cqi * var(--path3-frame-h) / var(--path3-frame-w)));
    width: auto;
    max-width: 100%;
    aspect-ratio: var(--path3-frame-w) / var(--path3-frame-h);
    flex: 0 0 auto;
    align-items: center;
}

.path3-interior-editor__stage .path3-frame-preview__canvas {
    width: 100%;
    height: 100%;
    max-height: none;
}

.path3-interior-editor__controls {
    flex: 0 1 auto;
    max-height: 46%;
    overflow: auto;
    padding: 0.45rem 0.85rem 0.85rem;
    background: #fff;
    border-top: 1px solid #E4E5E6;
}

.path3-interior-editor .path3-parts-body {
    grid-template-columns: minmax(0, 1fr);
}

.path3-interior-editor .path3-parts-list__btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
}

@media (max-width: 36rem) {
    .path3-parts-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .path3-parts-preview .path3-frame-preview__canvas {
        max-height: 11rem;
    }
}

/* Parts drawn on the elevation. They take pointer events (the layer inherits none from the old interior images). */
.path3-elevation__parts-layer {
    pointer-events: auto;
}

.path3-part__hit {
    fill: transparent;
    stroke: none;
}

.path3-part--draggable {
    cursor: ns-resize;
    /* Needed so a finger drag moves the part instead of scrolling the page. */
    touch-action: none;
}

.path3-part--draggable:hover .path3-part__hit {
    fill: rgba(0, 66, 37, 0.08);
    fill-opacity: 1;
}

.path3-part--dragging {
    opacity: 0.85;
    cursor: grabbing;
}

.path3-part--dragging .path3-part__hit {
    fill: rgba(0, 66, 37, 0.12);
    fill-opacity: 1;
}