/* Marca-texto, notas e flashcards pessoais (16/10/2026). Carregado por último. */
.dest-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 100001; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 600; font-size: .9rem; transition: opacity .4s, transform .4s; }
.dest-toast.sai { opacity: 0; transform: translate(-50%, 8px); }

.dest-pop { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .66); overflow-y: auto; }
.dest-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 18px 14px; box-shadow: var(--shadow); }
.dest-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.dest-card p { margin: 0 0 10px; }
.dest-card textarea, .dest-estudo textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; resize: vertical; }
.dest-card textarea + textarea { margin-top: 10px; }
.dest-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.dest-trecho { color: var(--muted); font-size: .9rem; border-left: 3px solid var(--mg); padding-left: 10px; }
.dest-ajuda { color: var(--muted); font-size: .88rem; }
.dest-erro { color: var(--ko); font-weight: 700; }
.dest-abas { display: flex; gap: 6px; margin: 4px 0 12px; flex-wrap: wrap; }
.dest-abas button { flex: 1 1 auto; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 700; }
.dest-abas button.on { background: var(--mg); border-color: var(--mg); color: #fff; }
.dest-abas.grande { margin: 14px 0; } .dest-abas.grande button { flex: 0 1 auto; min-width: 180px; }
.dest-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 40vh; overflow-y: auto; padding: 2px; }
.dest-chip { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-size: .95rem; min-height: 38px; }
.dest-chip.sel { background: var(--mg); border-color: var(--mg); color: #fff; }
.dest-radios { display: flex; gap: 18px; margin: 8px 0; } .dest-radios label { display: flex; gap: 6px; align-items: center; font-weight: 700; }

.dest-filtros { margin: 8px 0 14px; }
.dest-cores { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.dest-fc { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 700; font-size: .85rem; }
.dest-fc i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); display: inline-block; }
.dest-fc.on { border-color: var(--c); box-shadow: 0 0 0 2px var(--c) inset; }
.dest-linha { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dest-linha input[type=search], .dest-linha select { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); }
.dest-linha input[type=search] { flex: 1 1 220px; min-width: 0; }
.dest-linha select { flex: 0 1 240px; min-width: 0; max-width: 100%; }
.dest-chk { display: flex; gap: 6px; align-items: center; font-weight: 600; }

