:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Inter,system-ui,sans-serif;color:#202945;background:#f6f8fc;font-synthesis:none;--ink:#202945;--muted:#8992a8;--stroke:#e9edf6;--primary:#5365db;--income:#27b99a;--expense:#fa7d82;--shadow:0 14px 40px rgba(39,54,108,.06)}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{color:var(--ink)}[hidden]{display:none!important}.logo-mark{display:grid;place-items:center;flex-shrink:0;background:linear-gradient(135deg,#5668ed,#8594ff);color:#fff;width:43px;height:43px;border-radius:14px;font-weight:900;font-size:22px;box-shadow:0 7px 14px #5365db33}.logo-mark.large{width:65px;height:65px;border-radius:21px;font-size:31px;margin:auto auto 19px}.eyebrow{letter-spacing:.16em;color:#7884ad;font-size:11px;font-weight:750;margin:0 0 9px}.auth-wrap{display:flex;align-items:center;justify-content:center;padding:30px 18px;min-height:100dvh;position:relative;overflow:hidden}.auth-bg{position:absolute;inset:0;background:radial-gradient(circle at 8% 15%,#dde5ff 0,transparent 38%),radial-gradient(circle at 90% 78%,#dcfcf4 0,transparent 34%),#f6f8ff}.auth-card{position:relative;background:white;width:min(420px,100%);border:1px solid #e8edfb;border-radius:30px;padding:39px 30px 28px;text-align:center;box-shadow:0 25px 75px #394ca71c}.auth-card h1{font-size:33px;margin:0 0 12px;letter-spacing:-1px}.version{font-size:11px;vertical-align:middle;padding:5px 8px;border-radius:10px;background:#eef0ff;color:#6875e0;letter-spacing:0}.auth-desc{line-height:1.8;color:#7c869e;font-size:13px;margin:0 0 30px}.auth-card form{text-align:left}.field-label{display:block;color:#5d6981;font-weight:650;font-size:12px;margin:16px 0 8px}.auth-card input,.form-grid input,.form-grid select,.filters input,.filters select,.mapping-grid select,.copy-line input,#importSheet,textarea{border:1px solid #e4e8f1;outline:none;background:#fff;border-radius:12px;padding:12px 14px;width:100%;min-width:0}.auth-card input:focus,.form-grid input:focus,.filters input:focus,.filters select:focus,.mapping-grid select:focus,textarea:focus{border-color:#929cf7;box-shadow:0 0 0 3px #5365db16}.btn{border:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;font-size:13px;font-weight:750;white-space:nowrap}.btn.primary{background:var(--primary);color:white;box-shadow:0 5px 18px #5365db26}.btn.primary:hover{background:#4053cc}.btn.subtle{color:#5563c9;background:#f0f2ff}.btn.danger-outline{color:#de6870;background:#fff0f1}.btn.fill{width:100%;margin-top:15px}.auth-card .btn.fill{margin-top:17px;height:47px;justify-content:space-between}.text-link{background:none;border:0;color:#5365db;font-weight:700;font-size:12px;padding:7px}.text-link.small{font-size:12px}.auth-card .text-link{margin:16px auto 3px}.login-hint{color:#9ba4b7;font-size:11px;line-height:1.7}.app-shell{max-width:1190px;padding:0 28px 100px;margin:0 auto}.topbar{height:90px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:12px}.brand>div:last-child{display:flex;flex-direction:column;gap:3px}.brand strong{font-size:18px;letter-spacing:.06em}.brand span{color:#949eb3;font-size:11px}.top-actions{display:flex;align-items:center;gap:10px}.icon-button{background:white;border:1px solid var(--stroke);width:39px;height:39px;border-radius:12px;color:#64708c;font-size:21px;display:grid;place-items:center}.demo-pill,.setup-tag{font-size:11px;border-radius:10px;padding:7px 10px;background:#fff0dd;color:#b37b39;font-weight:800}.demo-notice{border-radius:12px;padding:12px 16px;margin-bottom:16px;color:#85622e;background:#ffedce;font-size:12px}.page-intro{display:flex;align-items:center;justify-content:space-between;margin:19px 0 22px}.page-intro h1{font-size:27px;margin:0 0 7px;letter-spacing:-1px}.page-intro p:last-child{font-size:13px;color:#98a1b6;margin:0}.hero-card{background:linear-gradient(120deg,#4c60de 0%,#6675ec 63%,#7787f2 100%);color:#fff;padding:25px 31px 26px;border-radius:25px;min-height:215px;position:relative;overflow:hidden;box-shadow:0 18px 42px #5666dd27}.hero-light{pointer-events:none;position:absolute;border-radius:50%;border:40px solid rgba(255,255,255,.04)}.hero-light-1{height:330px;width:330px;right:-120px;top:-155px}.hero-light-2{height:220px;width:220px;right:100px;bottom:-180px}.month-controls{position:relative;display:flex;align-items:center;justify-content:space-between}.hero-label{font-size:14px;color:#ebefff}.month-toggle{display:flex;align-items:center;gap:9px;border-radius:11px;background:#ffffff1b;padding:4px 8px;font-size:12px;font-weight:700}.month-toggle button{border:0;background:none;color:#fff;font-size:24px;line-height:1;width:22px}.hero-balance{position:relative;font-size:40px;font-weight:800;letter-spacing:-1.5px;margin:19px 0 25px}.hero-stats{display:flex;gap:30px;align-items:center;position:relative}.hero-stats>div:not(.stats-separator){display:flex;align-items:center;gap:7px;flex-wrap:wrap}.hero-stats small{color:#e7e9ff;font-size:12px}.hero-stats strong{font-size:16px;margin-left:7px}.stats-separator{height:21px;width:1px;background:#ffffff45}.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.income-dot{background:#72f1c6}.expense-dot{background:#ffc1b1}.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.white-card{background:white;border-radius:20px;padding:22px 24px;border:1px solid #ebeff7;box-shadow:var(--shadow)}.section-title{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:17px}.section-title h2,.guide-card h2{font-size:16px;margin:0 0 7px}.section-title p{color:#a1a9bc;margin:0;font-size:11px}.tiny-label{background:#f3f5ff;color:#8990ca;border-radius:9px;font-size:11px;padding:7px 9px}.mini-legend{color:#919bb0;font-size:10px;display:flex;align-items:center;gap:6px;white-space:nowrap}.mini-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}.legend-1{background:#39c7a5}.legend-2{background:#8794f4}.category-chart{min-height:205px}.category-row{margin:0 0 18px}.category-row-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;gap:10px;font-size:12px}.category-name{display:flex;gap:8px;align-items:center;font-weight:650}.category-icon{width:27px;height:27px;border-radius:9px;background:#f3f4ff;display:grid;place-items:center}.category-row-head span:last-child{color:#8a94a8;font-size:11px}.bar-bg{height:7px;background:#f0f3fa;border-radius:10px;overflow:hidden;margin-left:35px}.bar-bg>span{display:block;height:100%;border-radius:10px}.trend-chart{min-height:205px;display:flex;align-items:center}.trend-chart svg{width:100%;display:block;max-height:230px;overflow:visible}.trend-chart text{font-size:11px;fill:#9ca5b8}.list-card{margin-top:20px}.tx-row{display:flex;align-items:center;gap:13px;padding:14px 4px;border-bottom:1px solid #f0f2f8;min-width:0;cursor:pointer}.tx-row:last-child{border-bottom:0}.tx-row:hover{background:#fbfcff}.tx-icon{width:43px;height:43px;background:#f1f4ff;border-radius:14px;display:grid;place-items:center;font-size:20px;flex-shrink:0}.tx-info{flex:1;min-width:0}.tx-info strong{font-size:13px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tx-info small{display:block;font-size:11px;color:#9da7ba;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.tx-money{text-align:right;flex-shrink:0;font-weight:800;font-variant-numeric:tabular-nums;font-size:15px}.tx-money.expense{color:#e9717c}.tx-money.income{color:#20ad90}.tx-money.transfer{color:#7c86a4}.tx-money small{display:block;font-size:10px;font-weight:500;color:#a1a9b7;margin-top:5px}.empty{text-align:center;color:#a4adc0;font-size:13px;padding:49px 12px}.filters{display:flex;gap:14px;justify-content:space-between;align-items:center;padding-bottom:17px;border-bottom:1px solid var(--stroke)}.month-filter{display:flex;align-items:center;gap:13px;white-space:nowrap}.month-filter button{border:0;background:#f3f5ff;width:31px;height:31px;border-radius:10px;color:#6978cf;font-size:23px}.month-filter strong{font-size:14px}.filter-controls{display:flex;gap:9px}.filter-controls input{width:200px;padding:10px 12px;font-size:12px}.filter-controls select{width:116px;padding:10px;font-size:12px}.import-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:20px;align-items:start}.drop-zone{border:1.5px dashed #b6bef0;border-radius:18px;background:#f9faff;padding:42px 20px;display:flex;align-items:center;flex-direction:column;gap:9px;cursor:pointer;color:#6876cb;text-align:center}.drop-zone strong{font-size:14px}.drop-zone span:not(.drop-icon){font-size:11px;color:#9aa3b6}.drop-icon{font-size:31px}.drop-zone input{display:none}.import-info{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin:18px 0;color:#8590a5}.import-info span:first-child{color:#5e6a83;font-weight:700;overflow:hidden;text-overflow:ellipsis}.mapping-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.mapping-grid label{font-size:11px;color:#69758e}.mapping-grid select{font-size:12px;padding:9px;margin-top:5px}.preview-scroller{overflow:auto;margin:15px 0}.preview-scroller table{font-size:11px;border-collapse:collapse;white-space:nowrap;width:100%}.preview-scroller th,.preview-scroller td{padding:10px;text-align:left;border-bottom:1px solid #edf0f8}.preview-scroller th{color:#7c86a3;background:#f6f8fc}.guide-card ol{padding-left:21px;color:#7a849a;font-size:13px;line-height:2}.guide-card li{padding-left:5px;margin-bottom:8px}.notice{border:1px solid #e8eaf7;background:#f5f7fd;padding:13px 15px;border-radius:12px;font-size:12px;color:#6e7993;line-height:1.75}.notice.info{margin-top:15px}.notice p{margin:5px 0 0}.settings-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px;align-items:start}.settings-grid>article:last-child{grid-column:2}.settings-text{font-size:12px;color:#7d879e;line-height:1.9}.setup-step{display:flex;gap:12px;margin:13px 0;align-items:flex-start;color:#6f7990;font-size:12px;line-height:1.7}.setup-step b{background:#edf0ff;color:#5365db;width:26px;height:26px;display:grid;place-items:center;border-radius:9px;flex-shrink:0}.copy-line{display:flex;gap:8px}.copy-line input{font-size:11px;background:#f8f9ff;min-width:0}.copy-line .btn{flex-shrink:0}.code-sample{white-space:pre-wrap;overflow-x:auto;background:#1f2949;border-radius:14px;color:#e7ecff;font-size:11px;padding:15px;line-height:1.75}.quiet{font-size:11px;color:#9aa4b7;line-height:1.75}.settings-grid textarea{resize:vertical;font-size:12px;line-height:1.7}.pending-card{background:#f9faff;border-radius:11px;padding:13px;margin:8px 0;font-size:12px;color:#717c90;overflow-wrap:anywhere}.pending-card strong{color:#4f5b76}.pending-card button{float:right;background:none;border:0;color:#d77378;font-size:12px}.soft-divider{border:0;border-top:1px solid #eef1f7;margin:24px 0}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;gap:3px;justify-content:center;background:#ffffffed;backdrop-filter:blur(15px);border-top:1px solid #eef0f5;z-index:10;padding:11px max(20px,calc((100vw - 800px)/2)) calc(11px + env(safe-area-inset-bottom,0px))}.nav-item{flex:1;min-width:0;background:none;border:0;color:#9aa4b8;font-size:11px;display:flex;align-items:center;flex-direction:column;gap:4px;padding:1px 8px;font-weight:700}.nav-item span{font-size:22px;line-height:1.1}.nav-item.active{color:#5365db}.floating-add{position:fixed;bottom:92px;right:max(24px,calc((100vw - 1160px)/2));z-index:11;width:53px;height:53px;border:0;background:#5264df;color:#fff;font-size:30px;border-radius:18px;box-shadow:0 10px 24px #5264df65}.modal{position:fixed;inset:0;z-index:100;display:flex;justify-content:center;align-items:flex-end}.modal-backdrop{position:absolute;inset:0;background:#1c264f7c;backdrop-filter:blur(4px)}.modal-panel{position:relative;background:#fff;border-radius:25px 25px 0 0;max-height:95dvh;overflow-y:auto;width:min(600px,100%);padding:24px 25px calc(24px + env(safe-area-inset-bottom,0px));box-shadow:0 -14px 45px #242d5540}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.modal-header h2{font-size:19px;margin:0}.type-switch{display:flex;background:#f3f5fb;padding:4px;border-radius:13px;gap:4px}.type-switch button{flex:1;background:transparent;border:0;padding:11px;border-radius:9px;font-size:13px;color:#8e97aa;font-weight:700}.type-switch button.active{background:white;color:#5262da;box-shadow:0 2px 10px #1e2c4914}.amount-input{display:flex;align-items:center;border-bottom:1px solid #e8ecf3;padding:3px 1px 14px;gap:9px}.amount-input span{font-size:23px;font-weight:700;color:#6874a0}.amount-input input{width:100%;outline:0;border:0;font-size:31px;font-weight:800;min-width:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 13px}.form-grid input{font-size:12px;padding:12px 10px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.modal-actions .btn.primary{min-width:130px}.toast{position:fixed;z-index:200;bottom:100px;left:50%;transform:translateX(-50%) translateY(20px);color:white;background:#273657;border-radius:12px;padding:12px 17px;box-shadow:0 10px 26px #1b244354;font-size:12px;max-width:min(420px,90vw);width:max-content;opacity:0;pointer-events:none;transition:all .2s}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}code{background:#eef0f7;border-radius:5px;padding:2px 5px;color:#5a64a4;font-size:.95em}
@media(max-width:800px){.app-shell{padding:0 16px 95px}.topbar{height:75px}.analytics-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.settings-grid>article:last-child{grid-column:auto}.import-layout{grid-template-columns:1fr}.hero-balance{font-size:36px}.hero-card{padding:22px}.page-intro h1{font-size:23px}.white-card{padding:20px}.category-chart{min-height:0}.hero-stats{gap:17px}}@media(max-width:540px){.page-intro{margin:13px 0 17px}.page-intro p:last-child{font-size:12px}.add-top{display:none}.hero-card{border-radius:20px;min-height:198px}.hero-balance{margin:22px 0}.hero-stats{gap:10px}.hero-stats strong{font-size:13px;margin-left:0}.hero-stats small{font-size:11px}.hero-stats>div:not(.stats-separator){gap:5px}.white-card{border-radius:16px;padding:18px}.analytics-grid{gap:14px;margin-top:15px}.list-card{margin-top:15px}.filters{align-items:stretch;flex-direction:column}.filter-controls input{flex:1;width:auto}.filter-controls select{width:116px}.month-filter{justify-content:center}.mapping-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.modal-panel{padding:21px 18px}.section-title h2{font-size:15px}.mini-legend{font-size:9px}.floating-add{bottom:89px;right:16px}}

