/* Every rule is scoped to coach/admin sessions. Student views keep their own theme. */
body.coach-shell{--muted:#a7b6ca;--line:#293a51;--accent:#48d9d0;background:#0b1423;color:#edf3fa;font-size:15px;line-height:1.5}
body.coach-shell .coach-icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}
body.coach-shell>header{position:sticky;top:0;z-index:40;min-height:80px;margin-left:236px;padding:14px 28px;background:#101c2e;gap:16px}
body.coach-shell>header>div:first-child,body.coach-shell>header>.badge{display:none}
body.coach-shell>header .actions{flex-wrap:nowrap;gap:8px;width:auto;margin:0 0 0 auto}
body.coach-shell>header .actions>button{display:flex;align-items:center;gap:7px;padding:10px;min-width:44px}
body.coach-shell>header #page-back,body.coach-shell #mobile-quick-menu,body.coach-shell #mobile-design-toggle{display:none!important}
body.coach-shell .coach-page-title{font-size:16px;order:-2;white-space:nowrap}
body.coach-shell #coach-top-student{margin-left:auto;min-width:160px;max-width:300px}
body.coach-shell #coach-top-student label{display:block;margin:0;font-size:0}
body.coach-shell #coach-top-student select{font-size:14px;padding:9px 32px 9px 12px}
body.coach-shell>main{max-width:none;margin-left:236px;padding:28px 32px 48px}
body.coach-shell #app-panel{max-width:1280px;margin:auto;min-width:0}
body.coach-shell .coach-sidebar{position:fixed;inset:0 auto 0 0;width:236px;background:#101c2e;border-right:1px solid var(--line);padding:28px 16px;z-index:45;overflow:auto}
body.coach-shell .coach-wordmark{display:block;color:#f1f7fc;letter-spacing:3px;font-size:26px;padding:0 16px}
body.coach-shell .coach-sidebar-subtitle{display:block;padding:3px 16px 24px;font-size:11px}
body.coach-shell #coach-navigation{display:flex;flex-direction:column;gap:5px;margin:12px 0;overflow:visible}
body.coach-shell #coach-navigation button{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid transparent;background:transparent;min-height:48px;border-radius:9px;color:#b5c3d4;padding:11px 14px;font-size:14px;flex:none}
body.coach-shell #coach-navigation button[aria-pressed=true]{background:#153e49;color:#6ce2db;border-color:#275c64}
body.coach-shell #coach-navigation button:hover{background:#1a2d43;color:#edf3fa}
body.coach-shell #settings-tab{margin-top:22px}
body.coach-shell h1{font-size:24px;line-height:1.3;margin:4px 0}
body.coach-shell h2{font-size:20px;line-height:1.35;margin:0 0 12px}
body.coach-shell h3{font-size:17px;line-height:1.4}
body.coach-shell p{margin:8px 0;line-height:1.55}
body.coach-shell small{font-size:12px;line-height:1.5}
body.coach-shell button,body.coach-shell summary,body.coach-shell .video-link{min-height:44px;font-size:14px}
body.coach-shell button{border-radius:8px;background:#182a40;border-color:#34475f;padding:10px 14px}
body.coach-shell .primary{background:#237f7c;border-color:#349f99;color:white}
body.coach-shell :focus-visible{outline:2px solid #6ce2db;outline-offset:3px}
body.coach-shell .card{background:#121f32;border:1px solid var(--line);box-shadow:none;border-radius:12px;padding:20px;margin-bottom:20px}
body.coach-shell #overview>.welcome{background:none;border:0;padding:0;margin:0 0 18px}
body.coach-shell #overview>.welcome .eyebrow{font-size:11px;letter-spacing:1.7px;margin:0;color:#a7b6ca}
body.coach-shell #overview>.welcome h1{font-size:21px;font-weight:600;margin-top:6px}
body.coach-shell #coach-tools{display:none}
body.coach-shell #coach-active-student{display:flex;align-items:center;gap:8px;margin-bottom:18px;font-size:14px}
body.coach-shell #student-caption{order:-1;font-weight:650;color:#edf3fa;margin:0}
body.coach-shell #coach-student-meta{margin:0;color:#a7b6ca}
body.coach-shell .metrics{gap:12px;margin:0 0 22px}
body.coach-shell .metrics .card{margin:0;padding:18px 20px}
body.coach-shell .metrics span{font-size:13px}
body.coach-shell .metrics strong{font-size:29px;color:#6ce2db;margin-top:8px;font-weight:650}
body.coach-shell #today-tasks{display:grid;gap:10px}
body.coach-shell #today-tasks .task{max-width:none;margin:0}
body.coach-shell #view-plan{margin-top:16px}
body.coach-shell .coach-profile{position:relative}
body.coach-shell .coach-profile>summary{display:flex;align-items:center;gap:8px;padding:10px;cursor:pointer;list-style:none;border:1px solid #34475f;border-radius:8px;max-width:180px;font-size:13px}
body.coach-shell .coach-profile>summary::-webkit-details-marker{display:none}
body.coach-shell .coach-profile>summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.coach-shell .coach-profile-actions{position:absolute;right:0;top:calc(100% + 9px);z-index:60;width:250px;background:#142339;border:1px solid #34475f;box-shadow:0 15px 40px #0006;border-radius:12px;padding:14px;display:grid;gap:6px}
body.coach-shell .coach-profile-actions>button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;background:transparent;border:0}
body.coach-shell .coach-profile-actions small{margin-bottom:8px}
body.coach-shell .coach-activity-row{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-top:1px solid var(--line)}
body.coach-shell .coach-activity-row>div{flex:1;min-width:0}
body.coach-shell .coach-activity-row p{font-size:14px;margin:3px 0;overflow-wrap:anywhere}
body.coach-shell .coach-activity-row time{font-size:12px;color:#a7b6ca}
body.coach-shell #week-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.coach-shell .day{background:#101c2e;border-radius:12px;min-width:0;min-height:130px}
body.coach-shell .task{background:#15243a;border:1px solid #35475e;border-left:3px solid #67798f;padding:14px;border-radius:9px;margin-bottom:10px;min-width:0}
body.coach-shell .task h4{font-size:15px;margin-bottom:5px}
body.coach-shell .task .task-state{color:#b5c3d4;font-size:13px;font-weight:600;margin:5px 0}
body.coach-shell .task[data-overdue=true]{border-left-color:#f3a35a}
body.coach-shell .task[data-overdue=true] .task-state{color:#f3a35a}
body.coach-shell .task[data-status=done]{border-left-color:#66d4a0}
body.coach-shell .task[data-status=done] .task-state{color:#66d4a0}
body.coach-shell .task>.coach-task-details{margin-top:10px}
body.coach-shell .coach-task-details>summary{display:flex;align-items:center;font-size:14px;cursor:pointer;color:#c3d0e0}
body.coach-shell .coach-task-details>div{padding-top:8px;display:flex;flex-wrap:wrap;gap:8px}
body.coach-shell .coach-task-details button{width:auto;margin:0;font-size:14px}
body.coach-shell .coach-task-details .video-link{width:auto;margin:0;padding:9px 12px;font-size:14px}
body.coach-shell .coach-student-actions{display:flex;align-items:end;gap:12px;margin:18px 0}
body.coach-shell .coach-student-actions label{flex:1;margin:0}
body.coach-shell .students-layout{display:block}
body.coach-shell .students-layout>.card{background:none;border:0;padding:0}
body.coach-shell .students-layout>.card>h3{display:none}
body.coach-shell #student-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.coach-shell .student-record{background:#121f32;border-radius:12px;padding:18px;margin:0;border-color:var(--line)}
body.coach-shell .student-record.selected{border-color:#3a786f}
body.coach-shell .student-record .coach-selected-student{font-size:12px;color:#6ce2db;display:inline-block;margin-bottom:9px}
body.coach-shell .student-record h3{font-size:18px;margin-bottom:6px}
body.coach-shell .student-record details{margin-top:10px}
body.coach-shell .student-record details summary{display:flex;align-items:center;font-size:13px;color:#a7b6ca;cursor:pointer}
body.coach-shell .student-record details small{margin-top:8px}
body.coach-shell dialog{border-radius:14px;padding:20px;width:min(640px,calc(100% - 24px));max-height:calc(100dvh - 32px);background:#142238;border-color:#34475f}
body.coach-shell dialog form{min-width:0}
body.coach-shell dialog label{margin:12px 0;font-size:14px}
body.coach-shell dialog .card{border:0;padding:0;margin:0;background:none}
body.coach-shell .coach-dialog-close{float:right;display:flex;align-items:center;gap:6px}
body.coach-shell #coach-exam-actions{margin:0 0 18px}
body.coach-shell .growth-help{padding:12px 0;margin-bottom:16px;border-bottom:1px solid var(--line)}
body.coach-shell .growth-help summary{cursor:pointer;display:flex;align-items:center;font-weight:600}
body.coach-shell #topicGrowthDemo main{margin:0;padding:0;max-width:none}
body.coach-shell #topicGrowthDemo .odk-title{display:none}
body.coach-shell #push-controls{max-width:680px}
body.coach-shell #notifications .section-head{align-items:center}
body.coach-shell .coach-dock{display:none}
body.coach-shell #coach-more>button{width:100%;display:flex;align-items:center;gap:12px;margin:8px 0;text-align:left}
body.coach-shell #coach-more .section-head button{display:flex;align-items:center;gap:5px}
body.coach-shell #notifications-tab[aria-pressed=true]{border-color:#6ce2db}
body.coach-shell #coach-exam-actions button,body.coach-shell #new-student{display:inline-flex;align-items:center;gap:8px}
body.coach-shell .section-head{gap:12px;margin-bottom:16px}
body.coach-shell #week-day-picker{display:flex;flex-wrap:wrap;gap:6px}
body.coach-shell #week-day-picker button{font-size:13px;flex:1 1 110px}
body.coach-shell input,body.coach-shell select,body.coach-shell textarea{font-size:15px;min-width:0}
@media(max-width:1100px) and (min-width:901px){body.coach-shell .coach-page-title{display:none}body.coach-shell>main{padding:24px}body.coach-shell>header{padding:12px 24px}body.coach-shell #week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
 body.coach-shell{font-size:15px}
 body.coach-shell .coach-sidebar{display:none}
 body.coach-shell>header{margin:0;padding:10px 16px;min-height:70px;gap:10px;flex-wrap:nowrap}
 body.coach-shell>header .actions{width:auto;gap:6px;flex-shrink:0}
 body.coach-shell>header .actions>button>span:not([id]){display:none}
 body.coach-shell>header .actions>button{position:relative;padding:10px;min-width:44px;background:transparent}
 body.coach-shell .coach-profile>summary{border:0;padding:10px;min-width:44px;justify-content:center}
 body.coach-shell .coach-profile>summary span{display:none}
 body.coach-shell .coach-page-title{font-size:14px;white-space:normal;max-width:128px}
 body.coach-shell #coach-top-student{max-width:240px;min-width:0;flex:1}
 body.coach-shell #coach-top-student:empty{display:none}
 body.coach-shell>header:has(#coach-top-student:not(:empty)) .coach-page-title{display:none}
 body.coach-shell>main{margin:0;padding:20px 16px calc(106px + env(safe-area-inset-bottom));min-width:0}
 body.coach-shell #app-panel{width:100%;min-width:0}
 body.coach-shell #coach-active-student{flex-wrap:wrap;gap:6px;margin:0 0 18px}
 body.coach-shell #coach-active-student label{flex-basis:100%;width:100%;margin:0 0 4px;font-size:13px}
 body.coach-shell #coach-active-student select{font-size:16px}
 body.coach-shell #student-caption{display:none}
 body.coach-shell #coach-student-meta{font-size:13px}
 body.coach-shell .coach-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:70;background:#101c2ef5;border-top:1px solid #293a51;gap:4px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));margin:0;backdrop-filter:blur(12px)}
 body.coach-shell .coach-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:7px 2px;min-height:56px;min-width:0;border:0;background:transparent;border-radius:9px;color:#a7b6ca;font-size:12px}
 body.coach-shell .coach-dock button[aria-current=page]{background:#153e49;color:#6ce2db}
 body.coach-shell .coach-dock .coach-icon{width:22px;height:22px}
 body.coach-shell #coach-more{margin:auto 0 0;width:100%;max-height:calc(100dvh - 40px);border-radius:18px 18px 0 0;padding:20px 20px calc(24px + env(safe-area-inset-bottom))}
 body.coach-shell h2{font-size:20px}
 body.coach-shell h1,body.coach-shell #overview>.welcome h1{font-size:20px}
 body.coach-shell .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.coach-shell .metrics .card:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}
 body.coach-shell .metrics .card{padding:15px}
 body.coach-shell .metrics .card:last-child strong{margin-top:0}
 body.coach-shell .metrics strong{font-size:27px}
 body.coach-shell #week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.coach-shell .card{padding:18px}
 body.coach-shell .section-head{align-items:flex-start}
 body.coach-shell #student-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.coach-shell #push-controls .actions{display:grid;grid-template-columns:1fr;width:100%}
 body.coach-shell .notification-item{padding:16px}
 body.coach-shell #notification-count,body.coach-shell #messages-count{position:absolute;top:1px;right:1px;margin:0;min-width:17px;font-size:10px;padding:0 4px}
 body.coach-shell .coach-activity .section-head{align-items:center}
 body.coach-shell .coach-activity .section-head button{padding:8px;font-size:13px}
 body.coach-shell .coach-activity h2{font-size:18px}
 body.coach-shell dialog{padding:18px;scroll-padding-bottom:20px}
 body.coach-shell #planner .section-head>.actions{display:grid;grid-template-columns:44px 44px 1fr;width:100%}
 body.coach-shell #new-ayt-task{grid-column:3}
 body.coach-shell #week-day-picker button{flex:1 1 95px}
}
@media(max-width:540px){body.coach-shell #week-grid,body.coach-shell #student-list{grid-template-columns:1fr}body.coach-shell .coach-student-actions{align-items:stretch;flex-direction:column}body.coach-shell .coach-student-actions>button{justify-content:center}body.coach-shell .coach-activity-row{gap:8px}body.coach-shell .coach-activity-row>.coach-icon{display:none}body.coach-shell .section-head h2{font-size:20px}body.coach-shell .profile-fields{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body.coach-shell *{scroll-behavior:auto;transition:none}}

body.coach-shell #page-back{display:none!important}body.coach-shell .coach-selected-marker{color:#6ce2db;margin:0 0 8px;font-size:12px}body.coach-shell #notifications-tab{display:inline-flex;align-items:center;gap:7px}body.coach-shell #messages-open{display:inline-flex;align-items:center;gap:7px}body.coach-shell .coach-activity-row strong{font-size:14px}

body.coach-shell #topicGrowthDemo button{min-height:44px}body.coach-shell #topicGrowthDemo .odk-icon{width:44px;height:44px}body.coach-shell .coach-profile summary:focus-visible{outline:2px solid #6ce2db;outline-offset:3px}

body.coach-shell #topicGrowthDemo button,body.coach-shell #topicGrowthDemo .odk-icon{min-height:44px}body.coach-shell #topicGrowthDemo .odk-icon{min-width:44px}body.coach-shell #topicGrowthDemo header{padding:0;background:none;border:0;gap:12px}

body.coach-shell #coach-active-student #student-caption,body.coach-shell #coach-student-meta{display:none}@media(min-width:901px){body.coach-shell #coach-active-student{display:none}body.coach-shell #coach-top-student{min-width:220px;max-width:320px;flex:1}}@media(max-width:900px){body.coach-shell #coach-active-student label{order:-1}}

body.coach-shell #greeting{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.coach-shell dialog [data-close]{display:inline-flex;align-items:center;justify-content:center;gap:6px}
