/* =========================================================
   Central de Importações — design system
   Neutro, tipografia forte, um único acento. Claro e escuro.
   ========================================================= */
:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f3f3f5;
  --surface-3: #ebebee;
  --hover: rgba(15, 15, 25, .04);
  --border: #e6e6ea;
  --border-strong: #d6d6dc;
  --text: #17171c;
  --text-2: #55555f;
  --text-3: #8b8b96;
  --accent: #4f46e5;
  --accent-2: #eef0ff;
  --accent-text: #3f37c9;
  --on-accent: #ffffff;
  --focus: rgba(79, 70, 229, .35);

  --green: #15803d;  --green-bg: #e9f7ee;
  --blue: #1d4ed8;   --blue-bg: #eaf1ff;
  --amber: #b45309;  --amber-bg: #fdf3e2;
  --red: #b42318;    --red-bg: #fdecea;
  --violet: #6d28d9; --violet-bg: #f2ecfe;
  --teal: #0f766e;   --teal-bg: #e5f6f4;
  --gray: #52525b;   --gray-bg: #f0f0f2;

  --shadow-sm: 0 1px 2px rgba(16, 16, 24, .05);
  --shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 4px 16px rgba(16, 16, 24, .06);
  --shadow-lg: 0 10px 40px rgba(16, 16, 24, .16), 0 2px 8px rgba(16, 16, 24, .06);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --sidebar: 236px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0c0c0f;
  --surface: #141418;
  --surface-2: #1a1a1f;
  --surface-3: #222228;
  --hover: rgba(255, 255, 255, .045);
  --border: #26262d;
  --border-strong: #34343c;
  --text: #ececf0;
  --text-2: #a7a7b2;
  --text-3: #74747f;
  --accent: #7c74ff;
  --accent-2: #1f1d3a;
  --accent-text: #a9a3ff;
  --on-accent: #ffffff;
  --focus: rgba(124, 116, 255, .45);
  --green: #4ade80;  --green-bg: #11291b;
  --blue: #7aa7ff;   --blue-bg: #13213d;
  --amber: #fbbf24;  --amber-bg: #2d2210;
  --red: #f87171;    --red-bg: #321515;
  --violet: #b69cff; --violet-bg: #241a3d;
  --teal: #2dd4bf;   --teal-bg: #0f2a28;
  --gray: #a1a1aa;   --gray-bg: #1f1f25;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--focus); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.right { margin-left: auto; }
.center { text-align: center; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 14px; height: 14px; }
.ico.lg { width: 20px; height: 20px; }
.ico.fill { fill: currentColor; }

/* ---------------- Shell ---------------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--text); color: var(--surface);
  font-weight: 700; font-size: 13px; letter-spacing: -.02em;
}
.brand-name { font-weight: 650; letter-spacing: -.01em; line-height: 1.2; font-size: 13.5px; }
.brand-sub { font-size: 11.5px; color: var(--text-3); }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 14px 10px 6px; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 7px;
  color: var(--text-2); font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.nav a .count { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.side-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 10px; border-radius: 7px; color: var(--text-2); font-weight: 500; text-align: left;
}
.side-btn:hover { background: var(--hover); color: var(--text); }
.avatar {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 650; color: #fff;
  background: var(--accent);
}
.avatar.lg { width: 34px; height: 34px; font-size: 13px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; min-width: 0; }
.crumbs a:hover { color: var(--text); }
.crumbs .cur { color: var(--text); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page { padding: 28px 32px 64px; max-width: 1480px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title { font-size: 26px; font-weight: 680; letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.page-desc { color: var(--text-2); margin: 6px 0 0; max-width: 720px; }
h2.section-title { font-size: 15px; font-weight: 640; letter-spacing: -.01em; margin: 0; }
h3 { font-size: 14px; font-weight: 620; margin: 0; }

/* ---------------- Buttons & inputs ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  font-weight: 550; font-size: 13px; white-space: nowrap;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, transform .08s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn.primary:hover { opacity: .9; }
.btn.accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger { color: var(--red); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 7px; }
.btn.icon { width: 32px; padding: 0; }
.btn.icon.sm { width: 28px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.on { background: var(--accent-2); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

.seg-ctl { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); }
.seg-ctl button { height: 26px; padding: 0 10px; border-radius: 7px; color: var(--text-2); font-weight: 550; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.seg-ctl button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }

.input, .select, .textarea {
  width: 100%; height: 34px; padding: 0 10px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238b8b96' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.search { position: relative; }
.search .ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search .input { padding-left: 32px; width: 260px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 560; color: var(--text-2); }
.field .hint { font-size: 11.5px; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 15px; height: 15px; accent-color: var(--accent); }

/* ---------------- Badges / pills ---------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 580; white-space: nowrap;
  background: var(--gray-bg); color: var(--gray);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.violet { background: var(--violet-bg); color: var(--violet); }
.pill.teal { background: var(--teal-bg); color: var(--teal); }
.pill.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-2); }
button.pill { cursor: pointer; }
button.pill:hover { filter: brightness(.97); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }

/* Evidência: fato / estimativa / hipótese / pendente */
.ev { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; padding: 1px 7px 1px 6px; border-radius: 999px; }
.ev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.ev.fato { color: var(--green); background: var(--green-bg); }
.ev.estimativa { color: var(--blue); background: var(--blue-bg); }
.ev.hipotese { color: var(--amber); background: var(--amber-bg); }
.ev.pendente { color: var(--text-3); background: transparent; box-shadow: inset 0 0 0 1px dashed var(--border-strong); border: 1px dashed var(--border-strong); }
.ev.pendente::before { background: transparent; border: 1.5px solid currentColor; width: 5px; height: 5px; }

.trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.trend.alta { color: var(--green); }
.trend.estavel { color: var(--blue); }
.trend.queda { color: var(--red); }
.trend.incerta { color: var(--text-3); }

.meter { display: inline-flex; gap: 3px; align-items: center; }
.meter i { width: 14px; height: 5px; border-radius: 3px; background: var(--surface-3); }
.meter i.on { background: var(--accent); }

/* ---------------- Cards ---------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-body { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.kpi { padding: 16px 18px; }
.kpi .label { font-size: 12.5px; color: var(--text-2); font-weight: 520; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 28px; font-weight: 680; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .foot { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* Product card */
.segment { margin-bottom: 36px; }
.segment-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.segment-num { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.segment-name { font-size: 17px; font-weight: 650; letter-spacing: -.015em; margin: 0; }
.segment-meta { color: var(--text-3); font-size: 12.5px; }
.pcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.pcard .ph { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .ph img { transform: scale(1.03); }
.ph-badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; gap: 6px; align-items: flex-start; }
.ph-badges .pill { background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); backdrop-filter: blur(6px); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.rank {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--text); color: var(--surface);
}
.ref-note { position: absolute; right: 8px; bottom: 8px; font-size: 10px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.45); color: #fff; letter-spacing: .02em; }
.pcard .body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .name { font-size: 15px; font-weight: 640; letter-spacing: -.01em; line-height: 1.3; }
.pcard .desc { color: var(--text-2); font-size: 13px; }
.pcard .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.pcard .foot { display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.pcard .cmp { position: absolute; top: 10px; right: 10px; z-index: 2; opacity: 0; transition: opacity .15s; }
.pcard:hover .cmp, .pcard .cmp.on { opacity: 1; }
.cmp-toggle { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text-2); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.cmp-toggle.on { background: var(--accent); color: #fff; }
.pending-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--amber); font-weight: 560; }
.pending-dot.ok { color: var(--green); }
.pcard.archived { opacity: .55; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 560; color: var(--text-3); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover { background: var(--hover); }
.thumb { width: 44px; height: 32px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex: none; }
.thumb.sq { width: 36px; height: 36px; }

/* ---------------- Dossiê ---------------- */
.hero { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 28px; align-items: stretch; margin-bottom: 8px; }
.hero-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; border: 1px solid var(--border); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img .edit-photo { position: absolute; right: 10px; top: 10px; }
.hero-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-title { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.hero-summary { font-size: 15px; color: var(--text-2); line-height: 1.6; max-width: 720px; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-top: auto; }
.facts > div { padding: 12px 14px; border-right: 1px solid var(--border); min-width: 0; }
.facts > div:last-child { border-right: 0; }
.facts .k { font-size: 11.5px; color: var(--text-3); font-weight: 560; margin-bottom: 6px; display: flex; gap: 4px; align-items: center; }
.facts .v { font-weight: 620; font-size: 14px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 24px 0 24px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 56px; background: var(--bg); z-index: 10; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 11px 12px; color: var(--text-2); font-weight: 550; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--text); }
.tabs .n { font-size: 11px; color: var(--text-3); background: var(--surface-2); border-radius: 999px; padding: 0 6px; font-variant-numeric: tabular-nums; }

.prose-block { margin-bottom: 4px; }
.prose-block .lbl { font-size: 11.5px; font-weight: 620; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.prose-block .txt { color: var(--text); line-height: 1.65; white-space: pre-line; }
.prose-block .txt.empty { color: var(--text-3); font-style: italic; }
.thesis { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); position: relative; }
.thesis::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--accent); }
.thesis .txt { font-size: 15px; line-height: 1.65; }