.pair-link-row{margin:18px 0 15px;text-align:left}.pair-link-row input{min-width:0;flex:1;font-size:12px;padding:12px 10px}.pair-link-row .btn{white-space:nowrap}.auth-card .notice{margin-bottom:10px}
.catalog-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--stroke); }
.catalog-row span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.catalog-row small { color: #6f7990; }
.manage-form, #newPairRow { margin: 12px 0; }
.manage-form input { font-size: 15px; }
.pending-actions { display: flex; flex-wrap: wrap; margin-top: 5px; }
.pending-card .text-link { float: none; color: #5365db; }
.check-label { display: flex; width: max-content; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; color: #495773; }
.filters .check-label input { width: auto; flex: 0 0 auto; }
.filter-controls { flex-wrap: wrap; }
.month-filter input { width: auto; }
#dateOrder, #catalogKind { border: 1px solid var(--stroke); border-radius: 10px; padding: 9px; max-width: 100%; }
#importAll { accent-color: var(--primary); }
#restoreFile { max-width: 100%; }
@media (max-width: 540px) {
  .auth-card, .white-card { min-width: 0; }
  .form-grid input, .form-grid textarea, .auth-card input { font-size: 16px; }
  .filter-controls { row-gap: 6px; }
  .filter-controls input[type="search"] { min-width: 120px; }
}
