/*!
 * MYDashAI — © 2026 YOSHIDATA CONTROLE DE DADOS LTDA (Yoshida Qlik), CNPJ 32.080.711/0001-00. Todos os direitos reservados.
 * Software proprietário. Uso permitido somente com licença válida do MYDashAI e nos termos de uso.
 * É proibido copiar, modificar, distribuir, sublicenciar, fazer engenharia reversa ou criar obras derivadas
 * deste código, total ou parcialmente, sem autorização prévia e por escrito dos titulares (Lei 9.609/98 e 9.610/98).
 */
/* MYDashAI · portal do dono e painel de operação — tema claro, acento teal (#11a497),
   cartões do modelo de painel (qa-v2/reference/painel-modelo/ANALISE-MODELO.md). Sem fontes externas. */
:root {
  --page: #f4f6f9;
  --card: #ffffff;
  --line: #e6eaf0;
  --shadow: 0 1px 3px 0 #dfe5ec;
  --title: #154f54;
  --ink: #0f3236;
  --text: #24343a;
  --muted: #6b7783;          /* #7b8794 do modelo escurecido p/ contraste AA em texto pequeno */
  --accent: #11a497;
  --accent-ink: #0b7d73;     /* teal com contraste AA sobre branco (texto/links) */
  --accent-soft: #e7f6f4;
  --hover: #eef7f6;
  --ok: #0b7a55;  --ok-bg: #e3f6ee;
  --warn: #8a5300; --warn-bg: #fff4dc;
  --bad: #b42318;  --bad-bg: #fdecea;
  --neu: #475569;  --neu-bg: #eef1f5;
  --radius: 12px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, Consolas, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--accent-ink); }
a:hover { color: var(--title); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(17, 164, 151, .45); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -40px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }

/* ---------- topo ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { font-size: 15px; letter-spacing: .2px; }
.brand small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.2; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--title); display: grid; place-items: center; flex-shrink: 0; }
.logo-path { stroke: #7fe0d6; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.topbar .spacer { flex: 1; }
.who { color: var(--muted); font-size: 12.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 5px 8px; font-size: 12.5px; }
.nav { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; overflow-x: auto; }
.nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--title); }
.nav a[aria-current="page"] { color: var(--title); border-bottom-color: var(--accent); }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

/* ---------- layout ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 22px 20px 48px; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 19px; color: var(--title); }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 12px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } main { padding: 16px 16px 40px; } .topbar-in { padding: 10px 16px; } .nav { padding: 0 10px; } .who { display: none; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.card + .card { margin-top: 12px; }
.grid > .card + .card { margin-top: 0; }
.card h2 { margin: 0; font-size: 14px; color: var(--title); }
.card .sub { margin: 2px 0 12px; color: var(--muted); font-size: 12px; }
.section { margin-top: 22px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.section-head::before { content: ""; width: 4px; height: 20px; border-radius: 3px; background: var(--accent); }
.section-head h2 { margin: 0; font-size: 15px; color: var(--title); }

/* KPI no estilo do modelo */
.kpi-label { font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.kpi-value { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.25; margin-top: 4px; word-break: break-word; }
.kpi-value small { font-size: 14px; color: var(--muted); font-weight: 600; }
.kpi-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi-note b { color: var(--ink); }
.meter { height: 8px; background: #edf1f5; border-radius: 9px; overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.meter-hi i { background: #f0a202; }
.meter-over i { background: var(--bad); }

/* ---------- elementos ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-neu { background: var(--neu-bg); color: var(--neu); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 8px 14px; font-weight: 600; font-size: 13px; color: var(--ink); text-decoration: none; min-height: 36px; }
.btn:hover { background: var(--hover); }
.btn-pri { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-pri:hover { background: var(--title); color: #fff; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { background: #8f1c13; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--accent-ink); }
.btn-ghost.danger { color: var(--bad); }
.btn-sm { padding: 4px 10px; min-height: 30px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"]::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

.field { margin-bottom: 12px; position: relative; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--title); margin-bottom: 4px; }
.field input, .field select, .field textarea, .input { width: 100%; border: 1px solid #d5dde6; border-radius: 9px; padding: 9px 12px; background: #fff; min-height: 38px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field-help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field-err { font-size: 12.5px; color: var(--bad); min-height: 0; margin-top: 4px; }
.field-err:empty { display: none; }
.pw-toggle { position: absolute; right: 6px; top: 27px; border: 0; background: transparent; color: var(--accent-ink); font-size: 12px; font-weight: 600; padding: 6px 8px; }
.form-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.form-row .field { flex: 1 1 220px; margin-bottom: 0; }
.form-row .btn { margin-top: 23px; }
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: 18px; height: 18px; accent-color: var(--accent-ink); }

.alert { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; border: 1px solid transparent; }
.alert > span { flex: 1 1 240px; }
.alert-bad { background: var(--bad-bg); color: #7a1a12; border-color: #f6c9c4; }
.alert-warn { background: var(--warn-bg); color: #6a4000; border-color: #f3dca8; }
.alert-ok { background: var(--ok-bg); color: #075a3f; border-color: #bfe8d6; }
.alert-info { background: var(--accent-soft); color: var(--title); border-color: #c4e9e4; }

/* tabelas responsivas: viram cartões no celular */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--title); padding: 8px 10px; border-bottom: 2px solid var(--accent); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tbody tr:hover { background: var(--hover); }
table.t td.actions { text-align: right; white-space: nowrap; }
table.t .who-name { font-weight: 600; color: var(--ink); }
table.t .who-mail { color: var(--muted); font-size: 12.5px; word-break: break-all; }
.tenants { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-block; background: var(--neu-bg); color: var(--neu); border-radius: 6px; padding: 1px 7px; font-size: 11.5px; font-family: var(--mono); }
.clickable { cursor: pointer; }
@media (max-width: 720px) {
  table.t.stack thead { display: none; }
  table.t.stack, table.t.stack tbody, table.t.stack tr, table.t.stack td { display: block; width: 100%; }
  table.t.stack tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 6px 4px; background: var(--card); }
  table.t.stack td { border: 0; padding: 4px 10px; }
  table.t.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
  table.t.stack td.actions { text-align: left; }
}

