/* Public dashboard presentation only. Print sheets and admin layouts retain their styles. */
@media screen {
 .dashboard-app #home{scroll-margin-top:160px}
 .dashboard-app .dashboard-menu-icon{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
 .dashboard-app #home>.explorer>.school-information{display:block;text-align:center;color:#62738b;border:0;padding:4px 0 14px;font-size:11px}
 .dashboard-app #home .school-information summary{padding:0;cursor:pointer}.dashboard-app #home .school-information a{display:block;margin-top:6px}
 .dashboard-app{--shell:#17283e;--red:#e7193b;background:#fff;height:auto;min-height:100dvh;overflow:auto}
 .dashboard-app .app-bar{height:86px;background:linear-gradient(110deg,#152a43,#182537);border:0}
 .dashboard-app .nav-inner{height:86px;padding:8px 26px;gap:16px}
 .dashboard-app .brand{gap:16px}.dashboard-app .brand strong{font-size:25px;line-height:1.3;font-weight:700}.dashboard-app .brand small{display:block;font-size:17px;color:white;margin-top:3px}
 .dashboard-app .school-brand{width:66px;height:66px;background:none;box-shadow:none}.dashboard-app .school-brand img{width:66px;height:66px;border-radius:50%;object-fit:contain}
 .dashboard-app .app-divider,.dashboard-app .app-name,.dashboard-app .public-badge,.dashboard-app .mobile-menu-toggle{display:none}
 .dashboard-app .admin-link{font-size:16px;padding:10px 18px;border-radius:7px;background:#e7193b;color:white}
 .dashboard-app .app-sidebar{position:relative;inset:auto;width:100%;height:auto;background:white;display:block;padding:7px 20px 0;overflow:visible;border:0;border-bottom:1px solid #dce2ea;z-index:10}
 .dashboard-app .sidebar-label,.dashboard-app .sidebar-context,.dashboard-app .school-information{display:none}
 .dashboard-app #public-nav{display:block!important;width:100%;margin:0}
 .dashboard-app .app-sidebar .view-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;overflow:visible;padding:0}
 .dashboard-app .app-sidebar .view-tabs button{min-height:58px;justify-content:center;align-items:center;font-size:17px;font-weight:600;color:#24364d;border-radius:5px 5px 0 0;gap:12px;padding:12px 8px;border-bottom:4px solid transparent}
 .dashboard-app .app-sidebar .view-tabs button+button{border-left:1px solid #e3e7ee}
 .dashboard-app .app-sidebar .view-tabs button:hover{background:#fff2f5;color:#d92342}
 .dashboard-app .app-sidebar .view-tabs button[aria-selected=true]{background:#e7193b;color:#fff;border-bottom-color:#bd1634}
 .dashboard-app .app-sidebar .view-tabs button[aria-selected=true]:before{display:none}
 .dashboard-app #home{margin:0;height:auto;min-height:calc(100dvh - 152px);padding:12px 18px 0}
 .dashboard-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(110deg,#152a43,#182537);color:#fff;padding:16px 22px;border-radius:5px;margin:0 0 14px;font-size:14px;line-height:1.6}
 .dashboard-summary strong{font-size:19px;white-space:nowrap}.dashboard-summary>span{border-left:1px solid #728093;padding-left:17px}.dashboard-summary b{font-size:17px}
 .dashboard-app .explorer{height:auto;min-height:0;display:block}.dashboard-app .workspace{display:block;background:white;overflow:visible}
 .dashboard-app .section-heading{padding:6px 6px 12px;align-items:center}.dashboard-app .workspace-eyebrow,.dashboard-app .year-chip{display:none}
 .dashboard-app .section-heading h1{font-size:28px;color:#14233a;font-weight:700;margin:0}
 .dashboard-app .mini-layout{display:flex;border:1px solid #c7d2e1;border-radius:5px;overflow:hidden;background:#f2f5f9}
 .dashboard-app .mini-layout button{border:0;padding:8px 14px;background:none;color:#263b56;font-size:14px;min-height:38px}
 .dashboard-app .mini-layout button[aria-pressed=true]{background:#e7193b;color:white}
 .dashboard-app .filters{padding:0 0 12px;gap:12px;align-items:end;border:0;flex-wrap:wrap}
 .dashboard-app .filters label{font-size:11px;flex:0 1 165px;min-width:130px}.dashboard-app .filters .search-label{flex:1;max-width:none;min-width:220px}
 .dashboard-app .filters input,.dashboard-app .filters select{height:43px;min-height:43px;border:1px solid #b8c5d7;border-radius:5px;font-size:14px;background:#fff;padding:8px 12px;color:#283b55}
 .dashboard-app .filters input{padding-left:35px}.dashboard-app .search-input>span{top:4px}.dashboard-app .print-button{min-height:43px;background:#f3f6fa;color:#172c48;border:1px solid #b8c5d7;font-size:14px;border-radius:5px;padding:9px 16px}
 .teacher-group-chips{display:flex;border:1px solid #c6d0df;border-radius:5px;overflow:hidden;flex-shrink:0;min-height:43px;background:#f3f6fa}
 .teacher-group-chips button{font-size:13px;padding:9px 12px;background:transparent;border:0;border-right:1px solid #d5dde8;color:#283b55;white-space:nowrap}
 .teacher-group-chips button:last-child{border-right:0}.teacher-group-chips button[aria-pressed=true]{background:#e7193b;color:white}
 .dashboard-app .clear-button{font-size:11px;min-height:43px}.dashboard-app .result-line{padding:0 3px 8px}.dashboard-app .result-line p{font-size:11px}.dashboard-app .legend{font-size:10px}
 .dashboard-app #results{padding:0;overflow:visible}.dashboard-app .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 .dashboard-app .cards .teacher-card{border:1px solid #dce5f0;border-radius:5px;padding:12px 10px 10px;box-shadow:none;min-width:0;background:white}
 .dashboard-app .cards .card-head{gap:6px;align-items:center;margin:0 0 10px;flex-wrap:wrap}.dashboard-app .cards .avatar{display:none}
 .dashboard-app .cards .card-head>div{display:flex;align-items:center;flex:1;gap:8px;min-width:0;flex-wrap:wrap}.dashboard-app .cards .card-head h3{font-size:16px;font-weight:700;color:#15243b;margin:0;white-space:nowrap}
 .dashboard-app .cards .card-head p{font-size:10px;margin:0;color:#456293}.dashboard-app .cards .card-head p b{display:inline-block;border-radius:5px;background:#ffe0e8;padding:3px 6px;color:#382331;font-weight:500;margin-right:4px}
 .dashboard-app .cards .expand-btn{font-size:11px;padding:3px;border:0;background:none;color:#2457d6;min-height:28px;white-space:nowrap}
 .dashboard-app .cards .scroll-table{border:1px solid #bdc9d8;border-radius:0;overflow:hidden}
 .dashboard-app .cards .timetable{border-collapse:collapse;border-spacing:0;table-layout:fixed;min-width:0;width:100%}
 .dashboard-app .cards .timetable th,.dashboard-app .cards .timetable td{border:1px solid #d1dae5;border-radius:0;text-align:center;padding:3px 2px}
 .dashboard-app .cards .timetable th{background:#edf2f8;font-size:10px;color:#27374c;height:30px;font-weight:600}.dashboard-app .cards .timetable th:first-child{width:34px}
 .dashboard-app .cards .timetable td{height:43px;font-size:12px;color:#24384a}.dashboard-app .cards .timetable td span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.dashboard-app .cards .timetable td small{font-size:10px;line-height:1.2;display:block;color:#617789}
 .dashboard-app .cards .timetable thead small{display:none}.dashboard-app .cards .timetable tbody th{background:#f7f9fc}.dashboard-app .cards .timetable .after-lunch{border-left:1px solid #d1dae5}
 .dashboard-app .cards .timetable .solo{background:#dff2d9}.dashboard-app .cards .timetable .pair{background:#fff0b2}.dashboard-app .cards .timetable .club{background:#c5e2ff}.dashboard-app .cards .timetable .scout{background:#ffd8b0}
 .dashboard-app .cards .card-foot{display:none}.dashboard-app .cards .mobile-scroll-hint{display:none}
 .dashboard-app[data-mini-layout=list] #results>.cards{grid-template-columns:1fr}.dashboard-app[data-mini-layout=list] #results>.cards .scroll-table{display:none}.dashboard-app[data-mini-layout=list] #results>.cards .card-head{margin:0}.dashboard-app[data-mini-layout=list] #results>.cards .card-head>div{gap:24px}
 .dashboard-app #pagination{position:static;display:flex;padding:16px 4px;min-height:60px;justify-content:space-between;border:0;background:white;gap:14px}.dashboard-app #pagination button.active{background:#e7193b;color:white;border-color:#e7193b}
 .dashboard-app .app-status{position:static;display:flex;justify-content:center;flex-wrap:wrap;gap:18px;padding:13px;border-top:1px solid #d8e0eb;background:#fff;color:#566c89;font-size:11px}.dashboard-app .app-status>span:last-child{display:inline}
 .dashboard-app .teacher-tabs{margin-bottom:12px}.dashboard-app .public-workload{padding-bottom:20px}
 @media(max-width:1199px){.dashboard-summary{flex-wrap:wrap;justify-content:flex-start;gap:10px 16px;font-size:12px}.dashboard-app .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-app .app-sidebar .view-tabs button{font-size:14px}.dashboard-app .filters .search-label{flex-basis:260px}.teacher-group-chips{flex:0 0 100%;width:100%}.teacher-group-chips button{flex:1}}
 @media(max-width:760px){.dashboard-app .app-bar,.dashboard-app .nav-inner{height:76px}.dashboard-app .nav-inner{padding:8px 12px}.dashboard-app .brand strong{font-size:18px}.dashboard-app .brand small{font-size:12px}.dashboard-app .brand{gap:9px}.dashboard-app .school-brand,.dashboard-app .school-brand img{width:48px;height:48px}.dashboard-app .admin-link{font-size:12px;padding:8px 10px;min-height:38px}.dashboard-app .admin-link span{display:none}
 .dashboard-app .app-sidebar{padding:0;display:block;position:relative;transform:none}.dashboard-app .app-sidebar .view-tabs{display:flex;flex-direction:row;overflow-x:auto;gap:0}.dashboard-app .app-sidebar .view-tabs button{flex:0 0 auto;font-size:12px;min-height:48px;min-width:125px;padding:10px}
 .dashboard-app #home{margin:0;padding:10px;height:auto}.dashboard-summary{padding:12px;gap:8px 12px;margin-bottom:12px;font-size:11px}.dashboard-summary strong{font-size:16px;flex-basis:100%}.dashboard-summary>span{padding-left:10px}.dashboard-summary b{font-size:13px}
 .dashboard-app .section-heading{padding:3px 0 10px;gap:8px;flex-wrap:wrap}.dashboard-app .section-heading h1{font-size:22px}.dashboard-app .workspace-actions{margin-left:auto}.dashboard-app .mini-layout button{font-size:12px;padding:7px 10px}.dashboard-app .filters{padding:0 0 10px;gap:8px}.teacher-group-chips{flex:1 0 100%}.teacher-group-chips button{font-size:12px;padding:8px 5px}.dashboard-app .filters .search-label{flex:1 0 100%;min-width:0}.dashboard-app .filters label{flex:1;min-width:130px}.dashboard-app .filters input,.dashboard-app .filters select{font-size:16px}.dashboard-app .print-button{flex:1;font-size:12px}.dashboard-app .cards{grid-template-columns:1fr}.dashboard-app .cards .teacher-card{padding:12px 9px}.dashboard-app .cards .card-head h3{font-size:16px}.dashboard-app .cards .timetable td{height:44px;font-size:11px}.dashboard-app .result-line{flex-wrap:wrap;gap:6px}.dashboard-app #results{padding:0}.dashboard-app #pagination{flex-direction:column;align-items:center;padding:14px 0}.dashboard-app #pagination button{min-width:33px;min-height:38px;padding:5px}.dashboard-app .app-status{font-size:10px;padding:12px 0;gap:4px}.dashboard-app .other-teacher-grid{grid-template-columns:1fr}}
 /* Keep the on-screen mini cards near 4:3; list rows, dialogs and PDF sheets are unaffected. */
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card{aspect-ratio:4 / 3;display:flex;flex-direction:column}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card>.card-head{flex-shrink:0}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card>.scroll-table{flex:1;min-height:0;display:flex}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .timetable{height:100%}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .timetable tbody th,
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .timetable td{height:auto}
 @media(max-width:900px){
  .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card>.card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;margin-bottom:6px}
  .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .card-head>div{display:block;width:auto}
  .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .expand-btn{width:auto;margin:0}
  .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .timetable{line-height:1.2}
  .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .timetable td{padding-block:2px}
  .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .timetable td small{margin-top:0}
  .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card{min-height:270px}
 }
 /* Honor the selected column count on desktop, including with the inspector open. Only mobile falls back to one column. Print and list layouts are independent. */
 .dashboard-app .workspace-actions{flex-wrap:wrap;gap:10px}
 .dashboard-app .mini-columns-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#435670}
 .dashboard-app .mini-columns-label select{min-height:38px;padding:6px 10px;border:1px solid #c7d2e1;border-radius:5px;background:white;color:#263b56}
 .dashboard-app[data-mini-columns="2"]{--mini-columns:2}
 .dashboard-app[data-mini-columns="3"]{--mini-columns:3}
 .dashboard-app[data-mini-columns="4"]{--mini-columns:4}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards{grid-template-columns:repeat(var(--mini-columns,3),minmax(0,1fr))}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card{container-type:inline-size;min-height:270px}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .timetable{line-height:1.25}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .timetable td{font-size:clamp(10px,2.4cqw,13px);font-weight:400;padding-block:2px}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .timetable td span{font-weight:400;white-space:nowrap;word-break:normal;overflow-wrap:normal}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .timetable td small{font-size:clamp(9px,2cqw,11px);font-weight:400;margin-top:0}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .timetable th{font-size:clamp(9px,2.1cqw,11px);font-weight:400}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .card-head h3{font-size:clamp(14px,3.7cqw,21px)}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .card-head p{font-size:clamp(9px,2.4cqw,13px)}
 @container(max-width:430px){
  .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card>.card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;margin-bottom:6px}
  .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .card-head>div{display:block;width:auto}
  .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card .expand-btn{width:auto;margin:0}
 }


 @media(max-width:760px){.dashboard-app[data-mini-columns]{--mini-columns:1}.dashboard-app .mini-columns-label select{font-size:16px}}
 .dashboard-app .teacher-browser{display:block}
 .dashboard-app .teacher-browser.with-summary{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}
 .dashboard-app[data-view=mini] .teacher-results{container:teacher-results / inline-size;min-width:0}
 .dashboard-app .teacher-summary{position:sticky;top:12px;max-height:calc(100dvh - 24px);overflow:auto;background:#fff;border:1px solid #dce3ed;border-radius:8px;color:#26374d}
 .summary-heading{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid #e2e7ee;background:#f7f9fc}
 .summary-heading h2{font-size:18px;margin:0}.summary-heading button{font-size:25px;background:none;border:0;color:#62748a;min-width:34px;min-height:34px}
 #teacher-summary-content{padding:18px}.summary-profile{display:flex;align-items:center;gap:13px;padding-bottom:18px;border-bottom:1px solid #e2e7ee}
 .summary-avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#ffe3e9;font-size:21px;color:#34374f;flex-shrink:0}
 .summary-profile h3{font-size:19px;margin:0 0 3px;color:#17263b}.summary-profile p{font-size:12px;margin:0 0 3px;color:#62748a}.summary-profile b{font-size:13px}
 .summary-facts{margin:0;padding:2px 0 15px;border-bottom:1px solid #e2e7ee}.summary-facts>div{margin-top:15px}.summary-facts dt{font-weight:600;font-size:14px;margin-bottom:5px}.summary-facts dd{margin:0;color:#62748a;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
 .summary-grade{display:inline-block;background:#f1f4f8;border-radius:4px;padding:1px 7px;margin-bottom:4px;color:#344d68}
 .summary-day{margin-top:17px}.summary-day-heading{display:flex;justify-content:space-between;align-items:end;gap:8px;font-size:12px}.summary-day-heading label{display:grid;gap:6px;font-weight:600;font-size:14px}.summary-day-heading select{font-size:13px;border:1px solid #c7d2e1;border-radius:5px;padding:6px;background:white;color:#26374d}
 .summary-lessons{list-style:none;padding:0;margin:10px 0}.summary-lessons li{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #edf0f4;align-items:center}.summary-period{background:#eef2f7;border-radius:5px;min-width:30px;height:30px;display:grid;place-items:center;font-weight:600}.summary-lessons li>div{flex:1;min-width:0}.summary-lessons small{font-size:11px;color:#718097;display:block}.summary-lessons strong{font-size:12px;display:block;font-weight:500;margin:3px 0;overflow-wrap:anywhere}.summary-lesson-grade{font-size:10px;padding:2px 6px;border-radius:3px}.summary-empty{padding:16px 0;color:#718097;font-size:13px}
 .summary-full{display:block;width:100%;min-height:42px;border:1px solid #c7d2e1;background:#f0f4f9;color:#24374f;border-radius:6px;font-size:14px;margin:15px 0}
 .summary-legend{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;border-top:1px solid #e2e7ee;padding-top:14px;font-size:12px;color:#62748a}.summary-legend h4{grid-column:1/-1;margin:0 0 5px;color:#26374d;font-size:14px}.summary-legend i{display:inline-block;width:13px;height:13px;margin-right:7px;vertical-align:middle;border:1px solid #dce3eb;border-radius:3px}
 .dashboard-app #results .summary-name{border:0;background:none;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
 .dashboard-app #results [data-summary-card]{cursor:pointer}.dashboard-app #results .summary-selected{border-color:#e7193b;box-shadow:0 0 0 1px #e7193b}



 @media(max-width:999px){.dashboard-app .teacher-browser.with-summary{display:flex;flex-direction:column;gap:14px}.dashboard-app .teacher-results{width:100%}.dashboard-app .teacher-summary{position:static;width:100%;max-height:none;order:-1}.summary-day-heading select{font-size:16px}}
}

/* Compact workspace, screen only: no timetable or print data changes. */
@media screen {
 .dashboard-app{--rail:96px;--inspector:300px;--topbar:60px;background:#f7f9fc}
 .dashboard-app .app-bar{position:sticky;top:0;height:var(--topbar);z-index:30}
 .dashboard-app .nav-inner{height:var(--topbar);padding:0 20px;gap:22px}
 .dashboard-app .brand{gap:10px}.dashboard-app .brand strong{font-size:17px}.dashboard-app .brand small{font-size:11px;margin:0;color:#b8c7d8}
 .dashboard-app .school-brand,.dashboard-app .school-brand img{width:40px;height:40px}
 .dashboard-app .admin-link{font-size:13px;padding:7px 14px;min-height:36px;white-space:nowrap}
 .dashboard-app .nav-inner .search-label{flex:1;min-width:160px;max-width:420px;margin:0 0 0 auto}
 .dashboard-app #search-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .dashboard-app .nav-inner .search-input{position:relative}
 .dashboard-app .nav-inner .search-input>span{position:absolute;left:12px;top:2px;color:#ccd6e3;font-size:23px}
 .dashboard-app .nav-inner #search{width:100%;height:36px;padding:7px 12px 7px 36px;border:1px solid #536176;background:#ffffff12;border-radius:6px;color:white;font-size:13px}
 .dashboard-app .nav-inner #search::placeholder{color:#c5cfdc}
 .dashboard-app .dashboard-summary{display:flex;flex-wrap:wrap;max-width:285px;gap:2px 10px;margin:0;padding:0;background:none;border:0;font-size:10px;color:#bdc9d8;line-height:1.5}
 .dashboard-app .dashboard-summary strong{font-size:12px;flex-basis:100%;color:white}.dashboard-app .dashboard-summary>span{padding:0;border:0}.dashboard-app .dashboard-summary>span:nth-child(n+4){display:none}
 .dashboard-app .app-sidebar{position:fixed;top:var(--topbar);bottom:0;left:0;width:var(--rail);height:auto;background:#19293e;padding:16px 8px;border:0;overflow:auto}
 .dashboard-app .app-sidebar .view-tabs{display:flex;flex-direction:column;gap:10px}
 .dashboard-app .app-sidebar .view-tabs button{display:flex;flex-direction:column;gap:7px;min-height:76px;padding:10px 3px;border:0!important;border-radius:7px;color:#bbc8da;font-size:11px;line-height:1.4;white-space:normal;width:100%;min-width:0}
 .dashboard-app .app-sidebar .view-tabs button:hover{background:#ffffff12;color:white}
 .dashboard-app .app-sidebar .view-tabs button[aria-selected=true]{background:#e7193b;color:white}
 .dashboard-app .dashboard-menu-icon{width:23px;height:23px}
 .dashboard-app #home{margin-left:var(--rail);padding:18px 22px 0;min-height:calc(100dvh - var(--topbar));background:#f7f9fc}
 .dashboard-app.summary-open #home{margin-right:var(--inspector)}
 .dashboard-app .explorer,.dashboard-app .workspace{background:transparent}
 .dashboard-app .section-heading{padding:0 0 12px;gap:16px;flex-wrap:wrap;background:transparent}
 .dashboard-app .section-heading h1{font-size:23px;line-height:1.4;margin:0}
 .dashboard-app .section-heading .teacher-group-chips{margin-left:auto;flex:0 1 auto;width:auto;max-width:none}
 .dashboard-app .teacher-group-chips button{font-size:11px;padding:7px 10px;min-height:33px}
 .dashboard-app .workspace-actions{gap:8px;margin-left:auto}
 .dashboard-app .mini-columns-label{font-size:11px;gap:5px}.dashboard-app .mini-columns-label select{min-height:32px;padding:5px;font-size:12px}
 .dashboard-app .mini-layout button{padding:6px 9px;font-size:12px;min-height:32px}
 .dashboard-app .filters{padding:0 0 10px;gap:10px;background:transparent;align-items:center;border:0}
 .dashboard-app .filters label{display:flex;flex-direction:row;align-items:center;gap:7px;flex:0 1 auto;min-width:0;font-size:11px;color:#64748b}
 .dashboard-app .filters select{height:34px;min-height:34px;width:auto;max-width:180px;font-size:12px;padding:5px 28px 5px 10px;background-color:white}
 .dashboard-app .print-button{margin-left:auto;min-height:34px;padding:6px 12px;font-size:12px;background:#fff}
 .dashboard-app .clear-button{font-size:11px;min-height:32px;padding:4px}
 .dashboard-app .result-line{padding:4px 0 10px;background:transparent;min-height:24px}
 .dashboard-app .result-line p{font-size:11px}.dashboard-app .legend{font-size:10px;gap:10px}
 .dashboard-app .teacher-browser.with-summary{display:block}
 .dashboard-app .teacher-summary{position:fixed;top:var(--topbar);right:0;bottom:0;width:var(--inspector);max-height:none;border:0;border-left:1px solid #dde4ed;border-radius:0;z-index:15;overflow-y:auto;overscroll-behavior:contain}
 .dashboard-app .summary-heading{position:sticky;top:0;z-index:1;padding:12px 18px;background:#fff}.summary-heading h2{font-size:17px}
 .dashboard-app #teacher-summary-content{padding:16px 18px}.dashboard-app .summary-profile{padding-bottom:14px}
 .dashboard-app .summary-facts>div{margin-top:12px}.dashboard-app .summary-facts{padding-bottom:12px}
 .dashboard-app #results{padding:0}.dashboard-app #results>.cards{gap:14px}
 .dashboard-app[data-view=mini] #results>.cards .teacher-card{padding:12px;border-radius:8px;background:#fff;box-shadow:0 2px 6px #182c4404}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards .card-head{display:flex;flex-wrap:nowrap;gap:9px;margin-bottom:10px}
 .dashboard-app[data-view=mini] #results>.cards .avatar{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:50%;font-size:16px;background:#ffe3e9;color:#6b3749}
 .dashboard-app[data-view=mini] #results>.cards .teacher-card:nth-child(3n+2) .avatar{background:#dfecff;color:#344f72}
 .dashboard-app[data-view=mini] #results>.cards .teacher-card:nth-child(3n) .avatar{background:#eee5ff;color:#60447d}
 .dashboard-app[data-view=mini] #results>.cards .card-head>div{display:block;min-width:0;flex:1;width:auto}
 .dashboard-app[data-view=mini] #results>.cards .card-head h3{overflow:hidden;text-overflow:ellipsis;max-width:100%}
 .dashboard-app[data-view=mini] #results>.cards .card-head p{font-size:10px;white-space:nowrap}.dashboard-app[data-view=mini] #results>.cards .card-head p b{background:none;padding:0;color:#52677e}
 .dashboard-app[data-view=mini] #results>.cards .expand-btn{font-size:10px;padding:2px;width:auto}
 .dashboard-app #pagination{background:transparent;padding:13px 0;min-height:52px}
 .dashboard-app .app-status{background:transparent;padding:10px 0;font-size:10px}
 .dashboard-app .teacher-tabs:empty{display:none}
 @media(min-width:1600px){.dashboard-app{--inspector:320px}}
 @media(max-width:1399px){.dashboard-app .section-heading .workspace-actions{flex:0 0 auto}.dashboard-app .section-heading h1{font-size:21px}.dashboard-app .dashboard-summary{max-width:230px}.dashboard-app .section-heading{gap:10px}.dashboard-app .section-heading .teacher-group-chips{margin-left:0}}
 @media(max-width:1100px){.dashboard-app .dashboard-summary>span{display:none}.dashboard-app .dashboard-summary{max-width:130px}.dashboard-app .nav-inner{gap:12px;padding:0 12px}.dashboard-app #home{padding:16px}}
 @media(max-width:999px){
  .dashboard-app{--rail:82px}.dashboard-app.summary-open #home{margin-right:0}
  .dashboard-app .teacher-browser.with-summary{display:flex;flex-direction:column}
  .dashboard-app .teacher-summary{position:static;max-height:520px;width:100%;order:-1;border:1px solid #dde4ed;border-radius:8px}
  .dashboard-app .dashboard-summary{display:none}.dashboard-app .nav-inner .search-label{max-width:none}
 }
 @media(max-width:600px){
  .dashboard-app{--topbar:104px;--rail:0px}.dashboard-app .nav-inner{height:104px;flex-wrap:wrap;gap:5px 12px;padding:9px 12px}
  .dashboard-app .brand strong{font-size:15px}.dashboard-app .brand small{font-size:10px}.dashboard-app .school-brand,.dashboard-app .school-brand img{width:33px;height:33px}
  .dashboard-app .admin-link{margin-left:auto;font-size:12px;min-height:32px;padding:5px 9px}
  .dashboard-app .nav-inner .search-label{order:5;flex:1 0 100%;margin:0}.dashboard-app .nav-inner #search{font-size:16px;height:36px}
  .dashboard-app .app-sidebar{position:sticky;top:104px;width:100%;height:auto;padding:4px;background:#19293e;z-index:20;transform:none}
  .dashboard-app .app-sidebar .view-tabs{flex-direction:row;gap:3px;overflow-x:auto}.dashboard-app .app-sidebar .view-tabs button{flex:1 0 69px;min-height:55px;padding:6px 3px;font-size:9px;gap:4px;border-radius:5px}.dashboard-app .dashboard-menu-icon{width:18px;height:18px}
  .dashboard-app #home{margin:0;padding:12px 10px 0;min-height:0}.dashboard-app .section-heading{gap:10px;padding:0 0 10px}.dashboard-app .section-heading h1{font-size:20px}
  .dashboard-app .section-heading .teacher-group-chips{order:3;flex:1 0 100%;display:flex}.dashboard-app .teacher-group-chips button{flex:1;font-size:11px;padding:7px 4px}
  .dashboard-app .workspace-actions{margin-left:0;gap:8px}.dashboard-app .filters{gap:8px}.dashboard-app .filters label{flex:1 1 130px;display:grid;gap:3px}.dashboard-app .filters select{width:100%;max-width:none;font-size:16px}
  .dashboard-app .result-line{flex-wrap:wrap}.dashboard-app .teacher-summary{max-height:460px}.dashboard-app #pagination{flex-direction:column}
 }
}
@media screen {
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card{width:100%;min-height:280px}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card>.scroll-table{min-height:min-content}
 /* Narrow four-column cards grow with their header and all five timetable rows. */
 @container teacher-results (max-width:1019px){.dashboard-app[data-view=mini][data-mini-columns="4"][data-mini-layout=cards] #results>.cards>.teacher-card{aspect-ratio:auto}}
 .dashboard-app[data-view=mini][data-mini-layout=cards] #results>.cards>.teacher-card>.card-head{display:flex;grid-template-columns:none;flex-wrap:nowrap;gap:9px;margin-bottom:10px}



}
@media screen {


 @media(max-width:600px){.dashboard-app .print-button{flex:0 0 auto;margin-left:0;white-space:nowrap}.dashboard-app .filters #teacher-sort-label,.dashboard-app .filters #group-label{flex:1 1 40%}.dashboard-app .filters .clear-button{margin-left:auto}}
}
@media screen {
 .dashboard-app[data-view=mini] #results>.cards .expand-btn{flex:0 0 auto;margin:0}
}
@media screen and (max-width:999px){.dashboard-app .teacher-summary{scroll-margin-top:76px}}
@media screen and (max-width:600px){.dashboard-app .teacher-summary{scroll-margin-top:175px}}

/* Public timetable text only; preserve cell colors, layout and PDF styles. */
@media screen {
 .dashboard-app #results .timetable :is(th,td,span,small),
 .dashboard-app #results .combined-table :is(th,td,span,small),
 .dashboard-app #detail-dialog .timetable :is(th,td,span,small){color:#000}
}

@media screen {
 .dashboard-app #results .pdf-card-button{display:inline-flex;align-items:center;justify-content:center;color:#d7193f;min-width:36px;min-height:36px;padding:4px;border-radius:5px;flex:0 0 auto}
 .dashboard-app #results .pdf-card-button:hover{background:#fff0f3;color:#b41030}
 .dashboard-app #results .pdf-card-icon{display:block;width:23px;height:27px;flex:none}
}

/* Read-only teacher dialog: black text, unchanged activity backgrounds and print button. */
@media screen {
 .dashboard-app #detail-dialog,
 .dashboard-app #detail-dialog .dialog-bar,
 .dashboard-app #detail-dialog #detail-content,
 .dashboard-app #detail-dialog #detail-content *{color:#000}
}
@media screen {
 .dashboard-app[data-view=mini] #results>.cards .card-head p{white-space:normal;line-height:1.5}
}

/* Hide the public top-bar academic-period summary without changing its data. */
@media screen {
 .dashboard-app .app-bar #dashboard-summary{display:none}
}

/* Public workload screen: keep numerical columns compact on wide monitors. */
@media screen {
 .dashboard-app[data-view=workload] #results>.public-workload{width:100%;max-width:1120px}
 .dashboard-app[data-view=workload] #results>.public-workload>.workload-help:first-child{display:none}
 .dashboard-app[data-view=workload] #results .workload-matrix .count-name{width:180px}
 .dashboard-app[data-view=workload] #results .workload-matrix .count-total{width:80px}
 @media(max-width:760px){.dashboard-app[data-view=workload] #results .workload-matrix .count-name{width:130px}}
}

/* Compact public daily overview only; printing and other timetable views retain their layout. */
@media screen {
 .dashboard-app[data-view=combined] #results>.large-card{width:100%;max-width:1320px;margin-inline:auto;padding:16px}
 .dashboard-app[data-view=combined] #results .combined-table{table-layout:fixed;width:100%;min-width:1000px}
 .dashboard-app[data-view=combined] #results .combined-table th:first-child{width:72px;text-align:center}
 .dashboard-app[data-view=combined] #results .combined-table td{width:auto;vertical-align:middle}
 .dashboard-app[data-view=combined] #results .combined-table :is(th,td){padding:9px 10px;line-height:1.5}
 .dashboard-app[data-view=combined] #results .combined-table td span{font-size:12px;overflow-wrap:anywhere}
 .dashboard-app[data-view=combined] #results .combined-table td small{font-size:11px;margin-top:3px;overflow-wrap:anywhere}
 .dashboard-app[data-view=combined] #results .combined-table thead th{font-size:12px}
 .dashboard-app[data-view=combined] #results .combined-table thead small{font-size:10px}
 @media(max-width:600px){.dashboard-app[data-view=combined] #results>.large-card{padding:10px}}
}

/* Published teacher reports: read-only courses and free/busy hours. */
.public-teacher-report{background:#fff;border:1px solid #d9e2ec;border-radius:8px;padding:20px;max-width:1200px;color:#000}
.public-teacher-report h2{font-size:18px;margin:0 0 12px}
.teacher-report-note{font-size:12px;color:#596678;line-height:1.7}
.teacher-report-summary{font-size:14px;line-height:1.8;margin:10px 0}
.teacher-report-scroll{overflow:auto}
.public-teacher-report table{width:100%;border-collapse:collapse;font-size:13px}
.public-teacher-report :is(th,td){border:1px solid #d8e1eb;padding:10px;text-align:center;vertical-align:middle;font-weight:400}
.public-teacher-report thead th,.public-teacher-report tfoot{background:#edf3f9}
.teacher-course-table{min-width:760px}
.teacher-course-table th[scope=row],.teacher-course-table td:last-child{text-align:left}
.teacher-availability-table{min-width:850px;table-layout:fixed}
.teacher-availability-table th:first-child{width:78px}
.teacher-availability-table small{display:block;font-size:11px;margin-top:4px}
.teacher-availability-table td{height:80px;padding:4px}
.teacher-availability-table .status-free{color:#000;background:#fff}
.teacher-availability-table .status-filtered{color:#8794a3;background:#f7f8fa}
.availability-lesson{padding:8px 4px;line-height:1.6;border-radius:3px}
.public-teacher-report .status-conflict{outline:2px solid #d92539;outline-offset:-2px}
.public-teacher-report .conflict-label{color:#b00020}
@media screen {
 .dashboard-app .filters .teacher-view-check{display:flex;align-items:center;gap:6px;flex:0 0 auto;white-space:nowrap}
 .dashboard-app .filters .teacher-view-check input{width:16px;height:16px;min-height:16px;padding:0;accent-color:#e7193b}
 .dashboard-app .app-sidebar{overflow-y:auto}
}
@media print {
 #print-area .public-teacher-report{max-width:none;border:0;padding:0}
 #print-area .teacher-report-scroll{overflow:visible}
 #print-area .public-teacher-report table{min-width:0;font-size:10pt}
 #print-area .public-teacher-report tr{break-inside:avoid}
}

/* Public teacher toolbar and PDF actions; retain the existing print routes. */
@media screen {
 .dashboard-app .filters #individual-teacher-picker{flex:0 1 auto}
 .dashboard-app .filters #teacher-select{max-width:220px;width:200px}
 .dashboard-app .filters #show-teacher-partners-label{display:flex;flex-direction:row;align-items:center;gap:6px;white-space:nowrap;flex:0 0 auto}
 .dashboard-app .filters #show-teacher-partners{width:16px;height:16px;min-height:16px;padding:0;accent-color:#e7193b}
 .dashboard-app :is(#print-open,#detail-print,#print-confirm){display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:5px 9px}
 .dashboard-app :is(#print-open,#detail-print,#print-confirm) .pdf-action-icon{width:26px;height:30px;flex:none}
 .dashboard-app #print-open{color:#e7193b}
 .dashboard-app[data-view="availability"] #print-open{display:none}
 .dashboard-app .lesson-teachers{line-height:1.5;overflow-wrap:normal;word-break:normal}
 @media(max-width:760px){.dashboard-app .filters #individual-teacher-picker{flex:1 1 180px}.dashboard-app .filters #teacher-select{max-width:none;width:100%}}
}

/* Class timetable screen: remove only the grey lunch divider, retaining column geometry. */
@media screen {
 .dashboard-app[data-view=classes] #results>.large-card .timetable .after-lunch{border-left-color:transparent}
}

/* Individual teacher screen: readable, equal lesson columns without stretching across wide monitors. */
@media screen {
 .dashboard-app[data-view=individual] #results>.large-card{width:100%;max-width:1200px;padding:20px}
 .dashboard-app[data-view=individual] #results>.large-card .timetable{width:100%;min-width:900px;table-layout:fixed}
 .dashboard-app[data-view=individual] #results>.large-card .timetable th:first-child{width:72px}
 .dashboard-app[data-view=individual] #results>.large-card .timetable td span{overflow-wrap:anywhere}
 @media(max-width:600px){.dashboard-app[data-view=individual] #results>.large-card{padding:12px 10px}}
}

/* Colored screen timetables only; PDF lunch dividers remain unchanged. */
@media screen{.public-app.dashboard-app .timetable .after-lunch{border-left-color:transparent}}

/* Public combined screen: stable class-row pastels; other views and PDF retain their colors. */
@media screen{
.dashboard-app[data-view=combined] #results .combined-table tr[data-class-tone="0"]{--class-row-color:#fce4ec}
.dashboard-app[data-view=combined] #results .combined-table tr[data-class-tone="1"]{--class-row-color:#fff3e0}
.dashboard-app[data-view=combined] #results .combined-table tr[data-class-tone="2"]{--class-row-color:#fffde7}
.dashboard-app[data-view=combined] #results .combined-table tr[data-class-tone="3"]{--class-row-color:#f1f8e9}
.dashboard-app[data-view=combined] #results .combined-table tr[data-class-tone="4"]{--class-row-color:#e0f2f1}
.dashboard-app[data-view=combined] #results .combined-table tr[data-class-tone="5"]{--class-row-color:#e1f5fe}
.dashboard-app[data-view=combined] #results .combined-table tr[data-class-tone="6"]{--class-row-color:#ede7f6}
.dashboard-app[data-view=combined] #results .combined-table tr[data-class-tone="7"]{--class-row-color:#fbe9e7}
.dashboard-app[data-view=combined] #results .combined-table tr[data-class-tone="8"]{--class-row-color:#eceff1}
.dashboard-app[data-view=combined] #results .combined-table tbody tr[data-class-tone]>:is(th,td){background:var(--class-row-color);color:#000}
.dashboard-app[data-view=combined] .result-line .legend{display:none}
}

/* Public site footer, matching the school academic portal. */
.dashboard-app .school-site-footer{flex-shrink:0;width:100%;background:transparent;border-top:1px solid #d8e0eb;margin-top:16px;padding:14px 12px 18px;text-align:center;color:#62738b;font-size:12px;line-height:1.8}
.dashboard-app .school-site-footer p{margin:0;color:inherit;font-size:inherit;overflow-wrap:break-word}
.dashboard-app .school-site-footer a{margin:0;color:inherit;text-decoration:none}
.dashboard-app .school-site-footer a:hover{text-decoration:underline;color:#172b43}
.dashboard-app .school-site-footer a:focus-visible{outline:2px solid #e9143f;outline-offset:3px}
@media print{.dashboard-app .school-site-footer{display:none!important}}

/* Larger close targets in the individual timetable dialog. */
@media screen {
 #detail-dialog .detail-close{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid #cbd5e1;background:#f8fafc;color:#334155;border-radius:8px;font-size:14px;font-weight:500;line-height:1;box-shadow:0 1px 2px #0f172a08;transition:background-color .15s,border-color .15s,color .15s}
 #detail-dialog .detail-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;flex-shrink:0;pointer-events:none}
 #detail-dialog .detail-close-icon{width:44px;height:44px;min-width:44px;flex:0 0 44px;padding:0;border-radius:50%}
 #detail-dialog .detail-close-label{min-width:100px;padding:12px 18px}
 #detail-dialog .detail-close:hover{background:#fff1f3;border-color:#ed9aab;color:#bd1634}
 #detail-dialog .detail-close:active{background:#ffe2e8;border-color:#dc6881}
 #detail-dialog .detail-close:focus-visible{outline:3px solid #e46a72;outline-offset:3px}
}

@media screen and (max-width:600px) {
 .dashboard-app .app-sidebar .view-tabs {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  overflow:visible;
 }
 .dashboard-app .app-sidebar .view-tabs button {
  grid-column:auto;
  min-width:0;
  min-height:44px;
  flex-direction:row;
  font-size:11px;
  line-height:1.15;
 }
 .dashboard-app .dashboard-menu-icon {width:14px;height:14px;flex-shrink:0}
 .dashboard-app #publication-info {gap:6px !important;font-size:11px !important;padding:4px 0 8px !important}
 .dashboard-app #publication-info button {min-height:44px;padding:4px 8px;font-size:11px}
 .dashboard-app .mini-columns-label {display:none}
 .dashboard-app .filters {display:flex;align-items:end;margin:0;padding:0 0 6px;flex-wrap:wrap}
 .dashboard-app .filters label:not([hidden]) {flex:1 1 105px}
 .dashboard-app .filters label[hidden] {display:none}
 .dashboard-app .filters #print-open {width:44px;min-height:44px;flex:0 0 44px}
 .dashboard-app .clear-button {min-height:44px}
 .dashboard-app .teacher-summary {order:0;max-height:none;overflow:visible}
}
