:root{color:#1c1917;background:#f4f0e8;font-family:IBM Plex Sans,Source Han Sans SC,Noto Sans SC,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:inherit;text-decoration:none}button,input,select{font:inherit}#root{min-height:100vh}.app-shell{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{background:#1c1917;color:#e7e5e4;padding:24px 16px;display:flex;flex-direction:column;gap:8px}.sidebar .brand{font-size:18px;font-weight:600;letter-spacing:.04em;margin-bottom:16px}.sidebar a{display:block;padding:10px 12px;border-radius:8px;color:#a8a29e}.sidebar a.active,.sidebar a:hover{background:#292524;color:#fafaf9}.sidebar .foot{margin-top:auto;padding-top:16px;border-top:1px solid #44403c;font-size:13px;color:#a8a29e}.main{padding:28px 32px 48px}.page-title{margin:0 0 8px;font-size:28px;font-weight:600}.page-desc{margin:0 0 24px;color:#57534e}.card{background:#fffdf8;border:1px solid #e7e5e4;border-radius:12px;padding:16px 18px;margin-bottom:16px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:8px 10px;border-bottom:1px solid #e7e5e4;vertical-align:top}th{color:#57534e;font-weight:600}.th-sort{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.sort-btns{display:inline-flex;flex-direction:column;gap:0;line-height:1}.sort-btn{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:0 2px;border:0;background:transparent;color:#a8a29e;font-size:9px;line-height:1;cursor:pointer}.sort-btn:hover{color:#57534e}.sort-btn.active{color:#1c1917}.btn{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 14px;border-radius:8px;border:1px solid #1c1917;background:#1c1917;color:#fafaf9;cursor:pointer}.btn.ghost{background:transparent;color:#1c1917}.btn.primary{background:#1c1917;color:#fafaf9}.btn.danger{background:transparent;border-color:#b91c1c;color:#b91c1c}.btn-sm{height:30px;padding:0 12px;font-size:12px}.btn:disabled{opacity:.5;cursor:not-allowed}.actions{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap}.grid-2{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stat{font-size:28px;font-weight:600;margin-top:4px}.flash{padding:10px 12px;border-radius:8px;margin:0 0 12px}.flash.err{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.flash.ok{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}@media(max-width:960px){.grid-2,.grid-3{grid-template-columns:1fr}}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.field input,.field select{height:36px;padding:0 10px;border-radius:8px;border:1px solid #d6d3d1;background:#fff}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(400px,100%);background:#fffdf8;border:1px solid #e7e5e4;border-radius:16px;padding:28px}.muted{color:#78716c;font-size:13px}.err{color:#b91c1c;font-size:13px}.ok{color:#15803d}.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.mono{font-family:IBM Plex Mono,ui-monospace,monospace;font-size:12px}.console-log{height:320px;overflow:auto;background:#1c1917;color:#e7e5e4;border-radius:8px;padding:12px;font-family:IBM Plex Mono,ui-monospace,monospace;font-size:12px;white-space:pre-wrap}.stat-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:16px}.stat-card{background:#fffdf8;border:1px solid #e7e5e4;border-radius:12px;padding:16px 20px;min-width:140px}.stat-num{font-size:32px;font-weight:600;line-height:1.2;margin-top:4px}.pagination{margin-top:16px;justify-content:center;gap:16px;padding-top:12px;border-top:1px solid #e7e5e4}.mail-chart-wrap{width:100%}.chart-period{font-size:15px;font-weight:600;color:#1c1917;margin-bottom:8px}.chart-shell{display:flex;align-items:stretch;width:100%;min-height:280px;overflow:hidden;border:1px solid #e7e5e4;border-radius:8px;background:#fafaf9}.chart-y-axis{flex-shrink:0;display:block;border-right:1px solid #e7e5e4;background:#fafaf9}.chart-plot-viewport{position:relative;flex:1;min-width:0;height:280px;overflow:hidden;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none}.chart-plot-viewport:active{cursor:grabbing}.chart-grid{position:absolute;left:0;top:0;pointer-events:none}.chart-plot-track{position:absolute;left:0;top:0;display:flex;height:280px;will-change:transform}.chart-plot-slide{flex-shrink:0;height:280px;overflow:hidden}.chart-plot-svg{display:block;max-width:100%}.chart-label{font-size:10px;fill:#78716c}.chart-bar{fill:#1c1917}.chart-period-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.chart-legend{display:flex;flex-wrap:wrap;gap:10px 14px;justify-content:flex-end;font-size:12px;color:#57534e}.chart-legend-item{display:inline-flex;align-items:center;gap:6px}.chart-legend-swatch{width:10px;height:10px;border-radius:2px;flex-shrink:0}.site-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.site-tab{border:1px solid #d6d3d1;background:#fafaf9;color:#57534e;border-radius:8px;padding:8px 12px;cursor:pointer}.site-tab.active{background:#1c1917;border-color:#1c1917;color:#fafaf9}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1c191759;z-index:40;display:flex;justify-content:flex-end}.drawer-panel{width:min(480px,100%);height:100%;background:#fafaf9;border-left:1px solid #e7e5e4;display:flex;flex-direction:column;box-shadow:-8px 0 24px #1c191714}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #e7e5e4}.drawer-title{font-size:16px;font-weight:600}.drawer-body{flex:1;overflow:auto;padding:12px 18px 24px;display:flex;flex-direction:column;gap:12px}.drawer-foot{padding:12px 18px;border-top:1px solid #e7e5e4}.hit-card{border:1px solid #e7e5e4;border-radius:8px;padding:10px 12px;background:#fff;font-size:13px;display:flex;flex-direction:column;gap:4px}.break{word-break:break-all}.dropzone{border:1.5px dashed #a8a29e;border-radius:12px;background:#fffdf8;padding:28px 20px;text-align:center;margin-bottom:16px}.dropzone.over{border-color:#1c1917;background:#f4f0e8}@media(max-width:860px){.app-shell{grid-template-columns:1fr}.sidebar{flex-direction:row;flex-wrap:wrap;align-items:center}.sidebar .foot{width:100%;margin-top:0}}