.empty { text-align: center; padding: 28px 16px; color: var(--ink); }
.empty b { display: block; font-size: 14px; margin-top: 8px; }
.empty p { margin: 4px auto 12px; max-width: 420px; font-size: 13px; }
.empty-ico { width: 44px; height: 44px; margin: 0 auto; border-radius: 12px; background: var(--accent-soft); position: relative; }
.empty-ico::after { content: ""; position: absolute; inset: 13px; border: 2px solid var(--accent); border-radius: 50%; }
.loading { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 30px; color: var(--muted); }
.spin { width: 18px; height: 18px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin, .btn[aria-busy="true"]::after { animation: none; } }

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px; box-shadow: 0 6px 20px rgba(15, 50, 54, .25); transition: opacity .3s; }
.toast-ok { background: var(--ok); }
.toast-bad { background: var(--bad); }
.toast.out { opacity: 0; }

dialog.dlg { border: 0; border-radius: 14px; padding: 0; width: min(440px, calc(100% - 32px)); box-shadow: 0 20px 50px rgba(15, 50, 54, .3); color: var(--text); }
dialog.dlg::backdrop { background: rgba(15, 50, 54, .35); }
.dlg-body { padding: 20px; }
.dlg-body h2 { margin: 0 0 6px; font-size: 16px; color: var(--title); }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
dialog.dlg-wide { width: min(640px, calc(100% - 32px)); }

