*{box-sizing:border-box}html,body{margin:0;padding:0}body{margin:0;padding:20px 16px 28px;background:#f5f5f7;color:#1d1d1f;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,SF Pro Display,Helvetica Neue,Segoe UI,Roboto,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}input,select{width:100%;background:#fff;border:1px solid #d2d2d7;border-radius:10px;padding:8px 11px;color:#1d1d1f;font-size:14px;font-family:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none}select{background-image:linear-gradient(45deg,transparent 50%,#86868b 50%),linear-gradient(135deg,#86868b 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:28px}input:focus,select:focus{border-color:#0071e3;box-shadow:0 0 0 3px #0071e32e}input::placeholder{color:#aeaeb2}input[type=checkbox],input[type=radio]{width:auto;accent-color:#0071e3}label{font-size:12px;color:#6e6e73;display:block}h1,h2,h3{margin:0 0 10px;font-weight:600;line-height:1.3;color:#1d1d1f;letter-spacing:-.01em}h1{font-size:21px}h2{font-size:17px}h3{font-size:15px}p{margin:0 0 8px}a{color:#0071e3;text-decoration:none}button{cursor:pointer;font-family:inherit}canvas{touch-action:pan-y;max-width:100%}.wrap{max-width:1024px;margin:0 auto}.login-wrap{min-height:80vh;display:flex;align-items:center;justify-content:center;padding:14px 0}.login-card{background:#fff;border:1px solid rgba(0,0,0,.04);border-radius:20px;box-shadow:0 4px 24px #0000000f;padding:28px 26px;width:100%;max-width:360px}.login-card h1{text-align:center;margin-bottom:20px;font-weight:600}.login-card input{margin-bottom:12px}.login-card .btn{width:100%;margin-top:4px}.msg{font-size:13px;color:#6e6e73;margin:8px 2px;white-space:pre-wrap}.msg.error,.msg.err{color:#d2605c}.login-card .msg{color:#d2605c;text-align:center}.topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:2px 2px 14px}.topbar .title{font-size:20px;font-weight:700;letter-spacing:-.02em;color:#1d1d1f}.topbar .btn{width:auto;margin-left:6px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#e8e8ed;border:1px solid transparent;border-radius:10px;padding:7px 14px;color:#1d1d1f;font-size:13px;line-height:1.35;cursor:pointer;transition:filter .15s ease,background .15s ease,opacity .15s ease;-webkit-tap-highlight-color:transparent}.btn:hover:not(:disabled){filter:brightness(.97)}.btn:active:not(:disabled){filter:brightness(.93)}.btn.primary{background:#0071e3;border-color:#0071e3;color:#fff}.btn.primary:hover:not(:disabled){filter:brightness(1.08)}.btn.danger{background:transparent;border-color:transparent;color:#cf3f38}.btn.ghost{background:transparent;border-color:transparent;color:#0071e3}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.small{padding:4px 10px;font-size:12px;border-radius:8px}.card{background:#fff;border:1px solid rgba(0,0,0,.04);border-radius:20px;box-shadow:0 4px 24px #0000000d;padding:20px;margin-bottom:16px}.chart-card{padding:22px 22px 18px}.chart-card canvas{width:100%;display:block}.chart-card .hhead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:15px;font-weight:600;margin-bottom:8px}.range-btns{display:inline-flex;gap:2px;background:#e9e9ee;border-radius:10px;padding:2px}.range-btn{background:transparent;border:none;border-radius:8px;padding:4px 12px;color:#6e6e73;font-size:12.5px;font-family:inherit;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease;-webkit-tap-highlight-color:transparent}.range-btn.active{background:#fff;color:#1d1d1f;font-weight:600;box-shadow:0 1px 4px #00000024}.stats{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid #f0f0f3}.stat{flex:1;min-width:96px}.stat .lb{font-size:11.5px;color:#86868b;margin-bottom:2px}.stat .vl{font-size:19px;font-weight:600;letter-spacing:-.01em;color:#1d1d1f}.summary-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0 4px 16px;font-size:13px;color:#6e6e73}.summary-line b{color:#1d1d1f;font-weight:600}.summary-line .sep{color:#c7c7cc}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:16px;margin-bottom:16px}.hcard{background:#fff;border:1px solid rgba(0,0,0,.04);border-radius:18px;box-shadow:0 4px 20px #0000000d;padding:16px 18px;margin-bottom:0;min-width:0}.hcard .hhead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:6px}.hcard .hhead>div:first-child{font-weight:600;font-size:14.5px;min-width:0}.hcard .hhead .btn{margin-left:6px}.tag{font-size:11px;background:#f5f5f7;border-radius:999px;padding:2px 8px;color:#6e6e73;display:inline-block;line-height:1.5;white-space:nowrap;font-weight:500}.big{font-size:20px;font-weight:700;letter-spacing:-.01em}.pos{color:#2e9e66}.neg{color:#d2605c}.kv{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 0;font-size:13.5px}.kv>span:first-child{color:#6e6e73}.kv>span:last-child{color:#1d1d1f;font-variant-numeric:tabular-nums}.mini{font-size:12px;color:#86868b;line-height:1.5}.stale-badge{font-size:11px;border:1px solid #e3c98a;background:#fffaf0;color:#a87f1f;border-radius:999px;padding:1px 7px;margin-left:6px;display:inline-block;line-height:1.5}.editbox{margin-top:10px;border-top:1px solid #f0f0f3;padding-top:10px;display:grid;gap:8px}.editbox .btn{width:auto;justify-self:start}.editbox .form-row{display:grid;gap:4px}.form-row{display:flex;flex-direction:column;gap:4px}.hcard>.form-row{flex-direction:row;flex-wrap:wrap;margin-top:8px}.addgrid{display:grid;gap:18px}.addgrid .form-row{margin-bottom:8px}.lb{font-size:12px;font-weight:600;color:#6e6e73;margin-bottom:8px}.foot{font-size:12.5px;color:#86868b;line-height:1.7;margin:2px 4px 0}.typegrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.typebtn{background:#f5f5f7;border:1px solid #e3e3e8;border-radius:14px;padding:16px 10px;font-size:14.5px;font-weight:600;color:#1d1d1f;cursor:pointer;font-family:inherit;transition:border-color .15s ease,background .15s ease;-webkit-tap-highlight-color:transparent}.typebtn:hover{border-color:#c7c7cc}.typebtn.active{background:#eef5ff;border-color:#0071e3;color:#0071e3}.lookup-box{background:#f5f5f7;border-radius:12px;padding:10px 12px;font-size:13.5px;display:grid;gap:2px;margin-bottom:10px}.lookup-box b{font-weight:600}.seg{display:inline-flex;gap:2px;background:#e9e9ee;border-radius:9px;padding:2px;vertical-align:middle}.seg button{background:transparent;border:none;border-radius:7px;padding:3px 10px;color:#6e6e73;font-size:12.5px;font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.seg button.active{background:#fff;color:#1d1d1f;font-weight:600;box-shadow:0 1px 4px #00000024}.info-ico{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;border:1px solid #aeaeb2;background:transparent;color:#6e6e73;font-size:11px;font-style:italic;line-height:1;padding:0;margin-left:6px;cursor:pointer;vertical-align:middle;font-family:inherit}.info-pop{display:block;font-size:12.5px;color:#6e6e73;background:#f5f5f7;border-radius:8px;padding:6px 9px;margin-top:6px;line-height:1.5}.sub-form{background:#fbfbfd;border:1px solid #eeeef1;border-radius:14px;padding:12px;display:grid;gap:8px;margin-top:8px}.radio-row,.toggle-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:13.5px}.radio-row label,.toggle-row label{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:#1d1d1f;cursor:pointer}@media(min-width:640px){.typegrid{grid-template-columns:repeat(4,1fr)}}@media(min-width:640px){.addgrid{grid-template-columns:1fr 1fr}}@media(max-width:600px){body{padding:14px 12px 22px}.cards{grid-template-columns:1fr}.card{padding:16px;border-radius:18px}.chart-card{padding:18px 14px 14px}.stat{min-width:84px}.stat .vl{font-size:17px}}
