/* INBRADE · Sistema de gestão · desenho de telas, versão 2 (HTML estático, sem dependências)
   Pensado primeiro para o celular: nada tem largura fixa acima de 300px. */
:root {
  --ink: #0B0B0B; --ink-2: #171715; --ink-3: #26261F;
  --paper: #F5F4EF; --card: #FFFFFF; --line: #E5E2D9; --line-2: #EEECE5;
  --text: #1A1A17; --muted: #66635B; --soft: #8F8B80;
  --amarelo: #F9CA0B; --amarelo-esc: #7D6200; --amarelo-bg: #FFF5CC;
  --ok: #17703F; --ok-bg: #E2F3E8; --warn: #8F5200; --warn-bg: #FFEFD3;
  --bad: #A3231A; --bad-bg: #FBE6E3; --info: #1C5D8F; --info-bg: #E2EFFA;
  --r: 14px; --r-sm: 9px; --side: 232px;
  --display: 'Manrope', system-ui, Arial, sans-serif; --body: 'Inter', system-ui, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; } a { color: inherit; text-decoration: none; } button { font: inherit; cursor: pointer; }
svg.ic, .side svg, .top svg, .navm svg, .btn svg { width: 18px; height: 18px; flex: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--amarelo); outline-offset: 2px; }

/* ================= estrutura ================= */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { background: var(--ink); color: #DAD7CD; padding: 18px 12px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
.side__logo { display: flex; align-items: center; gap: 9px; padding: 6px 10px 20px; }
.side__logo img { height: 19px; width: auto; display: block; }
.side__logo span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amarelo); }
.side__link { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 11px; border-radius: var(--r-sm); color: #C9C6BB; font-weight: 500; font-size: 14.5px; }
.side__link:hover { background: var(--ink-2); color: #fff; }
.side__link.is-active { background: var(--amarelo); color: var(--ink); font-weight: 700; }
.side__sep { height: 1px; background: var(--ink-3); margin: 10px 8px; }
.side__foot { margin-top: auto; display: grid; gap: 3px; }
.side__eu { display: flex; align-items: center; gap: 10px; padding: 12px 10px 2px; border-top: 1px solid var(--ink-3); margin-top: 8px; }
.side__eu b { display: block; font-size: 13.5px; color: #fff; line-height: 1.25; } .side__eu small { color: #8D8A80; font-size: 12px; }
.side__eu .avatar { background: var(--ink-3); color: var(--amarelo); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 6; background: rgba(245, 244, 239, .93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 10px 28px; min-height: 60px; }
.top__marca { display: none; }
.ctx { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; font-weight: 600; font-size: 13.5px; white-space: nowrap; max-width: 100%; }
.ctx::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg) translateY(-2px); margin-left: 2px; flex: none; }
.ctx span { overflow: hidden; text-overflow: ellipsis; }
.top__fim { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top__icone { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 99px; width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.top__icone i { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #D93025; border: 2px solid var(--card); }
.top__perfil { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 4px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; font-weight: 600; font-size: 13.5px; }

.page { padding: 26px 28px 56px; width: 100%; max-width: 1320px; display: grid; gap: 22px; align-content: start; }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page__head h1 { font-size: 26px; font-weight: 800; }
.page__head p { color: var(--muted); margin-top: 3px; max-width: 60ch; font-size: 14.5px; }
.page__acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.sub { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-top: -6px; }
.sub::-webkit-scrollbar { display: none; }
.sub a { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.sub a.is-on { color: var(--ink); border-color: var(--amarelo); }
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.sec h2 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sec span { font-size: 13px; color: var(--soft); }

/* barra inferior no celular */
.navm { display: none; }

/* ================= componentes ================= */
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.g-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card__head h3 { font-size: 16px; font-weight: 700; }
.card__head small { color: var(--soft); font-size: 12.5px; }
.card__head a { font-size: 13px; font-weight: 600; color: var(--amarelo-esc); white-space: nowrap; }
.card--ink { background: var(--ink); color: #F1EEE4; border-color: var(--ink); }
.muted { color: var(--muted); } .small { font-size: 13px; }

.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 10px; display: grid; gap: 2px; min-width: 0; }
.kpi > span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi > b { font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; }
.kpi > b small { font-size: 14px; font-weight: 600; color: var(--soft); letter-spacing: 0; }
.kpi > em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kpi .spark { margin-top: 6px; }
.kpi--hero { background: var(--ink); border-color: var(--ink); color: #fff; }
.kpi--hero > span { color: #B5B1A5; } .kpi--hero > em { color: #B5B1A5; } .kpi--hero > b { font-size: 40px; }
.up::before { content: "▲ "; font-size: .72em; } .down::before { content: "▼ "; font-size: .72em; }
.up.bom, .down.bom { color: var(--ok); } .up.ruim, .down.ruim { color: var(--bad); }
.kpi--hero .bom { color: #7BD9A4; }
.spark { width: 100%; height: 32px; display: block; }

.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.progress.am i { background: var(--amarelo); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 99px; min-height: 40px; padding: 0 16px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn-primary { background: var(--amarelo); color: var(--ink); } .btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--text); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.info { background: var(--info-bg); color: var(--info); }
.badge.am { background: var(--amarelo-bg); color: var(--amarelo-esc); }
.ponto { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; }

.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--amarelo-bg); color: var(--amarelo-esc); display: inline-grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; }
.avatar.lg { width: 60px; height: 60px; font-size: 21px; } .avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.pessoa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pessoa b { display: block; font-weight: 600; font-size: 14.5px; } .pessoa small { color: var(--muted); font-size: 12.5px; }

.faixa { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.faixa::before { content: ""; width: 20px; height: 8px; border-radius: 3px; background: var(--c, #fff); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.f-branca { --c: #fff; } .f-cinza { --c: #9AA0A6; } .f-azul { --c: #1E6BD6; } .f-amarela { --c: #F9CA0B; } .f-laranja { --c: #F28C28; }
.f-verde { --c: #2E9E5B; } .f-roxa { --c: #7A3FB3; } .f-marrom { --c: #7A4A21; } .f-preta { --c: #111; }

.tabela-wrap { overflow-x: auto; margin: 0 -20px -20px; -webkit-overflow-scrolling: touch; }
.tabela th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--soft); padding: 10px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela td { padding: 12px 20px; border-bottom: 1px solid var(--line-2); font-size: 14px; vertical-align: middle; white-space: nowrap; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabela td .spark { width: 84px; height: 26px; }

.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 99px; min-height: 34px; display: inline-flex; align-items: center; padding: 0 13px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.campo { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-sm); min-height: 40px; padding: 8px 12px; color: var(--soft); font-size: 14px; flex: 1 1 200px; min-width: 0; }

.lista { display: grid; }
.lista > * { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.lista > *:last-child { border-bottom: 0; padding-bottom: 0; } .lista > *:first-child { padding-top: 0; }
.lista > * > b, .lista > * > span > b, .lista .badge, .lista .btn { white-space: nowrap; flex: none; }
.lista > * > div, .lista > * > span { min-width: 0; }

.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.kcol { background: #ECEAE2; border-radius: var(--r); padding: 12px; display: grid; gap: 10px; align-content: start; scroll-snap-align: start; }
.kcol__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13.5px; }
.kcol__head span { font-size: 12px; color: var(--muted); font-weight: 600; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 6px; font-size: 13.5px; }
.kcard b { font-size: 14.5px; } .kcard .meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; align-items: center; }

.def { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.def div span { display: block; font-size: 11.5px; color: var(--soft); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; } .def div b { font-weight: 600; }

.chamada { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.chamada label { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: var(--r-sm); min-height: 44px; padding: 0 10px; font-size: 13.5px; font-weight: 500; background: var(--card); }
.chamada .on { background: var(--ok-bg); border-color: #BFE3CD; }
.chamada i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--soft); flex: none; display: grid; place-items: center; }
.chamada .on i { background: var(--ok); border-color: var(--ok); }
.chamada .on i::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }

.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.fotos div { aspect-ratio: 4/5; border-radius: var(--r-sm); background: linear-gradient(135deg, #D9D5C8, #BDB8A9); position: relative; overflow: hidden; }
.fotos div::after { content: attr(data-n); position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.fotos .v::before { content: "Vendida"; position: absolute; right: 6px; top: 6px; font-size: 10.5px; font-weight: 700; background: var(--amarelo); color: var(--ink); border-radius: 99px; padding: 2px 7px; }

.aviso { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-sm); padding: 12px 14px; background: var(--info-bg); color: #164A72; font-size: 14px; }
.interruptor { width: 38px; height: 22px; border-radius: 99px; background: var(--line); position: relative; flex: none; }
.interruptor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.interruptor.on { background: var(--ok); } .interruptor.on::after { left: 19px; }
.sim { color: var(--ok); font-weight: 700; } .nao { color: var(--soft); }

/* ================= gráficos ================= */
.gr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.card > .gr, .card > .lista, .card > .meta-l { min-width: 0; }
.gr__leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.gr__leg span { display: inline-flex; align-items: center; gap: 6px; }
.gr__leg i { width: 10px; height: 10px; border-radius: 3px; }
.gr__area { position: relative; margin: 8px 0 0 38px; }
.gr__grade i { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-2); }
.gr__grade em { position: absolute; left: -38px; width: 32px; text-align: right; top: -8px; font-size: 11px; color: var(--soft); font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gr__cols { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.gc { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; position: relative; min-width: 0; border-radius: 4px; }
.gc b { display: block; width: min(24px, 68%); min-height: 2px; flex: none; }
.gc b:last-of-type { border-radius: 4px 4px 0 0; }
.gc small { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.gc--div { display: block; }
.gc--div b { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 4px 4px 0 0; }
.gc--div b.neg { border-radius: 0 0 4px 4px; }
.gc:hover, .gc:focus { background: rgba(11, 11, 11, .05); outline: none; }
.gr__x { display: flex; margin-left: 38px; font-size: 11px; color: var(--soft); }
.gr__x--centro span { flex: 1; text-align: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.gr__x--pontas { justify-content: space-between; }
.gr__x--pontas span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.gr__x--pontas span:first-child { justify-content: flex-start; } .gr__x--pontas span:last-child { justify-content: flex-end; }
.gr__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gr--linha .gr__area { margin-right: 8px; } .gr--linha .gr__x { margin-right: 8px; }
.gp { font-style: normal; position: absolute; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, 50%); box-shadow: 0 0 0 2px var(--card); }
.gp small { position: absolute; right: 6px; bottom: 11px; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--text); background: rgba(255, 255, 255, .85); padding: 0 3px; border-radius: 3px; }
.gr__hit { position: absolute; inset: 0; }
.gr__hit u { position: absolute; top: 0; bottom: 0; text-decoration: none; outline: none; }
.gr__hit u:hover, .gr__hit u:focus { background: linear-gradient(to right, transparent calc(50% - 1px), rgba(11, 11, 11, .28) 0, rgba(11, 11, 11, .28) calc(50% + 0px), transparent 0); }
.gd { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #2a78d6; transform: translate(-50%, 50%); box-shadow: 0 0 0 2px var(--card); }
.gd:hover, .gd:focus { box-shadow: 0 0 0 2px var(--card), 0 0 0 5px rgba(42, 120, 214, .3); outline: none; }
.gr__nota { font-size: 12px; color: var(--soft); }
.bh { display: grid; grid-template-columns: minmax(84px, 38%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; padding: 5px 0; border-radius: 4px; outline: none; }
.bh > span { min-width: 0; line-height: 1.25; }
.bh__t { height: 14px; } .bh__t b { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.bh em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; font-size: 13px; }
.gr--bh, .gr--hl { gap: 0; }
.hm { display: grid; grid-template-columns: minmax(40px, auto) repeat(var(--n), minmax(0, 1fr)); gap: 2px; font-size: 11.5px; }
.hm__c { color: var(--soft); text-align: center; padding-bottom: 4px; white-space: nowrap; overflow: hidden; }
.hm__r { color: var(--muted); display: flex; align-items: center; padding-right: 8px; white-space: nowrap; }
.hm i { font-style: normal; display: grid; place-items: center; min-height: 30px; border-radius: 4px; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; }
.hm i:hover, .hm i:focus { box-shadow: 0 0 0 2px var(--ink); }
.hm__esc { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--soft); }
.hm__esc div { display: flex; flex: 0 1 160px; } .hm__esc div i { flex: 1; height: 8px; } .hm__esc div i:first-child { border-radius: 4px 0 0 4px; } .hm__esc div i:last-child { border-radius: 0 4px 4px 0; }
.seg { display: flex; gap: 2px; height: 28px; }
.seg b { display: flex; align-items: center; padding-left: 8px; font-size: 12px; font-weight: 700; border-radius: 4px; min-width: 3px; outline: none; }
.hl { display: grid; grid-template-columns: minmax(104px, 42%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; padding: 8px 0; outline: none; }
.hl > span { line-height: 1.25; }
.hl__t { position: relative; height: 14px; margin: 0 6px; }
.hl__t::before { content: ""; position: absolute; left: -6px; right: -6px; top: 6.5px; border-top: 1px solid var(--line); }
.hl__t u { position: absolute; top: 6px; height: 2px; background: #9DBFEA; }
.hl__t i { position: absolute; top: 2px; width: 10px; height: 10px; border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--card); }
.hl em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; min-width: 4ch; text-align: right; }
.gr__tab { font-size: 12.5px; }
.gr__tab summary { cursor: pointer; color: var(--soft); font-weight: 600; width: max-content; list-style: none; padding: 4px 0; }
.gr__tab summary::-webkit-details-marker { display: none; }
.gr__tab summary::before { content: "+ "; } .gr__tab[open] summary::before { content: "− "; }
.gr__tabw { overflow-x: auto; margin-top: 6px; }
.gr__tab th, .gr__tab td { text-align: left; padding: 5px 10px 5px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gr__tab th { color: var(--soft); font-weight: 600; }
#dica { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.35; padding: 7px 10px; border-radius: 8px; max-width: min(280px, 86vw); opacity: 0; transition: opacity .12s; }
#dica.on { opacity: 1; }

/* metas e medidores */
.meta-l { display: grid; gap: 14px; }
.meta-l > div { display: grid; gap: 6px; }
.meta-l header { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.meta-l header b { font-variant-numeric: tabular-nums; }

/* ================= telas de celular (família, atleta, sensei) ================= */
body.m { background: #E9E7DF; }
.mapp { max-width: 460px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--paper); display: flex; flex-direction: column; position: relative; box-shadow: 0 0 0 1px var(--line); }
.mapp__topo { background: var(--ink); color: #fff; padding: 18px 18px 16px; display: grid; gap: 12px; }
.mapp__topo .linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mapp__topo img { height: 17px; width: auto; }
.mapp__topo h1 { font-size: 21px; font-weight: 800; }
.mapp__topo p { color: #B5B1A5; font-size: 13.5px; }
.mapp__papel { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border-radius: 99px; background: var(--ink-3); color: var(--amarelo); font-size: 12px; font-weight: 700; }
.mapp__corpo { padding: 16px 16px 96px; display: grid; gap: 14px; align-content: start; flex: 1; }
.troca { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.troca::-webkit-scrollbar { display: none; }
.troca a { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 6px 14px 6px 8px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.troca a.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.troca small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.navm--app { display: grid; position: fixed; left: 50%; transform: translateX(-50%); width: min(460px, 100%); }
.voltar { position: fixed; z-index: 30; right: 14px; top: 14px; }

/* ================= responsivo ================= */
@media (max-width: 1180px) { .g-21, .g-12, .g-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(86vw, 300px); z-index: 40; transform: translateX(-102%); transition: transform .2s; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  body.menu-aberto .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5); }
  .top { padding: 8px 14px; min-height: 56px; }
  .top__marca { display: block; height: 26px; width: 26px; border-radius: 7px; flex: none; }
  .top__perfil > span:not(.avatar), .ctx--periodo { display: none; } .top__perfil { padding: 0 4px; border: 0; background: none; }
  .page { padding: 16px 14px calc(92px + env(safe-area-inset-bottom)); gap: 18px; }
  .page__head h1 { font-size: 22px; } .page__acoes .btn { flex: 1 1 auto; }
  .g-2 { grid-template-columns: minmax(0, 1fr); } .def { grid-template-columns: 1fr 1fr; }
  .top > .ctx { min-width: 0; flex: 0 1 auto; } .top__fim { flex: none; }
  .card { padding: 16px; } .tabela-wrap { margin: 0 -16px -16px; } .tabela th, .tabela td { padding-left: 16px; padding-right: 12px; }
  .col-d { display: none; }
  .navm { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .navm a, .navm button { display: grid; justify-items: center; gap: 2px; min-height: 48px; align-content: center; font-size: 10.5px; font-weight: 600; color: var(--soft); background: none; border: 0; padding: 0; }
  .navm .is-active { color: var(--ink); }
  .navm .is-active svg { background: var(--amarelo); border-radius: 8px; padding: 3px; width: 28px; height: 24px; }
}
@media (min-width: 901px) { .navm:not(.navm--app) { display: none; } }
.navm--app { grid-template-columns: repeat(5, 1fr); bottom: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.navm--app a { display: grid; justify-items: center; gap: 2px; min-height: 48px; align-content: center; font-size: 10.5px; font-weight: 600; color: var(--soft); }
.navm--app a svg { width: 20px; height: 20px; } .navm--app .is-active { color: var(--ink); }
.navm--app .is-active svg { background: var(--amarelo); border-radius: 8px; padding: 3px; width: 28px; height: 24px; }
@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpis .kpi--hero { grid-column: 1 / -1; }
  .kpi { padding: 13px 13px 8px; } .kpi > b { font-size: 23px; } .kpi--hero > b { font-size: 36px; }
  .gr__area { margin-left: 32px; } .gr__grade em { left: -32px; width: 27px; font-size: 10.5px; } .gr__x { margin-left: 32px; font-size: 10.5px; }
  .hm { font-size: 10.5px; } .hm i { min-height: 28px; } .def { grid-template-columns: 1fr; }
}
@media (max-width: 340px) { .page { padding-left: 10px; padding-right: 10px; } .card { padding: 13px; } .tabela-wrap { margin: 0 -13px -13px; } .kpi > b { font-size: 21px; } .gc small, .gp small { font-size: 10.5px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ================= fotos de atletas (no desenho, retratos ilustrativos) ================= */
.foto { width: 34px; height: 34px; border-radius: 50%; flex: none; display: block; overflow: hidden; background: var(--fb, #E7E3D6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.foto.sm { width: 28px; height: 28px; } .foto.lg { width: 64px; height: 64px; } .foto.xl { width: 76px; height: 76px; border-radius: 16px; }
.foto.azul { --g: #2F66C4; }
.t1 { --p: #F2D3B8; --c: #2B1D14; --fb: #E7E3D6; } .t2 { --p: #E8BE9A; --c: #17130F; --fb: #DCE6F2; }
.t3 { --p: #D9A47B; --c: #3A2516; --fb: #F3E7C9; } .t4 { --p: #C68B5E; --c: #121212; --fb: #E3EBDD; }
.t5 { --p: #A86F45; --c: #0E0E0E; --fb: #EFE1DA; } .t6 { --p: #8A5633; --c: #0B0B0B; --fb: #E4E1F0; }
.t7 { --p: #F0C9A8; --c: #7B5A3A; --fb: #E1ECEA; } .t8 { --p: #B97F52; --c: #241710; --fb: #F1E4E4; }
.side__eu .foto { box-shadow: 0 0 0 2px var(--ink-3); }
.chamada .foto { width: 26px; height: 26px; }
.tabela .pessoa { gap: 9px; } .tabela .pessoa b { font-weight: 600; }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.vs__lado { display: flex; align-items: center; gap: 14px; min-width: 0; }
.vs__lado--dir { flex-direction: row-reverse; text-align: right; }
.vs__lado > div { display: grid; gap: 3px; min-width: 0; justify-items: start; } .vs__lado--dir > div { justify-items: end; }
.vs__lado b { font-family: var(--display); font-size: 17px; line-height: 1.2; } .vs__lado small { color: var(--muted); font-size: 12.5px; }
.vs__meio { text-align: center; display: grid; gap: 2px; padding: 0 6px; }
.vs__meio b { font-family: var(--display); font-size: 26px; font-weight: 800; white-space: nowrap; } .vs__meio small { color: var(--soft); font-size: 11.5px; }
.compara td, .compara th { width: 33.33%; } .compara td:last-child, .compara th:last-child { text-align: left; }
.advs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.adv { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.adv__c { display: grid; gap: 7px; min-width: 0; flex: 1; justify-items: start; }
.adv__c > b { font-size: 15.5px; line-height: 1.2; } .adv__c > small { color: var(--muted); font-size: 12.5px; }
.adv__nota { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; font-size: 12.5px; font-weight: 700; }
.adv__n { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); } .adv__n b { color: var(--text); }
@media (max-width: 560px) {
  .vs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .vs__meio { grid-column: 1 / -1; grid-row: 2; }
  .vs__lado, .vs__lado--dir { flex-direction: column; text-align: center; } .vs__lado > div, .vs__lado--dir > div { justify-items: center; }
  .advs { grid-template-columns: minmax(0, 1fr); } .foto.xl { width: 64px; height: 64px; }
}
