.theme-interiors {
    --page-accent: var(--interiors-primary);
    --page-accent-strong: var(--interiors-secondary);
    --page-accent-rgb: var(--interiors-accent-rgb);
    --page-glow: var(--interiors-glow);
    --theme-primary: var(--interiors-primary);
    --theme-secondary: var(--interiors-secondary);
    --theme-accent-rgb: var(--interiors-accent-rgb);
    --theme-glow: var(--interiors-glow);
}

.provider-tab-hud {
    background: rgba(18, 28, 42, 0.6);
    border: 1px solid rgba(73, 69, 81, 0.15);
    color: #cbc4d3;
    overflow: visible;
    border-radius: 0.75rem;
    transition: all 0.18s ease;
}

.provider-tab-hud.active {
    color: #fff;
    border-color: rgba(var(--theme-accent-rgb, 16, 185, 129), 0.5);
    box-shadow: 0 0 15px rgba(var(--theme-accent-rgb, 16, 185, 129), 0.2);
    background: rgba(22, 32, 46, 0.9);
}

.provider-tab-hud.active::after {
    display: none;
}

.provider-tab-hud:not(.active):hover {
    color: #d9e3f6;
    background: rgba(43, 53, 68, 0.4);
    transform: translateY(-1px);
}

.provider-choice-grid {
    display: grid;
    gap: 0.75rem;
}

.provider-choice-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(73, 69, 81, 0.15);
    border-radius: 1rem;
    background: rgba(18, 28, 42, 0.6);
    color: #d9e3f6;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
    opacity: 0.65;
}

.provider-choice-card:hover {
    transform: translateY(-1px);
    opacity: 0.85;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.provider-choice-card.active {
    opacity: 1;
    border-color: rgba(var(--theme-accent-rgb, 16, 185, 129), 0.5);
    background: rgba(22, 32, 46, 0.9);
    box-shadow:
        0 0 15px rgba(var(--theme-accent-rgb, 16, 185, 129), 0.2),
        0 0 0 1px rgba(var(--theme-accent-rgb, 16, 185, 129), 0.15);
}

.provider-choice-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.provider-choice-card-subtitle {
    font-size: 0.78rem;
    color: var(--hud-muted);
}

.provider-choice-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    text-align: left;
}

.provider-choice-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.provider-icon-openai {
    background: rgba(116, 60, 220, 0.18);
    color: #c084fc;
    border-color: rgba(116, 60, 220, 0.3);
}

.provider-icon-gemini {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

.provider-icon-grok {
    background: rgba(249, 115, 22, 0.18);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.3);
}

.provider-choice-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.provider-choice-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--theme-primary, var(--hud-accent));
    transform: scale(0);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.provider-choice-card.active .provider-choice-radio {
    border-color: var(--theme-primary, var(--hud-accent));
    box-shadow: 0 0 8px rgba(var(--theme-accent-rgb, 245, 215, 161), 0.35);
}

.provider-choice-card.active .provider-choice-radio::after {
    transform: scale(1);
}

.provider-choice-detail {
    padding: 1rem 1rem 1.1rem;
    border: none;
    border-radius: 1rem;
    background:
        radial-gradient(circle at top left, rgba(var(--theme-accent-rgb, 16, 185, 129), 0.06), transparent 42%),
        rgba(5, 15, 28, 0.6);
}

.provider-choice-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.provider-choice-detail-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.provider-choice-detail-brief {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--theme-primary, var(--hud-accent));
    margin-bottom: 0.35rem;
}

.provider-choice-detail-copy {
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--hud-muted);
}

.provider-choice-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.5rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hud-muted);
}

.provider-choice-status.is-ready {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.provider-choice-status.is-missing {
    border-color: rgba(248, 113, 113, 0.24);
    background: rgba(248, 113, 113, 0.08);
    color: #fca5a5;
}

#analysis-model-selector,
#image-generation-model-selector {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#analysis-model-selector:focus,
#image-generation-model-selector:focus {
    border-color: var(--hud-accent);
    box-shadow: 0 0 0 3px rgba(245, 215, 161, 0.18);
}

#analysis-custom-container,
#image-generation-custom-container {
    background-color: rgba(5, 15, 28, 0.6);
    border: 1px solid rgba(73, 69, 81, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.style-category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.style-category-tab {
    border: 1px solid rgba(73, 69, 81, 0.2);
    background: transparent;
    color: #cbc4d3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    transition: all 0.18s ease;
}

.style-category-tab:hover {
    border-color: rgba(var(--theme-accent-rgb, 16, 185, 129), 0.4);
    color: #d9e3f6;
    background: rgba(var(--theme-accent-rgb, 16, 185, 129), 0.08);
}

.style-category-tab.active {
    border-color: rgba(var(--theme-accent-rgb, 16, 185, 129), 0.6);
    color: #d9e3f6;
    background: rgba(var(--theme-accent-rgb, 16, 185, 129), 0.15);
    box-shadow: 0 0 12px rgba(var(--theme-accent-rgb, 16, 185, 129), 0.15);
}

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

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

.interior-tile {
    background: #fff;
    border: 1px solid var(--hud-outline);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
}

.interior-tile:hover {
    border-color: var(--interiors-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--interiors-accent-rgb), 0.12);
}

