:root{color:#172033;font-synthesis:none;text-rendering:optimizelegibility;background:#eef3f8;font-family:Inter,Microsoft YaHei,PingFang SC,Arial,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.shell{grid-template-columns:244px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:#fff;border-right:1px solid #dbe3ec;height:100vh;padding:20px 14px;position:sticky;top:0}.brand{border-bottom:1px solid #edf1f5;align-items:center;gap:12px;margin-bottom:14px;padding:8px 8px 20px;display:flex}.brand-mark{color:#fff;background:#1f6f8b;border-radius:8px;place-items:center;width:38px;height:38px;display:grid}.brand strong,.brand span{display:block}.brand span{color:#748397;margin-top:4px;font-size:12px}.admin-box{border-bottom:1px solid #edf1f5;gap:8px;margin:-4px 8px 14px;padding:0 0 14px;display:grid}.admin-box span{color:#56677e;overflow-wrap:anywhere;font-size:12px}.admin-box button{width:100%;height:34px;font-size:12px}.auth-loading,.login-shell{color:#172033;background:#eef3f8;place-items:center;min-height:100vh;display:grid}.login-card{background:#fff;border:1px solid #dfe7ef;border-radius:8px;gap:14px;width:min(420px,100vw - 32px);padding:26px;display:grid;box-shadow:0 18px 50px #11273e1f}.login-mark{width:44px;height:44px}.login-card h1{font-size:24px}.login-card p{color:#718095;margin-top:-8px;font-size:13px}.login-card label{gap:7px;display:grid}.login-card label span{color:#56677e;font-size:13px;font-weight:700}.login-card input{height:42px;padding:0 12px}.login-card button{width:100%}.nav-item{color:#4f6075;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;width:100%;height:42px;margin-bottom:4px;padding:0 12px;display:flex}.nav-item.active{color:#113d4f;background:#e3f2f7;font-weight:700}.dashboard-link{color:#1f6f8b;background:#f2f8fb;margin-bottom:12px}.main{min-width:0;padding:22px}.dashboard{grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;margin-bottom:18px;display:grid}.metric{background:#fff;border:1px solid #dfe7ef;border-radius:8px;padding:16px;position:relative}.metric-has-tooltip{cursor:default}.metric-has-tooltip:hover{border-color:#9cc7d7;box-shadow:0 6px 18px #1f6f8b1f}.metric-tooltip{z-index:20;color:#173044;background:#fff;border:1px solid #b9d6e2;border-radius:8px;padding:10px 11px;font-size:12px;font-style:normal;font-weight:800;line-height:1.45;display:none;position:absolute;bottom:calc(100% - 6px);left:14px;right:14px;box-shadow:0 12px 28px #11273e29}.metric-has-tooltip:hover .metric-tooltip{display:block}.metric span,.metric small{color:#78879a;font-size:12px;display:block}.metric strong{color:#142033;margin:8px 0 6px;font-size:24px;display:block}.panel{background:#fff;border:1px solid #dfe7ef;border-radius:8px;overflow:hidden}.panel-head{border-bottom:1px solid #edf1f5;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 18px 14px;display:flex}h1,h2,p{margin:0}.panel-head h1{font-size:22px;line-height:1.25}.panel-head p,.modal-head p{color:#718095;margin-top:6px;font-size:13px}.actions,.row-actions,.modal-actions{align-items:center;gap:8px;display:flex}.primary,.secondary,.icon-btn{color:#233247;background:#fff;border:1px solid #cfd9e5;border-radius:8px;justify-content:center;align-items:center;gap:8px;height:38px;padding:0 13px;display:inline-flex}.primary{color:#fff;background:#1f6f8b;border-color:#1f6f8b;font-weight:700}.secondary{background:#f5f7fa}.icon-btn{width:38px;padding:0}.icon-btn.small{width:32px;height:32px}.icon-btn.danger{color:#b42318}.copy-cell{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:700}.copy-cell:hover{color:#1f6f8b;text-decoration:underline}.toolbar{border-bottom:1px solid #edf1f5;align-items:center;gap:10px;padding:14px 18px;display:flex}.search-box{color:#8190a4;border:1px solid #d7e0ea;border-radius:8px;flex:1;align-items:center;gap:8px;max-width:480px;height:38px;padding:0 12px;display:flex}.search-box input{border:0;outline:none;width:100%}select,input,textarea{color:#172033;background:#fff;border:1px solid #d7e0ea;border-radius:8px}.toolbar select{height:38px;padding:0 10px}.result-count{color:#718095;font-size:13px}.filtered-total{color:#b45309;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;align-items:center;height:32px;padding:0 10px;font-size:13px;font-weight:800;display:inline-flex}.bulk-actions{align-items:center;gap:8px;margin-left:auto;display:flex}.bulk-actions span{color:#1f6f8b;font-size:13px;font-weight:700}.expense-summary{background:#f7fafc;border-bottom:1px solid #edf1f5;grid-template-columns:1.3fr 1fr 1fr;gap:12px;padding:14px 18px;display:grid}.expense-summary>div{background:#fff;border:1px solid #dfe7ef;border-radius:8px;padding:14px}.expense-summary span,.expense-summary small{color:#748397;font-size:12px;display:block}.expense-summary strong{color:#142033;margin:7px 0 5px;font-size:22px;display:block}.expense-summary strong.negative{color:#b42318}.pagination{background:#fff;border-bottom:1px solid #edf1f5;justify-content:space-between;align-items:center;gap:12px;padding:10px 18px;display:flex}.pagination span{color:#718095;font-size:13px}.pagination div{gap:8px;display:flex}.pagination button:disabled{opacity:.45;cursor:default}.backup-panel{background:#f7fafc;border-bottom:1px solid #edf1f5;padding:14px 18px}.backup-entry{gap:10px;margin-bottom:12px;display:flex}.backup-entry input{flex:1;height:38px;padding:0 11px}.backup-list{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;display:grid}.backup-item{background:#fff;border:1px solid #dfe7ef;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;min-height:40px;padding:7px 8px 7px 12px;display:flex}.backup-item span{color:#223149;overflow-wrap:anywhere;font-weight:700}.empty.compact{padding:14px}.history-modal{width:min(620px,100%)}.history-list{gap:10px;padding:16px 18px 18px;display:grid}.history-entry{gap:10px;display:flex}.history-entry input{flex:1;height:38px;padding:0 11px}.history-row{border:1px solid #dfe7ef;border-radius:8px;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:12px;display:grid}.history-row strong{overflow-wrap:anywhere}.history-row span{color:#1f6f8b;font-size:12px;font-weight:800}.history-row small{color:#718095}.returns-panel{background:#fff}.returns-toolbar{background:#fbfdff;border-bottom:1px solid #edf1f5;grid-template-columns:minmax(260px,1fr) 160px 140px minmax(300px,auto);align-items:center;gap:10px;padding:14px 18px;display:grid}.ad-spend-toolbar{background:#fbfdff;border-bottom:1px solid #edf1f5;grid-template-columns:minmax(260px,1fr) 160px 140px;align-items:center;gap:10px;padding:14px 18px;display:grid}.ad-spend-toolbar select{height:38px;padding:0 10px}.returns-search{max-width:none}.returns-toolbar select{height:38px;padding:0 10px}.rate-control{white-space:nowrap;color:#52647a;justify-content:flex-end;align-items:center;gap:8px;height:38px;font-size:13px;display:inline-flex}.rate-control input{color:#142033;width:86px;height:38px;padding:0 10px;font-weight:800}.returns-summary-grid{background:#f4f8fb;border-bottom:1px solid #edf1f5;grid-template-columns:minmax(280px,1.35fr) minmax(220px,1fr) minmax(220px,1fr);gap:12px;padding:16px 18px;display:grid}.ad-spend-summary-grid{grid-template-columns:repeat(var(--card-count), minmax(220px, 1fr));align-items:stretch;overflow-x:auto}.return-card{background:#fff;border:1px solid #dfe7ef;border-top:4px solid #1f6f8b;border-radius:8px;flex-direction:column;justify-content:space-between;min-width:0;min-height:150px;padding:16px;display:flex}.return-card-personal{background:linear-gradient(#fff 0%,#f0fdfa 100%);border-top-color:#0f766e}.return-card-today{border-top-color:#2563eb}.return-card-month{border-top-color:#7c3aed}.return-card span,.return-card small{display:block}.return-card span{color:#28384e;overflow-wrap:anywhere;font-weight:900}.return-card small{color:#78879a;margin-top:4px;font-size:12px}.return-card strong{color:#102033;white-space:nowrap;font-size:28px;line-height:1.2}.return-card-personal strong{font-size:34px}.return-card-breakdown{flex-wrap:wrap;gap:8px;display:flex}.return-card-breakdown em{color:#40536b;white-space:nowrap;background:#f8fafc;border:1px solid #dbe7f0;border-radius:8px;padding:6px 9px;font-size:12px;font-style:normal;font-weight:800}.ad-spend-summary-grid .return-card{min-height:142px;padding:14px}.ad-spend-summary-grid .return-card strong{font-size:26px}.ad-spend-summary-grid .return-card-personal strong{font-size:30px}.returns-subhead{border-bottom:1px solid #edf1f5;justify-content:space-between;align-items:center;padding:14px 18px;display:flex}.returns-subhead strong,.returns-subhead span{display:block}.returns-subhead strong{color:#172033;font-size:16px}.returns-subhead span{color:#718095;margin-top:4px;font-size:12px}.returns-table table{min-width:960px}.return-total-u{color:#1f6f8b}.profit-panel{background:#f7fafc}.profit-toolbar{background:#fbfdff;border-bottom:1px solid #edf1f5;align-items:center;gap:10px;padding:14px 18px 8px;display:flex}.date-field{color:#708097;background:#fff;border:1px solid #d7e0ea;border-radius:8px;align-items:center;gap:8px;height:38px;padding:0 10px;font-size:12px;font-weight:800;display:inline-flex}.date-field input{border:0;height:30px;padding:0}.shortcut-row{background:#fbfdff;border-bottom:1px solid #edf1f5;flex-wrap:wrap;gap:8px;padding:0 18px 14px;display:flex}.shortcut{color:#46566f;background:#fff;border:1px solid #d7e0ea;border-radius:8px;height:30px;padding:0 11px;font-weight:800}.shortcut.active{color:#1f6f8b;background:#e8f6fb;border-color:#9bd3e7}.profit-summary-grid{border-bottom:1px solid #edf1f5;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;padding:14px 18px;display:grid}.profit-summary-grid section,.profit-card{background:#fff;border:1px solid #dfe7ef;border-radius:8px}.profit-summary-grid section{padding:14px}.profit-summary-grid span,.profit-summary-grid small{color:#748397;font-size:12px;display:block}.profit-summary-grid strong{color:#142033;margin:7px 0 5px;font-size:24px;display:block}.negative{color:#b42318!important}.profit-grid{grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:14px;padding:16px 18px;display:grid}.profit-card{overflow:hidden}.profit-card-head{justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 16px 4px;display:flex}.profit-card-head strong{color:#142033;font-size:17px;display:block}.profit-card-head span,.profit-card-stats span{color:#748397;font-size:12px}.profit-card-head b{color:#047857;font-size:20px}.profit-chart{width:100%;height:190px;display:block}.profit-zero-line{stroke:#d8e1eb;stroke-width:1px;stroke-dasharray:4 4}.profit-line{fill:none;stroke:#1f6f8b;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}.profit-dot{stroke:#fff;stroke-width:2px}.profit-dot.positive{fill:#059669}.profit-dot.negative{fill:#dc2626}.profit-axis{fill:#718095;font-size:11px;font-weight:700}.profit-chart-empty{color:#8b98aa;place-items:center;height:190px;display:grid}.profit-card-stats{border-top:1px solid #edf1f5;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px 16px 14px;display:grid}.profit-card-stats span{background:#f8fbfd;border-radius:8px;min-height:30px;padding:8px}.profit-channel-editor{background:#f8fbfd;border:1px solid #dfe7ef;border-radius:8px;gap:10px;padding:12px;display:grid}.profit-channel-head,.profit-channel-row{align-items:end;gap:10px;display:grid}.profit-channel-head{grid-template-columns:minmax(0,1fr) auto;align-items:center}.profit-channel-head span{color:#526175;font-size:13px;font-weight:800}.profit-channel-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px}.placeholder-row{background:#fbfcfe}.placeholder-row td{color:#718095}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:980px}th,td{text-align:left;vertical-align:middle;border-bottom:1px solid #edf1f5;padding:13px 16px;font-size:13px}th{color:#6c7d91;white-space:nowrap;background:#f7f9fb;font-weight:700}.check-col{text-align:center;width:44px}.check-col input{width:16px;height:16px}td{color:#1b2b42;max-width:320px}td a{color:#1f6f8b;align-items:center;gap:4px;font-weight:700;text-decoration:none;display:inline-flex}.voucher-link{min-width:82px}.voucher-empty{color:#8b98aa;cursor:default;background:#f4f7fa;border:1px solid #d7e0ea;border-radius:8px;height:30px;padding:0 10px}.status-pill{white-space:nowrap;border:1px solid #0000;border-radius:8px;align-items:center;min-height:28px;padding:4px 10px;font-weight:900;display:inline-flex}.status-创建中{color:#475569;background:#f1f5f9;border-color:#cbd5e1}.status-一审中{color:#92400e;background:#fffbeb;border-color:#fcd34d}.status-一审通过{color:#047857;background:#ecfdf5;border-color:#6ee7b7}.status-二审中{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.status-二审通过{color:#4338ca;background:#eef2ff;border-color:#a5b4fc}.status-gmc死亡{color:#b91c1c;background:#fef2f2;border-color:#fca5a5}.status-存活,.status-使用中{color:#047857;background:#ecfdf5;border-color:#6ee7b7}.status-停用{color:#b91c1c;background:#fef2f2;border-color:#fca5a5}.pair-btn{color:#1f6f8b;background:#eef8fb;border:1px solid #1f6f8b;border-radius:8px;height:32px;padding:0 10px;font-size:12px;font-weight:800}.ad-account-list{gap:7px;display:grid}.ad-account-item{justify-content:space-between;align-items:center;gap:10px;max-width:360px;display:flex}.ad-account-item span{color:#1b2b42;font-weight:700}.ad-account-item em{color:#475569;white-space:nowrap;background:#f1f5f9;border:1px solid #d7e0ea;border-radius:8px;margin-left:auto;padding:4px 8px;font-size:12px;font-style:normal;font-weight:800}.ad-status{border:1px solid #d7e0ea;border-radius:8px;min-width:54px;height:26px;padding:0 8px;font-size:12px;font-weight:900}.ad-status.alive{color:#047857;background:#ecfdf5;border-color:#6ee7b7}.ad-status.dead{color:#b91c1c;background:#fef2f2;border-color:#fca5a5}.ad-board{background:#f7fafc;gap:12px;padding:16px 18px 18px;display:grid}.ad-store-card{background:#fff;border:1px solid #dfe7ef;border-radius:8px;overflow:hidden}.ad-store-head{background:#f8fbfd;border-bottom:1px solid #edf1f5;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;display:flex}.ad-store-head strong{color:#142033;font-size:16px;display:block}.ad-store-head span{color:#748397;font-size:12px}.ad-store-stats{white-space:nowrap;gap:8px;display:flex}.ad-store-stats span{border-radius:8px;padding:5px 9px;font-weight:900}.ad-store-stats .alive{color:#047857;background:#ecfdf5;border:1px solid #6ee7b7}.ad-store-stats .dead{color:#b91c1c;background:#fef2f2;border:1px solid #fca5a5}.ad-store-accounts{gap:8px;padding:12px;display:grid}.ad-account-row{background:#fff;border:1px solid #edf1f5;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:8px 10px 8px 12px;display:flex}.ad-account-actions{align-items:center;gap:6px;display:flex}.ad-account-main{align-items:center;gap:10px;min-width:0;display:flex}.ad-account-main strong{color:#0f2137;font-size:14px}.ad-account-main span{color:#475569;white-space:nowrap;background:#f1f5f9;border:1px solid #d7e0ea;border-radius:8px;padding:4px 8px;font-size:12px;font-weight:900}.muted,.empty,.error{color:#8b98aa}.empty,.error{text-align:center;padding:36px}.error{color:#b42318}.modal-backdrop{z-index:10;background:#0b12207a;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:8px;width:min(920px,100%);max-height:90vh;overflow:auto;box-shadow:0 24px 80px #0a141e38}.modal-head{border-bottom:1px solid #edf1f5;justify-content:space-between;gap:16px;padding:18px;display:flex}.modal-head h2{font-size:20px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;display:grid}.form-grid label{gap:7px;display:grid}.form-grid label span{color:#617085;font-size:13px;font-weight:700}.form-grid input,.form-grid select{height:40px;padding:0 11px}.form-grid textarea{resize:vertical;min-height:94px;padding:10px 11px}.file-field{gap:8px;display:grid}.file-field input{height:auto;padding:9px 11px}.file-field a,.field-hint{color:#1f6f8b;font-size:12px;font-weight:700;text-decoration:none}.form-grid .wide{grid-column:1/-1}.modal-actions{border-top:1px solid #edf1f5;justify-content:flex-end;padding:14px 18px 18px}.form-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin:0 18px 14px;padding:10px 12px;font-size:13px;font-weight:700}@media (width<=980px){.shell{grid-template-columns:1fr}.sidebar{height:auto;position:static}.dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.main{padding:12px}.dashboard,.expense-summary,.form-grid{grid-template-columns:1fr}.backup-entry,.history-entry,.history-row{flex-direction:column;grid-template-columns:1fr}.ad-store-head,.ad-account-row,.ad-account-main{flex-direction:column;align-items:flex-start}.panel-head,.toolbar{flex-direction:column;align-items:stretch}}
