/* ============================================================
   Pontos Enerzee — mesmo visual da Área do Acionista (acionista/app.enerzeerecharge.com.br):
   fundo verde-escuro, destaque lima #c6f135, Space Grotesk nos títulos e Inter no texto.
   Mobile first: barra de abas no celular, menu lateral a partir de 900px. Só modo escuro.
   ============================================================ */
:root {
  --bg: #070d09;
  --surface: #0e1611;
  --surface-2: #131e16;
  --surface-3: #1a271d;
  --line: rgba(214, 255, 120, 0.08);
  --line-2: rgba(214, 255, 120, 0.16);
  --text: #eef3ea;
  --text-2: #a4b4a6;
  --text-3: #74857a;
  --accent: #c6f135;
  --accent-ink: #c6f135;
  --accent-soft: rgba(198, 241, 53, 0.12);
  --on-accent: #0a1405;
  --down: #ff8a7a;
  --down-soft: rgba(255, 138, 122, 0.12);
  --warn: #ffc65c;
  --warn-soft: rgba(255, 198, 92, 0.12);
  --info: #7fd3ff;
  --info-soft: rgba(94, 200, 255, 0.12);
  --track: rgba(238, 243, 234, 0.07);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  --radius: 20px;
  --radius-sm: 12px;
  --side-w: 248px;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.i { width: 20px; height: 20px; flex-shrink: 0; }
.muted { color: var(--text-2); margin: 0; }
.small { font-size: 12.5px; color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px rgba(198, 241, 53, 0.55); }
.btn-primary:hover:not(:disabled) { background: #d6ff5a; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent-ink); }
.btn-danger { background: var(--down-soft); color: var(--down); border-color: color-mix(in srgb, var(--down) 30%, transparent); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn .i { width: 18px; height: 18px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--accent-ink); border-color: var(--line-2); }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select, select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a9a8c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .hint { font-size: 12px; color: var(--text-3); margin: 0; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 40px var(--surface-2) inset; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; gap: 16px 18px; } .field.full { grid-column: 1 / -1; } }
.check { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); cursor: pointer; font-size: 14.5px; }
.check input { width: 20px; height: 20px; accent-color: #9ccc1c; margin: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span.tr { width: 44px; height: 26px; border-radius: 20px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: background .15s ease; flex-shrink: 0; }
.switch span.tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-2); transition: transform .15s ease, background .15s ease; }
.switch input:checked + span.tr { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span.tr::after { transform: translateX(18px); background: var(--on-accent); }
.switch input:focus-visible + span.tr { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.45; border: 1px solid; }
.alert .i { width: 18px; height: 18px; margin-top: 1px; }
.alert.error { background: var(--down-soft); border-color: color-mix(in srgb, var(--down) 35%, transparent); color: var(--down); }
.alert.success { background: var(--accent-soft); border-color: var(--line-2); color: var(--accent-ink); }
.alert.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 30%, transparent); color: var(--info); }
.alert.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-visual { position: relative; min-height: 290px; overflow: hidden; color: #eef3ea; background: #070d09; }
.login-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 20% 0%, rgba(198, 241, 53, 0.12), transparent 60%), linear-gradient(180deg, rgba(7, 13, 9, 0.35) 0%, rgba(7, 13, 9, 0.6) 55%, rgba(7, 13, 9, 0.96) 100%); }
.login-visual-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; padding: calc(22px + env(safe-area-inset-top)) 24px 46px; }
.login-logo { height: 30px; width: auto; align-self: flex-start; object-fit: contain; }
.login-pitch h1 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(32px, 8vw, 56px); line-height: 1.03; margin: 10px 0 12px; }
.login-pitch h1 em { font-style: normal; color: #c6f135; }
.login-pitch p { color: #b8c6b9; max-width: 460px; margin: 0; font-size: 15px; }
.login-stats { display: none; list-style: none; margin: 0; padding: 0; gap: 12px; }
.login-stats li { flex: 1; padding: 14px 16px; border-radius: 16px; background: rgba(7, 13, 9, 0.5); border: 1px solid rgba(214, 255, 120, 0.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.login-stats b { display: block; font-family: var(--font-head); font-size: 20px; color: #c6f135; }
.login-stats span { font-size: 12.5px; color: #a4b4a6; }
.login-panel { position: relative; z-index: 2; flex: 1; margin-top: -26px; border-radius: 26px 26px 0 0; background: var(--bg); padding: 30px 22px calc(28px + env(safe-area-inset-bottom)); }
.login-form { width: 100%; max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.login-form h2 { font-family: var(--font-head); font-size: 27px; font-weight: 600; margin: 4px 0 -8px; letter-spacing: -0.01em; }
.lock { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.password { position: relative; }
.password input { padding-right: 80px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.legal { color: var(--text-3); font-size: 12px; line-height: 1.6; text-align: center; margin: 4px 0 0; }
.demo-box { margin-top: 10px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.demo-box .contas { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 900px) {
  .login-wrap { flex-direction: row; }
  .login-visual { flex: 1.25; min-height: 100vh; }
  .login-visual::after { background: radial-gradient(90% 60% at 10% 10%, rgba(198, 241, 53, 0.14), transparent 60%), linear-gradient(90deg, rgba(7, 13, 9, 0.2) 0%, rgba(7, 13, 9, 0.6) 60%, rgba(7, 13, 9, 0.92) 100%), linear-gradient(180deg, transparent 50%, rgba(7, 13, 9, 0.85) 100%); }
  .login-visual-inner { padding: 44px 56px 52px; }
  .login-logo { height: 34px; }
  .login-stats { display: flex; max-width: 560px; }
  .login-panel { flex: 1; margin: 0; border-radius: 0; display: flex; align-items: center; padding: 48px; border-left: 1px solid var(--line); }
}

/* ---------- estrutura (menu lateral + conteúdo + abas) ---------- */
.side { display: none; }
.main { width: 100%; max-width: 1240px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(104px + env(safe-area-inset-bottom)); }
.main.wide { max-width: none; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 14px; color: var(--text-3); font-size: 11px; font-weight: 500; }
.tab span { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab .i { width: 23px; height: 23px; }
.tab.active { color: var(--accent-ink); }
.tab:active { background: var(--accent-soft); }
.tab.plus .bolha { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px rgba(198, 241, 53, 0.7); margin-top: -18px; }
.tab.plus .bolha .i { width: 26px; height: 26px; }
.tab.plus { color: var(--text-2); }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .tabbar { display: none; }
  .main { padding: 28px 36px 56px; }
  .side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 14px 20px; background: #0b130e; border-right: 1px solid var(--line); overflow-y: auto; }
  .side-brand { padding: 0 10px; }
  .side-brand img { height: 30px; width: auto; }
  .side-tag { padding: 0 10px; margin: 10px 0 24px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
  .side-nav, .side-bottom { display: flex; flex-direction: column; gap: 2px; }
  .side-bottom { margin-top: auto; padding-top: 14px; }
  .side-sec { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 14px 12px 6px; }
  .side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: background .15s ease, color .15s ease; cursor: pointer; background: none; border: 0; text-align: left; }
  .side-link .i { width: 19px; height: 19px; }
  .side-link:hover { background: rgba(238, 243, 234, 0.05); color: var(--text); }
  .side-link.active { background: var(--accent-soft); color: var(--accent-ink); }
  .side-link em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 20px; background: var(--accent); color: var(--on-accent); }
  .side-cta { margin: 0 4px 16px; }
}

/* ---------- topo ---------- */
.topbar { position: relative; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.topbar h1 { font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.2; }
.topbar p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar .voltar { margin-right: 4px; }
.titulo-linha { display: flex; align-items: center; gap: 10px; min-width: 0; }
.me { display: flex; align-items: center; gap: 10px; border-radius: 40px; cursor: pointer; background: none; border: 0; padding: 0; }
.me-text { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 15px var(--font-head); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-2); }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; box-shadow: none; }
.bell { position: relative; color: var(--accent-ink); border-color: var(--line-2); background: var(--accent-soft); }
.bell-badge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #ff5b4a; color: #fff; border: 2px solid var(--bg); font: 700 10.5px/15px var(--font-body); text-align: center; }
@media (min-width: 900px) {
  .topbar { margin-bottom: 24px; }
  .topbar h1 { font-size: 26px; }
  .topbar p { font-size: 14px; }
  .me { padding: 4px 16px 4px 4px; background: var(--surface); border: 1px solid var(--line); }
  .me .avatar { width: 34px; height: 34px; font-size: 13px; box-shadow: none; }
  .me-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
  .me-text b { font-size: 13.5px; font-weight: 600; }
  .me-text small { font-size: 12px; color: var(--text-3); }
}
.painel-flutuante { position: fixed; left: 12px; right: 12px; top: calc(70px + env(safe-area-inset-top)); z-index: 70; max-height: min(70vh, 560px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); overflow: hidden; animation: panel-in .18s ease-out; }
.painel-flutuante .head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px 18px; border-bottom: 1px solid var(--line); }
.painel-flutuante .head b { font-family: var(--font-head); font-size: 16px; }
.painel-flutuante ul { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.aviso { display: flex; gap: 12px; padding: 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.aviso:hover { background: var(--surface-2); }
.aviso.novo { background: rgba(198, 241, 53, 0.06); }
.aviso small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }
.aviso .ic { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.aviso .ic .i { width: 17px; height: 17px; }
.fundo-escuro { position: fixed; inset: 0; z-index: 39; background: rgba(4, 8, 5, 0.55); }
@media (min-width: 700px) { .painel-flutuante { position: absolute; left: auto; right: 0; top: calc(100% + 10px); width: 390px; } .fundo-escuro { background: transparent; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card + .card, .bloco + .bloco { margin-top: 14px; }
.card-title { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title .small { font-family: var(--font-body); font-weight: 400; }
.grid { display: grid; gap: 14px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; }
.grid-kpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) {
  .card { padding: 22px; }
  .card + .card, .bloco + .bloco { margin-top: 18px; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 18px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .grid-kpi { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .grid-2-1 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
}
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.kpi small { display: block; font-size: 12px; color: var(--text-3); }
.kpi b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi.destaque { background: radial-gradient(90% 120% at 100% 0%, rgba(198, 241, 53, 0.16), transparent 55%), linear-gradient(160deg, #13210f 0%, #0c160f 60%); border-color: rgba(214, 255, 120, 0.18); }
.kpi.destaque b { color: var(--accent-ink); }
.empty { color: var(--text-3); font-size: 14px; text-align: center; padding: 28px 10px; }
.empty .i { width: 30px; height: 30px; color: var(--accent-ink); opacity: .6; margin: 0 auto 10px; display: block; }

/* boas-vindas do captador */
.hero { position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px 20px; color: #eef3ea; background: radial-gradient(90% 120% at 100% 0%, rgba(198, 241, 53, 0.18), transparent 55%), linear-gradient(160deg, #13210f 0%, #0c160f 60%); border: 1px solid rgba(214, 255, 120, 0.16); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(214, 255, 120, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(214, 255, 120, 0.05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(70% 90% at 90% 10%, #000, transparent 70%); mask-image: radial-gradient(70% 90% at 90% 10%, #000, transparent 70%); }
.hero > * { position: relative; }
.hero h2 { font-family: var(--font-head); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 8px 0 8px; }
.hero h2 em { font-style: normal; color: var(--accent-ink); }
.hero p { color: #b8c6b9; margin: 0 0 18px; font-size: 14px; max-width: 520px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(214, 255, 120, 0.1); border-radius: 14px; overflow: hidden; margin-top: 18px; }
.hero-stats > div { background: rgba(10, 18, 12, 0.78); padding: 10px 12px; }
.hero-stats small { display: block; font-size: 11.5px; color: #8a9a8c; }
.hero-stats b { font-family: var(--font-head); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .hero { padding: 30px; } .hero h2 { font-size: 32px; } }

/* ---------- nota (anel) e faixas ---------- */
.anel { --v: 0; --cor: var(--accent); position: relative; width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--cor) calc(var(--v) * 1%), var(--track) 0); }
.anel::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.anel b { position: relative; font-family: var(--font-head); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.anel small { position: absolute; bottom: 18px; font-size: 10px; color: var(--text-3); }
.anel.sm { width: 54px; height: 54px; } .anel.sm::before { inset: 5px; } .anel.sm b { font-size: 18px; } .anel.sm small { display: none; }
.anel.banco { --cor: var(--warn); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 30px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.prio { background: var(--accent-soft); color: var(--accent-ink); }
.pill.banco { background: var(--warn-soft); color: var(--warn); }
.pill.perdido { background: var(--down-soft); color: var(--down); }
.pill.cinza { background: var(--surface-3); color: var(--text-2); }
.pill.info { background: var(--info-soft); color: var(--info); }
.nota-chip { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 9px; font: 700 14px var(--font-head); font-variant-numeric: tabular-nums; background: var(--accent-soft); color: var(--accent-ink); }
.nota-chip.banco { background: var(--warn-soft); color: var(--warn); }
.partes { display: flex; flex-direction: column; gap: 14px; }
.parte-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text-2); margin-bottom: 7px; }
.parte-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.trilho { height: 9px; border-radius: 10px; background: var(--track); overflow: hidden; }
.trilho span { display: block; height: 100%; border-radius: 10px; background: var(--accent); }
.trilho.banco span { background: var(--warn); }
.criterios { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.criterios li { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 13px; color: var(--text-2); padding: 7px 10px; border-radius: 10px; background: var(--surface-2); }
.criterios li b { color: var(--text); font-variant-numeric: tabular-nums; }
.criterios li span small { display: block; color: var(--text-3); font-size: 12px; }

/* ---------- lista de pontos ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filtros .input { width: auto; min-height: 42px; padding: 8px 12px; font-size: 14.5px; }
.filtros select.input { padding-right: 36px; }
.filtros .busca { flex: 1 1 220px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.seg button.on { background: var(--accent-soft); color: var(--accent-ink); }
.seg button em { font-style: normal; font-size: 12px; color: var(--text-3); }
.lista-pontos { display: flex; flex-direction: column; gap: 10px; }
.ponto-item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s ease, background .15s ease; text-align: left; width: 100%; }
.ponto-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.thumb { width: 56px; height: 56px; border-radius: 13px; flex-shrink: 0; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; color: var(--text-3); }
.thumb .i { width: 24px; height: 24px; }
.ponto-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ponto-info b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ponto-info small { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ponto-info .linha { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (min-width: 900px) { .lista-pontos.grade { display: grid; grid-template-columns: repeat(2, 1fr); } }

/* ---------- funil (quadro) ---------- */
.quadro { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 84vw); gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; align-items: start; }
@media (min-width: 700px) { .quadro { grid-auto-columns: minmax(250px, 1fr); scroll-snap-type: none; } }
.coluna { background: #0b130e; border: 1px solid var(--line); border-radius: 18px; padding: 10px; scroll-snap-align: start; min-height: 120px; display: flex; flex-direction: column; gap: 8px; }
.coluna.alvo { border-color: var(--accent-ink); background: rgba(198, 241, 53, 0.04); }
.coluna-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 6px; }
.coluna-head b { font-family: var(--font-head); font-size: 14.5px; font-weight: 600; }
.coluna-head span { font-size: 12px; color: var(--text-3); background: var(--surface-2); border-radius: 20px; padding: 1px 9px; }
.coluna.perdido .coluna-head b { color: var(--down); }
.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 7px; transition: border-color .15s ease, transform .1s ease; }
.cartao:hover { border-color: var(--line-2); }
.cartao[draggable="true"] { cursor: grab; }
.cartao.arrastando { opacity: .4; }
.cartao-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cartao-top b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cartao small { font-size: 12px; color: var(--text-3); }
.cartao .rodape { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dias { font-size: 11.5px; color: var(--text-3); }
.dias.alerta { color: var(--warn); }

/* ---------- ponto (detalhe) ---------- */
.ponto-head { display: flex; gap: 16px; align-items: center; }
.ponto-head h2 { font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 4px 0 4px; line-height: 1.15; }
.ponto-head .linha { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.trilha { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; padding-bottom: 2px; }
.trilha .passo { flex: 1 0 auto; min-width: 72px; display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.trilha .passo i { display: block; height: 5px; border-radius: 4px; background: var(--track); }
.trilha .passo.feito i { background: color-mix(in srgb, var(--accent) 55%, var(--surface-3)); }
.trilha .passo.atual i { background: var(--accent); }
.trilha .passo.atual { color: var(--accent-ink); font-weight: 600; }
.trilha.banco .passo.atual i { background: var(--warn); } .trilha.banco .passo.atual { color: var(--warn); }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dados { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; margin: 0; }
.dados > div { background: var(--surface-2); padding: 10px 12px; min-width: 0; }
.dados > div.full { grid-column: 1 / -1; }
.dados dt { font-size: 11.5px; color: var(--text-3); }
.dados dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 700px) { .galeria { grid-template-columns: repeat(4, 1fr); } }
.galeria .foto { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-3); cursor: zoom-in; border: 0; padding: 0; }
.galeria .foto img { width: 100%; height: 100%; object-fit: cover; }
.galeria .foto span { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; padding: 2px 7px; border-radius: 10px; background: rgba(7, 13, 9, .75); color: var(--text); }
.docs { display: flex; flex-direction: column; }
.doc { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; }
.doc + .doc { border-top: 1px solid var(--line); }
.doc-ext { width: 40px; height: 44px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font: 700 10.5px var(--font-head); letter-spacing: 0.04em; text-transform: uppercase; }
.doc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-info b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-info small { color: var(--text-3); font-size: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline small { display: block; color: var(--text-3); font-size: 12px; }
.tarefa { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: 14px; }
.tarefa + .tarefa { border-top: 1px solid var(--line); }
.tarefa.feita span { text-decoration: line-through; color: var(--text-3); }
.tarefa small { display: block; font-size: 12px; color: var(--text-3); }

/* ---------- novo ponto (passo a passo) ---------- */
.passos { display: flex; gap: 6px; margin-bottom: 16px; }
.passos button { flex: 1; border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--text-3); text-align: left; }
.passos button i { display: block; height: 4px; border-radius: 4px; background: var(--track); }
.passos button.feito i { background: color-mix(in srgb, var(--accent) 55%, var(--surface-3)); }
.passos button.atual i { background: var(--accent); }
.passos button.atual { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 520px) { .passos button span { display: none; } .passos button.atual span { display: inline; } }
.tipos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .tipos { grid-template-columns: repeat(4, 1fr); } }
.tipo { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; font-size: 14px; color: var(--text-2); text-align: left; min-height: 52px; }
.tipo .i { color: var(--text-3); }
.tipo.on { border-color: var(--accent-ink); background: var(--accent-soft); color: var(--accent-ink); }
.tipo.on .i { color: var(--accent-ink); }
.gps { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--line-2); }
.gps.ok { border-style: solid; border-color: var(--accent-ink); background: var(--accent-soft); }
.gps .txt { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-2); }
.gps .txt b { display: block; color: var(--text); font-size: 14.5px; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); border-radius: 30px; padding: 9px 15px; font-size: 14px; cursor: pointer; }
.opcao.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.captura { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.captura label.btn { cursor: pointer; }
.captura input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 700px) { .fila { grid-template-columns: repeat(5, 1fr); } }
.fila .item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-3); display: flex; flex-direction: column; justify-content: flex-end; }
.fila .item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fila .item.doc-item { align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 11.5px; color: var(--text-2); gap: 6px; }
.fila .item select { position: relative; margin: 4px; font-size: 11px; padding: 3px 4px; border-radius: 8px; background: rgba(7, 13, 9, .85); border: 1px solid var(--line-2); color: var(--text); max-width: calc(100% - 8px); }
.fila .item .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(7, 13, 9, .8); color: var(--text); cursor: pointer; display: grid; place-items: center; z-index: 1; }
.fila .item .x .i { width: 14px; height: 14px; }
.previa { position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.previa .txt { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); line-height: 1.35; }
.previa .txt b { color: var(--text); font-size: 14px; }
.rodape-passos { display: flex; gap: 10px; margin-top: 18px; }
.rodape-passos .btn { flex: 1; }
@media (min-width: 700px) { .rodape-passos { justify-content: flex-end; } .rodape-passos .btn { flex: 0 0 auto; min-width: 150px; } }
.progresso { height: 8px; border-radius: 8px; background: var(--track); overflow: hidden; margin-top: 10px; }
.progresso span { display: block; height: 100%; background: var(--accent); transition: width .2s ease; }

/* ---------- materiais ---------- */
.mat-grupo + .mat-grupo { margin-top: 22px; }
.mat-lista { display: grid; gap: 10px; }
@media (min-width: 900px) { .mat-lista { grid-template-columns: repeat(2, 1fr); } }
.material { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.material.arquivado { opacity: .55; }
.material .corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.material .corpo b { font-weight: 600; font-size: 15px; }
.material .corpo p { margin: 0; font-size: 13px; color: var(--text-2); }
.material .acoes { margin-top: 8px; gap: 6px; }

/* ---------- tabelas ---------- */
.tabela-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3); padding: 10px 12px; background: #0b130e; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tr.clicavel { cursor: pointer; }
.tabela tr.clicavel:hover td { background: var(--surface-2); }
.tabela td.num, .tabela th.num { text-align: right; font-variant-numeric: tabular-nums; }
.barras-h { display: flex; flex-direction: column; gap: 10px; }
.barra-h { display: grid; grid-template-columns: minmax(90px, 140px) 1fr 44px; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); }
.barra-h .trilho { height: 10px; }
.barra-h b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.histo { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; align-items: end; height: 120px; margin-top: 10px; }
.histo div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; font-size: 10.5px; color: var(--text-3); }
.histo i { display: block; width: 100%; max-width: 26px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--warn) 55%, var(--surface-3)); min-height: 2px; }
.histo div.acima i { background: var(--accent); }

/* ---------- janela (modal) e aviso rápido ---------- */
.modal-fundo { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(4, 8, 5, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: panel-in .15s ease-out; }
.modal { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
.modal h3 { font-family: var(--font-head); font-size: 19px; font-weight: 600; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal .rodape { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
@media (min-width: 700px) { .modal-fundo { align-items: center; } .modal { border-radius: 22px; padding: 24px; } }
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); animation: panel-in .2s ease-out; }
.toast.erro { background: var(--down); color: #1a0703; }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.zoom { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(4, 8, 5, 0.88); cursor: zoom-out; }
.zoom img { max-height: 88vh; max-width: 100%; border-radius: 14px; }
.copiar { display: flex; gap: 8px; }
.copiar input { flex: 1; min-width: 0; }
pre.json { margin: 0; font-size: 12px; white-space: pre-wrap; word-break: break-all; color: var(--text-2); background: var(--surface-2); padding: 10px; border-radius: 10px; max-height: 260px; overflow: auto; }
.instalar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(214, 255, 120, 0.3); background: radial-gradient(120% 140% at 0% 0%, rgba(198, 241, 53, 0.16), transparent 60%), var(--surface); margin-bottom: 14px; }
.instalar img { width: 46px; height: 46px; border-radius: 12px; }
.instalar .txt { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-2); }
.instalar .txt b { display: block; font-family: var(--font-head); font-size: 15.5px; color: var(--text); }
.carregando { display: grid; place-items: center; min-height: 40vh; color: var(--text-3); }
.carregando::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
/* itens de grade nunca estouram a largura no celular */
.grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-2-1 > *, .bloco-col { min-width: 0; }
.bloco-col > .card + .card { margin-top: 14px; }
@media (min-width: 900px) { .bloco-col > .card + .card { margin-top: 18px; } }
@media (max-width: 899px) { .grid-2-1 > * + * { margin-top: 14px; } .grid-2 > * + *, .grid-3 > * + * { margin-top: 0; } }
.hero-stats small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trilha { scrollbar-width: none; }
.trilha::-webkit-scrollbar { display: none; }
.trilha .passo { min-width: 0; flex: 1 1 0; }
.trilha .passo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .trilha .passo:not(.atual) { font-size: 0; } .trilha .passo { gap: 0; } .trilha .passo.atual { gap: 6px; overflow: visible; } }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-kpi > *, .grid-2-1 > * { margin-top: 0 !important; }
@media (max-width: 899px) { .grid-2-1 > * + * { margin-top: 14px !important; } }
@media (max-width: 520px) { .instalar { gap: 10px; padding: 12px; } .instalar img { width: 38px; height: 38px; } .instalar .txt { font-size: 12.5px; } .instalar .txt b { font-size: 14.5px; } }
@media (max-width: 520px) { .filtros .busca { flex-basis: 100%; } .filtros select.input { flex: 1 1 0; min-width: 0; font-size: 13.5px; padding-left: 10px; padding-right: 28px; background-position: right 6px center; } .filtros > .small { flex-basis: 100%; } }
.tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .tipos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tipo { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .tipos { gap: 6px; } .tipo { padding: 10px 9px; gap: 8px; font-size: 13px; overflow-wrap: normal; hyphens: auto; } .tipo .i { width: 18px; height: 18px; } .card { padding: 16px 14px; } }