.interior-tile.active {
    border-color: var(--interiors-secondary);
    box-shadow: 0 0 0 1px var(--interiors-secondary), 0 12px 26px rgba(var(--interiors-accent-rgb), 0.16);
}

.interior-style-tile {
    background: #fff;
    border: 1px solid var(--hud-outline);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
}

.interior-style-tile:hover {
    border-color: var(--interiors-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--interiors-accent-rgb), 0.12);
}

.interior-style-tile.active {
    border-color: var(--interiors-secondary);
    box-shadow: 0 0 0 1px var(--interiors-secondary), 0 12px 26px rgba(var(--interiors-accent-rgb), 0.16);
}

#interiors {
    --interior-cost-cheap: #22c55e;
    --interior-cost-mid: #facc15;
    --interior-cost-expensive: #ef4444;
    --interior-cost-neutral: rgba(148, 163, 184, 0.45);
}

#interiors .interior-provider-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

#interiors .interior-provider-guide-card {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 48%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.06), rgba(255, 255, 255, 0.88));
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    min-height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#interiors .interior-provider-guide-card.active {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

#interiors .interior-provider-guide-card.provider-openai.active {
    border-color: rgba(59, 130, 246, 0.48);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 42%),
        linear-gradient(160deg, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.96));
}

#interiors .interior-provider-guide-card.provider-gemini.active {
    border-color: rgba(34, 197, 94, 0.5);
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.2), transparent 42%),
        linear-gradient(160deg, rgba(220, 252, 231, 0.92), rgba(255, 255, 255, 0.96));
}

#interiors .interior-provider-guide-card.provider-grok.active {
    border-color: rgba(245, 158, 11, 0.52);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 42%),
        linear-gradient(160deg, rgba(254, 243, 199, 0.92), rgba(255, 255, 255, 0.96));
}

#interiors .interior-provider-guide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

#interiors .interior-provider-guide-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

#interiors .interior-provider-guide-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.24rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

#interiors .interior-provider-guide-row {
    display: grid;
    gap: 0.2rem;
}

#interiors .interior-provider-guide-row span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
}

#interiors .interior-provider-guide-row strong,
#interiors .interior-provider-guide-row p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #1f2937;
}

#interiors #image-generation-model-selector.cost-tier-cheap,
#interiors #transformBtn.cost-tier-cheap,
#interiors #generateStyleSamplePackBtn.cost-tier-cheap {
    border-color: rgba(34, 197, 94, 0.58);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

#interiors #image-generation-model-selector.cost-tier-mid,
#interiors #transformBtn.cost-tier-mid,
#interiors #generateStyleSamplePackBtn.cost-tier-mid {
    border-color: rgba(250, 204, 21, 0.62);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.14);
}

#interiors #image-generation-model-selector.cost-tier-expensive,
#interiors #transformBtn.cost-tier-expensive,
#interiors #generateStyleSamplePackBtn.cost-tier-expensive {
    border-color: rgba(239, 68, 68, 0.58);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

#interiors #image-generation-model-selector.cost-tier-unknown,
#interiors #transformBtn.cost-tier-unknown,
#interiors #generateStyleSamplePackBtn.cost-tier-unknown {
    border-color: var(--interior-cost-neutral);
}

#interiors #image-generation-model-selector.cost-tier-cheap:focus {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

#interiors #image-generation-model-selector.cost-tier-mid:focus {
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
}

#interiors #image-generation-model-selector.cost-tier-expensive:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

#interiors #transformBtn,
#interiors #generateStyleSamplePackBtn {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    border-width: 1px;
    border-style: solid;
}

#interiors #transformBtn:not(:disabled):hover,
#interiors #generateStyleSamplePackBtn:not(:disabled):hover {
    transform: translateY(-1px);
}

.result-item {
    border: none;
    background: rgba(5, 15, 28, 0.6);
    border-radius: 0.75rem;
}

.result-label {
    background: rgba(43, 53, 68, 0.4);
    color: #d9e3f6;
    border-bottom: none;
}

.item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hud-outline);
    margin-bottom: 0.5rem;
}

.item-name {
    color: #fff;
}

.item-details {
    color: #aaa;
}

.item-source {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

#int-room-type-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hud-outline);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#int-room-type-select:hover {
    border-color: var(--interiors-primary);
    background: rgba(255, 255, 255, 0.06);
}

#int-room-type-select:focus {
    outline: none;
    border-color: var(--interiors-primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

#int-room-type-select option {
    background: #1a1f2e;
    color: white;
    padding: 0.5rem;
}

.fold-section {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(18, 28, 42, 0.5);
}

.fold-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    cursor: pointer;
    user-select: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: #cbc4d3;
    background: rgba(43, 53, 68, 0.4);
    border-bottom: none;
    transition: background 0.18s ease;
    list-style: none;
}

.fold-header:hover {
    background: rgba(43, 53, 68, 0.6);
    color: #d9e3f6;
}

