:root {
    --ink: #22212a;
    --muted: #6e6a78;
    --paper: #fffdfb;
    --panel: #ffffff;
    --line: #ebe5ea;
    --berry: #7f315d;
    --berry-soft: #f5eaf1;
    --mint: #4d8c78;
    --mint-soft: #eaf5f0;
    --amber: #a7651b;
    --amber-soft: #fff2df;
    --shadow: 0 18px 50px rgba(58, 35, 50, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, #f7e9f0 0, transparent 32rem),
        var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.topbar { padding: 24px 0; border-bottom: 1px solid rgba(127, 49, 93, .12); }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-weight: 750; letter-spacing: -.02em; }
.brand-logo { display: block; width: 148px; height: auto; }
.prototype-pill { padding: 7px 11px; color: var(--berry); background: var(--berry-soft); border-radius: 999px; font-size: .75rem; }
.topbar-context { display: flex; align-items: center; gap: 9px; }
.store-pill { padding: 7px 11px; color: var(--mint); background: var(--mint-soft); border-radius: 999px; font-size: .75rem; font-weight: 800; }
.admin-link { color: var(--berry); font-size: .78rem; font-weight: 800; text-decoration: none; }

main { padding: 58px 0 72px; }
.eyebrow { color: var(--berry); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 12px 0 16px; font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; padding: 12px 17px; border-radius: 13px; font-size: .9rem; font-weight: 750; text-decoration: none; }
.button.primary { color: #fff; background: var(--berry); }
.button.muted { color: var(--muted); background: #f3eff2; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.card { padding: 24px; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.card h2 { margin: 12px 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 750; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--mint); background: var(--mint-soft); }
.status.pending { color: var(--amber); background: var(--amber-soft); }

.roadmap { margin-top: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.roadmap h2 { margin: 0 0 22px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-number { color: var(--berry); font-size: .78rem; font-weight: 800; }
.step strong { display: block; margin: 6px 0; }
.step span { color: var(--muted); font-size: .9rem; line-height: 1.5; }

.catalog { margin-top: 68px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.catalog-count { color: var(--muted); font-size: .86rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(58, 35, 50, .06); }
.product-image-wrap { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 20px; background: #faf8f9; }
.product-image { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.demo-badge { position: absolute; left: 12px; bottom: 12px; padding: 6px 9px; color: var(--amber); background: rgba(255, 242, 223, .94); border-radius: 999px; font-size: .68rem; font-weight: 800; }
.product-content { padding: 18px; }
.product-brand { color: var(--berry); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { min-height: 3.9em; margin: 8px 0 15px; font-size: .98rem; line-height: 1.3; }
.product-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.product-meta strong { font-size: 1.08rem; }
.product-meta span { color: var(--muted); font-size: .66rem; }
.source-link { display: inline-block; margin-top: 15px; color: var(--muted); font-size: .75rem; text-decoration: none; }
.source-link:hover { color: var(--berry); }

.back-link { display: inline-block; margin-bottom: 30px; color: var(--muted); font-size: .88rem; text-decoration: none; }
.conversation-header h1 { max-width: 900px; }
.consultant-layout { display: grid; grid-template-columns: 245px minmax(0, 880px); align-items: start; gap: 22px; margin-top: 38px; }
.chat-shell { display: flex; flex-direction: column; width: 100%; height: clamp(480px, 68vh, 720px); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.melindinha-card { position: sticky; top: 20px; overflow: hidden; background: linear-gradient(160deg, #fff, #f7e9f0); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow); }
.melindinha-portrait { display: grid; place-items: end center; height: 245px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fae8f0, #eec8d9); }
.melindinha-portrait img { width: 118%; max-width: none; height: 118%; object-fit: contain; object-position: center bottom; }
.melindinha-card > div:last-child { padding: 19px; }
.melindinha-card span { color: var(--berry); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.melindinha-card strong { display: block; margin-top: 7px; font-size: 1.15rem; line-height: 1.25; }
.melindinha-card p { margin: 9px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.chat-history, .conversation-summary { display: grid; gap: 18px; padding: 28px; background: linear-gradient(180deg, #fcf8fa, #fff); }
.chat-history { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-gutter: stable; }
.chat-history::-webkit-scrollbar { width: 10px; }
.chat-history::-webkit-scrollbar-track { background: #f7f1f4; }
.chat-history::-webkit-scrollbar-thumb { background: #caa6ba; border: 2px solid #f7f1f4; border-radius: 999px; }
.conversation-summary { max-width: 880px; margin-top: 28px; border: 1px solid var(--line); border-radius: 22px; }
.chat-row { display: flex; align-items: end; gap: 11px; }
.chat-row.customer { justify-content: flex-end; }
.chat-avatar { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--berry); border-radius: 50%; font-size: .78rem; font-weight: 850; }
.chat-avatar-image { flex: 0 0 38px; width: 38px; height: 38px; object-fit: cover; object-position: center 18%; background: #f5dce8; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 3px 10px rgba(76,30,57,.15); }
.chat-bubble { max-width: 680px; padding: 15px 17px; color: #4d4650; background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 5px; line-height: 1.6; }
.chat-row.customer .chat-bubble { color: #fff; background: var(--berry); border-color: var(--berry); border-radius: 18px 18px 5px 18px; }
.chat-bubble small { display: block; margin-top: 9px; color: var(--muted); font-size: .78rem; }
.chat-bubble.caution { background: var(--amber-soft); border-color: #f1d7b0; }
.typing-bubble { display: flex; align-items: center; gap: 5px; min-width: 58px; min-height: 44px; }
.typing-dot { width: 7px; height: 7px; background: #b88aa5; border-radius: 50%; animation: typing-pulse 1.1s infinite ease-in-out; }
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes typing-pulse { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-composer { flex: 0 0 auto; padding: 24px 28px 28px; background: #fff; border-top: 1px solid var(--line); }
.chat-composer label { display: block; margin-bottom: 9px; font-size: .85rem; font-weight: 800; }
.chat-composer textarea { width: 100%; min-height: 96px; max-height: 160px; padding: 15px 16px; resize: vertical; color: var(--ink); background: #fff; border: 1px solid #d8d0d5; border-radius: 15px; font: inherit; line-height: 1.55; }
.chat-composer textarea:focus { outline: 3px solid rgba(127, 49, 93, .12); border-color: var(--berry); }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; }
.composer-footer small { color: var(--muted); }
.composer-footer .button { border: 0; cursor: pointer; }
.chat-composer[hidden] { display: none; }
.quick-replies { margin-bottom: 18px; }
.quick-replies-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.quick-reply-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-reply { min-height: 42px; padding: 10px 14px; color: var(--berry); background: var(--berry-soft); border: 1px solid rgba(127,49,93,.2); border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; }
.quick-reply:hover, .quick-reply:focus-visible { color: #fff; background: var(--berry); outline: none; transform: translateY(-1px); }
.quick-reply:active { transform: translateY(0); }
.inline-question-card { margin: 0 28px 28px 77px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(58, 35, 50, .06); }
.inline-question-card.answered { display: none; }
.inline-question-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.crm-insight { display: grid; gap: 4px; margin-bottom: 15px; padding: 13px 15px; background: var(--mint-soft); border: 1px solid #cfe6dc; border-radius: 13px; }
.crm-insight strong { font-size: .9rem; }
.crm-insight small { color: var(--muted); }
.inline-question-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.inline-question-grid .question select { padding: 10px 11px; font-size: .84rem; }
.inline-safety-note { margin: 14px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.inline-question-submit { margin-top: 15px; border: 0; cursor: pointer; }
.chat-product-list { display: grid; gap: 14px; margin-left: 49px; }
.chat-product-card { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 9px 25px rgba(58, 35, 50, .05); }
.chat-product-card.featured { border: 2px solid rgba(127, 49, 93, .36); }
.chat-product-image { width: 130px; height: 150px; object-fit: contain; background: #faf8f9; border-radius: 12px; }
.chat-product-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat-product-content h3 { margin: 7px 0; font-size: 1.08rem; }
.chat-product-content > p { margin: 0 0 9px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.chat-product-content .restriction-box { margin-top: 11px; padding: 11px 13px; }
.chat-evidence { padding: 17px 19px; color: #fff; background: #29232a; border-radius: 16px; }
.chat-evidence p { margin: 7px 0 0; color: #d4cdd2; font-size: .82rem; line-height: 1.5; }
.chat-ending { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-left: 49px; }
.chat-ending .audit-chip { margin-top: 0; }
.chat-ending-actions { display: flex; align-items: center; gap: 9px; }
.finish-customer-form { margin: 0; }
.finish-customer-form button { border: 0; cursor: pointer; }
.kiosk-timeout-warning { position: fixed; z-index: 1000; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 14px; max-width: 430px; padding: 16px 18px; color: #fff; background: #31232d; border-radius: 16px; box-shadow: 0 18px 55px rgba(49,35,45,.28); }
.kiosk-timeout-warning[hidden] { display: none; }
.kiosk-timeout-warning strong { display: block; margin-bottom: 3px; }
.kiosk-timeout-warning span { color: rgba(255,255,255,.78); font-size: .78rem; }
.kiosk-timeout-warning button { flex: 0 0 auto; padding: 9px 12px; color: var(--ink); background: #fff; border: 0; border-radius: 9px; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }
.customer-request-card { margin-top: 25px; padding: 18px 20px; background: var(--berry-soft); border-radius: 16px; }
.customer-request-card span { color: var(--berry); font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.customer-request-card p { margin: 8px 0 0; line-height: 1.55; }
.consultation-hero h1, .result-header h1 { max-width: 760px; }
.consultation-form { margin-top: 36px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.scenario-card { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 25px; padding: 17px 19px; color: #fff; background: linear-gradient(120deg, var(--berry), #bd4a75); border-radius: 16px; }
.scenario-card span { opacity: .8; }
.question-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.question { display: grid; gap: 9px; }
.question span { font-size: .88rem; font-weight: 760; }
.question select { width: 100%; padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid #dcd5da; border-radius: 12px; font: inherit; }
.question select:focus { outline: 3px solid rgba(127, 49, 93, .12); border-color: var(--berry); }
.safety-note { margin-top: 22px; padding: 14px 16px; color: var(--muted); background: #f7f4f6; border-radius: 12px; font-size: .82rem; line-height: 1.5; }
.submit-button { margin-top: 18px; border: 0; cursor: pointer; }
.alert { margin: 28px 0; padding: 18px 20px; border-radius: 15px; line-height: 1.55; }
.alert.danger { color: #8a2f36; background: #fff0f0; border: 1px solid #f4c8cb; }
.alert.success { color: #276b57; background: var(--mint-soft); border: 1px solid #cfe6dc; }
.audit-chip { display: inline-flex; margin-top: 20px; padding: 8px 11px; color: var(--muted); background: #f4f0f3; border-radius: 999px; font-size: .73rem; }
.recommendation-list { display: grid; gap: 20px; margin-top: 38px; }
.recommendation-card { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 26px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 23px; box-shadow: 0 12px 35px rgba(58, 35, 50, .06); }
.recommendation-card.featured { border: 2px solid rgba(127, 49, 93, .45); box-shadow: 0 18px 50px rgba(127, 49, 93, .12); }
.recommendation-card > img { width: 190px; height: 220px; object-fit: contain; background: #faf8f9; border-radius: 15px; }
.recommendation-rank { position: absolute; top: -12px; left: -12px; display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--berry); border: 4px solid var(--paper); border-radius: 50%; font-weight: 850; }
.recommendation-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.match-score { color: var(--muted); font-size: .78rem; font-weight: 750; }
.recommendation-body h2 { margin: 9px 0; font-size: 1.45rem; }
.recommendation-body > p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.price { display: block; font-size: 1.2rem; }
.restriction-box { margin-top: 16px; padding: 15px 17px; background: var(--amber-soft); border-radius: 13px; }
.restriction-box strong { color: var(--amber); font-size: .8rem; }
.restriction-box ul { margin: 9px 0 0; padding-left: 18px; color: #6f5435; font-size: .82rem; line-height: 1.55; }
.evidence-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 35px; margin-top: 26px; padding: 28px; color: #fff; background: #29232a; border-radius: 22px; }
.evidence-panel h2 { margin: 7px 0 0; }
.evidence-panel p { margin: 0; color: #d4cdd2; line-height: 1.65; }

.kiosk-login { min-height: 680px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px; }
.kiosk-art { padding: 52px; color: #fff; background: linear-gradient(145deg, #5f2048, #a83e6d 60%, #ed829f); border-radius: 32px; box-shadow: var(--shadow); }
.kiosk-art h1 { margin-top: 18px; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.kiosk-art p { max-width: 570px; color: #f4dfe9; font-size: 1.06rem; line-height: 1.7; }
.privacy-line { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); font-size: .8rem; }
.cpf-card { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.cpf-card h2 { margin: 10px 0 7px; font-size: 2rem; }
.cpf-card > p, .cpf-card small { color: var(--muted); line-height: 1.5; }
.cpf-field { display: grid; gap: 8px; margin-top: 25px; }
.cpf-field span { font-size: .82rem; font-weight: 800; }
.cpf-field input { padding: 16px; border: 1px solid #d9d0d6; border-radius: 13px; font: 700 1.15rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.kiosk-button { width: 100%; justify-content: center; margin-top: 22px; border: 0; cursor: pointer; }
.centered { display: block; margin: 22px auto 0; text-align: center; }
.customer-welcome { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.customer-welcome h1 { margin-bottom: 12px; }
.quiet-button { padding: 9px 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.customer-actions { display: grid; grid-template-columns: 1.15fr 1fr .72fr; gap: 20px; margin-top: 38px; }
.customer-action { display: block; padding: 28px; text-decoration: none; border-radius: 24px; }
.featured-action { color: #fff; background: linear-gradient(120deg, var(--berry), #c34978); box-shadow: 0 18px 45px rgba(127,49,93,.18); }
.featured-action span { color: #f8dce9; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.featured-action strong { display: block; margin-top: 12px; font-size: 1.8rem; }
.featured-action p { max-width: 650px; color: #f6e5ed; line-height: 1.55; }
.featured-action b { font-size: .88rem; }
.locator-action { color: var(--ink); background: linear-gradient(145deg, #fff, var(--mint-soft)); border: 1px solid #cfe6dc; box-shadow: 0 14px 36px rgba(77,140,120,.11); }
.locator-action span { color: var(--mint); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.locator-action strong { display: block; margin-top: 12px; font-size: 1.55rem; }
.locator-action p { color: var(--muted); line-height: 1.55; }
.locator-action b { color: var(--mint); font-size: .88rem; }
.relationship-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.relationship-card span, .relationship-card small { color: var(--muted); font-size: .78rem; }
.relationship-card strong { display: block; margin-top: 17px; font-size: 1.35rem; }
.relationship-card p { color: var(--berry); font-weight: 800; }
.relationship-link { color: var(--ink); text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.relationship-link:hover, .relationship-link:focus-visible { border-color: rgba(127,49,93,.38); outline: none; box-shadow: 0 16px 38px rgba(127,49,93,.13); transform: translateY(-2px); }
.relationship-link b { display: block; margin: 12px 0 14px; color: var(--berry); font-size: .82rem; }
.purchase-history-section { scroll-margin-top: 24px; }
.portal-section { margin-top: 54px; }
.promotion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.promotion-card { padding: 23px; background: var(--amber-soft); border: 1px solid #f1d7b0; border-radius: 20px; }
.promotion-card > span { color: var(--amber); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.promotion-card h3 { margin: 10px 0 7px; }
.promotion-card p { color: #725a3f; line-height: 1.5; }
.promotion-card div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promotion-card code { padding: 7px 9px; background: #fff; border-radius: 8px; font-weight: 800; }
.promotion-card small { color: var(--muted); }
.purchase-list { display: grid; gap: 10px; }
.purchase-list article { display: grid; grid-template-columns: 62px 1fr auto auto; align-items: center; gap: 17px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.purchase-list img { width: 62px; height: 62px; object-fit: contain; background: #faf8f9; border-radius: 10px; }
.purchase-list div { display: grid; gap: 3px; }
.purchase-list span, .purchase-list time { color: var(--muted); font-size: .72rem; }
.purchase-list strong { font-size: .9rem; }

.locator-hero h1 { max-width: 880px; font-size: clamp(2.25rem, 5vw, 4.25rem); }
.locator-search { margin-top: 30px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.locator-search label { display: block; margin-bottom: 10px; font-weight: 800; }
.locator-search > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.locator-search input { width: 100%; padding: 15px 16px; color: var(--ink); background: #fff; border: 1px solid #d8d0d5; border-radius: 13px; font: inherit; }
.locator-search input:focus { outline: 3px solid rgba(77,140,120,.14); border-color: var(--mint); }
.locator-search button { border: 0; cursor: pointer; }
.locator-search > small { display: block; margin-top: 10px; color: var(--muted); }
.brand-shortcuts { margin-top: 20px; }
.brand-shortcuts > span { color: var(--muted); font-size: .8rem; font-weight: 750; }
.brand-shortcuts > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.brand-shortcuts form { margin: 0; }
.brand-shortcuts button { padding: 9px 12px; color: var(--berry); background: var(--berry-soft); border: 1px solid rgba(127,49,93,.14); border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.brand-shortcuts button small { margin-left: 4px; color: var(--muted); }
.locator-results { margin-top: 38px; }
.locator-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.locator-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(58,35,50,.06); }
.locator-image-wrap { position: relative; display: grid; place-items: center; height: 210px; padding: 18px; background: #faf8f9; }
.locator-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.locator-image-wrap span { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; color: var(--mint); background: rgba(234,245,240,.95); border-radius: 999px; font-size: .68rem; font-weight: 850; }
.locator-card-body { padding: 18px; }
.locator-card-body > small { color: var(--berry); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.locator-card-body h3 { margin: 8px 0; font-size: 1rem; line-height: 1.35; }
.locator-card-body p { display: -webkit-box; margin: 0 0 12px; overflow: hidden; color: var(--muted); font-size: .8rem; line-height: 1.48; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.locator-card-body > strong { display: block; font-size: 1.12rem; }
.locator-card-body > a { display: inline-flex; margin-top: 14px; color: var(--berry); font-size: .78rem; font-weight: 800; text-decoration: none; }
.locator-note, .locator-empty { margin-top: 20px; padding: 16px 18px; color: var(--muted); background: #f7f4f6; border-radius: 14px; line-height: 1.5; }
.locator-empty strong { color: var(--ink); }
.locator-empty p { margin: 6px 0 0; }
.embedded-tablet .locator-hero h1 { font-size: clamp(1.8rem,3.6vw,2.55rem); }
.embedded-tablet .locator-search { margin-top: 20px; padding: 18px; }
.embedded-tablet .locator-grid { grid-template-columns: repeat(3,1fr); }
.embedded-tablet .locator-image-wrap { height: 165px; }

.access-shell { min-height: 690px; display: grid; grid-template-columns: 1.05fr .8fr; align-items: center; gap: 54px; }
.access-intro h1 { max-width: 650px; font-size: clamp(2.8rem, 6vw, 5.4rem); }
.access-intro > p { max-width: 610px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.access-flow { display: grid; gap: 11px; margin-top: 30px; }
.access-flow span { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }
.access-flow b { display: grid; place-items: center; width: 29px; height: 29px; color: #fff; background: var(--berry); border-radius: 50%; font-size: .75rem; }
.access-card { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.access-card h2 { margin: 10px 0 7px; font-size: 2rem; }
.access-card > p, .access-card > small { color: var(--muted); line-height: 1.55; }
.access-field { display: grid; gap: 7px; margin-top: 17px; }
.access-field span, .admin-form label span { font-size: .78rem; font-weight: 800; }
.access-field input, .access-field select, .admin-form input { width: 100%; padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid #d9d0d6; border-radius: 12px; font: inherit; }
.access-field input:focus, .access-field select:focus, .admin-form input:focus { outline: 3px solid rgba(127,49,93,.12); border-color: var(--berry); }
.access-button { width: 100%; justify-content: center; margin: 23px 0 13px; border: 0; cursor: pointer; }

.admin-heading { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.admin-heading h1 { margin-bottom: 13px; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 36px; }
.admin-stats article { padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(58,35,50,.05); }
.admin-stats span { display: block; color: var(--muted); font-size: .78rem; }
.admin-stats strong { display: block; margin-top: 8px; font-size: 1.9rem; }
.admin-section { margin-top: 58px; }
.store-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.store-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(58,35,50,.05); }
.store-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.store-card code { color: var(--muted); font-size: .68rem; }
.store-card h3 { margin: 17px 0 6px; }
.store-card > p { margin: 0; color: var(--muted); font-size: .85rem; }
.store-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 20px 0; }
.store-metrics span { padding: 10px; color: var(--muted); background: #f8f5f7; border-radius: 11px; font-size: .72rem; }
.store-metrics b { display: block; color: var(--ink); font-size: 1rem; }
.store-card form .button { width: 100%; justify-content: center; border: 0; cursor: pointer; }
.admin-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 38px; }
.admin-panel { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.admin-panel h2 { margin: 9px 0; }
.admin-panel > p { color: var(--muted); line-height: 1.55; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 20px; }
.admin-form label { display: grid; gap: 7px; }
.admin-form .wide { grid-column: 1 / -1; }
.admin-form button { border: 0; cursor: pointer; justify-content: center; }
.result-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 26px; }
.result-actions form { margin: 0; }
.result-actions button { border: 0; cursor: pointer; }
.audit-list { display: grid; gap: 9px; margin-top: 19px; }
.audit-list article { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding: 13px; background: #faf8f9; border-radius: 12px; }
.audit-list article div { min-width: 0; }
.audit-list strong, .audit-list span { display: block; }
.audit-list span { max-width: 430px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.audit-list time { flex: 0 0 auto; color: var(--muted); font-size: .7rem; }

footer { padding: 24px 0 36px; color: var(--muted); font-size: .85rem; }

/* Escala otimizada quando a experiência aparece dentro da moldura do tablet. */
.embedded-tablet .shell { width: min(1040px, calc(100% - 28px)); }
.embedded-tablet .topbar { padding: 15px 0; }
.embedded-tablet .brand-logo { width: 125px; }
.embedded-tablet .prototype-pill { padding: 6px 9px; font-size: .68rem; }
.embedded-tablet main { padding: 30px 0 42px; }
.embedded-tablet h1 { margin: 9px 0 12px; font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.02; }
.embedded-tablet .lead { font-size: 1rem; line-height: 1.58; }
.embedded-tablet .back-link { margin-bottom: 20px; }
.embedded-tablet .consultation-hero .back-link { margin-bottom: 13px; }
.embedded-tablet .consultation-hero h1 { font-size: clamp(1.8rem, 3.7vw, 2.55rem); }
.embedded-tablet .kiosk-login { min-height: 0; gap: 28px; }
.embedded-tablet .kiosk-art { padding: clamp(25px, 3.6vw, 38px); border-radius: 25px; }
.embedded-tablet .kiosk-art h1 { margin-top: 12px; font-size: clamp(2rem, 4.2vw, 3.15rem); }
.embedded-tablet .kiosk-art p { font-size: .95rem; line-height: 1.55; }
.embedded-tablet .privacy-line { margin-top: 24px; padding-top: 16px; }
.embedded-tablet .cpf-card { padding: clamp(24px, 3vw, 30px); border-radius: 21px; }
.embedded-tablet .cpf-card h2 { font-size: 1.65rem; }
.embedded-tablet .customer-welcome h1 { font-size: clamp(2rem, 4vw, 3rem); }
.embedded-tablet .customer-actions { gap: 15px; margin-top: 26px; }
.embedded-tablet .customer-action, .embedded-tablet .relationship-card { padding: 22px; border-radius: 19px; }
.embedded-tablet .featured-action strong { margin-top: 9px; font-size: 1.45rem; }
.embedded-tablet .featured-action p { margin: 9px 0; }
.embedded-tablet .portal-section { margin-top: 36px; }
.embedded-tablet .chat-shell { height: clamp(430px, 68vh, 610px); margin-top: 26px; border-radius: 20px; }
.embedded-tablet .consultant-layout { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
.embedded-tablet .melindinha-card { position: static; display: grid; grid-template-columns: 82px 1fr; align-items: center; min-height: 92px; border-radius: 18px; }
.embedded-tablet .melindinha-portrait { height: 92px; }
.embedded-tablet .melindinha-portrait img { width: 125%; height: 125%; }
.embedded-tablet .melindinha-card > div:last-child { padding: 12px 14px 12px 5px; }
.embedded-tablet .melindinha-card strong { margin-top: 3px; font-size: .94rem; }
.embedded-tablet .melindinha-card p { margin-top: 4px; font-size: .7rem; line-height: 1.35; }
.embedded-tablet .chat-shell { margin-top: 0; }
.embedded-tablet .chat-history { gap: 13px; padding: 20px; }
.embedded-tablet .conversation-summary { gap: 8px; margin-top: 16px; padding: 12px; background: transparent; }
.embedded-tablet .conversation-summary .chat-row.assistant { display: none; }
.embedded-tablet .conversation-summary .chat-bubble { width: 100%; max-width: none; padding: 10px 13px; font-size: .82rem; }
.embedded-tablet .chat-bubble { padding: 12px 14px; font-size: .9rem; line-height: 1.48; }
.embedded-tablet .chat-composer { padding: 19px 20px 21px; }
.embedded-tablet .quick-replies { margin-bottom: 13px; }
.embedded-tablet .quick-reply-grid { gap: 7px; }
.embedded-tablet .quick-reply { min-height: 38px; padding: 8px 11px; font-size: .72rem; }
.embedded-tablet .chat-composer textarea { min-height: 76px; max-height: 110px; padding: 12px 13px; resize: none; }
.embedded-tablet .inline-question-card { margin: 0 20px 20px 58px; padding: 15px; }
.embedded-tablet .inline-question-grid { gap: 9px 10px; }
.embedded-tablet .inline-question-grid .question span { font-size: .71rem; }
.embedded-tablet .inline-question-grid .question select { padding: 8px 9px; font-size: .76rem; }
.embedded-tablet .chat-product-list, .embedded-tablet .chat-ending { margin-left: 49px; }
.embedded-tablet .chat-product-card { grid-template-columns: 105px 1fr; gap: 14px; padding: 14px; }
.embedded-tablet .chat-product-image { width: 105px; height: 125px; }
.embedded-tablet .consultation-form { margin-top: 13px; padding: 17px; border-radius: 19px; }
.embedded-tablet .scenario-card { margin-bottom: 13px; padding: 11px 13px; font-size: .8rem; }
.embedded-tablet .question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 12px; }
.embedded-tablet .question { gap: 6px; }
.embedded-tablet .question span { font-size: .76rem; line-height: 1.3; }
.embedded-tablet .question select { padding: 9px 10px; font-size: .8rem; }
.embedded-tablet .safety-note { margin-top: 16px; padding: 11px 13px; }
.embedded-tablet .recommendation-list { gap: 15px; margin-top: 27px; }
.embedded-tablet .recommendation-card { grid-template-columns: 150px 1fr; gap: 19px; padding: 19px; }
.embedded-tablet .recommendation-card > img { width: 150px; height: 175px; }
.embedded-tablet .recommendation-body h2 { font-size: 1.2rem; }
.embedded-tablet footer { padding: 18px 0 24px; font-size: .72rem; }

@media (max-width: 820px) {
    .grid, .steps, .product-grid { grid-template-columns: 1fr; }
    main { padding-top: 40px; }
    .section-heading { align-items: start; flex-direction: column; }
    .question-grid, .evidence-panel { grid-template-columns: 1fr; }
    .recommendation-card { grid-template-columns: 1fr; }
    .recommendation-card > img { width: 100%; height: 260px; }
    .recommendation-topline { align-items: start; flex-direction: column; }
    .kiosk-login, .customer-actions, .promotion-grid { grid-template-columns: 1fr; }
    .locator-search > div, .locator-grid, .embedded-tablet .locator-grid { grid-template-columns: 1fr; }
    .kiosk-art { padding: 30px; }
    .customer-welcome { flex-direction: column; }
    .purchase-list article { grid-template-columns: 55px 1fr; }
    .purchase-list time, .purchase-list > article > b { padding-left: 72px; }
    .composer-footer { align-items: stretch; flex-direction: column; }
    .composer-footer .button { justify-content: center; }
    .inline-question-card, .chat-product-list, .chat-ending, .embedded-tablet .inline-question-card, .embedded-tablet .chat-product-list, .embedded-tablet .chat-ending { margin-left: 0; }
    .chat-ending, .chat-ending-actions { align-items: stretch; flex-direction: column; }
    .chat-ending-actions .button, .finish-customer-form, .finish-customer-form .button { width: 100%; justify-content: center; }
    .inline-question-grid { grid-template-columns: 1fr; }
    .chat-product-card, .embedded-tablet .chat-product-card { grid-template-columns: 95px 1fr; }
    .chat-product-image, .embedded-tablet .chat-product-image { width: 95px; height: 115px; }
    .embedded-tablet main { padding-top: 24px; }
    .embedded-tablet h1, .embedded-tablet .kiosk-art h1, .embedded-tablet .customer-welcome h1 { font-size: clamp(1.75rem, 7vw, 2.35rem); }
    .embedded-tablet .lead { font-size: .92rem; line-height: 1.5; }
    .embedded-tablet .kiosk-art, .embedded-tablet .cpf-card { padding: 22px; }
    .embedded-tablet .question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .embedded-tablet .recommendation-card { grid-template-columns: 1fr; }
    .embedded-tablet .recommendation-card > img { width: 100%; height: 210px; }
    .consultant-layout { grid-template-columns: 1fr; }
    body:not(.embedded-tablet) .melindinha-card { position: static; display: grid; grid-template-columns: 130px 1fr; }
    body:not(.embedded-tablet) .melindinha-portrait { height: 150px; }
    .access-shell, .admin-split { grid-template-columns: 1fr; }
    .admin-stats, .store-grid { grid-template-columns: 1fr 1fr; }
    .admin-heading { flex-direction: column; }
    .topbar-context { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 360px) {
    .embedded-tablet .question-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
    .admin-stats, .store-grid, .admin-form { grid-template-columns: 1fr; }
    .admin-form .wide { grid-column: auto; }
    .store-pill { display: none; }
    .result-actions { align-items: stretch; flex-direction: column; }
    .result-actions .button, .result-actions form, .result-actions form .button { width: 100%; justify-content: center; }
    .kiosk-timeout-warning { right: 12px; bottom: 12px; left: 12px; }
}

@media (min-width: 560px) and (max-width: 1000px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

