/* Shared page polish and per-student permission controls. */
.mist-theme .no-student-sidebar{grid-template-columns:minmax(0,1fr)!important}.mist-theme .no-student-sidebar>.workspace{grid-column:1/-1;width:100%}.mist-theme .no-student-sidebar main{width:100%;max-width:1280px;margin-inline:auto}
.access-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.access-grid>section{border:1px solid var(--line);border-radius:10px;padding:16px}.access-grid h3{margin-bottom:14px}.access-switch{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-top:1px solid var(--line);cursor:pointer}.access-switch input{width:19px;height:19px;margin:3px 0;flex-shrink:0;accent-color:var(--primary)}.access-switch strong{display:block;color:var(--ink);font-size:14px}.access-switch small{display:block;font-size:12px;line-height:1.7;margin-top:4px}.family-permission-note{font-size:13px;color:var(--muted);margin:0 0 20px;line-height:1.9}.family-status-control{display:block;font-size:12px;max-width:280px;margin-top:12px}.family-status-control select{display:block;margin-top:6px;font-size:14px;min-height:40px}.family-credentials{margin-top:24px}.family-credential{padding:20px 24px;border-top:1px solid var(--line)}.family-credential p{font-size:14px;overflow-wrap:anywhere}.family-credential a{color:var(--primary)}.family-credential code{overflow-wrap:anywhere}.family-credential button{font-size:12px}.studenthero>div:last-child{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.student-tools{margin:14px 0}.student-tools summary{cursor:pointer;color:var(--primary);font-size:13px}.student-tools>div{margin-top:10px}.mist-theme .studentviewtabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:18px 0 22px;padding-bottom:0;overflow:auto}.mist-theme .studentviewtabs button{border:0;background:transparent;border-radius:0;padding:12px 0;white-space:nowrap;min-height:44px;color:var(--muted)}.mist-theme .studentviewtabs button.selected{border-bottom:3px solid var(--primary);color:var(--primary);background:transparent;font-weight:600}.mist-theme .studenthero{padding:22px 24px;margin-bottom:18px}.mist-theme .studentcard{padding:20px}.mist-theme .studentcard h3{display:flex;align-items:center;gap:10px;margin-top:12px}.mist-theme .schoolcard{background:white}.mist-theme .schoolcard:hover{background:#f7f9ff;border-color:#b9c5e8}.mist-theme #advisorStudentFilter{min-width:220px;width:auto}.mist-theme .studentgrid>.empty{grid-column:1/-1;background:white;border:1px solid var(--line);border-radius:10px;min-height:140px}.mist-theme .studentviewtabs~.heading h1{font-size:21px}.mist-theme .studentviewtabs~.heading p{font-size:13px;max-width:65ch}.mist-theme .studentviewtabs~.heading{margin-top:20px}
.mist-theme dialog{overflow:hidden;max-height:90dvh}.mist-theme dialog form{display:flex;flex-direction:column;max-height:90dvh;min-height:0}.mist-theme dialog .modalhead,.mist-theme dialog .modalfoot{flex-shrink:0}.mist-theme dialog .modalbody{overflow-y:auto;min-height:0;max-height:none}.mist-theme .region-shortcuts button[aria-pressed=true]{background:var(--primary);border-color:var(--primary)}.followup-extra{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.followup-extra summary{cursor:pointer;color:var(--primary)}.followup-extra label{margin-top:14px}
@media(max-width:800px){.access-grid{grid-template-columns:1fr}.studenthero>div:last-child{justify-content:flex-start}.mist-theme .studentviewtabs{gap:18px}.mist-theme dialog{max-height:94dvh}.mist-theme dialog form{max-height:94dvh}.mist-theme .studenthero{padding:18px}.family-status-control{max-width:100%}.family-credential{padding:16px}.mist-theme #advisorStudentFilter{min-width:0;max-width:100%}.mist-theme .studentviewtabs~.heading{flex-direction:column;align-items:flex-start}}