.fold-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #6b7280;
    transition: transform 0.22s ease;
}

.fold-section.collapsed .fold-chevron {
    transform: rotate(-90deg);
}

.fold-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fold-section.collapsed .fold-body {
    display: none;
}

.fold-body .control-group {
    margin-bottom: 0 !important;
}

.export-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.export-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 14px 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    color: #cbd5e1;
    width: 100%;
}

.export-card:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(52, 211, 153, 0.35);
    color: #e2e8f0;
}

.export-card:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.export-card-icon {
    width: 32px;
    height: 32px;
    color: #94a3b8;
    flex-shrink: 0;
}

.export-card:hover:not(:disabled) .export-card-icon {
    color: #6ee7b7;
}

.export-card-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
}
.int-action-hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(203, 196, 211, 0.62);
    max-width: 34ch;
}

.export-card-desc {
    font-size: 0.6rem;
    color: #64748b;
    line-height: 1.3;
}

/*
 * ─── INTERIOR RESPONSIVE LAYOUT ───
 *
 * The Interior page uses the shared .workspace-grid system (style.css)
 * which is mobile-first: single column by default, 3-column at 1024px.
 * Mobile order is set by grid-template-areas in the base grid.
 * All rules use #interiors scoping — no !important needed.
 */
@media (max-width: 1023px) {

    /* ── Mobile column reorder: canvas first, config second ── */
    #interiors .grid > .lg\:col-span-5 { order: 1; }   /* Image + Prompt + Generate + Output */
    #interiors .grid > .lg\:col-span-4 { order: 2; }   /* Style & Export */
    #interiors .grid > .lg\:col-span-3 { order: 3; }   /* Engine + Models + Room */

    /* ── Provider cards: compact horizontal on mobile ── */
    #interiors #provider-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    #interiors .provider-choice-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.6rem 0.5rem 0.55rem;
        gap: 0.25rem;
    }
    #interiors .provider-choice-icon { display: none; }
    #interiors .provider-choice-radio { display: none; }
    #interiors .provider-choice-card-body { align-items: center; }
    #interiors .provider-choice-card-title    { font-size: 0.82rem; }
    #interiors .provider-choice-card-subtitle { font-size: 0.65rem; }

    /* ── Provider detail: compact ── */
    #interiors .provider-choice-detail      { padding: 0.7rem; }
    #interiors .provider-choice-detail-copy { font-size: 0.7rem; line-height: 1.45; }

    /* ── Style/Space category tabs: pill selector ── */
    #interiors .style-category-tabs {
        display: inline-flex;
        gap: 0.2rem;
        padding: 0.2rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: auto;
    }
    #interiors .style-category-tabs::-webkit-scrollbar { display: none; }

    #interiors .style-category-tab {
        padding: 0.6rem 0.85rem;
        min-height: 44px;
        white-space: nowrap;
        flex: 0 0 auto;
        border: 1px solid transparent;
    }
    #interiors .style-category-tab.active {
        border-color: var(--page-accent, var(--hud-accent));
    }

    /* ── Carousel: touch-friendly ── */
    #interiors .carousel-track {
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }
    #interiors .carousel-card { flex: 0 0 160px; }

    /* ── Collapsible prompt preview ── */
    #interiors .int-collapsible-header {
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    #interiors .int-collapsible-header .int-collapse-chevron {
        transition: transform 0.25s ease;
        color: #6b7280;
        flex-shrink: 0;
    }
    #interiors .int-collapsible-header.is-collapsed .int-collapse-chevron {
        transform: rotate(-90deg);
    }

    #interiors .int-collapsible-body {
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.25s ease;
        max-height: 2000px;
        opacity: 1;
    }
    #interiors .int-collapsible-body.is-collapsed {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        margin-top: 0;
    }

    /* ── Prompt preview: cap height on mobile ── */
    #int-final-prompt-output {
        max-height: 200px;
        overflow-y: auto;
    }

    /* ── Export cards: compact ── */
    #interiors .export-cards-grid { gap: 6px; }
    #interiors .export-card       { padding: 10px 6px 8px; }
    #interiors .export-card-icon  { width: 24px; height: 24px; }

    /* ── Provider guide: stacked ── */
    #interiors .interior-provider-guide-grid { grid-template-columns: 1fr; }

}

/* ─── Mobile bottom navigation (Synthetic Atmosphere) ─── */
#mobile-bottom-nav {
    background: rgba(9, 20, 33, 0.70);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(73, 69, 81, 0.2);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
}

#mobile-bottom-nav .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: rgba(203, 196, 211, 0.5);
    transition: color 0.2s ease;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
}

#mobile-bottom-nav .bottom-nav-item.active {
    color: #34D399;
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.4));
}

#mobile-bottom-nav .bottom-nav-item:not(.active):hover {
    color: #6ee7b7;
}

#mobile-bottom-nav .bottom-nav-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ─── Clean surface rules for interior sections ─── */
[data-page="interiors"] .hud-note {
    border: 1px solid rgba(73, 69, 81, 0.2);
    border-left: 1px solid rgba(73, 69, 81, 0.2);
}

