/* ====================================================================
   SEMIO MED - Relatorio da lista e incentivo da metade (28/10/2026)
   Tema claro da plataforma: cartoes brancos, azul-marinho da marca,
   verde/vermelho/cinza para acerto/erro/em branco.
   ==================================================================== */

.srl-camada,
.srl-meio {
  --srl-fundo: #f5f7fa;
  --srl-cartao: #ffffff;
  --srl-suave: #f8fafc;
  --srl-trilho: #eaecf0;
  --srl-borda: #c9d4e2;
  --srl-texto: #101828;
  --srl-texto-2: #344054;
  --srl-mudo: #667085;
  --srl-marca: #103868;
  --srl-marca-suave: #eef4fb;
  --srl-certo: #12a150;
  --srl-certo-fundo: #ecfdf3;
  --srl-errado: #d92d20;
  --srl-errado-fundo: #fef3f2;
  --srl-branco: #c4ccd8;
  --srl-medio: #f79009;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--srl-texto);
}

.srl-camada *, .srl-meio * { box-sizing: border-box; letter-spacing: 0; }
body.srl-aberto { overflow: hidden; }

.srl-camada {
  position: fixed;
  top: var(--semio-area-topo, 66px);
  left: var(--semio-area-esq, 0px);
  right: var(--semio-area-dir, 0px);
  bottom: 0;
  z-index: 44;
  overflow: auto;
  background: var(--srl-fundo);
}

.srl-pagina { max-width: 1120px; margin: 0 auto; padding: 22px 22px 64px; display: grid; gap: 14px; }

