/* HKW timetable visual overlay v7.6: scoped to timetable, no global chrome overrides */
.tt-page{--tt-blue:#075fbd;--tt-navy:#073566;--tt-border:#dbe9fa;--tt-shadow:0 16px 42px rgba(20,77,145,.11);font-family:inherit;color:#12385f;background:linear-gradient(143deg,#f3f8ff 0%,#eaf4ff 54%,#f9fbff 100%);position:relative;isolation:isolate;padding-bottom:32px;min-height:72vh}
.tt-page:before{content:"";position:absolute;inset:160px 0 0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 3% 30%,#cee5ff91,transparent 40%),radial-gradient(ellipse at 100% 80%,#cbdfff80,transparent 45%)}
.tt-shell{width:min(1360px,calc(100% - 40px));margin-inline:auto}
.tt-hero{position:relative;min-height:226px;padding:24px 0 50px;overflow:hidden;background:linear-gradient(90deg,#e7f3ffec 0%,#e8f3ffe8 29%,#e6f3ffc5 57%,#eff8ff47 100%),url('/assets/images/timetable-hero.png') center center/cover no-repeat;border-bottom:1px solid #bad5f6;box-shadow:inset 0 -13px 30px #fff9}
.tt-hero:after{content:"";position:absolute;bottom:-60px;left:-8%;width:120%;height:105px;background:linear-gradient(120deg,#fff9,#e8f5ff9c);transform:rotate(-2deg);border-top:1px solid #fff9;pointer-events:none}
.tt-hero-inner{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:18px}
.tt-heading{max-width:700px}.tt-heading .eyebrow{font-size:11px;color:#056fe1;font-weight:800;letter-spacing:2px}.tt-heading h1{display:flex;align-items:center;gap:11px;font-size:clamp(25px,2.9vw,37px);line-height:1.2;color:#082d60;margin:8px 0 8px;font-weight:800;letter-spacing:-.03em;text-shadow:0 2px 0 #fff8}.tt-title-icon{display:grid;place-items:center;color:#0b85ff;background:#e2f2ff;border:1px solid white;border-radius:13px;width:45px;height:45px;box-shadow:0 6px 17px #0e80d52e}.tt-title-icon svg{width:25px;height:25px}.tt-heading p{margin:0;color:#5d7799;font-size:13px}
.tt-hero-actions{display:flex;align-items:flex-end;flex-direction:column;gap:16px}.tt-hero-script{display:block;color:#3263a3;font-weight:700;font-style:italic;font-size:18px;text-align:center;transform:rotate(-5deg);text-shadow:0 2px 5px #fff}
.tt-page .print{display:inline-flex;align-items:center;gap:9px;background:linear-gradient(145deg,#168eff,#0059da);border:1px solid #66afff;border-radius:12px;color:white;font-weight:800;box-shadow:0 10px 20px #076cd75c,inset 0 1px #ffffff75;padding:13px 20px;transition:transform .2s,box-shadow .2s;white-space:nowrap}.tt-page .print:hover{transform:translateY(-3px);box-shadow:0 14px 24px #076cd780}.tt-page .print svg{width:18px;height:18px}
.tt-page .tabs{display:flex;gap:8px;margin:19px 0 0;flex-wrap:wrap}.tt-page .tabs a{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#fffefa;border-radius:11px;padding:11px 17px;color:#184c85;border:1px solid #dbe9fa;box-shadow:0 4px 13px #12498020;text-decoration:none;font-weight:800;font-size:13px;transition:transform .2s,background .2s,box-shadow .2s}.tt-page .tabs a.active{background:linear-gradient(135deg,#075394,#082c59);color:white;box-shadow:0 9px 19px #04397945}.tt-page .tabs a:hover{transform:translateY(-2px);box-shadow:0 8px 17px #1249802c}.tt-page .tabs svg{width:17px;height:17px}
.tt-dashboard{position:relative;z-index:2;margin-top:-24px}.tt-overview{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(160px,.85fr) minmax(160px,.85fr);gap:12px;margin-bottom:14px;align-items:stretch}.tt-page .filters{display:grid;grid-template-columns:35px minmax(0,1fr) 35px minmax(0,1fr);align-items:center;gap:11px;padding:16px;margin:0;background:linear-gradient(135deg,#ffffff,#f6faff);border:1px solid #fff;box-shadow:var(--tt-shadow);border-radius:19px;min-width:0}.tt-page .filters label{min-width:0;color:#245078;font-size:12px;font-weight:800}.tt-page .filters select{max-width:100%;min-width:0;white-space:nowrap;text-overflow:ellipsis;padding:10px;margin-top:7px;border-radius:9px;border:1px solid #c8daf0;background:#fff;font-size:12px;color:#153e71}.tt-filter-icon{height:35px;width:35px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#e3f4ff,#eff8ff);box-shadow:0 4px 13px #197cd326;color:#176abb}.tt-filter-icon svg{width:19px;height:19px}
.tt-stat{display:flex;align-items:center;gap:12px;position:relative;overflow:hidden;padding:17px 14px;border:1px solid white;border-radius:18px;box-shadow:var(--tt-shadow);min-width:0;transition:transform .22s,box-shadow .22s}.tt-stat:hover{transform:translateY(-4px);box-shadow:0 20px 38px #1754a32d}.tt-stat-blue{background:linear-gradient(125deg,#eff9ff,#d5eaff)}.tt-stat-gold{background:linear-gradient(125deg,#fffdf4,#fff0c9)}.tt-stat-icon{flex:none;width:43px;height:43px;display:grid;place-items:center;border-radius:12px;color:white;background:linear-gradient(140deg,#1cafff,#0860df);box-shadow:0 7px 15px #0667d340}.tt-stat-gold .tt-stat-icon{background:linear-gradient(140deg,#ffcd2b,#eaa100);box-shadow:0 7px 15px #d8940050}.tt-stat-icon svg{width:22px;height:22px}.tt-stat-copy{z-index:1;display:flex;flex-direction:column;line-height:1.2}.tt-stat-copy strong{font-size:11px;color:#16446c}.tt-stat-copy b{font-size:34px;color:#082c64;line-height:1.05;margin:4px 0}.tt-stat-copy small{font-size:11px;color:#456b96}.tt-stat-decor{position:absolute!important;right:10px;bottom:12px;width:27px!important;height:27px!important;color:#56a7fa;opacity:.62}.tt-stat-gold .tt-stat-decor{color:#efa400}
.tt-panel{border:1px solid #fff;background:linear-gradient(145deg,#fffffff0,#f8fbffed);padding:16px 15px 12px;box-shadow:0 18px 45px #123e771c, inset 0 1px #fff;border-radius:23px}.tt-page .meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:3px 1px 12px}.tt-page .meta h2{display:flex;align-items:center;gap:8px;color:#093a74;font-size:18px;margin:0;font-weight:800}.tt-page .meta h2 svg{width:21px;color:#1168c1}.tt-page .meta span{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#6783a4}.tt-page .meta span svg{width:14px;height:14px}.tt-page .legend{margin:0 0 11px;gap:6px}.tt-page .legend-title{font-weight:800;color:#1a4b7c}.tt-page .legend-item{font-size:10px;font-weight:800;padding:5px 10px;box-shadow:inset 0 1px #fff9,0 3px 7px #052b5010;transition:transform .18s}.tt-page .legend-item:hover{transform:translateY(-2px)}
.tt-page .tablewrap{background:#fff;border:1px solid #d7e6f9;overflow:auto;border-radius:17px;box-shadow:0 9px 24px #14477c14}.tt-page .timetable{width:100%;min-width:1080px;table-layout:fixed;border-collapse:separate;border-spacing:0}.tt-page .timetable th,.tt-page .timetable td{border:0;border-right:1px solid #dfe9f5;border-bottom:1px solid #dfe9f5;padding:6px;vertical-align:middle}.tt-page .timetable thead th{background:linear-gradient(145deg,#0b5698,#062e5f);height:55px;color:white;font-size:12px;top:0;text-shadow:0 1px 1px #10294b}.tt-page .timetable thead th small{color:#c3dfff;font-size:10px;margin-top:4px}.tt-page .timetable .day-col{min-width:95px;width:95px}.tt-page .timetable thead .day-col{background:linear-gradient(135deg,#064377,#092b58)}.tt-page .timetable tbody .day-col{font-size:13px;background:#e5f2ff;text-align:center;font-weight:800}.tt-page .timetable tbody .day-col svg{display:block;width:18px;height:18px;margin:0 auto 6px;color:#1284f3}.tt-page .timetable tbody .day-TU{background:#fff3cf!important}.tt-page .timetable tbody .day-WE{background:#e5f8e8!important}.tt-page .timetable tbody .day-TH{background:#ffe9e8!important}.tt-page .timetable tbody .day-FR{background:#f0e9ff!important}.tt-page .timetable td{background:#ffffffec;height:105px}.tt-page .lesson{position:relative;min-height:83px;margin:1px 0 3px;padding:8px 6px;border-radius:10px;box-shadow:0 4px 9px #144b8015,inset 0 1px #ffffffae;border-left-width:4px;transition:transform .18s,box-shadow .18s}.tt-page .lesson:hover{transform:translateY(-3px) scale(1.012);box-shadow:0 9px 17px #12477f30;z-index:1}.tt-page .lesson strong{font-size:11px;line-height:1.35}.tt-page .lesson .lesson-code{font-size:9px}.tt-page .lesson .lesson-related,.tt-page .lesson small{font-size:9px;line-height:1.35;overflow-wrap:anywhere}.tt-page .no-lesson{color:#9bb0c9;font-size:16px}.tt-page .timetable .lunch-head{background:linear-gradient(145deg,#ffba00,#e98700)!important}.tt-page .timetable .lunch-cell{background:linear-gradient(165deg,#fff9dd,#fff0c3);color:#a14f09}.tt-page .timetable .lunch-icon{color:#da780a}.tt-page .timetable tbody tr:hover td:not(.lunch-cell){background:#f9fcff}.tt-source{font-size:11px;text-align:center;color:#7f98b7;margin:10px 0 0}.tt-page .empty{border:1px solid #fff;box-shadow:var(--tt-shadow)}
@media(prefers-reduced-motion:no-preference){.tt-panel,.tt-overview{animation:ttRise .5s ease-out both}.tt-panel{animation-delay:.1s}@keyframes ttRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:1100px){.tt-overview{grid-template-columns:minmax(0,1fr) 180px 180px}.tt-shell{width:min(100% - 28px,1360px)}.tt-page .filters{grid-template-columns:28px minmax(0,1fr) 28px minmax(0,1fr);gap:7px}.tt-stat{gap:7px}.tt-stat-copy b{font-size:28px}}
@media(max-width:850px){.tt-hero{min-height:205px}.tt-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-page .filters{grid-column:1/-1}.tt-page .tablewrap{scrollbar-width:thin}.tt-hero-script{display:none}.tt-page .meta h2{font-size:16px}}
@media(max-width:600px){.tt-shell{width:calc(100% - 22px)}.tt-hero{padding:23px 0 40px;min-height:225px;background-position:55% center}.tt-hero-inner{display:block}.tt-heading h1{font-size:25px}.tt-heading p{font-size:12px}.tt-hero-actions{align-items:flex-start;margin-top:14px}.tt-page .tabs{margin-top:14px;gap:7px}.tt-page .tabs a{padding:9px 10px;font-size:11px;flex:1}.tt-page .print{padding:9px 12px;font-size:12px}.tt-dashboard{margin-top:-12px}.tt-overview{gap:8px}.tt-page .filters{grid-template-columns:28px minmax(0,1fr);padding:12px}.tt-page .filters label{font-size:12px}.tt-stat{padding:11px 8px;gap:7px}.tt-stat-icon{width:34px;height:34px}.tt-stat-icon svg{width:19px;height:19px}.tt-stat-copy b{font-size:28px}.tt-stat-copy strong{font-size:10px}.tt-stat-decor{display:none}.tt-panel{padding:11px 8px}.tt-page .meta span{font-size:10px}.tt-page .legend-item{font-size:9px;padding:4px 7px}.tt-page .timetable{min-width:1020px}}
@media print{.tt-page{background:#fff!important;padding:0!important;min-height:0}.tt-page:before,.tt-hero,.tt-overview,.tt-page .tabs,.tt-page .print{display:none!important}.tt-dashboard,.tt-shell{margin:0!important;width:100%!important;max-width:none!important}.tt-panel{padding:0!important;border:0!important;box-shadow:none!important;background:white!important;animation:none!important}.tt-page .tablewrap{box-shadow:none!important;border-radius:0!important;overflow:visible!important}.tt-page .timetable{min-width:0!important;width:100%!important;table-layout:fixed}.tt-page .timetable th,.tt-page .timetable td{padding:3px!important;border:1px solid #bacde0!important}.tt-page .timetable thead th{font-size:8px;height:auto;position:static!important}.tt-page .timetable thead th small{font-size:7px}.tt-page .timetable .day-col{position:static!important;min-width:0!important;width:60px!important}.tt-page .timetable tbody .day-col svg{display:none}.tt-page .timetable td{height:auto!important}.tt-page .lesson{min-height:0!important;box-shadow:none!important;padding:3px!important;margin:0 0 2px!important;transform:none!important}.tt-page .lesson strong{font-size:8px}.tt-page .lesson small,.tt-page .lesson .lesson-related{font-size:7px}.tt-page .meta{margin-bottom:5px}.tt-page .meta h2{font-size:14px}.tt-page .legend{margin-bottom:5px}.tt-page .legend-item{font-size:7px;padding:2px 5px}.tt-source{margin:4px 0 0;font-size:8px}.tt-page .timetable .lunch-cell,.tt-page .timetable .lunch-head{print-color-adjust:exact;-webkit-print-color-adjust:exact}@page{size:A4 landscape;margin:7mm}}
