[hidden] {
    display: none !important;
}

.nav-active {
    color: var(--gold-light) !important;
    border-color: rgba(184, 148, 106, .45) !important;
    background: linear-gradient(180deg, rgba(184,148,106,.16), rgba(184,148,106,.06)) !important;
}

/* Premium thin scrollbars — Firefox */
.consergeria-thread,
.detail-panel,
.reco-rail,
.detail-thumbs,
.selection-rail-body,
.consergeria-prompt-bar textarea {
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 148, 106, .38) transparent;
}

/* Premium thin scrollbars — Chromium / Safari */
.consergeria-thread::-webkit-scrollbar,
.detail-panel::-webkit-scrollbar,
.reco-rail::-webkit-scrollbar,
.detail-thumbs::-webkit-scrollbar,
.selection-rail-body::-webkit-scrollbar,
.consergeria-prompt-bar textarea::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.consergeria-thread::-webkit-scrollbar-track,
.detail-panel::-webkit-scrollbar-track,
.reco-rail::-webkit-scrollbar-track,
.detail-thumbs::-webkit-scrollbar-track,
.selection-rail-body::-webkit-scrollbar-track,
.consergeria-prompt-bar textarea::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.consergeria-thread::-webkit-scrollbar-thumb,
.detail-panel::-webkit-scrollbar-thumb,
.reco-rail::-webkit-scrollbar-thumb,
.detail-thumbs::-webkit-scrollbar-thumb,
.selection-rail-body::-webkit-scrollbar-thumb,
.consergeria-prompt-bar textarea::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(220, 196, 160, .42), rgba(143, 106, 68, .28));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.consergeria-thread::-webkit-scrollbar-thumb:hover,
.detail-panel::-webkit-scrollbar-thumb:hover,
.reco-rail::-webkit-scrollbar-thumb:hover,
.detail-thumbs::-webkit-scrollbar-thumb:hover,
.selection-rail-body::-webkit-scrollbar-thumb:hover,
.consergeria-prompt-bar textarea::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(220, 196, 160, .7), rgba(184, 148, 106, .5));
    border: 2px solid transparent;
    background-clip: padding-box;
}

.consergeria-thread::-webkit-scrollbar-corner,
.detail-panel::-webkit-scrollbar-corner,
.reco-rail::-webkit-scrollbar-corner,
.detail-thumbs::-webkit-scrollbar-corner,
.selection-rail-body::-webkit-scrollbar-corner,
.consergeria-prompt-bar textarea::-webkit-scrollbar-corner {
    background: transparent;
}

.consergeria-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.consergeria-page .site-header {
    flex-shrink: 0;
}

.consergeria-page .site-footer {
    display: none;
}

.consergeria-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.selection-rail,
.chat-panel {
    height: 100%;
    min-height: 0;
    max-height: 100%;
}

.selection-rail {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--border);
    background:
        radial-gradient(circle at top left, rgba(184,148,106,.05), transparent 46%),
        linear-gradient(180deg, rgba(16,17,20,.94), rgba(8,9,11,.98));
}

.selection-rail-head {
    flex-shrink: 0;
    padding: 24px 20px 14px;
    border-bottom: 1px solid var(--border);
}

.selection-rail-label {
    margin: 0;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.selection-rail-count {
    margin: 6px 0 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--muted);
}

.selection-rail-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 20px 24px;
}

.chat-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(184,148,106,.05), transparent 42%),
        linear-gradient(180deg, rgba(16,17,20,.92), rgba(8,9,11,.98));
}

.chat-panel .reco-card {
    flex: 0 0 min(260px, 82%);
}

.chat-panel-head {
    flex-shrink: 0;
    padding: 36px 40px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(16, 17, 20, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 10;
    transition: padding .25s ease;
}

.chat-panel.has-conversation .chat-panel-head {
    padding: 16px 40px 12px;
}

.chat-panel.has-conversation .chat-panel-head h1 {
    margin: 0;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.1;
}

.chat-panel.has-conversation .chat-panel-head p {
    display: none;
}

.chat-panel-head h1 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(36px, 4.4vw, 52px);
    line-height: 1.08;
    letter-spacing: -.4px;
}

