:root{--bg:#f3f6f7;--panel:#fff;--text:#17272d;--muted:#718087;--line:#dbe4e6;--head:#183b42;--head2:#214b51;--teal:#0b8b74;--blue:#176ea8;--red:#c94646;--amber:#b97a13;--gold:#80570d;--soft:#eef3f4}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
button,input,select,textarea{font:inherit}a{color:var(--blue)}
.research-banner{padding:8px 20px;background:#fff4d2;color:#775500;font-size:13px}.research-banner a{margin-left:14px;color:#775500}
.command-header{position:sticky;z-index:20;top:0;display:flex;align-items:center;gap:12px;min-height:62px;padding:10px 22px;background:linear-gradient(100deg,var(--head),var(--head2));color:#fff;box-shadow:0 2px 12px rgba(15,48,55,.18)}
.command-header h1{margin:0;font-size:20px;white-space:nowrap}.brand-mark{width:36px;height:36px;object-fit:contain}
.role-chip{padding:3px 10px;border-radius:20px;background:rgba(201,151,31,.25);border:1px solid rgba(255,213,138,.45);color:#ffd58a;font-weight:700;font-size:12px}
.ticker{display:flex;gap:6px;align-items:baseline;padding:7px 11px;border:1px solid rgba(255,255,255,.18);border-radius:6px;background:rgba(255,255,255,.07)}.ticker span{color:#b8cdd1;font-size:11px}.ticker strong{font-size:15px}
.header-spacer{flex:1}.freshness{color:#b9cdd0;font-size:11px;white-space:nowrap}
.header-button{height:36px;border:1px solid rgba(255,255,255,.2);border-radius:6px;padding:0 12px;background:rgba(255,255,255,.1);color:#fff;font-weight:750;cursor:pointer}.header-button:hover{background:rgba(255,255,255,.17)}.header-button b{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:var(--red);font-size:11px}
.admin-user{display:flex;align-items:center;gap:8px}.admin-user small{display:block;color:#b8cdd1;font-size:11px}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#c9971f;color:#fff;font-weight:800}
.layout{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 96px)}
.sidebar{position:sticky;top:62px;align-self:start;height:calc(100vh - 62px);overflow:auto;padding:12px 10px;background:#fff;border-right:1px solid var(--line)}
.nav-group{margin:14px 10px 6px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:1px}.nav-group:first-child{margin-top:2px}
.sidebar a{display:flex;align-items:center;gap:9px;padding:9px 12px;margin:2px 0;border-radius:7px;color:#30454c;text-decoration:none;font-weight:650}.sidebar a i{font-style:normal;width:18px;text-align:center;color:var(--muted)}
.sidebar a:hover{background:var(--soft)}.sidebar a.active{background:linear-gradient(100deg,var(--head),var(--head2));color:#fff}.sidebar a.active i{color:#ffd58a}
.nav-badge{margin-left:auto;min-width:18px;padding:0 6px;border-radius:9px;background:var(--amber);color:#fff;font-size:11px;text-align:center}.nav-badge.red{background:var(--red)}.nav-badge:empty{display:none}
.main{padding:16px 20px 60px;min-width:0}
.page-head{display:flex;align-items:flex-end;gap:12px;margin-bottom:12px}.page-head h2{margin:0;font-size:20px}.page-head p{margin:2px 0 0;color:var(--muted)}.page-head .spacer{flex:1}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.metric-card{position:relative;min-height:88px;padding:14px 16px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}
.metric-card span{color:var(--muted);font-size:12px;font-weight:650}.metric-card strong{display:block;margin-top:6px;font-size:22px}.metric-card small{color:var(--muted)}
.metric-card.accent{border-left:4px solid var(--teal)}.metric-card.gold{border-left:4px solid #c9971f}.metric-card.warn{border-left:4px solid var(--red)}
.positive{color:var(--teal)}.negative{color:var(--red)}
.panel{margin-top:12px;border:1px solid var(--line);border-radius:7px;background:var(--panel);overflow:hidden}
.panel-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}.panel-head h3{margin:0;font-size:15px}.panel-head p{margin:0;color:var(--muted);font-size:12px}.panel-head .spacer{flex:1}
.panel-body{padding:14px}
.grid-2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px}.grid-2>.panel{margin-top:12px}
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--line);background:#fbfcfc}
.toolbar input,.toolbar select,.form-grid input,.form-grid select,.form-grid textarea{height:34px;padding:0 10px;border:1px solid #cbd7da;border-radius:6px;background:#fff;color:var(--text)}
.toolbar input[type=search]{width:240px}.form-grid textarea{height:auto;padding:8px 10px;min-height:70px;resize:vertical}
.button{height:32px;border:1px solid #ccd8dc;border-radius:6px;padding:0 11px;background:#fff;color:#40535a;font-weight:700;cursor:pointer;white-space:nowrap}.button:hover{border-color:#8fa6ac}.button:disabled{opacity:.45;cursor:not-allowed}
.button.primary{border-color:var(--blue);background:var(--blue);color:#fff}.button.success{border-color:#8fd4bf;background:#e9f8f3;color:#08775f}.button.warning{border-color:#ecc77d;background:#fff6e2;color:#8c5c07}.button.danger{border-color:#efb7b7;background:#fff0f0;color:var(--red)}.button.gold{border-color:var(--gold);background:var(--gold);color:#fff}
.button.sm{height:26px;padding:0 8px;font-size:12px}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:9px 10px;border-bottom:1px solid #edf2f3;text-align:left;white-space:nowrap}th{background:#f6f9f9;color:#5b6d73;font-size:12px;font-weight:700}tbody tr:hover{background:#f9fbfb}td.wrap{white-space:normal;min-width:220px}
.table-empty{text-align:center;color:var(--muted);padding:28px!important}
.row-actions{display:flex;gap:5px}
.pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 14px;color:var(--muted)}
.status{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:12px;background:#eef2f3;color:#56686e;font-size:12px;font-weight:700}.status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.status.ok{background:#e6f6f0;color:#08775f}.status.bad{background:#fdecec;color:var(--red)}.status.warn{background:#fff4dd;color:#8c5c07}.status.info{background:#e7f1fa;color:var(--blue)}
.tag{display:inline-block;padding:1px 7px;border-radius:4px;background:#eef3f4;color:#40535a;font-size:12px}.tag.vip{background:#fff1d6;color:#80570d;font-weight:700}.tag.paid{background:#e7f1fa;color:var(--blue)}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px}.muted{color:var(--muted)}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#b4c1c4;margin-right:6px}.dot.on{background:#16b07f;box-shadow:0 0 0 3px rgba(22,176,127,.15)}
.chart{width:100%;height:220px;display:block}
.bars{display:flex;flex-direction:column;gap:10px}.bar-row{display:grid;grid-template-columns:110px 1fr 70px;gap:8px;align-items:center}.bar-track{height:10px;border-radius:5px;background:#edf2f3;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,var(--teal),var(--blue))}
.list{display:flex;flex-direction:column}.list-item{display:flex;gap:10px;align-items:center;padding:9px 14px;border-bottom:1px solid #edf2f3}.list-item:last-child{border-bottom:0}.list-item .grow{flex:1;min-width:0}.list-item small{color:var(--muted)}
.strategy-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.strategy-card{border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden;display:flex;flex-direction:column}
.strategy-card .sc-head{display:flex;gap:12px;align-items:center;padding:14px;background:linear-gradient(100deg,#f6f9f9,#fff);border-bottom:1px solid var(--line)}.strategy-card img{width:46px;height:46px}
.strategy-card h3{margin:0;font-size:16px}.strategy-card .sc-body{padding:12px 14px;flex:1}.strategy-card .sc-foot{display:flex;gap:6px;padding:10px 14px;border-top:1px solid var(--line);background:#fbfcfc}
.kv{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}.kv div{padding:8px;border-radius:6px;background:var(--soft)}.kv span{display:block;color:var(--muted);font-size:11px}.kv strong{font-size:16px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid label{display:flex;flex-direction:column;gap:5px;color:#40535a;font-weight:650;font-size:12px}.form-grid .full{grid-column:1/-1}
.check{display:flex!important;flex-direction:row!important;align-items:center;gap:7px}
.switch{position:relative;display:inline-block;width:40px;height:22px}.switch input{display:none}.switch span{position:absolute;inset:0;border-radius:11px;background:#c5d0d3;cursor:pointer;transition:.15s}.switch span::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.15s}.switch input:checked+span{background:var(--teal)}.switch input:checked+span::after{left:21px}
.admin-modal{width:min(860px,calc(100vw - 30px));max-height:calc(100vh - 40px);padding:0;border:0;border-radius:10px;box-shadow:0 18px 55px rgba(9,31,39,.35)}.admin-modal::backdrop{background:rgba(9,28,34,.55)}
.modal-card{display:flex;flex-direction:column;max-height:calc(100vh - 40px)}.modal-head{display:flex;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:17px;flex:1}
.icon-button{width:34px;height:34px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:20px;cursor:pointer}
.modal-body{padding:16px 18px;overflow:auto}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--line);background:#fbfcfc}.modal-foot:empty{display:none}
.section-title{margin:16px 0 8px;font-size:14px}.section-title:first-child{margin-top:0}
.windows-confirm-dialog{padding:0;border:0;border-radius:9px;width:min(440px,calc(100vw - 30px));box-shadow:0 18px 55px rgba(9,31,39,.35)}.windows-confirm-dialog::backdrop{background:rgba(9,28,34,.45)}
.windows-confirm-titlebar{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:var(--head);color:#fff;font-weight:700}.windows-confirm-close{border:0;background:transparent;color:#fff;font-size:20px;cursor:pointer}
.windows-confirm-body{display:flex;gap:14px;padding:18px}.windows-confirm-icon{flex:0 0 34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fff4dd;color:var(--amber);font-weight:900;font-size:18px}.windows-confirm-copy p{margin:0 0 6px;font-weight:700}.windows-confirm-copy small{color:var(--muted)}
.windows-confirm-actions{display:flex;justify-content:flex-end;gap:8px;padding:10px 16px;background:#fbfcfc;border-top:1px solid var(--line)}
.toast{position:fixed;left:50%;top:76px;transform:translateX(-50%);z-index:60;padding:10px 18px;border-radius:8px;background:var(--head);color:#fff;font-weight:650;opacity:0;pointer-events:none;transition:opacity .2s}.toast.show{opacity:1}.toast.error{background:var(--red)}.toast.success{background:var(--teal)}
.loading{padding:40px;text-align:center;color:var(--muted)}
.notice-preview{padding:9px 14px;border-radius:6px;background:#ffe8cc;color:#a14a00;font-weight:700}
.tabs{display:flex;gap:4px;padding:0 14px;border-bottom:1px solid var(--line)}.tabs button{padding:10px 14px;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font-weight:700;cursor:pointer}.tabs button.active{color:var(--head);border-bottom-color:#c9971f}
@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2,.strategy-cards{grid-template-columns:1fr}}
@media(max-width:760px){.layout{grid-template-columns:1fr}.sidebar{position:static;height:auto;display:flex;flex-wrap:wrap}.nav-group{display:none}.form-grid,.form-grid.three{grid-template-columns:1fr}.ticker,.admin-user{display:none}}
