/* Ideauto. Uma família (Archivo) em duas larguras: expandida nos títulos, normal no texto.
   O motivo visual das telas do cliente é a placa do próprio veículo. */
/* Variáveis de cor, raio e fonte. A CSP bloqueia estilo inline: todo estilo fica aqui. */
:root {
  --navy: #00238C; --night: #071452; --orange: #FD8601; --orange-ink: #8F4A00; --orange-wash: #FFF2E2;
  --ink: #0C1440; --slate: #545E85; --rule: #DDE2EF; --mist: #EEF1F8; --paper: #fff;
  --ok: #0A6B3A; --ok-wash: #E2F4E9; --bad: #A3192B; --bad-wash: #FCE9EB;
  --font: "Archivo", system-ui, sans-serif;
  --r-field: 10px; --r-block: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 400 15px/1.55 var(--font); background: var(--mist); color: var(--ink); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration: none; }
h1, h2, h3 { font-stretch: 116%; font-weight: 800; letter-spacing: -.012em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: 30px; }
h2 { font-size: 19px; }
h3 { font-size: 15.5px; font-weight: 700; font-stretch: 108%; }
img, video { max-width: 100%; display: block; }
.muted { color: var(--slate); }
.small { font-size: 13px; }

/* formulários */
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 13px; font: 500 16px var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r-field); transition: border-color .15s; }
input:hover, select:hover, textarea:hover { border-color: #B9C1DA; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(253,134,1,.35); outline-offset: 0; border-color: var(--orange); }
input::placeholder { color: #8189A8; font-weight: 400; }
select { appearance: none; padding-right: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23545E85' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 13px center/16px no-repeat; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--navy); }
textarea { min-height: 96px; resize: vertical; }
label { display: block; font-size: 13.5px; font-weight: 600; color: #2C3766; }
label > input, label > select, label > textarea { margin-top: 6px; }
label.check { display: flex; gap: 11px; align-items: flex-start; font-weight: 500; font-size: 14.5px; color: var(--ink); line-height: 1.4; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
.two, .three { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
fieldset { border: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; min-width: 0; }
legend { font: 800 17px var(--font); font-stretch: 116%; margin-bottom: 12px; }

/* Botões e variações (orange = ação principal, ghost = secundária, wa = WhatsApp). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border: 1.5px solid transparent; border-radius: var(--r-field); background: var(--navy); color: #fff; font: 700 14.5px var(--font); font-stretch: 105%; cursor: pointer; white-space: nowrap; transition: transform .1s, background-color .15s, border-color .15s; }
.btn:hover { background: var(--night); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn:disabled { background: #DCE0EC; color: #565F80; border-color: transparent; cursor: default; }
.btn.orange { background: var(--orange); color: var(--night); }
.btn.orange:hover { background: #FF9A29; }
.btn.orange:disabled { background: #DCE0EC; color: #565F80; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.danger { background: var(--paper); color: var(--bad); border-color: #F0C4CA; }
.btn.danger:hover { background: var(--bad-wash); }
.btn.wa { background: #25D366; color: #04260F; }
.btn.wa:hover { background: #3DE07A; }
.btn.sm { min-height: 38px; padding: 0 13px; font-size: 13px; }
.btn.lg { min-height: 56px; font-size: 16.5px; }
.btn.block { width: 100%; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spread { justify-content: space-between; }
.error { padding: 12px 15px; border-radius: var(--r-field); background: var(--bad-wash); color: var(--bad); font-weight: 600; font-size: 14px; }
.notice { padding: 13px 15px; border-radius: var(--r-field); background: var(--orange-wash); color: var(--orange-ink); font-weight: 600; font-size: 14px; }

/* placa do veículo */
.plate { display: inline-block; min-width: 188px; overflow: hidden; border: 3px solid #0A0F26; border-radius: 9px; background: #fff; color: #0A0F26; box-shadow: 0 10px 24px -12px rgba(0,0,0,.65); }
.plate i { display: block; padding: 2px 10px; background: #0B3C9E; color: #fff; font: 700 9.5px var(--font); font-style: normal; letter-spacing: .34em; text-align: center; }
.plate b { display: block; padding: 3px 16px 5px; font: 800 34px/1.1 var(--font); font-stretch: 78%; letter-spacing: .09em; text-align: center; }
.plate.sm { min-width: 0; border-width: 2px; border-radius: 6px; box-shadow: none; }
.plate.sm i { font-size: 6.5px; padding: 1px 6px; }
.plate.sm b { font-size: 16px; padding: 0 8px 1px; }

/* páginas do cliente */
body.public { background: var(--paper); }
.hero { background: var(--night); color: #fff; padding: 20px 20px 30px; }
.hero > div { max-width: 600px; margin: 0 auto; }
.hero img { width: 112px; }
.hero h1 { margin-top: 28px; font-size: clamp(27px, 7.4vw, 36px); }
.hero p { margin-top: 8px; color: #C3CCF0; max-width: 46ch; }
.hero .plate { margin-top: 26px; }
.hero .plate + h1 { margin-top: 20px; }
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 24px; list-style: none; font-size: 12.5px; font-weight: 600; color: #8F9BD0; }
.route li { border-top: 4px solid rgba(255,255,255,.16); padding-top: 8px; }
.route li.done { border-color: #5A6BC0; color: #C3CCF0; }
.route li.now { border-color: var(--orange); color: #fff; }
.client { max-width: 640px; margin: 0 auto; padding-bottom: 168px; }
.band { padding: 28px 20px; border-bottom: 8px solid var(--mist); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.band:last-child { border-bottom: 0; }
/* Barra fixa inferior das páginas do cliente. */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--paper); border-top: 1px solid var(--rule); box-shadow: 0 -14px 30px -22px rgba(7,20,82,.5); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.dock > div { max-width: 600px; margin: 0 auto; display: grid; gap: 9px; }
.price { font: 800 52px/1 var(--font); font-stretch: 112%; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.next-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.next-steps li::marker { font-weight: 800; color: var(--orange-ink); }
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 8px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-46deg); }

/* comparativo */
.cmp { --cols: 2; margin: 0 -8px; }
.compare[data-cols="1"] .cmp { --cols: 1; }
.compare[data-cols="3"] .cmp { --cols: 3; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(var(--cols), minmax(0, 1fr)); width: 100%; border: 0; border-bottom: 1px solid var(--rule); background: none; font: inherit; color: inherit; text-align: left; }
.cmp-row > span:first-child { align-self: center; padding: 14px 8px; }
.cmp-head { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 2px solid var(--ink); }
.cmp-plan { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 12px 5px 14px; border-radius: 12px 12px 0 0; text-align: center; }
.cmp-plan b { font-stretch: 116%; font-weight: 800; font-size: 17px; }
.cmp-price { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.cmp-price small { display: block; font-weight: 500; font-size: 11.5px; line-height: 1; color: var(--slate); }
.cmp-plan .btn { width: 100%; padding: 0 3px; }
.cmp-plan.on, .cmp-mark.on { background: var(--orange-wash); }
.cmp-item { cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1.3; }
.cmp-item i { margin-left: 6px; color: var(--orange-ink); font-style: normal; font-weight: 800; }
.cmp-mark { display: grid; place-items: center; align-content: center; padding: 8px 2px; text-align: center; }
.cmp-mark .yes { color: var(--ok); font-size: 19px; }
.cmp-mark .no { color: #9BA3BF; }
.cmp-mark small { font-weight: 700; font-size: 11.5px; color: var(--slate); }
.cmp-detail { display: grid; gap: 6px; margin: 10px 8px; padding: 14px 16px; border-radius: var(--r-block); background: var(--mist); font-size: 14px; }
.upgrade { background: var(--night); color: #fff; border-bottom: 0; }
.upgrade .checklist { color: #DCE2FA; }
label.bump { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--rule); border-radius: var(--r-block); font-weight: 400; font-size: 15px; color: var(--ink); cursor: pointer; }
label.bump > input { margin-top: 2px; width: 22px; height: 22px; }
label.bump > span { display: grid; gap: 3px; }
label.bump strong { color: var(--orange-ink); font-size: 14px; }
label.bump.on { border-color: var(--orange); background: var(--orange-wash); }

/* envio de arquivos */
.upload { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; }
.upload > .icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--r-block); background: var(--mist); color: var(--navy); }
.upload > .icon svg { width: 30px; height: 30px; }
.upload.done > .icon { background: var(--ok-wash); color: var(--ok); }
.upload.redo > .icon { background: var(--orange-wash); color: var(--orange-ink); }
.upload h2 { font-size: 17px; }
.upload > .full { grid-column: 1 / -1; margin-top: 8px; }
.upload input[type=file] { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.upload img, .upload video { width: 100%; max-height: 260px; object-fit: contain; border-radius: var(--r-block); background: var(--night); }
.upload label.btn { margin: 0; }
.upload > button.full { margin-top: 8px; }
.upload label.btn:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.file { padding: 14px; border-radius: var(--r-field); background: var(--mist); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }

/* assinatura */
.pad { position: relative; border: 2px dashed #AEB7D4; border-radius: var(--r-block); background: #FAFBFE; touch-action: none; }
.pad canvas { display: block; width: 100%; height: 190px; cursor: crosshair; }
.pad::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 44px; border-bottom: 1.5px solid #AEB7D4; pointer-events: none; }
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.summary small { display: block; color: var(--slate); font-weight: 600; font-size: 12.5px; }
.summary div { overflow-wrap: anywhere; font-weight: 600; }

/* acesso */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--paper); }
.auth > .brand { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 44px clamp(24px, 5vw, 72px); background: var(--night); color: #fff; }
.auth > .brand img { width: 150px; }
.auth > .brand h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; max-width: 11ch; }
.auth > .brand p { color: #AEB9E8; }
.auth > .box { align-self: center; justify-self: center; width: min(420px, 100%); padding: 32px 24px; display: grid; gap: 14px; }

/* aplicação interna */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.shell > * { min-width: 0; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 22px 14px; background: var(--night); color: #fff; }
.side img { width: 116px; margin: 0 10px; }
.side nav { display: grid; gap: 2px; }
.side a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-field); color: #B9C3EE; font-weight: 600; }
.side a svg { width: 19px; height: 19px; }
.side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side a.on { background: #fff; color: var(--night); }
.side a.on svg { color: var(--orange); }
.side .me { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #B9C3EE; }
.side .me b { display: block; color: #fff; font-size: 14.5px; }
.side .me button { margin-top: 6px; border: 0; background: none; color: var(--orange); font: 700 13px var(--font); cursor: pointer; }
main { padding: 32px clamp(16px, 3vw, 44px) 64px; min-width: 0; }
main > div, .cols > *, .stack > *, .form > *, .two > *, .three > * { min-width: 0; }
.topbar, .tabbar { display: none; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.head p { margin-top: 4px; }
.back { display: inline-block; margin-bottom: 12px; font-weight: 700; font-size: 13.5px; }
/* Blocos básicos da aplicação interna: cartões, pilhas e colunas. */
.card { padding: 20px; border-radius: var(--r-block); background: var(--paper); }
.card > h2 { margin-bottom: 14px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.section-gap { margin-top: 16px; }
.empty { padding: 28px 12px; text-align: center; color: var(--slate); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--mist); color: var(--navy); font-weight: 700; font-size: 12px; white-space: nowrap; }
.tag.ok { background: var(--ok-wash); color: var(--ok); }
.tag.warn { background: var(--orange-wash); color: var(--orange-ink); }
.tag.bad { background: var(--bad-wash); color: var(--bad); }

/* Painel: indicadores, meta e barras. */
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 1px; overflow: hidden; border-radius: var(--r-block); background: var(--rule); }
.metric { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 0; background: var(--paper); font: inherit; color: inherit; text-align: left; cursor: pointer; box-shadow: 0 0 0 1px var(--rule); }
button.metric:not(:disabled):hover { background: #F8F9FE; }
.metric:disabled { cursor: default; }
.metric .k { font-weight: 600; font-size: 13px; color: var(--slate); }
.metric .v { font-weight: 800; font-stretch: 112%; font-size: 29px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.metric .d { font-size: 12.5px; color: var(--slate); }
.metric .d.up { color: var(--ok); }
.metric .d.down { color: var(--bad); }
.goal { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; margin-bottom: 16px; padding: 24px; background: var(--night); color: #fff; }
.goal b { display: block; font-weight: 800; font-stretch: 114%; font-size: 34px; font-variant-numeric: tabular-nums; }
.goal span { font-size: 13px; color: #B9C3EE; }
.goal .meter { flex: 1; min-width: 200px; height: 10px; background: rgba(255,255,255,.14); }
.meter { height: 8px; overflow: hidden; border-radius: 3px; background: var(--mist); }
.meter i { display: block; width: 0; height: 100%; background: var(--orange); transition: width .3s; }
.bars { display: grid; gap: 12px; }
.bars > div { display: grid; grid-template-columns: 128px 1fr 36px; align-items: center; gap: 12px; font-weight: 600; font-size: 13.5px; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.filters label { min-width: 170px; }

.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
/* Tabelas. */
th { padding: 8px 10px; border-bottom: 2px solid var(--ink); text-align: left; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
td { padding: 13px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover { background: #F7F8FD; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.lane { display: grid; gap: 8px; align-content: start; }
/* Funil de leads (colunas). */
.lane > h3 { display: flex; justify-content: space-between; padding: 0 2px 8px; border-bottom: 3px solid var(--ink); font-size: 14px; }
.lead { display: grid; gap: 3px; padding: 13px; border: 1.5px solid transparent; border-radius: var(--r-field); background: var(--paper); color: inherit; }
.lead:hover { border-color: var(--navy); }
.lead b { font-weight: 700; }
.chips { display: none; }

/* Ficha do lead: dados, jornada e histórico. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.facts > div { font-weight: 600; overflow-wrap: anywhere; }
.facts small { display: block; font-weight: 600; font-size: 12.5px; color: var(--slate); }
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 16px; overflow: hidden; border-radius: var(--r-block); background: var(--rule); list-style: none; }
.journey li { padding: 14px 16px; border-top: 4px solid #C6CDE2; background: var(--paper); font-size: 13px; color: var(--slate); }
.journey li b { display: block; color: var(--ink); font-size: 14.5px; }
.journey li.done { border-color: var(--ok); }
.journey li.now { border-color: var(--orange); }
.steps { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.steps button { flex: 1 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-field); background: var(--paper); color: var(--slate); font: 700 13.5px var(--font); cursor: pointer; }
.steps button.on { background: var(--navy); color: #fff; }
.timeline { display: grid; gap: 14px; list-style: none; }
.timeline li { padding-left: 14px; border-left: 3px solid var(--rule); overflow-wrap: anywhere; white-space: pre-wrap; }
.linkbox { display: grid; gap: 10px; padding: 14px; border: 1.5px solid var(--rule); border-radius: var(--r-field); }
.linkbox code { font: 400 12px ui-monospace, monospace; color: var(--slate); overflow-wrap: anywhere; }
.finder { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-block); background: var(--mist); }
.finder .plate-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.finder input[name=plate] { text-transform: uppercase; font-weight: 800; font-stretch: 80%; font-size: 22px; letter-spacing: .12em; border: 2.5px solid #0A0F26; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.shot { display: grid; gap: 10px; align-content: start; padding: 12px; }
.shot img, .shot video { width: 100%; aspect-ratio: 4/3; object-fit: contain; border-radius: var(--r-field); background: var(--night); }
.shot .none { display: grid; place-items: center; aspect-ratio: 4/3; border-radius: var(--r-field); background: var(--mist); color: var(--slate); font-weight: 600; font-size: 13.5px; text-align: center; padding: 10px; }
.damages { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px 18px; }
.damages label { display: grid; grid-template-columns: minmax(0, 1fr) 130px; align-items: center; gap: 8px; font-weight: 500; }
.damages select { min-height: 38px; margin: 0; padding-block: 6px; font-size: 14px; }

dialog { width: min(540px, calc(100vw - 20px)); max-height: 90vh; margin: auto; padding: 24px; border: 0; border-radius: 18px; color: var(--ink); }
dialog.wide { width: min(900px, calc(100vw - 20px)); }
dialog::backdrop { background: rgba(4,11,48,.65); }
dialog h2 { margin-bottom: 14px; font-size: 22px; }
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 60; max-width: calc(100vw - 32px); padding: 13px 18px; border-radius: var(--r-field); transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 18px 36px -14px rgba(0,0,0,.5); }

/* Responsivo: tablet e celular. */
@media (max-width: 1100px) { .cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; background: var(--night); }
  .topbar img { width: 94px; }
  .topbar a { color: #fff; font-weight: 700; font-size: 13.5px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 2px; overflow-x: auto; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--paper); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; flex: 1 0 74px; padding: 7px 8px; border-radius: var(--r-field); color: var(--slate); font-weight: 700; font-size: 11.5px; }
  .tabbar a svg { width: 20px; height: 20px; }
  .tabbar a.on { background: var(--night); color: #fff; }
  main { padding: 20px 14px 104px; }
  h1 { font-size: 25px; }
  .card { padding: 16px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 14px; }
  .metric .v { font-size: 23px; }
  .two, .three { grid-template-columns: minmax(0, 1fr); }
  .filters { width: 100%; }
  .filters label { flex: 1; min-width: 130px; }
  .board { grid-auto-flow: row; grid-auto-columns: minmax(0, 1fr); }
  .lane { display: none; }
  .lane.on { display: grid; }
  .chips { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
  .chips button { flex: none; min-height: 40px; padding: 0 13px; border: 0; border-radius: var(--r-field); background: var(--paper); color: var(--slate); font: 700 13px var(--font); }
  .chips button.on { background: var(--navy); color: #fff; }
  .facts { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: 1fr 1fr; }
  .bars > div { grid-template-columns: 104px 1fr 30px; }
  .auth { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .auth > .brand { gap: 20px; padding: 28px 24px 32px; }
  .auth > .brand p { display: none; }
  .auth > .brand h2 { font-size: 30px; max-width: 15ch; }
}
@media (max-width: 480px) {
  .cmp-price { font-size: 15.5px; }
  .cmp-plan b { font-size: 15px; }
  .cmp-plan .btn { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* cotação: adicionais em destaque e valores no fim */
.bumps h2 { font-size: 22px; }
.bumps label.bump { border-width: 2px; }
.gifts { background: var(--ok-wash); }
.gifts .checklist li::before { border-color: var(--ok); }
.vt { display: grid; border-top: 2px solid var(--ink); }
.vt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--rule); background: none; font: inherit; color: inherit; text-align: left; }
.vt-row > span small { display: block; color: var(--slate); font-size: 12px; }
.vt-row b { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 16px; }
.vt-row b small { color: var(--slate); font-weight: 500; font-size: 12px; }
button.vt-row { cursor: pointer; }
.vt-row.on { background: var(--orange-wash); box-shadow: inset 4px 0 0 var(--orange); padding-left: 12px; }
.vt-row.sum b { font-size: 20px; }
.finder .error { padding: 8px 12px; }

.lead .tag { justify-self: start; }

/* Preenchimento da ficha: documentos de um lado, formulário do outro. */
.fill { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.docs { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 16px; }
.docs figure { margin: 0; display: grid; gap: 8px; justify-items: start; }
.docs figcaption { font-weight: 700; font-size: 13px; }
.docs img, .docs video { display: block; width: 100%; border-radius: var(--r-field); background: var(--mist); }
@media (max-width: 1100px) { .fill { grid-template-columns: minmax(0, 1fr); } .docs { position: static; max-height: 60vh; } }
.summary .wide { grid-column: 1 / -1; }

/* Perfis de acesso: lista de permissões por grupo. */
input[readonly] { background: var(--mist); color: var(--slate); }
.perms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.perms fieldset { border: 1.5px solid var(--rule); border-radius: var(--r-field); padding: 12px 14px; display: grid; gap: 10px; align-content: start; }
.perms legend { padding: 0 6px; font-weight: 800; }
.steps button:disabled { opacity: .45; cursor: default; }

/* Autorizações e câmera em tela cheia. */
.permissions { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.permissions li { padding: 13px 15px; border: 1.5px solid var(--rule); border-radius: var(--r-field); }
.camera { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #000; color: #fff; }
.camera header { display: grid; gap: 4px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: var(--night); }
.camera header span { font-size: 13px; opacity: .85; }
.camera .view { position: relative; min-height: 0; }
.camera video, .camera img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.camera [hidden] { display: none; }
.camera .clock { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; background: #B3261E; font-weight: 700; font-size: 13px; white-space: nowrap; }
.camera footer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--night); }
