:root{color-scheme:light;--bg:#f0f3f4;--surface:#fff;--text:#18272f;--muted:#52656f;--line:#dbe3e5;--soft:#edf2f2;--accent:#a74720;--up:#a93d32;--down:#087664;--flat:#667880;--rail:#131d23;--rail-ink:#dce9e9;--rail-muted:#a2b4b6;--shadow:0 2px 4px #19273108;--mono:ui-monospace,SFMono-Regular,Menlo,monospace}
:root[data-theme=dark]{color-scheme:dark;--bg:#10181f;--surface:#17232c;--text:#edf4f5;--muted:#acbdc4;--line:#2e414b;--soft:#202e38;--accent:#ffab77;--up:#ffa299;--down:#6cd4b7;--flat:#acbdc4;--rail:#0d161c;--rail-ink:#e4efed;--rail-muted:#a8b9bb;--shadow:none}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-variant-numeric:tabular-nums}
button,input{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
a{color:var(--accent);text-underline-offset:3px}
h1,h2,h3,p{margin:0}
[hidden]{display:none!important}
.layout{display:grid;grid-template-columns:217px minmax(0,1fr);min-height:100vh;max-width:1800px;margin:0 auto}
.rail{background:var(--rail);color:var(--rail-ink);position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;padding:24px 15px 18px}
.brand{display:flex;align-items:center;gap:10px;white-space:nowrap}
.rail .brand{padding:0 6px 28px}
.brand strong{display:block;font-size:18px;letter-spacing:.8px}
.brand small{font:600 9px/1.4 var(--mono);letter-spacing:1.4px;color:var(--rail-muted);display:block;margin-top:3px}
.rail-cap{font-size:11px;color:var(--rail-muted);padding:9px 12px;letter-spacing:1px}
.rail nav{display:grid;gap:4px}
.nav-button{display:flex;align-items:center;gap:10px;min-width:0;color:var(--rail-ink);font-weight:650;font-size:13px;min-height:43px;text-align:left;padding:0 12px;border-radius:9px}
.nav-button svg,.icon-button svg,.search svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.rail .nav-button:hover{background:#20323b}.rail .nav-button.active{color:#ffc096;background:#283b43}
.rail-note{margin-top:auto;border:1px solid #34474d;padding:13px 10px;display:flex;align-items:flex-start;gap:8px;border-radius:10px;color:#e0e8e7;font-size:12px;font-weight:650}
.rail-note i,.pulse{width:7px;height:7px;border-radius:50%;background:#f4a365;display:inline-block;flex:none;margin-top:5px}
.rail-note small{color:var(--rail-muted);font-size:10px;font-weight:450;line-height:1.8}
.main{min-width:0;padding:0 25px;max-width:1530px;width:100%;margin:0 auto}
.top{min-height:65px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.trail,.top-actions{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}
.trail strong{color:var(--text)}
.trail i{font-style:normal;color:var(--muted)}
.mobile-brand,.bottom{display:none}
.icon-button,.outline-button{display:inline-flex;align-items:center;justify-content:center;height:35px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text)}
.icon-button{width:35px}.outline-button{padding:0 11px;font-weight:650;font-size:12px;white-space:nowrap}
.hero{background:#17262e;border-radius:17px;color:#f4faf9;display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,.65fr);padding:23px;gap:20px;align-items:center;overflow:hidden;min-height:188px}
.hero .eyebrow{display:flex;align-items:center;gap:8px;color:#e6b295;font:650 10px/1.5 var(--mono);letter-spacing:2px;margin-bottom:8px}
.eyebrow .pulse{margin:0}
.hero h1{font-size:clamp(27px,3.6vw,44px);letter-spacing:-.5px;font-weight:790;line-height:1.16}
.hero p{font-size:13px;line-height:1.65;color:#b7c9cb;margin-top:9px}
.hero-meta{display:flex;align-items:center;gap:9px;margin-top:13px;color:#c4d2d2;font-size:11px;flex-wrap:wrap}
.hero-meta button{padding:4px 8px;border:1px solid #486069;border-radius:7px;color:#e9f4f3;font-size:11px}
.hero-meta button:disabled{opacity:.55;cursor:wait}
.featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.hero-chip{border:1px solid #42555c;background:#20333c;color:#f1f7f5;border-radius:10px;padding:8px 9px;text-align:left;min-width:0}
.hero-chip span{display:block;color:#c4d2d2;font-size:10px;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hero-chip strong{font-size:18px;white-space:nowrap}
.hero-chip small{font-size:9px;color:#bacccc;font-weight:500;margin-left:4px}
.bar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:17px 0 10px;min-height:35px}
.bar-copy{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.bar-copy strong{font-size:17px}.bar-copy span{font-size:11px;color:var(--muted)}
.search{display:flex;align-items:center;gap:5px;padding:0 8px;border:1px solid var(--line);height:35px;border-radius:9px;background:var(--surface);color:var(--muted);width:min(37%,210px)}
.search input{min-width:0;width:100%;background:none;border:0;font-size:12px;outline:none!important}
.search:focus-within{outline:2px solid var(--accent)}
.groups{display:grid;gap:11px}
.section{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:14px;padding:13px}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:9px}
.section-head h2{font-size:16px;display:flex;align-items:center;gap:7px}
.section-head h2:before{content:"";width:4px;height:17px;border-radius:3px;background:#ea945c;display:inline-block;flex:none}
.section-head span{font-size:10px;color:var(--muted);text-align:right}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.quote{min-width:0;display:block;width:100%;text-align:left;border:1px solid var(--line);border-radius:10px;background:var(--soft);padding:9px;position:relative}
.quote:hover{border-color:var(--accent)}
.quote-top,.quote-middle,.quote-meta{display:flex;justify-content:space-between;gap:4px;align-items:center;min-width:0}
.quote-name{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.frequency{font:600 9px/1.2 var(--mono);color:var(--muted);white-space:nowrap;flex:none}
.quote-middle{margin-top:5px;min-height:25px}
.quote-value{font-size:clamp(15px,2vw,22px);font-weight:780;letter-spacing:-.25px;white-space:nowrap}
.quote-value small{font-size:9px;font-weight:550;color:var(--muted);margin-left:3px}
.quote-change{font-size:10px;font-weight:750;white-space:nowrap}
.up{color:var(--up)}.down{color:var(--down)}.flat{color:var(--flat)}
.quote-meta{font-size:9px;color:var(--muted);margin-top:6px;line-height:1.3}
.quote-meta time{white-space:nowrap}.quote-meta span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spark{width:100%;height:24px;display:block;margin-top:3px;opacity:.8}
.empty{padding:30px 12px;color:var(--muted);text-align:center;border:1px dashed var(--line);background:var(--surface);border-radius:13px;font-size:13px;line-height:1.6}
.foot{font-size:10px;color:var(--muted);display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;padding:18px 4px 23px}
.foot button{padding:0;color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.dialog{border:1px solid var(--line);border-radius:17px;background:var(--surface);color:var(--text);padding:18px;width:min(540px,calc(100% - 28px));max-height:calc(100dvh - 36px);overflow:auto;box-shadow:0 18px 50px #07172233}
.dialog::backdrop{background:#0a162898}
.d-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px}
.d-head h2{font-size:23px}.d-head small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.d-close{height:34px;min-width:34px;border:1px solid var(--line);border-radius:9px;font-size:22px;line-height:1}
.d-value{font-weight:780;font-size:30px;display:flex;align-items:baseline;gap:7px;margin-bottom:8px}
.d-value small{font-size:12px;font-weight:500;color:var(--muted)}.d-value .quote-change{font-size:12px}
.d-chart{margin:8px 0 12px;background:var(--soft);padding:10px;border-radius:10px}
.d-chart svg{width:100%;height:115px;display:block}
.chart-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;gap:4px;margin-top:4px}
.d-info{font-size:12px;line-height:1.65;color:var(--muted)}.d-info p+p{margin-top:6px}
.d-watch{width:100%;padding:9px;margin-top:12px;background:var(--text);color:var(--surface);font-weight:650;border-radius:8px}
.d-watch.saved{background:var(--soft);color:var(--text);border:1px solid var(--line)}
.source-list{list-style:none;padding:0;margin:8px 0;display:grid;gap:7px}
.source-list li{background:var(--soft);border-radius:8px;padding:8px}
@media(min-width:1290px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hero{padding:25px 30px}}
@media(max-width:1000px){.layout{grid-template-columns:169px minmax(0,1fr)}.main{padding:0 15px}.rail{padding-left:10px;padding-right:10px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .layout{display:block}.rail,.trail{display:none}.main{padding:0 10px calc(53px + env(safe-area-inset-bottom));}
 .top{min-height:51px;padding:0 2px}.mobile-brand{display:flex;font-size:15px;font-weight:750;gap:7px}
 .top-actions{gap:5px}.icon-button,.outline-button{height:32px}.icon-button{width:32px}
 .hero{display:block;min-height:0;padding:13px;border-radius:12px}.hero h1{font-size:27px}.hero p{margin-top:5px;font-size:11px}.hero-meta{margin-top:7px}
 .hero .eyebrow{font-size:9px;margin-bottom:4px}.featured{margin-top:9px;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .hero-chip{padding:5px 6px}.hero-chip strong{font-size:14px}.hero-chip span{margin-bottom:2px}.hero-chip:nth-child(n+3){display:none}
 .bar{margin:9px 0 7px}.bar-copy strong{font-size:15px}.search{height:32px;width:40%}
 .groups{gap:7px}.section{padding:8px;border-radius:11px}.section-head{margin-bottom:7px}.section-head h2{font-size:14px}.section-head span{font-size:9px}
 .grid{gap:5px}.quote{padding:6px}.quote-value{font-size:17px}.quote-middle{min-height:21px;margin-top:4px}.quote-meta{margin-top:4px}.spark{height:15px}
 .bottom{position:fixed;z-index:3;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:var(--surface);border-top:1px solid var(--line);padding:2px 5px calc(2px + env(safe-area-inset-bottom))}
 .bottom .nav-button{flex:1;flex-direction:column;justify-content:center;gap:3px;min-height:44px;text-align:center;padding:0 3px;color:var(--muted);font-size:10px}
 .bottom .nav-button.active{color:var(--accent)}.bottom .nav-button svg{width:17px;height:17px}
 .dialog{padding:13px;width:calc(100% - 12px);max-height:85dvh;margin:auto auto max(6px,env(safe-area-inset-bottom))}
 .foot{padding:10px 4px 13px}
}
@media(max-width:360px){.main{padding-left:6px;padding-right:6px}.quote-value{font-size:15px}.quote-name,.quote-change{font-size:10px}.quote-value small{font-size:8px}.section-head span{max-width:44%}}
.quote-value{min-width:0;overflow:hidden;text-overflow:ellipsis}
.quote-change{flex:none}
.quote-meta time{flex:none}
.d-value{flex-wrap:wrap}
.d-value small{overflow-wrap:anywhere}
.hero-chip small:empty,.quote-value small:empty{display:none}
@media(max-width:380px){.quote-middle{gap:2px}.quote-change{font-size:9px}.quote-value{font-size:15px}}

.account-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:56px;height:35px;padding:0 10px;background:var(--rail);color:#fff;border:1px solid var(--rail);border-radius:9px;font-size:12px;font-weight:700;white-space:nowrap}
.account-button svg{height:14px;width:14px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme=dark] .account-button{background:#e8a97c;border-color:#e8a97c;color:#18262d}
.sync-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 10px;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.sync-copy{min-width:0}
.sync-copy strong,.sync-copy small{display:block}
.sync-copy strong{font-size:12px;color:var(--text);overflow-wrap:anywhere}
.sync-copy small{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.45}
.sync-bar button{flex:none;border:1px solid var(--line);border-radius:8px;padding:6px 8px;background:var(--soft);font-size:11px;font-weight:700;color:var(--text);white-space:nowrap}
.account-dialog{width:min(405px,calc(100% - 24px));padding:18px}
.account-mode{display:grid;grid-template-columns:1fr 1fr;background:var(--soft);border:1px solid var(--line);padding:3px;gap:4px;border-radius:9px;margin:12px 0 13px}
.account-mode button{padding:7px 9px;font-size:12px;font-weight:650;color:var(--muted);border-radius:6px;min-height:34px}
.account-mode button.active{color:var(--text);background:var(--surface);box-shadow:var(--shadow)}
.account-form label{display:block;font-size:12px;font-weight:700;margin:9px 0 5px}
.account-form input{height:42px;width:100%;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:var(--surface);font-size:16px;color:var(--text)}
.account-pass{position:relative}
.account-pass input{padding-right:62px}
.password-visibility{position:absolute;top:4px;right:4px;height:34px;padding:0 9px;font-size:11px;color:var(--muted)}
.account-hint,.account-intro{color:var(--muted);font-size:11px;line-height:1.6}
.account-hint{margin-top:5px}
.account-submit{width:100%;margin-top:13px;min-height:38px;border-radius:8px;background:var(--text);color:var(--surface);font-size:13px;font-weight:720}
.account-submit:disabled,.sync-bar button:disabled,.d-watch:disabled{opacity:.58;cursor:wait}
.account-feedback,#watch-note{color:var(--up);font-size:11px;line-height:1.5}
.account-feedback:empty,#watch-note:empty{display:none}
.account-feedback:not(:empty),#watch-note:not(:empty){padding-top:7px}
.account-summary{padding:9px;border:1px solid var(--line);border-radius:9px;background:var(--soft);margin-top:9px;font-size:12px;line-height:1.6;color:var(--muted)}
.account-summary strong{color:var(--text);overflow-wrap:anywhere}
@media(max-width:760px){.account-button{min-width:51px;height:32px;padding:0 7px}.account-dialog{padding:14px}}
@media(max-width:340px){.account-button{gap:3px;font-size:11px}.account-button svg{width:12px;height:12px}.top-actions .outline-button{padding:0 6px;font-size:11px}}
.captcha-row{display:flex;align-items:center;gap:7px;margin:0 0 5px;min-height:46px}
.captcha-row img{width:144px;height:44px;border:1px solid var(--line);border-radius:7px;object-fit:contain;background:#f5f8f6}
.captcha-row span{color:var(--muted);font-size:11px;width:144px}
.captcha-row button,.otp-row button{flex:none;border:1px solid var(--line);border-radius:8px;background:var(--soft);padding:6px 8px;color:var(--text);font-size:11px;font-weight:700;white-space:nowrap}
.captcha-row button:disabled,.otp-row button:disabled{opacity:.52}
.captcha-passed{border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--down);padding:10px;font-size:11px;font-weight:700;line-height:1.45;margin-top:8px}
.otp-row{display:flex;gap:6px;align-items:stretch}
.otp-row input{flex:1;min-width:0}
.intraday{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:12px;margin-top:12px;box-shadow:var(--shadow)}
.intraday-tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:7px}
.intraday-tabs button{min-height:29px;border:1px solid var(--line);background:var(--soft);color:var(--text);border-radius:7px;padding:0 8px;font-size:11px;font-weight:680;white-space:nowrap}
.intraday-tabs button[aria-pressed=true]{background:var(--text);border-color:var(--text);color:var(--surface)}
.intraday-meta{font-size:10px;color:var(--muted);margin-bottom:5px;line-height:1.55}
.intraday iframe{display:block;width:100%;height:257px;border:0;border-radius:8px}
.intraday-link{font-size:11px;white-space:nowrap;flex:none}
@media(max-width:760px){.intraday{padding:8px;margin-top:8px}.intraday-tabs button{padding:0 6px}}