/* ─── Floating CTA for interior ─── */
.interior-transmute-btn {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    color: #064e3b;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.interior-transmute-btn:hover {
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(52, 211, 153, 0.2);
}

@media (max-width: 1023px) {
    #interior-cta-wrap {
        position: fixed;
        bottom: 5.5rem;
        left: 1.25rem;
        right: 1.25rem;
        z-index: 40;
    }
}
@media (min-width: 1024px) {
    #interior-cta-wrap {
        position: relative;
    }
}

/* ─── Headline font ─── */
.font-headline { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }

/* ─── Neural pulse for interior progress bars ─── */
@keyframes neural-pulse {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.progress-bar-fill {
    height: 2px;
    background: linear-gradient(90deg, transparent, #10B981, transparent);
    background-size: 200% 100%;
    animation: neural-pulse 1.5s ease-in-out infinite;
    border-radius: 1px;
}

/* ─── Quick Style Switch Pills ─── */
.quick-style-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
}

.quick-style-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--md-sys-color-outline, #9ca3af);
    font-weight: 600;
    margin-right: 0.25rem;
}

.quick-style-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
    color: var(--interiors-primary, #10B981);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.quick-style-pill:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.quick-style-pill:active {
    transform: translateY(0);
}

/* ═════════════════════════════════════════════════════════════════════
   ░  REDESIGN — Setup / Compose / Output rails
   ░  Scoped to body[data-page="interiors"] and .theme-interiors
   ═════════════════════════════════════════════════════════════════════ */

/* ── Body font swap: Geist for the interiors page only ── */
body[data-page="interiors"] {
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
    font-feature-settings: 'ss01', 'cv11';
}
body[data-page="interiors"] .font-mono,
body[data-page="interiors"] code,
body[data-page="interiors"] pre {
    font-feature-settings: normal;
}

/* ── Page header ── */
.int-page-head {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.int-page-head-row {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-start;
}
@media (min-width: 1024px) {
    .int-page-head-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.int-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.int-page-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
    animation: int-pulse-dot 2.4s ease-in-out infinite;
}
@keyframes int-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.9); }
}
.int-page-head-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: flex-end;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: rgba(217, 227, 246, 0.55);
}
@media (min-width: 1024px) {
    .int-page-head-meta { align-items: center; }
}
.int-active-model {
    font-family: 'Geist Mono', 'JetBrains Mono', 'Consolas', monospace;
    letter-spacing: 0.02em;
}
.int-active-model #selected-model-name {
    color: #6ee7b7;
    font-weight: 500;
}
.int-provider-warning {
    color: #fca5a5;
    font-size: 0.78rem;
}
.int-page-title {
    font-family: 'Instrument Serif', 'Space Grotesk', serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #f1f5f9;
    text-wrap: balance;
    margin: 0;
}
.int-page-title em {
    font-style: italic;
    color: #6ee7b7;
}
.int-page-lede {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(217, 227, 246, 0.65);
    max-width: 56ch;
    text-wrap: pretty;
    margin: 0;
}

/* ── Phase nav (mobile) ── */
.int-phase-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 0 1rem;
    scrollbar-width: none;
    margin-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}
.int-phase-nav::-webkit-scrollbar { display: none; }
.int-phase-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(217, 227, 246, 0.75);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    flex: 0 0 auto;
}
.int-phase-chip:hover {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.3);
    color: #d9e3f6;
}
.int-phase-num {
    font-family: 'Geist Mono', 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #6ee7b7;
    letter-spacing: 0.06em;
}

