/* Sistema do Carlos v5: peças vindas do MFIT (biblioteca, editor de treino, avaliação, app do aluno, atividades). */

/* indicador de guardado no servidor */
#nuvem { width: 10px; height: 10px; border-radius: 50%; background: var(--st-dia); align-self: center; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-dia) 18%, transparent); transition: background .3s; }
#nuvem[data-s="enviando"] { background: var(--st-breve); animation: pisca 1s infinite; }
#nuvem[data-s="erro"] { background: var(--st-atraso); box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-atraso) 20%, transparent); }
@keyframes pisca { 50% { opacity: .35; } }

/* editor antigo do app.js (continua com estilo caso apareça) */
.treino .ex { grid-template-columns: 26px minmax(0, 1fr) 62px 84px 78px 82px 32px; }
.ex-nome { position: relative; min-width: 0; }
.ex-nome input { padding-right: 40px !important; }
.ex-bib { position: absolute; right: 3px; top: 3px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--suave-fundo); color: var(--azul); display: grid; place-items: center; cursor: pointer; }
.ex-bib svg { width: 16px; height: 16px; }
.ex-mais { grid-column: 2 / -1; font-size: 13px; }
.ex-mais summary { cursor: pointer; color: var(--fraco); padding: 2px 0; list-style: none; }
.ex-mais-in { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 8px 10px; padding: 8px 0 4px; align-items: end; }
.ex-mais-in label span { display: block; font-size: 11.5px; color: var(--fraco); margin-bottom: 4px; }
.ex-mais-in select, .ex-mais-in input:not([type="checkbox"]) { width: 100%; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--linha); background: var(--campo); color: inherit; font: inherit; }
.ex-mais-in .chave { grid-column: 1 / -1; }
.ex.junto { border-left: 3px solid var(--azul); }
.ex.junto-de { border-left: 3px solid var(--azul); background: color-mix(in srgb, var(--azul) 5%, transparent); }
.treino-dia { height: 32px; border-radius: 9px; border: 1px solid var(--linha); background: var(--campo); color: inherit; font: inherit; font-size: 13px; padding: 0 8px; max-width: 140px; }
.treino-instr { padding: 10px 14px 0; }
.treino-instr textarea { width: 100%; border-radius: 10px; border: 1px solid var(--linha); background: var(--campo); color: inherit; font: inherit; font-size: 13.5px; padding: 8px 10px; resize: vertical; }
@media (max-width: 860px) {
  .treino .ex { grid-template-columns: 1fr 1fr 1fr 1fr 32px; }
  .treino .ex.cab { display: none; }
  .ex-nome, .ex-mais { grid-column: 1 / -1; }
  .ex-mais-in { grid-template-columns: 1fr; }
}

/* botão quadrado de ícone (44 px, bom para o dedo) */
.bt-ic { flex: none; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--linha2); background: var(--cartao); color: var(--texto2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 650; transition: background .2s, border-color .2s, color .2s, transform .12s; }
.bt-ic svg { width: 19px; height: 19px; }
.bt-ic:active { transform: scale(.94); }
.bt-ic:hover { border-color: var(--apagado); }
.bt-ic[disabled] { opacity: .35; pointer-events: none; }
.bt-ic.ativo { background: color-mix(in srgb, var(--azul) 14%, transparent); border-color: var(--azul); color: var(--azul); }
.bt-ic.perigo { color: var(--st-atraso); border-color: color-mix(in srgb, var(--st-atraso) 35%, var(--linha)); }
.bt-ic.perigo:hover { background: var(--st-atraso-f); }