/* ---------- telas de entrada ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-box { width: min(420px, 100%); }
.auth-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.auth-head .lang { margin-left: auto; }
.auth .card { padding: 22px; }
.auth h1 { font-size: 18px; color: var(--title); margin: 0 0 4px; }
.auth .links { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

/* ---------- listas ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .ico { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; }
.ico-warn { background: var(--warn-bg); color: var(--warn); }
.ico-bad { background: var(--bad-bg); color: var(--bad); }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; color: var(--ink); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .input { width: auto; flex: 1 1 220px; }
.toolbar select.input { flex: 0 0 auto; }
.counter { font-weight: 700; color: var(--title); }
.sticky-bar { position: sticky; bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; margin-top: 12px; box-shadow: 0 8px 24px rgba(15, 50, 54, .25); }
.sticky-bar .counter { color: #fff; flex: 1; }
.sticky-bar .btn { border-color: transparent; }
pre.json { background: #0f3236; color: #d8f3ef; border-radius: 10px; padding: 12px; font-size: 12px; overflow: auto; max-height: 360px; }
.pager { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.ops .topbar { background: var(--ink); border-bottom-color: var(--ink); }
.ops .brand, .ops .brand b { color: #fff; }
.ops .brand small, .ops .who { color: #9fc7c2; }
.ops .logo { background: #0b2427; }
.ops .topbar .btn { background: transparent; color: #e4f4f2; border-color: #2c5a5e; }
.ops .lang { background: #0b2427; color: #e4f4f2; border-color: #2c5a5e; }
.env-tag { background: #f0a202; color: #2b1a00; font-weight: 800; font-size: 10.5px; letter-spacing: .6px; padding: 2px 8px; border-radius: 6px; }
.tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 6px; background: var(--accent-soft); color: var(--title); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.tag.tag-consulta { background: #e0f2fe; color: #075985; } /* 2.5.0 perfil Consulta */
input[role="switch"] { width: 34px; height: 20px; appearance: none; -webkit-appearance: none; background: #cfd8e1; border-radius: 999px; position: relative; cursor: pointer; flex-shrink: 0; transition: background .15s; }
input[role="switch"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
input[role="switch"]:checked { background: var(--accent-ink); }
input[role="switch"]:checked::after { left: 16px; }
input[role="switch"]:disabled { opacity: .6; cursor: not-allowed; }
.form-row { margin-bottom: 12px; row-gap: 12px; }
.ops .nav a { color: #9fc7c2; }
.ops .nav a:hover { color: #fff; }
.ops .nav a[aria-current="page"] { color: #fff; border-bottom-color: #2fd3c3; }
/* planos / recursos */
.feats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.feat { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--neu-bg); color: var(--neu); }
.feat::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.feat-assistente { background: var(--accent-soft); color: var(--title); }
.feat-mcp { background: #eef0fb; color: #3b3f9e; }
.feat-edicao { background: #fff4dc; color: #7a4a00; }
.sub-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.sub-head h3, .offer h3 { margin: 0; font-size: 15px; color: var(--ink); }
.offer { display: flex; flex-direction: column; gap: 4px; }
.offer .btn { margin-top: auto; }
.offer .feats { margin-bottom: 12px; }
.who-plan { margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--title); }
fieldset.fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
fieldset.fieldset legend { font-size: 12.5px; font-weight: 600; color: var(--title); margin-bottom: 6px; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.form-row > .field { margin-bottom: 0; }
.field input:disabled, .field select:disabled { background: #f3f5f8; color: var(--muted); cursor: not-allowed; }
.protected { display: inline-flex; gap: 4px; align-items: center; cursor: help; }
.protected .btn:disabled { pointer-events: none; }
/* convite / código de configuração */
.code-row { display: flex; gap: 8px; margin: 12px 0 4px; }
.code-row .code-box { flex: 1; font-size: 15px; letter-spacing: .5px; }
ol.steps { margin: 12px 0 0; padding-left: 20px; color: var(--text); }
ol.steps li { margin: 4px 0; }
.small { font-size: 12px; margin-top: 12px; }
/* vínculos de ambiente (R4b-1) */
.sub-title { margin: 16px 0 4px; font-size: 13px; color: var(--title); }
.req-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.warn-line { color: var(--warn); font-weight: 600; font-size: 12.5px; }
/* ---------- teste gratuito (/teste-gratis) ---------- */
.trial-top { max-width: 1120px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.trial-top .spacer { flex: 1; }
.trial-hero { background: linear-gradient(135deg, #0f3236 0%, #154f54 55%, #11a497 130%); color: #fff; }
.trial-hero .trial-top .brand, .trial-hero .trial-top .brand b { color: #fff; }
.trial-hero .trial-top .brand small { color: #b9e6e0; }
.trial-hero .lang { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.trial-hero .lang option { color: #0f3236; }
.trial-hero .trial-top a.btn { background: transparent; color: #e4f4f2; border-color: rgba(255, 255, 255, .35); }
.trial-grid { max-width: 1120px; margin: 0 auto; padding: 12px 20px 56px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.trial-pitch h1 { font-size: 34px; line-height: 1.15; margin: 18px 0 10px; letter-spacing: -.3px; }
.trial-pitch h1 em { font-style: normal; color: #7fe0d6; }
.trial-pitch .lead { font-size: 16px; color: #d6f1ed; margin: 0 0 20px; max-width: 520px; }
.trial-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.trial-tags li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.trial-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trial-benefits li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px 14px; }
.trial-benefits .b-ico { width: 34px; height: 34px; border-radius: 10px; background: #11a497; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; color: #fff; }
.trial-benefits b { display: block; font-size: 14.5px; }
.trial-benefits span { color: #cfeae6; font-size: 13px; }
.trial-form-card { background: var(--card); color: var(--text); border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 50, 54, .35); padding: 22px; margin-top: 18px; }
.trial-form-card h2 { margin: 0 0 4px; font-size: 18px; color: var(--title); }
.trial-form-card .sub { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.trial-steps { max-width: 1120px; margin: 0 auto; padding: 32px 20px 48px; }
.trial-steps h2 { color: var(--title); font-size: 19px; margin: 0 0 14px; }
.trial-steps .grid-4 .card b { display: block; color: var(--ink); margin: 6px 0 4px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--title); display: grid; place-items: center; font-weight: 800; }
.trial-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 0 16px 32px; }
.trial-center { max-width: 560px; margin: 0 auto; padding: 24px 16px 56px; }
.trial-center .card { padding: 24px; }
.trial-center h1 { font-size: 22px; color: var(--title); margin: 0 0 6px; }
.next-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; }
.next-steps b { display: block; color: var(--ink); }
/* cartão do teste no portal do dono */
.trial-card { border-left: 4px solid var(--accent); }
.trial-card.expired { border-left-color: var(--bad); }
.trial-card .trial-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.trial-card .trial-row > div { min-width: 140px; }
.trial-offers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 860px) {
  .trial-grid { grid-template-columns: 1fr; gap: 8px; }
  .trial-pitch h1 { font-size: 27px; }
}
@media (max-width: 640px) { .trial-top, .trial-grid, .trial-steps { padding-left: 16px; padding-right: 16px; } }
.section-xs { margin-top: 6px; }
.field label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--text); font-size: 13.5px; margin: 0; }
.step-num { flex-shrink: 0; }
/* páginas legais e rodapé */
.site-foot { max-width: 1120px; margin: 0 auto; padding: 8px 20px 28px; font-size: 12px; color: var(--muted); text-align: center; }
.auth .site-foot { padding: 12px 0 0; }
.legal-top { max-width: 860px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
.legal-top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.legal-top .brand > span:last-child { display: flex; flex-direction: column; }
.legal-top .spacer { flex: 1; }
.legal-main { max-width: 860px; margin: 0 auto; padding: 4px 20px 48px; }
.legal-doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; line-height: 1.65; color: var(--text); }
.legal-doc h1 { font-size: 24px; color: var(--title); margin: 0 0 4px; }
.legal-doc h2 { font-size: 16px; color: var(--title); margin: 28px 0 8px; scroll-margin-top: 16px; }
.legal-doc ul { padding-left: 20px; }
.legal-doc li { margin: 4px 0; }
.legal-version { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.legal-note { background: var(--accent-soft); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.legal-toc { background: var(--page); border-radius: 10px; padding: 12px 16px; margin: 0 0 8px; font-size: 13.5px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.legal-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }
@media (max-width: 640px) { .legal-doc { padding: 20px 16px; } .legal-toc ol { columns: 1; } .legal-top, .legal-main { padding-left: 16px; padding-right: 16px; } }
@media print { .legal-top, .legal-toc, .legal-foot { display: none; } .legal-doc { border: 0; box-shadow: none; } }
/* saldo do provedor */
.balance-card { margin-bottom: 12px; border-left: 4px solid var(--ok); }
.balance-card.is-low { border-left-color: #f0a202; }
.balance-card.is-bad { border-left-color: var(--bad); }
.balance-card .sub-head .btn { margin-left: auto; }
.balance-card .sub-head .pill { margin-left: 8px; }
.balance-card .sub-head { justify-content: flex-start; }
.balance-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; margin: 8px 0; }
.balance-cur { display: grid; gap: 2px; font-size: 13px; }
/* cartão "Instale a MYDashAI" */
.install-card { border-left: 4px solid var(--accent); margin-bottom: 12px; }
.install-card h2 { font-size: 16px; }
.install-cta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 4px 0 14px; }
.btn-lg { padding: 12px 20px; font-size: 15px; min-height: 46px; }
.install-admin { margin-bottom: 8px; }
.install-steps { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 12px; }
.install-steps li { display: flex; gap: 12px; align-items: flex-start; }
.install-steps .tag { margin-left: 8px; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.copy-val { background: var(--neu-bg); border-radius: 6px; padding: 4px 10px; font-size: 13px; color: var(--ink); word-break: break-all; }
.small-inline { font-size: 12.5px; }
.install-card.is-collapsed { padding: 10px 16px; }
.install-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.install-bar .spacer { flex: 1; }
.install-bar-title { margin: 0; font-size: 14px; color: var(--title); }
.install-ok { width: 24px; height: 24px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-weight: 800; }
@media (max-width: 640px) { .install-cta .btn-lg { width: 100%; } .install-bar .spacer { display: none; } }
/* 2.1.11 chamados ("Enviar erro"): texto do usuário sempre como texto, quebras preservadas */
.nav-badge[hidden] { display: none; }
.ticket-excerpt { color: var(--ink); overflow-wrap: anywhere; max-width: 46ch; }
.ticket-desc { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--neu-bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 13.5px; color: var(--ink); max-height: 420px; overflow: auto; }
.ticket-answer { min-height: 120px; resize: vertical; }
.ticket-raw { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow: auto; background: var(--neu-bg); border-radius: 9px; padding: 10px 12px; margin: 8px 0 0; }
.ticket-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.ticket-thumb { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--card); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ticket-thumb img { display: block; width: 100%; height: 150px; object-fit: contain; background: var(--neu-bg); border-radius: 6px; }
.ticket-thumb figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.ticket-thumb.is-deleted { justify-content: center; min-height: 80px; }
.input-date { flex: 0 0 auto !important; width: auto; }
details > summary { cursor: pointer; color: var(--title); font-weight: 600; font-size: 13px; }

/* WhatsApp e agendamentos (assets/whatsapp.js) */
.toolbar .grow { flex: 1 1 auto; min-width: 0; }
.wa-qr-box { display: flex; justify-content: center; margin: 14px 0 6px; }
.wa-qr { width: 264px; height: 264px; image-rendering: pixelated; border: 8px solid #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.wa-sub { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.wa-nums { display: flex; flex-wrap: wrap; gap: 4px; }
.wa-nums .chip { white-space: nowrap; }
table.t td.wa-report { min-width: 180px; }
table.t td.wa-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
@media (max-width: 720px) { table.t td.wa-actions { justify-content: flex-start; } }

/* "Como confirmar novos navegadores" (conta): lista de opções */
fieldset.radios { border: 0; padding: 0; margin: 12px 0; }
.radio-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.radio-row input { margin-top: 4px; }
.muted.block { display: block; }

/* "Ativar agora": checklist de ativação e pedido em destaque */
.activation { margin-top: 6px; }
.act-list { font-size: 13px; color: #374151; }
.act-item.act-done { color: #0f766e; }
.act-item.act-pending, .act-item.act-waiting_ops { color: #b45309; }
.act-cta { margin-top: 6px; }
.pending-hl { outline: 2px solid #11a497; outline-offset: 2px; border-radius: 6px; background: #ecfdf5; }
