/* Jarvis Idiomas. Verde Manusis4 no lugar de azul, laranja na acao, texto
   branco sobre faixa colorida, tema escuro grafite (sem fundo claro fixo). */

@font-face { font-family: 'Montserrat'; src: url('/fontes/Montserrat-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/fontes/Montserrat-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/fontes/Montserrat-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/fontes/Montserrat-Bold.ttf') format('truetype'); font-weight: 700 800; font-display: swap; }

:root {
  --verde: #00A651;
  --verde-esc: #00803F;
  --laranja: #F58220;
  --ambar: #E8A300;
  --vermelho: #CE181E;
  --fundo: #F3F5F2;
  --cartao: #FFFFFF;
  --texto: #1E2422;
  --suave: #5E6964;
  --linha: #DDE3DF;
  --chip: #E5F4EB;
  --chip-texto: #00733A;
  --laranja-suave: #FEEFE1;
  --sombra: 0 6px 18px rgba(20, 30, 25, 0.08);
  --raio: 12px;
  --fonte: 'Montserrat', system-ui, 'Segoe UI', Roboto, sans-serif;
  --alvo: system-ui, 'Segoe UI', 'Noto Sans', 'Noto Naskh Arabic', 'Noto Sans SC', 'PingFang SC', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --verde: #1DBB6A; --verde-esc: #0E8E4C; --laranja: #F7913A; --ambar: #F0B429; --vermelho: #F05252;
    --fundo: #1A1D24; --cartao: #242932; --texto: #ECEFEC; --suave: #A4AEA9; --linha: #343A44;
    --chip: #1E3A2B; --chip-texto: #82E2AC; --laranja-suave: #3A2B1D; --sombra: 0 6px 18px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-tema="escuro"] {
  --verde: #1DBB6A; --verde-esc: #0E8E4C; --laranja: #F7913A; --ambar: #F0B429; --vermelho: #F05252;
  --fundo: #1A1D24; --cartao: #242932; --texto: #ECEFEC; --suave: #A4AEA9; --linha: #343A44;
  --chip: #1E3A2B; --chip-texto: #82E2AC; --laranja-suave: #3A2B1D; --sombra: 0 6px 18px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--fundo); color: var(--texto); font-family: var(--fonte); font-size: 15px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--verde); }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; }
.muted { color: var(--suave); }
.pequeno { font-size: 13px; }

/* ─── Botoes ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--linha); background: var(--cartao); border-radius: 10px; padding: 10px 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.btn svg { width: 20px; height: 20px; }
a.btn, a.cartao, a.passo { text-decoration: none; }
a.cartao { color: inherit; }
a.btn:not(.acao):not(.verde) { color: var(--texto); }
a.btn.fantasma { color: var(--verde); }
.btn.acao { background: var(--laranja); border-color: var(--laranja); color: #fff; }
.btn.verde { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn.fantasma { background: transparent; color: var(--verde); border-color: var(--verde); }
.btn.grande { width: 100%; font-size: 16px; padding: 13px; }
.btn.pequeno { min-height: 34px; padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.carregando { position: relative; color: transparent !important; }
.btn.carregando::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2.5px solid #fff; border-right-color: transparent; border-radius: 50%; animation: giro 0.8s linear infinite; }
.btn.fantasma.carregando::after, .btn:not(.acao):not(.verde).carregando::after { border-color: var(--verde); border-right-color: transparent; }
.elo { background: none; border: 0; color: var(--verde); font-weight: 600; cursor: pointer; padding: 6px 4px; display: inline-flex; gap: 6px; align-items: center; }
.elo svg { width: 18px; height: 18px; }
.icone-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--texto); }
.icone-btn svg { width: 26px; height: 26px; display: block; }
.linha-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.linha-botoes > .btn { flex: 1 1 auto; }

/* ─── Casca ──────────────────────────────────────────────── */
.casca { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.barra-topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: max(6px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 6px max(6px, env(safe-area-inset-left, 0px)); background: var(--fundo); border-bottom: 1px solid var(--linha); }
.idioma-atual { background: var(--cartao); border: 1px solid var(--linha); border-radius: 999px; padding: 6px 12px; font-weight: 700; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.idioma-atual small { background: var(--chip); color: var(--chip-texto); border-radius: 999px; padding: 1px 8px; font-size: 11px; }
.tela { padding: 0 max(14px, env(safe-area-inset-right, 0px)) 24px max(14px, env(safe-area-inset-left, 0px)); outline: none; }
.atalhos { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--cartao); border-top: 1px solid var(--linha); padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px)); max-width: 640px; margin: 0 auto; }
.atalhos a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--suave); text-decoration: none; padding: 4px 0; }
.atalhos svg { width: 22px; height: 22px; }
.atalhos a.ativo { color: var(--verde); font-weight: 700; }
.gaveta-fundo { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 40; }
.gaveta { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 84vw); z-index: 41; background: var(--cartao); padding: max(16px, env(safe-area-inset-top, 0px)) 12px 24px max(12px, env(safe-area-inset-left, 0px)); overflow-y: auto; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.gaveta a { padding: 10px 12px; border-radius: 8px; color: var(--texto); text-decoration: none; font-weight: 500; }
.gaveta a.ativo { background: var(--chip); color: var(--chip-texto); font-weight: 700; }
.gaveta-marca { display: flex; gap: 10px; align-items: center; padding: 4px 8px 12px; }
.gaveta-marca img { border-radius: 9px; }
.gaveta-marca span { display: flex; flex-direction: column; }
.gaveta-marca small { color: var(--suave); }
.gaveta-grupo { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--suave); font-weight: 700; padding: 14px 12px 4px; }

