.mobile-home-shortcuts,.mobile-greeting{display:none}.school-brand-logo{display:block;width:156px;height:44px;object-fit:contain}.brand-old-text{display:none!important}.brand[role=button]{cursor:pointer}.work-conflicts{padding:14px 16px;margin:0 0 18px;border:1px solid #f2d094;border-radius:7px;background:#fff9ed;color:#80561e;font-size:12px;line-height:1.5}.work-conflicts p{margin:6px 0}.work-conflicts ul{margin:8px 0 0;padding-left:18px}
@media(max-width:620px){
 body .brand{display:flex;gap:7px;align-items:center;overflow:visible;flex:1;min-width:0}body .school-brand-logo{width:112px;max-width:calc(100% - 50px);height:34px;flex:0 1 112px}body .brand>.brand-year{display:inline!important;margin:0;font-size:10px;font-weight:600;white-space:nowrap;flex:0 0 auto}body .brand>.brand-old-text{display:none!important}body .mobile-header-controls{gap:3px}body .topbar{padding:0 9px;gap:5px}
 body[data-portal-page=Accueil] #content.portal-home-content{display:flex;flex-direction:column;gap:0}.portal-home-content>.admin-welcome,.portal-home-content>.greeting{order:0}.portal-home-content>.mobile-home-shortcuts{order:1}.portal-home-content>.portal-chat{order:2;margin:0 0 14px}.portal-home-content>.global-admin-kpis{order:3}.portal-home-content>.global-admin-grid{order:4}
 .desktop-greeting{display:none}.mobile-greeting{display:inline}.portal-home-content .admin-welcome{margin-bottom:12px}.portal-home-content .admin-welcome .eyebrow,.portal-home-content .admin-welcome p,.portal-home-content>.scope-filter-bar{display:none}.portal-home-content .admin-welcome h1{font-size:24px;line-height:1.2;margin-bottom:0}
 .mobile-home-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 14px}.mobile-home-shortcuts button.secondary-btn{min-height:42px;padding:8px;font-size:12px;justify-content:flex-start;gap:8px;color:#2458b4;border-color:#cad8f2;background:#fff}.mobile-home-shortcuts i{font-size:18px}
 .portal-home-content .global-admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-bottom:12px}.portal-home-content .global-admin-kpi{padding:9px 7px;min-height:0}.portal-home-content .global-admin-kpi small{font-size:9px;line-height:1.3;display:block}.portal-home-content .global-admin-kpi strong{font-size:20px;line-height:1.2;margin-top:5px}.portal-home-content .global-admin-kpi span{display:none}.portal-home-content .global-budget-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.portal-home-content .global-admin-panel{padding:14px}.portal-home-content .global-admin-panel h2{font-size:14px}.mobile-hide{display:none!important}
 .portal-chat{display:flex;flex-direction:column}.portal-chat>header{order:0;gap:6px}.portal-chat>form{order:1;margin-top:12px}.portal-chat>.portal-chat-messages{order:2;margin:12px 0 0;max-height:260px}.portal-chat>.portal-chat-suggestions{display:none}.portal-chat>small{order:3}.portal-chat textarea{min-height:52px}.portal-chat>header p{font-size:11px;line-height:1.5}.portal-chat>header>[data-clear]{align-self:flex-end;font-size:10px}.portal-chat form>div{gap:6px}
 body:not([data-portal-page=Planning]) .scope-control:has([data-scope-filter=programme]),body:not([data-portal-page=Planning]) .scope-filter-bar .clear-filters{display:none!important}
 body .maquette-accordion{overflow:visible;min-width:0}body .maquette-accordion>.accordion-body{min-width:0;overflow:hidden;padding:0}body .maquette-accordion>summary{position:relative;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}body .maquette-accordion>summary>.maquette-code{grid-column:1/-1!important;grid-row:1!important;padding-right:24px}body .maquette-accordion>summary>span:nth-child(2){grid-column:1/-1;grid-row:2;font-size:10px}body .maquette-accordion>summary>span:nth-child(3){display:none}body .maquette-accordion>summary>span:nth-child(4){grid-column:1;grid-row:3;white-space:normal;font-size:10px}body .maquette-accordion>summary>span:nth-child(5){grid-column:2;grid-row:3;white-space:normal;font-size:10px}body .maquette-accordion>summary>span:nth-child(6){grid-column:3;grid-row:3;white-space:normal;font-size:10px}body .maquette-group-caret{position:absolute;right:12px;top:16px}
 body .semester-disclosure>summary{position:relative;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}body .semester-disclosure>summary>.semester-pill{grid-column:1/-1;grid-row:1}body .semester-campus-spacer,body .semester-disclosure>summary>strong{display:none}body .maquette-semester-totals>span:nth-child(1){grid-column:1;grid-row:2}body .maquette-semester-totals>span:nth-child(2){grid-column:2;grid-row:2}body .maquette-semester-totals>span:nth-child(3){grid-column:3;grid-row:2}body .semester-caret{position:absolute;right:12px;top:14px}body .semester-tools{padding:8px 12px}body .semester-disclosure .table-wrap{max-width:100%;overflow:auto;overscroll-behavior-x:contain}body .maquette-grid{display:table;min-width:1000px;width:100%}body .maquette-grid thead{display:table-header-group}body .maquette-grid tbody{display:table-row-group}body .maquette-grid tr{display:table-row}body .maquette-grid th,body .maquette-grid td{display:table-cell;padding:8px;position:static}body .maquette-grid td:before{content:none}
 body .modules-catalog-table tbody tr{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}body .modules-catalog-table tbody td:first-child{display:none}body .modules-catalog-table tbody td:nth-child(2){grid-column:1/-1;grid-row:1}body .modules-catalog-table tbody td:nth-child(3){grid-column:1;grid-row:2}body .modules-catalog-table tbody td:nth-child(4){grid-column:2;grid-row:2}body .modules-catalog-table tbody td:nth-child(5){grid-column:3;grid-row:2}body .modules-catalog-table .module-edit-button{display:none}body .modules-catalog-table td:before{font-size:9px}body .modules-catalog-table .module-name-line strong{font-size:13px}
 body .instructor-list-head,body .instructor-accordion-summary{grid-template-columns:minmax(120px,1fr) 70px 55px 14px!important;gap:6px}body .instructor-list-head>.mobile-row-number,body .instructor-accordion-summary>.mobile-row-number{display:none}body .instructor-name-cell .ph-caret-right{display:none}body .instructor-column-handle{display:none}body .instructor-accordion-summary{padding:11px 9px}body .instructor-list-head{padding:9px;font-size:9px}body .instructor-name-cell strong{font-size:12px}
 body .students-table{min-width:0;width:100%}body .students-table td,body .students-table th{padding:9px 6px;font-size:10px}body .students-table td strong{font-size:12px}
}

