:root{font-family:system-ui,-apple-system,"Microsoft JhengHei","Noto Sans TC",sans-serif;color:#17252f;background:#f3f6f8;font-size:16px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}.topbar{height:72px;background:#153947;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 28px;box-shadow:0 3px 16px #13303922}.brand{display:flex;gap:12px;align-items:center}.brand-mark{width:38px;height:38px;border-radius:12px;background:#50b59b;display:grid;place-items:center;font-size:27px;color:#073a39}.brand strong{display:block;font-size:18px;letter-spacing:.04em}.brand small{display:block;font-size:12px;color:#c4d8dc}.top-actions{display:flex;align-items:center;gap:16px}.sample{font-size:13px;color:#d7e8ea;background:#ffffff1a;padding:6px 10px;border-radius:999px}.primary{border:0;background:#1b826e;color:white;border-radius:10px;padding:10px 16px;font-weight:700;min-height:40px}.topbar .primary{background:#59c7a8;color:#103b39}.secondary{border:1px solid #cbd8dc;background:white;color:#27424a;border-radius:10px;padding:9px 15px;font-weight:650;min-height:40px}.shell{display:flex;min-height:calc(100vh - 72px)}.nav{width:190px;background:#fff;border-right:1px solid #dce6e9;padding:20px 12px;flex:none}.nav button{width:100%;text-align:left;border:0;background:transparent;color:#536975;padding:12px 14px;border-radius:10px;margin:2px 0;display:flex;gap:12px;align-items:center;font-weight:650;white-space:nowrap}.nav button.active{background:#ddf4ed;color:#126b5c}.nav button:hover{background:#eaf3f4}.count{margin-left:auto;background:#c75543;color:white;border-radius:30px;min-width:22px;text-align:center;font-size:12px;padding:2px 5px}main{min-width:0;flex:1;padding:28px;max-width:1800px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:20px}.eyebrow{font-size:12px;letter-spacing:.11em;text-transform:uppercase;color:#1b826e;font-weight:800;margin:0 0 5px}.page-head h1{margin:0;font-size:28px;line-height:1.2}.page-head p{margin:7px 0 0;color:#687e88}.head-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.head-controls input,.head-controls select{min-height:40px;border:1px solid #cfdbdf;border-radius:9px;background:white;color:#28424b;padding:7px 10px}.card{background:white;border:1px solid #dbe5e8;border-radius:15px;box-shadow:0 4px 18px #2138460a}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.stat{padding:15px 18px}.stat span{color:#637b85;font-size:13px;display:block}.stat strong{display:block;font-size:25px;margin-top:5px}.stat em{font-size:12px;font-style:normal;color:#78909a}.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-bottom:16px}.day-button{background:#fff;border:1px solid #dbe5e8;border-radius:12px;padding:10px 5px;color:#526b76}.day-button strong{display:block;font-size:17px;margin-top:2px;color:#19333d}.day-button.active{border-color:#1b826e;background:#e0f5ef;color:#176757}.day-button.active strong{color:#176757}.schedule-wrap{overflow:auto}.schedule-head{display:grid;grid-template-columns:125px repeat(6,minmax(140px,1fr));border-bottom:1px solid #dce7e9;background:#f8fbfc;border-radius:15px 15px 0 0;min-width:965px}.schedule-head>div{padding:13px 12px;font-size:13px;font-weight:750;color:#506b75;border-right:1px solid #e4ecee}.schedule-head>div:last-child{border-right:0}.schedule-grid{min-width:965px}.time-row{display:grid;grid-template-columns:125px repeat(6,minmax(140px,1fr));border-bottom:1px solid #e8eef0;min-height:91px}.time-label{padding:10px 12px;font-size:13px;color:#6f8790;background:#fbfcfd}.room-cell{padding:5px;border-left:1px solid #e8eef0;display:flex;flex-direction:column;gap:4px}.slot{border:1px solid #b9e0d5;background:#e8f7f2;border-radius:8px;padding:6px 8px;text-align:left;color:#1e4a48;min-width:0}.slot strong,.slot small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slot strong{font-size:13px}.slot small{font-size:12px;margin-top:3px}.slot.group{background:#e9efff;border-color:#cad7fb;color:#304d80}.slot.cancel{background:#f2f3f4;border-color:#dce0e2;color:#87949a}.slot.conflict{box-shadow:inset 3px 0 #d45c4e}.legend{display:flex;gap:16px;flex-wrap:wrap;color:#738891;font-size:13px;margin-top:12px}.legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:720px}.data-table th,.data-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #e8eef0;vertical-align:middle}.data-table th{font-size:13px;color:#617983;background:#f8fbfc;white-space:nowrap}.data-table td{font-size:14px}.data-table tr:last-child td{border:0}.data-table tr:hover td{background:#fafdfd}.muted{color:#70858e}.small{font-size:13px}.badge{display:inline-block;font-size:12px;font-weight:750;padding:4px 8px;border-radius:999px;background:#e9f3f1;color:#16695d;white-space:nowrap}.badge.gray{background:#edf0f2;color:#687983}.badge.red{background:#fce9e6;color:#ad4337}.badge.amber{background:#fff2d9;color:#a56b10}.badge.blue{background:#e8efff;color:#3d5d9d}.link-btn{border:0;background:none;color:#147c6b;font-weight:750;padding:5px}.row-actions{display:flex;gap:5px;white-space:nowrap}.toolbar{display:flex;gap:10px;margin-bottom:15px;flex-wrap:wrap}.toolbar input,.toolbar select{padding:9px 11px;border:1px solid #cedbdf;border-radius:9px;background:white;min-height:40px}.toolbar input{min-width:220px}.empty{padding:45px 20px;text-align:center;color:#788e96}.alert-line{padding:13px 16px;border-bottom:1px solid #e8eef0;display:flex;justify-content:space-between;gap:15px;align-items:center}.alert-line:last-child{border:0}.alert-line strong{display:block}.alert-line small{color:#70858e}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}.section-title{padding:16px 18px;margin:0;border-bottom:1px solid #e8eef0;font-size:17px}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}dialog{border:0;border-radius:18px;box-shadow:0 22px 65px #14343d45;padding:24px;width:min(620px,calc(100vw - 28px));max-height:90vh;overflow:auto}dialog::backdrop{background:#112b38a8}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:18px}.dialog-head h2{margin:0;font-size:24px}.dialog-head p:last-child{margin:5px 0 0}.icon-button{background:#eef3f5;border:0;border-radius:50%;width:32px;height:32px;font-size:24px;line-height:1;color:#45606a}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700;color:#536c76}.form-grid label.wide{grid-column:1/-1}.form-grid input,.form-grid select{min-width:0;width:100%;padding:10px 11px;border:1px solid #cbd9de;border-radius:9px;background:white;color:#193841}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.error{background:#fde9e6;color:#a53931;padding:10px 12px;border-radius:8px;margin-top:14px}.attendance-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e7eff0;gap:10px}.attendance-row select{border:1px solid #ccdade;border-radius:8px;background:white;padding:8px;min-width:125px}.toast{position:fixed;bottom:23px;right:24px;background:#173f44;color:white;border-radius:10px;padding:11px 16px;box-shadow:0 7px 22px #14303936;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:none}@media(max-width:1050px){.nav{width:70px}.nav button{justify-content:center;font-size:20px}.nav button span:not(.count){display:none}.nav .count{position:absolute;margin:0 0 0 27px}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.topbar{height:64px;padding:0 14px}.brand small,.sample{display:none}.topbar .primary{padding:8px 10px;font-size:13px}.shell{display:block}.nav{width:auto;position:sticky;top:0;z-index:5;display:flex;overflow:auto;padding:6px;background:#fff;border-bottom:1px solid #dce6e9}.nav button{width:auto;font-size:17px;min-width:45px;padding:8px 10px}.nav button span:not(.count){display:none}.nav .count{display:none}main{padding:16px}.page-head{align-items:flex-start;flex-direction:column}.page-head h1{font-size:24px}.stats{grid-template-columns:repeat(2,1fr)}.week-strip{gap:3px}.day-button{padding:7px 2px;font-size:11px}.day-button strong{font-size:15px}.two-cols{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid label.wide{grid-column:auto}}
