/* ================= Estudo ACE – visual ================= */
:root {
  --bg: #f3f6f5; --card: #ffffff; --text: #17201f; --muted: #5f6b6a; --line: #e2e8e6; --soft: #eef3f2;
  --accent: #0d9488; --accent-2: #0f766e; --accent-soft: #e3f4f1; --on-accent: #ffffff;
  --ok: #15803d; --ok-soft: #e4f5e9; --bad: #c2410c; --bad-soft: #fdece3; --mid: #b45309; --mid-soft: #fdf3dd;
  --shadow: 0 1px 2px rgba(16, 40, 36, .05), 0 4px 14px rgba(16, 40, 36, .06);
  --r: 16px; --tabh: 64px;
  --hero: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1413; --card: #161e1d; --text: #e8efed; --muted: #9aa9a6; --line: #26302e; --soft: #1c2625;
    --accent: #2dd4bf; --accent-2: #5eead4; --accent-soft: #123330; --on-accent: #042f2b;
    --ok: #4ade80; --ok-soft: #12291b; --bad: #fb923c; --bad-soft: #33200f; --mid: #fbbf24; --mid-soft: #2f2611;
    --shadow: none;
    --hero: linear-gradient(135deg, #0b4f49 0%, #0f766e 60%, #0d9488 100%);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
a { color: var(--accent); }
.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1 { font-size: 26px; line-height: 1.2; margin: 6px 0 6px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 28px 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }

/* ---------- Cabeçalho e abas ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 10px 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-size: 18px; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); font-size: 19px; }
.tabbar { display: flex; gap: 4px; margin: 0 auto; }
.tabbar a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.tabbar a:hover { background: var(--soft); color: var(--text); }
.tabbar a.on { background: var(--accent-soft); color: var(--accent); }
.tabbar .ic { font-size: 17px; }
#who { margin-left: auto; }
.tabbar:not(:empty) + #who { margin-left: 0; }
.who { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 600; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.avatar.big { width: 64px; height: 64px; font-size: 24px; }
.avatar.plus { background: var(--soft); color: var(--accent); border: 2px dashed var(--accent); font-size: 30px; }

main { max-width: 760px; margin: 0 auto; padding: 18px 18px 48px; }

@media (max-width: 760px) {
  .top { padding: 8px 14px; min-height: 54px; backdrop-filter: none; background: var(--card); }
  .brand { font-size: 17px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; gap: 0; justify-content: space-around;
    background: var(--card); border-top: 1px solid var(--line); height: calc(var(--tabh) + env(safe-area-inset-bottom)); padding: 4px 4px env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0,0,0,.05); }
  .tabbar:empty { display: none; }
  .tabbar a { flex: 1; flex-direction: column; gap: 0; padding: 6px 2px; font-size: 11.5px; border-radius: 12px; justify-content: center; }
  .tabbar a.on { background: transparent; }
  .tabbar a.on .ic { background: var(--accent-soft); }
  .tabbar .ic { font-size: 20px; line-height: 1; padding: 4px 16px; border-radius: 99px; margin-bottom: 2px; }
  #who { margin-left: auto !important; }
  body.has-tabs main { padding-bottom: calc(var(--tabh) + 36px + env(safe-area-inset-bottom)); }
  h1 { font-size: 23px; }
}

/* ---------- Básicos ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card.tight { padding: 4px 6px; }
.card.note { background: var(--mid-soft); border-color: transparent; box-shadow: none; }
.card .label { padding: 10px 12px 0; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; font-weight: 700; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.narrow { max-width: 420px; margin: 16px auto 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 10px 16px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; transition: transform .08s, filter .15s, border-color .15s; }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.big { font-size: 17px; padding: 14px 22px; min-height: 52px; }
.btn.block { display: flex; width: 100%; }
.btn small { font-weight: 500; opacity: .85; }
.btn.sm { padding: 6px 12px; font-size: 14px; min-height: 36px; border-radius: 10px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.white { background: #fff; color: #0f766e; border-color: #fff; }
.btn.ghost-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
label { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
textarea { width: 100%; resize: vertical; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.mid { background: var(--mid-soft); color: var(--mid); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.na { background: var(--soft); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.chip[style*="--c"] { background: color-mix(in srgb, var(--c) 14%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--text)); }
.bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; flex: none; }
.dot.big { width: 14px; height: 14px; margin: 0; }
.big { font-size: 32px; font-weight: 700; line-height: 1.1; }
.back { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; margin-bottom: 4px; padding: 6px 0; }
.empty { text-align: center; padding: 32px 18px; }
.emoji { font-size: 40px; }

/* Linhas de lista tocáveis */
.li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--text); min-height: 56px; }
.li + .li { border-top: 1px solid var(--line); border-radius: 0; }
a.li:hover { background: var(--soft); border-radius: 12px; }
.li-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--soft); display: grid; place-items: center; font-size: 19px; flex: none; }
.li-ic:empty { display: none; }
.li-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.li-tx b { font-weight: 600; line-height: 1.35; }
.li-tx small { color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.li-r { color: var(--muted); font-size: 22px; flex: none; }
.li-r .pill { font-size: 12px; }
.more { display: block; padding: 10px 12px 12px; font-weight: 600; text-decoration: none; font-size: 14.5px; }

/* ---------- Tela inicial (quem vai estudar) ---------- */
.hero-home { text-align: center; padding: 18px 8px 4px; }
.hero-home .emoji { width: 72px; height: 72px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 22px; background: var(--accent-soft); }
.hero-home h1 { font-size: 30px; margin-bottom: 4px; }
.hero-home p { color: var(--muted); max-width: 440px; margin: 0 auto 12px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--text); font: inherit; cursor: pointer; transition: transform .1s, border-color .15s; }
.person:hover { border-color: var(--accent); transform: translateY(-2px); }
.person b { font-size: 17px; }
.person small { color: var(--muted); font-size: 13px; }
.person.add { background: transparent; border-style: dashed; box-shadow: none; }

