/* Indexo City Scanner V3 additions: credits drawer, "/" hint, supplier link.
   Dark by default (matches the scanner); body.light-mode switches palette. */
:root {
    --cd-bg: #101113;
    --cd-surface: #17191C;
    --cd-ink: #F2F2F2;
    --cd-muted: #9AA0A6;
    --cd-line: #2A2D31;
    --cd-accent: #FFAB00;
    --cd-warn-bg: rgba(255, 171, 0, 0.12);
    --cd-warn: #FFC34D;
    --cd-good-bg: rgba(16, 185, 129, 0.15);
    --cd-good: #34D399;
}
body.light-mode {
    --cd-bg: #FFFFFF;
    --cd-surface: #F6F7F9;
    --cd-ink: #111827;
    --cd-muted: #6B7280;
    --cd-line: #E5E7EB;
    --cd-accent: #B86E00;
    --cd-warn-bg: #FEF3DC;
    --cd-warn: #8A5300;
    --cd-good-bg: #E3F4EC;
    --cd-good: #047857;
}

.cad-slash-hint {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 12px; line-height: 1;
    color: #aaa; border: 1px solid #555; border-radius: 4px;
    padding: 3px 7px; margin-left: 8px; flex: none;
}
body.light-mode .cad-slash-hint { color: #666; border-color: #bbb; }

.cad-examples-head {
    font-family: Consolas, monospace; font-size: 0.7rem; letter-spacing: 0.1em;
    color: #888; padding: 6px 12px 2px; text-transform: uppercase;
}

.cad-supplier-link {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em;
    color: #FFAB00; text-decoration: none; padding: 0 14px; white-space: nowrap;
}
.cad-supplier-link:hover { text-decoration: underline; }
body.light-mode .cad-supplier-link { color: #B86E00; }

.credits-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 100001;
    width: min(420px, 100vw);
    background: var(--cd-bg); color: var(--cd-ink);
    border-left: 1px solid var(--cd-line);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(100%); transition: transform 0.2s ease;
    overflow-y: auto; font-family: 'Inter', sans-serif;
}
.credits-drawer.open { transform: translateX(0); }
.cd-close {
    position: sticky; top: 0; float: right; margin: 12px 12px 0 0;
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--cd-surface); color: var(--cd-ink); border: 1px solid var(--cd-line);
    font-size: 16px; cursor: pointer;
}
.cd-close:focus-visible, .cd-cta a:focus-visible { outline: 2px solid var(--cd-accent); outline-offset: 2px; }
.cd-body { padding: 20px 20px 40px; display: grid; gap: 14px; }
.cd-eyebrow { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--cd-muted); padding-right: 44px; }
.cd-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 24px; line-height: 1.15; margin: 0; padding-right: 44px; }
.cd-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--cd-line); border-radius: 8px; overflow: hidden; }
.cd-facts div { padding: 8px 10px; border-right: 1px solid var(--cd-line); display: grid; gap: 2px; }
.cd-facts div:last-child { border-right: 0; }
.cd-facts span { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 9px; letter-spacing: 0.1em; color: var(--cd-muted); }
.cd-facts b { font-size: 17px; font-variant-numeric: tabular-nums; }
.cd-note { margin: 0; font-size: 13px; line-height: 1.5; background: var(--cd-warn-bg); border-radius: 8px; padding: 10px 12px; }
.cd-empty { color: var(--cd-muted); font-size: 14px; margin: 0; }
.cd-group { display: grid; gap: 6px; }
.cd-role { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--cd-muted); }
.cd-credit {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: start;
    background: var(--cd-surface); border: 1px solid var(--cd-line); border-radius: 8px; padding: 10px 12px;
}
.cd-who { font-weight: 700; font-size: 15px; }
.cd-scope { grid-column: 1 / -1; font-size: 13px; color: var(--cd-muted); }
.cd-st { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.cd-st.unconfirmed { background: var(--cd-warn-bg); color: var(--cd-warn); }
.cd-st.supplier_confirmed { background: rgba(255, 171, 0, 0.2); color: var(--cd-accent); }
.cd-st.verified { background: var(--cd-good-bg); color: var(--cd-good); }
.cd-cta { display: grid; gap: 6px; border: 1px dashed var(--cd-line); border-radius: 8px; padding: 14px; font-size: 14px; margin-top: 6px; }
.cd-cta span { color: var(--cd-muted); }
.cd-cta a { color: var(--cd-accent); font-weight: 700; text-decoration: none; }
.cd-cta a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .credits-drawer { transition: none; } }

/* =========================================================
   V3.1 LAYOUT PASS
   One 56px top bar: logo · map tools · command search · supplier link + view tools.
   The command bar is docked inside it; suggestions and the log drop DOWN from it,
   so nothing floats over the middle of the map.
   ========================================================= */
