/* Painel AuraLabs (E02), nascido do protótipo prototipos/painel/v1. Mesmos tokens do site novo: azul e ciano do ícone, claro como padrão, escuro em azul-marinho. */
@font-face { font-family: 'Miranda Sans'; src: url('../fonts/Miranda_Sans/MirandaSans-VariableFont_wght.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }

:root, [data-theme="light"] {
  --bg: #f4f6fb; --bg-2: #eaeef8; --surface: #ffffff; --surface-2: #f6f8fd; --glass: rgb(255 255 255 / .78);
  --line: rgb(14 22 48 / .08); --line-2: rgb(14 22 48 / .14);
  --text: #0c1226; --text-2: rgb(12 18 38 / .66); --text-3: rgb(12 18 38 / .44);
  --brand: #2557e8; --brand-2: #0ea5c6; --brand-soft: rgb(37 87 232 / .1); --brand-2-soft: rgb(14 165 198 / .12);
  --grad: linear-gradient(120deg, #2557e8 0%, #3f6bf0 40%, #0ea5c6 100%);
  --ok: #16a34a; --ok-soft: rgb(22 163 74 / .12); --warn: #d97706; --warn-soft: rgb(217 119 6 / .13); --bad: #dc2626; --bad-soft: rgb(220 38 38 / .11); --violet: #7c3aed; --violet-soft: rgb(124 58 237 / .11);
  --band-1: #040a1c; --band-2: #0a1d4a; --band-3: #1d4ed8;
  --shadow: 0 1px 0 rgb(14 22 48 / .03), 0 18px 40px -28px rgb(14 22 48 / .35); --shadow-lg: 0 40px 90px -40px rgb(10 20 60 / .5);
  --white: #fff; --r: 20px;
}
[data-theme="dark"] {
  --bg: #0b1328; --bg-2: #0f1a36; --surface: #14203f; --surface-2: #1a2950; --glass: rgb(13 22 46 / .78);
  --line: rgb(160 190 255 / .10); --line-2: rgb(160 190 255 / .19);
  --text: #eef3ff; --text-2: rgb(226 235 255 / .7); --text-3: rgb(226 235 255 / .44);
  --brand: #4d7cff; --brand-2: #22d3ee; --brand-soft: rgb(77 124 255 / .16); --brand-2-soft: rgb(34 211 238 / .14);
  --grad: linear-gradient(120deg, #4d7cff 0%, #5b8cff 40%, #22d3ee 100%);
  --ok: #34d399; --ok-soft: rgb(52 211 153 / .14); --warn: #fbbf24; --warn-soft: rgb(251 191 36 / .14); --bad: #f87171; --bad-soft: rgb(248 113 113 / .14); --violet: #a78bfa; --violet-soft: rgb(167 139 250 / .16);
  --shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgb(2 8 30 / .9); --shadow-lg: 0 40px 90px -30px rgb(2 8 30 / .95);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, * { scrollbar-width: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 'Miranda Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { display: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img.is-dark, svg.is-dark { display: none; } [data-theme="dark"] img.is-dark, [data-theme="dark"] svg.is-dark { display: block; } [data-theme="dark"] img.is-light, [data-theme="dark"] svg.is-light { display: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); }

/* ---------- Estrutura ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 22px 16px 18px; background: var(--surface); border-right: 1px solid var(--line); }
.side-logo { display: block; padding: 4px 10px; } .side-logo img { width: 132px; height: auto; }
.side-nav { display: grid; align-content: start; gap: 2px; overflow-y: auto; }
.side-nav small { margin: 14px 12px 4px; font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.side-nav a svg { font-size: 19px; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.is-on { background: var(--brand-soft); color: var(--brand); }
.side-nav a.is-on::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.side-nav em, .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--grad); color: #fff; font: 700 11.5px/1 inherit; font-style: normal; }
.side-nav em:empty { display: none; }
.side-me { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.side-me b { display: block; font-size: 14px; } .side-me small { color: var(--text-3); font-size: 12.5px; }
.av { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 750; font-size: 13.5px; flex: none; }
.av.is-sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }

.main { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 16px 28px; background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top-title { margin-right: auto; min-width: 0; } .top-title small { color: var(--text-3); font-size: 12.5px; font-weight: 650; } .top-title h1 { font-size: 22px; }
.top-search { display: flex; align-items: center; gap: 8px; width: min(320px, 30vw); height: 42px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text-3); }
.top-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); }
.period { display: flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.period button { border: 0; background: none; padding: 6px 12px; border-radius: 9px; color: var(--text-2); font-weight: 650; font-size: 13.5px; cursor: pointer; }
.period button.is-on { background: var(--brand-soft); color: var(--brand); }
.ic-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 19px; flex: none; }
.ic-btn:hover { color: var(--text); border-color: var(--line-2); }
.ic-btn.has-dot::after { content: ""; position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 2px var(--surface); }
.ic-btn.is-menu { display: none; }
.views { padding: 26px 28px 60px; min-width: 0; }
.view { display: grid; gap: 20px; animation: v-in .35s ease both; }
@keyframes v-in { from { opacity: 0; transform: translateY(8px); } }
.tabbar { display: none; }

/* ---------- Blocos ---------- */
.hello { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.hello h2 { font-size: 28px; } .hello p { margin: 4px 0 0; color: var(--text-2); }
.row { display: grid; gap: 20px; }
.row.is-2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } .row.is-2b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .row.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; min-width: 0; padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 16.5px; } .card-head small { color: var(--text-3); font-size: 13px; }
.link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--brand); font-weight: 650; font-size: 13.5px; text-decoration: none; cursor: pointer; }
.link svg { font-size: 15px; }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.kpi { display: grid; gap: 6px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; cursor: pointer; transition: transform .2s; min-width: 0; }
.kpi:hover { transform: translateY(-2px); }
.kpi-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 17px; }
.kpi[data-tone="c"] .kpi-ic { background: var(--brand-2-soft); color: var(--brand-2); } .kpi[data-tone="ok"] .kpi-ic { background: var(--ok-soft); color: var(--ok); } .kpi[data-tone="warn"] .kpi-ic { background: var(--warn-soft); color: var(--warn); } .kpi[data-tone="v"] .kpi-ic { background: var(--violet-soft); color: var(--violet); } .kpi[data-tone="bad"] .kpi-ic { background: var(--bad-soft); color: var(--bad); }
.kpi span { color: var(--text-2); font-size: 13px; font-weight: 600; }
.kpi b { font-size: 23px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi small { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .kpi small.is-up { color: var(--ok); } .kpi small.is-down { color: var(--bad); }

/* Precisa de atenção */
.alerts { display: grid; gap: 8px; }
.al { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; }
.al:hover { border-color: var(--line-2); }
.al i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-size: 17px; font-style: normal; }
.al[data-tone="warn"] i { background: var(--warn-soft); color: var(--warn); } .al[data-tone="bad"] i { background: var(--bad-soft); color: var(--bad); } .al[data-tone="b"] i { background: var(--brand-soft); color: var(--brand); } .al[data-tone="c"] i { background: var(--brand-2-soft); color: var(--brand-2); } .al[data-tone="v"] i { background: var(--violet-soft); color: var(--violet); }
.al b { display: block; font-size: 14px; } .al small { color: var(--text-2); font-size: 13px; }
.al > svg { color: var(--text-3); }

/* Funil */
.funnel { display: grid; gap: 10px; }
.fn { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px; align-items: center; gap: 12px; font-size: 13.5px; }
.fn span { color: var(--text-2); font-weight: 600; } .fn b { text-align: right; }
.fn .bar { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fn .bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--grad); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.fn-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--text-2); font-size: 13px; } .fn-foot b { color: var(--text); }

/* Gráficos */
.chart { width: 100%; height: 230px; display: block; }
.chart .g-line { stroke: var(--line); stroke-width: 1; }
.chart .g-lab { fill: var(--text-3); font-size: 11px; stroke: none; }
.chart .b-in { fill: url(#gIn); } .chart .b-out { fill: var(--line-2); }
.chart .area { fill: url(#gArea); stroke: none; } .chart .stroke { stroke: var(--brand); stroke-width: 2.4; fill: none; }
.chart .dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2.4; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: var(--grad); vertical-align: -1px; } .legend i.is-out { background: var(--line-2); }

/* Produtos (resumo e cartões) */
.pstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pmini { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; cursor: pointer; text-align: left; }
.pmini .pico { grid-row: span 2; }
.pmini b { font-size: 14px; } .pmini small { color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff; font-size: 19px; background: var(--grad); }
.pico[data-p="wallet"] { background: linear-gradient(135deg, #111827, #2557e8); } .pico[data-p="visa"] { background: linear-gradient(135deg, #b91c1c, #f97316); } .pico[data-p="igreja"] { background: linear-gradient(135deg, #1a365d, #3b82f6); } .pico[data-p="clinica"] { background: linear-gradient(135deg, #003b5c, #00a8e8); }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--ok-soft); color: var(--ok); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st[data-s="warn"] { background: var(--warn-soft); color: var(--warn); } .st[data-s="off"] { background: var(--surface-2); color: var(--text-3); } .st[data-s="b"] { background: var(--brand-soft); color: var(--brand); } .st[data-s="bad"] { background: var(--bad-soft); color: var(--bad); } .st[data-s="v"] { background: var(--violet-soft); color: var(--violet); } .st[data-s="c"] { background: var(--brand-2-soft); color: var(--brand-2); }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.prod { position: relative; display: grid; gap: 16px; padding: 22px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.prod::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); opacity: .9; }
.prod[data-p="visa"]::before { background: linear-gradient(90deg, #b91c1c, #f97316); } .prod[data-p="igreja"]::before { background: linear-gradient(90deg, #1a365d, #3b82f6); } .prod[data-p="clinica"]::before { background: linear-gradient(90deg, #003b5c, #00a8e8); } .prod[data-p="wallet"]::before { background: linear-gradient(90deg, #111827, #2557e8); }
.prod-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.prod-head h3 { font-size: 18px; } .prod-head small { color: var(--text-2); font-size: 13px; }
.prod-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pn { padding: 12px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.pn span { display: block; color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn b { font-size: 20px; letter-spacing: -.02em; } .pn small { display: block; color: var(--text-3); font-size: 12px; } .pn small.is-up { color: var(--ok); }
.spark { width: 100%; height: 54px; display: block; } .spark path.l { stroke: var(--brand); stroke-width: 2; fill: none; } .spark path.a { fill: url(#gSpark); stroke: none; }
.prod-alert { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; font-weight: 600; }
.prod-alert.is-ok { background: var(--ok-soft); color: var(--ok); }
.prod-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.prod-foot .faint { margin-right: auto; font-size: 12.5px; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how div { padding: 16px; border-radius: 16px; background: var(--surface-2); }
.how b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .how b svg { color: var(--brand); font-size: 18px; } .how p { margin: 0; color: var(--text-2); font-size: 13.5px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; font-weight: 650; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.btn svg { font-size: 17px; }
.btn.is-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -14px var(--brand); } .btn.is-primary:hover { transform: translateY(-1px); }
.btn.is-secondary { background: var(--surface); border-color: var(--line-2); color: var(--text); } .btn.is-secondary:hover { border-color: var(--brand); }
.btn.is-ghost { background: var(--surface-2); color: var(--text); }
.btn.is-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Barra de ferramentas e abas */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tools .grow { margin-right: auto; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 9px; color: var(--text-2); font-weight: 650; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.seg button.is-on { background: var(--brand-soft); color: var(--brand); }
.seg button b { margin-left: 6px; color: var(--text-3); font-size: 12px; } .seg button.is-on b { color: var(--brand); }
.chips { display: flex; gap: 8px; overflow-x: auto; }
.chip { flex: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 650; cursor: pointer; }
.chip.is-on { border-color: transparent; background: var(--grad); color: #fff; }

/* Quadro (kanban) */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.col { display: grid; align-content: start; gap: 10px; padding: 12px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); min-height: 300px; }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; font-size: 13.5px; font-weight: 700; }
.col-head span { display: inline-flex; align-items: center; gap: 8px; } .col-head span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); }
.col-head small { color: var(--text-3); font-weight: 650; }
.lc { display: grid; gap: 8px; padding: 13px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; text-align: left; border: 0; width: 100%; }
.lc:hover { transform: translateY(-1px); }
.lc b { font-size: 14px; } .lc small { color: var(--text-2); font-size: 12.5px; }
.lc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-3); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 7px; background: var(--surface-2); color: var(--text-2); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tag[data-o="site"] { background: var(--brand-soft); color: var(--brand); } .tag[data-o="prospeccao_ativa"] { background: var(--violet-soft); color: var(--violet); } .tag[data-o="indicacao"] { background: var(--ok-soft); color: var(--ok); } .tag[data-o="direto"] { background: var(--brand-2-soft); color: var(--brand-2); }

/* Lista que vira cartão no celular */
.list { display: grid; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.li { display: grid; grid-template-columns: var(--cols); gap: 14px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); cursor: pointer; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; }
.li:first-child { border-top: 0; } .li:hover { background: var(--surface-2); }
.li.is-head { cursor: default; background: var(--surface-2); color: var(--text-3); font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; padding: 10px 18px; }
.li > * { min-width: 0; } .li b { font-size: 14px; } .li small { display: block; color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; } .li .num.is-in { color: var(--ok); } .li .num.is-out { color: var(--text); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; } .who > span:last-child { min-width: 0; }

/* Projetos */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pj { display: grid; gap: 14px; padding: 20px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; text-align: left; border: 0; width: 100%; }
.pj-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.pj-head h3 { font-size: 17px; } .pj-head small { color: var(--text-2); font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.steps i { height: 6px; border-radius: 99px; background: var(--surface-2); } .steps i.is-done { background: var(--grad); } .steps i.is-now { background: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-2-soft); }
.steps-lab { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); } .steps-lab b { color: var(--brand); font-weight: 700; }
.money { display: grid; gap: 6px; } .money-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); } .money-row b { color: var(--text); }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .meter i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--ok); }
.pj-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-3); }
.prio { padding: 2px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 750; background: var(--surface-2); color: var(--text-2); } .prio[data-p="alta"] { background: var(--warn-soft); color: var(--warn); } .prio[data-p="urgente"] { background: var(--bad-soft); color: var(--bad); }

/* Site e segurança */
.bars { display: grid; gap: 10px; }
.bars .fn { grid-template-columns: 130px minmax(0, 1fr) 60px; }
.bars .bar i.is-c { background: var(--brand-2); } .bars .bar i.is-v { background: var(--violet); } .bars .bar i.is-w { background: var(--warn); } .bars .bar i.is-ok { background: var(--ok); }
.scroll-map { display: grid; gap: 6px; }
.sm { position: relative; display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; overflow: hidden; font-size: 13.5px; font-weight: 650; background: var(--surface-2); }
.sm::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--brand-soft); }
.sm > * { position: relative; }
.big { font-size: 34px; font-weight: 750; letter-spacing: -.03em; line-height: 1; } .big small { font-size: 14px; color: var(--text-2); font-weight: 600; letter-spacing: 0; }
.shield { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px; border-radius: 22px; background: linear-gradient(140deg, var(--band-1), var(--band-2) 60%, var(--band-3) 160%); color: #fff; box-shadow: var(--shadow); }
.shield .shield-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgb(255 255 255 / .1); font-size: 28px; color: #7dd3fc; }
.shield h3 { font-size: 19px; } .shield p { margin: 4px 0 0; color: rgb(255 255 255 / .72); font-size: 14px; }
.checks { display: grid; gap: 8px; }
.ck { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.ck i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-size: 14px; }
.ck.is-todo i { background: var(--warn-soft); color: var(--warn); }
.ck small { color: var(--text-3); }

/* Configurações */
.form { display: grid; gap: 14px; }
.fld { display: grid; gap: 6px; } .fld span { font-size: 13px; font-weight: 650; color: var(--text-2); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); outline: 0; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.key { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.key code { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Janela lateral, meia janela e menu */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-bg, .sheet-bg { position: absolute; inset: 0; background: rgb(4 10 30 / .45); backdrop-filter: blur(3px); animation: fade .25s ease both; }
.drawer-card { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(520px, calc(100% - 24px)); display: grid; grid-template-rows: auto 1fr; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; animation: slide .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } } @keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(40px); opacity: 0; } }
.drawer-head { position: relative; display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 22px 22px 18px; color: #fff; background: linear-gradient(140deg, var(--band-1), var(--band-2) 60%, var(--band-3) 160%); }
.drawer-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.drawer-head > * { position: relative; } .drawer-head small { color: #7dd3fc; font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; } .drawer-head h2 { font-size: 21px; margin-top: 4px; }
.drawer-head .ic-btn { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .18); color: #fff; }
.drawer-body { overflow-y: auto; padding: 20px 22px 26px; display: grid; align-content: start; gap: 18px; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl div { padding: 11px 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; } .dl span { display: block; color: var(--text-3); font-size: 12px; font-weight: 650; } .dl b { font-size: 14px; overflow-wrap: anywhere; }
.timeline { display: grid; gap: 0; }
.tl { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding-bottom: 16px; }
.tl::before { content: ""; position: absolute; left: 12px; top: 24px; bottom: 0; width: 2px; background: var(--line); } .tl:last-child::before { display: none; }
.tl i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 13px; }
.tl b { font-size: 13.5px; } .tl small { display: block; color: var(--text-3); font-size: 12px; } .tl p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; white-space: pre-line; }
.sec-t { font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--surface); animation: up .3s cubic-bezier(.2, .8, .2, 1) both; }
.grab { display: block; width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 99px; background: var(--line-2); }
.sheet-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet-nav a { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: var(--surface-2); text-decoration: none; font-size: 13px; font-weight: 650; color: var(--text-2); }
.sheet-nav a svg { font-size: 22px; color: var(--brand); } .sheet-nav a.is-on { background: var(--brand-soft); color: var(--brand); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translateX(-50%); padding: 12px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 650; font-size: 14px; box-shadow: var(--shadow-lg); animation: up .3s ease both; }
.empty { padding: 30px; text-align: center; color: var(--text-3); }

/* ---------- Telas menores ---------- */
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .row.is-2, .row.is-2b, .row.is-3, .products, .projects { grid-template-columns: minmax(0, 1fr); } .top-search { display: none; } }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .top { padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .top-title h1 { font-size: 19px; } .period { display: none; }
  .views { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  .view { gap: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; } .kpi b { font-size: 20px; }
  .hello h2 { font-size: 23px; }
  .pstrip { grid-template-columns: minmax(0, 1fr); }
  .prod-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how, .dl, .fld-row { grid-template-columns: minmax(0, 1fr); }
  .fn { grid-template-columns: 110px minmax(0, 1fr) 36px; }
  .board { grid-auto-columns: 82%; scroll-snap-type: x mandatory; } .col { scroll-snap-align: start; }
  .li { grid-template-columns: minmax(0, 1fr) auto; padding: 13px 14px; } .li > .hide-sm { display: none; } .li.is-head { display: none; }
  .tabbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 7px 0; border: 0; background: none; border-radius: 16px; color: var(--text-3); font-size: 11.5px; font-weight: 650; text-decoration: none; cursor: pointer; }
  .tabbar svg { font-size: 21px; } .tabbar .is-on { background: var(--brand-soft); color: var(--brand); }
  .drawer-card { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; animation-name: up; }
  .tools .seg { width: 100%; }
  .btn.is-wide-sm { width: 100%; }
}