.dest-grupo { margin: 0 0 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dest-grupo > header { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dest-grupo > header small { display: block; color: var(--muted); font-size: .78rem; } .dest-grupo > header b { display: block; overflow-wrap: anywhere; }
.dest-item, .dest-cart { padding: 12px 14px; border-top: 1px solid var(--line); border-left: 5px solid var(--c, var(--mg)); }
.dest-grupo > header + .dest-item { border-top: 0; }
.dest-texto { margin: 0 0 6px; overflow-wrap: anywhere; } .dest-nota { margin: 0 0 6px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.dest-rod { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.dest-rod small { color: var(--muted); } .dest-rod > span { display: flex; gap: 4px; flex-wrap: wrap; }
.btn.ruim, .btn.ghost.ruim { color: var(--ko); }
.dest-cartoes { display: grid; gap: 10px; }
.dest-cart { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--mg); border-radius: 12px; }
.dest-cfrente { margin-bottom: 6px; overflow-wrap: anywhere; } .dest-cfrente b { color: var(--mg); }
.dest-estudo-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.btn.disabled { opacity: .45; pointer-events: none; }

.dest-estudo { max-width: 720px; margin: 0 auto; }
.dest-prog small { color: var(--muted); } .dest-prog .bar { height: 6px; border-radius: 6px; background: var(--panel-2); margin: 6px 0 16px; overflow: hidden; } .dest-prog .bar i { display: block; height: 100%; background: var(--mg); }
.dest-face { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px 20px; box-shadow: var(--shadow); }
.dest-tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mg); margin-bottom: 10px; }
.dest-fr { font-size: 1.15rem; line-height: 1.6; margin: 0 0 14px; overflow-wrap: anywhere; }
.dest-resp { margin: 12px 0 0; padding: 12px; border-radius: 10px; background: var(--bg-2); overflow-wrap: anywhere; } .dest-resp b, .dest-fr b { color: var(--mg); }
.dest-gab { font-weight: 800; margin: 0; } .dest-gab.ok { color: var(--ok); } .dest-gab.ko { color: var(--ko); }
.dest-face .dest-acts { justify-content: stretch; } .dest-face .dest-acts .btn { flex: 1 1 140px; justify-content: center; min-height: 46px; }
.dest-sair { text-align: center; margin-top: 14px; font-size: .9rem; }

@media (max-width: 560px) {
  .dest-card { padding: 14px 12px 12px; } .dest-abas.grande button { min-width: 0; flex: 1 1 100%; }
  .dest-rod > span .btn { padding: 8px 10px; }
  .dest-face { padding: 16px 14px; }
}

/* barra de marcação (no documento principal, fixa no rodapé) */
.dest-bar { position: fixed; left: 50%; width: max-content; bottom: 16px; transform: translateX(-50%); z-index: 99990; display: none; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 20px); padding: 8px 10px; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; font-size: .86rem; -webkit-user-select: none; user-select: none; }
.dest-bar.on { display: flex; }
.dest-bar small { color: var(--muted); }
.dest-bar button { font: inherit; color: inherit; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 11px; min-height: 38px; }
.dest-bar button:hover { border-color: var(--mg); }
.dest-bar button.cor { display: grid; justify-items: center; gap: 5px; width: auto; height: auto; min-height: 0; padding: 6px 9px 7px; border-radius: 12px; border: 1px solid transparent; background: transparent; }
.dest-bar button.cor .cn { font-size: .66rem; font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap; color: var(--muted); }
.dest-bar button.cor .bol { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(255,255,255,.12); transition: transform .15s; }
.dest-bar button.cor:hover { background: var(--panel-2); border-color: var(--line-2); } .dest-bar button.cor:hover .bol { transform: scale(1.08); } .dest-bar button.cor:hover .cn { color: var(--text); }
.dest-bar button.cor.sel { background: var(--panel-2); border-color: var(--line-2); } .dest-bar button.cor.sel .cn { color: var(--text); } .dest-bar button.cor.sel .bol { border-color: #fff; }
@media (max-width: 420px) { .dest-bar { gap: 4px; padding: 6px 6px; } .dest-bar button.cor { padding: 5px 6px 6px; } .dest-bar button.cor .cn { font-size: .62rem; } .dest-bar button.cor .bol { width: 28px; height: 28px; } .dest-bar > small { flex: 1 1 100%; text-align: center; } }
.dest-bar button.ruim { color: var(--ko); }
.dest-bar i { width: 1px; height: 22px; background: var(--line-2); display: inline-block; }
.dest-toast { bottom: 90px; }

.dest-plano { margin: 10px 0 4px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--mg-line); background: var(--mg-soft); font-size: .92rem; }
.dest-assunto { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.dest-assunto-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* menus recolhiveis (Meus destaques e Revisao de hoje): materia > assunto, titulo na cor do destaque */
.dm-tudo { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.dm-mat { margin: 0 0 14px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.dm-cab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: linear-gradient(90deg, rgba(176,135,247,.22), rgba(176,135,247,.05) 70%); border: 0; border-bottom: 1px solid transparent; color: var(--text); text-align: left; flex-wrap: wrap; }
.dm-cab[aria-expanded="true"] { border-bottom-color: var(--line-2); }
.dm-conc { flex: 0 0 auto; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mg); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--mg-line); background: var(--mg-soft); }
.dm-nome { flex: 1 1 200px; min-width: 0; font-size: 1.08rem; overflow-wrap: anywhere; color: #D8C4FF; text-shadow: 0 0 16px rgba(176,135,247,.45); }
.dm-n { flex: 0 0 auto; font-size: .78rem; font-weight: 700; color: var(--muted); }
.dm-seta { flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid var(--mg); border-bottom: 2px solid var(--mg); transform: rotate(-45deg); transition: transform .2s; margin-left: auto; }
[aria-expanded="true"] > .dm-seta { transform: rotate(45deg); }
.dm-corpo { padding: 12px; display: grid; gap: 12px; } .dm-corpo[hidden], .dg-corpo[hidden] { display: none; }
.dm-mat .dest-grupo { margin: 0; border-radius: 12px; border: 1px solid var(--line); border-left: 5px solid var(--c, var(--mg)); background: var(--panel); }
.dg-cab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--c, #B087F7) 20%, transparent), transparent 75%); border: 0; color: var(--text); text-align: left; }
.dg-barra { display: none; }
.dg-tit { flex: 1 1 auto; min-width: 0; font-size: 1.02rem; font-weight: 800; color: var(--c, var(--mg)); overflow-wrap: anywhere; text-shadow: 0 0 14px color-mix(in srgb, var(--c, #B087F7) 45%, transparent); }
.dg-corpo { border-top: 1px solid var(--line); } .dg-acts { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px 4px; }
.rv-grupo .dm-corpo { gap: 0; padding: 0; } .rv-grupo .rv-item:first-child { border-top: 0; }

/* estudo dos flashcards pessoais no padrao dos flashcards do edital */
.dest-lac { display: inline-block; min-width: 3.2em; text-align: center; color: var(--tema); font-weight: 900; border-bottom: 3px solid var(--tema); text-shadow: 0 0 10px rgba(var(--tema-rgb), .6); letter-spacing: .1em; }
.card-container .text-principal b { color: var(--tema); font-weight: 900; text-shadow: 0 0 12px rgba(var(--tema-rgb), .55); }
/* o negrito dos topicos do verso (Por que, Lei, Exemplo, Pegadinha) usa a cor do proprio titulo, definida em flashcard.css; so a Dica de Ouro usa a cor do tema */
.card-container .dica-ouro-box .text-didatico b { color: var(--tema); font-weight: 900; }
.botoes-container .btn-certo[data-ans="VER"], .botoes-container .btn-certo[data-r="prox"] { width: 100%; }
@media (max-width: 560px) { .dm-cab { padding: 12px; } .dm-nome { flex-basis: 100%; order: 2; } }

.rv-filtro { margin: 0 0 12px; } .rv-flab { font-weight: 700; color: var(--muted); font-size: .85rem; }
.rv-filtro select { flex: 1 1 260px; max-width: 100%; }

/* aviso inicial do marca-texto (uma vez por conta) */
.anuncio-pop { backdrop-filter: blur(6px); }
.anuncio-card { position: relative; width: min(480px, calc(100vw - 28px)); padding: 0 0 22px; overflow: hidden; border: 1px solid rgba(176,135,247,.55); border-radius: 22px; background: radial-gradient(120% 60% at 50% 0%, rgba(176,135,247,.20), transparent 60%), #0d0b14; box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 60px rgba(176,135,247,.18); text-align: center; }
.an-faixa { height: 6px; background: linear-gradient(90deg, #7C5CFF, #B087F7 45%, #FFD60A); }
.an-tag { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-size: .66rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #E7D8FF; padding: 5px 12px; border-radius: 999px; background: rgba(176,135,247,.16); border: 1px solid rgba(176,135,247,.5); white-space: nowrap; }
.an-icone { margin: 52px auto 6px; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(176,135,247,.28), rgba(176,135,247,.04) 70%); box-shadow: 0 0 0 1px rgba(176,135,247,.3) inset; }
.anuncio-card h3 { margin: 8px 22px 4px; font-size: 1.45rem; line-height: 1.2; color: #fff; letter-spacing: -.01em; }
.an-sub { margin: 0 26px 14px; color: #bdb6cf; font-size: .95rem; line-height: 1.5; }
.an-passos { list-style: none; margin: 0 20px; padding: 0; display: grid; gap: 8px; text-align: left; }
.an-passos li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.an-passos li > span { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: .85rem; color: #0d0b14; background: linear-gradient(135deg, #D8C4FF, #B087F7); }
.an-passos b { display: block; color: #fff; font-size: .93rem; } .an-passos small { display: block; color: #a39bb7; font-size: .78rem; margin-top: 1px; line-height: 1.35; }
.an-limites { margin: 12px 24px 0; color: #9d95b2; font-size: .76rem; line-height: 1.45; }
.an-acts { display: flex; flex-direction: column; gap: 8px; margin: 18px 22px 0; }
.an-acts .an-cta { justify-content: center; padding: 13px 16px; font-size: .95rem; border-radius: 14px; text-decoration: none; }
.an-acts .btn.ghost { justify-content: center; color: #a39bb7; }
@media (max-width: 480px) { .an-icone { margin-top: 48px; } .anuncio-card h3 { font-size: 1.25rem; } .an-passos li { padding: 9px 10px; } }

/* matérias com cor própria (destaques e flashcards pessoais) */
.dm-cor > .dm-cab { background: linear-gradient(90deg, color-mix(in srgb, var(--cm, #B087F7) 34%, transparent), color-mix(in srgb, var(--cm, #B087F7) 6%, transparent) 75%); border-left: 5px solid var(--cm, #B087F7); }
.dm-cor > .dm-cab .dm-conc { color: var(--cm, var(--mg)); border-color: color-mix(in srgb, var(--cm, #B087F7) 55%, transparent); background: color-mix(in srgb, var(--cm, #B087F7) 14%, transparent); }
.dm-cor > .dm-cab .dm-nome { color: var(--cm, var(--text)); text-shadow: 0 0 14px color-mix(in srgb, var(--cm, #B087F7) 40%, transparent); }
.dest-grupo .dest-cartoes { display: grid; gap: 8px; padding: 10px; }
.dest-grupo .dest-cart { border-left-color: var(--c, var(--mg)); }
.dc-tag { display: inline-block; margin: 0 6px 4px 0; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); font-size: .72rem; font-weight: 700; }
.dc-tag.hoje { color: var(--c, var(--mg)); border-color: color-mix(in srgb, var(--c, #B087F7) 55%, transparent); background: color-mix(in srgb, var(--c, #B087F7) 14%, transparent); }

/* celular: a faixa "Toque para ver os resultados da pesquisa" do Chrome nasce no rodape ao selecionar texto; a barra de cores sobe para nao ficar coberta */
@media (pointer: coarse) { .dest-bar { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); } .dest-toast { bottom: calc(170px + env(safe-area-inset-bottom, 0px)); } }

/* 19/10/2026: faixa colorida lateral por sombra interna (acompanha o canto arredondado) e sem faixa dupla: o grupo nao desenha a sua faixa
   por cima da faixa de cada destaque; a cor de cada item vale sozinha */
.dest-item { border-left: 0; box-shadow: inset 5px 0 0 var(--c, var(--mg)); }
.dest-cart, .dest-grupo .dest-cart { border-left: 1px solid var(--line); box-shadow: inset 5px 0 0 var(--c, var(--mg)); overflow: hidden; }
.dm-mat .dest-grupo { border-left: 1px solid var(--line); box-shadow: none; overflow: hidden; }
.dm-cor > .dm-cab { border-left: 0; box-shadow: inset 5px 0 0 var(--cm, #B087F7); }