/* Pontos fortes/fracos */
.sw { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sw-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.sw-col .head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.sw-col .head .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.sw-col.pos .head .ic { background: var(--green-bg); color: var(--green); }
.sw-col.neg .head .ic { background: var(--red-bg); color: var(--red); }
.sw-list { list-style: none; margin: 0; padding: 6px 0; }
.sw-item { display: flex; gap: 12px; padding: 10px 18px; align-items: flex-start; position: relative; }
.sw-item:hover { background: var(--hover); }
.sw-item .cat { font-size: 11px; font-weight: 620; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.sw-item .text { line-height: 1.5; }
.sw-item .acts { opacity: 0; transition: opacity .12s; display: flex; gap: 2px; }
.sw-item:hover .acts { opacity: 1; }
.sw-bullet { width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; flex: none; }
.pos .sw-bullet { background: var(--green); }
.neg .sw-bullet { background: var(--red); }

/* Necessidades */
.needs-progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; display: flex; }
.needs-progress i { display: block; height: 100%; }
.need { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.need:last-child { border-bottom: 0; }
.need:hover { background: var(--hover); }
.need .txt { flex: 1; min-width: 0; }
.need.done .txt { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.need-state {
  width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); color: transparent; transition: all .15s;
}
.need-state:hover { border-color: var(--accent); }
.need-state.andamento { border-color: var(--amber); background: conic-gradient(var(--amber) 0 50%, transparent 50% 100%); }
.need-state.concluido { border-color: var(--green); background: var(--green); color: #fff; }
.need .acts { opacity: 0; display: flex; gap: 2px; }
.need:hover .acts { opacity: 1; }

/* Modelos */
.mcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .2s var(--ease); cursor: pointer; }
.mcard:hover { box-shadow: var(--shadow); border-color: var(--border-strong); transform: translateY(-1px); }
.mcard .ph { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; }
.mcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.mcard .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mcard .name { font-weight: 640; font-size: 14.5px; letter-spacing: -.01em; }
.mcard .foot { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-top: 1px solid var(--border); }
.mcard.discarded { opacity: .55; }
.mcard.discarded .ph img { filter: grayscale(1); }
.mcard.selected { border-color: color-mix(in srgb, var(--green) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 40%, transparent); }
.star { color: var(--text-3); }
.star.on { color: #f5a524; }
.ph-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-3); background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface-3) 10px, var(--surface-3) 11px); }
.ph-empty .ico { width: 28px; height: 28px; stroke-width: 1.4; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.gallery .g { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g .x { position: absolute; top: 4px; right: 4px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 0; font-size: 13px; }
.kv > div { padding: 8px 0; border-bottom: 1px solid var(--border); }
.kv > div:nth-child(odd) { color: var(--text-3); font-weight: 520; padding-right: 12px; }
.list-plain { margin: 0; padding-left: 18px; }
.list-plain li { margin: 3px 0; }

/* Inteligência */
.intel-row { display: grid; grid-template-columns: 220px 1fr 200px 64px; gap: 16px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.intel-row:last-child { border-bottom: 0; }
.intel-row:hover { background: var(--hover); }
.intel-row .metric { font-weight: 600; }
.intel-row .val { white-space: pre-line; }
.intel-row .val.empty { color: var(--text-3); }
.intel-row .src { font-size: 12px; color: var(--text-3); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.bigstat { padding: 18px 20px; }
.bigstat .k { font-size: 12.5px; color: var(--text-2); font-weight: 540; display: flex; align-items: center; gap: 8px; }
.bigstat .v { font-size: 26px; font-weight: 690; letter-spacing: -.025em; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.bigstat .v.empty { color: var(--text-3); font-size: 18px; font-weight: 560; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 1fr 120px 64px; gap: 10px; align-items: center; font-size: 12.5px; }
.bar-row .b { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bar-row .b i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* Debate */
.composer { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.type-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.type-chip { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); font-size: 12.5px; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); }
.type-chip.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.feed { display: flex; flex-direction: column; }
.post { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.post:last-child { border-bottom: 0; }
.post .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.post .who { font-weight: 620; font-size: 13px; }
.post .txt { margin-top: 4px; white-space: pre-line; line-height: 1.55; }
.post .acts { opacity: 0; margin-left: auto; display: flex; gap: 2px; }
.post:hover .acts { opacity: 1; }
.post.decision { background: color-mix(in srgb, var(--accent-2) 60%, transparent); }
.post.status-change .txt { color: var(--text-2); }
.post.done .txt { text-decoration: line-through; color: var(--text-3); }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--border-strong); }
.tl-item { position: relative; padding: 0 0 14px; font-size: 12.5px; }
.tl-item::before { content: ""; position: absolute; left: -17px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; min-height: 200px; transition: background .15s, border-color .15s; }
.kcol.over { border-color: var(--accent); background: var(--accent-2); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; font-weight: 620; font-size: 13px; }
.kcol-head .n { color: var(--text-3); font-weight: 520; font-variant-numeric: tabular-nums; }
.kcol-body { display: flex; flex-direction: column; gap: 8px; padding: 6px 10px 12px; flex: 1; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px; display: flex; gap: 9px; align-items: center; cursor: grab; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.kcard:hover { box-shadow: var(--shadow); }
.kcard.dragging { opacity: .5; transform: rotate(1deg); }
.kcard .t { font-weight: 600; font-size: 13px; line-height: 1.3; }
.kempty { color: var(--text-3); font-size: 12px; text-align: center; padding: 18px 8px; border: 1px dashed var(--border-strong); border-radius: 10px; }

/* Ranking */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.rank-item:last-child { border-bottom: 0; }
.rank-item.dragging { opacity: .4; }
.rank-item.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.rank-item .grip { cursor: grab; color: var(--text-3); }
.rank-item .pos { width: 26px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 13px; }

/* Comparativo */
.cmp-grid { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: auto; background: var(--surface); }
.cmp-row { display: contents; }
.cmp-cell { padding: 14px 16px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 13px; min-width: 0; }
.cmp-cell:last-child { border-right: 0; }
.cmp-cell.lbl { font-size: 11.5px; font-weight: 640; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); background: var(--surface-2); position: sticky; left: 0; z-index: 1; }
.cmp-cell.headcell { position: sticky; top: 0; background: var(--surface); z-index: 2; }
.cmp-cell ul { margin: 0; padding-left: 16px; }
.cmp-cell li { margin: 2px 0; }
.cmp-photo { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; }
.cmp-photo img { width: 100%; height: 100%; object-fit: cover; }
.cmp-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.pick-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 4px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 550; font-size: 13px; }
.pick-chip img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.pick-chip.off { opacity: .55; border-style: dashed; }

/* Documentos */
.doc-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); flex: none; }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 22px; text-align: center; color: var(--text-2); transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-2); color: var(--accent-text); }