/* ===== editor de treino v5 ===== */
.ed5 { min-width: 0; }
.ed5-topo { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.ed5-topo .bt { height: 44px; padding: 0 12px; font-size: 14px; min-width: 0; }
.ed5-topo .bt svg { flex: none; }

.rotina { margin-bottom: 14px; padding: 0; overflow: hidden; }
.rotina-cab { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; min-height: 56px; }
.rotina-cab::-webkit-details-marker { display: none; }
.rotina-tit { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.rotina-tit > svg { width: 20px; height: 20px; color: var(--azul); flex: none; }
.rotina-tit b { display: block; font: 750 15.5px var(--titulo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rotina-tit small { display: block; color: var(--fraco); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rotina-tit > span { min-width: 0; }
.rotina-seta svg { width: 18px; height: 18px; color: var(--fraco); transition: transform .25s; display: block; }
.rotina[open] .rotina-seta svg { transform: rotate(180deg); }
.rotina > .campos { padding: 0 16px 16px; }
.rotina-chip:empty { display: none; }
.rotina-chip { flex: none; }
.rot-rapido { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rot-rapido .bt.mini { flex: 1 1 auto; justify-content: center; min-width: 0; }

.tr5 { border: 1px solid var(--linha); border-radius: 18px; margin-bottom: 16px; background: var(--cartao); overflow: hidden; }
.tr5-luz { animation: luz5 1.4s ease-out; }
.tr5-cab { display: flex; align-items: center; gap: 10px; padding: 10px 10px 8px 12px; background: var(--suave-fundo); }
.tr5-letra { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--grad); font: 800 16px var(--titulo); }
.tr5-nome { flex: 1; min-width: 0; height: 44px; border: 1px solid transparent; border-radius: 10px; outline: 0; background: none; padding: 0 8px; font: 750 17px var(--titulo); color: inherit; }
.tr5-nome:focus { border-color: var(--azul); background: var(--campo); }
.tr5-sub { display: flex; align-items: center; gap: 10px; padding: 0 12px 10px; background: var(--suave-fundo); border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.tr5-sub select { height: 40px; border-radius: 10px; border: 1px solid var(--linha2); background: var(--campo); color: inherit; font: inherit; font-size: 15px; padding: 0 10px; max-width: 100%; }
.tr5-info { color: var(--fraco); font-size: 13px; min-width: 0; }
.tr5-lista { padding: 10px; display: grid; gap: 10px; }
.tr5-vazio { margin: 4px 4px 0; color: var(--fraco); font-size: 14px; }
.tr5-instr { padding: 0 10px; }
.tr5-instr textarea { width: 100%; min-height: 64px; border-radius: 12px; border: 1px solid var(--linha2); background: var(--campo); color: inherit; font: inherit; font-size: 15px; padding: 10px 12px; resize: vertical; outline: 0; }
.tr5-instr textarea:focus { border-color: var(--azul); }
.tr5-pe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.tr5-pe .bt { height: 46px; min-width: 0; }
.tr5-novo { height: 50px; margin-bottom: 14px; border-style: dashed; }

.ex5 { border: 1px solid var(--linha); border-radius: 14px; background: var(--cartao2); padding: 10px; display: grid; gap: 10px; min-width: 0; }
.ex5-luz { animation: luz5 1.4s ease-out; }
@keyframes luz5 { 0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--azul) 55%, transparent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.ex5-topo { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.ex5-foto { position: relative; flex: none; width: 64px; height: 52px; border-radius: 11px; overflow: hidden; border: 0; padding: 0; background: var(--suave-fundo); color: var(--apagado); display: grid; place-items: center; cursor: pointer; }
.ex5-foto > svg { width: 22px; height: 22px; }
.ex5-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex5-n { position: absolute; left: 4px; top: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: rgba(0, 0, 0, .62); color: #fff; font: 700 12px/20px var(--titulo); text-align: center; }
.ex5-play { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .62); color: #fff; display: grid; place-items: center; }
.ex5-play svg { width: 12px; height: 12px; }
.ex5-nome { position: relative; flex: 1; min-width: 0; }
.ex5-nome textarea { display: block; width: 100%; min-height: 52px; height: 52px; resize: none; overflow: hidden; border-radius: 11px; border: 1px solid var(--linha2); background: var(--campo); color: inherit; outline: 0; font-family: inherit; font-weight: 650; font-size: 16px; line-height: 1.3; padding: 8px 50px 8px 10px; }
.ex5-nome textarea:focus { border-color: var(--azul); }
.ex5-bib { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 9px; background: var(--suave-fundo); color: var(--azul); display: grid; place-items: center; cursor: pointer; }
.ex5-bib svg { width: 19px; height: 19px; }
.ex5-campos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ex5-c { display: grid; gap: 4px; min-width: 0; }
.ex5-c > span { font-size: 12px; font-weight: 600; color: var(--fraco); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex5-c input, .ex5-c select { width: 100%; min-width: 0; height: 44px; padding: 0 9px; border-radius: 10px; border: 1px solid var(--linha2); background: var(--campo); color: inherit; outline: 0; font: inherit; font-size: 16px; }
.ex5-c input:focus, .ex5-c select:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.ex5-c select option { background: var(--fundo2); }
.ex5-linha { display: flex; gap: 6px; min-width: 0; }
.ex5-linha input { flex: 1; }
.ex5-mais summary { list-style: none; cursor: pointer; min-height: 36px; display: flex; align-items: center; gap: 6px; color: var(--azul); font-size: 14px; font-weight: 600; }
.ex5-mais summary::-webkit-details-marker { display: none; }
.ex5-mais summary::before { content: "+"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--suave-fundo); font-weight: 800; flex: none; }
.ex5-mais[open] summary::before { content: "–"; }
.ex5-mais-in { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 8px 0 2px; }
.ex5-bts { display: flex; gap: 6px; align-items: center; }
.ex5-bts .espaco { flex: 1; }
/* v6: esteira/bike — escolher por séries ou por tempo */
.ex5-modo { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--suave-fundo); }
.ex5-modo button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--fraco); font: inherit; font-size: 14px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.ex5-modo button svg { width: 16px; height: 16px; }
.ex5-modo button.ativo { background: var(--azul); color: #fff; }
.ex5-campos.ex5-campos-tempo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ex5-campos-tempo .ex5-c-largo { grid-column: 1 / -1; }
.ex5-grupo { border-left: 4px solid var(--azul); border-radius: 14px; padding: 8px 0 0 8px; display: grid; gap: 8px; background: color-mix(in srgb, var(--azul) 6%, transparent); }
.ex5-grupo-tit { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--azul); padding: 0 6px; }
.ex5-grupo-tit svg { width: 15px; height: 15px; }
@media (min-width: 861px) {
  .ex5-mais-in { grid-template-columns: 200px 1fr 1fr; align-items: end; }
}
@media (max-width: 420px) {
  .ex5-bts { gap: 4px; }
  .ex5-bts .bt-ic { min-width: 40px; padding: 0 8px; }
}
@media (max-width: 380px) {
  .ex5-campos { grid-template-columns: .8fr 1.2fr 1fr 1fr; gap: 5px; }
  .ex5-campos.ex5-campos-tempo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ex5-campos-tempo .ex5-c-largo { grid-column: 1 / -1; }
  .ex5-c input { padding: 0 7px; }
  .ex5-c > span { font-size: 11.5px; }
}

/* histórico do app na aba Treino */
.hist5 { margin-top: 6px; margin-bottom: 14px; }
.hist5 .mini-numeros { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hist5-int .chip { margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hist5-bts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hist5-bts .bt { height: 44px; }
@media (max-width: 860px) { .hist5 .mini-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* progressão de carga e listas de marcar */
.pg-ops .opcao { min-width: 70px; }
.pg-lista { display: grid; gap: 8px; margin-top: 14px; }
.pg-linha { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linha); background: var(--cartao2); cursor: pointer; min-height: 52px; }
.pg-linha.sem { opacity: .6; }
.pg-linha input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--azul); }
.pg-linha .meio { flex: 1; min-width: 0; display: grid; }
.pg-linha small { color: var(--fraco); font-size: 13px; }
.pg-linha small b { color: var(--texto); }
.acoes-folha button.mt-perigo span.ico { background: var(--st-atraso); }
.acoes-folha button.mt-perigo { color: var(--st-atraso); }
.acoes-folha span.ico.ico-zap { background: var(--zap); }
.acoes-folha span.ico svg { width: 20px; height: 20px; }

/* evolução de cargas */
.ec-lista { display: grid; gap: 10px; }
.ec-item { border: 1px solid var(--linha); border-radius: 14px; padding: 12px; background: var(--cartao2); }
.ec-cab { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.ec-cab small { color: var(--fraco); font-size: 13px; }
.ec-hist { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ec-pt { display: inline-grid; padding: 5px 10px; border-radius: 10px; background: var(--suave-fundo); font-weight: 650; font-size: 14px; }
.ec-pt small { font-size: 11px; color: var(--fraco); font-weight: 500; }
.ec-item .bt { margin-top: 10px; height: 40px; }
.vc-linha { cursor: default; }
.vc-linha.nao { opacity: .65; }
.vc-ic svg { width: 20px; height: 20px; color: var(--st-dia); display: block; }
.vc-linha.nao .vc-ic svg { color: var(--apagado); }

/* biblioteca */
.bib-barra { display: flex; gap: 8px; margin-bottom: 10px; align-items: stretch; }
.bib-busca { flex: 1; min-width: 0; }
.bib-barra .bt { height: 52px; flex: none; }
.bib-filtros { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.bib-filtros select { width: 100%; min-width: 0; height: 46px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--linha2); background: var(--campo); color: inherit; font: inherit; font-size: 15px; outline: 0; }
.bib-filtros select:focus { border-color: var(--azul); }
.bib-filtros select option { background: var(--fundo2); }
.bib-conta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; margin-bottom: 10px; color: var(--fraco); font-size: 14px; }
.bib-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bib-item { position: relative; text-align: left; border: 1px solid var(--linha); background: var(--cartao); border-radius: 16px; padding: 0 0 10px; overflow: hidden; cursor: pointer; color: inherit; font: inherit; display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: transform .2s, border-color .2s; }
.bib-item:hover { transform: translateY(-2px); border-color: var(--azul); }
.bib-item b { padding: 0 10px; font-size: 14px; line-height: 1.3; }
.bib-item small { padding: 0 10px; color: var(--fraco); font-size: 12.5px; }
.bib-foto { position: relative; aspect-ratio: 4 / 3; background: var(--cartao2); display: grid; place-items: center; color: var(--apagado); margin-bottom: 6px; }
.bib-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bib-foto > svg { width: 30px; height: 30px; }
.bib-play { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; }
.bib-play svg { width: 14px; height: 14px; }
.video-ex { width: 100%; max-height: 60vh; border-radius: 16px; background: #000; display: block; margin: 6px 0 12px; }
img.video-ex { object-fit: contain; background: var(--cartao2); }
.video-caixa { position: relative; padding-top: 56.25%; border-radius: 16px; overflow: hidden; margin: 6px 0 12px; background: #000; }
.video-caixa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.xb-busca { margin: 4px 0 10px; }
.xb-lista { max-height: 50vh; max-height: 50dvh; overflow: auto; overscroll-behavior: contain; }
.xb-linha { padding: 8px 10px 8px 8px; gap: 10px; min-height: 64px; }
.xb-foto { position: relative; width: 64px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--cartao2); display: grid; place-items: center; color: var(--apagado); flex: none; border: 0; padding: 0; cursor: pointer; }
.xb-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xb-foto > svg { width: 18px; height: 18px; }
.xb-play { position: absolute; right: 3px; bottom: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; }
.xb-play svg { width: 11px; height: 11px; }
.xb-mais { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--suave-fundo); color: var(--azul); }
.xb-mais svg { width: 20px; height: 20px; }
.linha.escolhido { background: color-mix(in srgb, var(--st-dia) 14%, transparent); border-color: color-mix(in srgb, var(--st-dia) 45%, var(--linha)); animation: escolhe5 .5s ease-out; }
.linha.escolhido .xb-mais { background: var(--st-dia); color: #fff; }
@keyframes escolhe5 { 0% { transform: scale(.98); } 60% { transform: scale(1.01); } 100% { transform: none; } }
.sem-video { margin: 0 0 12px; }
@media (max-width: 520px) {
  .bib-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bib-barra .bt span { display: none; }
  .bib-barra .bt { width: 52px; padding: 0; }
  .bib-filtros select { font-size: 14.5px; padding: 0 8px; }
}

/* avaliação */
.campos-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .campos-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.campo.precisa > span { color: var(--azul); }
.campo.precisa input { border-color: color-mix(in srgb, var(--azul) 60%, var(--linha2)); }
.av-dica { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 13.5px; color: var(--texto2); }
.av-dica svg { width: 17px; height: 17px; color: var(--azul); flex: none; margin-top: 2px; }
.av-res { margin-top: 16px; }
.anam .campo { margin-bottom: 12px; }
.anam textarea { width: 100%; }
.faixa-alerta { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--st-atraso) 12%, transparent); color: var(--st-atraso); font-weight: 600; font-size: 14px; margin: 10px 0; }
.faixa-alerta svg { width: 18px; height: 18px; flex: none; }
.testes-op { flex-wrap: wrap; }
.testes-op .opcao { flex: 1 1 140px; height: auto; min-height: 44px; padding: 8px 10px; line-height: 1.25; }

/* comparar avaliações */
.cmp-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cmp-sel label { display: grid; gap: 4px; min-width: 0; }
.cmp-sel label span { font-size: 12.5px; font-weight: 600; color: var(--fraco); }
.cmp-sel select { width: 100%; min-width: 0; height: 44px; border-radius: 12px; border: 1.5px solid var(--linha2); background: var(--campo); color: inherit; font: inherit; font-size: 15px; padding: 0 8px; }
.cmp-sel select option { background: var(--fundo2); }
.cmp-res { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--suave-fundo); font-weight: 650; font-size: 14px; }
.cmp-tab { display: grid; }
.cmp-l { display: grid; grid-template-columns: minmax(0, 1fr) 62px 62px 78px; gap: 6px; padding: 8px 2px; border-bottom: 1px solid var(--linha); font-size: 14px; align-items: center; font-variant-numeric: tabular-nums; }
.cmp-l > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.cmp-l > span:not(:first-child), .cmp-l > b { text-align: right; }
.cmp-l b { font-weight: 700; }
.cmp-l b.melhor { color: var(--st-dia); }
.cmp-l b.pior { color: var(--st-atraso); }
.cmp-cab { font-size: 12px; font-weight: 600; color: var(--fraco); text-transform: uppercase; letter-spacing: .04em; }
.cmp-bts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cmp-bts .bt { height: 40px; }
@media (max-width: 380px) { .cmp-l { grid-template-columns: minmax(0, 1fr) 54px 54px 70px; font-size: 13.5px; gap: 4px; } }

/* atividades (treinos feitos, avaliações online, cadastros, recados) */
.atv-bts { margin-top: -6px; }
.atv-bts .bt { height: 40px; }
.evs { display: grid; gap: 10px; }
.ev { border: 1px solid var(--linha); border-radius: 14px; padding: 12px 14px; background: var(--cartao); min-width: 0; }
.ev.resolvido { opacity: .7; }
.ev-cab { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ev-cab .meio { flex: 1; min-width: 0; }
.ev-cab .info { color: var(--fraco); font-size: 13px; }
.ev-cab .chip { flex: none; }
.ev-txt { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ev-resp { display: flex; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--suave-fundo); font-size: 14px; }
.ev-resp svg { width: 16px; height: 16px; flex: none; color: var(--azul); margin-top: 2px; }
.ev-bts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ev-bts .bt.mini { height: 40px; }
@media (max-width: 420px) { .ev-cab { flex-wrap: wrap; } .ev-cab .chip { margin-left: auto; } }
.cad-bts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cad-bts .bt { height: 40px; }

/* aba App da ficha */
.app-sit { display: flex; align-items: center; gap: 12px; }
.app-sit .meio { flex: 1; min-width: 0; }
.app-sit .info { color: var(--fraco); font-size: 13px; overflow-wrap: anywhere; }
.app-sit-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--suave-fundo); color: var(--fraco); flex: none; }
.app-sit.ok .app-sit-ic { background: color-mix(in srgb, var(--st-dia) 16%, transparent); color: var(--st-dia); }
.app-sit.bloq .app-sit-ic { background: color-mix(in srgb, var(--st-atraso) 16%, transparent); color: var(--st-atraso); }
.app-bts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.linha-bts { display: flex; gap: 8px; }
.linha-bts input { flex: 1; min-width: 0; }
.linha-bts .bt { height: 46px; }
.ico-arq { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--suave-fundo); color: var(--azul); flex: none; }
.ico-arq svg { width: 18px; height: 18px; }
/* v6 · aviso para vários: grupos em linhas que quebram, sem apertar o número */
.lote-tipos.aviso-grupos .opcao { flex: 0 1 auto; min-width: 0; padding: 0 12px; white-space: nowrap; }
