[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.college-logo-field{display:flex;align-items:center;gap:20px;margin:20px 0 28px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.college-logo-frame{width:84px;height:84px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid var(--line);border-radius:12px;background:var(--input);color:var(--brand);font-size:28px;font-weight:700}
.college-logo-frame img{width:72px;height:72px;object-fit:contain}.college-logo-field small{display:block;margin:9px 0}.college-logo-field input[type=file]{background:var(--input)}
.student-view{background:#f8fafc;color:#101a30;overflow:hidden}.student-view #site-header{display:none}.student-view #app{max-width:none;margin:0;padding:0;height:100vh;height:100dvh;display:flex;flex-direction:column}
.student-view button{margin:0;font-family:inherit}.student-header{height:76px;flex-shrink:0;padding:12px 20px;background:white;border-bottom:1px solid #e1e7ef;box-shadow:0 1px 5px #14233b0c;display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(240px,1fr);align-items:center;gap:20px;z-index:3}
.student-header span{color:inherit;letter-spacing:normal;margin-left:0;font-size:inherit}.student-header .student-brand{display:flex;align-items:center;gap:12px;min-width:0;color:#243e93;text-decoration:none;justify-self:start;max-width:100%}
.student-logo{width:50px;height:50px;flex-shrink:0;border:1px solid #dfe7f1;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#fff;box-shadow:0 1px 5px #182b4810}.student-logo img{width:42px;height:42px;object-fit:contain}.student-logo #college-initial{font-size:24px;color:var(--brand);letter-spacing:0;margin:0}
.student-brand>span:last-child{min-width:0}.student-brand strong{display:block;font-size:19px;line-height:1.35;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.student-brand small{display:block;font-size:13px;font-weight:600;color:#6b7e9d}
.student-connection{display:flex;align-items:center;justify-content:center;gap:9px;background:#f1f5fa;border:1px solid #e0e7f1;border-radius:30px;padding:10px 16px;font-size:13px;font-weight:650;color:#657995;white-space:nowrap}.connection-dot{width:8px;height:8px;background:#94a3b8;border-radius:50%;flex-shrink:0}.connection-dot.connected{background:#109d6c}.connection-dot.lost{background:#d88718}.connection-dot.waiting{background:#94a3b8}
.student-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}.student-header-actions select{width:180px;max-width:220px;padding:11px 12px;border:1px solid #d9e0eb;border-radius:10px;color:#4b5871;background:#fff;font-size:14px;font-weight:500;margin:0}.student-header-actions .student-refresh{display:flex;align-items:center;gap:7px;color:#2149bc;border:1px solid #c4d9ff;border-radius:10px;padding:10px 14px;background:#eff6ff;font-size:13px;white-space:nowrap}.student-refresh svg{width:18px;height:18px}
.student-workspace{flex:1;display:flex;min-height:0}.student-sidebar{width:25vw;min-width:330px;max-width:440px;flex-shrink:0;background:#fff;border-right:1px solid #e0e7ef;overflow-y:auto;scrollbar-width:thin}
.sidebar-section{padding:20px;border-bottom:1px solid #edf1f6}.section-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.section-heading h2{font-size:17px;line-height:1.3;margin:0;display:flex;align-items:center;gap:8px;font-weight:750}.section-heading h2 svg{width:21px;height:21px;flex-shrink:0}.sidebar-count{display:inline-block;font-size:12px;font-weight:650;color:#647895;border:1px solid #e2e9f2;border-radius:20px;padding:4px 10px;background:#f7f9fc;white-space:nowrap}.sidebar-description{font-size:13px;color:#6b7e9b;line-height:1.6;margin:7px 0 13px}.sidebar-description:empty{display:none}
#student-buses{display:flex;flex-direction:column;gap:10px;max-height:46vh;overflow-y:auto;padding:2px;scrollbar-width:thin}.student-view .student-bus-card{width:100%;text-align:left;border:1px solid #e0e7ef;border-radius:11px;background:white;color:#172640;padding:14px;display:flex;flex-direction:column;gap:7px;transition:border-color .15s,background .15s;cursor:pointer}.student-bus-card:hover{border-color:#9cb7e5;background:#f8fbff}.student-bus-card.selected{border-color:#6f9ce7;background:#f0f6ff;box-shadow:inset 3px 0 #315ac8}.bus-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.bus-card-name{font-size:14px;font-weight:700;display:flex;align-items:center;gap:8px}.bus-card-name svg{width:19px;height:19px;color:#315ac8;flex-shrink:0}.bus-status{font-size:10px;font-weight:750;letter-spacing:.3px;border-radius:20px;padding:4px 8px;white-space:nowrap}.bus-status.live{color:#087b55;background:#e0f5ec}.bus-status.stale{color:#9a6b0d;background:#fff1d6}.bus-status.offline{color:#738299;background:#edf1f5}.bus-card-route{font-size:13px;font-weight:550;color:#506987}.bus-card-meta,.bus-card-registration{font-size:11px;color:#7a8ba2;line-height:1.5}.tracker-empty{min-height:130px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px 10px;gap:8px;color:#6f83a2;font-size:13px;line-height:1.65;width:100%}.tracker-empty small{color:#8796ac;font-size:12px}
.stop-actions{display:flex;align-items:center;gap:7px}.student-view .stop-map-button{font-size:11px;color:#445775;font-weight:650;border:1px solid #ced9ea;border-radius:7px;padding:5px 8px;background:white}.transit-stop-list{list-style:none;padding:0;margin:16px 0 0;max-height:32vh;overflow-y:auto;scrollbar-width:thin}.transit-stop-list li{position:relative;display:flex;align-items:center;gap:12px;min-height:48px;padding:7px 0;color:#425674;font-size:13px}.transit-stop-list li:not(:last-child)::after{content:'';position:absolute;left:12px;top:36px;bottom:-12px;border-left:1px dashed #c5d3e6}.stop-sequence{width:26px;height:26px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#eef4fd;color:#315ac8;font-size:11px;font-weight:700;border:1px solid #d6e3f6;border-radius:50%;z-index:1}
.student-sidebar-footer{padding:18px 20px;background:#f7f9fc;text-align:center;display:flex;flex-direction:column;gap:8px;font-size:12px;color:#72849e}.student-sidebar-footer a{color:#667c9a;font-weight:650;text-decoration:underline}.student-sidebar-footer span{font-size:11px}.sidebar-timetable{padding:20px;border-bottom:1px solid #edf1f6;font-size:13px}.sidebar-timetable summary{font-weight:650;cursor:pointer;color:#405875}.sidebar-timetable p{font-size:12px;color:#8190a6;margin:12px 0}.departure-row{padding:10px 0;display:flex;gap:12px;justify-content:space-between;border-bottom:1px solid #edf1f6;font-size:12px}.departure-row span{color:#6e829f}
.student-map-area{position:relative;flex:1;min-width:0;min-height:0;background:#edf1f5}.student-view #live-map{height:100%;width:100%;min-height:0;border:0;border-radius:0;z-index:0}.student-map-tools{position:absolute;right:18px;top:20px;display:flex;flex-direction:column;gap:10px;z-index:500}.student-view .student-map-tools>button,.map-follow-control{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid #e8edf3;border-radius:13px;background:white;color:#28459c;box-shadow:0 5px 16px #1932521a;padding:12px}.student-map-tools svg{width:24px;height:24px}.map-follow-control{position:relative;cursor:pointer}.map-follow-control input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.map-follow-control:has(input:checked){border-color:#8fafe8;background:#eaf2ff}.map-follow-control:has(input:disabled){opacity:.55;cursor:default}.map-follow-control:has(input:focus-visible){outline:3px solid #315ac8;outline-offset:3px}
.student-view #map-message{position:absolute;left:20px;bottom:110px;margin:0;border-radius:10px;padding:12px 16px;max-width:calc(100% - 100px);background:#fffbeb;border:1px solid #f2dfb3;box-shadow:0 3px 12px #19325210;z-index:500;font-size:12px}.student-view #map-message:empty{display:none}.selected-bus-info{position:absolute;bottom:28px;left:22px;z-index:500;max-width:calc(100% - 85px);padding:13px 18px;background:#fff;border:1px solid #e2e9f3;border-radius:12px;box-shadow:0 4px 18px #1b325521;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:12px;color:#6a7e9a}.selected-bus-info strong{font-size:14px;color:#28469b}.selected-bus-info small{font-size:11px;color:#8795a8}.selected-position-status.live{color:#0c8d62;background:transparent}.selected-position-status.stale{color:#a67616;background:transparent}.selected-position-status.offline{color:#7a869b}.campus-map-icon{background:transparent;border:0}.campus-pin{height:40px;display:flex;align-items:center;justify-content:center;background:var(--brand,#243e93);color:white;border:2px solid white;border-radius:10px;box-shadow:0 3px 10px #152f5544;font-family:Segoe UI,sans-serif;font-size:12px;font-weight:700;padding:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.student-view .leaflet-control-attribution{font-size:10px}.student-view #notice{font-size:12px;bottom:12px;max-width:calc(100vw - 40px)}
@media(max-width:1150px){.student-header{grid-template-columns:minmax(180px,1fr) auto}.student-connection{display:none}.student-sidebar{min-width:310px;width:34vw}.student-brand strong{font-size:17px}}
@media(max-width:720px){.student-view{overflow:auto}.student-view #app{height:auto;min-height:100dvh}.student-header{height:auto;min-height:76px;padding:12px 14px;gap:12px;grid-template-columns:1fr}.student-brand strong{font-size:17px}.student-logo{width:44px;height:44px}.student-logo img{width:36px;height:36px}.student-header-actions{justify-content:stretch;gap:10px}.student-header-actions select{flex:1;width:auto;max-width:none}.student-workspace{flex-direction:column}.student-map-area{order:0;flex:none;height:55vh;min-height:340px}.student-sidebar{order:1;width:100%;max-width:none;min-width:0;overflow:visible;border-right:0}.student-map-tools{top:14px;right:14px}.student-view .student-map-tools>button,.map-follow-control{width:42px;height:42px;border-radius:10px;padding:10px}.selected-bus-info{left:12px;bottom:24px;padding:10px 13px;gap:5px 10px;max-width:calc(100% - 60px)}.sidebar-section{padding:18px}#student-buses{max-height:55vh}.college-logo-field{align-items:flex-start;gap:12px;padding:12px}.college-logo-frame{width:60px;height:60px}.college-logo-frame img{width:50px;height:50px}}