@media(max-width:620px){.portal-home-content .greeting .eyebrow,.portal-home-content .greeting p{display:none}.portal-home-content>.personal-kpis{order:3}.portal-home-content>.personal-next{order:4}}

@media(max-width:620px){.portal-home-content>.grades-pending{order:5}}

@media(max-width:620px){body .portal-chat>header{position:relative;display:block;min-height:0}body .portal-chat>header h2{padding-right:30px}body .portal-chat>header p{margin-bottom:0}body .portal-chat>header>[data-clear]{position:absolute;top:0;right:0;width:26px;height:26px;min-height:0;padding:0;font-size:0!important}body .portal-chat>header>[data-clear]::before{content:'×';font-size:22px;color:#64748b}body .portal-chat>form{margin-top:12px}body .brand{flex-direction:row;flex-wrap:nowrap}}

@media(max-width:620px){body .portal-chat{padding:14px}body .portal-chat-messages:not(:has(.portal-chat-message)){display:none}body .portal-chat>small{font-size:9px;line-height:1.5}body .maquette-grid-wrap{max-width:100%;overflow:auto;overscroll-behavior-x:contain}}

@media(max-width:620px){body .semester-disclosure>summary>.maquette-semester-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-column:1/-1;grid-row:2;margin:0;gap:8px;width:100%}body .semester-disclosure>summary>.maquette-semester-totals>span{grid-column:auto;grid-row:auto;font-size:9px;min-width:0}body .semester-disclosure>summary>.maquette-semester-totals b{font-size:11px}body .maquette-grid td::before{display:none}}

@media(max-width:620px){body .instructor-accordion-summary{grid-template-columns:repeat(2,minmax(0,1fr)) 14px!important;gap:8px}body .instructor-accordion-summary .instructor-name-cell{grid-column:1/3;grid-row:1}body .instructor-accordion-summary>span:nth-of-type(3){grid-column:1;grid-row:2}body .instructor-accordion-summary>span:nth-of-type(4){grid-column:2;grid-row:2}body .instructor-accordion-summary>i:last-child{grid-column:3;grid-row:1}}

/* Keep the mobile layout within the viewport, including iPhone focus zoom. */
@media(max-width:620px){
 html,body{min-width:0;max-width:100%;overscroll-behavior-x:none}
 body .app{position:relative;width:100%;min-width:0;max-width:100%;height:100dvh}
 body .workspace{position:relative;width:100%;min-width:0;max-width:100%;overflow:hidden}
 body .main{width:100%;min-width:0;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none;-webkit-overflow-scrolling:touch}
 body .content-wrap{width:100%;min-width:0;max-width:100%}
 body .topbar{width:100%;min-width:0;max-width:100%;flex-shrink:0;display:grid;grid-template-columns:minmax(0,1fr) auto;padding-inline:max(9px,env(safe-area-inset-left)) max(9px,env(safe-area-inset-right))}
 body .brand{width:100%;min-width:0;max-width:100%;gap:7px}
 body .school-brand-logo{width:112px;min-width:0;max-width:calc(100% - 64px);flex:0 1 112px;object-position:left center}
 body .mobile-header-controls{min-width:0;margin:0;flex-shrink:0}
 body .mobile-header-controls>button{flex-shrink:0}
 body .sidebar.mobile-open{position:absolute;inset:0;z-index:15;width:100%;max-width:100%;min-width:0;max-height:100%;overflow-x:hidden;overflow-y:auto;align-content:start;padding-bottom:max(20px,env(safe-area-inset-bottom));overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 body .sidebar .nav-list,body .sidebar-user,body .sidebar-user-info,body .sidebar-footer-tools{min-width:0;max-width:100%}
 body .sidebar .nav-item{min-width:0;height:auto;min-height:44px;white-space:normal;overflow-wrap:anywhere}
 body .sidebar .profile-select{width:100%;max-width:100%}
 body .scope-filter-bar .scope-control{min-width:0;max-width:100%;white-space:normal}
 body .scope-filter-bar .scope-control select{width:0;min-width:0;flex:1 1 0}
 body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]),body select,body textarea{font-size:16px!important;min-width:0;max-width:100%}
 body .modal-backdrop{padding:12px;max-width:100%;overflow:hidden}
 body .modal,body dialog.um-dialog{box-sizing:border-box;width:calc(100% - 24px);min-width:0;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:18px;margin:auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
 body .modal-backdrop .modal{width:100%;max-width:100%}
 body .modal-head,body .modal-head>div,body dialog.um-dialog form,body .um-fields,body .form-grid,body .um-fields>label,body .field{min-width:0;max-width:100%}
 body .modal-head h2,body dialog.um-dialog h2{font-size:20px;white-space:normal;overflow-wrap:anywhere}
 body .modal-head>div{flex:1}
 body .modal-head .close,body dialog.um-dialog .portal-dialog-close{flex-shrink:0}
 body dialog.um-dialog .um-actions{bottom:-18px;flex-wrap:wrap}
 body .modal textarea,body dialog.um-dialog textarea{width:100%;resize:vertical}
 body .um-box,body .table-wrap{max-width:100%;overscroll-behavior-x:contain}
}
/* One flat page menu; Planning sections live in a dedicated native selector. */
.mobile-menu-close,.mobile-planning-switcher{display:none}
@media(max-width:620px),(max-width:950px) and (max-height:500px){
 body .sidebar.mobile-open,body .sidebar.collapsed.mobile-open{position:absolute;inset:0;z-index:15;width:100%;max-width:100%;height:100%;max-height:100%;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:14px;padding:12px 16px max(20px,env(safe-area-inset-bottom));background:#f7f8fa;border:0}
 body .sidebar.mobile-open .sidebar-head{display:flex;order:0;position:sticky;top:0;z-index:2;flex:none;height:44px;min-height:44px;margin:0;padding:0;background:#f7f8fa;border:0;font-size:19px;color:#263246}
 body .sidebar.mobile-open .sidebar-collapse-toggle,body .sidebar .mobile-nav-toggle,body .sidebar .planning-nav-toggle,body .sidebar .planning-submenu{display:none!important}
 body .sidebar.mobile-open .mobile-menu-close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #dfe5ee;border-radius:8px;background:#fff;color:#475569;font-size:20px;cursor:pointer}
 body .sidebar.mobile-open .nav-list,body .sidebar.collapsed.mobile-open .nav-list{display:grid;order:1;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(56px,auto);gap:8px;width:100%;margin:0;padding:0;overflow:visible;flex:none}
 body .sidebar .planning-nav-group{display:block;grid-column:auto;min-width:0;margin:0}
 body .sidebar .planning-nav-head{height:100%;display:block;position:static}
 body .sidebar.mobile-open .nav-item,body .sidebar.collapsed.mobile-open .nav-item,body .sidebar.mobile-open .planning-nav-head>[data-page]{display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:56px;margin:0;padding:10px 12px;gap:9px;border:1px solid #e0e6ee;border-radius:8px;background:#fff;color:#334155;font:500 13px/1.35 Albert Sans,sans-serif;white-space:normal;text-align:left}
 body .sidebar.mobile-open .nav-item.active{color:#245ed0;background:#edf3ff;border-color:#c4d5f6;font-weight:600}
 body .sidebar.mobile-open .nav-item i{display:block;width:20px;flex:0 0 20px;font-size:21px;text-align:center}
 body .sidebar.mobile-open .nav-item span{display:block;min-width:0}
 body .sidebar.mobile-open .sidebar-user,body .sidebar.collapsed.mobile-open .sidebar-user{display:flex;position:static;order:2;left:auto;right:auto;bottom:auto;width:100%;max-width:100%;margin:0;padding:12px;gap:10px;border:1px solid #e0e6ee;border-radius:8px;background:#fff;flex:none}
 body .sidebar.mobile-open .sidebar-user .avatar{width:38px;height:38px;flex:0 0 38px;font-size:12px}
 body .sidebar.mobile-open .sidebar-user-info{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-width:0}
 body .sidebar.mobile-open .sidebar-user-info strong{font-size:13px;line-height:1.4;white-space:normal}
 body .sidebar.mobile-open .sidebar-user-info small{display:none}
 body .sidebar.mobile-open .sidebar-user .profile-select{display:block;grid-column:1;max-width:100%;width:100%;padding:6px 18px 6px 0;font-size:16px;line-height:1.4;min-height:40px}
 body .sidebar.mobile-open .sidebar-footer-tools{display:grid;order:3;grid-template-columns:repeat(2,minmax(0,1fr));position:static;left:auto;right:auto;bottom:auto;width:100%;gap:8px;margin:0;padding:0;border:0;background:transparent;flex:none}
 body .sidebar.mobile-open .sidebar-year-card{display:flex;grid-column:1/-1;align-items:center;gap:12px;padding:8px 12px;border:1px solid #e0e6ee;border-radius:8px;background:#fff}
 body .sidebar.mobile-open .sidebar-year-card label{display:block;margin:0;flex:0 0 auto;color:#64748b;font-size:11px;letter-spacing:0;text-transform:none}
 body .sidebar.mobile-open .sidebar-year-card select{flex:1;min-width:0;width:auto;min-height:40px;margin:0;padding:6px;border:0;font-size:16px;text-align:right}
 body .sidebar.mobile-open .sidebar-footer-link{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;height:auto;min-height:46px;padding:9px 12px;border:1px solid #e0e6ee;border-radius:8px;background:#fff;color:#475569;font-size:12px;line-height:1.35;text-align:left}
 body .sidebar.mobile-open .sidebar-footer-link i{flex:0 0 18px;font-size:19px}
 body .sidebar.mobile-open .sidebar-footer-link span{display:block;white-space:normal}
 body .mobile-header-controls>button{min-width:38px;min-height:40px}
 body .mobile-planning-switcher{display:block;position:sticky;top:0;z-index:5;flex:none;width:100%;padding:6px 12px;border-bottom:1px solid #e1e6ed;background:#fff}
 body .mobile-planning-switcher>label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;margin:0;color:#334155;font-size:13px;font-weight:600}
 body .mobile-planning-switcher select{width:100%;height:42px;min-width:0;padding:7px 10px;border:1px solid #d7e1f0;border-radius:7px;background:#f8faff;color:#2458b8;font:500 16px Albert Sans,sans-serif}
 body .planning-workspace-main:has(.mobile-planning-switcher:not([hidden])) .planning-workspace-host{height:auto;flex:1;min-height:0}
 body .sidebar.mobile-open button:focus-visible,body .mobile-planning-switcher select:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
}

@media(max-width:620px),(max-width:950px) and (max-height:500px){body .app:has(.sidebar.mobile-open) .mobile-header-controls{visibility:hidden}}

/* Phone landscape keeps the same menu and a scrollable workspace. */
@media(max-width:950px) and (max-height:500px){
 html,body{min-width:0;max-width:100%;margin:0;padding:0}
 body .app{height:100dvh;min-height:0;width:100%;max-width:100%;border:0;border-radius:0}
 body .workspace{position:relative;flex-direction:column;overflow:hidden;min-height:0}
 body .topbar{height:56px;flex-basis:56px;padding:0 12px;gap:8px}
 body .header-actions,body .header-center{display:none}
 body .brand{display:flex;flex:1;align-items:center;gap:8px;min-width:0}
 body .brand-year{display:inline;font-size:11px;white-space:nowrap}
 body .school-brand-logo{width:112px;height:34px;object-fit:contain;object-position:left}
 body .mobile-header-controls{display:flex;align-items:center;gap:6px;flex:none}
 body .mobile-header-menu{display:grid;place-items:center;width:38px;height:40px;border:0;border-radius:6px;background:transparent;font-size:22px;color:#334155}
 body .mobile-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#edf3ff;color:#2563eb}
 body .sidebar:not(.mobile-open){display:none}
 body .main{width:100%;min-width:0;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:16px}
 body .main.planning-workspace-main{padding:0;overflow:hidden}
}

.mobile-planning{min-width:0;max-width:100%;padding:4px}.mobile-planning h1{font-size:24px;margin:0}.mobile-planning header p{margin:6px 0 18px;color:#64748b}.mobile-planning-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mobile-planning-filters label:last-child{grid-column:1/-1}.mobile-planning label{display:grid;gap:5px;min-width:0;font-size:12px;color:#64748b}.mobile-planning select,.mobile-planning input{min-width:0;width:100%;min-height:44px;padding:8px;border:1px solid #dce4ee;border-radius:6px;background:white;color:#263142;font:16px Albert Sans,sans-serif;box-sizing:border-box}.mobile-planning-period{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-top:16px}.mobile-planning-period label{flex:1;min-width:130px}.mobile-planning-period button{min-width:44px;min-height:44px;border:1px solid #dce4ee;border-radius:6px;background:white;color:#2563eb;font:14px Albert Sans,sans-serif}.mobile-planning-period [data-today]{width:100%;margin-top:4px}.mobile-planning-day h2{font-size:15px;color:#475569;text-transform:capitalize;margin:22px 0 10px}.mobile-planning-day article{padding:14px;margin-bottom:10px;border:1px solid #e0e7ef;border-left:3px solid #94b6ff;border-radius:7px;background:white}.mobile-planning-day h3{font-size:16px;line-height:1.4;margin:8px 0}.mobile-planning-day p{margin:0;font-size:13px;line-height:1.5;color:#64748b;overflow-wrap:anywhere}.mobile-planning-day time{font-size:14px;font-weight:600;color:#334155}.mobile-planning-day .mobile-deadline{border-left-color:#9c8cda}

/* Coco phone: a short navigation popover, content and consultation first. */
.mobile-filter-toggle[hidden]{display:none!important}
@media(max-width:620px),(max-width:950px) and (max-height:500px){
 body .sidebar.mobile-open{inset:auto;top:6px;left:10px;right:10px;width:calc(100% - 20px);height:auto;max-height:calc(100dvh - 80px);display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:6px;padding:8px;background:#fff;border:1px solid #e2e7ef;border-radius:10px;box-shadow:0 8px 28px #23344d20;overflow-y:auto;z-index:40}
 body .sidebar.mobile-open .sidebar-head{display:block;position:static;height:0;min-height:0;padding:0;margin:0;border:0;grid-column:1/-1}
 body .sidebar.mobile-open .sidebar-head strong{display:none}
 body .sidebar.mobile-open #mobile-menu-close{position:fixed;left:var(--menu-close-left);top:var(--menu-close-top);width:38px;height:40px;min-height:40px;border:0;background:#f1f4f8;border-radius:6px;font-size:22px;z-index:50}
 body .sidebar.mobile-open .nav-list{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:44px;gap:2px;padding:0;margin:0;overflow:visible}
 body .sidebar.mobile-open .nav-item,body .sidebar.collapsed.mobile-open .nav-item,body .sidebar.mobile-open .planning-nav-head>[data-page]{justify-content:center;min-height:44px;height:44px;padding:4px;gap:0;border:0;border-radius:5px;background:transparent;font-size:12px;text-align:center;line-height:1.2}
 body .sidebar.mobile-open .nav-item i{display:none}
 body .sidebar.mobile-open .nav-item.active{background:#edf3ff;color:#245ed0}
 body .sidebar.mobile-open .sidebar-user,body .sidebar.collapsed.mobile-open .sidebar-user{grid-column:1;order:2;position:static;width:100%;padding:0;margin:0;border:0;border-top:1px solid #edf0f4;border-radius:0;background:transparent;min-width:0}
 body .sidebar.mobile-open .sidebar-user .avatar,body .sidebar.mobile-open .sidebar-user-info strong,body .sidebar.mobile-open .sidebar-user-info small{display:none}
 body .sidebar.mobile-open .sidebar-user-info{width:100%;display:block}
 body .sidebar.mobile-open .sidebar-user .profile-select{height:44px;min-height:44px;padding:4px;font-size:16px;overflow:hidden;text-overflow:ellipsis}
 body .sidebar.mobile-open .sidebar-footer-tools{grid-column:2;order:2;display:block;padding:0;margin:0;border-top:1px solid #edf0f4;width:100%}
 body .sidebar.mobile-open .sidebar-footer-link,body .sidebar.mobile-open .portal-account-settings,body .sidebar.mobile-open .side-note{display:none}
 body .sidebar.mobile-open .sidebar-year-card{display:block;padding:0;border:0;margin:0;background:transparent}
 body .sidebar.mobile-open .sidebar-year-card label{display:none}
 body .sidebar.mobile-open .sidebar-year-card select{width:100%;height:44px;min-height:44px;padding:4px;font-size:16px;text-align:left}
 body .mobile-header-controls .mobile-sync-button{display:none}
 body .scope-filter-bar[hidden],body [data-dash-filters][hidden]{display:none!important}
 body .mobile-filter-toggle{min-height:40px;margin:0 0 10px;font-size:13px}
 body .dash-filter-toggle{margin-bottom:12px}
 body .dash-coordination-recent,body .dash-coordination-tasks{display:none}
}
@media(min-width:621px) and (max-width:950px) and (max-height:500px){body .sidebar.mobile-open .nav-list{grid-template-columns:repeat(5,minmax(0,1fr))}}

@media(max-width:620px),(max-width:950px) and (max-height:500px){body .sidebar.mobile-open .mobile-secondary-entry{display:none!important}body .sidebar.mobile-open .nav-list>.planning-nav-group{min-height:44px}}

@media(max-width:620px),(max-width:950px) and (max-height:500px){body[data-portal-page="Modules"] [data-action="add-module"],body[data-portal-page="Modules"] .module-edit-button{display:none!important}}

@media(max-width:620px),(max-width:950px) and (max-height:500px){body .sidebar.mobile-open .nav-list:has([data-page="Magasin"]){grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Readable module sheets and budget cards: no page-wide horizontal scrolling. */
@media(max-width:620px),(max-width:950px) and (max-height:500px){
 body dialog.ref-editor{width:calc(100vw - 24px);max-width:calc(100vw - 24px);min-width:0}
 body .ref-editor .um-fields,body .ref-editor .ref-readonly{grid-template-columns:minmax(0,1fr)}
 body .module-reading-section{min-width:0;max-width:100%;padding:12px 0;border-top:1px solid #e6ebf2}
 body .module-reading-section h3{font-size:14px;margin:0 0 8px;color:#334155}
 body .module-reading-section p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65;margin:0;color:#475569}
 body .ref-editor .ref-readonly strong{overflow-wrap:anywhere;white-space:normal}
 body #budget-real-root,body .budget-pie-panel>div,body .budget-real-summary>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
 body .budget-pie-panel{flex-wrap:wrap;align-items:flex-start}
 body .budget-pie-panel>div:last-child{flex:1 1 150px}
 body .work-panel .budget-projects-box{overflow:visible;border:0}
 body .budget-projects-table,body .budget-projects-table tbody{display:block;width:100%;min-width:0;max-width:100%}
 body .budget-projects-table thead{display:none}
 body .budget-projects-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;min-width:0;margin:0 0 12px;padding:14px;box-sizing:border-box;border:1px solid #e1e7ef;border-radius:7px;background:#fff}
 body .budget-projects-table tbody td{display:block;width:auto;min-width:0;max-width:100%;padding:0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere;font-size:13px}
 body .budget-projects-table tbody td:before{content:attr(data-budget-label);display:block;color:#7a8798;font-size:11px;margin-bottom:5px}
 body .budget-projects-table tbody td:first-child,body .budget-projects-table tbody td:nth-child(2),body .budget-projects-table tbody td:last-child,body .budget-projects-table td[colspan]{grid-column:1/-1}
 body .budget-projects-table tbody td:first-child:before,body .budget-projects-table tbody td:last-child:before,body .budget-projects-table td[colspan]:before{display:none}
 body .budget-projects-table tbody td:first-child strong{font-size:15px;line-height:1.45}
 body .budget-projects-table tbody td small{max-width:100%;margin-top:5px;line-height:1.5}
 body .budget-projects-table [data-edit]{width:100%;min-height:44px}
 body .budget-dialog fieldset{min-inline-size:0;min-width:0;max-width:100%;box-sizing:border-box}
 body .budget-dialog .um-fields{grid-template-columns:minmax(0,1fr)}
 body .budget-dialog .um-wide{grid-column:auto}
}

@media(max-width:620px),(max-width:950px) and (max-height:500px){body .ref-editor .ref-readonly{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body .ref-editor .ref-readonly>div:first-child{grid-column:1/-1}}

.mobile-catalogue-sort{display:none}
@media(max-width:620px),(max-width:950px) and (max-height:500px){
 body .catalogue-main .mobile-catalogue-sort{display:flex;align-items:center;gap:10px;margin:10px 0;color:#64748b;font-size:12px}
 body .mobile-catalogue-sort select{flex:1;width:0;min-height:40px;border:1px solid #dce4ee;border-radius:6px;background:white;padding:6px}
 body .catalogue-main .maquette-accordion,body .catalogue-main .semester-disclosure,body .catalogue-main .maquette-grid-wrap,body .catalogue-main .students-table{min-width:0;max-width:100%;overflow:visible}
 body .catalogue-main .maquette-grid-wrap{width:100%;padding:0 0 12px}
 body .catalogue-main .maquette-grid,body .catalogue-main .maquette-grid tbody,body .catalogue-main .students-table,body .catalogue-main .students-table tbody{display:block!important;min-width:0!important;max-width:100%;width:100%!important;table-layout:auto}
 body .catalogue-main :is(.maquette-grid,.students-table) :is(colgroup,thead){display:none!important}
 body .catalogue-main .maquette-grid tfoot{display:none!important}
 body .catalogue-main :is(.maquette-grid,.students-table) tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;margin:0 0 12px;width:100%;min-width:0;border:1px solid #e5eaf0;border-radius:7px;background:white;box-sizing:border-box}
 body .catalogue-main :is(.maquette-grid,.students-table) tbody tr[hidden]{display:none!important}
 body .catalogue-main :is(.maquette-grid,.students-table) tbody td{display:block;grid-column:auto;position:static;width:auto!important;min-width:0!important;max-width:100%;height:auto;padding:0!important;border:0!important;white-space:normal!important;text-align:left;overflow-wrap:anywhere;font-size:13px}
 body .catalogue-main :is(.maquette-grid,.students-table) tbody td:before{content:attr(data-mobile-label)!important;display:block!important;color:#7a8798;font-size:11px;margin-bottom:5px;line-height:1.4}
 body .catalogue-main .maquette-grid tbody td:nth-child(-n+2){display:none!important}
 body .catalogue-main .maquette-grid tbody :is(td:nth-child(3),td:nth-child(4),td:nth-child(10),td:nth-child(11),td:nth-child(12)){grid-column:1/-1}
 body .catalogue-main .maquette-grid tbody td:nth-child(3):before{display:none!important}
 body .catalogue-main .maquette-grid :is(.maquette-cell,.maquette-readonly){min-width:0!important;max-width:100%;width:100%;white-space:normal!important;overflow:visible;text-overflow:clip;height:auto;min-height:40px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
 body .catalogue-main .maquette-grid .module-title-stack .maquette-readonly{font-size:15px;font-weight:600}
 body .catalogue-main .semester-disclosure>summary,body .catalogue-main .semester-disclosure[open]>summary{width:100%!important;max-width:100%;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));box-sizing:border-box}
 body .catalogue-main .semester-disclosure>summary .maquette-semester-totals{max-width:100%;min-width:0}
 body .catalogue-main .maquette-semester-totals>span{white-space:normal!important;padding:0!important;min-width:0}
 body .catalogue-main .students-table tbody td{grid-column:1/-1}
 body .catalogue-main .students-table tbody td:first-child:before{display:none!important}
 body .catalogue-main .students-table td:first-child strong{font-size:16px;line-height:1.4}
 body .catalogue-main .students-table td strong{font-size:14px}
 body .catalogue-main .students-table td small{display:block;line-height:1.5;margin-top:5px}
 body .students-table progress{max-width:100%;width:100%}
 body .students-table .student-internal-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:0 0 8px}
 body .catalogue-main .students-table .inline-edit{min-height:40px;font-size:12px;white-space:normal}
 body .catalogue-main .instructor-list-head{display:flex;flex-wrap:wrap;gap:10px;padding:8px 0}
 body .catalogue-main .instructor-list-head>span:first-child,body .catalogue-main .instructor-list-head>span:last-child{display:none}
 body .instructor-list-head .instructor-column-handle{display:none}
 body .catalogue-main .instructor-accordion,body .instructor-accordion-body,body .instructor-teaching,body .instructor-contact-disclosure{min-width:0;max-width:100%;overflow-wrap:anywhere}
 body .catalogue-main .instructor-accordion-summary .instructor-name-cell{min-width:0;white-space:normal}
 body .catalogue-main .instructor-accordion-summary .instructor-name-cell strong{font-size:15px;white-space:normal;overflow-wrap:anywhere}
 body .instructor-accordion-body{padding:12px}
 body .instructor-course-list li{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px;min-width:0;padding:12px 0}
 body .instructor-course-title-cell,body .instructor-course-group{grid-column:1/-1;min-width:0}
 body .instructor-course-title{white-space:normal;text-align:left;overflow-wrap:anywhere;line-height:1.5;min-width:0;max-width:100%}
 body .instructor-course-group strong{white-space:normal}
 body .instructor-teaching-actions{max-width:100%;min-width:0;width:100%;display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px}
 body .instructor-teaching-actions button{width:100%;min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere;text-align:left}
 body .instructor-contact-disclosure :is(a,strong){overflow-wrap:anywhere;white-space:normal;max-width:100%}
}

@media(max-width:620px),(max-width:950px) and (max-height:500px){body .catalogue-main .students-table td:first-child strong{font-size:16px!important}body .catalogue-main .maquette-grid .module-title-stack .maquette-readonly{font-size:15px!important}body .catalogue-main :is(.maquette-grid,.students-table) tbody td:before{font-size:12px}body .catalogue-main .students-table .inline-edit{font-size:13px;min-height:44px}body .catalogue-main .instructor-accordion-summary .instructor-name-cell strong{font-size:15px!important}}

.auth-public-return{display:flex;justify-content:center;align-items:center;min-height:44px;margin-top:12px;color:#526781;text-decoration:none;font:14px Albert Sans,sans-serif}.auth-public-return:hover{text-decoration:underline}

.portal-public-link{display:inline-flex;align-items:center;gap:7px;min-height:40px;color:#526781;font:500 12px Albert Sans,sans-serif;text-decoration:none;white-space:nowrap;padding:0 9px;border-radius:5px}.portal-public-link:hover{background:#f1f5fb;color:#245ed0}.mobile-public-link{display:none}.portal-public-link:focus-visible,.mobile-public-link:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
@media(max-width:620px),(max-width:950px) and (max-height:500px){body .sidebar.mobile-open .mobile-public-link{display:flex;grid-column:1/-1;order:3;align-items:center;justify-content:center;gap:8px;min-height:40px;border-top:1px solid #edf0f4;color:#526781;font:500 13px Albert Sans,sans-serif;text-decoration:none}body .sidebar.mobile-open .mobile-public-link:hover{background:#f1f5fb}}

/* One phone toolbar: menu, filters and account; leave the page for its content. */
.mobile-header-filters{display:none}
@media(max-width:620px),(max-width:950px) and (max-height:500px){
 body .mobile-header-filters:not([hidden]){display:grid;place-items:center;width:38px;height:40px;min-width:38px;border:0;border-radius:6px;background:transparent;color:#334155;font-size:21px}
 body .mobile-header-filters[hidden],body .mobile-inline-filter{display:none!important}
 body .mobile-header-filters[aria-expanded=true]{color:#245ed0;background:#edf3ff}
 body .mobile-header-filters:focus-visible{outline:2px solid #2563eb;outline-offset:1px}
 body .app:has(.sidebar.mobile-open) .mobile-header-controls{visibility:visible}
 body .mobile-filter-panel:not([hidden]){position:fixed;top:64px;left:12px;right:12px;width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;max-height:calc(100dvh - 84px);overflow-y:auto;overscroll-behavior:contain;padding:12px!important;margin:0!important;box-sizing:border-box;z-index:35;border:1px solid #dce4ee!important;border-radius:8px!important;background:white!important;box-shadow:0 8px 28px #23344d20}
 body .mobile-filter-panel .scope-filter-bar{margin:0}
 body .mobile-filter-panel .dash-caption{display:none}
 body .mobile-filter-panel:focus{outline:none}
 body .sidebar.mobile-open .sidebar-user .profile-select,body .sidebar.mobile-open .sidebar-year-card select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:12px;background-position:right 5px center;padding-right:22px;box-sizing:border-box;text-overflow:ellipsis;max-width:100%}
 body .dash-header{margin-bottom:14px}
 body .dash-header h1{margin-bottom:0!important}
 body .dash-header>div>p,body .dash-header-actions [data-dash-updated],body .dash-header-actions [data-dashboard-refresh]{display:none}
 body .dash-header-actions{margin:0;min-height:0}
 body .mobile-planning{padding:0}
 body .mobile-planning>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
 body .mobile-planning>header h1{font-size:22px;margin:0}
 body .mobile-planning-view{display:flex;gap:2px;border:1px solid #e0e7ef;padding:2px;border-radius:6px;background:white}
 body .mobile-planning-view button{min-height:36px;border:0;border-radius:4px;background:white;color:#64748b;padding:4px 10px;font:13px Albert Sans,sans-serif}
 body .mobile-planning-view button[aria-pressed=true]{background:#edf3ff;color:#245ed0}
 body .mobile-planning-period{display:grid;grid-template-columns:36px minmax(0,1fr) 36px auto;gap:6px;margin-top:0;align-items:center}
 body .mobile-planning-period label{min-width:0}
 body .mobile-planning-period label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body .mobile-planning-period button{min-width:36px;min-height:42px}
 body .mobile-planning-period input{min-height:42px;box-sizing:border-box;padding:6px;max-width:100%}
 body .mobile-planning-period [data-today]{width:auto;margin:0;font-size:12px;padding:6px 8px}
 body .mobile-planning-range{font-size:12px;line-height:1.5;color:#64748b;margin:10px 0}
 body .mobile-planning-range:empty{display:none}
}

@media(max-width:620px),(max-width:950px) and (max-height:500px){body .mobile-header-filters[data-filtered=true]{position:relative;color:#245ed0}body .mobile-header-filters[data-filtered=true]:after{content:'';position:absolute;right:5px;top:5px;width:5px;height:5px;border-radius:50%;background:#2563eb}}

body .brand .coco-app-brand{display:block;width:250px;max-width:100%;min-width:0;flex:0 1 250px}body .brand .coco-app-brand .school-brand-logo{width:100%;max-width:100%;height:36px;min-width:0;object-fit:contain;object-position:left center;flex:none}body .auth-brand img{width:300px;max-width:100%;height:auto}@media(max-width:620px),(max-width:950px) and (max-height:500px){body .brand .coco-app-brand{width:84px;max-width:84px;flex:0 1 84px;min-width:50px}body .brand .coco-app-brand .school-brand-logo{width:100%;max-width:100%;height:25px;object-position:left center}body .auth-brand img{width:280px;max-width:100%;height:auto}}

/* Smaller artwork inside the same header / login brand slots. */
body .brand .coco-app-brand{display:flex;align-items:center;justify-content:center;height:36px}
body .brand .coco-app-brand .school-brand-logo{width:80%;max-width:80%;height:auto;max-height:36px;object-position:center}
body .auth-brand{display:flex;align-items:center;justify-content:center;width:300px;max-width:100%;aspect-ratio:406.99/51.91;margin-inline:auto}
body .auth-brand img{width:80%;max-width:80%;height:auto}
@media(max-width:620px),(max-width:950px) and (max-height:500px){body .brand .coco-app-brand{height:25px}body .brand .coco-app-brand .school-brand-logo{width:80%;max-width:80%;height:auto;max-height:25px;object-position:center}body .auth-brand{width:280px}body .auth-brand img{width:80%;max-width:80%;height:auto}}

body .auth-gate{grid-template-columns:minmax(0,1fr)}body .auth-card{min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}body .auth-card .auth-brand{min-width:0;max-width:100%}

/* Align desktop artwork with the header gutter; preserve its size and breathing room. */
@media(min-width:951px),(min-width:621px) and (min-height:501px){body .brand .coco-app-brand{justify-content:flex-start}body .brand .coco-app-brand .school-brand-logo{object-position:left center}}

@media(max-width:620px){
 body[data-portal-page=Budget] #content .scope-control:has([data-scope-filter=programme]){display:flex!important}
 body[data-portal-page=Budget] .scope-filter-bar .budget-envelope-filter{grid-column:1/-1;max-width:none}
}

/* Keep role and school-year selectors on the same baseline in the compact menu. */
@media(max-width:620px),(max-width:950px) and (max-height:500px){
 body .sidebar.mobile-open .sidebar-user .profile-select,
 body .sidebar.mobile-open .sidebar-year-card select{display:block;margin:0;height:44px;min-height:44px;line-height:22px;font-family:"Albert Sans",sans-serif;font-size:16px;font-weight:500;letter-spacing:0;padding-top:4px;padding-bottom:4px;vertical-align:middle}
 body .sidebar.mobile-open .sidebar-user-info,
 body .sidebar.mobile-open .sidebar-year-card{display:flex;align-items:center;min-height:44px}
}