/* ---------- Hoje ---------- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hello h1 { margin: 0; }
.countdown { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; box-shadow: var(--shadow); }
.countdown b { font-size: 26px; color: var(--accent); line-height: 1; }
.countdown span { font-size: 12px; color: var(--muted); line-height: 1.2; }
.hero { background: var(--hero); color: #fff; border-radius: 20px; padding: 22px 22px 24px; box-shadow: 0 10px 30px rgba(13, 148, 136, .25); margin-bottom: 12px; }
.hero h2 { margin: 4px 0 6px; font-size: 23px; line-height: 1.25; }
.hero p { margin: 0 0 16px; opacity: .92; }
.hero-tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 99px; }
.hero-kind { margin-top: 12px; font-weight: 600; opacity: .95; }
.progress.light { background: rgba(255,255,255,.25); margin-bottom: 4px; }
.progress.light > i { background: #fff; }
.welcome { position: relative; border-color: var(--accent); background: var(--accent-soft); box-shadow: none; margin-bottom: 12px; }
.welcome .x { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: var(--muted); font-size: 16px; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
.steps { margin: 6px 0 12px; padding-left: 22px; }
.steps li { margin-bottom: 6px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .1s, border-color .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile span { font-size: 24px; margin-bottom: 4px; }
.tile b { font-size: 15px; }
.tile small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr 1fr; } }
.score { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--text); }
.score p { margin: 2px 0 4px; }
.ring { --p: 0; --c: var(--accent); width: 92px; height: 92px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--soft) 0); }
.ring span { width: 72px; height: 72px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.sbars { display: grid; gap: 12px; }
.sbar { display: grid; grid-template-columns: minmax(0, 1fr) 30% 44px; gap: 10px; align-items: center; font-size: 14.5px; }
.sname { display: flex; align-items: center; min-width: 0; }
.spct { text-align: right; font-weight: 700; font-size: 14px; }
.subj { display: grid; grid-template-columns: 1fr 90px 46px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- Estudar ---------- */
.subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.subjcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: var(--text); box-shadow: var(--shadow); overflow: hidden; transition: transform .1s, border-color .15s; }
.subjcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.subjcard:hover { transform: translateY(-2px); border-color: var(--c); }
.subjcard b { font-size: 17px; }
.subjcard small { color: var(--muted); }
.subjfoot { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.topic-head { margin: 4px 0 16px; }
.topic-head h1 { margin-top: 10px; }
.sec h2 { margin-top: 26px; }
.prose { font-size: 16.5px; line-height: 1.7; }
.helpgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.helpbtn { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 16px 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.helpbtn:hover { border-color: var(--accent); }
.helpbtn span { font-size: 26px; }
.helpbtn small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 420px) { .helpgrid { gap: 8px; } .helpbtn { padding: 14px 6px; } .helpbtn b { font-size: 14px; } }
.howto > div { display: flex; gap: 14px; align-items: flex-start; }
.howto > div + div { margin-top: 14px; }
.howto span { font-size: 24px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--soft); border-radius: 12px; flex: none; }
.howto p { margin: 0; }

