/* Shared dimensions and alignment for administrator, teacher and student. */
:root{--portal-width:1450px;--portal-gap:20px}
.portal-header-inner,.portal-nav{max-width:var(--portal-width)}
.portal-shell .main{max-width:var(--portal-width)}
button.portal-brand{border:0;padding:0;background:transparent;box-shadow:none;text-align:left;line-height:1.4;border-radius:8px;font-weight:inherit;white-space:normal;justify-content:flex-start}
button.portal-brand:hover:not(:disabled){background:transparent;color:#161942;box-shadow:none;transform:none}
.portal-logout{display:inline-flex!important;align-items:center;justify-content:center;border:1px solid #c3cde1!important;background:#fff9!important;min-height:48px}
.portal-controls>button{min-height:48px}
.portal-location{display:grid;grid-template-columns:104px minmax(0,1fr) 104px;align-items:center;gap:16px;margin:0 0 24px}
.portal-location>button{width:100%;display:inline-flex;gap:6px;justify-content:center;align-items:center;padding:10px;min-height:46px}
.portal-location-label{text-align:center;font-size:14px;font-weight:600;color:#52627a;line-height:1.5;overflow-wrap:anywhere}
.portal-location>button:disabled{opacity:.5;cursor:default}
.portal-nav>button{justify-content:center;text-align:center}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:var(--portal-gap)}
.page-head>div:first-child{min-width:0}.page-head>.row-actions{margin-top:0}
.page-head .row-actions>button{min-height:48px}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--portal-gap)}
.stat{display:flex;flex-direction:column;justify-content:center;min-height:124px}
.admin-review-grid{gap:var(--portal-gap);align-items:stretch}
.admin-review-grid article{display:flex;flex-direction:column;align-items:flex-start;height:100%;gap:0}
.admin-review-grid h3{flex:1;margin:12px 0 20px;min-height:48px}
.admin-review-grid button{margin-top:auto;width:100%;min-height:48px}
.teacher-start-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--portal-gap)}
.teacher-start-actions button{width:100%;min-height:50px;white-space:normal}
.wizard-route-grid{gap:var(--portal-gap);align-items:stretch}
.wizard-route{align-items:stretch}.wizard-route p{max-width:none;flex:1;min-height:84px}
.wizard-route>button{min-height:52px;width:100%;white-space:normal}
.wizard-route-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:auto;width:100%}
.wizard-route-actions button,.wizard-route-actions .button{min-height:52px;margin:0;display:flex;align-items:center;justify-content:center;white-space:normal;text-align:center;text-decoration:none;padding:12px;font-size:15px}
.wizard-route small{min-height:24px}.wizard-route-icon{align-self:flex-start}
.wizard-import-steps{gap:var(--portal-gap);align-items:stretch}
.wizard-import-steps li{display:flex;flex-direction:column;align-items:flex-start;border:1px solid #d1daea;border-radius:14px;padding:18px;background:#fbfcff;counter-increment:guide-step;min-width:0}
.wizard-import-steps{counter-reset:guide-step;list-style:none;padding:0}
.wizard-import-steps li>strong::before{content:counter(guide-step) '. ';color:#893750}
.wizard-import-steps p{flex:1}.wizard-import-steps .button,.wizard-import-steps button{font-size:14px;min-height:48px;width:100%;white-space:normal}
.assessment-row{align-items:center}.assessment-row>div{min-width:0}.assessment-row>button{min-width:170px;min-height:48px}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--portal-gap);align-items:start}
.form-grid input,.form-grid select,.form-grid textarea{width:100%}
.wizard-heading>button{min-width:140px;min-height:48px}
.wizard-footer .row-actions>button,.wizard-primary-slot>button{min-height:48px}
@media(max-width:1180px){
 .portal-nav[data-open=true]{gap:12px}
 .portal-nav button{justify-content:center;text-align:center;min-height:52px}
 .mobile-account{display:block}.mobile-account button{width:100%}
 .portal-account{display:none!important}
 .portal-controls{margin-left:auto}
}
@media(max-width:800px){
 .stats,.admin-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .wizard-route-grid{grid-template-columns:1fr}
 .wizard-route p{min-height:0}
 .wizard-import-steps{grid-template-columns:1fr}
 .wizard-heading>button{min-width:112px;max-width:112px}
 .page-head{align-items:flex-start}.page-head .row-actions{flex:0 1 auto;justify-content:flex-end}
 .assessment-row{align-items:stretch}.assessment-row>button{min-width:0;width:100%}
}
@media(max-width:760px){
 .portal-header-inner{display:grid;grid-template-columns:1fr;gap:14px;padding:16px}
 .portal-brand{justify-self:center;justify-content:center!important}
 .portal-controls{width:100%;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .portal-controls>button{display:inline-flex!important;align-items:center;justify-content:center;min-height:52px;width:100%;font-size:14px;padding:10px 6px;white-space:normal;line-height:1.35}
 .portal-controls>.portal-account{display:none!important}
 .portal-controls .cima-entry{padding:10px 6px!important;gap:5px}
 .cima-symbol-small{width:26px;height:26px}
 .portal-shell .main{padding-left:16px!important;padding-right:16px!important}
 .portal-nav{padding-left:16px;padding-right:16px}
 .portal-location{grid-template-columns:88px minmax(0,1fr) 88px;gap:8px;margin-bottom:22px}
 .portal-location-label{font-size:13px}
 .portal-location>button{font-size:14px;min-height:46px;padding:9px 6px}
 .page-head{display:block}.page-head>.row-actions{margin-top:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .page-head .row-actions>button{width:100%;white-space:normal}
 .page-head .row-actions>button:only-child{grid-column:1/-1}
 .form-grid{grid-template-columns:1fr}
 .admin-attention>button{width:100%}
 .teacher-start-actions{gap:12px}.teacher-start-actions button{font-size:14px;padding:12px}
 .wizard-section-head>.row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .wizard-section-head>.row-actions>button{width:100%;white-space:normal}
 .wizard-footer .row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .wizard-primary-slot{grid-column:1/-1;display:block}.wizard-primary-slot>button{width:100%;white-space:normal}
 .wizard-footer .row-actions>button{width:100%;white-space:normal;grid-column:auto!important}
}
@media(max-width:480px){
 .portal-nav[data-open=true]{grid-template-columns:1fr}
 .teacher-start-actions,.wizard-route-actions{grid-template-columns:1fr}
 .stats,.admin-review-grid{gap:12px}
 .stat{padding:16px;min-height:116px}.stat strong{font-size:28px}
 .admin-review-grid article{padding:14px}.admin-review-grid article>strong{font-size:28px}
 .admin-review-grid h3{font-size:14px;line-height:1.5;min-height:63px;margin:10px 0 14px}
 .admin-review-grid button{font-size:14px;margin-top:auto}
 .wizard-heading{display:block}.wizard-heading>button{max-width:none;min-width:0;width:100%;margin-top:14px}
}
@media print{.portal-location{display:none!important}}