/* Empty states */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-2); }
.empty-state .ico { width: 30px; height: 30px; color: var(--text-3); margin: 0 auto 10px; stroke-width: 1.5; }
.empty-state h3 { margin-bottom: 4px; color: var(--text); }
.empty-state p { margin: 0 auto 14px; max-width: 420px; font-size: 13px; }

/* ---------------- Overlay: modal / drawer / toast / tooltip ---------------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 15, .38); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .15s ease; }
.modal { width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop .18s var(--ease); }
.modal.wide { max-width: 920px; }
.modal.narrow { max-width: 440px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 16px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 16px 16px; }
.drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,15,.3); animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); z-index: 91; background: var(--bg); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slidein .22s var(--ease); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.drawer-body { overflow-y: auto; padding: 20px; flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--text); color: var(--surface); padding: 9px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 550; font-size: 13px; display: flex; align-items: center; gap: 8px; animation: pop .2s var(--ease); }
.toast.err { background: var(--red); color: #fff; }
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--surface); font-size: 11.5px; font-weight: 520; line-height: 1.35;
  padding: 5px 8px; border-radius: 6px; white-space: nowrap; z-index: 300; pointer-events: none;
  box-shadow: var(--shadow); max-width: 280px; width: max-content; white-space: normal; text-align: center;
}
.menu { position: absolute; z-index: 150; min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 4px; animation: pop .12s; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 6px; font-size: 13px; text-align: left; color: var(--text); }
.menu button:hover { background: var(--hover); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }

/* ---------------- Visão geral ---------------- */
.questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.q-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.q-card .q { font-size: 12px; font-weight: 640; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.q-card .a { font-size: 14px; }
.mini-list { display: flex; flex-direction: column; gap: 6px; }
.mini-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; }
.mini-item:hover { background: var(--hover); }
.mini-item img { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; background: var(--surface-2); }
.pipeline { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; }
.pipeline i { display: block; height: 100%; }

