:root{--bg: #f4f6fa;--card: #ffffff;--ink: #1a2233;--muted: #6b7a90;--brand: #5B9BD5;--brand-d: #4888c4;--brand-red: #D32F2F;--border: #dfe3ec;--error: #D32F2F;--ok: #1f8a4c}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--ink)}.app{height:100vh;display:flex;flex-direction:column;overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;padding:10px 24px;background:#fff;border-bottom:2px solid var(--brand);box-shadow:0 1px 4px #0000000f;flex-shrink:0}.brand{font-weight:600;display:flex;align-items:center;gap:10px;font-size:15px;color:var(--ink)}.brand .brand-swink{color:var(--brand)}.brand .brand-pay{color:var(--brand-red)}.logo{height:34px;width:auto;border-radius:0;background:none}.userbox{display:flex;align-items:center;gap:14px}.content{flex:1;display:flex;justify-content:center;align-items:flex-start;padding:40px 16px;overflow-y:auto}.footer{text-align:center;padding:16px;font-size:12px}.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:28px;width:100%;max-width:460px;box-shadow:0 8px 30px #1f27400f}.card h2{margin:0 0 6px}.login{max-width:380px}.report{max-width:480px}label{display:block;font-size:13px;font-weight:600;margin:14px 0 6px}input,select{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:9px;font-size:14px;background:#fff;color:var(--ink)}input:focus,select:focus{outline:none;border-color:var(--brand)}.field{margin-bottom:4px}.row{display:flex;gap:12px}.row .field{flex:1}button.primary{margin-top:18px;width:100%;padding:11px;border:none;border-radius:9px;background:var(--brand);color:#fff;font-size:15px;font-weight:600;cursor:pointer}button.primary:hover{background:var(--brand-d)}button.primary:disabled{opacity:.6;cursor:default}button.link{background:none;border:none;color:var(--brand);cursor:pointer;font-size:14px}.muted{color:var(--muted)}.small{font-size:12px}.center{display:grid;place-items:center;height:100vh}.error{margin-top:12px;color:var(--error);font-size:13px;background:#fdece9;padding:8px 10px;border-radius:8px}.notice{margin-top:12px;color:var(--ok);font-size:13px;background:#e8f6ee;padding:8px 10px;border-radius:8px}.error.locked{background:#fbe7d8;color:#8a4b0b}.warn{margin-top:12px;color:#8a5a00;font-size:12px;background:#fcf3da;padding:8px 10px;border-radius:8px}.report.wide{max-width:1600px}.controls{display:flex;gap:20px;flex-wrap:wrap}.controls .field{flex:1;min-width:240px}button.ghost{padding:7px 12px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--brand);font-size:13px;font-weight:600;cursor:pointer}button.ghost:hover{background:#f3f5fd}button.ghost:disabled{opacity:.5;cursor:default}.result{margin-top:20px;border-top:1px solid var(--border);padding-top:16px}.result-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.result-bar .actions{display:flex;gap:8px}.table-scroll{overflow:auto;max-height:460px;border:1px solid var(--border);border-radius:8px}table.data{border-collapse:collapse;font-size:12px;white-space:nowrap}table.data th,table.data td{padding:7px 10px;border-bottom:1px solid var(--border);text-align:left}table.data thead th{position:sticky;top:0;background:#f4f5fb;color:var(--ink);font-weight:600;border-bottom:2px solid var(--border);z-index:1}table.pivot-table thead th{background:var(--brand);color:#fff;border-bottom:2px solid var(--brand-d)}table.pivot-table tfoot td{background:#f0f1f8}table.data tbody tr:hover{background:#f8f9fd}.tabs{display:flex;gap:4px;padding:10px 24px 0;background:#fff;border-bottom:1px solid var(--border);flex-shrink:0}.tab{padding:10px 16px;border:none;background:none;cursor:pointer;font-size:14px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent}.tab:hover{color:var(--ink)}.tab.active{color:var(--brand);border-bottom-color:var(--brand)}a.ghost{text-decoration:none;display:inline-block}.metrics{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}.metric{flex:1;min-width:150px;background:#f4f5fb;border-radius:10px;padding:14px 16px}.m-label{font-size:12px;color:var(--muted);margin-bottom:4px}.m-value{font-size:24px;font-weight:600;color:var(--ink)}.chart-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}.chart-head h3{margin:0;font-size:15px}.toggle{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}.toggle button{border:none;background:#fff;padding:5px 12px;font-size:12px;font-weight:600;color:var(--muted);cursor:pointer}.toggle button.on{background:var(--brand);color:#fff}.bars{display:flex;align-items:flex-end;gap:2px;padding:8px;border:1px solid var(--border);border-radius:8px;background:#fbfbfe}.bar-col{flex:1;height:100%;display:flex;align-items:flex-end;min-width:3px}.bar{width:100%;background:var(--brand);border-radius:2px 2px 0 0;min-height:1px;transition:height .15s}.bar-col:hover .bar{background:var(--brand-d)}.bars-axis{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:4px 2px 0}.hbars{display:flex;flex-direction:column;gap:6px}.hbar-row{display:grid;grid-template-columns:220px 1fr 44px;align-items:center;gap:10px;font-size:13px}.hbar-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hbar-track{background:#eef0f8;border-radius:6px;height:16px}.hbar-fill{background:var(--brand);height:100%;border-radius:6px;min-width:2px}.hbar-count{text-align:right;font-weight:600}.mom{border:1px solid var(--border);border-radius:12px;padding:16px;margin:16px 0;background:#fcfcff}.mchart{display:flex;align-items:flex-end;gap:6px;height:190px;padding-top:18px}.mcol{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.mcol .mv{font-size:11px;color:var(--muted);margin-bottom:3px}.mcol .mbar{width:64%;background:var(--brand);border-radius:3px 3px 0 0;min-height:1px}.mcol:hover .mbar{background:var(--brand-d)}.mcol .ml{font-size:11px;color:var(--muted);margin-top:6px;white-space:nowrap}.mtable-wrap{margin-top:12px}.mtable-wrap summary{cursor:pointer}.campaign-badge{display:inline-block;background:var(--brand);color:#fff;font-size:13px;font-weight:600;padding:6px 14px;border-radius:20px;margin:4px 0 8px}.ov-panel{background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px;margin-bottom:16px;box-shadow:0 2px 8px #1f27400a}.ov-fieldset{border:1.5px solid var(--border);border-radius:10px;padding:14px 16px 16px;margin:0 0 14px}.ov-fieldset:last-child{margin-bottom:0}.ov-fieldset legend{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--brand);padding:0 8px;margin-left:8px}.ov-row{display:grid;gap:12px;align-items:end}.ov-row .field{margin-bottom:0}.ov-row .field label{margin:0 0 4px;font-size:12px;color:var(--ink)}.ov-row input,.ov-row select{padding:9px 10px;font-size:13px;border-radius:8px}.ov-btn-generate{margin:0;width:auto;padding:9px 36px;border:none;border-radius:8px;background:var(--brand);color:#fff;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;letter-spacing:.3px}.ov-btn-generate:hover{background:var(--brand-d)}.ov-btn-generate:disabled{opacity:.5;cursor:default}.ov-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:end;background:#f8f9fd;border:1px solid var(--border);border-radius:10px;padding:10px 14px;margin-bottom:12px}.ov-filters .ov-f{flex:0 0 auto}.ov-filters .ov-f label{display:block;font-size:10px;font-weight:700;color:var(--muted);margin:0 0 3px;text-transform:uppercase;letter-spacing:.5px}.ov-filters .ov-f select{padding:6px 8px;font-size:12px;border-radius:6px}.ov-filters .ov-spacer{flex:2}.ov-summary{display:flex;align-items:center;gap:14px;flex-shrink:0}.ov-summary .ov-stat{text-align:center;line-height:1.2}.ov-summary .ov-stat-val{font-size:17px;font-weight:700;color:var(--ink)}.ov-summary .ov-stat-label{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}.ov-summary .ov-sep{width:1px;height:30px;background:var(--border)}