/* Paradas dos gradientes dos gráficos (cores dos tokens) */
.gs1 { stop-color: var(--brand); } .gs2 { stop-color: var(--brand-2); }
.o3 { stop-opacity: .28; } .o2 { stop-opacity: .22; } .o0 { stop-opacity: 0; }
.ck b { font-size: 13.5px; } .ck small { white-space: nowrap; }
button.ck { width: 100%; border: 0; text-align: left; cursor: pointer; }
.key small { color: var(--text-3); } .key code { display: block; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.chart rect, .chart text, .spark path { stroke: none; }
.chart .stroke, .spark path.l { stroke: var(--brand); }
.view > *, .row > *, .drawer-body > * { min-width: 0; }
.li .num { white-space: nowrap; }
.drawer-head > div { min-width: 0; }
@media (max-width: 860px) { .top-title small { display: none; } }

/* ---------- Painel real: formulários, confirmação, galeria, estados ---------- */
.ic-btn.is-sm { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; margin-left: auto; }
.side-me > span:nth-child(2) { min-width: 0; } .side-me b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-out { width: 100%; margin-top: 12px; }
.form .fld small.err { color: var(--bad); font-size: 12.5px; }
.fld textarea { min-height: 96px; resize: vertical; }
.fld.is-check { grid-template-columns: auto 1fr; align-items: center; } .fld.is-check input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--brand); }
.form-err { padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-weight: 650; font-size: 13.5px; }
.form-foot { position: sticky; bottom: -26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 0 4px; background: linear-gradient(transparent, var(--surface) 30%); }
.btn.is-danger { background: var(--bad-soft); color: var(--bad); } .btn:disabled { opacity: .6; cursor: progress; }
.inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.inline.is-3 { grid-template-columns: 150px minmax(0, 1fr) auto; }
.inline input, .inline textarea { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); outline: 0; }
.inline input:focus, .inline textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tl .tl-x { margin-left: 8px; border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 12px; }
.ck input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 9px; border: 0; background: rgb(4 10 30 / .6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.upload { display: grid; place-items: center; gap: 6px; padding: 16px; border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--text-2); font-size: 13.5px; cursor: pointer; text-align: center; }
.upload input { display: none; }
.loading { display: grid; place-items: center; min-height: 200px; color: var(--text-3); }
.loading::before { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-card { display: grid; justify-items: center; gap: 10px; padding: 34px 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); text-align: center; color: var(--text-2); }
.empty-card svg { font-size: 30px; color: var(--brand); } .empty-card b { color: var(--text); font-size: 16px; }
.copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.copy code { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.kpi small.is-flat { color: var(--text-3); }
.pick { padding: 4px 8px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 650; font-size: 13px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inline.is-3 { grid-template-columns: minmax(0, 1fr) auto; } .inline.is-3 > :first-child { grid-column: 1 / -1; } .form-foot { grid-template-columns: 1fr; } }
.toast.is-bad { background: var(--bad); color: #fff; }

.row > .view { align-content: start; }
.pn b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .fn { grid-template-columns: 150px minmax(0, 1fr) 50px; }

/* ---------- Entrada do painel ---------- */
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.login-art { position: relative; display: grid; align-items: end; padding: 48px; overflow: hidden; color: #fff; background: radial-gradient(circle at 80% 0%, rgb(14 165 198 / .42), transparent 55%), linear-gradient(140deg, var(--band-1), var(--band-2) 60%, var(--band-3) 160%); }
.login-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 28px 28px; }
.login-art-in { position: relative; display: grid; gap: 14px; max-width: 460px; }
.login-art img { width: 150px; height: auto; } .login-art h2 { font-size: 34px; } .login-art p { margin: 0; color: rgb(255 255 255 / .72); font-size: 17px; }
.login-box { display: grid; align-content: center; gap: 8px; width: min(400px, 100% - 32px); margin: 0 auto; padding: 40px 0; }
.login-logo { width: 140px; height: auto; margin-bottom: 18px; } .login-box h1 { font-size: 28px; } .login-box > .muted { margin: 0 0 18px; }
.login-box .btn { width: 100%; min-height: 48px; } .login-back { margin-top: 18px; }
@media (max-width: 860px) { .login { grid-template-columns: minmax(0, 1fr); } .login-art { display: none; } }
.products { align-items: start; }
/* Linhas de lista com texto longo (ex.: links de pagamento): o texto quebra dentro da linha, nunca passa da borda. */
.ck > span { min-width: 0; overflow-wrap: anywhere; }
.ck > span small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ck > span b { display: block; }
.ck > small, .ck > .st { flex: none; align-self: start; }
