.huitun-dashboard{--huitun-page:#f9fafb;--huitun-card:#ffffff;--huitun-text:#172033;--huitun-muted:#667085;--huitun-line:#e5e7eb;--huitun-line-strong:#d1d5db;--huitun-accent:#e11d48;--huitun-accent-soft:#fff1f2;--huitun-danger:#b42318;min-height:70vh;color:var(--huitun-text);background:var(--huitun-page);border:1px solid var(--huitun-line);border-radius:12px;font-size:14px}.huitun-dashboard,.huitun-dashboard *{box-sizing:border-box}.huitun-dashboard button,.huitun-dashboard input,.huitun-dashboard select{font:inherit}.huitun-dashboard button{color:inherit}.huitun-dashboard .huitun-topbar{position:sticky;top:0;z-index:30;min-height:68px;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--huitun-line);backdrop-filter:blur(10px)}.huitun-dashboard .brand-mark{display:flex;align-items:baseline;gap:10px;white-space:nowrap}.huitun-dashboard .brand-mark strong{font-size:18px;letter-spacing:-.3px}.huitun-dashboard .brand-mark span{color:var(--huitun-muted);font-size:12px}.huitun-dashboard .topbar-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.huitun-dashboard .project-select{display:flex;align-items:center;gap:7px}.huitun-dashboard .project-select span{color:var(--huitun-muted);font-size:12px}.huitun-dashboard .project-select select{min-width:200px;height:38px;padding:0 34px 0 11px;color:var(--huitun-text);background:var(--huitun-card);border:1px solid var(--huitun-line-strong);border-radius:7px;outline:none}.huitun-dashboard .project-select select:focus-visible,.huitun-dashboard a:focus-visible,.huitun-dashboard button:focus-visible,.huitun-dashboard input:focus-visible{outline:2px solid #fda4af;outline-offset:2px}.huitun-dashboard .button{min-height:38px;padding:0 13px;border:1px solid transparent;border-radius:7px;background:transparent;cursor:pointer;font-size:12px;font-weight:650;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.huitun-dashboard .button.primary{color:#fff;background:var(--huitun-accent);border-color:var(--huitun-accent)}.huitun-dashboard .button.secondary{background:var(--huitun-card);border-color:var(--huitun-line-strong)}.huitun-dashboard .button.text-button{color:var(--huitun-muted);padding-inline:7px}.huitun-dashboard .button:hover{border-color:#9ca3af;background:#f9fafb}.huitun-dashboard .button.primary:hover{background:#be123c;border-color:#be123c}.huitun-dashboard .button:disabled{opacity:.5;cursor:not-allowed}.huitun-dashboard .huitun-dashboard-main{width:100%;padding:22px 20px 32px}.huitun-dashboard .page-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.huitun-dashboard .page-intro h1{margin:0;font-size:24px;line-height:1.3;font-weight:650;letter-spacing:-.4px}.huitun-dashboard .page-intro p{margin:5px 0 0;color:var(--huitun-muted);font-size:12px}.huitun-dashboard .sample-tag,.huitun-dashboard .saved-tag{padding:5px 9px;border:1px solid var(--huitun-line-strong);border-radius:5px;color:var(--huitun-muted);background:var(--huitun-card);font-size:11px}.huitun-dashboard .saved-tag{color:#047857;border-color:#a7f3d0;background:#ecfdf5}.huitun-dashboard .summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.huitun-dashboard .summary-card{min-width:0;padding:16px;background:var(--huitun-card);border:1px solid var(--huitun-line);border-radius:9px}.huitun-dashboard .summary-card>span{display:block;color:var(--huitun-muted);font-size:12px}.huitun-dashboard .summary-card strong{display:block;margin:8px 0 5px;font-size:23px;line-height:1;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.huitun-dashboard .summary-card small{color:var(--huitun-muted);font-size:10px}.huitun-dashboard .panel{min-width:0;margin-bottom:14px;padding:20px;background:var(--huitun-card);border:1px solid var(--huitun-line);border-radius:10px}.huitun-dashboard .panel-header{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding-bottom:16px}.huitun-dashboard .panel-header h2{margin:0;font-size:15px;font-weight:650}.huitun-dashboard .panel-header p{margin:0;color:var(--huitun-muted);font-size:10px;text-align:right}.huitun-dashboard .dashboard-grid{display:grid;gap:14px}.huitun-dashboard .dashboard-grid.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.huitun-dashboard .dashboard-grid.wide-left{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}.huitun-dashboard .stacked-bar{display:flex;width:100%;height:18px;overflow:hidden;background:#f1f5f9;border-radius:4px}.huitun-dashboard .stacked-bar span{min-width:2px}.huitun-dashboard .composition-legend{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:16px}.huitun-dashboard .composition-legend>div{display:grid;grid-template-columns:8px minmax(0,1fr);align-items:center;column-gap:7px;row-gap:2px;min-width:0}.huitun-dashboard .composition-legend i{width:8px;height:8px;border-radius:2px;grid-row:span 2}.huitun-dashboard .composition-legend-main{display:flex;min-width:0;align-items:baseline;gap:8px}.huitun-dashboard .composition-legend span{overflow:hidden;color:var(--huitun-muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.huitun-dashboard .composition-legend strong{flex:0 0 auto;font-size:12px;font-variant-numeric:tabular-nums}.huitun-dashboard .composition-legend small{grid-column:2;color:var(--huitun-muted);font-size:9px}.huitun-dashboard .horizontal-chart{display:grid;gap:12px}.huitun-dashboard .chart-row{min-width:0}.huitun-dashboard button.chart-row{width:100%;padding:8px;color:inherit;background:transparent;border:1px solid transparent;border-radius:6px;text-align:left;cursor:pointer}.huitun-dashboard button.chart-row:hover{background:#f9fafb;border-color:var(--huitun-line)}.huitun-dashboard button.chart-row .chart-label span:after{content:"查看";margin-left:7px;color:var(--huitun-accent);font-size:9px;font-weight:650}.huitun-dashboard .chart-label{display:flex;justify-content:space-between;gap:14px;margin-bottom:5px}.huitun-dashboard .chart-label span{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.huitun-dashboard .chart-label strong{flex:none;font-size:11px;font-variant-numeric:tabular-nums}.huitun-dashboard .chart-track{height:7px;overflow:hidden;background:#f1f5f9;border-radius:2px}.huitun-dashboard .chart-track span{display:block;height:100%;border-radius:2px}.huitun-dashboard .chart-row>small{display:block;margin-top:4px;color:var(--huitun-muted);font-size:9px}.huitun-dashboard .empty-chart{min-height:140px;display:grid;place-items:center;color:var(--huitun-muted);border:1px dashed var(--huitun-line-strong);border-radius:7px;font-size:11px}.huitun-dashboard .inline-totals{display:flex;gap:24px;padding:10px 12px;margin-bottom:16px;background:#f9fafb;border-radius:6px;color:var(--huitun-muted);font-size:10px}.huitun-dashboard .inline-totals strong{margin-left:6px;color:var(--huitun-text);font-size:13px}.huitun-dashboard .table-wrap{overflow-x:auto}.huitun-dashboard table{width:100%;border-collapse:collapse;font-size:11px}.huitun-dashboard td,.huitun-dashboard th{padding:11px 12px;text-align:left;border-bottom:1px solid var(--huitun-line);white-space:nowrap}.huitun-dashboard th{color:var(--huitun-muted);background:#f9fafb;font-weight:600}.huitun-dashboard td{font-variant-numeric:tabular-nums}.huitun-dashboard td small,.huitun-dashboard td strong{display:block}.huitun-dashboard td small{margin-top:3px;color:var(--huitun-muted);font-size:9px}.huitun-dashboard .method-note{padding:8px 2px 0;color:var(--huitun-muted);font-size:10px;line-height:1.7}.huitun-dashboard .loading{min-height:55vh;display:grid;place-items:center;color:var(--huitun-muted)}.huitun-dashboard .modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(20,28,43,.42)}.huitun-dashboard .modal{width:min(580px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:22px;background:var(--huitun-card);border:1px solid var(--huitun-line-strong);border-radius:10px;box-shadow:0 18px 50px rgba(23,32,51,.16)}.huitun-dashboard .rules-modal{width:min(760px,100%)}.huitun-dashboard .notes-modal{width:min(780px,100%)}.huitun-dashboard .modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.huitun-dashboard .modal-header h2{margin:0;font-size:18px;font-weight:650}.huitun-dashboard .modal-header p{margin:5px 0 0;color:var(--huitun-muted);font-size:11px}.huitun-dashboard .close-button{width:30px;height:30px;border:1px solid var(--huitun-line);border-radius:6px;background:var(--huitun-card);cursor:pointer;font-size:20px;line-height:1}.huitun-dashboard .file-drop{width:100%;min-height:150px;display:grid;place-content:center;gap:6px;color:var(--huitun-text);background:#f9fafb;border:1px dashed #9ca3af;border-radius:8px;cursor:pointer}.huitun-dashboard .file-drop strong{font-size:15px}.huitun-dashboard .file-drop span{color:var(--huitun-muted);font-size:10px}.huitun-dashboard .form-error{margin:0 0 14px;padding:10px 12px;color:var(--huitun-danger);background:#fff1f2;border:1px solid #fecdd3;border-radius:7px;font-size:11px}.huitun-dashboard .modal .form-error{margin:12px 0 0}.huitun-dashboard .sample-notice{margin-bottom:12px;padding:9px 11px;color:var(--huitun-muted);background:#f9fafb;border:1px solid var(--huitun-line);border-radius:6px;font-size:10px}.huitun-dashboard .note-list{display:grid;border:1px solid var(--huitun-line);border-radius:7px;overflow:hidden}.huitun-dashboard .note-link{display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;gap:20px;padding:12px 14px;color:var(--huitun-text);background:var(--huitun-card);border-bottom:1px solid var(--huitun-line);text-decoration:none}.huitun-dashboard .note-link:last-child{border-bottom:0}.huitun-dashboard .note-link:hover{background:#f9fafb}.huitun-dashboard .note-link.disabled{color:var(--huitun-muted)}.huitun-dashboard .note-main,.huitun-dashboard .note-main small,.huitun-dashboard .note-main strong,.huitun-dashboard .note-stats,.huitun-dashboard .note-stats small,.huitun-dashboard .note-stats strong{display:block}.huitun-dashboard .note-main{min-width:0}.huitun-dashboard .note-title-link{color:var(--huitun-text);text-decoration:none}.huitun-dashboard .note-main strong{overflow:hidden;font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.huitun-dashboard .note-main small{margin-top:4px;color:var(--huitun-muted);font-size:9px}.huitun-dashboard .note-side{display:grid;justify-items:end;gap:4px}.huitun-dashboard .note-stats{text-align:right}.huitun-dashboard .note-stats strong{font-size:12px;font-variant-numeric:tabular-nums}.huitun-dashboard .note-stats small{margin-top:2px;color:var(--huitun-muted);font-size:9px}.huitun-dashboard .note-backups{display:flex;justify-content:flex-end;gap:7px;white-space:nowrap}.huitun-dashboard .note-fallback,.huitun-dashboard .note-repair{padding:0;color:#475569;background:transparent;border:0;cursor:pointer;font:inherit;font-size:9px;text-decoration:underline;text-underline-offset:2px}.huitun-dashboard .note-repair:disabled{color:var(--huitun-muted);cursor:wait}.huitun-dashboard .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.huitun-dashboard .form-grid label{display:grid;gap:6px}.huitun-dashboard .form-grid label span{color:var(--huitun-muted);font-size:10px}.huitun-dashboard .account-search,.huitun-dashboard .form-grid input,.huitun-dashboard .form-grid select{width:100%;height:38px;padding:0 10px;color:var(--huitun-text);background:var(--huitun-card);border:1px solid var(--huitun-line-strong);border-radius:6px;outline:none}.huitun-dashboard .account-picker{margin-top:18px;padding-top:17px;border-top:1px solid var(--huitun-line)}.huitun-dashboard .account-picker h3{margin:0;font-size:13px;font-weight:650}.huitun-dashboard .account-picker p{margin:4px 0 10px;color:var(--huitun-muted);font-size:10px}.huitun-dashboard .account-search{margin-bottom:8px}.huitun-dashboard .account-options{max-height:260px;overflow:auto;border:1px solid var(--huitun-line);border-radius:6px}.huitun-dashboard .account-options label{display:flex;align-items:center;gap:10px;padding:9px 10px;border-bottom:1px solid var(--huitun-line);cursor:pointer}.huitun-dashboard .account-options label:last-child{border-bottom:0}.huitun-dashboard .account-options label span,.huitun-dashboard .account-options small,.huitun-dashboard .account-options strong{display:block}.huitun-dashboard .account-options strong{font-size:11px}.huitun-dashboard .account-options small{margin-top:2px;color:var(--huitun-muted);font-size:9px}.huitun-dashboard .modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.huitun-dashboard .ai-status{margin:0 0 14px;padding:10px 12px;color:#9f1239;background:var(--huitun-accent-soft);border:1px solid #fecdd3;border-radius:7px}.huitun-dashboard .ai-status.error{color:var(--huitun-danger)}.huitun-dashboard .ai-status span{display:block;font-size:11px}.huitun-dashboard .report-export-modal{width:min(640px,100%)}.huitun-dashboard .report-export-summary{display:grid;gap:3px;padding:13px 14px;margin-bottom:12px;background:#f9fafb;border:1px solid var(--huitun-line);border-radius:7px}.huitun-dashboard .report-export-summary span{color:var(--huitun-muted);font-size:9px}.huitun-dashboard .report-export-summary strong{font-size:14px}.huitun-dashboard .report-export-summary small{color:var(--huitun-muted);font-size:10px}.huitun-dashboard .report-export-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.huitun-dashboard .report-export-option{min-width:0;display:flex;align-items:flex-start;gap:12px;padding:15px;color:var(--huitun-text);background:var(--huitun-card);border:1px solid var(--huitun-line-strong);border-radius:8px;text-align:left;cursor:pointer}.huitun-dashboard .report-export-option:hover{border-color:var(--huitun-accent);background:#fff7f8}.huitun-dashboard .report-export-option small,.huitun-dashboard .report-export-option strong,.huitun-dashboard .report-export-option>span:last-child{display:block}.huitun-dashboard .report-export-option strong{margin-top:1px;font-size:12px}.huitun-dashboard .report-export-option small{margin-top:4px;color:var(--huitun-muted);font-size:9px;line-height:1.55}.huitun-dashboard .report-export-icon{flex:0 0 auto;min-width:42px;padding:5px 6px;color:var(--huitun-accent);background:var(--huitun-accent-soft);border-radius:5px;font-size:9px;font-weight:750;text-align:center;letter-spacing:.04em}.huitun-dashboard .report-privacy-note{margin:13px 0 0;color:var(--huitun-muted);font-size:9px;line-height:1.65}.huitun-dashboard .report-print-frame{position:fixed;right:0;bottom:0;width:1px;height:1px;opacity:0;border:0;pointer-events:none}@media (max-width:1100px){.huitun-dashboard .huitun-topbar{position:static;align-items:flex-start;flex-direction:column}.huitun-dashboard .topbar-controls{width:100%;justify-content:flex-start;flex-wrap:wrap}.huitun-dashboard .project-select{flex:1 1 100%}.huitun-dashboard .project-select select{flex:1;min-width:0}.huitun-dashboard .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.huitun-dashboard .composition-legend{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:800px){.huitun-dashboard .huitun-dashboard-main{padding:18px 14px 26px}.huitun-dashboard .dashboard-grid.two-columns,.huitun-dashboard .dashboard-grid.wide-left{grid-template-columns:1fr}.huitun-dashboard .composition-legend{grid-template-columns:repeat(2,minmax(0,1fr))}.huitun-dashboard .panel-header{display:block}.huitun-dashboard .panel-header p{margin-top:5px;text-align:left}}@media (max-width:540px){.huitun-dashboard .huitun-topbar{padding:12px}.huitun-dashboard .brand-mark{align-items:flex-start;flex-direction:column;gap:2px;white-space:normal}.huitun-dashboard .summary-grid{grid-template-columns:1fr}.huitun-dashboard .panel,.huitun-dashboard .summary-card{padding:14px}.huitun-dashboard .form-grid{grid-template-columns:1fr}.huitun-dashboard .note-link{grid-template-columns:minmax(0,1fr) 84px;gap:10px;padding-inline:10px}.huitun-dashboard .report-export-options{grid-template-columns:1fr}}