/* Screening workspaces — neutral, scoped server-rendered shadcn port. */
body#sp-app[data-ui="components"]:has(.us-workspace) #vcpModal .modal-content { background:#fff!important; border:1px solid #e4e4e7!important; border-radius:12px!important; color:#18181b!important; }
body#sp-app[data-ui="components"]:has(.us-workspace) #vcpModal :is(.modal-header,.modal-footer) { padding:16px 24px!important; border-color:#e4e4e7!important; background:#fff!important; }
body#sp-app[data-ui="components"]:has(.us-workspace) #vcpModal .modal-body { padding:24px!important; font-size:14px!important; }
body#sp-app[data-ui="components"]:has(.us-workspace) #vcpModal .btn-outline-secondary { min-height:36px; padding:8px 14px!important; border:1px solid #d4d4d8!important; border-radius:6px!important; color:#18181b!important; background:#fff!important; font-size:14px!important; }
body#sp-app[data-ui="components"]:has(.screening-workspace) { background:#f4f4f5!important; color:#18181b; }
body#sp-app[data-ui="components"] .screening-workspace { min-height:100vh; background:#f4f4f5!important; color:#18181b; font-size:14px; }
body#sp-app[data-ui="components"] .screening-workspace * { box-shadow:none!important; }
body#sp-app[data-ui="components"] .screening-shell { width:min(100%,1440px); margin:0 auto; padding:32px 32px 72px; }
body#sp-app[data-ui="components"] .screening-header { display:flex; justify-content:space-between; align-items:flex-start; gap:32px; margin-bottom:24px; }
body#sp-app[data-ui="components"] .sepa-header.screening-header { padding:0!important; border:0!important; background:transparent!important; }
body#sp-app[data-ui="components"] .screening-eyebrow { margin-bottom:6px; color:#71717a!important; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
body#sp-app[data-ui="components"] .screening-title { margin:0; color:#09090b!important; font-size:28px!important; font-weight:650; line-height:1.25; letter-spacing:-.035em; }
body#sp-app[data-ui="components"] .screening-subtitle { margin:6px 0 0; color:#52525b!important; font-size:14px; line-height:1.5; }
body#sp-app[data-ui="components"] .screening-meta { min-width:315px; color:#52525b!important; font-size:13px; line-height:1.65; text-align:right; }
body#sp-app[data-ui="components"] .screening-date { display:block; margin-bottom:7px; color:#18181b!important; font-size:18px; font-weight:600; }
body#sp-app[data-ui="components"] .screening-meta form { display:flex; justify-content:flex-end; align-items:center; gap:8px; margin-bottom:5px; }
body#sp-app[data-ui="components"] .screening-select { min-height:36px; padding:7px 32px 7px 10px; border:1px solid #d4d4d8!important; border-radius:6px!important; background:#fff!important; color:#18181b!important; font-size:13px; }
body#sp-app[data-ui="components"] .screening-summary { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); overflow:hidden; margin-bottom:24px; border:1px solid #e4e4e7!important; border-radius:12px!important; background:#fff!important; }
body#sp-app[data-ui="components"] .screening-metric { min-width:0; padding:17px 14px 15px; border:0!important; border-radius:0!important; background:#fff!important; }
body#sp-app[data-ui="components"] .screening-metric-label { color:#71717a!important; font-size:12px; font-weight:500; line-height:1.35; }
body#sp-app[data-ui="components"] .screening-metric-value { margin-top:5px; color:#18181b!important; font-size:24px; font-weight:650; line-height:1.15; font-variant-numeric:tabular-nums; }
body#sp-app[data-ui="components"] .screening-metric-delta { min-height:18px; margin-top:4px; font-size:12px; font-weight:600; }
body#sp-app[data-ui="components"] .screening-note { margin-bottom:24px; padding:13px 16px; border:1px solid #e4e4e7; border-radius:8px; background:#fff!important; color:#52525b!important; font-size:13px; line-height:1.65; }
body#sp-app[data-ui="components"] .screening-grid { display:grid; gap:24px; margin-bottom:24px; }
body#sp-app[data-ui="components"] .screening-grid--analysis { grid-template-columns:minmax(0,2fr) minmax(300px,1fr); }
body#sp-app[data-ui="components"] .screening-grid--equal { grid-template-columns:repeat(2,minmax(0,1fr)); }
body#sp-app[data-ui="components"] .screening-card { overflow:hidden; margin-bottom:24px; border:1px solid #e4e4e7!important; border-radius:12px!important; background:#fff!important; }
body#sp-app[data-ui="components"] .screening-grid > .screening-card { min-width:0; margin-bottom:0; }
body#sp-app[data-ui="components"] .screening-card-header { display:flex; align-items:center; gap:10px; min-height:50px; padding:14px 18px; border:0!important; border-bottom:1px solid #e4e4e7!important; background:#fff!important; color:#18181b!important; font-size:16px!important; font-weight:600; }
body#sp-app[data-ui="components"] .screening-count { margin-left:auto; padding:3px 8px; border:0!important; border-radius:6px!important; background:#f4f4f5!important; color:#52525b!important; font-size:12px; font-weight:500; }
body#sp-app[data-ui="components"] .screening-card-body { padding:18px; }
body#sp-app[data-ui="components"] .screening-legend { display:flex; flex-wrap:wrap; gap:10px 18px; padding:11px 18px; border-bottom:1px solid #e4e4e7; background:#fafafa!important; color:#52525b!important; font-size:12px; }
body#sp-app[data-ui="components"] .screening-table-wrap { max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
body#sp-app[data-ui="components"] .screening-table { width:max-content!important; min-width:100%; border-collapse:separate; border-spacing:0; font-size:14px!important; }
body#sp-app[data-ui="components"] .screening-table :is(th,td) { height:44px; padding:var(--sp-table-cell-y) var(--sp-table-cell-x)!important; border:0!important; border-bottom:1px solid #e4e4e7!important; background:#fff!important; vertical-align:var(--sp-table-cell-align)!important; white-space:nowrap; }
body#sp-app[data-ui="components"] .screening-table th { background:var(--sp-table-heading-bg)!important; color:var(--sp-table-heading-fg)!important; font-size:var(--sp-table-font-size)!important; font-weight:500!important; letter-spacing:0!important; line-height:var(--sp-table-heading-line-height)!important; text-align:left; text-transform:none!important; vertical-align:middle!important; }
body#sp-app[data-ui="components"] .screening-table td { color:var(--sp-table-cell-fg)!important; font-size:var(--sp-table-font-size)!important; vertical-align:var(--sp-table-cell-align)!important; }
body#sp-app[data-ui="components"] .screening-table tbody tr:last-child td { border-bottom:0!important; }
body#sp-app[data-ui="components"] .screening-table tbody tr:hover td { background:#fafafa!important; }
body#sp-app[data-ui="components"] .screening-table :is(th,td):first-child { position:sticky; left:0; z-index:1; width:240px; min-width:240px; max-width:240px; }
body#sp-app[data-ui="components"] .screening-table th:first-child { z-index:2; }
body#sp-app[data-ui="components"] .screening-table .num { text-align:right; font-variant-numeric:tabular-nums; }
body#sp-app[data-ui="components"] .screening-workspace .stock-identity { display:flex; align-items:baseline; gap:7px; margin-bottom:4px; }
body#sp-app[data-ui="components"] .screening-workspace .stock-tag-row { display:flex; flex-wrap:wrap; gap:4px; }
body#sp-app[data-ui="components"] .screening-workspace .stock-link { color:#18181b!important; font-size:14px; font-weight:600; text-decoration:none; }
body#sp-app[data-ui="components"] .screening-workspace .stock-link:hover { text-decoration:underline; }
body#sp-app[data-ui="components"] .screening-workspace .code { color:#71717a!important; font-size:12px; }
body#sp-app[data-ui="components"] .screening-workspace .sec { max-width:170px; color:#52525b!important; white-space:normal; line-height:1.35; }
body#sp-app[data-ui="components"] .screening-workspace .tag, body#sp-app[data-ui="components"] .screening-workspace .rs { display:inline-flex; align-items:center; min-height:20px; padding:2px 6px; border:1px solid #d4d4d8!important; border-radius:6px!important; background:#fafafa!important; color:#3f3f46!important; font-size:12px; font-weight:600; line-height:1; }
body#sp-app[data-ui="components"] .screening-workspace .tag.bo, body#sp-app[data-ui="components"] .screening-workspace .tag.top { border-color:#bbf7d0!important; background:#f0fdf4!important; color:#166534!important; }
body#sp-app[data-ui="components"] .screening-workspace .tag.dng, body#sp-app[data-ui="components"] .screening-workspace .dn { color:#b91c1c!important; }
body#sp-app[data-ui="components"] .screening-workspace .tag.upg, body#sp-app[data-ui="components"] .screening-workspace .up { color:#166534!important; }
body#sp-app[data-ui="components"] .screening-workspace .neu { color:#71717a!important; }
body#sp-app[data-ui="components"] .screening-workspace .bo-note { margin-bottom:12px; padding:10px 12px; border:1px solid #e4e4e7!important; border-radius:6px!important; background:#fafafa!important; color:#52525b!important; font-size:13px; line-height:1.6; }
body#sp-app[data-ui="components"] .screening-workspace summary.bo-note { cursor:pointer; font-weight:500; }
body#sp-app[data-ui="components"] .screening-workspace .trend-wrap { height:260px; }
body#sp-app[data-ui="components"] .screening-workspace .market-grid { display:grid; gap:0; }
body#sp-app[data-ui="components"] .screening-workspace .mbox { padding:13px 0; border:0; border-bottom:1px solid #e4e4e7; background:#fff!important; }
body#sp-app[data-ui="components"] .screening-workspace .mbox:first-child { padding-top:0; }
body#sp-app[data-ui="components"] .screening-workspace .mbox:last-child { padding-bottom:0; border-bottom:0; }
body#sp-app[data-ui="components"] .screening-workspace .mbox-label { margin-bottom:4px; color:#71717a!important; font-size:12px; font-weight:500; }
body#sp-app[data-ui="components"] .screening-workspace .mbox-val { margin-bottom:3px; color:#18181b!important; font-size:15px; font-weight:600; }
body#sp-app[data-ui="components"] .screening-workspace .mbox-detail { color:#52525b!important; font-size:13px; line-height:1.55; }
body#sp-app[data-ui="components"] .screening-workspace .sector-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body#sp-app[data-ui="components"] .screening-workspace .sc-card { padding:12px; border:1px solid #e4e4e7!important; border-radius:8px!important; background:#fff!important; }
body#sp-app[data-ui="components"] .screening-workspace .sc-hdr, body#sp-app[data-ui="components"] .screening-workspace .sc-row { display:flex; align-items:center; gap:7px; }
body#sp-app[data-ui="components"] .screening-workspace .sc-hdr { padding-bottom:8px; border-bottom:1px solid #e4e4e7; }
body#sp-app[data-ui="components"] .screening-workspace .sc-cnt { margin-left:auto; color:#71717a!important; font-size:12px; }
body#sp-app[data-ui="components"] .screening-workspace .sc-row { padding:7px 0; border-bottom:1px solid #f4f4f5; }
body#sp-app[data-ui="components"] .screening-workspace .sc-row:last-child { border-bottom:0; }
body#sp-app[data-ui="components"] .screening-workspace .sc-name { flex:1; }
body#sp-app[data-ui="components"] .screening-workspace .sc-rs { color:#71717a!important; font-size:12px; }
body#sp-app[data-ui="components"] .screening-workspace .insight { margin-bottom:10px; padding:12px 14px; border:1px solid #e4e4e7!important; border-radius:8px!important; background:#fafafa!important; color:#3f3f46!important; font-size:14px; line-height:1.65; }
body#sp-app[data-ui="components"] .screening-workspace .insight:last-child { margin-bottom:0; }
body#sp-app[data-ui="components"] .screening-workspace .ref-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; }
body#sp-app[data-ui="components"] .screening-workspace .ref-box { padding:14px; border:1px solid #e4e4e7!important; border-radius:8px!important; background:#fff!important; }
body#sp-app[data-ui="components"] .screening-workspace .ref-title { padding-bottom:9px; border-bottom:1px solid #e4e4e7; color:#18181b!important; font-size:14px; font-weight:600; }
body#sp-app[data-ui="components"] .screening-workspace .ref-item { display:flex; justify-content:space-between; gap:16px; padding:7px 0; border-bottom:1px solid #f4f4f5; color:#27272a!important; font-size:13px; }
body#sp-app[data-ui="components"] .screening-workspace .ref-item:last-child { border-bottom:0; }
body#sp-app[data-ui="components"] .screening-workspace .ref-item span:last-child { color:#71717a!important; text-align:right; }
body#sp-app[data-ui="components"] .screening-footer { display:flex; justify-content:space-between; gap:18px; width:min(100%,1440px); margin:0 auto; padding:0 32px 32px; color:#71717a!important; font-size:12px; }
body#sp-app[data-ui="components"] .screening-empty { width:min(100%,1440px); margin:0 auto; padding:120px 32px; text-align:center; color:#71717a!important; }
body#sp-app[data-ui="components"] .screening-workspace details > summary { list-style:none; }
body#sp-app[data-ui="components"] .screening-workspace details > summary::-webkit-details-marker { display:none; }

