
:root{--gold:#c99a2e;--gold2:#f0c45c;--red:#9d1f1f;--red2:#d33b32;--ink:#0e1116;--panel:rgba(16,18,22,.94);--panel2:rgba(28,31,37,.96);--line:#444b55;--ok:#2f8b57;--warn:#c58b16;--bad:#b83939;--info:#2e6c9e;--muted:#b7bdc7}
*{box-sizing:border-box} html{min-height:100%;background:#090b0e} body{margin:0;min-height:100vh;color:#f5f7fa;font-family:Inter,system-ui,Segoe UI,Arial,sans-serif;background:linear-gradient(rgba(5,7,10,.62),rgba(5,7,10,.77)),url('real-gold-gears-dark.jpg') center/cover fixed no-repeat}
button,input,select,textarea{font:inherit} button{cursor:pointer}.hidden{display:none!important}.shell{max-width:1500px;margin:auto;padding:18px}.topbar{display:flex;align-items:center;gap:15px;padding:12px 16px;border:1px solid #5e5237;border-radius:14px;background:rgba(8,10,13,.94);box-shadow:0 10px 30px #0008;position:sticky;top:8px;z-index:20}.brand{display:flex;align-items:center;gap:12px}.brand img{width:62px;height:62px;object-fit:contain}.brand h1{margin:0;font-size:24px}.brand small{color:var(--gold2)}.spacer{flex:1}.userline{color:#d5d9df;font-size:14px}.nav{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.nav button,.btn{border:1px solid #6d5a2f;background:linear-gradient(#2a2d33,#181b20);color:#fff;border-radius:9px;padding:9px 12px;font-weight:700}.nav button:hover,.btn:hover{border-color:var(--gold2)}.btn.primary{background:linear-gradient(#b88a22,#7b5a12);color:#fff}.btn.red{background:linear-gradient(#a83333,#761d1d)}.btn.green{background:linear-gradient(#357d50,#225537)}.btn.small{padding:6px 8px;font-size:12px}.panel{background:var(--panel);border:1px solid #454a52;border-radius:14px;padding:16px;box-shadow:0 12px 34px #0007;margin-bottom:14px}.panel h2,.panel h3{margin-top:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:12px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.stat{background:var(--panel2);border:1px solid #424852;border-radius:12px;padding:13px}.stat b{font-size:26px;display:block;color:var(--gold2)}.stat span{color:#c8ced7;font-size:13px}.badge{display:inline-block;border-radius:999px;padding:4px 8px;font-weight:800;font-size:12px}.ok{background:#174f32;color:#bdf5d0;border:1px solid #2c8b55}.warn{background:#5a430f;color:#ffe3a1;border:1px solid #b07d16}.bad{background:#5d2020;color:#ffd1d1;border:1px solid #b63c3c}.info{background:#163e5c;color:#cbe9ff;border:1px solid #3879a5}.muted{color:var(--muted)}.tablewrap{overflow:auto;border:1px solid #444b55;border-radius:10px}.tbl{border-collapse:collapse;width:100%;min-width:700px}.tbl th,.tbl td{padding:9px;border-bottom:1px solid #3c424b;text-align:left;vertical-align:top}.tbl th{background:#242830;color:#f1c768;position:sticky;top:0}.tbl tr:hover td{background:#ffffff06}.field{display:flex;flex-direction:column;gap:5px}.field label{font-weight:800;color:#f0dba8}.field small{color:#aeb5c0}.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:11px}.field input,.field select,.field textarea{width:100%;border:1px solid #777f89;background:#f9fafb;color:#111;-webkit-text-fill-color:#111;border-radius:8px;padding:10px;outline:none}.field input::placeholder,.field textarea::placeholder{color:#6b7280}.field input:focus,.field select:focus,.field textarea:focus{border-color:#d5a63d;box-shadow:0 0 0 3px #d5a63d33}.field textarea{min-height:88px;resize:vertical}.msg{margin:8px 0;padding:9px 11px;border-radius:8px;display:none}.msg.show{display:block}.msg.error{background:#5b1f23}.msg.success{background:#1e5a36}.msg.note{background:#183d59}.section{display:none}.section.active{display:block}.loginpage{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(rgba(5,7,10,.38),rgba(5,7,10,.57)),url('real-gold-gears-dark.jpg') center/cover fixed}.loginbox{width:min(480px,94vw);background:rgba(14,16,20,.96);border:1px solid #7e6836;border-radius:18px;padding:24px;box-shadow:0 24px 70px #000b}.loginlogo{display:block;margin:0 auto 10px;max-width:170px;max-height:110px;object-fit:contain}.loginbox h1{text-align:center;margin:6px 0;color:#fff}.loginbox .sub{text-align:center;color:#f0c45c;margin-bottom:18px}.warningstrip{border-left:4px solid var(--red2);padding:10px;background:#331b1b;border-radius:7px;margin:10px 0;color:#ffe4e4}.station{padding:12px;border:1px solid #4b515c;border-radius:11px;background:#181b20}.station h3{margin:0 0 5px}.station.serviceable{border-color:#307c4e}.station.out_of_service{border-color:#a83b3b;background:#2a1515}.station.restricted{border-color:#b38120}.rulebox{background:#201a0c;border:1px solid #8b702f;border-radius:10px;padding:12px;color:#f7e8bb}.task{border:1px solid #444b55;background:#191c21;border-radius:10px;padding:11px;margin:8px 0}.task h4{margin:0 0 5px}.task .meta{color:#bfc5ce;font-size:12px}.split{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.progress{height:10px;background:#30353d;border-radius:99px;overflow:hidden}.progress span{display:block;height:100%;background:linear-gradient(90deg,#9a7620,#e5bd58)}@media(max-width:700px){.topbar{position:static;align-items:flex-start}.brand h1{font-size:19px}.brand img{width:50px;height:50px}.userline{display:none}.grid2{grid-template-columns:1fr}.shell{padding:10px}.nav{overflow:auto;flex-wrap:nowrap}.nav button{white-space:nowrap}.loginbox{padding:18px}}
.autotrak-wordmark{display:block;width:auto;height:auto;max-width:360px;max-height:88px;object-fit:contain}.loginbox .autotrak-wordmark{margin:0 auto 10px;max-width:390px;max-height:105px}.brand .autotrak-wordmark{max-width:330px;max-height:70px}.brand .brandtext{display:none}@media(max-width:700px){.loginbox .autotrak-wordmark{max-width:300px}.brand .autotrak-wordmark{max-width:230px;max-height:54px}}

#overviewLegacyStudentPanels { display:none !important; }


.calgrid{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:8px}.calhead{font-weight:800;text-align:center;padding:8px;color:#e6e6e6}.calday{min-height:95px;border:1px solid #454a55;border-radius:10px;padding:8px;background:rgba(18,18,18,.78);cursor:pointer}.calday:hover{outline:2px solid #b8860b}.calday.school{background:rgba(47,111,78,.78)}.calday.closed{background:rgba(122,18,18,.88)}.calday.blank{opacity:.25;cursor:default}.calnum{font-size:12px;font-weight:800}.calcurr{font-size:18px;font-weight:900;margin-top:8px}.caltitle{font-size:12px;margin-top:6px}.calclosed{font-size:12px;font-weight:900;margin-top:8px;text-transform:uppercase}
@media(max-width:900px){.calgrid{grid-template-columns:repeat(7,minmax(74px,1fr));font-size:11px}.calday{min-height:80px;padding:6px}}


.layoutbar{max-width:1500px;margin:8px auto 0;padding:0 18px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.layout-edit .nav button{cursor:grab;outline:1px dashed #b8860b}
body.layout-edit .section>.panel,body.layout-edit .section>.grid2{cursor:grab;outline:2px dashed rgba(184,134,11,.72);outline-offset:3px}
body.layout-edit .dragging{opacity:.42}


.cte-bar-row{display:grid;grid-template-columns:minmax(260px,1.2fr) 3fr 90px;gap:12px;align-items:center;margin:12px 0}
.cte-track{height:28px;border-radius:999px;background:#262a31;border:1px solid #4b515d;overflow:hidden;position:relative}
.cte-fill{height:100%;background:linear-gradient(90deg,#8a6515,#d4ac4d);min-width:0}
.cte-pct{font-weight:900;text-align:right;font-size:18px}
.cte-name small{display:block;color:#b7bdc7;margin-top:3px}
@media(max-width:760px){.cte-bar-row{grid-template-columns:1fr}.cte-pct{text-align:left}}


.shop-display-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.shop-display-card{border:1px solid #4a5059;border-radius:12px;padding:12px;background:rgba(22,24,29,.95)}
.shop-display-card h4{margin:0 0 8px;font-size:18px}
.shop-display-big{font-size:28px;font-weight:900}
.fullscreen-shop{background:#0c0f13;color:#fff;min-height:100vh;padding:18px}
.fullscreen-shop .headline{display:flex;align-items:center;gap:18px;justify-content:space-between;border-bottom:2px solid #7a1212;padding-bottom:12px;margin-bottom:14px}
.fullscreen-shop .headline img{max-height:72px;max-width:360px}
.fullscreen-shop .cols{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px}
.fullscreen-shop .box{background:#171b21;border:1px solid #444b55;border-radius:14px;padding:14px}
.fullscreen-shop .student{padding:6px 0;border-bottom:1px solid #30363f}
.fullscreen-shop .badge{font-size:13px}
@media(max-width:1100px){.fullscreen-shop .cols{grid-template-columns:1fr 1fr}}


.livebar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.livebar select{background:#f9fafb;color:#111;border:1px solid #777f89;border-radius:8px;padding:7px}
#liveStatus.syncing{background:#5b430e;color:#ffe19b}
#liveStatus.error{background:#5d2020;color:#ffd1d1}
@media(max-width:900px){.livebar{width:100%;margin-left:0}.livebar #lastUpdated{font-size:11px}}


.wccc-logo-circle{width:68px;height:68px;min-width:68px;border-radius:50%;background:#fff;
display:flex;align-items:center;justify-content:center;padding:7px;box-sizing:border-box;
box-shadow:0 2px 10px #0008;border:2px solid #d9d9d9}
.wccc-logo-circle img{width:100%!important;height:100%!important;object-fit:contain!important}
@media(max-width:700px){.wccc-logo-circle{width:54px;height:54px;min-width:54px;padding:6px}}


/* AUTO-Trak large branding override */
.loginbox .autotrak-wordmark{
  width:100% !important;
  max-width:620px !important;
  max-height:180px !important;
  height:auto !important;
  margin:0 auto 16px !important;
  object-fit:contain !important;
}
.topbar .brand .autotrak-wordmark,
.brand .autotrak-wordmark{
  width:auto !important;
  max-width:520px !important;
  max-height:112px !important;
  height:auto !important;
  object-fit:contain !important;
}
@media(max-width:900px){
  .loginbox .autotrak-wordmark{max-width:460px !important;max-height:150px !important}
  .topbar .brand .autotrak-wordmark,.brand .autotrak-wordmark{max-width:340px !important;max-height:82px !important}
}
@media(max-width:600px){
  .loginbox .autotrak-wordmark{max-width:340px !important;max-height:125px !important}
  .topbar .brand .autotrak-wordmark,.brand .autotrak-wordmark{max-width:250px !important;max-height:68px !important}
}


/* v21: one-screen shop board */
#shopdisplay{overflow:hidden}
#shopdisplay .panel{padding:10px;margin-bottom:8px}
#shopdisplay h2{font-size:20px;margin:0 0 2px}
#shopdisplay h3{font-size:15px;margin:0 0 6px}
#shopdisplay .muted{font-size:11px}
#shopdisplay .cards{grid-template-columns:repeat(6,minmax(105px,1fr));gap:6px!important}
#shopdisplay .stat{padding:7px}
#shopdisplay .stat b{font-size:19px}
#shopdisplay .stat span{font-size:10px}
#shopdisplay .grid2{gap:8px}
#shopdisplay .shop-display-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:5px}
#shopdisplay .shop-display-card{padding:6px;border-radius:8px}
#shopdisplay .shop-display-card h4{font-size:13px;margin:0 0 3px}
#shopdisplay .student{font-size:11px;padding:2px 0}
#shopdisplay .task{font-size:11px;padding:4px}
#shopdisplay .tbl{font-size:10px}
#shopdisplay .tbl th,#shopdisplay .tbl td{padding:3px 4px}
@media(max-width:1200px){#shopdisplay .cards{grid-template-columns:repeat(3,1fr)}}


/* v22: use the full browser width for AUTO-Trak data screens */
:root{--autotrak-page-gutter:12px}
#app{width:100%;max-width:none!important}
#app .topbar,
#app header,
#app .nav,
#app nav,
#app main,
#app .content,
#app .section,
#app .layoutbar{
  width:calc(100% - (var(--autotrak-page-gutter) * 2))!important;
  max-width:none!important;
  margin-left:var(--autotrak-page-gutter)!important;
  margin-right:var(--autotrak-page-gutter)!important;
  box-sizing:border-box!important;
}
#app main .panel,
#app .section .panel,
#app .tablewrap,
#app .tbl{
  max-width:none!important;
  box-sizing:border-box!important;
}
#app .tablewrap{width:100%!important;overflow-x:auto}
#app .tbl{width:100%!important}
#app .grid2{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
#app .cards{width:100%}
@media(max-width:900px){
  :root{--autotrak-page-gutter:7px}
  #app .grid2{grid-template-columns:1fr}
}


/* Uniform interface width: match the AUTO-Trak header bar */
:root{--autotrak-interface-max:1500px;--autotrak-interface-gutter:18px}
#app{
  width:100% !important;
  max-width:none !important;
}
#app .topbar,
#app .nav,
#app .layoutbar,
#app main,
#app .content,
#app .section,
#app .shell{
  width:calc(100% - (var(--autotrak-interface-gutter) * 2)) !important;
  max-width:var(--autotrak-interface-max) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}
#app .panel,
#app .grid,
#app .grid2,
#app .cards,
#app .tablewrap{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
#app .tbl{
  width:100% !important;
  max-width:100% !important;
}
#app .tablewrap{
  overflow-x:auto !important;
}
#shopdisplay .fullscreen-shop,
.fullscreen-shop{
  max-width:none !important;
}
@media(max-width:900px){
  :root{--autotrak-interface-gutter:8px}
}


/* FINAL STABLE adaptive Shop Display */
#shopdisplay .shop-display-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important}


.cte-course-block{border:1px solid #444b55;border-radius:12px;padding:12px;margin:12px 0;background:rgba(22,24,29,.8)}
.cte-course-block h3{margin:0 0 8px}
.cte-subrow{display:grid;grid-template-columns:minmax(240px,1.4fr) 3fr 75px;gap:10px;align-items:center;margin:8px 0 8px 18px}
.cte-subrow.level2{margin-left:38px;font-size:12px}
.cte-subrow .cte-track{height:18px}.cte-subrow.level2 .cte-track{height:13px}
.cte-sub-label small{display:block;color:#aeb5c0}
@media(max-width:760px){.cte-subrow{grid-template-columns:1fr;margin-left:0}.cte-subrow.level2{margin-left:12px}}
 .service-pipeline{display:grid;grid-template-columns:repeat(8,minmax(90px,1fr));gap:6px;margin-top:12px}.service-pipeline span{border:1px solid #665b3d;border-radius:8px;padding:10px 6px;text-align:center;font-weight:700;background:rgba(255,255,255,.035)}@media(max-width:900px){.service-pipeline{grid-template-columns:repeat(2,1fr)}}


.portal-switcher{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.portal-switcher a{text-decoration:none}
@media(max-width:800px){.portal-switcher{width:100%;order:20}}


.nav-group{width:100%}.nav-group summary{cursor:pointer;padding:10px 12px;font-weight:800;border-radius:10px;list-style:none}
.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:after{content:'▾';float:right;opacity:.75}
.nav-group[open] summary:after{content:'▴'}.nav-sub{padding-left:10px}.nav-sub button,.nav-sub a{width:100%}


.hub-section{padding:18px}
.hub-header{margin-bottom:14px}
.hub-header h2{margin-bottom:4px}
.hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:14px}
.hub-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;
padding:18px;min-height:112px;border-radius:16px;border:1px solid rgba(212,175,55,.45);
background:rgba(15,15,15,.72);color:inherit;cursor:pointer}
.hub-card:hover{transform:translateY(-1px);border-color:rgba(212,175,55,.9)}
.hub-card-title{font-size:1.05rem;font-weight:800}
.hub-card-desc{font-size:.9rem;opacity:.82;line-height:1.35}
.hub-back{margin:0 0 12px 0}


.curriculum-click-row{cursor:pointer}
.curriculum-click-row:hover,.curriculum-click-row:focus{outline:none;background:rgba(215,177,63,.10)}
.curriculum-task-link{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}


.task-link-btn{background:none;border:0;padding:0;color:#f0c45c;text-decoration:underline;font:inherit;font-weight:800;cursor:pointer}.task-link-btn:hover,.task-link-btn:focus{color:#fff;outline:2px solid #f0c45c;outline-offset:3px;border-radius:3px}.curriculum-click-row:hover{background:rgba(240,196,92,.08)}


.bulk-cred-table td{vertical-align:middle}.bulk-cred-name-line{display:block;min-width:180px;border-bottom:1px solid rgba(255,255,255,.45);height:22px}


.compact-section{border:1px solid #4b4330;border-radius:12px;background:rgba(255,255,255,.025);margin-top:12px;overflow:hidden}
.compact-section>summary{cursor:pointer;list-style:none;padding:14px 16px;font-weight:800;display:flex;align-items:center;justify-content:space-between;gap:12px;background:rgba(255,255,255,.035)}
.compact-section>summary::-webkit-details-marker{display:none}
.compact-section>summary::after{content:'Open';font-size:12px;font-weight:700;color:#e9cb77;border:1px solid #665d43;border-radius:999px;padding:4px 9px}
.compact-section[open]>summary::after{content:'Close'}
.compact-section .compact-body{padding:14px}
.compact-stack{display:grid;gap:10px}
.compact-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.compact-note{font-size:12px;opacity:.75}
.compact-section .panel{margin:0}
.compact-section table.tbl{min-width:680px}
@media(max-width:900px){.compact-section table.tbl{min-width:600px}}


/* AUTO-Trak mobile-first usability layer */
@media(max-width:760px){
  html,body{overflow-x:hidden}
  body{background-attachment:scroll}
  .shell{padding:8px}
  .topbar{position:sticky;top:0;border-radius:0 0 12px 12px;padding:8px 10px;gap:8px;align-items:center}
  .brand{min-width:0;flex:1}
  .brand .autotrak-wordmark{max-width:185px;max-height:48px}
  .brand img{width:44px;height:44px}
  .spacer{display:none}
  .topbar .btn,.topbar button{min-height:44px}
  .nav{position:sticky;top:61px;z-index:18;margin:7px -8px 10px;padding:7px 8px;background:rgba(8,10,13,.97);border-bottom:1px solid #4d432c;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  .nav button,.btn{min-height:44px;padding:10px 12px;font-size:14px}
  .btn.small{min-height:40px;padding:8px 10px;font-size:13px}
  .panel{padding:11px;border-radius:11px;margin-bottom:10px}
  .panel h2{font-size:19px}
  .panel h3{font-size:17px}
  .grid,.grid2,.formgrid,.cards{grid-template-columns:minmax(0,1fr)!important;gap:9px}
  .stat{padding:10px}
  .stat b{font-size:22px}
  .split{align-items:stretch}
  .split>.btn,.split>button{flex:1 1 145px}
  .field input,.field select,.field textarea{font-size:16px;min-height:46px;padding:11px}
  .field textarea{min-height:96px}
  input[type="file"]{min-height:48px}
  .tablewrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .tbl{min-width:620px;font-size:13px}
  .tbl th,.tbl td{padding:8px 7px}
  .compact-section{margin-top:8px;border-radius:10px}
  .compact-section>summary{padding:12px;font-size:15px;position:sticky;top:108px;z-index:4;background:#191b20}
  .compact-section .compact-body{padding:9px}
  .compact-section>summary::after{font-size:11px;padding:4px 7px}
  .calgrid{grid-template-columns:repeat(7,minmax(46px,1fr));gap:3px}
  .calhead{padding:4px 1px;font-size:10px}
  .calday{min-height:62px;padding:4px;border-radius:7px}
  .calnum,.caltitle,.calclosed{font-size:9px}
  .calcurr{font-size:13px;margin-top:4px}
  .task{padding:10px;margin:7px 0}
  .task .split{display:block}
  .task .split>div:last-child{margin-top:6px}
  .loginpage{padding:10px;align-items:start;padding-top:5vh}
  .loginbox{width:100%;padding:16px;border-radius:14px}
  .loginbox .autotrak-wordmark{max-width:250px}
  .learning-youtube{max-width:100%}
  video,img{max-width:100%;height:auto}
  iframe{max-width:100%}
  [style*="min-width:"]{max-width:100%}
  .layoutbar{padding:0 8px;overflow-x:auto;flex-wrap:nowrap}
  .layoutbar .btn{white-space:nowrap}
}
@media(max-width:430px){
  .shell{padding:6px}
  .topbar{padding:7px 8px}
  .brand .autotrak-wordmark{max-width:155px}
  .nav{top:58px;margin-left:-6px;margin-right:-6px;padding-left:6px;padding-right:6px}
  .nav button{font-size:13px;padding:9px 10px}
  .panel{padding:9px}
  .compact-section>summary{top:103px}
  .tbl{min-width:560px}
}
@media(hover:none) and (pointer:coarse){
  button,.btn,a.btn,summary{touch-action:manipulation}
  button,.btn,a.btn{min-height:44px}
}


.school-cal-review-split{display:grid;grid-template-columns:minmax(360px,.95fr) minmax(520px,1.45fr);gap:12px;align-items:start}
.school-cal-pdf-pane,.school-cal-edit-pane{border:1px solid #4a4f58;border-radius:12px;background:rgba(15,17,21,.92);padding:10px}
.school-cal-pdf-pane{position:sticky;top:125px}
.school-cal-pdf-frame{width:100%;height:72vh;min-height:560px;border:1px solid #5b606a;border-radius:9px;background:#fff}
.school-cal-edit-pane .tablewrap{max-height:72vh;overflow:auto}
.school-cal-edit-pane .tbl th{top:0;z-index:2}
@media(max-width:1050px){
 .school-cal-review-split{grid-template-columns:1fr}
 .school-cal-pdf-pane{position:static}
 .school-cal-pdf-frame{height:58vh;min-height:430px}
 .school-cal-edit-pane .tablewrap{max-height:none}
}
@media(max-width:760px){
 .school-cal-pdf-frame{height:52vh;min-height:360px}
}


/* AUTO-Trak universal collapsible tab content */
.autotrak-collapse-controls{
  display:flex;gap:8px;justify-content:flex-end;align-items:center;
  margin:0 0 10px;position:sticky;top:112px;z-index:8;
  background:rgba(9,11,14,.92);padding:6px;border-radius:10px;
  backdrop-filter:blur(5px)
}
.autotrak-collapse-wrap{margin:0 0 10px}
.autotrak-collapse-wrap>summary{
  list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;
  padding:10px 12px;border:1px solid #4a505a;border-radius:11px;
  background:linear-gradient(#242830,#181b20);color:#f2c968;
  font-weight:850;user-select:none
}
.autotrak-collapse-wrap>summary::-webkit-details-marker{display:none}
.autotrak-collapse-wrap>summary::before{
  content:"▸";display:inline-block;transition:transform .16s ease;
  color:#f0c45c;font-size:15px
}
.autotrak-collapse-wrap[open]>summary::before{transform:rotate(90deg)}
.autotrak-collapse-wrap>summary .collapse-sub{
  margin-left:auto;color:#aeb5c0;font-size:11px;font-weight:700
}
.autotrak-collapse-wrap>.panel{
  margin-top:7px;margin-bottom:0
}
.autotrak-collapse-wrap>.grid,
.autotrak-collapse-wrap>.grid2{
  margin-top:7px
}
@media(max-width:760px){
 .autotrak-collapse-controls{
   top:103px;justify-content:stretch
 }
 .autotrak-collapse-controls .btn{flex:1}
 .autotrak-collapse-wrap>summary{
   min-height:46px;padding:11px 10px;font-size:14px
 }
}



*,*::before,*::after{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
.shell{width:min(1500px,100%);max-width:1500px;margin-inline:auto}
.topbar,.nav,.section,.student-view,.panel,.grid,.grid2,.cards,.formgrid,.tablewrap,.autotrak-collapse-wrap{
  min-width:0;max-width:100%
}
.grid,.grid2,.cards,.formgrid{width:100%}
.grid>*,.grid2>*,.cards>*,.formgrid>*{min-width:0;max-width:100%}
.panel{width:100%;overflow-wrap:anywhere}
.tablewrap{width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.tbl{width:100%;max-width:none}
.field input,.field select,.field textarea{max-width:100%}
img,video,iframe,canvas,svg{max-width:100%}
pre,code{max-width:100%;overflow:auto}
.dev-edit-toggle{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px;padding:8px 10px;border:1px dashed #8f772f;border-radius:10px;background:#211b0d}
body.admin-dev-edit .field input:not([data-output-only]),
body.admin-dev-edit .field select:not([data-output-only]),
body.admin-dev-edit .field textarea:not([data-output-only]){
  outline:2px solid rgba(240,196,92,.16);outline-offset:1px
}
body.admin-dev-edit .panel{border-color:#5c553f}
@media(max-width:900px){
 .grid2{grid-template-columns:minmax(0,1fr)}
 .grid{grid-template-columns:minmax(0,1fr)}
 .formgrid{grid-template-columns:minmax(0,1fr)}
 .tbl{min-width:620px}
}
@media(max-width:700px){
 .shell{width:100%;max-width:100%;padding-inline:8px}
 .topbar{width:100%;max-width:100%}
 .tbl{min-width:560px}
}



:root{--autotrak-page-width:1500px}
html,body{width:100%;max-width:100%;overflow-x:hidden}
body{margin:0}
.shell{
  width:min(var(--autotrak-page-width),calc(100vw - 24px)) !important;
  max-width:var(--autotrak-page-width) !important;
  margin:0 auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
.shell > *,
.topbar,
.nav,
.dev-edit-toggle,
.section,
.student-view{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
.section > *,
.student-view > *,
.autotrak-collapse-wrap,
.autotrak-collapse-wrap > *,
.panel,
.grid,
.grid2,
.cards,
.formgrid,
.rulebox,
.warningstrip,
.tablewrap,
.calendar-import-shortcut{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}
.grid,.grid2,.cards,.formgrid{
  box-sizing:border-box !important;
}
.grid > *, .grid2 > *, .cards > *, .formgrid > *{
  min-width:0 !important;
  max-width:100% !important;
}
.panel{
  box-sizing:border-box !important;
  overflow:hidden !important;
}
.tablewrap{
  box-sizing:border-box !important;
  overflow-x:auto !important;
}
.tbl{
  width:100% !important;
  max-width:none !important;
}
.school-cal-review-split{
  width:100% !important;
  max-width:100% !important;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.45fr) !important;
}
.school-cal-pdf-pane,
.school-cal-edit-pane{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}
img,video,iframe,canvas,svg{
  max-width:100% !important;
}
input,select,textarea,button{
  max-width:100%;
}
@media(max-width:700px){
  .shell{
    width:calc(100vw - 12px) !important;
    max-width:calc(100vw - 12px) !important;
  }
}


.autotrak-commandbar{width:100%;max-width:100%;display:flex;gap:10px;align-items:center;justify-content:space-between;margin:0 0 10px;padding:10px;border:1px solid #4e4a3c;border-radius:12px;background:#14171b}
.autotrak-searchbox{display:flex;gap:8px;min-width:0;flex:1}.autotrak-searchbox input{width:100%;min-width:0;border:1px solid #777f89;background:#f9fafb;color:#111;border-radius:8px;padding:10px}
.autotrak-quickactions{display:flex;gap:6px;flex-wrap:wrap}
.record-actions{display:flex;gap:6px;flex-wrap:wrap}
.record-input{width:100%;border:1px solid #777f89;background:#f9fafb;color:#111;border-radius:8px;padding:10px}
.health-item{border:1px solid #444b55;border-radius:10px;padding:10px;background:#191c21}.health-item b{display:block;color:#f2c968}.health-item.good{border-color:#2c8b55}.health-item.warn{border-color:#b07d16}.health-item.bad{border-color:#b63c3c}
@media(max-width:900px){.autotrak-commandbar{align-items:stretch;flex-direction:column}.autotrak-searchbox,.autotrak-quickactions{width:100%}.autotrak-quickactions .btn{flex:1}}


:root{
  --at-shell:1420px;
  --at-line:#5b5132;
}
body{overflow-x:hidden}
#app{
  width:min(var(--at-shell),calc(100vw - 28px));
  max-width:var(--at-shell);
  margin:0 auto;
}
.topbar{
  display:grid !important;
  grid-template-columns:auto auto 1fr auto auto !important;
  align-items:center !important;
  gap:12px !important;
  min-height:82px !important;
  padding:10px 14px !important;
  margin:8px 0 !important;
  border:1px solid var(--at-line) !important;
  border-radius:14px !important;
  background:rgba(7,9,12,.94) !important;
}
.topbar .brand{display:flex !important;align-items:center !important;gap:10px !important;min-width:0 !important}
.topbar .brand .autotrak-wordmark{
  width:auto !important;
  max-width:310px !important;
  max-height:68px !important;
  height:auto !important;
}
.topbar .wccc-logo-circle{
  width:56px !important;height:56px !important;min-width:56px !important;padding:6px !important;
}
.portal-switcher{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  flex-wrap:wrap !important;
}
.portal-switcher .btn,.portal-switcher button{
  min-height:32px !important;
  padding:5px 9px !important;
  font-size:12px !important;
}
.topbar .field{margin:0 !important;min-width:150px !important}
.topbar .field label{font-size:10px !important;margin:0 0 3px !important}
#adminProgramYear{
  width:150px !important;
  min-width:150px !important;
  max-width:150px !important;
  min-height:34px !important;
  height:34px !important;
  font-size:12px !important;
  padding:4px 8px !important;
}
.topbar .livebar{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  width:auto !important;
  margin:0 !important;
  flex-wrap:nowrap !important;
}
#liveStatus{font-size:10px !important;padding:5px 7px !important}
#lastUpdated{font-size:10px !important;white-space:nowrap !important}
#refreshInterval{
  width:72px !important;
  min-width:72px !important;
  max-width:72px !important;
  min-height:32px !important;
  height:32px !important;
  font-size:11px !important;
  padding:3px 6px !important;
}
.topbar .livebar .btn{
  min-height:32px !important;height:32px !important;padding:4px 9px !important;font-size:11px !important;
}
.topbar > .btn:last-child{
  width:auto !important;
  min-width:84px !important;
  min-height:34px !important;
  height:34px !important;
  padding:5px 12px !important;
  font-size:12px !important;
}
#nav.nav{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  flex-wrap:wrap !important;
  padding:6px 0 8px !important;
  margin:0 !important;
  overflow:visible !important;
}
#nav.nav button{
  min-height:38px !important;
  padding:7px 12px !important;
  font-size:13px !important;
  white-space:nowrap !important;
}
.autotrak-commandbar{
  width:100% !important;
  max-width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(260px,1fr) auto !important;
  gap:8px !important;
  align-items:center !important;
  margin:0 0 10px !important;
  padding:8px !important;
  border-radius:11px !important;
}
.autotrak-searchbox{
  max-width:560px !important;
  width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:6px !important;
}
#globalAdminSearch{
  width:100% !important;
  min-height:36px !important;
  height:36px !important;
  font-size:12px !important;
  padding:6px 10px !important;
}
.autotrak-searchbox .btn,.autotrak-quickactions .btn{
  min-height:34px !important;
  height:34px !important;
  font-size:11px !important;
  padding:5px 9px !important;
}
.autotrak-quickactions{
  display:flex !important;
  justify-content:flex-end !important;
  gap:5px !important;
  flex-wrap:wrap !important;
}
.layoutbar{display:none !important}
.autotrak-collapse-controls{
  display:flex !important;
  justify-content:flex-end !important;
  gap:6px !important;
  margin:4px 0 8px !important;
}
.autotrak-collapse-controls .btn{
  min-height:30px !important;height:30px !important;font-size:10px !important;padding:4px 8px !important;
}
.section{width:100% !important;max-width:100% !important}
.section > .grid2,.section .grid2{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
  align-items:start !important;
}
.panel{min-width:0 !important;max-width:100% !important}
.panel h2{font-size:20px !important;line-height:1.15 !important}
.panel h3{font-size:16px !important}
.tablewrap{max-width:100% !important;overflow-x:auto !important}
#students .grid2:last-of-type{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
#students .grid2:last-of-type > .panel{width:100% !important}
#studentsWrap,#cteProgressDetails,#ctePathwayBreakdown,#cteProgressBars{max-width:100% !important}
@media(max-width:1180px){
  .topbar{grid-template-columns:auto 1fr auto !important}
  .portal-switcher{grid-column:2 / 4 !important}
  .autotrak-commandbar{grid-template-columns:1fr !important}
  .autotrak-quickactions{justify-content:flex-start !important}
}
@media(max-width:800px){
  #app{width:calc(100vw - 12px) !important}
  .topbar{display:flex !important;flex-wrap:wrap !important;align-items:center !important}
  .topbar .brand .autotrak-wordmark{max-width:230px !important;max-height:54px !important}
  .portal-switcher{width:100% !important}
  #nav.nav{flex-wrap:nowrap !important;overflow-x:auto !important}
  .autotrak-commandbar{grid-template-columns:1fr !important}
  .autotrak-searchbox{max-width:100% !important}
  .section > .grid2,.section .grid2{grid-template-columns:1fr !important}
}


details[open] > summary,
.autotrak-collapse-wrap.open > .autotrak-collapse-summary{
  border-bottom-left-radius:0 !important;
  border-bottom-right-radius:0 !important;
}


.topbar{min-height:108px !important}
.topbar .brand .autotrak-wordmark{
  max-width:430px !important;
  max-height:92px !important;
  width:auto !important;
  height:auto !important;
}
.topbar .wccc-logo-circle{
  width:78px !important;
  height:78px !important;
  min-width:78px !important;
  padding:7px !important;
}
@media(max-width:800px){
  .topbar .brand .autotrak-wordmark{
    max-width:300px !important;
    max-height:68px !important;
  }
  .topbar .wccc-logo-circle{
    width:60px !important;
    height:60px !important;
    min-width:60px !important;
  }
}


.autotrak-collapse-wrap.open > .autotrak-collapse-summary,
details[open] > summary{
  margin-bottom:0 !important;
}
.autotrak-collapse-wrap.open > .autotrak-collapse-body{
  padding-top:8px !important;
}
/* With Search removed, pull the dashboard closer to the main tabs. */
#nav.nav{margin-bottom:8px !important}


/* Normal Sign Out button instead of a full-width bar. */
.topbar > .btn:last-child,
#app > .btn:last-child,
button[onclick*="signOut"],
button[onclick*="signout"],
button[onclick*="logout"]{
  width:auto !important;
  min-width:90px !important;
  max-width:120px !important;
  height:34px !important;
  min-height:34px !important;
  padding:5px 14px !important;
  margin-left:auto !important;
  font-size:12px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* Center the main quick/navigation tabs across the screen. */
#nav.nav{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:7px !important;
  flex-wrap:wrap !important;
}
#nav.nav button{
  flex:0 0 auto !important;
}

/* Center the small portal shortcuts in the header as a group. */
.portal-switcher{
  justify-content:center !important;
}

@media(max-width:800px){
  #nav.nav{
    justify-content:flex-start !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
  }
  .portal-switcher{
    justify-content:flex-start !important;
  }
}


/* Readability pass: preserve layout, use one clear UI font and modestly larger text. */
#app, #app button, #app input, #app select, #app textarea, #app table{
  font-family:Arial,Helvetica,sans-serif !important;
}
#app{font-size:15px !important;line-height:1.42 !important}
#app p,#app li,#app td,#app th,#app label,#app .muted,#app .sub,#app .help{
  font-size:14px !important;
  line-height:1.4 !important;
}
#app h1{font-size:28px !important;line-height:1.15 !important}
#app h2{font-size:22px !important;line-height:1.2 !important}
#app h3{font-size:17px !important;line-height:1.25 !important}
#nav.nav button{
  font-size:14px !important;
  font-weight:700 !important;
}
.portal-switcher button,.portal-switcher .btn{
  font-size:13px !important;
  font-weight:700 !important;
}
.topbar .field label,#lastUpdated{
  font-size:11px !important;
}
#adminProgramYear,#refreshInterval,.topbar .livebar .btn{
  font-size:12px !important;
}
.topbar > .btn:last-child{
  font-size:13px !important;
  font-weight:700 !important;
}
.autotrak-collapse-summary,
details > summary{
  font-size:15px !important;
  font-weight:700 !important;
  line-height:1.3 !important;
}
.autotrak-collapse-summary small,
details > summary small{
  font-size:11px !important;
}
#app input,#app select,#app textarea{
  font-size:14px !important;
}
#app .btn,#app button{
  font-weight:700;
}
#app table{font-size:13px !important}
@media(max-width:800px){
  #app{font-size:14px !important}
  #app p,#app li,#app td,#app th,#app label,#app .muted,#app .sub,#app .help{font-size:13px !important}
}


.learning-library-stack,.learning-library-panel,.learning-submissions-panel{width:100%!important;max-width:100%!important;min-width:0!important}
#learningSheetList,#learningSubmissionList{width:100%!important;max-width:100%!important;overflow-x:auto!important}
#learningSheetList .tbl{width:100%!important;min-width:760px!important;table-layout:auto!important}
#learningSheetList .tbl th:first-child,#learningSheetList .tbl td:first-child{width:52%!important;min-width:300px!important}
#learningSheetList .tbl th:last-child,#learningSheetList .tbl td:last-child{width:90px!important;min-width:90px!important;text-align:center!important;white-space:nowrap!important}
#learningSheetList .learning-edit-btn{width:72px!important;min-width:72px!important;max-width:72px!important;height:34px!important;min-height:34px!important;padding:5px 10px!important;margin:0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:13px!important;line-height:1!important}
#learningEditor{width:100%!important;max-width:100%!important}
@media(max-width:800px){#learningSheetList .tbl{min-width:680px!important}}


.inventory-scan-box{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 14px;padding:12px;border:1px solid #4a4f57;border-radius:10px;background:rgba(0,0,0,.18)}
.inventory-scan-btn{min-height:48px;font-size:15px;font-weight:800;letter-spacing:.2px}
.inventory-camera-panel{margin:0 0 14px;padding:12px;border:1px solid #555;border-radius:10px;background:#111}
#inventoryCameraVideo{display:block;width:100%;max-height:330px;object-fit:cover;border-radius:8px;background:#000;margin-bottom:10px}
.inventory-scan-review{margin:0 0 14px;padding:12px;border:1px solid #b58a2c;border-radius:10px;background:rgba(181,138,44,.10)}
.inventory-scan-review h3{margin:0 0 6px}.inventory-scan-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
@media(max-width:800px){.inventory-scan-btn{width:100%;font-size:16px}.inventory-scan-box .muted{width:100%}}



#nav.nav{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  align-content:center !important;
  flex-wrap:wrap !important;
  gap:7px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
#nav.nav button{flex:0 0 auto !important}
.portal-switcher{
  display:flex;
  justify-content:center !important;
  align-items:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
@media(max-width:800px){
  #nav.nav{
    justify-content:center !important;
    flex-wrap:wrap !important;
    overflow-x:visible !important;
  }
  .portal-switcher{
    justify-content:center !important;
  }
}


#curriculumTable a.task-title-link{color:#fff;text-decoration:none}#curriculumTable a.task-title-link:hover{color:var(--gold2);text-decoration:underline}
#curriculumTable a.task-link-btn{display:inline-flex;align-items:center;justify-content:center;color:#f0c45c;text-decoration:none;font-weight:800;border:1px solid #6d5a2f;border-radius:8px;padding:6px 9px;background:#1b1e23}
#curriculumTable a.task-link-btn:hover{border-color:#f0c45c;background:#252a31}


/* AUTO-Trak clean-release calendar workspace */
.calendar-workspace-console{position:sticky;top:0;z-index:35;border-color:#6d5a2f;background:linear-gradient(180deg,#171c22,#11161c);box-shadow:0 8px 24px rgba(0,0,0,.25)}
.calendar-console-head{align-items:flex-end}
.calendar-mode-field{min-width:min(360px,100%);margin:0}
.calendar-mode-pane{display:none}
.calendar-mode-pane.active{display:block}
.calendar-mode-pane>details{display:block}
.calendar-mode-pane>details>summary{display:none}
.calendar-mode-pane>details>.compact-body{display:block!important}
.calendar-persistent-panel{border:2px solid rgba(208,163,58,.55);margin-top:12px;background:#12171d}
.calendar-anchor-label{font-size:11px;font-weight:900;letter-spacing:.16em;color:#f0c45c;margin-bottom:9px}
#calendarGrid{min-height:470px}
#calendar .compact-section{scroll-margin-top:0}
html{scroll-behavior:auto!important}
@media(max-width:720px){
 .calendar-workspace-console{position:static}
 .calendar-console-head{display:block}
 .calendar-mode-field{margin-top:10px;min-width:0}
 #calendarGrid{min-height:420px}
}

.embedded-workspace-panel{padding:10px}.embedded-workspace-frame{display:block;width:100%;min-height:78vh;border:1px solid #3d4650;border-radius:12px;background:#090c10}.section.active{min-height:78vh}

/* Production navigation contract: centered, stable, no anchor/viewport-driven layout changes. */
#nav.nav{width:100%;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;margin:10px auto;padding:7px;border:1px solid #3d424a;border-radius:10px;background:#12151a;box-shadow:inset 0 1px 0 #ffffff08;overflow:visible}
#nav.nav button{flex:0 0 auto;min-height:38px;border-radius:7px;background:#20242a;border-color:#4c525b;box-shadow:none}
#nav.nav button:hover{background:#292e35;border-color:#b88a22}
#nav.nav button.active,#nav.nav button[aria-current="page"]{background:linear-gradient(#b88a22,#795811);border-color:#d3aa49;color:#fff}
@media(max-width:800px){#nav.nav{justify-content:center;flex-wrap:wrap;overflow:visible}}

/* AUTO-Trak 1.3 — Automotive Command Cockpit */
:root{--cockpit-glow:rgba(240,196,92,.16);--cockpit-line:rgba(240,196,92,.28);--cockpit-surface:rgba(16,19,23,.94)}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background:
radial-gradient(900px 420px at 50% -120px,rgba(240,196,92,.11),transparent 68%),
linear-gradient(115deg,transparent 0 48%,rgba(255,255,255,.018) 49%,transparent 50% 100%);z-index:-1}
.commandbar-wrap{max-width:1120px;margin:12px auto 8px}
.commandbar{min-height:54px;border:1px solid var(--cockpit-line)!important;border-radius:16px!important;background:linear-gradient(180deg,rgba(28,31,36,.97),rgba(12,14,17,.97))!important;box-shadow:0 16px 40px #0007,inset 0 1px 0 #fff1}
.commandbar input{font-size:16px!important;letter-spacing:.01em}
#nav.nav{max-width:1180px;border-radius:14px!important;padding:8px!important;background:rgba(12,14,17,.91)!important;backdrop-filter:blur(12px)}
#nav.nav button{border-radius:10px!important;padding-inline:16px!important}
.hub-header{padding:8px 2px 14px}.hub-header h2{font-size:30px;letter-spacing:-.025em;margin-bottom:3px}
.hub-header p{font-size:14px;max-width:760px}
.hub-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:12px!important}
.hub-card{position:relative;text-align:left!important;min-height:132px!important;padding:18px!important;border-radius:16px!important;
background:linear-gradient(145deg,rgba(34,38,44,.97),rgba(15,17,20,.98))!important;border:1px solid rgba(255,255,255,.10)!important;
box-shadow:0 12px 26px #0005,inset 0 1px 0 #fff1!important;overflow:hidden;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease!important}
.hub-card:after{content:"›";position:absolute;right:16px;bottom:10px;font-size:30px;line-height:1;color:rgba(240,196,92,.48);transition:transform .16s ease,color .16s ease}
.hub-card:hover{transform:translateY(-2px);border-color:rgba(240,196,92,.58)!important;box-shadow:0 18px 36px #0008,0 0 0 1px rgba(240,196,92,.08)!important}
.hub-card:hover:after{transform:translateX(3px);color:#f0c45c}
.hub-card-title{display:block;font-size:18px!important;font-weight:850;letter-spacing:-.015em;margin-bottom:7px}
.hub-card-desc{display:block;line-height:1.45;color:#aeb5be!important;font-size:13px}
.hub-card-kicker{display:block;font-size:10px;font-weight:900;letter-spacing:.16em;color:#f0c45c;margin-bottom:8px}
.hub-card-feature{border-color:rgba(240,196,92,.34)!important;background:
radial-gradient(420px 130px at 0 0,rgba(240,196,92,.12),transparent 70%),
linear-gradient(145deg,rgba(34,38,44,.97),rgba(15,17,20,.98))!important}
.section>.hub-back{margin-bottom:10px}
.embedded-workspace-panel{border-color:rgba(240,196,92,.26)!important}
@media(max-width:720px){.hub-grid{grid-template-columns:1fr}.hub-card{min-height:112px!important}.hub-header h2{font-size:25px}}

/* 1.4 Daily Task Calendar */
.task-calendar-shell{overflow:hidden}.task-calendar-head{align-items:flex-start}.task-calendar-toolbar{display:flex;gap:14px;align-items:center;margin:12px 0}.task-calendar-toolbar input{max-width:190px}.task-calendar-meta{font-size:14px}
.task-month-grid{border:1px solid #383e47;border-radius:14px;padding:12px;background:rgba(8,10,13,.58);margin-bottom:14px}.task-month-title{text-align:center;font-weight:900;font-size:18px;margin-bottom:8px}.task-month-weekdays,.task-month-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.task-month-weekdays span{text-align:center;font-size:11px;color:#8f98a5;font-weight:800;padding:4px}.task-cal-cell{min-height:64px;border:1px solid #353a42;border-radius:10px;background:#171a1f;color:#f1f3f5;padding:7px;text-align:left;display:flex;flex-direction:column;justify-content:space-between}.task-cal-cell small{font-size:10px;color:#9ea6b1}.task-cal-cell.instructional{border-color:#55513e}.task-cal-cell.closed{opacity:.63}.task-cal-cell.today{box-shadow:inset 0 0 0 1px #fff5}.task-cal-cell.selected{border-color:#f0c45c;background:linear-gradient(145deg,#2b281f,#191b20);box-shadow:0 0 0 1px rgba(240,196,92,.18)}.task-cal-cell.empty{visibility:hidden}
.task-day-columns{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);gap:16px}.day-task-list,.posted-task-list{display:grid;gap:8px}.day-task-card{display:grid;grid-template-columns:42px 1fr;gap:12px;border:1px solid #3c424a;border-radius:12px;padding:12px;background:linear-gradient(145deg,#20242a,#15181c)}.day-task-num{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#2d281b;color:#f0c45c;font-weight:900;border:1px solid #66552d}.day-task-card h3{margin:2px 0 6px;font-size:16px}.posted-task-row{display:flex;gap:10px;align-items:flex-start;border:1px solid #343a42;border-radius:10px;padding:10px;background:#171a1f}.task-calendar-empty{padding:18px;border:1px dashed #454b54;border-radius:10px;color:#aab1ba}
@media(max-width:850px){.task-day-columns{grid-template-columns:1fr}.task-cal-cell{min-height:54px;padding:5px}.task-cal-cell small{font-size:9px}}

/* AUTO-Trak Admin 1.6 — Calendar Day Folders */
.admin-day-folder-shell{border-color:rgba(240,196,92,.48)!important;background:radial-gradient(900px 250px at 0 0,rgba(240,196,92,.09),transparent 70%),rgba(15,18,22,.97)!important}.admin-day-folder-top{align-items:flex-end}.admin-day-folder-top input[type=date]{max-width:180px}.admin-folder-quicklinks{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
.admin-folder-year{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:8px;max-height:330px;overflow:auto;padding:8px;border:1px solid #343a42;border-radius:12px;background:#0d1014}.admin-folder-month{padding:8px;border:1px solid #30353c;border-radius:10px;background:#14181d}.admin-folder-month h4{text-align:center;margin:0 0 5px;font-size:13px}.admin-folder-weekdays,.admin-folder-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.admin-folder-weekdays span{text-align:center;color:#7f8893;font-size:9px;font-weight:800}.admin-folder-day{min-height:34px;padding:3px;border:1px solid #353b43;border-radius:5px;background:#1b1f24;color:#f2f3f4;text-align:left;display:flex;flex-direction:column;justify-content:space-between}.admin-folder-day small{font-size:7px;color:#9ba4af}.admin-folder-day.school{border-color:#4a493b}.admin-folder-day.closed{opacity:.48}.admin-folder-day.selected{border-color:#f0c45c;box-shadow:0 0 0 1px #f0c45c33;background:#2b281f}.admin-folder-day.outside{opacity:.12}.admin-folder-day.empty{visibility:hidden}
.admin-folder-body{margin-top:12px}.folder-title h2{margin:2px 0 3px}.folder-action-buttons{display:flex;gap:7px;flex-wrap:wrap}.admin-folder-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:12px 0}.admin-folder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.folder-panel{margin:0!important;min-width:0}.folder-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:start;border:1px solid #343a42;border-radius:9px;padding:9px;margin:6px 0;background:#11151a}.folder-count{min-width:42px;text-align:center;font-weight:900;color:#f0c45c;border:1px solid #5b5237;border-radius:8px;padding:5px}.flat-folder{grid-column:1/-1;border-color:#6d5a2f!important;background:radial-gradient(500px 150px at 0 0,rgba(240,196,92,.10),transparent 70%),#15191e!important}
@media(max-width:1000px){.admin-folder-stats{grid-template-columns:repeat(3,1fr)}.admin-folder-grid{grid-template-columns:1fr}.admin-folder-year{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}}
@media(max-width:650px){.admin-folder-stats{grid-template-columns:repeat(2,1fr)}.admin-day-folder-top{align-items:stretch}.folder-row{grid-template-columns:auto 1fr}.folder-row>.btn,.folder-row>a.btn{grid-column:2}}

/* 1.7 Command Center repair */
.dashboard-priority-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.3fr);gap:12px}.dashboard-priority-grid>.panel{margin:0}
.flat-rate-command-hero{width:100%;text-align:left;color:#fff;cursor:pointer;border-color:rgba(240,196,92,.58)!important;background:radial-gradient(600px 200px at 0 0,rgba(240,196,92,.20),transparent 70%),linear-gradient(145deg,#282c31,#111419 78%)!important;box-shadow:0 18px 38px #0006}.flat-rate-command-hero:hover{transform:translateY(-1px);border-color:#f0c45c!important}.flat-rate-command-hero h2{font-size:28px;margin:3px 0 4px}.flat-rate-command-arrow{font-size:42px;color:#f0c45c;font-weight:900}.flat-rate-command-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}.flat-rate-command-stats span{border:1px solid #ffffff16;border-radius:10px;padding:9px;background:#080a0d66}.flat-rate-command-stats small{display:block;color:#9ca5b0;text-transform:uppercase;font-size:9px;letter-spacing:.08em}.flat-rate-command-stats b{display:block;color:#f0c45c;font-size:22px;margin-top:3px}.flat-rate-command-enter{font-weight:900;color:#f0c45c;letter-spacing:.06em}
.equipment-exception-panel{margin-top:12px!important}.shop-ready-message{display:flex;gap:9px;align-items:center;padding:10px;border:1px solid #355844;border-radius:10px;background:#122018}
@media(max-width:950px){.dashboard-priority-grid{grid-template-columns:1fr}.flat-rate-command-hero h2{font-size:24px}}

/* AUTO-Trak Admin 1.8 — Action Center clarity */
.fast-action-queue{display:grid;gap:9px}
.fast-action-card{display:grid;grid-template-columns:74px minmax(150px,.8fr) minmax(320px,2fr) auto;gap:12px;align-items:center;border:1px solid #3b424b;border-left:5px solid #55708b;border-radius:10px;padding:12px;background:#14191f}
.fast-action-card.request{border-left-color:#c99b36;background:linear-gradient(90deg,#221f16,#14191f 19%)}
.fast-action-card.signoff{border-left-color:#40805a;background:linear-gradient(90deg,#14231a,#14191f 19%)}
.fast-action-select{display:flex;flex-direction:column;align-items:center;gap:4px;color:#8d96a1;font-size:9px;text-transform:uppercase;font-weight:850;letter-spacing:.05em}
.fast-action-select input{width:20px;height:20px}
.fast-action-name{font-size:16px;font-weight:900;color:#f3f4f5}.fast-action-time{font-size:10px;color:#818b97;margin-top:5px}
.fast-action-type{display:inline-block;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:950;letter-spacing:.09em;margin-bottom:6px}
.fast-action-type.request{background:#3a2e13;color:#f1c45e;border:1px solid #7a6129}.fast-action-type.signoff{background:#173322;color:#80dca1;border:1px solid #346747}
.fast-action-taskline{display:flex;align-items:center;gap:6px;color:#aeb6c0;font-size:11px;text-transform:uppercase}.fast-action-taskline b{color:#f0c45c}
.fast-action-task h3{font-size:15px;line-height:1.35;margin:5px 0 3px;color:#fff}.fast-action-note{margin-top:7px;border-left:2px solid #756437;padding-left:8px;color:#c8cbd0;font-size:12px}
.fast-action-buttons{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.fast-action-card.saving{opacity:.6;pointer-events:none}.fast-action-card.done{border-color:#488565;background:#122019}
.fast-action-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:95px;border:1px dashed #3c4741;border-radius:10px;background:#101613;color:#96aa9d}.fast-action-empty b{color:#79c694;font-size:16px}
@media(max-width:1050px){.fast-action-card{grid-template-columns:58px 1fr 2fr}.fast-action-buttons{grid-column:2/4;justify-content:flex-start}}
@media(max-width:720px){.fast-action-card{grid-template-columns:46px 1fr}.fast-action-task,.fast-action-buttons{grid-column:2}.fast-action-student{grid-column:2}.fast-action-task h3{font-size:14px}}

/* AUTO-Trak Admin 1.9 — Unified Master Calendar */
.master-calendar-legend{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin-top:12px;color:#aeb5be;font-size:12px}.legend-box{display:inline-block;width:14px;height:14px;border-radius:3px;vertical-align:-2px;margin-right:5px}.legend-box.closed{background:#7a1212}.legend-box.instructional{background:#2f6f4e}.legend-task{display:inline-block;width:18px;height:7px;border-radius:3px;background:#b88a22;margin-right:5px}
#calendarGrid .calday{appearance:none;width:100%;color:inherit;text-align:left;cursor:pointer;overflow:hidden}.calday.selected{outline:2px solid #f0c45c;outline-offset:1px}.master-task-preview{display:grid;gap:2px;margin-top:5px;padding-top:4px;border-top:1px solid #ffffff12;font-size:9px;line-height:1.2}.master-task-preview div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#c9ced4}.master-task-preview b{color:#f0c45c}.master-task-preview span{color:#8e97a2;font-weight:800}
.master-feeder-tags{display:flex;gap:3px;flex-wrap:wrap;margin-top:5px}.master-feeder-tags span{max-width:100%;padding:2px 5px;border-radius:999px;background:#171a1f;border:1px solid var(--feeder);box-shadow:inset 4px 0 0 var(--feeder);color:#fff;font-size:8px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.feeder-school-legend{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:10px;padding-top:10px;border-top:1px solid #31363d}.feeder-legend-title{font-size:10px;text-transform:uppercase;font-weight:900;letter-spacing:.12em;color:#919aa5;margin-right:3px}.feeder-legend-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #373d45;border-radius:999px;padding:4px 7px;font-size:10px;background:#13171c}.feeder-legend-chip i{width:9px;height:9px;border-radius:50%}
.master-day-drawer{margin-top:14px;border:1px solid #6d5a2f;border-radius:14px;padding:14px;background:radial-gradient(650px 180px at 0 0,rgba(240,196,92,.10),transparent 70%),#101419}.master-day-head{align-items:flex-start}.master-day-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.master-day-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.master-day-section{margin:0!important}.master-task-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:9px;align-items:start;border:1px solid #343b43;border-radius:9px;padding:9px;margin:6px 0;background:#12171c}.task-number{width:28px;height:28px;display:grid;place-items:center;border:1px solid #6c592b;border-radius:50%;background:#2b2518;color:#f0c45c;font-weight:900}.master-work-row,.feeder-change-row{display:flex;gap:9px;align-items:flex-start;border:1px solid #343b43;border-radius:9px;padding:9px;margin:6px 0;background:#12171c}.feeder-change-row{border-left:4px solid var(--feeder)}.feeder-dot{width:11px;height:11px;border-radius:50%;background:var(--feeder);margin-top:4px;flex:0 0 auto}
.school-color-name{display:inline-flex;align-items:center;gap:7px}.school-color-name:before{content:"";width:10px;height:10px;border-radius:50%;background:var(--school-color)}.feeder-check{display:flex!important;align-items:center;gap:7px}.feeder-check i{width:10px;height:10px;border-radius:50%;background:var(--school-color);order:-1}.master-calendar-pointer{border-color:#6d5a2f!important}
@media(max-width:900px){.master-day-grid{grid-template-columns:1fr}.master-day-summary{grid-template-columns:repeat(2,1fr)}.master-task-preview{display:none}}

/* AUTO-Trak Admin 2.0 — Calendar Studio */
.calendar-workspace-console{position:relative!important;top:auto!important}.calendar-console-head{display:grid;gap:12px}.calendar-tool-tabs{display:flex;gap:6px;flex-wrap:wrap;padding-top:10px;border-top:1px solid #343941}.calendar-tool-tab{appearance:none;border:1px solid #4a5059;background:#1d2228;color:#dce0e5;border-radius:8px;padding:8px 11px;font-weight:800;font-size:12px;cursor:pointer}.calendar-tool-tab:hover,.calendar-tool-tab.active{border-color:#c89a36;background:#302815;color:#f4cb6d}.calendar-tool-tab.close-tool{margin-left:auto;color:#9da5af}.calendar-tools-hidden .calendar-mode-pane{display:none!important}.calendar-mode-pane{margin-top:10px}
.calendar-resource-editor{margin-top:12px!important;border-color:#6d5a2f!important;background:#12171d!important}.calendar-resource-editor.disabled{opacity:.55;pointer-events:none}.calendar-resource-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.calendar-resource-notes{grid-column:1/-1}.calendar-resource-file{grid-column:span 2}.calendar-resource-list{grid-column:1/-1}.calendar-resource-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:10px;align-items:start;border:1px solid #343b43;border-radius:10px;padding:10px;margin:7px 0;background:#12171c}.resource-type{display:grid;place-items:center;min-height:38px;border-radius:8px;border:1px solid #5b5134;background:#272317;color:#f0c45c;font-size:9px;font-weight:950}.resource-main{min-width:0}.resource-actions{display:flex;gap:6px;flex-wrap:wrap}.calendar-video{max-width:560px;aspect-ratio:16/9;margin-top:9px;border:1px solid #3b424a;border-radius:9px;overflow:hidden;background:#000}.calendar-video iframe{width:100%;height:100%;border:0}
@media(max-width:900px){.calendar-resource-form{grid-template-columns:1fr 1fr}.calendar-resource-notes{grid-column:1/-1}.calendar-resource-file{grid-column:1/-1}.calendar-resource-row{grid-template-columns:46px 1fr}.resource-actions{grid-column:2}.calendar-tool-tab.close-tool{margin-left:0}}
@media(max-width:600px){.calendar-resource-form{grid-template-columns:1fr}.calendar-resource-notes,.calendar-resource-file{grid-column:1}.calendar-tool-tabs{display:grid;grid-template-columns:1fr 1fr}.calendar-resource-row{grid-template-columns:1fr}.resource-actions{grid-column:1}.resource-type{width:max-content;padding:0 8px}}

/* AUTO-Trak Admin 2.1 — Calendar Intelligence */
.master-vehicle-alerts{margin:12px 0;border:2px solid #b84141;border-radius:12px;padding:11px;background:linear-gradient(90deg,#321516,#17191d 58%)}.vehicle-alert-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.vehicle-alert-head h3{margin:2px 0;color:#ffb0b0}.vehicle-alert-list{display:grid;gap:7px;margin-top:8px}.vehicle-red-warning{appearance:none;width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;text-align:left;border:1px solid #813838;border-radius:9px;background:#211517;color:#fff;padding:9px;cursor:pointer}.vehicle-red-warning:hover{border-color:#ef6d6d;background:#2b1719}.vehicle-warning-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#9e2e32;color:#fff;font-weight:950}.vehicle-red-warning b{display:block}.vehicle-red-warning small{display:block;color:#d7b4b4;margin-top:2px}.vehicle-warning-open{font-size:10px;font-weight:900;color:#ff9494;letter-spacing:.06em}.calendar-vehicle-red{margin-top:4px;border:1px solid #b33e42;border-radius:5px;background:#451c1f;color:#ffc0c0;padding:3px 4px;font-size:8px;font-weight:950;line-height:1.15}.vehicle-alert-target{outline:3px solid #d84c51!important;outline-offset:3px}
.master-feeder-tags span{font-size:8px!important}
@media(max-width:720px){.vehicle-red-warning{grid-template-columns:32px 1fr}.vehicle-warning-open{grid-column:2}}

/* AUTO-Trak Admin 2.2 — Master Calendar visibility repair */
#calendarPersistent{display:block!important;visibility:visible!important;opacity:1!important;order:0}
#calendarModeHost{order:1}
#calendar{display:flex;flex-direction:column}
#calendarWorkspaceConsole{order:-1}
#calendarPersistentPanel{margin-top:10px!important}
#calendarGrid{display:block!important;min-height:470px}
.calendar-tools-hidden{display:none!important}
.calendar-tool-tabs{margin-bottom:0}


/* AUTO-Trak Admin 2.3 — login isolation + clean collapse controls */
/* Never allow protected Calendar UI to leak onto the authentication screen. */
body:not(.autotrak-authenticated) #calendar,
body:not(.autotrak-authenticated) #calendarWorkspaceConsole,
body:not(.autotrak-authenticated) #calendarPersistent,
body:not(.autotrak-authenticated) #calendarPersistentPanel,
body:not(.autotrak-authenticated) #calendarModeHost{
  display:none!important;
  visibility:hidden!important;
}

/* Keep Expand / Collapse controls, remove the black toolbar treatment. */
.autotrak-collapse-controls{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
  background:transparent!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  margin:0 0 10px!important;
}
.autotrak-collapse-controls .btn{
  background:linear-gradient(#2a2d33,#181b20)!important;
}

/* ============================================================
   AUTO-Trak Professional UI System 2.4
   Unified commercial-service-management interface
   ============================================================ */
:root{
  --at-bg:#0b0d10;
  --at-surface:#15181d;
  --at-surface-2:#1c2026;
  --at-surface-3:#242931;
  --at-line:#3f4650;
  --at-line-soft:#30363e;
  --at-text:#f4f6f8;
  --at-muted:#aeb6c1;
  --at-gold:#c99a2e;
  --at-gold-hi:#efc55c;
  --at-red:#b53a3f;
  --at-red-bg:#35181b;
  --at-yellow:#c78d21;
  --at-yellow-bg:#3c2f13;
  --at-green:#3f9363;
  --at-green-bg:#173523;
  --at-blue:#3d78a9;
  --at-blue-bg:#17344c;
  --at-radius:10px;
  --at-radius-sm:7px;
  --at-shadow:0 8px 24px rgba(0,0,0,.34);
  --at-space-1:4px;
  --at-space-2:8px;
  --at-space-3:12px;
  --at-space-4:16px;
  --at-space-5:22px;
  --at-space-6:30px;
  --at-touch:38px;
}

html{scroll-behavior:smooth}
body{
  color:var(--at-text);
  background-color:var(--at-bg);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  line-height:1.45;
}
button,input,select,textarea{font:inherit}
button,.btn,a.btn{min-height:var(--at-touch)}
button:focus-visible,.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:3px solid rgba(239,197,92,.65)!important;
  outline-offset:2px!important;
}

/* Typography hierarchy */
h1,h2,h3,h4{letter-spacing:.01em}
h1{font-size:clamp(1.6rem,2.3vw,2.2rem)}
h2{font-size:clamp(1.25rem,1.8vw,1.55rem)}
h3{font-size:1.05rem}
h4{font-size:.95rem}
.muted,small{color:var(--at-muted)}
.section-eyebrow,.calendar-anchor-label{
  font-size:.72rem!important;
  font-weight:900!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
  color:var(--at-gold-hi)!important;
}

/* Panels: quieter, fewer boxes */
.panel{
  border:1px solid var(--at-line-soft)!important;
  border-radius:var(--at-radius)!important;
  background:rgba(21,24,29,.94)!important;
  box-shadow:var(--at-shadow)!important;
  padding:var(--at-space-4)!important;
  margin-bottom:var(--at-space-3)!important;
}
.panel .panel{
  box-shadow:none!important;
  background:rgba(28,32,38,.62)!important;
  border-color:var(--at-line-soft)!important;
}
.panel>h2,.panel>h3{margin-top:0}
.panel>h2{padding-bottom:8px;border-bottom:1px solid var(--at-line-soft)!important}

/* Buttons */
.btn,.nav button,.hub-card{
  border-radius:var(--at-radius-sm)!important;
  box-shadow:none!important;
  font-weight:800!important;
  transition:background .12s ease,border-color .12s ease,transform .08s ease,opacity .12s ease;
}
.btn:hover,.nav button:hover,.hub-card:hover{transform:translateY(-1px)}
.btn:active,.nav button:active,.hub-card:active{transform:translateY(0)}
.btn.primary{
  background:linear-gradient(#bb8c22,#7b5913)!important;
  border-color:#d4a942!important;
  color:#fff!important;
}
.btn.green{background:#245f3d!important;border-color:#4a9667!important}
.btn.red{background:#7c292d!important;border-color:#bd4c4c!important}
.btn:disabled,button:disabled{opacity:.48!important;cursor:not-allowed!important;transform:none!important}

/* Status colors are semantic only */
.bad,.badge.bad{background:var(--at-red-bg)!important;color:#ffd5d7!important;border-color:#a74348!important}
.warn,.badge.warn{background:var(--at-yellow-bg)!important;color:#ffe4a8!important;border-color:#9b741f!important}
.ok,.badge.ok{background:var(--at-green-bg)!important;color:#c9f4d7!important;border-color:#3c8158!important}
.info,.badge.info{background:var(--at-blue-bg)!important;color:#d3ebff!important;border-color:#356f9d!important}
.badge{
  border-radius:999px!important;
  font-size:.72rem!important;
  font-weight:900!important;
  letter-spacing:.025em;
  padding:4px 8px!important;
}

/* Forms */
.field{gap:5px!important}
.field label{font-weight:800!important;color:#e9edf2!important}
.field input,.field select,.field textarea{
  background:#f7f8fa!important;
  color:#111820!important;
  -webkit-text-fill-color:#111820!important;
  border:1px solid #747d88!important;
  border-radius:var(--at-radius-sm)!important;
  min-height:40px;
}
.field textarea{min-height:88px}
.field small{font-size:.76rem}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--at-gold)!important;
  box-shadow:0 0 0 3px rgba(201,154,46,.22)!important;
}

/* Tables */
.tablewrap{
  border:1px solid var(--at-line-soft)!important;
  border-radius:var(--at-radius-sm)!important;
  overflow:auto!important;
  background:rgba(13,15,18,.45);
}
.tbl{border-collapse:separate!important;border-spacing:0!important}
.tbl th{
  background:#20242a!important;
  color:#f1c768!important;
  font-size:.74rem!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
  position:sticky;top:0;z-index:2;
}
.tbl td,.tbl th{padding:8px 9px!important}
.tbl td{border-bottom:1px solid #323841!important}
.tbl tr:last-child td{border-bottom:0!important}
.tbl tr:hover td{background:rgba(255,255,255,.035)!important}

/* Cards / stats */
.cards{gap:10px!important}
.stat{
  min-height:78px!important;
  border-radius:var(--at-radius-sm)!important;
  border:1px solid var(--at-line-soft)!important;
  background:linear-gradient(180deg,#20252b,#191d22)!important;
  box-shadow:none!important;
}
.stat b{font-variant-numeric:tabular-nums;color:var(--at-gold-hi)!important}
.stat span{
  font-size:.69rem!important;
  font-weight:850!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
}

/* Navigation */
#nav.nav{
  background:#111419!important;
  border:1px solid var(--at-line-soft)!important;
  border-radius:var(--at-radius)!important;
  padding:6px!important;
  box-shadow:none!important;
}
#nav.nav button{
  background:transparent!important;
  border-color:transparent!important;
}
#nav.nav button:hover{background:#20242a!important;border-color:#4b515a!important}
#nav.nav button.active,#nav.nav button[aria-current="page"]{
  background:linear-gradient(#a87d1e,#76550f)!important;
  border-color:#c9a13c!important;
}

/* Alerts/messages */
.msg.show{
  border:1px solid var(--at-line)!important;
  border-left-width:4px!important;
  box-shadow:none!important;
}
.msg.error{background:var(--at-red-bg)!important;border-left-color:var(--at-red)!important}
.msg.success{background:var(--at-green-bg)!important;border-left-color:var(--at-green)!important}
.msg.note{background:var(--at-blue-bg)!important;border-left-color:var(--at-blue)!important}
.rulebox{border-radius:var(--at-radius-sm)!important}

/* Collapsibles */
.autotrak-collapse-controls{
  position:static!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  padding:0!important;
  margin:0 0 10px!important;
}
.autotrak-collapse-wrap>summary{
  min-height:40px;
  border-radius:var(--at-radius-sm)!important;
  border-color:var(--at-line-soft)!important;
  background:#1d2127!important;
  color:#e8c66d!important;
}
.autotrak-collapse-wrap>.panel{margin-top:6px!important}

/* Loading / empty-state conventions */
.autotrak-empty,.autotrak-loading,.autotrak-error-state{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1px dashed #424954;
  border-radius:var(--at-radius-sm);
  padding:14px;
  color:var(--at-muted);
  background:rgba(255,255,255,.018);
}
.autotrak-error-state{border-color:#744044;color:#ffc9cc;background:rgba(83,24,29,.28)}
.autotrak-loading::before{
  content:"";
  width:15px;height:15px;margin-right:8px;
  border:2px solid #5b626c;border-top-color:var(--at-gold-hi);border-radius:50%;
  animation:at-spin .8s linear infinite;
}
@keyframes at-spin{to{transform:rotate(360deg)}}

/* Responsive */
@media(max-width:980px){
  .grid2{grid-template-columns:1fr!important}
  .topbar{position:static!important}
}
@media(max-width:720px){
  .shell{padding:8px!important}
  .panel{padding:12px!important}
  .formgrid{grid-template-columns:1fr!important}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .split{align-items:stretch!important}
  .split>.btn,.split>button.btn{width:auto}
}
@media(max-width:460px){
  .cards{grid-template-columns:1fr!important}
}

/* Printing */
@media print{
  html,body{background:#fff!important;color:#111!important}
  body *{box-shadow:none!important;text-shadow:none!important}
  #nav,.topbar,.commandbar-wrap,.layoutbar,.autotrak-collapse-controls,.hub-back,
  .portal-switcher,.livebar,.calendar-tool-tabs,.btn,button:not(.print-keep){
    display:none!important;
  }
  #app,.shell,.section,.panel,.tablewrap{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:#fff!important;
    color:#111!important;
  }
  .section:not(.active){display:none!important}
  .panel{page-break-inside:avoid}
  .tbl th{position:static!important;background:#eee!important;color:#111!important}
  .tbl td,.tbl th{border-color:#bbb!important;color:#111!important}
  .badge{border:1px solid #888!important;background:#fff!important;color:#111!important}
  a{color:#111!important;text-decoration:none!important}
}


/* Admin-specific density */
#app .section{padding-bottom:24px}
.hub-grid{gap:10px!important}
.hub-card{
  min-height:105px!important;
  border:1px solid var(--at-line-soft)!important;
  background:#181c21!important;
  text-align:left!important;
}
.hub-card:hover{border-color:#7d672f!important;background:#20252b!important}
.hub-card-title{font-size:1rem!important}
.hub-card-desc{color:var(--at-muted)!important;font-size:.8rem!important;line-height:1.35}

/* Calendar remains dominant */
#calendarPersistentPanel{
  border-color:#6c5a2e!important;
  background:linear-gradient(180deg,rgba(27,29,34,.98),rgba(18,21,25,.98))!important;
}
.calendar-tool-tabs{
  background:transparent!important;
  border:0!important;
  padding:0!important;
}
.calendar-tool-tab{min-height:34px!important}
.master-day-drawer{border-top:1px solid var(--at-line-soft)!important}
.calendar-resource-editor{box-shadow:none!important}

/* Vehicle red warnings remain visually exceptional */
.vehicle-red-warning{box-shadow:none!important}
.master-vehicle-alerts{box-shadow:none!important}

/* Never show technical UUID-like identifiers as visually dominant text */
[data-technical-id],.technical-id,.uuid{
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:.72rem!important;
  color:#88919d!important;
}

/* Footer/build text is quiet */
#adminBuildVersion,.build-version,.release-version{
  color:#747d88!important;
  font-size:.68rem!important;
  letter-spacing:.02em!important;
}

/* ============================================================
   AUTO-Trak Admin 2.5 — Calendar Workspace Repair
   ============================================================ */

/* Calendar content belongs only to the Calendar section. */
#today #calendarWorkspaceConsole,
#today #calendarPersistent,
#today #calendarPersistentPanel,
#today #calendarModeHost,
#today .calendar-workspace-console,
#today .calendar-persistent-panel,
#today .calendar-tool-tabs{
  display:none!important;
}

/* Calendar Studio is secondary to the Master Calendar. */
#calendar .calendar-workspace-console{
  padding:10px 12px!important;
  margin-bottom:10px!important;
  box-shadow:none!important;
}
#calendar .calendar-console-head{
  display:flex!important;
  gap:12px!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
}
#calendar .calendar-console-head p{
  margin-bottom:0!important;
}
#calendar .calendar-studio-toggle{
  margin-left:auto!important;
}
#calendar .calendar-workspace-console.calendar-studio-collapsed .calendar-tool-tabs{
  display:none!important;
}
#calendar .calendar-workspace-console.calendar-studio-collapsed p{
  display:none!important;
}
#calendarModeHost.calendar-tools-hidden{
  display:none!important;
}
#calendarModeHost:not(.calendar-tools-hidden){
  display:block!important;
}
.calendar-mode-pane{
  display:none!important;
}
.calendar-mode-pane.active{
  display:block!important;
}

/* Studio buttons should feel like a compact internal toolbar, never a second navigation system. */
.calendar-tool-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  width:100%!important;
  padding-top:8px!important;
  border-top:1px solid var(--at-line-soft)!important;
  margin-top:8px!important;
}
.calendar-tool-tab{
  min-height:34px!important;
  padding:6px 10px!important;
  background:#1b1f24!important;
  border:1px solid #444b54!important;
  color:#e8edf2!important;
}
.calendar-tool-tab.active{
  background:#72530f!important;
  border-color:#c99a2e!important;
  color:#fff!important;
}
.calendar-tool-tab.close-tool{
  margin-left:auto!important;
  background:transparent!important;
  color:var(--at-muted)!important;
}

/* The Master Calendar remains the visual anchor. */
#calendarPersistent{
  display:block!important;
  width:100%!important;
}
#calendarPersistentPanel{
  margin-top:0!important;
}

/* No sticky Calendar Studio controls. */
#calendarWorkspaceConsole,
#calendarWorkspaceConsole *{
  position:static!important;
}

.calendar-build-marker{
  color:#7f8996;
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.04em;
}

/* Hard separation: Today/dashboard may never render Calendar workspace content. */
#dashboard #calendarWorkspaceConsole,
#dashboard #calendarPersistent,
#dashboard #calendarPersistentPanel,
#dashboard #calendarModeHost,
#dashboard .calendar-workspace-console,
#dashboard .calendar-persistent-panel,
#dashboard .calendar-tool-tabs{
  display:none!important;
}
body:not(.calendar-view-active) #calendarWorkspaceConsole,
body:not(.calendar-view-active) #calendarPersistent,
body:not(.calendar-view-active) #calendarModeHost{
  /* The Calendar section itself is also inactive, but this prevents accidental layout leakage. */
  visibility:hidden;
}
body.calendar-view-active #calendarWorkspaceConsole,
body.calendar-view-active #calendarPersistent,
body.calendar-view-active #calendarModeHost{
  visibility:visible;
}

/* ============================================================
   AUTO-Trak Admin 2.6 — Calendar order + section isolation
   ============================================================ */

/* Critical: Calendar follows the same section visibility contract as every other workspace. */
#calendar.section{
  display:none!important;
}
#calendar.section.active{
  display:flex!important;
  flex-direction:column!important;
}

/* Master Calendar first, setup controls underneath. */
#calendarPersistent{order:1!important}
#calendarWorkspaceConsole{order:2!important}
#calendarModeHost{order:3!important}

#calendarPersistentPanel{
  margin-bottom:10px!important;
}
#calendarWorkspaceConsole{
  margin-top:0!important;
  margin-bottom:10px!important;
}

/* Today must never reveal any Calendar workspace content. */
body:not(.calendar-view-active) #calendar.section{
  display:none!important;
  visibility:hidden!important;
}
body.calendar-view-active #calendar.section.active{
  visibility:visible!important;
}

/* Setup console is visibly subordinate to the calendar. */
#calendarWorkspaceConsole.calendar-studio-collapsed{
  padding:9px 12px!important;
  border-color:var(--at-line-soft)!important;
  background:#15191e!important;
}

/* ============================================================
   AUTO-Trak Admin 2.7 — Inline Calendar Console Workspace
   ============================================================ */

/* Exact operational order */
#calendarPersistent{order:1!important}
#calendarWorkspaceConsole{order:2!important}
#calendarModeHost{order:3!important}

/* Console belongs directly to the bottom of the Master Calendar. */
#calendarPersistentPanel{
  margin-bottom:8px!important;
}
#calendarWorkspaceConsole{
  margin-top:0!important;
  margin-bottom:0!important;
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
}

/* Opened setup tool appears immediately under the console. */
#calendarModeHost:not(.calendar-tools-hidden){
  display:block!important;
  margin-top:0!important;
  padding-top:0!important;
  scroll-margin-top:12px!important;
}
#calendarModeHost:not(.calendar-tools-hidden) .calendar-mode-pane.active{
  display:block!important;
  margin-top:0!important;
  border-top-left-radius:0!important;
  border-top-right-radius:0!important;
  scroll-margin-top:12px!important;
}

/* Visually connect console + opened tool as one workspace. */
#calendarWorkspaceConsole:not(.calendar-studio-collapsed){
  border-bottom-color:transparent!important;
}
#calendarModeHost:not(.calendar-tools-hidden) > .calendar-mode-pane.active:first-child,
#calendarModeHost:not(.calendar-tools-hidden) .calendar-mode-pane.active{
  border-top:1px solid var(--at-line-soft)!important;
}

/* Do not use sticky positioning; nothing should cover calendar content. */
#calendarWorkspaceConsole,
#calendarModeHost,
#calendarModeHost .calendar-mode-pane{
  position:static!important;
}

/* Keep working pane readable once opened. */
.calendar-inline-tool-workspace{
  width:100%!important;
}
.calendar-inline-tool-workspace .calendar-mode-pane.active{
  min-height:120px!important;
}

/* AUTO-Trak 3.5.3 — hCaptcha/login viewport usability */
html,body{min-height:100%;}
.loginpage{height:100dvh;min-height:100vh;overflow-y:auto;overscroll-behavior:contain;align-items:start;padding-top:max(16px,3vh);padding-bottom:max(24px,env(safe-area-inset-bottom));}
.loginbox{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:28px;}
#autotrakCaptcha{min-height:78px;overflow:visible;scroll-margin-block:120px;}
@media(max-height:760px){.loginpage{place-items:start center;padding-top:10px}.loginbox{max-height:calc(100dvh - 20px);padding:16px}.loginbox .autotrak-wordmark{max-height:76px!important}.loginbox .sub{margin-bottom:10px}}

/* AUTO-Trak Admin 3.5.6 — Search / Find stays with the other Admin bars
   The command bar is a child of .shell, so anchor it to that same shell
   instead of a separate centered max-width box. */
#app .shell > .commandbar-wrap{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:8px 0 10px !important;
  position:relative !important;
  box-sizing:border-box !important;
}
#app .shell > .commandbar-wrap > .commandbar{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  display:grid !important;
  grid-template-columns:28px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:8px !important;
  padding:8px 10px !important;
}
#app .shell > .commandbar-wrap .command-icon{
  width:28px !important;
  min-width:28px !important;
  text-align:center !important;
  justify-self:center !important;
}
#app .shell > .commandbar-wrap #commandSearch{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}
#app .shell > .commandbar-wrap .commandbar > .btn{
  width:auto !important;
  min-width:72px !important;
  max-width:none !important;
  white-space:nowrap !important;
}
#app .shell > .commandbar-wrap > .command-results{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  left:0 !important;
  right:auto !important;
  box-sizing:border-box !important;
}
@media(max-width:640px){
  #app .shell > .commandbar-wrap > .commandbar{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:6px !important;
    padding:7px 8px !important;
  }
  #app .shell > .commandbar-wrap .command-icon{display:none !important}
  #app .shell > .commandbar-wrap #commandSearch{font-size:14px !important}
  #app .shell > .commandbar-wrap .commandbar > .btn{min-width:64px !important;padding-inline:10px !important}
}


/* AUTO-Trak Admin 3.5.8 — Search / Find locked to the SAME bar geometry as navigation
   Search and navigation now share one sizing/centering contract. Neither element
   has an independent desktop width or anchor, so they always keep identical
   left/right edges as the viewport changes. */
#app .shell > .commandbar-wrap,
#app .shell > #nav.nav{
  width:100% !important;
  max-width:1180px !important;
  min-width:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}
#app .shell > .commandbar-wrap{
  margin-top:8px !important;
  margin-bottom:10px !important;
}
#app .shell > #nav.nav{
  margin-top:10px !important;
  margin-bottom:8px !important;
}
#app .shell > .commandbar-wrap > .commandbar,
#app .shell > .commandbar-wrap > .command-results{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}
@media(max-width:640px){
  #app .shell > .commandbar-wrap,
  #app .shell > #nav.nav{
    width:100% !important;
    max-width:100% !important;
  }
}

/* AUTO-Trak Admin 3.5.10 — structural Search/Nav lock
   Search and main navigation now live inside one shared container. Historical
   commandbar/nav rules can no longer position them independently. */
#app .shell > .admin-control-stack{
  width:min(1180px, calc(100% - 24px)) !important;
  max-width:1180px !important;
  min-width:0 !important;
  margin:10px auto 8px !important;
  padding:0 !important;
  position:relative !important;
  box-sizing:border-box !important;
}
#app .shell > .admin-control-stack > .commandbar-wrap,
#app .shell > .admin-control-stack > #nav.nav{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}
#app .shell > .admin-control-stack > .commandbar-wrap{
  margin-top:0 !important;
  margin-bottom:8px !important;
  position:relative !important;
}
#app .shell > .admin-control-stack > .commandbar-wrap > .commandbar{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  display:grid !important;
  grid-template-columns:28px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:8px !important;
}
#app .shell > .admin-control-stack > #nav.nav{
  margin-top:0 !important;
  margin-bottom:0 !important;
}
#app .shell > .admin-control-stack .command-results{
  left:0 !important;
  right:0 !important;
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
}
@media(max-width:800px){
  #app .shell > .admin-control-stack{
    width:calc(100% - 12px) !important;
    max-width:none !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  #app .shell > .admin-control-stack > .commandbar-wrap > .commandbar{
    grid-template-columns:minmax(0,1fr) auto !important;
  }
  #app .shell > .admin-control-stack .command-icon{display:none !important}
}


/* AUTO-Trak 3.5.11 critical Search/Nav geometry — inline to defeat stale CSS cache */
#app .shell > #adminControlStack{
  display:block !important;
  width:min(1180px, calc(100% - 32px)) !important;
  max-width:1180px !important;
  min-width:0 !important;
  margin:10px auto 8px !important;
  padding:0 !important;
  position:relative !important;
  box-sizing:border-box !important;
}
#app .shell > #adminControlStack > .commandbar-wrap,
#app .shell > #adminControlStack > #nav.nav{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}
#app .shell > #adminControlStack > .commandbar-wrap{
  margin-top:0 !important;
  margin-bottom:8px !important;
  position:relative !important;
}
#app .shell > #adminControlStack > .commandbar-wrap > .commandbar{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  display:grid !important;
  grid-template-columns:28px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:8px !important;
}
#app .shell > #adminControlStack > #nav.nav{
  margin-top:0 !important;
  margin-bottom:0 !important;
}
#app .shell > #adminControlStack .command-results{
  left:0 !important;
  right:0 !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
@media(max-width:800px){
  #app .shell > #adminControlStack{
    width:calc(100% - 16px) !important;
    max-width:none !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  #app .shell > #adminControlStack > .commandbar-wrap > .commandbar{
    grid-template-columns:minmax(0,1fr) auto !important;
  }
  #app .shell > #adminControlStack .command-icon{display:none !important}
}



/* AUTO-Trak 3.5.13 — final search/nav runtime geometry contract.
   CSS provides the safe fallback; JS mirrors the rendered navigation geometry
   after authentication and on every viewport/zoom layout change. */
#app #adminControlStack > .commandbar-wrap{
  position:relative!important;
  box-sizing:border-box!important;
}
#app #adminControlStack > .commandbar-wrap > .commandbar{
  width:100%!important;max-width:100%!important;box-sizing:border-box!important;
}
/* AUTO-Trak 3.5.27 calendar layers */
.calday.teacher-day{background:rgba(139,103,26,.9)!important;border-color:#d4aa43!important}.admin-365-event{font-size:9px;margin-top:4px;padding:2px 4px;border-left:3px solid #6ea8ff;background:rgba(15,32,58,.78);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.master-calendar-legend .teacher-legend{background:#b58b2c}.master-calendar-legend .m365-legend{background:#6ea8ff}
/* AUTO-Trak 3.5.33 workflow hardening */
.vehicle-record-lock{display:flex;gap:14px;align-items:center;justify-content:space-between;border:1px solid #8a6a1f;border-radius:10px;padding:12px;background:rgba(120,88,20,.15)}
.vehicle-record-lock.unlocked{border-color:#2f7d45;background:rgba(38,115,61,.13)}
.vehicle-record-lock .btn{flex:0 0 auto}
.driver-ed-day-dot{display:flex;align-items:center;gap:4px;margin-top:5px;padding:2px 5px;border-radius:999px;border:1px solid rgba(120,190,255,.55);background:rgba(35,93,150,.22);font-size:10px;line-height:1;max-width:max-content}
.driver-ed-day-dot span{width:7px;height:7px;border-radius:50%;background:#62b7ff;box-shadow:0 0 0 2px rgba(98,183,255,.18)}
.driver-ed-day-dot b{font-size:10px}.driver-ed-day-dot small{font-size:8px;letter-spacing:.05em}
@media(max-width:700px){.vehicle-record-lock{align-items:flex-start;flex-direction:column}.driver-ed-day-dot small{display:none}}

/* AUTO-Trak Admin 3.5.49 — Classroom Materials + Presentation Mode */
.presentation-mode{position:fixed;inset:0;z-index:100000;background:#050607;display:flex;flex-direction:column;color:#fff}.presentation-toolbar{height:64px;flex:0 0 64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 14px;background:linear-gradient(180deg,#1c2025,#0e1013);border-bottom:2px solid #b88a22;box-sizing:border-box}.presentation-toolbar b{display:block;font-size:18px}.presentation-toolbar small{display:block;color:#b9bec6;margin-top:2px}.presentation-toolbar-actions{display:flex;gap:8px}.presentation-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:#000}.presentation-stage iframe{width:100%;height:100%;border:0;background:#000}.presentation-stage img{max-width:100%;max-height:100%;object-fit:contain}.presentation-open{overflow:hidden}.classroom-folder{border-left:4px solid #d0a23b!important}.instructor-folder{border-left:4px solid #8f4fc7!important}.classroom-resource-row .resource-actions{display:flex;gap:6px;flex-wrap:wrap}.calendar-resource-row .resource-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}@media(max-width:700px){.presentation-toolbar{height:auto;flex-basis:auto;align-items:flex-start;flex-direction:column}.presentation-toolbar-actions{width:100%}.presentation-toolbar-actions .btn{flex:1}}

/* AUTO-Trak Admin 3.5.64 — Full-screen Master Calendar Day workspace */
.master-day-drawer{position:fixed!important;inset:0!important;z-index:90000!important;margin:0!important;border:0!important;border-radius:0!important;padding:18px 22px 24px!important;background:linear-gradient(180deg,#0b0f13,#10161c 32%,#0c1116)!important;overflow:auto!important;box-sizing:border-box!important}
.master-day-drawer.hidden{display:none!important}.master-day-head{position:sticky;top:-18px;z-index:10;margin:-18px -22px 0;padding:18px 22px 12px;background:rgba(8,12,16,.97);border-bottom:1px solid #514522;backdrop-filter:blur(10px)}
.master-day-head h2{font-size:clamp(26px,3vw,44px)!important}.master-day-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.master-day-head-actions .primary{font-size:16px;padding:11px 16px}
.master-day-tabs{position:sticky;top:84px;z-index:9;display:flex;gap:8px;flex-wrap:wrap;margin:0 -22px 16px;padding:10px 22px;background:rgba(12,17,22,.97);border-bottom:1px solid #343b43;backdrop-filter:blur(10px)}
.master-day-tab{appearance:none;border:1px solid #4a5158;background:#171d23;color:#d8dde3;border-radius:999px;padding:9px 15px;font-weight:850;cursor:pointer}.master-day-tab:hover{border-color:#d0a23b}.master-day-tab.active{background:linear-gradient(180deg,#d7aa3f,#a77b18);border-color:#f0c45c;color:#090b0d;box-shadow:0 0 0 2px rgba(240,196,92,.14)}
.master-day-panel{display:none}.master-day-panel.active{display:block}.master-day-hero{display:grid;grid-template-columns:1.3fr .7fr;gap:12px;margin-bottom:12px}.master-day-hero .panel{margin:0!important}.master-day-cdx-launch{border:1px solid #7c6428!important;background:radial-gradient(600px 220px at 10% 0,rgba(240,196,92,.13),transparent 70%),#12171c!important}.master-day-cdx-launch .deploy-big{font-size:18px;padding:13px 18px;margin-top:10px}.master-day-resource-editor{display:none}.master-day-resource-editor.active{display:block}.master-day-drawer .calendar-resource-list{grid-column:auto!important;margin-top:12px!important}
body.master-day-open{overflow:hidden}.deck-list{display:grid;gap:8px;margin-top:10px}.deck-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid #343b43;border-radius:10px;background:#12171c}.deck-order{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#2b2518;border:1px solid #6c592b;color:#f0c45c;font-weight:900}.deck-actions{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:800px){.master-day-head{position:relative;top:auto}.master-day-tabs{top:0}.master-day-hero{grid-template-columns:1fr}.deck-row{grid-template-columns:38px 1fr}.deck-actions{grid-column:2}.master-day-drawer{padding:12px!important}.master-day-head{margin:-12px -12px 0;padding:12px}.master-day-tabs{margin:0 -12px 12px;padding:8px 12px}}
/* 3.5.69 Classroom lesson playlist */
.presentation-stage{position:relative}.presentation-stage video{width:100%;height:100%;background:#000;object-fit:contain}.presentation-intro{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(circle at center,#283039 0,#11151a 65%,#090b0d 100%);padding:40px;box-sizing:border-box}.presentation-intro img{width:min(34vw,360px);max-height:40vh;object-fit:contain;filter:drop-shadow(0 12px 28px #0008)}.presentation-intro-kicker{margin-top:22px;font-weight:900;letter-spacing:.14em;color:#f0c45c}.presentation-intro h1{font-size:clamp(34px,5vw,72px);margin:12px 0 4px}.presentation-intro p{font-size:clamp(18px,2vw,28px);color:#cbd2db}.presentation-start-btn{font-size:20px;padding:14px 26px;margin-top:16px}

/* AUTO-Trak Admin 3.5.73 — adaptive curriculum + weekly instructor packets */
.morning-readiness-panel{border:2px solid rgba(235,184,62,.55);background:linear-gradient(135deg,rgba(34,31,23,.98),rgba(19,22,28,.98))}
.weekly-packet-panel{border:2px solid rgba(78,145,230,.48);background:linear-gradient(135deg,rgba(20,29,42,.98),rgba(22,22,24,.98))}
.weekly-packet-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.weekly-pdf-preview{width:100%;height:620px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:white;margin-top:12px}
.readiness-list-row{width:100%;display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(240px,2fr);align-items:center;gap:10px;text-align:left;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.035);color:inherit;padding:10px 12px;border-radius:9px;margin:6px 0;cursor:pointer}
.readiness-list-row:hover{background:rgba(255,255,255,.07)}
.readiness-list-row span:first-child{display:flex;flex-direction:column;gap:3px}.readiness-list-row small{color:var(--muted,#a9a9a9)}.readiness-missing{font-size:.83rem;color:#ffd0d0}
.activity-day-overlay{position:fixed;inset:0;background:rgba(0,0,0,.76);z-index:2147483647;display:flex;align-items:center;justify-content:center;padding:20px}
.activity-day-card{width:min(760px,96vw);max-height:90vh;overflow:auto;border:2px solid rgba(240,196,92,.6);border-radius:14px;background:#17191d;padding:18px;box-shadow:0 28px 80px rgba(0,0,0,.58)}
.activity-day-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.activity-day-grid .hub-card{min-height:68px;text-align:left}
.special-activity-day{box-shadow:inset 0 0 0 2px rgba(245,173,57,.8)!important}.special-activity-day .calclosed{font-weight:900;color:#ffd17c}
.readiness-day-card{margin-top:12px!important;border-color:rgba(255,255,255,.14)!important}
.lesson-plan-detail{display:grid;grid-template-columns:140px 1fr;gap:7px 12px;margin-top:12px;padding:10px;border-radius:9px;background:rgba(255,255,255,.035)}.lesson-plan-detail>b{color:#f0c45c}.lesson-plan-detail>div{white-space:pre-line}
.requirement-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}.requirement-row label{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.04);padding:7px 9px;border-radius:8px}
.classroom-material-search{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:8px;margin:14px 0}.classroom-material-search input{min-width:0}
.material-search-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:10px 0}.material-search-result{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.045);color:inherit;border-radius:9px;padding:10px;cursor:pointer}.material-search-result:hover{border-color:#d7ad4b;background:rgba(215,173,75,.09)}.material-search-result span{color:#f0c45c;font-weight:800}.material-search-result small{color:var(--muted,#aaa)}
.classroom-material-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,.7fr) auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.08)}.material-location{font-weight:900;color:#f0c45c}
.calendar-curriculum-chip{display:inline-flex;gap:5px;align-items:center}.calcurr .badge{font-size:.65rem;padding:2px 5px}
.curriculum-import-panel{border:2px solid rgba(91,176,111,.45)!important}
@media(max-width:800px){.readiness-list-row{grid-template-columns:1fr auto}.readiness-missing{grid-column:1/-1}.classroom-material-search{grid-template-columns:1fr}.classroom-material-row{grid-template-columns:1fr}.activity-day-grid{grid-template-columns:1fr}.lesson-plan-detail{grid-template-columns:1fr}.weekly-pdf-preview{height:480px}}

/* AUTO-Trak 3.5.81 assessment calendar markers */
.at381-assessments{display:flex;flex-wrap:wrap;gap:3px;margin:5px 0 3px}.at381-assessment{display:inline-block;font-size:9px;font-weight:900;letter-spacing:.04em;border-radius:5px;padding:3px 5px;border:1px solid rgba(255,255,255,.22);background:#164e35;color:#eafff2}.at381-assessment.three_week_test{background:#6b4c00;color:#fff3bf}.at381-assessment.semester_final,.at381-assessment.year_final{background:#7f1d1d;color:#fff}.at381-day-assessment{display:inline-flex;flex-wrap:wrap;gap:4px;vertical-align:middle}

/* Admin 3.5.82 — CDX curriculum visibility on calendar */
.calendar-cdx-plan{margin-top:6px;padding:7px 8px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(0,0,0,.20);text-align:left;line-height:1.2}
.calendar-cdx-head{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-bottom:4px}.calendar-cdx-head>b{font-size:10px;letter-spacing:.08em}.calendar-cdx-head span{font-size:9px;opacity:.82}
.calendar-cdx-lesson{font-size:10px;font-weight:700;margin:2px 0;white-space:normal}.calendar-cdx-plan small{display:block;font-size:9px;opacity:.72;margin-top:3px}
.calendar-cdx-detail{margin:8px 0 12px;padding:12px;border:1px solid rgba(255,255,255,.13);border-radius:10px;background:rgba(0,0,0,.16)}
.calendar-cdx-detail-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.calendar-cdx-detail-lesson{padding:7px 9px;margin:5px 0;border-left:3px solid var(--gold,#d4af37);background:rgba(255,255,255,.04);font-weight:700}.calendar-cdx-detail p{margin:8px 0 0}
@media(max-width:700px){.calendar-cdx-plan{padding:5px}.calendar-cdx-lesson{font-size:9px}.calendar-cdx-head span{display:none}}

/* Admin 3.5.89 — electrical curriculum visibility */
.calendar-electrical-preview{margin-top:6px;padding:6px 7px;border:1px solid rgba(255,193,7,.65);border-radius:7px;background:rgba(255,193,7,.12);font-size:11px;line-height:1.25;text-align:left}.calendar-electrical-preview b{letter-spacing:.04em}.master-day-electrical{border:1px solid rgba(255,193,7,.65)!important;background:linear-gradient(135deg,rgba(255,193,7,.14),rgba(0,0,0,.04))!important}
/* AUTO-Trak 3.5.98 Connected Vehicle Resources */
.connected-resources-panel{border:2px solid #8a6b28!important;background:linear-gradient(180deg,#171b20,#121519)!important}
.connected-resource-context .stat b{overflow-wrap:anywhere;line-height:1.2!important}
.connected-resource-actions{display:flex;gap:8px;flex-wrap:wrap}
.connected-resource-summary details{margin-top:10px}
.connected-resource-summary .task{margin:7px 0}
#crImportJson{width:100%;min-height:170px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
@media(max-width:800px){.connected-resource-actions .btn{flex:1 1 46%}}

/* 3.6.13 curriculum install visibility */
.calendar-installed-tag{margin-top:6px;padding:4px 6px;border-radius:6px;font-size:10px;font-weight:800;letter-spacing:.02em;background:rgba(212,175,55,.16);border:1px solid rgba(212,175,55,.55);line-height:1.25}

/* AUTO-Trak 3.6.65 live assessment calendar */
.calendar-live-assessments{display:flex;flex-direction:column;gap:3px;margin:4px 0}.calendar-assessment-badge{font-size:10px;font-weight:900;letter-spacing:.03em;border-radius:5px;padding:3px 5px;background:#252b33;border:1px solid #6f7782;color:#fff;text-align:left}.calendar-assessment-badge.assessment-electrical_test,.calendar-assessment-badge.assessment-electrical_quiz{background:#4a3905;border-color:#f0c45c;color:#fff3b0}.calendar-assessment-badge.assessment-weekly_quiz{background:#183451;border-color:#5596d6}.calendar-assessment-badge.assessment-three_quiz_test{background:#37245c;border-color:#8d69d7}.calendar-assessment-badge.assessment-semi_final,.calendar-assessment-badge.assessment-year_final,.calendar-assessment-badge.assessment-two_year_final{background:#4b1f2a;border-color:#cf6f86}

/* AUTO-Trak ONLINE 4.0.30 — Day Workspace must always be the top desktop window. */
body.master-day-open #masterCalendarDayDrawer{position:fixed!important;inset:0!important;z-index:2147483646!important;display:block!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;isolation:isolate!important}
