/* Teachers Hub and account-scoped website attendance. */
.am-teacher-hub{padding:12px 0 24px}.am-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}.am-hub-card{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:300px;padding:22px;border:1px solid #dce7f1;border-radius:20px;background:#fff;box-shadow:0 6px 22px #18213f09}.am-hub-featured{border-color:#b8d7e9}.am-hub-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:14px;background:#eaf5f8;color:#18213f;font-size:22px;font-weight:700}.am-hub-card h3{margin:0;font-size:18px;line-height:1.4;color:#18213f}.am-hub-description{margin:0;font-size:13px;line-height:1.65;color:#586a82;overflow-wrap:break-word}.am-hub-card-footer{display:flex;flex-direction:column;gap:8px;margin-top:auto;padding-top:8px}.am-hub-buttons{display:flex;gap:8px}.am-hub-button{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:42px;padding:10px 13px;border-radius:11px;background:#18213f!important;color:#fff!important;text-decoration:none!important;border:1px solid #18213f;cursor:pointer;font:600 12px/1.4 Inter,system-ui,sans-serif;text-align:center}.am-hub-buttons .am-hub-button{flex:1;min-width:0}.am-hub-outline{background:transparent!important;color:#18213f!important;border-color:#9badc6}.am-hub-disabled{background:#edf1f7!important;color:#65748b!important;border-color:#dce3ed;cursor:default}.am-hub-card-note,.am-hub-text-action{display:flex;align-items:center;justify-content:center;gap:6px;min-height:32px;margin:0;padding:3px 0;font:500 11px/1.5 Inter,system-ui,sans-serif;color:#586a82;text-align:center}.am-hub-text-action{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.am-hub-text-action svg{width:14px;height:14px}.am-hub-swipe{display:none}.am-qr-panel{margin-top:24px;padding:22px;border:1px solid #dce7f1;border-radius:20px;background:#fff;min-width:0;color:#18213f}.am-qr-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.am-qr-eyebrow{font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#52758a}.am-qr-heading h2{font-size:20px;line-height:1.4;margin:5px 0}.am-qr-heading p,.am-qr-empty p{font-size:13px;line-height:1.65;color:#586a82;margin:4px 0}.am-qr-heading-actions,.am-qr-page-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.am-qr-heading-actions .am-hub-button{min-height:36px;padding:7px 12px}.am-qr-account{font-size:12px;line-height:1.6;color:#586a82;overflow-wrap:anywhere;margin:12px 0}.am-qr-connection,.am-qr-pill{display:inline-flex;padding:5px 9px;border-radius:99px;font-size:11px;line-height:1.4;font-weight:600;background:#eaf5ef;color:#216145;white-space:nowrap}.am-qr-connection[data-tone=loading],.am-qr-connection[data-tone=preview]{background:#edf1f7;color:#586a82}.am-qr-connection[data-tone=error],.am-qr-connection[data-tone=offline],.am-qr-late{background:#fff1d9;color:#855313}.am-qr-message{display:block;margin:16px 0;padding:13px 15px;border:1px solid #dce7f1;border-radius:12px;font-size:13px;line-height:1.65;overflow-wrap:break-word;background:#f4f7fb}.am-qr-message[data-tone=error],.am-qr-message[data-tone=offline]{background:#fff8eb;border-color:#edd6aa;color:#78521b}.am-qr-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 22px}.am-qr-summary>div{padding:15px 18px;border-radius:13px;background:#f3f7fa;min-width:0}.am-qr-summary span{display:block;font-size:12px;line-height:1.5;color:#586a82}.am-qr-summary strong{display:block;font-size:26px;line-height:1.4;margin-top:4px;color:#18213f}.am-qr-section-title{font-size:14px;margin:0 0 12px}.am-qr-table-wrap{width:100%;overflow:auto;max-height:540px;border:1px solid #e1e8f0;border-radius:12px}.am-qr-table{width:100%;min-width:620px;border-collapse:collapse;text-align:left}.am-qr-table th{background:#f3f7fa;color:#586a82;font-size:11px;font-weight:600;position:sticky;top:0;z-index:1}.am-qr-table th,.am-qr-table td{padding:13px 14px;line-height:1.55;border-bottom:1px solid #e1e8f0;vertical-align:top}.am-qr-table td{font-size:12px;overflow-wrap:anywhere}.am-qr-table td strong{font-weight:600}.am-qr-table tr:last-child td{border-bottom:0}.am-qr-empty{padding:24px;border:1px dashed #cbd9e7;border-radius:12px;font-size:14px;line-height:1.65;background:#fafcfe}.am-qr-empty p{max-width:650px;margin:6px 0 0}.am-qr-loading{padding:24px 0;font-size:13px;color:#586a82}.am-qr-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px}.am-qr-footer p,.am-qr-note{font-size:11px;line-height:1.65;color:#586a82;margin:0}.am-qr-note{margin-top:18px;padding-top:14px;border-top:1px solid #e1e8f0}.am-qr-filters{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,2fr) auto;align-items:end;gap:12px;margin:18px 0}.am-qr-filters label{display:grid;gap:6px;font-size:12px;font-weight:600}.am-qr-filters input,.am-qr-filters select{box-sizing:border-box;min-width:0;width:100%;min-height:42px;border:1px solid #c3cfde;border-radius:10px;padding:9px 12px;background:#fff;color:#18213f;font:400 13px Inter,system-ui,sans-serif}.am-qr-panel [hidden]{display:none!important}.am-hub-card a:focus-visible,.am-hub-card button:focus-visible,.am-qr-panel :is(button,input,select,a,.am-qr-table-wrap):focus-visible{outline:3px solid #67b9bd;outline-offset:3px}
:root[data-theme=dark] :is(.am-hub-card,.am-qr-panel){background:#202b46;border-color:#3d4d6a;color:#f0f7ff}:root[data-theme=dark] :is(.am-hub-card h3,.am-qr-summary strong){color:#f0f7ff}:root[data-theme=dark] :is(.am-hub-description,.am-hub-card-note,.am-hub-text-action,.am-qr-account,.am-qr-heading p,.am-qr-empty p,.am-qr-footer p,.am-qr-note,.am-qr-summary span,.am-qr-loading){color:#bdcce0}:root[data-theme=dark] .am-hub-outline{color:#eff7ff!important;border-color:#8fa5c4}:root[data-theme=dark] :is(.am-qr-summary>div,.am-qr-table th,.am-qr-empty,.am-qr-message){background:#26344f;color:#bdcce0}:root[data-theme=dark] :is(.am-qr-table-wrap,.am-qr-table th,.am-qr-table td,.am-qr-note,.am-qr-empty,.am-qr-message){border-color:#40516e}:root[data-theme=dark] .am-qr-filters :is(input,select){background:#26344f;color:#f0f7ff;border-color:#617693;color-scheme:dark}:root[data-theme=dark] .am-qr-message[data-tone=error],:root[data-theme=dark] .am-qr-message[data-tone=offline]{background:#3b3226;color:#f2d29e;border-color:#78603d}:root[data-theme=dark] .am-qr-eyebrow{color:#9ac2d2}
@media(max-width:1000px){.am-hub-grid{gap:12px}.am-hub-card{padding:18px}.am-hub-card h3{font-size:17px}.am-hub-button{padding:10px;font-size:11px}.am-qr-panel{padding:18px}}
@media(max-width:700px){.am-hub-grid{grid-template-columns:repeat(3,minmax(260px,1fr));overflow-x:auto;scroll-snap-type:x proximity;padding:0 1px 12px}.am-hub-card{scroll-snap-align:start}.am-hub-swipe{display:block;margin:8px 0 0;font-size:11px;color:#687b91}.am-qr-panel{padding:16px}.am-qr-heading h2{font-size:18px}.am-qr-summary{gap:7px}.am-qr-summary>div{padding:12px 9px}.am-qr-summary span{font-size:10px}.am-qr-summary strong{font-size:23px}.am-qr-filters{grid-template-columns:1fr}.am-qr-heading-actions{width:100%;justify-content:space-between}.am-qr-empty{padding:18px}.am-qr-footer .am-hub-button{width:100%}}
/* Keep the action baselines aligned when a secondary caption wraps. */
.am-hub-card-note,.am-hub-text-action{box-sizing:border-box;min-height:40px}
:root[data-theme=dark] .am-hub-icon{background:#33485f;color:#d6eef3}

/* v1.4.71: shared tracks balance Teachers Hub text and actions. */
.am-teacher-hub .am-hub-grid{gap:18px;align-items:stretch}
.am-teacher-hub .am-hub-card{display:grid;grid-row:span 4;grid-template-rows:subgrid;align-content:start;gap:16px;min-width:0;min-height:0;padding:22px;box-sizing:border-box}
.am-teacher-hub .am-hub-icon{width:46px;height:46px;flex:none;margin:0;box-sizing:border-box}
.am-teacher-hub .am-hub-icon svg{width:22px;height:22px;flex:none}
.am-teacher-hub .am-hub-card h3{font-size:18px;line-height:1.4;margin:0;overflow-wrap:break-word}
.am-teacher-hub .am-hub-description{font-size:13px;line-height:1.7;margin:0;width:100%;min-width:0;max-width:none;white-space:normal;word-break:normal}
.am-teacher-hub .am-hub-card-footer{display:grid;grid-template-rows:44px minmax(40px,auto);align-content:start;gap:10px;width:100%;min-width:0;margin:0;padding:0}
.am-teacher-hub .am-hub-buttons{display:flex;align-items:stretch;gap:10px;min-width:0;width:100%;margin:0}
.am-teacher-hub .am-hub-buttons .am-hub-button{flex:1 1 0;min-width:0;min-height:44px;max-width:100%;padding:9px 12px;font-size:12px;line-height:1.5;margin:0}
.am-teacher-hub .am-hub-card-note{display:block;box-sizing:border-box;min-width:0;width:100%;max-width:none;min-height:40px;padding:2px 0;margin:0;font-size:12px;line-height:1.6;white-space:normal;word-break:normal;overflow-wrap:break-word;text-align:center}
.am-teacher-hub .am-hub-text-action{box-sizing:border-box;width:100%;max-width:none;min-width:0;min-height:40px;padding:2px 0;margin:0;white-space:normal;word-break:normal;font-size:12px;line-height:1.6}
.am-teacher-hub .am-hub-text-action svg{flex:0 0 14px;width:14px;height:14px}
@media(max-width:1000px){.am-teacher-hub .am-hub-grid{gap:14px}.am-teacher-hub .am-hub-card{padding:18px;gap:14px}.am-teacher-hub .am-hub-card h3{font-size:17px}}
@media(max-width:700px){.am-teacher-hub .am-hub-grid{gap:12px}.am-teacher-hub .am-hub-card{padding:18px;gap:14px}}

/* One shared feature heading for every Teachers Hub detail view. */
.am-hub-feature-header{margin:0 0 22px;min-width:0;color:#18213f}
.am-hub-feature-header>.eyebrow{display:block;margin:0 0 10px;font-size:12px;line-height:1.5;font-weight:700;letter-spacing:.09em;color:#52758a}
.am-hub-feature-title-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;min-width:0}
.am-hub-feature-title-row>h1{margin:0;min-width:0;font-size:32px;line-height:1.3;letter-spacing:-.025em;overflow-wrap:break-word}
.am-hub-feature-title-row>.am-hub-back{display:inline-flex;align-items:center;justify-content:center;position:static;box-sizing:border-box;margin:0;padding:10px;width:44px;height:44px;min-width:44px;border-radius:12px}
.am-hub-back svg{width:20px;height:20px;flex:none}
.am-hub-feature-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.am-hub-feature-actions>.am-hub-button{min-height:44px;margin:0;padding:10px 16px;font-size:13px;line-height:1.5;box-shadow:none}
.am-hub-feature-description{margin:12px 0 0 58px;font-size:14px;line-height:1.7;color:#586a82}
.am-hub-feature-header :is(button,a):focus-visible{outline:3px solid #67b9bd;outline-offset:3px}
:root[data-theme=dark] .am-hub-feature-header{color:#f0f7ff}
:root[data-theme=dark] .am-hub-feature-description{color:#bdcce0}
:root[data-theme=dark] .am-hub-feature-header>.eyebrow{color:#9ac2d2}
@media(max-width:700px){.am-hub-feature-title-row{grid-template-columns:40px minmax(0,1fr) auto;gap:10px}.am-hub-feature-title-row>h1{font-size:22px}.am-hub-feature-title-row>.am-hub-back{width:40px;height:40px;min-width:40px;padding:9px}.am-hub-feature-actions>.am-hub-button{max-width:150px;min-height:40px;padding:8px 10px;font-size:11px;white-space:normal}.am-hub-feature-description{margin-left:50px;font-size:13px}}
/* School Forms retain the native routes in a balanced four-column card layout. */
#view .school-forms-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
#view .school-forms-grid .school-form-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:16px;padding:22px;min-width:0;min-height:290px;border:1px solid #dce7f1;border-radius:20px;box-shadow:0 6px 22px #18213f09}
#view .school-forms-grid .school-form-card:before{display:none}
#view .school-form-card .school-form-card-icon{position:static;margin:0;flex:none;width:46px;height:46px;border-radius:14px}
#view .school-form-card .school-form-card-copy{display:flex;flex-direction:column;gap:10px;margin:0;min-width:0;width:100%}
#view .school-form-card-copy strong{margin:0;font-size:18px;line-height:1.4}
#view .school-form-card-copy>span:last-child{font-size:13px;line-height:1.7;white-space:normal}
#view .school-form-card .school-form-card-footer{margin-top:auto;padding-top:8px;gap:10px;line-height:1.5;min-width:0;position:static}
#view .school-form-card-footer em{white-space:normal;font-size:11px}
.am-teacher-hub .am-hub-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.am-portal-panel>p,.am-portal-panel li{font-size:13px;line-height:1.7;color:var(--muted,#586a82)}
.am-portal-panel h2{margin-top:0}.am-portal-panel h3{margin-top:24px}.am-portal-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.am-portal-actions .am-hub-button{min-height:38px}.am-portal-link{display:grid;gap:8px;font-size:12px}.am-portal-link input{box-sizing:border-box;width:100%;padding:12px;border:1px solid #c3cfde;border-radius:10px;font:inherit;background:transparent;color:inherit}.am-portal-panel :disabled{opacity:.6;cursor:default}
@media(max-width:1150px) and (min-width:701px){.am-teacher-hub .am-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){#view .school-forms-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.am-teacher-hub .am-hub-grid{grid-template-columns:repeat(4,minmax(260px,1fr))}#view .school-forms-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#view .school-forms-grid .school-form-card{padding:16px;min-height:290px}#view .school-form-card-copy strong{font-size:16px}}
@media(max-width:420px){#view .school-forms-grid{grid-template-columns:1fr}}
#view .school-forms-grid .school-form-card{display:grid;grid-row:span 5;grid-template-rows:subgrid;gap:14px;align-content:start}
#view .school-forms-grid .school-form-card-copy{display:contents}
#view .school-form-card .school-form-card-footer{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:0;padding-top:8px}
#view .school-form-card-footer em{text-align:left;max-width:calc(100% - 44px)}
#view .school-forms-grid .school-form-card{grid-template-columns:minmax(0,1fr)}
#view .school-form-card>.school-form-card-icon,#view .school-form-card-copy>*,#view .school-form-card>.school-form-card-footer{grid-column:1;min-width:0;overflow-wrap:break-word}

/* v1.4.74: generous three-column desktop cards in both workspaces. */
#view .school-forms-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.am-teacher-hub .am-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1000px) and (min-width:701px){#view .school-forms-grid,.am-teacher-hub .am-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#view .school-forms-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.am-teacher-hub .am-hub-grid{grid-template-columns:repeat(4,minmax(260px,1fr))}}
@media(max-width:420px){#view .school-forms-grid{grid-template-columns:1fr}}

.am-real-account-test{position:relative;z-index:2;background:#eaf5f8;color:#18213f;border-bottom:1px solid #b8d7e9;padding:10px 20px;font:500 12px/1.6 Inter,system-ui,sans-serif;box-sizing:border-box}
.am-has-account-test #app-shell{min-height:calc(100vh - 60px)}

.am-local-account-badge{z-index:25000;top:auto;bottom:10px;left:auto;right:12px;transform:none;max-width:calc(100vw - 24px);white-space:normal;pointer-events:none;box-sizing:border-box;font-size:11px}

/* v1.4.89: compact horizontal headings, four desktop columns, shared row tracks. */
#view .school-forms-grid,#view .am-teacher-hub .am-hub-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
#view .school-forms-grid .school-form-card,#view .am-teacher-hub .am-hub-card{display:grid;grid-row:span 3;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;align-content:start;gap:12px;min-height:0;min-width:0;padding:18px;border-radius:18px;box-sizing:border-box}
#view .school-form-card>.am-form-card-heading,#view .am-hub-card>.am-hub-card-heading{display:flex;align-items:center;gap:11px;min-width:0;width:100%;grid-column:1;margin:0;padding:0}
#view .school-form-card .school-form-card-icon,#view .am-teacher-hub .am-hub-icon{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;margin:0;border-radius:12px;box-sizing:border-box}
#view .school-form-card-icon svg,#view .am-teacher-hub .am-hub-icon svg{width:22px;height:22px;flex:none}
#view .school-forms-grid .school-form-card{grid-row:span 4}
#view .am-form-card-heading>.school-form-card-code{display:block;min-width:0;margin:0;font-size:17px;line-height:1.3;font-weight:800;letter-spacing:.04em;color:#3d797b;text-align:left;white-space:normal}
#view .school-form-card>.am-form-card-title,#view .am-teacher-hub .am-hub-card-heading>h3{display:block;flex:1;min-width:0;margin:0;font-size:17px;line-height:1.35;font-weight:700;letter-spacing:0;white-space:normal;word-break:normal;overflow-wrap:break-word;text-align:left}
#view .school-form-card>.am-form-card-title{grid-column:1;width:100%}
#view .school-forms-grid .school-form-card>.school-form-card-description,#view .am-teacher-hub .am-hub-description{display:block;grid-column:1;min-width:0;width:100%;margin:0;padding:0;font-size:12px;line-height:1.6;font-weight:400;white-space:normal;overflow-wrap:break-word}
#view .school-form-card>.school-form-card-footer{display:flex;align-items:center;justify-content:space-between;grid-column:1;gap:10px;width:100%;min-height:34px;margin:0;padding:0}
#view .school-form-card-footer>em{margin:0;padding:0;font-size:10px;line-height:1.45;letter-spacing:.025em;font-weight:700;text-align:left;white-space:normal;max-width:calc(100% - 42px)}
#view .am-teacher-hub .am-hub-card-footer{grid-template-rows:40px minmax(30px,auto);gap:7px;margin:0;padding:0;align-content:start}
#view .am-teacher-hub .am-hub-buttons{gap:8px}
#view .am-teacher-hub .am-hub-buttons .am-hub-button{min-height:40px;padding:8px;font-size:11px;line-height:1.35;border-radius:10px}
#view .am-teacher-hub .am-hub-card-note,#view .am-teacher-hub .am-hub-text-action{min-height:30px;padding:0;font-size:10.5px;line-height:1.45;letter-spacing:0}
#view .am-teacher-hub .am-hub-text-action{gap:4px}
#view .am-teacher-hub .am-hub-text-action svg{width:12px;height:12px;flex:0 0 12px}
.am-student-portal-icon{fill:none!important;stroke:currentColor}
.am-school-form-title{display:flex;align-items:center;gap:12px;min-width:0}
.am-school-form-title>h1{margin:0;min-width:0;font-size:28px;line-height:1.3;letter-spacing:-.025em;overflow-wrap:break-word}
.am-school-form-header .am-hub-feature-actions{flex-wrap:wrap}
.am-school-form-header .am-hub-feature-actions :is(.sf9-heading-actions,.sf5-heading-actions){display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.am-school-form-header .am-hub-feature-actions :is(.button,.icon-button){margin:0;min-height:40px;box-shadow:none;white-space:normal}
:root[data-theme=dark] #view .am-form-card-heading>.school-form-card-code{color:#9bd5d4}
@media(max-width:1100px) and (min-width:701px){#view .school-forms-grid,#view .am-teacher-hub .am-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.am-school-form-title>h1{font-size:24px}.am-school-form-header .am-hub-feature-title-row{grid-template-columns:44px minmax(0,1fr)}.am-school-form-header .am-hub-feature-actions{grid-column:2;justify-content:flex-start}.am-school-form-header .am-hub-feature-description{margin-left:58px}}
@media(max-width:700px){#view .school-forms-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#view .am-teacher-hub .am-hub-grid{grid-template-columns:repeat(4,minmax(250px,1fr));gap:12px}#view .school-forms-grid .school-form-card,#view .am-teacher-hub .am-hub-card{padding:16px;gap:10px}.am-school-form-title>h1{font-size:21px}.am-school-form-header .am-hub-feature-title-row{grid-template-columns:40px minmax(0,1fr);gap:10px}.am-school-form-header .am-hub-feature-description{margin-left:50px}.am-school-form-title{gap:9px}}
@media(max-width:420px){#view .school-forms-grid{grid-template-columns:1fr}}
#view .school-form-card>.am-form-card-title,#view .am-teacher-hub .am-hub-card-heading>h3{color:#18213f}
:root[data-theme=dark] #view .school-form-card>.am-form-card-title,:root[data-theme=dark] #view .am-teacher-hub .am-hub-card-heading>h3{color:#f0f7ff}
@media(min-width:1101px) and (max-width:1350px){
 #view .school-forms-grid .school-form-card,#view .am-teacher-hub .am-hub-card{padding:16px;gap:10px}
 #view .school-form-card>.am-form-card-heading,#view .am-hub-card>.am-hub-card-heading{gap:10px}
 #view .school-form-card .school-form-card-icon,#view .am-teacher-hub .am-hub-icon{width:36px;height:36px;flex-basis:36px}
 #view .school-form-card>.am-form-card-title,#view .am-teacher-hub .am-hub-card-heading>h3{font-size:16px;line-height:1.32}
 #view .school-forms-grid .school-form-card>.school-form-card-description,#view .am-teacher-hub .am-hub-description{font-size:11.5px;line-height:1.6}
}

/* Student Portal: balanced class cards above the full-width account table. */
.am-portal-panel{min-width:0;margin-top:24px}
.am-portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.am-portal-panel .am-portal-card{display:flex;flex-direction:column;gap:18px;margin:0;padding:24px;min-width:0}
.am-portal-panel :is(h2,h3){margin:0;font-size:20px;line-height:1.4;overflow-wrap:break-word}
.am-portal-panel :is(p,li){font-size:13px;line-height:1.7;color:var(--muted,#586a82)}
.am-portal-panel p{margin:0}
.am-portal-panel .am-portal-steps{display:grid;gap:12px;padding-left:22px;margin:0}
.am-portal-steps li{padding-left:4px}
.am-portal-class-controls{display:grid;gap:14px;margin-top:auto;padding-top:4px}
.am-portal-class-controls label,.am-portal-panel .am-portal-link{display:grid;gap:8px;font-size:12px;font-weight:600}
.am-portal-class-controls select,.am-portal-panel .am-portal-link input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid #c3cfde;border-radius:10px;background:transparent;color:inherit;font:400 13px/1.5 Inter,system-ui,sans-serif}
.am-portal-button-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.am-portal-panel .am-portal-button-grid .am-hub-button{width:100%;min-width:0;min-height:44px;padding:11px 12px;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:break-word}
.am-portal-link-buttons{margin-top:auto;padding-top:4px}
.am-portal-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;padding:16px;border-radius:12px;background:#f4f7fb}
.am-portal-meta>div:last-child{grid-column:1/-1}
.am-portal-meta dt{font-size:11px;line-height:1.5;color:#586a82}
.am-portal-meta dd{margin:4px 0 0;font-size:13px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.am-portal-panel>.am-qr-message{margin:18px 0}
.am-portal-panel .am-portal-accounts{display:grid;gap:16px;margin:20px 0 0;padding:24px}
.am-portal-panel .am-qr-note{margin:0;padding-top:16px;font-size:11px}
.am-portal-panel .am-portal-actions{gap:8px;margin:0}
.am-portal-members{min-width:760px}
.am-portal-members :is(th,td){vertical-align:middle}
.am-portal-members :is(th,td):first-child{min-width:150px}
.am-portal-members .am-hub-button{min-height:38px;font-size:12px;padding:8px 12px}
.am-portal-waiting{font-size:12px;color:var(--muted,#586a82)}
:root[data-theme=dark] .am-portal-panel :is(p,li,.am-portal-waiting,.am-portal-meta dt){color:#bdcce0}
:root[data-theme=dark] .am-portal-meta{background:#26344f}
:root[data-theme=dark] .am-portal-panel :is(select,.am-portal-link input){border-color:#617693;color:#f0f7ff;color-scheme:dark}
:root[data-theme=dark] .am-portal-class-controls select{background:#26344f}
@media(max-width:900px){.am-portal-grid{grid-template-columns:1fr}.am-portal-panel .am-portal-card,.am-portal-panel .am-portal-accounts{padding:20px}}
@media(max-width:480px){.am-portal-panel .am-portal-card,.am-portal-panel .am-portal-accounts{padding:16px}.am-portal-button-grid{grid-template-columns:1fr}.am-portal-panel h2{font-size:18px}}
/* Portal publication details share one row; account lists follow sheet order. */
.am-portal-meta{grid-template-columns:minmax(68px,auto) minmax(0,1fr);gap:20px;align-items:start}
.am-portal-meta>div:last-child{grid-column:auto}
.am-portal-meta dd{font-size:12px;line-height:1.6}
.am-portal-panel .am-portal-check{font-size:12px}
.am-portal-sex-group{display:grid;gap:12px;min-width:0;margin:0 0 22px}
.am-portal-sex-group:last-child{margin-bottom:0}
.am-portal-panel .am-portal-sex-group h3{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:16px}
.am-portal-sex-group h3 span{font-size:12px;font-weight:400;color:var(--muted,#586a82)}
:root[data-theme=dark] .am-portal-sex-group h3 span{color:#bdcce0}
.am-portal-meta>div{display:flex;align-items:baseline;gap:7px;min-width:0}
.am-portal-meta dt{white-space:nowrap}
.am-portal-meta dd{margin:0}
.am-portal-panel .am-portal-appeals{display:grid;gap:18px;margin-top:20px}
.am-portal-appeals [data-appeal-detail]{display:grid;gap:16px;min-width:0}
.am-portal-appeals [data-appeal-reply]{display:grid;gap:12px}
.am-portal-appeals label{display:grid;gap:8px;font-size:13px;font-weight:600}
.am-portal-appeals textarea{box-sizing:border-box;width:100%;min-height:110px;border:1px solid #c3cfde;border-radius:10px;padding:12px;background:transparent;color:inherit;font:400 13px/1.7 Inter,system-ui,sans-serif;resize:vertical}
.am-portal-conversation{display:grid;gap:12px;max-height:440px;overflow:auto}
.am-portal-bubble{padding:16px;border:1px solid #dce7f1;border-radius:14px;background:#f4f7fb;overflow-wrap:anywhere}
.am-portal-bubble[data-author=teacher]{background:#eaf5f8;border-color:#b8d7db}
.am-portal-bubble small{display:block;font-size:11px;color:var(--muted,#586a82);margin:4px 0 8px}
.am-portal-bubble p{white-space:pre-wrap}
.am-portal-members{overflow-anchor:none}
:root[data-theme=dark] .am-portal-bubble{background:#26344f;border-color:#40516e}
:root[data-theme=dark] .am-portal-bubble[data-author=teacher]{background:#23404b}
/* Portal controls use the website's professional sans-serif typography. */
.am-portal-panel,.am-hub-feature-header{font-family:var(--font-sans,"Inter","Segoe UI",system-ui,sans-serif);font-variant-numeric:tabular-nums}
.am-portal-panel :is(button,input,select,textarea){font-family:inherit}
.am-portal-panel .am-portal-delete{color:#9b3434!important;border-color:#d8adad;background:transparent!important}
:root[data-theme=dark] .am-portal-panel .am-portal-delete{color:#ffc4c4!important;border-color:#9c6666}

.web-release-notice{position:fixed;z-index:1500;right:16px;top:86px;width:min(350px,calc(100vw - 32px));padding:15px 16px;border:1px solid #83b9ba;border-radius:14px;background:#eaf5f8;color:#18213f;box-shadow:0 8px 28px #18213f1a}.web-release-notice p{font:500 13px/1.5 Inter,"Segoe UI",system-ui,sans-serif;margin:0 0 10px;color:#27445f}.web-release-notice button{width:100%;min-height:42px;border:1px solid #18213f;border-radius:9px;background:#18213f;color:#fff;font:700 12px/1.4 Inter,"Segoe UI",system-ui,sans-serif;padding:10px 14px;cursor:pointer}.web-release-notice button:disabled{opacity:.65;cursor:wait}

/* Owner-requested Teachers Hub styling for School Forms and Other Forms cards only. */
@media screen {
 #app-shell .school-forms-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch; }
 #app-shell .school-forms-grid .school-form-card { display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;min-width:0;min-height:240px;padding:16px 22px;border:1px solid var(--brand-border);border-radius:20px;background:var(--brand-white,#fff);box-shadow:0 6px 22px #18213f09;text-align:left; }
 #app-shell .school-forms-grid .school-form-card::before { display:none; }
 #app-shell .school-forms-grid .school-form-card-heading { display:flex;align-items:center;gap:12px;min-height:46px; }
 #app-shell .school-forms-grid .school-form-card-icon { display:flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:var(--brand-ice,#eaf5f8);color:var(--brand-ink); }
 #app-shell .school-forms-grid .school-form-card-icon svg { width:24px;height:24px; }
 #app-shell .school-forms-grid .school-form-card-code { font-size:18px;line-height:1.4;font-weight:750;letter-spacing:normal;color:var(--brand-ink); }
 #app-shell .school-forms-grid .school-form-card-copy { display:flex;flex-direction:column;gap:6px; }
 #app-shell .school-forms-grid .school-form-card-copy>strong { margin:0;font-size:14px;line-height:1.5;color:var(--brand-ink); }
 #app-shell .school-forms-grid .school-form-card-copy>span:last-child { margin:0;font-size:13px;line-height:1.5;color:var(--brand-muted); }
 #app-shell .school-forms-grid .school-form-card-footer { display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;margin-top:auto;padding-top:4px; }
 #app-shell .school-forms-grid .school-form-card-footer>.school-form-card-open { display:flex;align-items:center;justify-content:center;width:100%;height:auto;min-height:42px;padding:10px 13px;border:1px solid #18213f;border-radius:11px;background:#18213f;color:#fff;font:600 12px/1.4 Inter,system-ui,sans-serif; }
 #app-shell .school-forms-grid .school-form-card-footer em { font:500 11px/1.5 Inter,system-ui,sans-serif;color:var(--brand-muted);text-align:center; }
}
@media screen and (max-width:1279px) { #app-shell .school-forms-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media screen and (max-width:700px) { #app-shell .school-forms-grid { grid-template-columns:minmax(0,1fr); } }

/* Form heading cleanup requested by owner: title row only, never form messages. */
@media screen {
 #app-shell .route-mpssmea .mps-title-row { display:flex;align-items:center; }
 #app-shell .route-mpssmea .mps-title-row>h1 { margin:0 !important;line-height:1.15; }
 #app-shell .route-mpssmea .mps-title-row>.school-forms-back { position:static;align-self:center;margin:0 !important;transform:none;display:inline-flex;align-items:center;justify-content:center; }
 #app-shell :is(.route-schoolforms,.route-otherforms,.route-sf2,.route-sf5,.route-sf8,.route-reports,.route-sf10,.route-gradeslip,.route-lir,.route-itemanalysis,.route-mpssmea)>.page-heading>div>p,
 #app-shell :is(.route-schoolforms,.route-otherforms,.route-sf2,.route-sf5,.route-sf8,.route-reports,.route-sf10,.route-gradeslip,.route-lir,.route-itemanalysis,.route-mpssmea)>.am-school-form-header>.am-hub-feature-description { display:none !important; }
}

/* Individual learner card uses the supplied PowerPoint layout. */
.individual-card-workspace{display:grid;gap:20px;overflow:auto;min-width:0;padding:12px;background:var(--brand-cloud)}.individual-card-page{width:100%;min-width:700px;background:white;box-shadow:0 3px 16px #18213f14}.individual-card-page svg{display:block;width:100%;height:auto}
body.sheet-wide #app-shell .view.sheet-view.route-individualcard>.individual-card-workspace{display:block!important;flex:1 1 auto;width:100%;height:100%!important;overflow:auto;min-height:0}.individual-card-workspace .individual-card-page+.individual-card-page{margin-top:20px}

.individual-card-remarks textarea{display:block;width:100%;min-height:86px;margin-top:8px;resize:vertical;font:inherit}
