/* STUDY — módulo de estudos (Central de IA) */
.study-nav{ display:flex; gap:6px; flex-wrap:wrap; margin:18px 0 22px; }
.study-nav a{ padding:9px 14px; border-radius:11px; border:1px solid var(--card-border); background:var(--card);
  color:var(--muted); text-decoration:none; font-size:13px; font-weight:700; }
.study-nav a:hover{ color:var(--text); }
.study-nav a.sel{ background:linear-gradient(135deg,#7c5cff,#9a6bff); color:#fff; border-color:transparent; }

.st-head{ display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:18px; flex-wrap:wrap; }
.st-bread{ font-size:10.5px; letter-spacing:.5px; text-transform:uppercase; color:var(--subtle); font-weight:800; }
.st-bread a{ color:var(--muted); text-decoration:none; }
.st-bread i{ font-style:normal; opacity:.6; margin:0 4px; }
.st-head h1{ font-size:22px; margin:6px 0 4px; }
.st-head p{ font-size:13px; color:var(--muted); margin:0; }
.st-count{ background:var(--card); border:1px solid var(--card-border); border-radius:16px; padding:12px 18px; text-align:center; min-width:130px; }
.st-count small{ display:block; font-size:10px; letter-spacing:.6px; color:var(--subtle); font-weight:800; }
.st-count b{ display:block; font-size:34px; line-height:1.1; color:var(--brand); }
.st-count span{ font-size:11px; color:var(--muted); }

.st-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
.st-card{ background:var(--card); border:1px solid var(--card-border); border-radius:16px; padding:14px 16px; }
.st-card small{ font-size:10px; letter-spacing:.5px; color:var(--subtle); font-weight:800; }
.st-card b{ display:block; font-size:26px; margin:4px 0 2px; }
.st-card span{ font-size:11.5px; color:var(--muted); }
.st-card.destaque{ grid-column:span 1; }
.st-bar{ height:8px; border-radius:99px; background:var(--field); overflow:hidden; margin:8px 0 4px; }
.st-bar i{ display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#7c5cff,#5b6cff); }

.st-cols{ display:grid; grid-template-columns:1.4fr 1fr; gap:18px; align-items:start; }
.st-dlist{ display:flex; flex-direction:column; gap:12px; }
.st-ditem small{ font-size:11px; color:var(--subtle); }
.st-dtop{ display:flex; align-items:center; gap:8px; }
.st-dname{ font-size:13.5px; font-weight:700; flex:1; }
.st-dpeso{ font-size:10.5px; color:var(--muted); background:var(--field); border-radius:99px; padding:2px 7px; }
.st-dpct{ font-size:12px; font-weight:800; color:var(--brand); }

.st-prox{ display:flex; flex-direction:column; gap:6px; }
.st-prox-item{ display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:11px; text-decoration:none;
  color:inherit; border:1px solid transparent; }
.st-prox-item:hover{ background:var(--field); border-color:var(--card-border); }
.st-prio{ font-size:10px; font-weight:900; border-radius:7px; padding:3px 6px; background:var(--field); color:var(--muted); }
.st-prio.p1{ background:rgba(239,68,68,.14); color:#dc2626; }
.st-prio.p2{ background:rgba(245,158,11,.16); color:#b45309; }
.st-prox-txt{ flex:1; min-width:0; }
.st-prox-txt b{ display:block; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.st-prox-txt small{ font-size:11px; color:var(--subtle); }
.st-seta{ color:var(--subtle); font-size:14px; }

/* edital verticalizado */
.st-legend{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.st-chip{ font-size:10.5px; text-transform:capitalize; border-radius:99px; padding:4px 9px; border:1px solid var(--card-border);
  background:var(--field); color:var(--muted); cursor:pointer; font-family:inherit; font-weight:700; }
.st-chip.atual{ outline:2px solid var(--brand); }
.st-nao_iniciado{ color:#6b7280; }
.st-estudando{ background:rgba(59,130,246,.14); color:#2563eb; border-color:rgba(59,130,246,.3); }
.st-estudado{ background:rgba(34,197,94,.14); color:#15803d; border-color:rgba(34,197,94,.3); }
.st-revisando{ background:rgba(245,158,11,.16); color:#b45309; border-color:rgba(245,158,11,.3); }
.st-dominado{ background:rgba(124,92,255,.14); color:#6d4bff; border-color:rgba(124,92,255,.3); }

.st-arvore{ padding:10px 16px; }
.st-disc{ border-bottom:1px solid var(--card-border); padding:10px 0; }
.st-disc:last-child{ border-bottom:none; }
.st-disc summary{ display:flex; align-items:center; gap:10px; cursor:pointer; list-style:none; }
.st-disc summary::-webkit-details-marker{ display:none; }
.st-disc summary::before{ content:"▸"; color:var(--subtle); font-size:11px; transition:transform .15s; }
.st-disc[open] summary::before{ transform:rotate(90deg); }
.st-disc-nome{ font-size:14.5px; font-weight:800; flex:1; }
.st-disc-bar{ width:120px; height:7px; border-radius:99px; background:var(--field); overflow:hidden; }
.st-disc-bar i{ display:block; height:100%; background:linear-gradient(90deg,#7c5cff,#5b6cff); }
.st-disc-body{ padding:6px 0 4px 12px; }
.st-obs{ font-size:11.5px; background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.3); color:#92400e;
  padding:8px 11px; border-radius:10px; margin:8px 0; }

.st-no{ font-size:13px; }
.st-linha{ display:flex; align-items:center; gap:7px; padding:4px 6px; border-radius:8px; }
.st-linha:hover{ background:var(--field); }
.st-seta{ width:12px; color:var(--subtle); font-size:10px; }
.st-seta.vazia{ visibility:hidden; }
.st-num{ font-size:10.5px; color:var(--subtle); min-width:34px; font-variant-numeric:tabular-nums; }
.st-titulo{ flex:1; color:inherit; text-decoration:none; line-height:1.35; }
.st-titulo:hover{ color:var(--brand); }
.st-pill{ font-size:10px; color:var(--muted); background:var(--field); border-radius:99px; padding:2px 7px; white-space:nowrap; }
.st-sel{ font-family:inherit; font-size:10.5px; padding:3px 6px; border-radius:8px; border:1px solid var(--card-border);
  background:var(--field); color:var(--text); text-transform:capitalize; }
.st-filhos{ margin-left:16px; border-left:1px dashed var(--card-border); padding-left:6px; }

.st-desc{ font-size:13.5px; line-height:1.65; white-space:pre-wrap; color:var(--text); }
.st-meta{ font-size:12px; color:var(--muted); line-height:1.7; }
.st-status-botoes{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.st-status-botoes .st-chip{ font-size:11px; padding:6px 10px; }
.st-filhos-lista{ display:flex; flex-direction:column; gap:4px; }
.st-aula-item{ display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--card-border); font-size:12.5px; }

/* motor de IA */
.ia-chip{ display:inline-flex; align-items:center; gap:7px; font-family:inherit; font-size:11.5px; font-weight:600;
  padding:8px 12px; border-radius:11px; border:1px solid var(--card-border); background:var(--card); color:var(--muted); cursor:pointer; }
.ia-chip:hover{ color:var(--text); }
.ia-chip b{ color:var(--text); font-weight:800; }
.ia-dot{ width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.15); }
.ia-dialog{ border:none; border-radius:18px; padding:0; width:min(520px,94vw); background:var(--card); color:var(--text);
  box-shadow:0 30px 80px rgba(0,0,0,.35); }
.ia-dialog::backdrop{ background:rgba(10,12,25,.55); }
.ia-head{ display:flex; justify-content:space-between; align-items:center; padding:16px 18px; border-bottom:1px solid var(--card-border); }
.ia-x{ border:none; background:transparent; font-size:22px; line-height:1; color:var(--muted); cursor:pointer; }
.ia-hint{ font-size:12px; color:var(--muted); padding:12px 18px 0; margin:0; line-height:1.5; }
.ia-form{ padding:12px 18px 18px; display:flex; flex-direction:column; gap:10px; }
.ia-form label{ display:flex; flex-direction:column; gap:5px; font-size:10.5px; letter-spacing:.4px; text-transform:uppercase; color:var(--subtle); font-weight:800; }
.ia-form select, .ia-form input{ font-family:inherit; font-size:13px; padding:9px 10px; border-radius:10px;
  border:1px solid var(--field-border); background:var(--field); color:var(--text); text-transform:none; letter-spacing:0; font-weight:400; }
.ia-form select[size]{ height:auto; }
.ia-msg{ font-size:12px; color:#dc2626; margin:0; min-height:16px; }
.ia-acoes{ display:flex; gap:8px; flex-wrap:wrap; }
.ia-atual{ display:flex; gap:10px; align-items:center; padding:12px; border:1px solid var(--card-border);
  border-radius:12px; background:var(--field); margin-bottom:12px; }
.ia-atual small{ display:block; font-size:11px; color:var(--muted); }

@media (max-width:980px){
  .st-cards{ grid-template-columns:repeat(2,1fr); }
  .st-cols{ grid-template-columns:1fr; }
  .st-count{ width:100%; }
}
@media (max-width:560px){
  .st-cards{ grid-template-columns:1fr; }
  .st-head h1{ font-size:19px; }
  .st-disc-bar{ width:70px; }
}

/* sala de aula */
.st-aula-top{ display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap; }
.st-aula-acoes{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.st-aula{ margin-top:14px; font-size:14px; line-height:1.7; }
.st-aula h3{ font-size:16px; margin:18px 0 6px; }
.st-aula h4{ font-size:14px; margin:14px 0 4px; }
.st-aula p{ margin:0 0 10px; }
.st-aula ul{ margin:0 0 12px 20px; }
.st-aula li{ margin-bottom:4px; }
.st-aula code{ background:var(--field); padding:1px 5px; border-radius:5px; font-size:12.5px; }
.st-vazio{ display:flex; flex-direction:column; gap:4px; padding:26px 8px; text-align:center; color:var(--muted); }
.st-vazio b{ color:var(--text); }

/* professor */
.prof-panel{ display:flex; flex-direction:column; min-height:min(72vh,660px); }
.prof-chat{ flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:14px; padding:4px 2px 14px; max-height:56vh; }
.prof-bemvindo{ display:flex; flex-direction:column; gap:4px; padding:22px; border:1px dashed var(--card-border); border-radius:14px; color:var(--muted); font-size:13px; }
.prof-bemvindo b{ color:var(--text); font-size:15px; }
.prof-msg{ max-width:92%; }
.prof-msg.user{ align-self:flex-end; }
.prof-msg.bot{ align-self:flex-start; }
.prof-quem{ font-size:10.5px; letter-spacing:.4px; font-weight:800; color:var(--subtle); margin-bottom:4px; }
.prof-quem small{ font-weight:400; letter-spacing:0; margin-left:6px; }
.prof-txt{ font-size:14px; line-height:1.65; padding:11px 14px; border-radius:14px; background:var(--field); border:1px solid var(--card-border); }
.prof-msg.user .prof-txt{ background:linear-gradient(135deg,#7c5cff,#9a6bff); color:#fff; border-color:transparent; border-bottom-right-radius:5px; }
.prof-msg.bot .prof-txt{ border-bottom-left-radius:5px; }
.prof-txt p{ margin:0 0 8px; } .prof-txt p:last-child{ margin-bottom:0; }
.prof-txt ul{ margin:6px 0 8px 18px; } .prof-txt h3{ font-size:15px; margin:12px 0 5px; }
.prof-rodape{ display:block; font-size:10px; color:var(--subtle); margin-top:4px; }
.prof-form{ display:flex; gap:10px; align-items:flex-end; border-top:1px solid var(--card-border); padding-top:12px; }
.prof-form textarea{ flex:1; resize:none; min-height:48px; max-height:140px; padding:11px 13px; border-radius:13px;
  font-family:inherit; font-size:14px; background:var(--field); border:1px solid var(--field-border); color:var(--text); outline:none; }
.prof-form textarea:focus{ border-color:var(--brand); box-shadow:0 0 0 4px var(--ring); background:var(--card); }
.prof-sugestoes{ display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
.prof-sugestoes button{ font-family:inherit; font-size:11.5px; padding:6px 10px; border-radius:99px; cursor:pointer;
  border:1px solid var(--card-border); background:var(--card); color:var(--muted); }
.prof-sugestoes button:hover{ color:var(--text); background:var(--field); }

/* questões */
.st-form-linha{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.st-form-linha .st-sel, .st-form-linha select, .st-form-linha input{ padding:9px 10px; font-size:12.5px; }
.st-filtros{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; padding:12px 14px; margin-bottom:14px; }
.st-questao{ padding:14px 16px; margin-bottom:12px; }
.st-q-top{ display:flex; align-items:center; gap:6px; margin-bottom:8px; flex-wrap:wrap; }
.st-q-num{ font-size:11px; font-weight:900; background:var(--field); border-radius:8px; padding:3px 7px; }
.st-q-fav{ margin-left:auto; cursor:pointer; font-size:18px; color:#f59e0b; line-height:1; }
.st-q-enun{ font-size:14px; line-height:1.6; margin:0 0 10px; }
.st-q-alts{ display:flex; flex-direction:column; gap:6px; }
.st-alt{ display:block; width:100%; text-align:left; font-family:inherit; font-size:13px; line-height:1.5;
  padding:9px 11px; border-radius:10px; border:1px solid var(--field-border); background:var(--field);
  color:var(--text); cursor:pointer; }
.st-alt:hover{ border-color:var(--brand); }
.st-alt b{ margin-right:4px; }
.st-alt.certa{ background:rgba(34,197,94,.14); border-color:rgba(34,197,94,.5); }
.st-alt.errada{ background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.5); }
.st-alt-radio{ cursor:pointer; }
.st-alt-radio input{ margin-right:6px; }
.st-q-fb{ margin-top:12px; padding-top:10px; border-top:1px dashed var(--card-border); }
.st-fb-top{ font-size:13px; font-weight:800; margin-bottom:6px; }
.st-fb-top.ok{ color:#15803d; } .st-fb-top.no{ color:#dc2626; }
.st-fb-txt{ font-size:13px; line-height:1.6; }
.st-fb-txt p{ margin:0 0 6px; }
.st-pag{ display:flex; gap:10px; align-items:center; justify-content:center; margin:14px 0; font-size:12px; color:var(--muted); }
.st-import{ display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.st-import label{ display:flex; flex-direction:column; gap:4px; font-size:11px; font-weight:700; color:var(--muted); }
.st-import input, .st-import textarea{ font-family:inherit; font-size:13px; padding:8px 9px; border-radius:9px;
  border:1px solid var(--field-border); background:var(--field); color:var(--text); }
.st-alt-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:8px; }
.st-oficial, .st-oficial.st-pill{ background:rgba(59,130,246,.14); color:#2563eb; border-color:rgba(59,130,246,.35); }
.st-autoral{ background:rgba(124,92,255,.12); color:#6d4bff; border-color:rgba(124,92,255,.3); }

/* simulados */
.st-simlist{ display:flex; flex-direction:column; gap:6px; }
.st-simitem{ display:flex; align-items:center; gap:10px; padding:10px; border-radius:11px; text-decoration:none;
  color:inherit; border:1px solid transparent; }
.st-simitem:hover{ background:var(--field); border-color:var(--card-border); }
.st-sim-info{ flex:1; min-width:0; }
.st-sim-info b{ display:block; font-size:13px; }
.st-sim-info small{ font-size:11px; color:var(--subtle); }
.st-nota{ font-size:15px; font-weight:900; padding:4px 10px; border-radius:9px; background:var(--field); }
.st-nota.ok{ color:#15803d; background:rgba(34,197,94,.14); }
.st-nota.no{ color:#dc2626; background:rgba(239,68,68,.12); }
.st-sim-run{ padding:16px; }
.st-sim-progress{ font-size:12px; color:var(--muted); margin-bottom:10px; }
.st-sim-foot{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding-top:14px; border-top:1px solid var(--card-border); }
.st-timer b{ font-variant-numeric:tabular-nums; }
.st-timer b.ok{ color:#15803d; } .st-timer b.no{ color:#dc2626; }
.st-count b.ok{ color:#15803d; } .st-count b.no{ color:#dc2626; }
.st-veredito{ margin-left:auto; font-size:15px; font-weight:900; }
.st-veredito.ok{ color:#15803d; } .st-veredito.no{ color:#dc2626; }
.st-sua{ float:right; font-size:10px; font-weight:800; color:var(--muted); }
.st-questao-res .st-alt{ cursor:default; }
@media(max-width:560px){ .st-q-enun{font-size:13.5px} .st-alt{font-size:12.5px} }

/* flashcards */
.st-flash-wrap{ display:flex; flex-direction:column; gap:12px; }
.st-flash{ background:var(--card); border:1px solid var(--card-border); border-radius:16px; padding:16px; transition:opacity .2s; }
.st-flash-top{ display:flex; gap:6px; margin-bottom:10px; }
.st-flash-frente{ font-size:16px; font-weight:700; line-height:1.45; }
.st-flash-verso{ margin-top:12px; padding-top:12px; border-top:1px dashed var(--card-border); font-size:14px; line-height:1.6; }
.st-flash-verso small{ display:block; margin-top:6px; color:var(--muted); font-size:12.5px; }
.st-flash-acoes{ display:flex; gap:8px; align-items:center; margin-top:14px; flex-wrap:wrap; }
.st-flash-notas{ display:flex; gap:6px; flex-wrap:wrap; }
.st-nota-btn{ font-family:inherit; font-size:12px; font-weight:700; padding:7px 11px; border-radius:9px; cursor:pointer;
  border:1px solid var(--card-border); background:var(--field); color:var(--text); }
.st-nota-btn.no{ border-color:rgba(239,68,68,.4); color:#dc2626; }
.st-nota-btn.mid{ border-color:rgba(245,158,11,.45); color:#b45309; }
.st-nota-btn.ok{ border-color:rgba(34,197,94,.45); color:#15803d; }
.st-nota-btn:hover{ background:var(--card); }

/* revisões */
.st-revlist{ display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.st-revitem{ display:flex; gap:10px; align-items:center; padding:10px; border-radius:11px; border:1px solid var(--card-border); background:var(--field); flex-wrap:wrap; }
.st-rev-info{ flex:1; min-width:180px; }
.st-rev-info b{ display:block; font-size:13px; }
.st-rev-info small{ font-size:11px; color:var(--subtle); }
.st-revbtns{ display:flex; gap:5px; }

/* planejamento */
.st-inline{ display:flex; align-items:center; gap:6px; font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.3px; }
.st-inline input{ width:80px; font-family:inherit; font-size:13px; padding:8px 9px; border-radius:9px;
  border:1px solid var(--field-border); background:var(--field); color:var(--text); }
.st-planos{ display:flex; flex-direction:column; gap:12px; }
.st-dia{ padding:14px 16px; }
.st-dia.hoje{ border-color:var(--brand); box-shadow:0 0 0 3px var(--ring); }
.st-dia.feito{ opacity:.6; }
.st-dia-top{ display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
.st-dia-top b{ font-size:14px; } .st-dia-top small{ display:block; font-size:11px; color:var(--subtle); }
.st-blocos{ list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.st-blocos li{ display:flex; align-items:center; gap:8px; font-size:13px; }
.st-blocos a{ color:inherit; text-decoration:none; flex:1; }
.st-blocos a:hover{ color:var(--brand); }
.st-blocos small{ color:var(--subtle); font-size:11px; }
.st-bloco-tipo{ font-size:9.5px; font-weight:800; text-transform:uppercase; letter-spacing:.4px; padding:3px 7px; border-radius:6px; }
.st-bloco-tipo.teoria{ background:rgba(124,92,255,.13); color:#6d4bff; }
.st-bloco-tipo.questoes{ background:rgba(59,130,246,.13); color:#2563eb; }

/* desempenho */
.st-sugestao{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-bottom:16px; border-left:4px solid var(--brand); }
.st-sugestao b{ font-size:14px; } .st-sugestao span{ flex:1; font-size:12.5px; color:var(--muted); }

/* biblioteca */
.st-bib{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px; }
.st-bib-item{ background:var(--card); border:1px solid var(--card-border); border-radius:14px; padding:14px; display:flex; flex-direction:column; gap:6px; }
.st-bib-top{ display:flex; gap:5px; flex-wrap:wrap; }
.st-bib-tit{ font-size:13.5px; font-weight:700; color:inherit; text-decoration:none; line-height:1.35; }
.st-bib-tit:hover{ color:var(--brand); }
.st-bib-item small{ font-size:11px; color:var(--subtle); }
.st-bib-acoes{ display:flex; gap:5px; flex-wrap:wrap; margin-top:auto; padding-top:8px; }
.st-bib-acoes form{ margin:0; }
.st-bib-acoes .btn{ font-size:11px; padding:5px 9px; }
.st-del:hover{ color:#dc2626; border-color:rgba(239,68,68,.4); }
.st-pre{ white-space:pre-wrap; word-break:break-word; font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12.5px; line-height:1.7; max-height:70vh; overflow:auto; margin:0; color:var(--text); }

/* hoje (dashboard) */
.st-hoje{ display:flex; gap:24px; align-items:stretch; margin-bottom:20px; flex-wrap:wrap; }
.st-hoje-col{ display:flex; flex-direction:column; gap:4px; }
.st-hoje-col small{ font-size:10px; letter-spacing:.5px; color:var(--subtle); font-weight:800; }
.st-hoje-col b{ font-size:30px; line-height:1.1; }
.st-hoje-col a{ font-size:12px; color:var(--brand); text-decoration:none; font-weight:700; }
.st-hoje-col.grow{ flex:1; min-width:240px; }
.st-hoje .st-blocos{ margin:4px 0 0; }

/* responsivo: evita estouro por selects longos e pelo fundo decorativo */
html, body{ overflow-x:hidden; }
.st-cols > section, .st-cols > aside{ min-width:0; }
.st-form-linha{ max-width:100%; }
.st-form-linha > *{ min-width:0 !important; max-width:100%; }
.st-form-linha select, .st-form-linha input{ flex:1 1 160px; }
.st-import input, .st-import select, .st-filtros input, .st-filtros select{ max-width:100%; }
@media (max-width:560px){
  .st-form-linha{ flex-direction:column; align-items:stretch; }
  .st-form-linha > *{ width:100%; }
  .st-import .st-form-linha{ flex-direction:column; }
}

/* ============================ refinamento visual v2 ============================ */
.fwrap{ max-width:1460px !important; padding:30px clamp(20px,4vw,56px) 72px !important; }
.study-nav{ position:sticky; top:10px; z-index:30; padding:7px; border-radius:15px;
  background:color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter:blur(10px);
  border:1px solid var(--card-border); box-shadow:0 10px 30px rgba(15,23,42,.06); }
.study-nav a{ padding:8px 12px; border-radius:10px; font-size:12.5px; border-color:transparent; background:transparent; }
.study-nav a:hover{ background:var(--field); }
.study-nav a.sel{ background:linear-gradient(135deg,#7c5cff,#5b6cff); box-shadow:0 6px 16px rgba(124,92,255,.35); }

.st-head{ position:relative; overflow:hidden; padding:24px 26px; border-radius:22px;
  border:1px solid var(--card-border);
  background:linear-gradient(135deg, rgba(124,92,255,.12), rgba(14,165,233,.07) 55%, transparent); }
.st-head::after{ content:""; position:absolute; right:-70px; top:-90px; width:260px; height:260px; border-radius:50%;
  background:radial-gradient(circle, rgba(124,92,255,.30), transparent 65%); pointer-events:none; }
.st-head h1{ font-size:clamp(21px,2.4vw,29px); letter-spacing:-.3px; }
.st-head p{ font-size:13.5px; }
.st-count{ background:linear-gradient(160deg,var(--card),var(--field)); border-radius:18px;
  box-shadow:0 12px 28px rgba(15,23,42,.07); min-width:150px; }
.st-count b{ font-size:42px; background:linear-gradient(135deg,#7c5cff,#0ea5e9);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

.st-card{ transition:transform .18s ease, box-shadow .18s ease; }
.st-card:hover{ transform:translateY(-3px); box-shadow:0 16px 34px rgba(15,23,42,.09); }
.st-card b{ font-size:30px; letter-spacing:-.5px; }
.st-bar{ height:9px; }
.st-bar i{ transition:width .8s cubic-bezier(.2,.8,.2,1); }

.panel{ transition:box-shadow .2s ease, transform .2s ease; }
.st-cols > .panel:hover, .st-cols > section > .panel:hover{ box-shadow:0 14px 30px rgba(15,23,42,.07); }

.st-cards, .st-cols, .st-hoje, .st-conc-grid{ animation:st-up .45s ease both; }
@keyframes st-up{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }

.st-conc-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.st-conc{ display:flex; flex-direction:column; gap:6px; }
.st-conc h3{ margin:6px 0 2px; font-size:17px; }
.st-conc.ativo{ border-color:rgba(124,92,255,.5); box-shadow:0 12px 30px rgba(124,92,255,.14); }
.st-conc-top{ display:flex; gap:5px; flex-wrap:wrap; }
.st-conc-acoes{ display:flex; gap:6px; flex-wrap:wrap; }

@media (max-width:760px){
  .fwrap{ padding:18px 14px 56px !important; }
  .st-head{ padding:18px; }
  .study-nav{ top:6px; }
  .st-count b{ font-size:34px; }
}

/* discursiva */
.st-disc-enun{ margin-top:12px; padding:14px 16px; border-radius:12px; background:var(--field);
  border:1px solid var(--card-border); font-size:13.5px; line-height:1.7; white-space:pre-wrap; }
.st-disc-resp{ width:100%; margin-top:10px; padding:12px 14px; border-radius:12px; font-family:inherit;
  font-size:14px; line-height:1.6; background:var(--field); border:1px solid var(--field-border); color:var(--text); outline:none; resize:vertical; }
.st-disc-resp:focus{ border-color:var(--brand); box-shadow:0 0 0 4px var(--ring); }
.st-disc-nota{ display:flex; align-items:baseline; gap:6px; margin-bottom:10px; }
.st-disc-nota small{ font-size:10px; letter-spacing:.6px; color:var(--subtle); font-weight:800; }
.st-disc-nota b{ font-size:38px; background:linear-gradient(135deg,#7c5cff,#0ea5e9);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.st-disc-nota span{ font-size:12px; color:var(--muted); }

/* videoaulas */
.st-stage{ position:relative; border-radius:18px; padding:26px 28px 34px; min-height:360px;
  background:radial-gradient(120% 140% at 0% 0%, rgba(124,92,255,.22), transparent 55%),
             radial-gradient(120% 140% at 100% 100%, rgba(14,165,233,.20), transparent 55%),
             linear-gradient(160deg,#0f172a,#111c33); color:#f8fafc; overflow:hidden; }
.st-stage::before{ content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size:22px 22px; pointer-events:none; }
.st-stage-top{ display:flex; justify-content:space-between; gap:8px; margin-bottom:18px; }
.st-stage .st-pill{ background:rgba(255,255,255,.10); color:#e2e8f0; border-color:rgba(255,255,255,.14); }
.st-stage h2{ font-size:clamp(22px,2.4vw,32px); line-height:1.25; letter-spacing:-.4px; margin:0 0 14px; }
.st-stage-list{ margin:0 0 18px; padding-left:20px; display:flex; flex-direction:column; gap:8px; }
.st-stage-list li{ font-size:15px; line-height:1.55; color:#dbe4f0; }
.st-stage-legenda{ min-height:52px; font-size:14px; line-height:1.7; color:#a9b8cf; border-left:2px solid rgba(124,92,255,.7); padding-left:12px; margin:0; }
.st-stage-bar{ position:absolute; left:0; right:0; bottom:0; height:5px; background:rgba(255,255,255,.10); }
.st-stage-bar i{ display:block; height:100%; width:0; background:linear-gradient(90deg,#7c5cff,#0ea5e9); transition:width .2s linear; }
.st-controls{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; }
.st-controls .btn:first-child{ min-width:132px; }
.st-controls .st-sel{ width:auto; padding:8px 10px; }
.st-indice{ margin:8px 0 0; padding-left:18px; display:flex; flex-direction:column; gap:7px; font-size:12.5px; color:var(--muted); cursor:pointer; }
.st-indice li{ line-height:1.4; }
.st-indice li.atual{ color:var(--brand); font-weight:800; }
.st-vlist{ display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.st-vitem{ display:flex; gap:12px; align-items:center; padding:10px 12px; border-radius:12px; background:var(--field);
  border:1px solid var(--card-border); text-decoration:none; color:var(--text); transition:.16s; }
.st-vitem:hover{ transform:translateY(-2px); border-color:var(--brand); box-shadow:0 10px 24px rgba(15,23,42,.08); }
.st-play{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%;
  background:linear-gradient(135deg,#7c5cff,#0ea5e9); color:#fff; font-size:12px; flex:none; }
.st-vinfo{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.st-vinfo b{ font-size:13.5px; font-weight:700; }
.st-vinfo small{ font-size:11px; color:var(--subtle); }
.st-vlinks{ display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.st-vlink{ display:flex; gap:10px; align-items:center; padding:8px 10px; border-radius:10px; background:var(--field);
  border:1px solid var(--card-border); text-decoration:none; color:var(--text); }
.st-vlink b{ display:block; font-size:12.5px; }
.st-vlink small{ font-size:10.5px; color:var(--subtle); }
.st-vlink .btn{ margin-left:auto; }
.st-vlinks form{ margin-left:auto; }
.st-del{ padding:2px 8px; font-size:14px; line-height:1; }

/* progresso de geração de aula */
.st-prog{ height:6px; border-radius:99px; background:var(--field); overflow:hidden; }
.st-prog i{ display:block; height:100%; width:0; border-radius:99px;
  background:linear-gradient(90deg,#7c5cff,#0ea5e9); transition:width .5s ease; }

/* histórico de aulas */
.st-aula-hist{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:8px; margin-top:8px; }
.st-aula-hist a{ display:flex; flex-direction:column; gap:3px; padding:10px 12px; border-radius:12px;
  background:var(--field); border:1px solid var(--card-border); text-decoration:none; color:var(--text); transition:.16s; }
.st-aula-hist a:hover{ border-color:var(--brand); transform:translateY(-2px); }
.st-aula-hist b{ font-size:12.5px; }
.st-aula-hist small{ font-size:10.5px; color:var(--subtle); }
.st-aula-hist .st-pill{ align-self:flex-start; font-size:9.5px; }
.st-aula-full{ max-width:980px; margin:0 auto; font-size:15px; line-height:1.75; }

/* treino e importação */
.st-tab-wrap{ overflow-x:auto; margin-top:10px; }
.st-tab{ width:100%; border-collapse:collapse; font-size:12.5px; }
.st-tab th{ text-align:left; font-size:10.5px; letter-spacing:.5px; text-transform:uppercase; color:var(--subtle);
  padding:8px 10px; border-bottom:1px solid var(--card-border); white-space:nowrap; }
.st-tab td{ padding:10px; border-bottom:1px solid var(--card-border); vertical-align:top; }
.st-tab td small{ display:block; color:var(--subtle); font-size:10.5px; margin-top:2px; }
.st-td-txt{ max-width:520px; }
.st-tab-cols{ width:100%; font-size:12px; margin-top:8px; border-collapse:collapse; }
.st-tab-cols td{ padding:5px 8px; border-bottom:1px solid var(--card-border); }
.st-tab-cols td:first-child{ font-family:monospace; color:var(--brand); white-space:nowrap; }
.st-check{ display:flex; gap:8px; align-items:center; font-size:12.5px; color:var(--muted); }
.st-erros-lista{ margin:8px 0 0; padding-left:18px; font-size:12px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }

.st-treino{ max-width:900px; }
.st-treino-top{ display:flex; gap:6px; flex-wrap:wrap; }
.st-treino-enun{ font-size:16px; line-height:1.65; margin:8px 0 14px; font-weight:600; }
.st-treino-alts{ display:flex; flex-direction:column; gap:8px; }
.st-treino-alts .st-alt{ display:flex; gap:10px; align-items:flex-start; text-align:left; padding:12px 14px;
  border-radius:12px; background:var(--field); border:1px solid var(--card-border); color:var(--text);
  font-size:13.5px; line-height:1.55; cursor:pointer; transition:.15s; }
.st-treino-alts .st-alt span{ font-weight:800; color:var(--brand); }
.st-treino-alts .st-alt:hover{ border-color:var(--brand); }
.st-alt.certa{ border-color:#16a34a !important; background:rgba(22,163,74,.10) !important; }
.st-alt.errada{ border-color:#dc2626 !important; background:rgba(220,38,38,.10) !important; }
.st-treino-feed{ margin-top:14px; padding:14px; border-radius:12px; background:var(--field);
  border:1px solid var(--card-border); font-size:13.5px; line-height:1.6; }
.st-treino-feed b.ok{ color:#16a34a; display:block; margin-bottom:6px; }
.st-treino-feed b.no{ color:#dc2626; display:block; margin-bottom:6px; }
.st-feed-txt{ color:var(--muted); }
