@font-face { font-family: "Manrope"; src: url("/fonts/manrope.ttf") format("truetype"); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Prata"; src: url("/fonts/prata.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
/* Reference composition is scoped to the buyer experience. */
.buyer-theme {
    min-width: 0;
    color-scheme: dark;
    --ink: #f4eee5;
    --muted: #b9b2a5;
    --line: #65502b;
    --line-strong: #a17b36;
    --surface: #1c140a;
    --surface-soft: #2c2010;
    --surface-warm: #392610;
    --brand: #ffdb80;
    --brand-hover: #ffe7a5;
    --accent: #f4cf6d;
    --accent-soft: #382711;
    --danger: #f0aaa0;
    --danger-soft: #432c2b;
    --success: #91c9af;
    --shadow: 0 18px 46px rgb(0 0 0 / 20%);
    --on-brand: #241907;
    --warning: #e0c28d;
    --warning-soft: #373127;
    font-family: "Manrope", "Segoe UI", sans-serif;
    background: #201307;
}

.buyer-theme body { background: var(--site-base, #201307) var(--site-background, none) center / cover fixed no-repeat; }
.site-gate { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 24px; padding: 24px; background: #17201f; color: #f4eee5; text-align: center; }
.buyer-theme .site-gate h1 { font: 500 22px/1.5 "Manrope", sans-serif; white-space: normal; text-transform: none; letter-spacing: normal; color: #f4eee5; }
.buyer-theme :is(button, textarea, input, select):focus-visible { outline-color: var(--brand); }
.buyer-theme :is(.chat-panel, .results-panel) { background: rgb(17 11 4 / 90%); border-color: var(--line); backdrop-filter: none; }
.buyer-theme :is(.language-control select, .button-secondary, .suggestion, .icon-button) { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.buyer-theme :is(.button-secondary, .suggestion):not(:disabled):hover { background: var(--surface-soft); border-color: var(--brand); }
.buyer-theme :is(.button-primary, .send-button) { color: var(--on-brand); }
.buyer-theme .brand-mark { box-shadow: none; }
.buyer-theme .brand-mark span { background: var(--on-brand); }
.buyer-theme :is(.count-badge, .welcome-icon, .decision-badge) { background: var(--surface-soft); }
.buyer-theme .connection-status.is-online .status-dot { background: var(--success); box-shadow: 0 0 0 4px rgb(145 201 175 / 12%); }
.buyer-theme .error-banner { border-color: var(--danger); color: var(--danger); }
.buyer-theme :is(.manual-form input, .composer textarea, .handoff-form input:not([type="checkbox"]), .handoff-form select) { background: var(--surface); color: var(--ink); }
.buyer-theme .composer { background: var(--surface); }
.buyer-theme :is(.composer textarea::placeholder, .character-counter, .message-meta, .results-empty, .app-footer) { color: var(--muted); }
.buyer-theme .avatar { color: var(--on-brand); }
.buyer-theme .message-user .avatar { color: var(--brand); }
.buyer-theme .message-content { color: var(--ink); }
.buyer-theme .message-user .message-content { color: var(--ink); background: #483218; }
.buyer-theme :is(.message-table th, .message-table tbody th) { color: var(--ink); background: var(--surface-soft); }
.buyer-theme :is(.message-table th, .message-table td) { border-color: var(--line-strong); }
.buyer-theme :is(.web-evidence, .web-evidence-unavailable) { background: var(--surface); }
.buyer-theme .web-evidence-title { color: var(--muted); }
.buyer-theme .web-evidence-list a:is(:hover, :focus-visible) { color: var(--brand-hover); background: var(--surface-soft); }
.buyer-theme .typing-dots span { background: var(--muted); }
.buyer-theme :is(.decision-panel.is-warning, .web-evidence-unavailable, .recommendation-mismatch, .attention-box, .missing-item, .handoff-selection-summary, .handoff-status.is-warning, .single-result-note) { color: var(--warning); background: var(--warning-soft); border-color: var(--line-strong); }
.buyer-theme :is(.geography-card, .geography-external, .recommendation-card, .transcript-message, .handoff-form .handoff-lot-choice, .handoff-preview-recipient) { background: var(--surface); }
.buyer-theme .local-map-plot { background: var(--surface-soft); border-color: var(--line); }
.buyer-theme .local-map-plot figcaption { border-color: var(--line); }
.buyer-theme .local-map-grid { stroke: var(--line-strong); }
.buyer-theme .local-map-marker circle { fill: var(--surface); }
.buyer-theme .local-map-marker.marker-subject text { fill: var(--on-brand); }
.buyer-theme .recommendation-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.buyer-theme .property-image { background: var(--surface-soft); }
.buyer-theme .property-placeholder { color: var(--muted); background: #332517; }
.buyer-theme .recommendation-alternative-badge { color: var(--warning); border-color: var(--line-strong); }
.buyer-theme .score { color: var(--success); background: #273e35; }
.buyer-theme .feature-chip { color: var(--muted); }
.buyer-theme .zero-result-note { color: var(--danger); background: var(--danger-soft); }
.buyer-theme :is(.buyer-card-dialog, .confirmation-dialog) { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.buyer-theme :is(.buyer-card-dialog, .confirmation-dialog)::backdrop { background: rgb(0 0 0 / 64%); }
.buyer-theme .dialog-header { background: var(--surface); }
.buyer-theme :is(.manager-narrative, .transcript-user, .handoff-panel, .handoff-intent-field, .handoff-preview) { background: var(--surface-soft); border-color: var(--line-strong); }
.buyer-theme :is(.manager-narrative p, .criterion-value, .transcript-message p, .handoff-lot-description strong, .handoff-form label > span, .handoff-preview h4, .handoff-preview-recipient, .handoff-selection legend) { color: var(--ink); }
.buyer-theme .criterion-mode { color: var(--muted); }
.buyer-theme .handoff-form .handoff-lot-choice:has(input:checked) { background: var(--accent-soft); border-color: var(--brand); }
.buyer-theme .handoff-selection-summary.has-selection { color: var(--success); background: #273e35; }
.buyer-theme .offer-set-card { border-color: var(--line-strong); background: var(--surface-warm); }
.buyer-theme .offer-set-warning { color: var(--warning); }
.buyer-theme .camilla { background: var(--surface-soft); border-color: var(--line); }
.buyer-theme :is(.camilla-heading strong, .camilla-status) { color: var(--brand); }
.buyer-theme :is(.camilla-heading small, .camilla-hint) { color: var(--muted); }
.buyer-theme .camilla-modes button { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.buyer-theme .camilla-modes button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.buyer-theme .camilla-portrait { background: var(--surface); }
.buyer-theme .camilla-error { color: var(--danger); }

.current-criteria { margin: 16px 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.current-criteria summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 650; }
.current-criteria summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.current-criteria-count { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.current-criteria p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.current-criteria ul { margin: 10px 0 0; padding: 0; list-style: none; }
.current-criterion { padding: 9px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.current-criterion:first-child { border-top: 0; padding-top: 0; }
.current-criterion small { display: block; color: var(--muted); font-size: 11px; }
.current-criteria .text-button { margin-top: 10px; }

.buyer-theme .app-shell { width: auto; max-width: 1800px; height: 100svh; min-height: 860px; margin: 0 3.7vw 0 10.1vw; padding: 26px 0 28px; grid-template-rows: 46px minmax(0, 1fr) 8px; gap: 24px; }
.buyer-theme .app-header { min-height: 0; gap: 24px; }
.buyer-theme .brand { flex: 0 0 auto; gap: 12px; }
.buyer-theme .brand-mark { width: 52px; height: 54px; border-radius: 0; background: url("/assets/buyer-design/building.svg") center / contain no-repeat; }
.buyer-theme .brand-mark span { display: none; }
.buyer-theme .brand strong { font-size: 21px; font-weight: 750; line-height: 1.3; }
.buyer-theme .brand small { color: var(--ink); font-size: 13px; margin-top: 0; }
.brand-promise { margin-right: auto; padding-left: 24px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; line-height: 1.4; white-space: nowrap; }
.brand-promise span { display: block; }
.buyer-theme .header-actions { gap: 14px; }
.buyer-theme .language-control select { height: 44px; width: 83px; padding: 0 14px; border-radius: 12px; background-color: rgb(15 10 3 / 70%); font-size: 14px; }
.buyer-theme .header-actions .button { height: 44px; padding: 0 16px; border-radius: 12px; background: rgb(15 10 3 / 65%); font-size: 14px; font-weight: 400; white-space: nowrap; }
.buyer-theme #newConversationButton > span:first-child { color: var(--brand); font-size: 23px; }
.buyer-theme .criteria-button { color: var(--brand); border-color: #e8b35c; box-shadow: 0 0 15px #b2782938, inset 0 0 11px #c0892f25; }
.criteria-button svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.brand-location { width: 95px; margin-left: clamp(12px, 3vw, 54px); color: #d2c9bb; font-size: 9px; font-weight: 800; letter-spacing: 4px; line-height: 1.7; }
.brand-location i { display: block; width: 32px; height: 2px; margin: 4px 0 0 56px; background: linear-gradient(90deg,#ad956c,#ffdb80); }
.buyer-theme .workspace { grid-template-columns: minmax(0, 1.78fr) minmax(0, 1fr); gap: 18px; }
.buyer-theme :is(.chat-panel, .results-panel) { border-radius: 22px; box-shadow: inset 0 1px 0 #ffd16b19, 0 12px 28px #0003; }
.buyer-theme .chat-panel { position: relative; grid-template-columns: 46% minmax(0, 1fr); grid-template-rows: 101px auto auto auto minmax(0, 1fr) 127px; }
.buyer-theme .chat-panel > .panel-heading { grid-column: 1 / -1; padding: 22px 26px; gap: 18px; }
.buyer-theme .panel-heading > div:first-child { min-width: 0; }
.buyer-theme .eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 2.8px; margin-bottom: 7px; }
.buyer-theme h1 { font-family: "Prata", Georgia, serif; font-weight: 400; color: #ffe08a; font-size: clamp(19px, 1.5vw, 27px); line-height: 1.3; letter-spacing: -1.1px; text-transform: uppercase; white-space: normal; }
.buyer-theme .connection-status { border: 1px solid #755527; background: #211607; font-size: 12px; font-weight: 400; padding: 8px 12px; box-shadow: inset 0 0 10px #0006; }
.buyer-theme .connection-status.is-online .status-dot { background: #ffdf85; box-shadow: 0 0 12px 3px #ffca5566; }
.buyer-theme .camilla-portrait { grid-column: 1; grid-row: 2 / 6; min-height: 0; height: auto; border-radius: 0; margin: 0 -16px 0 0; background: transparent; position: relative; overflow: hidden; align-self: stretch; }
.buyer-theme .camilla-portrait img { position: absolute; inset: 0; width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: left bottom; }
.buyer-theme .camilla-portrait video { object-fit: cover; object-position: center; transform: none; }
.buyer-theme .camilla-portrait [hidden] { display: none !important; }
.buyer-theme .chat-panel > .camilla { grid-column: 2; grid-row: 2; }
.buyer-theme .camilla { padding: 30px 22px 14px 0; background: transparent; border: 0; position: relative; top: auto; box-shadow: none; z-index: 1; }
.buyer-theme .camilla-heading { display: block; margin: 0; }
.camilla-persona { display: flex; align-items: flex-start; gap: 18px; margin-left: -34px; }
.camilla-persona > img { border-radius: 50%; width: 70px; height: 70px; object-fit: contain; flex-shrink: 0; }
.buyer-theme .camilla-persona strong { display: block; color: #ffe087; font-size: 20px; line-height: 1.4; font-weight: 700; margin-top: 1px; }
.buyer-theme .camilla-persona small { display: block; margin: 1px 0 0; font-size: 14px; white-space: nowrap; font-weight: 400; }
.buyer-theme #camilla-settings { position: absolute; left: 54px; top: 87px; padding: 2px 0; font-size: 13px; font-weight: 400; text-underline-offset: 3px; }
.buyer-theme .camilla-modes { flex-wrap: nowrap; margin: 32px 0 0 54px; gap: 14px; }
.buyer-theme .camilla-modes button { min-height: 42px; border-radius: 24px; padding: 9px 16px; color: #d3cabc; background: #100d078c; font-size: 12px; font-weight: 400; flex: 1 1 auto; white-space: nowrap; }
.buyer-theme .camilla-modes button[aria-pressed="true"] { color: #2c1b05; background: linear-gradient(110deg,#ffe6a0,#ffd06b); box-shadow: 0 0 18px #ffc96233; font-weight: 750; }
.buyer-theme .camilla-modes button:disabled { opacity: .6; }
.buyer-theme .camilla-stage { display: block; padding: 12px 0 0 54px; }
.buyer-theme .camilla[data-mode="video"][data-phase="ready"] .camilla-stage { display: none; }
.buyer-theme .camilla-hint { font-size: 11px; }
.buyer-theme .camilla-notice { position: relative; margin-left: 10px; background: #24180d; padding: 12px; border: 1px solid var(--line); border-radius: 12px; z-index: 3; }
.buyer-theme .chat-panel > :is(.error-banner,.manual-setup) { grid-column: 2; }
.buyer-theme .chat-panel > .messages { grid-column: 2; grid-row: 5; padding: 12px 18px 18px 0; margin-left: -34px; z-index: 1; scrollbar-width: thin; scrollbar-color: #9a702f #1a1108; }
.buyer-theme .welcome-state { justify-content: center; max-width: none; min-height: 0; height: 100%; }
.buyer-theme .welcome-icon { position: relative; width: 64px; height: 64px; margin-bottom: 10px; border: 1px solid #b2863c; border-radius: 17px; color: #ffe087; background: linear-gradient(145deg,#523513,#21190c); box-shadow: inset 0 0 0 3px #18100777; font-size: 32px; }
.welcome-icon small { position: absolute; right: 15px; top: 11px; font-size: 17px; }
.buyer-theme .welcome-state h2 { font-family: "Prata", Georgia, serif; font-weight: 400; font-size: clamp(27px, 2.1vw, 38px); line-height: 1.18; color: #ffe083; letter-spacing: -1px; }
.buyer-theme .welcome-state h2::first-line { color: #ffe083; }
.buyer-theme .welcome-state > p { max-width: 450px; color: #bfb4a3; margin: 7px 0 20px; font-size: 16px; line-height: 1.55; }
.buyer-theme .suggestion-list { gap: 8px; justify-content: center; }
.buyer-theme .suggestion { min-height: 43px; padding: 10px 14px; font-size: 10px; font-weight: 400; border-radius: 24px; border-color: #96722c; background: #130f09b3; color: var(--ink); }
.buyer-theme .suggestion::before { content: "♧"; display: inline-block; color: var(--brand); font-size: 21px; line-height: 1; margin-right: 9px; vertical-align: -3px; }
.buyer-theme .suggestion[data-suggestion="investment"]::before,
.buyer-theme .suggestion[data-suggestion="installment"]::before { content: "▥"; }
.buyer-theme .chat-panel > .composer { grid-column: 1 / -1; grid-row: 6; margin: 0; padding: 16px 17px 10px; border-top: 1px solid #7b5a25; background: linear-gradient(90deg,#231709e6,#130e06dc); z-index: 2; }
.composer-input { display: flex; align-items: center; min-height: 56px; border: 1px solid #f7cf73; border-radius: 14px; background: #120f09a3; box-shadow: 0 0 0 3px #ac793b19,inset 0 0 9px #0007; }
.composer-attachment { display: grid; place-items: center; width: 50px; height: 38px; border-right: 1px solid var(--line-strong); flex-shrink: 0; }
.composer-attachment svg { width: 20px; height: 24px; fill: none; stroke: #eee7da; stroke-width: 1.5; }
.buyer-theme .composer textarea { border: 0; border-radius: 12px; min-height: 50px; max-height: 100px; background: transparent; box-shadow: none; padding: 15px; font-family: inherit; font-size: 13px; resize: none; }
.composer-input:focus-within { outline: 2px solid #ffda7d; outline-offset: 2px; }
.buyer-theme .composer textarea:focus-visible { outline: 0; }
.composer-shortcut { flex-shrink: 0; margin: 0 18px 0 8px; font-size: 11px; color: #a49886; }
.buyer-theme .composer-footer { gap: 12px; padding-top: 0; margin-top: 8px; }
.buyer-theme .composer-hint { font-size: 11px; color: #b8ac99; }
.buyer-theme .consent-settings-button { font-size: 9px; font-weight: 400; color: #a49886; margin-left: auto; }
.buyer-theme .character-counter { margin-left: auto; font-size: 11px; }
.buyer-theme .send-button { min-height: 36px; padding: 7px 21px; border-radius: 24px; background: linear-gradient(110deg,#ffe9a1,#ffd074); box-shadow: 0 0 16px #ffcd6940; color: #211906; font-size: 13px; font-weight: 800; }
.buyer-theme .send-button:disabled { opacity: .8; }
.buyer-theme .results-panel { padding: 23px; display: flex; flex-direction: column; overflow: auto; scrollbar-width: thin; scrollbar-color: #9a702f #1a1108; }
.buyer-theme .results-heading { flex-shrink: 0; padding-bottom: 17px; border-bottom: 1px solid #7e5c22; margin-bottom: 20px; }
.buyer-theme .results-heading h2 { font-family: "Prata", Georgia, serif; font-size: clamp(24px, 1.7vw, 30px); font-weight: 400; color: #ffe191; line-height: 1.2; letter-spacing: -1px; }
.buyer-theme .count-badge { min-width: 45px; height: 45px; background: #50371999; color: #f4d17d; border-radius: 50%; font-size: 15px; }
.buyer-theme .recommendations { gap: 14px; margin-top: 0; }
.buyer-theme .results-empty { min-height: clamp(225px, 32vh, 302px); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 35px; border: 1px dashed #a37825; border-radius: 17px; background: #271b0c26; }
.buyer-theme .results-empty > span { display: block; width: 45px; height: 50px; color: transparent; font-size: 0; background: url("/assets/buyer-design/building.svg") center / contain no-repeat; filter: grayscale(1); opacity: .48; }
.buyer-theme .results-empty p { max-width: 330px; margin: 22px 0 0; color: #b9ae9c; font-size: 14px; line-height: 1.7; }
.buyer-theme #currentCriteriaPanel:not(.is-requested):not(:has(.current-criterion)) { display: none; }
.buyer-theme .current-criteria { margin: 0 0 18px; background: #261b0ce6; }
.selection-benefits { position: relative; margin-top: 31px; flex: 1 0 255px; }
.selection-benefit { position: relative; display: flex; align-items: center; gap: 22px; margin-bottom: 18px; z-index: 1; }
.benefit-icon { display: grid; place-items: center; width: 66px; height: 64px; border: 1px solid #94702e; border-radius: 17px; background: linear-gradient(145deg,#251a09aa,#0e0b0599); box-shadow: inset 0 0 0 3px #05040166; flex-shrink: 0; color: #ffe087; }
.benefit-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.selection-benefit strong { font-weight: 500; font-size: 14px; }
.selection-benefit:nth-child(2) strong { color: #ffe081; }
.selection-benefit p { margin: 4px 0 0; font-size: 12px; color: #b9ae9c; line-height: 1.5; }
.selection-signature { position: relative; height: 110px; overflow: hidden; pointer-events: none; }
.selection-signature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.selection-signature > span { position: absolute; right: 0; bottom: 10px; max-width: 80%; color: var(--brand); font: 20px/1.5 "Prata", Georgia, serif; text-align: right; }
.buyer-theme .results-panel:has(.recommendation-card, .offer-set-card, .zero-result-note) .selection-benefits { display: none; }
.buyer-theme .app-footer { padding: 0; color: #b9ad99; font-size: 11px; }
.buyer-theme .app-footer > :last-child { text-align: right; }
.buyer-theme .chat-panel:has(.camilla[data-mode="text"]):has(.message) { grid-template-columns: minmax(0,1fr); }
.buyer-theme .chat-panel:has(.camilla[data-mode="text"]):has(.message) > .camilla-portrait { display: none; }
.buyer-theme .chat-panel:has(.camilla[data-mode="text"]):has(.message) > :is(.camilla,.messages,.error-banner,.manual-setup) { grid-column: 1; }
.buyer-theme .chat-panel:has(.camilla[data-mode="text"]):has(.message) .camilla { padding: 15px 24px; }
.buyer-theme .chat-panel:has(.camilla[data-mode="text"]):has(.message) .camilla-persona { margin-left: 0; }
.buyer-theme .chat-panel:has(.camilla[data-mode="text"]):has(.message) #camilla-settings { left: 112px; top: 69px; }
.buyer-theme .chat-panel:has(.camilla[data-mode="text"]):has(.message) .camilla-modes { margin: 14px 0 0 88px; max-width: 440px; }
.buyer-theme .chat-panel:has(.camilla[data-mode="text"]):has(.message) .messages { margin-left: 0; padding: 18px 25px; }

@media (max-width: 1450px) and (min-width: 1001px) {
    .brand-promise { font-size: 11px; padding-left: 16px; }
    .brand-location { display: none; }
    .buyer-theme .app-header { gap: 15px; }
    .buyer-theme h1 { white-space: normal; }
    .buyer-theme .camilla-persona small { font-size: 11px; white-space: normal; }
    .buyer-theme .camilla-modes { margin-left: 26px; gap: 7px; }
    .buyer-theme .camilla-modes button { padding: 9px 10px; }
    .buyer-theme .welcome-state h2 { font-size: 29px; }
    .buyer-theme .welcome-state > p { font-size: 13px; }
    .buyer-theme .selection-benefit { gap: 14px; }
    .buyer-theme .results-empty { padding: 18px; }
    .buyer-theme .composer-hint { font-size: 9px; }
}
@media (max-width: 1000px) {
    .buyer-theme .app-shell { margin: 0; padding: 18px; height: auto; min-height: 100svh; grid-template-rows: auto auto auto; gap: 18px; }
    .brand-promise, .brand-location { display: none; }
    .buyer-theme .workspace { grid-template-columns: minmax(0, 1fr); }
    .buyer-theme .chat-panel { min-height: 790px; grid-template-rows: 100px auto auto auto minmax(350px,1fr) 127px; }
    .buyer-theme h1 { white-space: normal; font-size: 24px; }
    .buyer-theme .results-empty { min-height: 240px; }
    .selection-benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; flex-basis: auto; }
    .selection-signature { grid-column: 1 / -1; }
    .selection-benefit { display: block; }
    .selection-benefit .benefit-icon { margin-bottom: 12px; }
}
@media (max-width: 720px) {
    .buyer-theme .app-shell { padding: 12px; gap: 14px; }
    .buyer-theme .app-header { align-items: center; }
    .buyer-theme .brand strong { font-size: 18px; }
    .buyer-theme .brand small { font-size: 11px; }
    .buyer-theme .brand-mark { width: 36px; height: 45px; }
    .buyer-theme .header-actions { width: 100%; gap: 8px; }
    .buyer-theme .header-actions .button { padding: 0 11px; height: 40px; font-size: 11px; }
    .buyer-theme .language-control select { width: 64px; height: 40px; }
    .buyer-theme .criteria-button svg { width: 18px; height: 18px; }
    .buyer-theme .chat-panel { display: grid; min-height: 0; grid-template-columns: 32% minmax(0,1fr); grid-template-rows: auto auto auto auto auto auto; }
    .buyer-theme .chat-panel > .panel-heading { grid-column: 1/-1; padding: 18px; align-items: flex-start; }
    .buyer-theme h1 { font-size: 21px; }
    .buyer-theme .connection-status { font-size: 0; min-width: 24px; padding: 8px; }
    .buyer-theme .connection-status span:last-child { display: none; }
    .buyer-theme .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
    .buyer-theme .camilla-portrait { grid-row: 2; height: 180px; margin: 0; align-self: end; }
    .buyer-theme .camilla-portrait img { object-fit: cover; object-position: center top; }
    .buyer-theme .camilla { padding: 18px 12px; }
    .camilla-persona { margin-left: 0; gap: 8px; }
    .camilla-persona > img { display: none; }
    .buyer-theme .camilla-persona strong { font-size: 18px; }
    .buyer-theme .camilla-persona small { white-space: normal; font-size: 10px; }
    .buyer-theme #camilla-settings { position: static; font-size: 10px; margin-top: 8px; }
    .buyer-theme .camilla-modes { margin: 18px 0 0; gap: 5px; flex-wrap: wrap; }
    .buyer-theme .camilla-modes button { min-height: 33px; padding: 7px 8px; font-size: 10px; }
    .buyer-theme .camilla-stage { padding: 10px 0 0; }
    .buyer-theme .chat-panel:has(.camilla[data-notice-open="true"]) .camilla { grid-column: 1 / -1; grid-row: 2; }
    .buyer-theme .chat-panel:has(.camilla[data-notice-open="true"]) .camilla-portrait { display: none; }
    .buyer-theme .chat-panel > :is(.messages,.error-banner,.manual-setup) { grid-column: 1/-1; }
    .buyer-theme .chat-panel > .messages { margin: 0; padding: 20px 16px; min-height: 340px; }
    .buyer-theme .welcome-state h2 { font-size: 29px; }
    .buyer-theme .welcome-state > p { font-size: 13px; }
    .buyer-theme .chat-panel > .composer { position: static; padding: 12px; }
    .buyer-theme .welcome-state { height: auto; }
    .buyer-theme .chat-panel:has(.welcome-state:not([hidden])) > .messages { overflow: visible; }
    .buyer-theme :is(.header-actions .button, .language-control select, .suggestion, .camilla-modes button, .text-button, .send-button) { min-height: 44px; }
    .buyer-theme .composer-input { min-height: 48px; }
    .composer-attachment { width: 35px; }
    .composer-shortcut { display: none; }
    .buyer-theme .composer textarea { font-size: 16px; padding: 12px; }
    .buyer-theme .composer-hint { display: none; }
    .buyer-theme .composer-footer { justify-content: space-between; }
    .buyer-theme .composer-footer > * { margin-left: 0; }
    .buyer-theme .results-panel { padding: 18px; }
    .selection-benefits { display: block; }
    .selection-benefit { display: flex; }
    .selection-benefit .benefit-icon { margin-bottom: 0; }
    .buyer-theme .chat-panel:has(.camilla[data-mode="text"]):has(.message) .camilla { padding: 14px 18px; }
    .buyer-theme .chat-panel:has(.camilla[data-mode="text"]):has(.message) #camilla-settings { position: static; }
    .buyer-theme .chat-panel:has(.camilla[data-mode="text"]):has(.message) .camilla-modes { margin: 12px 0 0; }
}

@media (max-width: 720px) {
    .buyer-theme .mobile-section-nav { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow); }
    .buyer-theme .mobile-section-nav a:last-child { color: var(--on-brand); }
    .buyer-theme .mobile-result-count { color: var(--ink); background: var(--surface); }
    .buyer-theme .app-header { flex-wrap: wrap; gap: 12px; }
    .buyer-theme .header-actions { flex-wrap: wrap; }
    .buyer-theme :is(#newConversationButton, #currentCriteriaButton) span { display: inline; }
}

/* The first screen has no decision to explain yet. */
.buyer-theme .workspace:has(.welcome-state:not([hidden])) .decision-panel { display: none; }
.buyer-theme .composer textarea { height: 50px; flex: 1; min-width: 0; }
.buyer-theme .connection-status { flex-shrink: 0; }
.buyer-theme .chat-panel:has(.message) .message { max-width: 94%; }
