/* Motoristas: herói do diesel acima da meta, Liga (cartões ranqueados), pílulas e a página de cada motorista. Só tokens. */
.mot-heroi { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.mot-heroi .sub { margin: 4px 0 0; }
.mot-campeao { display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--superficie-2); border: 1px solid var(--borda); border-radius: 14px; padding: 12px 16px; min-height: var(--toque); max-width: 340px; }
.mot-campeao b { font-size: 1.1rem; }
.mot-campeao small { display: block; color: var(--texto-2); font-size: .82rem; font-weight: 600; margin-top: 2px; }

/* posição: ouro, prata e bronze só no pódio */
.pos { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--superficie-2); color: var(--texto); flex: none; font-variant-numeric: tabular-nums; }
.pos.ouro { background: linear-gradient(var(--dourado-claro), var(--dourado)); color: var(--dourado-escuro); }
.pos.prata { background: linear-gradient(var(--prata-1), var(--prata-2)); color: var(--prata-texto); }
.pos.bronze { background: linear-gradient(var(--bronze-1), var(--bronze-2)); color: var(--bronze-texto); }

.av.av-0 { background: var(--ok); } .av.av-1 { background: var(--info); } .av.av-2 { background: var(--marca); }
.av.av-3 { background: var(--dourado-forte); } .av.av-4 { background: var(--noite-3); } .av.av-5 { background: var(--vinho-claro); }

/* a Liga */
.liga { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.piloto { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto minmax(150px, auto); gap: 14px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--superficie); border: 1px solid var(--borda); border-radius: 14px; padding: 12px 16px; box-shadow: var(--sombra); min-height: var(--toque); }
.piloto:hover { border-color: var(--marca-borda); }
.piloto > * { min-width: 0; }
.piloto .quem b { display: block; font-weight: 800; font-size: 1.02rem; }
.piloto .quem small { display: block; color: var(--texto-2); font-size: .82rem; }
.piloto .kml { font-weight: 800; font-size: 1.15rem; text-align: right; }
.piloto .kml small, .piloto .nota small, .piloto .rs small { display: block; font-weight: 600; font-size: .74rem; color: var(--texto-2); }
.piloto .nota small { font-size: .7rem; color: inherit; font-weight: 700; white-space: nowrap; }
.piloto .rs { font-weight: 800; text-align: right; font-size: 1.02rem; }
.piloto .rs.ruim { color: var(--erro); } .piloto .rs.bom { color: var(--ok); }
.mot-fora { margin: 12px 0 0; }

/* página do motorista */
.mot-pagina { scroll-margin-top: 130px; }
.mot-pills { margin-bottom: 14px; }
.mot-cab { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av nome" "av chips"; gap: 0 16px; align-items: center; }
.mot-cab .av { grid-area: av; } .mot-cab h2 { grid-area: nome; align-self: end; } .mot-cab .chips { grid-area: chips; align-self: start; }
.av.grande { width: 64px; height: 64px; font-size: 1.4rem; border-radius: 18px; }
.mot-cab h2 { font-size: 1.6rem; margin: 0; }
.mot-cab .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mot-cab .chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--superficie-2); border: 1px solid var(--borda); font-weight: 600; font-size: .85rem; color: var(--texto); }
.mot-par { margin-top: 14px; }
.mot-habitos { margin-top: 14px; }
.mot-habitos .v.neutro { color: var(--texto-2); }
.mot-do-caminhao { margin: 8px 2px 0; }
.mot-leg { font-size: .8rem; margin: 8px 0 0; }
.mot-pagina .barra .nome, .mot-pagina .barra .nome small { white-space: normal; overflow: visible; text-overflow: clip; }
.mot-pagina .barra .valor { min-width: 100px; } /* "sem viagem" e "1,94" na mesma coluna: a meta tracejada fica alinhada */
.mot-sub-rotulo { margin: 16px 0 8px; }
.fonte-fina { font-size: .78rem; color: var(--texto-2); margin: 10px 0 0; }

