/* V57 — Global Edition dashboard */
#dashboard.v47-dashboard-panel{width:100%;max-width:1540px;margin:0 auto;padding:0 0 34px!important}
#dashboard.v47-dashboard-panel>.v47-root{display:block!important;width:100%!important;max-width:none!important}
#dashboard.v47-dashboard-panel>*:not(.v47-root){display:none!important}
.v47-root{background:transparent!important;border:0!important;border-radius:0!important;overflow:visible!important;box-shadow:none!important}
.v57-dashboard{display:grid;gap:16px;align-items:start}
.v57-dash-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:2px 2px 0}
.v57-dash-title>span{display:block;margin-bottom:6px;color:#0d8f87;font-size:10px;font-weight:900;letter-spacing:1.65px;text-transform:uppercase}
.v57-dash-title h1{margin:0;color:#102f46;font-size:28px;line-height:1.18;letter-spacing:-.45px}
.v57-dash-title p{margin:7px 0 0;max-width:720px;color:#748695;font-size:12.5px;line-height:1.65}
.v57-head-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.v57-head-actions button{min-height:42px;padding-inline:16px!important}.v57-plus{font-size:18px;line-height:0;margin-inline-end:3px}
.v57-current{display:grid;grid-template-columns:minmax(260px,1fr) minmax(250px,360px) auto;gap:16px;align-items:center;background:linear-gradient(110deg,#ffffff 0%,#ffffff 67%,#f6fbfb 100%);border:1px solid #dce7ec;border-radius:20px;padding:16px 18px;box-shadow:0 10px 28px rgba(21,54,74,.05)}
.v57-current-id{display:flex;align-items:center;gap:12px;min-width:0}.v57-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#123f5e,#0c6f76);color:#fff;font-size:10px;font-weight:900;letter-spacing:.5px;box-shadow:0 7px 16px rgba(16,69,92,.18)}.v57-avatar.large{width:48px;height:48px;flex-basis:48px;border-radius:15px;font-size:12px}
.v57-current-copy{min-width:0}.v57-current-copy small{display:block;color:#8a9aa6;font-size:10px;font-weight:800}.v57-current-copy b{display:block;color:#14364c;font-size:16px;margin:3px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v57-current-copy span{display:block;color:#718490;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v57-current-control select{margin:0!important;height:44px!important;background:#fbfdfe!important;border-color:#d7e3e9!important;border-radius:12px!important;font-size:11.5px!important}
.v57-current-actions{display:flex;gap:8px;align-items:center}.v57-current-actions button{white-space:nowrap;min-height:42px;padding:9px 13px!important;font-size:10.5px!important}.v57-current-actions button:disabled{opacity:.48;cursor:not-allowed}
.v57-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.v57-stat{background:#fff;border:1px solid #dfe8ed;border-radius:18px;padding:14px 15px;display:flex;align-items:center;gap:12px;box-shadow:0 7px 20px rgba(20,57,82,.035);min-width:0}
.v57-stat-icon{width:40px;height:40px;flex:0 0 40px;border-radius:12px;display:grid;place-items:center;background:#edf8f7;color:#0d8179}.v57-stat:nth-child(2) .v57-stat-icon{background:#eef3fb;color:#426b9c}.v57-stat:nth-child(3) .v57-stat-icon{background:#f7f2ea;color:#9b6a28}.v57-stat:nth-child(4) .v57-stat-icon{background:#f3effb;color:#7257a4}.v57-stat-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v57-stat small{display:block;color:#81929e;font-size:9.5px;font-weight:800}.v57-stat b{display:block;color:#12384f;font-size:25px;line-height:1.05;margin:3px 0}.v57-stat em{display:block;font-style:normal;color:#9aa8b2;font-size:8.5px}
.v57-main-grid{display:grid;grid-template-columns:minmax(600px,1.62fr) minmax(300px,.72fr);gap:16px;align-items:start}
.v57-panel{background:#fff;border:1px solid #dfe8ed;border-radius:20px;box-shadow:0 9px 26px rgba(19,58,86,.04);overflow:hidden}
.v57-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid #edf2f4;background:#fff}.v57-panel-head p{margin:4px 0 0;color:#8b99a4;font-size:9.5px;line-height:1.5}
.v57-panel-title{display:flex;align-items:center;gap:8px}.v57-panel-title h2{margin:0!important;color:#14384f!important;font-size:14px!important}.v57-count{min-width:27px;height:23px;padding:0 7px;border-radius:999px;background:#eaf7f4;color:#13786f;display:grid;place-items:center;font-size:9px;font-weight:900}
.v57-search-wrap{position:relative;width:min(350px,48%)}.v57-search-wrap>span{position:absolute;inset-inline-start:11px;top:50%;transform:translateY(-50%);display:grid;place-items:center;color:#94a3ad;pointer-events:none}.v57-search-wrap svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.v57-search{margin:0!important;width:100%!important;height:38px!important;padding-inline-start:34px!important;background:#f9fbfc!important;border-color:#dde7eb!important;border-radius:11px!important;font-size:10.5px!important}
.v57-roster{display:grid}.v57-empty{padding:44px 20px;text-align:center;color:#7f909a;font-size:11px;line-height:1.7}.v57-empty-icon{width:44px;height:44px;margin:0 auto 10px;border-radius:14px;background:#eef7f6;color:#248079;display:grid;place-items:center}.v57-empty-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.v57-empty b{display:block;color:#32566c;font-size:13px;margin-bottom:3px}.v57-empty span{display:block}
.v57-row{display:grid;grid-template-columns:minmax(250px,1.25fr) minmax(190px,.9fr) auto;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid #edf1f3;transition:background .16s ease,box-shadow .16s ease}.v57-row:last-child{border-bottom:0}.v57-row:hover{background:#fafcfd}.v57-row.active{background:#f2faf8;box-shadow:inset 3px 0 #128d83}html[dir="rtl"] .v57-row.active{box-shadow:inset -3px 0 #128d83}
.v57-person{display:flex;align-items:center;gap:10px;min-width:0}.v57-person-copy{min-width:0}.v57-person-copy b{display:block;color:#173e5b;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v57-person-copy small{display:block;color:#82929b;font-size:9px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v57-row-meta{display:flex;gap:7px;flex-wrap:wrap}.v57-row-meta>span{display:inline-flex;align-items:center;gap:4px;min-height:25px;padding:0 8px;border-radius:999px;background:#f5f8f9;border:1px solid #e3eaee;color:#687e89;font-size:8.5px;white-space:nowrap}.v57-row-meta b{color:#31576d}
.v57-row-actions{display:flex;gap:7px;align-items:center}.v57-row-actions button{min-height:34px;padding:7px 10px!important;font-size:9px!important;border-radius:9px!important}.v57-row-actions .v57-open{background:#153f5e;color:#fff;border:1px solid #153f5e}.v57-row-actions .v57-iep{background:#eaf7f4;color:#0e746d;border:1px solid #cdebe6}
.v57-quick-list{display:grid}.v57-quick-item{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:11px 15px;border:0;border-bottom:1px solid #edf1f3;background:#fff;color:#173e5b;text-align:start;cursor:pointer;transition:background .15s ease}.v57-quick-item:last-child{border-bottom:0}.v57-quick-item:hover{background:#f8fbfb}.v57-quick-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#eef6f8;color:#1a6f79}.v57-quick-icon svg,.v57-quick-arrow svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.v57-quick-item b{font-size:10.5px;font-weight:800}.v57-quick-arrow{display:grid;place-items:center;color:#9ba8b0}.v57-quick-arrow svg{width:14px;height:14px}html[dir="rtl"] .v57-quick-arrow{transform:scaleX(-1)}
.v57-secure{display:flex;align-items:center;justify-content:center;gap:7px;padding:11px 14px;background:#fbfcfd;border-top:1px solid #edf1f3;color:#84949f;font-size:8.5px;font-weight:700}.v57-secure>span{width:7px;height:7px;border-radius:50%;background:#22b59e;box-shadow:0 0 0 4px rgba(34,181,158,.11)}
body.v57-dashboard-open .pro-topbar-copy{display:none!important}body.v57-dashboard-open .pro-topbar{min-height:auto!important;padding-block:8px!important;justify-content:flex-end!important}body.v57-dashboard-open .content{padding-top:14px!important}
#dashboard .plancard,#dashboard .paper,#dashboard .worksheetpaper,#dashboard .ldpro-preview-card,#dashboard .v45-dashboard,#dashboard .v45-goal-finder,#dashboard .v45-layout-grid,#dashboard .pro-stat-grid,#dashboard .v15-curriculum-launch,#dashboard #v12Dash,#dashboard #v11DashStats{display:none!important}
@media(max-width:1150px){.v57-main-grid{grid-template-columns:1fr}.v57-current{grid-template-columns:minmax(260px,1fr) minmax(230px,330px)}.v57-current-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:780px){.v57-dash-head{align-items:flex-start;flex-direction:column}.v57-head-actions{width:100%}.v57-head-actions button{flex:1}.v57-current{grid-template-columns:1fr;gap:11px}.v57-current-actions{width:100%;justify-content:stretch}.v57-current-actions button{flex:1}.v57-stats{grid-template-columns:1fr 1fr}.v57-panel-head{align-items:stretch;flex-direction:column}.v57-search-wrap{width:100%}.v57-row{grid-template-columns:1fr auto}.v57-row-meta{grid-column:1/2}.v57-row-actions{grid-column:2/3;grid-row:1/3;flex-direction:column}.v57-row-actions button{width:72px}.v57-main-grid{grid-template-columns:1fr}}
@media(max-width:500px){.v57-dash-title h1{font-size:24px}.v57-stats{grid-template-columns:1fr 1fr}.v57-stat{padding:11px}.v57-stat b{font-size:22px}.v57-row{grid-template-columns:1fr;padding:11px 12px}.v57-row-actions{grid-column:1;grid-row:auto;flex-direction:row;justify-content:flex-end}.v57-row-actions button{width:auto}.v57-row-meta{grid-column:1}.v57-current-actions{display:grid;grid-template-columns:1fr 1fr}}

/* V58 overflow guard — every dashboard grid item may shrink inside the real viewport. */
#dashboard,#dashboard .v47-root,#dashboard .v57-dashboard,#dashboard .v57-current,#dashboard .v57-stats,#dashboard .v57-main-grid,#dashboard .v57-panel{min-width:0;max-width:100%}
#dashboard .v57-current>* ,#dashboard .v57-stat>* ,#dashboard .v57-main-grid>*{min-width:0}
