:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#202938;background:#f6f7f9;font-synthesis:none;color-scheme:light;--gold:#ad7d28;--blue:#496fd6;--muted:#8b929f;--border:#eceef2;--red:#d35352;--green:#22917c}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b8c8ef;outline-offset:3px}button{touch-action:manipulation}main{width:100%;max-width:850px;margin:auto;padding:30px 24px calc(24px + env(safe-area-inset-bottom,0px))}.masthead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.eyebrow{color:#8d98ab;letter-spacing:1.6px;font-size:9px;font-weight:700}h1{margin:7px 0;font-size:28px;letter-spacing:1px}h1 span{color:#b1b7c1;font-weight:400}h2{margin:0;font-size:17px;line-height:1.5}p{line-height:1.65}.subtitle{color:var(--muted);font-size:12px;margin:0}.icon-button{display:grid;place-items:center;width:40px;height:40px;border:1px solid #e6e9ee;background:#fff;border-radius:13px;font-size:23px;color:#667185;flex-shrink:0}.connection{display:flex;align-items:center;gap:6px;margin:0 2px 13px;font-size:10px;color:var(--muted)}.dot{height:5px;width:5px;background:#46a48b;border-radius:50%;flex-shrink:0}.local-label{margin-left:auto;color:#a0a6b0}.quotes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.quote{min-width:0;padding:19px 18px 14px;border:1px solid #ece5d6;background:#fcf9f1;border-radius:17px;overflow:hidden}.quote-shanghai{background:#f0f4fe;border-color:#e0e7f8}.quote-header{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:14px;font-weight:700}.quote-badge{display:inline-grid;place-items:center;width:22px;height:22px;background:#efe1be;color:#9c752b;border-radius:7px;font-size:11px}.quote-shanghai .quote-badge{color:#5272bb;background:#dce5fb}.quote-subtitle{font-size:10px;color:#a58b59;margin-top:7px}.quote-shanghai .quote-subtitle{color:#8598c3}.price{font-size:34px;font-weight:700;letter-spacing:-1px;line-height:1.5;margin-top:3px;font-variant-numeric:tabular-nums}.price small{font-size:10px;letter-spacing:0;margin-left:5px;color:#96917f;font-weight:400}.quote-shanghai .price small{color:#8b99b5}.quote-change{font-size:12px;font-weight:600}.quote-change small{font-size:9px;color:#9a9da4;font-weight:400;margin-left:5px}.up{color:var(--red)}.down{color:var(--green)}.neutral{color:var(--muted)}.overview-spark{display:block;width:100%;height:47px;margin:14px 0 7px}.quote-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 5px;font-size:9px;color:#a3a4a9}.panel{background:#fff;border:1px solid var(--border);border-radius:17px;padding:20px 18px;margin-bottom:16px;min-width:0}.funds-panel{padding-bottom:5px}.funds-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.count{display:inline-block;vertical-align:2px;background:#eef0f4;color:#798494;border-radius:5px;min-width:19px;padding:1px 5px;text-align:center;font-size:10px;font-weight:500;margin-left:5px}.muted{font-size:11px;color:var(--muted);margin:4px 0;line-height:1.8}.fund-actions{display:flex;align-items:center;gap:9px}.text-button{background:none;border:0;color:#7e8797;padding:10px 2px;font-size:12px;white-space:nowrap}.primary-button{border:0;border-radius:9px;background:#26364b;color:#fff;padding:10px 14px;font-size:12px;font-weight:600;white-space:nowrap}.filter-label{display:flex;align-items:center;gap:8px;background:#f6f7f9;border:1px solid #f0f1f4;border-radius:9px;padding:9px 11px;color:#9da6b4}.filter-label span{font-size:18px;line-height:1}.filter-label input{width:100%;min-width:0;border:0;background:none;outline:0;color:#47546a;font-size:12px}.filter-label input::placeholder{color:#a4abb6}.list-labels{display:grid;grid-template-columns:minmax(0,1fr) 75px 94px;gap:10px;padding:16px 0 9px;font-size:9px;color:#a8aeb8;border-bottom:1px solid #f1f2f4}.list-labels span:nth-child(n+2){text-align:right}.fund-row{display:grid;grid-template-columns:minmax(0,1fr) 75px 94px;align-items:center;gap:10px;min-height:92px;border-bottom:1px solid #f1f2f4}.fund-row:last-child{border-bottom:0}.fund-main{background:none;padding:13px 0;border:0;text-align:left;min-width:0;color:inherit}.fund-name{display:block;font-weight:600;font-size:13px;line-height:1.65;overflow-wrap:anywhere}.fund-meta{display:block;color:#a3aab6;font-size:10px;line-height:1.5;margin-top:5px;white-space:normal}.fund-spark{width:75px;height:28px;display:block}.fund-numbers{text-align:right;font-variant-numeric:tabular-nums}.fund-pct{display:block;font-weight:650;font-size:16px;white-space:nowrap}.fund-nav{display:block;color:#9ba2af;font-size:10px;margin-top:6px}.remove-fund{display:none;border:0;background:#fff2f1;color:#ca6861;border-radius:7px;width:26px;height:28px;padding:0;font-size:18px}.is-managing .fund-row{grid-template-columns:minmax(0,1fr) 68px 86px 26px;gap:8px}.is-managing .fund-spark{width:68px}.is-managing .remove-fund{display:block}.is-managing .list-labels{grid-template-columns:minmax(0,1fr) 68px 86px 26px;gap:8px}.is-managing .list-labels:after{content:""}.fund-row-error{grid-template-columns:minmax(0,1fr) auto}.fund-error-copy{color:#b77866;font-size:10px;margin-top:4px}.retry-fund{border:1px solid var(--border);background:#fff;border-radius:6px;font-size:10px;padding:5px 8px;color:#818b9c}.empty-state{text-align:center;padding:34px 12px 29px}.empty-icon{display:grid;place-items:center;margin:auto auto 12px;width:39px;height:39px;border-radius:12px;background:#f1f4f9;color:#91a0b7;font-size:23px}.empty-state strong{font-size:13px;color:#6b7688}.empty-state p{color:#a2a9b5;font-size:11px;margin:7px 0 16px}.list-note{color:#b0b6c0;font-size:9px;margin:9px 0 5px;text-align:center}.market-details{margin-top:22px}.market-details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#8792a3;padding:7px 3px;cursor:pointer}.market-details>summary::-webkit-details-marker{display:none}.expand-label{font-size:10px;color:#a3acb9}.details-content{padding-top:12px}.panel-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-top>div{min-width:0}.panel-top h2{font-size:17px;margin-top:5px}.tabs{display:flex;padding:3px;gap:2px;background:#f4f5f7;border-radius:8px;flex-shrink:0}.tabs button{border:0;background:transparent;color:#949aa6;padding:7px 9px;font-size:10px;white-space:nowrap;border-radius:6px}.tabs button.active{color:#4a5870;background:#fff;box-shadow:0 1px 4px #242d3b0c}.chart-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:20px 0 12px}#chart-summary strong{display:block;font-size:23px;font-variant-numeric:tabular-nums}#chart-summary .last-date{display:block;font-size:9px;color:#9ca5b3;margin-top:5px}.controls{display:flex;align-items:center;gap:8px}.controls label{font-size:0}.controls select{color:#788495;border:1px solid #e9ecf1;background:#fff;border-radius:7px;padding:8px 5px;font-size:10px}.chart-wrap{position:relative;min-width:0}svg{overflow:visible}.chart-wrap>svg{width:100%;height:auto;display:block;touch-action:pan-y}svg text{font-family:inherit;fill:#a1a9b4;font-size:10px}.grid{stroke:#eff1f5;stroke-width:1}.crosshair{stroke:#aab3c0;stroke-width:1;stroke-dasharray:3 3;pointer-events:none}.tooltip{position:absolute;z-index:4;background:#253345ed;color:#fff;border-radius:9px;padding:11px 13px;font-size:11px;line-height:1.8;pointer-events:none;box-shadow:0 7px 25px #2533451a;white-space:nowrap}.source{color:#a3abb6;font-size:9px;line-height:1.8;overflow-wrap:anywhere;border-top:1px solid #f1f3f5;padding-top:11px;margin-top:14px}.legend{display:flex;gap:15px;margin:16px 0 12px;font-size:10px;color:#8e98a7}.legend span:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--color);margin-right:5px}.compare-summary{font-size:10px;line-height:1.9;text-align:right;white-space:nowrap}.error{color:#bd6d5c!important}footer{text-align:center;font-size:9px;line-height:1.9;color:#a9b0bc;margin:25px 0 0}.sheet{border:0;border-radius:23px;padding:23px;width:calc(100% - 32px);max-width:480px;max-height:90dvh;color:#263349;box-shadow:0 15px 90px #172b4d26;overflow-y:auto}.sheet::backdrop{background:#17263b65;backdrop-filter:blur(3px)}.sheet-title{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:12px}.sheet-title h2{font-size:19px;margin-top:5px}.sheet-title .icon-button{width:32px;height:32px;border-radius:10px;background:#f5f6f8;border:0;font-size:20px}.sheet-handle{display:none}.field-label{display:block;font-size:12px;font-weight:600;margin:22px 0 9px}.code-input{width:100%;background:#f7f8fa;border:1px solid #e4e8ef;border-radius:12px;padding:15px 13px;font-size:20px;letter-spacing:3px;color:#25364e}.code-input::placeholder{font-size:15px;letter-spacing:1px;color:#b2b9c6}.code-input[aria-invalid=true]{border-color:#d98c7e}.form-message{font-size:12px;min-height:20px;color:#c27866;margin:7px 0}.sheet-note{color:#a5adbb;font-size:10px;margin:16px 0}.wide-button{width:100%;padding:14px;margin-bottom:4px;border-radius:11px;font-size:13px}.notice{position:fixed;bottom:calc(28px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);background:#29384a;color:#fff;border-radius:11px;padding:12px 17px;font-size:12px;box-shadow:0 5px 30px #1d29322b;z-index:30;max-width:calc(100% - 40px);white-space:normal;text-align:center}.fund-detail-values{display:flex;align-items:baseline;gap:12px;margin-top:18px}.fund-detail-values strong{font-size:30px;font-variant-numeric:tabular-nums}.fund-detail-values span{font-size:14px}#fund-detail-title{overflow-wrap:anywhere}.fund-detail-sheet .chart-wrap{margin-top:18px}.fund-loading{color:#a8b0bd;font-size:11px}.fund-loading:after{content:"…"}
@media(min-width:650px){.quotes{gap:18px}.quote{padding:23px 25px 17px}.price{font-size:39px}.overview-spark{height:60px}.panel{padding:23px 25px}.funds-panel{padding-bottom:8px}.fund-row{min-height:90px}.fund-name{font-size:14px}.list-labels,.fund-row{grid-template-columns:minmax(0,1fr) 110px 115px;gap:25px}.fund-spark{width:110px;height:34px}.fund-pct{font-size:18px}.is-managing .fund-row,.is-managing .list-labels{grid-template-columns:minmax(0,1fr) 110px 115px 28px;gap:18px}.is-managing .fund-spark{width:110px}.fund-detail-sheet{max-width:600px}}
@media(max-width:480px){main{padding:22px 16px calc(20px + env(safe-area-inset-bottom,0px))}.masthead{margin-bottom:19px}h1{font-size:25px}.quotes{gap:10px;margin-bottom:22px}.quote{padding:15px 13px 12px;border-radius:15px}.quote-header{font-size:13px}.price{font-size:28px}.quote-change{font-size:11px}.quote-change small{font-size:8px}.panel{padding:18px 14px 13px}.funds-panel{padding-bottom:5px}.funds-heading{gap:5px}.funds-heading h2{font-size:16px}.fund-actions{gap:10px}.primary-button{padding:9px 11px}.list-labels,.fund-row{grid-template-columns:minmax(0,1fr) 58px 77px;gap:9px}.fund-spark{width:58px;height:27px}.fund-name{font-size:12px}.fund-pct{font-size:15px}.fund-meta{font-size:9px}.fund-nav{font-size:9px}.is-managing .fund-row,.is-managing .list-labels{grid-template-columns:minmax(0,1fr) 50px 70px 24px;gap:6px}.is-managing .fund-spark{width:50px}.remove-fund{width:24px}.panel-top{align-items:flex-start;gap:8px}.panel-top h2{font-size:16px}.panel-top>.tabs{margin-top:6px}.tabs button{padding:7px 8px}.chart-toolbar{gap:6px}.controls{gap:5px}.compare-summary{font-size:9px}.compare-panel .panel-top .muted{font-size:10px}.sheet{width:100%;max-width:100%;margin:auto 0 0;border-radius:23px 23px 0 0;padding:11px 22px calc(25px + env(safe-area-inset-bottom,0px))}.sheet-handle{display:block;width:32px;height:4px;border-radius:4px;background:#e4e8ee;margin:0 auto 20px}.wide-button{padding:14px}.list-note{font-size:9px}.price small{font-size:9px;margin-left:4px}}
@media(max-width:350px){main{padding-left:12px;padding-right:12px}.quote{padding-left:11px;padding-right:11px}.price{font-size:25px}.quote-change small{display:block;margin:4px 0 0}.local-label{display:none}.list-labels,.fund-row{grid-template-columns:minmax(0,1fr) 45px 70px;gap:7px}.fund-spark{width:45px}.is-managing .fund-row,.is-managing .list-labels{grid-template-columns:minmax(0,1fr) 65px 24px}.is-managing .fund-spark{display:none}.is-managing .list-labels span:nth-child(2){display:none}.quote-bottom{font-size:8px}.controls{flex-wrap:wrap;justify-content:flex-end}.controls select{font-size:9px}.tabs button{padding:7px}.panel{padding-left:12px;padding-right:12px}}

/* Compact overview keeps the fund list near the top on every viewport. */
.quotes{gap:10px;margin-bottom:16px}.quote{padding:11px 13px 9px;border-radius:13px}.quote-header{font-size:12px}.quote-badge{width:18px;height:18px;border-radius:5px;font-size:9px}.quote-subtitle{font-size:9px;margin-top:3px}.quote .price{font-size:26px;line-height:1.2;margin-top:5px}.quote-change{font-size:10px;line-height:1.4;margin-top:2px}.quote-change small{display:inline;font-size:8px;margin:0 0 0 5px}.overview-spark{height:20px;margin:5px 0 4px}.quote-bottom{font-size:8px;line-height:1.4}
@media(max-width:350px){.quote{padding:10px}.quote .price{font-size:23px}.quote-header{font-size:11px}.quote-subtitle{font-size:8px}.overview-spark{height:18px}}

.code-input{height:40px;padding:8px 12px;font-size:16px;line-height:22px;border-radius:8px}

.fund-row{min-height:64px}.fund-main{padding-top:8px;padding-bottom:8px}

main{padding-top:14px}.masthead{margin-bottom:9px;gap:10px}.masthead .eyebrow{display:block;font-size:8px;line-height:10px;letter-spacing:1.3px}.masthead h1{font-size:22px;line-height:1.2;margin:3px 0 2px}.masthead .subtitle{font-size:11px;line-height:1.35}.masthead .icon-button{width:34px;height:34px;border-radius:10px;font-size:21px}
