:root{font-family:Inter,PingFang SC,Microsoft YaHei,Arial,sans-serif;color:#101828;background:#f5f6fa;font-synthesis:none;text-rendering:geometricPrecision}*{box-sizing:border-box}body{margin:0;overflow-x:hidden}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer}svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.shell{display:flex;min-height:100vh;background:#f5f6fa}.login-page{display:grid;min-height:100vh;place-items:center;padding:24px;background:#f5f6fa}.login-card{display:grid;gap:14px;width:min(420px,100%);padding:28px;border:1px solid #f3f4f6;border-radius:16px;background:#fff;box-shadow:0 12px 32px #0000001a}.login-card h1,.login-card p{margin:0}.login-card h1{font-size:24px;line-height:32px}.login-card p,.form-error{color:#99a1af;font-size:13px}.form-error{color:#e31b23}.login-card label,.modal-card label{display:grid;gap:6px;color:#6a7282;font-size:13px}.sidebar{position:sticky;top:0;display:flex;flex:0 0 220px;flex-direction:column;height:100vh;background:linear-gradient(180deg,#18080e,#2d0f18 60%,#18080e);color:#fff}.brand{display:flex;align-items:center;gap:12px;min-height:64px;padding:16px;border-bottom:1px solid rgb(255 255 255 / 8%)}.brand-mark,.admin span,.avatar{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e31b23,#8b0000);color:#fff}.brand-mark{width:32px;height:32px;border-radius:16px}.brand strong{display:block;font-size:14px;line-height:18px}.brand span{display:block;color:#fff6;font-size:10px;line-height:15px}.nav{flex:1;padding:12px 8px}.nav-item,.sidebar-actions button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:16px;background:transparent;color:#ffffff73;font-size:14px;line-height:20px;text-align:left}.nav-item+.nav-item{margin-top:2px}.nav-item.active{background:#e31b23;color:#fff}.nav-item svg,.sidebar-actions svg{width:18px;height:18px}.sidebar-actions{padding:9px 8px 8px;border-top:1px solid rgb(255 255 255 / 8%)}.sidebar-actions button{color:#ffffff4d}.main{min-width:0;flex:1;width:calc(100vw - 220px)}.topbar{display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 24px;border-bottom:1px solid #f0f0f0;background:#fff;box-shadow:0 1px 2px #0000000a}.topbar h1{margin:0;font-size:16px;font-weight:700;line-height:24px}.topbar p,.page-head p,.panel-title p{margin:0;color:#99a1af}.topbar p{font-size:11px;line-height:17px}.admin{display:flex;align-items:center;gap:12px}.admin span{width:32px;height:32px;border-radius:50%;font-size:14px;font-weight:700}.admin strong,.admin small{display:block;white-space:nowrap}.admin strong{color:#1e2939;font-size:13px;line-height:13px}.admin small{margin-top:2px;color:#99a1af;font-size:11px;line-height:17px}.content{min-height:calc(100vh - 64px);padding:clamp(16px,1.7vw,24px)}.page{width:100%}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:clamp(16px,1.5vw,24px)}.page-head h2{margin:0 0 4px;color:#101828;font-size:24px;font-weight:800;line-height:32px}.page-head p{font-size:14px;line-height:20px}.primary-btn{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border-radius:20px;background:#e31b23;color:#fff;font-size:14px;font-weight:700}.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin-bottom:16px}.metric-card,.panel,.state-card{border:1px solid #f3f4f6;border-radius:16px;background:#fff;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.metric-card{min-height:132px;padding:18px}.metric-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:16px;background:#fef2f2;color:#e31b23}.metric-card strong{display:block;margin-top:14px;color:#101828;font-size:28px;line-height:36px}.metric-card small{color:#99a1af;font-size:13px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr);gap:16px;align-items:stretch}.panel{padding:18px}.panel.wide{min-width:0}.panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.panel-title h3{margin:0;font-size:16px;line-height:22px}.panel-title p{margin-top:4px;font-size:12px}.panel-title button{background:transparent;color:#e31b23;font-size:12px}.chart{height:clamp(220px,20vw,280px)}.line-chart svg{width:100%;height:100%;overflow:visible}.grid-lines line{stroke:#edf0f5;stroke-dasharray:5 7;stroke-linecap:round}.grid-lines text{fill:#b4bbc7;font-size:11px;text-anchor:end}.area{fill:url(#voteAreaGradient)}.line{fill:none;stroke:#ef2330;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.points circle{fill:#fff;stroke:#ef2330;stroke-width:2}.points text{fill:#344054;font-size:10px;font-weight:500;text-anchor:middle}.axis text{fill:#667085;font-size:10px;font-weight:400;text-anchor:middle}.donut-wrap{display:grid;grid-template-columns:minmax(104px,132px) 1fr;align-items:center;gap:16px;min-height:clamp(170px,18vw,240px)}.donut{width:120px;height:120px;border-radius:50%;background:conic-gradient(#e31b23 0 34%,#a80008 34% 67%,#ff6b35 67% 100%);box-shadow:inset 0 0 0 32px #fff}.donut-wrap ul,.rank-list,.activity-list{padding:0;margin:0;list-style:none}.donut-wrap li{display:grid;grid-template-columns:8px 1fr auto;gap:8px;align-items:center;color:#6a7282;font-size:12px;line-height:22px}.donut-wrap li span{width:8px;height:8px;border-radius:50%;background:#e31b23}.donut-wrap li:nth-child(2) span{background:#ff6b35}.donut-wrap li:nth-child(3) span{background:#a80008}.rank-list li{display:grid;grid-template-columns:24px 28px 1fr auto;align-items:center;gap:12px;padding:6px 0}.rank-list li>span:first-child{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#ffedd4;color:#f54900;font-size:12px;font-weight:700}.rank-list strong,.rank-list small{display:block}.rank-list strong{font-size:13px}.rank-list small{margin-top:2px;color:#99a1af;font-size:11px}.rank-list b,.votes{color:#e31b23;font-weight:800}.avatar{width:28px;height:28px;flex:0 0 auto;border-radius:50%;font-size:12px;font-weight:800}.avatar.small{width:20px;height:20px;font-size:10px}.bar-chart{display:flex;align-items:end;justify-content:space-around;height:clamp(160px,16vw,220px);padding:20px 30px 0;border-bottom:1px solid #9ca3af}.bar-item{display:flex;align-items:center;flex-direction:column;gap:8px}.bar-item span{width:28px;border-radius:6px 6px 0 0;background:#e31b23}.bar-item:nth-child(2) span{background:#ff6b35}.bar-item:nth-child(3) span{background:#a80008}.bar-item small{color:#99a1af;font-size:11px}.table-panel{overflow:auto;padding:0}.table-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:16px 20px}.search{display:inline-flex;align-items:center;gap:8px;width:min(384px,100%);height:40px;padding:0 16px;border:1px solid #f3f4f6;border-radius:20px;background:#f9fafb;color:#99a1af;font-size:13px}.search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#1e2939}.table-toolbar>input,.table-toolbar>select,.page-actions input,.rule-list input,.modal-card input,.modal-card textarea{height:40px;padding:0 12px;border:1px solid #f3f4f6;border-radius:12px;outline:0;background:#fff;color:#1e2939}.modal-card textarea{min-height:96px;padding:10px 12px;resize:vertical}.table-toolbar>button{height:40px;padding:0 14px;border-radius:12px;background:#f9fafb;color:#6a7282;font-weight:700}.search.compact{margin-left:auto;width:min(280px,100%);height:36px;background:#fff}table{width:100%;border-collapse:collapse}th,td{padding:14px 20px;border-bottom:1px solid #f9fafb;color:#6a7282;font-size:13px;line-height:20px;text-align:left;white-space:nowrap}th{color:#99a1af;font-size:12px;font-weight:700}tbody tr:last-child td{border-bottom:0}.user-cell,.row-actions{display:flex;align-items:center;gap:8px}.user-cell{color:#1e2939;font-weight:700}.row-actions button{display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#70a7ff;font-size:16px}.row-actions button:last-child{color:#ff9b9b}.page-actions,.filters{display:flex;align-items:center;gap:8px}.segmented{display:flex;overflow:hidden;border:1px solid #f3f4f6;border-radius:18px;background:#fff}.segmented button,.filters button{height:36px;padding:0 14px;background:#fff;color:#6a7282;font-size:13px}.segmented button.active,.filters button.active{background:#e31b23;color:#fff;font-weight:700}.review-mode{width:fit-content}.review-mode button{min-width:88px}.review-mode button:first-child.active{background:#00a63e}.review-mode button:last-child.active{background:#e31b23}.filters{margin-bottom:16px}.filters button{border:1px solid #e5e7eb;border-radius:18px}.work-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.work-card{overflow:hidden;border:1px solid #f3f4f6;border-radius:16px;background:#fff;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.work-cover{position:relative;display:flex;align-items:center;justify-content:center;height:clamp(160px,16vw,220px);background:radial-gradient(circle at 34% 48%,rgb(227 27 35 / 28%),transparent 28%),linear-gradient(150deg,#1a0a2e,#3d1050)}.work-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.tag,.vote-pill{display:inline-flex;align-items:center;gap:4px;border-radius:999px;font-size:10px;line-height:15px}.tag{padding:2px 8px;font-weight:700}.tag-warn{background:#fff4ee;color:#ff6b35}.tag-success{background:#f0fdf4;color:#00a63e}.tag-muted{background:#f3f4f6;color:#6a7282}.work-cover .tag{position:absolute;top:8px;left:8px}.vote-pill{position:absolute;top:8px;right:8px;padding:2px 8px;background:#0000007f;color:#fff}.play{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#fff3;color:#fff;font-size:20px}.work-body{padding:16px}.work-body h3{margin:0;font-size:14px;line-height:20px}.work-body p{display:flex;align-items:center;gap:6px;margin:4px 0 0;color:#6a7282;font-size:12px}.review-actions{display:grid;grid-template-columns:repeat(3,42px);gap:10px;margin-top:14px}.review-actions button,.review-actions a{display:grid;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:0;border-radius:14px;background:#f9fafb;color:#98a2b3;text-decoration:none}.review-actions svg{width:18px;height:18px}.review-actions .icon-action:hover{background:#f3f4f6;color:#667085}.review-actions .approve,.review-actions .approve:hover{background:#f0fdf4;color:#00a63e}.review-actions .icon-action:disabled{cursor:not-allowed;opacity:.45}.review-actions .reject{background:#fef2f2;color:#fb2c36}.two-column{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.rule-list,.switch-list,.structured-rule-list,.option-editor{display:grid;gap:12px}.rule-list label,.switch-list label{display:grid;grid-template-columns:120px 1fr;align-items:center;gap:12px;color:#6a7282;font-size:13px}.rule-list input{height:40px;padding:0 12px;border:1px solid #f3f4f6;border-radius:12px;color:#1e2939;background:#f9fafb}.rule-list textarea{grid-column:2;min-height:112px;padding:10px 12px;border:1px solid #f3f4f6;border-radius:12px;outline:0;background:#f9fafb;color:#1e2939;resize:vertical}.banner-manager{display:grid;gap:16px}.banner-editor{display:grid;gap:12px;padding:14px;border:1px solid #eef0f5;border-radius:16px;background:#fafbff}.banner-editor label{display:grid;gap:6px;color:#6a7282;font-size:13px}.banner-editor input:not([type=checkbox]),.banner-editor textarea{width:100%;border:1px solid #f3f4f6;border-radius:12px;background:#fff;color:#1e2939;outline:0}.banner-editor input:not([type=checkbox]){height:40px;padding:0 12px}.banner-editor textarea{min-height:88px;padding:10px 12px;resize:vertical}.banner-editor-head,.banner-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.banner-editor-head strong{color:#111827;font-size:14px}.banner-preview{display:grid;aspect-ratio:750 / 398;place-items:center;overflow:hidden;border:1px dashed #d0d5dd;border-radius:14px;background:#fff;color:#98a2b3;font-size:13px}.banner-preview img{width:100%;height:100%;object-fit:cover}.banner-upload input{position:absolute;width:1px;height:1px;opacity:0}.banner-upload span,.banner-actions button,.ghost-danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:12px;font-size:13px;font-weight:700}.banner-upload span{border:1px solid rgb(227 27 35 / 12%);background:#fff3f3;color:#e31b23}.banner-actions button{flex:1;border:1px solid #fee2e2;background:#fff;color:#e31b23}.banner-actions button:last-child{border-color:transparent;background:#e31b23;color:#fff}.banner-actions button:disabled,.ghost-danger:disabled{background:#f3f4f6;color:#98a2b3;cursor:not-allowed}.ghost-danger{border:1px solid #fee2e2;background:#fff;color:#ef4444}.crop-modal{max-width:760px}.crop-frame{position:relative;aspect-ratio:750 / 398;overflow:hidden;border-radius:16px;background:#111827}.crop-frame:after{position:absolute;inset:0;border:2px solid rgb(255 255 255 / 85%);border-radius:inherit;box-shadow:inset 0 0 0 999px #0000001a;content:"";pointer-events:none}.crop-frame img{position:absolute;top:50%;left:50%;width:100%;height:100%;object-fit:cover;transform-origin:center}.crop-controls{display:grid;gap:10px}.crop-controls label{display:grid;grid-template-columns:56px 1fr;align-items:center;gap:12px}.structured-rule{display:grid;gap:12px;padding:14px;border:1px solid #f3f4f6;border-radius:12px;background:#f9fafb}.structured-rule header,.rule-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:center}.structured-rule header{grid-template-columns:1fr auto}.structured-rule strong{color:#101828}.structured-rule label,.option-editor label{display:grid;gap:6px;color:#6a7282;font-size:12px}.structured-rule input,.option-editor input,.modal-card select{height:40px;padding:0 12px;border:1px solid #f3f4f6;border-radius:12px;outline:0;background:#fff;color:#1e2939}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:14px 20px;color:#6a7282;font-size:13px}.pagination button{height:32px;padding:0 12px;border-radius:12px;background:#f9fafb;color:#6a7282;font-weight:700}.modal-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:24px;background:#10182885}.modal-card{display:grid;gap:14px;width:min(560px,100%);max-height:calc(100vh - 48px);overflow:auto;padding:22px;border-radius:16px;background:#fff;box-shadow:0 16px 48px #0000003d}.modal-card.wide{width:min(780px,100%)}.modal-card h3,.modal-card p{margin:0}.modal-card video{width:100%;max-height:420px;border-radius:12px;background:#111827}.modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.modal-actions button,.modal-actions a{min-height:36px;padding:0 14px;border-radius:12px;background:#f9fafb;color:#6a7282;font-size:13px;font-weight:700;text-decoration:none}.modal-actions .approve,.approve{background:#f0fdf4;color:#00a63e}.modal-actions .reject,.reject{background:#fef2f2;color:#fb2c36}.form-grid,.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inline-check{display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px}.toast{position:fixed;right:24px;bottom:24px;z-index:30;padding:12px 16px;border-radius:12px;background:#101828;color:#fff;font-size:13px;box-shadow:0 12px 28px #0000002e}.switch-list input{justify-self:start;width:38px;height:22px;accent-color:#e31b23}.activity-list li{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f9fafb;color:#6a7282;font-size:13px}.activity-list li:last-child{border-bottom:0}.activity-list svg{color:#e31b23}.school-bars{display:grid;gap:16px}.school-bars>div{display:grid;grid-template-columns:120px 1fr 60px;align-items:center;gap:14px;color:#6a7282;font-size:13px}.school-bars div div{height:10px;overflow:hidden;border-radius:999px;background:#f3f4f6}.school-bars i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e31b23,#ff6b35)}.state-card{padding:24px;color:#6a7282}.state-card.error{color:#e31b23}@media(max-width:1100px){.sidebar{flex-basis:76px}.main{width:calc(100vw - 76px)}.brand div:last-child,.nav-item span,.sidebar-actions span,.admin div{display:none}.metric-grid,.work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.two-column{grid-template-columns:1fr}}@media(max-width:720px){.shell{display:block}.sidebar{position:static;flex-direction:row;width:100%;height:auto;overflow-x:auto}.main{width:100%}.brand,.sidebar-actions{display:none}.nav{display:flex;gap:6px;padding:8px}.nav-item{width:auto;white-space:nowrap}.topbar,.page-head,.page-actions,.filters{align-items:stretch;flex-direction:column}.content{padding:16px}.metric-grid,.work-grid{grid-template-columns:1fr}.table-panel{overflow-x:auto}.search,.search.compact{width:100%}}