.chat-panel-head h1 span {
    color: var(--gold);
    font-style: italic;
}

.chat-panel-head .eyebrow.vella-speak {
    text-transform: none;
    letter-spacing: .02em;
    font-size: 13px;
    gap: 8px;
}

.chat-panel-head .eyebrow.vella-speak .vella-mark {
    width: 11px;
    height: 13px;
    color: var(--gold-light);
}

.chat-panel-head p {
    margin: 0;
    max-width: 520px;
    color: var(--muted-soft);
    font-size: 16px;
    line-height: 1.65;
}

.consergeria-thread {
    flex: 1 1 auto;
    min-height: min(40dvh, 220px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.consergeria-turn {
    animation: turnIn var(--motion-base) var(--ease-out);
}

@keyframes turnIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.turn-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.consergeria-turn.user .turn-label {
    color: rgba(255,255,255,.42);
    text-align: right;
}

.premium-prose {
    max-width: 680px;
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(26, 28, 32, 0.85) 0%, rgba(17, 19, 22, 0.95) 100%);
    box-shadow:
        0 18px 48px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.04);
    position: relative;
    transition: border-color var(--motion-base) ease;
}

.consergeria-turn.assistant .premium-prose {
    border-left: 3px solid var(--gold);
}

.premium-prose p {
    margin: 0 0 10px;
    color: #DCE0E5;
    font-size: 15px;
    line-height: 1.7;
}

.premium-prose p:last-child {
    margin-bottom: 0;
}