/* ---------- Questões ---------- */
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.qtext { font-size: 17.5px; line-height: 1.6; white-space: normal; }
.texto { background: var(--soft); border-left: 3px solid var(--accent); padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 15.5px; }
.opts { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.opt { text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 14px; font: inherit; font-size: 16px; cursor: pointer; transition: border-color .12s, background .12s; }
.opt:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.opt b { min-width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); font-size: 14px; flex: none; }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.right b { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong b { background: var(--bad); color: #fff; }
.opt:disabled { cursor: default; }
.exp { padding: 14px 16px; border-radius: 14px; background: var(--soft); line-height: 1.6; }
.progress { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.players { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.players .card { padding: 10px 12px; margin: 0; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
#nx { min-width: 160px; }
@media (max-width: 760px) {
  #after .row:last-child { position: sticky; bottom: calc(var(--tabh) + 10px + env(safe-area-inset-bottom)); z-index: 5; }
  #after .row:last-child .btn { flex: 1; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
}

/* ---------- Plano ---------- */
.day { margin: 18px 0; }
.day-h { font-weight: 700; margin: 0 0 6px 4px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.day.today .day-h { color: var(--accent); }
.block { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.block .h { color: var(--muted); font-size: 13px; min-width: 46px; padding-top: 2px; }
details > summary { cursor: pointer; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
details.topic { border-bottom: 1px solid var(--line); padding: 10px 0; }
details.topic summary { list-style: none; display: flex; gap: 10px; justify-content: space-between; align-items: center; }
details.topic .sum { margin: 10px 0; font-size: 15px; }
.toast { position: fixed; bottom: calc(var(--tabh) + 24px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14.5px; z-index: 50; box-shadow: var(--shadow); }
@media (max-width: 560px) { .hide-sm { display: none; } .subj { grid-template-columns: 1fr 60px 40px; } }

/* ---------- Ajuda / dúvidas ---------- */
.faq { display: grid; gap: 8px; }
.faq > .small { display: none; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.faq summary { font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details > div { margin-top: 8px; line-height: 1.6; color: var(--text); }
.helpq { margin-top: 14px; }
.helpq > summary { font-weight: 600; color: var(--accent); padding: 6px 0; }
.helpq .faq { margin-top: 10px; }
.doubt.done { opacity: .7; }
.doubt + .doubt { margin-top: 12px; }

/* ---------- Leitor de leis ---------- */
.lawcard { text-decoration: none; color: inherit; display: grid; gap: 4px; }
.lawbar { position: sticky; top: 62px; z-index: 10; padding: 12px; }
.lawbar input, .lawbar select { min-height: 40px; padding: 8px 10px; }
@media (max-width: 760px) { .lawbar { top: 56px; } }
.lawtext { line-height: 1.7; }
.lawtext p { margin: 0 0 8px; }
.lawtext .la { margin-top: 16px; }
.lawtext .lp { padding-left: 14px; }
.lawtext .lh { margin: 24px 0 8px; font-size: 1em; text-align: center; color: var(--accent); letter-spacing: .02em; }
.lawtext .lpre { overflow-x: auto; font-size: .78em; background: var(--soft); border-radius: 10px; padding: 10px; white-space: pre; }
.lawtext .rev { display: none; }
.lawtext.showrev .rev { display: block; text-decoration: line-through; color: var(--muted); opacity: .75; }
.lawtext .lnote { font-size: .82em; color: var(--muted); }
.lawtext mark { background: #fde68a; color: #111; border-radius: 3px; }
.lawtext .flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }
.lawtext > * { scroll-margin-top: 200px; }
.lawtext .lappnote { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: .92em; }
.srcbox ul { margin: 6px 0; padding-left: 18px; }
.srcbox li { margin-bottom: 6px; }

/* ---------- Resumo com artigos ---------- */
.resumo { margin: 12px 0 0; display: grid; gap: 8px; }
.resumo > .small { margin-top: 2px; }
.rsec { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.rsec > summary { list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.rsec > summary::after { content: "›"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .15s; }
.rsec[open] > summary::after { transform: rotate(90deg); }
.rsec > summary::-webkit-details-marker { display: none; }
.rsec ul { margin: 10px 0; padding-left: 18px; line-height: 1.6; }
.rsec li { margin-bottom: 8px; }
.artlink { white-space: nowrap; font-size: .85em; font-weight: 700; text-decoration: none; background: var(--accent-soft); padding: 1px 7px; border-radius: 6px; }
.lawmore { margin-top: 8px; }
.lawmore > summary { color: var(--accent); font-weight: 600; }
button.helpbtn { font: inherit; cursor: pointer; }

/* Aviso de programa fechado */
#offline { display: none; }
body.offline #offline:not(:empty) { display: block; position: sticky; top: 60px; z-index: 25; background: var(--mid-soft); color: var(--text);
  border-bottom: 1px solid var(--mid); padding: 10px 18px; font-size: 14.5px; line-height: 1.45; text-align: center; }
@media (max-width: 760px) { body.offline #offline:not(:empty) { top: 54px; } }

/* Escolha do concurso */
.person small.ctag { color: var(--text); background: var(--soft); border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.concs { display: grid; gap: 10px; }
.conc { display: flex; flex-direction: row; gap: 12px; font-weight: 400; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--card); }
.conc:hover { border-color: var(--accent); }
.conc:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.conc input { margin-top: 4px; min-height: 0; accent-color: var(--accent); }
.conc-ic { font-size: 26px; line-height: 1; }
.conc-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.conc-tx small { color: var(--muted); }
.conc-tx .row { gap: 6px; flex-wrap: wrap; }

/* Provas anteriores: caderno + folha de respostas */
.provawrap { display: grid; gap: 14px; margin-top: 12px; }
.provapdf { display: none; width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
@media (min-width: 900px) { .provawrap { grid-template-columns: 1fr 340px; align-items: start; } .provapdf { display: block; } .folha { position: sticky; top: 76px; max-height: 80vh; overflow: auto; } }
.fsec { margin: 10px 0; }
.fsec-h { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.frow { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.frow > b { width: 26px; font-variant-numeric: tabular-nums; font-size: 14px; }
.fb { width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font-weight: 700; cursor: pointer; }
.fb:hover { border-color: var(--accent); }
.fb.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.corrgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.cq { border-radius: 8px; padding: 6px 8px; font-size: 13px; display: flex; gap: 6px; align-items: baseline; background: var(--soft); }
.cq.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); }
.cq.bad { background: color-mix(in srgb, var(--bad) 18%, transparent); }
.cq.an { background: color-mix(in srgb, var(--mid) 18%, transparent); }