/* ─── Topo verde de cada tela ────────────────────────────── */
.topo { margin: 12px 0 14px; background: linear-gradient(120deg, var(--verde-esc), var(--verde)); color: #fff; border-radius: var(--raio); padding: 16px 16px 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; box-shadow: var(--sombra); }
.topo h1 { font-size: 21px; font-weight: 800; color: #fff; }
.topo p { color: #fff; opacity: 0.92; font-size: 13px; margin-top: 2px; }
.pilula { background: rgba(255, 255, 255, 0.22); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ─── Cartoes e listas ───────────────────────────────────── */
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pilha { display: flex; flex-direction: column; gap: 12px; }
.rotulo { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--suave); }
.grade-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--cartao); border: 1px solid var(--linha); border-radius: 10px; padding: 9px 10px; min-width: 0; }
.kpi b { display: block; font-size: 20px; font-weight: 800; color: var(--verde); font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: 12px; color: var(--suave); line-height: 1.25; }
.kpi small { display: block; font-size: 10px; color: var(--suave); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--chip); color: var(--chip-texto); }
.chip.laranja { background: var(--laranja-suave); color: var(--laranja); }
button.chip { border: 1.5px solid transparent; cursor: pointer; }
button.chip.marcado { background: var(--laranja); color: #fff; }
.passo { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--linha); }
.passo:last-child { border-bottom: 0; }
.passo .ponto { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--verde); flex: none; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.passo .ponto.feito { background: var(--verde); }
.passo .meio { flex: 1; min-width: 0; }
.passo .meio small { display: block; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.passo .min { font-size: 12px; color: var(--suave); font-variant-numeric: tabular-nums; }
a.passo { color: inherit; text-decoration: none; }
.barra { height: 7px; border-radius: 4px; background: var(--linha); overflow: hidden; }
.barra span { display: block; height: 100%; background: var(--verde); }
.lembrete { border-left: 4px solid var(--laranja); background: var(--laranja-suave); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.vazio { text-align: center; padding: 40px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.carregando-bloco { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 16px; color: var(--suave); text-align: center; }
.giro { width: 30px; height: 30px; border: 3px solid var(--linha); border-top-color: var(--verde); border-radius: 50%; animation: giro 0.9s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

/* ─── Texto no idioma-alvo ───────────────────────────────── */
.alvo { font-family: var(--alvo); font-size: 21px; font-weight: 700; line-height: 1.35; unicode-bidi: plaintext; }
.alvo-pequeno { font-family: var(--alvo); font-size: 16px; font-weight: 600; unicode-bidi: plaintext; }
.alvo-verde { font-family: var(--alvo); color: var(--verde); font-weight: 700; font-size: 17px; unicode-bidi: plaintext; }
.translit { color: var(--suave); font-size: 14px; font-style: italic; }
.alvo-bloco, .alvo-pequeno-bloco { display: flex; flex-direction: column; gap: 2px; }
.palavras .p-boa { color: var(--verde); }
.palavras .p-media { color: var(--ambar); }
.palavras .p-ruim { color: var(--vermelho); text-decoration: underline wavy; text-underline-offset: 4px; }
.palavras .omitida { opacity: 0.6; }
.correcao { border-left: 3px solid var(--laranja); background: var(--laranja-suave); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.correcao s { opacity: 0.7; }
.correcao b { color: var(--verde); }
.traduzida { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px dashed var(--linha); }
.traduzida:last-child { border-bottom: 0; }
.nota-grande { display: flex; flex-direction: column; align-items: center; }
.nota-grande b { font-size: 38px; font-weight: 800; line-height: 1; }
.nota-grande.boa b { color: var(--verde); } .nota-grande.media b { color: var(--ambar); } .nota-grande.ruim b { color: var(--vermelho); }
.nota-grande small { color: var(--suave); font-size: 12px; }

/* ─── Ouvir e microfone ──────────────────────────────────── */
.ouvir { display: flex; gap: 8px; align-items: center; }
.ouvir-btn { border-color: var(--verde); color: var(--verde); }
.ouvir-btn.tocando { background: var(--verde); color: #fff; }
.microfone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; }
.mic { width: 78px; height: 78px; border-radius: 50%; border: 0; background: var(--laranja); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 8px var(--laranja-suave); touch-action: none; user-select: none; -webkit-user-select: none; }
.mic svg { width: 34px; height: 34px; }
.gravando .mic { background: var(--vermelho); box-shadow: 0 0 0 10px var(--laranja-suave); }
.onda { display: flex; align-items: center; gap: 3px; height: 28px; --nivel: 0; }
.onda i { display: block; width: 4px; border-radius: 2px; background: var(--laranja); height: 4px; transition: height 0.08s; }
.gravando .onda i { height: calc(4px + var(--nivel) * 24px); }
.gravando .onda i:nth-child(3n) { height: calc(4px + var(--nivel) * 14px); }
.gravando .onda i:nth-child(4n) { height: calc(4px + var(--nivel) * 20px); }
.mic-legenda { font-size: 13px; color: var(--suave); text-align: center; }
.digitar { display: flex; gap: 8px; width: 100%; }
.digitar input, .campo input, .campo select, .campo textarea, .porque input { flex: 1; min-width: 0; border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px 12px; background: var(--cartao); }
.porque { display: flex; gap: 8px; margin-top: 6px; }
.porque-resposta { background: var(--chip); color: var(--texto); border-radius: 8px; padding: 10px; margin-top: 6px; white-space: pre-wrap; }

/* ─── Formularios ────────────────────────────────────────── */
.campo { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
.campo small { font-weight: 400; color: var(--suave); }
.campo textarea { min-height: 84px; resize: vertical; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcoes .opcao { border: 1.5px solid var(--linha); background: var(--cartao); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 600; }
.opcoes .opcao.marcado { border-color: var(--verde); background: var(--chip); color: var(--chip-texto); }

/* ─── Revisao ────────────────────────────────────────────── */
.notas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.notas button { border: 0; border-radius: 10px; color: #fff; font-weight: 700; padding: 10px 2px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.notas button.sugerida { box-shadow: 0 0 0 3px var(--fundo), 0 0 0 6px var(--laranja); }
.notas button small { font-weight: 500; font-size: 11px; opacity: 0.92; }
.n1 { background: var(--vermelho); } .n2 { background: var(--ambar); } .n3 { background: var(--verde); } .n4 { background: var(--verde-esc); }

/* ─── Fala rapida ────────────────────────────────────────── */
.cronometro { width: 140px; height: 140px; margin: 6px auto; position: relative; }
.cronometro svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cronometro .fundo-arco { stroke: var(--linha); }
.cronometro .arco { stroke: var(--laranja); transition: stroke-dashoffset 0.1s linear; }
.cronometro b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cronometro.passou .arco { stroke: var(--vermelho); }

/* ─── Conversa ───────────────────────────────────────────── */
.mensagens { display: flex; flex-direction: column; gap: 8px; }
.balao { max-width: 88%; border-radius: 14px; padding: 8px 11px; display: flex; flex-direction: column; gap: 4px; }
.balao.tutor { background: var(--cartao); border: 1px solid var(--linha); align-self: flex-start; }
.balao.aluno { background: var(--verde); color: #fff; align-self: flex-end; }
.balao .alvo-pequeno { font-size: 16px; }
.balao .trad { font-size: 12.5px; color: var(--suave); }
.balao.aluno .alvo-pequeno { color: #fff; }
.objetivos li.feito { color: var(--verde); font-weight: 700; }
.objetivos li.feito::marker { content: '✓  '; }

/* ─── Graficos ───────────────────────────────────────────── */
.grafico svg { width: 100%; height: auto; display: block; }
.grafico text { fill: var(--suave); font-size: 9px; font-family: var(--fonte); }
.grafico .valor { fill: var(--texto); font-weight: 700; }
.grafico .linha-grade { stroke: var(--linha); }
.grafico .serie { stroke: var(--verde); fill: none; stroke-width: 2.5; }
.grafico .barra-g { fill: var(--verde); }
.grafico .ponto-fim { fill: var(--laranja); }
.tons-grafico .esperado { stroke: var(--suave); stroke-dasharray: 4 4; fill: none; stroke-width: 2; }
.tons-grafico .medido { stroke: var(--laranja); fill: none; stroke-width: 3; }

/* ─── Modo carro ─────────────────────────────────────────── */
.carro { position: fixed; inset: 0; z-index: 50; background: #0F1215; color: #ECEFEC; display: flex; flex-direction: column; justify-content: space-between; padding: max(24px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); text-align: center; }
.carro .alvo { color: #fff; font-size: 26px; }
.carro .muted { color: #9AA4A0; }
.carro .botoes-carro { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.carro .botoes-carro button { border-radius: 16px; padding: 22px 0; font-size: 18px; font-weight: 800; border: 2px solid #3A4048; background: transparent; color: #fff; }
.carro .botoes-carro .proxima { background: var(--laranja); border-color: var(--laranja); }

/* ─── Entrada ────────────────────────────────────────────── */
.entrada { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #1C2A22, #1A1D24 60%); }
.entrada-cartao { background: var(--cartao); color: var(--texto); border-radius: 16px; padding: 26px 22px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.entrada-marca { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 18px; }
.entrada-marca img { border-radius: 10px; }
.entrada-cartao h1 { font-size: 22px; }
.erro { color: var(--vermelho); font-weight: 600; }
.entrada-rodape { text-align: center; font-size: 14px; }

/* ─── Avisos ─────────────────────────────────────────────── */
.avisos { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100% - 28px)); pointer-events: none; }
.aviso { background: #1E2422; color: #fff; padding: 11px 14px; border-radius: 10px; box-shadow: var(--sombra); font-size: 14px; }
.aviso.erro { background: var(--vermelho); }
.aviso.ok { background: var(--verde-esc); }

/* ─── Idiomas ────────────────────────────────────────────── */
.idioma-cartao { display: flex; align-items: center; gap: 12px; text-align: start; width: 100%; cursor: pointer; }
.idioma-cartao .bandeira { font-size: 28px; }
.idioma-cartao .nomes { flex: 1; min-width: 0; }
.idioma-cartao .nomes b { display: block; }
.idioma-cartao.ativo { border-color: var(--verde); box-shadow: 0 0 0 2px var(--verde) inset; }
.letra { font-family: var(--alvo); font-size: 44px; font-weight: 700; line-height: 1.1; text-align: center; }
.grade-letras { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.grade-letras button { background: var(--cartao); border: 1px solid var(--linha); border-radius: 10px; padding: 8px 2px; font-family: var(--alvo); font-size: 22px; cursor: pointer; }
.grade-letras button.marcado { border-color: var(--verde); background: var(--chip); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Computador: menu fixo na lateral, conteúdo mais largo, sem a barra de atalhos do celular. */
@media (min-width: 1024px) {
  .casca { max-width: 1200px; display: grid; grid-template-columns: 264px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 32px; padding: 0 24px; align-items: start; }
  .gaveta { position: sticky; top: 0; height: 100vh; grid-column: 1; grid-row: 1 / span 2; width: auto; box-shadow: none; border-right: 1px solid var(--linha); z-index: 1; }
  .gaveta-fundo, #abrir-menu, .atalhos { display: none !important; }
  .barra-topo { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .tela { grid-column: 2; grid-row: 2; width: 100%; max-width: 860px; padding: 0 0 48px; }
}

/* Área de usuários */
.usuario { display: flex; flex-direction: column; gap: 8px; }
.usuario-cabeca { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.usuario-cabeca b { display: block; }
.selos { display: flex; flex-wrap: wrap; gap: 6px; }
.selo { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--chip); color: var(--chip-texto); }
.selo.alerta { background: #F58220; color: #fff; }
.selo.apagado { background: var(--linha); color: var(--suave); }
.usuario-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.marcar { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* Bandeiras em SVG (o emoji não aparece no Windows). Tamanho pela fonte: 1,5 x 1 em. */
.bandeira { display: inline-flex; flex: none; width: 1.5em; height: 1em; border-radius: 3px; overflow: hidden; vertical-align: -0.15em; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); }
.bandeira svg { width: 100%; height: 100%; display: block; }
.idioma-atual .seta { font-style: normal; font-size: 11px; opacity: 0.7; margin-left: 2px; }

/* Troca rápida de idioma */
.troca-fundo { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 50; }
.troca { position: fixed; z-index: 51; top: calc(56px + env(safe-area-inset-top, 0px)); right: 12px; width: min(360px, calc(100vw - 24px)); background: var(--cartao); border-radius: var(--raio); box-shadow: var(--sombra); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.troca-item, .outro-idioma { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--texto); font: inherit; }
.troca-item .bandeira, .outro-idioma .bandeira { font-size: 22px; }
.troca-item .meio, .outro-idioma .meio { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.troca-item small, .outro-idioma small { color: var(--suave); }
.troca-item.ativo { border-color: var(--verde); background: var(--chip); }

/* Teste do microfone */
.medidor { height: 14px; border-radius: 7px; background: var(--linha); overflow: hidden; }
.medidor span { display: block; height: 100%; width: 0; background: var(--verde); transition: width 0.08s linear; }
.veredito { border-left: 5px solid var(--linha); }
.veredito.boa { border-left-color: var(--verde); } .veredito.media { border-left-color: var(--ambar); } .veredito.ruim { border-left-color: var(--vermelho); }

/* Acertos e erros */
.desempenho-linha { display: flex; flex-direction: column; gap: 6px; }
.desempenho-topo { display: flex; justify-content: space-between; gap: 10px; }
.erro-item { border-top: 1px solid var(--linha); padding-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.erro-item:first-of-type { border-top: 0; padding-top: 0; }
.certo { color: var(--verde); }

.opcoes a.opcao { text-decoration: none; color: var(--texto); }
.outro-idioma { margin-top: 6px; }
