:root{color-scheme:light;--bg:#f3f5f8;--panel:#fff;--panel2:#f6f8fb;--text:#172638;--muted:#65768b;--line:#e0e6ee;--accent:#315cdb;--accent-bg:#edf2ff;--red:#d64150;--green:#12866e;--shadow:0 14px 50px #14254120;--radius:10px;font:14px/1.55 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#10151e;--panel:#181f2b;--panel2:#202938;--text:#e3eaf4;--muted:#95a4bb;--line:#303b4d;--accent:#91afff;--accent-bg:#253856;--red:#ff7885;--green:#52d5ad;--shadow:0 14px 50px #0006}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}[hidden]{display:none!important}button,input,select{font:inherit;color:inherit}button,input,select,summary{border-radius:6px}button{cursor:pointer;border:1px solid var(--line);background:var(--panel);padding:8px 12px;min-height:36px}button:hover{border-color:var(--accent);background:var(--accent-bg)}button:disabled{opacity:.45;cursor:default}button.active,button[aria-pressed=true]{color:var(--accent);background:var(--accent-bg);border-color:var(--accent)}input,select{background:var(--panel);border:1px solid var(--line);padding:8px 10px;min-height:36px;max-width:100%}input[type=checkbox]{min-height:16px;accent-color:var(--accent)}input[type=range]{accent-color:var(--accent);padding:0}a{color:var(--accent);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:21px}h2{font-size:17px}h3{font-size:15px}small,.tiny{font-size:12px}.muted{color:var(--muted)}.up,.positive{color:var(--red)}.down,.negative{color:var(--green)}.num{font-variant-numeric:tabular-nums}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0)}.panel,.side-panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}.badge{font-size:12px;padding:3px 8px;border-radius:4px;background:var(--accent-bg);color:var(--accent)}.data-state{font-size:12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:6px 14px}.notice{padding:10px 12px;border-radius:6px;background:var(--accent-bg);color:var(--text);font-size:13px;margin:10px 0}.notice.error{border-left:3px solid var(--red)}.toolbar-row,.date-controls,.segmented{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.segmented{gap:4px}.segmented button{padding:6px 14px}.module-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.module-heading{display:flex;align-items:center;gap:10px}.module-heading small{color:var(--muted)}.module-body{padding:20px;max-width:1800px;margin:0 auto}.module-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.module-controls input[type=date]{width:152px}.module-meta{margin-top:8px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.source-details{font-size:12px;color:var(--muted);margin-top:18px}.source-details summary{cursor:pointer;padding:8px 0}.source-details>div{padding:10px 0;display:flex;flex-wrap:wrap;gap:10px}.source-details code{word-break:break-all}dialog{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:var(--shadow);max-width:min(800px,calc(100vw - 28px));max-height:90dvh;overflow:auto}dialog::backdrop{background:#101a2a70}dialog h2{padding-right:45px;margin-bottom:16px}dialog h3{margin:20px 0 8px}dialog p{margin:10px 0;color:var(--muted)}.dialog-close{float:right}.empty{padding:32px!important;text-align:center;color:var(--muted)}.shell-sidebar{position:fixed;inset:0 auto 0 0;width:172px;background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:24px 12px;z-index:10}.shell-brand{display:flex;align-items:center;gap:9px;color:var(--text);font-size:19px;font-weight:650;padding:0 4px}.shell-brand small{display:none}.shell-mark{display:grid;place-items:center;color:var(--accent);background:var(--accent-bg);width:29px;height:29px;border-radius:7px}.shell-section-label{font-size:11px;color:var(--muted);margin:30px 12px 8px}.shell-sidebar nav{display:grid;gap:6px}.shell-nav-link{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:7px;color:var(--muted);white-space:nowrap}.shell-nav-link[aria-current=page]{color:var(--accent);background:var(--accent-bg);font-weight:600}.shell-nav-symbol{font-size:19px;width:20px}.shell-sidebar-note{margin-top:auto;font-size:11px;color:var(--muted);padding:20px 10px}.shell-content{margin-left:172px;min-width:0}.shell-topbar{height:54px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 20px;border-bottom:1px solid var(--line);background:var(--panel)}.shell-topbar>span{font-weight:600}.shell-monitor{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.shell-monitor[data-live=true]{color:var(--green)}#theme-toggle{white-space:nowrap}#module-error{margin:20px;padding:15px;background:var(--panel);border-left:3px solid var(--red)}.shell-module-loading{padding:28px;color:var(--muted)}.sentiment-module,.capital-radar-module{min-width:0}#global-alerts{position:relative;z-index:20}
@media(max-width:1199px) and (min-width:768px){.shell-sidebar{width:150px;padding-inline:8px}.shell-content{margin-left:150px}.module-body{padding:16px}.shell-topbar{padding-inline:16px}.shell-monitor{gap:8px;font-size:11px}}
@media(max-width:767px){button,input,select{min-height:44px}button{padding:9px 12px}.shell-sidebar{position:sticky;top:0;inset:auto;flex-direction:row;width:100%;padding:8px 12px;align-items:center;justify-content:space-between;border-right:0;border-bottom:1px solid var(--line)}.shell-brand{font-size:16px;padding:0}.shell-section-label,.shell-sidebar-note,.shell-nav-symbol{display:none}.shell-sidebar nav{display:flex;gap:4px}.shell-nav-link{padding:10px 9px;font-size:13px}.shell-content{margin-left:0}.shell-topbar{min-height:50px;height:auto;padding:6px 12px}.shell-topbar>span{display:none}.shell-monitor{width:100%;justify-content:space-between;gap:6px;font-size:11px}.shell-monitor button{padding:6px 9px;font-size:12px;min-height:40px}#monitor-status{max-width:46%;line-height:1.4}.module-body{padding:12px}.module-header{gap:10px;margin-bottom:12px}.module-heading{width:100%}.module-controls{width:100%;gap:6px}.module-controls input[type=date]{width:145px}.module-controls button{padding-inline:10px}.module-controls .segmented{margin-right:auto}.data-state{gap:3px 8px;font-size:11px}.source-details{font-size:11px}dialog{padding:16px;max-width:calc(100vw - 20px)}h1{font-size:19px}}

.module-heading #refresh{margin-left:10px}
@media(max-width:767px){.module-heading #refresh{margin-left:auto}.shell-monitor button,.shell-nav-link,.shell-brand,.source-details summary{min-height:44px}.shell-nav-link{display:flex;align-items:center}.shell-brand{display:flex;align-items:center}}