.srl-cartao {
  padding: 18px 20px;
  border: 1px solid var(--srl-borda);
  border-radius: 14px;
  background: var(--srl-cartao);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.04);
}
.srl-cartao h2 { margin: 0 0 12px; color: var(--srl-mudo); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- cabecalho ---- */
.srl-cabecalho {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 20px 22px;
  border: 1px solid var(--srl-borda);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f6fc 100%);
}
.srl-sobre { color: var(--srl-marca); font-size: 10.5px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.srl-cabecalho h1 { margin: 4px 0 8px; font-size: 25px; font-weight: 800; line-height: 1.2; }
.srl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.srl-chips span { padding: 3px 9px; border: 1px solid var(--srl-borda); border-radius: 999px; background: #fff; color: var(--srl-texto-2); font-size: 11.5px; font-weight: 700; }
.srl-chips .is-ok { border-color: #a6f4c5; background: var(--srl-certo-fundo); color: #067647; }
.srl-chips .is-pausa { border-color: #fedf89; background: #fffaeb; color: #b54708; }
.srl-acoes { display: flex; flex-wrap: wrap; gap: 8px; }

.srl-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #c4ccd8;
  border-radius: 10px;
  background: #fff;
  color: var(--srl-texto-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
html body .srl-camada .srl-botao:hover:not(:disabled):not(#srl-nada) { border-color: #b2c7e3 !important; background: var(--srl-marca-suave) !important; color: var(--srl-marca) !important; }
.srl-botao.is-primario { border-color: var(--srl-marca); background: var(--srl-marca); color: #fff; }
html body .srl-camada .srl-botao.is-primario:hover:not(:disabled):not(#srl-nada) { background: #0b2f59 !important; border-color: #0b2f59 !important; color: #fff !important; }
.srl-botao.is-leve { border-color: transparent; background: transparent; }
.srl-botao:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- numeros ---- */
.srl-numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; }
.srl-numeros > div { padding: 18px 20px; border-left: 1px solid var(--srl-trilho); }
.srl-numeros > div:first-child { border-left: 0; }
.srl-numeros strong { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.srl-numeros strong small { color: var(--srl-mudo); font-size: 15px; font-weight: 700; }
.srl-numeros span { display: block; margin-top: 6px; color: var(--srl-mudo); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- distribuicao ---- */
.srl-legenda { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--srl-texto-2); }
.srl-legenda span { display: inline-flex; align-items: center; gap: 7px; }
.srl-legenda i { width: 10px; height: 10px; border-radius: 50%; }
.srl-legenda b { font-size: 15px; color: var(--srl-texto); }
.srl-legenda em { color: var(--srl-mudo); font-style: normal; font-size: 12px; }
.srl-legenda .is-certo i, .srl-segmentos .is-certo { background: var(--srl-certo); }
.srl-legenda .is-errado i, .srl-segmentos .is-errado { background: var(--srl-errado); }
.srl-legenda .is-branco i, .srl-segmentos .is-branco { background: var(--srl-branco); }
.srl-segmentos { display: flex; height: 16px; overflow: hidden; border-radius: 999px; background: var(--srl-trilho); }
.srl-segmentos b { display: block; height: 100%; transition: width 500ms ease; }

/* ---- Hipocrates + comparacao ---- */
.srl-hipocrates { display: flex; gap: 18px; align-items: flex-start; }
.srl-logo { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 14px -6px rgba(16, 56, 104, 0.45); }
.srl-hipocrates > div { flex: 1 1 auto; min-width: 0; }
.srl-hipocrates > div > b { display: block; font-size: 16px; line-height: 1.45; color: var(--srl-marca); }
.srl-comp-texto { margin: 10px 0 0; color: var(--srl-texto-2); font-size: 13.5px; line-height: 1.5; }
.srl-comp-texto b { color: var(--srl-texto); }
.srl-escala { position: relative; height: 70px; margin: 18px 6px 0; }
.srl-escala-trilho { position: absolute; left: 0; right: 0; top: 40px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #fee4e2 0%, #fef0c7 50%, #d1fadf 100%); }
.srl-marca { position: absolute; top: 0; width: 0; height: 56px; }
.srl-marca::after { content: ""; position: absolute; left: -1.5px; top: 30px; width: 3px; height: 26px; border-radius: 2px; }
.srl-marca em { position: absolute; bottom: 30px; left: 0; transform: translateX(-50%); font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap; color: var(--srl-mudo); }
.srl-marca em b { font-size: 13px; }
.srl-marca.is-voce::after { background: var(--srl-marca); }
.srl-marca.is-voce em { color: var(--srl-marca); }
.srl-marca.is-media::after { background: #98a2b3; }
.srl-marca.is-media em { bottom: auto; top: 60px; }
.srl-escala-0, .srl-escala-100 { position: absolute; top: 52px; color: #98a2b3; font-size: 10.5px; font-weight: 700; }
.srl-escala-0 { left: 0; }
.srl-escala-100 { right: 0; }
.srl-hipocrates .srl-escala { margin-bottom: 18px; }

/* ---- barras ---- */
.srl-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.srl-barras { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.srl-barra-topo { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.srl-barra-topo em { color: var(--srl-mudo); font-style: normal; font-weight: 600; white-space: nowrap; }
.srl-barra-topo em b { color: var(--srl-texto); }
.srl-trilho { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: var(--srl-trilho); }
.srl-trilho b { display: block; height: 100%; border-radius: inherit; background: var(--srl-marca); transition: width 500ms ease; }
.srl-barras .is-bom .srl-trilho b { background: var(--srl-certo); }
.srl-barras .is-medio .srl-trilho b { background: var(--srl-medio); }
.srl-barras .is-ruim .srl-trilho b { background: var(--srl-errado); }
.srl-nota { margin: 12px 0 0; color: #98a2b3; font-size: 11.5px; }
.srl-vazio { margin: 0; color: var(--srl-mudo); font-size: 13px; }

.srl-temas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: tema; }
.srl-temas li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--srl-errado-fundo); font-size: 13px; font-weight: 700; color: var(--srl-texto); counter-increment: tema; }
.srl-temas li::before { content: counter(tema); flex: 0 0 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--srl-errado); font-size: 11px; line-height: 22px; text-align: center; }
.srl-temas li span { flex: 1 1 auto; min-width: 0; }
.srl-temas em { color: #b42318; font-style: normal; font-size: 12px; white-space: nowrap; }

/* ---- questoes ---- */
.srl-filtros { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.srl-busca { display: inline-flex; flex: 1 1 260px; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--srl-borda); border-radius: 10px; color: var(--srl-mudo); }
.srl-busca svg { width: 16px; height: 16px; }
.srl-busca input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--srl-texto); font: inherit; font-size: 13.5px; }
.srl-chips-filtro { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 11px; background: var(--srl-trilho); }
.srl-chips-filtro button { padding: 7px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--srl-mudo); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.srl-chips-filtro button em { font-style: normal; opacity: 0.75; }
.srl-chips-filtro button.is-ativo { background: #fff; color: var(--srl-marca); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1); }

.srl-lista { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.srl-q { border: 1px solid var(--srl-borda); border-radius: 11px; background: #fff; overflow: hidden; }
.srl-q-linha {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
html body .srl-camada .srl-q-linha:hover:not(#srl-nada) { background: var(--srl-suave) !important; }
.srl-q-n { display: inline-flex; align-items: center; gap: 6px; }
.srl-q-n svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #fff; }
.srl-q-n em { min-width: 22px; font-style: normal; font-size: 13px; font-weight: 800; color: var(--srl-texto-2); font-variant-numeric: tabular-nums; }
.is-certo .srl-q-n svg { background: var(--srl-certo); }
.is-errado .srl-q-n svg { background: var(--srl-errado); }
.is-branco .srl-q-n svg { background: var(--srl-branco); }
.is-respondida .srl-q-n svg { background: var(--srl-marca); }
.srl-q-meta { min-width: 0; }
.srl-q-meta b { display: block; overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.srl-q-meta small { color: var(--srl-mudo); font-size: 11.5px; font-weight: 600; }
.srl-q-resumo { display: inline-flex; align-items: center; gap: 6px; color: var(--srl-mudo); font-size: 12.5px; white-space: nowrap; }
.srl-q-resumo b { color: var(--srl-texto); }
.srl-q-tem-nota svg { width: 15px; height: 15px; color: #b88a00; }
.srl-q-seta svg { width: 16px; height: 16px; color: #98a2b3; transition: transform 150ms ease; }
.srl-q.is-aberta .srl-q-seta svg { transform: rotate(90deg); }
.srl-q-corpo { padding: 4px 16px 16px 50px; border-top: 1px solid var(--srl-trilho); font-size: 14px; line-height: 1.6; color: var(--srl-texto-2); }
.srl-q-enunciado { white-space: pre-line; text-align: justify; hyphens: auto; }
.srl-q-corpo img { display: block; max-width: 100%; max-height: 320px; margin: 8px 0; border-radius: 8px; }
.srl-q-alts { display: grid; gap: 4px; margin: 10px 0; padding: 0; list-style: none; }
.srl-q-alts li { padding: 6px 10px; border-radius: 8px; background: var(--srl-suave); }
.srl-q-alts li.is-certa { background: var(--srl-certo-fundo); color: #054f31; font-weight: 600; }
.srl-q-alts li.is-errada { background: var(--srl-errado-fundo); color: #912018; text-decoration: line-through; text-decoration-color: rgba(145, 32, 24, 0.4); }
.srl-q-alts li.is-marcada { background: var(--srl-marca-suave); color: var(--srl-marca); font-weight: 600; }
.srl-q-chave { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--srl-marca); border-radius: 0 8px 8px 0; background: var(--srl-marca-suave); color: var(--srl-texto); }
.srl-q-coment { margin: 10px 0 0; text-align: justify; }
.srl-q-coment b, .srl-q-chave b { color: var(--srl-texto); }
.srl-q-nota { display: flex; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border: 1px solid #f0d77a; border-radius: 10px; background: #fff6c9; color: #4a3a06; white-space: pre-wrap; }
.srl-q-nota svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; }

/* ---- incentivo da metade ---- */
.srl-meio {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1300;
  width: min(560px, calc(100vw - 24px));
  transform: translateX(-50%);
  animation: srl-sobe 420ms cubic-bezier(0.22, 1.4, 0.36, 1);
}
.srl-meio.is-saindo { animation: srl-desce 260ms ease forwards; }
.srl-meio-cartao {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas: "foto texto" "foto botao";
  gap: 4px 16px;
  align-items: center;
  padding: 18px 44px 16px 18px;
  overflow: hidden;
  border: 1px solid #b2c7e3;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #eef4fb 100%);
  box-shadow: 0 24px 48px -18px rgba(16, 56, 104, 0.5);
}
.srl-meio-retrato { position: relative; grid-area: foto; width: 72px; height: 72px; }
.srl-meio-retrato svg { position: absolute; inset: 0; width: 72px; height: 72px; transform: rotate(-90deg); }
.srl-meio-retrato .srl-anel-fundo { fill: none; stroke: #dbe6f3; stroke-width: 4; }
.srl-meio-retrato .srl-anel { fill: none; stroke: #12a150; stroke-width: 4; stroke-linecap: round; animation: srl-anel 900ms ease; }
.srl-meio-retrato .srl-logo { position: absolute; top: 8px; left: 8px; width: 56px; height: 56px; border-radius: 50%; box-shadow: none; object-fit: cover; }
.srl-meio-texto { grid-area: texto; }
.srl-meio-texto b { display: block; color: #103868; font-size: 17px; font-weight: 800; }
.srl-meio-texto p { margin: 3px 0 2px; color: #344054; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.srl-meio-texto small { color: #667085; font-size: 11.5px; font-weight: 600; }
.srl-meio-ok {
  grid-area: botao;
  justify-self: start;
  margin-top: 6px;
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  background: #103868;
  color: #fff;
  font: 700 12.5px/1 Inter, "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
}
html body .srl-meio .srl-meio-ok:hover:not(#srl-nada) { background: #0b2f59 !important; color: #fff !important; }
.srl-meio-x { position: absolute; top: 10px; right: 10px; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: #667085; cursor: pointer; }
.srl-meio-x svg { width: 15px; height: 15px; }
.srl-meio-confete { position: absolute; inset: 0; pointer-events: none; }
.srl-meio-confete i { position: absolute; top: -10px; width: 7px; height: 11px; border-radius: 2px; opacity: 0; animation: srl-confete 1600ms ease-out forwards; }
.srl-meio-confete i:nth-child(3n) { background: #12a150; }
.srl-meio-confete i:nth-child(3n+1) { background: #103868; }
.srl-meio-confete i:nth-child(3n+2) { background: #f2c94c; }
.srl-meio-confete i:nth-child(1) { left: 8%; animation-delay: 0ms; }
.srl-meio-confete i:nth-child(2) { left: 16%; animation-delay: 120ms; }
.srl-meio-confete i:nth-child(3) { left: 24%; animation-delay: 60ms; }
.srl-meio-confete i:nth-child(4) { left: 32%; animation-delay: 200ms; }
.srl-meio-confete i:nth-child(5) { left: 40%; animation-delay: 30ms; }
.srl-meio-confete i:nth-child(6) { left: 48%; animation-delay: 160ms; }
.srl-meio-confete i:nth-child(7) { left: 56%; animation-delay: 90ms; }
.srl-meio-confete i:nth-child(8) { left: 64%; animation-delay: 240ms; }
.srl-meio-confete i:nth-child(9) { left: 72%; animation-delay: 10ms; }
.srl-meio-confete i:nth-child(10) { left: 80%; animation-delay: 140ms; }
.srl-meio-confete i:nth-child(11) { left: 88%; animation-delay: 70ms; }
.srl-meio-confete i:nth-child(12) { left: 94%; animation-delay: 190ms; }
.srl-meio-confete i:nth-child(13) { left: 4%; animation-delay: 260ms; }
@keyframes srl-confete { 0% { opacity: 1; transform: translateY(0) rotate(0deg); } 100% { opacity: 0; transform: translateY(150px) rotate(320deg); } }
@keyframes srl-sobe { from { opacity: 0; transform: translate(-50%, 30px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes srl-desce { to { opacity: 0; transform: translate(-50%, 24px); } }
@keyframes srl-anel { from { stroke-dasharray: 0 182.2; } }
@media (prefers-reduced-motion: reduce) {
  .srl-meio, .srl-meio.is-saindo, .srl-meio-confete i, .srl-meio-retrato .srl-anel { animation: none !important; }
}

/* ---- celular ---- */
@media (max-width: 760px) {
  .srl-pagina { padding: 12px 12px 48px; }
  .srl-cabecalho { padding: 16px; }
  .srl-cabecalho h1 { font-size: 21px; }
  .srl-acoes { width: 100%; }
  .srl-acoes .srl-botao { flex: 1 1 calc(50% - 4px); }
  .srl-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srl-numeros > div:nth-child(3) { border-left: 0; }
  .srl-numeros > div:nth-child(n+3) { border-top: 1px solid var(--srl-trilho); }
  .srl-numeros strong { font-size: 24px; }
  .srl-grade { grid-template-columns: minmax(0, 1fr); }
  .srl-q-linha { grid-template-columns: auto minmax(0, 1fr) 16px; }
  .srl-q-resumo { grid-column: 2; grid-row: 2; }
  .srl-q-seta { grid-row: 1 / span 2; grid-column: 3; }
  .srl-q-corpo { padding-left: 14px; }
  .srl-meio { bottom: 12px; }
  .srl-meio-cartao { grid-template-columns: 56px minmax(0, 1fr); padding: 14px 38px 14px 14px; }
  .srl-meio-retrato, .srl-meio-retrato svg { width: 56px; height: 56px; }
  .srl-meio-retrato .srl-logo { top: 6px; left: 6px; width: 44px; height: 44px; }
}
