:root{--paper:#fff;--ink:#111;--quiet:#606060;--muted:#666;--line:#e5e5e5;--soft:#f7f7f5;--blue:#1769d2;--green:#166534;--amber:#a65b00;--red:#a32d2d;--sans:Arial,'Malgun Gothic','Apple SD Gothic Neo',sans-serif;--serif:Georgia,'Times New Roman',serif;--mono:ui-monospace,SFMono-Regular,Consolas,'Courier New',monospace}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:15.5px/1.75 var(--sans);-webkit-font-smoothing:antialiased;overflow-x:clip}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border-radius:0}
img{display:block;max-width:100%;height:auto}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.38;font-weight:500;word-break:keep-all}
a:hover{color:#555}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
[hidden]{display:none!important}
.container{max-width:1200px;width:calc(100% - 96px);margin-inline:auto}
.skip-link{position:fixed;top:-100px;left:20px;z-index:50;background:var(--ink);color:#fff;padding:10px 18px}
.skip-link:focus{top:10px}
.eyebrow{font-size:12px;letter-spacing:.13em;line-height:1.8;color:var(--quiet)}

/* Unified Havilah Header & Footer */
.site-header{border-bottom:1px solid var(--line);font-family:'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;line-height:1.4}
.site-header .header-inner{max-width:1200px;width:calc(100% - 96px);margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;height:108px}
.site-header .brand{display:inline-flex;align-items:center;flex-shrink:0;width:108px}
.site-header .brand img{width:108px;height:auto}
.site-header .desktop-nav{display:flex;align-items:center;gap:22px;margin-left:auto;font-size:14px;line-height:1.4}
.site-header .desktop-nav a{display:inline-flex;align-items:center;padding:8px 0;font-size:14px;line-height:1.4;font-weight:400;color:var(--ink);white-space:nowrap;border-bottom:0;position:relative}
.site-header .desktop-nav a:hover{color:#565656}
.site-header .desktop-nav a[aria-current="page"]{font-weight:600;color:var(--ink)}
.site-header .desktop-nav a[aria-current="page"]:after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--ink)}
.site-header .header-controls{display:flex;align-items:center;gap:18px;flex-shrink:0;font-size:14px;line-height:1.4}
.site-header .header-controls>.text-link{display:inline-flex;align-items:center;padding:8px 0;white-space:nowrap;font-size:14px;line-height:1.4;font-weight:400;color:#444;border:0}
.site-header .header-controls>.text-link:hover{color:var(--ink)}
.site-header .language-switch{display:inline-flex;align-items:center;gap:8px;padding-left:16px;border-left:1px solid var(--line);font-size:14px;line-height:1.4;white-space:nowrap}
.site-header .language-switch a{display:inline-flex;align-items:center;padding:8px 2px;font-size:14px;line-height:1.4;font-weight:400;color:#666}
.site-header .language-switch a[aria-current="true"]{color:var(--ink);font-weight:600}
.site-header .language-switch span{display:inline-flex;align-items:center;padding:8px 0;color:#ccc}
.site-header .menu-toggle{display:none;background:none;border:0;width:44px;height:44px;padding:10px}
.site-header .menu-toggle span{display:block;width:24px;height:1px;background:var(--ink);margin:6px 0}
.site-header .mobile-nav{padding:12px 24px 28px;border-top:1px solid var(--line)}
.site-header .mobile-nav a{display:block;padding:10px 0;font-size:16px}
.no-script-nav{display:flex;flex-wrap:wrap;gap:12px 20px;padding-block:14px;border-bottom:1px solid var(--line);font-size:14px}
.no-script-note{font-size:13px;padding-block:14px;color:#555;border-bottom:1px solid var(--line)}

footer{background:var(--soft);border-top:1px solid var(--line);margin-top:64px}
.footer-main{display:grid;grid-template-columns:2fr 1fr 1.4fr;gap:80px;padding:52px 0 44px}
.footer-brand{max-width:300px}
.footer-brand img{width:94px}
.footer-brand p{font-size:14px;color:var(--quiet);margin-top:20px;line-height:1.75}
.footer-main h2{font-size:12px;letter-spacing:.1em;color:var(--quiet);margin:6px 0 20px;line-height:1.8}
.footer-main>div:not(:first-child) a{font-size:13px;display:block;width:fit-content;margin:7px 0}
.footer-main>div:not(:first-child) a[aria-current="page"]{font-weight:600;border-bottom:1px solid var(--ink)}
.business-disclosure{padding-block:20px;border-top:1px solid var(--line);font-size:13px;color:#555;overflow-wrap:anywhere}
.business-disclosure p+p{margin-top:6px}
.business-disclosure a{border-bottom:1px solid #999}
.footer-bottom{border-top:1px solid #ddd;padding:22px 0 26px;display:flex;justify-content:space-between;gap:24px;align-items:center;color:var(--quiet);font-size:12px}
.footer-bottom p{font-size:13px;line-height:1.8;color:#444;max-width:760px}

/* Screener Layout & Components */
.screener-shell{padding:36px 0 20px;min-width:0}
.scr-intro{padding-bottom:20px;border-bottom:1px solid var(--ink)}
.scr-intro h1{font-size:36px;letter-spacing:-.045em;margin:8px 0 10px;text-wrap:balance}
html[lang=en] .scr-intro h1{font-family:var(--serif);font-size:42px;letter-spacing:-.035em}
.scr-intro .lead{font-size:15.5px;line-height:1.75;color:#444;max-width:920px}

.scr-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:20px 0 24px}
.scr-tab-btn{background:#fff;border:1px solid var(--line);border-bottom:3px solid transparent;padding:11px 12px;color:#444;text-align:left;display:flex;flex-direction:column;gap:3px;min-height:60px;min-width:0;transition:border-color .15s,background .15s}
.scr-tab-btn:hover{color:var(--ink);border-color:#bbb;background:#fafaf8}
.scr-tab-btn[aria-selected="true"]{color:var(--ink);border-color:var(--ink);border-bottom-color:var(--blue);background:#f6f9fd}
.scr-tab-title{font-size:13.5px;font-weight:700;line-height:1.3;display:flex;align-items:center;justify-content:space-between;gap:4px;color:var(--ink)}
.scr-tab-desc{font-size:11.5px;line-height:1.35;color:var(--quiet);font-weight:400;word-break:keep-all}

.scr-panel{min-width:0}
.scr-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
.scr-kpi-card{border:1px solid var(--line);padding:16px 18px;background:#fff;display:flex;flex-direction:column;gap:4px;min-width:0}
.scr-kpi-label{font-size:12px;color:var(--quiet);letter-spacing:.03em}
.scr-kpi-card strong{font-size:24px;font-weight:650;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.scr-kpi-card small{font-size:12px;color:#555;font-variant-numeric:tabular-nums}

.scr-preset-strip{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.scr-pill{border:1px solid #d0d0d0;background:#fff;padding:8px 14px;font-size:13px;line-height:1.3;color:#333;min-height:38px;transition:border-color .15s,background .15s}
.scr-pill:hover{border-color:#555;background:#fafaf8}
.scr-pill.is-active,.scr-pill[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink);font-weight:600}
.scr-preset-note{font-size:13px;color:#444;padding:10px 14px;background:var(--soft);border-left:2px solid var(--ink);margin-bottom:18px;line-height:1.6}
.scr-preset-note:empty{display:none}

.scr-filter-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:16px 18px;border:1px solid var(--line);background:#fafaf8;margin-bottom:18px}
.scr-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.scr-search-field{flex:1 1 230px;min-width:190px}
.scr-field-span2{grid-column:span 2}
.scr-field span{font-size:11.5px;font-weight:600;color:#444;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scr-field input,.scr-field select{width:100%;max-width:100%;min-width:0;height:38px;padding:6px 10px;border:1px solid #c6c6c6;background:#fff;font-size:13.5px;overflow:hidden;text-overflow:ellipsis}
.scr-check{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 6px;font-size:13px;color:#222;white-space:nowrap;cursor:pointer}
.scr-check input{width:16px;height:16px;accent-color:var(--ink)}
.scr-btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 15px;background:var(--ink);color:#fff;border:1px solid var(--ink);font-size:13px;font-weight:600;white-space:nowrap}
.scr-btn-primary:hover{background:#333;color:#fff}
.scr-btn-outline{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 14px;background:#fff;color:var(--ink);border:1px solid #bdbdbd;font-size:13px;white-space:nowrap}
.scr-btn-outline:hover:not(:disabled){border-color:var(--ink);background:#f7f7f5;color:var(--ink)}
.scr-btn-outline:disabled{opacity:.42;cursor:not-allowed}

/* Detail Card */
.scr-detail-card{border:1px solid #111;border-top:4px solid var(--blue);background:#fff;padding:24px;margin-bottom:22px;box-shadow:0 6px 24px rgba(0,0,0,.05);min-width:0}
.scr-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid var(--line)}
.scr-detail-head h2{font-size:24px;letter-spacing:-.03em;margin:6px 0 4px}
.scr-detail-sub{font-size:13px;color:var(--quiet);font-variant-numeric:tabular-nums}
.scr-detail-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.scr-close-btn{width:38px;height:38px;border:1px solid #ccc;background:#fff;font-size:22px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.scr-close-btn:hover{border-color:var(--ink);background:var(--soft)}
.scr-detail-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:16px 0;border-bottom:1px solid var(--line)}
.scr-mini-stat{background:#fafaf8;padding:10px 12px;border:1px solid var(--line)}
.scr-mini-stat span{display:block;font-size:11px;color:var(--quiet)}
.scr-mini-stat strong{display:block;font-size:15px;font-weight:650;margin-top:3px;font-variant-numeric:tabular-nums}
.scr-charts-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.scr-chart-box{border:1px solid var(--line);padding:16px;background:#fff;min-width:0}
.scr-chart-box h3{font-size:14.5px;font-weight:600;margin-bottom:6px;color:var(--ink)}
.scr-svg-wrap{width:100%;overflow:hidden}
.scr-svg-wrap svg{display:block;width:100%;height:auto}
.scr-fscore-box{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.scr-fscore-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.scr-fscore-head h3{font-size:15px;font-weight:600}
.scr-lesson-link{font-size:13px;color:var(--blue);border-bottom:1px solid var(--blue)}
.scr-fscore-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.scr-fitem{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);font-size:12.5px;background:#fafaf8}
.scr-fitem.is-pass{border-left:3px solid var(--green);background:#f5faf6}
.scr-fitem.is-fail{border-left:3px solid #bbb;color:#666}
.scr-fitem.is-na{border-left:3px dashed #ddd;color:#888}

/* Table */
.scr-table-status{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:10px;font-size:13px;color:#444}
.scr-hint{font-size:12.5px;color:var(--quiet)}
.table-scroll{width:100%;overflow-x:auto;border:1px solid var(--line);background:#fff}
.scr-table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:960px}
.scr-table thead{background:#f7f7f5;border-bottom:1px solid #111}
.scr-table th{padding:10px 10px;text-align:left;font-weight:600;font-size:12px;color:#333;white-space:nowrap}
.scr-table th.num,.scr-table td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.sort-btn{background:none;border:0;padding:2px 0;font:inherit;font-weight:600;color:inherit;display:inline-flex;align-items:center;gap:4px}
.sort-btn:hover{color:var(--blue)}
.sort-btn.is-sorted{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.scr-table tbody tr{border-bottom:1px solid var(--line);cursor:pointer;transition:background .12s}
.scr-table tbody tr:hover{background:#f4f7fb}
.scr-table tbody tr.is-selected{background:#eef4fc}
.scr-table td{padding:10px 10px;vertical-align:middle}
.scr-ticker{font-weight:700;font-size:14px;color:var(--ink);display:inline-block;margin-right:6px}
.scr-badge{display:inline-block;padding:1px 6px;font-size:10.5px;font-weight:600;letter-spacing:.04em;border:1px solid #d4d4d4;background:#f7f7f5;color:#444}
.scr-company-name{display:block;font-size:12px;color:#555;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scr-fbadge{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:2px 7px;font-size:12px;font-weight:700;border:1px solid #d4d4d4;background:#fafaf8}
.scr-fbadge.is-high{border-color:#93c5a1;background:#eef8f0;color:var(--green)}
.scr-fbadge.is-mid{border-color:#d8d8d8;background:#fafafa;color:#333}
.scr-fbadge.is-low{border-color:#e4b4b4;background:#fdf4f4;color:var(--red)}
.scr-pos{color:var(--green);font-weight:600}
.scr-neg{color:var(--red)}
.scr-mpills{display:flex;gap:4px;flex-wrap:wrap}
.scr-mpill{font-size:11px;font-weight:700;padding:2px 6px;border:1px solid #d0d0d0;background:#fff;color:#333}
.scr-mpill.m-b{border-color:#9fc5e8;background:#f0f6fc;color:#124b8a}
.scr-mpill.m-o{border-color:#9cd1a8;background:#eff8f1;color:#14552b}
.scr-mpill.m-g{border-color:#d9c29c;background:#fcf7ee;color:#6e4200}
.scr-mpill.m-r{border-color:#b8b8b8;background:#f3f3f1;color:#111}
.scr-loading-cell{text-align:center;padding:36px 16px;color:var(--quiet)}

.scr-pager{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:18px}
.scr-pager span{font-size:13.5px;color:#444;font-variant-numeric:tabular-nums}

/* Macro Dashboard */
.scr-macro-controls{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px}
.scr-macro-source{font-size:12.5px;color:var(--quiet)}
.scr-macro-charts{display:flex;flex-direction:column;gap:20px}
.scr-chart-head{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.scr-chart-head p{font-size:12.5px;color:var(--quiet);margin-top:2px}
.scr-hover-readout{font-size:12.5px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;min-height:20px;background:#f7f7f5;padding:4px 10px;border:1px solid var(--line)}
.scr-hover-readout:empty{display:none}
.scr-macro-svg svg{max-height:300px}

/* Pine Script Library */
.scr-pine-top p{font-size:14.5px;color:#333;margin-bottom:14px;max-width:860px}
.scr-pine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:16px}
.scr-pine-card{border:1px solid var(--line);border-top:3px solid var(--ink);background:#fff;padding:20px;display:flex;flex-direction:column;gap:12px}
.scr-pine-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.scr-pine-card h3{font-size:17px;font-weight:600;line-height:1.45}
.scr-pine-summary{font-size:13.5px;line-height:1.65;color:#444}
.scr-pine-rules{font-size:12.5px;line-height:1.6;color:#333;background:#fafaf8;padding:9px 12px;border-left:2px solid #999}
.scr-tv-recipe{font-size:12px;line-height:1.55;color:#143e73;background:#f3f7fc;padding:8px 11px;border-left:2px solid var(--blue)}
.scr-finviz-note{font-size:11.5px;line-height:1.5;color:#555}
.scr-pine-assets{font-size:12px;color:var(--green);font-weight:600}
.scr-pine-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.scr-btn-accent{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 14px;background:var(--blue);color:#fff;border:1px solid var(--blue);font-size:13px;font-weight:600;white-space:nowrap}
.scr-btn-accent:hover{background:#1255ad;border-color:#1255ad;color:#fff}
.scr-pine-quicklinks{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:#555;padding-top:2px}
.scr-pine-quicklinks a{border-bottom:1px solid #bbb;color:#333}
.scr-pine-quicklinks a:hover{color:var(--blue);border-color:var(--blue)}
.scr-copy-btn.is-copied{background:var(--green);border-color:var(--green);color:#fff}
.scr-code-details{border:1px solid var(--line);background:#fafaf8}
.scr-code-details summary{padding:9px 12px;font-size:12.5px;font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
.scr-code-details summary::-webkit-details-marker{display:none}
.scr-code-details summary:after{content:'+'}
.scr-code-details[open] summary:after{content:'−'}
.scr-code-details pre{margin:0;padding:12px;border-top:1px solid var(--line);background:#fff;font-family:var(--mono);font-size:12px;line-height:1.5;overflow:auto;max-height:290px;color:#111}

/* SVG internal classes (no inline style attributes needed for strict CSP) */
.svg-grid{stroke:#ebebea;stroke-width:1}
.svg-axis-zero{stroke:#666;stroke-width:1.2;stroke-dasharray:4 4}
.svg-axis-stress{stroke:#a32d2d;stroke-width:1;stroke-dasharray:3 3}
.svg-label{font-family:Arial,'Malgun Gothic',sans-serif;font-size:11px;fill:#666}
.svg-val-label{font-family:Arial,'Malgun Gothic',sans-serif;font-size:10.5px;fill:#222;font-weight:600}
.svg-bar-rev{fill:#111111}
.svg-bar-op{fill:#1769d2}
.svg-bar-fcf{fill:#166534}
.svg-bar-neg{fill:#a32d2d}
.svg-line-main{fill:none;stroke:#111111;stroke-width:2}
.svg-line-blue{fill:none;stroke:#1769d2;stroke-width:2}
.svg-line-amber{fill:none;stroke:#a65b00;stroke-width:1.8}
.svg-line-green{fill:none;stroke:#166534;stroke-width:2}
.svg-line-red{fill:none;stroke:#a32d2d;stroke-width:2}
.svg-area-blue{fill:rgba(23,105,210,0.09)}
.svg-area-red{fill:rgba(163,45,45,0.12)}
.svg-dot{fill:#111111}
.svg-dot-blue{fill:#1769d2}
.svg-crosshair{stroke:#111;stroke-width:1;stroke-dasharray:3 3}
.svg-hit{fill:transparent;cursor:crosshair}

.scr-disclaimer{margin-top:34px;padding:18px 20px;border:1px solid var(--line);background:#fafaf8;font-size:13px;line-height:1.75;color:#444}
.scr-disclaimer a{color:var(--ink);border-bottom:1px solid #999}
.scr-muted{color:var(--quiet);font-size:14px}

/* Portal V3 Additions: Tabs badge, Peer Compare, DCF, 13F/Form4, Value Chain, Calendar, Workbench */
.scr-tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;margin-left:6px;padding:0 5px;background:var(--blue);color:#fff;font-size:11px;font-weight:700;border-radius:10px}
.scr-col-narrow{width:40px;text-align:center}
.scr-cmp-chk{width:16px;height:16px;accent-color:var(--blue);cursor:pointer}
.scr-star-btn{background:none;border:0;font-size:16px;line-height:1;padding:2px 6px;color:#888}
.scr-star-btn:hover{color:#c47f00}
.scr-star-btn.is-saved{color:#d97706}
.scr-ticker-link{background:none;border:0;padding:0;font-weight:700;font-size:14px;color:var(--ink);border-bottom:1px solid transparent;margin-right:6px;display:inline-block}
.scr-ticker-link:hover{color:var(--blue);border-bottom-color:var(--blue)}
.scr-ticker-plain{font-weight:700;font-size:13.5px;color:#333;margin-right:6px;display:inline-block}
.is-active-outline{border-color:var(--blue);color:var(--blue);background:#f0f6fc;font-weight:600}

.scr-peer-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px;border:1px solid var(--blue);background:#f3f7fc;margin-bottom:16px}
.scr-peer-info{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:13.5px}
.scr-peer-chips{display:flex;flex-wrap:wrap;gap:6px}
.scr-peer-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;background:#fff;border:1px solid #9fc5e8;font-size:12.5px;font-weight:700}
.scr-chip-x{background:none;border:0;padding:0 2px;font-size:15px;line-height:1;color:#555}
.scr-peer-actions{display:flex;gap:8px;flex-wrap:wrap}
.scr-peer-drawer{border:1px solid #111;border-top:4px solid var(--ink);background:#fff;padding:20px;margin-bottom:22px;min-width:0}
.scr-peer-label{font-weight:600;color:#333;white-space:nowrap}
.scr-peer-chart-box{margin-top:16px}
.scr-peer-chart-box .scr-svg-wrap{overflow-x:auto}
.scr-peer-chart-box .scr-svg-wrap svg{min-width:560px}
.svg-peer-c0{fill:#111111}.svg-peer-c1{fill:#1769d2}.svg-peer-c2{fill:#166534}.svg-peer-c3{fill:#a65b00}

.scr-dcf-box{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.scr-dcf-links{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.scr-dcf-note{font-size:12.5px;color:#555;margin-bottom:12px;line-height:1.55}
.scr-dcf-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin-bottom:14px;padding:14px;background:#fafaf8;border:1px solid var(--line)}
.scr-sens-wrap{margin-top:12px;overflow-x:auto}
.scr-sens-table{width:100%;max-width:520px;border-collapse:collapse;font-size:12.5px;border:1px solid var(--line);font-variant-numeric:tabular-nums}
.scr-sens-table th,.scr-sens-table td{padding:7px 10px;border:1px solid var(--line);text-align:right}
.scr-sens-table th:first-child,.scr-sens-table td:first-child{text-align:left;background:#f7f7f5;font-weight:600}
.scr-sens-table th{background:#f7f7f5;font-weight:600}
.scr-sens-table td.is-base-cell{background:#eef4fc;font-weight:700;color:var(--blue)}

.scr-subtabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.scr-act-pill{display:inline-block;padding:2px 7px;font-size:11px;font-weight:700;border:1px solid #d4d4d4;background:#fafaf8;color:#333;white-space:nowrap}
.scr-act-pill.is-new{border-color:#93c5a1;background:#eef8f0;color:var(--green)}
.scr-act-pill.is-add{border-color:#9fc5e8;background:#f0f6fc;color:#124b8a}
.scr-act-pill.is-trim{border-color:#e5c384;background:#fdf6e9;color:#8c4e00}
.scr-act-pill.is-exit{border-color:#e4b4b4;background:#fdf4f4;color:var(--red)}
.scr-holders-cell{font-size:12px;color:#444;min-width:220px}
.scr-exits-box{margin-top:18px;padding:14px 16px;border:1px solid var(--line);background:#fafaf8}
.scr-exits-box h3{font-size:14px;font-weight:600;margin-bottom:10px}
.scr-exit-chip{display:inline-block;padding:4px 9px;border:1px solid #e4b4b4;background:#fff;font-size:12px;color:var(--red)}
.scr-sub-note{margin-top:12px;font-size:12px;color:#666;line-height:1.55}

.scr-clusters-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}
.scr-cluster-card{border:1px solid var(--line);border-left:4px solid var(--green);background:#fff;padding:14px 16px;display:flex;flex-direction:column;gap:6px}

.scr-vc-intro p{font-size:14px;color:#444;margin-bottom:16px;max-width:880px}
.scr-vc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:20px}
.scr-vc-node{text-align:left;border:1px solid var(--line);border-top:3px solid #999;background:#fff;padding:13px 14px;display:flex;flex-direction:column;gap:5px;transition:border-color .15s,background .15s}
.scr-vc-node:hover{border-color:var(--ink);background:#fafaf8}
.scr-vc-node.is-active{border-color:var(--blue);border-top-color:var(--blue);background:#f3f7fc}
.scr-vc-step{font-size:12.5px;font-weight:700;color:var(--ink);line-height:1.35}
.scr-vc-stat{font-size:15px;font-weight:700;color:var(--blue);font-variant-numeric:tabular-nums}
.scr-vc-sub{font-size:11.5px;color:#555;font-variant-numeric:tabular-nums}
.scr-vc-detail{border:1px solid #111;border-top:4px solid var(--blue);background:#fff;padding:20px;min-width:0}
.scr-vc-table-wrap{margin-top:14px}
.scr-vc-role{font-size:12.5px;color:#333;min-width:200px}

.scr-cal-wrap{display:grid;grid-template-columns:1fr;gap:22px;margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}
.scr-cal-col{border:1px solid var(--line);background:#fff;padding:18px;min-width:0}
.scr-cal-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:360px;overflow-y:auto;padding-right:4px}
.scr-cal-item{border:1px solid var(--line);padding:11px 13px;background:#fafaf8;display:flex;flex-direction:column;gap:4px}
.scr-cal-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px}
.scr-cal-item h4{margin:2px 0;font-size:14px;font-weight:600}
.scr-cal-note{font-size:12px;color:#555}
.scr-cal-dday{display:inline-block;padding:1px 7px;background:var(--ink);color:#fff;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.scr-cal-dday.is-soon{background:var(--red)}
.scr-cal-filters{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.scr-inline-input{height:36px;padding:4px 10px;border:1px solid #c6c6c6;font-size:13px;min-width:160px}
.scr-cal-table{min-width:680px}
.scr-cal-table td:nth-child(2),.scr-cal-table td:nth-child(3),.scr-cal-table td:last-child{white-space:nowrap}

.scr-wb-toolbar{margin:14px 0 18px}
.scr-inline-note{width:100%;min-width:150px;padding:4px 7px;border:1px solid #d0d0d0;font-size:12.5px}
.scr-inline-sel,.scr-inline-r{padding:3px 6px;border:1px solid #c6c6c6;font-size:12.5px;background:#fff}
.scr-inline-r{width:76px;text-align:right}
.scr-btn-xs{min-height:28px;padding:3px 9px;font-size:12px}

/* Responsive Breakpoints */
@media(max-width:1160px){
  .site-header .header-inner{gap:18px;width:calc(100% - 48px)}
  .site-header .desktop-nav{gap:16px}
  .site-header .header-controls{gap:12px}
  .site-header .language-switch{padding-left:12px}
}
@media(max-width:1050px){
  .scr-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1000px){
  .container{width:calc(100% - 64px)}
  .scr-kpi-grid,.scr-vc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .scr-detail-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
  .scr-charts-row,.scr-pine-grid,.scr-clusters-grid{grid-template-columns:1fr}
  .scr-cal-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .scr-fscore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-main{gap:40px}
}
@media(max-width:900px){
  .site-header .desktop-nav{display:none}
  .site-header .menu-toggle{display:block}
  .site-header .header-inner{height:92px;width:calc(100% - 64px)}
  .site-header .brand,.site-header .brand img{width:88px}
  .site-header .header-controls{margin-left:auto}
}
@media(max-width:650px){
  .container,.site-header .header-inner{width:calc(100% - 36px)}
  .site-header .header-inner{height:80px;gap:14px}
  .site-header .brand,.site-header .brand img{width:76px}
  .site-header .header-controls>.text-link{display:none}
  .site-header .language-switch{padding-left:0;border-left:0;font-size:13px;gap:6px}
  .site-header .language-switch a,.site-header .language-switch span{font-size:13px}
  .scr-intro h1,html[lang=en] .scr-intro h1{font-size:26px}
  .scr-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .scr-tab-btn{padding:9px 10px;min-height:52px}
  .scr-tab-title{font-size:12.5px}
  .scr-tab-desc{font-size:10.5px}
  .scr-field-span2{grid-column:span 1}
  .scr-kpi-grid,.scr-detail-metrics,.scr-fscore-grid,.scr-vc-grid,.scr-cal-list{grid-template-columns:1fr}
  .scr-detail-card,.scr-cal-col,.scr-vc-detail,.scr-peer-drawer{padding:14px}
  .footer-main{grid-template-columns:1fr 1fr;gap:32px 24px;padding:36px 0}
  .footer-brand{grid-column:1/-1;max-width:none}
  .footer-bottom{flex-wrap:wrap}
}
/* 2026-11-23 home tools: calculator links under the hub intro */
.scr-tools-links{margin:12px 0 0;font-size:14px;line-height:1.7;color:#555;max-width:920px}
.scr-tools-links a{border-bottom:1px solid #999}
.scr-tools-links a:hover{border-color:var(--ink)}

/* Market State tab (release 09) */
.scr-pine-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.scr-pine-toolbar .scr-preset-strip{margin-bottom:0}
.scr-form-msg{font-size:13px;color:var(--red);font-weight:600;margin-top:6px;grid-column:1/-1}
.scr-tabs{grid-template-columns:repeat(7,minmax(0,1fr))}
.ms-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}
.ms-card{border:1px solid var(--line);padding:16px 18px;background:#fff;display:flex;flex-direction:column;gap:6px;min-width:0}
.ms-card-label{font-size:12px;color:var(--quiet);letter-spacing:.03em}
.ms-card-big{font-size:28px;font-weight:650;letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums}
.ms-card-sub{font-size:14px;color:#333;line-height:1.5}
.ms-card-note{font-size:12px;color:var(--quiet);line-height:1.5;margin-top:auto}
.ms-regime-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:4px 0}
.ms-regime-cell{border:1px solid var(--line);padding:6px 8px;display:flex;flex-direction:column;gap:1px;color:#777;background:#fafaf8}
.ms-regime-cell b{font-size:13px;font-weight:600}
.ms-regime-cell small{font-size:11px}
.ms-regime-cell.is-on{border-color:var(--ink);background:#f6f9fd;color:var(--ink)}
.ms-summary{font-size:15px;line-height:1.65;color:#222;border-left:3px solid var(--blue);padding:4px 0 4px 14px;margin:0 0 22px}
.ms-pillars{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.ms-pillar{border:1px solid var(--line);background:#fff;padding:14px 16px;min-width:0}
.ms-pillar-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.ms-pillar-head h3{font-size:16px;font-weight:650;margin:0;color:var(--ink)}
.ms-move{font-size:12.5px;color:var(--quiet);margin-left:auto}
.ms-move.is-tight{color:var(--amber)}
.ms-move.is-loose{color:var(--blue)}
.ms-chip{display:inline-block;font-size:12px;line-height:1.4;padding:2px 8px;border:1px solid #ccc;color:#333;background:#fafaf8;white-space:nowrap}
.ms-chip.is-tight{border-color:#e3c08f;color:var(--amber);background:#fdf7ee}
.ms-chip.is-loose{border-color:#b9d1f0;color:var(--blue);background:#f3f8fe}
.ms-table-wrap{border:0}
.ms-table{width:100%;border-collapse:collapse;font-size:13px;min-width:600px;table-layout:fixed}
.ms-table th:nth-child(1){width:31%}.ms-table th:nth-child(2){width:12%}.ms-table th:nth-child(3){width:13%}
.ms-table th:nth-child(4){width:12%}.ms-table th:nth-child(5){width:16%}.ms-table th:nth-child(6){width:16%}
.ms-table th{font-size:11.5px;font-weight:600;color:#555;text-align:left;padding:6px 8px;border-bottom:1px solid #111;white-space:nowrap}
.ms-table td{padding:8px;border-bottom:1px solid var(--line);vertical-align:middle}
.ms-table th.num,.ms-table td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ms-name span{display:block;color:var(--ink)}
.ms-name small,.ms-state small,.ms-pos small{display:block;font-size:11px;color:var(--quiet);margin-top:2px}
.ms-val{font-weight:600}
.ms-dir{white-space:nowrap;font-size:12.5px}
.ms-dir.is-up{color:#333}.ms-dir.is-down{color:#333}.ms-dir.is-flat{color:var(--quiet)}
.ms-bar{display:block;width:84px;height:6px;background:#eee;position:relative}
.ms-bar-fill{display:block;height:6px;background:#9aa8b8}
.ms-how{margin:22px 0 8px;border:1px solid var(--line);background:#fafaf8;padding:12px 16px}
.ms-how summary{cursor:pointer;font-weight:600;font-size:14px}
.ms-how ul{margin:10px 0 0 18px;display:flex;flex-direction:column;gap:6px;font-size:13.5px;line-height:1.6;color:#333}
.ms-foot{font-size:12.5px;color:var(--quiet);margin-top:10px}
@media(max-width:1160px){.scr-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){.ms-top{grid-template-columns:1fr}}
@media(max-width:650px){.scr-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-card-big{font-size:24px}.ms-move{margin-left:0;width:100%}
.ms-pillar{padding:12px}
.ms-table{min-width:0;table-layout:auto}.ms-table thead{display:none}
.ms-table tbody,.ms-table tr{display:block}
.ms-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:10px 0;border-bottom:1px solid var(--line)}
.ms-table td{display:block;border:0;padding:0;width:auto}
.ms-table td.num{text-align:left}
.ms-table td.ms-val,.ms-table td.ms-dir,.ms-table td.ms-state{text-align:right;justify-self:end}
.ms-table td[data-label]::before{content:attr(data-label);display:block;font-size:10.5px;color:var(--quiet);font-weight:400}
.ms-table td.ms-name::before,.ms-table td.ms-val::before,.ms-table td.ms-state::before{display:none}}

/* U.S. 11-Sector Institutional Flow & Rotation Panel (release 15) */
.scr-sec-section{margin-bottom:30px;padding-bottom:28px;border-bottom:1px solid var(--line)}
.scr-sec-section .scr-fscore-head h2,.scr-vc-section .scr-fscore-head h2{font-size:21px;font-weight:600;letter-spacing:-.025em}
.scr-vc-section{padding-top:4px}
.scr-quad-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}
.scr-quad-card{text-align:left;border:1px solid var(--line);border-top:3px solid #999;background:#fff;padding:12px 14px;display:flex;flex-direction:column;gap:4px;min-width:0;transition:border-color .15s,background .15s}
.scr-quad-card:hover{border-color:var(--ink);background:#fafaf8}
.scr-quad-card.is-leading{border-top-color:var(--green)}.scr-quad-card.is-improving{border-top-color:var(--blue)}
.scr-quad-card.is-weakening{border-top-color:var(--amber)}.scr-quad-card.is-lagging{border-top-color:var(--red)}
.scr-quad-card.is-active{border-color:var(--ink);background:#f3f7fc}
.scr-quad-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.scr-quad-card strong{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink)}
.scr-quad-desc{font-size:11.5px;color:var(--quiet)}
.scr-quad-sectors{font-size:12px;color:#333;line-height:1.45;word-break:keep-all}
.scr-quad-pill{display:inline-block;padding:2px 7px;font-size:11px;font-weight:700;border:1px solid #d4d4d4;background:#fafaf8;white-space:nowrap}
.scr-quad-pill.is-leading{border-color:#93c5a1;background:#eef8f0;color:var(--green)}
.scr-quad-pill.is-improving{border-color:#9fc5e8;background:#f0f6fc;color:var(--blue)}
.scr-quad-pill.is-weakening{border-color:#e5c384;background:#fdf6e9;color:var(--amber)}
.scr-quad-pill.is-lagging{border-color:#e4b4b4;background:#fdf4f4;color:var(--red)}
.scr-sec-layout{display:grid;grid-template-columns:1.18fr 1fr;gap:18px;margin-bottom:18px;align-items:start}
.scr-chart-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
.scr-trail-strip{margin-bottom:0;gap:5px}
.scr-trail-strip .scr-pill{min-height:30px;padding:4px 10px;font-size:12px}
.scr-sec-svg svg{max-height:480px}
.scr-sec-drawer{border:1px solid #111;border-top:4px solid var(--blue);background:#fff;padding:18px;min-width:0}
.scr-sec-drawer .scr-detail-metrics{grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 0}
.scr-sec-lists{display:flex;flex-direction:column;gap:14px;margin-top:14px}
.scr-sec-subbox h3{font-size:13.5px;font-weight:700;margin-bottom:8px;color:var(--ink)}
.scr-sec-items{display:flex;flex-direction:column;gap:6px}
.scr-sec-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border:1px solid var(--line);background:#fafaf8;font-size:12.5px}
.scr-sec-item-l{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.scr-sec-item-r{font-size:12px;color:#444;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.svg-qbg-leading{fill:rgba(22,101,52,.045)}
.svg-qbg-improving{fill:rgba(23,105,210,.045)}
.svg-qbg-weakening{fill:rgba(166,91,0,.045)}
.svg-qbg-lagging{fill:rgba(163,45,45,.04)}
.svg-sec-frame{fill:none;stroke:#d4d4d4;stroke-width:1}
.svg-quad-tag{font-family:Arial,'Malgun Gothic',sans-serif;font-size:11px;font-weight:700;fill:#555}
.svg-sec-trail-group{pointer-events:none}
.svg-sec-trail{fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.34;transition:opacity .15s,stroke-width .15s}
.svg-sec-trail-wp{fill:#fff;stroke-width:1.4;opacity:.45;transition:opacity .15s}
.svg-sec-arrow{opacity:.42;transition:opacity .15s}
.svg-sec-wp-lbl{font-family:Arial,'Malgun Gothic',sans-serif;font-size:9.5px;fill:#444;opacity:0;paint-order:stroke fill;stroke:rgba(255,255,255,.92);stroke-width:2.5px;stroke-linejoin:round;transition:opacity .15s}
.svg-sec-trail-group.is-leading .svg-sec-trail,.svg-sec-trail-group.is-leading .svg-sec-trail-wp{stroke:#166534}
.svg-sec-trail-group.is-leading .svg-sec-arrow{fill:#166534}
.svg-sec-trail-group.is-improving .svg-sec-trail,.svg-sec-trail-group.is-improving .svg-sec-trail-wp{stroke:#1769d2}
.svg-sec-trail-group.is-improving .svg-sec-arrow{fill:#1769d2}
.svg-sec-trail-group.is-weakening .svg-sec-trail,.svg-sec-trail-group.is-weakening .svg-sec-trail-wp{stroke:#a65b00}
.svg-sec-trail-group.is-weakening .svg-sec-arrow{fill:#a65b00}
.svg-sec-trail-group.is-lagging .svg-sec-trail,.svg-sec-trail-group.is-lagging .svg-sec-trail-wp{stroke:#a32d2d}
.svg-sec-trail-group.is-lagging .svg-sec-arrow{fill:#a32d2d}
.svg-sec-trail-group.is-trail-active .svg-sec-trail{opacity:.95;stroke-width:2.5}
.svg-sec-trail-group.is-trail-active .svg-sec-trail-wp,.svg-sec-trail-group.is-trail-active .svg-sec-arrow{opacity:1}
.svg-sec-trail-group.is-trail-active .svg-sec-wp-lbl{opacity:.95}
.svg-sec-trail-group.is-dimmed{opacity:.14}
.svg-sec-node{cursor:pointer}
.svg-sec-dot{stroke:#fff;stroke-width:1.6}
.svg-sec-node.is-leading .svg-sec-dot{fill:#166534}
.svg-sec-node.is-improving .svg-sec-dot{fill:#1769d2}
.svg-sec-node.is-weakening .svg-sec-dot{fill:#a65b00}
.svg-sec-node.is-lagging .svg-sec-dot{fill:#a32d2d}
.svg-sec-node.is-selected .svg-sec-dot{stroke:#111;stroke-width:2.5}
.svg-sec-node.is-selected .svg-sec-lbl{font-weight:700;fill:#111}
.svg-sec-node.is-selected .svg-sec-leader{stroke:#555;stroke-width:1}
.svg-sec-node.is-dimmed{opacity:.22}
.svg-sec-leader{fill:none;stroke:#999;stroke-width:.9;stroke-dasharray:2 2}
.svg-sec-lbl{font-family:Arial,'Malgun Gothic',sans-serif;font-size:11px;fill:#1a1a1a;font-weight:600;paint-order:stroke fill;stroke:rgba(255,255,255,.95);stroke-width:3.8px;stroke-linejoin:round}
@media(max-width:1000px){.scr-sec-layout{grid-template-columns:1fr}.scr-quad-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scr-chart-tools{justify-content:flex-start;margin-left:0}}
@media(max-width:650px){.scr-quad-grid,.scr-sec-drawer .scr-detail-metrics{grid-template-columns:1fr}.scr-sec-drawer{padding:14px}.scr-sec-item{flex-direction:column;align-items:flex-start}.scr-sec-item-r{text-align:left}}

/* Release 17: Quick Jump Bar, Unified Stock X-Ray, CFTC COT, SBC/Cannibals, Schedule 13D/13G */
.scr-qj-bar{position:relative;margin:16px 0 4px}
.scr-qj-input-wrap{display:flex;align-items:center;gap:10px;border:1px solid #c6c6c6;background:#fafaf8;padding:6px 12px}
.scr-qj-input-wrap:focus-within{border-color:var(--ink);background:#fff}
.scr-qj-label{font-size:11.5px;font-weight:700;color:var(--ink);white-space:nowrap;padding-right:8px;border-right:1px solid var(--line)}
.scr-qj-input{flex:1 1 auto;min-width:0;border:0;background:transparent;height:30px;font-size:13.5px;outline:none}
.scr-kbd{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;border:1px solid #ccc;background:#fff;font-family:var(--mono);font-size:11.5px;color:#444}
.scr-qj-results{position:absolute;left:0;right:0;top:100%;z-index:40;background:#fff;border:1px solid var(--ink);border-top:0;box-shadow:0 12px 28px rgba(0,0,0,.1);max-height:320px;overflow-y:auto}
.scr-qj-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;background:#fff;border:0;border-bottom:1px solid var(--line);text-align:left;font-size:13px}
.scr-qj-item:hover,.scr-qj-item.is-active{background:#f0f6fc}
.scr-qj-left{display:flex;align-items:center;gap:8px;min-width:0}
.scr-qj-name{color:#444;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:340px}
.scr-qj-meta{font-size:12px;color:#555;font-variant-numeric:tabular-nums;white-space:nowrap}
.scr-qj-empty{padding:12px 14px;font-size:13px;color:var(--quiet)}

#det-metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.scr-mpill.m-c{border-color:#7fb7b2;background:#eff8f7;color:#0f5c55}
.scr-dcf-mode-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.scr-dcf-mode-bar .scr-muted{font-size:12.5px}

.scr-xray-box{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.scr-xray-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.scr-xray-card{border:1px solid var(--line);background:#fafaf8;padding:13px 15px;display:flex;flex-direction:column;gap:8px;min-width:0}
.scr-xray-card h4{margin:0;font-size:13.5px;font-weight:700;color:var(--ink)}
.scr-xray-sub{font-size:11.5px;color:var(--quiet);display:block}
.scr-xray-jump-btn{background:#fff;border:1px solid #9fc5e8;color:var(--blue);padding:2px 8px;font-size:11.5px;font-weight:700}
.scr-xray-jump-btn:hover{background:#f0f6fc;border-color:var(--blue)}
.scr-xray-vcrow{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.scr-xray-vc-btn{background:#fff;border:1px solid #93c5a1;color:var(--green);padding:2px 8px;font-size:11.5px;font-weight:600}
.scr-xray-vc-btn:hover{background:#eef8f0}
.scr-xray-pbar-row{display:flex;flex-direction:column;gap:3px}
.scr-xray-pbar-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#333;font-variant-numeric:tabular-nums}
.scr-pbar-svg{width:100%;height:6px;display:block}
.svg-pbar-bg{fill:#e5e5e5}
.svg-pbar-fill{fill:#1769d2}
.scr-xray-list{display:flex;flex-direction:column;gap:6px}
.scr-xray-item{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;padding-bottom:5px;border-bottom:1px solid #e8e8e6}
.scr-xray-item:last-child{border-bottom:0;padding-bottom:0}
.scr-xray-r{white-space:nowrap;font-variant-numeric:tabular-nums;color:#333}

.scr-cot-section{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}
.scr-cot-section .scr-fscore-head h2{font-size:20px;font-weight:600;letter-spacing:-.025em}
.scr-cot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
.scr-cot-card{text-align:left;border:1px solid var(--line);border-top:3px solid #999;background:#fff;padding:11px 13px;display:flex;flex-direction:column;gap:5px;min-width:0;transition:border-color .15s,background .15s}
.scr-cot-card:hover{border-color:var(--ink);background:#fafaf8}
.scr-cot-card.is-selected{border-color:var(--ink);border-top-color:var(--blue);background:#f3f7fc}
.scr-cot-head{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
.scr-cot-title-box{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.scr-cot-title-box strong{font-size:12.5px;font-weight:700;color:var(--ink);line-height:1.3}
.scr-cot-pill{display:inline-block;padding:1px 6px;font-size:10.5px;font-weight:700;border:1px solid #d4d4d4;white-space:nowrap}
.scr-cot-pill.is-crowded-long{border-color:#93c5a1;background:#eef8f0;color:var(--green)}
.scr-cot-pill.is-crowded-short{border-color:#e4b4b4;background:#fdf4f4;color:var(--red)}
.scr-cot-pill.is-balanced{border-color:#ccc;background:#fafaf8;color:#444}
.scr-cot-valrow{display:flex;justify-content:space-between;align-items:baseline;font-variant-numeric:tabular-nums;gap:6px}
.scr-cot-idx{font-size:14.5px;font-weight:700;color:var(--ink)}
.scr-cot-oi{font-size:11.5px;color:#555}
.scr-cot-meter{width:100%;height:8px;display:block}
.svg-cot-meter-bg{fill:#e5e5e5}
.svg-cot-meter-fill.is-crowded-long{fill:#166534}
.svg-cot-meter-fill.is-crowded-short{fill:#a32d2d}
.svg-cot-meter-fill.is-balanced{fill:#1769d2}
.svg-cot-tick{stroke:#666;stroke-width:1}
.scr-cot-sub{font-size:11px;color:var(--quiet);font-variant-numeric:tabular-nums}
.scr-cot-chart-box{margin-bottom:4px}

.scr-stake-badge{display:inline-block;padding:2px 7px;font-size:11px;font-weight:700;border:1px solid #d4d4d4;white-space:nowrap}
.scr-stake-badge.is-13d{border-color:#d89c9c;background:#fdf3f3;color:#912020}
.scr-stake-badge.is-13g{border-color:#9fc5e8;background:#f0f6fc;color:#124b8a}
.scr-purpose-cell{font-size:12px;color:#444;min-width:240px;max-width:380px;line-height:1.5}

@media(max-width:1000px){
  #det-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .scr-xray-grid{grid-template-columns:1fr}
  .scr-cot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  #det-metrics-grid,.scr-xray-grid,.scr-cot-grid{grid-template-columns:1fr}
  .scr-qj-label,.scr-kbd{display:none}
  .scr-qj-item{flex-direction:column;align-items:flex-start;gap:3px}
}

/* Release 18: 4-Pack Quant Hub Additions (Decomposition, Sector Rank Badge, Accounting Box, Audit & Quant Calculators) */
.ms-decomp-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 18px}
.ms-decomp-box{border:1px solid var(--line);border-left:3px solid var(--ink);background:#fafaf8;padding:12px 15px;display:flex;flex-direction:column;gap:4px;min-width:0}
.ms-decomp-val{font-size:15.5px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}

.scr-qrank-badge{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:2px 6px;font-size:12px;font-weight:700;border:1px solid #d4d4d4;background:#fafaf8;font-variant-numeric:tabular-nums}
.scr-qrank-badge.is-top{border-color:#9fc5e8;background:#f0f6fc;color:var(--blue)}
.scr-qrank-badge.is-mid{border-color:#d4d4d4;background:#fafafa;color:#333}
.scr-qrank-badge.is-low{border-color:#e5e5e5;background:#fafaf8;color:#666}

.scr-pine-cta-bar{margin:10px 0 4px}
.scr-bok-charts{margin-top:14px}
.scr-audit-input-wrap{margin-bottom:14px}
.scr-audit-textarea{width:100%;padding:10px 12px;border:1px solid #c6c6c6;background:#fff;font-family:var(--mono);font-size:12.5px;line-height:1.5;resize:vertical}
.scr-audit-textarea:focus{border-color:var(--ink);outline:2px solid var(--blue);outline-offset:2px}
#aud-metrics,#bs-out-grid,#kl-out-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.scr-calc-box-top{display:flex;flex-direction:column;gap:22px}
#wb-quantcalc-view .scr-dcf-box:first-child{margin-top:0;padding-top:4px;border-top:0}
#det-acct-box .scr-detail-metrics{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 0 10px;border-bottom:0}
.svg-area-equity{fill:rgba(22,101,52,.09)}
.svg-line-dash{fill:none;stroke:#666;stroke-width:1.4;stroke-dasharray:4 4}

@media(max-width:1000px){
  .ms-decomp-strip{grid-template-columns:1fr}
  #aud-metrics,#bs-out-grid,#kl-out-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #det-acct-box .scr-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  #aud-metrics,#bs-out-grid,#kl-out-grid,#det-acct-box .scr-detail-metrics{grid-template-columns:1fr}
  .scr-pine-toolbar .scr-btn-accent{white-space:normal;text-align:center}
}
