:root {
  color: #19333f;
  background: #f1f6f7;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #19333f;
  --muted: #5a6e77;
  --line: #dce7e9;
  --surface: #fff;
  --nav: #102a38;
  --mint: #a9e7d7;
  --accent: #08796a;
  --accent-deep: #066456;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #329b8c; outline-offset: 3px; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.icon.sm { width: 16px; height: 16px; }
.brand-mark { width: 39px; height: 39px; flex: 0 0 auto; }
.brand-mark .icon { width: 100%; height: 100%; }
.shell { display: grid; grid-template-columns: 234px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 25px 16px 19px;
  color: #dbebee;
  background: var(--nav);
  z-index: 8;
}
.brand { display: flex; align-items: center; gap: 10px; margin: 0 6px 35px; }
.brand-name { display: block; color: #f2f8f8; font-size: 17px; font-weight: 750; letter-spacing: -.35px; }
.brand-sub { display: block; color: #a4b9c1; font-size: 11px; margin-top: 2px; }
.nav-label { margin: 0 10px 8px; color: #a4b9c1; font-size: 10px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.side-nav { display: grid; gap: 5px; }
.side-nav + .nav-label { margin-top: 26px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 41px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c5d6da;
  font-weight: 560;
  line-height: 1.2;
  transition: .15s ease;
}
.nav-link:hover { background: #1a3a49; color: white; }
.nav-link[aria-current="page"] { background: #204653; border-color: #315764; color: #c4f4e8; font-weight: 700; }
.nav-link .nav-count { margin-left: auto; font-size: 11px; padding: 3px 6px; border-radius: 5px; background: #325664; color: #e1f5f3; }
.side-bottom { margin-top: auto; padding: 24px 5px 0; }
.side-status {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 11px 8px;
  border-top: 1px solid #32505d;
  color: #b5ccd3;
  font-size: 11px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #65d8b7; display: inline-block; flex: 0 0 auto; }
.main { min-width: 0; }
.top {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.crumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.crumb strong { color: var(--ink); font-weight: 680; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.global-search { display: flex; gap: 7px; align-items: center; color: var(--muted); background: #f5f8f9; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; min-width: 185px; text-align: left; }
.global-search:hover { background: #eaf3f3; }
.avatar-box { display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dff2ee; color: #12584d; font-weight: 760; font-size: 11px; }
.avatar-name { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.avatar-role { display: block; color: var(--muted); font-size: 10px; }
.content { max-width: 1570px; margin: auto; padding: 25px 28px 38px; }
.menu-toggle { display: none !important; }
.page-head { display: flex; align-items: flex-end; gap: 15px; justify-content: space-between; margin-bottom: 20px; }
h1, h2, h3, p { margin: 0; }
h1 { color: #173542; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; font-weight: 750; letter-spacing: -.045em; }
h2 { color: #183440; font-size: 17px; line-height: 1.2; font-weight: 740; letter-spacing: -.02em; }
h3 { color: #19333f; font-size: 14px; line-height: 1.25; font-weight: 730; }
.page-head p { color: var(--muted); margin-top: 7px; max-width: 630px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  font-weight: 670;
  border: 1px solid #cddde1;
  border-radius: 8px;
  background: #fff;
  color: #27424e;
  padding: 7px 11px;
  line-height: 1.2;
  transition: .15s ease;
}
.btn:hover:not(:disabled) { background: #eff6f6; border-color: #a7c3c8; }
.btn.primary { background: #08796a; border-color: #08796a; color: white; }
.btn.primary:hover:not(:disabled) { background: #066456; border-color: #066456; }
.btn.tiny { min-height: 28px; padding: 5px 8px; font-size: 12px; }
.btn.link { border-color: transparent; background: transparent; color: var(--accent-deep); }
.btn.link:hover:not(:disabled) { background: #e9f6f3; border-color: transparent; }
.btn.icon-only { width: 36px; padding: 7px; }
.hero {
  isolation: isolate;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 176px;
  gap: 22px;
  overflow: hidden;
  padding: 27px 28px;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(112deg, #123544 7%, #175565 66%, #1a6e72);
  margin-bottom: 20px;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -70% -11% -190% 45%;
  transform: rotate(-25deg);
  background: repeating-radial-gradient(ellipse at 58% 48%, transparent 0 19px, #a6f3d924 20px 21px, transparent 22px 36px);
  mask-image: linear-gradient(110deg, transparent 5%, #000 38%);
}
.hero h1 { color: #f2fbfb; }
.hero p { margin-top: 9px; color: #d5ecec; max-width: 515px; }
.hero .hero-stage { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; color: #bdf0e2; font-size: 11px; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; }
.hero .btn { color: #183f47; background: #b5eddf; border-color: #b5eddf; }
.hero .btn:hover:not(:disabled) { background: #e5fbf6; border-color: #e5fbf6; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.panel, .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat { padding: 14px; min-height: 102px; }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--muted); font-weight: 620; font-size: 12px; }
.stat-icon { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #e7f4f1; color: #126a5a; }
.stat:nth-child(2) .stat-icon { background: #e7f2fa; color: #225d85; }
.stat:nth-child(3) .stat-icon { background: #f4edf9; color: #69478a; }
.stat:nth-child(4) .stat-icon { background: #fff1e0; color: #96571a; }
.stat-value { display: block; margin: 3px 0 0; font-size: clamp(20px, 2.3vw, 30px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.stat-note { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.dash-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,1fr); gap: 16px; margin-bottom: 16px; }
.panel { min-width: 0; }
.panel-head { padding: 16px 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.event-list, .review-list { padding: 0 16px 10px; }
.event-row, .review-row { display: flex; align-items: center; gap: 11px; min-height: 63px; padding: 10px 0; border-top: 1px solid var(--line); }
.date-block { display: grid; place-items: center; flex: 0 0 auto; align-content: center; width: 43px; height: 43px; border-radius: 9px; color: #126b5b; background: #e8f5f2; line-height: 1; }
.date-block strong { font-size: 16px; }
.date-block span { text-transform: uppercase; font-size: 9px; font-weight: 750; margin-top: 3px; }
.row-text { flex: 1; min-width: 0; }
.row-text strong { display: block; color: var(--ink); font-size: 13px; font-weight: 730; }
.row-text small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.review-icon { background: #fff1db; color: #8b521c; width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; }
.review-row:nth-child(2) .review-icon { background: #f1ecf8; color: #714e87; }
.review-row:nth-child(3) .review-icon { background: #e6f1f9; color: #225d85; }
.pill { display: inline-flex; max-width: 100%; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 8px; line-height: 1.1; background: #edf2f3; color: #425b66; font-size: 11px; font-weight: 710; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; display: block; border-radius: 50%; background: currentColor; }
.pill.good { background: #e5f5ec; color: #185d49; }
.pill.warn { background: #fbf0db; color: #7e4b11; }
.pill.bad { background: #fbeae8; color: #973c34; }
.pill.info { background: #e9f1fa; color: #255c83; }
.scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
thead { background: #f5f8f9; color: #48606b; }
th { font-weight: 700; white-space: nowrap; }
th, td { padding: 11px 13px; border-top: 1px solid #e5edef; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 17px; }
th:last-child, td:last-child { padding-right: 17px; }
td { color: #25414d; }
tbody tr:hover { background: #fbfdfd; }
td strong { font-weight: 720; }
td small, .subtext { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.nowrap { white-space: nowrap; }
.toolbar, .field-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar { padding: 13px 16px; }
.toolbar .leading { flex: 1 1 220px; position: relative; max-width: 350px; }
.toolbar .leading .icon { position: absolute; left: 10px; top: 11px; color: var(--muted); pointer-events: none; }
.toolbar .leading input { padding-left: 34px; }
input, select, textarea { width: 100%; min-height: 37px; border: 1px solid #cadadd; border-radius: 8px; background: #fff; color: var(--ink); padding: 8px 10px; }
.toolbar select { width: auto; max-width: 100%; }
.toolbar input[type="month"] { width: auto; max-width: 100%; }
.csv-header { display: block; margin-top: 8px; padding: 10px; background: #f1f6f7; border-radius: 8px; overflow-wrap: anywhere; }
details summary { cursor: pointer; color: var(--accent-deep); font-weight: 650; }
[data-import-preview]:not(:empty) { display: grid; gap: 10px; }
input[type="checkbox"] { min-height: auto; width: 16px; height: 16px; accent-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #657b84; }
textarea { resize: vertical; min-height: 90px; }
select:disabled, input:disabled { background: #f1f5f5; }
.table-meta { padding: 11px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.empty { padding: 30px 18px; text-align: center; color: var(--muted); }
.empty .icon { display: block; margin: 0 auto 9px; color: #53817c; }
.empty strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 3px; }
.inline-empty { padding: 10px 0 15px; background: transparent; color: var(--muted); font-size: 12px; text-align: left; }
.event-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.event-card { padding: 16px; }
.event-card-top { display: flex; align-items: flex-start; gap: 10px; min-height: 58px; }
.event-card-top > div:nth-child(2) { flex: 1; min-width: 0; }
.event-card-top p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.event-card-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding: 11px 0; margin: 8px 0 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-card-metrics span { display: block; color: var(--muted); font-size: 11px; }
.event-card-metrics strong { display: block; font-size: 17px; }
.section-gap { margin-top: 16px; }
.note-band { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid #d0e5e7; border-radius: 9px; background: #ecf6f6; color: #335862; font-size: 12px; }
.note-band.warn { border-color: #eadcba; background: #fff6e6; color: #715326; }
.role-description { border-top: 1px solid var(--line); padding: 14px 16px; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.detail-grid dl, .data-box { margin: 0; }
.detail-grid dd, .data-box dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 670; }
.detail-grid dt, .data-box dt { color: var(--muted); font-size: 11px; }
.data-box { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #f7fafb; }
.data-panel { padding: 0 16px 16px; }
.kit-search { padding: 15px 16px; display: flex; align-items: flex-end; gap: 9px; max-width: 740px; }
.kit-search .field { flex: 1; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.field label, .field > span { display: block; color: #334f57; font-size: 12px; font-weight: 710; }
.field small { color: var(--muted); font-size: 11px; }
.field.checkbox { display: flex; align-items: center; gap: 7px; padding: 7px 0 0; }
.field.checkbox input { width: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.form-grid.five { grid-template-columns: minmax(0,1.55fr) repeat(4,minmax(0,1fr)); }
.configuration, .registration-fields { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin: 0; }
.configuration legend, .registration-fields legend { padding: 0 5px; color: #36515b; font-weight: 690; }
.wave-list { display: grid; gap: 8px; }
.wave { padding: 8px; border-radius: 8px; background: #f3f8f8; }
.configuration-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.configuration-stack { display: grid; gap: 10px; }
.configuration-actions { display: flex; justify-content: flex-end; }
.detail-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-body h3 { margin-bottom: 7px; }
.notices { position: fixed; z-index: 30; right: 18px; bottom: 18px; max-width: min(420px, calc(100% - 36px)); display: grid; gap: 7px; }
.toast { box-shadow: 0 10px 28px #142e3f28; background: #153b46; color: #fff; border-radius: 10px; padding: 11px 14px; display: flex; gap: 9px; align-items: center; }
.toast.error { background: #813e38; }
dialog { width: min(660px,calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 1px solid #c8dcde; border-radius: 15px; padding: 0; color: var(--ink); background: white; box-shadow: 0 26px 75px #0e303b49; }
dialog.wide { width: min(860px,calc(100% - 24px)); }
dialog::backdrop { background: #0b263a7f; }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; background: white; border-bottom: 1px solid var(--line); }
.dialog-body { display: grid; gap: 15px; padding: 16px 18px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #f8fbfc; }
.inline-error { padding: 9px 10px; border-radius: 7px; background: #fbeae8; color: #862f2a; }
.inline-error:empty { display: none; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(114deg,#0d2737,#134452 62%,#1d595c); }
.login-panel { width: min(440px,100%); padding: 27px; }
.login-panel .brand { margin: 0 0 20px; }
.login-panel .brand-name { color: var(--ink); }
.login-panel .brand-sub { color: var(--muted); }
.login-panel h1 { margin-bottom: 8px; font-size: 27px; }
.login-panel p { color: var(--muted); margin-bottom: 14px; }
.login-panel form { display: grid; gap: 12px; }
.mobile-overlay { display: none; }

@media (max-width: 1150px) {
  .shell { grid-template-columns: 199px minmax(0,1fr); }
  .top { padding-inline: 19px; }
  .content { padding-inline: 19px; }
  .stat { padding: 11px; }
}
@media (max-width: 950px) {
  .shell { grid-template-columns: 64px minmax(0,1fr); }
  .side { padding: 18px 9px; }
  .brand { margin: 0 auto 24px; }
  .side .brand > div:nth-child(2), .nav-label, .nav-link span, .side-status span:last-child { display: none; }
  .side-nav + .nav-label + .side-nav { margin-top: 15px; }
  .nav-link { justify-content: center; padding: 8px; }
  .side-status { justify-content: center; padding: 10px 0; }
}
@media (max-width: 760px) {
  .dash-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-head { align-items: flex-start; flex-direction: column; }
  .global-search { min-width: 36px; justify-content: center; }
  .global-search span { display: none; }
  .hero { flex-wrap: wrap; align-items: flex-start; gap: 13px; }
  .avatar-name, .avatar-role { display: none; }
}
@media (max-width: 530px) {
  .shell { display: block; }
  .side {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: 230px;
    padding: 19px 15px;
    overflow: auto;
  }
  .side.is-open { display: flex; }
  .side.is-open .brand > div:nth-child(2), .side.is-open .nav-label, .side.is-open .nav-link span, .side.is-open .side-status span:last-child { display: block; }
  .side.is-open .brand { margin: 0 0 30px; }
  .side.is-open .nav-link, .side.is-open .side-status { justify-content: flex-start; }
  .side.is-open + .mobile-overlay { display: block; position: fixed; inset: 0; background: #0d25335e; z-index: 7; border: 0; }
  .top { min-height: 57px; padding: 0 11px; gap: 7px; }
  .menu-toggle { display: inline-flex !important; }
  .crumb { display: none; }
  .content { padding: 17px 11px 29px; }
  .hero { padding: 18px; }
  .stats { gap: 7px; }
  .stat-top { font-size: 11px; }
  .stat-icon { width: 25px; height: 25px; }
  .detail-grid, .form-grid.three, .form-grid.five { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid .full { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- viz: painel da etapa (paleta validada: série 1 #2a78d6, série 2 #eb6834, neutro #c3c2b7) ---------- */
.viz-root { --viz-s1: #2a78d6; --viz-s2: #eb6834; --viz-muted: #c3c2b7; --viz-track: #eef2f3; --viz-ink: #19333f; --viz-ink-2: #52646c; }
.viz-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.viz-toolbar select { width: auto; min-width: 260px; }
.viz-toolbar .spacer { flex: 1; }
.viz-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.viz-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; display: grid; gap: 4px; align-content: start; }
.viz-kpi > span:first-child { color: var(--muted); font-size: 12px; font-weight: 640; }
.viz-kpi strong { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--viz-ink); }
.viz-kpi strong em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.viz-kpi small { color: var(--muted); font-size: 12px; }
.viz-meter { display: block; height: 8px; border-radius: 999px; background: #d6e6fa; overflow: hidden; margin: 4px 0 2px; }
.viz-meter i { display: block; height: 100%; background: var(--viz-s1); border-radius: 999px; }
.viz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.viz-card { padding: 16px 18px 18px; display: grid; gap: 14px; align-content: start; }
.viz-card.wide { grid-column: 1 / -1; }
.viz-head h3 { font-size: 15px; }
.viz-head p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.viz-card h4 { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.viz-empty, .viz-foot { color: var(--muted); font-size: 12px; margin: 0; }
.viz-bars { display: grid; gap: 9px; }
.viz-bar-row { display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; color: var(--viz-ink); }
.viz-card.compact .viz-bar-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
.viz-bar-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.viz-bar-label small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-bar-track { height: 10px; position: relative; }
.viz-bar { display: block; height: 10px; background: var(--viz-s1); border-radius: 0 4px 4px 0; }
.viz-bar.muted { background: var(--viz-muted); }
.viz-bar-value { font-variant-numeric: tabular-nums; color: var(--viz-ink-2); font-size: 12px; font-weight: 650; white-space: nowrap; text-align: right; }
.viz-seg { display: flex; gap: 2px; height: 28px; }
.viz-seg-part { display: flex; align-items: center; padding-left: 8px; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 700; min-width: 4px; }
.viz-seg-part.s1 { background: var(--viz-s1); }
.viz-seg-part.s2 { background: var(--viz-s2); }
.viz-seg-part.muted { background: var(--viz-muted); color: #0b0b0b; }
.viz-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--viz-ink); }
.viz-legend.center { justify-content: center; }
.viz-legend li { display: inline-flex; align-items: center; gap: 7px; }
.viz-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.viz-legend i.s1 { background: var(--viz-s1); } .viz-legend i.s2 { background: var(--viz-s2); } .viz-legend i.muted { background: var(--viz-muted); }
.viz-legend b { font-variant-numeric: tabular-nums; }
.viz-pyramid { display: grid; gap: 7px; }
.viz-pyr-row { display: grid; grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr); align-items: center; gap: 8px; }
.viz-pyr-side { display: flex; align-items: center; gap: 6px; height: 12px; }
.viz-pyr-side.left { justify-content: flex-end; }
.viz-pyr-side i { display: block; height: 12px; min-width: 0; }
.viz-pyr-side.left i { border-radius: 4px 0 0 4px; }
.viz-pyr-side.right i { border-radius: 0 4px 4px 0; }
.viz-pyr-side i.s1 { background: var(--viz-s1); } .viz-pyr-side i.s2 { background: var(--viz-s2); }
.viz-pyr-value { font-size: 12px; font-weight: 650; color: var(--viz-ink-2); font-variant-numeric: tabular-nums; }
.viz-pyr-label { text-align: center; font-size: 12px; font-weight: 650; color: var(--viz-ink); }
.viz-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.viz-chips li { padding: 5px 9px; border-radius: 8px; background: #f2f5f6; color: var(--viz-ink-2); font-size: 12px; }
.viz-chips b { color: var(--viz-ink); font-variant-numeric: tabular-nums; }
.viz-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 24px; align-items: start; }
.viz-split-side { display: grid; gap: 14px; }
.viz-cols { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 4px; border-bottom: 1px solid #e1e0d9; }
.viz-col { flex: 1 1 0; max-width: 56px; display: grid; grid-template-rows: 18px 1fr 20px; height: 100%; justify-items: center; }
.viz-col-value { font-size: 12px; font-weight: 700; color: var(--viz-ink-2); }
.viz-col-track { width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.viz-col-track i { display: block; width: min(24px, 70%); background: var(--viz-s1); border-radius: 4px 4px 0 0; }
.viz-col-label { font-size: 11px; color: var(--muted); align-self: end; transform: translateY(18px); }
.viz-loading { padding: 40px; text-align: center; color: var(--muted); }
@media (max-width: 1200px) { .viz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .viz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .viz-grid, .viz-kpis, .viz-split { grid-template-columns: 1fr; } }
.podium-block { padding: 10px 0; border-bottom: 1px solid var(--line); }
.podium-block h3 small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 6px; }
.podium-block p { margin: 6px 0 0; font-size: 13px; color: #33505b; }

/* ---------- Marca Interativa Esporte: preto + amarelo-limão (#eeff10) ---------- */
:root { --nav: #111214; --accent: #111214; --accent-deep: #000000; --brand: #eeff10; }
.side { background: var(--nav); }
.brand { flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-logo { display: block; background: #fff; border-radius: 10px; padding: 8px 10px; width: 100%; box-sizing: border-box; }
.brand-logo img { display: block; width: 100%; max-width: 190px; height: auto; }
.brand-sub { color: #b9bcc2; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.nav-link:hover { background: #1d1f22; }
.nav-link[aria-current="page"] { background: #1d1f22; border-color: #2c2f33; color: var(--brand); }
.side-status { border-top-color: #2c2f33; }
.status-dot { background: var(--brand); }
.btn.primary { background: #111214; border-color: #111214; color: #fff; }
.btn.primary:hover:not(:disabled) { background: #000; border-color: #000; }
.btn.link { color: #111214; }
.btn.link:hover:not(:disabled) { background: #f4f6d6; }
:focus-visible { outline-color: #8a9400; }
.login-screen .brand-logo { max-width: 260px; }
.owner-line { color: var(--muted); font-size: 11px; margin-top: 2px; }
