:root{
--bg:#f5f7fb;--card:#fff;--text:#172033;--muted:#6c7485;--line:#e3e7ef;
--primary:#315efb;--primary-dark:#2448c8;--free:#edf7ef;--mine:#eaf0ff;--taken:#fff0f0;
}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5%;position:sticky;top:0;z-index:5}.brand{font-weight:800;letter-spacing:-.02em}.userbar{color:var(--muted);font-size:14px}.userbar a{color:var(--text);font-weight:700;text-decoration:none}
.container{width:min(1180px,92%);margin:36px auto 80px}.hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:24px}.eyebrow{font-size:12px;letter-spacing:.14em;color:var(--primary);font-weight:800}.hero h1{font-size:clamp(28px,4vw,44px);margin:7px 0}.hero p{margin:0;color:var(--muted)}
.legend{display:flex;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:13px}.legend span{display:flex;align-items:center;gap:7px}.dot{width:10px;height:10px;border-radius:50%;display:inline-block;border:1px solid #ccd2df}.dot.free{background:#fff}.dot.mine{background:var(--primary)}.dot.taken{background:#e65b5b}
.toolbar{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:16px}.toolbar label,.login-card label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700}.toolbar select,.login-card input{height:44px;border:1px solid #d7dce6;border-radius:10px;background:#fff;padding:0 12px;font:inherit;color:var(--text);outline:none}.toolbar select{max-width:340px}.toolbar select:focus,.login-card input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #315efb18}
.schedule-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 30px #1720330b}.schedule{border-collapse:separate;border-spacing:0;min-width:760px;width:100%}.schedule th,.schedule td{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.schedule tr:last-child th,.schedule tr:last-child td{border-bottom:0}.schedule th:last-child,.schedule td:last-child{border-right:0}.schedule thead th{height:52px;background:#fbfcfe;font-size:13px;position:sticky;top:0;z-index:2}.time-head{width:90px}.time{width:90px;text-align:center;color:var(--muted);font-size:13px;background:#fbfcfe;position:sticky;left:0;z-index:1}.slot{height:70px;padding:5px;background:#fff}.slot-label{display:flex;align-items:center;justify-content:center;gap:8px;height:100%;cursor:pointer;border-radius:11px;transition:.15s}.slot-label:hover{background:#f5f7fb}.slot-check{position:absolute;opacity:0;pointer-events:none}.seat{width:32px;height:32px;border:2px solid #cbd2df;border-radius:9px;display:grid;place-items:center;background:#fff;transition:.15s}.checkmark{display:none;color:#fff;font-weight:900}.slot-status{font-size:11px;color:#778095}.slot.mine .seat,.slot-label:has(.slot-check:checked) .seat{background:var(--primary);border-color:var(--primary)}.slot-label:has(.slot-check:checked) .checkmark{display:block}.slot.mine .slot-status{color:var(--primary);font-weight:800}.slot.taken{background:var(--taken)}.slot.taken .seat{background:#e65b5b;border-color:#e65b5b}.slot.taken .slot-label{cursor:not-allowed}.slot.taken .slot-status{color:#bd3f3f;font-weight:700}.actions{display:flex;justify-content:flex-end;padding:18px 0}.btn{border:0;border-radius:11px;height:44px;padding:0 18px;font:inherit;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.btn.primary{background:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary-dark)}.btn.secondary{background:#eef1f7;color:var(--text)}.btn.wide{width:100%}.alert{border-radius:11px;padding:12px 14px;margin:12px 0;font-size:14px}.alert.error{background:#fff0f0;color:#a93636}.alert.success{background:#edf8f0;color:#23763b}.hidden{display:none}
.my-bookings{margin-top:28px}.my-bookings h2,.teacher-section h2{font-size:20px}.booking-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.booking{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;justify-content:space-between;gap:10px;align-items:center}.booking strong{display:block}.booking small{color:var(--muted)}.cancel{border:0;background:#fff0f0;color:#a93636;border-radius:8px;padding:8px;cursor:pointer;font-weight:700}
.teacher-section{margin-top:30px}.teacher-slot{height:70px;text-align:center;padding:6px;font-size:12px}.teacher-slot.occupied{background:#eaf0ff}.teacher-slot.available{background:#fff;color:#7a8292}.teacher-slot strong,.teacher-slot small{display:block}.teacher-slot small{color:#69748a;margin-top:3px;overflow:hidden;text-overflow:ellipsis}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;box-shadow:0 20px 50px #17203312}.login-card h1{margin:22px 0 6px}.muted,.hint{color:var(--muted)}.login-card form{display:grid;gap:15px;margin-top:22px}.text-link{display:block;text-align:center;margin-top:18px;color:var(--primary);font-weight:700;text-decoration:none}.hint{font-size:12px;text-align:center;margin:18px 0 10px}
@media(max-width:700px){.topbar{padding:0 4%;height:62px}.userbar{font-size:12px}.hero{display:block}.legend{margin-top:18px}.container{margin-top:24px}.slot{height:64px}.seat{width:29px;height:29px}.slot-status{display:none}.schedule{min-width:690px}}