/* ── Rails ── */
.int-rail-grid {
    /* slightly tighter top padding so the rail heads start in line with the H2 baseline */
}
.int-rail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0; /* prevent overflow inside grid */
}
.int-rail-head {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    padding-bottom: 1rem;
    margin-bottom: -0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.int-rail-num {
    font-family: 'Geist Mono', 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.78rem;
    color: rgba(110, 231, 183, 0.7);
    letter-spacing: 0.08em;
}
.int-rail-name {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(217, 227, 246, 0.5);
}

/* Rail-specific surface tints (consistent within each rail) */
.int-rail-setup .int-card {
    background: rgba(18, 28, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.int-rail-compose .int-card {
    background: rgba(22, 32, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.int-rail-output .int-card {
    background: rgba(33, 43, 57, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Section card pattern (replaces the old .bg-surface-container-low p-5 rounded-xl repetition) ── */
.int-card {
    border-radius: 14px;
    padding: 1.4rem 1.35rem 1.5rem;
    /* tinted shadow that matches background hue, not pure black */
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.025) inset,
        0 18px 36px -24px rgba(8, 14, 22, 0.6);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.int-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}
.int-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.int-card-step {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
    font-family: 'Geist Mono', 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
}
.int-card-title {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
}
.int-card-sub {
    font-size: 0.78rem;
    color: rgba(203, 196, 211, 0.65);
    line-height: 1.4;
    margin: 0.2rem 0 0;
}

/* Field stack inside cards */
.int-field-stack {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.int-field { display: flex; flex-direction: column; gap: 0.45rem; }
.int-field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.int-field-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(203, 196, 211, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.int-field-hint {
    font-size: 0.62rem;
    color: rgba(203, 196, 211, 0.4);
    letter-spacing: 0.06em;
    text-transform: lowercase;
    font-style: italic;
}
.int-select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: rgba(5, 15, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #d9e3f6;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.int-select:focus {
    outline: none;
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}
.int-field-price {
    font-size: 0.72rem;
    color: #6ee7b7;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-height: 1em;
    margin-top: 0.35rem;
}
.int-field-desc {
    font-size: 0.72rem;
    color: rgba(203, 196, 211, 0.55);
    line-height: 1.45;
    min-height: 1.25em;
}

/* Style custom row */
.int-style-custom-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.int-pill-btn {
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid transparent;
    font-family: inherit;
}
.int-pill-btn--primary {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.3);
    color: #6ee7b7;
}
.int-pill-btn--primary:hover {
    background: rgba(52, 211, 153, 0.22);
    border-color: rgba(52, 211, 153, 0.5);
}
.int-pill-btn--secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(217, 227, 246, 0.85);
}
.int-pill-btn--secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
}
.int-pill-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Compose: image upload zone ── */
.int-upload-shell {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(5, 15, 28, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.int-upload-status {
    font-size: 0.75rem;
    color: rgba(203, 196, 211, 0.6);
    margin-bottom: 0.85rem;
}
.int-upload-zone {
    border: 1.5px dashed rgba(110, 231, 183, 0.2);
    border-radius: 10px;
    padding: 2.4rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    background:
        radial-gradient(circle at center, rgba(52, 211, 153, 0.04), transparent 60%);
}
.int-upload-zone:hover {
    border-color: rgba(110, 231, 183, 0.45);
    background:
        radial-gradient(circle at center, rgba(52, 211, 153, 0.08), transparent 65%);
    transform: translateY(-1px);
}
.int-upload-icon {
    font-size: 36px !important;
    color: rgba(110, 231, 183, 0.55);
    margin-bottom: 0.5rem;
    display: block;
}
.int-upload-headline {
    color: #d9e3f6;
    font-size: 0.92rem;
    font-weight: 500;
    margin: 0 0 0.3rem;
}
.int-upload-helper {
    color: rgba(203, 196, 211, 0.5);
    font-size: 0.72rem;
    margin: 0;
}

/* ── Vision input ── */
.int-vision-input {
    width: 100%;
    font-size: 0.95rem !important;
    line-height: 1.55;
    padding: 1rem 1.1rem !important;
    background: rgba(5, 15, 28, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    color: #f1f5f9 !important;
    resize: vertical;
    min-height: 6rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.int-vision-input:focus {
    outline: none;
    border-color: rgba(52, 211, 153, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}
.int-vision-input::placeholder {
    color: rgba(203, 196, 211, 0.4);
    font-style: italic;
}

/* ── Prompt preview (no longer a card-styled box) ── */
.int-setup-spec {
    margin-top: 0.5rem;
}
.int-prompt-preview {
    border-radius: 10px;
    background:
        radial-gradient(circle at top left, rgba(52, 211, 153, 0.04), transparent 50%),
        rgba(5, 15, 28, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.95rem 1.1rem 1.1rem;
}
.int-prompt-preview--rail {
    padding: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.int-prompt-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}
.int-prompt-preview--rail .int-prompt-preview-head {
    margin-bottom: 0.8rem;
    padding-top: 1rem;
}
.int-prompt-preview-label {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}
.int-prompt-preview-tag {
    font-family: 'Geist Mono', 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: #6ee7b7;
    letter-spacing: 0.12em;
    background: rgba(52, 211, 153, 0.08);
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
}
.int-prompt-preview-name {
    font-size: 0.74rem;
    color: rgba(203, 196, 211, 0.55);
    letter-spacing: 0.02em;
}
.int-collapse-chevron {
    width: 14px; height: 14px;
    color: rgba(203, 196, 211, 0.4);
    transition: transform 0.22s ease;
    flex-shrink: 0;
}
.int-prompt-preview-content {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Geist Mono', 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.78rem;
    line-height: 1.72;
    color: rgba(110, 231, 183, 0.75);
    margin: 0;
}
.int-prompt-preview--rail .int-collapsible-body {
    overflow: visible;
}

/* ── Compose action: final render step inside the brief flow ── */
.int-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.07);
}
.int-cta-wrap--output {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.int-cta-context {
    display: grid;
    gap: 0.22rem;
    flex: 1;
    min-width: 0;
}
.int-cta-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(110, 231, 183, 0.7);
}
.int-cta-note {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(217, 227, 246, 0.62);
}
.int-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    padding: 0.88rem 1rem;
    min-width: min(100%, 260px);
    border-radius: 12px !important;
    background: rgba(52, 211, 153, 0.12) !important;
    color: #dffcf2 !important;
    font-family: 'Geist', 'Inter', sans-serif !important;
    text-transform: none !important;
    letter-spacing: -0.005em !important;
    cursor: pointer;
    border: 1px solid rgba(52, 211, 153, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.07) inset,
        0 10px 24px -18px rgba(16, 185, 129, 0.5);
    transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.18s ease;
}
.int-cta-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 14px 28px -18px rgba(16, 185, 129, 0.6);
}
.int-cta-btn:active {
    transform: translateY(0) scale(0.99);
}
.int-cta-btn:focus-visible {
    outline: 2px solid #f1f5f9;
    outline-offset: 3px;
}
.int-cta-icon {
    font-size: 22px !important;
    flex-shrink: 0;
    color: rgba(110, 231, 183, 0.9);
}
.int-cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    flex: 1;
    text-align: left;
}
.int-cta-text-main {
    font-size: 0.95rem;
    font-weight: 600;
}
.int-cta-text-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(217, 227, 246, 0.6);
    font-variant-numeric: tabular-nums;
}
.int-cta-shortcut {
    margin-left: auto;
    font-family: 'Geist Mono', 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 0.16rem 0.48rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(217, 227, 246, 0.55);
}
.int-cta-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    box-shadow: none;
}
.int-cta-btn:disabled .int-cta-icon {
    color: rgba(217, 227, 246, 0.4);
}

/* ── Output: hero canvas ── */
.int-canvas-hero {
    border-radius: 16px;
    padding: 1.2rem;
    background:
        radial-gradient(circle at top right, rgba(52, 211, 153, 0.05), transparent 55%),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.4), transparent 50%),
        rgba(22, 32, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.03) inset,
        0 24px 48px -28px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}
/* Subtle grain overlay */
.int-canvas-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
    mix-blend-mode: overlay;
}
.int-canvas-hero > * { position: relative; }

/* Result image area: hero treatment */
.int-result-visual { display: block; }
.int-output-frame-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.int-output-frame-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(110, 231, 183, 0.72);
    margin-bottom: 0.25rem;
}
.int-output-frame-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.2;
}
.int-output-frame-meta-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    max-width: 18rem;
}
.int-output-frame-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 15, 28, 0.6);
    color: rgba(203, 196, 211, 0.72);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.int-output-frame-status.is-ready {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: rgba(110, 231, 183, 0.92);
}
.int-output-frame-meta {
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(203, 196, 211, 0.65);
    text-align: right;
}
.int-result-item {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(5, 15, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 1rem;
}
.int-result-label {
    padding: 0.5rem 0.75rem;
    font-family: 'Geist Mono', 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(203, 196, 211, 0.5);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: left;
    font-weight: 500;
}
.int-result-image {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 14px
        ),
        rgba(5, 15, 28, 0.4);
}
.int-result-image img {
    width: 100%;
    height: auto;
    display: block;
}
.int-result-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    max-width: 340px;
}
.int-result-empty-icon {
    font-size: 56px !important;
    color: rgba(110, 231, 183, 0.25);
}
.int-result-empty-headline {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(217, 227, 246, 0.75);
    margin: 0;
    line-height: 1.2;
}
.int-result-empty-helper {
    font-size: 0.82rem;
    color: rgba(203, 196, 211, 0.5);
    line-height: 1.5;
    margin: 0;
    text-wrap: pretty;
}

