/* LocaPronto: demonstração interativa do sistema (home e /demonstracao/).
   Usa só os tokens de site.css. Cores de status: azul (pago), cinza (pendente), vermelho escuro (atrasado). */

.demo { --d-line: var(--line-light); --d-soft: #ECEDF2; background: var(--white); border: 1px solid var(--d-line); border-radius: var(--r-lg); box-shadow: var(--shadow-device); overflow: hidden; color: var(--ink); font-weight: 400; font-size: 15px; line-height: 1.5; }
.demo button { cursor: pointer; }
.demo [hidden] { display: none !important; }

/* Barra do topo da janela */
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--navy); color: var(--on-dark-muted); font-size: 13px; }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.demo-bar-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .09); color: var(--white); font-size: 12px; font-weight: 600; white-space: nowrap; }
.demo-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: var(--white); font-size: 13px; }
.demo-reset:hover { background: rgba(255, 255, 255, .1); }
.demo-bar :focus-visible { outline-color: var(--white); }

.demo-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 580px; }
.demo[data-demo="lite"] .demo-shell { grid-template-columns: 1fr; min-height: 0; }

/* Menu lateral */
.demo-nav { background: var(--navy-2); color: var(--on-dark-muted); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.demo-nav :focus-visible { outline-color: var(--white); }
.demo-nav-label { margin: 14px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8B8FA6; }
.demo-nav-label:first-child { margin-top: 2px; }
.demo-tab { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--on-dark-muted); font-size: 14px; font-weight: 400; text-align: left; }
.demo-tab:hover { background: rgba(255, 255, 255, .07); color: var(--white); }
.demo-tab[aria-current="true"] { background: var(--grad-red); color: var(--white); font-weight: 600; }
.demo-tab .ic { width: 20px; height: 20px; }
.demo-tab .demo-lock { margin-left: auto; width: 16px; height: 16px; opacity: .7; }
.demo-tab[aria-current="true"] .demo-lock { opacity: 1; }
.demo-count { margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 12px; font-weight: 600; text-align: center; line-height: 20px; }

/* Abas do modo lite */
.demo-tabs { display: flex; gap: 6px; padding: 10px 12px 0; background: var(--paper); border-bottom: 1px solid var(--d-line); }
.demo-tabs .demo-tab { width: auto; color: var(--ink-muted); border-radius: var(--r-sm) var(--r-sm) 0 0; padding: 0 16px; min-height: 44px; }
.demo-tabs .demo-tab:hover { background: var(--d-soft); color: var(--ink); }
.demo-tabs .demo-tab[aria-current="true"] { background: var(--white); color: var(--ink); box-shadow: inset 0 -3px 0 var(--red); }

/* Conteúdo */
.demo-main { background: var(--paper); padding: 24px; min-width: 0; }
.demo[data-demo="lite"] .demo-main { padding: 20px; }
.demo-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.demo-head h3 { font-size: 22px; letter-spacing: -.02em; }
.demo-head p { color: var(--ink-muted); font-size: 14px; max-width: 52ch; }

.demo-hint { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: #E6EEF9; color: #00316B; font-size: 14px; }
.demo-hint .ic { margin-top: 2px; color: var(--blue); }
.demo-hint button { margin-left: auto; align-self: center; flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--blue); background: var(--white); color: var(--blue); font-weight: 600; font-size: 13px; }

.demo-card { background: var(--white); border: 1px solid var(--d-line); border-radius: var(--r); padding: 16px 18px; }
.demo-card h4 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; }

