:root {
  --bg: #f4f5f7;
  --surface: #fff;
  --ink: #1d2028;
  --muted: #616873;
  --line: #dadde4;
  --line-soft: #e9ecf1;
  --blue: #3263eb;
  --blue-hover: #2553d6;
  --blue-soft: #edf3ff;
  --blue-border: #c9d7fa;
}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'Noto Sans TC',-apple-system,BlinkMacSystemFont,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}.sidebar{width:238px;background:var(--surface);border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;color:var(--ink);padding:34px 22px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:14px;font-weight:700;white-space:nowrap}.brand-icon{width:36px;height:36px;flex:none;padding:8px;object-fit:contain;background:var(--bg);border-radius:10px}.workspace{font-size:11px;margin:34px 0 28px;border:1px solid var(--line);padding:13px 9px;border-radius:8px;display:flex;align-items:center;gap:7px}.live-dot,.local-badge i{width:6px;height:6px;background:#159750;border-radius:50%;display:inline-block}.usd{margin-left:auto;font:10px monospace;color:var(--muted)}.nav-label{font-size:10px;letter-spacing:2px;color:var(--muted);margin:0 13px 13px}nav{display:grid;gap:7px}nav a{padding:14px;border-radius:7px;font-size:13px;display:flex;align-items:center;gap:15px}nav a>span{font-size:21px;width:20px;line-height:20px}nav a:hover{background:var(--blue-soft)}nav a.active{background:var(--blue);color:var(--surface);font-weight:600}.sidebar-bottom{margin-top:auto;background:var(--bg);padding:17px 14px;border:1px solid var(--line);border-radius:9px}.private-symbol{font-size:23px;color:var(--blue);margin-bottom:9px}.sidebar-bottom b{color:var(--ink);font-size:12px}.sidebar-bottom p{font-size:10px;line-height:1.9;color:var(--muted);margin:8px 0 13px}.sidebar-backup{border:1px solid var(--line);background:none;color:var(--surface);padding:8px;width:100%;border-radius:5px;font-size:11px}.sidebar-backup.subtle{border:0;margin-top:5px;color:var(--muted)}.sidebar-footer{font-size:11px;color:var(--muted);margin:22px 3px 0;display:flex;justify-content:space-between}.sidebar-footer span{font-size:9px}.shell{margin-left:238px}.topbar{height:77px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 40px;background:var(--surface);font-size:11px;color:var(--muted)}.topbar b{font-weight:500;color:var(--ink)}.topbar span{margin:0 12px}.topbar-right{display:flex;align-items:center;gap:8px}.local-badge{color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:6px 10px}.local-badge i{background:#159750}.avatar{background:var(--blue-soft);width:29px;height:29px;display:grid;place-items:center;border-radius:50%;font-size:12px;color:var(--blue)}main{max-width:1440px;margin:auto;padding:37px 40px 24px;min-height:calc(100vh - 124px)}h1{font-size:29px;letter-spacing:-.8px;font-weight:500;margin:0 0 9px}h2{font-size:15px;font-weight:500;margin:0}h3{font-size:14px;font-weight:500}.eyebrow{font:10px Arial;letter-spacing:2px;color:var(--blue);margin-bottom:9px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.8}.btn{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:6px;padding:10px 16px;font-size:12px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{background:var(--bg)}.btn.primary{background:var(--blue);border-color:var(--blue);color:white}.btn.primary:hover{background:var(--blue-hover);border-color:var(--blue-hover)}.btn.quiet{border:0;background:transparent;color:var(--blue);padding:5px}.btn.danger{color:#a44e43;border-color:#edd8d3}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.notice{font-size:11px;color:var(--muted);border:1px solid var(--line);background:var(--blue-soft);padding:12px 16px;border-radius:6px;margin:0 0 24px;line-height:1.8;display:flex;gap:10px;align-items:center}.notice strong{font-weight:500;color:var(--ink)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.stat{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:22px;position:relative}.stat:first-child{background:var(--blue-soft);border-color:var(--blue-border)}.stat label{font-size:11px;color:var(--muted)}.stat .stat-symbol{position:absolute;top:20px;right:19px;color:#7197fa;font-size:19px}.stat .value{font-size:29px;font-family:Arial,sans-serif;letter-spacing:-1px;margin:20px 0 12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat .value small{font-size:11px;letter-spacing:0;margin-right:6px;color:var(--muted)}.stat .stat-note{font-size:10px;color:var(--muted)}.section-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.section-header p{color:var(--muted);font-size:10px;margin:6px 0 0}.channels{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}.channel-card{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:20px}.channel-top{display:flex;align-items:center;gap:12px}.channel-logo{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;font:bold 17px Arial;background:var(--blue-soft);color:var(--blue)}.channel-card:nth-child(2) .channel-logo{background:#e8edf7;color:#5b6c96}.channel-card:nth-child(3) .channel-logo{background:#f4ede3;color:#9d7b46}.channel-name{font:600 14px Arial;letter-spacing:1px}.channel-tag{font-size:10px;color:var(--muted);margin-top:4px}.chip{margin-left:auto;background:var(--bg);color:var(--muted);border-radius:4px;font-size:9px;padding:4px 7px}.channel-amount{font:24px Arial;margin:22px 0 8px;letter-spacing:-.5px}.channel-amount small{font-size:10px;color:var(--muted);margin-left:5px;letter-spacing:0}.channel-line{height:4px;background:var(--line-soft);border-radius:4px;margin:17px 0}.channel-line div{height:100%;background:#7197fa;border-radius:4px}.channel-meta{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.panel{border:1px solid var(--line);border-radius:9px;background:var(--surface);padding:23px;margin-bottom:22px}.empty{padding:40px 15px;text-align:center;color:var(--muted)}.empty-symbol{font-size:29px;margin-bottom:11px;color:var(--blue-border)}.empty b{display:block;font-size:12px;color:var(--ink);font-weight:500;margin-bottom:7px}.empty p{font-size:11px;margin:0 0 18px;line-height:1.8}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:12px}th{font-size:10px;font-weight:400;color:var(--muted);background:var(--bg);padding:13px 10px}td{padding:16px 10px;border-bottom:1px solid var(--line-soft)}td.amount{text-align:right;font:13px Arial;font-variant-numeric:tabular-nums}th.amount{text-align:right}.type-in{color:var(--blue);background:var(--blue-soft);border-radius:4px;padding:4px 8px;font-size:10px}.type-out{color:#a77d3d;background:#faf2e4;border-radius:4px;padding:4px 8px;font-size:10px}.secondary{font-size:10px;color:var(--muted);margin-top:5px}.page-footer{padding:0 40px 20px;color:var(--muted);font-size:10px;display:flex;justify-content:space-between}.filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:19px}.filters label{font-size:10px;color:var(--muted)}.filters input,.filters select{margin-top:6px;min-width:130px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}.field label{font-size:11px;color:var(--muted)}.field small{font-size:10px;color:var(--muted)}input,select,textarea{width:100%;min-height:39px;padding:9px 11px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--ink);font-size:12px}input:focus,select:focus,textarea:focus{outline:2px solid var(--blue-border)}textarea{resize:vertical}input[type=checkbox]{width:16px;height:16px;min-height:0;accent-color:var(--blue);flex-shrink:0}input[type=file]{display:none}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 17px}.split{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.dropzone{border:1px dashed var(--blue-border);border-radius:8px;background:var(--bg);min-height:248px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px;cursor:pointer}.dropzone:hover,.dropzone.over{background:var(--blue-soft);border-color:var(--blue)}.upload-icon{border:1px solid var(--blue-border);background:var(--blue-soft);border-radius:13px;display:grid;place-items:center;width:49px;height:49px;color:var(--blue);font-size:26px;margin-bottom:16px}.dropzone b{font-size:14px;font-weight:500}.dropzone p{font-size:11px;color:var(--muted);line-height:1.8}.steps{display:flex;gap:0;margin:6px 0 24px}.step{flex:1;color:var(--muted);font-size:11px;display:flex;align-items:center;gap:7px}.step span{display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);width:23px;height:23px;font:11px Arial}.step.active{color:var(--blue)}.step.active span{background:var(--blue-soft);border-color:var(--blue-border)}.step:after{content:'';height:1px;background:var(--line-soft);flex:1;margin-right:9px}.step:last-child:after{display:none}.preview-image{width:100%;max-height:520px;object-fit:contain;border:1px solid var(--line);border-radius:5px;background:var(--bg)}.image-tools{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);margin:10px 0 16px;gap:12px;overflow-wrap:anywhere}.warning{background:#fff8e8;color:#9b7a39;border:1px solid #eedeb7;padding:12px;border-radius:5px;font-size:11px;line-height:1.8;margin-bottom:15px}.warning.error{background:#fdf0ed;border-color:#efd2c9;color:#a35b4c}.confirm-line{display:flex;align-items:start;gap:8px;font-size:11px;line-height:1.9;margin:17px 0}.progress{height:5px;background:var(--line-soft);border-radius:5px;overflow:hidden;margin:14px 0}.progress div{height:100%;background:var(--blue);transition:width .3s}.progress-label{font-size:11px;color:var(--muted)}.hint-list{padding:0;list-style:none;line-height:2.4;color:var(--muted);font-size:11px;margin-bottom:0}.hint-list li:before{content:'✓';color:var(--blue);margin-right:9px}.account-form{display:grid;grid-template-columns:1fr 1.6fr 1fr auto;gap:15px;align-items:end}.account-form .field{margin:0}.no-match{padding:28px;color:var(--muted);text-align:center;font-size:12px}.row-link{border:0;background:transparent;color:var(--blue);font-size:11px;padding:4px}.summary-bottom{display:flex;justify-content:space-between;margin-top:17px;font-size:10px;color:var(--muted)}.trends{height:120px;display:flex;align-items:end;gap:8px;padding:12px 0 0}.bar-column{flex:1;height:100%;display:flex;align-items:center;justify-content:end;flex-direction:column;gap:8px;font:9px Arial;color:var(--muted)}.bars{display:flex;align-items:end;gap:2px;flex:1;width:100%;justify-content:center}.bars i{display:block;width:28%;min-height:2px;background:#7197fa;border-radius:3px 3px 0 0}.bars i.out{background:#dccaa4}.legend{display:flex;gap:14px;font-size:10px;color:var(--muted)}.legend i{width:7px;height:7px;display:inline-block;background:#7197fa;margin-right:5px;border-radius:2px}.legend i.out{background:#dccaa4}.upload-toolbar{display:flex;gap:12px;align-items:end;margin-bottom:20px}.upload-toolbar .field{margin:0;flex:1}details{margin:18px 0;font-size:11px;color:var(--muted)}summary{cursor:pointer}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.8 monospace;background:var(--bg);padding:14px;border-radius:5px;max-height:250px;overflow:auto}dialog{border:1px solid var(--line);border-radius:10px;max-width:750px;width:calc(100% - 32px);padding:25px;color:var(--ink)}dialog::backdrop{background:#18223866}dialog dl{display:grid;grid-template-columns:100px 1fr;font-size:12px;line-height:2;overflow-wrap:anywhere}dialog dt{color:var(--muted)}dialog dd{margin:0}#toast{position:fixed;bottom:25px;left:calc(50% + 119px);transform:translateX(-50%);background:#242a36;color:var(--surface);padding:13px 22px;border-radius:7px;font-size:12px;box-shadow:0 5px 25px #242a3626;display:none;z-index:10}.storage-bad{position:sticky;top:0;background:#fff0e7;padding:16px;color:#9a4c33;z-index:10}.currency-status{margin-top:6px;font-size:10px;color:#a57b31}.company-cell{max-width:210px;overflow:hidden;text-overflow:ellipsis}.account-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:13px 0;gap:10px}.account-row b{font-size:12px;font-weight:500}.account-row small{color:var(--muted);font-size:10px}.compact{font-size:11px;color:var(--muted);line-height:1.9}.skeleton{padding:60px;text-align:center;color:var(--muted)}
@media(min-width:1600px){main{padding-top:48px}.stat{padding:26px}.channel-card{padding:24px}}@media(max-width:1100px){.sidebar{width:205px;padding-left:16px;padding-right:16px}.shell{margin-left:205px}main{padding:28px 24px}.topbar{padding:0 24px}.stats{gap:10px}.stat{padding:17px}.stat .value{font-size:24px}.channels{gap:10px}.channel-card{padding:17px}.split{grid-template-columns:1fr}.topbar-right #today{display:none}.page-footer{padding:0 24px 20px}#toast{left:calc(50% + 102px)}}@media(max-width:760px){.sidebar{width:auto;border-right:0;border-bottom:1px solid var(--line);position:sticky;top:0;height:auto;padding:12px 16px;display:block;z-index:5}.brand-icon{width:32px;height:32px;padding:6px;border-radius:8px}.sidebar nav{display:flex;margin-top:14px;gap:5px;justify-content:space-between}nav a{font-size:11px;padding:9px 7px;gap:5px}nav a>span{font-size:17px;width:17px}.workspace,.nav-label,.sidebar-bottom,.sidebar-footer{display:none}.shell{margin:0}.topbar{height:46px;padding:0 18px;font-size:10px}.topbar span{margin:0 3px}.topbar-right{gap:2px}.avatar{display:none}main{padding:25px 18px}.heading{align-items:start;gap:12px}h1{font-size:24px}.heading p{font-size:11px}.heading>.actions{flex-direction:column;align-items:stretch}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat .value{margin:16px 0 9px}.stat .stat-symbol{font-size:16px}.channels{grid-template-columns:1fr;gap:10px}.channel-card{display:grid;grid-template-columns:1fr 1fr;padding:17px;align-items:center;gap:7px 15px}.channel-amount{margin:0;text-align:right;font-size:21px}.channel-line{margin:4px 0}.channel-meta{font-size:9px}.channel-tag{font-size:9px}.chip{display:none}.panel{padding:17px}.page-footer{font-size:9px;padding:0 18px 20px;gap:15px}.page-footer span{max-width:48%;text-align:right}.grid2{gap:0 12px}.account-form{grid-template-columns:1fr 1fr}.account-form .btn{height:39px}.filters{gap:8px}.filters label{width:calc(50% - 4px)}.filters input,.filters select{min-width:0}.filters label:last-of-type{width:100%}.filters .actions{margin-top:8px}#toast{left:50%;width:max-content;max-width:90%;text-align:center}.steps{gap:4px}.step{font-size:10px}.step span{width:20px;height:20px}.step:after{margin-right:0}.notice{padding:10px 12px;font-size:10px}.upload-toolbar{flex-wrap:wrap}.upload-toolbar .field{min-width:150px}.local-badge{padding:4px 7px}.trends{gap:4px}}