.mot-matriz-caixa { margin-top: 8px; }
.mot-matriz td small { display: block; font-size: .74rem; color: var(--texto-2); }
.mot-matriz tr.fraco td { color: var(--texto-2); }
.mot-matriz tr.frota td { font-weight: 800; }
.mot-matriz td.n.ruim { color: var(--erro); font-weight: 800; } .mot-matriz td.n.bom { color: var(--ok); font-weight: 800; }
.mot-veredito { margin: 12px 0 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }

.mot-placar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.pil { background: var(--superficie-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.pil span { font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: var(--texto-2); text-transform: uppercase; }
.pil b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.pil b small { font-size: .8rem; color: var(--texto-2); font-weight: 700; }
.pil b.vazio-pilar { font-size: 1rem; color: var(--texto-2); line-height: 1.6; }
.pil .prog { height: 8px; margin-top: 6px; }
.mot-falta { margin: 12px 0 0; }
.mot-premio-mes { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }

.mot-sim-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.mot-sim .heroi { font-size: 2.8rem; }
.mot-sim .sub { margin: 0; }
.mot-div { display: grid; gap: 6px; margin: 0; }
.mot-div > div { display: flex; justify-content: space-between; gap: 14px; }
.mot-div dt { color: var(--texto-2); font-weight: 600; }
.mot-div dd { margin: 0; font-weight: 800; white-space: nowrap; }

.mot-viagens td small { display: block; font-size: .74rem; color: var(--texto-2); }
.mot-viagens tr:not(.det) td { border-bottom: 0; padding-bottom: 2px; }
.mot-viagens tr.det td { font-size: .8rem; color: var(--texto-2); padding-top: 0; }
.mot-viagens tr.invalida td { color: var(--texto-2); }
.mot-viagens th, .mot-matriz th { position: static; }

.mot-pagina .lista-quente .pt.bom { background: var(--ok-viva); }
.mot-pagina .lista-quente .pt.neutro { background: var(--neutro-viva); }

.mot-frases { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.mot-frases li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--superficie-2); border-radius: 12px; padding: 10px 12px; }
.mot-frases p { margin: 0; }
.mot-frases .ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--sobre-marca); }
.mot-frases .ico.bom { background: var(--ok); } .mot-frases .ico.atencao { background: var(--alerta-viva); color: var(--alerta-tinta); } .mot-frases .ico.meta { background: var(--info); }
.mot-frases .btn { min-width: 112px; }

@media (max-width: 900px) {
  .piloto { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "pos av quem nota" "kml kml rs rs"; row-gap: 8px; }
  .piloto .pos { grid-area: pos; } .piloto .av { grid-area: av; } .piloto .quem { grid-area: quem; } .piloto .nota { grid-area: nota; }
  .piloto .kml { grid-area: kml; text-align: left; } .piloto .rs { grid-area: rs; }
}
@media (max-width: 760px) {
  .mot-heroi { grid-template-columns: 1fr; }
  .mot-campeao { max-width: none; }
}
@media (max-width: 560px) {
  .mot-cab { grid-template-areas: "av nome" "chips chips"; row-gap: 4px; }
  .mot-cab h2 { align-self: center; }
  .mot-habitos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mot-habitos .tile { padding: 12px; }
  .mot-habitos .v { font-size: 1.5rem; }
  .av.grande { width: 52px; height: 52px; font-size: 1.15rem; border-radius: 14px; }
  .mot-cab h2 { font-size: 1.35rem; }
  .mot-placar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mot-sim-in { grid-template-columns: 1fr; }
  .mot-frases li { grid-template-columns: auto minmax(0, 1fr); }
  .mot-frases .btn { grid-column: 1 / -1; justify-self: start; }
  .piloto { gap: 10px; padding: 12px; }
}
