:root{--bg:#f5f6f8;--paper:#fff;--ink:#17253b;--muted:#647086;--line:#e5e9ef;--brand:#2563eb;--tint:#edf3ff;--green:#146b50;--red:#b23735;--amber:#885c11;--radius:22px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none;color:var(--ink);background:var(--bg);font-size:17px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--brand);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #79a5ff;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:36px;letter-spacing:-1px;line-height:1.22;margin-bottom:10px}h2{font-size:22px;line-height:1.4;margin-bottom:14px}h3{font-size:19px;line-height:1.45;margin-bottom:8px}p{line-height:1.7;margin-bottom:12px}small,.small{font-size:14px;line-height:1.65}.muted{color:var(--muted)}.green{color:var(--green)}.red{color:var(--red)}.amber{color:var(--amber)}.stack>*+*{margin-top:16px}.row{display:flex;align-items:center;gap:12px;min-width:0}.row.wrap{flex-wrap:wrap}.between{justify-content:space-between}.grow{flex:1;min-width:0}.right{text-align:right}.strong{font-weight:700}.nowrap{white-space:nowrap}.wordbreak{overflow-wrap:anywhere}.icon{width:23px;height:23px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.brand{display:flex;align-items:center;gap:12px;font-size:25px;letter-spacing:-1px;font-weight:800}.brand-mark{height:42px;width:42px;border-radius:13px;display:grid;place-items:center;background:var(--ink);color:#fff;font-size:22px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:8px;padding:5px 9px;background:#edf0f4;color:#4e5e75;font-size:12px;font-weight:650;white-space:normal;line-height:1.4}.badge.blue{background:var(--tint);color:#285abe}.badge.warn{background:#fff4df;color:var(--amber)}.badge.good{background:#eaf6ef;color:var(--green)}.badge.danger{background:#ffefed;color:var(--red)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border-radius:12px;padding:11px 17px;border:1px solid transparent;background:var(--brand);color:white;font-weight:650;line-height:1.35;text-align:center}.btn.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.btn.quiet{background:var(--tint);color:#275ac1}.btn.danger{background:#fff0ef;color:var(--red)}.btn.full{width:100%}.btn.small{font-size:14px;min-height:44px;padding:9px 12px}.icon-button{display:inline-grid;place-items:center;border:1px solid var(--line);background:white;border-radius:12px;width:46px;height:46px;color:var(--ink);font-size:24px}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 4px 20px #21385b03;min-width:0}.card.soft{background:var(--tint);border-color:#e1eaff}.card.noshadow{box-shadow:none}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stat-value{font-size:32px;line-height:1.3;font-weight:750;letter-spacing:-.7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat-label{color:var(--muted);font-size:14px;margin-bottom:12px}.eyebrow{font-size:12px;letter-spacing:1.4px;color:var(--muted);font-weight:700;margin-bottom:12px}.divider{height:1px;background:var(--line);margin:20px 0}.alert{padding:15px 17px;border-radius:13px;background:#fff5e5;border:1px solid #f1dfbf;color:#7d591c;font-size:14px;line-height:1.75;overflow-wrap:anywhere}.alert.info{background:var(--tint);color:#32517e;border-color:#dce7fb}.empty{padding:32px 12px;text-align:center;color:var(--muted);line-height:1.7}.empty .icon{width:34px;height:34px;margin-bottom:10px}.loading{padding:65px 20px;text-align:center;color:var(--muted)}.spinner{width:26px;height:26px;border:3px solid #dce4f1;border-top-color:var(--brand);border-radius:50%;display:inline-block;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.list-item{padding:18px 0;border-bottom:1px solid var(--line);min-width:0}.list-item:last-child{border-bottom:none}.ticker{height:42px;min-width:42px;border-radius:12px;background:#f0f3f8;display:grid;place-items:center;font-size:13px;font-weight:750;color:#54677f}.status-dot{height:8px;width:8px;background:#a77c23;border-radius:50%;display:inline-block}.status-dot.on{background:#209c6b}
/* App shell: roomy desktop navigation; reachable mobile bottom bar. */
.sidebar{position:fixed;left:0;top:0;bottom:0;width:228px;padding:30px 24px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:10}.sidebar nav{margin-top:48px;display:grid;gap:10px}.nav-btn{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;background:none;border:none;border-radius:14px;color:var(--muted);font-size:17px;text-align:left;font-weight:600;min-height:50px}.nav-btn.active{background:var(--tint);color:var(--brand)}.sidebar-footer{margin-top:auto;font-size:12px;line-height:1.8;color:var(--muted)}.main-shell{margin-left:228px}.topbar{height:88px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#ffffffba;gap:12px}.topbar .brand{display:none}.user-chip{display:flex;align-items:center;gap:10px;max-width:55%;font-size:14px}.avatar{height:34px;width:34px;min-width:34px;border-radius:50%;background:#e7edfa;color:#3a5f9a;display:grid;place-items:center;font-weight:700}.user-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{max-width:1180px;margin:auto;padding:34px 40px 55px}.page-head{margin-bottom:26px}.page-head p{color:var(--muted);margin:0;font-size:16px}.bottom-nav{display:none}.footer-note{text-align:center;color:var(--muted);font-size:12px;line-height:1.8;margin:28px 0 0}.hero{position:relative;padding:28px;border-radius:24px;background:#172b4d;color:#fff;margin-bottom:22px}.hero .eyebrow{color:#c3d1e8}.hero h2{font-size:29px;margin-bottom:10px}.hero p{color:#cad5e7;font-size:15px}.hero .btn{background:#fff;color:#23406b}.hero-details{display:flex;gap:24px;margin-top:24px}.hero-details strong{display:block;font-size:25px}.hero-details span{font-size:13px;color:#c5d4ec}.callout-number{height:38px;width:38px;flex-shrink:0;border-radius:12px;background:var(--tint);color:var(--brand);display:grid;place-items:center;font-weight:700}
/* Forms and dialogs */
label{display:block;font-size:15px;font-weight:650;margin-bottom:7px}.field{margin-bottom:17px}.field input:not([type=checkbox]),.field select,.field textarea{width:100%;min-width:0;border:1px solid #dce2eb;border-radius:11px;padding:13px 14px;background:#fff;color:var(--ink);min-height:48px;line-height:1.3}.field input::placeholder,.field textarea::placeholder{color:#8792a4;font-size:15px}.field textarea{min-height:100px;resize:vertical}.hint{font-size:12px;color:var(--muted);line-height:1.65;margin-top:6px}.check{display:flex;align-items:flex-start;gap:10px;font-weight:400;font-size:14px;line-height:1.65;margin:15px 0}.check input{margin-top:4px;width:18px;height:18px;flex-shrink:0;accent-color:var(--brand)}.search-row{display:flex;gap:10px}.search-row .field{flex:1;margin:0}.search-row .btn{min-width:80px}.tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:18px}.tab{border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:11px;padding:10px 15px;min-height:44px;white-space:nowrap}.tab.active{background:var(--brand);border-color:var(--brand);color:#fff}details{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}summary{cursor:pointer;font-weight:650;min-height:44px;display:flex;align-items:center}dialog{width:min(590px,calc(100% - 28px));border:1px solid var(--line);border-radius:22px;padding:30px;max-height:88dvh;overflow-y:auto;color:var(--ink)}dialog::backdrop{background:#172b4d66;backdrop-filter:blur(3px)}dialog h2{padding-right:36px}.dialog-close{position:absolute;right:18px;top:18px;width:36px;height:36px;border:none;background:#f2f4f8}.toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:14px 22px;border-radius:14px;max-width:calc(100% - 32px);font-size:15px;line-height:1.5;z-index:100;box-shadow:0 8px 30px #172b4d30}.toast[hidden]{display:none}.error-box{background:#fff0ef;color:var(--red);padding:12px 14px;border-radius:10px;font-size:14px;line-height:1.5;margin-bottom:16px}.auth-shell{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;max-width:1260px;margin:auto;padding:70px 50px;gap:70px;align-items:center}.auth-story h1{font-size:48px;margin:55px 0 24px;line-height:1.2}.auth-story p{font-size:19px;max-width:420px;color:var(--muted)}.auth-points{display:grid;gap:20px;margin-top:38px}.auth-points .row{font-size:16px}.auth-points .icon{color:var(--brand)}.auth-panel{max-width:480px;width:100%;justify-self:center}.auth-panel .card{padding:32px}.auth-switch{display:flex;gap:8px;margin-bottom:24px}.auth-switch .tab{flex:1}.legal{padding:38px;max-width:840px;margin:32px auto}.legal p{line-height:1.95}.legal h2{margin-top:30px}
/* Research and community */
.price-large{font-size:40px;letter-spacing:-1.3px;font-weight:750;font-variant-numeric:tabular-nums}.chart{width:100%;height:170px;display:block;margin-top:12px}.chart-line{fill:none;stroke:var(--brand);stroke-width:2.5;vector-effect:non-scaling-stroke}.chart-guide{stroke:var(--line);stroke-width:1}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.metric{padding:13px;background:#f6f8fb;border-radius:12px}.metric strong{display:block;font-size:19px;margin-top:5px;font-variant-numeric:tabular-nums}.range-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.range-box{padding:16px;background:#f6f8fb;border-radius:14px}.range-box strong{display:block;font-size:21px;margin-top:8px;overflow-wrap:anywhere}.chat-card{padding:0;overflow:hidden}.chat-head{padding:18px 22px;border-bottom:1px solid var(--line)}.chat-log{height:410px;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:20px;background:#fbfcfe;overscroll-behavior:contain}.chat-message{display:flex;align-items:flex-start;gap:12px;max-width:100%;min-width:0}.chat-message .avatar{border-radius:11px}.chat-author{font-size:13px;color:var(--muted);margin-bottom:7px}.bubble{padding:12px 15px;background:#fff;border:1px solid var(--line);border-radius:0 13px 13px 13px;font-size:16px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.bubble.ai{background:var(--tint);border-color:#dfe9fb}.message-content{flex:1;min-width:0}.report-btn{border:0;background:none;padding:7px 0;color:var(--muted);font-size:12px;min-height:35px}.chat-compose{padding:18px 20px;background:#fff;border-top:1px solid var(--line)}.chat-compose textarea{resize:none;min-height:80px}.chat-compose .field{margin-bottom:10px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}th,td{padding:13px 12px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-weight:650;color:var(--muted)}.code{font-family:ui-monospace,monospace;font-size:13px;background:#f0f3f7;border-radius:8px;padding:9px 12px;overflow-wrap:anywhere}.skip-link{position:absolute;top:-100px;left:16px;padding:12px;background:#fff;z-index:200}.skip-link:focus{top:10px}
@media(max-width:1100px){.sidebar{width:195px;padding:26px 18px}.main-shell{margin-left:195px}.content{padding:28px 24px}.topbar{padding:0 24px}.auth-shell{gap:40px;padding:50px 35px}.auth-story h1{font-size:40px}}
@media(max-width:760px){:root{font-size:17px}.sidebar{display:none}.main-shell{margin-left:0}.topbar{height:76px;padding:0 18px;background:#fff}.topbar .brand{display:flex;font-size:22px;gap:9px}.topbar .brand-mark{height:34px;width:34px;font-size:18px;border-radius:10px}.desktop-label{display:none}.user-chip{gap:7px;font-size:12px;max-width:43%}.user-chip .avatar{height:29px;min-width:29px;width:29px}.content{padding:25px 16px 105px}.page-head{margin-bottom:22px}h1{font-size:30px}h2{font-size:21px}.page-head p{font-size:15px}.card{padding:20px;border-radius:19px}.grid2{grid-template-columns:1fr;gap:16px}.grid3{gap:10px}.grid3 .card{padding:16px 12px}.grid3 .stat-label{font-size:12px;min-height:30px;margin-bottom:7px}.stat-value{font-size:26px}.hero{padding:24px 21px;border-radius:21px}.hero h2{font-size:26px}.hero-details{gap:23px}.hero-details strong{font-size:22px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:20;display:grid;grid-template-columns:repeat(5,1fr);background:#ffffffef;backdrop-filter:blur(20px);border-top:1px solid var(--line);padding:8px 6px calc(8px + env(safe-area-inset-bottom));min-height:76px}.bottom-nav .nav-btn{flex-direction:column;gap:5px;text-align:center;align-items:center;justify-content:center;padding:7px 3px;min-height:54px;font-size:12px;border-radius:11px;line-height:1.2}.bottom-nav .nav-btn .icon{height:23px;width:23px}.bottom-nav .nav-btn.active{background:var(--tint)}.toast{bottom:calc(92px + env(safe-area-inset-bottom));min-width:220px}.auth-shell{display:block;padding:26px 18px 35px}.auth-story h1{font-size:33px;margin:30px 0 15px}.auth-story p{font-size:16px}.auth-points{display:none}.auth-panel{max-width:100%;margin-top:28px}.auth-panel .card{padding:23px}.auth-story .badge{margin-top:8px}.legal{padding:24px;margin:14px 12px}.price-large{font-size:34px}.metric-grid{grid-template-columns:1fr 1fr}.range-grid{gap:10px}.range-box{padding:13px}.range-box strong{font-size:18px}.chat-log{height:360px;padding:16px}.chat-head{padding:17px}.chat-compose{padding:16px}.chat-message{gap:9px}.chat-message .avatar{width:29px;height:29px;min-width:29px;font-size:12px}.chat-author{font-size:12px}.bubble{font-size:16px;padding:11px 13px}.list-item .row.wrap{gap:8px}dialog{padding:25px 20px}.hero-details span{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

/* Verified compact viewport fixes: financial cards never shrink to one third width. */
.currency-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.user-chip .badge{flex-shrink:0;white-space:nowrap}
.dialog-close{width:44px;height:44px;top:12px;right:12px}
.report-btn{min-height:44px}
@media(max-width:760px){.currency-grid{grid-template-columns:1fr}.currency-grid .stat-label{font-size:14px;min-height:0}.currency-grid .card{padding:20px}.page-head>.grow{flex-basis:100%}.range-grid{grid-template-columns:1fr}}
