:root{--ink:#17233c;--blue:#3157d5;--violet:#7357d8;--line:#dce3ef;--muted:#69758a;--soft:#f6f8fc;--success:#13866f}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f6f8fc;color:var(--ink);font-family:Inter,"Noto Sans SC","Microsoft YaHei",sans-serif}button,input,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:grid;grid-template-columns:288px minmax(0,1fr);background:linear-gradient(120deg,#f7f9fd 0,#fff 55%,#fbfcff 100%)}.sidebar{min-height:100vh;padding:26px 22px;border-right:1px solid var(--line);background:rgba(248,250,253,.94)}.brand{display:flex;align-items:center;gap:14px;padding:0 0 34px;color:inherit;text-decoration:none}.brand-mark{position:relative;width:52px;height:52px;display:block;flex:0 0 auto}.brand-mark i{position:absolute;width:28px;height:32px;background:linear-gradient(145deg,#2563eb,#4f46e5);transform:skew(-14deg)}.brand-mark i:first-child{left:2px;top:0}.brand-mark i:last-child{right:2px;bottom:0;background:linear-gradient(145deg,#4f46e5,#7c3aed)}.brand b{display:block;font-size:27px;letter-spacing:-.5px}.brand em{display:block;margin-top:2px;color:#4b5568;font-size:15px;font-style:normal}.brand.mini{padding:0}.brand.mini .brand-mark{width:38px;height:38px;transform:scale(.72);transform-origin:left center}.brand.mini b{font-size:21px}.brand.mini em{font-size:12px}.query-panel h2{margin:0 0 24px;font-size:18px}.query-panel label{display:block;margin:0 0 8px;color:#4b5568;font-size:13px;font-weight:650}.segmented{display:grid;grid-template-columns:1fr 1fr;margin:0 0 22px;border:1px solid #cbd5e1}.segmented button{height:44px;border:0;color:var(--ink);background:#fff}.segmented button+button{border-left:1px solid #cbd5e1}.segmented button.active{color:#fff;background:linear-gradient(135deg,#3157d5,#2557e7);font-weight:700}select,input[type=text],input[type=password],input[type=file],.login-card input{width:100%;min-height:46px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:3px;background:#fff;color:var(--ink)}select:disabled{color:#98a2b3;background:#f1f3f7}.primary-button{width:100%;height:50px;margin:22px 0 0;border:0;border-radius:3px;color:#fff;background:linear-gradient(135deg,#3157d5,#295be7);font-weight:700;box-shadow:0 8px 20px rgba(49,87,213,.18)}.primary-button:hover{background:#284dc5}.primary-button:disabled{opacity:.65}.primary-button.inline{width:auto;height:44px;margin:0;padding:0 22px}.sync-card{margin-top:28px;padding:18px;border:1px solid #cddcf8;border-radius:3px;background:#eef4ff}.sync-card div{display:flex;align-items:center;gap:9px}.sync-card p{margin:12px 0 0 31px;color:#59677d;font-size:13px}.sync-card a{display:inline-block;margin:16px 0 0 31px;color:var(--blue);font-size:12px;font-weight:650;text-decoration:none}.status-dot{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:#fff;background:var(--success);font-size:13px}.content{min-width:0;padding:30px 34px 24px}.content-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.eyebrow{margin:0 0 7px;color:var(--blue);font-size:12px;font-weight:750;letter-spacing:.08em}.content h1{margin:0;font-size:30px;line-height:1.2}.subtitle{margin:8px 0 0;color:var(--muted);font-size:14px}.header-actions{display:flex;gap:10px}.header-actions button,.ghost-button{height:42px;padding:0 15px;border:1px solid #c9d2e1;border-radius:2px;background:#fff;color:#39465b;font-size:13px;font-weight:650;text-decoration:none;display:inline-flex;align-items:center}.header-actions button:hover,.ghost-button:hover{border-color:var(--blue);color:var(--blue);background:#f7f9ff}.notice{margin:14px 0 0;padding:10px 14px;border:1px solid #cdeee3;background:#ecf9f5;color:#116755;font-size:13px}.week-strip{min-height:52px;display:flex;align-items:center;gap:10px;padding:0 16px;border:1px solid #b8c9f8;background:#f7f9ff;color:#45536b;font-size:13px}.week-strip b{color:var(--blue)}.date-range{margin-left:8px}.source-chip{margin-left:auto;padding:6px 9px;border:1px solid #d8e2fb;background:#fff;color:#63708a;font-size:11px}.info-icon{display:inline-grid;place-items:center;flex:0 0 auto;width:22px;height:22px;border:2px solid #2d64dd;border-radius:50%;color:#2d64dd;font-family:Georgia,serif;font-size:14px;font-weight:700}.table-wrap{margin-top:14px;overflow:auto;border:1px solid var(--line);background:#fff}.schedule-table{width:100%;min-width:940px;border-collapse:collapse;table-layout:fixed}.schedule-table th,.schedule-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.schedule-table tr:last-child th,.schedule-table tr:last-child td{border-bottom:0}.schedule-table th:last-child,.schedule-table td:last-child{border-right:0}.schedule-table thead th{height:54px;padding:8px;background:#fbfcff;font-size:14px}.schedule-table thead th:first-child{width:142px}.schedule-table thead th:nth-child(2){border-top:3px solid var(--blue);background:#eef4ff;color:#2548b8}.schedule-table tbody th{padding:12px 8px;background:#fbfcfe;text-align:center}.schedule-table tbody th strong{display:block;font-size:13px}.schedule-table tbody th span{display:block;margin-top:5px;color:#7a8598;font-size:11px;font-weight:400}.schedule-table td{height:106px;padding:7px;vertical-align:middle;text-align:center;background:#fff}.schedule-table td:nth-child(2){background:#f7faff}.course-stack{display:flex;flex-direction:column;gap:5px}.course{min-height:70px;display:flex;flex-direction:column;justify-content:center;padding:8px 10px;border-radius:2px;background:linear-gradient(135deg,#edf3ff,#f7faff);text-align:left}.course-violet{background:linear-gradient(135deg,#f3efff,#faf8ff)}.course strong{font-size:13px;line-height:1.35}.course span{margin-top:5px;color:#657086;font-size:11px}.course small{margin-top:3px;color:#7c88a0;font-size:10px}.empty-mark{color:#a5afbd}.empty-state{min-height:470px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:14px;border:1px solid var(--line);background:#fff;text-align:center}.empty-state[hidden]{display:none}.empty-state>span{display:grid;place-items:center;width:68px;height:68px;border:1px solid #cbd7f5;background:#f3f6ff;color:#3157d5;font-size:25px;font-weight:800}.empty-state h2{margin:20px 0 8px;font-size:20px}.empty-state p{max-width:460px;margin:0;color:var(--muted);font-size:14px;line-height:1.7}footer{display:flex;align-items:center;gap:10px;padding:18px 2px 0;color:#58667b;font-size:12px}
.admin-body{min-height:100vh;background:#f4f7fc}.admin-topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1120px)/2));border-bottom:1px solid var(--line);background:#fff}.admin-topbar form{margin:0}.admin-container{width:min(1120px,calc(100% - 32px));margin:30px auto 60px}.admin-card,.login-card{margin-bottom:20px;padding:28px;border:1px solid var(--line);border-radius:4px;background:#fff;box-shadow:0 12px 35px rgba(33,51,89,.06)}.admin-card h1,.login-card h1{margin:8px 0 8px;font-size:27px}.admin-card h2{margin:0 0 6px}.admin-card p,.login-card>p{color:var(--muted);font-size:14px;line-height:1.7}.login-card{width:min(430px,calc(100% - 32px));margin:8vh auto}.login-card .brand{padding-bottom:25px}.login-card form label,.upload-form label{display:block;margin-top:18px;color:#39465b;font-size:13px;font-weight:650}.login-card input,.upload-form input,.upload-form select{display:block;margin-top:8px}.back-link{display:inline-block;margin-top:20px;color:var(--blue);font-size:13px;text-decoration:none}.step{color:var(--blue);font-size:12px;font-weight:750;letter-spacing:.08em}.alert{margin:0 0 18px;padding:13px 15px;border:1px solid #bde8da;background:#ecfaf5;color:#176b57;font-size:14px}.alert.error{border-color:#cf3b4f;background:#fff0f2;color:#9e2436}.alert.warning{border-color:#d58b1c;background:#fff8e7;color:#865712}.upload-form{display:grid;grid-template-columns:180px minmax(280px,1fr) auto;gap:18px;align-items:end;margin-top:24px}.upload-form label{margin:0}.upload-form small{display:block;margin-top:7px;color:#7b8799;font-weight:400}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.review-stats{display:grid;grid-template-columns:auto auto;gap:2px 8px;align-items:baseline;padding:12px 16px;background:#f4f7ff}.review-stats b{color:var(--blue);font-size:22px}.review-stats span{color:#667085;font-size:12px}.review-table-wrap{overflow:auto;margin-top:20px;border:1px solid var(--line)}.review-table{width:100%;border-collapse:collapse}.review-table th,.review-table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;font-size:13px;white-space:nowrap}.review-table th{background:#f7f9fc;color:#526076;font-size:12px}.review-table tr:last-child td{border-bottom:0}.review-table.compact td{font-size:12px}.muted{text-align:center!important;color:#8993a4}.badge{display:inline-block;padding:4px 8px;background:#eef2f7;color:#637086;font-size:11px}.badge.imported{background:#e9f8f2;color:#13705b}.badge.previewed{background:#fff7e5;color:#98600c}details{margin-top:16px}summary{cursor:pointer;color:var(--blue);font-size:13px;font-weight:650}.confirm-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;padding:18px;border:1px solid #cfdaf4;background:#f6f8ff}.confirm-bar p{margin:0}.confirm-bar form{display:flex;gap:10px;align-items:center}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{min-height:auto;border-right:0;border-bottom:1px solid var(--line)}.content{padding:24px 16px}.upload-form{grid-template-columns:1fr}.confirm-bar{align-items:flex-start;flex-direction:column}}@media(max-width:560px){.sidebar{padding:20px 16px}.content-header{display:block}.header-actions{margin-top:18px}.week-strip{align-items:flex-start;flex-wrap:wrap;padding:13px}.source-chip{margin-left:0}.admin-card{padding:20px}.section-heading{display:block}.review-stats{margin-top:15px}.confirm-bar form{width:100%;flex-wrap:wrap}}@media print{.sidebar,.header-actions,footer{display:none}.app-shell{display:block}.content{padding:0}.schedule-table{min-width:0}.schedule-table td{height:92px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.query-panel .segmented,.editor-grades{grid-template-columns:repeat(3,1fr);gap:1px;background:#cbd5e1}.query-panel .segmented button+button,.editor-grades button+button{border-left:0}.editor-heading{align-items:center}.editor-actions{display:flex;gap:10px;flex:0 0 auto}.editor-actions .primary-button{margin:0}.ghost-button,.danger-button{min-height:40px;padding:0 14px;border:1px solid #c9d2e1;border-radius:3px;background:#fff;color:#39465b;font-weight:650}.ghost-button:disabled{cursor:not-allowed;opacity:.5}.danger-button{border-color:#e1a0aa;color:#a32639;background:#fff7f8}.editor-toolbar{display:grid;grid-template-columns:300px minmax(240px,1fr) auto;gap:16px;align-items:end;margin:24px 0 16px}.editor-toolbar .segmented{margin:0}.editor-toolbar label{display:grid;gap:7px;color:#4b5568;font-size:12px;font-weight:650}.editor-message{margin-bottom:14px;padding:11px 13px;border:1px solid #bde8da;background:#ecfaf5;color:#176b57;font-size:13px}.editor-message.error{border-color:#edb3bc;background:#fff0f2;color:#9e2436}.editor-table-wrap{overflow:auto;border:1px solid var(--line);background:#fff}.editor-table{width:100%;min-width:960px;border-collapse:collapse;table-layout:fixed}.editor-table th,.editor-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.editor-table th:last-child,.editor-table td:last-child{border-right:0}.editor-table tr:last-child th,.editor-table tr:last-child td{border-bottom:0}.editor-table thead th{height:48px;background:#f7f9fc;font-size:13px}.editor-table thead th:first-child{width:130px}.editor-table tbody th{padding:10px;background:#fbfcfe;text-align:center}.editor-table tbody th strong,.editor-table tbody th span{display:block}.editor-table tbody th strong{font-size:12px}.editor-table tbody th span{margin-top:4px;color:#7a8598;font-size:10px;font-weight:400}.editor-cell{height:148px;padding:7px;vertical-align:top;background:#fff;transition:background .15s ease}.editor-cell.drag-over{background:#eaf1ff}.editor-course-stack{display:flex;flex-direction:column;gap:6px}.editor-course{padding:9px;border:1px solid #cfdbf3;border-radius:3px;background:#f1f5ff;text-align:left;cursor:grab}.editor-course:active{cursor:grabbing}.editor-course.dragging{opacity:.42}.editor-course strong{display:block;font-size:12px;line-height:1.4}.editor-course span,.editor-course small{display:block;margin-top:4px;color:#657086;font-size:10px}.course-actions{display:flex;gap:7px;margin-top:7px}.course-actions button,.add-course-button{border:0;background:transparent;color:#3157d5;font-size:10px;cursor:pointer}.course-actions button:last-child{color:#a32639}.add-course-button{width:100%;margin-top:7px;padding:6px;border:1px dashed #c8d2e2;border-radius:3px;color:#657086}.add-course-button:hover{border-color:#3157d5;color:#3157d5;background:#f7f9ff}.editor-empty{padding:70px 20px;color:#7b8799;text-align:center}.editor-tip{margin:12px 0 0!important;font-size:12px!important}.editor-dialog{width:min(680px,calc(100% - 32px));padding:0;border:0;border-radius:5px;box-shadow:0 24px 70px rgba(23,35,60,.25)}.editor-dialog::backdrop{background:rgba(19,28,48,.48)}.editor-dialog form{padding:26px}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between}.dialog-heading h2{margin:5px 0 0}.dialog-close{width:36px;height:36px;border:0;background:#f1f4f8;color:#526076;font-size:22px}.dialog-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:22px}.dialog-grid label{display:grid;gap:7px;color:#4b5568;font-size:12px;font-weight:650}.dialog-grid .wide{grid-column:1/-1}.dialog-grid input,.dialog-grid select{width:100%;height:44px;padding:0 11px;border:1px solid #cbd5e1;border-radius:3px;background:#fff;color:var(--ink)}.dialog-actions{display:flex;align-items:center;gap:10px;margin-top:24px}.dialog-actions .primary-button{margin:0}.dialog-spacer{flex:1}.inline{width:auto;padding:0 18px}
@media(max-width:760px){.editor-heading{display:block}.editor-actions{margin-top:15px}.editor-toolbar{grid-template-columns:1fr}.dialog-grid{grid-template-columns:1fr}.dialog-grid .wide{grid-column:auto}.dialog-actions{flex-wrap:wrap}.dialog-spacer{display:none}.editor-dialog form{padding:20px}}

.schedule-table{min-width:1080px}.other-courses{display:flex;align-items:flex-start;gap:26px;margin-top:14px;padding:20px;border:1px solid var(--line);background:#fff}.other-courses[hidden]{display:none}.other-courses h2{margin:0;font-size:18px}.other-courses .eyebrow{margin-bottom:5px}.other-course-list{display:flex;flex-wrap:wrap;gap:10px;flex:1}.other-course-list article{min-width:210px;padding:12px 14px;border:1px solid #d8e0ec;border-radius:3px;background:#f7f9fc}.other-course-list strong,.other-course-list span{display:block}.other-course-list strong{font-size:13px}.other-course-list span{margin-top:5px;color:#69758a;font-size:11px}.editor-table{min-width:1100px}.editor-other{display:grid;grid-template-columns:180px minmax(0,1fr) auto;gap:16px;align-items:start;margin-top:14px;padding:16px;border:1px solid var(--line);background:#f8faff}.editor-other h3{margin:0 0 5px;font-size:14px}.editor-other p{margin:0!important;font-size:11px!important}.editor-other-list{display:flex;flex-wrap:wrap;gap:8px}.editor-other-list .editor-course{min-width:190px}.editor-other>.ghost-button{align-self:center}footer{justify-content:center}
@media(max-width:760px){.other-courses{display:block}.other-course-list{margin-top:14px}.editor-other{grid-template-columns:1fr}.editor-other>.ghost-button{justify-self:start}}
