*{box-sizing:border-box} :root{--navy:#071629;--navy2:#0d2948;--gold:#f5b73b;--blue:#2a77ff;--green:#22a875;--red:#d9505d;--bg:#f3f6fa;--card:#fff;--text:#122238;--muted:#6b7b8f;--line:#dde5ee;--shadow:0 18px 50px rgba(5,20,40,.15);--radius:18px}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.screen{min-height:100vh}.setup{display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#06101d,#0c2b4d)}.panel{background:#fff;border-radius:26px;padding:30px;box-shadow:var(--shadow)}.narrow{width:min(680px,100%)}.brand{display:flex;align-items:center;gap:14px}.brand h1,.brand p{margin:0}.brand p{color:var(--muted)}.logo{width:66px;height:66px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(145deg,#ffd36b,var(--gold));color:#111d2b;font-weight:900;font-size:24px;box-shadow:0 16px 36px rgba(245,183,59,.2)}.logo.big{width:92px;height:92px;border-radius:28px;font-size:36px}.logo.small{width:46px;height:46px;border-radius:14px;font-size:18px}.auth{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;padding:60px clamp(22px,7vw,110px);background:radial-gradient(circle at 10% 20%,rgba(42,119,255,.27),transparent 30%),radial-gradient(circle at 88% 75%,rgba(245,183,59,.16),transparent 28%),linear-gradient(135deg,#05101e,#0b2340);color:#fff}.auth-intro{display:flex;align-items:center;gap:24px}.auth-intro h1{margin:4px 0 10px;font-size:clamp(42px,7vw,76px);letter-spacing:-.045em}.auth-intro p{max-width:580px;color:#c4d5e8;font-size:18px}.auth-card{justify-self:end;width:min(480px,100%);color:var(--text)}.tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:13px;background:#edf2f8}.tab{border:0;padding:10px;border-radius:10px;background:transparent;color:#65758a;font-weight:800}.tab.active{background:#fff;color:#18304e;box-shadow:0 3px 14px rgba(30,55,85,.1)}.eyebrow{margin:0;color:#b77b0a;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:900}.eyebrow.light{color:#ffd06a}.muted{color:var(--muted)}label{display:grid;gap:7px;margin:15px 0;color:#293a4f;font-size:14px;font-weight:800}input,select,textarea{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);outline:none;transition:.2s}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(42,119,255,.1)}textarea{min-height:90px;resize:vertical}.btn{border:0;border-radius:12px;padding:12px 16px;font-weight:900}.primary{background:linear-gradient(135deg,#e9a92c,#ffc85b);color:#172033;box-shadow:0 9px 24px rgba(245,183,59,.2)}.secondary{background:#e9f0ff;color:#1556c5}.danger{background:#ffe9eb;color:#b53541}.ghost{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.14)}.full{width:100%}.link{display:block;margin:13px auto 0;border:0;background:transparent;color:#2669d6;font-weight:800}.app{display:grid;grid-template-columns:270px 1fr}.sidebar{position:sticky;top:0;height:100vh;padding:24px 18px;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--navy),var(--navy2));color:#fff;z-index:20}.side{padding:0 7px 26px}.side>div:last-child{display:grid;gap:2px}.side span{color:#9db0c7;font-size:12px}nav{display:grid;gap:8px}.nav-btn{display:flex;align-items:center;gap:11px;border:0;padding:12px 14px;border-radius:12px;background:transparent;color:#bdcad9;text-align:left;font-weight:800}.nav-btn:hover,.nav-btn.active{background:rgba(255,255,255,.1);color:#fff}.nav-btn.active{box-shadow:inset 3px 0 0 var(--gold)}.side-bottom{margin-top:auto;display:grid;gap:15px}.user{display:flex;align-items:center;gap:10px;padding:12px;border-radius:14px;background:rgba(255,255,255,.06)}.user>div:last-child{display:grid;gap:2px;min-width:0}.user strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user span{font-size:12px;color:#a9bbcf}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#152235;font-weight:900;flex:0 0 auto}main{min-width:0}.topbar{position:sticky;top:0;z-index:10;height:94px;padding:20px 28px;display:flex;align-items:center;gap:16px;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.topbar h2{margin:4px 0 0;font-size:28px}.date{margin-left:auto;padding:9px 13px;border-radius:999px;background:#edf2f8;color:#53657a;font-size:13px;font-weight:800}.icon{width:40px;height:40px;border:0;border-radius:10px;background:transparent;font-size:20px}.icon:hover{background:#edf2f8}#menu{display:none}.content{padding:28px}.hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px;border-radius:24px;background:linear-gradient(125deg,#0a2441,#123d69);color:#fff;box-shadow:var(--shadow)}.hero h3{margin:4px 0 8px;font-size:28px}.hero p{margin:0;max-width:680px;color:#c8d7e6}.hero-badge{min-width:165px;padding:16px;border:1px solid rgba(255,255,255,.15);border-radius:16px;background:rgba(255,255,255,.08);text-align:center}.hero-badge strong{display:block;color:var(--gold);font-size:30px}.grid{display:grid;gap:18px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mt{margin-top:18px}.card{padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);box-shadow:0 8px 25px rgba(20,41,71,.06)}.card h3{margin:0 0 14px;font-size:18px}.metric{display:flex;justify-content:space-between;align-items:center;gap:12px}.metric .micon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#edf3ff;font-size:20px}.metric strong{display:block;font-size:28px}.metric span{color:var(--muted);font-size:13px}.row{display:flex;justify-content:space-between;align-items:center;gap:10px}.progress{height:9px;border-radius:999px;background:#e9eef5;overflow:hidden}.progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d99718,#ffd26b)}.table{overflow-x:auto}table{width:100%;min-width:720px;border-collapse:collapse}th,td{padding:13px 12px;border-bottom:1px solid #edf1f6;text-align:left;font-size:13px}th{color:#66778d;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.badge{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:900}.done{color:#16734e;background:#e4f7ef}.pending{color:#986b14;background:#fff4d7}.pm{color:#1458c8;background:#e7efff}.bm{color:#a34410;background:#ffecdf}.both{color:#6d31a4;background:#f0e6ff}.actions{display:flex;gap:7px}.action{border:0;padding:8px 10px;border-radius:9px;background:#eef3f9;color:#38516e;font-weight:900}.action.red{color:#b23b47;background:#ffeaec}.empty{padding:36px 16px;text-align:center;color:var(--muted)}.list{display:grid;gap:10px}.task{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:14px}.dot{width:12px;height:12px;border-radius:50%;background:var(--blue)}.task strong{display:block}.task small{color:var(--muted)}.chart{height:240px}canvas{width:100%;height:100%}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.span{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:rgba(5,14,27,.58)}.modal-card{width:min(700px,100%);max-height:90vh;overflow:auto;padding:22px;border-radius:22px;background:#fff;box-shadow:var(--shadow)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--line)}.modal-head h3{margin:0}.toast{position:fixed;right:22px;bottom:22px;z-index:200;max-width:min(430px,calc(100vw - 44px));padding:13px 16px;border-radius:12px;background:#102238;color:#fff;box-shadow:var(--shadow);transform:translateY(30px);opacity:0;transition:.25s;pointer-events:none}.toast.show{transform:translateY(0);opacity:1}.loading{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;gap:12px;background:rgba(245,248,252,.85);backdrop-filter:blur(3px);font-weight:900}.spinner{width:30px;height:30px;border:4px solid #dce5ef;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1080px){.grid-4{grid-template-columns:repeat(2,1fr)}}@media(max-width:820px){.auth{grid-template-columns:1fr;padding:34px 20px}.auth-card{justify-self:stretch;width:100%}.app{grid-template-columns:1fr}.sidebar{position:fixed;left:-290px;width:270px;transition:.25s}.sidebar.open{left:0;box-shadow:20px 0 50px rgba(0,0,0,.25)}#menu{display:inline-grid;place-items:center}.grid-2{grid-template-columns:1fr}.hero{align-items:flex-start;flex-direction:column}}@media(max-width:560px){.content{padding:18px}.topbar{height:84px;padding:16px 18px}.date{display:none}.grid-4{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.span{grid-column:auto}.auth-intro .logo{width:62px;height:62px;font-size:23px}.auth-intro h1{font-size:38px}}


/* Módulos avançados */
.sidebar nav{overflow-y:auto;padding-right:4px;max-height:calc(100vh - 210px)}
.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.question-cell{max-width:440px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.import-help{padding:14px;border-radius:14px;background:#f3f6fa}.chips{display:flex;gap:6px;flex-wrap:wrap}.chips span{padding:5px 8px;border-radius:999px;background:#e5edf7;color:#40556f;font-size:11px;font-weight:800}.check{display:flex;grid-template-columns:auto 1fr;align-items:center}.check input{width:auto}.sim-grid,.material-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sim-card,.material-card{border:1px solid var(--line);border-radius:16px;padding:18px;background:#fff;display:flex;justify-content:space-between;align-items:flex-end;gap:16px}.sim-card h3,.material-card h3{margin:10px 0 5px}.sim-card p,.material-card p{color:var(--muted);margin:0 0 10px}.sim-card>div:last-child{display:grid;gap:7px;text-align:right}.sim-card>div:last-child>strong{font-size:30px}.material-card{align-items:center}.pdf-icon{width:58px;height:68px;border-radius:10px;display:grid;place-items:center;background:#ffe8e9;color:#b02f3c;font-weight:900;flex:0 0 auto}.material-card>div:nth-child(2){flex:1}.material-actions{display:grid;gap:8px}.quiz-head{position:sticky;top:94px;z-index:7;display:flex;justify-content:space-between;align-items:center;padding:18px 22px;margin-bottom:18px;border-radius:18px;background:#0b2949;color:#fff;box-shadow:var(--shadow)}.quiz-head h3{margin:0 0 5px}.quiz-head p{margin:0;color:#c7d6e6}.timer{font-size:32px;font-weight:900;color:var(--gold)}.quiz-list{display:grid;gap:16px}.quiz-question{padding:24px}.q-number{color:#c18716;text-transform:uppercase;font-size:12px;font-weight:900;letter-spacing:.08em}.q-text{font-size:17px;line-height:1.55;font-weight:700}.option{display:flex;grid-template-columns:auto 1fr;align-items:flex-start;gap:10px;margin:8px 0;padding:12px;border:1px solid var(--line);border-radius:12px;cursor:pointer}.option:hover{border-color:#8eb5f8;background:#f5f8ff}.option input{width:auto;margin-top:3px}.option strong{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e8effa;margin-right:6px}.quiz-submit{position:sticky;bottom:10px;display:flex;justify-content:flex-end;gap:10px;padding:15px;border-radius:15px;background:rgba(255,255,255,.94);box-shadow:var(--shadow)}.result-box{text-align:center}.result-box>strong{font-size:64px;color:#1d9b6b}.error-list{display:grid;gap:14px}.error-card{padding:18px;border:1px solid #f2c6ca;border-left:5px solid #d9505d;border-radius:15px;background:#fff}.error-card.resolved{border-color:#bde5d4;border-left-color:#22a875;background:#fbfffd}.error-card h3{margin:13px 0 8px}.error-card p{line-height:1.5}.explanation{padding:12px;border-radius:10px;background:#f0f5fb;color:#344b66}.ranking-list{display:grid;gap:10px}.ranking-row{display:grid;grid-template-columns:72px 1fr 100px 120px;align-items:center;gap:14px;padding:15px;border:1px solid var(--line);border-radius:14px}.ranking-row.top-1{background:#fff8df;border-color:#f2d06f}.ranking-row.top-2{background:#f4f6f9}.ranking-row.top-3{background:#fff1e6}.rank-position{font-size:22px;font-weight:900;text-align:center}.rank-name{display:grid}.rank-name small,.rank-accuracy small,.rank-points small{color:var(--muted)}.rank-accuracy,.rank-points{display:grid;text-align:center}.rank-points strong{font-size:22px;color:#c18716}@media(max-width:820px){.sim-grid,.material-grid{grid-template-columns:1fr}.ranking-row{grid-template-columns:50px 1fr 72px}.rank-accuracy{display:none}.quiz-head{top:84px}.timer{font-size:25px}}@media(max-width:560px){.sim-card,.material-card{align-items:stretch;flex-direction:column}.material-actions{display:flex}.ranking-row{grid-template-columns:44px 1fr 72px}.rank-name small{font-size:10px}.quiz-submit{display:grid}.quiz-submit .btn{width:100%}}


/* Painel individual, cronograma visual e cores de status */
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.task-status{white-space:nowrap}.status-pending{--status-color:#64748b;--status-soft:#f1f5f9;--status-text:#475569}.status-partial{--status-color:#f59e0b;--status-soft:#fff7df;--status-text:#9a5d00}.status-completed{--status-color:#22a875;--status-soft:#e8f8f1;--status-text:#16734e}.status-review{--status-color:#7c3aed;--status-soft:#f2eaff;--status-text:#6430a5}.badge.status-pending,.badge.status-partial,.badge.status-completed,.badge.status-review{color:var(--status-text);background:var(--status-soft);border:1px solid color-mix(in srgb,var(--status-color) 28%,transparent)}.schedule-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:18px}.schedule-board.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-card{position:relative;padding:17px;border:1px solid var(--line);border-left:6px solid var(--status-color);border-radius:16px;background:linear-gradient(145deg,#fff,var(--status-soft));box-shadow:0 6px 18px rgba(20,41,71,.06);transition:.2s}.schedule-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(20,41,71,.1)}.schedule-card.filtered-out{display:none}.schedule-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.schedule-date{display:block;font-size:12px;font-weight:900;color:#53657a}.schedule-student{display:block;margin-top:3px;font-size:12px;color:var(--muted)}.schedule-card h3{margin:14px 0 5px;font-size:17px}.schedule-topic{margin:0;color:#344a63;font-weight:700}.schedule-goal{margin:13px 0;padding:10px;border-radius:10px;background:rgba(255,255,255,.75);color:#52647a;font-size:13px}.task-status-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.status-action{border:1px solid transparent;border-radius:9px;padding:8px 7px;background:#f2f5f8;color:#65758a;font-size:11px;font-weight:900}.status-action:hover,.status-action.active{border-color:var(--status-color);background:var(--status-soft);color:var(--status-text)}.status-action.active{box-shadow:inset 0 0 0 1px var(--status-color)}.schedule-heading{align-items:flex-start}.progress-summary{display:grid;text-align:right}.progress-summary strong{font-size:28px;color:#b87c10}.progress-summary span{font-size:12px;color:var(--muted)}.status-legend{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0;color:#5f7085;font-size:12px}.status-legend span{display:inline-flex;align-items:center;gap:6px}.status-legend i{width:10px;height:10px;border-radius:50%}.schedule-filters{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.schedule-filter{border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:#fff;color:#5e7085;font-size:12px;font-weight:900}.schedule-filter.active,.schedule-filter:hover{border-color:var(--status-color,#2a77ff);background:var(--status-soft,#edf3ff);color:var(--status-text,#1556c5)}.student-monitor-list{display:grid;gap:10px}.student-monitor-row{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:14px}.rank-mini{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#edf3ff;color:#245fb7;font-weight:900}.student-monitor-row small{display:block;color:var(--muted);margin:3px 0 8px}.student-monitor-actions{display:grid;gap:7px;justify-items:end}.mini-progress{height:6px;border-radius:999px;background:#e8edf3;overflow:hidden}.mini-progress span{display:block;height:100%;background:linear-gradient(90deg,#2a77ff,#65a0ff)}.panel-toolbar{display:flex;justify-content:space-between;gap:10px;margin-bottom:14px}.student-hero{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;padding:24px;border-radius:22px;background:linear-gradient(125deg,#0a2441,#123d69);color:#fff;box-shadow:var(--shadow)}.student-hero h2{margin:4px 0;font-size:28px}.student-hero p{margin:0;color:#c8d7e6}.student-avatar-large{width:72px;height:72px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,#ffd36b,#f5b73b);color:#172033;font-size:28px;font-weight:900}.student-hero-progress{display:grid;text-align:center;padding:12px 18px;border-radius:15px;background:rgba(255,255,255,.09)}.student-hero-progress strong{font-size:30px;color:#ffd36b}.student-hero-progress span{font-size:12px;color:#c8d7e6}.student-link{border:0;background:transparent;color:#215fb7;font-weight:900;padding:0;text-align:left}.student-link:hover{text-decoration:underline}
@media(max-width:1120px){.schedule-board{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:1fr 1fr}.grid-3>.card:last-child{grid-column:1/-1}}
@media(max-width:820px){.schedule-board,.schedule-board.compact,.grid-3{grid-template-columns:1fr}.grid-3>.card:last-child{grid-column:auto}.student-hero{grid-template-columns:auto 1fr}.student-hero-progress{grid-column:1/-1}.panel-toolbar{flex-direction:column}.student-monitor-row{grid-template-columns:40px 1fr}.student-monitor-actions{grid-column:2;display:flex;justify-content:flex-start;align-items:center}}
@media(max-width:560px){.task-status-actions{grid-template-columns:1fr}.schedule-card-top{align-items:flex-start;flex-direction:column}.student-hero{grid-template-columns:1fr;text-align:center}.student-avatar-large{margin:auto}.student-monitor-row{grid-template-columns:1fr}.rank-mini{display:none}.student-monitor-actions{grid-column:auto}}


/* Atualização: identidade visual, alertas e cronômetros */
.password-wrap{position:relative;display:flex;align-items:center}.password-wrap input{padding-right:52px}.password-toggle{position:absolute;right:7px;width:38px;height:38px;border:0;border-radius:9px;background:#eef3f9;color:#314a68;font-size:17px;display:grid;place-items:center}.password-toggle:hover{background:#dde8f5}.brand-logo-slot.has-brand-image{overflow:hidden;background:#fff;padding:4px}.brand-logo-slot img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}.student-alert-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;margin-bottom:18px;border:1px solid #f3c464;border-left:6px solid #ef9e16;border-radius:16px;background:#fff8e7;box-shadow:0 8px 24px rgba(155,98,9,.08)}.student-alert-panel strong{color:#8b5500;font-size:17px}.student-alert-panel p{margin:5px 0 0;color:#72551e}.btn.warning,.action.warning{background:#fff0c9;color:#8b5700;border:1px solid #f1cd7a}.btn.warning:hover,.action.warning:hover{background:#ffe3a0}.action.warning:disabled{opacity:.45;cursor:not-allowed}.badge.alert-badge{background:#fff0cf;color:#9a5c00}.overdue-summary{display:grid;gap:7px;padding:14px;margin-bottom:12px;border-radius:13px;background:#fff8e7;border:1px solid #f2d69b}.overdue-summary span{color:#72551e}.timer-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px;border-radius:24px;background:linear-gradient(125deg,#081b31,#174873);color:#fff;box-shadow:0 18px 45px rgba(6,26,49,.18)}.timer-hero h3{font-size:27px;margin:5px 0 8px}.timer-hero p{max-width:670px;color:#c9d9e8}.work-timer-display{font-variant-numeric:tabular-nums;font-size:clamp(38px,7vw,70px);font-weight:950;letter-spacing:.04em;color:#ffd06a;padding:16px 22px;border-radius:18px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);white-space:nowrap}.timer-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:20px}.btn.success{background:#ddf7eb;color:#126d4b;border:1px solid #a7dfc8}.btn.danger{background:#ffeaec;color:#aa3441;border:1px solid #ffc7cd}.timer-help{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:18px}.timer-help span{padding:8px 11px;border-radius:999px;background:#eef3f9;color:#53677f;font-size:12px}.quiz-clock{text-align:center}.quiz-clock small{display:block;color:#dbe7f4;margin-bottom:3px}.branding-card{display:grid;grid-template-columns:1fr 260px;gap:22px;align-items:start}.branding-card form{grid-column:1/-1}.logo-preview{min-height:180px;border:2px dashed #c9d5e2;border-radius:18px;background:#f7f9fc;display:grid;place-items:center;padding:18px}.logo-preview img{max-width:100%;max-height:170px;object-fit:contain}.logo-preview .logo{margin:auto}.sidebar .brand.side strong{font-size:14px;line-height:1.25}.sidebar .brand.side span{font-size:11px}.material-card small:after{content:""}@media(max-width:820px){.student-alert-panel,.timer-hero{align-items:flex-start;flex-direction:column}.branding-card{grid-template-columns:1fr}.work-timer-display{width:100%;text-align:center}}


/* Concursos, suporte, materiais por disciplina e análise automática */
.impact-phrase{margin-top:22px;padding:14px 18px;border-left:4px solid #f4bd43;background:rgba(255,255,255,.08);border-radius:0 12px 12px 0;font-size:1.12rem;font-weight:800;max-width:520px}
.block{display:block;margin-top:4px}.contest-chip{display:inline-flex;margin:2px;padding:4px 8px;border-radius:999px;background:#eaf2ff;color:#1859b8;font-size:.76rem;font-weight:800;white-space:nowrap}
.contest-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-top:14px}.contest-card{border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;background:#fff;display:grid;grid-template-columns:84px 1fr;align-items:center;gap:12px;padding:10px}.contest-card img,.contest-placeholder{width:84px;height:72px;border-radius:12px;object-fit:cover;background:#edf3fb;display:grid;place-items:center;font-size:2rem}.contest-card small{display:block;color:#708197;margin-top:4px}.contest-card .action{grid-column:1/-1;justify-self:start}
.material-groups{display:grid;gap:22px;margin-top:18px}.material-discipline{border-top:1px solid #e5eaf1;padding-top:16px}.material-discipline:first-child{border-top:0}.material-discipline-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.material-discipline-head span{font-size:.8rem;color:#708197;background:#eef3f8;padding:5px 9px;border-radius:999px}
.support-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px}.support-students{padding:16px}.support-student-list{display:grid;gap:8px;margin-top:12px}.support-student{border:0;background:#f7f9fc;border-radius:14px;padding:10px;display:grid;grid-template-columns:38px 1fr auto;gap:10px;text-align:left;align-items:center;cursor:pointer}.support-student.active{background:#e8f1ff;box-shadow:inset 0 0 0 2px #2a77ff}.support-student .avatar{width:38px;height:38px}.support-student small{display:block;color:#708197;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}.support-student b{background:#e34d59;color:#fff;border-radius:999px;min-width:22px;height:22px;display:grid;place-items:center;font-size:.72rem}.support-chat{min-height:600px;display:flex;flex-direction:column}.support-chat-head{padding-bottom:14px;border-bottom:1px solid #e5eaf1}.support-messages{flex:1;min-height:380px;max-height:520px;overflow:auto;padding:18px 4px;display:flex;flex-direction:column;gap:10px}.support-message{max-width:78%;padding:11px 14px;border-radius:16px;background:#eef3f8;align-self:flex-start}.support-message.sent{background:#dceaff;align-self:flex-end}.support-message p{margin:0 0 5px;white-space:pre-wrap}.support-message small{color:#708197}.support-form{display:grid;grid-template-columns:1fr auto;gap:10px;padding-top:14px;border-top:1px solid #e5eaf1}.support-form textarea{min-height:70px}.student-support{max-width:920px;margin:auto}
.analysis-report{border-top:4px solid #2a77ff}.strategy-box{margin:16px 0;padding:15px;border-radius:14px;background:#eef5ff}.strategy-box.law{background:#f2eefe;border-left:4px solid #7c3aed}.strategy-box.questions{background:#fff4dc;border-left:4px solid #f59e0b}.strategy-box.review{background:#eaf8f2;border-left:4px solid #22a875}.strategy-box p{margin:6px 0 0}.analysis-list{display:grid;gap:10px}.analysis-item{display:grid;grid-template-columns:38px 1fr;gap:12px;padding:13px;border:1px solid #e5eaf1;border-radius:14px}.analysis-item.level-alto{border-left:5px solid #e34d59}.analysis-item.level-médio{border-left:5px solid #f59e0b}.analysis-rank{width:34px;height:34px;border-radius:10px;background:#eef3f8;display:grid;place-items:center;font-weight:900}.analysis-item p{margin:6px 0;color:#53647b}.analysis-item small{color:#708197}.difficulty-pill{font-size:.72rem;padding:4px 8px;border-radius:999px;font-weight:900}.difficulty-pill.alto{background:#ffe5e8;color:#bd2735}.difficulty-pill.médio{background:#fff0d1;color:#a66500}.empty.compact{padding:18px}
@media(max-width:850px){.support-layout{grid-template-columns:1fr}.support-chat{min-height:500px}.support-form{grid-template-columns:1fr}.support-message{max-width:90%}}

/* ===== RESOLUÇÃO DE QUESTÕES PELO ALUNO ===== */
.practice-start{overflow:hidden}.practice-filter{display:grid;grid-template-columns:1.2fr 1.2fr .65fr;gap:14px;align-items:end;margin-top:20px}.practice-filter .practice-check{grid-column:1/3;margin:0;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.practice-start-button{height:46px}.practice-help{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.practice-help span{padding:9px 12px;border-radius:999px;background:#f0f5fb;color:#40556f;font-size:12px;font-weight:800}.practice-progress-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;padding:14px 18px;margin-bottom:16px;border-radius:16px;background:#0b2949;color:#fff;box-shadow:var(--shadow)}.practice-progress-card>div:first-child{display:grid}.practice-progress-card>div:first-child strong{font-size:20px}.practice-progress-card>div:first-child span{font-size:12px;color:#c7d6e6}.practice-progress-track{height:9px;border-radius:99px;background:rgba(255,255,255,.18);overflow:hidden}.practice-progress-track i{display:block;height:100%;border-radius:99px;background:var(--gold);transition:width .25s ease}.practice-progress-card .action{color:#fff;border-color:rgba(255,255,255,.3)}.practice-question-card{padding:26px}.practice-question-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:12px}.practice-statement{font-size:19px;line-height:1.55;margin:22px 0}.practice-options{display:grid;gap:10px}.practice-option{display:grid;grid-template-columns:auto 34px 1fr auto;align-items:center;gap:10px;padding:14px 15px;border:1px solid var(--line);border-radius:13px;background:#fff;cursor:pointer;transition:.18s ease}.practice-option:hover{border-color:#8eb5f8;background:#f7faff;transform:translateY(-1px)}.practice-option input{width:auto}.practice-option strong{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e8effa;color:#254467}.practice-option b{font-size:20px}.practice-option.correct{border-color:#22a875;background:#edf9f4}.practice-option.correct strong{background:#22a875;color:#fff}.practice-option.wrong{border-color:#d9505d;background:#fff1f2}.practice-option.wrong strong{background:#d9505d;color:#fff}.practice-feedback{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px;padding:14px 16px;border-radius:13px}.practice-feedback.success{background:#eaf8f2;color:#157352}.practice-feedback.danger{background:#fff0f1;color:#a32f3b}.practice-comment{margin-top:12px;padding:16px;border-left:4px solid #2a77ff;border-radius:10px;background:#f0f5fb;color:#344b66}.practice-comment p{margin:6px 0 0;line-height:1.6}.practice-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.btn.warning{background:#fff4d6;color:#8a5a00;border-color:#f2ce74}.btn.success{background:#eaf8f2;color:#157352;border-color:#9bd7bf}.practice-summary-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.question-ranking .rank-points span{font-size:10px;color:var(--muted)}
@media(max-width:820px){.practice-filter{grid-template-columns:1fr 1fr}.practice-filter .practice-check{grid-column:1/-1}.practice-start-button{grid-column:1/-1}.practice-progress-card{grid-template-columns:auto 1fr}.practice-progress-card .action{grid-column:1/-1}.practice-question-card{padding:18px}}
@media(max-width:560px){.practice-filter{grid-template-columns:1fr}.practice-filter .practice-check,.practice-start-button{grid-column:auto}.practice-progress-card{grid-template-columns:1fr}.practice-question-meta{display:grid}.practice-option{grid-template-columns:auto 30px 1fr}.practice-option b{grid-column:3}.practice-feedback{display:grid}.practice-actions{display:grid}.practice-actions .btn{width:100%}}


/* Correção definitiva de rolagem e estabilidade em celulares */
html,body{overscroll-behavior-y:none}
body.app-mode{height:100dvh;overflow:hidden}
body.app-mode #app{height:100dvh;min-height:0;overflow:hidden}
body.app-mode #app>main{height:100dvh;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;scroll-behavior:auto}
body.app-mode .content{min-height:calc(100dvh - 94px)}
@media(max-width:820px){
  .screen{min-height:100dvh}
  .sidebar{height:100dvh}
  .sidebar nav{max-height:calc(100dvh - 210px)}
  .topbar{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}
  body.app-mode .content{min-height:calc(100dvh - 84px)}
  .chart{height:210px}
}


/* ===== Alternância entre modo claro e escuro ===== */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--text);font-weight:900;box-shadow:0 5px 16px rgba(6,24,45,.08);transition:background .2s,color .2s,border-color .2s,transform .2s}.theme-toggle:hover{transform:translateY(-1px)}.theme-toggle-auth{position:fixed;top:18px;right:18px;z-index:40}.topbar .theme-toggle-app{margin-left:auto}.topbar .date{margin-left:0}.theme-icon{font-size:17px;line-height:1}.theme-label{font-size:12px;white-space:nowrap}

html[data-theme="dark"]{color-scheme:dark;--bg:#07111f;--card:#102338;--text:#edf5ff;--muted:#a5b6ca;--line:#2a3f56;--shadow:0 18px 50px rgba(0,0,0,.32)}
html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .panel,html[data-theme="dark"] .card,html[data-theme="dark"] .modal-card{background:#102338;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .auth-card{background:#102338;color:var(--text)}
html[data-theme="dark"] .tabs{background:#091a2c}
html[data-theme="dark"] .tab{color:#9fb2c8}
html[data-theme="dark"] .tab.active{background:#19304a;color:#fff;box-shadow:none}
html[data-theme="dark"] label{color:#dce8f4}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#091a2c;color:#f5f9ff;border-color:#304861}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#7890a9}
html[data-theme="dark"] .topbar{background:#0b1b2d;border-color:#253a50;color:var(--text)}
html[data-theme="dark"] .date,html[data-theme="dark"] .action,html[data-theme="dark"] .secondary,html[data-theme="dark"] .password-toggle,html[data-theme="dark"] .theme-toggle{background:#162c43;color:#dce9f6;border-color:#31485f}
html[data-theme="dark"] .icon:hover,html[data-theme="dark"] .nav-btn:hover{background:rgba(255,255,255,.08)}
html[data-theme="dark"] .metric .micon{background:#183250}
html[data-theme="dark"] .progress{background:#263c52}
html[data-theme="dark"] th{color:#9fb1c5}
html[data-theme="dark"] th,html[data-theme="dark"] td{border-color:#263b51}
html[data-theme="dark"] .task,html[data-theme="dark"] .contest-card,html[data-theme="dark"] .practice-option,html[data-theme="dark"] .support-student,html[data-theme="dark"] .ranking-row,html[data-theme="dark"] .analysis-item{background:#102338;color:var(--text);border-color:#2a4057}
html[data-theme="dark"] .practice-option:hover{background:#152d47;border-color:#4c78ab}
html[data-theme="dark"] .practice-option.correct{background:#123b30;border-color:#2eaa7c}
html[data-theme="dark"] .practice-option.wrong{background:#45212a;border-color:#d85c68}
html[data-theme="dark"] .practice-comment,html[data-theme="dark"] .practice-check,html[data-theme="dark"] .practice-help span,html[data-theme="dark"] .timer-help span,html[data-theme="dark"] .invite-box{background:#142b43;color:#c8d8e8;border-color:#30475e}
html[data-theme="dark"] .support-message.received{background:#172d44;color:#e6f0fa}
html[data-theme="dark"] .support-message.sent{background:#1b4b78;color:#fff}
html[data-theme="dark"] .logo-preview{background:#0b1b2d;border-color:#385169}
html[data-theme="dark"] .loading{background:rgba(7,17,31,.88);color:#fff}
html[data-theme="dark"] .empty,html[data-theme="dark"] .muted,html[data-theme="dark"] .task small,html[data-theme="dark"] .contest-card small{color:var(--muted)}
html[data-theme="dark"] .student-alert-panel{background:#382b13;border-color:#795b20}
html[data-theme="dark"] .student-alert-panel p{color:#e9c77d}
html[data-theme="dark"] .overdue-summary{background:#342812;border-color:#73571f}
html[data-theme="dark"] .overdue-summary span{color:#e8c57a}
html[data-theme="dark"] .schedule-card{box-shadow:0 8px 22px rgba(0,0,0,.18)}

@media(max-width:560px){.theme-toggle-auth{top:12px;right:12px}.topbar .theme-toggle-app{width:40px;padding:8px}.topbar .theme-toggle-app .theme-label{display:none}.theme-toggle-auth .theme-label{display:none}.theme-toggle-auth{width:42px;padding:8px}}

/* Atualização: gráficos de rendimento e rankings separados */
.performance-bars{display:grid;gap:14px;margin-top:16px}.performance-bar-row{display:grid;gap:7px}.performance-bar-label{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:13px}.performance-bar-label span{color:var(--muted);font-weight:700}.performance-bar-label strong{font-size:15px}.performance-track{height:12px;border-radius:999px;background:#e9eef5;overflow:hidden}.performance-fill{display:block;height:100%;min-width:0;border-radius:inherit;transition:width .35s ease}.performance-fill.questions{background:#2a77ff}.performance-fill.correct{background:#22a875}.performance-fill.completed{background:#7c3aed}.performance-fill.pending{background:#f59e0b}.performance-source{display:flex;gap:10px 18px;flex-wrap:wrap;padding-top:12px;margin-top:2px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.performance-source.compact{padding-top:10px;margin-top:12px}.performance-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.student-performance-card{padding:17px;border:1px solid var(--line);border-radius:16px;background:#fff}.student-performance-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:8px}.student-performance-head>div{display:grid;gap:3px}.student-performance-head small{color:var(--muted)}.student-performance-card .performance-bars{gap:10px}.student-performance-card .performance-track{height:9px}.ranking-columns{display:grid;grid-template-columns:1fr;gap:18px}.ranking-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.ranking-title h3{margin:0 0 4px}.schedule-ranking .rank-points strong{color:#7c3aed}
html[data-theme="dark"] .student-performance-card{background:#102338;border-color:#2a4057}html[data-theme="dark"] .performance-track{background:#263b52}html[data-theme="dark"] .performance-source{border-color:#2a4057}
@media(max-width:900px){.performance-overview-grid{grid-template-columns:1fr}}@media(max-width:560px){.student-performance-head{align-items:stretch;flex-direction:column}.student-performance-head .action{width:100%}.performance-source{display:grid;grid-template-columns:1fr 1fr;gap:8px}.performance-bar-label{font-size:12px}}


/* Destaque amarelo para anotações do caderno de erros */
.review-note{margin:14px 0;padding:14px 16px;border:1px solid #e0b92f;border-left:5px solid #d6a900;border-radius:12px;background:#fff3a8;color:#4b3900;line-height:1.6;white-space:pre-wrap;box-shadow:0 5px 14px rgba(140,104,0,.08)}
.review-note strong{display:block;margin-bottom:5px;color:#5b4300}
.review-note span{display:block}
html[data-theme="dark"] .review-note{background:#4b3d0d;color:#fff0a8;border-color:#8f731b;border-left-color:#e0b92f}
html[data-theme="dark"] .review-note strong{color:#ffe47a}


/* Revisão inteligente do caderno de erros */
.smart-review-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;background:linear-gradient(135deg,#f7fbff,#fff9e8);border-color:#d8e7f5}
.smart-review-hero h3{margin:10px 0 7px;font-size:22px}.smart-review-hero p{margin:0 0 10px;max-width:760px;color:var(--muted);line-height:1.6}.smart-review-hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.review-filter-actions{display:flex;gap:7px;flex-wrap:wrap}.review-filter{border:1px solid var(--line);background:var(--surface,#fff);color:var(--text);padding:8px 12px;border-radius:999px;font-weight:800;cursor:pointer}.review-filter.active{background:#0b2949;color:#fff;border-color:#0b2949}.smart-error-card{transition:.2s ease}.smart-error-card.filtered-out{display:none}.error-badges{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.review-status{border:1px solid transparent}.review-status.stage-due{background:#ffe1e4;color:#a72837;border-color:#efb0b7}.review-status.stage-24h{background:#eaf2ff;color:#2457a6;border-color:#bdd2f3}.review-status.stage-7d{background:#fff3cf;color:#845b00;border-color:#edd48b}.review-status.stage-30d{background:#eee7ff;color:#633bb0;border-color:#d0bdf6}.review-status.stage-mastered{background:#dff7eb;color:#14724d;border-color:#aee0c9}.review-answer-preview,.review-explanation-preview{color:var(--muted);font-style:italic}.review-schedule{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.review-schedule>div{display:grid;gap:3px;padding:11px 13px;border-radius:12px;background:#f5f8fc;border:1px solid var(--line)}.review-schedule span{color:var(--muted);font-size:13px}.review-timeline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 16px}.review-step{position:relative;display:flex;align-items:center;gap:7px;padding:9px;border-radius:11px;background:#f3f5f8;color:#718096;font-size:12px;font-weight:800}.review-step i{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#d9e1ea;font-style:normal;flex:0 0 auto}.review-step.current{background:#fff3cf;color:#785400;box-shadow:inset 0 0 0 1px #ead17f}.review-step.current i{background:#f1c84c;color:#493300}.review-step.complete{background:#e2f6ec;color:#176c4b}.review-step.complete i{background:#25a875;color:#fff}.smart-review-modal{display:grid;gap:16px}.smart-review-modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;color:var(--muted)}.review-question-box{padding:18px;border-radius:15px;background:#f6f8fb;border:1px solid var(--line)}.review-question-box small{color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}.review-question-box h3{line-height:1.55;margin:10px 0}.review-answer-block{padding:16px;border-radius:14px;background:#eef6ff;border:1px solid #cbdff5}.review-answer-block p{margin-top:0}.review-outcome-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.review-outcome-actions p{grid-column:1/-1;margin:0}.btn.danger{background:#c43e4d;color:#fff}.btn.success{background:#1f9b69;color:#fff}
html[data-theme="dark"] .smart-review-hero{background:linear-gradient(135deg,#13263b,#332b12);border-color:#344a61}html[data-theme="dark"] .review-filter{background:#152436}html[data-theme="dark"] .review-filter.active{background:#e1b94b;color:#1f2630;border-color:#e1b94b}html[data-theme="dark"] .review-schedule>div,html[data-theme="dark"] .review-question-box{background:#172638}html[data-theme="dark"] .review-step{background:#1a293b;color:#9bacbe}html[data-theme="dark"] .review-answer-block{background:#142d47;border-color:#365c80}html[data-theme="dark"] .review-status.stage-due{background:#4a2026;color:#ffbdc4;border-color:#7d3842}html[data-theme="dark"] .review-status.stage-24h{background:#18345a;color:#bcd8ff;border-color:#315886}html[data-theme="dark"] .review-status.stage-7d{background:#483a13;color:#ffe08b;border-color:#76601f}html[data-theme="dark"] .review-status.stage-30d{background:#332555;color:#dac9ff;border-color:#59458d}html[data-theme="dark"] .review-status.stage-mastered{background:#153d2e;color:#a8efcf;border-color:#2c6c51}
@media(max-width:820px){.smart-review-hero{align-items:stretch;flex-direction:column}.smart-review-hero-actions{justify-content:flex-start}.review-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.review-schedule{grid-template-columns:1fr}.review-outcome-actions{grid-template-columns:1fr}.review-outcome-actions p{grid-column:auto}.review-filter-actions{margin-top:10px}.review-filter{font-size:11px;padding:7px 9px}.review-timeline{grid-template-columns:1fr 1fr}.smart-review-hero-actions .btn{width:100%}}

/* Metas diárias e sequência de estudos */
.goal-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px;border-radius:24px;background:linear-gradient(135deg,#0b2949,#154f77);color:#fff;box-shadow:var(--shadow)}.goal-hero h3{margin:5px 0 9px;font-size:29px}.goal-hero p{margin:0;max-width:720px;color:#c7daea;line-height:1.6}.goal-ring{--goal-progress:0deg;width:142px;height:142px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--gold) var(--goal-progress),rgba(255,255,255,.14) 0);position:relative}.goal-ring:before{content:"";position:absolute;inset:13px;border-radius:50%;background:#103554}.goal-ring>div{position:relative;z-index:1;text-align:center}.goal-ring strong{display:block;font-size:29px;color:#ffd06a}.goal-ring span{font-size:12px;color:#d6e4ef}.daily-goals-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}.daily-goal-card{padding:17px;border:1px solid var(--line);border-radius:17px;background:#fff;position:relative;overflow:hidden}.daily-goal-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#2a77ff}.daily-goal-card.goal-green:before{background:#22a875}.daily-goal-card.goal-gold:before{background:#e5a51e}.daily-goal-card.goal-purple:before{background:#7c3aed}.daily-goal-card.goal-complete{box-shadow:inset 0 0 0 1px rgba(34,168,117,.18)}.daily-goal-head{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}.daily-goal-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#edf3ff;font-size:18px}.daily-goal-head strong,.daily-goal-head small{display:block}.daily-goal-head small{color:var(--muted);font-size:11px;margin-top:2px}.daily-goal-head b{font-size:13px;color:var(--muted)}.daily-goal-value{display:flex;align-items:baseline;gap:5px;margin:17px 0 9px}.daily-goal-value strong{font-size:28px}.daily-goal-value span{color:var(--muted);font-size:12px}.daily-goal-track{height:9px;border-radius:999px;background:#e9eef5;overflow:hidden}.daily-goal-track i{display:block;height:100%;border-radius:inherit;background:#2a77ff}.goal-green .daily-goal-track i{background:#22a875}.goal-gold .daily-goal-track i{background:#e5a51e}.goal-purple .daily-goal-track i{background:#7c3aed}.weekly-goal-list{display:grid;gap:4px}.weekly-goal-list>div{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 4px;border-bottom:1px solid var(--line)}.weekly-goal-list>div:last-child{border-bottom:0}.weekly-goal-list span{color:var(--muted)}.goal-medals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.goal-medal{display:grid;justify-items:center;gap:3px;padding:16px 10px;border:1px dashed var(--line);border-radius:15px;background:#f5f7fa;filter:grayscale(1);opacity:.55;text-align:center}.goal-medal.earned{filter:none;opacity:1;background:#fff9e6;border-style:solid;border-color:#ecd07e}.goal-medal span{font-size:30px}.goal-medal small{color:var(--muted);font-size:11px}.streak-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:18px}.streak-day{min-height:48px;padding:7px;border:1px solid var(--line);border-radius:11px;background:#eef2f6;color:#728298;display:flex;justify-content:space-between;align-items:flex-start;gap:4px}.streak-day span{font-weight:900;font-size:12px}.streak-day small{font-size:9px}.streak-day.active{background:#dff6eb;color:#126a48;border-color:#addfc8}.streak-day.today{box-shadow:inset 0 0 0 2px #e6ad31}.streak-calendar-legend{display:flex;gap:15px;flex-wrap:wrap;margin-top:13px;color:var(--muted);font-size:12px}.streak-calendar-legend span{display:flex;align-items:center;gap:6px}.streak-calendar-legend i{width:14px;height:14px;border-radius:4px;background:#eef2f6;border:1px solid var(--line)}.streak-calendar-legend i.active{background:#dff6eb;border-color:#addfc8}.streak-calendar-legend i.today{box-shadow:inset 0 0 0 2px #e6ad31}.goal-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:17px}.goal-student-card{padding:17px;border:1px solid var(--line);border-radius:17px;background:#fff}.goal-student-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.goal-student-head strong,.goal-student-head small{display:block}.goal-student-head small{margin-top:3px;color:var(--muted)}.goal-student-streak{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:7px;align-items:center;margin:14px 0;padding:10px 12px;border-radius:12px;background:#f5f7fa}.goal-student-streak span{color:var(--muted);font-size:11px}.goal-mini-bars{display:grid;gap:9px}.goal-mini-bars>div>span{display:flex;justify-content:space-between;gap:10px;margin-bottom:4px;color:var(--muted);font-size:11px}.goal-mini-bars b{color:var(--text)}.goal-mini-bars i{display:block;height:7px;border-radius:999px;background:#e8edf3;overflow:hidden}.goal-mini-bars em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2a77ff,#22a875)}.goal-student-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px;padding-top:13px;border-top:1px solid var(--line)}.goal-modal-intro{padding:13px 14px;border-radius:13px;background:#f4f7fb}.goal-modal-intro p{margin:5px 0 0}.alert-badge{color:#a43a45;background:#ffe7ea}
html[data-theme="dark"] .goal-hero{background:linear-gradient(135deg,#102b45,#173d55)}html[data-theme="dark"] .goal-ring:before{background:#122d45}html[data-theme="dark"] .daily-goal-card,html[data-theme="dark"] .goal-student-card{background:#102338;border-color:#2a4057}html[data-theme="dark"] .daily-goal-icon{background:#183250}html[data-theme="dark"] .daily-goal-track,html[data-theme="dark"] .goal-mini-bars i{background:#263b52}html[data-theme="dark"] .goal-medal{background:#142638;border-color:#34495f}html[data-theme="dark"] .goal-medal.earned{background:#3a3016;border-color:#776220}html[data-theme="dark"] .streak-day,html[data-theme="dark"] .streak-calendar-legend i{background:#17283a;border-color:#30465c;color:#9fb1c5}html[data-theme="dark"] .streak-day.active,html[data-theme="dark"] .streak-calendar-legend i.active{background:#153c2e;border-color:#2c6d51;color:#a6e8ca}html[data-theme="dark"] .goal-student-streak,html[data-theme="dark"] .goal-modal-intro{background:#172b40}html[data-theme="dark"] .weekly-goal-list>div,html[data-theme="dark"] .goal-student-actions{border-color:#2a4057}
@media(max-width:1050px){.daily-goals-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.goal-admin-grid{grid-template-columns:1fr}}@media(max-width:700px){.goal-hero{align-items:flex-start;flex-direction:column}.goal-ring{width:118px;height:118px}.goal-medals{grid-template-columns:1fr}.streak-calendar{gap:5px}.streak-day{min-height:42px;padding:5px}.goal-student-streak{grid-template-columns:auto 1fr}.goal-student-actions{display:grid;grid-template-columns:1fr 1fr}.goal-student-actions .action{width:100%}}@media(max-width:520px){.daily-goals-grid{grid-template-columns:1fr}.goal-hero h3{font-size:24px}.streak-calendar{grid-template-columns:repeat(7,1fr)}.streak-day small{display:none}.goal-student-head{flex-direction:column}.goal-student-head .badge{align-self:flex-start}}


/* Desempenho detalhado por disciplina e assunto */
.period-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}.period-comparison article{padding:16px;border:1px solid var(--line);border-radius:16px;background:#f7f9fc}.period-comparison span,.period-comparison strong,.period-comparison small{display:block}.period-comparison span{color:var(--muted);font-size:12px;font-weight:800}.period-comparison strong{margin:5px 0 2px;font-size:27px}.period-comparison small{color:var(--muted)}.period-track,.weak-point-track{height:7px;margin-top:11px;border-radius:999px;background:#e5ebf2;overflow:hidden}.period-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2a77ff,#22a875)}.performance-summary-chips{display:flex;gap:7px;flex-wrap:wrap}.performance-summary-chips span{padding:7px 10px;border-radius:999px;background:#f0f4f9;color:#52647a;font-size:12px;font-weight:900}.weak-point-list{display:grid;gap:11px}.weak-point-card{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff}.weak-point-rank{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#fff0d6;color:#9b6200;font-weight:900}.weak-point-content{min-width:0}.weak-point-content strong{font-size:13px}.weak-point-content p{margin:5px 0;color:var(--muted);font-size:12px}.weak-point-content small{display:block;margin-top:7px;color:var(--muted)}.weak-point-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d9505d,#f5b73b)}.performance-level{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}.performance-mastered{color:#14724d;background:#e1f6ec}.performance-good{color:#155bc5;background:#e7efff}.performance-attention{color:#8c6208;background:#fff1cc}.performance-critical{color:#b43a46;background:#ffe5e8}.performance-starting{color:#617086;background:#edf1f5}.detailed-performance-table table{min-width:1120px}.detailed-performance-table td small.block{display:block;color:var(--muted);margin-top:3px}.performance-source-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.performance-source-cards article{padding:18px;border:1px solid var(--line);border-radius:15px;background:#f7f9fc;text-align:center}.performance-source-cards strong{display:block;font-size:28px}.performance-source-cards span{color:var(--muted);font-size:12px}.detailed-student-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:16px}.detailed-student-card{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:17px;background:#fff}.detailed-student-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.detailed-student-head strong,.detailed-student-head small{display:block}.detailed-student-head small{margin-top:3px;color:var(--muted)}.detailed-student-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.detailed-student-metrics span{padding:10px 8px;border-radius:12px;background:#f4f7fa;color:var(--muted);font-size:10px;text-align:center}.detailed-student-metrics strong{display:block;color:var(--text);font-size:18px}.student-top-weak{display:grid;gap:3px;padding:13px;border-radius:13px;background:#fff5e1;border:1px solid #f2d18c}.student-top-weak small,.student-top-weak span{color:#846b39}.student-top-weak.positive{background:#eaf8f1;border-color:#bce4d1}.student-top-weak.positive small,.student-top-weak.positive span{color:#39745d}
html[data-theme="dark"] .period-comparison article,html[data-theme="dark"] .performance-source-cards article,html[data-theme="dark"] .weak-point-card,html[data-theme="dark"] .detailed-student-card{background:#102338;border-color:#2a4057}html[data-theme="dark"] .performance-summary-chips span,html[data-theme="dark"] .detailed-student-metrics span{background:#172b40;color:#a9bbcd}html[data-theme="dark"] .period-track,html[data-theme="dark"] .weak-point-track{background:#273c52}html[data-theme="dark"] .student-top-weak{background:#3b3016;border-color:#6d5922}html[data-theme="dark"] .student-top-weak.positive{background:#15392d;border-color:#2c6c51}html[data-theme="dark"] .performance-mastered{background:#153d2e;color:#a8efcf}html[data-theme="dark"] .performance-good{background:#18345a;color:#bcd8ff}html[data-theme="dark"] .performance-attention{background:#483a13;color:#ffe08b}html[data-theme="dark"] .performance-critical{background:#4a2026;color:#ffbdc4}html[data-theme="dark"] .performance-starting{background:#26384b;color:#b1c1d1}
@media(max-width:1000px){.detailed-student-grid{grid-template-columns:1fr}.detailed-student-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.period-comparison{grid-template-columns:1fr}.performance-source-cards{grid-template-columns:1fr}.weak-point-card{grid-template-columns:auto 1fr}.weak-point-card .btn{grid-column:1/-1;width:100%}.performance-summary-chips{margin-top:10px}.detailed-student-head{flex-direction:column}}


/* Cronograma adaptativo inteligente */
.schedule-meta-pills{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.schedule-meta-pill,.table-plan-pill{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:#f4f7fb;color:#53677e;font-size:10px;font-weight:900}.schedule-meta-pill.priority-high,.table-plan-pill.priority-high{background:#ffe7e9;color:#a83440;border-color:#efb8be}.schedule-meta-pill.priority-normal,.table-plan-pill.priority-normal{background:#fff3cf;color:#815b05;border-color:#efd692}.schedule-meta-pill.priority-low,.table-plan-pill.priority-low{background:#eef2f6;color:#657489}.schedule-meta-pill.fixed{background:#e7efff;color:#245ca9;border-color:#bdd1f2}.schedule-meta-pill.adapted{background:#e5f7ee;color:#17704d;border-color:#b5e1cc}.schedule-adaptation-reason{display:grid;gap:3px;margin:10px 0;padding:10px 12px;border-radius:11px;background:#eef8f3;border:1px solid #c7e8d7;color:#24654c;font-size:11px}.schedule-adaptation-reason span{line-height:1.45}.adapted-text{color:#16805a;font-weight:800}.adaptive-callout{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 20px;border:1px solid #efd28a;border-radius:17px;background:linear-gradient(135deg,#fff8e5,#fffdf7)}.adaptive-callout strong{display:block;margin-bottom:4px}.adaptive-callout p{margin:0;color:#806b40}.schedule-adaptive-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.adaptive-intro{margin-bottom:15px;padding:15px;border:1px solid #c9dff4;border-radius:14px;background:#eef7ff}.adaptive-intro strong{font-size:16px}.adaptive-intro p{margin:6px 0 0;color:#5f7185;line-height:1.5}.adaptive-student{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;border-radius:12px;background:#f4f7fb}.adaptive-student span{color:var(--muted);font-size:12px}.adaptive-preview-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}.adaptive-preview-summary article{padding:14px;border:1px solid var(--line);border-radius:13px;background:#f7f9fc;text-align:center}.adaptive-preview-summary strong{display:block;font-size:24px}.adaptive-preview-summary span{color:var(--muted);font-size:11px}.adaptive-preview-list{display:grid;gap:9px;max-height:330px;overflow:auto;margin-top:12px;padding-right:3px}.adaptive-preview-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 14px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff}.adaptive-preview-list strong,.adaptive-preview-list span{display:block}.adaptive-preview-list span{margin-top:2px;color:var(--muted);font-size:11px}.adaptive-preview-list p{grid-column:1/-1;margin:0;color:#567064;font-size:11px}.adaptive-date-change{display:grid;justify-items:end;gap:2px}.adaptive-date-change del{color:#a84a54;font-size:11px}.adaptive-date-change b{color:#16714e;font-size:12px}.adaptive-date-change small{color:var(--muted)}.adaptive-deadline{margin-top:10px;padding:12px 14px;border:1px solid #b9d5f2;border-radius:12px;background:#edf6ff;color:#275b8d;line-height:1.45}.adaptive-warning{margin-top:12px;padding:12px 14px;border:1px solid #efcd80;border-radius:12px;background:#fff6db;color:#7d5b0b}.adaptive-empty{margin-top:10px;padding:15px;border:1px solid #bce4d1;border-radius:13px;background:#eaf8f1;color:#287257;font-weight:800}
html[data-theme="dark"] .schedule-meta-pill,html[data-theme="dark"] .table-plan-pill,html[data-theme="dark"] .adaptive-preview-summary article,html[data-theme="dark"] .adaptive-preview-list article{background:#142b40;border-color:#2e465e;color:#bed0e2}html[data-theme="dark"] .schedule-meta-pill.priority-high,html[data-theme="dark"] .table-plan-pill.priority-high{background:#482128;color:#ffc0c6;border-color:#7b3943}html[data-theme="dark"] .schedule-meta-pill.priority-normal,html[data-theme="dark"] .table-plan-pill.priority-normal{background:#443714;color:#ffe29a;border-color:#705c24}html[data-theme="dark"] .schedule-meta-pill.fixed{background:#18395f;color:#c3dcff;border-color:#315d8c}html[data-theme="dark"] .schedule-meta-pill.adapted{background:#173b2e;color:#a8e8ca;border-color:#2e6a51}html[data-theme="dark"] .schedule-adaptation-reason,html[data-theme="dark"] .adaptive-empty{background:#15372c;border-color:#2e6a51;color:#b1ead0}html[data-theme="dark"] .adaptive-callout{background:linear-gradient(135deg,#3a3017,#282414);border-color:#665523}html[data-theme="dark"] .adaptive-callout p{color:#dcc680}html[data-theme="dark"] .adaptive-intro{background:#142d45;border-color:#31536f}html[data-theme="dark"] .adaptive-intro p{color:#b0c2d3}html[data-theme="dark"] .adaptive-student,html[data-theme="dark"] .adaptive-preview-summary article{background:#172b40}html[data-theme="dark"] .adaptive-deadline{background:#17334d;border-color:#315d82;color:#bfddf8}html[data-theme="dark"] .adaptive-warning{background:#423613;border-color:#6f5b24;color:#ffe39a}
@media(max-width:760px){.adaptive-callout{align-items:stretch;flex-direction:column}.adaptive-callout .btn{width:100%}.schedule-adaptive-actions{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.schedule-adaptive-actions .progress-summary{grid-column:1/-1}.adaptive-preview-summary{grid-template-columns:1fr 1fr 1fr}.adaptive-preview-list article{grid-template-columns:1fr}.adaptive-date-change{justify-items:start}.adaptive-preview-list p{grid-column:auto}}@media(max-width:520px){.schedule-adaptive-actions{grid-template-columns:1fr}.schedule-adaptive-actions .progress-summary{grid-column:auto}.adaptive-preview-summary{grid-template-columns:1fr}.adaptive-preview-list{max-height:280px}}


/* Perfil de estudos e disponibilidade */
.profile-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px;border-radius:24px;background:linear-gradient(125deg,#0a2441,#1b4f77);color:#fff;box-shadow:var(--shadow)}.profile-hero h3{margin:4px 0 8px;font-size:28px}.profile-hero p{margin:0;max-width:720px;color:#c8d9e8}.profile-completion{min-width:150px;padding:17px;border:1px solid rgba(255,255,255,.17);border-radius:17px;background:rgba(255,255,255,.08);text-align:center}.profile-completion strong{display:block;color:var(--gold);font-size:31px}.profile-completion span{font-size:12px;color:#d6e2ed}.planning-profile-callout{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px;padding:17px 20px;border:1px solid #bfd6ef;border-radius:17px;background:linear-gradient(135deg,#eef7ff,#f9fcff)}.planning-profile-callout strong{display:block;margin-bottom:4px}.planning-profile-callout p{margin:0;color:#5a6f85}.profile-form{margin-top:12px}.profile-form-section{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin-top:15px;padding:18px;border:1px solid var(--line);border-radius:17px;background:#f8fafc}.profile-form-section>div:first-child{grid-column:1/-1;margin-bottom:4px}.profile-form-section>div:first-child strong,.profile-form-section>div:first-child small{display:block}.profile-form-section>div:first-child small{margin-top:3px;color:var(--muted);font-weight:500}.availability-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.availability-day{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.availability-day label{margin:8px 0;font-size:11px}.availability-day input{padding:10px}.availability-toggle{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px}.availability-toggle input{width:auto}.availability-toggle strong{font-size:13px}.study-method-grid{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.study-method-option{display:flex;grid-template-columns:auto 1fr;align-items:center;gap:7px;margin:0;padding:9px 11px;border:1px solid var(--line);border-radius:999px;background:#fff}.study-method-option input{width:auto}.study-method-option span{font-size:12px}.study-profile-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.study-profile-summary article{padding:16px;border:1px solid var(--line);border-radius:15px;background:#f7f9fc;text-align:center}.study-profile-summary article>span{font-size:21px}.study-profile-summary strong,.study-profile-summary small{display:block}.study-profile-summary strong{margin:4px 0;font-size:21px}.study-profile-summary small{color:var(--muted)}.profile-summary-details{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.profile-summary-details>span:not(.badge){padding:7px 10px;border-radius:999px;background:#eef3f8;color:#566a80;font-size:11px;font-weight:800}.study-profile-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:15px}.study-profile-admin-card{display:grid;gap:13px;padding:18px;border:1px solid var(--line);border-radius:17px;background:#fff}.study-profile-admin-head{display:flex;justify-content:space-between;gap:12px}.study-profile-admin-head strong,.study-profile-admin-head small{display:block}.study-profile-admin-head small{margin-top:3px;color:var(--muted)}.profile-progress{height:7px;border-radius:999px;background:#e8eef4;overflow:hidden}.profile-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2a77ff,#22a875)}.study-profile-admin-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.study-profile-admin-metrics span{padding:10px;border-radius:12px;background:#f4f7fa;color:var(--muted);font-size:10px;text-align:center}.study-profile-admin-metrics strong{display:block;color:var(--text);font-size:15px}.profile-contest-chips{display:flex;gap:6px;flex-wrap:wrap}.profile-contest-chips span{padding:5px 8px;border-radius:999px;background:#e8f0ff;color:#245da8;font-size:10px;font-weight:900}.profile-invite-note,.profile-source-hint{padding:11px 13px;border-radius:12px;background:#eef7ff;color:#45657e;font-size:12px}.success{background:#e2f6ed;color:#176d4c}.alert-badge{color:#a63a45;background:#ffe6e9}
html[data-theme="dark"] .planning-profile-callout,html[data-theme="dark"] .profile-form-section,html[data-theme="dark"] .study-profile-summary article,html[data-theme="dark"] .study-profile-admin-card{background:#102338;border-color:#2a4057}html[data-theme="dark"] .availability-day,html[data-theme="dark"] .study-method-option{background:#142b40;border-color:#31485f}html[data-theme="dark"] .profile-summary-details>span:not(.badge),html[data-theme="dark"] .study-profile-admin-metrics span{background:#172b40;color:#aec0d1}html[data-theme="dark"] .profile-progress{background:#2a4057}html[data-theme="dark"] .profile-invite-note,html[data-theme="dark"] .profile-source-hint{background:#142d45;color:#b4c7d8}html[data-theme="dark"] .planning-profile-callout p{color:#b0c2d3}
@media(max-width:1050px){.availability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.study-profile-admin-grid{grid-template-columns:1fr}}@media(max-width:720px){.profile-hero{align-items:flex-start;flex-direction:column}.profile-completion{width:100%}.planning-profile-callout{align-items:stretch;flex-direction:column}.planning-profile-callout .btn{width:100%}.profile-form-section{grid-template-columns:1fr}.study-profile-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.study-profile-admin-metrics{grid-template-columns:1fr 1fr 1fr}}@media(max-width:480px){.availability-grid,.study-profile-summary{grid-template-columns:1fr}.study-profile-admin-metrics{grid-template-columns:1fr}.study-profile-admin-head{flex-direction:column}}

/* ===== EDITAIS VERTICALIZADOS ===== */
.edict-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.edict-card{display:grid;gap:16px;padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--card);box-shadow:0 10px 30px rgba(20,41,71,.07)}.edict-card.archived{opacity:.76}.edict-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.edict-card-head h3{margin:9px 0 4px;font-size:21px}.edict-card-head p,.edict-description{margin:0;color:var(--muted)}.edict-date{display:grid;gap:3px;min-width:150px;padding:12px;border-radius:14px;background:#f4f7fb;text-align:right}.edict-date strong{font-size:14px}.edict-date span{color:var(--muted);font-size:12px}.edict-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.edict-stat-grid span{display:grid;gap:2px;padding:10px;border-radius:12px;background:#f7f9fc;color:var(--muted);font-size:11px;text-align:center}.edict-stat-grid strong{color:var(--text);font-size:17px}.edict-actions{display:flex;flex-wrap:wrap;gap:8px}.edict-archived{color:#566579;background:#e9edf2}.edict-student-list{display:grid;gap:8px;max-height:390px;overflow:auto}.edict-student-option{display:flex;grid-template-columns:auto 1fr;align-items:center;gap:10px;margin:0;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.edict-student-option input{width:auto}.edict-student-option span{display:grid;gap:2px}.edict-student-option small{color:var(--muted)}.edict-import-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:16px;padding:14px;border:1px dashed #b9c9da;border-radius:14px;background:#f7f9fc;color:var(--muted)}.edict-import-preview>div{display:grid;gap:2px;text-align:center}.edict-import-preview strong{color:var(--text);font-size:20px}.edict-import-preview small{grid-column:1/-1}.error-text{grid-column:1/-1;color:var(--red);font-weight:800}.edict-detail-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:28px;border-radius:24px;background:linear-gradient(125deg,#0a2441,#123d69);color:#fff;box-shadow:var(--shadow)}.edict-detail-hero h3{margin:10px 0 6px;font-size:30px}.edict-detail-hero p{margin:0;color:#c8d7e6}.edict-back{border:0;background:transparent;color:#d8e6f4;font-weight:900;padding:0}.edict-detail-date{display:grid;gap:4px;min-width:190px;padding:18px;border:1px solid rgba(255,255,255,.15);border-radius:16px;background:rgba(255,255,255,.08);text-align:center}.edict-detail-date small,.edict-detail-date span{color:#c8d7e6}.edict-detail-date strong{color:var(--gold);font-size:22px}.edict-filter-bar{display:grid;grid-template-columns:minmax(240px,1fr) minmax(190px,280px) auto;gap:10px;align-items:center}.edict-filter-bar input,.edict-filter-bar select{margin:0}.edict-filter-bar span{color:var(--muted);font-size:13px;font-weight:800;text-align:right}.topic-method{display:inline-flex;padding:5px 8px;border-radius:999px;background:#e9f0ff;color:#1556c5;font-size:11px;font-weight:900}.topic-code{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block{display:block;margin-top:4px;color:var(--muted)}
html[data-theme="dark"] .edict-card,html[data-theme="dark"] .edict-date,html[data-theme="dark"] .edict-stat-grid span,html[data-theme="dark"] .edict-student-option,html[data-theme="dark"] .edict-import-preview{background:#102338;border-color:var(--line)}html[data-theme="dark"] .edict-date,html[data-theme="dark"] .edict-stat-grid span,html[data-theme="dark"] .edict-student-option{background:#142b42}html[data-theme="dark"] .topic-method{background:#173b69;color:#b9d5ff}html[data-theme="dark"] .edict-archived{background:#293a4d;color:#c7d3df}
@media(max-width:1080px){.edict-grid{grid-template-columns:1fr}.edict-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.edict-card-head,.edict-detail-hero{flex-direction:column}.edict-date,.edict-detail-date{width:100%;text-align:left}.edict-filter-bar{grid-template-columns:1fr}.edict-filter-bar span{text-align:left}.edict-import-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.edict-actions .btn,.edict-actions .action{flex:1 1 145px}.edict-detail-hero h3{font-size:25px}}

/* ===== IMPORTADOR DE SIMULADOS POR EXCEL ===== */
.table-subtitle{display:block;margin-top:4px;color:var(--muted);font-size:11px;font-weight:500;max-width:300px;white-space:normal}
.sim-card-main{min-width:0}.sim-card-side{display:grid;justify-items:end;align-content:center;gap:6px;min-width:160px;text-align:right}
.sim-card-side>strong{font-size:27px;color:#16805a}.sim-card-side>small{color:var(--muted)}
.sim-card-badges{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.sim-card-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:12px;font-weight:700}
.sim-open{color:#16734e;background:#e4f7ef}.sim-scheduled{color:#2457a6;background:#eaf2ff}.sim-closed{color:#a43a45;background:#ffe7ea}.sim-imported{color:#6d31a4;background:#f0e6ff}
.sim-import-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px}
.sim-import-summary article{display:grid;gap:3px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#f5f8fc}
.sim-import-summary article.ok{background:#e8f8f0;border-color:#b7e2cf}.sim-import-summary article.warn{background:#fff5dc;border-color:#eed394}
.sim-import-summary strong{font-size:22px}.sim-import-summary span{color:var(--muted);font-size:11px}
.sim-import-problems{display:grid;gap:5px;margin-top:10px;padding:12px;border-radius:12px;background:#fff5dc;border:1px solid #eed394}
.sim-import-problems span{font-size:12px;color:#715516}.sim-import-problems small{color:var(--muted)}
.sim-import-ready{margin-top:10px;padding:12px;border-radius:12px;background:#e8f8f0;color:#16734e;font-weight:800}
.sim-import-loading,.sim-import-error{margin-top:10px;padding:12px;border-radius:12px;background:#eef3f9}.sim-import-error{background:#ffe7ea;color:#a43a45;font-weight:800}
.sim-results-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.sim-results-summary article{display:grid;gap:4px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#f5f8fc;text-align:center}
.sim-results-summary strong{font-size:26px}.sim-results-summary span{color:var(--muted);font-size:11px}
.btn:disabled{cursor:not-allowed;opacity:.62;box-shadow:none}
html[data-theme="dark"] .sim-import-summary article,html[data-theme="dark"] .sim-results-summary article{background:#172b40;border-color:#30465c}
html[data-theme="dark"] .sim-import-summary article.ok,html[data-theme="dark"] .sim-import-ready{background:#153c2e;border-color:#2c6d51;color:#a6e8ca}
html[data-theme="dark"] .sim-import-summary article.warn,html[data-theme="dark"] .sim-import-problems{background:#3a3016;border-color:#776220}
html[data-theme="dark"] .sim-import-problems span{color:#f5d98c}
html[data-theme="dark"] .sim-import-loading{background:#172b40}
html[data-theme="dark"] .sim-import-error{background:#48232a;color:#ffb6bf}
@media(max-width:820px){.sim-import-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.sim-card-side{justify-items:stretch;text-align:left;min-width:0}.sim-card-side .btn{width:100%}}
@media(max-width:560px){.sim-import-summary,.sim-results-summary{grid-template-columns:1fr}.sim-card-meta{display:grid;gap:5px}}

/* ===== FILTROS AVANÇADOS DO BANCO DE QUESTÕES ===== */
.practice-filter-v2{overflow:visible}.practice-preset-bar{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:9px;margin:17px 0;padding:12px;border:1px solid var(--line);border-radius:15px;background:rgba(25,88,155,.035)}
.practice-preset-bar select{min-width:0}.practice-basic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.practice-quick-modes{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
.practice-mode-button{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:999px;padding:9px 12px;font-weight:800;cursor:pointer;transition:.18s ease}.practice-mode-button:hover{transform:translateY(-1px);border-color:#e3ad29}.practice-mode-button.active{background:#0b2340;color:#fff;border-color:#0b2340;box-shadow:0 7px 18px rgba(11,35,64,.18)}
.practice-advanced-details{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:rgba(25,88,155,.025)}.practice-advanced-details summary{cursor:pointer;padding:14px 16px;font-weight:900;list-style:none}.practice-advanced-details summary::-webkit-details-marker{display:none}.practice-advanced-details summary:after{content:"＋";float:right}.practice-advanced-details[open] summary:after{content:"−"}
.practice-advanced-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 16px 16px;border-top:1px solid var(--line);padding-top:15px}.practice-filter-footer{display:flex;justify-content:space-between;gap:10px;margin-top:15px}.practice-filter-footer .practice-start-button{min-width:210px}
.practice-question-toolbar{display:flex;justify-content:flex-end;margin:-2px 0 8px}.practice-reference{width:100%;padding-top:7px;border-top:1px dashed var(--line);color:var(--muted)}
html[data-theme="dark"] .practice-preset-bar,html[data-theme="dark"] .practice-advanced-details{background:rgba(255,255,255,.025)}html[data-theme="dark"] .practice-mode-button.active{background:#f5b73b;color:#10233d;border-color:#f5b73b}
@media(max-width:900px){.practice-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.practice-preset-bar,.practice-basic-grid,.practice-advanced-grid{grid-template-columns:1fr}.practice-preset-bar .btn,.practice-preset-bar .action{width:100%}.practice-filter-footer{display:grid}.practice-filter-footer .btn{width:100%}.practice-quick-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.practice-mode-button{border-radius:12px;text-align:left}}
@media(max-width:390px){.practice-quick-modes{grid-template-columns:1fr}}


/* ===== GERADOR AUTOMÁTICO DE CRONOGRAMA ===== */
.auto-schedule-intro{padding:16px;border-radius:16px;background:linear-gradient(135deg,#0b2340,#123f68);color:#fff}
.auto-schedule-intro strong{display:block;font-size:18px;margin-bottom:6px}.auto-schedule-intro p{margin:0;color:#d7e7f7;line-height:1.45}
.auto-schedule-note{padding:12px 14px;border:1px solid #eed394;border-radius:12px;background:#fff5dc;color:#715516;font-size:12px;line-height:1.5}
.auto-schedule-result{display:grid;gap:14px}.auto-schedule-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.auto-schedule-result-grid article{display:grid;gap:4px;padding:16px;border:1px solid var(--line);border-radius:15px;background:#f5f8fc;text-align:center}
.auto-schedule-result-grid strong{font-size:24px;color:#0b2340}.auto-schedule-result-grid span{font-size:11px;color:var(--muted)}
.auto-schedule-warnings{display:grid;gap:6px;padding:13px;border-radius:12px;background:#fff5dc;border:1px solid #eed394}
.auto-schedule-warnings span{font-size:12px;color:#715516}
html[data-theme="dark"] .auto-schedule-note,html[data-theme="dark"] .auto-schedule-warnings{background:#3a3016;border-color:#776220;color:#f5d98c}
html[data-theme="dark"] .auto-schedule-warnings span{color:#f5d98c}
html[data-theme="dark"] .auto-schedule-result-grid article{background:#172b40;border-color:#30465c}
html[data-theme="dark"] .auto-schedule-result-grid strong{color:#fff}
@media(max-width:560px){.auto-schedule-result-grid{grid-template-columns:1fr}}

/* ===== CENTRAL DE INTERVENÇÃO DO MENTOR ===== */
.intervention-hero{background:linear-gradient(135deg,#301016,#751d2d 58%,#0b2340)}
.intervention-toolbar{display:grid;gap:12px;margin-top:18px}.intervention-toolbar input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:13px;padding:0 14px;background:var(--panel,#fff);color:var(--text)}
.intervention-filters{display:flex;gap:8px;flex-wrap:wrap}.intervention-filter{border:1px solid var(--line);border-radius:999px;padding:9px 13px;background:transparent;color:var(--text);font-weight:800;cursor:pointer}.intervention-filter.active{background:#0b2340;color:#fff;border-color:#0b2340}
.intervention-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.intervention-card{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-left:5px solid #5d7287;border-radius:18px;background:var(--panel,#fff);box-shadow:0 12px 28px rgba(13,31,51,.06)}
.intervention-card.risk-critical{border-left-color:#c52d42}.intervention-card.risk-high{border-left-color:#e07120}.intervention-card.risk-attention{border-left-color:#e5b02d}.intervention-card.risk-good{border-left-color:#25a06f}
.intervention-card-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center}.intervention-card-head strong{display:block;font-size:16px}.intervention-card-head small{display:block;margin-top:3px;color:var(--muted)}.intervention-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#0b2340;color:#fff;font-size:19px;font-weight:900}
.intervention-risk{padding:7px 10px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}.intervention-risk.risk-critical{background:#ffe4e8;color:#a51930}.intervention-risk.risk-high{background:#ffeddd;color:#a04a0b}.intervention-risk.risk-attention{background:#fff4d7;color:#7a5b00}.intervention-risk.risk-good{background:#e4f7ef;color:#16734e}
.intervention-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.intervention-metrics div{display:grid;gap:2px;padding:10px 6px;border-radius:12px;background:#f4f7fa;text-align:center}.intervention-metrics strong{font-size:17px}.intervention-metrics span{color:var(--muted);font-size:10px;line-height:1.2}
.intervention-activity{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:11px;font-weight:700}.intervention-reasons{display:flex;gap:6px;flex-wrap:wrap}.intervention-reasons span{padding:7px 9px;border-radius:10px;background:#eef3f8;color:#344b62;font-size:11px}.intervention-actions{display:flex;gap:8px;flex-wrap:wrap}.intervention-actions .btn{flex:1;min-width:120px}
.intervention-alert-student{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px;border-radius:13px;background:#fff5dc;border:1px solid #eed394}.intervention-alert-student span{color:#715516;font-size:12px;font-weight:800}
html[data-theme="dark"] .intervention-toolbar input,html[data-theme="dark"] .intervention-card{background:#102238;border-color:#30465c}html[data-theme="dark"] .intervention-metrics div,html[data-theme="dark"] .intervention-reasons span{background:#172b40;color:#d7e5f4}html[data-theme="dark"] .intervention-alert-student{background:#3a3016;border-color:#776220}html[data-theme="dark"] .intervention-alert-student span{color:#f5d98c}
@media(max-width:980px){.intervention-grid{grid-template-columns:1fr}.intervention-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.intervention-card-head{grid-template-columns:auto minmax(0,1fr)}.intervention-risk{grid-column:1/-1;justify-self:start}.intervention-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.intervention-actions{display:grid}.intervention-actions .btn{width:100%}}

/* ===== MAPA DE DOMÍNIO DO EDITAL ===== */
.mastery-controls{display:grid;gap:15px}
.mastery-control-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mastery-map-list{display:grid;gap:18px;margin-top:14px}
.mastery-discipline{border:1px solid var(--line);border-radius:18px;padding:16px;background:var(--panel)}
.mastery-discipline-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.mastery-discipline-head h3{margin:0 0 4px}.mastery-discipline-head p{margin:0;color:var(--muted);font-size:12px}
.mastery-discipline-score{display:grid;justify-items:end}.mastery-discipline-score strong{font-size:24px}.mastery-discipline-score span{font-size:11px;color:var(--muted)}
.mastery-progress{height:8px;border-radius:999px;background:#e5ebf2;overflow:hidden}
.mastery-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d39a14,#16805a)}
.mastery-topic-list{display:grid;gap:10px;margin-top:14px}
.mastery-topic{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:16px;padding:14px;border:1px solid var(--line);border-left:5px solid #aab6c5;border-radius:14px;background:#fff}
.mastery-topic.mastery-mastered{border-left-color:#16805a}.mastery-topic.mastery-weak{border-left-color:#c53d4d}.mastery-topic.mastery-review{border-left-color:#7856c8}.mastery-topic.mastery-studying{border-left-color:#2457a6}
.mastery-topic-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.mastery-topic-title h4{margin:0;font-size:15px}.mastery-topic-title p{width:100%;margin:0;color:var(--muted);font-size:12px}
.mastery-topic-reason{margin:9px 0;color:var(--muted);font-size:12px;line-height:1.45}
.mastery-topic-stats{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0;font-size:11px;color:var(--muted)}
.mastery-topic-stats strong{color:var(--text)}
.mastery-topic-side{display:grid;align-content:center;justify-items:end;text-align:right;gap:5px}
.mastery-topic-side>strong{font-size:27px}.mastery-topic-side>span{font-size:11px;color:var(--muted);margin-bottom:8px}
.mastery-status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}
.mastery-not-started{background:#edf1f5;color:#637386}.mastery-studying{background:#eaf2ff;color:#2457a6}.mastery-review{background:#efe9ff;color:#6844b5}.mastery-mastered{background:#e4f7ef;color:#16734e}.mastery-weak{background:#ffe7ea;color:#a43a45}
html[data-theme="dark"] .mastery-discipline{background:#102338;border-color:#30465c}
html[data-theme="dark"] .mastery-topic{background:#172b40;border-color:#30465c}
html[data-theme="dark"] .mastery-progress{background:#294158}
html[data-theme="dark"] .mastery-not-started{background:#293b4e;color:#c8d5e2}
html[data-theme="dark"] .mastery-studying{background:#16365d;color:#a8caff}
html[data-theme="dark"] .mastery-review{background:#33265a;color:#d1c2ff}
html[data-theme="dark"] .mastery-mastered{background:#153c2e;color:#a6e8ca}
html[data-theme="dark"] .mastery-weak{background:#48232a;color:#ffb6bf}
@media(max-width:980px){.mastery-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
  .mastery-control-grid{grid-template-columns:1fr}
  .mastery-discipline-head{align-items:flex-start}
  .mastery-topic{grid-template-columns:1fr}
  .mastery-topic-side{justify-items:stretch;text-align:left}
  .mastery-topic-side .btn{width:100%}
}

/* ===== CENTRAL DE NOTIFICAÇÕES INTELIGENTES ===== */
.notification-toolbar{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.notification-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.notification-list{display:grid;gap:11px}
.notification-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px;border:1px solid var(--line);border-left:5px solid #aab6c5;border-radius:15px;background:#fff}
.notification-card.unread{box-shadow:0 7px 22px rgba(9,31,54,.08)}
.notification-card.notification-high{border-left-color:#d59618}
.notification-card.notification-urgent{border-left-color:#c43b4b;background:#fffafb}
.notification-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#edf2f7;font-size:21px}
.notification-content{min-width:0}.notification-content h4{margin:6px 0 4px;font-size:15px}.notification-content p{margin:0;color:var(--muted);font-size:13px;line-height:1.5;white-space:pre-wrap}.notification-content small{display:block;margin-top:8px;color:var(--muted);font-size:11px}
.notification-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.notification-category{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.notification-priority{padding:4px 7px;border-radius:999px;background:#fff0d1;color:#8c5e00;font-size:9px;font-weight:900;text-transform:uppercase}
.notification-urgent .notification-priority{background:#ffe3e7;color:#a12836}
.notification-actions{display:grid;gap:7px;justify-items:end}
.notification-preference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.notification-switch{display:flex!important;align-items:center;gap:9px;min-height:47px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.notification-switch input{width:18px;height:18px;margin:0}.notification-switch span{font-size:12px;font-weight:800}
.notification-browser-note{margin:12px 0 0;color:var(--muted);font-size:11px}
html[data-theme="dark"] .notification-card{background:#172b40;border-color:#30465c}
html[data-theme="dark"] .notification-card.notification-urgent{background:#321f29}
html[data-theme="dark"] .notification-icon{background:#263d54}
html[data-theme="dark"] .notification-switch{background:#102338;border-color:#30465c}
@media(max-width:980px){
  .notification-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .notification-preference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .notification-toolbar{width:100%;justify-content:stretch}.notification-toolbar .btn{flex:1}
  .notification-filter-grid,.notification-preference-grid{grid-template-columns:1fr}
  .notification-card{grid-template-columns:42px minmax(0,1fr);align-items:start}
  .notification-icon{width:40px;height:40px}
  .notification-actions{grid-column:1/-1;display:flex;justify-content:flex-end;flex-wrap:wrap}
  .notification-actions .btn{flex:1}
}


/* ===== QUESTÕES DE CERTO OU ERRADO ===== */
.question-option-hidden{display:none!important}
.question-type-help{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#f4f8fc;color:var(--muted);font-size:12px}
.question-import-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px}
.question-import-summary article{display:grid;justify-items:center;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.question-import-summary strong{font-size:22px}.question-import-summary span{font-size:10px;color:var(--muted);text-align:center}
.question-import-summary article.ok{background:#e8f8f0;border-color:#a8d9c2;color:#16734e}
.question-import-summary article.warn{background:#fff7dc;border-color:#ead18b;color:#725613}
.question-import-summary article.danger{background:#fff0f2;border-color:#e2b1b8;color:#8f2835}
.question-import-problems{margin-top:10px;padding:11px;border:1px solid #e2b1b8;border-radius:12px;background:#fff2f4;color:#8f2835;font-size:12px}
.question-import-problems ul{margin:7px 0 0;padding-left:18px}
.question-import-ready{margin-top:10px;padding:12px;border:1px solid #a8d9c2;border-radius:12px;background:#e8f8f0;color:#16734e;font-weight:800}
.import-publication-choice{align-items:flex-start;margin-top:12px;padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
.import-publication-choice span{display:grid;gap:3px}.import-publication-choice small{color:var(--muted);font-weight:500;line-height:1.4}
.import-report-action{display:flex;justify-content:flex-end;margin-top:10px}
html[data-theme="dark"] .question-type-help{background:#102338;border-color:#30465c}
html[data-theme="dark"] .question-import-problems{background:#3b2229;border-color:#74404a;color:#ffc2ca}
html[data-theme="dark"] .question-import-summary article.ok,html[data-theme="dark"] .question-import-ready{background:#153c2e;border-color:#2c6d51;color:#a6e8ca}
html[data-theme="dark"] .question-import-summary article.warn{background:#3a3016;border-color:#776220;color:#f5d98c}
html[data-theme="dark"] .question-import-summary article.danger{background:#48232a;border-color:#74404a;color:#ffb6bf}
@media(max-width:680px){.question-import-summary{grid-template-columns:1fr}}

/* ===== TROCAR DE CONCURSO E HISTÓRICO DE CRONOGRAMAS ===== */
.contest-switch-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr);gap:22px;align-items:center;padding:30px;border-radius:24px;background:linear-gradient(125deg,#0a2441,#123d69);color:#fff;box-shadow:var(--shadow)}
.contest-switch-hero h3{margin:8px 0 8px;font-size:30px}.contest-switch-hero p{margin:0;color:#c8d7e6;line-height:1.55}
.contest-switch-current{display:grid;gap:5px;padding:20px;border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(255,255,255,.08)}
.contest-switch-current span,.contest-switch-current small{color:#c8d7e6}.contest-switch-current strong{color:var(--gold);font-size:22px;line-height:1.2}
.contest-switch-explanation{align-content:start}.preserved-list{display:grid;gap:12px;margin-top:16px}.preserved-list span{padding:11px 12px;border-radius:12px;background:var(--panel);font-weight:800;font-size:13px}
.safe-note{margin-top:16px;padding:13px;border:1px solid #b8d7c9;border-radius:12px;background:#edf9f4;color:#176548;font-size:12px;line-height:1.5}
.history-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,320px) auto;gap:14px;align-items:end}.history-header h3{margin:0 0 5px}.history-header p{margin:0}.history-header label{margin:0}.history-header select{margin:6px 0 0}
.history-cycle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.history-cycle-card{display:grid;gap:14px;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:0 10px 26px rgba(20,41,71,.06)}
.history-cycle-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.history-cycle-head h3{margin:8px 0 4px;font-size:20px}.history-cycle-head p{margin:0;color:var(--muted);font-size:12px}
.history-cycle-progress{display:grid;justify-items:end;min-width:82px}.history-cycle-progress strong{font-size:27px;line-height:1}.history-cycle-progress div{margin-top:5px;color:var(--muted);font-size:11px}
.history-cycle-stats{display:grid;grid-template-columns:auto auto minmax(190px,1fr);gap:10px}.history-cycle-stat{display:flex;align-items:center;gap:5px;padding:9px 11px;border-radius:10px;background:var(--panel);color:var(--muted);font-size:11px;line-height:1.35}.history-cycle-stat strong{color:var(--text);font-size:13px}.history-cycle-archived-at{justify-content:flex-end}.history-cycle-archived-at strong{white-space:nowrap}
.history-progress-track{height:8px;border-radius:999px;background:#e7edf3;overflow:hidden}.history-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d49a15,#1a8a60)}
.history-task-summary{display:flex;align-items:end;gap:8px;padding:12px 14px;border-radius:12px;background:var(--panel)}.history-task-summary strong{font-size:24px}.history-task-summary span{color:var(--muted);font-size:12px;padding-bottom:3px}
.history-task-list{display:grid;gap:10px;max-height:55vh;overflow:auto;margin-top:12px;padding-right:3px}.history-task-card{display:grid;gap:7px;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--card)}
.history-task-card>div{display:flex;justify-content:space-between;gap:10px;align-items:center}.history-task-card>div>span:first-child{color:var(--muted);font-size:11px;font-weight:800}.history-task-card h4{margin:0;font-size:15px}.history-task-card p{margin:0;color:var(--muted);font-size:13px}.history-task-card small{color:var(--muted);line-height:1.45}
html[data-theme="dark"] .preserved-list span,html[data-theme="dark"] .history-cycle-stat,html[data-theme="dark"] .history-task-summary{background:#142b42}
html[data-theme="dark"] .safe-note{background:#153c2e;border-color:#2f6e58;color:#a6e8ca}
html[data-theme="dark"] .history-cycle-card,html[data-theme="dark"] .history-task-card{background:#102338;border-color:#30465c}
html[data-theme="dark"] .history-progress-track{background:#294158}
@media(max-width:980px){.contest-switch-hero{grid-template-columns:1fr}.history-header{grid-template-columns:1fr 1fr}.history-header .btn{align-self:end}.history-cycle-grid{grid-template-columns:1fr}}
@media(max-width:680px){.contest-switch-hero{padding:22px}.contest-switch-hero h3{font-size:24px}.history-header{grid-template-columns:1fr}.history-header .btn{width:100%}.history-cycle-card{padding:18px}.history-cycle-head{display:grid}.history-cycle-progress{justify-items:start}.history-cycle-stats{grid-template-columns:1fr}.history-cycle-stat{width:100%;justify-content:flex-start}.history-cycle-archived-at{display:grid;gap:3px}.history-cycle-archived-at strong{white-space:normal}.history-cycle-card>.btn{width:100%}.schedule-adaptive-actions .btn{flex:1 1 100%}}

/* ===== GESTÃO, QUALIDADE E COMUNIDADE DE QUESTÕES ===== */
.question-batch-table{max-height:440px;overflow:auto;margin-top:14px}
.question-batch-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.question-management-filters{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(180px,.8fr) minmax(160px,.6fr) auto;gap:10px;align-items:center}
.question-management-filters input,.question-management-filters select{margin:0}
.question-management-filters>strong{white-space:nowrap;text-align:right;font-size:12px;color:var(--muted)}
.question-comment-moderation-list{display:grid;gap:12px;margin-top:14px}
.question-comment-moderation-list>article{display:grid;gap:9px;padding:16px;border:1px solid var(--line);border-radius:15px;background:var(--panel)}
.question-comment-moderation-list>article>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:center}
.question-comment-moderation-list>article>div:first-child span,.question-comment-moderation-list small{color:var(--muted);font-size:11px}
.question-comment-moderation-list p{margin:0;line-height:1.55}.question-comment-moderation-list .actions{justify-content:flex-end}
.question-history-head{padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
.question-history-head p{margin:7px 0 0;color:var(--muted);line-height:1.5}
.question-history-list{display:grid;gap:11px;max-height:55vh;overflow:auto;margin-top:13px}
.question-history-list article{padding:14px;border:1px solid var(--line);border-radius:13px}
.question-history-list article>div{display:flex;justify-content:space-between;gap:10px}.question-history-list article span{color:var(--muted);font-size:11px}
.question-history-list ul{margin:10px 0 0;padding-left:19px}.question-history-list li{margin:6px 0;font-size:12px;line-height:1.45}
.question-moderation-context{display:grid;gap:9px;padding:15px;border:1px solid var(--line);border-radius:14px;background:var(--panel);margin-bottom:14px}
.question-moderation-context h3,.question-moderation-context p{margin:0}.question-moderation-context h3{font-size:16px;line-height:1.45}.question-moderation-context p{color:var(--muted);font-size:12px}
.report-message{padding:12px;border-radius:11px;background:var(--card)}.report-message p{margin:5px 0 0;color:var(--text);line-height:1.5}
.practice-question-toolbar{display:flex;gap:8px;flex-wrap:wrap}
.question-community-card{margin-top:20px;padding:17px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.question-community-card h4{margin:0 0 4px}.question-community-card .row p{margin:0;color:var(--muted);font-size:11px}
#approved-question-comments{display:grid;gap:10px;margin-top:13px}
.approved-question-comment{padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.approved-question-comment>div{display:flex;justify-content:space-between;gap:10px;align-items:center}.approved-question-comment span{color:var(--muted);font-size:10px}.approved-question-comment p{margin:7px 0 0;font-size:13px;line-height:1.5}
html[data-theme="dark"] .question-comment-moderation-list>article,html[data-theme="dark"] .question-history-head,html[data-theme="dark"] .question-moderation-context,html[data-theme="dark"] .question-community-card{background:#142b42;border-color:#30465c}
html[data-theme="dark"] .report-message,html[data-theme="dark"] .approved-question-comment{background:#102338;border-color:#30465c}
@media(max-width:980px){.question-management-filters{grid-template-columns:1fr 1fr}.question-management-filters>strong{text-align:left}}
@media(max-width:680px){.question-management-filters{grid-template-columns:1fr}.question-comment-moderation-list>article>div:first-child,.approved-question-comment>div{align-items:flex-start;display:grid}.question-comment-moderation-list .actions,.practice-question-toolbar{display:grid}.question-comment-moderation-list .btn,.practice-question-toolbar .btn{width:100%}.question-community-card>.row{display:grid}.question-community-card>.row .action{margin-top:8px}}
.quiz-question-tools{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
@media(max-width:680px){.quiz-question-tools{display:grid}.quiz-question-tools .action{width:100%;text-align:center}}
.question-comments-locked{margin:18px 0 0;padding:11px 13px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:11px;text-align:center}

/* ===== CRUZAMENTO DE ATÉ 3 EDITAIS ===== */
.combined-schedule-form{gap:14px}
.combined-edict-selector{display:grid;gap:12px;padding:15px;border:1px solid var(--line);border-radius:16px;background:#f7f9fc}
.combined-selector-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.combined-selector-head>div{display:grid;gap:3px}.combined-selector-head small{color:var(--muted);font-size:11px}
.combined-selector-head>span{display:inline-flex;align-items:center;justify-content:center;min-width:52px;padding:7px 10px;border-radius:999px;background:#0b2340;color:#fff;font-weight:800;font-size:12px}
.combined-edict-list{display:grid;gap:9px;max-height:310px;overflow:auto;padding-right:3px}
.combined-edict-option{display:grid!important;grid-template-columns:auto 1fr;align-items:flex-start;gap:11px;padding:13px!important;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;transition:.18s ease}
.combined-edict-option:hover{border-color:#78a9d5;transform:translateY(-1px)}
.combined-edict-option:has(input:checked){border-color:#1686d9;box-shadow:0 0 0 2px rgba(22,134,217,.1);background:#f1f8ff}
.combined-edict-option input{margin-top:3px;width:18px;height:18px}
.combined-edict-option>span{display:grid;gap:3px}.combined-edict-option strong{font-size:13px;color:#0b2340}.combined-edict-option small{font-size:11px;color:var(--muted)}.combined-edict-option em{font-size:10px;color:#2271a9;font-style:normal;font-weight:700}
.combined-edict-option.primary-edict-option:after{content:"Edital de origem";justify-self:end;padding:3px 7px;border-radius:999px;background:#e4f2ff;color:#146da9;font-size:9px;font-weight:800}
.combined-edict-summary{display:grid;gap:6px;padding:12px;border-radius:12px;background:#eaf7f0;border:1px solid #a8d9bf;color:#175c3c}
.combined-edict-summary strong{font-size:12px}.combined-edict-summary span{display:block;font-size:11px;line-height:1.4}
.cycle-reset-option{align-items:flex-start!important;padding:13px!important;border-radius:13px;background:#eaf7f0;border:1px solid #a8d9bf!important}
.cycle-reset-option>span{display:grid;gap:3px}.cycle-reset-option strong{font-size:12px;color:#175c3c}.cycle-reset-option small{font-size:10px;color:#39745a;line-height:1.4}
.combined-rules{display:grid;gap:6px;padding:13px 14px;border-radius:13px;background:#eef5fc;border:1px solid #bfd7eb;color:#244e70}
.combined-rules strong{font-size:12px}.combined-rules span{font-size:11px}
.combined-edicts-result{display:grid;gap:8px;padding:13px;border-radius:13px;background:#eef5fc;border:1px solid #bfd7eb}
.combined-edicts-result>strong{font-size:13px;color:#174d75}.combined-edicts-result>div{display:grid;gap:5px}.combined-edicts-result span{font-size:11px;color:#315f80}
.progress-reset-success{display:grid;gap:4px;padding:13px;border-radius:13px;background:#eaf7f0;border:1px solid #a8d9bf;color:#175c3c}
.progress-reset-success strong{font-size:13px}.progress-reset-success span{font-size:11px;line-height:1.4}
html[data-theme="dark"] .combined-edict-selector{background:#102337;border-color:#30465c}
html[data-theme="dark"] .combined-edict-option{background:#172b40;border-color:#30465c}
html[data-theme="dark"] .combined-edict-option:has(input:checked){background:#123450;border-color:#45a5ed}
html[data-theme="dark"] .combined-edict-option strong{color:#f4f8fc}
html[data-theme="dark"] .combined-edict-option em{color:#8acbff}
html[data-theme="dark"] .combined-edict-summary,html[data-theme="dark"] .cycle-reset-option,html[data-theme="dark"] .progress-reset-success{background:#133425;border-color:#2f6b4b;color:#b9efd0}
html[data-theme="dark"] .cycle-reset-option strong,html[data-theme="dark"] .cycle-reset-option small{color:#b9efd0}
html[data-theme="dark"] .combined-rules,html[data-theme="dark"] .combined-edicts-result{background:#142b3f;border-color:#315a7a;color:#c2dff5}
html[data-theme="dark"] .combined-edicts-result>strong,html[data-theme="dark"] .combined-edicts-result span{color:#c2dff5}
@media(max-width:620px){.combined-selector-head{align-items:flex-start}.combined-edict-option.primary-edict-option:after{display:none}.combined-edict-list{max-height:360px}}
.schedule-meta-pill.combined{background:#e8f2ff;color:#145f9d;border-color:#b9d7f1}
.schedule-meta-pill.specific{background:#f4ecff;color:#6d36a0;border-color:#d9c0ee;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-meta-pill.deadline{background:#fff5dc;color:#785915;border-color:#ecd18e}
.schedule-meta-pill.review-planned{background:#f1eaff;color:#6b3aa0;border-color:#d8c2ef}
html[data-theme="dark"] .schedule-meta-pill.combined{background:#153754;color:#a6d5fb;border-color:#315d7d}
html[data-theme="dark"] .schedule-meta-pill.specific,html[data-theme="dark"] .schedule-meta-pill.review-planned{background:#302244;color:#d8bdf4;border-color:#61417f}
html[data-theme="dark"] .schedule-meta-pill.deadline{background:#3a3016;color:#f5d98c;border-color:#776220}


/* ===== TELA DE LOGIN PREMIUM — LC CONCURSOS POLICIAIS ===== */
#auth.auth{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:100svh;
  grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);
  gap:clamp(48px,7vw,112px);
  align-items:center;
  padding:clamp(58px,7vh,88px) clamp(28px,8vw,128px);
  color:#fff;
  background:
    radial-gradient(circle at 3% 3%,rgba(230,165,35,.24),transparent 23%),
    radial-gradient(circle at 78% 105%,rgba(213,145,14,.12),transparent 30%),
    linear-gradient(125deg,#050505 0%,#0d0d0e 48%,#030304 100%);
}
#auth.auth::before{
  content:"";
  position:absolute;
  inset:-12%;
  z-index:-2;
  opacity:.72;
  background:
    linear-gradient(135deg,transparent 0 12%,rgba(226,169,45,.52) 12.15% 12.28%,transparent 12.45% 100%),
    linear-gradient(315deg,transparent 0 15%,rgba(226,169,45,.25) 15.12% 15.22%,transparent 15.4% 100%),
    repeating-linear-gradient(135deg,transparent 0 86px,rgba(255,255,255,.018) 87px 88px,transparent 89px 172px);
  transform:rotate(-2deg) scale(1.06);
  pointer-events:none;
}
#auth.auth::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.38;
  background-image:
    radial-gradient(circle at 1px 1px,rgba(255,255,255,.055) 1px,transparent 0),
    linear-gradient(110deg,transparent 0 64%,rgba(229,170,42,.06) 64.2%,transparent 64.4%);
  background-size:22px 22px,100% 100%;
  mask-image:linear-gradient(90deg,#000,transparent 72%);
  pointer-events:none;
}
#auth .auth-intro{
  position:relative;
  z-index:1;
  display:block;
  min-width:0;
}
#auth .auth-intro-content{max-width:680px}
#auth .eyebrow.light{
  margin:0 0 8px;
  width:min(620px,100%);
  text-align:center;
  color:#e8b135;
  font-size:clamp(12px,1.1vw,16px);
  font-weight:950;
  letter-spacing:.25em;
  text-shadow:0 0 22px rgba(232,177,53,.22);
}
#auth .auth-main-logo{
  display:block;
  width:min(620px,100%);
  max-height:430px;
  margin:8px 0 4px;
  object-fit:contain;
  object-position:left center;
  filter:drop-shadow(0 20px 28px rgba(0,0,0,.48)) drop-shadow(0 0 14px rgba(224,160,27,.08));
}
#auth .auth-copy{
  max-width:610px;
  margin:2px 0 0;
  color:#c8c8c8;
  font-size:clamp(16px,1.4vw,19px);
  line-height:1.55;
}
#auth .impact-phrase{
  display:flex;
  align-items:center;
  gap:13px;
  max-width:610px;
  margin-top:24px;
  padding:16px 18px;
  border:1px solid rgba(230,174,45,.19);
  border-left:3px solid #e4aa2b;
  border-radius:0 12px 12px 0;
  background:linear-gradient(90deg,rgba(238,179,48,.10),rgba(255,255,255,.025));
  color:#f1f1f1;
  font-size:clamp(15px,1.25vw,18px);
  line-height:1.4;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
#auth .impact-phrase strong{color:#efba3d}
#auth .impact-icon{
  display:grid;
  flex:0 0 38px;
  width:38px;
  height:38px;
  place-items:center;
  border:1px solid rgba(232,178,54,.36);
  border-radius:11px;
  color:#efb52f;
  background:rgba(231,170,38,.08);
  font-size:21px;
}
#auth .auth-card{
  position:relative;
  z-index:2;
  justify-self:end;
  width:min(520px,100%);
  padding:clamp(26px,3vw,40px);
  overflow:hidden;
  border:1px solid rgba(226,170,47,.32);
  border-radius:29px;
  background:linear-gradient(155deg,rgba(28,28,29,.97),rgba(8,8,9,.985));
  color:#f3f3f3;
  box-shadow:0 34px 90px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.055),0 0 0 1px rgba(0,0,0,.35);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
#auth .auth-card::before{
  content:"";
  position:absolute;
  top:0;
  left:16%;
  width:68%;
  height:1px;
  background:linear-gradient(90deg,transparent,#f0ba43,transparent);
  box-shadow:0 0 16px rgba(241,182,57,.58);
}
#auth .tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  padding:4px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  background:#171819;
}
#auth .tab{
  min-height:46px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#b7b7b7;
  font-weight:900;
  transition:background .2s,color .2s,box-shadow .2s;
}
#auth .tab.active{
  background:linear-gradient(180deg,#202122,#151617);
  color:#efbb42;
  box-shadow:inset 0 -2px 0 #dfa527,0 5px 15px rgba(0,0,0,.26);
}
#auth .auth-card form{margin-top:28px}
#auth .auth-card form h2{
  margin:0 0 26px;
  color:#f5f5f5;
  font-size:clamp(27px,2.4vw,34px);
  letter-spacing:-.025em;
}
#auth .auth-card .muted{color:#a9a9a9;line-height:1.5}
#auth .auth-card label{
  gap:9px;
  margin:17px 0;
  color:#e7e7e7;
  font-size:14px;
  font-weight:800;
}
#auth .auth-card input{
  min-height:57px;
  padding:15px 17px;
  border:1px solid #414143;
  border-radius:12px;
  background:linear-gradient(180deg,#121314,#0e0f10);
  color:#fff;
  caret-color:#efb536;
  box-shadow:inset 0 1px 8px rgba(0,0,0,.28);
}
#auth .auth-card input::placeholder{color:#828286}
#auth .auth-card input:focus{
  border-color:#dca52f;
  box-shadow:0 0 0 4px rgba(222,166,48,.12),inset 0 1px 8px rgba(0,0,0,.24);
}
#auth .password-toggle{
  right:9px;
  width:40px;
  height:40px;
  border:1px solid rgba(255,255,255,.06);
  background:#191a1c;
  color:#c9c9c9;
}
#auth .password-toggle:hover{background:#242527;color:#f1bd47}
#auth .primary{
  min-height:58px;
  margin-top:8px;
  border:1px solid #ffd464;
  border-radius:12px;
  background:linear-gradient(125deg,#d9940c 0%,#f0b934 47%,#ffd566 100%);
  color:#151515;
  font-size:17px;
  font-weight:950;
  box-shadow:0 12px 28px rgba(217,148,12,.24),inset 0 1px 0 rgba(255,255,255,.5);
  transition:transform .2s,filter .2s,box-shadow .2s;
}
#auth .primary:hover{
  transform:translateY(-1px);
  filter:brightness(1.04);
  box-shadow:0 16px 34px rgba(217,148,12,.32),inset 0 1px 0 rgba(255,255,255,.55);
}
#auth .link{
  margin:15px 0 0 auto;
  color:#e9b43b;
  font-weight:850;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:rgba(233,180,59,.48);
}
#auth .auth-security{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:25px;
  padding-top:19px;
  border-top:1px solid rgba(255,255,255,.07);
  color:#858589;
  font-size:12px;
  font-weight:750;
}
#auth .auth-security span{color:#d9a329;font-size:17px}
#auth .theme-toggle-auth{
  border-color:rgba(229,174,51,.24);
  background:rgba(11,11,12,.8);
  color:#e2e2e2;
  box-shadow:0 8px 24px rgba(0,0,0,.26);
  backdrop-filter:blur(10px);
}
html[data-theme="dark"] #auth .auth-card,
html[data-theme="light"] #auth .auth-card{background:linear-gradient(155deg,rgba(28,28,29,.97),rgba(8,8,9,.985));color:#f3f3f3}
html[data-theme="dark"] #auth .tabs,
html[data-theme="light"] #auth .tabs{background:#171819}
html[data-theme="dark"] #auth .tab,
html[data-theme="light"] #auth .tab{color:#b7b7b7}
html[data-theme="dark"] #auth .tab.active,
html[data-theme="light"] #auth .tab.active{background:linear-gradient(180deg,#202122,#151617);color:#efbb42}
html[data-theme="dark"] #auth label,
html[data-theme="light"] #auth label{color:#e7e7e7}
html[data-theme="dark"] #auth input,
html[data-theme="light"] #auth input{background:linear-gradient(180deg,#121314,#0e0f10);color:#fff;border-color:#414143}


/* ===== AJUSTE FINO DO LOGIN PREMIUM — REFERÊNCIA APROVADA ===== */
#auth .auth-card{width:min(500px,100%)}
#auth .tabs{padding:6px;border-radius:16px}
#auth .tab{min-height:48px;font-size:15px}
#auth .tab.active{box-shadow:inset 0 -2px 0 #dfa527,0 10px 22px rgba(0,0,0,.22)}
#auth .input-icon-wrap{position:relative;display:flex;align-items:center}
#auth .field-icon{
  position:absolute;
  left:18px;
  z-index:1;
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  color:#e8b135;
  font-size:18px;
  line-height:1;
  pointer-events:none;
  filter:drop-shadow(0 0 8px rgba(232,177,53,.12));
}
#auth .input-icon-wrap input{padding-left:54px}
#auth .input-icon-wrap.has-action input{padding-right:56px}
#auth .password-wrap{position:relative}
#auth .password-toggle{top:50%;transform:translateY(-50%);border-radius:10px}
#auth .link{display:block;width:max-content;margin:18px auto 0;color:#efba3d}
#auth .auth-security{display:none}
#auth .auth-card input:-webkit-autofill,
#auth .auth-card input:-webkit-autofill:hover,
#auth .auth-card input:-webkit-autofill:focus,
#auth .auth-card input:-webkit-autofill:active{
  -webkit-box-shadow:0 0 0 1000px #111214 inset !important;
  -webkit-text-fill-color:#ffffff !important;
  caret-color:#efb536;
  border:1px solid #414143;
  transition:background-color 9999s ease-in-out 0s;
}
#auth .auth-card input::selection{background:rgba(239,181,54,.32);color:#fff}
@media(max-width:620px){
  #auth .field-icon{left:16px;font-size:16px}
  #auth .input-icon-wrap input{padding-left:50px}
}

@media(max-width:980px){
  #auth.auth{
    grid-template-columns:1fr;
    gap:34px;
    padding:78px clamp(20px,6vw,58px) 46px;
  }
  #auth .auth-intro-content{max-width:760px;margin:0 auto}
  #auth .eyebrow.light{width:min(570px,100%)}
  #auth .auth-main-logo{width:min(570px,100%)}
  #auth .auth-card{justify-self:center;width:min(620px,100%)}
}
@media(max-width:620px){
  #auth.auth{gap:26px;padding:72px 16px 28px}
  #auth .auth-intro{text-align:center}
  #auth .eyebrow.light{width:min(390px,100%);margin:0 auto 8px;font-size:11px;letter-spacing:.19em}
  #auth .auth-main-logo{width:min(390px,100%);margin:8px auto 0;object-position:center}
  #auth .auth-copy{margin:4px auto 0;font-size:15px}
  #auth .impact-phrase{justify-content:flex-start;text-align:left;margin-top:17px;padding:13px 14px;font-size:14px}
  #auth .impact-icon{flex-basis:34px;width:34px;height:34px;font-size:18px}
  #auth .auth-card{padding:23px 18px;border-radius:22px}
  #auth .auth-card form{margin-top:23px}
  #auth .auth-card form h2{margin-bottom:20px;font-size:26px}
  #auth .auth-card input{min-height:53px}
  #auth .primary{min-height:54px}
}


/* ===== CORREÇÃO DE ATUALIZAÇÃO E FIDELIDADE VISUAL ===== */
#auth .theme-toggle-auth{display:none!important}
#auth .auth-card input:autofill{
  box-shadow:0 0 0 1000px #111214 inset!important;
  color:#fff!important;
}
@media(min-width:981px){
  #auth.auth{grid-template-columns:minmax(0,1.12fr) minmax(420px,.88fr)}
  #auth .auth-intro-content{max-width:650px}
  #auth .eyebrow.light{width:min(585px,100%)}
  #auth .auth-main-logo{width:min(585px,100%)}
  #auth .auth-card{width:min(510px,100%);padding:36px 40px 34px}
}

/* ===== FILTROS EDITÁVEIS E ATIVAÇÃO EM MASSA DAS QUESTÕES ===== */
.question-bulk-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.question-bulk-toolbar>div:first-child{display:grid;gap:3px}.question-bulk-toolbar>div:first-child span{color:var(--muted);font-size:11px}.question-bulk-toolbar .actions{justify-content:flex-end}
.question-select-cell{width:42px!important;min-width:42px!important;text-align:center!important}.question-select-cell input{width:18px;height:18px;margin:0;accent-color:#1484d6;cursor:pointer}
.question-filter-guidance{margin:0;padding:11px 13px;border:1px dashed #8db6d9;border-radius:12px;background:#f3f9ff;color:#375e7d;font-size:11px;line-height:1.5}
.question-filter-preview{display:grid;gap:10px;padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--panel)}
.question-filter-preview>strong{font-size:13px}.question-filter-preview>div{display:flex;gap:8px;flex-wrap:wrap}.question-filter-preview span{display:grid;gap:2px;min-width:115px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:var(--card);font-size:12px}.question-filter-preview span strong{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em}.question-filter-preview em{color:var(--muted);font-size:11px;font-style:normal}
.question-bulk-warning{padding:14px;border:1px solid #f1cf78;border-radius:13px;background:#fff8df;margin-bottom:14px}.question-bulk-warning p{margin:5px 0 0;color:#755b19;font-size:12px}
html[data-theme="dark"] .question-bulk-toolbar,html[data-theme="dark"] .question-filter-preview{background:#142b42;border-color:#30465c}
html[data-theme="dark"] .question-filter-guidance{background:#102d48;border-color:#3c6e95;color:#b7d9f2}
html[data-theme="dark"] .question-bulk-warning{background:#3d3318;border-color:#796423}.question-bulk-warning p{color:inherit}
@media(max-width:820px){.question-bulk-toolbar{display:grid}.question-bulk-toolbar .actions{display:grid;grid-template-columns:1fr}.question-bulk-toolbar .btn{width:100%}}

/* ===== CORREÇÃO DO CONTADOR DE QUESTÕES ===== */
#practice-match-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:170px;
  max-width:100%;
  white-space:nowrap;
  letter-spacing:0;
  line-height:1.2;
  text-shadow:none;
  font-variant-ligatures:none;
  font-kerning:normal;
  -webkit-font-smoothing:antialiased;
  isolation:isolate;
}

/* ===== CADERNO DE QUESTÕES POR EDITAL ===== */
.question-notebook{display:grid;gap:16px}
.question-notebook-head{align-items:flex-end}
.question-notebook-head h3{margin-bottom:5px}
.question-notebook-head p{margin:0}
.question-notebook-edict-select{min-width:min(360px,100%);margin:0}
.question-notebook-tree{display:grid;gap:12px}
.question-notebook-block,.question-notebook-discipline{
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--panel,#fff);
  overflow:hidden;
}
.question-notebook-block>summary,.question-notebook-discipline>summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:15px 17px;
  cursor:pointer;
  font-weight:900;
  list-style:none;
}
.question-notebook-block>summary::-webkit-details-marker,
.question-notebook-discipline>summary::-webkit-details-marker{display:none}
.question-notebook-block>summary{
  background:linear-gradient(135deg,#0d2d4e,#174d78);
  color:#fff;
}
.question-notebook-block>summary strong{
  padding:5px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.13);
  color:#ffd36b;
  font-size:11px;
}
.question-notebook-disciplines{display:grid;gap:10px;padding:12px}
.question-notebook-discipline>summary{background:#f5f8fc;color:var(--text)}
.question-notebook-discipline>summary strong{color:#245da8;font-size:11px}
.question-notebook-topics{display:grid;gap:9px;padding:10px 12px 13px}
.question-notebook-topic{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  padding:13px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
}
.question-notebook-topic h4{margin:0 0 9px;font-size:14px}
.question-notebook-subtopics{display:flex;gap:7px;flex-wrap:wrap}
.question-notebook-filter:not(.btn){
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid #dbe5ef;
  border-radius:999px;
  padding:7px 10px;
  background:#f5f8fc;
  color:#38516e;
  font-size:11px;
  font-weight:800;
}
.question-notebook-filter:not(.btn):hover{background:#eaf2ff;color:#1556c5}
.question-notebook-filter:not(.btn) strong{font-size:10px;color:#245da8}
html[data-theme="dark"] .question-notebook-block,
html[data-theme="dark"] .question-notebook-discipline,
html[data-theme="dark"] .question-notebook-topic{border-color:#30465c}
html[data-theme="dark"] .question-notebook-discipline>summary,
html[data-theme="dark"] .question-notebook-topic{background:#172b40}
html[data-theme="dark"] .question-notebook-filter:not(.btn){background:#21384e;border-color:#3a5067;color:#c3d2df}
@media(max-width:700px){
  .question-notebook-head{align-items:stretch;flex-direction:column}
  .question-notebook-edict-select{width:100%;min-width:0}
  .question-notebook-topic{grid-template-columns:1fr}
  #practice-match-count{min-width:0;width:100%}
}

/* ===== LINKS ÚTEIS EM CARTÕES ===== */
.external-links-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:28px;
  border-radius:24px;
  background:linear-gradient(125deg,#0a2441,#123d69);
  color:#fff;
  box-shadow:var(--shadow);
}
.external-links-hero h3{margin:5px 0 8px;font-size:29px}
.external-links-hero p:last-child{max-width:690px;margin:0;color:#c8d7e6}
.external-links-hero-icon{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:82px;
  height:82px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:23px;
  background:rgba(255,255,255,.08);
  font-size:37px;
}
.external-links-heading h3{margin-bottom:4px}
.external-links-heading p{margin:0}
.external-links-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
.external-link-card{
  display:flex;
  min-width:0;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:19px;
  background:var(--card);
  box-shadow:0 10px 28px rgba(20,41,71,.08);
  transition:transform .18s ease,box-shadow .18s ease;
}
.external-link-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(20,41,71,.13)}
.external-link-card.inactive{opacity:.68}
.external-link-cover{
  position:relative;
  display:grid;
  place-items:center;
  min-height:168px;
  overflow:hidden;
  background:linear-gradient(135deg,#0b2644,#1a5b8c);
}
.external-link-cover>span:first-child{color:#fff;font-size:48px;text-shadow:0 9px 20px rgba(0,0,0,.2)}
.external-link-cover img{display:block;width:100%;height:100%;min-height:168px;object-fit:cover}
.external-link-cover.has-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 55%,rgba(5,17,30,.54));
  pointer-events:none;
}
.external-link-category,.external-link-status{
  position:absolute;
  z-index:1;
  top:12px;
  padding:6px 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  backdrop-filter:blur(7px);
}
.external-link-category{left:12px;background:rgba(255,255,255,.9);color:#17314d}
.external-link-status{right:12px;background:rgba(217,80,93,.92);color:#fff}
.external-link-body{display:flex;flex:1;flex-direction:column;gap:14px;padding:18px}
.external-link-body h3{margin:0 0 7px;font-size:18px;line-height:1.3}
.external-link-body p{
  display:-webkit-box;
  overflow:hidden;
  margin:0;
  color:var(--muted);
  line-height:1.5;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.external-link-body>small{margin-top:auto;color:var(--muted);font-weight:800}
.external-link-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.external-link-open{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;flex:1 1 150px}
.external-link-actions .action{flex:0 0 auto}
.external-links-empty{grid-column:1/-1}
.external-link-active{display:flex!important;grid-template-columns:none!important;align-items:center;gap:9px}
.external-link-active input{width:auto}
.external-link-form-hint{color:var(--muted);font-weight:600;line-height:1.45}
html[data-theme="dark"] .external-link-card{background:#102338;border-color:#30465c}
html[data-theme="dark"] .external-link-category{background:rgba(15,36,56,.92);color:#dce9f5}
@media(max-width:1120px){.external-links-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
  .external-links-hero{align-items:stretch;flex-direction:column;padding:22px}
  .external-links-hero h3{font-size:25px}
  .external-links-hero .btn{width:100%}
  .external-links-hero-icon{width:100%;height:62px}
  .external-links-grid{grid-template-columns:1fr}
  .external-link-cover,.external-link-cover img{min-height:180px}
  .external-link-actions{display:grid;grid-template-columns:1fr 1fr}
  .external-link-open{grid-column:1/-1;width:100%}
  .external-link-actions .action{width:100%}
}

/* ===== Paleta interna LC Premium — preto, grafite, dourado e branco ===== */
html[data-theme="dark"]{
  color-scheme:dark;
  --navy:#08090a;
  --navy2:#111214;
  --gold:#f5b51b;
  --blue:#f5b51b;
  --bg:#090a0c;
  --card:#151618;
  --panel:#1b1c1f;
  --text:#f7f7f5;
  --muted:#a9aaae;
  --line:#2b2c30;
  --shadow:0 18px 48px rgba(0,0,0,.38);
}

html[data-theme="dark"] body,
html[data-theme="dark"] main{
  background:#090a0c;
}

html[data-theme="dark"] .sidebar{
  background:linear-gradient(180deg,#08090a 0%,#0d0e10 54%,#08090a 100%);
  border-right:1px solid #25262a;
  box-shadow:12px 0 34px rgba(0,0,0,.22);
}

html[data-theme="dark"] .side span,
html[data-theme="dark"] .user span{
  color:#999a9e;
}

html[data-theme="dark"] .nav-btn{
  color:#c8c8c6;
}

html[data-theme="dark"] .nav-btn:hover{
  background:#18191c;
  color:#fff;
}

html[data-theme="dark"] .nav-btn.active{
  background:linear-gradient(90deg,rgba(245,181,27,.16),rgba(245,181,27,.055));
  color:#fff;
  box-shadow:inset 3px 0 0 #f5b51b,0 0 0 1px rgba(245,181,27,.13);
}

html[data-theme="dark"] .user{
  background:#151618;
  border:1px solid #292a2e;
}

html[data-theme="dark"] .avatar{
  background:linear-gradient(145deg,#ffd45e,#e9a70f);
  color:#17130a;
  box-shadow:0 8px 20px rgba(245,181,27,.2);
}

html[data-theme="dark"] .topbar{
  background:rgba(11,12,14,.92);
  color:#f7f7f5;
  border-color:#26272b;
  box-shadow:0 8px 28px rgba(0,0,0,.16);
}

html[data-theme="dark"] .topbar h2{
  color:#fff;
}

html[data-theme="dark"] .schedule-card h3{
  color:#111317;
}

html[data-theme="dark"] .eyebrow{
  color:#e9aa18;
}

html[data-theme="dark"] .date,
html[data-theme="dark"] .theme-toggle{
  background:#17181b;
  color:#f0f0ee;
  border-color:#303136;
  box-shadow:none;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .icon:hover{
  background:#202124;
  border-color:#4b3b16;
}

html[data-theme="dark"] .content{
  background:
    radial-gradient(circle at 78% 2%,rgba(245,181,27,.045),transparent 25%),
    #090a0c;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .sim-card,
html[data-theme="dark"] .material-card,
html[data-theme="dark"] .error-card,
html[data-theme="dark"] .student-performance-card,
html[data-theme="dark"] .daily-goal-card,
html[data-theme="dark"] .goal-student-card,
html[data-theme="dark"] .period-comparison article,
html[data-theme="dark"] .performance-source-cards article,
html[data-theme="dark"] .weak-point-card,
html[data-theme="dark"] .detailed-student-card,
html[data-theme="dark"] .study-profile-admin-card,
html[data-theme="dark"] .edict-card,
html[data-theme="dark"] .intervention-card,
html[data-theme="dark"] .mastery-discipline,
html[data-theme="dark"] .notification-card,
html[data-theme="dark"] .history-cycle-card,
html[data-theme="dark"] .history-task-card,
html[data-theme="dark"] .external-link-card{
  background:#151618;
  color:#f7f7f5;
  border-color:#2b2c30;
  box-shadow:0 10px 28px rgba(0,0,0,.2);
}

html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .edict-card:hover,
html[data-theme="dark"] .external-link-card:hover{
  border-color:#3b3525;
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .student-hero,
html[data-theme="dark"] .contest-switch-hero,
html[data-theme="dark"] .edict-detail-hero,
html[data-theme="dark"] .profile-hero,
html[data-theme="dark"] .goal-hero,
html[data-theme="dark"] .smart-review-hero,
html[data-theme="dark"] .timer-hero,
html[data-theme="dark"] .external-links-hero,
html[data-theme="dark"] .auto-schedule-intro{
  background:
    radial-gradient(circle at 82% 28%,rgba(245,181,27,.16),transparent 33%),
    linear-gradient(125deg,#0b0c0e 0%,#141414 62%,#211705 100%);
  border:1px solid #36301f;
  box-shadow:0 18px 42px rgba(0,0,0,.34);
}

html[data-theme="dark"] .hero p,
html[data-theme="dark"] .student-hero p,
html[data-theme="dark"] .profile-hero p,
html[data-theme="dark"] .contest-switch-hero p{
  color:#c7c7c4;
}

html[data-theme="dark"] .hero-badge,
html[data-theme="dark"] .student-hero-progress,
html[data-theme="dark"] .contest-switch-current{
  background:rgba(255,255,255,.055);
  border-color:rgba(245,181,27,.22);
}

html[data-theme="dark"] .hero-badge strong,
html[data-theme="dark"] .student-hero-progress strong{
  color:#ffc43d;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  background:#101113;
  color:#f7f7f5;
  border-color:#323338;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus{
  border-color:#d99b11;
  box-shadow:0 0 0 4px rgba(245,181,27,.11);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color:#77787c;
}

html[data-theme="dark"] .primary{
  background:linear-gradient(135deg,#e9a70f,#ffc945);
  color:#17130a;
  box-shadow:0 9px 22px rgba(245,181,27,.18);
}

html[data-theme="dark"] .primary:hover{
  filter:brightness(1.06);
}

html[data-theme="dark"] .secondary,
html[data-theme="dark"] .action,
html[data-theme="dark"] .password-toggle{
  background:#202124;
  color:#e9e9e7;
  border:1px solid #34353a;
}

html[data-theme="dark"] .secondary:hover,
html[data-theme="dark"] .action:hover{
  background:#292a2e;
  border-color:#5b471a;
  color:#ffc43d;
}

html[data-theme="dark"] .metric .micon,
html[data-theme="dark"] .daily-goal-icon,
html[data-theme="dark"] .notification-icon,
html[data-theme="dark"] .rank-mini{
  background:#22201a;
  color:#ffc43d;
  border:1px solid #3d351f;
}

html[data-theme="dark"] .metric strong{
  color:#fff;
}

html[data-theme="dark"] .progress,
html[data-theme="dark"] .performance-track,
html[data-theme="dark"] .daily-goal-track,
html[data-theme="dark"] .weak-point-track,
html[data-theme="dark"] .mastery-progress,
html[data-theme="dark"] .history-progress-track,
html[data-theme="dark"] .mini-progress{
  background:#2a2b2f;
}

html[data-theme="dark"] .progress span,
html[data-theme="dark"] .mastery-progress i,
html[data-theme="dark"] .history-progress-track i,
html[data-theme="dark"] .mini-progress span{
  background:linear-gradient(90deg,#d6970d,#ffd158);
}

html[data-theme="dark"] th,
html[data-theme="dark"] td{
  border-color:#292a2e;
}

html[data-theme="dark"] th{
  color:#b2b3b6;
}

html[data-theme="dark"] .task,
html[data-theme="dark"] .contest-card,
html[data-theme="dark"] .practice-option,
html[data-theme="dark"] .support-student,
html[data-theme="dark"] .ranking-row,
html[data-theme="dark"] .analysis-item,
html[data-theme="dark"] .mastery-topic,
html[data-theme="dark"] .notification-switch,
html[data-theme="dark"] .question-comment-moderation-list>article,
html[data-theme="dark"] .question-history-head,
html[data-theme="dark"] .question-moderation-context,
html[data-theme="dark"] .question-community-card,
html[data-theme="dark"] .report-message,
html[data-theme="dark"] .approved-question-comment{
  background:#1a1b1e;
  color:#f2f2f0;
  border-color:#303136;
}

html[data-theme="dark"] .practice-option:hover{
  background:#22201a;
  border-color:#9e7418;
}

html[data-theme="dark"] .practice-mode-button.active,
html[data-theme="dark"] .intervention-filter.active{
  background:#f5b51b;
  color:#17130a;
  border-color:#f5b51b;
}

html[data-theme="dark"] .edict-date,
html[data-theme="dark"] .edict-stat-grid span,
html[data-theme="dark"] .edict-student-option,
html[data-theme="dark"] .intervention-metrics div,
html[data-theme="dark"] .intervention-reasons span,
html[data-theme="dark"] .study-profile-admin-metrics span,
html[data-theme="dark"] .profile-summary-details>span:not(.badge),
html[data-theme="dark"] .preserved-list span,
html[data-theme="dark"] .history-cycle-stat,
html[data-theme="dark"] .history-task-summary,
html[data-theme="dark"] .schedule-meta-pill,
html[data-theme="dark"] .table-plan-pill,
html[data-theme="dark"] .adaptive-preview-summary article,
html[data-theme="dark"] .adaptive-preview-list article,
html[data-theme="dark"] .sim-import-summary article,
html[data-theme="dark"] .sim-results-summary article,
html[data-theme="dark"] .auto-schedule-result-grid article{
  background:#1c1d20;
  color:#d9d9d7;
  border-color:#333439;
}

html[data-theme="dark"] .quiz-head{
  background:linear-gradient(120deg,#101113,#211705);
  border:1px solid #3a321f;
}

html[data-theme="dark"] .quiz-submit{
  background:rgba(18,19,21,.94);
  border:1px solid #303136;
}

html[data-theme="dark"] .practice-comment,
html[data-theme="dark"] .practice-check,
html[data-theme="dark"] .practice-help span,
html[data-theme="dark"] .timer-help span,
html[data-theme="dark"] .invite-box,
html[data-theme="dark"] .review-filter,
html[data-theme="dark"] .review-schedule>div,
html[data-theme="dark"] .review-question-box,
html[data-theme="dark"] .review-step,
html[data-theme="dark"] .review-answer-block,
html[data-theme="dark"] .goal-medal,
html[data-theme="dark"] .streak-day,
html[data-theme="dark"] .goal-student-streak,
html[data-theme="dark"] .goal-modal-intro,
html[data-theme="dark"] .performance-summary-chips span,
html[data-theme="dark"] .detailed-student-metrics span,
html[data-theme="dark"] .adaptive-intro,
html[data-theme="dark"] .adaptive-student,
html[data-theme="dark"] .planning-profile-callout,
html[data-theme="dark"] .profile-form-section,
html[data-theme="dark"] .study-profile-summary article,
html[data-theme="dark"] .availability-day,
html[data-theme="dark"] .study-method-option,
html[data-theme="dark"] .profile-invite-note,
html[data-theme="dark"] .profile-source-hint,
html[data-theme="dark"] .sim-import-loading,
html[data-theme="dark"] .question-type-help,
html[data-theme="dark"] .combined-edict-selector,
html[data-theme="dark"] .combined-edict-option,
html[data-theme="dark"] .combined-rules,
html[data-theme="dark"] .combined-edicts-result,
html[data-theme="dark"] .question-bulk-toolbar,
html[data-theme="dark"] .question-filter-preview,
html[data-theme="dark"] .question-notebook-discipline>summary,
html[data-theme="dark"] .question-notebook-topic{
  background:#1a1b1e;
  color:#d9d9d7;
  border-color:#303136;
}

html[data-theme="dark"] .goal-ring:before{
  background:#151618;
}

html[data-theme="dark"] .goal-medal.earned,
html[data-theme="dark"] .adaptive-callout,
html[data-theme="dark"] .adaptive-warning,
html[data-theme="dark"] .auto-schedule-note,
html[data-theme="dark"] .auto-schedule-warnings{
  background:#332a13;
  color:#f5d98c;
  border-color:#6f571f;
}

html[data-theme="dark"] .topic-method,
html[data-theme="dark"] .combined-selector-head>span{
  background:#332a13;
  color:#ffd667;
  border-color:#6f571f;
}

html[data-theme="dark"] .question-notebook-filter:not(.btn){
  background:#232428;
  color:#d4d4d2;
  border-color:#393a3f;
}

html[data-theme="dark"] .external-link-category{
  background:rgba(20,20,21,.92);
  color:#f1f1ef;
  border:1px solid rgba(245,181,27,.22);
}

html[data-theme="dark"] .toast{
  background:#1b1c1f;
  color:#fff;
  border:1px solid #4d3b16;
}

html[data-theme="dark"] .modal{
  background:rgba(0,0,0,.72);
}

html[data-theme="dark"] .modal-head{
  border-color:#303136;
}

html[data-theme="dark"] .loading{
  background:rgba(9,10,12,.9);
}

html[data-theme="dark"] .spinner{
  border-color:#35363a;
  border-top-color:#f5b51b;
}

@media(max-width:820px){
  html[data-theme="dark"] .sidebar{
    box-shadow:22px 0 50px rgba(0,0,0,.5);
  }
}

@media(max-width:560px){
  html[data-theme="dark"] .content{
    background:#090a0c;
  }

  html[data-theme="dark"] .card{
    box-shadow:0 8px 22px rgba(0,0,0,.2);
  }
}


/* Estratégias de organização do cronograma */
.schedule-strategy{margin:8px 0 2px;padding:14px;border:1px solid var(--line);border-radius:16px;display:grid;gap:10px}
.schedule-strategy legend{padding:0 7px;font-weight:900;color:var(--text)}
.schedule-strategy-option{display:flex;align-items:flex-start;gap:11px;margin:0;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--card);cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.schedule-strategy-option:hover{transform:translateY(-1px);border-color:#d69d16}
.schedule-strategy-option:has(input:checked){border-color:#e3a91b;background:#fff8e4;box-shadow:0 0 0 2px rgba(227,169,27,.12)}
.schedule-strategy-option input{width:auto;margin:3px 0 0;accent-color:#d99c0b}
.schedule-strategy-option span{display:grid;gap:3px}
.schedule-strategy-option strong{color:var(--text)}
.schedule-strategy-option small{color:var(--muted);line-height:1.4}
.adaptive-strategy-summary{display:grid;gap:4px;margin:14px 0;padding:12px 14px;border:1px solid #c99212;border-radius:13px;background:#fff8e2}
.adaptive-strategy-summary strong{color:#6f4b00}
.adaptive-strategy-summary span{color:#6a5a37;font-size:.88rem;line-height:1.4}
html[data-theme="dark"] .schedule-strategy-option{background:#111214}
html[data-theme="dark"] .schedule-strategy-option:has(input:checked){background:#2a220f;border-color:#e2ad2e}
html[data-theme="dark"] .adaptive-strategy-summary{background:#28210f;border-color:#8d6816}
html[data-theme="dark"] .adaptive-strategy-summary strong{color:#ffd875}
html[data-theme="dark"] .adaptive-strategy-summary span{color:#e9d7a4}
@media(max-width:640px){.schedule-strategy{padding:11px}.schedule-strategy-option{padding:12px}}


/* Evolução do organizador: híbrido, comparação, bloqueios e capacidade */
.adaptive-hybrid-weight{padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.adaptive-hybrid-weight label{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin:0}
.adaptive-hybrid-weight input[type="range"]{grid-column:1/-1;margin:2px 0;padding:0}
.adaptive-hybrid-weight small{display:block;margin-top:4px;color:var(--muted)}
.adaptive-rules{border:1px solid var(--line);border-radius:15px;background:var(--card);overflow:hidden}
.adaptive-rules summary{padding:14px 16px;cursor:pointer;font-weight:900;list-style-position:inside}
.adaptive-rules[open] summary{border-bottom:1px solid var(--line)}
.adaptive-rules-body{display:grid;gap:17px;padding:16px}
.adaptive-rules-body>div>strong{display:block;margin-bottom:9px}
.adaptive-lock-grid{display:flex;flex-wrap:wrap;gap:8px;max-height:180px;overflow:auto}
.adaptive-lock-chip,.adaptive-day-chip{position:relative;margin:0;cursor:pointer}
.adaptive-lock-chip input,.adaptive-day-chip input{position:absolute;opacity:0;pointer-events:none}
.adaptive-lock-chip span,.adaptive-day-chip span{display:inline-flex;align-items:center;min-height:35px;padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--muted);font-size:.82rem;font-weight:900;transition:.2s}
.adaptive-lock-chip input:checked+span,.adaptive-day-chip input:checked+span{border-color:#d99c0b;background:#fff3cb;color:#704c00;box-shadow:0 0 0 2px rgba(217,156,11,.12)}
.adaptive-day-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}
.adaptive-day-chip span{width:100%;justify-content:center;padding:7px 4px}
.adaptive-capacity-suggestion{margin-top:12px;padding:14px;border:1px solid #d99c0b;border-radius:14px;background:#fff8e3}
.adaptive-capacity-suggestion p{margin:6px 0 11px;color:#665735;line-height:1.45}
.adaptive-comparison{display:grid;gap:13px;margin-top:14px}
.adaptive-comparison-head{display:grid;gap:3px}
.adaptive-comparison-head span{color:var(--muted);font-size:.86rem}
.adaptive-comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.adaptive-comparison-grid article{position:relative;display:grid;gap:9px;padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--card)}
.adaptive-comparison-grid article.recommended{border-color:#d99c0b;box-shadow:0 0 0 2px rgba(217,156,11,.13)}
.adaptive-comparison-grid em{position:absolute;top:10px;right:10px;padding:4px 7px;border-radius:999px;background:#f0b62d;color:#241900;font-size:.68rem;font-style:normal;font-weight:950}
.adaptive-comparison-grid h4{margin:0;padding-right:75px}
.adaptive-comparison-grid article>div{display:flex;align-items:baseline;gap:7px}
.adaptive-comparison-grid article>div b{font-size:1.35rem}
.adaptive-comparison-grid article>div span,.adaptive-comparison-grid article>small{color:var(--muted)}
html[data-theme="dark"] .adaptive-hybrid-weight,html[data-theme="dark"] .adaptive-rules,html[data-theme="dark"] .adaptive-comparison-grid article{background:#111214}
html[data-theme="dark"] .adaptive-lock-chip input:checked+span,html[data-theme="dark"] .adaptive-day-chip input:checked+span{background:#2b220c;color:#ffd875;border-color:#d99c0b}
html[data-theme="dark"] .adaptive-capacity-suggestion{background:#28210f;border-color:#8d6816}
html[data-theme="dark"] .adaptive-capacity-suggestion p{color:#ead7a2}
@media(max-width:640px){.adaptive-day-grid{grid-template-columns:repeat(4,1fr)}.adaptive-comparison-grid{grid-template-columns:1fr}.adaptive-comparison-grid h4{padding-right:82px}.form-actions{flex-wrap:wrap}.form-actions .btn{flex:1 1 140px}}
/* Cronograma estratégico por quantidade */
.strategic-schedule-card{position:relative;overflow:hidden;border-color:rgba(191,146,42,.42);background:linear-gradient(155deg,var(--card,#fff),color-mix(in srgb,var(--card,#fff) 92%,#b88a22 8%))}
.strategic-schedule-card::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#8c681e,#d6ad4c,#8c681e)}
.schedule-meta-pill.strategic{border-color:rgba(191,146,42,.42);background:rgba(191,146,42,.11);color:var(--text,#17202c)}
.strategic-card-summary{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center;margin:16px 0 12px;padding:13px 14px;border:1px solid rgba(191,146,42,.28);border-radius:14px;background:rgba(191,146,42,.07)}
.strategic-card-summary>span{font-size:10px;letter-spacing:.1em;font-weight:900;color:#8b681d}.strategic-card-summary>strong{font-size:12px;text-align:right}.strategic-card-summary>div{grid-column:1/-1;height:7px;border-radius:999px;background:rgba(128,128,128,.2);overflow:hidden}.strategic-card-summary i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b98b25,#45a987)}
.strategic-activities{display:grid;gap:10px}.strategic-activity{padding:12px;border:1px solid var(--line,#d9e0e8);border-radius:14px;background:color-mix(in srgb,var(--card,#fff) 96%,#64748b 4%);transition:.18s ease}
.strategic-activity.strategic-partial{border-color:rgba(245,158,11,.58);background:rgba(245,158,11,.07)}.strategic-activity.strategic-completed{border-color:rgba(34,168,117,.48);background:rgba(34,168,117,.07)}
.strategic-activity-main{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center}.strategic-activity-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(191,146,42,.13);font-size:16px;font-weight:900;color:#8b681d}.strategic-activity-main strong{display:block;font-size:13px}.strategic-activity-main small{display:block;margin-top:2px;color:var(--muted,#68768a);line-height:1.35}.strategic-quantity-label{display:inline-block;margin-top:5px;padding:2px 7px;border-radius:999px;background:rgba(100,116,139,.12);font-size:10px;font-weight:800}.strategic-status-label{padding:5px 8px;border-radius:999px;background:rgba(100,116,139,.12);font-size:10px;font-weight:900;white-space:nowrap}.strategic-completed .strategic-status-label{background:rgba(34,168,117,.14);color:#147653}.strategic-partial .strategic-status-label{background:rgba(245,158,11,.15);color:#a55f00}
.strategic-activity-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.strategic-activity-actions button{min-height:34px;border:1px solid var(--line,#d9e0e8);border-radius:9px;background:var(--card,#fff);color:var(--text,#17202c);font:inherit;font-size:10px;font-weight:800;cursor:pointer}.strategic-activity-actions button:hover{border-color:#b98b25;background:rgba(191,146,42,.08)}.strategic-activity-actions button:disabled{opacity:.55;cursor:wait}
.strategic-partial-input{display:none;grid-template-columns:auto minmax(80px,120px);gap:9px;align-items:center;justify-content:end;margin-top:9px;font-size:11px;font-weight:800}.strategic-partial-input.visible{display:grid}.strategic-partial-input input{width:100%;min-height:34px;border:1px solid var(--line,#d9e0e8);border-radius:9px;background:var(--card,#fff);color:var(--text,#17202c);padding:6px 8px}
html[data-theme="dark"] .strategic-schedule-card{background:linear-gradient(155deg,#111d2b,#151f29);border-color:rgba(212,166,61,.42)}html[data-theme="dark"] .schedule-meta-pill.strategic,html[data-theme="dark"] .strategic-card-summary>strong{color:#f4e6bd}html[data-theme="dark"] .strategic-card-summary>span,html[data-theme="dark"] .strategic-activity-icon{color:#e0bd69}html[data-theme="dark"] .strategic-activity-actions button,html[data-theme="dark"] .strategic-partial-input input{background:#132235;color:#f6f8fb;border-color:#30445a}html[data-theme="dark"] .strategic-activity{background:rgba(15,29,44,.78);border-color:#2a4056}
@media(max-width:560px){.strategic-card-summary{grid-template-columns:1fr}.strategic-card-summary>strong{text-align:left}.strategic-activity-main{grid-template-columns:34px minmax(0,1fr)}.strategic-status-label{grid-column:2;justify-self:start}.strategic-activity-actions{grid-template-columns:1fr}.strategic-activity-actions button{min-height:40px}.strategic-partial-input{grid-template-columns:1fr}}
