:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#223b56;background:#f3f6fa;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #80a6fa;outline-offset:3px}button:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}.topbar{max-width:740px;margin:auto;padding:calc(17px + env(safe-area-inset-top)) 22px 15px;display:flex;justify-content:space-between;align-items:center;background:#f3f6fa}.brand{display:flex;gap:10px;align-items:center;font-weight:650;font-size:17px}.brand>span{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#172f47;color:#fff;font-size:21px}.brand small{display:block;font-size:9px;font-weight:500;letter-spacing:1.8px;color:#8c9aac;margin-top:5px}.top-actions{display:flex;gap:9px}.icon-button{background:#fff;border:1px solid #e2e8f0;border-radius:12px;min-width:43px;height:43px;color:#5c708c;font-size:12px}#refresh{font-size:23px}.preview-note,#connection{max-width:696px;margin:0 auto 12px;padding:10px 15px;background:#fff4db;color:#8a6c29;font-size:11px;line-height:1.7;border-radius:9px}#connection{background:#ffe9e9;color:#98484e}main{max-width:740px;padding:0 22px calc(98px + env(safe-area-inset-bottom));margin:auto}.hero{padding:24px 22px;background:linear-gradient(120deg,#183c55,#14243d);color:white;border-radius:22px;box-shadow:0 9px 24px #12304a13}.hero-label{color:#adbfce;font-size:12px}.hero-value{font-size:35px;letter-spacing:-1px;font-weight:620;font-variant-numeric:tabular-nums;margin:10px 0 22px;overflow-wrap:anywhere}.hero-value small{font-size:11px;letter-spacing:0;color:#97adc0;font-weight:400;margin-left:5px}.hero-bottom{display:grid;grid-template-columns:1fr 1fr;gap:15px}.hero-bottom>div+div{border-left:1px solid #ffffff1a;padding-left:18px}.hero-bottom small{display:block;color:#a1b4c7;font-size:11px}.hero-bottom strong{display:block;font-size:20px;margin-top:7px;font-weight:550}.hero .positive{color:#78d6b8}.hero .negative{color:#ffb1b8}.hero-bottom p{font-size:10px;color:#b5c4d4;margin:6px 0 0;line-height:1.7}.stamp{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:10px;color:#7e8fa2;padding:13px 1px}.stamp i{width:5px;height:5px;background:#45a382;border-radius:50%}.stamp button{margin-left:auto;border:0;background:none;color:#476ea3;font-size:11px}.filters{display:flex;gap:8px;overflow-x:auto;padding:8px 0 18px;scrollbar-width:none}.filters button,.segments button{border:1px solid #e2e9f2;border-radius:9px;padding:9px 12px;background:#fff;color:#6f8298;white-space:nowrap;font-size:12px;min-height:38px}.filters button.active,.segments button.active{background:#244762;border-color:#244762;color:#fff}.group{margin-bottom:21px}.group-head{display:flex;justify-content:space-between;align-items:center;padding:2px 2px 12px;gap:12px}.group-title{display:flex;gap:8px;align-items:center}.group-title i{width:5px;height:25px;border-radius:3px;background:var(--accent,#5c82b7)}h1,h2,h3,p{margin:0}h1{font-size:24px}h2{font-size:16px}h3{font-size:14px}.group-head small{display:block;font-size:10px;color:#8a9aaf;margin-top:5px}.group-capital{text-align:right;font-variant-numeric:tabular-nums}.group-capital b{font-weight:600;font-size:15px}.products{background:#fff;border:1px solid #e5ebf3;border-radius:17px;overflow:hidden}.product{padding:17px;border-bottom:1px solid #ecf0f6}.product:last-child{border-bottom:0}.product-open{width:100%;text-align:left;background:none;border:0;padding:0;color:inherit;display:block}.product-top{display:flex;justify-content:space-between;gap:12px}.product-top b{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.product-top span{color:#a0aec0;font-size:20px;flex-shrink:0}.product-meta{font-size:10px;color:#91a0b3;margin-top:5px;line-height:1.7}.product-numbers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.product-numbers small{font-size:10px;color:#8494a8;display:block}.product-numbers strong{display:block;margin-top:6px;font-size:17px;font-weight:550;font-variant-numeric:tabular-nums}.product-numbers em{font-size:9px;font-style:normal;color:#94a0b2;margin-left:3px}.positive{color:#218968}.negative{color:#be5a66}.muted{color:#8494a8}.quote{border:0;background:#f2f6fc;border-radius:10px;padding:12px;width:100%;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:15px;color:#355473}.quote b{font-size:14px;font-weight:600}.quote small{display:block;font-size:10px;color:#8798ae;line-height:1.7;margin-top:4px}.quote>span:last-child{font-size:10px;text-align:right;flex-shrink:0}.notice{border:1px solid #eeddbd;background:#fffbf1;color:#917038;border-radius:10px;padding:12px;margin:4px 0 16px;font-size:11px;line-height:1.8}.notice summary{cursor:pointer}.notice ul{padding-left:18px;margin-bottom:0;overflow-wrap:anywhere}.empty,.loading{padding:30px 18px;text-align:center;color:#8393a6;line-height:1.9;font-size:13px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:740px;width:100%;display:grid;grid-template-columns:repeat(4,1fr);padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #e4eaf2;background:#ffffffef;backdrop-filter:blur(16px);z-index:5}.bottom-nav a{display:flex;flex-direction:column;gap:4px;align-items:center;color:#95a0b0;font-size:10px;padding:3px}.bottom-nav a span{font-size:21px;height:26px}.bottom-nav a.active{color:#285a82;font-weight:600}.page-head{margin:15px 0 22px}.page-head p{color:#8192a8;margin-top:10px;font-size:12px;line-height:1.8}.panel{background:#fff;border:1px solid #e4ebf3;border-radius:17px;padding:20px;margin:16px 0}.segments{display:flex;gap:6px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-top b{font-size:13px}.big-value{font-size:30px;margin:8px 0 12px;font-weight:600;font-variant-numeric:tabular-nums}.chart svg{display:block;width:100%;height:auto;overflow:visible}.chart text{fill:#899bb1;font-size:12px}.chart .grid{stroke:#e6edf6;stroke-dasharray:5 6}.chart .line{stroke:#5b83db;stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}.chart circle{stroke:#5b83db;fill:white;stroke-width:1.5;cursor:pointer}.chart-note{color:#8497af;font-size:10px;line-height:1.9;margin:7px 0}.point-note{font-size:12px;min-height:19px;color:#5778a8;margin-top:5px}.bottom-note{color:#8998a9;font-size:11px;line-height:1.9;margin:18px 0}.facts{display:grid;grid-template-columns:1fr 1fr;gap:20px 15px;margin:24px 0}.facts dt{color:#8a9caf;font-size:11px;margin-bottom:7px}.facts dd{font-size:13px;margin:0;overflow-wrap:anywhere;line-height:1.7;font-variant-numeric:tabular-nums}.section-note{padding-top:15px;border-top:1px solid #e7edf4;color:#8293a9;font-size:11px;line-height:1.9}dialog{border:0;border-radius:24px 24px 0 0;width:100%;max-width:620px;max-height:94dvh;margin:auto auto 0;padding:0;color:#263e59;box-shadow:0 -10px 60px #102b4920;overflow-y:auto}dialog::backdrop{background:#17283e73;backdrop-filter:blur(3px)}dialog>header{position:sticky;top:0;background:#fff;z-index:1;display:flex;justify-content:space-between;align-items:center;padding:15px 22px 8px}dialog>header>span{font-size:10px;letter-spacing:1px;color:#8b9bad}dialog header button{height:39px;width:39px;border:0;border-radius:50%;background:#f1f5fa;color:#7c8ba0;font-size:25px}#detail-body{padding:12px 23px calc(26px + env(safe-area-inset-bottom))}.detail-sub{color:#8a99ae;font-size:11px;margin:8px 0 24px;line-height:1.8}.detail-price{font-size:35px;font-weight:600;letter-spacing:-.6px;margin:9px 0}.detail-label{color:#8c9aad;font-size:11px}.gain-line{font-size:12px}.detail-chart{margin-top:24px}.table-box{overflow:auto;max-height:250px;margin-top:12px}table{width:100%;border-collapse:collapse;font-size:12px}th,td{text-align:left;padding:12px 6px;border-bottom:1px solid #eaf0f6}th{font-weight:500;color:#899aaf}td:last-child,th:last-child{text-align:right}details.price-table{font-size:12px;color:#748eac;margin:22px 0}details.price-table summary{cursor:pointer;min-height:30px}.activity-row{display:flex;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid #edf1f6}.activity-row:last-child{border:0}.activity-row b{font-size:13px}.activity-row small{display:block;color:#8d9caf;font-size:10px;margin-top:6px}.activity-row>div:last-child{text-align:right}.primary{border:0;border-radius:11px;padding:13px 20px;color:white;background:#244b6c;font-weight:550;min-height:44px}.secondary{border:1px solid #dde5ef;border-radius:11px;padding:12px 18px;color:#59799c;background:#fff;min-height:44px}.wide{width:100%;margin-top:17px}.login{max-width:430px;margin:13vh auto 0}.login h1{font-size:29px;margin-bottom:12px}.login p{font-size:13px;color:#8597ac;line-height:1.9}.login label{display:block;font-size:12px;margin:25px 0 10px}.login input{width:100%;border:1px solid #d9e3f0;border-radius:12px;padding:15px;font-size:16px;outline:none}.login input:focus{border-color:#6689b0}.login-error{color:#b95c65;font-size:12px;margin-top:15px;line-height:1.8}.status-row{display:flex;justify-content:space-between;gap:14px;font-size:12px;padding:12px 0;border-bottom:1px solid #edf1f6;line-height:1.8}.status-row span{color:#8a9caf}.status-row b{font-weight:500;text-align:right}.balance-line{font-size:11px;line-height:1.9;color:#6d819b;padding:8px 0}.pill{display:inline-block;background:#eff5fb;color:#7893ad;font-size:10px;padding:5px 8px;border-radius:6px;margin:8px 5px 0 0}@media(min-width:600px){main{padding-left:28px;padding-right:28px}.hero-value{font-size:42px}.hero-bottom strong{font-size:24px}.products{display:grid;grid-template-columns:1fr 1fr}.product{border-right:1px solid #ecf0f6}.chart text{font-size:11px}dialog{margin:auto;border-radius:23px;max-height:90dvh}}@media(prefers-reduced-motion:no-preference){dialog[open]{animation:slide .15s ease-out}@keyframes slide{from{transform:translateY(20px);opacity:.6}to{transform:none;opacity:1}}}

