@import url("./components.css");
:root{color-scheme:light;--bg:#f4f6f5;--surface:#fff;--surface-2:#f8faf9;--ink:#1d2c28;--muted:#65756f;--line:#e1e7e3;--accent:#17664b;--accent-text:#fff;--accent-soft:#eaf3ed;--gain:#14734a;--loss:#b33d46;--warn:#875715;--warn-bg:#fff6e5;--blue:#385e8c;--blue-bg:#edf3fa;--shadow:0 16px 50px #1c352a10;--radius:14px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6}
:root[data-market=CN]{--accent:#a63240;--accent-soft:#faecee;--gain:#b33d46;--loss:#14734a}
:root[data-theme=dark]{color-scheme:dark;--bg:#111917;--surface:#19231f;--surface-2:#1e2a25;--ink:#e4ece7;--muted:#a0b2a8;--line:#34443b;--accent:#8fd3b0;--accent-text:#10271c;--accent-soft:#243e30;--gain:#8fd3b0;--loss:#f1a0a6;--warn:#ebc58a;--warn-bg:#382e20;--blue:#b1ceef;--blue-bg:#253443;--shadow:0 16px 50px #0003}
:root[data-theme=dark][data-market=CN]{--accent:#efabb3;--accent-text:#32191e;--accent-soft:#402a30;--gain:#f1a0a6;--loss:#8fd3b0}
@media(prefers-color-scheme:dark){:root[data-theme=system]{color-scheme:dark;--bg:#111917;--surface:#19231f;--surface-2:#1e2a25;--ink:#e4ece7;--muted:#a0b2a8;--line:#34443b;--accent:#8fd3b0;--accent-text:#10271c;--accent-soft:#243e30;--gain:#8fd3b0;--loss:#f1a0a6;--warn:#ebc58a;--warn-bg:#382e20;--blue:#b1ceef;--blue-bg:#253443;--shadow:0 16px 50px #0003}:root[data-theme=system][data-market=CN]{--accent:#efabb3;--accent-text:#32191e;--accent-soft:#402a30;--gain:#f1a0a6;--loss:#8fd3b0}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:9px 14px;min-height:40px;line-height:1.4}button:hover:not(:disabled){border-color:var(--accent);background:var(--accent-soft)}button:disabled{opacity:.6;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}button.primary:hover:not(:disabled){background:var(--accent);filter:brightness(1.1)}button.danger{color:var(--warn);border-color:var(--warn)}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button.text-button{background:none;border:none;padding:6px 3px;color:var(--accent);min-height:32px}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.7px;font-weight:640;line-height:1.3}h2{font-size:18px;letter-spacing:-.2px;font-weight:620}h3{font-size:15px;font-weight:620}.muted,.subtle{color:var(--muted)}.small{font-size:12px}.number{font-variant-numeric:tabular-nums}.gain{color:var(--gain)}.loss{color:var(--loss)}.warn{color:var(--warn)}.nowrap{white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-60px;left:12px;background:var(--surface);padding:12px;z-index:100}.skip-link:focus{top:10px}.workspace{min-height:100vh;display:grid;grid-template-columns:214px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:var(--surface);border-right:1px solid var(--line);padding:32px 18px 24px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);padding:0 10px;letter-spacing:-.5px;font-size:21px;font-weight:650}.brand:hover{text-decoration:none}.brand svg{width:31px;height:31px;fill:var(--accent);flex-shrink:0}.brand small{display:block;font-weight:400;font-size:10px;letter-spacing:1.2px;color:var(--muted);margin-top:2px}.nav-caption{font-size:10px;letter-spacing:1.5px;color:var(--muted);margin:42px 12px 12px}.navigation{display:flex;flex-direction:column;gap:6px}.navigation a{display:flex;align-items:center;gap:13px;padding:11px 13px;color:var(--muted);font-size:14px;border-radius:8px;white-space:nowrap}.navigation a:hover{text-decoration:none;background:var(--surface-2);color:var(--ink)}.navigation a[aria-current=page]{color:var(--accent);background:var(--accent-soft);font-weight:600}.nav-icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar-bottom{margin-top:auto;display:flex;align-items:flex-start;gap:9px;padding:20px 10px 0;font-size:12px;color:var(--muted)}.sidebar-bottom small{display:block;font-size:10px;margin-top:3px}.local-indicator{width:6px;height:6px;border:1px solid var(--muted);border-radius:50%;margin-top:7px}.content-shell{min-width:0;max-width:1700px;width:100%;margin:auto;min-height:100vh;display:flex;flex-direction:column}.topbar{padding:21px 36px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.topbar-tools{display:flex;align-items:center;gap:12px}.connection{white-space:nowrap;font-size:11px;color:var(--muted);display:inline-flex;align-items:center;gap:6px}.connection:before{content:'';width:5px;height:5px;background:var(--muted);border-radius:50%}.connection[data-status=online]:before{background:var(--accent)}.connection[data-status=offline]{color:var(--warn)}.icon-button{padding:3px;width:33px;min-height:33px;font-size:22px;background:transparent}.theme-select{font-size:11px;max-width:90px;padding:7px 8px}.segmented{display:inline-flex;gap:3px;padding:3px;background:var(--surface);border:1px solid var(--line);border-radius:9px}.segmented button{background:transparent;border-color:transparent;padding:6px 16px;min-height:32px;border-radius:6px;font-size:13px}.segmented button.active{background:var(--accent-soft);color:var(--accent);border-color:transparent;font-weight:600}.segmented small{font-size:10px;opacity:.65;margin-left:4px}.context-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 36px 7px;flex-wrap:wrap}.account-context{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.account-context label{font-size:11px;color:var(--muted)}.account-context select{width:auto;max-width:250px;border:0;background:transparent;padding:5px 24px 5px 0;font-weight:550}.context-bar .text-button{font-size:12px}.kind-switch{background:transparent;border:0}.kind-switch button{font-size:12px;min-height:30px;padding:5px 9px}.scope-note{padding:0 36px 21px;color:var(--muted);font-size:11px}.scope-note strong{font-weight:500;color:var(--ink)}main{padding:10px 36px 42px;flex:1;outline:none;min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;color:var(--accent);margin-bottom:8px;font-weight:600}.page-heading p{color:var(--muted);font-size:13px;margin-top:10px;max-width:650px}.heading-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.app-footer{margin:0 36px;border-top:1px solid var(--line);padding:17px 0 24px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:10px;color:var(--muted)}.loading-block{min-height:250px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;color:var(--muted)}.spinner{height:22px;width:22px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1600px){main,.topbar,.context-bar{padding-left:48px;padding-right:48px}.scope-note{padding-left:48px;padding-right:48px}.app-footer{margin-left:48px;margin-right:48px}}
@media(max-width:1100px){.workspace{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.brand{font-size:18px}.brand small{font-size:9px}.topbar{padding:18px 24px}.context-bar{padding-left:24px;padding-right:24px}.scope-note{padding-left:24px;padding-right:24px}main{padding-left:24px;padding-right:24px}.app-footer{margin-left:24px;margin-right:24px}}
@media(max-width:760px){.workspace{display:block}.sidebar{position:static;height:auto;padding:18px 16px 0;border-right:none;border-bottom:1px solid var(--line)}.brand{padding:0;font-size:21px}.brand small{font-size:10px}.nav-caption,.sidebar-bottom{display:none}.navigation{flex-direction:row;overflow-x:auto;gap:3px;padding:15px 0 9px;scrollbar-width:thin}.navigation a{padding:8px 10px;font-size:12px;gap:6px}.nav-icon{width:16px;height:16px}.content-shell{min-height:calc(100vh - 118px)}.topbar{padding:14px 18px}.topbar-tools{gap:8px}.connection{font-size:10px}.theme-select{width:70px;padding:6px 2px}.context-bar{padding:13px 18px 8px;align-items:flex-start;gap:7px}.account-context{gap:8px;width:100%}.account-context label{font-size:10px}.account-context select{max-width:calc(100% - 145px);flex:1}.kind-switch{padding:0}.scope-note{padding:0 18px 16px}main{padding:8px 18px 24px}.page-heading{margin-bottom:20px;flex-wrap:wrap;gap:12px}.heading-actions{justify-content:flex-start}h1{font-size:24px}.app-footer{margin:0 18px}.topbar .market-switch button{padding:6px 11px}.topbar .market-switch small{display:none}}
@media(max-width:360px){.topbar{padding-left:12px;padding-right:12px;gap:7px}.connection{max-width:65px}.theme-select{width:65px}.topbar-tools{gap:5px}.icon-button{width:30px}.context-bar{padding-left:12px;padding-right:12px}.scope-note{padding-left:12px;padding-right:12px}main{padding-left:12px;padding-right:12px}.navigation a{padding:8px}.app-footer{margin-left:12px;margin-right:12px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at top left,var(--accent-soft),transparent 65%),var(--bg)}.login-card{flex:none;width:min(100%,430px);padding:42px;background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.login-intro{color:var(--muted);margin:12px 0 28px}.login-form{display:grid;gap:18px}.login-form button{width:100%}.login-card>.form-hint{margin-top:26px}.user-menu{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.focus-list{display:grid;gap:14px}.focus-item{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.focus-item-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.focus-item p{margin-top:8px;color:var(--muted)}.focus-price{margin-top:12px;display:flex;gap:24px;flex-wrap:wrap}.focus-price span{display:block;font-size:11px;color:var(--muted)}.daily-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr);gap:22px}.funnel-list{display:grid;gap:12px;margin:18px 0}.funnel-stage{display:flex;align-items:flex-start;gap:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}.funnel-stage strong{display:block}.funnel-count{font-size:20px;font-variant-numeric:tabular-nums;min-width:65px;color:var(--accent)}.method-link{display:flex;align-items:center;justify-content:space-between;gap:12px}.coverage-details>summary{padding:14px 0;color:var(--muted)}.navigation a[data-page=settings]{margin-top:18px;border-top:1px solid var(--line);border-radius:0;padding-top:18px}@media(max-width:1000px){.daily-layout{grid-template-columns:1fr}}@media(max-width:760px){.navigation a[data-page=settings]{margin-top:0;border:0;padding-top:8px}.user-menu{width:100%;justify-content:flex-end}.login-card{padding:28px 22px}.focus-item-header{flex-wrap:wrap}.focus-price{gap:16px}}

.focus-asof{font-size:12px;color:var(--muted);margin:0 0 14px}.focus-summary{font-size:14px;line-height:1.7}.screening-guide{border-color:var(--accent);background:var(--accent-soft)}.screening-guide>summary{color:var(--accent);font-weight:600;font-size:14px}.screening-guide[open]{background:var(--surface)}