/* Indicadores */
.demo-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.demo-kpi { background: var(--white); border: 1px solid var(--d-line); border-radius: var(--r); padding: 14px 16px; }
.demo-kpi span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.demo-kpi span .ic { width: 16px; height: 16px; }
.demo-kpi strong { display: block; margin-top: 4px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.demo-kpi small { display: block; font-size: 12px; color: var(--ink-muted); }
.demo-kpi--late strong { color: var(--red-dark); }
.demo-kpi.is-bump { animation: demo-bump .5s var(--ease); }
@keyframes demo-bump { 0% { transform: scale(1); } 40% { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(0, 77, 168, .25); } 100% { transform: scale(1); } }

.demo-two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.demo-meter { margin-bottom: 14px; }
.demo-meter:last-child { margin-bottom: 0; }
.demo-meter-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.demo-meter-top b { font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-track { height: 10px; border-radius: 999px; background: var(--d-soft); overflow: hidden; }
.demo-fill { display: block; height: 100%; border-radius: 999px; background: var(--grad-blue); transition: width .6s var(--ease); }
.demo-fill--red { background: var(--grad-red); }

.demo-list { display: grid; gap: 0; }
.demo-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--d-line); }
.demo-list li:first-child { border-top: 0; padding-top: 0; }
.demo-list li:last-child { padding-bottom: 0; }
.demo-list .grow { flex: 1; min-width: 0; }
.demo-list .grow b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-list .grow small { color: var(--ink-muted); font-size: 13px; }
.demo-empty { padding: 14px 0; color: var(--ink-muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* Etiquetas de status */
.demo-st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--d-soft); color: #454B66; }
.demo-st .ic { width: 14px; height: 14px; }
.demo-st--pago, .demo-st--alugada { background: #E6EEF9; color: #004DA8; }
.demo-st--atrasado { background: #FDE8EA; color: var(--red-dark); }
.demo-st--manutencao { background: #FFF1E0; color: #8A4B00; }

/* Botões pequenos do app */
.demo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.demo-btn .ic { width: 18px; height: 18px; }
.demo-btn--primary { background: var(--grad-red); color: var(--white); }
.demo-btn--primary:hover { filter: brightness(1.06); }
.demo-btn--dark { background: var(--navy); color: var(--white); }
.demo-btn--dark:hover { background: #22243c; }
.demo-btn--line { background: var(--white); color: var(--ink); border-color: var(--d-line); }
.demo-btn--line:hover { border-color: var(--ink); }
.demo-btn--sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.demo-btn[disabled] { opacity: .55; cursor: default; }
.demo-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--d-line); background: var(--white); color: var(--ink); }
.demo-icon-btn:hover { border-color: var(--ink); }

/* Filtros */
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.demo-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--d-line); background: var(--white); color: var(--ink); font-size: 14px; }
.demo-chip:hover { border-color: var(--ink); }
.demo-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.demo-chip b { font-weight: 600; margin-left: 4px; opacity: .8; }

/* Tabela de cobranças */
.demo-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--d-line); border-radius: var(--r); overflow: hidden; }
.demo-table th { padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); background: #FAFAFC; border-bottom: 1px solid var(--d-line); }
.demo-table td { padding: 10px 14px; border-top: 1px solid var(--d-line); vertical-align: middle; }
.demo-table tr:first-child td { border-top: 0; }
.demo-table td b { font-weight: 600; display: block; }
.demo-table td small { color: var(--ink-muted); font-size: 13px; }
.demo-table .num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.demo-table .act { text-align: right; }
.demo-table .act .row { display: inline-flex; gap: 8px; align-items: center; }
.demo-table tr.is-flash td { animation: demo-flash 1.4s var(--ease); }
@keyframes demo-flash { 0% { background: #E6EEF9; } 100% { background: transparent; } }
.demo-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.demo-auto .ic { width: 16px; height: 16px; color: var(--blue); }

/* Frota */
.demo-fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.demo-veh { text-align: left; background: var(--white); border: 1px solid var(--d-line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; transition: border-color .15s, transform .15s; }
.demo-veh:hover { border-color: var(--ink); transform: translateY(-2px); }
.demo-veh-top { display: flex; align-items: center; gap: 10px; }
.demo-veh-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--paper); color: var(--navy); flex: none; }
.demo-veh-top b { display: block; font-weight: 600; line-height: 1.25; }
.demo-veh-top small { color: var(--ink-muted); font-size: 13px; }
.demo-veh-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); }

