/* Clear hierarchy, comfortable tablet targets and compact pupil rows. */
.portal-shell31 .main{margin:0 auto;align-self:start;min-width:0;width:100%}
.portal-shell31 .workspace-settings{width:100%;max-width:1080px;min-width:0}
.portal-shell31 #featureRows{display:block;width:100%}
.portal-shell31 .feature-setting{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(160px,220px);align-items:center;gap:24px;padding:18px 0;width:100%}
.portal-shell31 .feature-setting>div{min-width:0;width:auto;max-width:none;flex:none}
.portal-shell31 .feature-setting label,.portal-shell31 .feature-setting p{width:auto;max-width:none;white-space:normal;overflow-wrap:break-word}
.portal-shell31 .feature-setting label{font-weight:650}
.portal-shell31 .feature-setting p{margin:7px 0 0;line-height:1.5}
.portal-shell31 .feature-setting select{width:100%;min-width:0;max-width:220px;justify-self:end;margin:0}
.portal-shell31 .feature-setting[hidden]{display:none!important}
.portal-shell31 .setting-toggle>span{min-width:0;flex:1}
.portal-shell31 .setting-toggle input{width:44px;flex:0 0 44px}
.portal-shell31 .settings-tabs{flex-wrap:wrap;overflow:visible}
.portal-shell31 .settings-tabs button{white-space:normal;min-height:44px}
.portal-shell31 .student-card31{position:relative;border:1px solid var(--edge33,#bccdea);border-top:5px solid var(--accent33,#567cc0);background:linear-gradient(135deg,var(--tint33,#eef4ff),#fff 76%);box-shadow:0 6px 20px #172b4908}
.portal-shell31 .student-card31 .avatar31{background:var(--tint33);color:var(--accent33);border:1px solid var(--edge33)}
.portal-shell31 .student-metrics31{background:#ffffffbf;border:1px solid var(--edge33);border-radius:14px}
.portal-shell31 .student-card31 .login31{color:#42546c}
.portal-shell31 .hours-grid32{display:flex;flex-direction:column;gap:10px}
.portal-shell31 .hours-card32{padding:14px 18px;border-radius:18px;border:1px solid var(--edge33,#d1daea);border-left:5px solid var(--accent33,#567cc0);background:linear-gradient(100deg,var(--tint33,#f0f4fc),#fff 70%);min-width:0}
.hours-top33{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center}
.hours-top33>.btn{width:auto;flex:0 0 auto}
.hours-person33{display:flex;gap:12px;align-items:center;min-width:0;flex:1 1 220px}
.hours-person33>div{min-width:0}
.hours-person33 h2{font-size:16px!important;margin:0;line-height:1.35;overflow-wrap:break-word}
.hours-person33 small{display:block;color:#61728c;margin-top:3px}
.hours-person33 .avatar31{width:38px;height:38px;flex:0 0 38px;background:#ffffffc9;color:var(--accent33)}
.hours-card32 .hours-total32{font-size:23px;margin:0;line-height:1.2;white-space:nowrap}
.hours-details33{margin-top:10px;font-size:13px;color:#415974}
.hours-details33>summary{cursor:pointer;min-height:32px;line-height:32px}
.hours-details33[open]{padding-top:4px}
.hours-details33:not([open])>:not(summary){display:none}
.hours-details33 .hours-breakdown32{display:flex;flex-wrap:wrap;gap:12px 28px;margin:10px 0}
.hours-details33 .hours-breakdown32>span{display:flex;gap:8px}
.hours-details33 .check32{min-height:44px;font-size:14px;margin:0}
.notifications-feed33{max-width:1080px}
.entry-page33 .quick-guest-card{max-width:520px;text-align:left}
.entry-page33 .quick-guest-logo{margin-bottom:26px}
.entry-page33 h1{font-size:28px;line-height:1.2}
.entry-page33 .field{margin:18px 0}
.entry-page33 input{font-size:16px;min-height:48px;width:100%;box-sizing:border-box}
.entry-page33 .btn.primary{width:100%;min-height:50px}
.entry-help33{font-size:13px;line-height:1.6;color:#61728c;margin-top:22px}
#accessError33{color:#ad263d;line-height:1.5}
.modal-wrap{grid-template-columns:minmax(0,1fr)}
.modal-wrap>.modal{width:100%;max-width:700px;min-width:0;box-sizing:border-box}
.modal-wrap>.modal.wide{max-width:1100px}
.modal .btn{max-width:100%;white-space:normal}
.modal .btn svg{width:20px;height:20px;flex-shrink:0}
@media(max-width:700px){
 .portal-shell31 .feature-setting{grid-template-columns:minmax(0,1fr);gap:10px;padding:16px 0}
 .portal-shell31 .feature-setting select{max-width:none;justify-self:stretch}
 .portal-shell31 .hours-card32{padding:12px}
 .hours-top33{gap:10px}
 .hours-top33>.btn{min-height:40px}
 .hours-person33{gap:8px;flex-basis:calc(100% - 85px)}.hours-person33 h2{font-size:15px!important}
 .hours-card32 .hours-total32{font-size:21px}
 .hours-details33 .hours-breakdown32{display:grid;gap:7px}
 .hours-details33 .hours-breakdown32>span{justify-content:space-between}
 .portal-shell31 .workspace-save{position:static;flex-wrap:wrap;gap:12px}
 .portal-shell31 .workspace-save .btn{width:100%}
}