.response-summary {
    margin-top: 10px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.unmet-demand-actions,
.unmet-demand-cta {
    display: none;
}

.turn-error-actions {
    margin-top: 12px;
    max-width: 680px;
}

.consergeria-turn.is-error .premium-prose {
    border-color: rgba(232, 160, 160, .35);
}

.inline-lead-card {
    margin-top: 16px;
    max-width: 480px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    border: 1px solid var(--gold-border);
    background: rgba(21, 23, 26, .92);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.inline-lead-title {
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.inline-lead-subtitle {
    margin: 6px 0 14px;
    color: #A9ADB4;
    font-size: 14px;
    line-height: 1.4;
}

.inline-lead-form {
    display: grid;
    gap: 10px;
}

.inline-lead-form input,
.inline-lead-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font: inherit;
}

.inline-lead-form textarea {
    resize: vertical;
    min-height: 72px;
}

.inline-lead-form .btn {
    width: 100%;
    margin-top: 2px;
}

.inline-lead-success {
    color: var(--gold-light);
    font-size: 14px;
    line-height: 1.5;
    padding: 4px 0;
}

.user-bubble {
    margin-left: auto;
    max-width: 520px;
    padding: 14px 18px;
    border-radius: 20px 20px 8px 20px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: #F2F3F5;
    font-size: 15px;
    line-height: 1.55;
}

.reco-rail {
    margin-top: 16px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.reco-card {
    flex: 0 0 min(300px, 78vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #1A1C20 0%, #111316 100%);
    box-shadow: 0 18px 42px rgba(0,0,0,.3);
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: .28s ease;
    padding: 0;
    font: inherit;
}

.reco-card:focus-visible {
    outline: 2px solid rgba(184,148,106,.65);
    outline-offset: 2px;
}

.reco-card .fav-inline {
    position: relative;
    z-index: 1;
}

.reco-card:hover,
.reco-card.is-selected {
    transform: translateY(-4px);
    border-color: rgba(184,148,106,.4);
    box-shadow: 0 24px 54px rgba(184,148,106,.12);
}

.reco-card.is-selected {
    outline: 1px solid var(--gold-border);
}

.reco-media {
    position: relative;
    height: 158px;
    overflow: hidden;
    background: #0c0d10;
}

.reco-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reco-media .badge {
    top: 12px;
    left: 12px;
}

.reco-body {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.reco-body .location {
    margin-bottom: 0;
}

.reco-body h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: 0;
}

.reco-body .price {
    margin-bottom: 0;
    font-size: 16px;
}

.reco-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reco-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reco-specs span {
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    color: #C9CED5;
    font-size: 11px;
    font-weight: 600;
}

.reco-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.reco-actions .btn,
.reco-actions .btn-secondary {
    padding: 10px 14px;
    font-size: 11px;
}

.more-results {
    margin-top: 12px;
}

.more-results .btn-secondary {
    padding: 10px 16px;
    font-size: 12px;
}

.chat-composer {
    flex-shrink: 0;
    padding: 16px 40px 24px;
    border-top: 1px solid var(--border);
    background: rgba(8, 9, 11, 0.60);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.consergeria-prompt-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(184,148,106,.22);
    background: rgba(14,15,18,.75);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
    transition:
        border-color var(--motion-base) ease,
        box-shadow var(--motion-base) ease,
        background var(--motion-base) ease,
        transform var(--motion-base) ease;
}

.consergeria-prompt-bar:focus-within {
    border-color: var(--gold-border-strong);
    box-shadow: 
        0 18px 40px rgba(184, 148, 106, 0.08),
        0 0 15px rgba(184, 148, 106, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.consergeria-prompt-bar textarea {
    width: 100%;
    resize: none;
    min-height: 48px;
    max-height: 120px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
}

.consergeria-prompt-bar textarea:focus {
    border-color: var(--gold-border-strong);
    box-shadow: 0 0 0 3px rgba(184, 148, 106, .12);
}

.consergeria-prompt-bar .btn:disabled {
    opacity: .55;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.consergeria-status {
    margin: 12px 2px 0;
    color: rgba(225, 230, 236, .7);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.45;
    transition: all var(--motion-base) ease;
}

.consergeria-status.is-error { color: #E8A0A0; }
.consergeria-status.is-ok { color: #A8D5B5; }

.chat-composer.is-locked {
    opacity: 1;
}

.chat-composer.is-locked .consergeria-prompt-bar textarea,
.chat-composer.is-locked .consergeria-prompt-bar button {
    pointer-events: none;
    cursor: not-allowed;
    opacity: .46;
}

.chat-composer.is-busy .consergeria-prompt-bar {
    border-color: rgba(184,148,106,.36);
    background: rgba(18, 19, 23, .88);
    box-shadow:
        0 22px 44px rgba(0,0,0,.3),
        0 0 0 1px rgba(184,148,106,.07);
}

.chat-composer.is-busy .consergeria-prompt-bar .btn {
    cursor: wait;
}

.chat-composer.is-locked .consergeria-prompt-bar {
    border-color: rgba(184,148,106,.18);
    background: rgba(12, 13, 16, .72);
}

/* Single-asset detail is a slide-over at every width now that the grid belongs
   to the builder and the chat rail. */
.detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(460px, 100%);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 50;
    transform: translateX(105%);
    transition: transform .3s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,.45);
    background:
        radial-gradient(circle at top right, rgba(184,148,106,.06), transparent 40%),
        #0B0C0F;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid rgba(255,255,255,.04);
}

.detail-panel.is-open {
    transform: translateX(0);
}

.detail-panel[data-empty="1"] .detail-content {
    display: none;
}

.detail-empty {
    padding: 80px 40px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 60px auto 0;
    height: 60%;
}

.detail-empty-crest {
    color: var(--gold);
    opacity: 0.85;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 50%;
    border: 1px solid rgba(184, 148, 106, 0.18);
    background: radial-gradient(circle, rgba(184, 148, 106, 0.05) 0%, transparent 70%);
    animation: crestPulse 3s infinite ease-in-out;
}

@keyframes crestPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
}

.detail-empty h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 28px;
    letter-spacing: 0.5px;
    color: var(--text);
    line-height: 1.25;
}

.detail-empty p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.detail-close {
    display: block;
    position: sticky;
    top: 14px;
    z-index: 5;
    margin: 14px 14px 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(8,9,11,.82);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.detail-hero {
    position: relative;
    height: min(360px, 42vh);
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.detail-hero video.detail-hero-video,
.detail-hero iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    object-fit: contain;
}

.detail-hero .badge {
    top: 18px;
    left: 18px;
}

.detail-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}

.detail-thumbs button {
    flex: 0 0 72px;
    height: 56px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    background: #15171A;
    cursor: pointer;
}

.detail-thumbs button.is-active {
    border-color: rgba(184,148,106,.55);
}

.detail-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-thumbs .thumb-video {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #15171A;
}

.detail-main {
    padding: 28px 28px 40px;
}

.detail-main-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.detail-main-top h2 {
    margin: 8px 0 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 3.2vw, 36px);
    letter-spacing: 0;
    line-height: 1.08;
}

.fav-btn {
    appearance: none;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.8);
    padding: 10px 15px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color var(--motion-base) ease, background var(--motion-base) ease, color var(--motion-base) ease;
}

.fav-btn[aria-pressed="true"] {
    color: var(--gold-light);
    border-color: rgba(184,148,106,.45);
    background: rgba(184,148,106,.12);
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.status-pill {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.035);
    color: rgba(225, 230, 236, .72);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.status-pill.featured {
    color: var(--gold-light);
    border-color: var(--gold-border);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.spec-item {
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.spec-item span {
    display: block;
    color: #8D929A;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.spec-item strong {
    color: #F2F3F5;
    font-size: 14px;
}

.detail-block {
    margin-bottom: 26px;
}

.detail-block h3 {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gold);
}

.detail-block p {
    margin: 0;
    color: #D0D5DC;
    line-height: 1.75;
    font-size: 14px;
}

.highlight-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.highlight-list li {
    position: relative;
    padding-left: 18px;
    color: #DCE0E5;
    font-size: 14px;
    line-height: 1.5;
}

.highlight-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

.pending-prose {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 84px;
}

.pending-copy {
    min-width: 0;
}

.pending-kicker {
    margin-bottom: 6px;
    color: rgba(220, 196, 160, .78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.pending-copy p {
    margin: 0;
    color: #E6EAEE;
}

.typing-orbs {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.typing-orb {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #F4E6CC, var(--gold));
    box-shadow:
        0 0 18px rgba(184, 148, 106, .4),
        0 0 38px rgba(184, 148, 106, .18);
    animation: orbitPulse 1.9s infinite ease-in-out;
}

.typing-orb:nth-child(1) {
    transform: translate(-10px, -7px) scale(.86);
    animation-delay: 0s;
}

.typing-orb:nth-child(2) {
    transform: translate(10px, -5px) scale(.72);
    animation-delay: .22s;
}

.typing-orb:nth-child(3) {
    transform: translate(0, 11px) scale(.94);
    animation-delay: .44s;
}

@keyframes orbitPulse {
    0%, 100% { opacity: .42; }
    50% { opacity: 1; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .72);
    animation: enquiry-scrim-in var(--motion-fast) var(--ease-out) both;
}

.enquiry-modal[hidden] {
    display: none !important;
}

.enquiry-dialog {
    width: min(480px, 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gold-border);
    background: linear-gradient(180deg, #17191D, #101114);
    padding: 28px;
    position: relative;
    box-shadow: var(--shadow-3);
    animation: enquiry-dialog-in var(--motion-base) var(--ease-out) both;
}

.enquiry-dialog h2 {
    margin: 0 0 8px;
    padding-right: 44px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 32px;
    letter-spacing: 0;
}

.enquiry-subtitle {
    margin: 0 0 10px;
    color: var(--muted);
}

.enquiry-titles {
    margin: 0 0 18px;
    color: var(--gold-light);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .02em;
    line-height: 1.45;
}

.enquiry-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.enquiry-field span {
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.enquiry-dialog input,
.enquiry-dialog textarea {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font: inherit;
}

.enquiry-dialog textarea {
    min-height: 72px;
    resize: vertical;
}

.enquiry-dialog input:focus-visible,
.enquiry-dialog textarea:focus-visible,
.enquiry-close:focus-visible,
.enquiry-dialog .btn:focus-visible {
    outline: 2px solid var(--gold-border-strong);
    outline-offset: 2px;
}

.enquiry-dialog .btn {
    width: 100%;
    margin-top: 6px;
}

.enquiry-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

@keyframes enquiry-scrim-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes enquiry-dialog-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .enquiry-modal,
    .enquiry-dialog {
        animation: none;
    }
}

.detail-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 45;
}

.detail-overlay[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .consergeria-page {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    /* Reserve the strip the fixed selection peek occupies. */
    .consergeria-page:has(.selection-peek:not([hidden])) {
        padding-bottom: 72px;
    }

    .consergeria-page .site-header {
        flex-shrink: 0;
    }

    .consergeria-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr);
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    .selection-rail {
        display: block;
        height: 0;
        min-height: 0;
        max-height: none;
        overflow: visible;
        background: none;
        border-left: 0;
    }

    .selection-rail-head {
        display: none;
    }

    .selection-rail-body {
        padding: 0;
        overflow: visible;
    }

    .chat-panel {
        border-left: 0;
        border-right: 0;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .chat-panel .chat-panel-head p {
        display: none;
    }

    .consergeria-thread {
        flex: 1 1 auto;
        min-height: min(30dvh, 180px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .chat-composer {
        flex-shrink: 0;
        padding-top: 10px;
        padding-bottom: 16px;
    }

    .chat-panel-head {
        padding-top: 16px;
        padding-bottom: 12px;
    }

    .chat-panel-head .eyebrow {
        font-size: 10px;
        letter-spacing: 1.6px;
        margin-bottom: 6px;
    }

    .chat-panel-head .eyebrow.vella-speak {
        font-size: 12px;
        letter-spacing: .02em;
    }

    .chat-panel-head h1 {
        margin: 0;
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.1;
    }

    .chat-panel-head p {
        display: none;
    }

    .chat-panel.has-conversation .chat-panel-head {
        display: none;
    }

    .detail-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: min(460px, 100%);
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        z-index: 50;
        transform: translateX(105%);
        transition: transform .3s ease;
        box-shadow: -20px 0 60px rgba(0,0,0,.45);
        overflow-y: auto;
    }

    .detail-panel.is-open {
        transform: translateX(0);
    }

    .detail-close {
        display: block;
    }

    .detail-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 45;
    }

    .detail-overlay[hidden] {
        display: none !important;
    }

    .chat-panel-head,
    .consergeria-thread,
    .chat-composer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .consergeria-prompt-bar {
        gap: 8px;
        padding: 8px;
        border-radius: 18px;
    }

    .consergeria-prompt-bar textarea {
        min-height: 42px;
        padding: 11px 12px;
        font-size: 14px;
    }

    .consergeria-prompt-bar .btn {
        width: auto;
        min-width: 72px;
        padding: 11px 14px;
        font-size: 12px;
        white-space: nowrap;
    }
}

@media (max-height: 820px) {
    .chat-panel-head {
        padding: 14px 24px 10px;
    }

    .chat-panel-head .eyebrow {
        margin-bottom: 6px;
        font-size: 10px;
        letter-spacing: 1.6px;
    }

    .chat-panel-head .eyebrow.vella-speak {
        font-size: 12px;
        letter-spacing: .02em;
    }

    .chat-panel-head h1 {
        margin: 0;
        font-size: clamp(22px, 3vw, 30px);
        line-height: 1.08;
    }

    .chat-panel-head p {
        display: none;
    }

    .chat-panel.has-conversation .chat-panel-head {
        display: none;
    }

    .consergeria-thread {
        min-height: min(28dvh, 160px);
        padding-top: 16px;
        padding-bottom: 12px;
    }

    .chat-composer {
        padding-top: 8px;
        padding-bottom: 12px;
    }

    .consergeria-prompt-bar textarea {
        max-height: 80px;
    }

    .consergeria-status {
        margin-top: 8px;
    }

    .pending-prose {
        min-height: 72px;
    }
}

@media (max-width: 640px) {
    .detail-panel {
        width: 100%;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    /* Keep send beside the textarea — do not stack full-width. */
    .consergeria-prompt-bar {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .consergeria-prompt-bar .btn {
        width: auto;
        align-self: stretch;
    }

    .detail-actions .btn,
    .detail-actions .btn-secondary {
        width: 100%;
    }

    .consergeria-thread {
        min-height: min(28dvh, 160px);
        padding-top: 16px;
        padding-bottom: 12px;
    }

    .privacy-controls {
        margin-top: 8px;
    }
}

/* Privacy controls */
.privacy-controls {
    margin-top: 14px;
}

.privacy-controls summary {
    list-style: none;
    cursor: pointer;
    color: rgba(225, 230, 236, .58);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 1;
}

.privacy-controls summary::-webkit-details-marker {
    display: none;
}

.privacy-controls summary:hover,
.privacy-controls[open] summary {
    opacity: 1;
    color: var(--gold-light);
}

.privacy-controls-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.76rem;
}

.privacy-controls-actions button {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    opacity: 0.68;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

.privacy-controls-actions button:hover {
    opacity: 0.9;
}

.enquiry-dialog :focus-visible {
    outline: 2px solid rgba(184, 148, 106, .7);
    outline-offset: 2px;
}

body.enquiry-open {
    overflow: hidden;
}

/* B2B/B2C Results List in Right Panel */
.detail-results-list {
    padding: 36px 28px 40px;
    animation: fadeIn var(--motion-base) var(--ease-out);
}

.detail-results-header {
    margin-bottom: 20px;
}

.detail-results-header h2 {
    margin: 8px 0 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 24px;
    color: var(--text);
    line-height: 1.15;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Compact Miniature Card */
.mini-card {
    display: flex;
    gap: 16px;
    padding: 13px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(26, 28, 32, 0.5) 0%, rgba(17, 19, 22, 0.7) 100%);
    cursor: pointer;
    transition: all var(--motion-base) ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 148, 106, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    background: linear-gradient(180deg, rgba(32, 34, 40, 0.6) 0%, rgba(20, 22, 26, 0.8) 100%);
}

.mini-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.mini-media {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    background: #0c0d10;
}

.mini-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mini-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.mini-badge {
    align-self: flex-start;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.mini-body h3 {
    margin: 0 0 6px 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.mini-line {
    border-bottom: 1px solid var(--border);
    margin: 8px 0;
}

.mini-location {
    font-size: 12px;
    color: rgba(225, 230, 236, .54);
}

/* Detail Panel Back Button Bar */
.detail-back-bar {
    padding: 14px 28px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 11, 14, 0.76);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.btn-back {
    appearance: none;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(225, 230, 236, .74);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 999px;
    transition: all var(--motion-fast) ease;
    display: inline-flex;
    align-items: center;
}

.btn-back:hover {
    color: var(--gold-light);
    border-color: rgba(184,148,106,.28);
    background: rgba(184,148,106,.08);
}

/* Business hub recommendations inside the chat thread */

.business-reco-rail {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.business-reco-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 240px;
    max-width: 320px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(184, 148, 106, .3);
    background: rgba(21, 23, 26, .92);
    color: inherit;
    text-decoration: none;
    transition:
        transform var(--motion-base) var(--ease-out),
        border-color var(--motion-base) var(--ease-out);
}

.business-reco-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-border-strong, rgba(184, 148, 106, .55));
}

.business-reco-media {
    height: 120px;
}

.business-reco-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-reco-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

.business-reco-body h3 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.business-reco-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.business-reco-cta {
    margin-top: 8px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