/* Nova locação */
.demo-steps { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.demo-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.demo-step i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--d-soft); font-style: normal; font-weight: 600; color: var(--ink-muted); }
.demo-step.is-on { color: var(--ink); font-weight: 600; }
.demo-step.is-on i { background: var(--navy); color: var(--white); }
.demo-step.is-done i { background: var(--blue); color: var(--white); }
.demo-step + .demo-step::before { content: ''; width: 18px; height: 1px; background: var(--d-line); }
.demo-options { display: grid; gap: 10px; }
.demo-option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; min-height: 56px; background: var(--white); border: 1px solid var(--d-line); border-radius: var(--r-sm); }
.demo-option:hover { border-color: var(--ink); }
.demo-option[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0, 77, 168, .22); }
.demo-option b { font-weight: 600; display: block; line-height: 1.3; }
.demo-option small { color: var(--ink-muted); font-size: 13px; }
.demo-option .demo-st { margin-left: auto; }
.demo-field { display: grid; gap: 6px; margin-bottom: 14px; }
.demo-field label, .demo-field > span { font-size: 14px; font-weight: 600; }
.demo-field output { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.demo-field input[type="range"] { width: 100%; accent-color: var(--red); min-height: 32px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.demo-contract { background: var(--white); border: 1px solid var(--d-line); border-radius: var(--r-sm); padding: 18px 20px; font-size: 14px; line-height: 1.6; max-height: 320px; overflow: auto; }
.demo-contract h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.demo-contract p { margin-bottom: 8px; }
.demo-contract mark { background: #E6EEF9; color: #00316B; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.demo-contract-note { margin-top: 10px; font-size: 13px; color: var(--ink-muted); }
.demo-split { display: grid; grid-template-columns: 1fr 250px; gap: 18px; align-items: start; }
.demo-phone { background: var(--navy); border-radius: 30px; padding: 10px; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .5); }
.demo-phone-screen { background: var(--white); border-radius: 22px; padding: 22px 16px 18px; text-align: center; display: grid; gap: 12px; }
.demo-phone-screen img { margin: 0 auto; }
.demo-phone-screen b { font-weight: 600; }
.demo-phone-screen p { font-size: 13px; color: var(--ink-muted); }
.demo-signed { display: grid; place-items: center; gap: 6px; color: var(--blue); }
.demo-signed .ic { width: 44px; height: 44px; }
.demo-done { display: grid; gap: 12px; justify-items: start; }
.demo-done .big { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #E6EEF9; color: var(--blue); }
.demo-done .big .ic { width: 30px; height: 30px; }

/* Funções do sistema completo (bloqueadas) */
.demo-locked { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; background: var(--navy); color: var(--white); border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden; }
.demo-locked::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 26px); pointer-events: none; }
.demo-locked > * { position: relative; z-index: 1; }
.demo-locked :focus-visible { outline-color: var(--white); }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.demo-pill .ic { width: 16px; height: 16px; }
.demo-locked h3 { font-size: 26px; margin-bottom: 10px; }
.demo-locked p { color: var(--on-dark-muted); }
.demo-locked ul { display: grid; gap: 10px; margin: 16px 0 0; }
.demo-locked li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.demo-locked li .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--white); }
.demo-locked-cta { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; }
.demo-locked-cta strong { font-size: 18px; font-weight: 600; line-height: 1.3; }
.demo-locked-cta .link-wa { color: var(--white); }
.demo-note { margin-top: 14px; font-size: 13px; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }
.demo-note .ic { width: 16px; height: 16px; }