:root {
    --tb-h: 56px;
    --tb-bg: #141518;
    --tb-ink: #D7DADF;
    --tb-ink-strong: #FFFFFF;
    --tb-muted: #8B9097;
    --tb-line: #2A2D33;
    --tb-hover: #22252A;
    --tb-field: #1D1F23;
    --tb-accent: #FFAB00;
    --tb-menu: #1D1F23;
    --tb-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
body.light-mode {
    --tb-bg: #FFFFFF;
    --tb-ink: #3A3F47;
    --tb-ink-strong: #111418;
    --tb-muted: #7A808A;
    --tb-line: #E3E6EA;
    --tb-hover: #F2F4F6;
    --tb-field: #F4F5F7;
    --tb-accent: #C27A00;
    --tb-menu: #FFFFFF;
    --tb-shadow: 0 8px 24px rgba(17, 20, 24, 0.12);
}

/* ---- top bar ---- */
.cad-toolbar {
    height: var(--tb-h) !important;
    background: var(--tb-bg) !important;
    border-bottom: 1px solid var(--tb-line) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 8px 0 max(16px, env(safe-area-inset-left, 0px)) !important;
    gap: 2px;
}
.tb-logo {
    font-family: 'Nunito', 'Arial Rounded MT Bold', 'Montserrat', sans-serif;
    font-weight: 900; font-size: 22px; letter-spacing: 0.02em;
    color: var(--tb-ink-strong); text-decoration: none; margin-right: 6px; flex: none;
}
.tb-logo span { color: #F7941D; display: inline-block; transform: scaleX(1.18); margin: 0 0.04em; }
#floating-logo { display: none !important; }

.cad-tool {
    width: 40px !important; height: 40px !important; border-radius: 8px;
    color: var(--tb-ink) !important; border-bottom: 0 !important;
}
.cad-tool:hover { background: var(--tb-hover) !important; color: var(--tb-ink-strong) !important; }
.cad-tool.active, .cad-tool.active-tool { background: rgba(255, 171, 0, 0.14) !important; color: var(--tb-accent) !important; }
.cad-tool svg { width: 19px; height: 19px; }
.cad-separator { background: var(--tb-line) !important; opacity: 1 !important; margin: 0 6px !important; height: 22px !important; }
.cad-tool::after {
    top: 48px !important; background: var(--tb-ink-strong) !important; color: var(--tb-bg) !important;
    border: 0 !important; font-family: 'Inter', sans-serif !important; font-weight: 600; letter-spacing: 0.02em;
}

.cad-supplier-link {
    height: 36px; display: inline-flex; align-items: center; padding: 0 14px !important; margin-right: 6px;
    border-radius: 8px; border: 1px solid var(--tb-line);
    color: var(--tb-ink-strong) !important; letter-spacing: 0.04em !important;
}
.cad-supplier-link:hover { border-color: var(--tb-accent); text-decoration: none !important; }

/* dropdown menus under the bar */
.cad-context-menu {
    background: var(--tb-menu) !important; border: 1px solid var(--tb-line) !important;
    border-radius: 10px; box-shadow: var(--tb-shadow) !important; padding: 6px !important; overflow: hidden;
}
.cad-context-item { color: var(--tb-ink) !important; border-left: 0 !important; border-radius: 6px; padding: 8px 10px !important; font-size: 0.8rem !important; }
.cad-context-item:hover { background: var(--tb-accent) !important; color: #111 !important; }

/* ---- command search, docked in the bar ---- */
.autocad-bar {
    position: fixed !important;
    top: 8px !important; bottom: auto !important;
    left: 400px !important; right: auto !important; transform: none !important;
    width: min(560px, calc(100vw - 400px - 330px)) !important;
    height: 40px !important; min-height: 0 !important;
    padding: 0 10px 0 12px !important;
    background: var(--tb-field) !important;
    border: 1px solid var(--tb-line) !important; border-radius: 10px !important;
    box-shadow: none !important; backdrop-filter: none !important;
    z-index: 2100 !important; flex-direction: row !important; flex-wrap: nowrap !important;
}
.autocad-bar:focus-within { border-color: var(--tb-accent) !important; box-shadow: 0 0 0 3px rgba(255, 171, 0, 0.18) !important; }
.autocad-bar .drag-handle { display: none !important; }
.autocad-prompt {
    font-family: 'JetBrains Mono', Consolas, monospace !important; font-size: 11px !important;
    letter-spacing: 0.08em; color: var(--tb-accent) !important; margin-right: 10px !important; flex: none;
}
.autocad-input {
    color: var(--tb-ink-strong) !important; font-family: 'JetBrains Mono', Consolas, monospace !important;
    font-size: 14px !important; min-width: 0; flex: 1;
}
.autocad-input::placeholder { color: var(--tb-muted) !important; }
.cad-slash-hint { color: var(--tb-muted) !important; border-color: var(--tb-line) !important; background: var(--tb-bg); }

/* suggestions + log drop down from the bar */
.autocad-suggestions {
    top: 46px !important; bottom: auto !important; left: -1px !important; width: calc(100% + 2px) !important;
    background: var(--tb-menu) !important; border: 1px solid var(--tb-line) !important; border-radius: 10px !important;
    box-shadow: var(--tb-shadow); padding: 6px; overflow: hidden;
}
.cad-suggestion-item {
    color: var(--tb-ink) !important; border-bottom: 0 !important; border-radius: 6px; padding: 9px 10px !important;
    font-family: 'JetBrains Mono', Consolas, monospace !important; font-size: 13px !important; align-items: center;
}
.cad-suggestion-item:hover, .cad-suggestion-item.active { background: var(--tb-hover) !important; color: var(--tb-ink-strong) !important; }
.cad-suggestion-item .shortcut-key {
    font-family: 'Inter', sans-serif; border: 0 !important; opacity: 1 !important; color: var(--tb-muted); font-size: 12px !important;
}
.cad-examples-head { color: var(--tb-muted) !important; padding: 6px 10px 4px !important; }

#cadHistory {
    position: absolute !important; top: 46px; left: -1px; width: calc(100% + 2px) !important;
    max-height: 132px !important; margin: 0 !important; padding: 8px 12px !important;
    background: var(--tb-menu) !important; border: 1px solid var(--tb-line); border-radius: 10px;
    box-shadow: var(--tb-shadow); color: var(--tb-ink) !important;
    font-family: 'JetBrains Mono', Consolas, monospace !important; font-size: 12px !important;
    opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
#cadHistory.show { opacity: 1; visibility: visible; }
#cadHistory > div { border-bottom: 0 !important; }
body.light-mode #cadHistory span[style*="#0f0"] { color: #0F7B3E !important; }
body.light-mode #cadHistory span[style*="#fff"] { color: var(--tb-ink-strong) !important; }
.autocad-bar:has(.autocad-suggestions[style*="flex"]) #cadHistory { opacity: 0; visibility: hidden; }

/* "AI found N projects" banner sits below the bar, not over it */
#tourBanner { top: 72px !important; }

/* ---- carousel: lighter in light mode, placeholder plates ---- */
body.light-mode .bottom-carousel-container {
    background: linear-gradient(to top, rgba(244, 245, 247, 0.97) 0%, rgba(244, 245, 247, 0.85) 55%, rgba(244, 245, 247, 0) 100%) !important;
}
.img-ph {
    width: 100%; height: 100%; min-height: 110px; display: grid; place-items: center;
    background:
        linear-gradient(135deg, rgba(255, 171, 0, 0.16), rgba(255, 171, 0, 0.04)),
        repeating-linear-gradient(0deg, transparent 0 15px, rgba(128, 128, 128, 0.12) 15px 16px),
        repeating-linear-gradient(90deg, transparent 0 15px, rgba(128, 128, 128, 0.12) 15px 16px);
    color: var(--tb-accent); font: 800 26px 'Montserrat', sans-serif; letter-spacing: 0.04em;
}
.micro-trailer-popup .img-ph { min-height: 90px; height: 90px; }

/* ---- narrower screens: search moves to its own row under the bar ---- */
@media (max-width: 1180px) {
    .cad-supplier-link { display: none; }
}
@media (max-width: 1020px) {
    .autocad-bar { top: 64px !important; left: 12px !important; width: calc(100vw - 24px) !important; }
    #tourBanner { top: 116px !important; }
}
@media (max-width: 640px) {
    .cad-toolbar { overflow-x: auto; }
    .cad-tool::after { display: none; }
}

/* keep the bar calm: one divider after the logo, no redundant search icon */
.cad-toolbar > .cad-separator { display: none !important; }
.cad-toolbar > .tb-logo + .cad-separator { display: block !important; }
.cad-tool[data-cmd="SEARCH (/)"] { display: none !important; }
.autocad-bar { left: 380px !important; width: min(560px, calc(100vw - 380px - 330px)) !important; }
@media (max-width: 1180px) { .autocad-bar { width: calc(100vw - 380px - 190px) !important; } }
@media (max-width: 1020px) { .autocad-bar { top: 64px !important; left: 12px !important; width: calc(100vw - 24px) !important; } }

/* tour banner: above the carousel, never on top of the search */
#tourBanner {
    top: auto !important; bottom: 318px !important;
    background: var(--tb-menu) !important; border: 1px solid var(--tb-line) !important;
    box-shadow: var(--tb-shadow) !important; border-radius: 10px !important;
}
#tourBanner #tourText { color: var(--tb-ink-strong) !important; font-family: 'JetBrains Mono', Consolas, monospace !important; font-size: 13px !important; }
#tourBanner #tourStartBtn { border-radius: 6px !important; }
body.light-mode #cadHistory span[style*="rgb(0, 255, 0)"],
body.light-mode #cadHistory span[style*="#0f0"] { color: #0F7B3E !important; }
body.light-mode #cadHistory span[style*="#ff4444"] { color: #B42318 !important; }

/* Featured / In view switch */
.bottom-carousel-container > div:first-child > div {
    background: var(--tb-menu) !important; border: 1px solid var(--tb-line) !important; border-radius: 10px !important;
}
#btnFeatured, #btnVisible { border-radius: 7px !important; font-family: 'Inter', sans-serif !important; }
#btnFeatured[style*="transparent"], #btnVisible[style*="transparent"] { color: var(--tb-muted) !important; }
@media (max-width: 640px) {
    .cad-tool { flex: none !important; width: 36px !important; }
    .bottom-carousel-container > div:first-child, .carousel-scroll-area { padding-left: 16px !important; padding-right: 16px !important; }
}

/* =========================================================
   V3.2: search docked in the bar flow, labelled tools,
   intro panel, status pins, data-first cards
   ========================================================= */
:root {
    --st-verified: #10B981;
    --st-confirmed: #FFAB00;
    --st-unconfirmed: #FFAB00;
    --panel-bg: rgba(20, 21, 24, 0.94);
}
body.light-mode { --st-verified: #059669; --st-confirmed: #E89A00; --st-unconfirmed: #D98E00; --panel-bg: rgba(255, 255, 255, 0.96); }

/* search lives in the toolbar's own flow now */
.autocad-bar.docked {
    position: relative !important; top: auto !important; left: auto !important; right: auto !important;
    flex: 1 1 auto; max-width: 600px !important; width: auto !important; min-width: 220px;
    margin: 0 16px !important;
}
.cad-toolbar > div[style*="margin-left: auto"] { margin-left: 0 !important; flex: none; }
.cad-toolbar { justify-content: space-between; }

.cad-tool.has-label { width: auto !important; padding: 0 10px !important; gap: 7px; }
.cad-tool.has-label::after { display: none !important; }
.tool-label { font: 600 13px 'Inter', sans-serif; white-space: nowrap; }
.cad-tool[data-cmd="TOGGLE THEME"]::after { content: 'Light / dark' !important; left: auto !important; right: 0; transform: none !important; }

@media (max-width: 1440px) { .cad-toolbar > div[style] .tool-label { display: none; } .cad-toolbar > div[style] .cad-tool.has-label { width: 40px !important; padding: 0 !important; } }
@media (max-width: 1240px) { .tool-label { display: none; } .cad-tool.has-label { width: 40px !important; padding: 0 !important; } }
@media (max-width: 1020px) {
    .autocad-bar.docked { position: fixed !important; top: 64px !important; left: 12px !important; width: calc(100vw - 24px) !important; max-width: none !important; margin: 0 !important; }
}

/* 1. intro panel */
.intro-panel {
    position: fixed; top: 72px; left: max(16px, env(safe-area-inset-left, 0px)); z-index: 900;
    width: 340px; padding: 18px 18px 16px;
    background: var(--panel-bg); color: var(--tb-ink-strong);
    border: 1px solid var(--tb-line); border-radius: 12px; box-shadow: var(--tb-shadow);
    backdrop-filter: blur(8px); font-family: 'Inter', sans-serif; display: grid; gap: 10px;
}
.intro-close {
    position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 6px;
    background: transparent; border: 0; color: var(--tb-muted); cursor: pointer; font-size: 13px;
}
.intro-close:hover { background: var(--tb-hover); color: var(--tb-ink-strong); }
.intro-eyebrow { font: 500 11px 'JetBrains Mono', Consolas, monospace; letter-spacing: 0.1em; color: var(--tb-accent); }
.intro-title { font: 800 22px/1.15 'Montserrat', sans-serif; margin: 0; padding-right: 20px; text-wrap: balance; color: var(--tb-ink-strong); }
.intro-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--tb-ink); }
.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--tb-line); border-radius: 8px; overflow: hidden; }
.intro-stats div { padding: 8px 10px; display: grid; gap: 1px; border-right: 1px solid var(--tb-line); }
.intro-stats div:last-child { border-right: 0; }
.intro-stats b { font: 700 20px 'Montserrat', sans-serif; font-variant-numeric: tabular-nums; color: var(--tb-ink-strong); }
.intro-stats span { font: 500 10px 'JetBrains Mono', Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tb-muted); }
.intro-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--tb-ink); }
.intro-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.lg.st-verified { background: var(--st-verified); }
.lg.st-confirmed { background: var(--st-confirmed); }
.lg.st-unconfirmed { background: transparent; border: 2px solid var(--st-unconfirmed); }
.intro-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.intro-search {
    font: 600 13px 'Inter', sans-serif; color: var(--tb-ink-strong); background: var(--tb-field);
    border: 1px solid var(--tb-line); border-radius: 8px; padding: 7px 10px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.intro-search kbd { font: 500 11px 'JetBrains Mono', monospace; color: var(--tb-muted); border: 1px solid var(--tb-line); border-radius: 4px; padding: 0 5px; }
.intro-actions a { font-size: 13px; font-weight: 600; color: var(--tb-accent); text-decoration: none; }
.intro-actions a:hover { text-decoration: underline; }
.intro-panel.min { width: auto; padding: 8px 12px; cursor: pointer; gap: 0; }
.intro-panel.min > :not(.intro-eyebrow) { display: none; }
.intro-panel.min .intro-eyebrow::after { content: '  · ABOUT ▸'; color: var(--tb-muted); }
@media (max-width: 1020px) { .intro-panel { top: 118px; } }
@media (max-width: 640px) { .intro-panel { width: calc(100vw - 32px); } .intro-text, .intro-legend { display: none; } }

/* 2. status pins: count inside, colour = verification */
.yellow-pin-icon { background: none !important; border: 0 !important; }
.pin-wrap-v32 { width: 30px; height: 36px; display: flex; justify-content: center; }
.pin-main {
    width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    display: grid; place-items: center; transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.pin-main b { transform: rotate(45deg); font: 700 11px 'JetBrains Mono', Consolas, monospace; line-height: 1; }
.pin-main.st-unconfirmed { background: #FFFFFF; border: 2.5px solid var(--st-unconfirmed); }
.pin-main.st-unconfirmed b { color: #8A5300; }
.pin-main.st-confirmed { background: var(--st-confirmed); border: 2px solid #1A1A1A; }
.pin-main.st-confirmed b { color: #111; }
.pin-main.st-verified { background: var(--st-verified); border: 2px solid #0B3B2C; }
.pin-main.st-verified b { color: #fff; }
.pin-main.st-empty { width: 18px; height: 18px; opacity: 0.6; }
.pin-main.is-hot { transform: rotate(-45deg) scale(1.3); box-shadow: 0 0 0 4px rgba(255, 171, 0, 0.35), 0 6px 14px rgba(0, 0, 0, 0.4); }

/* popup: data first */
.micro-trailer-popup .pop-title { font-weight: 700; font-size: 14px; }
.micro-trailer-popup .pop-meta { font: 500 11px 'JetBrains Mono', Consolas, monospace; opacity: 0.75; margin-top: 2px; }

/* 4. data-first cards (one frame for every building, room for a Featured tag) */
.project-card-cinematic { min-height: 0 !important; flex: 0 0 230px !important; }
.project-card-cinematic .vc { padding: 14px 14px 12px; display: grid; gap: 8px; height: 100%; align-content: start; }
.vc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vc-code {
    font: 700 10px 'JetBrains Mono', Consolas, monospace; letter-spacing: 0.06em;
    color: var(--tb-accent); background: rgba(255, 171, 0, 0.14); border-radius: 4px; padding: 3px 6px; flex: none;
}
.vc-type { font-size: 11.5px; color: var(--tb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-featured {
    margin-left: auto; font: 700 10px 'Inter', sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
    color: #111; background: var(--st-confirmed); border-radius: 999px; padding: 2px 8px;
}
.vc-name { margin: 0; font: 700 15px/1.25 'Inter', sans-serif; color: var(--tb-ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-credits { display: flex; align-items: center; gap: 7px; font: 500 12px 'JetBrains Mono', Consolas, monospace; color: var(--tb-ink); }
.vc-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.vc-dot.st-verified { background: var(--st-verified); }
.vc-dot.st-confirmed { background: var(--st-confirmed); }
.vc-dot.st-unconfirmed { border: 2px solid var(--st-unconfirmed); width: 10px; height: 10px; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 22px; }
.vc-tag { font-size: 11px; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--tb-line); color: var(--tb-ink); white-space: nowrap; }
.project-card-cinematic { background: var(--tb-menu) !important; border: 1px solid var(--tb-line) !important; }
.project-card-cinematic.active-card { border-color: var(--tb-accent) !important; box-shadow: 0 0 0 3px rgba(255, 171, 0, 0.22) !important; }
.bottom-carousel-container { height: auto !important; padding-bottom: 20px !important; }

/* 6. thin scrollbar under the cards */
.carousel-scroll-area { scrollbar-width: thin; scrollbar-color: var(--tb-accent) transparent; padding-bottom: 10px !important; }
.carousel-scroll-area::-webkit-scrollbar { height: 4px !important; }
.carousel-scroll-area::-webkit-scrollbar-track { background: transparent !important; }
.carousel-scroll-area::-webkit-scrollbar-thumb { background: rgba(255, 171, 0, 0.6) !important; border-radius: 4px; }

/* =========================================================
   V3.3 smart search results panel
   ========================================================= */
.yellow-pin-icon.dim { opacity: 0.18; filter: grayscale(1); }
.smart-panel {
    position: fixed; top: 72px; left: max(16px, env(safe-area-inset-left, 0px)); z-index: 950;
    width: 380px; max-height: calc(100vh - 72px - 250px); min-height: 160px;
    display: flex; flex-direction: column;
    background: var(--panel-bg); color: var(--tb-ink-strong);
    border: 1px solid var(--tb-line); border-radius: 12px; box-shadow: var(--tb-shadow);
    backdrop-filter: blur(8px); font-family: 'Inter', sans-serif; overflow: hidden;
}
.sp-head { display: flex; gap: 10px; align-items: flex-start; padding: 14px 14px 8px 16px; }
.sp-q { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--tb-ink-strong); }
.sp-close { width: 28px; height: 28px; border-radius: 6px; border: 0; background: transparent; color: var(--tb-muted); cursor: pointer; flex: none; }
.sp-close:hover { background: var(--tb-hover); color: var(--tb-ink-strong); }
.sp-understood { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 16px 12px; }
.sp-k { font: 500 10px 'JetBrains Mono', Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tb-muted); margin-right: 2px; }
.sp-none { font-size: 12px; color: var(--tb-muted); }
.sp-chip {
    font: 600 12px 'Inter', sans-serif; color: var(--tb-ink-strong);
    background: rgba(255, 171, 0, 0.14); border: 1px solid rgba(255, 171, 0, 0.45);
    border-radius: 999px; padding: 4px 8px 4px 10px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.sp-chip b { font-weight: 400; color: var(--tb-muted); font-size: 11px; }
.sp-chip:hover b { color: var(--tb-ink-strong); }
.sp-switch { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--tb-line); }
.sp-switch button {
    font: 600 13px 'Inter', sans-serif; color: var(--tb-muted); background: none; border: 0;
    border-bottom: 2px solid transparent; padding: 8px 8px 9px; cursor: pointer;
}
.sp-switch button span { font: 500 11px 'JetBrains Mono', monospace; margin-left: 4px; }
.sp-switch button[aria-selected="true"] { color: var(--tb-ink-strong); border-bottom-color: var(--tb-accent); }
.sp-list { overflow-y: auto; padding: 8px; display: grid; gap: 6px; align-content: start; flex: 1; }
.sp-item {
    display: grid; gap: 4px; text-align: left; width: 100%; font: inherit; color: inherit;
    background: var(--tb-field); border: 1px solid var(--tb-line); border-radius: 8px; padding: 10px 12px;
}
.sp-building { cursor: pointer; }
.sp-building:hover { border-color: var(--tb-accent); }
.sp-title { font-weight: 700; font-size: 14px; }
.sp-sub { font-size: 12px; color: var(--tb-muted); }
.sp-rows { display: grid; gap: 2px; margin-top: 4px; }
.sp-row {
    display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left;
    font: 500 13px 'Inter', sans-serif; color: var(--tb-ink); background: none; border: 0; border-radius: 6px; padding: 6px 6px; cursor: pointer;
}
.sp-row:hover { background: var(--tb-hover); color: var(--tb-ink-strong); }
.sp-row i { font-style: normal; color: var(--tb-muted); font-size: 12px; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.sp-tags span { font-size: 11px; border: 1px solid var(--tb-line); border-radius: 4px; padding: 2px 6px; color: var(--tb-ink); }
.sp-tags i { font-style: normal; color: var(--tb-muted); }
.sp-empty { padding: 16px 8px; font-size: 13px; color: var(--tb-ink); line-height: 1.5; }
.sp-empty b { display: block; color: var(--tb-ink-strong); margin-bottom: 4px; }
.sp-notes { border-top: 1px solid var(--tb-line); padding: 8px 16px 10px; display: grid; gap: 4px; }
.sp-notes p { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--tb-muted); }
.cad-suggestion-item span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 1020px) { .smart-panel { top: 118px; max-height: calc(100vh - 118px - 230px); } }
@media (max-width: 640px) { .smart-panel { width: calc(100vw - 32px); } }

.intro-eyebrow { display: flex; align-items: center; gap: 6px; }
.intro-city {
    font: 600 11px 'JetBrains Mono', Consolas, monospace; letter-spacing: 0.08em; color: var(--tb-accent);
    background: transparent; border: 1px solid var(--tb-line); border-radius: 6px; padding: 3px 6px; cursor: pointer;
}
.intro-city option { color: #111; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.intro-panel.min .intro-eyebrow .intro-city { pointer-events: none; }

/* phone: the intro starts as a slim pill docked under the search bar, so the map gets the screen */
@media (max-width: 640px) {
    .intro-panel { top: 112px !important; left: 12px; width: calc(100vw - 24px); padding: 14px 14px 12px; gap: 8px; }
    .intro-title { font-size: 18px; }
    .intro-stats div { padding: 6px 8px; }
    .intro-stats b { font-size: 16px; }
    .intro-panel.min { width: auto; max-width: calc(100vw - 24px); padding: 4px 6px 4px 10px; border-radius: 999px; }
    .intro-panel.min .intro-eyebrow > span { display: none; }
    .intro-panel.min .intro-eyebrow .intro-city { pointer-events: auto; min-height: 32px; }
    .intro-panel.min .intro-eyebrow::after { content: 'ABOUT ▸'; padding: 6px 4px; }
    #cadHistory { max-height: 30vh; overflow-y: auto; }
}

/* full-screen app mode (Add to Home Screen): keep the bar clear of the iPhone clock, battery and home line */
.cad-toolbar { padding-top: env(safe-area-inset-top, 0px) !important; height: calc(var(--tb-h) + env(safe-area-inset-top, 0px)) !important; }
@media (max-width: 1020px) { .autocad-bar.docked { top: calc(64px + env(safe-area-inset-top, 0px)) !important; } }
@media (max-width: 640px) { .intro-panel { top: calc(112px + env(safe-area-inset-top, 0px)) !important; } }
.bottom-carousel-container { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important; }

/* Near me */
.near-me-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid #333; background: rgba(0,0,0,0.6); color: #E8EBEE; font: 700 0.78rem 'Inter', sans-serif; cursor: pointer; }
.near-me-btn:hover { border-color: #4DA3FF; }
.near-me-btn:focus-visible { outline: 2px solid #4DA3FF; outline-offset: 2px; }
.near-me-btn.on { color: #4DA3FF; border-color: #4DA3FF; }
.near-me-btn.busy svg { animation: nearSpin 1s linear infinite; }
@keyframes nearSpin { to { transform: rotate(360deg); } }
.user-dot span { display: block; width: 18px; height: 18px; border-radius: 50%; background: #4DA3FF; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(77,163,255,.6); animation: userPulse 2s infinite; box-sizing: border-box; }
@keyframes userPulse { 0% { box-shadow: 0 0 0 0 rgba(77,163,255,.55); } 70% { box-shadow: 0 0 0 14px rgba(77,163,255,0); } 100% { box-shadow: 0 0 0 0 rgba(77,163,255,0); } }
@media (prefers-reduced-motion: reduce) { .user-dot span, .near-me-btn.busy svg { animation: none; } }
.near-toast { position: fixed; left: 50%; top: calc(120px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -8px); z-index: 2000; max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 10px; background: rgba(15,18,22,.95); color: #fff; border: 1px solid #2A3038; font: 500 13px/1.4 'Inter', sans-serif; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.near-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { .near-toast { top: calc(160px + env(safe-area-inset-top, 0px)); } }

/* Saved spots */
.near-me-btn { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.spots-btn { margin-left: 6px; }
.spot-pin span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #FFAB00; color: #111; font-size: 14px; border: 2px solid #111; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.spot-sheet { position: fixed; inset: 0; z-index: 3000; display: none; }
.spot-sheet.open { display: block; }
.spot-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.spot-panel { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(480px, 100vw); max-height: 75vh; overflow-y: auto;
    background: #12151A; color: #E8EBEE; border: 1px solid #2A3038; border-bottom: 0; border-radius: 16px 16px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); font-family: 'Inter', sans-serif; }
.spot-panel header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.spot-panel h2 { margin: 0; font: 800 18px 'Montserrat', sans-serif; }
.spot-panel header button { width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; color: #AEB7C1; font-size: 16px; cursor: pointer; }
.spot-save label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.spot-save-row { display: flex; gap: 8px; }
.spot-save input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid #2A3038; background: #0B0D10; color: #fff; font-size: 16px; }
.spot-save input:focus { outline: 2px solid #FFAB00; outline-offset: 1px; }
.spot-save button, .spot-here { min-height: 44px; padding: 0 18px; border-radius: 8px; border: 0; background: #FFAB00; color: #111; -webkit-text-fill-color: #111; font-weight: 700; font-size: 15px; cursor: pointer; }
.spot-here { width: 100%; }
.spot-save p { margin: 6px 0 0; font-size: 12px; color: #8C96A1; }
.spot-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.spot-list li { display: flex; align-items: stretch; gap: 6px; }
.spot-open { flex: 1; min-width: 0; text-align: left; padding: 10px 12px; border-radius: 8px; border: 1px solid #2A3038; background: #181C22; color: #E8EBEE; cursor: pointer; display: grid; gap: 2px; }
.spot-open b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-open small { font-size: 12px; color: #8C96A1; }
.spot-act { min-width: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid #2A3038; background: transparent; color: #C9D0D7; font-size: 13px; font-weight: 600; cursor: pointer; }
.spot-empty { color: #8C96A1; font-size: 13px; padding: 8px 2px; }
.spot-open:focus-visible, .spot-act:focus-visible, .spot-here:focus-visible, .spot-save button:focus-visible { outline: 2px solid #FFAB00; outline-offset: 2px; }
@media (max-width: 640px) { .near-me-btn span { font-size: 0.75rem; } .bottom-carousel-container > div:first-child { padding: 0 8px !important; } }

/* Location levels */
.pin-approx .pin-main { opacity: .78; outline: 2px dashed rgba(255,171,0,.9); outline-offset: 2px; }
.cd-loc { margin: 6px 0 10px; font-size: 12.5px; color: #C9D0D7; }
.cd-loc.approx { color: #FFC24D; }
.pop-approx { margin-top: 4px; font-size: 0.68rem; color: #FFC24D; }

/* Contact this company (button in each credit row) */
.cd-credit .cd-contact { grid-column: 1 / -1; justify-self: start; margin-top: 2px; color: var(--cd-accent); border-color: var(--cd-accent); }
/* Credits panel: roles in bold, link to the full project page */
.cd-role { font-family: Inter, system-ui, sans-serif !important; font-size: 13px !important; font-weight: 800; letter-spacing: .01em !important; color: var(--cd-ink, #F1F3F5) !important; }
.cd-open { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 4px; padding: 11px 14px; min-height: 44px; border-radius: 10px;
  background: #FFAB00; color: #111 !important; -webkit-text-fill-color: #111; font-weight: 700; font-size: 14px; text-decoration: none; }
.cd-open:hover { filter: brightness(1.05); }
.cd-open:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* building you came back to from its project page */
.pin-here { animation: pinHere 1s ease-in-out 3; }
@keyframes pinHere { 50% { transform: scale(1.35); filter: drop-shadow(0 0 10px #FFAB00); } }

/* ===== Project panel v2: wider, team by layer, search, companies open in place ===== */
:root { --cd-l1: #FFAB00; --cd-l2: #7FA7FF; --cd-l3: #5FD3A5; }
body.light-mode { --cd-l1: #D97706; --cd-l2: #3B6FE0; --cd-l3: #0F9F6E; }
.credits-drawer { width: min(560px, 100vw); }
@media (min-width: 1400px) { .credits-drawer { width: 620px; } }
.cd-open { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.cd-open b { display: block; font-size: 15px; }
.cd-open small { display: block; font-weight: 500; font-size: 12px; opacity: .75; }
.cd-teamhead { display: grid; gap: 8px; position: sticky; top: 0; z-index: 2; background: var(--cd-bg); padding: 8px 0 6px; margin-top: 4px; }
.cd-teamhead h3 { margin: 0; font: 800 18px Montserrat, Inter, sans-serif; display: flex; align-items: center; gap: 8px; }
.cd-teamhead h3 span { font: 700 12px 'JetBrains Mono', monospace; color: var(--cd-muted); }
.cd-search { font: 400 15px Inter, sans-serif; color: var(--cd-ink); background: var(--cd-surface); border: 1px solid var(--cd-line); border-radius: 10px; padding: 9px 12px; min-height: 42px; width: 100%; box-sizing: border-box; }
.cd-search:focus { outline: 2px solid var(--cd-accent); outline-offset: 0; border-color: transparent; }
#cdTeam { display: grid; gap: 14px; }
.cd-layer { display: grid; gap: 6px; }
.cd-layerhead { display: flex; align-items: center; gap: 8px; font: 700 13px Inter, sans-serif; color: var(--cd-ink); padding-bottom: 6px; border-bottom: 2px solid var(--lc); }
.cd-layerhead span { margin-left: auto; font: 700 12px 'JetBrains Mono', monospace; color: var(--lc); }
.cd-layer .cd-role { margin-top: 4px; }
.cd-credit { display: block; padding: 0; border-left: 3px solid var(--lc); overflow: hidden; }
.cd-head { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 10px 12px; cursor: pointer; }
.cd-head:hover { background: rgba(127,127,127,.06); }
.cd-head:focus-visible { outline: 2px solid var(--cd-accent); outline-offset: -2px; }
.cd-head .cd-who::after { content: "▾"; font-size: 11px; color: var(--cd-muted); margin-left: 6px; display: inline-block; transition: transform .15s; }
.cd-head[aria-expanded="true"] .cd-who::after { transform: rotate(180deg); }
.cd-scope1 { grid-column: 1 / -1; font-size: 13px; color: var(--cd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-head[aria-expanded="true"] .cd-scope1 { display: none; }
.cd-more { padding: 0 12px 12px; display: grid; gap: 10px; font-size: 13.5px; }
.cd-more dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 5px 12px; }
.cd-more dt { color: var(--cd-muted); font-size: 12.5px; }
.cd-more dd { margin: 0; overflow-wrap: anywhere; }
.cd-more dd small { color: var(--cd-muted); }
.cd-more a { color: var(--cd-accent); }
.cd-others { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cd-others span { width: 100%; font-size: 12.5px; color: var(--cd-muted); }
.cd-other { font: 600 12px Inter, sans-serif; color: var(--cd-ink); background: transparent; border: 1px solid var(--cd-line); border-radius: 999px; padding: 5px 10px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-other:hover { border-color: var(--cd-accent); }
.cd-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cd-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--cd-accent); color: #111 !important; -webkit-text-fill-color: #111; font: 700 12px Inter, sans-serif; text-decoration: none; }
@media (max-width: 640px) { .cd-more dl { grid-template-columns: 1fr; } }

/* ===== Map | Inspiration switch and photo reel (phones) ===== */
.ix-switch, .ix-reel { display: none; }
@media (max-width: 640px) {
  /* the city box is replaced by the switch on phones */
  .intro-panel { display: none !important; }
  .ix-switch { display: flex; position: fixed; z-index: 100002; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 112px);
    background: rgba(20,23,28,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 3px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
  .ix-switch button { border: 0; background: transparent; color: #DDE2E7; font: 700 13.5px Inter, sans-serif; padding: 8px 18px; border-radius: 999px; min-height: 38px; cursor: pointer; }
  .ix-switch button[aria-selected="true"] { background: #FFAB00; color: #111; -webkit-text-fill-color: #111; }
  .ix-switch button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  body.ix-inspiring .ix-switch { top: calc(env(safe-area-inset-top, 0px) + 12px); background: rgba(0,0,0,.45); }
  body.light-mode:not(.ix-inspiring) .ix-switch { background: rgba(255,255,255,.95); border-color: #E3E6EA; }
  body.light-mode:not(.ix-inspiring) .ix-switch button[aria-selected="false"] { color: #334155; }
  body:has(.credits-drawer.open) .ix-switch { display: none; }

  .ix-reel { display: block; position: fixed; inset: 0; z-index: 100000; background: #000; color: #fff; font-family: Inter, sans-serif; }
  .ix-reel[hidden] { display: none; }
  .ix-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ix-feed::-webkit-scrollbar { display: none; }
  .ix-slide { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #0B0D10; }
  .ix-photos { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ix-photos::-webkit-scrollbar { display: none; }
  .ix-photos img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; background: #14171C; }
  .ix-photos:focus-visible { outline: 2px solid #FFAB00; outline-offset: -4px; }
  .ix-dots { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 64px); left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
  .ix-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
  .ix-dots i.on { background: #fff; width: 16px; border-radius: 3px; }
  .ix-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 16px calc(env(safe-area-inset-bottom, 0px) + 22px); background: linear-gradient(transparent, rgba(0,0,0,.55) 30%, rgba(0,0,0,.9)); display: grid; gap: 8px; pointer-events: none; }
  .ix-info > * { pointer-events: auto; }
  .ix-where { font: 600 11.5px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #FFC24D; }
  .ix-info h2 { margin: 0; font: 800 26px/1.15 Montserrat, Inter, sans-serif; text-wrap: balance; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
  .ix-team { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 14px; color: #E6E9EC; }
  .ix-team b { font-weight: 800; color: #fff; text-transform: uppercase; font-size: 11.5px; letter-spacing: .04em; margin-right: 4px; }
  .ix-team .more { color: #AEB7C1; font-size: 13px; }
  .ix-acts { display: flex; gap: 8px; margin-top: 4px; }
  .ix-go { flex: 1; min-height: 46px; border-radius: 12px; border: 0; background: #FFAB00; color: #111; -webkit-text-fill-color: #111; font: 700 15px Inter, sans-serif; cursor: pointer; }
  .ix-go.alt { flex: 0 0 auto; padding: 0 16px; background: rgba(255,255,255,.16); color: #fff; -webkit-text-fill-color: #fff; backdrop-filter: blur(6px); }
  .ix-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .ix-reel-bar { position: absolute; z-index: 5; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 12px; }
  .ix-filter-btn { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.45); color: #fff; font: 700 13px Inter, sans-serif; cursor: pointer; backdrop-filter: blur(8px); }
  .ix-filters { position: absolute; z-index: 4; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top, 0px) + 64px) 12px 16px; background: rgba(11,13,16,.97); display: grid; gap: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
  .ix-filters[hidden] { display: none; }
  .ix-q { font: 400 16px Inter, sans-serif; color: #fff; background: #14171C; border: 1px solid #2A3038; border-radius: 12px; padding: 10px 14px; min-height: 44px; width: 100%; box-sizing: border-box; }
  .ix-q:focus { outline: 2px solid #FFAB00; outline-offset: 0; border-color: transparent; }
  .ix-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .ix-chips::-webkit-scrollbar { display: none; }
  .ix-chip { flex: none; border: 1px solid #343C47; background: transparent; color: #fff; font: 600 13px Inter, sans-serif; padding: 7px 12px; border-radius: 999px; min-height: 36px; cursor: pointer; white-space: nowrap; }
  .ix-chip[aria-pressed="true"] { background: #FFAB00; border-color: #FFAB00; color: #111; -webkit-text-fill-color: #111; }
  .ix-apply { min-height: 46px; border-radius: 12px; border: 0; background: #FFAB00; color: #111; font: 700 15px Inter, sans-serif; cursor: pointer; }
  .ix-sentinel { height: 1px; }
  .ix-end { height: 40vh; display: grid; place-content: center; gap: 6px; text-align: center; color: #AEB7C1; font-size: 14px; scroll-snap-align: start; padding: 0 24px; }
  .ix-end.full { height: 100%; }
  .ix-end b { color: #fff; font-size: 18px; }
  body.ix-inspiring { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .ix-feed, .ix-photos { scroll-behavior: auto; } }
@media (max-width: 640px) {
  .ix-prod { background: #070A0E; }
  .ix-vid { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: calc(100% - 150px - env(safe-area-inset-bottom, 0px)); object-fit: contain; object-position: center top; background: #070A0E; }
  .ix-sound { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 64px); right: 12px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.45); color: #fff; font: 700 12.5px Inter, sans-serif; cursor: pointer; }
  .ix-sound[aria-pressed="true"] { background: #FFAB00; color: #111; border-color: #FFAB00; }
  .ix-prod .ix-info { padding-top: 12px; background: #070A0E; gap: 10px; }
  .ix-prod .ix-sound { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 160px); }
}