/* ── Output: shopping body ── */
.int-shopping-body { display: block; }
.int-shopping-summary {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.int-shopping-summary-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.2rem;
}
.int-shopping-summary-copy {
    font-size: 0.8rem;
    color: rgba(203, 196, 211, 0.65);
    line-height: 1.5;
}
.int-shopping-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    background: rgba(5, 15, 28, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}
.int-shopping-empty[data-tone="warn"] {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(120, 53, 15, 0.14);
}
.int-shopping-empty[data-tone="success"] {
    border-color: rgba(16, 185, 129, 0.22);
    background: rgba(5, 46, 22, 0.18);
}
.int-shopping-empty[data-tone="error"] {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(127, 29, 29, 0.18);
}
.int-shopping-empty-icon {
    font-size: 36px !important;
    color: rgba(110, 231, 183, 0.3);
}
.int-shopping-empty[data-tone="warn"] .int-shopping-empty-icon {
    color: rgba(251, 191, 36, 0.75);
}
.int-shopping-empty[data-tone="success"] .int-shopping-empty-icon {
    color: rgba(110, 231, 183, 0.82);
}
.int-shopping-empty[data-tone="error"] .int-shopping-empty-icon {
    color: rgba(252, 165, 165, 0.78);
}
.int-shopping-empty-headline {
    color: #d9e3f6;
    font-size: 0.88rem;
    font-weight: 500;
    margin: 0;
}
.int-shopping-empty-helper {
    color: rgba(203, 196, 211, 0.55);
    font-size: 0.75rem;
    margin: 0;
    max-width: 30ch;
}
.int-shopping-empty[data-tone="warn"] .int-shopping-empty-helper {
    color: rgba(253, 230, 138, 0.88);
}
.int-shopping-empty[data-tone="success"] .int-shopping-empty-helper {
    color: rgba(167, 243, 208, 0.9);
}
.int-shopping-empty[data-tone="error"] .int-shopping-empty-helper {
    color: rgba(254, 202, 202, 0.88);
}
.int-shopping-table {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(5, 15, 28, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.int-shopping-table-head {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(203, 196, 211, 0.6);
    margin-bottom: 0.65rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.int-shopping-table-body {
    overflow-x: auto;
    font-size: 0.85rem;
    color: rgba(203, 196, 211, 0.85);
}
.int-shopping-totals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(5, 15, 28, 0.55);
    border: 1px solid rgba(52, 211, 153, 0.15);
    font-weight: 500;
    color: #d9e3f6;
    font-size: 0.9rem;
}
.int-shopping-totals-num {
    font-family: 'Geist Mono', 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: #6ee7b7;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* Sample pack */
.int-sample-pack-panel { display: block; }
.int-sample-pack-head {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.int-sample-pack-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #f1f5f9;
}
.int-sample-pack-meta {
    font-size: 0.75rem;
    color: rgba(203, 196, 211, 0.55);
    line-height: 1.5;
}
.int-sample-pack-meta code {
    font-family: 'Geist Mono', monospace;
    font-size: 0.72rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(5, 15, 28, 0.6);
    color: #6ee7b7;
}

/* Loading state polish — tweak the existing inline-styled containers without breaking JS */
.int-canvas-hero .loading > div {
    background: rgba(5, 15, 28, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* ── Tabular numerals on metrics throughout interiors page ── */
[data-page="interiors"] #int-generate-progress-percent,
[data-page="interiors"] #int-shopping-progress-percent,
[data-page="interiors"] #int-sample-pack-progress-percent,
[data-page="interiors"] #totalPrice {
    font-variant-numeric: tabular-nums;
    font-family: 'Geist Mono', 'JetBrains Mono', 'Consolas', monospace;
}

/* ── Mobile adjustments for the new layout ── */
@media (max-width: 1023px) {
    .int-page-title { font-size: clamp(2rem, 8vw, 2.8rem); }
    .int-rail { gap: 1.25rem; }
    .int-rail-head { padding-bottom: 0.75rem; }
    .int-card { padding: 1.15rem 1.1rem 1.25rem; }
    .int-card-head { padding-bottom: 0.85rem; margin-bottom: 0.85rem; }
    .int-output-frame-head { flex-direction: column; align-items: flex-start; }
    .int-output-frame-meta-wrap { align-items: flex-start; max-width: none; }
    .int-output-frame-meta { text-align: left; }
    .int-next-steps-head { flex-direction: column; }
    .int-action-hint { max-width: none; }
    .int-result-image { min-height: 320px; }
    .int-cta-wrap { flex-direction: column; align-items: stretch; }
    .int-cta-btn { padding: 1rem 1.2rem; }
    .int-cta-text-main { font-size: 1rem; }
    .int-cta-shortcut { display: none; }

    /* Mobile rail order: Compose first (the workspace), then Output (results), then Setup (config) */
    #interiors .int-rail-grid > .int-rail-compose { order: 1; }
    #interiors .int-rail-grid > .int-rail-output  { order: 2; }
    #interiors .int-rail-grid > .int-rail-setup   { order: 3; }

    /* Reset the legacy mobile order rules (which targeted the now-removed col-span classes) */
    /* Also legacy rules for col-span-3/4/5 still apply but our new orders override above */
}

/* ──────────────────────────────────────────────────────────────
   Header provider pills (moved from Setup rail into page head)
   Compact horizontal pills showing provider + radio-style state.
   ────────────────────────────────────────────────────────────── */
.int-header-provider-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.int-header-provider-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem 0.45rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(231, 233, 238, 0.75);
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.int-header-provider-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(231, 233, 238, 0.95);
}

.int-header-provider-pill:active {
    transform: scale(0.98);
}

.int-header-provider-pill .provider-choice-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: currentColor;
    flex-shrink: 0;
}

.int-header-provider-pill .provider-choice-icon svg {
    width: 14px;
    height: 14px;
}

.int-header-provider-pill .int-header-provider-name {
    line-height: 1;
    white-space: nowrap;
}

.int-header-provider-pill .provider-choice-radio {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.int-header-provider-pill.selected,
.int-header-provider-pill[aria-pressed="true"],
.int-header-provider-pill.active {
    background: rgba(110, 231, 183, 0.12);
    color: #eafff4;
    border-color: rgba(110, 231, 183, 0.35);
}

.int-header-provider-pill.selected .provider-choice-radio,
.int-header-provider-pill[aria-pressed="true"] .provider-choice-radio,
.int-header-provider-pill.active .provider-choice-radio {
    background: #6ee7b7;
    border-color: #6ee7b7;
    box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.18);
}

.int-header-provider-pill:focus-visible {
    outline: 2px solid rgba(110, 231, 183, 0.6);
    outline-offset: 2px;
}

/* Mobile: stay horizontal, shrink padding so all three fit on one row */
@media (max-width: 640px) {
    .int-header-provider-tabs {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    .int-header-provider-pill {
        flex: 1 1 0;
        justify-content: center;
        padding: 0.4rem 0.55rem;
    }
    .int-header-provider-pill .int-header-provider-name {
        font-size: 0.78rem;
    }
}

/* ──────────────────────────────────────────────────────────────
   v8 polish: merged Engine card + compact Room grid + trimmed copy
   ────────────────────────────────────────────────────────────── */

/* Merged Engine card: Engine detail + Models with a thin divider */
.int-card--engine .int-engine-detail {
    margin-top: 0;
}

.int-engine-divider {
    height: 1px;
    margin: 1.1rem 0 1.1rem;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Cleaner Engine detail head: just title + status, no kicker */
.int-card--engine .provider-choice-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.int-card--engine .provider-choice-detail-title {
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #eef2f7;
    margin: 0;
}

/* Room card: 2-col grid for Type + Dimensions (saves vertical space) */
.int-room-stack > * + * {
    margin-top: 0.9rem;
}

.int-card--design-brief {
    background:
        radial-gradient(circle at top right, rgba(52, 211, 153, 0.06), transparent 48%),
        rgba(18, 28, 42, 0.82);
}

.int-design-brief-stack {
    gap: 1rem;
}

.int-room-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

@media (max-width: 480px) {
    .int-room-grid {
        grid-template-columns: 1fr;
    }
}

/* Inline "optional" micro-tag inside card titles */
.int-card-optional {
    display: inline-block;
    margin-left: 0.55rem;
    padding: 0.12rem 0.45rem;
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(231, 233, 238, 0.55);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    vertical-align: middle;
    transform: translateY(-1px);
}

/* Export card desc was removed — tighten card padding now that titles stand alone */
.export-card {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.int-next-steps {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.int-next-steps-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.int-next-steps-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(110, 231, 183, 0.72);
    margin-bottom: 0.2rem;
}

.int-next-steps-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.25;
}

.int-next-steps-grid {
    gap: 0.7rem;
}

.export-card .export-card-title {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

/* ===== Design-review consolidation (v=13) ================================
 * Provider pills live inside the Engine card. Header meta only carries
 * hidden JS-referenced status/warning nodes. Section banner markup was
 * removed from interior.html entirely.
 * ========================================================================= */
body[data-page="interiors"] #selected-model-display,
body[data-page="interiors"] .int-active-model,
body[data-page="interiors"] #provider-warning,
body[data-page="interiors"] .int-provider-warning {
    display: none !important;
}

body[data-page="interiors"] #provider-choice-brief {
    display: none;
}

body[data-page="interiors"] .int-page-head-meta {
    min-height: 0;
}

/* Engine-card variant of the provider tabs: vertical stack so each provider
 * reads as a full-width choice row inside the narrow Setup rail. */
.int-engine-provider-tabs {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.35rem;
    padding: 0;
    margin-bottom: 0.85rem;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.int-engine-provider-tabs .int-header-provider-pill {
    width: 100%;
    justify-content: flex-start;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(9, 20, 33, 0.45);
    border-radius: 10px;
}

.int-engine-provider-tabs .int-header-provider-pill .int-header-provider-name {
    flex: 1 1 auto;
    text-align: left;
}

.int-engine-provider-tabs .int-header-provider-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.int-engine-provider-tabs .int-header-provider-pill.selected,
.int-engine-provider-tabs .int-header-provider-pill[aria-pressed="true"],
.int-engine-provider-tabs .int-header-provider-pill.active {
    background: rgba(110, 231, 183, 0.12);
    border-color: rgba(110, 231, 183, 0.35);
}

/* ─────────────────────────────────────────────────────────────
 * Density polish pass (v=14)
 * Combined "Your vision" into Design brief; dropped DRAFT card
 * and per-card step badges. Tightens card heads now that they
 * carry title only, and gives the trailing vision textarea a
 * clear separator inside the merged card.
 * ───────────────────────────────────────────────────────────── */

/* Card head without the step badge: trim vertical weight */
body[data-page="interiors"] .int-card-head {
    padding-bottom: 0.85rem;
    margin-bottom: 0.95rem;
}

/* Vision textarea as the closing field of Design brief */
body[data-page="interiors"] .int-vision-field {
    padding-top: 0.85rem;
    margin-top: 0.25rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}
body[data-page="interiors"] .int-vision-field .int-vision-input {
    margin-top: 0.35rem;
    width: 100%;
}

/* Belt-and-suspenders hide for legacy DRAFT preview markup that
 * JS may still reference. The <pre> keeps id="int-final-prompt-output"
 * with [hidden] attribute so JS writes succeed silently. */
body[data-page="interiors"] .int-setup-spec,
body[data-page="interiors"] .int-prompt-preview--rail,
body[data-page="interiors"] #int-prompt-preview-body {
    display: none !important;
}
body[data-page="interiors"] #int-final-prompt-output[hidden] {
    display: none !important;
}

/* Simplified Next Steps head: single-line kicker, no redundant title */
body[data-page="interiors"] .int-next-steps-head {
    align-items: baseline;
    gap: 0.75rem;
}
body[data-page="interiors"] .int-next-steps-kicker {
    flex-shrink: 0;
}