/* US screening report. All overrides remain below the screening workspace. */
body#sp-app[data-ui="components"] .us-workspace { display:flex; flex-direction:column; width:min(100%,1440px)!important; max-width:1440px!important; margin:0 auto!important; padding:32px 32px 72px!important; }
body#sp-app[data-ui="components"] .us-workspace .us-report-header { order:1; margin:0 0 24px!important; padding:0!important; border:0!important; border-radius:0!important; background:transparent!important; color:#18181b!important; }
body#sp-app[data-ui="components"] .us-workspace .us-report-header h1 { margin:0 0 8px!important; color:#09090b!important; font-size:28px!important; font-weight:650!important; line-height:1.25; letter-spacing:-.035em; }
body#sp-app[data-ui="components"] .us-workspace .us-report-header .meta { display:flex; gap:24px; color:#52525b!important; font-size:13px!important; opacity:1!important; }
body#sp-app[data-ui="components"] .us-workspace .us-summary-grid { order:2; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:hidden; margin:0 0 24px!important; padding:0!important; border:1px solid #e4e4e7!important; border-radius:12px!important; background:#fff!important; }
body#sp-app[data-ui="components"] .us-workspace .us-summary-cell { display:flex; flex-direction:column; gap:7px; min-height:92px; padding:17px 18px; border:0!important; background:#fff!important; color:#27272a!important; font-size:14px; line-height:1.5; }
body#sp-app[data-ui="components"] .us-workspace .us-summary-cell + .us-summary-cell { border-left:1px solid #e4e4e7!important; }
body#sp-app[data-ui="components"] .us-workspace .us-summary-cell strong { color:#71717a!important; font-size:12px; font-weight:600; }
body#sp-app[data-ui="components"] .us-workspace #sepa { order:3; }
body#sp-app[data-ui="components"] .us-workspace #market-env { order:4; }
body#sp-app[data-ui="components"] .us-workspace #momentum { order:5; }
body#sp-app[data-ui="components"] .us-workspace > .section { overflow:hidden; margin:0 0 24px!important; border:1px solid #e4e4e7!important; border-radius:12px!important; background:#fff!important; }
body#sp-app[data-ui="components"] .us-workspace > .section > .sec-hdr { min-height:52px; padding:14px 18px!important; border:0!important; border-bottom:1px solid #e4e4e7!important; border-radius:0!important; background:#fff!important; color:#18181b!important; font-size:18px!important; font-weight:600!important; }
body#sp-app[data-ui="components"] .us-workspace > .section > .sec-body { margin:0!important; padding:18px!important; border:0!important; border-radius:0!important; background:#fff!important; }
body#sp-app[data-ui="components"] .us-workspace #sepaSummaryText { display:block; padding:12px 14px; border-radius:8px; background:#f4f4f5; color:#3f3f46; font-size:13px; font-weight:500; text-align:left; }
body#sp-app[data-ui="components"] .us-workspace #sepa .sec-body > div:first-child { margin-bottom:18px!important; padding:0!important; border:0!important; border-radius:0!important; background:transparent!important; }
body#sp-app[data-ui="components"] .us-workspace .tier-hdr { display:flex; align-items:center; min-height:38px; margin-bottom:8px!important; padding:8px 12px!important; border:0!important; border-radius:6px!important; background:#f4f4f5!important; color:#27272a!important; font-size:14px!important; font-weight:600!important; }
body#sp-app[data-ui="components"] .us-workspace #sepa .sec-body > div[style*="overflow-x"] { max-width:100%; overflow-x:auto!important; }
body#sp-app[data-ui="components"] .us-workspace .sp-sepa-table,
body#sp-app[data-ui="components"] .us-workspace .quad-box table { width:max-content!important; min-width:100%; border-collapse:separate!important; border-spacing:0!important; font-size:14px!important; }
body#sp-app[data-ui="components"] .us-workspace :is(.sp-sepa-table,.quad-box table) :is(th,td) { height:44px; padding:var(--sp-table-cell-y) var(--sp-table-cell-x)!important; border:0!important; border-bottom:1px solid var(--sp-table-line)!important; background:#fff!important; color:var(--sp-table-cell-fg)!important; font-size:var(--sp-table-font-size)!important; vertical-align:var(--sp-table-cell-align)!important; }
body#sp-app[data-ui="components"] .us-workspace :is(.sp-sepa-table,.quad-box table) th { background:var(--sp-table-heading-bg)!important; color:var(--sp-table-heading-fg)!important; font-weight:500!important; letter-spacing:0!important; line-height:var(--sp-table-heading-line-height)!important; text-transform:none!important; vertical-align:middle!important; white-space:nowrap; }
body#sp-app[data-ui="components"] .us-workspace :is(.sp-sepa-table,.quad-box table) tr:last-child td { border-bottom:0!important; }
body#sp-app[data-ui="components"] .us-workspace .sp-sepa-table :is(.price,.text-end) { text-align:right!important; font-variant-numeric:tabular-nums; }
body#sp-app[data-ui="components"] .us-workspace :is(.badge,.sector-chip) { display:inline-flex!important; align-items:center; min-height:22px; padding:3px 7px!important; border:0!important; border-radius:6px!important; background:#f4f4f5!important; color:#3f3f46!important; font-size:12px!important; font-weight:600; }
body#sp-app[data-ui="components"] .us-workspace .mkt-cards { grid-template-columns:repeat(7,minmax(0,1fr))!important; gap:12px!important; margin-bottom:18px!important; }
body#sp-app[data-ui="components"] .us-workspace .mkt-card { padding:13px 12px!important; border:1px solid #e4e4e7!important; border-radius:8px!important; background:#fff!important; }
body#sp-app[data-ui="components"] .us-workspace .mkt-card :is(.wk,.grade) { color:#71717a!important; font-size:12px!important; }
body#sp-app[data-ui="components"] .us-workspace .mkt-card .cnt { color:#18181b!important; font-size:18px!important; font-weight:600!important; }
body#sp-app[data-ui="components"] .us-workspace #market-env .sec-body > div:nth-child(2) { gap:12px!important; margin-bottom:18px!important; font-size:13px!important; }
body#sp-app[data-ui="components"] .us-workspace #market-env .sec-body > div:nth-child(2) > div { padding:12px 14px!important; border:1px solid #e4e4e7!important; border-radius:8px!important; background:#fafafa!important; color:#27272a!important; }
body#sp-app[data-ui="components"] .us-workspace #market-env .sec-body > .sp-sp-card,
body#sp-app[data-ui="components"] .us-workspace .chart-wrap { padding:16px!important; border:1px solid #e4e4e7!important; border-radius:8px!important; background:#fff!important; }
body#sp-app[data-ui="components"] .us-workspace .quad-grid { gap:12px!important; }
body#sp-app[data-ui="components"] .us-workspace .quad-box { padding:14px!important; border:1px solid #e4e4e7!important; border-radius:8px!important; background:#fff!important; }
body#sp-app[data-ui="components"] .us-workspace .quad-label { color:#3f3f46!important; font-size:13px!important; }
body#sp-app[data-ui="components"] .us-workspace .quad-box > div:last-child { color:#27272a!important; font-size:13px!important; }
body#sp-app[data-ui="components"] .us-workspace #momentumNote { color:#71717a!important; font-size:13px!important; }
body#sp-app[data-ui="components"] .us-workspace :is(#mktChart,#accelChart) { color:#52525b; }
@media(max-width:1100px) {
  body#sp-app[data-ui="components"] .screening-shell { padding-inline:24px; }
  body#sp-app[data-ui="components"] .screening-grid--analysis { grid-template-columns:minmax(0,2fr) minmax(270px,1fr); }
  body#sp-app[data-ui="components"] .screening-footer { padding-inline:24px; }
  body#sp-app[data-ui="components"] .us-workspace { padding-inline:24px!important; }
  body#sp-app[data-ui="components"] .us-workspace .mkt-cards { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
}
