/* SSP Training v0.3.5 — painéis de estudo por certificação */
.study-page{max-width:1250px;margin:0 auto;display:grid;gap:18px}
.study-muted{color:var(--muted)}
.study-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;
  background:linear-gradient(120deg,var(--panel) 55%,rgba(243,72,41,.10));border-color:#3b4559}
.study-hero h2{font-size:25px;letter-spacing:-.7px;margin:6px 0}
.study-hero h2 .study-muted{font-weight:500;font-size:14px;letter-spacing:0}
.study-hero p{margin:0 0 5px}
.study-eyebrow{font-size:10px;letter-spacing:1.4px;color:var(--orange2);font-weight:800}
.study-hero-controls{width:280px;max-width:100%;display:grid;gap:11px;flex:0 0 280px}
.study-hero-controls label{margin:0}
.study-hero-controls .btn{width:100%}
.study-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.study-stat{padding:17px 16px;min-width:0}
.study-stat span{display:block;font-size:12px;color:var(--muted);line-height:1.35}
.study-stat strong{display:block;font-size:26px;letter-spacing:-.7px;margin-top:6px;white-space:nowrap}
.study-tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--stroke);padding-bottom:12px}
.study-tabs button{padding:10px 15px;border-radius:10px;background:var(--panel);color:var(--muted);
  border:1px solid var(--stroke);font-weight:700}
.study-tabs button.active{background:var(--orange);border-color:var(--orange);color:#fff}
.study-tabs button:hover{border-color:var(--orange2)}
.study-columns{display:grid;grid-template-columns:1.05fr .95fr;gap:18px;align-items:start}
.study-mini-topic{display:flex;justify-content:space-between;align-items:center;gap:15px;
  padding:13px 0;border-bottom:1px solid var(--stroke)}
.study-mini-topic:last-child{border-bottom:0}
.study-mini-topic strong{display:block;margin-bottom:2px}
.study-mini-topic .badge{flex:0 0 auto;white-space:nowrap}
.study-review-line{padding:12px 0;border-bottom:1px solid var(--stroke);display:flex;
  flex-direction:column;gap:3px}
.study-guide{margin:22px 0 16px;padding:16px;background:var(--panel2);border-radius:12px}
.study-guide p{margin-bottom:0}
.study-topic-list{display:grid;gap:13px}
.study-topic-list>p{margin:0 0 7px}
.study-topic{padding:0;overflow:hidden}
.study-topic summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;
  align-items:center;gap:12px;padding:18px 20px}
.study-topic summary::-webkit-details-marker{display:none}
.study-topic summary strong{display:block;font-size:15px}
.study-topic summary span.study-muted{display:block;margin-top:4px}
.study-topic .badge{flex:0 0 auto}
.study-topic-edit{border-top:1px solid var(--stroke);padding:18px 20px;display:grid;gap:14px}
.study-topic-edit label{margin:0}
.study-topic-edit select,.study-topic-edit textarea{margin-top:8px}
.study-topic-edit fieldset{margin:0;padding:14px;border:1px solid var(--stroke);border-radius:12px}
.study-topic-edit legend{padding:0 7px;color:var(--muted);font-size:12px;font-weight:700}
.study-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.study-check{display:flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--stroke);border-radius:9px}
.study-check input{flex:0 0 auto;margin:0}
.study-progress-track{height:8px;margin:0 18px 14px;border-radius:99px;overflow:hidden;background:var(--panel2)}
.study-progress-track>span{height:100%;display:block;background:var(--orange);transition:width .2s}
.study-session-head{display:grid;gap:8px;max-width:980px;width:100%;margin:0 auto}
.study-session-head .study-progress-track{margin:0}
.study-session-score{max-width:980px;margin:0 auto;display:grid;gap:9px;width:100%}
.study-session-score>span{font-size:46px;font-weight:900;color:var(--green)}
.study-session-head>span{color:var(--muted)}
.study-question{width:100%;max-width:980px;margin:0 auto}
.study-question>h3{font-size:18px;line-height:1.55;margin-bottom:20px}
.study-disabled{cursor:default;opacity:.85}
.study-question .exam-choices{margin-bottom:13px}
.study-feedback{padding:16px 18px;border-radius:12px;border:1px solid var(--stroke);
  background:var(--panel2);margin-top:14px}
.study-feedback p{margin:8px 0;color:var(--fg)}
.study-correct{border-color:rgba(52,198,138,.45)}
.study-incorrect{border-color:rgba(255,108,115,.55)}
.study-wrong h3{font-size:17px;margin:10px 0 14px}
.study-wrong p{line-height:1.6;color:var(--fg)}
.study-wrong .btn{margin-top:8px}
.study-flag-card{display:grid;gap:8px}
.study-flag-card .badge{width:max-content}
.study-history th,.study-history td{white-space:nowrap}
@media(max-width:1100px){.study-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.study-columns{grid-template-columns:1fr}
  .study-hero{align-items:stretch;flex-direction:column}
  .study-hero-controls{width:100%;flex:0 0 auto}}
@media(max-width:600px){.study-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .study-stat strong{font-size:24px}.study-tabs button{flex:1 1 40%;font-size:12px}
  .study-topic summary{align-items:flex-start;flex-direction:column}
  .study-topic-edit{padding:14px}.study-check-grid{grid-template-columns:1fr}
  .study-hero h2{font-size:21px}.study-hero h2 .study-muted{display:block;margin-top:5px}}


/* Distingue acerto parcial de resposta incorreta sem alterar a pontuação. */
.study-partial{border-color:rgba(225,166,67,.72);background:rgba(203,150,43,.07)}
.study-choice-correct{border-color:rgba(52,198,138,.6)!important;background:rgba(52,198,138,.09)!important}
.study-choice-wrong{border-color:rgba(255,108,115,.6)!important;background:rgba(255,108,115,.1)!important}
.study-question .study-choice-note{font-size:12px;font-weight:650;white-space:nowrap;margin-left:auto}
.study-choice-correct .study-choice-note{color:#26b87b}
.study-choice-wrong .study-choice-note{color:#e16f78}
@media(max-width:650px){.study-question .choice{flex-wrap:wrap}.study-question .study-choice-note{width:100%;margin-left:40px}}
