*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Microsoft YaHei","Segoe UI",sans-serif;color:#26384a;background:#eef3f7;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}.sidebar{position:fixed;left:0;top:0;bottom:0;width:242px;background:#173a57;color:#d9e9f4;box-shadow:3px 0 12px #09223844;overflow-y:auto;z-index:3}.logo{height:86px;display:flex;align-items:center;gap:13px;padding:15px 20px;background:linear-gradient(#102e49,#0b263e);border-bottom:1px solid #31536d;font-size:21px;font-weight:bold}.logo>span,.brand-mark{width:48px;height:48px;display:grid;place-items:center;background:linear-gradient(145deg,#48b9ec,#0b78bb);border:1px solid #71cef3;border-radius:5px;box-shadow:inset 0 1px #fff8,0 2px 5px #0005;color:white;font-size:27px}.logo small{display:block;font-size:11px;font-weight:normal;color:#9fb8ca;margin-top:5px}.sidebar nav{padding:10px}.sidebar nav b{display:block;color:#7899b2;font-size:12px;padding:17px 13px 6px}.sidebar nav button{display:flex;align-items:center;gap:10px;border:1px solid transparent;background:transparent;color:#d0e1ec;width:100%;padding:10px 12px;margin:1px 0;text-align:left;border-radius:3px}.sidebar nav button i{font-style:normal;width:18px;text-align:center;color:#66bce9}.sidebar nav button:hover{background:#214d6d;border-color:#315d7b}.sidebar nav button.active{color:#fff;background:linear-gradient(#26a8e8,#1487ca);border-color:#53b9e7;box-shadow:inset 0 1px #ffffff55}.sidebar nav button.active i{color:#fff}.app{margin-left:242px;min-height:100vh}.app>header{height:86px;display:flex;justify-content:space-between;align-items:center;padding:0 28px;background:linear-gradient(#fff,#f8fafc);border-bottom:1px solid #cfd9e1;box-shadow:0 1px 4px #1b385016}.app>header h2{font-size:21px;margin:0 0 5px}.app>header #crumb{font-size:12px;color:#82919e}.head-right{display:flex;align-items:center;gap:12px;color:#667987}.head-right a{color:#1688cd;text-decoration:none;border-left:1px solid #ccd6dd;padding-left:12px}.online-dot{width:8px;height:8px;background:#39bd70;border-radius:50%;box-shadow:0 0 0 4px #39bd7020}main{padding:22px 25px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card,.panel{background:#fff;border:1px solid #cfd9e1;border-radius:4px;box-shadow:0 2px 8px #27445a14}.stat{position:relative;overflow:hidden;padding:20px 22px;border-top:3px solid #24a4df}.stat:after{content:"";position:absolute;width:82px;height:82px;border-radius:50%;right:-25px;bottom:-34px;background:#1aa0dc12}.stat small{color:#718291}.stat strong{display:block;font-size:32px;color:#174b6f;margin:8px 0}.stat em{font-style:normal;color:#30a067;font-size:12px}.panel{margin-bottom:18px}.panel-title,.blue-title{display:flex;align-items:center;justify-content:space-between;margin:0;padding:13px 16px;font-size:17px;border-bottom:1px solid #dce4ea;background:linear-gradient(#fff,#f6f8fa)}.blue-title{color:#fff;background:linear-gradient(#3db4ec,#1595d8);border-color:#178bc7;text-shadow:0 1px #0877b3}.panel-body{padding:17px}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 14px;background:#f8fafb;border-bottom:1px solid #d9e2e8}.toolbar .spacer{flex:1}.btn{border:1px solid #aebbc5;border-radius:3px;padding:7px 13px;background:linear-gradient(#fff,#e6edf2);color:#334b5f;box-shadow:inset 0 1px #fff}.btn:hover{background:linear-gradient(#fff,#dce8ef)}.btn.primary{background:linear-gradient(#42b9ec,#169bdc);border-color:#1288c3;color:#fff}.btn.success{background:linear-gradient(#58c86a,#35aa48);border-color:#29933b;color:#fff}.btn.danger{background:linear-gradient(#f36f69,#d94d49);border-color:#c8423e;color:#fff}.btn.warning{background:linear-gradient(#ffc55d,#e7a228);border-color:#cf8b18;color:#fff}.btn.small{padding:4px 8px;font-size:12px}.btn:disabled{opacity:.48;cursor:not-allowed}.field,.toolbar input,.toolbar select{height:34px;border:1px solid #bfcbd4;border-radius:3px;background:#fff;padding:6px 9px;outline:none}.field:focus,.toolbar input:focus,.toolbar select:focus,textarea:focus{border-color:#2da9e4;box-shadow:0 0 0 2px #2da9e420}.search{min-width:240px}.table-wrap{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;background:white;font-size:13px}th,td{border:1px solid #d9e1e6;padding:9px 10px;white-space:nowrap;text-align:left}th{background:linear-gradient(#fff,#edf2f5);color:#344b5e;font-weight:bold;position:sticky;top:0;z-index:1}tbody tr:nth-child(even) td{background:#fafcfd}tbody tr:hover td{background:#edf8fd}.wrap{white-space:normal;min-width:220px}.status{display:inline-block;padding:2px 8px;border-radius:10px;color:#168e48;background:#e7f7ed}.status.bad{color:#d63d3d;background:#fdeaea}.status.wait{color:#1d70bc;background:#e7f1fb}.status.played{color:#1d70bc;background:#e7f1fb}.status.unplayed{color:#a46a00;background:#fff1bd}.status.playing{color:#168e48;background:#e7f7ed}.empty,.loading{text-align:center;padding:65px 20px;color:#8293a0}.footer-note{padding:10px 14px;color:#768896;background:#fafcfd;border-top:1px solid #dce4e9}.modal{position:fixed;inset:0;background:#17344e88;z-index:20;display:flex;align-items:center;justify-content:center;padding:25px}.hidden{display:none!important}.dialog{width:min(720px,95vw);max-height:92vh;overflow:auto;background:#f8f9fa;border:1px solid #8699a8;border-radius:5px;box-shadow:0 18px 55px #0007;position:relative}.dialog>h3{margin:0;padding:13px 17px;background:linear-gradient(#fefefe,#e6edf2);border-bottom:1px solid #b9c6cf;font-size:16px}.dialog .x{position:absolute;right:10px;top:7px;border:0;background:transparent;font-size:25px;color:#566b7b;z-index:2}.dialog-body,.dialog #modalBody{padding:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 16px}.form-grid label{display:grid;gap:6px;color:#4a5e6e}.form-grid label>input,.form-grid label>select,.form-grid label>textarea{width:100%;border:1px solid #bfcbd4;border-radius:3px;background:white;padding:8px}.form-grid textarea{min-height:90px;resize:vertical}.span2{grid-column:span 2}.dialog-actions{text-align:right;border-top:1px solid #d5dde3;margin:18px -18px -18px;padding:12px 18px;background:#f1f4f6}.hint{font-size:12px;color:#7e8d99}.tabs{display:flex;border-bottom:1px solid #bccbd5;background:#f2f6f8}.tabs button{padding:11px 18px;border:0;border-right:1px solid #ced9e1;background:transparent}.tabs button.active{background:white;color:#168dce;font-weight:bold;border-top:3px solid #20a3df;margin-top:-1px}.plan-head{padding:17px;background:white;border:1px solid #ccd7df;border-bottom:0;display:flex;justify-content:space-between;align-items:center}.plan-head h3{margin:0;color:#168fd1}.pill{padding:4px 10px;border-radius:12px;background:#e7f3fb;color:#1b7db5}.subject-card{border:1px solid #cfd9e0;margin:10px 0;background:white}.subject-card .subject-head{display:flex;align-items:center;gap:13px;padding:11px 13px;background:linear-gradient(#fff,#edf3f6)}.subject-head strong{color:#187eb8;font-size:15px}.subject-head .meta{color:#6d7e8b}.subject-head .actions{margin-left:auto}.instruction-table tr.current td{background:#fff0ac}.import-progress{margin:14px 12px;padding:12px 14px;border:1px solid #b9d5e5;background:#f7fcff;border-radius:4px}.import-progress>div{height:18px;border:1px solid #aebfc9;background:#e6edf1;border-radius:9px;overflow:hidden}.import-progress>div>span{display:block;width:0;height:100%;background:linear-gradient(90deg,#25a8e4,#42c56a);transition:width .18s ease}.import-progress p{margin:7px 0 0;color:#526c7d}.drop-zone{border:2px dashed #9cc7dd;background:#f3fbff;padding:26px;text-align:center;color:#518199;margin:12px}.checks{display:flex;flex-wrap:wrap;gap:11px}.checks label{display:flex;align-items:center;gap:4px}.toast{position:fixed;right:22px;bottom:22px;z-index:50;background:#173c58;color:#fff;padding:12px 18px;border-radius:4px;box-shadow:0 6px 24px #0005}.danger-zone{border:1px solid #e4a2a2;background:#fff8f8;padding:15px;margin-top:18px}.danger-zone h4{color:#c53e3e;margin:0 0 10px}.audit-row{display:grid;grid-template-columns:145px 110px 130px 90px 1fr;padding:10px;border-bottom:1px solid #e4e9ed}.audit-row span{color:#748795}.login-page{display:grid;place-items:center;min-height:100vh;background:linear-gradient(135deg,#0c3658,#168bca);position:relative}.login-card{width:390px;background:#f8fafb;border:1px solid #a8bac7;border-radius:5px;padding:33px 38px;box-shadow:0 25px 60px #06213799}.login-card .brand-mark{margin:auto}.login-card h1{text-align:center;font-size:21px;margin:17px 0 4px}.login-card>p{text-align:center;color:#81929f;margin:0 0 24px}.login-card label{display:grid;gap:6px;margin:13px 0;color:#4d6170}.login-card input{height:39px;border:1px solid #b9c6cf;padding:8px}.login-card footer{text-align:center;color:#8d9ba5;font-size:12px;margin-top:18px}.error{color:#d43d3d;height:20px;text-align:center;margin-top:8px}.wide{width:100%;padding:10px}@media(max-width:1100px){.sidebar{width:210px}.app{margin-left:210px}.cards{grid-template-columns:repeat(2,1fr)}.head-right #scopeText{display:none}}@media(max-width:760px){.sidebar{position:relative;width:100%;height:auto}.app{margin-left:0}.cards{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.span2{grid-column:span 1}.app>header{padding:0 13px}main{padding:12px}}
.stat small{font-size:15px;font-weight:600;color:#526f82}
.status.finished{color:#737f89;background:#edf0f2}
.status.uploading{color:#9a6500!important;background:#fff1bd!important}
.upload-progress-label{display:flex;justify-content:space-between;gap:12px}.upload-progress-label strong{color:#168fd1;white-space:nowrap}
.instruction-text-meta{margin-bottom:8px;color:#687d8c}.instruction-text-editor{display:block;width:100%;height:360px;min-height:220px;resize:vertical;border:1px solid #b9c6cf;background:#fff;color:#141414;padding:13px;font-family:Consolas,"Microsoft YaHei UI",monospace;font-size:15px;line-height:1.65;white-space:pre;overflow:auto;outline:none}.instruction-text-editor:focus{border-color:#2da9e4;box-shadow:0 0 0 2px #2da9e420}.instruction-text-tools{display:flex;align-items:center;gap:10px;margin:14px 0 0}.instruction-text-tools label{display:flex;align-items:center;gap:7px;color:#3c4f5d}.instruction-text-tools input{width:76px;height:32px;border:1px solid #bfcbd4;border-radius:3px;padding:4px 7px}.instruction-text-tools .spacer{flex:1}.instruction-text-hint{margin:9px 0 0}
.list-pager{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:12px 16px;border-top:1px solid #dbe6ee;color:#506779;background:#fbfdff}
.pager-size-group,.pager-nav-group,.pager-custom-size{display:flex;align-items:center;gap:8px}
.pager-nav-group{flex-wrap:wrap;margin-left:14px}
.pager-nav-group>label{margin-left:14px}
.list-pager label{display:flex;align-items:center;gap:6px;white-space:nowrap}
.list-pager select,.list-pager input{height:28px;border:1px solid #cbd8e2;border-radius:4px;background:#fff;color:#263f52}
.list-pager select{min-width:96px;padding:0 8px}
.list-pager input[data-full-page-size-custom]{width:82px;padding:0 8px}
.list-pager input[data-full-jump]{width:64px;padding:0 8px;text-align:center}
.pager-summary{margin-left:auto;white-space:nowrap;color:#263f52}
.toolbar label.inline-check{display:inline-flex;align-items:center;gap:6px;line-height:1;white-space:nowrap}
.toolbar label.inline-check input[type=checkbox]{width:auto;height:auto;margin:0;flex:0 0 auto}
.package-list-hint{padding:8px 14px;background:#f8fafb;border-bottom:1px solid #d9e2e8;color:#7e8d99;font-size:12px;line-height:1.6}
.sidebar .logo{position:sticky;top:0;z-index:4}
@media(max-width:1000px){.pager-summary{width:100%;margin-left:0}.pager-nav-group{order:3;margin-left:0}}
.form-grid>label{align-self:start}
.audit-row{grid-template-columns:145px 190px 130px 90px minmax(0,1fr)}
.audit-row>b{white-space:nowrap}
.dialog{overflow:hidden;display:flex;flex-direction:column}
.dialog>h3{flex:0 0 auto}
.dialog #modalBody{min-height:0;overflow:auto}
.table-value-link{border:0;background:transparent;color:#1688cd;padding:0;min-width:20px;text-align:left;text-decoration:underline;font-weight:bold}
.table-value-link:hover{color:#086ea9}
.download-detail-toolbar{padding:0 0 14px;background:transparent}
.download-detail-toolbar strong{color:#176f9f}
