/* ============================================================
   Tema v3: magenta puxado para o roxo, contraste entre preto,
   cinza escuro e cinza claro, bordas em degradê branco e roxo.
   Carregado depois de app.css e flashcard.css.
   ============================================================ */
:root {
  --mg-hi: #E7A6FF;
  --vio: #7C5CFF;
  --gray-hi: #d9d9e4;
  --edge: rgba(200,62,250,.30);
  --edge-strong: rgba(200,62,250,.60);
  --grad-edge: linear-gradient(135deg, rgba(255,255,255,.28), rgba(200,62,250,.55) 30%, rgba(124,92,255,.22) 60%, rgba(255,255,255,.10) 85%, rgba(200,62,250,.40));
  --grad-line: linear-gradient(90deg, transparent, rgba(200,62,250,.85) 20%, rgba(124,92,255,.7) 55%, rgba(255,255,255,.35) 80%, transparent);
  --glow: 0 0 22px rgba(200,62,250,.38);
  --glow-soft: 0 6px 22px rgba(200,62,250,.22), 0 0 0 1px rgba(200,62,250,.35);
  --lift: inset 0 1px 0 rgba(255,255,255,.07), inset 0 -1px 0 rgba(0,0,0,.6), 0 14px 32px rgba(0,0,0,.6), 0 2px 0 rgba(200,62,250,.14);
}
body { background: radial-gradient(1200px 600px at 100% -10%, rgba(124,92,255,.10), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(200,62,250,.08), transparent 60%), var(--bg); background-attachment: fixed; }
body::before { background: radial-gradient(90% 120% at 50% -30%, rgba(200,62,250,.20), rgba(124,92,255,.07) 45%, transparent 70%); }
::selection { background: rgba(200,62,250,.45); color: #fff; }

/* Bordas em degradê (branco + roxo) com cantos arredondados */
.panel, .sb-concurso, .sb-tabs, .viewer-bar .grow, .cab-concurso, .update-bar {
  border: 1px solid transparent !important;
  background: linear-gradient(180deg, #1d1d27 0%, #15151c 100%) padding-box, var(--grad-edge) border-box !important;
}
.cab-concurso, .viewer-bar .grow { background: linear-gradient(180deg, #2a1838 0%, #1a1424 55%, #15151c 100%) padding-box, var(--grad-edge) border-box !important; }
.sb-tabs { background: linear-gradient(180deg, #0c0c11, #121219) padding-box, var(--grad-edge) border-box !important; }
.panel.kpi { background: linear-gradient(180deg, #241a31 0%, #17171f 100%) padding-box, var(--grad-edge) border-box !important; }
.panel::before { background: linear-gradient(135deg, rgba(200,62,250,.10), transparent 35%, transparent 70%, rgba(124,92,255,.07)); }
.panel-h { background: linear-gradient(180deg, rgba(200,62,250,.16), rgba(124,92,255,.04) 70%, transparent); border-bottom: 0; position: relative; }
.panel-h::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--grad-line); opacity: .8; }
/* Cabecalho de grupo de materias (Conhecimentos Basicos/Especificos, Bloco I/II) em destaque, mesmo padrao forte usado na tela de Desempenho (22/09/2026) */
.grp-materias .panel-h { background: linear-gradient(90deg, rgba(200,62,250,.62), rgba(124,92,255,.34) 55%, rgba(124,92,255,.08)); border-bottom: 1px solid rgba(231,166,255,.4); }
.grp-materias .panel-h::after { display: none; }
.grp-materias .panel-h h2 { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.app > h1.title { background: linear-gradient(180deg, #2c1a3b 0%, #1c1528 45%, #17171f 100%); border-color: rgba(255,255,255,.12); }
.app > h1.title::after { background: linear-gradient(90deg, var(--mg), var(--vio) 40%, rgba(255,255,255,.25) 70%, transparent); box-shadow: 0 0 14px rgba(200,62,250,.55); }
.app > p.subtitle { background: linear-gradient(180deg, #17171f 0%, #0f0f15 100%); border-color: rgba(255,255,255,.12); color: var(--gray-hi); }
h1.title .mg, .brand-name em { background: linear-gradient(90deg, #F6D4FF, var(--mg-hi) 35%, #D46BFF 70%, #A58BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Barra superior e menu lateral com linhas em degradê */
.topbar { background: linear-gradient(180deg, rgba(24,16,34,.96), rgba(8,8,11,.9)); border-bottom: 0; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad-line); }
.sidebar { background: linear-gradient(180deg, #13131a 0%, #0c0c11 60%, #0a0a0e 100%); border-right: 0; }
.sidebar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(200,62,250,.6) 30%, rgba(124,92,255,.35) 70%, transparent); pointer-events: none; }
.sb-brand { position: relative; border-bottom: 0; padding: 18px 16px 14px; }
.sb-brand::after, .sb-foot::before { content: ""; position: absolute; left: 12px; right: 12px; height: 1px; background: var(--grad-line); }
.sb-brand::after { bottom: 0; }
.sb-foot { position: relative; border-top: 0; }
.sb-foot::before { top: 0; }
.brand-name { font-size: 1.05rem; }
img.brand-mark { width: 50px; height: 50px; border: 0; box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 0 0 4px rgba(200,62,250,.45), 0 0 22px rgba(200,62,250,.55), 0 0 40px rgba(124,92,255,.3); animation: brandPulse 4s ease-in-out infinite; }
@keyframes brandPulse { 50% { box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 0 0 4px rgba(124,92,255,.55), 0 0 28px rgba(124,92,255,.55), 0 0 46px rgba(200,62,250,.35); } }

.sb-section { display: flex; align-items: center; gap: 10px; color: var(--gray-hi); opacity: .85; padding: 16px 8px 8px; }
.sb-section::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(200,62,250,.5), rgba(255,255,255,.08) 60%, transparent); }
.sb-tab.active { background: linear-gradient(135deg, var(--mg), var(--vio)); box-shadow: 0 3px 0 var(--mg-3), 0 8px 20px rgba(200,62,250,.35), inset 0 1px 0 rgba(255,255,255,.3); }

/* Concurso no menu: logo grande e legível */
.sb-concurso { padding: 12px; gap: 12px; box-shadow: var(--lift); transition: transform .15s, box-shadow .15s; }
.sb-concurso:hover { box-shadow: var(--lift), var(--glow-soft); transform: translateY(-1px); }
.sb-concurso img { width: auto; height: 46px; max-width: 124px; padding: 6px 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 6px 16px rgba(0,0,0,.5); }
.sc-txt b { font-size: .95rem; }
.sc-txt small { color: var(--gray-hi); opacity: .8; }
.sc-banca { display: inline-block; margin-top: 4px; align-self: flex-start; font-size: .66rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--mg-hi); border: 1px solid rgba(200,62,250,.45); background: rgba(200,62,250,.1); border-radius: 999px; padding: 1px 8px; }

/* Itens do menu: cinzas com contraste e sombra colorida ao selecionar */
.sb-mat { margin: 4px 0; }
.sb-item { background: linear-gradient(180deg, #1a1a22, #14141a); border: 1px solid rgba(255,255,255,.07); flex-wrap: wrap; row-gap: 6px; }
.sb-item:hover { background: linear-gradient(180deg, #22222c, #18181f); border-color: rgba(255,255,255,.18); box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.sb-item.active { background: linear-gradient(90deg, rgba(200,62,250,.26), rgba(124,92,255,.10) 60%, rgba(23,23,31,.9)); border-color: rgba(200,62,250,.55); box-shadow: inset 3px 0 0 var(--mg), 0 0 0 1px rgba(200,62,250,.18), 0 8px 24px rgba(200,62,250,.28); }
.sb-item .cnt { color: var(--gray-hi); opacity: .75; }
.sb-fold { border-color: rgba(255,255,255,.12); background: linear-gradient(180deg, #282833, #1b1b23); }
.sb-mat.open > .sb-item .sb-fold { border-color: rgba(200,62,250,.6); box-shadow: 0 0 12px rgba(200,62,250,.35); }
.sb-mprog { flex-basis: 100%; height: 3px; margin: 0 2px 0 34px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.sb-mprog i { display: block; height: 100%; background: linear-gradient(90deg, var(--mg), var(--vio)); box-shadow: 0 0 8px rgba(200,62,250,.6); }
.sb-tree { border-left: 1px solid rgba(200,62,250,.28); }
.sb-node > .sb-head { border: 1px solid transparent; }
.sb-node > .sb-head:hover { background: #1c1c25; border-color: rgba(255,255,255,.1); }
.sb-node.open > .sb-head { background: linear-gradient(90deg, rgba(200,62,250,.11), transparent 70%); }
.sb-node > .sb-head .num { color: #fff; background: linear-gradient(135deg, rgba(200,62,250,.55), rgba(124,92,255,.4)); border-color: rgba(255,255,255,.18); }
.sb-node > .sb-head .qn { color: var(--mg-hi); border-color: rgba(200,62,250,.45); background: rgba(200,62,250,.08); }
.sb-leaf { color: #c9c9d5; border: 1px solid transparent; }
.sb-leaf:hover { background: #1c1c25; border-color: rgba(255,255,255,.1); color: #fff; }
.sb-leaf.active { background: linear-gradient(90deg, rgba(200,62,250,.24), rgba(124,92,255,.08) 70%, transparent); border-color: rgba(200,62,250,.45); box-shadow: inset 3px 0 0 var(--mg), 0 6px 18px rgba(200,62,250,.25); color: #fff; }
.sb-leaf .dot.done { background: linear-gradient(135deg, var(--mg), var(--vio)); border-color: transparent; }

/* Botões com relevo, degradê e tamanho padrão */
.btn { background: linear-gradient(180deg, #2b2b36, #1e1e27); border-color: rgba(255,255,255,.13); color: var(--text); }
.btn:hover { border-color: rgba(200,62,250,.6); box-shadow: 0 3px 0 rgba(0,0,0,.75), var(--glow-soft); }
.btn.primary { background: linear-gradient(135deg, var(--mg) 0%, #A63BF0 55%, var(--vio) 100%); box-shadow: 0 4px 0 var(--mg-3), 0 10px 24px rgba(200,62,250,.35), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.outline { background: linear-gradient(180deg, rgba(200,62,250,.12), rgba(124,92,255,.04)); border-color: rgba(200,62,250,.55); color: var(--mg-hi); }
.btn.ghost { background: linear-gradient(180deg, #20202a, #17171f); }
.btn.fix { justify-content: center; }
.tbl .acts { flex-wrap: nowrap; justify-content: flex-end; }
.tbl .acts .btn, .tbl .acts .btn-slot { width: 112px; flex: none; justify-content: center; }
.btn-slot { display: inline-block; }
.row .btn.small { min-width: 84px; justify-content: center; }
.top-link, .icon-btn { background: linear-gradient(180deg, #25252f, #1a1a21); border-color: rgba(255,255,255,.13); }
.top-link:hover, .top-link.active, .icon-btn.back:hover { border-color: rgba(200,62,250,.6); color: var(--mg-hi); box-shadow: var(--glow-soft); }

/* Tabelas e listas com faixas de cinza */
.tbl th { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); color: var(--gray-hi); }
.tbl tr:hover td { background: linear-gradient(90deg, rgba(200,62,250,.08), rgba(255,255,255,.02)); }
.tbl .grp td { color: var(--mg-hi); background: linear-gradient(90deg, rgba(200,62,250,.22), rgba(124,92,255,.07) 60%, transparent); border-top: 1px solid rgba(200,62,250,.35); }
.tbl .sub td { color: var(--gray-hi); background: rgba(255,255,255,.035); }
.row:hover { background: linear-gradient(90deg, rgba(200,62,250,.10), rgba(255,255,255,.02) 60%, transparent); box-shadow: inset 3px 0 0 var(--mg); }
.logo-mini { width: 44px; height: 44px; padding: 5px; object-fit: contain; box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 6px 14px rgba(0,0,0,.5); }
.cab-concurso img { width: auto; height: 72px; max-width: 200px; padding: 8px 14px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 0 26px rgba(200,62,250,.35), 0 12px 26px rgba(0,0,0,.55); }
.chip.mg { color: var(--mg-hi); border-color: rgba(200,62,250,.5); background: rgba(200,62,250,.12); }

/* Barras de progresso em degradê animado */
.bar i, .progress i, .bar.big i { background: linear-gradient(90deg, var(--mg-3), var(--mg) 40%, var(--vio) 75%, var(--mg-hi), var(--mg-3)); background-size: 200% 100%; animation: flow 6s linear infinite; }
.bar.big.alt i { background: linear-gradient(90deg, #55556a, #a3a3b5); animation: none; }
@keyframes flow { to { background-position: -200% 0; } }
.kpi b { background: linear-gradient(180deg, #fff, var(--mg-hi) 55%, var(--mg)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 12px rgba(200,62,250,.45)); }
.kpi span { color: var(--gray-hi); opacity: .8; }
.st-dot.done { background: linear-gradient(135deg, var(--mg), var(--vio)); border-color: transparent; }
.frame { border: 1px solid rgba(200,62,250,.45); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.6), 0 0 30px rgba(200,62,250,.18); }
.sw input:checked + i { background: linear-gradient(135deg, var(--mg), var(--vio)); }
.fld input, .fld select, .sb-select { border-color: rgba(255,255,255,.15); background: #0c0c11; }

/* Tela de abertura com o logo */
#splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 26px; background: radial-gradient(60% 50% at 50% 45%, #1c1030 0%, #0a0810 60%, #050507 100%); transition: opacity .5s ease, visibility .5s; }
#splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.sp-ring { position: relative; width: min(46vw, 190px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; isolation: isolate; }
.sp-ring::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; background: conic-gradient(from 0deg, var(--mg), var(--vio), #3DD5FF, #ffffff, var(--mg-hi), var(--mg)); animation: spin 2.4s linear infinite; z-index: -1; }
.sp-ring::after { content: ""; position: absolute; inset: -38px; border-radius: 50%; background: conic-gradient(from 180deg, rgba(200,62,250,.6), rgba(124,92,255,.5), rgba(61,213,255,.35), rgba(200,62,250,.6)); filter: blur(30px); animation: spin 5s linear infinite reverse; z-index: -2; }
.sp-ring img { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #0a0810; object-fit: cover; animation: pop .6s cubic-bezier(.2,1.4,.4,1) both; }
.sp-name { font-weight: 900; font-size: clamp(1.3rem, 5vw, 1.9rem); letter-spacing: .5px; color: #fff; text-shadow: 0 2px 18px rgba(200,62,250,.5); animation: rise .7s .15s ease-out both; }
.sp-name em { font-style: normal; background: linear-gradient(90deg, var(--mg-hi), var(--mg), var(--vio)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sp-ring::before, .sp-ring::after, img.brand-mark, .bar i, .progress i { animation: none; } }

/* Visualizador da apostila no celular e tablet */
@media (max-width: 900px) {
  .viewer-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .viewer-bar .grow { grid-column: 1 / -1; min-width: 0; padding: 12px 14px; }
  .viewer-bar .btn { justify-content: center; width: 100%; padding: 9px 8px; font-size: .8rem; }
  .frame { height: calc(100dvh - 250px); min-height: 420px; border-radius: 12px; }
}
@media (max-width: 600px) {
  .tbl .acts { flex-direction: column; align-items: flex-end; gap: 6px; }
  .tbl .acts .btn, .tbl .acts .btn-slot { width: 100px; }
  .sb-concurso img { height: 40px; }
  .cab-concurso { flex-wrap: wrap; }
  .cab-concurso img { height: 56px; }
}

/* Resumo compacto do concurso (abaixo do cabecalho, acima das materias) */
.cab-concurso { margin-bottom: 12px; }
.sobre-concurso { margin-bottom: 4px; }
.sobre-concurso .panel-h { padding: 10px 16px; flex-wrap: wrap; }
.sobre-concurso .panel-h h2 { font-size: .92rem; }
.sobre-concurso .panel-h .r { gap: 6px; }
.sobre-concurso .panel-b { padding: 10px 16px 14px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-kpis.com-meta { grid-template-columns: repeat(4, 1fr); }
.mini-kpis > div { text-align: center; padding: 8px 6px; border-radius: 10px; background: linear-gradient(180deg, #221a2e, #17171f); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.mini-kpis b { display: block; font-size: 1.15rem; font-weight: 900; line-height: 1.2; background: linear-gradient(180deg, #fff, var(--mg-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-kpis span { font-size: .64rem; letter-spacing: .6px; text-transform: uppercase; font-weight: 800; color: var(--gray-hi); opacity: .75; }
.prog-edital { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.prog-edital .pe-lbl { font-size: .74rem; font-weight: 800; color: var(--gray-hi); white-space: nowrap; }
.prog-edital .bar { flex: 1; height: 10px; }
.prog-edital b { font-size: .85rem; color: var(--mg-hi); min-width: 38px; text-align: right; }
/* texto pequeno explicando a base do progresso do edital (22/09/2026), igual ao da tela de Desempenho */
.pe-nota { display: block; margin-top: 6px; color: var(--muted); font-size: .74rem; }
@media (max-width: 600px) {
  .mini-kpis { grid-template-columns: repeat(2, 1fr); }
  .prog-edital .pe-lbl { display: none; }
}

/* Menu lateral: entrada Concursos (busca) e Meus concursos */
.ic-busca { width: 20px; height: 20px; flex: none; }
.sb-buscar { display: flex; align-items: center; gap: 12px; margin: 10px 0 2px; padding: 12px 14px; border-radius: 12px; color: var(--text); border: 1px solid transparent; background: linear-gradient(135deg, rgba(200,62,250,.20), rgba(124,92,255,.10) 60%, #16161d) padding-box, var(--grad-edge) border-box; box-shadow: var(--lift); transition: transform .15s, box-shadow .15s; }
.sb-buscar .ic-busca { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--mg), var(--vio)); box-shadow: 0 3px 0 var(--mg-3), 0 6px 16px rgba(200,62,250,.4); }
.sbb-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sbb-t b { font-size: .95rem; }
.sbb-t small { color: var(--gray-hi); opacity: .75; font-size: .74rem; }
.sbb-seta { color: var(--mg-hi); font-size: 1.3rem; font-weight: 900; }
.sb-buscar:hover { transform: translateY(-1px); box-shadow: var(--lift), var(--glow-soft); }
.sb-buscar.active { box-shadow: var(--lift), 0 0 0 1px rgba(200,62,250,.6), 0 8px 26px rgba(200,62,250,.35); }
.sb-vazio { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.18); color: var(--gray-hi); font-size: .82rem; background: rgba(255,255,255,.02); }
.sb-concurso { margin-bottom: 6px; opacity: .85; }
.sb-concurso.on { opacity: 1; box-shadow: var(--lift), 0 0 0 1px rgba(200,62,250,.5), 0 8px 24px rgba(200,62,250,.28); }

/* Tela Buscar concursos */
.busca { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 16px; margin-bottom: 18px; border-radius: 14px; border: 1px solid transparent; background: linear-gradient(180deg, #121219, #0c0c11) padding-box, var(--grad-edge) border-box; box-shadow: inset 0 2px 8px rgba(0,0,0,.6), 0 10px 28px rgba(0,0,0,.45); }
.busca:focus-within { box-shadow: inset 0 2px 8px rgba(0,0,0,.6), 0 0 0 1px rgba(200,62,250,.6), 0 0 28px rgba(200,62,250,.3); }
.busca .ic-busca { color: var(--mg-hi); width: 22px; height: 22px; }
.busca input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 1.02rem; }
.busca input::placeholder { color: #7d7d8e; }
.busca-n { flex: none; font-size: .74rem; font-weight: 800; color: var(--mg-hi); border: 1px solid rgba(200,62,250,.4); border-radius: 999px; padding: 2px 10px; background: rgba(200,62,250,.08); }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid transparent; background: linear-gradient(180deg, #1d1d27, #14141b) padding-box, var(--grad-edge) border-box; box-shadow: var(--lift); transition: transform .2s, box-shadow .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--lift), var(--glow-soft); }
.cat-card.on { box-shadow: var(--lift), 0 0 0 1px rgba(200,62,250,.55), 0 10px 30px rgba(200,62,250,.28); }
.cat-logo { position: relative; display: grid; place-items: center; height: 132px; background: radial-gradient(80% 90% at 50% 30%, #ffffff, #eceaf2); border-bottom: 1px solid rgba(200,62,250,.35); }
.cat-logo img { max-width: 88%; max-height: 100px; object-fit: contain; }
.cat-logo > b { color: #1f1f2a; font-size: 1.6rem; }
.cat-selo { position: absolute; top: 10px; right: 10px; font-size: .66rem; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: #fff; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--mg), var(--vio)); box-shadow: 0 4px 12px rgba(200,62,250,.45); }
.cat-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 6px; flex: 1; }
.cat-body > b { font-size: 1.15rem; }
.cat-body > span { color: var(--gray-hi); font-weight: 600; }
.cat-body > small { color: var(--muted); font-size: .76rem; margin-top: 4px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cat-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 16px; }
.cat-acts .btn { width: 100%; justify-content: center; }

/* Início sem concursos e aviso para adicionar */
.vazio-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 20px 30px; color: var(--gray-hi); }
.vazio-cta .ic-busca { width: 54px; height: 54px; padding: 12px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--mg), var(--vio)); box-shadow: 0 4px 0 var(--mg-3), 0 10px 26px rgba(200,62,250,.4); }
.vazio-cta b { color: var(--text); font-size: 1.1rem; }
.vazio-cta span { max-width: 460px; font-size: .9rem; }
.aviso-add { margin-bottom: 12px; }
.aviso-add .panel-b { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; padding: 14px 16px; }
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
  .busca input { font-size: .95rem; }
  .aviso-add .btn { width: 100%; justify-content: center; }
}

/* Texto em degrade sem sombra escurecendo */
h1.title .mg { text-shadow: none; filter: drop-shadow(0 2px 10px rgba(200,62,250,.5)); }

/* Presente de acesso total (aviso uma vez por conta) */
.pres-card { text-align: center; max-width: 420px; padding: 26px 22px 22px; }
.pres-caixa { display: flex; justify-content: center; margin-bottom: 6px; animation: presPula 1.1s ease-out both; filter: drop-shadow(0 8px 22px rgba(200,62,250,.55)); }
.pres-card h3 { margin: 6px 0 10px; font-size: 1.45rem; background: linear-gradient(90deg, #fff, var(--mg-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pres-card p { margin: 0 0 10px; line-height: 1.5; }
.pres-card .pres-sub { color: var(--mg-hi); font-weight: 700; }
.pres-card .rep-acts { justify-content: center; margin-top: 14px; }
.pres-card .btn { min-width: 220px; }
@keyframes presPula { 0% { transform: scale(.2) rotate(-14deg); opacity: 0; } 55% { transform: scale(1.18) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .pres-caixa { animation: none; } }

/* Instalar o app (Android e iPhone) */
.inst-card { max-width: 460px; }
.inst-abas { display: flex; gap: 6px; margin: 4px 0 12px; }
.inst-abas button { flex: 1; padding: 9px 8px; border-radius: 10px; border: 1px solid var(--edge); background: rgba(255,255,255,.04); color: inherit; font-weight: 700; cursor: pointer; }
.inst-abas button.on { background: linear-gradient(90deg, var(--mg), var(--vio)); border-color: transparent; color: #fff; }
.inst-passos { margin: 6px 0 4px; padding-left: 22px; line-height: 1.55; }
.inst-passos li { margin-bottom: 8px; }
.inst-aviso { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(250,204,21,.5); background: rgba(250,204,21,.08); font-size: .92rem; line-height: 1.45; }
.inst-rapido { margin: 0 0 12px; }
.inst-rapido .btn { width: 100%; }

/* Aviso de erro reportado e corrigido (uma vez por reporte) */
.corr-card { text-align: center; max-width: 440px; padding: 24px 20px 20px; }
.corr-ic { display: flex; justify-content: center; margin-bottom: 6px; filter: drop-shadow(0 6px 18px rgba(18,163,106,.55)); animation: presPula .9s ease-out both; }
.corr-card h3 { margin: 6px 0 10px; font-size: 1.3rem; line-height: 1.25; background: linear-gradient(90deg, #fff, var(--mg-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.corr-card p { margin: 0 0 10px; line-height: 1.5; }
.corr-lista { list-style: none; margin: 8px 0 4px; padding: 0; text-align: left; display: grid; gap: 8px; max-height: 38vh; overflow: auto; }
.corr-lista li { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(124,92,255,.4); background: rgba(124,92,255,.08); line-height: 1.4; overflow-wrap: anywhere; }
.corr-lista small { color: var(--mg-hi); }
.corr-sub, .corr-nota { display: block; margin-top: 4px; font-size: .9rem; }
.corr-sub { color: #cfc6e6; }
.corr-nota { color: #7ff0bf; font-weight: 600; }
.corr-card .rep-acts { justify-content: center; margin-top: 14px; }
.corr-card .btn { min-width: 200px; }

/* Lista de assuntos: os titulos que agrupam subtopicos ganham fundo em degrade mais forte, por nivel; subtopicos comuns ficam neutros */
.tbl.materia .grp td { color: #fff; font-size: .92rem; font-weight: 800; background: linear-gradient(90deg, rgba(200,62,250,.62), rgba(124,92,255,.34) 55%, rgba(124,92,255,.08)); border-top: 1px solid rgba(231,166,255,.55); border-left: 4px solid var(--mg); text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.tbl.materia .sub.cab.d1 td { color: #fff; font-weight: 800; background: linear-gradient(90deg, rgba(124,92,255,.5), rgba(124,92,255,.2) 55%, rgba(124,92,255,.04)); border-top: 1px solid rgba(124,92,255,.5); border-left: 3px solid var(--vio); }
.tbl.materia .sub.cab.d2 td, .tbl.materia .sub.cab.d3 td { color: var(--mg-hi); font-weight: 700; background: linear-gradient(90deg, rgba(124,92,255,.3), rgba(124,92,255,.1) 55%, transparent); border-left: 2px solid rgba(124,92,255,.7); }
.tbl.materia .sub:not(.cab) td { background: rgba(255,255,255,.03); }

/* Lista de assuntos recolhivel */
.tbl tr.oculto { display: none; }
.tbl.materia tr.tg { cursor: pointer; user-select: none; }
.tbl.materia tr.tg:focus-visible td { outline: 2px solid var(--mg-hi); outline-offset: -2px; }
.tg-ic { display: inline-block; width: 1.1em; margin-right: 2px; transition: transform .15s ease; }
.tg-ic::before { content: "\25B8"; }
.tbl.materia tr.tg.aberto .tg-ic { transform: rotate(90deg); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tg-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* logo do TJGO maior (25/09/2026, pedido do usuario) */
.cat-logo img[src*="tjgo"] { max-width: 80%; max-height: 108px; width: auto; height: auto; padding: 6px 0; box-sizing: border-box; }
