:root{--navy:#041425;--navy2:#08233e;--blue:#1266d7;--gold:#d7a548;--gold2:#f1cb77;--ink:#17283d;--muted:#7b8897;--line:#e4eaf0;--paper:#f6f9fc}
*{box-sizing:border-box}html,body,#app{margin:0;min-height:100%;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink)}button,input{font:inherit}.screen{min-height:100vh;background:#020b17}.poster{position:relative;width:100%;aspect-ratio:1.777777;background-position:center top;background-size:100% 100%;overflow:hidden}.hotspot{position:absolute;border:0;background:transparent;cursor:pointer}.hotspot:focus-visible{outline:2px solid var(--gold2);outline-offset:3px}.home-try{left:3.8%;top:60.1%;width:13.5%;height:7%}.home-learn{left:18%;top:60.1%;width:15%;height:7%}.nav-home{left:34%;top:2%;width:8%;height:7%}.nav-cap{left:41%;top:2%;width:9%;height:7%}.nav-research{left:50%;top:2%;width:10%;height:7%}.nav-data{left:60%;top:2%;width:9%;height:7%}.nav-about{left:68%;top:2%;width:10%;height:7%}.research-enter{left:3.8%;top:51.4%;width:14.2%;height:7%}.data-enter{left:59%;top:46.5%;width:13%;height:7%}.docs-enter{left:59.5%;top:82%;width:17.5%;height:11%}.cap-card{top:37.8%;height:42.3%;width:14.5%;border-radius:16px;transition:transform .2s}.cap-card:hover{transform:scale(1.035)}
.app-shell{min-height:100vh;background:linear-gradient(180deg,#eef5fb 0,#fff 130px)}.topbar{height:76px;background:linear-gradient(110deg,#031527,#082844);display:flex;align-items:center;padding:0 5vw;color:#fff;box-shadow:0 8px 32px #0a31522b;position:sticky;top:0;z-index:10}.brand{font-size:25px;font-weight:700;display:flex;gap:12px;align-items:center}.brand-mark{width:34px;height:34px;display:inline-grid;place-items:center}.brand-logo-img{width:100%;height:100%;display:block;object-fit:contain;filter:drop-shadow(0 0 12px #e9af4b66)}.topbar nav{margin-left:auto;display:flex;gap:34px}.topbar button{border:0;background:none;color:#c7d5e2;cursor:pointer}.topbar button.active,.topbar button:hover{color:var(--gold2)}
.research-page{max-width:1320px;margin:0 auto;padding:36px 28px 80px}.research-hero{display:flex;justify-content:space-between;gap:32px;align-items:center;padding:26px 32px;background:linear-gradient(120deg,#06233d,#0a3960);border-radius:18px;color:#fff;box-shadow:0 18px 48px #07345b26;position:relative;overflow:hidden}.research-hero:after{content:"";position:absolute;right:-80px;top:-130px;width:420px;height:420px;border:1px solid #d8ad5466;border-radius:50%;box-shadow:0 0 70px #0c78d988 inset}.research-hero h1{font-size:38px;margin:0 0 8px;color:#f3cc78}.research-hero p{margin:0;color:#c8d9e8}.upload{position:relative;z-index:1;border:1px solid #f0c66c;background:linear-gradient(135deg,#d6a548,#f3d286);color:#14283a;border-radius:10px;padding:14px 25px;font-weight:700;cursor:pointer;box-shadow:0 8px 22px #e6b75b32}.upload input{display:none}.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin:35px 0 10px}.section-head h2{margin:0;font-size:29px}.stats{color:#8b96a5}.stats b{color:#1766cb}.feed{background:#fff;border:1px solid var(--line);border-radius:16px;padding:0 28px;box-shadow:0 12px 36px #1236540c}.news{padding:27px 0;border-bottom:1px solid var(--line);cursor:pointer;transition:padding .2s,background .2s}.news:last-child{border:0}.news:hover{background:#f8fbff;padding-left:12px;padding-right:12px}.news-title{font-size:22px;font-weight:750;color:#24364c}.meta{margin:9px 0;color:#7f8b98}.agency{color:#1466d1}.summary{color:#68788b;line-height:1.7;margin:0}.tags{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:13px}.ticker{color:#1767d2;margin-right:10px}.views{color:#8c98a5;margin-right:8px}.tag{font-size:13px;border-radius:5px;padding:5px 9px;background:#edf4ff;color:#256bd2}.tag.gold{background:#fff5e3;color:#b57200}.tag.green{background:#edf8f2;color:#37985b}
.detail{height:100vh;background:#fff;display:grid;grid-template-columns:50% 50%;overflow:hidden}.report-pane{border-right:1px solid #dce5ed;height:100vh;display:flex;flex-direction:column}.report-head{padding:24px 34px 12px}.back{border:0;background:none;font-size:27px;cursor:pointer;color:#405269}.report-head h1{display:inline;font-size:25px;margin-left:14px}.report-meta{color:#6d7f91;margin:15px 42px}.report-meta b{color:#1766cb}.paper-scroll{overflow-y:auto;padding:20px 8vw 80px;background:#fff}.paper{font-family:"SimSun",serif;color:#111;min-height:1050px}.paper-top{display:flex;justify-content:space-between;margin:110px 0 70px}.paper h2,.paper h3{text-align:center}.paper h2{font-size:22px;margin:0 0 30px}.paper table{border-collapse:collapse;width:100%;margin-top:50px}.paper td{border:1px solid #555;padding:9px;line-height:1.7}.paper td:first-child{width:25%;font-weight:700}.side-pane{height:100vh;display:flex;flex-direction:column;background:linear-gradient(180deg,#f7fbff,#fff 90px)}.tabs{height:72px;display:flex;gap:42px;padding:0 42px;border-bottom:1px solid var(--line);align-items:end}.tab{height:52px;border:0;background:none;font-size:18px;color:#68788a;cursor:pointer;border-bottom:4px solid transparent}.tab.active{color:#0d5ab4;border-color:var(--gold)}.side-content{padding:26px 42px;overflow-y:auto;flex:1}.summary-block{border-left:3px solid var(--gold);padding-left:20px;margin-bottom:34px}.summary-block h2{font-size:25px;margin:0 0 14px;color:#102c48}.summary-block li{line-height:1.8;margin:5px 0}.note{padding:13px 16px;border-radius:9px;background:#eaf3fd;color:#195c9f;margin-bottom:26px}.chat{display:flex;flex-direction:column;height:100%}.messages{flex:1;overflow-y:auto;padding-bottom:20px}.bubble{max-width:88%;padding:13px 18px;border-radius:14px;line-height:1.7;margin:10px 0}.bubble.user{margin-left:auto;background:#e9f1fa}.bubble.ai{background:#f7fafc;border-left:3px solid var(--gold)}.bubble.ai h3{color:#123a60}.composer{border:1px solid #ccd8e4;border-radius:18px;padding:14px;background:#fff;box-shadow:0 10px 28px #173f6314}.composer textarea{border:0;outline:0;width:100%;resize:none;height:52px}.send{float:right;border:0;border-radius:50%;width:42px;height:42px;background:linear-gradient(135deg,#0a3b69,#146ec6);color:#fff;cursor:pointer}.disclaimer{text-align:center;font-size:12px;color:#a0aab5;margin-top:10px}.placeholder{min-height:100vh;background:linear-gradient(135deg,#031426,#0b3459);color:#fff;display:grid;place-items:center;text-align:center}.placeholder h1{color:#efc76f;font-size:48px}.placeholder button{border:1px solid #d9aa4f;background:#d9aa4f;padding:12px 24px;border-radius:8px;cursor:pointer}
.bubble{white-space:pre-wrap;overflow-wrap:anywhere}.bubble.ai.loading{color:#7b8897}.bubble.ai.error{border-left-color:#d75b5b;background:#fff3f3;color:#a52b2b}.composer textarea:disabled{background:#fff}.send:disabled{cursor:wait;opacity:.55}.poster[style*="page5.png"]{aspect-ratio:1932/580}
@media(max-width:800px){.poster{height:100vh;aspect-ratio:auto;background-size:cover}.topbar nav{display:none}.research-hero{align-items:flex-start;flex-direction:column}.detail{grid-template-columns:1fr;height:auto}.report-pane,.side-pane{height:85vh}.side-content{padding:20px}.tabs{padding:0 20px}.research-page{padding:20px 14px}.feed{padding:0 16px}}

/* Code-native product pages */
.m-page{--m-bg:#020b16;--m-panel:#06182a;--m-gold:#f0bd5d;--m-gold2:#ffe3a0;--m-blue:#3298ff;min-height:100vh;background:var(--m-bg);color:#f6f8fb;font-family:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif;overflow:hidden}
.m-header{height:86px;padding:0 clamp(28px,4vw,72px);display:flex;align-items:center;border-bottom:1px solid #a9874c32;background:#020812e8;backdrop-filter:blur(18px);position:relative;z-index:30}
.m-brand{display:flex;align-items:center;gap:13px;border:0;background:none;color:#fff;font-size:25px;cursor:pointer;letter-spacing:.01em}.m-brand b{font-weight:650}.m-logo{width:35px;height:35px;display:grid;place-items:center}
.m-header nav{margin-left:auto;display:flex;align-items:stretch;height:100%;gap:clamp(20px,4vw,70px)}.m-header nav button{border:0;background:none;color:#b8c0cb;cursor:pointer;font-size:17px;position:relative;padding:0 4px}.m-header nav button:after{content:"";position:absolute;left:50%;right:50%;bottom:18px;height:2px;background:linear-gradient(90deg,var(--m-gold),#fff0b1);transition:.25s}.m-header nav button:hover,.m-header nav button.active{color:var(--m-gold2)}.m-header nav button.active:after{left:5%;right:5%}
.m-eyebrow{display:inline-flex;border:1px solid #cb8d35aa;border-radius:8px;padding:8px 16px;color:#efbd61;background:#110d0799;font:600 13px/1 "SFMono-Regular",Consolas,monospace;letter-spacing:.12em}
.m-btn{min-width:180px;min-height:58px;border-radius:9px;padding:0 24px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;text-decoration:none;cursor:pointer;transition:transform .25s,box-shadow .25s,border-color .25s}.m-btn:hover{transform:translateY(-3px)}.m-btn.gold{border:1px solid #ffe4a0;background:linear-gradient(135deg,#e4a942,#f6d27d);color:#111a24;box-shadow:0 12px 32px #d79d3650}.m-btn.gold:hover{box-shadow:0 18px 42px #d79d3675}.m-btn.ghost{border:1px solid #b07b3caa;background:#04101dd6;color:#eef3f8}.m-btn.ghost:hover{border-color:var(--m-gold)}
.m-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:34px}
.m-home{min-height:calc(100vh - 86px);position:relative;display:grid;grid-template-columns:47% 53%;align-items:center;padding:55px clamp(28px,4vw,72px) 44px;background:radial-gradient(circle at 77% 47%,#0b477366 0,transparent 35%),radial-gradient(circle at 18% 75%,#8252151f 0,transparent 31%),#020a14}
.m-grid{position:absolute;inset:0;opacity:.18;background-image:linear-gradient(#2d78ae24 1px,transparent 1px),linear-gradient(90deg,#2d78ae24 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to bottom,transparent,#000 25%,#000 85%,transparent)}
.m-home-copy{position:relative;z-index:5;animation:m-rise .65s ease both}.m-home-copy h1{font:750 clamp(60px,6vw,104px)/1 "DIN Alternate","Avenir Next",sans-serif;margin:28px 0 15px;letter-spacing:-.045em;background:linear-gradient(90deg,#fff 0,#fff 25%,#f0b950 55%,#ffe5aa 100%);color:transparent;background-clip:text}.m-home-copy h1 span{font-family:"PingFang SC",sans-serif;font-size:.75em}.m-home-copy h2{font-size:clamp(28px,3.1vw,52px);line-height:1.22;margin:0 0 25px;letter-spacing:.02em}.m-home-copy>p{color:#bfc8d4;font-size:clamp(16px,1.25vw,21px);line-height:1.9;margin:0}.m-pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:38px}.m-pills span{border:1px solid #8ea2b53a;border-radius:9px;padding:9px 14px;background:#061421c2;color:#d8e0e7;font-size:13px}.m-pills span.blue{border-color:#168dd4;color:#50b8f3}
.m-market{height:600px;position:relative;align-self:center;z-index:2;animation:m-rise .7s .12s ease both}.m-market:after{content:"";position:absolute;left:3%;right:0;bottom:20px;height:120px;background:radial-gradient(ellipse,#0078d35c,transparent 68%);filter:blur(16px)}.m-market svg{position:absolute;left:-3%;right:0;bottom:75px;width:103%;height:70%;filter:drop-shadow(0 0 11px #288fe088)}.m-market .area{fill:url(#goldline);opacity:.09}.m-market .line{fill:none;stroke:url(#goldline);stroke-width:3}.m-orbit{position:absolute;border:1px solid #3a98e666;border-radius:50%;transform:rotate(-18deg)}.m-orbit.one{width:520px;height:250px;right:3%;top:120px}.m-orbit.two{width:680px;height:330px;right:-10%;top:70px;border-color:#e2a8494d}
.m-chip{position:absolute;z-index:5;left:43%;top:45%;width:190px;height:145px;border:1px solid #f0bc5dcc;background:linear-gradient(145deg,#1b2733,#070c12 70%);transform:perspective(500px) rotateX(57deg) rotateZ(-9deg);display:grid;place-content:center;text-align:center;box-shadow:0 0 16px #f1bd5f,0 0 70px #1d8eea88}.m-chip:before,.m-chip:after{content:"";position:absolute;inset:-14px;border:2px dotted #c79748aa}.m-chip:after{inset:-27px;border-color:#2b97e388}.m-chip span{color:var(--m-gold);font-size:38px}.m-chip b{font-size:22px}.m-chip small{font-size:9px;letter-spacing:.2em;color:#8ca0b2}
.m-candles{position:absolute;left:12%;top:27%;display:flex;gap:20px;align-items:flex-end;height:150px}.m-candles i{height:var(--h);width:10px;background:linear-gradient(#82c8ff,#2577d7);box-shadow:0 0 12px #218def;position:relative;animation:m-grow .6s var(--d) both}.m-candles i:nth-child(3n){background:linear-gradient(#ffe7a5,#d9942d);box-shadow:0 0 12px #e1a044}.m-candles i:before{content:"";position:absolute;width:1px;height:calc(var(--h) + 30px);background:inherit;left:50%;top:-15px}
.m-metric{position:absolute;z-index:7;width:142px;padding:14px;border:1px solid #6faee76e;border-radius:10px;background:#061523d9;box-shadow:0 18px 45px #0008;display:flex;flex-direction:column;transform:rotate(2deg)}.m-metric small{color:#bbc8d5}.m-metric b{font-size:23px;margin:5px 0}.m-metric em{font-style:normal;color:#efb959;font-size:12px}.m-metric.a{right:3%;top:75px}.m-metric.b{right:1%;bottom:55px}.m-metric.c{left:23%;bottom:10px}
.m-intro{text-align:center;max-width:900px;margin:0 auto;padding:28px 20px 22px}.m-intro h1{font-size:52px;margin:15px 0 4px}.m-intro h1 span{color:var(--m-gold)}.m-intro h2{color:var(--m-gold);font-size:20px;margin:0 0 12px}.m-intro p{color:#b7c0cb;line-height:1.7;margin:0}.m-cap{min-height:calc(100vh - 86px);padding:0 clamp(24px,3.3vw,58px) 30px;background:radial-gradient(circle at 50% 40%,#0b2c4f99,transparent 44%),linear-gradient(120deg,#020914,#03101d)}.m-group{max-width:1500px;margin:0 auto 12px;display:grid;grid-template-columns:2fr 4fr;gap:22px;color:var(--m-gold);font-size:19px}.m-group span{text-align:center;display:flex;align-items:center;gap:12px}.m-group span:before,.m-group span:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,currentColor)}.m-group span:after{background:linear-gradient(90deg,currentColor,transparent)}.m-group span+span{color:#53adff}
.m-cap-grid{max-width:1500px;margin:auto;display:grid;grid-template-columns:repeat(6,1fr);gap:18px}.m-cap-card{min-height:360px;border:1px solid #418ac3;border-radius:17px;padding:52px 18px 20px;text-align:center;position:relative;background:linear-gradient(180deg,#0a2239d9,#03101ed9);box-shadow:inset 0 0 30px #1c72a51f;animation:m-rise .5s var(--delay) both;transition:.25s}.m-cap-card:hover{transform:translateY(-7px);box-shadow:0 20px 40px #0006,inset 0 0 35px #208ad339}.m-cap-card.core{border-color:#bf8734;box-shadow:inset 0 0 30px #c78d251b}.m-cap-card .number{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:#092039;border:1px solid currentColor;border-radius:8px;padding:8px;color:#62b5ff}.m-cap-card.core .number{color:var(--m-gold);background:#251b0b}.m-cap-card>i{font-style:normal;font-size:72px;line-height:1;color:#5fb3ff;text-shadow:0 0 22px #178de2}.m-cap-card.core>i{color:var(--m-gold);text-shadow:0 0 22px #d79a36}.m-cap-card h3{font-size:18px;margin:28px 0 18px}.m-cap-card h3 small{font-size:14px;color:#d5dbe2}.m-cap-card p{font-size:13px;line-height:1.8;color:#aeb9c4}.m-cap-card button{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);border:0;background:none;color:#55adf6;cursor:pointer;opacity:0;transition:.2s;white-space:nowrap}.m-cap-card:hover button{opacity:1}.m-cap-card.core button{color:var(--m-gold)}
.m-tech{max-width:1320px;margin:24px auto 0;border:1px solid #b17c33;border-radius:14px;background:#071523d9;display:flex;justify-content:space-around;padding:17px;box-shadow:0 12px 35px #0005}.m-tech span{padding:0 22px;border-right:1px dotted #aa7e45;color:#e3e7eb}.m-tech span:last-child{border:0;color:var(--m-gold)}
.m-product{min-height:calc(100vh - 86px);padding:55px clamp(30px,4vw,72px) 35px;background:radial-gradient(circle at 78% 30%,#0a345caa,transparent 32%),#020b17}.m-product-hero{display:grid;grid-template-columns:55% 45%;align-items:center;min-height:425px;max-width:1540px;margin:auto}.m-product-copy{animation:m-rise .6s both}.m-product-copy h1{font-size:clamp(48px,5vw,78px);margin:28px 0 14px;letter-spacing:-.03em}.m-product-copy h1 span{color:var(--m-gold)}.m-product-copy h1 i{font-style:normal;color:#b98234;font-weight:300}.m-product-copy h2{font-size:clamp(24px,2.3vw,38px);font-weight:500;margin:0 0 22px}.m-product-copy p{max-width:660px;color:#bac3ce;font-size:17px;line-height:1.9}
.m-product-visual{height:390px;position:relative;animation:m-rise .7s .1s both}.m-product-visual.research:before,.m-product-visual.data:before{content:"";position:absolute;inset:12% 0;background:radial-gradient(ellipse,#0d78bf55,transparent 62%)}.m-scan{position:absolute;width:290px;height:290px;border:1px solid #ce9139;border-radius:50%;left:28%;top:45px;box-shadow:0 0 55px #d7993438,inset 0 0 35px #237dba44}.m-scan:before,.m-scan:after{content:"";position:absolute;inset:20px;border:1px dashed #278bd1;border-radius:50%}.m-scan:after{inset:62px}.m-doc{position:absolute;left:35%;top:70px;width:180px;height:240px;border:2px solid var(--m-gold);border-radius:10px;background:linear-gradient(145deg,#16283a,#060d15);box-shadow:0 0 40px #dca44155;color:var(--m-gold);font-size:86px;text-align:center;padding-top:30px;transform:rotate(3deg)}.m-doc span,.m-report span{display:block;height:3px;background:#d3a04b;margin:13px 35px}.m-glass{position:absolute;width:125px;height:125px;border:10px solid #eebf67;border-radius:50%;left:54%;top:170px;box-shadow:0 0 30px #e8b75c}.m-glass:after{content:"";width:90px;height:12px;background:#eebf67;position:absolute;right:-72px;bottom:-41px;transform:rotate(50deg);border-radius:8px}
.m-data-sheet{position:absolute;left:12%;top:70px;width:330px;padding:24px;border:1px solid #4e92c8;border-radius:14px;background:#071827e8;box-shadow:0 25px 60px #0009}.m-data-sheet small{display:block;color:#9db0c0}.m-data-sheet>b{display:block;font-size:28px;margin:8px 0}.m-data-sheet b em{font-size:13px;color:#6ed89a}.m-data-sheet>div{height:130px;display:flex;align-items:flex-end;gap:20px}.m-data-sheet i{width:22px;height:var(--h);background:linear-gradient(#eac164,#267dde);animation:m-grow .6s var(--d) both}.m-ring{position:absolute;right:8%;top:44px;width:160px;height:160px;border:14px solid #163a59;border-top-color:var(--m-gold);border-right-color:#398fdb;border-radius:50%;display:grid;place-content:center;text-align:center}.m-ring b{font-size:38px}.m-ring small{display:block;color:#9cb0c3}.m-report{position:absolute;right:16%;bottom:18px;width:150px;height:180px;border:1px solid #c99545;border-radius:10px;color:var(--m-gold);font-size:55px;text-align:center;padding-top:20px;background:#081827;transform:rotate(6deg)}
.m-features{max-width:1540px;margin:0 auto;display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.m-features article{min-height:180px;padding:25px;border:1px solid #a8793e7a;border-radius:11px;background:#061321ca;animation:m-rise .5s var(--delay) both;transition:.25s}.m-features article:hover{transform:translateY(-6px);border-color:var(--m-gold);background:#0a1b2d}.m-features i{font-style:normal;font-size:45px;color:var(--m-gold)}.m-features h3{margin:12px 0 8px;color:#f2c86f}.m-features p{color:#aeb8c4;font-size:13px;line-height:1.7}.m-benefits{max-width:1540px;margin:28px auto 0;padding:18px 10px;border-top:1px solid #8ca0b344;display:grid;grid-template-columns:repeat(4,1fr)}.m-benefits span{font-size:17px;color:var(--m-gold);padding:0 28px;border-right:1px solid #68798b44}.m-benefits span:last-child{border:0}.m-benefits small{display:block;color:#aeb7c1;margin-top:7px;font-size:12px}
.m-about{min-height:calc(100vh - 86px);padding:55px clamp(32px,4vw,76px) 35px;background:radial-gradient(circle at 70% 40%,#114b78a3,transparent 35%),#020a14}.m-about-hero{min-height:480px;display:grid;grid-template-columns:55% 45%;align-items:center;max-width:1540px;margin:auto}.m-about-hero h1{font-size:58px;margin:22px 0 10px}.m-about-hero h2{font-size:31px;color:var(--m-gold);margin:0 0 20px}.m-about-hero p{color:#bdc7d0;font-size:17px}.m-values{display:flex;gap:22px;margin-top:42px}.m-values>span{display:grid;grid-template-columns:44px auto;grid-template-rows:auto auto;column-gap:10px;min-width:185px}.m-values>span:first-letter{color:var(--m-gold)}.m-values b{color:var(--m-gold)}.m-values small{grid-column:2;color:#a9b4c0;margin-top:5px}.m-about-chip{width:350px;height:220px;margin:auto;border:2px solid #d3a04c;border-radius:24px;background:linear-gradient(145deg,#152638,#040a11);display:grid;place-content:center;text-align:center;transform:perspective(600px) rotateX(55deg) rotateZ(-8deg);box-shadow:0 0 20px #f1bd5e,0 0 90px #167bc288;position:relative}.m-about-chip i{font-size:62px;color:var(--m-gold);font-style:normal}.m-about-chip b{font-size:27px}.m-about-chip span{position:absolute;width:90px;height:1px;background:#2c91da}.m-about-chip span:nth-of-type(1){left:-90px;top:40px}.m-about-chip span:nth-of-type(2){right:-90px;top:70px}.m-about-chip span:nth-of-type(3){right:-70px;bottom:35px}.m-about-bottom{max-width:1540px;margin:auto;display:grid;grid-template-columns:1.4fr 1fr;gap:25px}.m-about-bottom>div,.m-about-bottom>aside{border:1px solid #5d748a68;border-radius:14px;background:#071421;padding:24px 30px}.m-about-bottom h3{margin:0 0 17px}.m-about-bottom p{display:flex;gap:10px;flex-wrap:wrap;margin:0}.m-about-bottom p span{border:1px solid #8b744e6b;border-radius:7px;padding:9px 14px;color:#c6ced5}.m-about-bottom aside{display:flex;gap:18px;align-items:center;justify-content:center}
/* Docs page */
.docs-page{display:grid;grid-template-columns:230px 1fr;max-width:1180px;margin:auto;padding:45px 25px 90px}.docs-page>aside{display:flex;flex-direction:column;border-right:1px solid var(--line);padding-right:26px}.docs-page aside span{font-size:20px;font-weight:700;margin-bottom:20px}.docs-page aside button{border:0;background:none;text-align:left;padding:11px 13px;border-radius:7px;color:#6b7988;cursor:pointer}.docs-page aside button.active{background:#eaf3fd;color:#1262b5}.docs-page>article{padding-left:55px;max-width:800px}.docs-page article>small{color:#1971c8;letter-spacing:.14em}.docs-page h1{font-size:42px;margin:12px 0}.docs-page article>p{color:#68798a;font-size:17px;line-height:1.8}.docs-page h2{margin-top:35px}.docs-page pre{background:#061729;color:#d8e6f3;padding:20px;border-radius:10px;overflow:auto;line-height:1.8}

/* FinData interactive workspace */
.fd{min-height:100vh;background:#f4f7fa;color:#172b42}.fd-top{height:64px;background:linear-gradient(105deg,#03182b,#082f51);color:#fff;display:flex;align-items:center;padding:0 26px;border-bottom:1px solid #31516e;position:sticky;top:0;z-index:20}.fd-logo{font-size:20px;font-weight:750}.fd-logo b{color:#efc86e}.fd-title{margin-left:30px;padding-left:30px;border-left:1px solid #45627b;color:#dce6ee}.fd-actions{margin-left:auto;display:flex;gap:10px}.ghost-btn,.gold-btn,.blue-btn{border-radius:7px;padding:9px 16px;cursor:pointer}.ghost-btn{border:1px solid #64809a;background:#ffffff0d;color:#d8e4ec}.gold-btn{border:1px solid #e2b65b;background:linear-gradient(135deg,#d9a94e,#f0cd7a);color:#14283a;font-weight:700}.blue-btn{border:0;background:#0d65b7;color:#fff}
.fd-flow{height:82px;background:#fff;border-bottom:1px solid #dbe4ec;display:flex;align-items:center;justify-content:center;padding:0 20px;position:sticky;top:64px;z-index:18}.fd-step{display:flex;align-items:center;color:#8492a0;cursor:pointer}.fd-step:not(:last-child):after{content:"";width:64px;height:1px;background:#d5dee6;margin:0 10px}.fd-step.done:not(:last-child):after{background:#d6a84f}.step-dot{width:34px;height:34px;border:1px solid #cbd7e1;border-radius:50%;display:grid;place-items:center;margin-right:8px;background:#fff}.fd-step.active{color:#0a4f8a;font-weight:700}.fd-step.active .step-dot{background:#082f51;border-color:#d9ae57;color:#f2cb75;box-shadow:0 0 0 4px #e8c67525}.fd-step.done .step-dot{background:#eaf6f0;border-color:#63a47b;color:#2b8b51}
.fd-body{height:calc(100vh - 146px);display:grid;grid-template-columns:230px minmax(600px,1fr) 310px}.fd-left,.fd-agent{background:#fff;overflow:auto}.fd-left{border-right:1px solid #dce5ed;padding:22px 15px}.fd-agent{border-left:1px solid #dce5ed;display:flex;flex-direction:column}.asset-title{font-size:12px;color:#8a98a6;letter-spacing:1px;margin:0 8px 12px}.asset{padding:10px;border-radius:7px;margin:3px 0;font-size:14px;cursor:pointer}.asset:hover,.asset.on{background:#eaf3fb;color:#0d5ea8}.asset .count{float:right;background:#edf1f4;border-radius:8px;padding:1px 6px;font-size:11px;color:#72808d}
.fd-main{overflow:auto;padding:26px}.work-card{background:#fff;border:1px solid #dce5ed;border-radius:12px;box-shadow:0 8px 28px #173c5d0b;margin-bottom:18px}.work-head{padding:18px 22px;border-bottom:1px solid #e5ebf0;display:flex;align-items:center;justify-content:space-between}.work-head h2{font-size:20px;margin:0}.work-body{padding:22px}.task-query{font-size:19px;line-height:1.7;background:#f7fafc;border-left:4px solid #d7aa50;padding:16px 18px;margin-bottom:22px}.scheme-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.scheme-item{border:1px solid #e0e7ed;border-radius:8px;padding:13px}.scheme-item label{display:block;font-size:12px;color:#8492a0;margin-bottom:6px}.scheme-item input,.scheme-item select{width:100%;border:0;outline:0;color:#19334c;background:transparent;font-size:14px}.condition{display:flex;gap:8px;align-items:center;border-bottom:1px dashed #dce3e9;padding:10px 0}.condition span{background:#edf4fa;padding:5px 9px;border-radius:5px}.confirm-bar{display:flex;justify-content:space-between;align-items:center;background:#fff8e9;border:1px solid #efd9a7;padding:13px 16px;border-radius:8px;margin-top:18px}.source-row{display:grid;grid-template-columns:1.3fr 1fr .65fr .6fr .65fr;align-items:center;padding:13px 10px;border-bottom:1px solid #edf1f4;font-size:14px}.source-row.head{background:#f1f5f8;color:#6f7e8b;font-size:12px;border-radius:6px}.quality{color:#32875a}.source-chip{color:#075ba4;font-weight:700;cursor:pointer}.progress-line{height:7px;background:#e4ebf1;border-radius:8px;overflow:hidden;margin:8px 0}.progress-line i{display:block;width:78%;height:100%;background:linear-gradient(90deg,#0d5da7,#d7aa50)}.data-tools{display:flex;gap:8px;flex-wrap:wrap}.data-tools button{border:1px solid #d7e0e7;background:#fff;border-radius:6px;padding:7px 10px;cursor:pointer;color:#456}.data-table{width:100%;border-collapse:collapse;font-size:13px}.data-table th{background:#eef3f7;padding:10px 8px;text-align:left;color:#526578;white-space:nowrap}.data-table td{border-bottom:1px solid #e8edf1;padding:10px 8px}.data-table tr:hover td{background:#f7fbfe}.source-cell{color:#0b63ad;text-decoration:underline;cursor:pointer}.pipeline{display:flex;align-items:center;gap:5px;overflow-x:auto;padding:10px 0 22px}.pipe{white-space:nowrap;border:1px solid #ccd9e3;border-radius:18px;padding:7px 11px;background:#fff;font-size:12px}.pipe.done{border-color:#6ba481;background:#eff8f3}.pipe.warn{border-color:#e4b65a;background:#fff8e8}.arrow{color:#9cabb8}
.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.chart-card{border:1px solid #dae4ec;border-radius:9px;padding:16px;min-height:240px}.chart-card h3{margin:0 0 18px;font-size:15px}.bars{height:160px;display:flex;align-items:end;gap:12px;border-bottom:1px solid #9bacba;padding:0 10px}.bar{flex:1;background:linear-gradient(#0f6cbd,#083b68);position:relative;min-width:20px}.bar:nth-child(2n){background:linear-gradient(#e5b758,#a56c15)}.bar span{position:absolute;bottom:-24px;width:100%;font-size:11px;text-align:center}.scatter{height:170px;position:relative;background-image:linear-gradient(#e7edf2 1px,transparent 1px),linear-gradient(90deg,#e7edf2 1px,transparent 1px);background-size:25% 25%;border-left:1px solid #9bacba;border-bottom:1px solid #9bacba}.dot{position:absolute;width:12px;height:12px;border-radius:50%;background:#0b66b7;border:2px solid #fff;box-shadow:0 1px 5px #1238}.dot.gold{background:#d9a94f}.insight{margin-top:14px;padding:11px;background:#eff6fb;border-radius:7px;font-size:13px;line-height:1.6}
.report-editor{display:grid;grid-template-columns:175px 1fr;min-height:480px}.outline{border-right:1px solid #e0e7ed;padding-right:15px}.outline div{padding:9px 8px;border-radius:6px;font-size:13px}.outline div.on{background:#eaf3fb;color:#075da5}.editor{padding-left:24px}.editor h1{font-size:25px}.editable{border:1px solid transparent;padding:8px;border-radius:5px;line-height:1.8}.editable:hover{border-color:#d4dfe7}.report-figure{background:#f4f8fb;border:1px solid #dde6ed;padding:18px;margin:12px 0;text-align:center}
.audit-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.audit{border:1px solid #dce5ec;border-radius:8px;padding:14px}.audit.ok:before{content:"✓";color:#2e9a5c;font-weight:bold;margin-right:8px}.audit.warn:before{content:"!";color:#d39727;font-weight:bold;margin-right:8px}
.export-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:20px}.export{border:1px solid #d4dfe7;border-radius:8px;padding:16px;text-align:center;cursor:pointer}.export:hover{border-color:#d6a84f;background:#fffaf0}
.agent-head{padding:18px;border-bottom:1px solid #e0e7ed;font-weight:700}.agent-head b{color:#d0a247}.agent-feed{padding:16px;overflow:auto;flex:1}.agent-msg{background:#f1f6fa;border-radius:9px;padding:12px;margin-bottom:10px;font-size:13px;line-height:1.6}.agent-msg.notice{border-left:3px solid #d6a84f;background:#fff9ed}.agent-msg.user-msg{background:#e9f1fa;border-left:3px solid #0d5da7}.agent-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.agent-actions button{border:1px solid #cbd9e3;background:#fff;border-radius:13px;padding:5px 9px;color:#416079;font-size:11px;cursor:pointer}.agent-input{margin:12px;border:1px solid #ced9e2;border-radius:10px;padding:10px}.agent-input textarea{border:0;outline:0;resize:none;width:100%;height:52px}.agent-input button{float:right;border:0;background:#0b5d9f;color:#fff;width:30px;height:30px;border-radius:50%;cursor:pointer}
.drawer{position:fixed;right:0;top:0;width:400px;height:100vh;background:#fff;z-index:50;box-shadow:-18px 0 50px #102e4933;padding:25px;overflow-y:auto;animation:slide .22s}.drawer h2{color:#093b65}.drawer-row{padding:12px 0;border-bottom:1px solid #e2e8ee}.drawer-row label{display:block;font-size:12px;color:#8895a1}.drawer-close{float:right;border:0;background:#eef3f6;border-radius:50%;width:32px;height:32px;cursor:pointer}@keyframes slide{from{transform:translateX(100%)}to{transform:none}}

.m-product.research .m-product-copy h1{font-size:clamp(44px,4.4vw,68px);white-space:nowrap}.m-cap-card h3 small{display:block;margin-top:5px}
@keyframes m-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}@keyframes m-grow{from{height:0}to{height:var(--h)}}

@media(max-width:1100px){.fd-body{grid-template-columns:190px 1fr}.fd-agent{display:none}.fd-step:not(:last-child):after{width:20px}.chart-grid{grid-template-columns:1fr}.m-home{grid-template-columns:1fr;padding-top:75px}.m-home-copy{max-width:760px}.m-market{position:absolute;inset:auto -20% -5% 35%;opacity:.45}.m-cap-grid{grid-template-columns:repeat(3,1fr)}.m-group{display:none}.m-product-hero{grid-template-columns:1fr}.m-product-visual{position:absolute;opacity:.3;right:0;width:48%}.m-product-copy{position:relative;z-index:3}.m-features{grid-template-columns:repeat(3,1fr)}.m-about-hero{grid-template-columns:1fr}.m-about-chip{position:absolute;opacity:.3;right:8%;top:25%}}
@media(max-width:760px){.fd-left{display:none}.fd-body{grid-template-columns:1fr}.fd-step span{display:none}.fd-step:not(:last-child):after{width:12px}.scheme-grid,.audit-grid{grid-template-columns:1fr}.export-grid{grid-template-columns:repeat(2,1fr)}.fd-title{display:none}.m-header{height:auto;min-height:70px;padding:14px 20px;align-items:flex-start}.m-brand{font-size:20px}.m-header nav{display:grid;grid-template-columns:repeat(3,auto);gap:6px;margin-left:auto;height:auto}.m-header nav button{font-size:12px;padding:8px}.m-header nav button:after{display:none}.m-home{min-height:calc(100vh - 70px);padding:50px 20px 30px}.m-home-copy h1{font-size:53px}.m-home-copy h2{font-size:29px}.m-home-copy>p br{display:none}.m-market{display:none}.m-btn{min-width:140px;min-height:50px}.m-cap{padding:25px 18px}.m-intro h1{font-size:40px}.m-cap-grid{grid-template-columns:1fr}.m-cap-card{min-height:280px}.m-tech{flex-wrap:wrap;gap:12px}.m-tech span{border:0}.m-product{padding:45px 20px}.m-product-copy h1{font-size:43px}.m-product-visual{display:none}.m-features{grid-template-columns:1fr}.m-benefits{grid-template-columns:1fr;gap:16px}.m-benefits span{border:0}.m-about{padding:40px 20px}.m-about-hero h1{font-size:45px}.m-about-hero h2{font-size:24px}.m-values{flex-direction:column}.m-about-chip{display:none}.m-about-bottom{grid-template-columns:1fr}.m-about-bottom aside{flex-direction:column}.docs-page{grid-template-columns:1fr}.docs-page>aside{display:none}.docs-page>article{padding:0}}

/* FinData v2 workspace */
.fd2{min-height:100vh;background:#f5f7fa}.fd2-top{height:56px;background:#fff;border-bottom:1px solid #e2e7ee;display:flex;align-items:center;padding:0 22px;position:sticky;top:0;z-index:20;gap:16px}.fd2-brand{font-size:18px;font-weight:750}.fd2-brand b{color:#d7a548;margin-right:6px}.fd2-task-select{font-size:14px;color:#456;background:#f0f3f7;border-radius:6px;padding:5px 10px;cursor:pointer}.fd2-task-select small{color:#9aa;margin-left:6px}.fd2-actions{margin-left:auto}.fd2-btn{border-radius:6px;padding:8px 16px;cursor:pointer;font-size:13px;border:1px solid #d5dde5;background:#fff;color:#334}.fd2-btn.primary{background:#0b3c69;color:#fff;border-color:#0b3c69}
.fd2-body{display:grid;grid-template-columns:220px 1fr;height:calc(100vh - 56px)}
.fd-sidebar-new{background:#fff;border-right:1px solid #e2e7ee;overflow-y:auto;padding:16px 12px}.fd-side-section{margin-bottom:22px}.fd-side-label{font-size:11px;color:#8897a7;letter-spacing:.08em;margin-bottom:8px;font-weight:600}.fd-side-task{display:flex;align-items:center;padding:7px 6px;border-radius:6px;font-size:13px;color:#334;cursor:pointer}.fd-side-task:hover{background:#f2f6fa}.fd-side-item{padding:8px 6px;border-radius:6px;font-size:13px;color:#445;cursor:pointer;display:flex;justify-content:space-between}.fd-side-item:hover{background:#f2f6fa}.fd-side-item small{color:#9aa;font-size:11px}.fd-side-item.report-item{color:#0d5ea8}
.fd-report-main{overflow-y:auto;padding:28px 36px}.fd-greeting{margin-bottom:24px}.fd-greeting h1{font-size:28px;margin:0 0 4px;font-weight:650}.fd-greeting p{color:#788898;margin:0}.fd-mode-tabs{display:flex;gap:4px;background:#eef1f5;border-radius:10px;padding:4px;margin-bottom:20px;width:fit-content}.fd-mode-tab{border:0;background:none;padding:8px 18px;border-radius:8px;font-size:14px;color:#687888;cursor:pointer;transition:.2s}.fd-mode-tab.active{background:#fff;color:#0d5da7;box-shadow:0 1px 4px #12381618;font-weight:600}
.fd-input-card{background:#fff;border:1px solid #e2e7ee;border-radius:12px;padding:20px 24px 16px;box-shadow:0 4px 16px #1a335508;margin-bottom:20px}.fd-input-label{font-size:15px;font-weight:650;color:#233550;margin-bottom:10px}.fd-input-row{display:flex;gap:10px}.fd-input-row textarea{flex:1;border:1px solid #d5dde5;border-radius:10px;padding:14px;resize:none;height:72px;outline:0;font-size:14px;line-height:1.6}.fd-input-row textarea:focus{border-color:#0d5da7}.fd-submit-btn{display:flex;align-items:center;gap:6px;border:1px solid #e2b65b;background:linear-gradient(135deg,#d9a94e,#f0cd7a);color:#14283a;font-weight:700;padding:0 22px;border-radius:10px;cursor:pointer;white-space:nowrap;font-size:15px}.fd-submit-btn:hover{background:linear-gradient(135deg,#f0cd7a,#ffe9a0)}.fd-suggestions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.fd-chip{border:1px solid #d5dee6;background:#f8fafc;border-radius:16px;padding:6px 14px;font-size:12px;color:#456;cursor:pointer;transition:.15s}.fd-chip:hover{border-color:#0d5da7;color:#0d5da7;background:#eaf3fd}
.fd-result-notice{background:#eaf3fd;border-left:3px solid #0d5da7;border-radius:6px;padding:12px 16px;margin-bottom:18px;color:#1a4570;font-size:14px}
.fd-result-card{background:#fff;border:1px solid #e2e7ee;border-radius:10px;margin-bottom:16px;overflow:hidden}.fd-result-title{padding:14px 20px;font-weight:650;font-size:15px;border-bottom:1px solid #f0f2f5}.fd-result-table-wrap{overflow-x:auto}.fd-result-table{width:100%;border-collapse:collapse;font-size:13px}.fd-result-table th{background:#f7fafc;padding:10px 16px;text-align:left;color:#668;white-space:nowrap;font-weight:600}.fd-result-table td{padding:10px 16px;border-bottom:1px solid #f0f2f5}.fd-result-table tr:hover td{background:#fafcfd}.fd-result-table td.up{color:#278458}.fd-result-table td.down{color:#c94040}
.fd-disclaimer{text-align:center;font-size:12px;color:#a0aab5;margin-top:16px;padding-bottom:30px}
.fd-cap-section{margin-bottom:24px}.fd-section-head{font-size:17px;font-weight:650;margin-bottom:12px}.fd-cap-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.fd-cap-card{background:#fff;border:1px solid #e2e7ee;border-radius:10px;padding:20px;transition:.2s}.fd-cap-card:hover{box-shadow:0 4px 16px #1a335512}.fd-cap-icon{font-size:32px;margin-bottom:8px}.fd-cap-card h3{font-size:15px;margin:0 0 4px}.fd-cap-card p{font-size:12px;color:#788898;margin:0 0 12px;line-height:1.5}.fd-cap-tags{display:flex;gap:6px;flex-wrap:wrap}.fd-cap-tags span{background:#eaf3fd;color:#0d5da7;border-radius:4px;padding:3px 8px;font-size:11px}
.fd-recent{margin-bottom:20px}
.fd-chat-box{background:#fff;border:1px solid #e2e7ee;border-radius:12px;display:flex;flex-direction:column;height:calc(100vh - 260px);min-height:350px;overflow:hidden}.fd-chat-intro{text-align:center;padding:24px;border-bottom:1px solid #eef1f4}.fd-chat-intro b{font-size:18px}.fd-chat-intro p{color:#788898;margin:6px 0 0}.fd-chat-chips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:14px}.fd-chat-msgs{flex:1;overflow-y:auto;padding:16px 24px}.fd-chat-msg{max-width:82%;padding:12px 16px;border-radius:12px;margin-bottom:10px;font-size:14px;line-height:1.6}.fd-chat-msg.user{margin-left:auto;background:#e9f1fa}.fd-chat-msg.ai{background:#f7fafc;border-left:3px solid #d7aa50}.fd-chat-msg.loading{color:#8899a6}.fd-chat-input{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #eef1f4}.fd-chat-input textarea{flex:1;border:1px solid #d5dde5;border-radius:8px;padding:10px;resize:none;height:44px;outline:0;font-size:14px}.fd-chat-input textarea:focus{border-color:#0d5da7}.fd-chat-input button{width:44px;height:44px;border:0;background:#0b3c69;color:#fff;border-radius:8px;cursor:pointer;font-size:18px}
.fd-wf-start{text-align:center;padding:40px 20px}.fd-wf-start h2{font-size:24px;margin:0 0 8px}.fd-wf-start p{color:#788898;margin:0 0 20px}
.fd-wf-flow{height:66px;background:#fff;border:1px solid #e2e7ee;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:0;margin-bottom:18px}.fd-wf-step{display:flex;align-items:center;color:#8492a0;cursor:pointer;font-size:13px}.fd-wf-step:not(:last-child):after{content:"";width:44px;height:1px;background:#d5dee6;margin:0 8px}.fd-wf-step.done:not(:last-child):after{background:#d6a84f}.fd-wf-dot{width:28px;height:28px;border:1px solid #cbd7e1;border-radius:50%;display:grid;place-items:center;margin-right:6px;background:#fff;font-size:11px}.fd-wf-step.active{color:#0a4f8a;font-weight:700}.fd-wf-step.active .fd-wf-dot{background:#082f51;border-color:#d9ae57;color:#f2cb75;box-shadow:0 0 0 3px #e8c67525}.fd-wf-step.done .fd-wf-dot{background:#eaf6f0;border-color:#63a47b;color:#2b8b51}
.fd-wf-body{display:grid;grid-template-columns:1fr 280px;gap:0;height:calc(100vh - 220px)}.fd-wf-main{overflow:auto;padding:0 12px 0 0}.fd-wf-agent{background:#fff;border-left:1px solid #e2e7ee;display:flex;flex-direction:column;overflow:hidden}.fd-wf-agent-head{padding:14px 16px;border-bottom:1px solid #eef1f4;font-weight:700;font-size:14px}.fd-wf-agent-head b{color:#d0a247}.fd-wf-agent-feed{flex:1;overflow:auto;padding:12px}.fd-wf-msg{background:#f1f6fa;border-radius:8px;padding:10px 12px;margin-bottom:8px;font-size:12px;line-height:1.5}.fd-wf-msg.notice{border-left:3px solid #d6a84f;background:#fff9ed}.fd-wf-msg.user{background:#e9f1fa;border-left:3px solid #0d5da7}.fd-wf-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.fd-wf-actions button{border:1px solid #cbd9e3;background:#fff;border-radius:12px;padding:4px 8px;color:#416079;font-size:11px;cursor:pointer}.fd-wf-agent-input{padding:8px 12px;border-top:1px solid #eef1f4;display:flex;gap:6px}.fd-wf-agent-input textarea{flex:1;border:1px solid #d5dde5;border-radius:7px;padding:8px;resize:none;height:38px;outline:0;font-size:12px}.fd-wf-agent-input button{width:32px;height:32px;border:0;background:#0b5d9f;color:#fff;border-radius:50%;cursor:pointer;flex-shrink:0}.fd-progress{height:5px;background:#e4ebf1;border-radius:4px;overflow:hidden;margin-top:6px}.fd-progress i{display:block;height:100%;background:linear-gradient(90deg,#0d5da7,#d7aa50)}
/* Agent mode layout */
.fd-agent-layout{display:grid;grid-template-columns:220px 1fr 340px;height:calc(100vh - 56px)}
.fd-agent-left{background:#fff;border-right:1px solid #e2e7ee;overflow-y:auto;padding:16px 12px}
.fd-agent-results{overflow-y:auto;padding:20px 24px;background:#f5f7fa}
.fd-agent-results .fd-results-empty{text-align:center;padding:60px 20px;color:#8899a6}
.fd-agent-results .fd-results-empty-icon{font-size:48px;margin-bottom:12px}
.fd-agent-chat{background:#fff;border-left:1px solid #e2e7ee;display:flex;flex-direction:column;overflow:hidden}
.fd-agent-chat-header{padding:12px 16px;border-bottom:1px solid #eef1f4;font-weight:650;font-size:13px;color:#556}
.fd-agent-chat-msgs{flex:1;overflow-y:auto;padding:12px 16px}
.fd-agent-chat-input{display:flex;gap:6px;padding:10px 12px;border-top:1px solid #eef1f4}
.fd-agent-chat-input textarea{flex:1;border:1px solid #d5dde5;border-radius:7px;padding:8px;resize:none;height:38px;outline:0;font-size:12px}
.fd-agent-chat-input textarea:focus{border-color:#0d5da7}
.fd-agent-chat-input button{width:36px;height:36px;border:0;background:#0b3c69;color:#fff;border-radius:7px;cursor:pointer;font-size:16px;flex-shrink:0}
/* Agent thought bubbles */
.agent-thought{background:#f7f9fb;border-left:3px solid #bcc4cc;color:#5a6672;font-style:italic;padding:8px 12px;border-radius:6px;margin:5px 0;font-size:12px;line-height:1.5}
.agent-thought-icon{margin-right:4px}
/* Agent action bubbles */
.agent-action{background:#eaf2fb;border-left:3px solid #0d5da7;padding:8px 12px;border-radius:6px;margin:5px 0;font-size:12px}
.agent-action.completed{border-left-color:#2e9a5c;background:#eff8f3}
.agent-action .spinner{display:inline-block;width:10px;height:10px;border:2px solid #0d5da7;border-top-color:transparent;border-radius:50%;animation:agent-spin .8s linear infinite;vertical-align:middle;margin-left:6px}
.agent-action-detail{color:#667;font-size:11px;margin-top:4px}
/* Task cards in chat */
.task-card{border:1px solid #dce4ec;border-radius:10px;padding:12px 14px;margin:8px 0;background:#fafcfd}
.task-card-header{font-weight:650;font-size:12px;color:#456;margin-bottom:8px}
.task-item{display:flex;align-items:center;gap:8px;padding:5px 0;font-size:12px;color:#445}
.task-status{width:16px;height:16px;border-radius:50%;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;font-size:8px}
.task-status.completed{background:#2e9a5c;color:#fff}
.task-status.in_progress{background:#d7aa50;color:#fff;animation:agent-pulse 1.5s infinite}
.task-status.pending{border:1.5px solid #ccd6df;background:#fff}
.task-title{color:#334}
/* Chat messages */
.agent-chat-msg{background:#f1f6fa;border-radius:8px;padding:10px 12px;margin:5px 0;font-size:12px;line-height:1.5}
.agent-chat-result{background:#eff8f3;border-left:3px solid #2e9a5c;border-radius:6px;padding:8px 12px;margin:5px 0;font-size:12px}
.agent-chat-done{text-align:center;padding:10px;color:#2e9a5c;font-weight:650;font-size:13px;margin:8px 0}
.agent-chat-error{background:#fff3f3;border-left:3px solid #d75b5b;border-radius:6px;padding:8px 12px;margin:5px 0;font-size:12px;color:#a52b2b}
/* Phase completion card */
.phase-card{border:1px solid #b8d8b8;background:#f6fdf8;border-radius:10px;padding:12px 14px;margin:8px 0;display:flex;gap:10px;align-items:flex-start}
.phase-card-icon{font-size:20px;flex-shrink:0}
.phase-card-body b{font-size:13px;color:#1a5c30}
.phase-card-body p{font-size:11px;color:#667;margin:4px 0}
.phase-dl-btns{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.phase-dl-btns .fd2-btn{font-size:11px;padding:4px 10px}
/* SSE indicator */
.fd-sse-indicator{padding:8px 0;font-size:11px;color:#889;display:flex;align-items:center;gap:6px}
.sse-dot{width:7px;height:7px;border-radius:50%;background:#bcc;flex-shrink:0}
.sse-dot.running{background:#d7aa50;animation:agent-pulse 1.5s infinite}
.sse-dot.done{background:#2e9a5c}
.sse-dot.error{background:#d75b5b}
/* Download mini button */
.fd-dl-mini{border:1px solid #0d5da7;background:#fff;color:#0d5da7;border-radius:4px;padding:1px 7px;font-size:10px;cursor:pointer}
.fd-dl-mini:hover{background:#0d5da7;color:#fff}
/* Result body */
.fd-result-body{padding:16px 20px;line-height:1.7;font-size:14px}
.fd-result-body ul{padding-left:20px}
.fd-result-body li{margin:4px 0}
@keyframes agent-spin{to{transform:rotate(360deg)}}
@keyframes agent-pulse{0%,100%{box-shadow:0 0 0 0 #d7aa5044}50%{box-shadow:0 0 0 5px #d7aa5000}}

/* FinResearch upload analysis + FinData agent refinements */
html,body,#app{font-family:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif}textarea{font:inherit}
.upload.loading{pointer-events:none;filter:saturate(.5);animation:agent-pulse 1.2s infinite}.research-upload-hint{margin:10px 6px 0;color:#8290a0;font-size:12px}
.research-analyzing{min-height:calc(100vh - 76px);display:grid;place-content:center;text-align:center;background:#f4f8fb}.research-loader{width:56px;height:56px;border:5px solid #dce8f1;border-top-color:#d7a548;border-radius:50%;margin:auto;animation:agent-spin .8s linear infinite}
.research-doc{min-height:calc(100vh - 76px);background:#f2f6f9;padding:22px}.research-doc-head{display:flex;align-items:center;gap:20px;background:#fff;border:1px solid #dce5ed;border-radius:12px;padding:15px 20px;margin-bottom:14px}.research-doc-head>button,.research-error button{border:1px solid #cbd7e1;background:#fff;border-radius:7px;padding:9px 14px;cursor:pointer}.research-doc-head h1{font-size:18px;margin:0 0 3px}.research-doc-head p{font-size:12px;color:#7a8996;margin:0}.research-status{margin-left:auto;border-radius:14px;padding:6px 12px;font-size:12px;background:#fff4da;color:#9b6500}.research-status.completed{background:#eaf7ef;color:#24784a}.research-status.failed{background:#fff0f0;color:#ad3434}
.research-progress-card,.research-error{max-width:760px;margin:70px auto;background:#fff;border:1px solid #dce5ed;border-radius:14px;padding:30px;box-shadow:0 20px 50px #173c5d12}.research-progress-copy{display:flex;justify-content:space-between}.research-progress{height:9px;border-radius:10px;background:#e7edf2;margin:15px 0;overflow:hidden}.research-progress i{display:block;height:100%;background:linear-gradient(90deg,#0d5da7,#d7a548);transition:width .5s}.research-progress-card p{color:#788898}
.research-doc-grid{display:grid;grid-template-columns:52% 48%;height:calc(100vh - 170px);background:#fff;border:1px solid #dce5ed;border-radius:12px;overflow:hidden}.research-doc-grid>iframe{width:100%;height:100%;border:0;border-right:1px solid #dce5ed}.research-doc-grid>aside{overflow-y:auto;padding:20px 24px}.research-ai-note{border-left:3px solid #2e9a5c;background:#eff8f3;padding:11px 14px;border-radius:6px;font-weight:700}.research-ai-note.fallback{border-color:#d7a548;background:#fff8e9}.research-ai-note small{display:block;font-weight:400;margin-top:4px}.research-analysis{line-height:1.8;padding:20px 4px;color:#30445a}.research-citations{border-top:1px solid #e4eaf0;padding-top:14px}.research-citations button{display:block;width:100%;border:0;border-bottom:1px solid #edf1f4;background:#fff;padding:10px;text-align:left;color:#65788a;cursor:pointer}.research-citations button:hover{background:#f5f9fc}.research-citations b{color:#0d5da7;margin-right:9px}.research-doc-chat{margin-top:20px;border-top:1px solid #e4eaf0;padding-top:10px}.research-doc-chat #researchMessages{max-height:280px;overflow:auto}
.fd2{min-height:calc(100vh - 76px)}.fd2-top{top:76px;z-index:8}.fd2-body,.fd-agent-layout{height:calc(100vh - 132px)}.fd2-actions{display:flex;gap:8px;align-items:center}.demo-ribbon{border:1px solid #d7a548;background:#fff8e9;color:#8a5d0b;border-radius:13px;padding:5px 10px;font-size:11px;font-weight:700}
.fd-side-task,.fd-side-item{width:100%;border:0;background:#fff;text-align:left}.asset-title{font-size:11px;color:#8996a4;letter-spacing:.08em;margin:5px 6px 8px}.asset-title .revision{float:right;color:#d09d3f}.asset{width:100%;border:0;background:#fff;color:#34475a;text-align:left;display:flex;align-items:center;gap:7px;padding:8px 7px;border-radius:7px;font-size:12px;cursor:pointer;margin:2px 0}.asset:hover,.asset.selected{background:#edf5fb;color:#075da5}.asset.on{background:#eaf3fb;color:#075da5}.asset.muted{color:#9aa4ad;cursor:default}.asset .count{margin-left:auto;color:#8795a1}.asset.task .task-status{width:12px;height:12px}.asset.task .task-status.completed:after{content:"✓";font-size:8px;color:#fff}.task-status.failed{background:#d75b5b}.task-status.skipped{background:#aeb7bf}.task-reason{font-size:11px;color:#788898;background:#f2f6f9;padding:7px;border-radius:5px;margin-bottom:5px}.task-card-header small{float:right;color:#d09d3f}.agent-iteration{text-align:center;color:#8b98a5;font-size:10px;margin:8px 0;letter-spacing:.04em}
.fd-result-title{display:flex;justify-content:space-between;align-items:center}.data-mode{display:inline-block;border-radius:12px;padding:4px 8px;font-size:10px;font-weight:700}.data-mode.live{background:#e9f8ef;color:#23784a}.data-mode.demo{background:#fff2dc;color:#9b6500}.fd-data-provenance{padding:9px 20px;background:#f8fafb;color:#718191;font-size:11px}.fd-data-provenance small{display:block;margin-top:3px;color:#9b6500}
.fd-asset-panel{display:none;position:fixed;inset:0;background:#07172655;z-index:50}.fd-asset-panel.open{display:block}.fd-asset-drawer{margin-left:auto;width:min(420px,90vw);height:100%;background:#fff;padding:28px;box-shadow:-20px 0 55px #061b2f38}.fd-asset-drawer>button{float:right;border:0;background:#edf2f6;border-radius:50%;width:34px;height:34px;cursor:pointer}.fd-asset-drawer article{border:1px solid #e0e7ed;border-radius:8px;padding:13px;margin:10px 0}.fd-asset-drawer article p{color:#778898;font-size:12px}
@media(max-width:900px){.research-doc-grid{grid-template-columns:1fr;height:auto}.research-doc-grid>iframe{height:65vh}.fd-agent-layout{grid-template-columns:180px 1fr}.fd-agent-chat{display:none}}

/* Safe Markdown typography for PDF analysis and document chat */
.markdown-body{font-size:15px;line-height:1.82;color:#30445a;overflow-wrap:anywhere;white-space:normal}
.markdown-body>*:first-child{margin-top:0}.markdown-body>*:last-child{margin-bottom:0}
.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{color:#17324d;line-height:1.35;font-weight:750;letter-spacing:-.01em;scroll-margin-top:100px}
.markdown-body h2{font-size:24px;margin:30px 0 14px;padding-bottom:9px;border-bottom:1px solid #dfe8ef}
.markdown-body h3{font-size:21px;margin:27px 0 12px}.markdown-body h4{font-size:18px;margin:24px 0 10px}.markdown-body h5,.markdown-body h6{font-size:16px;margin:20px 0 8px}
.markdown-body p{margin:0 0 16px}.markdown-body strong{color:#172f48;font-weight:750}.markdown-body em{color:#50677d}.markdown-body del{color:#8c99a5}
.markdown-body ul,.markdown-body ol{margin:8px 0 19px;padding-left:28px}.markdown-body li{margin:7px 0;padding-left:3px}.markdown-body li::marker{color:#b7822e;font-weight:700}.markdown-body li.md-depth-1{margin-left:22px}.markdown-body li.md-depth-2{margin-left:44px}.markdown-body li.md-depth-3{margin-left:66px}
.markdown-body code{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:.88em;background:#edf3f7;color:#174c78;border:1px solid #dce7ee;border-radius:5px;padding:2px 6px;white-space:break-spaces}
.markdown-body pre{max-width:100%;overflow:auto;margin:16px 0 20px;padding:16px 18px;border:1px solid #243b50;border-radius:9px;background:#101c27;box-shadow:inset 3px 0 #d7a548}
.markdown-body pre code{display:block;min-width:max-content;padding:0;border:0;background:transparent;color:#dce8f1;line-height:1.65;white-space:pre}
.markdown-body blockquote{margin:17px 0;padding:11px 16px;border-left:3px solid #d7a548;border-radius:0 7px 7px 0;background:#fff8e9;color:#5a6875}
.markdown-body hr{height:1px;margin:26px 0;border:0;background:linear-gradient(90deg,#d7a54855,#dce6ed 40%,transparent)}
.markdown-body a{color:#0b66b7;text-decoration-color:#8fbeda;text-underline-offset:3px}.markdown-body a:hover{color:#084d8b}
.md-table-wrap{max-width:100%;overflow-x:auto;margin:17px 0 22px;border:1px solid #dbe5ec;border-radius:9px}.markdown-body table{width:100%;min-width:520px;border-collapse:collapse;background:#fff}.markdown-body th{background:#edf4f8;color:#26445f;font-weight:700}.markdown-body th,.markdown-body td{padding:10px 13px;border-right:1px solid #e3ebf0;border-bottom:1px solid #e3ebf0;white-space:normal}.markdown-body tr:last-child td{border-bottom:0}.markdown-body th:last-child,.markdown-body td:last-child{border-right:0}.markdown-body tbody tr:hover{background:#f8fbfd}
.research-analysis.markdown-body{padding:24px 6px 26px}.research-doc-chat .bubble.ai.markdown-body{max-width:96%;padding:14px 17px}.research-doc-chat .markdown-body h2,.research-doc-chat .markdown-body h3,.research-doc-chat .markdown-body h4{font-size:16px;margin:15px 0 7px}.research-doc-chat .markdown-body p{margin-bottom:10px}

.data-mode.local{background:#e7f5ef;color:#217852}
