:root{font-family:Segoe UI,Arial,sans-serif;color:#193b39;background:#f3f6f4;font-size:15px;--green:#146553;--line:#dbe5df}*{box-sizing:border-box}body{margin:0}header{height:86px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 4vw;gap:16px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;font-weight:800;letter-spacing:1px}.logo{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--green);color:white;font-size:25px}.brand small{display:block;font-size:11px;letter-spacing:0;font-weight:500;margin-top:5px;color:#718781}#account{display:flex;align-items:center;gap:15px;font-size:13px}main{max-width:1500px;margin:auto;padding:32px 4vw 70px}h1{font-size:30px;letter-spacing:-1px;margin:8px 0 12px}h2{font-size:20px;margin:0 0 18px}h3{font-size:16px;margin:0 0 14px}p{line-height:1.6}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--green)}.intro{display:flex;justify-content:space-between;gap:25px;align-items:center;margin-bottom:24px}.intro p{color:#72847d;margin:0}.badge{background:#e4f1e8;padding:8px 13px;border-radius:30px;font-size:12px;color:var(--green);white-space:nowrap}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:25px 0}.card,.panel{background:white;border:1px solid var(--line);border-radius:15px;padding:22px}.card strong{display:block;font-size:32px;letter-spacing:-1px;margin:10px 0 5px}.card small,.hint{color:#73847c;font-size:12px;line-height:1.6}.card .label{font-weight:700}.card:nth-child(2){border-top:3px solid #e9ae3f}.card:nth-child(3){border-top:3px solid #749cce}.columns{display:grid;grid-template-columns:330px 1fr;gap:22px;align-items:start}.panel{margin-bottom:20px}label{display:block;font-size:12px;font-weight:600;margin-bottom:15px}input,select,textarea{display:block;width:100%;border:1px solid #cbd9d1;border-radius:8px;background:#fff;padding:11px 12px;color:#243d36;font:inherit;margin-top:7px;min-height:43px}textarea{resize:vertical}button{background:var(--green);color:white;border:0;border-radius:8px;padding:12px 17px;cursor:pointer;font:inherit;font-weight:600}button:hover{filter:brightness(.92)}button:disabled{opacity:.5;cursor:wait}.secondary{background:#edf2ee;color:#38534b}.danger{background:#fff0ed;color:#bd4e3d}.wide{width:100%}.actions{display:flex;gap:8px;flex-wrap:wrap}.toolbar{display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:18px}.toolbar label{margin:0;min-width:150px}.filters{display:flex;gap:12px;flex-wrap:wrap}.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:10px}table{border-collapse:collapse;width:100%;font-size:12px}th,td{padding:12px 10px;border:1px solid var(--line);text-align:left}th{background:#f0f5f1;font-weight:700;color:#567268}td small{display:block;color:#74887d;margin-top:4px}.schedule{min-width:800px;table-layout:fixed}.schedule th:first-child{width:75px;position:sticky;left:0;background:#eef4f0;z-index:1}.schedule td{padding:4px;height:53px;min-width:65px}.schedule th{text-align:center}.slot{background:#e0efe8;color:#17634f;border-left:3px solid #378e6d;border-radius:5px;height:45px;font-size:11px;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;padding:3px;cursor:pointer}.slot.mine{background:#fff0ca;border-color:#d8a440;color:#75591f}.unavailable{background:repeating-linear-gradient(135deg,#eff2f0,#eff2f0 4px,#e8ece9 4px,#e8ece9 5px)}.legend{display:flex;gap:15px;font-size:11px;color:#6c8277;margin:15px 0}.legend span:before{content:'';display:inline-block;width:10px;height:10px;margin-right:6px;background:#e0efe8;border-radius:2px}.legend span:nth-child(2):before{background:#fff0ca}.legend span:nth-child(3):before{background:#e8ece9}.empty{padding:30px;text-align:center;color:#73847c}.auth{max-width:460px;margin:30px auto}.auth h1{font-size:28px}.auth .actions{margin-bottom:20px}.auth .actions button{flex:1}.adminbox summary{cursor:pointer;font-weight:700;margin-bottom:20px}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.sectionhead h2{margin:0}#toast{display:none;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#193b39;color:white;border-radius:10px;padding:14px 22px;z-index:20;max-width:92vw}dialog{border:1px solid var(--line);border-radius:16px;width:520px;max-width:94vw;padding:28px}dialog::backdrop{background:#122e2780}.warning{color:#b36f15}.status{font-size:11px;display:inline-block;padding:4px 7px;border-radius:5px;background:#edf5ef}.note{padding:13px;background:#f6f7ed;border-radius:8px;font-size:12px;line-height:1.6;color:#727248}.footerhint{font-size:11px;color:#819087;margin-top:25px}.hide{display:none!important}@media(max-width:950px){.columns{grid-template-columns:1fr}.cards{gap:10px}.card{padding:14px}.intro{align-items:start}.toolbar{align-items:start}}@media(max-width:550px){header{padding:0 16px;height:75px}.brand small{font-size:9px}#account{gap:7px}#account button{padding:8px;font-size:11px}main{padding:24px 14px}.cards{grid-template-columns:1fr}.card{display:flex;align-items:center;justify-content:space-between;gap:10px}.card strong{font-size:26px;margin:0}.card small{max-width:110px}.intro .badge{display:none}h1{font-size:25px}.panel{padding:16px}.row{grid-template-columns:1fr}.filters{width:100%}.filters label{flex:1}.toolbar .actions{width:100%}}@media print{header,#account,.bookingpanel,.adminbox,.toolbar button,.actions,.footerhint{display:none!important}main{padding:0;max-width:none}.columns{display:block}.panel{border:0;padding:0}.tablewrap{overflow:visible}.schedule{min-width:0}.slot{font-size:9px;color:black}.cards{display:none}body{background:white}.schedule td{height:40px}.slot{height:35px}h1{font-size:18px}@page{size:A3 landscape;margin:10mm}}
:root{color-scheme:light}.columns>*{min-width:0}.card strong small{display:block;font-weight:400;letter-spacing:0;margin-top:5px}.slot{width:100%}
@media(max-width:550px){header{height:auto;min-height:75px;align-items:flex-start;flex-direction:column;padding:12px 16px;gap:10px}#account{flex-wrap:wrap;width:100%;justify-content:flex-end}#account span{margin-right:auto}.toolbar label{min-width:0}.filters label{min-width:120px}.panel{max-width:100%}.tablewrap{max-width:100%}.card strong small{margin:0}}
.teacher-view main{max-width:1100px}.teacher-view .intro{margin-bottom:16px}.teacher-view .intro h1{font-size:26px}.teacher-view .columns{grid-template-columns:320px 1fr;gap:16px}.teacher-view .bookingpanel h2{margin-bottom:8px}.teacher-view .bookingpanel .hint{margin:0 0 14px}.teacher-bookings-wrap{border:0;overflow:visible}.booking-list{display:grid;gap:12px}.booking-item{border:1px solid var(--line);border-radius:10px;padding:14px;overflow-wrap:anywhere}.booking-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.hours-pill{background:#e6f3ec;color:var(--green);border-radius:7px;padding:7px 10px;font-weight:750;white-space:nowrap}.booking-status{font-size:12px;color:#678078;margin:10px 0}.booking-times{padding-left:18px;font-size:13px;line-height:1.6}.booking-times li{margin-bottom:8px}.booking-item .actions button{flex:1;min-height:44px}.teacher-view #csv{margin-top:12px;font-size:12px}.teacher-view #schedulepanel .note{margin-bottom:0}.teacher-view .footerhint{margin:10px 0}
@media(max-width:700px){.teacher-view main{padding:14px 12px 28px}.teacher-view .columns{display:block}.teacher-view .intro{margin:0 0 12px}.teacher-view .intro h1{font-size:22px;margin:0 0 5px;letter-spacing:-.4px}.teacher-view .intro .eyebrow,.teacher-view .intro .badge{display:none}.teacher-view .intro p{font-size:12px}.teacher-view .panel{padding:14px;border-radius:12px;margin-bottom:12px}.teacher-view h2{font-size:17px;margin-bottom:10px}.teacher-view .footerhint{display:none}.teacher-view main>.toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;align-items:end;margin-bottom:12px}.teacher-view main>.toolbar>label{grid-column:1;grid-row:1;min-width:0}.teacher-view main>.toolbar>#refresh{grid-column:2;grid-row:1;min-height:44px;font-size:12px;padding:10px}.teacher-view main>.toolbar>.hint{grid-column:1/-1;font-size:11px}.teacher-view #bookform{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(85px,1fr);gap:12px}.teacher-view #bookform label{margin:0}.teacher-view #bookform>button{grid-column:1/-1;min-height:46px}.teacher-view input,.teacher-view select,.auth-view input,.auth-view select{font-size:16px;min-height:44px}.teacher-view .cards{grid-template-columns:1fr;margin:12px 0}.teacher-view .card{padding:10px}.teacher-view .card strong{font-size:22px}.teacher-view .card .label{font-size:12px}.teacher-view .empty{padding:16px 8px;font-size:13px;margin:0}.teacher-view #schedulepanel .note{font-size:12px;padding:10px;margin-top:0}.auth-view main{padding:18px 12px}.auth-view .auth{margin:0 auto;padding:20px}.auth-view .auth h1{font-size:24px}.teacher-view header{padding:10px 12px;gap:8px}.teacher-view .logo{width:32px;height:32px;border-radius:9px;font-size:20px}.teacher-view .brand{font-size:13px}.teacher-view .brand small{display:none}.teacher-view #account{gap:6px;font-size:12px}.teacher-view #account button{min-height:36px;padding:8px 10px;font-size:12px}dialog{padding:18px}}
.teacher-view .bookingpanel>.hint:last-child{margin-bottom:0}
@media(max-width:700px){.teacher-view .cards{display:none}.teacher-view .booking-item{padding:12px}.teacher-view .booking-heading{font-size:13px}.teacher-view .booking-list{gap:10px}.teacher-view .sectionhead{margin-bottom:12px}}