/* ---------------- Apresentação ---------------- */
.present { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: flex; flex-direction: column; font-size: 18px; }
.present-top { display: flex; align-items: center; gap: 14px; padding: 18px 40px; }
.present-top .pname { font-weight: 650; font-size: 15px; color: var(--text-2); }
.present-stage { flex: 1; min-height: 0; padding: 8px 56px 24px; display: flex; }
.slide { flex: 1; min-height: 0; display: flex; flex-direction: column; animation: slideFade .25s var(--ease); }
@keyframes slideFade { from { opacity: 0; transform: translateY(10px); } }
.slide h1 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 720; letter-spacing: -.035em; line-height: 1.04; margin: 0; }
.slide h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 680; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 24px; }
.slide .kicker { font-size: 14px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.slide .lead { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.55; color: var(--text-2); max-width: 900px; }
.slide-cover { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; flex: 1; min-height: 0; }
.slide-cover .img { height: 100%; max-height: 72vh; border-radius: 22px; overflow: hidden; background: var(--surface-2); position: relative; }
.slide-cover .img img { width: 100%; height: 100%; object-fit: cover; }
.slide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; flex: 1; min-height: 0; }
.slide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.slide-list li { display: flex; gap: 14px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.45; }
.slide-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; margin-top: .55em; flex: none; background: var(--text-3); }
.slide-list.pos li::before { background: var(--green); }
.slide-list.neg li::before { background: var(--red); }
.slide-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 30px; overflow: hidden; }
.slide-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.slide-models.few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slide-models.few .slide-model { display: grid; grid-template-columns: 1fr 1fr; }
.slide-models.few .slide-model .ph { aspect-ratio: auto; min-height: 320px; }
.slide-models.one { grid-template-columns: minmax(0, 900px); }
.slide-model { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.slide-model .ph { aspect-ratio: 4 / 3; background: var(--surface-2); }
.slide-model .ph img { width: 100%; height: 100%; object-fit: cover; }
.slide-model .b { padding: 16px 18px; font-size: 15px; }
.slide-model .b .n { font-size: 19px; font-weight: 660; letter-spacing: -.015em; margin-bottom: 6px; }
.slide-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.slide-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; }
.slide-stat .k { font-size: 14px; color: var(--text-2); font-weight: 560; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.slide-stat .v { font-size: clamp(22px, 2vw, 32px); font-weight: 700; letter-spacing: -.025em; margin-top: 10px; line-height: 1.2; }
.slide-stat .v.empty { color: var(--text-3); font-weight: 560; font-size: 20px; }
.slide-stat .s { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.present-foot { display: flex; align-items: center; gap: 10px; padding: 14px 40px 20px; }
.present-rail { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.present-rail button { flex: none; height: 34px; padding: 0 12px 0 4px; border-radius: 9px; display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 550; border: 1px solid transparent; }
.present-rail button img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.present-rail button.on { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.slide-dots { display: flex; gap: 6px; }
.slide-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); cursor: pointer; }
.slide-dots i.on { background: var(--text); width: 20px; border-radius: 4px; }
.present .cmp-grid { font-size: 15px; }
.present .cmp-cell { font-size: 15px; padding: 16px 18px; }
.present-portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; text-align: left; }
.pp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pp-card .ph { aspect-ratio: 16 / 10; background: var(--surface-2); }
.pp-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.pp-card .b { padding: 12px 14px; }
.pp-card .n { font-weight: 640; font-size: 15px; margin-bottom: 6px; }

/* Ocultar controles de edição (modo apresentação / leitura) */
body.readonly .ed { display: none !important; }

/* ---------------- Responsivo ---------------- */
@media (max-width: 1200px) {
  .grid.c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .questions { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 340px 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .intel-row { grid-template-columns: 180px 1fr 64px; }
  .intel-row .src { grid-column: 2; }
}
@media (max-width: 1024px) {
  :root { --sidebar: 64px; }
  .brand-name, .brand-sub, .nav a span, .nav-label, .side-btn span, .nav a .count { display: none; }
  .brand { justify-content: center; padding: 6px 0 18px; }
  .nav a, .side-btn { justify-content: center; padding: 9px 0; }
  .page { padding: 22px 22px 56px; }
  .topbar { padding: 0 22px; }
  .hero { grid-template-columns: 1fr; }
  .hero-img { max-height: 360px; aspect-ratio: auto; height: 300px; }
  .sw { grid-template-columns: 1fr; }
  .grid.c3 { grid-template-columns: 1fr 1fr; }
  .slide-cover { grid-template-columns: 1fr; gap: 24px; }
  .slide-cover .img { max-height: 40vh; }
  .slide-cols { grid-template-columns: 1fr; overflow-y: auto; }
  .present-stage { padding: 8px 28px 20px; overflow-y: auto; }
}
@media (max-width: 720px) {
  .grid.c2, .grid.c3, .grid.c4, .grid.c5, .questions, .form-grid { grid-template-columns: 1fr; }
  .search .input { width: 100%; }
  .page-title { font-size: 22px; }
  .hero-title { font-size: 26px; }
  .intel-row { grid-template-columns: 1fr; gap: 6px; }
  .kv { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .sidebar, .topbar, .ed, .tabs { display: none !important; }
  .app { display: block; }
}
@media (max-width: 720px) { .hide-sm { display: none !important; } }
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr !important; }
  .split > .stack[style*="sticky"] { position: static !important; }
  .crumbs a, .crumbs .ico { display: none; }
  .topbar .btn.sm { padding: 0 8px; }
  .slide-models.few { grid-template-columns: 1fr; }
}

/* ---------- Tendência mensal e Monitor de mercado ---------- */
.tr-grid { gap: 12px; }
.tr-card { background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px 8px; min-width: 0; }
.tr-head { display: flex; align-items: baseline; gap: 8px; }
.tr-label { font-size: 12px; color: var(--text-2); font-weight: 520; }
.tr-val { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; }
.tr-svg { display: block; width: 100%; height: 64px; margin-top: 4px; overflow: visible; }
.tr-base { stroke: var(--border); stroke-width: 1; }
.tr-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tr-dot { fill: var(--accent); stroke: var(--surface-2); stroke-width: 2; }
.tr-hit { fill: transparent; }
.tr-pt:hover .tr-dot { r: 5; }
.tr-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.tr-empty { font-size: 12px; color: var(--text-3); padding: 18px 0 14px; }
td .tr-card { background: none; padding: 0; }
td .tr-head { display: none; }
td .tr-svg { height: 32px; margin: 0; }
td .tr-axis { display: none; }
.alerts { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.card-pad > .alerts { margin: 0; }
.alerts li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.alerts .pill { flex: none; }
.ent-path { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ent-path code { background: var(--surface-2); padding: 6px 10px; border-radius: var(--radius-sm); font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.ent-steps { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.ent-steps code { font-family: var(--mono); font-size: 12px; }
.ent-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ent-log li { display: flex; align-items: flex-start; gap: 8px; }
.ent-log li.ok > .ico { color: var(--green); }
.ent-log li.erro > .ico { color: var(--red); }
@media (max-width: 900px) { .tr-grid.grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .alerts li { flex-wrap: wrap; } }
