@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #101214;
  --ink-soft: #1b1f22;
  --paper: #f6f7f5;
  --card: #ffffff;
  --line: #dce1de;
  --muted: #6f7977;
  --orange: #f28b1d;
  --orange-dark: #c36c22;
  --terracotta: #ad6955;
  --green: #0c9b68;
  --green-dark: #087951;
  --green-soft: #ecfaf3;
  --green-line: #19a876;
  --shadow: 0 12px 32px rgba(19, 30, 28, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.hidden { display: none !important; }

/* Hero institucional */
.hero { position: relative; min-height: 554px; color: #fff; overflow: hidden; background: radial-gradient(circle at 88% 30%, rgba(94, 48, 20, .55), transparent 36%), linear-gradient(115deg, #101214 0%, #101214 58%, #21150f 100%); }
.hero-grid { position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, #000, transparent 86%); }
.site-nav { height: 58px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; border-bottom: 1px solid rgba(255,255,255,.13); }
.brand img { display: block; width: 96px; height: 33px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 12px; font-weight: 600; color: #eceae5; }
.nav-links a:hover { color: var(--orange); }
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; margin-left: 3px; border-radius: 50%; background: var(--orange); color: #1b1209; font-size: 10px; }
.nav-ghost, .nav-cta { border: 1px solid rgba(255,255,255,.24); border-radius: 22px; padding: 9px 15px; background: transparent; color: white; font-weight: 700; font-size: 11px; }
.nav-cta { border-color: var(--orange); background: var(--orange); color: #1f160e; }
.mobile-menu { display: none; background: none; color: #fff; border: 0; font-size: 22px; }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.07fr .93fr; gap: 56px; align-items: center; padding: 64px 0 74px; }
.eyebrow { margin: 0 0 19px; color: var(--orange); letter-spacing: .2em; font-size: 11px; font-weight: 800; }
.hero-copy h1 { max-width: 560px; margin: 0; font-size: clamp(34px, 4.15vw, 58px); line-height: .98; letter-spacing: -.05em; font-weight: 700; }
.hero-lede { max-width: 540px; margin: 24px 0 26px; color: #d1d0cc; font-size: 15px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 42px; border: 1px solid transparent; border-radius: 11px; padding: 11px 16px; font-size: 12px; letter-spacing: .025em; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.1); }
.btn-large { min-height: 44px; padding: 13px 20px; border-radius: 24px; }
.btn-primary { background: var(--orange); color: #25160b; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.09); }
.hero-meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 26px; color: #e9a365; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.hero-meta i { color: rgba(255,255,255,.55); font-style: normal; }
.hero-note { margin: 8px 0 0; color: #8e9190; font-size: 12px; }
.video-frame { position: relative; display: flex; width: min(100%, 320px); aspect-ratio: 9 / 16; min-height: 0; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: #101415; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 24px 50px rgba(0,0,0,.2); }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #101415; }

/* Aplicação */
.app-shell { background: var(--paper); }
.app-topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.app-brand { display: flex; align-items: center; gap: 16px; color: var(--terracotta); font-size: 19px; font-weight: 700; }
.app-brand img { width: 117px; height: 42px; object-fit: contain; }
.topbar-actions { display: flex; align-items: center; gap: 16px; color: #6b7472; font-size: 12px; font-weight: 600; }
.topbar-actions b { color: var(--ink); }
.btn-terracotta { background: var(--terracotta); color: white; border-radius: 10px; }
.toolbar { padding-bottom: 10px; }
.search-box { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfa; color: #85908d; }
.search-box span { font-size: 25px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: #a1aaa8; }
.family-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 11px 0 1px; scrollbar-width: thin; }
.family-tab { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 22px; padding: 9px 17px; background: white; color: #434b4a; font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.family-tab small { margin-left: 3px; color: #82908b; font-size: 10px; }
.family-tab.active { border-color: #162126; background: #162126; color: white; }
.family-tab.active small { color: #b8c0bf; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 22px; align-items: start; padding-top: 18px; padding-bottom: 70px; }
.catalog-column { min-width: 0; }
.audience-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 13px; scrollbar-width: thin; }
.audience-row button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 18px; padding: 9px 13px; background: white; color: #353d3c; font-size: 11px; font-weight: 600; white-space: nowrap; }
.audience-row button:hover, .audience-row button.active { border-color: var(--green-line); background: var(--green-soft); color: var(--green-dark); }
.filter-row { display: flex; align-items: end; gap: 12px; margin-bottom: 13px; }
.filter-row label { display: flex; flex-direction: column; gap: 6px; color: #7b8682; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.filter-row select { min-width: 176px; height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; background: white; color: #424b49; font-size: 12px; letter-spacing: 0; outline: none; }
.result-count { margin-left: auto; padding-bottom: 10px; color: #7c8784; font-size: 12px; font-weight: 600; }
.technical-note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 15px; padding: 11px 14px; border: 1px solid #d3e9df; border-radius: 11px; background: #f1fbf6; color: #51716a; font-size: 11px; line-height: 1.45; }
.technical-note span { color: var(--green); font-size: 16px; }
.technical-note p { margin: 1px 0 0; }
.catalog-list { display: flex; flex-direction: column; gap: 14px; }
.product-card { position: relative; border: 1px solid #dfe4e1; border-radius: 17px; background: var(--card); padding: 17px; overflow: hidden; transition: border .2s ease, box-shadow .2s ease, background .2s ease; }
.product-card:hover { box-shadow: 0 9px 28px rgba(20,31,28,.07); }
.product-card.selected { border-color: var(--green-line); background: var(--green-soft); box-shadow: 0 8px 25px rgba(12,155,104,.1); }
.product-head { display: grid; grid-template-columns: 108px minmax(0, 1fr) 252px; gap: 15px; align-items: start; }
.product-thumb { position: relative; display: grid; place-items: center; width: 108px; height: 91px; overflow: hidden; border: 1px solid #e3e6e4; border-radius: 12px; background: linear-gradient(145deg, #f5f6f4, #e8ece9); color: var(--family-color, #74817e); font-size: 38px; font-weight: 800; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb img.image-error { display: none; }
.thumb-fallback { display: none; }
.product-thumb img.image-error + .thumb-fallback { display: block; }
.product-thumb small { position: absolute; right: 6px; bottom: 5px; display: block; padding: 3px 4px; border-radius: 4px; background: rgba(255,255,255,.82); color: #77817f; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.product-info h3 { margin: 2px 0 7px; font-size: 18px; line-height: 1.16; letter-spacing: -.025em; }
.product-info p { max-width: 620px; margin: 0; color: #677270; font-size: 12px; line-height: 1.48; }
.product-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.product-tag { display: inline-flex; padding: 4px 7px; border-radius: 4px; background: #f0f2f0; color: #6a7672; font-size: 10px; }
.product-tag.normative-tag { background: #e1f5eb; color: #087951; font-weight: 800; }
.product-tag.voltage-tag { background: #fff1df; color: #a85b1e; font-weight: 700; }
.selected .product-tag { background: #e2f4eb; }
.spec-panel { display: flex; flex-direction: column; gap: 7px; border: 1px solid #dfe6e2; border-radius: 10px; padding: 10px 12px; background: rgba(247,250,248,.88); }
.spec-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; color: #5d6966; font-size: 10px; line-height: 1.2; }
.spec-row span:first-child { color: #84908d; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.spec-row span:last-child { color: #485351; }
.product-config { display: flex; flex-direction: column; gap: 14px; margin-top: 17px; }
.config-section { display: flex; flex-direction: column; gap: 8px; padding: 9px 11px; border: 1px solid #e2e8e4; border-radius: 10px; background: #fbfcfb; }
.config-section.open { border-color: #cbded5; background: #fff; }
.config-label { color: #687571; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.accordion-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 19px; border: 0; padding: 0; background: transparent; color: #687571; cursor: pointer; text-align: left; }
.accordion-toggle:hover { color: var(--green-dark); }
.accordion-state { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #d8e2dc; border-radius: 50%; color: var(--green-dark); font-size: 15px; line-height: 1; }
.config-help { color: #8b9692; font-size: 10px; }
.config-section:not(.open) .choice-grid, .config-section:not(.open) .config-help, .config-section:not(.open) .text-input { display: none; }
.config-section:not(.open) { gap: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.choice { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; border: 1px solid #dce2df; border-radius: 10px; padding: 7px 10px; background: white; color: #43504c; font-size: 12px; text-align: left; transition: border .15s ease, background .15s ease; }
.choice:hover { border-color: #89cbb1; }
.choice.checked { border-color: var(--green-line); background: #e2f8ee; color: #086d4a; font-weight: 700; }
.choice-mark { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border: 1px solid #d4dcda; border-radius: 7px; background: #fff; color: transparent; font-size: 14px; font-weight: 900; }
.choice.checked .choice-mark { border-color: var(--green); background: var(--green); color: white; }
.choice-qty { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.choice-qty button { width: 21px; height: 21px; border: 0; border-radius: 6px; background: rgba(12,155,104,.12); color: var(--green-dark); font-weight: 800; }
.choice-qty input { width: 68px; height: 25px; border: 1px solid #cbd8d2; border-radius: 6px; background: white; color: var(--ink); text-align: center; font-size: 12px; font-weight: 700; }
.choice-qty b, .qty-control b { color: #687571; font-size: 9px; font-weight: 700; letter-spacing: .03em; }
.text-input { width: 100%; min-height: 39px; border: 1px solid #dce2df; border-radius: 9px; padding: 9px 11px; outline: none; background: white; color: var(--ink); font-size: 12px; }
.text-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(12,155,104,.1); }
.supply-row { display: flex; flex-wrap: wrap; gap: 8px; }
.supply-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; border: 1px solid #dce5e0; border-radius: 10px; background: #f7faf8; color: #66736e; font-size: 10px; }
.supply-inline label { color: #687571; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.supply-inline select { height: 32px; border: 1px solid #cbd8d2; border-radius: 8px; padding: 0 9px; background: white; color: #33413c; font-size: 12px; font-weight: 700; }
.supply-length-label { margin-left: 8px; }
.supply-inline .supply-extra { width: 145px; min-height: 32px; margin: 0; padding: 6px 9px; }
.supply-default-note { color: #087951; font-size: 10px; font-weight: 700; }
.supply-button { border: 1px solid #d7dfdc; border-radius: 10px; padding: 9px 14px; background: white; color: #66716e; font-size: 12px; font-weight: 700; }
.supply-button.active { border-color: #1e2527; background: #1e2527; color: white; }
.supply-extra { max-width: 270px; margin-top: 3px; }
.order-summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #f4f5f3; color: #4d5956; font-size: 11px; }
.selected .order-summary { background: #e1f4ea; }
.order-summary strong { color: #303b38; }
.qty-control { display: flex; align-items: center; gap: 7px; }
.qty-control button { width: 29px; height: 29px; border: 1px solid #d9e0dc; border-radius: 8px; background: white; color: #4e5a56; font-size: 16px; }
.qty-control input { width: 78px; height: 34px; border: 1px solid #b9c8c1; border-radius: 8px; text-align: center; color: #343d3b; font-size: 14px; font-weight: 700; }
.qty-control.meter-control input { width: 92px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.add-button { min-width: 156px; border: 0; border-radius: 11px; padding: 12px 16px; background: var(--terracotta); color: white; font-size: 12px; font-weight: 800; }
.add-button:hover { background: #975746; }
.selected .add-button { background: var(--green); }
.added-label { color: var(--green-dark); font-size: 11px; font-weight: 800; }
.incomplete-label { color: #a56a22; font-size: 11px; font-weight: 700; }

/* Minha lista */
.list-panel { position: sticky; top: 167px; min-height: 160px; max-height: calc(100vh - 195px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.list-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); }
.list-panel-head > div { display: flex; flex-direction: column; gap: 4px; }
.list-panel-head span:first-child { color: #424c49; font-size: 14px; font-weight: 800; }
.list-panel-head strong { color: var(--green-dark); font-size: 11px; }
.list-status { color: #8e9995; font-size: 9px; white-space: nowrap; }
.list-status::first-letter { color: var(--green); }
.side-list { display: flex; flex: 1; flex-direction: column; gap: 7px; overflow: auto; padding: 8px; }
.side-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 175px; padding: 18px; color: #77837f; text-align: center; }
.side-empty span { color: #b4c1bc; font-size: 31px; }
.side-empty strong { font-size: 11px; }
.side-empty small { max-width: 180px; color: #a4ada9; font-size: 10px; line-height: 1.4; }
.side-item { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 11px 31px 10px 11px; border: 1px solid #dce2df; border-radius: 11px; background: #fff; }
.side-item strong { overflow: hidden; color: #3d4845; font-size: 11px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.side-item small { overflow: hidden; color: #7a8581; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.side-item em { color: var(--green-dark); font-size: 10px; font-style: normal; font-weight: 800; }
.remove-item { position: absolute; top: 9px; right: 8px; width: 22px; height: 22px; border: 0; background: transparent; color: #9ba4a1; font-size: 16px; }
.btn-full { width: calc(100% - 16px); margin: 8px; }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: var(--green-dark); }

.empty-state { display: flex; align-items: center; flex-direction: column; padding: 80px 20px; text-align: center; }
.empty-icon { color: #a4b1ad; font-size: 46px; }
.empty-state h3 { margin: 12px 0 4px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.btn-outline-dark { border-color: #aeb9b5; background: white; color: #40504a; }
.btn-dark { border-color: #202728; background: #202728; color: white; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(10,15,15,.62); backdrop-filter: blur(7px); }
.review-modal { width: min(900px, 100%); max-height: min(820px, calc(100vh - 48px)); overflow: auto; border-radius: 20px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.lead-modal { width: min(520px, 100%); max-height: min(760px, calc(100vh - 48px)); overflow: auto; border-radius: 20px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal-head { display: flex; justify-content: space-between; gap: 20px; padding: 24px 25px 18px; border-bottom: 1px solid var(--line); }
.dark-eyebrow { margin-bottom: 9px; color: var(--terracotta); }
.modal-head h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.modal-head p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.close-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: white; color: #596360; font-size: 23px; line-height: 1; }
.review-content { padding: 20px 25px 10px; }
.review-alert { display: flex; gap: 9px; margin-bottom: 15px; padding: 11px 13px; border: 1px solid #f0d3a0; border-radius: 10px; background: #fff8e9; color: #8d642c; font-size: 11px; line-height: 1.4; }
.review-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.review-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 11px; }
.review-table th { padding: 10px 11px; background: #f4f6f4; color: #68736f; font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.review-table td { padding: 11px; border-top: 1px solid #e8ece9; vertical-align: top; }
.review-table td strong { color: #25302d; }
.review-table td small { display: block; margin-top: 3px; color: #7d8884; line-height: 1.35; }
.review-remove { border: 0; background: transparent; color: #9c5c4c; font-weight: 800; }
.review-empty { padding: 55px 20px; color: var(--muted); text-align: center; }
.export-cta { display: flex; align-items: center; gap: 12px; margin: 12px 25px 0; padding: 13px 15px; border: 1px solid #bfe8d4; border-radius: 12px; background: #effbf5; color: #3e6759; }
.ready-upload { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 0 25px 15px; padding: 14px; border: 1px dashed #cbdad3; border-radius: 12px; background: #f8fbf9; }
.ready-upload strong { color: #34423d; font-size: 12px; }
.ready-upload p { margin: 3px 0 0; color: #7b8782; font-size: 10px; line-height: 1.35; }
.file-picker { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; border: 1px solid #bccfc5; border-radius: 8px; padding: 0 12px; background: white; color: #287558; cursor: pointer; font-size: 10px; font-weight: 800; white-space: nowrap; }
.file-picker:hover { border-color: var(--green); background: #effbf5; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ready-upload small { grid-column: 1 / -1; color: #89948f; font-size: 10px; }
.ready-upload small.file-selected { color: #087951; font-weight: 700; }
.ready-upload-actions { display: flex; grid-column: 1 / -1; gap: 8px; }
.ready-upload-actions .btn { flex: 1; min-height: 34px; padding: 8px 10px; font-size: 10px; }
.cta-mark { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: white; font-weight: 900; }
.export-cta strong { color: #146b4a; font-size: 12px; }
.export-cta p { margin: 4px 0 0; font-size: 11px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 20px 25px 10px; }
.btn-whatsapp { background: #128c5e; color: white; }
.btn-whatsapp:hover { background: #08764d; }
.btn-email { background: #476b8e; color: white; }
.btn-email:hover { background: #355570; }
.modal-footnote { padding: 0 25px 22px; color: #8a9691; font-size: 10px; }
.lead-form { display: grid; gap: 13px; padding: 20px 25px 25px; }
.lead-form label { display: grid; gap: 6px; color: #687571; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lead-form input { width: 100%; min-height: 42px; border: 1px solid #d4dfda; border-radius: 9px; padding: 10px 12px; outline: none; background: #fbfdfc; color: var(--ink); font-size: 13px; letter-spacing: 0; text-transform: none; }
.lead-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(12,155,104,.1); }
.feedback-field { margin-top: 2px; }
.feedback-field textarea { width: 100%; min-height: 76px; resize: vertical; border: 1px solid #d4dfda; border-radius: 9px; padding: 10px 12px; outline: none; background: #fbfdfc; color: var(--ink); font: inherit; font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.4; text-transform: none; }
.feedback-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(12,155,104,.1); }
.feedback-field small { color: #87938e; font-size: 10px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.lead-privacy { margin: 0; color: #87938e; font-size: 10px; line-height: 1.45; }
.lead-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }
.ready-send-actions { display: grid; gap: 10px; padding: 22px 25px 10px; }
.ready-send-actions .btn { width: 100%; }
.ready-send-note { margin: 0; padding: 0 25px 25px; color: #7d8984; font-size: 11px; line-height: 1.45; }
.mobile-list-fab { display: none; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; max-width: 340px; transform: translateY(20px); opacity: 0; pointer-events: none; padding: 12px 15px; border-radius: 10px; background: #202728; color: white; font-size: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.2); transition: all .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green-dark); }
.toast.warning { background: #8d642c; }

/* Print */
.print-sheet { display: none; }
@media print {
  body > *:not(#printSheet) { display: none !important; }
  .print-sheet { display: block !important; padding: 20px; color: #141918; font-family: Arial, sans-serif; }
  .print-sheet img { width: 145px; height: auto; margin-bottom: 18px; }
  .print-sheet h1 { margin: 0 0 4px; font-size: 23px; }
  .print-sheet .print-meta { margin-bottom: 18px; color: #68736e; font-size: 11px; }
  .print-sheet table { width: 100%; border-collapse: collapse; font-size: 10px; }
  .print-sheet th { background: #edf3ef; color: #40504a; text-align: left; }
.print-sheet th, .print-sheet td { border: 1px solid #cfd8d3; padding: 7px; vertical-align: top; }
.print-sheet th:nth-child(4), .print-sheet td:nth-child(4) { width: 74px; }
.print-sheet th:nth-child(5), .print-sheet td:nth-child(5) { width: 82px; text-align: right; white-space: nowrap; }
.print-quantity { font-weight: 800; }
  .print-sheet .print-note { margin-top: 18px; color: #63716b; font-size: 10px; line-height: 1.4; }
}

@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; gap: 28px; padding-top: 45px; }
  .video-frame { min-height: 220px; max-width: 660px; }
  .workspace { grid-template-columns: 1fr; }
  .list-panel { position: fixed; right: 18px; bottom: 78px; top: auto; z-index: 30; width: min(340px, calc(100vw - 36px)); max-height: 70vh; transform: translateY(calc(100% + 100px)); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease; }
  .list-panel.mobile-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-list-fab { position: fixed; right: 18px; bottom: 18px; z-index: 35; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 30px; padding: 12px 16px; background: var(--green); color: white; box-shadow: 0 10px 25px rgba(7,110,75,.3); }
  .mobile-list-fab span { font-size: 18px; }
  .mobile-list-fab b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: rgba(255,255,255,.23); font-size: 11px; }
  .mobile-list-fab em { font-style: normal; font-size: 11px; font-weight: 800; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 620px); }
  .hero { min-height: 0; }
  .site-nav { height: 63px; }
  .nav-links { position: absolute; top: 58px; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; width: min(240px, calc(100vw - 28px)); padding: 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: #171a1c; box-shadow: 0 16px 30px rgba(0,0,0,.3); }
  .site-nav.menu-open .nav-links { display: flex; }
  .nav-links a, .nav-links button { padding: 11px 10px; text-align: left; }
  .mobile-menu { display: block; }
  .hero-content { padding: 44px 0 52px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-lede { font-size: 14px; }
  .hero-meta { gap: 6px; font-size: 8px; }
  .video-frame { width: min(100%, 270px); min-height: 0; border-radius: 16px; }
  .app-topbar { position: sticky; }
  .topbar-inner { min-height: 67px; }
  .app-brand { gap: 9px; font-size: 16px; }
  .app-brand img { width: 92px; height: 33px; }
  .topbar-actions > span { display: none; }
  .topbar-actions .btn { padding: 10px 11px; font-size: 10px; }
  .workspace { padding-top: 12px; }
  .filter-row { align-items: stretch; flex-wrap: wrap; }
  .filter-row label { flex: 1; min-width: 130px; }
  .filter-row select { min-width: 0; width: 100%; }
  .result-count { width: 100%; margin: 0; padding: 0; }
  .product-head { grid-template-columns: 68px minmax(0, 1fr); gap: 11px; }
  .product-thumb { width: 68px; height: 68px; font-size: 25px; }
  .product-info h3 { margin-top: 0; font-size: 15px; }
  .product-info p { font-size: 11px; }
  .spec-panel { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .card-footer { align-items: stretch; flex-direction: column; }
  .add-button { width: 100%; }
  .order-summary { align-items: flex-start; flex-direction: column; }
  .review-modal { max-height: calc(100vh - 20px); border-radius: 16px; }
  .modal-backdrop { padding: 10px; }
  .modal-head, .review-content, .modal-actions { padding-left: 16px; padding-right: 16px; }
  .export-cta { margin-inline: 16px; }
  .modal-footnote { padding-inline: 16px; }
  .modal-actions .btn { flex: 1 1 145px; }
}

/* Lista/revisão: scroll independente, controles nativos e ações sem anexos automáticos. */
html, body { overflow-x: clip !important; overflow-y: visible; }
html { overflow-y: auto; }
.app-shell, .workspace { overflow: visible; }
.list-panel { top: var(--list-sticky-top, 190px); max-height: calc(100dvh - var(--list-sticky-top, 190px) - 20px); min-height: 0; }
.list-panel-body { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; }
.list-panel-body[hidden] { display: none; }
.side-list { min-height: 0; overscroll-behavior: contain; }
.list-panel .btn { flex-shrink: 0; }
.desktop-list-toggle { margin: 10px; }
.list-toggle[aria-expanded="false"] { animation: lista-halo 3.5s ease-in-out infinite; }
.list-toggle:focus, .list-toggle[aria-expanded="true"] { animation: none; }
@keyframes lista-halo { 0%,100% { box-shadow: 0 0 0 0 rgba(10,151,104,.12); } 50% { box-shadow: 0 0 0 5px rgba(10,151,104,.08); } }
.ready-disclosure { margin: 0 25px; border-top: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; }
.ready-disclosure > summary { font-size: 12px; font-weight: 700; color: #53645d; }
.ready-disclosure .ready-upload { margin: 12px 0 0; }
.review-actions { align-items: flex-start; }
.action-choice { flex: 1; min-width: 0; }
.action-choice > summary { display: flex; justify-content: center; list-style: none; }
.action-choice > summary::-webkit-details-marker { display: none; }
.action-options { display: grid; gap: 8px; padding-top: 10px; }
.channel-choice { padding: 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.channel-choice p { line-height: 1.5; font-size: 12px; color: #63716b; margin-bottom: 0; }
.channel-choice .btn { display: inline-flex; margin-top: 10px; text-decoration: none; }
.copy-options { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.copy-options button, .review-edit { border: 0; background: transparent; color: #476c8c; cursor: pointer; font-size: 12px; text-decoration: underline; }
.modal-footnote textarea, .copy-fallback { width: 100%; min-height: 100px; }
summary:focus-visible, .list-toggle:focus-visible { outline: 3px solid #b96742; outline-offset: 3px; }
@media(max-width:980px) {
  .desktop-list-toggle { display: none; }
  .list-panel { top: auto; bottom: calc(130px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 230px - env(safe-area-inset-bottom)); }
  .mobile-list-fab { bottom: calc(70px + env(safe-area-inset-bottom)); right: 18px; font-size: 12px; font-weight: 800; }
  body.tool-open { height: 100dvh; padding-bottom: 0 !important; overflow: hidden !important; }
  body.tool-open .app-shell { height: calc(100dvh - 130px - env(safe-area-inset-bottom)); overflow-y: auto; overflow-x: clip; overscroll-behavior-y: contain; }
  .ready-disclosure { margin-inline: 16px; }
  .review-actions { flex-wrap: nowrap; }
  .review-actions summary.btn { font-size: 12px; padding-inline: 10px; }
  .ready-upload { grid-template-columns: 1fr; }
  body:has(.modal-backdrop:not(.hidden)) .mobile-list-fab { visibility: hidden; }
}
@media(prefers-reduced-motion:reduce) { .list-toggle { animation: none !important; } .list-panel { transition: none; } }

/* Envio exige identificação e arquivo preparado; links nativos abrem só no clique explícito. */
.send-content { padding: 20px 25px 25px; }
.send-identity { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: #f3f7f5; font-size: 12px; overflow-wrap: anywhere; }
.send-identity strong { font-size: 14px; }
.send-content section { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.send-content h3 { margin: 0 0 10px; font-size: 15px; }
.send-content p { font-size: 12px; line-height: 1.6; color: #63716b; }
.send-downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.send-content .btn { text-decoration: none; display: inline-flex; justify-content: center; }
.send-content .text-button { display: inline-block; border: 0; background: transparent; color: #476c8c; padding: 8px 0; font-size: 12px; cursor: pointer; text-decoration: underline; }
.send-attachment-hint { padding: 12px; border-radius: 10px; background: #fff4e8; color: #745033 !important; }
body:has(.modal-backdrop:not(.hidden)) .tool-close { visibility: hidden; }
@media(max-width:600px) { .send-content { padding: 16px; } .send-downloads .btn { flex: 1; } .send-content .btn { max-width: 100%; } }

/* V2 etapa 2: quantidades somente no checklist, sem mudar o hero. */
.checklist-steps{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0;font-size:12px}
.checklist-steps span,.checklist-steps button{border:1px solid #c8d3cc;border-radius:8px;padding:10px;background:white;color:#293d34}
.checklist-privacy{font-size:11px;line-height:1.5;color:#52635a;padding:0 12px;margin:0 0 8px}
.list-panel{min-width:0}.list-panel-head{flex-wrap:wrap;gap:8px}.list-status{font-size:11px}
.checklist-item{display:grid;gap:7px;padding:12px;border:1px solid #d2ddd6;border-radius:10px;flex-shrink:0;font-size:12px;overflow-wrap:anywhere}
.checklist-item small{line-height:1.5}.checklist-item label{font-weight:700}.checklist-item input{width:100%;min-width:0;border:1px solid #83978a;border-radius:7px;padding:10px;font:inherit;font-size:16px}
.checklist-item [aria-invalid=true]{border-color:#a02d22}.quantity-error{color:#a02d22}.quantity-status{color:#225439}.quantity-error,.quantity-status{margin:0;line-height:1.5}
.checklist-item-actions{display:flex;gap:10px;flex-wrap:wrap}.checklist-item-actions button,.checklist-clear button{padding:10px;border:1px solid #b5c5ba;border-radius:6px;background:white;color:#293d34;cursor:pointer}
.checklist-clear{padding:12px}.checklist-clear summary{font-weight:700;min-height:30px}.checklist-item :focus-visible,.checklist-steps :focus-visible{outline:3px solid #a2522c;outline-offset:2px}
[data-checklist-review]:disabled{opacity:.65;cursor:not-allowed}

/* V2 etapa 4: identificação opcional para downloads, ações independentes. */
.export-info{margin:12px 25px;padding:12px;border:1px solid #d2ddd6;border-radius:10px;font-size:12px}.export-info summary{font-weight:700;min-height:24px}.export-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.export-info label{display:grid;gap:5px}.export-info input{min-width:0;width:100%;padding:10px;border:1px solid #83978a;border-radius:7px;font-size:16px}.review-actions>.action-choice{flex:1 1 200px}.contact-hint{font-size:12px;line-height:1.5}.review-actions{flex-wrap:wrap!important}button[aria-busy=true]{opacity:.65;cursor:wait}@media(max-width:600px){.export-info{margin:12px 16px}.export-info-grid{grid-template-columns:1fr}.review-actions>.btn,.review-actions>.action-choice{flex-basis:100%}}

/* V2 etapa 5: contraste, teclado e movimento reduzido. */
:root{--green:#087951;--terracotta:#99533f;--muted:#596561}
:is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #98512d;outline-offset:3px}
.close-button{flex-shrink:0;min-width:34px;min-height:34px}
.modal-backdrop>div{overscroll-behavior:contain}
@media(max-width:600px){.review-table{min-width:0;width:100%}.review-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.review-table tbody{display:block}.review-table tr{display:grid;padding:12px}.review-table td{display:block;padding:5px 0;border:0;overflow-wrap:anywhere;line-height:1.6}.review-table td::before{content:attr(data-label);display:block;font-size:10px;font-weight:700;color:#596561}.review-table tr+tr{border-top:1px solid var(--line)}.review-table-wrap{overflow:visible}.review-table .review-edit,.review-table .review-remove{min-height:32px;margin-right:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.conductor-class-static{display:grid;gap:5px;padding:10px 11px;border:1px solid var(--line);border-radius:10px;font-size:12px;color:#43504b;overflow-wrap:anywhere}.conductor-class-static strong{font-size:11px}

/* Large reviews render 20 rows; every export still uses the full checklist. */
.review-pager{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 0;font-size:12px}.review-pager>span:first-child{flex:1 1 180px}.review-pager label{display:flex;align-items:center;gap:6px}.review-pager select{padding:9px;border:1px solid #83978a;border-radius:7px;background:white;font-size:16px}.review-pager .btn{min-height:40px}.review-pager button:disabled{opacity:.5;cursor:default}@media(max-width:600px){.review-pager{gap:8px}.review-pager>span:first-child{flex-basis:100%}.review-pager .btn{padding:9px 12px}}

/* Preview adaptive flow: retain existing palette and layout. */
.config-section:not(.open) .field-content{display:none}.field-content{display:flex;flex-direction:column;gap:8px}.choice:disabled{opacity:.45;cursor:not-allowed}.add-button:disabled{opacity:.5;cursor:not-allowed}.form-quantities{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid #cbded5;border-radius:10px;background:#f7faf8}.form-quantity-row{display:flex;flex-direction:column;gap:6px}.form-quantity-row label,.form-quantity-row strong{font-size:12px;color:#33413c}.form-quantity-row input,.form-quantity-row select{width:100%;min-height:44px;padding:9px;border:1px solid #83978a;border-radius:8px;background:#fff;font-size:16px}.form-quantity-row input:focus,.form-quantity-row select:focus{outline:2px solid #087452;outline-offset:2px}.form-quantity-row small,.fixed-package,.form-quantity-status,.flow-notice{font-size:12px;line-height:1.5}.form-quantity-status{margin:0;color:#126345}.flow-notice{color:#785226;margin:0}.quantity-error:empty{display:none}.form-quantities .btn{align-self:flex-start;min-height:44px}@media(prefers-reduced-motion:reduce){.product-card,.config-section{scroll-behavior:auto;transition:none}}

.supply-inline{display:flex;flex-direction:column;align-items:stretch;padding:14px;gap:10px;border-color:#8fbfa9}.supply-inline select{min-height:44px;width:100%;font-size:14px}.supply-inline .form-quantities{background:#fff}.config-section.open{border-color:#087452;box-shadow:0 0 0 2px #08745215}.order-summary [data-confirmed-summary]{display:block;margin-top:6px;font-weight:700;color:#087452}

.color-option-label{display:flex;align-items:center;gap:10px;min-width:0}.color-swatch{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px;border-radius:50%;border:1px solid #b5bfbb;box-shadow:inset 0 0 0 1px #ffffff35}.color-swatch-neutral{background:#f3f5f4;color:#65756d;font-size:14px}.choice[data-field=cor] .choice-mark{width:18px;height:18px;font-size:12px;border-radius:50%}

.choice[data-field=cor] .choice-mark{order:-1;border-radius:5px}.choice[data-field=cor] .color-option-label{margin-left:auto;justify-content:flex-end}

.technical-notice{display:flex;align-items:center;gap:7px;padding:7px 9px;margin:8px 0;border-radius:7px;background:#eff8f3;color:#245d49;font-size:11px;line-height:1.4;font-weight:600}.technical-notice svg{flex:0 0 18px}.technical-notice span{min-width:0;overflow-wrap:anywhere}@media(max-width:600px){.technical-notice{font-size:10px;padding:6px 8px}}
