*{box-sizing:border-box}body{margin:0;background:#edf3f8;color:#172a3a;font:15px system-ui,-apple-system,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:12px;padding:12px 16px;background:#299bd6;color:white;font-weight:600}button.secondary{background:#e8f3fa;color:#238ac2}button.danger{background:#fff0ef;color:#d45858}input,textarea,select{width:100%;padding:13px;border:1px solid #dbe5ec;border-radius:12px;background:#f7fafc;color:#172a3a;margin:6px 0 12px}textarea{min-height:88px;resize:vertical}label{font-size:13px;color:#688090}h1{font-size:28px;margin:8px 0}h2{font-size:20px;margin:0 0 16px}h3{margin:0 0 8px;font-size:16px}p{line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}small,.muted{color:#78909f;font-size:13px}.shell{max-width:1100px;margin:auto;display:grid;grid-template-columns:240px 1fr;min-height:100vh}aside{padding:28px 18px;background:#fff;border-right:1px solid #e4edf3;position:sticky;top:0;height:100vh}.brand{font-size:22px;font-weight:800;color:#238fc8;margin-bottom:30px}.brand small{display:block;font-weight:400;font-size:12px;margin-top:6px}nav{display:grid;gap:6px}nav button{background:transparent;color:#6e8595;text-align:left}nav button.active{background:#eaf5fc;color:#228ec8}main{padding:28px;max-width:800px;width:100%;margin:auto}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.card{background:white;border:1px solid #e4edf3;border-radius:18px;padding:22px;margin-bottom:16px;box-shadow:0 4px 16px #1d567005}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.avatar{height:48px;width:48px;flex-shrink:0;border-radius:50%;background:linear-gradient(135deg,#48b5e4,#4689cc);color:white;display:grid;place-items:center;font-size:20px;font-weight:700;object-fit:cover}.large{height:84px;width:84px;font-size:34px}.grow{flex:1;min-width:0}.pill{font-size:11px;background:#eaf5fc;color:#298bc0;border-radius:8px;padding:4px 8px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.auth{max-width:440px;margin:6vh auto;padding:24px}.hero{background:linear-gradient(135deg,#299bd6,#477bd0);color:white;border:0}.hero .muted{color:#d4ecfa}.empty{text-align:center;padding:30px 10px;color:#78909f}.tabs{display:flex;gap:8px;margin:22px 0}.tabs button{flex:1}.message{max-width:85%;background:white;border-radius:16px 16px 16px 4px;padding:12px 16px;margin:10px 0;border:1px solid #e2ebf1}.message.mine{margin-left:auto;background:#dff1fc;border-radius:16px 16px 4px 16px}.messages{max-height:55vh;overflow:auto;padding:8px;background:#e8f0f5;border-radius:16px}.message p{margin:6px 0}.check{display:flex;gap:10px;align-items:center;margin:10px 0}.check input{width:auto;margin:0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}#toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#203c50;color:white;padding:14px 20px;border-radius:14px;display:none;z-index:9;width:max-content;max-width:90vw}a{color:#268fc8}form button[type=submit]{width:100%}.click{cursor:pointer}.posttext{white-space:pre-wrap}.status{font-size:12px;color:#5c9b78}button:disabled{opacity:.5;cursor:wait}@media(max-width:700px){.shell{display:block}aside{height:auto;position:fixed;bottom:0;top:auto;width:100%;z-index:3;padding:8px 4px;border-top:1px solid #e3edf3;border-right:0}.brand{display:none}nav{display:flex;justify-content:space-around;gap:0}nav button{padding:9px 5px;font-size:10px;text-align:center;border-radius:10px}nav button .ico{display:block;font-size:20px;margin-bottom:3px}main{padding:22px 16px 100px}.card{padding:18px;border-radius:16px}.auth{margin:2vh auto}.top{margin-bottom:18px}.top h1{font-size:24px}.grid{gap:8px}.actions button{padding:10px 12px}}
@keyframes enter-card{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes pop-message{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes ripple{to{transform:translate(-50%,-50%) scale(9);opacity:0}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes toast-in{from{opacity:0;bottom:80px}to{opacity:1;bottom:90px}}
.card-enter{animation:enter-card .28s ease-out both;animation-delay:var(--delay,0ms)}
.message-new{animation:pop-message .22s ease-out both}
button{position:relative;overflow:hidden;transition:background-color .18s,box-shadow .18s,transform .15s}
button:active{transform:scale(.97)}button:hover{box-shadow:0 3px 12px #299bd622}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #299bd6;outline-offset:3px}
input,textarea,select{transition:border-color .18s,box-shadow .18s}input:focus,textarea:focus,select:focus{border-color:#299bd6;box-shadow:0 0 0 3px #299bd612}
.ripple{position:absolute;pointer-events:none;width:40px;height:40px;border-radius:50%;background:currentColor;opacity:.15;transform:translate(-50%,-50%) scale(0);animation:ripple .5s ease-out forwards}
button:disabled:after{content:'';display:inline-block;width:12px;height:12px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}
#toast{animation:toast-in .2s ease-out}.avatar{transition:transform .18s}.click:hover .avatar{transform:scale(1.04)}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.ripple{display:none}}
.app-icon{width:66px;height:66px;border-radius:18px;display:block;margin-bottom:16px}.brand-icon{width:30px;height:30px;vertical-align:middle;margin-right:8px;border-radius:8px}
.week-caption{text-align:center;display:grid;gap:5px}.week-caption small{font-size:12px}.board-controls .row button{white-space:nowrap}
.schedule-paper{background:white;border:1px solid #d9e3eb;border-radius:16px;overflow:hidden;box-shadow:0 4px 20px #183c5008}.paper-title{padding:22px 18px;text-align:center;background:#f9fbfd}.paper-title small{color:#70909f;font-size:11px;letter-spacing:1px}.paper-title h2{margin:8px 0 0;font-size:19px;line-height:1.4}.paper-title p{font-size:13px;color:#607e90;margin-bottom:0}
.schedule-scroll{overflow:auto;max-height:66vh;overscroll-behavior:contain;scrollbar-color:#9abaca #edf3f8;scrollbar-width:thin}.schedule-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px;table-layout:fixed}.schedule-table th,.schedule-table td{border-right:1px solid #d8e2ea;border-bottom:1px dashed #d8e2ea;background:#fff}.schedule-table thead th{position:sticky;top:0;z-index:4;background:#edf4f8;border-bottom:2px solid #a7c1d2;height:58px}.schedule-table th.group-header{width:128px;min-width:128px}.group-header small{display:block;margin-top:4px;font-size:10px;color:#238dc1}.schedule-table .sticky-day{position:sticky;left:0;z-index:3;width:104px;min-width:104px;background:#f4f8fa}.schedule-table .sticky-number{position:sticky;left:104px;z-index:3;width:34px;min-width:34px;background:#f8fafc}.schedule-table thead .sticky-day,.schedule-table thead .sticky-number{z-index:6}.schedule-table .class-hour th,.schedule-table .class-hour td{background:#f2f6f9;border-bottom:2px solid #bacbd7;font-size:11px}.schedule-table .day-start th,.schedule-table .day-start td{border-top:2px solid #bacbd7}.day-label{padding:8px 6px;text-align:left;vertical-align:bottom}.day-label small,.day-label strong,.day-label span{display:block}.day-label small{font-size:10px}.day-label strong{font-size:11px;margin:3px 0}.day-label span{font-size:15px;color:#3e708b;margin-bottom:10px}.lesson-number{font-size:18px;color:#668190;text-align:center;font-weight:500}.schedule-cell{width:128px;min-width:128px;height:62px;vertical-align:middle}.schedule-table .my-group{background:#eff9ff}.schedule-table thead .my-group{background:#dff2fc;color:#168cc1}.cell-content,.cell-edit{padding:9px 10px;position:relative;min-height:61px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px}.cell-content b,.cell-edit b{font-weight:600;overflow-wrap:anywhere;white-space:normal}.cell-edit{background:transparent;color:inherit;border-radius:0;width:100%;text-align:left;font-size:13px;font-weight:400}.cell-edit:hover{background:#dff1fc;box-shadow:none}.cell-edit:active{transform:none}.cell-edit small,.cell-content small{font-size:10px;line-height:1.3}.cell-empty{color:#c5d4df;font-size:16px;align-self:center}.cell-room{position:absolute;right:5px;top:4px;font-size:10px;color:#46829f;background:#e6f0f6;border-radius:4px;padding:2px 4px}.cell-edit b,.cell-content b{padding-right:8px}.practice-cell .cell-content,.practice-cell .cell-edit{min-height:365px;align-items:center;text-align:center}.practice-cell b{font-size:30px;letter-spacing:2px;color:#487188}.board-footnote{padding:14px 16px;color:#73909f;font-size:12px;border-top:1px solid #e2ebf1}.today-row .lesson-number{color:#1589be;background:#e6f5ff}
@media(max-width:700px){.week-caption b{font-size:14px}.board-controls{padding:16px}.paper-title h2{font-size:17px}.schedule-table .sticky-day{width:86px;min-width:86px}.schedule-table .sticky-number{left:86px;width:32px;min-width:32px}.day-label strong{font-size:10px}.schedule-table th.group-header,.schedule-cell{width:118px;min-width:118px}.schedule-scroll{max-height:60vh}.board-controls .row button{font-size:12px;padding:10px}.cell-content,.cell-edit{padding:8px;min-height:58px}}
.schedule-paper{isolation:isolate}@media(max-width:700px){aside{z-index:20}.day-label{vertical-align:top;padding-top:14px}}
