:root {
  --ink: #0a0a0b;
  --panel: #131316;
  --panel-2: #1a1a1f;
  --line: #26262c;
  --txt: #f4f4f5;
  --muted: #8b8b93;
  --amarelo: #ffd400;
  --teal: #00c2a8;
  --azul: #22b8cf;
  --rosa: #ff4d6d;
  --verde: #2fd07a;
  --grad: linear-gradient(90deg, #ffd400 0%, #8fd44a 22%, #00c2a8 48%, #ffb020 74%, #ff4d6d 100%);
  --r: 10px;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body, #root { height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font-family: var(--body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--azul); }

:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- layout ---------------- */
.app { min-height: 100%; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,10,11,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1400px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; border-radius: 4px; }
.brand-txt { font-family: var(--display); font-weight: 700; letter-spacing: .06em; font-size: 13px; }
.brand-txt span { color: var(--muted); font-weight: 500; }

.tabs { display: flex; gap: 4px; margin-left: 8px; }
.tab {
  background: none; border: 0; padding: 7px 13px; border-radius: 999px;
  color: var(--muted); font-weight: 500; font-size: 13px;
}
.tab:hover { color: var(--txt); }
.tab.on { background: var(--panel-2); color: var(--txt); }
.tab .badge {
  margin-left: 6px; font-family: var(--mono); font-size: 11px;
  background: var(--rosa); color: #fff; border-radius: 999px; padding: 1px 6px;
}

.spacer { flex: 1; }
.who { text-align: right; line-height: 1.25; }
.who b { display: block; font-size: 13px; }
.who small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.main { max-width: 1400px; width: 100%; margin: 0 auto; padding: 20px; flex: 1; }

/* ---------------- botões ---------------- */
.btn {
  border: 1px solid var(--line); background: var(--panel-2); color: var(--txt);
  padding: 8px 14px; border-radius: var(--r); font-weight: 500; font-size: 13px;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: #3a3a44; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  border: 0; color: #0a0a0b; font-weight: 700; background: var(--grad);
  background-size: 180% 100%; background-position: 0% 0;
  transition: background-position .4s ease;
}
.btn-primary:hover { background-position: 60% 0; }
.btn-ghost { background: none; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--txt); background: var(--panel-2); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ---------------- campos ---------------- */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.input, .select, .textarea {
  background: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; width: 100%; color: var(--txt);
}
.input:focus, .select:focus, .textarea:focus { border-color: #3a3a44; outline: none; }
.textarea { resize: vertical; min-height: 66px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 14px center, right 9px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }

/* ---------------- cadence rail (assinatura) ---------------- */
.rail { display: flex; gap: 2px; width: 74px; }
.rail i { height: 4px; flex: 1; border-radius: 2px; background: #26262c; display: block; }
.rail i.on { background: var(--grad); background-size: 500% 100%; }
.rail.dead i.on { background: #4a2a32; }
.rail.won i.on { background: var(--verde); }

/* ---------------- tabela ---------------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.card-head h2 { font-family: var(--display); font-size: 15px; margin: 0; letter-spacing: .01em; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); font-weight: 600; padding: 10px 12px;
  border-bottom: 1px solid var(--line); background: var(--panel-2); position: sticky; top: 0;
}
td { padding: 10px 12px; border-bottom: 1px solid #1c1c21; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #17171b; }
.nome { font-weight: 600; }
.handle { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.num { font-family: var(--mono); }

.pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; border: 1px solid transparent;
}
.pill-ok { background: rgba(47,208,122,.13); color: var(--verde); border-color: rgba(47,208,122,.3); }
.pill-warn { background: rgba(255,212,0,.12); color: var(--amarelo); border-color: rgba(255,212,0,.28); }
.pill-bad { background: rgba(255,77,109,.13); color: var(--rosa); border-color: rgba(255,77,109,.3); }
.pill-neutral { background: var(--panel-2); color: var(--muted); border-color: var(--line); }
.pill-info { background: rgba(34,184,207,.13); color: var(--azul); border-color: rgba(34,184,207,.3); }

.status-select {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 9px; font-size: 12px; max-width: 160px;
}

.atrasado { color: var(--rosa); font-weight: 600; }
.hoje { color: var(--amarelo); font-weight: 600; }

/* ---------------- filtros ---------------- */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filtros .input, .filtros .select { width: auto; min-width: 130px; padding: 7px 10px; font-size: 13px; }
.busca { min-width: 210px !important; }

/* ---------------- painel ---------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: .8; }
.kpi span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi b { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; margin-top: 6px; line-height: 1; }
.kpi small { color: var(--muted); font-size: 11px; }

.bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; min-width: 90px; }
.bar i { display: block; height: 100%; background: var(--grad); }

/* ---------------- login ---------------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; }
.login-logo { display: block; width: 190px; margin: 0 auto 26px; border-radius: 6px; }
.login-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.login-box h1 { font-family: var(--display); font-size: 17px; margin: 0 0 3px; }
.login-box p.sub { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.login-box .field { margin-bottom: 12px; }
.login-alt { text-align: center; margin-top: 14px; font-size: 12px; color: var(--muted); }
.login-alt button { background: none; border: 0; color: var(--azul); font-size: 12px; padding: 0; }

/* ---------------- modal ---------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 60;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; width: 100%; max-width: 780px; }
.modal-head { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-family: var(--display); font-size: 16px; margin: 0; }
.modal-body { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.modal-body .wide { grid-column: 1 / -1; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); }
.grupo { grid-column: 1 / -1; font-family: var(--display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.grupo:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------------- avisos ---------------- */
.alerta { padding: 10px 13px; border-radius: 9px; font-size: 13px; margin-bottom: 12px; border: 1px solid; }
.alerta-erro { background: rgba(255,77,109,.1); border-color: rgba(255,77,109,.35); color: #ff97ab; }
.alerta-ok { background: rgba(47,208,122,.1); border-color: rgba(47,208,122,.35); color: #7fe3ac; }

.vazio { padding: 44px 20px; text-align: center; color: var(--muted); }
.vazio b { display: block; color: var(--txt); font-family: var(--display); font-size: 15px; margin-bottom: 5px; }

.carregando { padding: 40px; text-align: center; color: var(--muted); }

/* ---------------- mobile ---------------- */
@media (max-width: 860px) {
  .modal-body { grid-template-columns: 1fr; }
  .topbar-in { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; }
  .main { padding: 14px; }
  .who small { display: none; }
}

/* ---------------- kanban ---------------- */
.kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(258px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: start;
}

.col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.col.alvo { border-color: #4a4a56; background: #16161b; }

.col-top { padding: 12px 13px 10px; border-bottom: 1px solid var(--line); }
.col-risco { height: 3px; border-radius: 2px; margin-bottom: 10px; }
.col-nome {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 12px;
  letter-spacing: .09em; text-transform: uppercase;
}
.col-qtd {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: var(--panel-2); border-radius: 999px; padding: 1px 7px;
}
.col-sub { color: var(--muted); font-size: 11px; margin-top: 4px; }
.col-corpo { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.col-vazia { padding: 22px 12px; text-align: center; color: #55555e; font-size: 12px; }

.kcard {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  cursor: grab;
  transition: transform .12s, border-color .15s;
}
.kcard:hover { border-color: #3d3d47; transform: translateY(-1px); }
.kcard:active { cursor: grabbing; }
.kcard.arrastando { opacity: .35; }
.kcard.vencido { border-left-color: var(--rosa); }
.kcard.hoje { border-left-color: var(--amarelo); }

.kcard-topo { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.ini {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 11px; color: #0a0a0b;
}
.kcard-id { min-width: 0; flex: 1; }
.kcard-nome {
  font-weight: 600; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kcard-sub {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kcard-marca {
  font-size: 12px; color: var(--txt); margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kcard-marca span { color: var(--muted); }
.kcard-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.tag {
  font-size: 10px; padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.kcard-pe {
  display: flex; align-items: center; gap: 8px;
  padding-top: 9px; border-top: 1px solid #232329;
}
.kcard-prazo { font-size: 11px; flex: 1; color: var(--muted); }
.kcard-acao {
  border: 1px solid var(--line); background: var(--ink); color: var(--muted);
  border-radius: 7px; padding: 3px 8px; font-size: 11px; font-weight: 500;
}
.kcard-acao:hover { color: var(--txt); border-color: #3d3d47; }
.kcard-acao.forte { background: var(--grad); border: 0; color: #0a0a0b; font-weight: 700; }

.kb-topo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.kb-topo h2 { font-family: var(--display); font-size: 15px; margin: 0; }
.kb-topo p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.kb-dica { color: #55555e; font-size: 11px; }

@media (max-width: 860px) {
  .kanban { grid-auto-columns: minmax(232px, 82vw); }
  .kcard { cursor: default; }
}

/* ---------------- pesquisa com IA ---------------- */
.btn-ia {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--grad) border-box;
  color: var(--txt);
  font-weight: 600;
}
.btn-ia:hover { color: #fff; }
.btn-ia:disabled { opacity: .6; }

.ia-box {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
}
.ia-topo { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; }
.ia-selo {
  font-family: var(--display); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--grad); color: #0a0a0b;
  padding: 3px 9px; border-radius: 999px;
}
.tag-fraca { color: var(--amarelo); border-color: rgba(255,212,0,.3); }
.ia-linha { font-size: 13px; line-height: 1.55; margin-bottom: 7px; color: #d5d5da; }
.ia-linha b { color: var(--txt); }
.ia-msg {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 11px 12px; margin: 10px 0;
  font-size: 13px; line-height: 1.6;
}
.ia-msg-rot {
  font-size: 10px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin-bottom: 6px;
}
.ia-fontes { font-size: 11px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ia-fontes a {
  color: var(--azul); text-decoration: none;
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-bottom: 1px solid rgba(34,184,207,.3);
}
.ia-aviso {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line);
  font-size: 11px; color: var(--amarelo);
}

/* =========================================================
   SHELL: rail lateral + topo + dashboard
   ========================================================= */
.shell { display: flex; min-height: 100dvh; background: var(--ink); }

.rail {
  width: 66px; flex: none;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0; gap: 6px;
  position: sticky; top: 0; height: 100dvh;
}
.rail-logo { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 18px; }
.rail-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 0; background: none; color: #6a6a74;
  display: grid; place-items: center;
  transition: color .15s, background .15s;
  position: relative;
}
.rail-btn:hover { color: var(--txt); background: var(--panel-2); }
.rail-btn.on { background: var(--panel-2); color: var(--txt); }
.rail-btn.on::before {
  content: ''; position: absolute; left: -13px; top: 9px;
  width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--grad);
}
.rail-btn .pip {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--rosa);
  border: 2px solid var(--panel);
}
.rail-fim { margin-top: auto; }
.rail-add {
  width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: var(--grad); color: #0a0a0b;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
  line-height: 1;
}

.conteudo { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.barra {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,10,11,.94); backdrop-filter: blur(8px);
}
.busca-pill {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; width: 290px; max-width: 42vw;
}
.busca-pill input { background: none; border: 0; outline: none; width: 100%; font-size: 13px; }
.busca-pill input::placeholder { color: #5c5c66; }
.barra-titulo {
  flex: 1; text-align: center;
  font-family: var(--display); font-size: 15px; letter-spacing: .04em;
}
.eu { display: flex; align-items: center; gap: 10px; }
.eu-txt { text-align: right; line-height: 1.3; }
.eu-txt b { display: block; font-size: 13px; }
.eu-txt small { color: var(--muted); font-size: 11px; }
.eu-av {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 13px; color: #0a0a0b;
}

.painel { padding: 4px 22px 26px; }
.ola { font-family: var(--display); font-size: 26px; font-weight: 700; margin: 0 0 18px; }
.ola span { color: var(--muted); font-weight: 500; font-size: 14px; display: block; margin-top: 4px; letter-spacing: 0; }

.grade { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 16px; align-items: start; }

.kpis3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi3 {
  border-radius: 16px; padding: 16px 17px; color: #0a0a0b;
  position: relative; overflow: hidden; min-height: 118px;
  display: flex; flex-direction: column;
}
.kpi3 b { font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.kpi3 em { font-family: var(--display); font-size: 34px; font-weight: 700; font-style: normal; margin: 6px 0 auto; }
.kpi3 button {
  background: none; border: 0; padding: 0; text-align: left;
  font-size: 11px; font-weight: 600; color: rgba(0,0,0,.62);
  text-decoration: underline; text-underline-offset: 3px;
}
.kpi3 button:hover { color: #0a0a0b; }
.kpi3 i {
  position: absolute; right: -14px; bottom: -14px;
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.bloco {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
}
.bloco-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
}
.bloco-top h3 { font-family: var(--display); font-size: 14px; margin: 0; }
.bloco-top .spacer { flex: 1; }
.bloco-corpo { padding: 0 16px 16px; }

.duo { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; margin-top: 16px; }

.lateral { display: flex; flex-direction: column; gap: 16px; }
.lat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.lat-marca { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lat-marca img { width: 30px; height: 30px; border-radius: 9px; }
.lat-marca b { display: block; font-size: 13px; }
.lat-marca small { color: var(--muted); font-size: 11px; }

.donut-linha { display: flex; align-items: center; gap: 14px; }
.legenda { display: flex; flex-direction: column; gap: 7px; font-size: 11px; }
.legenda div { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.legenda i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.legenda b { color: var(--txt); font-family: var(--mono); font-weight: 500; }
.lat-nota { text-align: center; color: var(--muted); font-size: 11px; margin: 12px 0 0; }

.lat-lista { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.lat-item {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; padding: 6px 0; color: var(--muted);
}
.lat-item b { color: var(--txt); font-family: var(--mono); font-weight: 500; }
.lat-item .up { color: var(--verde); font-size: 11px; margin-left: 6px; }

.medidor { margin-top: 14px; }
.medidor span { font-size: 11px; color: var(--muted); }
.medidor b { display: block; font-family: var(--display); font-size: 24px; margin: 3px 0 7px; }

.cal-topo { display: flex; align-items: center; margin-bottom: 10px; }
.cal-mes { font-size: 12px; font-weight: 600; }
.cal-nav { background: none; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); padding: 2px 8px; font-size: 12px; }
.cal-nav:hover { color: var(--txt); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: 10px; color: #55555e; padding-bottom: 4px; }
.cal-dia {
  aspect-ratio: 1; border-radius: 8px; border: 0; background: none;
  color: var(--txt); font-size: 12px; position: relative;
  display: grid; place-items: center;
}
.cal-dia.fora { color: #3a3a42; }
.cal-dia.hoje { background: var(--amarelo); color: #0a0a0b; font-weight: 700; }
.cal-dia.tem::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--teal);
}
.cal-dia.hoje.tem::after { background: #0a0a0b; }
.cal-dia:hover:not(.fora) { background: var(--panel-2); }
.cal-dia.hoje:hover { background: var(--amarelo); }

.mini-tabela { width: 100%; border-collapse: collapse; }
.mini-tabela th {
  position: static; background: none; border-bottom: 1px solid var(--line);
  padding: 8px 10px; font-size: 10px;
}
.mini-tabela td { padding: 9px 10px; font-size: 12px; border-bottom: 1px solid #1c1c21; }
.mini-tabela tr:last-child td { border-bottom: 0; }

.semana { display: flex; align-items: flex-end; gap: 9px; height: 128px; padding: 6px 0; }
.semana-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; }
.semana-tubo { flex: 1; width: 15px; background: #1e1e23; border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.semana-tubo i { display: block; width: 100%; border-radius: 8px; min-height: 4px; }
.semana-col span { font-size: 10px; color: var(--muted); }

@media (max-width: 1100px) {
  .grade { grid-template-columns: minmax(0, 1fr); }
  .duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .rail { width: 54px; }
  .barra { padding: 12px 14px; gap: 10px; }
  .barra-titulo { display: none; }
  .busca-pill { width: auto; flex: 1; max-width: none; }
  .eu-txt { display: none; }
  .painel { padding: 0 14px 22px; }
  .kpis3 { grid-template-columns: minmax(0, 1fr); }
  .ola { font-size: 21px; }
}
