/* =====================================================================
   Painel Valentis — identidade visual da marca, pensado para o dia todo
   - Área de trabalho clara e suave (sem branco puro), com tema escuro opcional.
   - Menu lateral e login mantêm o fundo escuro do logo.
   ===================================================================== */
:root {
  color-scheme: light;

  --brand-bg: #080417;   /* fundo do logo (menu lateral e login) */

  --canvas: #EEEDF6;     /* fundo da área de trabalho */
  --surface: #FAF9FE;    /* painéis e tabelas */
  --surface-2: #F0EEF9;  /* cabeçalho de tabela */
  --field: #FFFFFF;      /* campos de formulário */
  --line: #DAD7EC;
  --line-2: #C4C0DE;
  --ink: #1E1A3A;
  --muted: #5E5A85;
  --placeholder: #8A86B0;
  --link: #5B21D6;
  --link-hover: #3F12A8;
  --focus: #5B21D6;
  --hover: rgba(91, 33, 214, .07);

  --c-rec: #0092B8;      /* recebido */
  --c-cus: #D31FB5;      /* custos */
  --g1: #6D3FE0; --g2: #007A99;

  --good: #157A4B; --good-bg: rgba(21, 122, 75, .13);
  --warn: #8A5300; --warn-bg: rgba(200, 120, 0, .16);
  --bad: #B3243F;  --bad-bg: rgba(179, 36, 63, .12);
  --neutral-bg: rgba(94, 90, 133, .14);

  --grad-brand: linear-gradient(90deg, #C41DDB, #6A1BFF);
  --radius: 8px;
}

/* tema escuro opcional: cinza-índigo mais claro que o preto do logo */
:root[data-theme="dark"] {
  color-scheme: dark;

  --canvas: #1B1640;
  --surface: #262050;
  --surface-2: #2F2862;
  --field: #171238;
  --line: #3A3378;
  --line-2: #4A4290;
  --ink: #ECEAFF;
  --muted: #B0ACDA;
  --placeholder: #7C78AE;
  --link: #5FE3FF;
  --link-hover: #A5F0FF;
  --focus: #5FE3FF;
  --hover: rgba(140, 100, 255, .13);

  --c-rec: #2FD8F5;
  --c-cus: #FF5BDD;
  --g1: #A58BFF; --g2: #2FD8F5;

  --good: #4BE3A3; --good-bg: rgba(75, 227, 163, .16);
  --warn: #FFC067; --warn-bg: rgba(255, 192, 103, .16);
  --bad: #FF7A8F;  --bad-bg: rgba(255, 122, 143, .16);
  --neutral-bg: rgba(176, 172, 218, .16);
}

/* zonas sempre escuras (marca): menu lateral e login */
.side, .login-wrap, dialog.sheet {
  color-scheme: dark;
  --canvas: #0D0926; --surface: #150F38; --surface-2: #1B1445; --field: #080417;
  --line: #2A2260; --line-2: #3A3080; --ink: #F2F0FF; --muted: #A29ECF; --placeholder: #6E6A9E;
  --link: #5FE3FF; --focus: #5FE3FF; --bad: #FF7A8F;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
h1, h2 { font-family: 'Outfit', 'Hanken Grotesk', system-ui, sans-serif; }
h1 { font-size: 27px; margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
h2 { font-size: 18px; margin: 0 0 10px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--surface);
  padding: 8px 14px; border-radius: var(--radius); border: 0; font: inherit; cursor: pointer; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- login ---------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: var(--brand-bg); position: relative; overflow: hidden; color: var(--ink);
}
.login-wrap .cube { position: absolute; pointer-events: none; user-select: none; }
.login-wrap .cube.a { width: min(46vw, 520px); top: -9%; left: -8%; transform: rotate(-8deg); opacity: .17; }
.login-wrap .cube.b { width: min(26vw, 280px); bottom: -6%; right: 6%; transform: rotate(10deg); opacity: .10; }
.login {
  position: relative; width: 100%; max-width: 400px; padding: 34px 32px 30px;
  background: var(--brand-bg); border: 1px solid var(--line); border-radius: 4px;
}
/* moldura do logo: linha magenta→azul no canto superior e colchete ciano no inferior */
.login::before, .login::after { content: ''; position: absolute; pointer-events: none; }
.login::before {
  top: -1px; left: -1px; width: 64%; height: 72%;
  border-top: 2px solid; border-left: 2px solid;
  border-image: linear-gradient(90deg, #FF2ED1, #4A4AE8) 1;
}
.login::after {
  right: -1px; bottom: -1px; width: 34%; height: 46%;
  border-right: 2px solid #00D9FF; border-bottom: 2px solid #00D9FF;
}
.login .logo { display: block; width: 210px; max-width: 70%; margin: 0 auto 22px; }
.login .muted { text-align: center; margin-bottom: 22px; }

/* ---------- estrutura ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  background: var(--brand-bg); color: #B9B5E6; padding: 18px 0 14px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { padding: 0 18px 8px; }
.brand img { display: block; width: 100%; max-width: 176px; height: auto; margin: 0 auto; }
.side nav { flex: 1; overflow-y: auto; padding-bottom: 8px; }
.nav-group { padding: 12px 22px 4px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #8D89C0; }
.side nav a {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 22px; color: #C9C5EE; text-decoration: none; font-weight: 500;
}
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.side nav a.on .ic, .side nav a:hover .ic { opacity: 1; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.on { color: #fff; background: rgba(106, 27, 255, .22); }
.side nav a.on::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #FF2ED1, #00D9FF);
}
.side .foot-btns { display: grid; gap: 8px; margin: 10px 22px 0; }
.foot-btns button {
  background: none; border: 1px solid var(--line-2); color: #C9C5EE; padding: 8px; border-radius: var(--radius);
  cursor: pointer; font: inherit;
}
.foot-btns button:hover { color: #fff; border-color: #00D9FF; }

main { padding: 28px 34px 64px; min-width: 0; max-width: 1240px; }
main:focus { outline: none; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head p { margin-top: 4px; }
.head .quick { display: flex; gap: 8px; flex-wrap: wrap; }
.head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -6px 0 16px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg a { padding: 7px 18px; min-height: 38px; display: inline-flex; align-items: center; color: var(--muted); font-weight: 600; text-decoration: none; }
.seg a + a { border-left: 1px solid var(--line-2); }
.seg a:hover { color: var(--ink); background: var(--hover); }
.seg a.on { background: var(--ink); color: var(--surface); }

/* ---------- botões e formulários ---------- */
button, .btn { font: inherit; }
.btn {
  background: var(--grad-brand); color: #fff; border: 0; border-radius: var(--radius);
  padding: 10px 18px; cursor: pointer; font-weight: 600; min-height: 42px;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--link); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--link); filter: none; }
.btn.sm { padding: 6px 12px; min-height: 36px; font-size: 14.5px; }
.btn.danger { background: var(--bad); color: #fff; }
:root[data-theme="dark"] .btn.danger { color: #1B1640; }
.btn:disabled { opacity: .55; cursor: wait; }
.link {
  background: none; border: 0; padding: 4px 8px; color: var(--link); cursor: pointer; font-weight: 600;
  border-radius: 6px;
}
.link:hover { color: var(--link-hover); background: var(--hover); }
.link.danger { color: var(--muted); font-weight: 500; }
.link.danger:hover { color: var(--bad); background: var(--bad-bg); }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; color: var(--ink); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--field);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; min-height: 42px;
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
textarea { min-height: 88px; resize: vertical; }
input[type=checkbox] { width: auto; min-height: 0; margin-right: 8px; accent-color: #C41DDB; }
.field { margin-bottom: 14px; }
.field.check label { display: flex; align-items: center; margin: 0; font-weight: 500; }
.err { color: var(--bad); font-size: 14.5px; margin: 8px 0 0; }

/* ---------- barra de ferramentas das listas ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.toolbar .count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.search { width: 260px; max-width: 100%; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px;
  cursor: pointer; color: var(--muted); font-weight: 500; min-height: 36px;
}
.tab:hover { color: var(--ink); border-color: var(--muted); }
.tab.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.tab b { font-weight: 600; margin-left: 6px; opacity: .85; }

/* ---------- tabelas ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel.pad { padding: 18px 22px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th.nw, td.nw { white-space: nowrap; }
td:first-child { white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
td .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
th { font-size: 13.5px; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
th.num { text-align: right; }
tbody tr:hover td { background: var(--hover); }
tr:last-child td { border-bottom: 0; }
td.acts { text-align: right; white-space: nowrap; }
/* coluna de ações sempre visível, mesmo quando a tabela rola para o lado */
th.acts, td.acts { position: sticky; right: 0; z-index: 1; box-shadow: -10px 0 10px -10px rgba(10, 6, 40, .3); }
td.acts:has(details.menu[open]) { z-index: 60; } /* o menu aberto passa por cima das linhas seguintes */
th.acts { background: var(--surface-2); }
tbody td.acts { background-color: var(--surface); }
tbody tr:hover td.acts { background-color: var(--surface); background-image: linear-gradient(var(--hover), var(--hover)); }
tbody tr.hl td.acts { background-image: linear-gradient(var(--hover), var(--hover)); }
.acts-wrap { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
details.menu { position: relative; }
details.menu summary {
  list-style: none; cursor: pointer; min-width: 36px; min-height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--muted); font-size: 20px; line-height: 1; user-select: none;
}
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary:hover, details.menu[open] summary { color: var(--ink); border-color: var(--muted); background: var(--hover); }
.menu-list {
  position: fixed; z-index: 60; min-width: 190px; padding: 6px; display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(10, 6, 40, .28);
}
.mi {
  text-align: left; background: none; border: 0; padding: 9px 12px; min-height: 40px; border-radius: 6px;
  color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.mi:hover { background: var(--hover); }
.mi.danger { color: var(--bad); }
.mi.danger:hover { background: var(--bad-bg); }
.group { margin-bottom: 24px; }
.group h2 { display: flex; align-items: baseline; gap: 8px; }
.group h2 span { color: var(--muted); font-weight: 400; font-size: 14px; }
.empty { padding: 30px 22px; color: var(--muted); }

.badge {
  display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--neutral-bg); color: var(--muted);
}
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- painel (dashboard) ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 20px; overflow: hidden; }
.kpi { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi .l { color: var(--muted); font-size: 14px; }
.kpi .v { font-family: 'Outfit', 'Hanken Grotesk', sans-serif; font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; margin-top: 2px; }
.kpi .h { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.kpi .v.neg { color: var(--bad); }
.sec { margin-bottom: 26px; }
.sec > h2 { margin-bottom: 12px; }
.sec-sub { font-family: 'Outfit', 'Hanken Grotesk', system-ui, sans-serif; font-size: 16px; font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tile {
  display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-left-width: 4px; border-left-color: var(--line-2);
}
.tile:hover { border-color: var(--line-2); background: var(--hover); }
.tile .n { font-family: 'Outfit', 'Hanken Grotesk', sans-serif; font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .t { font-weight: 600; }
.tile .s { color: var(--muted); font-size: 14px; }
.tile.bad { border-left-color: var(--bad); } .tile.bad .n { color: var(--bad); }
.tile.warn { border-left-color: var(--warn); } .tile.warn .n { color: var(--warn); }
.tile.good { border-left-color: var(--good); } .tile.good .n { color: var(--good); }
.tile.zero .n { color: var(--muted); }
a.kpi { display: block; color: inherit; text-decoration: none; }
a.kpi:hover { background: var(--hover); }
.kpis.main { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 0; }
.kpis.main .v { font-size: 28px; }
.kpis.sub { margin-bottom: 16px; }
.kpis.sub .kpi { padding: 12px 18px; }
.kpis.sub .v { font-size: 20px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.legend { display: flex; gap: 18px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart { width: 100%; height: auto; display: block; }
.chart .rec { fill: var(--c-rec); }
.chart .cus { fill: var(--c-cus); }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart line { stroke: var(--line-2); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list .sub { color: var(--muted); font-size: 14px; }

/* ---------- fluxos de venda ---------- */
.flows { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line-2); }
.steps li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 0 0 18px; }
.steps li:last-child { padding-bottom: 0; }
.steps .n {
  z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--c, var(--g1)); color: var(--c, var(--g1)); font-weight: 700;
  font-family: 'Outfit', 'Hanken Grotesk', sans-serif;
}
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 15px; }
.steps .g1 { --c: var(--g1); } .steps .g2 { --c: var(--g2); } .steps .g3 { --c: var(--good); }

.decision { display: grid; justify-items: center; }
.node { border: 2px solid var(--line-2); border-radius: var(--radius); padding: 12px 16px; text-align: center; background: var(--surface-2); width: 100%; max-width: 300px; }
.node b { display: block; font-weight: 600; }
.node span { display: block; font-size: 15px; color: var(--muted); }
.node.ask { border-color: #4A6CF0; }
.node.no { border-color: var(--g2); }
.node.yes { border-color: var(--c-cus); }
.node.end { border-color: var(--good); }
.conn { width: 2px; height: 22px; background: var(--line-2); }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; justify-items: center; }
.branch { display: grid; justify-items: center; gap: 0; width: 100%; }
.branch .tag { font-weight: 600; font-size: 14px; color: var(--muted); margin-bottom: 6px; }

/* ---------- janela de formulário ---------- */
dialog.form {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0;
  width: min(580px, calc(100vw - 24px)); max-height: calc(100vh - 40px); color: var(--ink);
}
dialog.form::backdrop { background: rgba(20, 14, 50, .55); }
dialog.form form { padding: 24px 26px; }
dialog.form h2 { font-size: 20px; margin-bottom: 18px; }
dialog.confirm { width: min(440px, calc(100vw - 24px)); }
dialog.confirm .cf { padding: 24px 26px; }
dialog.confirm h2 { margin-bottom: 8px; }
dialog.confirm .dlg-actions { margin-top: 20px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fgrid .full { grid-column: 1 / -1; }
.fsec { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 4px; }
.fsec summary { cursor: pointer; font-weight: 600; padding: 10px 0; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.fsec summary::-webkit-details-marker { display: none; }
.fsec summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
.fsec[open] summary::before { transform: rotate(90deg); }
.fsec .fgrid { padding-top: 6px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--surface);
  padding: 11px 18px; border-radius: var(--radius); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; max-width: 90vw; font-weight: 500;
}
#toast.show { opacity: 1; }
#toast.bad { background: var(--bad); color: #fff; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .flows { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; flex: 0 0 auto; }
  .brand img { width: 104px; margin: 0; }
  .side nav, .side .foot-btns { display: none; }
  .side-search { margin: 0 0 0 auto; width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .side-search span, .side-search kbd { display: none; }
  main { padding: 18px 16px calc(92px + env(safe-area-inset-bottom)); }
  .grid2 { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .branches { gap: 10px; }
  .search { width: 100%; }
  .toolbar .right { width: 100%; margin-left: 0; }
}

/* ---------- carregando (esqueleto) ---------- */
.skel { display: grid; gap: 14px; }
.skel i {
  display: block; border-radius: var(--radius); height: 56px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--hover) 50%, var(--surface-2) 75%); background-size: 300% 100%;
  animation: skel 1.4s ease-in-out infinite;
}
.skel i.h { height: 34px; width: min(300px, 60%); }
.skel i.t { height: 180px; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  #toast { transition: none; }
  .skel i { animation: none; }
  .fsec summary::before { transition: none; }
}

/* ---------- ficha do cliente, funil e backup ---------- */
a.ref { color: var(--link); font-weight: 600; text-decoration: none; }
a.ref:hover { color: var(--link-hover); text-decoration: underline; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.crumb { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: -4px 0 20px; }
.meta div { display: grid; gap: 0; }
.meta .muted { font-size: 13.5px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 12px; margin: 10px 0; }
.bar { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--grad-brand); border-radius: 7px; min-width: 2px; }
.bar i.good { background: var(--good); }
.bar i.bad { background: var(--bad); }
@media (max-width: 820px) {
  .bar-row { grid-template-columns: 110px 1fr 32px; }
  .meta { gap: 8px 22px; }
}

/* ---------- roteiros ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rot-top { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 16px; }
.rot-top .info { grid-column: 1 / -1; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.rot { display: grid; grid-template-columns: 290px 1fr; gap: 16px; align-items: start; }
.rot-steps { display: grid; gap: 6px; }
.rot-step { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; color: var(--ink); cursor: pointer; font: inherit; font-weight: 600; min-height: 44px; }
.rot-step:hover { border-color: var(--muted); }
.rot-step.on { border-color: var(--link); box-shadow: inset 3px 0 0 var(--link); background: var(--hover); }
.rot-step small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
.msg { width: 100%; min-height: 200px; font-size: 16px; line-height: 1.6; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 0; }
.rot-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.rot-card { margin-bottom: 12px; }
.rot-card-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.rot-card h3 { font-size: 17px; }
.msgtxt { line-height: 1.6; white-space: pre-wrap; }
td.wrap { white-space: normal; min-width: 220px; line-height: 1.5; }
tr.hl td { background: var(--hover); }
@media (max-width: 820px) { .rot { grid-template-columns: 1fr; } .rot-top { grid-template-columns: 1fr; } }

/* ---------- busca global (Ctrl/⌘ + K) ---------- */
.side-search {
  display: flex; align-items: center; gap: 10px; margin: 2px 22px 2px; padding: 8px 12px; min-height: 40px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2); border-radius: var(--radius); color: #C9C5EE; cursor: pointer; font: inherit;
}
.side-search:hover { color: #fff; border-color: #00D9FF; }
.side-search span { flex: 1; text-align: left; }
kbd {
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 6px; border-radius: 5px;
  border: 1px solid var(--line-2); color: var(--muted); background: transparent;
}
dialog.cmdk {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 0;
  width: min(640px, calc(100vw - 24px)); margin: 12vh auto auto; box-shadow: 0 24px 60px rgba(10, 6, 40, .45);
}
dialog.cmdk::backdrop { background: rgba(20, 14, 50, .55); }
.ck-in { display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.ck-in .ic { width: 20px; height: 20px; color: var(--muted); }
.ck-in input { flex: 1; border: 0; background: transparent; box-shadow: none; font-size: 17px; min-height: 48px; padding: 0; color: var(--ink); }
.ck-in input:focus { outline: none; box-shadow: none; }
#ckl { list-style: none; margin: 0; padding: 6px; max-height: min(52vh, 420px); overflow-y: auto; }
#ckl .ck-g { padding: 10px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
#ckl [role=option] { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; min-height: 48px; }
#ckl [role=option].on { background: var(--hover); box-shadow: inset 3px 0 0 var(--link); }
#ckl .ic { color: var(--muted); }
#ckl .ck-t { flex: 1; min-width: 0; display: grid; }
#ckl .ck-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ckl .ck-t small { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ckl .ck-k { font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
#ckl .ck-vazio { padding: 22px 12px; text-align: center; color: var(--muted); }
.ck-foot { display: flex; gap: 16px; margin: 0; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ck-foot span:last-child { margin-left: auto; }

/* ---------- quadro de leads (Kanban) ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(262px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); min-height: 140px; }
.col.over { outline: 2px dashed var(--link); outline-offset: -5px; background: var(--hover); }
.col-h { display: flex; align-items: baseline; gap: 8px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.col-h b { font-weight: 700; }
.col-h .n { color: var(--muted); font-weight: 600; }
.col-h small { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.col-b { display: grid; gap: 8px; padding: 10px; }
.col .vazio { color: var(--muted); text-align: center; padding: 14px 0; margin: 0; font-size: 14.5px; }
.lead-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 4px; cursor: grab; }
.lead-card:hover { border-color: var(--line-2); }
.lead-card.drag { opacity: .45; }
.lead-card .t { text-align: left; background: none; border: 0; padding: 0; color: var(--ink); font-weight: 700; cursor: pointer; min-height: 28px; }
.lead-card .t:hover { color: var(--link); text-decoration: underline; }
.lead-card .s { color: var(--muted); font-size: 13.5px; }
.lead-card .row2 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.lead-card .f { font-size: 13.5px; color: var(--muted); }
.lead-card .f.late { color: var(--bad); font-weight: 600; }
.lead-card .mv { min-height: 36px; font-size: 14px; padding: 4px 8px; margin-top: 4px; }

/* ---------- ficha: ações rápidas, abas e linha do tempo ---------- */
.ficha-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 16px; }
.ficha-abas { margin: 18px 0 14px; }
.tl-list { list-style: none; margin: 8px 0 18px; padding: 0; position: relative; }
.tl-list::before { content: ''; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl { position: relative; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; padding: 8px 0; }
.tl .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line-2); color: var(--muted); z-index: 1; }
.tl .dot .ic { width: 17px; height: 17px; opacity: 1; }
.tl.good .dot { border-color: var(--good); color: var(--good); background: var(--good-bg); }
.tl.warn .dot { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }
.tl.bad .dot { border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }
.tl .s { color: var(--muted); font-size: 14px; margin-top: 2px; }
.tl time { color: var(--muted); font-size: 13.5px; white-space: nowrap; padding-top: 2px; }
@media (max-width: 820px) {
  .tl { grid-template-columns: 36px 1fr; }
  .tl time { grid-column: 2; padding-top: 0; }
  dialog.cmdk { margin-top: 8vh; }
  .ck-foot span:not(:last-child) { display: none; }
}


/* ---------- celular: barra inferior, folha "Mais", cartões e quadro (Fase 3) ---------- */
.bnav { display: none; }
dialog.sheet { border: 0; padding: 0; background: var(--brand-bg); color: #C9C5EE; }
dialog.sheet::backdrop { background: rgba(8, 4, 23, .6); }
.sheet-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 22px; min-height: 42px; color: #E6E3FF; text-decoration: none; font-weight: 500; }
.sheet-nav a.on { background: rgba(106, 27, 255, .25); color: #fff; }
dialog.sheet .foot-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 22px 22px; }
dialog.sheet .foot-btns .fechar { grid-column: 1 / -1; }

@media (max-width: 820px) {
  .bnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--brand-bg); border-top: 1px solid #2A2260; padding-bottom: env(safe-area-inset-bottom);
  }
  .bnav a, .bnav button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px;
    background: none; border: 0; color: #B9B5E6; font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer;
  }
  .bnav .ic { width: 22px; height: 22px; }
  .bnav .on { color: #fff; }
  .bnav .on::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #FF2ED1, #00D9FF); }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .side .side-search { margin: 0 0 0 auto; width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .side .side-search span, .side .side-search kbd { display: none; }
  .sheet-nav .nav-group { padding: 10px 22px 2px; }
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 88dvh; overflow-y: auto; }
  dialog.form { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 94dvh; }
  dialog.confirm { width: calc(100vw - 24px); margin: auto; border-radius: 12px; }

  .head-btns { width: 100%; }
  .head-btns .btn { flex: 1; justify-content: center; }
  .seg { display: flex; width: 100%; }
  .seg a { flex: 1; justify-content: center; padding: 7px 8px; }
  .ficha-abas { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .ficha-abas .tab { flex: none; white-space: nowrap; }
  .board { grid-auto-columns: 84vw; scroll-snap-type: x proximity; }
  .col { scroll-snap-align: start; }

  /* tabelas viram cartões */
  .panel.scroll:has(table.cards) { background: none; border: 0; overflow: visible; }
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; }
  table.cards thead { display: none; }
  table.cards td:empty { display: none; }
  table.cards tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; padding: 6px 14px; }
  table.cards tbody tr:hover td, table.cards tbody tr:hover td.acts { background: none; }
  table.cards td {
    position: relative; border: 0; padding: 7px 0 7px 40%; min-height: 32px; text-align: left;
    white-space: normal; max-width: none; overflow: visible;
  }
  table.cards td::before { content: attr(data-l); position: absolute; left: 0; top: 7px; width: 36%; color: var(--muted); font-size: 13.5px; font-weight: 600; }
  table.cards td:first-child { padding: 8px 0 4px; font-size: 16.5px; font-weight: 700; }
  table.cards td:first-child::before, table.cards td.acts::before { display: none; }
  table.cards td.acts { padding: 10px 0 6px; margin-top: 6px; border-top: 1px solid var(--line); position: static; box-shadow: none; background: none; }
  table.cards .acts-wrap { justify-content: flex-start; }
  table.cards td .sub { white-space: normal; }
}

/* ---------- marca do cliente e boas-vindas (Fase 4) ---------- */
.brand.cli { display: grid; justify-items: center; gap: 6px; text-align: center; }
.logo-plate { display: inline-grid; place-items: center; background: #fff; border-radius: 10px; padding: 8px 12px; max-width: 100%; }
.logo-plate img { display: block; max-width: 100%; max-height: 64px; width: auto; height: auto; }
.marca-nome { font-family: 'Outfit', 'Hanken Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 21px; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.brand .por { font-size: 12px; color: #8D89C0; text-decoration: none; letter-spacing: .02em; }
.brand .por:hover { color: #00D9FF; }
.login .logo-plate { display: grid; margin: 0 auto 14px; width: fit-content; }
.login .logo-plate img { max-height: 90px; }
.login .marca-nome { text-align: center; font-size: 28px; margin-bottom: 6px; }
.login .por { color: var(--muted); }
.lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.dica { font-size: 13.5px; margin: 4px 0 12px; }
.logo-up { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-prev { min-width: 180px; min-height: 72px; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: #fff; display: grid; place-items: center; }
.logo-prev img { max-width: 240px; max-height: 70px; display: block; }
.logo-prev .muted { color: #5E5A85; font-size: 13.5px; max-width: 220px; text-align: center; }
.logo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.logo-btns label.btn { cursor: pointer; margin: 0; }
.emp { max-width: 760px; }
.emp .sec-sub { margin: 4px 0 10px; }
.emp .sec-sub + .fgrid, .emp .dica + .fgrid { margin-bottom: 8px; }
.bv { max-width: 720px; margin: 8px auto 0; }
.bv h2 { font-size: 22px; margin-bottom: 6px; }
.bv form > .muted { margin-bottom: 18px; }
.bv-trilha { list-style: none; display: flex; gap: 8px; margin: 0 0 14px; padding: 0; flex-wrap: wrap; }
.bv-trilha li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; font-size: 14px; }
.bv-trilha b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 13px; }
.bv-trilha li.on { color: var(--ink); border-color: var(--link); }
.bv-trilha li.on b { background: var(--link); color: #fff; }
:root[data-theme="dark"] .bv-trilha li.on b { color: #1B1640; }
.bv-trilha li.feito b { background: var(--good-bg); color: var(--good); }
.bv-serv { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 12px; }
.bv-fim { text-align: center; padding: 18px 0 6px; }
.bv-acoes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 820px) {
  .bv-serv { grid-template-columns: 1fr 1fr; }
  .bv-serv .field:nth-child(3n + 1) { grid-column: 1 / -1; }
  .brand.cli { justify-items: start; grid-auto-flow: column; align-items: center; }
  .brand.cli .por { display: none; }
  .brand .logo-plate { padding: 4px 8px; }
  .brand .logo-plate img { max-height: 32px; }
  .brand .marca-nome { font-size: 17px; }
}

/* ---------- conta, senha e segurança ---------- */
details.menu.conta { margin: 10px 14px 0; }
details.menu.conta summary {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; font-size: 14px; line-height: 1.2;
  color: #E6E3FF; border-color: var(--line-2); text-align: left; place-items: initial;
}
details.menu.conta summary:hover, details.menu.conta[open] summary { color: #fff; border-color: #00D9FF; background: rgba(255,255,255,.06); }
.conta .av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--grad-brand); }
.conta-txt { display: grid; min-width: 0; }
.conta-txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conta-txt small { color: #A29ECF; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.form .intro { margin: -8px 0 16px; }
.senha-box { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface-2); }
.senha-box code { flex: 1; font-size: 20px; letter-spacing: .06em; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.login.bloqueio h1 { margin: 6px 0 8px; text-align: center; }
.login.bloqueio p { margin-bottom: 18px; text-align: center; }
.ip-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-left: 4px solid var(--line-2); margin-bottom: 14px; }
.ip-status.on { border-left-color: var(--good); }
.ip-status .sec-sub { margin: 0 0 4px; }
.meu-ip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.meu-ip > div { display: grid; gap: 2px; }
.meu-ip b { font-size: 20px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.meu-ip .sub { color: var(--muted); font-size: 13.5px; }
.ip-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0 12px; align-items: end; margin-top: 12px; }
.ip-add .field { margin-bottom: 0; }
.ip-add .err { grid-column: 1 / -1; }
.dicas { margin: 6px 0 4px; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.dicas code { color: var(--ink); overflow-wrap: anywhere; }
.hist-filtros { display: flex; gap: 10px; flex-wrap: wrap; }
.hist-filtros select { width: auto; min-width: 200px; }
td code { font-size: 13.5px; }
@media (max-width: 820px) {
  .ip-add { grid-template-columns: 1fr; gap: 10px; }
  .hist-filtros select { width: 100%; min-width: 0; }
}

.btn.colar { margin-top: 8px; }

/* ---------- projeto: cronograma, índices e escopo ---------- */
.pj-kpis .kpi .v small { font-size: 15px; font-weight: 600; color: var(--muted); }
.pj-kpis .kpi .h .badge { margin-right: 6px; }
.kpi.tom-bad { box-shadow: inset 4px 0 0 var(--bad); }
.kpi.tom-warn { box-shadow: inset 4px 0 0 var(--warn); }
.kpi.tom-good { box-shadow: inset 4px 0 0 var(--good); }
.mini-bar { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); margin: 6px 0; overflow: hidden; }
.mini-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.mini-bar i.pl { background: var(--line-2); }
.mini-bar i.rl { background: var(--grad-brand); height: 4px; top: 1px; }
.aviso { padding: 12px 16px; border-radius: var(--radius); margin: 0 0 14px; font-weight: 500; }
.aviso.bad { background: var(--bad-bg); color: var(--bad); }
.sec-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.vazio-cron p + p { margin-top: 4px; }
.tag-marco { color: var(--link); }
.pbar { display: inline-block; vertical-align: middle; width: 64px; height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin-right: 8px; }
.pbar i { display: block; height: 100%; background: var(--line-2); }
.pbar i.good { background: var(--good); } .pbar i.warn { background: var(--warn); } .pbar i.bad { background: var(--bad); }
.pnum { font-variant-numeric: tabular-nums; font-size: 14px; }

.gantt { position: relative; }
.g-linha { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; min-height: 34px; }
.g-nome { display: grid; padding-right: 12px; min-width: 0; }
.g-nome span { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-nome small { color: var(--muted); font-size: 12.5px; }
.g-trilho { position: relative; height: 22px; }
.g-corpo { position: relative; }
.g-corpo .g-linha + .g-linha { border-top: 1px dashed var(--line); }
.g-cab .g-trilho { height: 22px; border-bottom: 1px solid var(--line); }
.g-escala span { position: absolute; top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; transform: translateX(2px); border-left: 1px solid var(--line-2); padding-left: 4px; }
.g-barra { position: absolute; top: 4px; height: 14px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line-2); overflow: hidden; }
.g-barra b { display: block; height: 100%; background: var(--line-2); }
.g-barra.good { border-color: var(--good); } .g-barra.good b { background: var(--good); }
.g-barra.warn { border-color: var(--warn); } .g-barra.warn b { background: var(--warn); }
.g-barra.bad { border-color: var(--bad); } .g-barra.bad b { background: var(--bad); }
.g-marco { position: absolute; top: 4px; width: 14px; height: 14px; transform: rotate(45deg); background: var(--surface); border: 2px solid var(--muted); }
.g-marco.good { background: var(--good); border-color: var(--good); } .g-marco.warn { border-color: var(--warn); } .g-marco.bad { background: var(--bad); border-color: var(--bad); }
.g-linhas-verticais { position: absolute; inset: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); pointer-events: none; }
.g-linhas-verticais .g-trilho { height: auto; }
.g-hoje, .g-prazo { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--link); }
.g-prazo { border-left: 2px dashed var(--bad); }
.g-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.g-legenda .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--surface-2); border: 1px solid var(--line-2); }
.g-legenda .lg.good { background: var(--good); border-color: var(--good); } .g-legenda .lg.warn { background: var(--warn); border-color: var(--warn); }
.g-legenda .lg.bad { background: var(--bad); border-color: var(--bad); }
.g-legenda .lg.hoje { width: 2px; border: 0; background: var(--link); border-radius: 0; }
.g-legenda .lg.prazo { width: 0; border: 0; border-left: 2px dashed var(--bad); border-radius: 0; }

.esc-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.esc-bar i, .esc-leg i { display: block; }
.esc-bar i.good, .esc-leg i.good { background: var(--good); }
.esc-bar i.warn, .esc-leg i.warn { background: var(--warn); }
.esc-bar i.bad, .esc-leg i.bad { background: var(--bad); }
.esc-bar i.neutro, .esc-leg i.neutro { background: var(--line-2); }
.esc-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; }
.esc-leg span { display: inline-flex; align-items: center; gap: 6px; }
.esc-leg i { width: 12px; height: 12px; border-radius: 3px; }
@media (max-width: 820px) {
  .g-linha, .g-linhas-verticais { grid-template-columns: 110px minmax(0, 1fr); }
  .g-nome span { font-size: 13px; }
  .pbar { width: 70px; }
}