/* A separate spot-market strip keeps the portfolio total as the main focus. */
.btc-strip{margin-top:19px;padding-top:15px;border-top:1px solid #ffffff1a;font-variant-numeric:tabular-nums}
.btc-row{display:flex;align-items:center;gap:12px}.btc-identity{display:flex;align-items:center;gap:7px;flex-shrink:0}.btc-identity b{font-size:12px;font-weight:600;letter-spacing:.4px}.btc-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#f2aa3d1c;color:#f4ba62;font-size:19px;line-height:1;border:1px solid #f4ba622e}
.btc-price{flex:1;text-align:right;white-space:nowrap;font-size:19px;letter-spacing:-.3px;font-weight:570}.btc-price small{font-size:9px;letter-spacing:0;font-weight:400;color:#a1b4c7;margin-left:4px}.btc-move{text-align:right;border-radius:7px;background:#ffffff08;padding:5px 7px;min-width:66px;flex-shrink:0}.btc-move b{font-size:12px;font-weight:600}.btc-move small{display:block;font-size:8px;letter-spacing:.2px;margin-top:2px;opacity:.8}.btc-muted{color:#a1b4c7}.btc-caption{display:flex;justify-content:space-between;gap:8px;margin-top:8px;color:#91a9bf;font-size:9px;line-height:1.6}.btc-caption>span:last-child{text-align:right}.btc-delayed{color:#e7bd7a}
@media(max-width:360px){.btc-row{gap:6px}.btc-price{font-size:17px}.btc-price small{display:block;font-size:8px;margin:2px 0 0}.btc-identity{gap:5px}.btc-identity b{font-size:11px}.btc-icon{width:23px;height:23px}.btc-move{min-width:58px;padding:4px 5px}.btc-caption{font-size:8px}}
