:root{--primary:#886cc0;--primary-dark:#7254af;--navy:#1e1e2d;--navy-2:#272735;--ink:#2c2c3a;--muted:#7e7e8f;--line:#e9e9f2;--surface:#fff;--canvas:#f5f5f9;--danger:#ee5b5b;--success:#38b78b;--shadow:0 10px 35px rgba(38,38,62,.07)}
*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}body{font-family:"Segoe UI",Inter,Arial,sans-serif;background:var(--canvas);color:var(--ink);font-size:14px}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}h1,h2,p{margin-top:0}.btn{border-radius:10px;font-weight:600;padding:.65rem 1rem}.btn-primary{background:var(--primary);border-color:var(--primary)}.btn-primary:hover,.btn-primary:focus{background:var(--primary-dark);border-color:var(--primary-dark)}.btn-light{background:#f3f2f7;border-color:#f3f2f7;color:#565665}.btn-danger{background:var(--danger);border-color:var(--danger)}.form-control,.form-select{border:1px solid #dedee8;border-radius:9px;min-height:44px;padding:.65rem .85rem;color:var(--ink)}.form-control:focus,.form-select:focus{border-color:rgba(136,108,192,.75);box-shadow:0 0 0 .22rem rgba(136,108,192,.12)}.form-label{font-size:.82rem;font-weight:650;color:#565665;margin-bottom:.45rem}.required{color:var(--danger)}.alert{border:0;border-radius:10px}.alert-danger{background:#fff0f0;color:#b94444}.alert-success{background:#eaf9f3;color:#217f61}
.app-shell{display:flex;min-height:100vh}.app-sidebar{position:fixed;inset:0 auto 0 0;width:270px;background:linear-gradient(165deg,var(--navy) 0%,#262638 100%);color:#fff;z-index:1040;display:flex;flex-direction:column}.brand,.login-brand{height:82px;display:flex;align-items:center;gap:12px;font-size:1.35rem;letter-spacing:-.4px}.brand{padding:0 25px;border-bottom:1px solid rgba(255,255,255,.07)}.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#9b82ce,var(--primary));display:grid;place-items:center;color:#fff;box-shadow:0 7px 18px rgba(136,108,192,.3)}.brand-mark i{font-size:1.3rem}.brand strong,.login-brand strong{font-weight:750}.brand small,.login-brand small{display:block;text-transform:uppercase;font-size:.57rem;letter-spacing:1.8px;color:#aaaabd;margin-top:1px}.sidebar-nav{padding:16px 13px 28px;overflow:auto}.sidebar-nav::-webkit-scrollbar{width:5px}.sidebar-nav::-webkit-scrollbar-thumb{background:#48485a;border-radius:10px}.nav-section{text-transform:uppercase;color:#7e7e91;font-size:.61rem;font-weight:750;letter-spacing:1.4px;padding:19px 13px 8px}.nav-entry{display:flex;align-items:center;gap:11px;color:#b7b7c6;padding:10px 13px;border-radius:9px;margin:2px 0;transition:.18s}.nav-entry i{font-size:1.04rem;width:20px;text-align:center}.nav-entry:hover{background:rgba(255,255,255,.055);color:#fff}.nav-entry.active{background:linear-gradient(90deg,var(--primary),#7659ae);color:#fff;box-shadow:0 7px 18px rgba(0,0,0,.17)}.nav-entry small{margin-left:auto;font-size:.57rem;text-transform:uppercase;border:1px solid #555566;border-radius:8px;padding:2px 5px}.nav-disabled{opacity:.55;cursor:not-allowed}.app-main{width:calc(100% - 270px);margin-left:270px;display:flex;flex-direction:column;min-height:100vh}.app-header{height:82px;padding:0 28px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;position:sticky;top:0;z-index:1020}.header-button{width:42px;height:42px;border:0;border-radius:10px;background:#f4f3f7;color:#686879;display:grid;place-items:center}.header-button i{font-size:1.25rem}.header-context{align-items:center;gap:10px;margin-left:19px}.context-icon{width:38px;height:38px;border-radius:10px;background:#f0ebfa;color:var(--primary);display:grid;place-items:center}.header-context>span:last-child,.user-copy{flex-direction:column}.header-context small,.header-user small{font-size:.68rem;color:#9999a7}.header-context strong,.header-user strong{font-size:.86rem}.header-user{display:flex;align-items:center;gap:10px}.user-avatar{width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,#2d2d42,#484863);color:#fff;display:grid;place-items:center;font-weight:700}.content-area{padding:30px;flex:1}.app-footer{padding:18px 30px;color:#9999a8;border-top:1px solid var(--line);font-size:.75rem}.app-footer span{color:var(--primary);margin:0 5px}.sidebar-backdrop{display:none}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading.compact{align-items:center}.eyebrow{display:block;color:var(--primary);font-weight:750;font-size:.68rem;text-transform:uppercase;letter-spacing:1.35px;margin-bottom:5px}.page-heading h1{font-size:1.8rem;margin-bottom:5px;letter-spacing:-.6px;font-weight:720}.page-heading p{color:var(--muted);margin:0}.date-chip{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 14px;color:#676778;text-transform:capitalize;white-space:nowrap}.date-chip i{color:var(--primary);margin-right:7px}.metric-card{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid transparent;padding:21px;border-radius:15px;box-shadow:var(--shadow);position:relative;transition:.2s;height:100%}.metric-card:hover{transform:translateY(-3px);border-color:#ddd6eb}.metric-icon{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;font-size:1.35rem}.metric-icon.violet{background:#f1ecfa;color:#8467bc}.metric-icon.blue{background:#eaf3ff;color:#4a89d8}.metric-icon.orange{background:#fff2e5;color:#df8c39}.metric-icon.green{background:#e8f8f2;color:#35a77f}.metric-card>span:nth-child(2){display:flex;flex-direction:column}.metric-card small{color:var(--muted);font-size:.75rem}.metric-card strong{font-size:1.65rem;line-height:1.2}.metric-card em{font-size:.65rem;color:#b0b0bb;font-style:normal}.metric-arrow{position:absolute;right:16px;top:15px;color:#b4b4c1}.content-card{background:#fff;border-radius:15px;padding:24px;box-shadow:var(--shadow)}.card-heading h2,.onboarding-card h2{font-size:1.18rem;margin:0}.shortcut-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.shortcut-grid a{border:1px solid var(--line);border-radius:12px;padding:15px;display:flex;align-items:center;gap:12px;transition:.18s}.shortcut-grid a:hover{border-color:#cfc5e2;background:#fbfaff}.shortcut-grid>a>i{width:39px;height:39px;border-radius:10px;background:#f0ebf9;color:var(--primary);display:grid;place-items:center;font-size:1.05rem}.shortcut-grid span{display:flex;flex-direction:column}.shortcut-grid small{color:var(--muted);font-size:.7rem}.onboarding-card{background:linear-gradient(145deg,#26263a,#34334a);color:#fff}.onboarding-card .eyebrow{color:#b9a3e2}.onboarding-card p{color:#b8b8c6;margin:12px 0 22px}.onboarding-icon{display:grid;place-items:center;width:48px;height:48px;background:rgba(255,255,255,.1);border-radius:13px;color:#dbcdf3;font-size:1.2rem;margin-bottom:20px}
.table-card{padding:0;overflow:hidden}.table-toolbar{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}.search-box{position:relative;width:min(390px,100%)}.search-box i{position:absolute;left:13px;top:13px;color:#9999a7}.search-box input{padding-left:38px}.record-count{margin-left:auto;color:var(--muted);font-size:.78rem}.data-table{margin:0}.data-table thead th{background:#fafafd;border-bottom:1px solid var(--line);color:#777786;text-transform:uppercase;letter-spacing:.5px;font-size:.67rem;padding:13px 20px;white-space:nowrap}.data-table td{padding:14px 20px;border-color:#f0f0f5;color:#4a4a5a}.data-table tbody tr:hover{background:#fcfbfe}.actions-column{width:100px;text-align:right}.table-actions{text-align:right;white-space:nowrap}.icon-button{width:35px;height:35px;border:0;border-radius:9px;background:#f2f2f6;color:#707080;display:inline-grid;place-items:center;margin-left:4px}.icon-button.edit:hover{background:#eee8f9;color:var(--primary)}.icon-button.delete:hover{background:#fff0f0;color:var(--danger)}.loading-row,.empty-table{padding:55px 20px;text-align:center;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:11px}.empty-table{flex-direction:column}.empty-table i{font-size:2rem;color:#c2b5dc}.empty-table strong{color:#5a5a69}.empty-table span{font-size:.75rem}.table-footer{border-top:1px solid var(--line);padding:13px 20px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:.76rem}.table-footer .btn{margin-left:5px}
.dialog-layer{position:fixed;inset:0;z-index:1100;display:flex;justify-content:flex-end}.dialog-backdrop{position:absolute;inset:0;background:rgba(19,19,30,.52);backdrop-filter:blur(2px);border:0;width:100%;height:100%}.editor-panel{position:relative;width:min(720px,94vw);height:100%;background:#fff;box-shadow:-15px 0 40px rgba(0,0,0,.17);display:flex;flex-direction:column;animation:slideIn .2s ease-out}.editor-panel header{padding:22px 25px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.editor-panel h2{font-size:1.25rem;margin:0}.editor-body{padding:25px;overflow:auto;flex:1}.editor-panel footer{padding:16px 25px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px}.confirm-layer{align-items:center;justify-content:center}.confirm-dialog{position:relative;width:min(410px,92vw);background:#fff;border-radius:17px;padding:30px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.2)}.confirm-icon{width:55px;height:55px;border-radius:50%;background:#fff0f0;color:var(--danger);display:grid;place-items:center;font-size:1.35rem;margin:0 auto 17px}.confirm-dialog h2{font-size:1.25rem}.confirm-dialog p{color:var(--muted)}.confirm-dialog>div{display:flex;justify-content:center;gap:9px;margin-top:20px}.empty-state{text-align:center;padding:15vh 20px}.empty-state i{font-size:3rem;color:var(--primary)}
.login-shell{min-height:100vh;background:#222233 url('../images/login-bg.png') center/cover no-repeat;position:relative;display:flex;align-items:center;padding:5vh 7vw}.login-shell:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(25,25,39,.08),rgba(25,25,39,.38))}.login-panel{position:relative;z-index:1;width:min(440px,100%);background:#fff;padding:36px 42px;border-radius:17px;box-shadow:0 25px 70px rgba(20,20,36,.25)}.login-brand{height:auto;color:var(--ink);margin-bottom:34px}.login-copy h1{font-size:1.75rem;font-weight:720;margin-bottom:7px}.login-copy p{color:var(--muted);margin-bottom:24px}.input-with-icon{position:relative}.input-with-icon>i{position:absolute;left:14px;top:13px;color:#9b9baa;z-index:2}.input-with-icon .form-control{padding-left:40px}.login-help{text-align:center;color:#9898a7;font-size:.72rem;margin:22px 0 0}.login-help i{color:var(--success)}.login-message{position:relative;z-index:1;margin-left:auto;width:450px;color:#fff;flex-direction:column;align-items:flex-start}.login-message h2{font-size:2.5rem;line-height:1.16;margin:19px 0 13px;letter-spacing:-1px}.login-message p{color:#e1dfeb;font-size:1rem;max-width:400px}.message-icon{width:53px;height:53px;border-radius:15px;background:rgba(255,255,255,.16);backdrop-filter:blur(8px);display:grid;place-items:center;font-size:1.35rem}
#blazor-error-ui{display:none;position:fixed;bottom:0;left:0;right:0;z-index:2000;background:#fff3cd;padding:12px 20px}.loading-progress{position:absolute;display:block;width:7rem;height:7rem;inset:30vh 0 auto;margin:auto}.loading-progress circle{fill:none;stroke:#ded9e9;stroke-width:.55rem;transform-origin:50% 50%;transform:rotate(-90deg)}.loading-progress circle:last-child{stroke:var(--primary);stroke-dasharray:calc(3.141 * var(--blazor-load-percentage,0%) * .8),500%;transition:stroke-dasharray .05s}.loading-progress-text{position:absolute;text-align:center;font-weight:700;inset:calc(30vh + 3rem) 0 auto}.loading-progress-text:after{content:var(--blazor-load-percentage-text,"Carregando")}
@keyframes slideIn{from{transform:translateX(40px);opacity:.4}to{transform:none;opacity:1}}
@media(max-width:991px){.app-sidebar{transform:translateX(-100%);transition:.2s}.app-main{width:100%;margin-left:0}.sidebar-open .app-sidebar{transform:none}.sidebar-open .sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(20,20,30,.45);border:0;z-index:1030}.content-area{padding:23px 18px}.login-shell{justify-content:center}.page-heading{align-items:flex-start}.shortcut-grid{grid-template-columns:1fr}}
@media(max-width:575px){.app-header{height:70px;padding:0 15px}.page-heading{flex-direction:column}.page-heading .btn{width:100%}.date-chip{display:none}.table-toolbar{flex-wrap:wrap}.search-box{width:100%}.record-count{margin-left:0}.login-shell{padding:18px}.login-panel{padding:28px 23px}.content-card{padding:18px}.editor-panel{width:100vw}.data-table th,.data-table td{padding-left:13px;padding-right:13px}.metric-card{padding:17px}}

/* Grade semanal de professores */
.schedule-card{background:#fff;border:1px solid #ebe8f1;border-radius:16px;padding:22px;box-shadow:0 10px 30px rgba(39,34,57,.055)}.schedule-tabs{display:inline-flex;background:#f2eff7;border-radius:11px;padding:4px;gap:3px}.schedule-tabs button{border:0;background:transparent;color:#6f6a79;border-radius:8px;padding:8px 14px;font-weight:650}.schedule-tabs button i{margin-right:7px}.schedule-tabs button.active{background:#fff;color:var(--primary);box-shadow:0 2px 8px rgba(36,30,50,.1)}.schedule-context{display:flex;justify-content:space-between;align-items:center;gap:24px}.schedule-context h2{font-size:1.3rem;margin:0}.regent-box{width:min(420px,100%)}.schedule-actions{display:flex;gap:8px;flex-wrap:wrap}.schedule-section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.schedule-section-heading h2,.summary-title{font-size:1.05rem;margin:0 0 3px}.schedule-section-heading p{color:var(--muted);font-size:.82rem;margin:0}.period-editor{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:10px}.period-row{display:grid;grid-template-columns:65px 1fr 24px 1fr 34px;align-items:center;gap:7px;background:#f8f7fa;border:1px solid #eeebf2;padding:8px;border-radius:10px}.period-row span{text-align:center;color:var(--muted);font-size:.75rem}.copy-day{display:flex;align-items:center;gap:6px}.copy-day .form-select{width:105px}.schedule-grid-wrap{overflow:auto;border:1px solid #e8e5ed;border-radius:12px}.schedule-grid{border-collapse:separate;border-spacing:0;min-width:1160px;width:100%}.schedule-grid th,.schedule-grid td{border-right:1px solid #e8e5ed;border-bottom:1px solid #e8e5ed;padding:7px;vertical-align:top}.schedule-grid thead th{background:#f4f1f8;color:#4b4655;text-align:center;font-size:.78rem}.schedule-grid thead th button,.cell-tools button{border:0;background:transparent;color:#91899f;padding:2px 5px}.schedule-grid thead th button:hover,.cell-tools button:hover{color:var(--primary)}.schedule-grid tr:last-child>*{border-bottom:0}.schedule-grid tr>*:last-child{border-right:0}.schedule-grid .period-column{width:82px;min-width:82px;text-align:center;vertical-align:middle;background:#faf9fb}.period-column strong,.period-column small{display:block}.period-column small{font-size:.65rem;color:var(--muted);font-weight:400;margin-top:3px}.schedule-cell{border-radius:9px;padding:4px;background:#faf9fb;min-height:92px}.schedule-cell.filled{background:#f5f1fb}.schedule-cell .form-select{font-size:.72rem;margin-bottom:5px;border-color:#ded9e7}.cell-tools{display:flex;justify-content:flex-end;height:18px}.summary-row{display:flex;justify-content:space-between;border-bottom:1px solid #efedf2;padding:8px 2px;font-size:.83rem}.summary-row:last-child{border:0}.summary-row strong{background:#eee8f7;color:var(--primary);border-radius:20px;min-width:27px;text-align:center;padding:2px 7px}@media(max-width:767px){.schedule-context,.schedule-section-heading{align-items:stretch;flex-direction:column}.regent-box{width:100%}.copy-day{flex-wrap:wrap}.period-editor{grid-template-columns:1fr}}

/* Cadastro multipágina de alunos */
.student-heading{align-items:flex-end}.back-link{display:block;border:0;background:none;padding:0;margin-bottom:13px;color:var(--muted);font-weight:650}.back-link:hover{color:var(--primary)}.student-id-badge{background:#eee9f8;color:#6e55a3;border-radius:11px;padding:10px 15px}.student-id-badge strong{margin-left:5px;font-size:1.05rem}.student-wizard{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:20px}.wizard-step{border:1px solid var(--line);background:#fff;border-radius:13px;padding:12px;display:flex;align-items:center;gap:10px;text-align:left;color:var(--muted);min-width:0}.wizard-step>span{width:31px;height:31px;flex:0 0 31px;border-radius:50%;background:#f1eff5;display:grid;place-items:center;font-weight:750}.wizard-step div{min-width:0}.wizard-step strong,.wizard-step small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wizard-step strong{font-size:.78rem;color:#606071}.wizard-step small{font-size:.65rem;margin-top:2px}.wizard-step.current{border-color:#b6a3d8;box-shadow:0 6px 20px rgba(77,55,116,.08)}.wizard-step.current>span{background:var(--primary);color:#fff}.wizard-step.current strong{color:var(--primary)}.wizard-step.done>span{background:#e7f8f1;color:var(--success)}.student-form-card{padding:0;overflow:hidden}.form-section{padding:25px;border-bottom:1px solid var(--line)}.form-section>header{display:flex;gap:12px;align-items:center;margin-bottom:21px}.form-section>header>span{width:42px;height:42px;border-radius:11px;background:#f0ebf9;color:var(--primary);display:grid;place-items:center;font-size:1.05rem}.form-section h2{font-size:1rem;margin:0 0 2px}.form-section p{font-size:.74rem;color:var(--muted);margin:0}.student-form-footer{display:flex;justify-content:space-between;align-items:center;padding:17px 25px;background:#fafafd}.student-form-footer>div{display:flex;gap:8px}.parent-columns{display:grid;grid-template-columns:1fr 1fr;gap:30px}.parent-columns>div+div{border-left:1px solid var(--line);padding-left:30px}.parent-columns h3{font-size:.86rem;color:var(--primary);text-transform:uppercase;letter-spacing:.7px;margin-bottom:15px}.copy-buttons{display:flex;align-items:center;gap:7px;margin-bottom:17px}.copy-buttons>span{font-size:.75rem;color:var(--muted);margin-right:5px}.field-feedback{font-size:.72rem;margin-top:5px}.field-feedback.valid{color:#278566}.field-feedback.invalid{color:#c44747}.review-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}.review-item{padding:16px;background:#fff;display:flex;flex-direction:column}.review-item small{color:var(--muted);font-size:.68rem;margin-bottom:4px}.review-item strong{font-size:.86rem}.review-notice{margin:22px 25px;display:flex;gap:12px;padding:15px;border-radius:12px;background:#edf8f4;color:#28795f}.review-notice>i{font-size:1.3rem}.review-notice p{margin:2px 0 0;font-size:.75rem}.status-pill{display:inline-block;padding:4px 9px;border-radius:20px;font-size:.68rem;font-weight:700}.status-pill.active{background:#e8f8f2;color:#278467}.status-pill.inactive{background:#f1f1f5;color:#777787}.student-code{font-weight:750;color:var(--primary)}.spinner-icon{display:inline-block;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.student-wizard{grid-template-columns:repeat(5,minmax(48px,1fr))}.wizard-step{justify-content:center}.wizard-step div{display:none}}
@media(max-width:767px){.student-wizard{gap:4px}.wizard-step{padding:9px 5px}.parent-columns{grid-template-columns:1fr}.parent-columns>div+div{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:25px}.student-form-footer{align-items:stretch;gap:8px;flex-direction:column}.student-form-footer>div{display:grid;grid-template-columns:1fr 1fr}.review-grid{grid-template-columns:1fr}.copy-buttons{flex-wrap:wrap}}

/* Foto reutilizável do cadastro */
.student-identification-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:25px;align-items:start}.image-upload-field{display:flex;flex-direction:column;gap:9px}.image-thumbnail{width:180px;height:210px;border:1px dashed #c9c3d4;border-radius:14px;overflow:hidden;background:#f7f5fa;display:grid;place-items:center}.image-thumbnail img{width:100%;height:100%;object-fit:cover}.image-placeholder{display:flex;flex-direction:column;align-items:center;color:#aaa3b6;gap:6px}.image-placeholder i{font-size:3.8rem;line-height:1}.image-placeholder span{font-size:.72rem}.image-upload-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.image-file-button{position:relative;overflow:hidden;margin:0}.image-file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.image-upload-field>small{font-size:.65rem;color:var(--muted);text-align:center}
@media(max-width:767px){.student-identification-layout{grid-template-columns:1fr}.image-upload-field{width:180px;margin:0 auto 8px}}

/* Planejamento acadêmico */
.academic-editor{padding:0;overflow:hidden}.academic-editor>.card-heading,.academic-editor>.row,.academic-editor>hr,.academic-editor>.series-picker,.academic-editor>.preset-strip,.academic-editor>.subsection-heading,.academic-editor>.repeat-grid{margin-left:25px;margin-right:25px}.academic-editor>.card-heading{padding-top:24px}.academic-editor hr{border-color:var(--line);opacity:1}.card-heading{display:flex;justify-content:space-between;align-items:center}.card-heading small{color:var(--muted)}.form-actions{padding:17px 25px;background:#fafafd;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.series-picker{display:grid;gap:8px}.series-picker-row{min-height:55px;border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;gap:12px;padding:9px 13px}.series-picker-row.selected{border-color:#c9bbe2;background:#fcfaff}.series-picker-row>span{display:flex;flex:1;flex-direction:column}.series-picker-row small{color:var(--muted);font-size:.7rem}.terminal-check{margin-left:8px;color:var(--muted);font-size:.75rem}.mini-input{width:65px;border:1px solid var(--line);border-radius:7px;padding:5px}.preset-strip{display:flex;align-items:center;gap:7px;padding:20px 0;border-bottom:1px solid var(--line);margin-bottom:22px;flex-wrap:wrap}.preset-strip span{font-weight:700;margin-right:5px}.preset-strip button{border:1px solid #dcd4e9;background:#f9f7fc;color:#6f58a1;border-radius:18px;padding:6px 11px}.subsection-heading{display:flex;align-items:center;justify-content:space-between;margin-top:28px;margin-bottom:10px}.subsection-heading h2{font-size:1rem;margin:0}.subsection-heading small{color:var(--muted)}.repeat-grid{border:1px solid var(--line);border-radius:11px;overflow:hidden}.repeat-head,.repeat-row{display:grid;grid-template-columns:1fr 2fr 1.2fr .7fr 42px;gap:8px;align-items:center;padding:9px 11px}.repeat-head{background:#fafafd;color:var(--muted);font-size:.68rem;text-transform:uppercase}.repeat-row+.repeat-row{border-top:1px solid var(--line)}.repeat-row .form-control,.repeat-row .form-select{min-height:38px;padding:.45rem .6rem}.matrix-status{display:inline-flex;padding:5px 9px;border-radius:15px;font-size:.65rem;font-weight:750}.matrix-status.rascunho{background:#fff4db;color:#9a6a12}.matrix-status.publicada{background:#e5f8f0;color:#247b5c}.matrix-status.encerrada{background:#edf0f4;color:#647080}.matrix-status.cancelada{background:#ffeded;color:#ae4242}.matrix-editor>.form-section{min-height:430px}.matrix-wizard{grid-template-columns:repeat(5,1fr)}.series-tabs{display:flex;gap:7px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:15px}.series-tabs button{border:0;background:none;padding:10px 14px;border-bottom:2px solid transparent;color:var(--muted);white-space:nowrap}.series-tabs button.active{border-color:var(--primary);color:var(--primary);font-weight:700}.series-tabs span{display:block;font-size:.62rem}.component-toolbar{display:grid;grid-template-columns:2fr 1.4fr auto auto;gap:8px;margin-bottom:13px}.component-list{border:1px solid var(--line);border-radius:11px;overflow:hidden}.component-row{display:grid;grid-template-columns:40px minmax(180px,1fr) 100px 110px 140px 42px;gap:8px;align-items:center;padding:9px}.component-row+.component-row{border-top:1px solid var(--line)}.component-row>div{display:flex;flex-direction:column}.component-row small{font-size:.65rem;color:var(--muted)}.component-row .form-control,.component-row .form-select{min-height:38px}.order-handle{width:28px;height:28px;border-radius:8px;background:#f1edf7;color:var(--primary);display:grid;place-items:center;font-weight:700}.matrix-total{display:flex;justify-content:flex-end;gap:12px;padding:12px;color:var(--muted)}.matrix-total strong{color:var(--ink)}.assessment-series{display:grid;gap:10px}.assessment-series>div{display:grid;grid-template-columns:minmax(160px,1fr) 2fr 150px 150px;gap:12px;align-items:end;border:1px solid var(--line);border-radius:11px;padding:13px}.assessment-series label{font-size:.7rem;color:var(--muted)}.validation-box{margin-top:20px;padding:16px;border-radius:12px}.validation-box.valid{background:#eaf9f3;color:#217f61}.validation-box.invalid{background:#fff0f0;color:#a64040}.validation-box h3{font-size:1rem}.validation-box p{margin:4px 0;font-size:.78rem}.validation-box .warning{color:#9a6a12}
@media(max-width:900px){.component-toolbar{grid-template-columns:1fr 1fr}.component-row{grid-template-columns:35px 1fr 85px}.assessment-series>div{grid-template-columns:1fr 1fr}.repeat-head{display:none}.repeat-row{grid-template-columns:1fr 1fr}}

/* Ajustes de composição da tela de login */
.login-shell{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(36px,6vw,120px);padding:clamp(24px,4vw,72px)}
.login-panel{justify-self:center;width:min(520px,100%);padding:clamp(40px,3vw,54px) clamp(38px,3.4vw,58px)}
.login-message{justify-self:center;margin-left:0;width:min(500px,100%)}
.login-copy h1[tabindex="-1"]:focus{outline:none;box-shadow:none}
@media(max-width:991px){.login-shell{grid-template-columns:minmax(0,1fr);justify-items:center}.login-panel{width:min(520px,100%)}}
@media(max-width:575px){.login-shell{padding:18px}.login-panel{padding:30px 24px}}
.document-modal .modal-dialog{max-width:min(1200px,94vw);height:92vh}.document-modal .modal-content{height:100%}.document-modal .modal-body{min-height:0;background:#eef0f6}.document-frame{display:block;width:100%;height:100%;min-height:65vh;border:0}
.markdown-editor{border:1px solid #dfe2eb;border-radius:.6rem;overflow:hidden;background:#fff}.markdown-toolbar{display:flex;align-items:center;gap:.2rem;padding:.35rem .5rem;border-bottom:1px solid #e7e9f0;background:#f8f9fc}.markdown-toolbar button{border:0;background:transparent;border-radius:.35rem;width:2rem;height:2rem;color:#4b4d61}.markdown-toolbar button:hover:not(:disabled){background:#e9e4f8;color:#7554bd}.markdown-help{margin-left:auto;color:#8b8d9b;font-size:.75rem}.markdown-editor textarea{border:0;border-radius:0;resize:vertical}.markdown-editor textarea:focus{box-shadow:none}.markdown-editor.is-disabled{background:#f2f3f7}

/* Menu lateral recolhível: no desktop a classe fecha; no mobile ela abre. */
.app-sidebar,.app-main{transition:transform .22s ease,margin-left .22s ease,width .22s ease}
@media(min-width:992px){.sidebar-open .app-sidebar{transform:translateX(-100%)}.sidebar-open .app-main{width:100%;margin-left:0}}
@media(max-width:991px){.sidebar-open .app-main{width:100%;margin-left:0}}

/* Portal do aluno */
.portal-shell{--portal:#6552c7;--portal-dark:#272342;--portal-bg:#f5f6fb;min-height:100dvh;background:var(--portal-bg);display:flex;color:#29273a}.portal-side{position:fixed;inset:0 auto 0 0;width:238px;padding:24px 16px;background:linear-gradient(165deg,#282443,#343054);color:#fff;display:flex;flex-direction:column;z-index:50}.portal-brand{display:flex;align-items:center;gap:11px;color:#fff;padding:0 7px 28px}.portal-brand .brand-mark{width:39px;height:39px;flex:0 0 auto}.portal-brand strong,.portal-brand small{display:block}.portal-brand strong{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portal-brand small{color:#aaa5c7;font-size:.65rem;text-transform:uppercase;letter-spacing:1px}.portal-side nav{display:grid;gap:5px}.portal-side nav a{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:11px;color:#c2bed7;font-size:.88rem}.portal-side nav a:hover,.portal-side nav a.active{background:rgba(255,255,255,.1);color:#fff}.portal-side nav a.active{background:linear-gradient(100deg,#7967dc,#6652c7)}.portal-side nav i{font-size:1.05rem;width:19px;text-align:center}.portal-logout{margin-top:auto;border:0;background:transparent;color:#b8b3ce;text-align:left;padding:12px 14px}.portal-main{min-height:100dvh;margin-left:238px;width:calc(100% - 238px);display:flex;flex-direction:column}.portal-main>header{height:72px;padding:0 clamp(20px,4vw,52px);display:flex;justify-content:flex-end;align-items:center;gap:12px;background:rgba(255,255,255,.92);border-bottom:1px solid #e8e8ef;position:sticky;top:0;z-index:40;backdrop-filter:blur(12px)}.portal-main>header>div{text-align:right}.portal-main>header small,.portal-main>header strong{display:block}.portal-main>header small{font-size:.66rem;color:#9290a0}.portal-main>header strong{font-size:.86rem}.portal-avatar{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;background:#ece8ff;color:var(--portal);font-weight:800}.portal-main>main{padding:clamp(22px,4vw,48px);width:min(1260px,100%);margin:0 auto;flex:1}.portal-main>footer{text-align:center;padding:20px;color:#a09ead;font-size:.72rem}.portal-bottom{display:none}.portal-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}.portal-heading span,.portal-card-head small,.portal-hero small{color:var(--portal);font-size:.67rem;font-weight:800;text-transform:uppercase;letter-spacing:1.2px}.portal-heading h1{font-size:clamp(1.55rem,2.7vw,2.2rem);margin:4px 0}.portal-heading p{color:#777485;margin:0}.portal-action{border:0;border-radius:11px;background:var(--portal);color:#fff;padding:11px 16px;font-weight:700;box-shadow:0 7px 18px rgba(101,82,199,.22)}.portal-action:disabled{opacity:.5}.portal-hero{background:linear-gradient(120deg,#6552c7,#8977e4);color:#fff;border-radius:22px;padding:27px 30px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 16px 40px rgba(72,57,150,.2);margin-bottom:20px;overflow:hidden}.portal-hero small{color:#ddd7ff}.portal-hero h2{margin:5px 0 3px;font-size:1.5rem}.portal-hero p{margin:0;color:#e3dfff}.portal-hero>i{font-size:5rem;opacity:.18;transform:rotate(-8deg)}.portal-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px}.portal-metrics>a,.portal-metrics>div{background:#fff;border:1px solid #e9e8ef;border-radius:16px;padding:18px;display:flex;gap:13px;align-items:center;color:inherit;box-shadow:0 8px 25px rgba(35,31,61,.04)}.portal-metrics i{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:#eeeaff;color:var(--portal);font-size:1.15rem}.portal-metrics small,.portal-metrics strong{display:block}.portal-metrics small{color:#898695;font-size:.7rem}.portal-metrics strong{font-size:1.25rem;margin-top:2px}.portal-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:20px}.portal-card{background:#fff;border:1px solid #e9e8ef;border-radius:18px;padding:22px;box-shadow:0 8px 30px rgba(35,31,61,.045)}.portal-wide{min-width:0}.portal-card-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.portal-card-head h2{font-size:1.04rem;margin:2px 0}.portal-card-head>a{font-size:.77rem;color:var(--portal);font-weight:700}.portal-class{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #efedf3}.portal-class:last-child{border:0}.portal-class time{width:62px;color:var(--portal);font-weight:800}.portal-class time small,.portal-class div small{display:block;color:#9491a0;font-size:.7rem;font-weight:400}.portal-event{display:flex;gap:13px;padding:12px 0;border-bottom:1px solid #efedf3}.portal-event:last-child{border:0}.portal-event>span{background:#f0edfc;color:var(--portal);border-radius:9px;padding:7px;height:max-content;font-size:.72rem;font-weight:800}.portal-event p{margin:3px 0 0;color:#7e7b89;font-size:.79rem}.portal-empty{text-align:center;color:#8f8c9a;padding:30px 10px}.portal-empty i{font-size:2rem;color:#bbb5d4}.portal-empty h2{font-size:1.1rem;margin-top:10px}.portal-empty p{margin:8px 0 0}.portal-empty.compact{padding:15px}.portal-loading{padding:70px;text-align:center;color:#777485}.portal-loading .spinner-border{color:var(--portal);margin-right:8px}.portal-alert{padding:13px 16px;border-radius:12px;margin-bottom:18px}.portal-alert.danger{background:#fff0f2;color:#aa3548}.portal-alert.success{background:#eaf8ef;color:#27704a}.portal-periods{display:flex;gap:10px;overflow:auto;margin-bottom:20px}.portal-periods button{border:1px solid #dfdce9;background:#fff;border-radius:13px;padding:11px 16px;min-width:180px;text-align:left}.portal-periods button strong,.portal-periods button small{display:block}.portal-periods button small{color:#888493;font-size:.7rem;margin-top:2px}.portal-periods button.active{border-color:var(--portal);background:#eeeaff;color:var(--portal)}.portal-grade-list article{padding:14px 0;border-bottom:1px solid #efedf3}.portal-grade-list article:last-child{border:0}.portal-grade-list h3{font-size:.9rem;margin-bottom:10px}.portal-grade-list article>div{display:flex;gap:8px;overflow:auto}.portal-grade-list span{min-width:100px;background:#f6f5f9;border-radius:10px;padding:9px}.portal-grade-list span small,.portal-grade-list span strong{display:block}.portal-grade-list span small{font-size:.65rem;color:#858190}.portal-grade-list span strong{margin-top:3px;color:var(--portal)}.portal-frequency{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:11px 0}.portal-frequency small{display:block;color:#9692a0;font-size:.68rem}.portal-frequency b{color:var(--portal)}.portal-frequency progress{grid-column:1/-1;width:100%;height:6px;border:0}.portal-days{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.portal-days .portal-card-head small{color:#858190}.portal-timeline{display:grid;gap:14px}.portal-timeline article{border-left:4px solid #c7bff0}.portal-timeline time{font-size:.7rem;color:var(--portal);font-weight:800;text-transform:uppercase}.portal-timeline h2{font-size:1rem;margin:5px 0}.portal-timeline p{margin:0;color:#716e7b}.portal-filter{border:1px solid #ddd9e8;border-radius:9px;padding:7px}.portal-title-list article{display:grid;grid-template-columns:auto 56px 1fr auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #efedf3}.portal-title-list article:last-child{border:0}.portal-title-list article.overdue{color:#9d3443}.portal-title-list time{width:48px;height:48px;border-radius:11px;background:#f2effb;display:grid;place-content:center;text-align:center;color:var(--portal)}.portal-title-list time strong,.portal-title-list time small,.portal-title-list div small,.portal-title-list>article>span small{display:block}.portal-title-list time small{text-transform:uppercase;font-size:.58rem}.portal-title-list div small,.portal-title-list>article>span small{font-size:.7rem;color:#9692a0}.portal-title-list>article>span{text-align:right}.portal-profile-head{display:flex;align-items:center;gap:15px;margin-bottom:22px}.portal-profile-head>span{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:#ece8ff;color:var(--portal);font-size:1.25rem;font-weight:800}.portal-profile-head h2{font-size:1.1rem;margin:0}.portal-profile-head p,.portal-profile-head small{margin:3px 0 0;color:#858190}.portal-profile-data{display:grid;grid-template-columns:1fr 1fr;gap:16px}.portal-profile-data dt{font-size:.66rem;color:#908c9a;text-transform:uppercase}.portal-profile-data dd{margin:3px 0 0}.portal-notice{display:flex;gap:10px;padding:12px;background:#f4f1fd;border-radius:11px;color:#645d7a;margin-top:20px}.portal-notice p{margin:0;font-size:.78rem}.portal-login-links{display:flex;justify-content:space-between;margin-top:18px;font-size:.78rem}.portal-admin-link{display:block;text-align:center;border-top:1px solid #eeeaf2;margin-top:23px;padding-top:18px;color:#8b8795;font-size:.75rem}.portal-code{text-align:center;font-size:1.4rem;letter-spacing:8px;font-weight:800}
@media(max-width:900px){.portal-side{display:none}.portal-main{margin-left:0;width:100%}.portal-main>header{height:64px;padding:0 18px}.portal-main>main{padding:22px 17px 90px}.portal-main>footer{display:none}.portal-bottom{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);inset:auto 0 0 0;background:rgba(255,255,255,.96);border-top:1px solid #e7e5ed;z-index:60;padding:6px 4px max(6px,env(safe-area-inset-bottom));backdrop-filter:blur(14px)}.portal-bottom a{display:flex;flex-direction:column;align-items:center;gap:2px;color:#8c8996;font-size:.58rem;padding:5px}.portal-bottom i{font-size:1.13rem}.portal-bottom a.active{color:var(--portal)}.portal-grid{grid-template-columns:1fr}.portal-days{grid-template-columns:1fr}}
@media(max-width:575px){.portal-heading{align-items:flex-start;flex-direction:column;margin-bottom:20px}.portal-heading .portal-action{width:100%}.portal-hero{padding:23px 20px}.portal-hero>i{font-size:3.8rem}.portal-metrics{grid-template-columns:1fr}.portal-metrics>a,.portal-metrics>div{padding:13px 15px}.portal-profile-data{grid-template-columns:1fr}.portal-card{padding:17px}.portal-title-list article{grid-template-columns:auto 46px 1fr}.portal-title-list>article>span{grid-column:3;text-align:left}.financial{grid-template-columns:1fr}.portal-login-links{align-items:center;flex-direction:column;gap:12px}}

/* Identidade visual do SysAcadêmico */
.brand-mark{background:#fff;overflow:hidden;box-shadow:0 7px 18px rgba(15,48,117,.25)}
.brand-mark img{display:block;width:100%;height:100%;object-fit:cover}
.form-control.automatic-code[readonly]{background-color:#e9ecef;color:#6c757d}