/* Janela de diálogo (Pix, WhatsApp, veículo) */
.demo-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); font-family: var(--font); font-weight: 400; font-size: 15px; line-height: 1.5; }
.demo-dialog::backdrop { background: rgba(11, 12, 24, .62); backdrop-filter: blur(3px); }
.demo-dialog-in { padding: 22px; display: grid; gap: 14px; }
.demo-dialog-head { display: flex; align-items: flex-start; gap: 12px; }
.demo-dialog-head h3 { font-size: 19px; flex: 1; }
.demo-dialog-head p { font-size: 14px; color: var(--ink-muted); margin-top: 2px; font-weight: 300; }
.demo-x { margin: -6px -8px 0 0; }
.demo-pix { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 16px; border-radius: var(--r); background: var(--paper); }
.demo-pix svg.qr { width: 168px; height: 168px; background: #fff; padding: 8px; border-radius: 10px; }
.demo-pix-val { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.demo-code { width: 100%; padding: 10px 12px; border: 1px dashed #B7BBCB; border-radius: var(--r-sm); background: var(--white); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-muted); word-break: break-all; text-align: left; }
.demo-status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-muted); justify-content: center; }
.demo-status.is-ok { color: var(--blue); font-weight: 600; }
.demo-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #C9CCDA; border-top-color: var(--blue); animation: demo-spin .8s linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
.demo-bubble { background: #E6EEF9; color: #0B2A55; border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 14px; }
.demo-bubble small { display: block; text-align: right; margin-top: 4px; color: #4A5D80; font-size: 12px; }
.demo-prog { display: grid; gap: 6px; }

.demo-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 90; max-width: min(460px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; background: var(--navy); color: var(--white); font-size: 14px; font-weight: 400; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); display: flex; gap: 10px; align-items: flex-start; }
.demo-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.demo-toast .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* Rodapé do app */
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 20px; border-top: 1px solid var(--d-line); background: var(--white); font-size: 13px; color: var(--ink-muted); }
.demo-foot a { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.demo-noscript { padding: 24px; text-align: center; color: var(--ink-muted); }

/* Telas extras: cartões em linha, alertas, mapa, vistoria, consulta */
.demo-cards { display: grid; gap: 10px; }
.demo-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 16px; align-items: center; }
.demo-row .grow { min-width: 0; }
.demo-row .grow b { display: block; font-weight: 600; }
.demo-row .grow small { display: block; color: var(--ink-muted); font-size: 13px; }
.demo-row .grow small.demo-auto { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.demo-row-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.demo-row.is-flash { animation: demo-flashbox 1.4s var(--ease); }
@keyframes demo-flashbox { 0% { background: #E6EEF9; } 100% { background: var(--white); } }
.demo-alerts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.demo-alert { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #F3B7BD; background: #FDE8EA; color: var(--red-dark); font-size: 14px; font-weight: 600; }
.demo-alert:hover { border-color: var(--red-dark); }
.demo-alert .ic { width: 18px; height: 18px; }
.demo-split2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
.demo-map { position: relative; aspect-ratio: 600 / 380; border-radius: var(--r); overflow: hidden; border: 1px solid var(--d-line); background: #E6E9F1; }
.demo-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-map-tag { position: absolute; left: 10px; bottom: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--ink-muted); font-size: 12px; }
.demo-pin { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--white); background: var(--navy); color: var(--white); box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .5); }
.demo-pin .ic { width: 20px; height: 20px; }
.demo-pin.is-sel { background: var(--grad-red); transform: translate(-50%, -50%) scale(1.15); z-index: 2; }
.demo-pin.is-blocked { background: var(--red-dark); outline: 3px dashed var(--white); outline-offset: -8px; }
.demo-photo { display: grid; place-items: center; width: 64px; height: 44px; border-radius: 8px; background: var(--d-soft); color: #8B8FA6; }
.demo-photo.is-bad { background: #FDE8EA; color: var(--red-dark); }
.demo-table--flat td, .demo-table--flat th { padding-left: 8px; padding-right: 8px; }
.demo-table--flat { border: 0; }
.demo-input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #B7BBCB; border-radius: var(--r-sm); font: inherit; font-size: 17px; letter-spacing: .04em; background: var(--white); color: var(--ink); }
.demo-input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.demo-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--d-line); }
.demo-result h4 { margin-bottom: 10px; }

/* Modo lite (home): enxuto, principalmente no celular */
.demo[data-demo="lite"] .demo-kpis { grid-template-columns: repeat(3, 1fr); }
.demo[data-demo="lite"] .demo-two { grid-template-columns: 1fr; }
.demo[data-demo="lite"] .demo-kpi small { display: none; }

/* Páginas: blocos de apoio */
.demo-page-note { margin-top: 18px; font-size: 14px; color: var(--on-dark-muted); display: flex; align-items: center; gap: 8px; }
.demo-page-note .ic { width: 18px; height: 18px; color: var(--white); }

@media (max-width: 980px) {
  .demo-kpis { grid-template-columns: repeat(2, 1fr); }
  .demo-fleet { grid-template-columns: repeat(2, 1fr); }
  .demo-two, .demo-split, .demo-locked, .demo-split2 { grid-template-columns: 1fr; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-nav { flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .demo-nav-label { display: none; }
  .demo-nav .demo-tab { width: auto; flex: none; white-space: nowrap; }
  .demo-nav .demo-sep { flex: none; width: 1px; background: var(--line-dark); margin: 6px 4px; }
}
@media (max-width: 640px) {
  .demo { border-radius: var(--r); }
  .demo-main, .demo[data-demo="lite"] .demo-main { padding: 14px; }
  .demo-bar-title .demo-bar-text { display: none; }
  .demo-head h3 { font-size: 20px; }
  .demo-kpi strong { font-size: 20px; }
  .demo[data-demo="lite"] .demo-kpi { padding: 10px 12px; }
  .demo[data-demo="lite"] .demo-kpi strong { font-size: 17px; }
  .demo[data-demo="lite"] .demo-kpi span { font-size: 12px; }
  .demo[data-demo="lite"] .demo-kpi span .ic { display: none; }
  .demo[data-demo="lite"] .demo-head { margin-bottom: 10px; }
  .demo[data-demo="lite"] .demo-hint { padding: 10px 12px; margin-bottom: 12px; }
  .demo-fleet { grid-template-columns: 1fr; }
  .demo-row { grid-template-columns: 1fr auto; }
  .demo-row-act { grid-column: 1 / -1; justify-content: stretch; }
  .demo-row-act .demo-btn { flex: 1; }
  .demo-table--flat tr { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; }
  .demo-table--flat td.c-client { grid-column: 1 / -1; }
  .demo-table--flat td.c-st { grid-column: 1 / -1; text-align: left; }
  .demo-locked { padding: 20px; }
  .demo-locked h3 { font-size: 22px; }
  .demo-hint { flex-wrap: wrap; }
  /* tabela vira lista de cartões */
  .demo-table, .demo-table tbody, .demo-table tr, .demo-table td { display: block; width: 100%; }
  .demo-table { background: transparent; border: 0; }
  .demo-table thead { display: none; }
  .demo-table tr { background: var(--white); border: 1px solid var(--d-line); border-radius: var(--r); margin-bottom: 10px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
  .demo-table td { padding: 0; border: 0; }
  .demo-table tr:first-child td { border: 0; }
  .demo-table td.c-client { grid-column: 1; }
  .demo-table td.c-val { grid-column: 2; text-align: right; }
  .demo-table td.c-due { grid-column: 1; font-size: 13px; color: var(--ink-muted); }
  .demo-table td.c-st { grid-column: 2; text-align: right; }
  .demo-table td.act { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
  .demo-table td.act .row { display: flex; }
  .demo-table td.act .row .demo-btn:first-child { flex: 1; }
  .demo-table td.c-veh { display: none; }
  .demo-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-kpi.is-bump, .demo-table tr.is-flash td, .demo-spin { animation: none; }
  .demo-fill, .demo-veh, .demo-toast { transition: none; }
}
