.psxpsd-wrap{max-width:1500px;margin:20px 20px 40px 0;color:#172033}.psxpsd-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}.psxpsd-header h1{font-size:26px;margin:0 0 5px}.psxpsd-header h1 span{font-size:10px;letter-spacing:.08em;background:#111827;color:#fff;border-radius:999px;padding:5px 8px;vertical-align:middle}.psxpsd-header p,.muted{color:#667085}.psxpsd-status-pill{background:#fff;border:1px solid #d9dee7;border-radius:10px;padding:10px 14px;box-shadow:0 1px 2px rgba(16,24,40,.04)}.psxpsd-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:16px}.psxpsd-card{background:#fff;border:1px solid #d9dee7;border-radius:12px;padding:18px;margin-bottom:16px;box-shadow:0 1px 3px rgba(16,24,40,.05)}.psxpsd-card h2{margin:0 0 8px;font-size:17px}.button-row{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.progress-shell{height:9px;background:#eef2f6;border-radius:999px;overflow:hidden}.progress-shell>div{height:100%;width:0;background:#2271b1;transition:width .2s}.settings-row{display:flex;gap:14px;margin:12px 0}.settings-row label{display:flex;flex-direction:column;gap:5px;font-weight:600}.settings-row input{width:100px}.check{display:block;margin:10px 0}.psxpsd-errors{margin-top:8px;padding:0}.psxpsd-errors.good,.psxpsd-errors.bad{padding:8px 10px;border-radius:6px}.psxpsd-errors.good{background:#ecfdf3;color:#027a48}.psxpsd-errors.bad{background:#fef3f2;color:#b42318}.psxpsd-controls{display:flex;justify-content:space-between;align-items:center;gap:16px}.period-buttons{display:flex;flex-wrap:wrap;gap:5px}.period-btn{appearance:none;border:1px solid #ccd3dd;background:#f8fafc;color:#344054;padding:7px 10px;border-radius:7px;cursor:pointer;font-weight:600}.period-btn:hover{background:#eef4fa}.period-btn.active{background:#2271b1;border-color:#2271b1;color:#fff}.benchmark{font-size:14px;white-space:nowrap}.benchmark strong{margin-left:7px;font-size:18px}.section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.section-title p{margin:3px 0 0;color:#667085}.loading{color:#667085}.table-wrap{overflow:auto;max-height:760px;border:1px solid #e4e7ec;border-radius:8px}.psxpsd-wrap table{border:0}.psxpsd-wrap table th{position:sticky;top:0;background:#f8fafc;z-index:2;font-weight:700}.psxpsd-wrap table th,.psxpsd-wrap table td{padding:9px 10px;white-space:nowrap}.psxpsd-wrap tbody tr{cursor:pointer}.psxpsd-wrap tbody tr:hover td,.psxpsd-wrap tbody tr.selected td{background:#eef8fa}.sector-name{font-weight:600}.rank{color:#667085;width:55px}.pos{color:#087e56;font-weight:700}.neg{color:#c3332d;font-weight:700}.neutral{color:#667085}.signal{display:inline-flex;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.02em}.signal-leader{background:#dcfce7;color:#166534}.signal-weakening{background:#fef3c7;color:#92400e}.signal-improving{background:#dbeafe;color:#1e40af}.signal-laggard{background:#fee2e2;color:#991b1b}.signal-no-data{background:#f2f4f7;color:#667085}.chart-card{min-height:430px}.legend{display:flex;gap:16px;margin:0 0 10px}.legend span{display:inline-flex;align-items:center;gap:6px}.dot{width:10px;height:10px;border-radius:50%;display:inline-block}.dot.sector{background:#20b8c5}.dot.kse{background:#f0b429}#psxpsd-chart{width:100%;height:360px;background:#101827;border-radius:9px}.grid-line{stroke:#283445;stroke-width:1}.axis-text{fill:#9aa5b5;font-size:11px}.psxpsd-footnote{color:#667085;font-size:12px}.psxpsd-status-pill strong{color:#172033}@media(max-width:900px){.psxpsd-grid{grid-template-columns:1fr}.psxpsd-header,.psxpsd-controls{flex-direction:column}.settings-row{flex-wrap:wrap}}


/* v1.5 sector signal filters */
.signal-filter-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 8px;padding:10px 12px;background:#f7f9fc;border:1px solid #dbe3ee;border-radius:10px}
.filter-label{font-weight:700;color:#344054;margin-right:2px}
.signal-filter{appearance:none;border:1px solid #cbd5e1;background:#fff;color:#344054;border-radius:999px;padding:7px 12px;font-weight:700;cursor:pointer;line-height:1}
.signal-filter:hover{border-color:#6b8afd;background:#f2f5ff}
.signal-filter.active{background:#2857d9;border-color:#2857d9;color:#fff;box-shadow:0 1px 2px rgba(40,87,217,.18)}
.filter-count{margin-left:auto;font-size:12px;font-weight:700;color:#667085}
.filter-help{margin:0 0 10px;color:#667085;font-size:12px}
@media(max-width:782px){.filter-count{width:100%;margin-left:0}.signal-filter{padding:8px 10px}}

/* v1.6 sector constituent table */
#psxpsd-stock-card { scroll-margin-top: 32px; }
#psxpsd-stock-table td:nth-child(3), #psxpsd-stock-table td:nth-child(4), #psxpsd-stock-table td:nth-child(5) { font-variant-numeric: tabular-nums; }


/* v1.8 stock filters and ranking */
.stock-toolbar{display:grid;grid-template-columns:1fr;gap:8px;margin:4px 0 12px}
.stock-filter-bar,.stock-sort-bar{margin:0}
.stock-sort-bar{background:#fbfcfe}
@media(min-width:1100px){.stock-toolbar{grid-template-columns:1.25fr .75fr}.stock-sort-bar{justify-content:flex-end}.stock-sort-bar .filter-label{margin-right:auto}}

.chart-mode-bar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}.chart-mode{border:1px solid #c8d2e1;background:#fff;color:#334155;border-radius:999px;padding:7px 13px;font-weight:600;cursor:pointer}.chart-mode:hover{border-color:#6b83ef}.chart-mode.active{background:#3157e3;border-color:#3157e3;color:#fff}.chart-title-row{align-items:flex-start}.zero-line{stroke:#748094;stroke-width:1.3;stroke-dasharray:5 5}.legend .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}.legend{display:flex;gap:16px;flex-wrap:wrap;min-height:24px;margin:8px 0 6px}


/* v2.1 line-end labels + multi-period strength */
.line-end-label{font-size:11px;font-weight:800;dominant-baseline:middle;pointer-events:none}.multi-period-wrap{overflow:auto;border:1px solid #e4e7ec;border-radius:8px;max-height:520px}.multi-period-wrap table{min-width:980px}.multi-period-wrap th:first-child,.multi-period-wrap td:first-child{position:sticky;left:0;z-index:3;background:#fff;min-width:210px}.multi-period-wrap th:first-child{background:#f8fafc;z-index:4}.multi-cell{text-align:center;font-variant-numeric:tabular-nums;font-weight:700}.multi-pos{background:#ecfdf3!important;color:#087e56}.multi-neg{background:#fff1f1!important;color:#b42318}.multi-flat{background:#f8fafc!important;color:#667085}.multi-period-wrap tbody tr:hover td:first-child{background:#eef8fa}.multi-period-wrap tbody tr{cursor:pointer}

/* v2.2 sector rotation heatmap */
.heatmap-legend{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center;margin:8px 0 12px;font-size:12px;color:#667085}.heatmap-legend span{display:inline-flex;align-items:center;gap:6px}.heat-swatch{display:inline-block;width:18px;height:12px;border-radius:3px;border:1px solid rgba(0,0,0,.06)}
.multi-period-wrap #psxpsd-multi-table{border-collapse:separate;border-spacing:2px;background:#f2f4f7;padding:2px}.multi-period-wrap #psxpsd-multi-table th{background:#f8fafc;white-space:nowrap}.multi-period-wrap #psxpsd-multi-table td{border:0;border-radius:4px;transition:filter .12s ease,transform .12s ease}.multi-period-wrap #psxpsd-multi-table tbody tr:hover td:not(:first-child){filter:brightness(.96)}.multi-period-wrap #psxpsd-multi-table tbody tr:hover td:first-child{font-weight:700}.multi-period-wrap .multi-cell{min-width:74px;padding:10px 8px!important}.multi-period-wrap .breadth-cell{min-width:78px}.heat-pos-1{background:#dff7e8!important;color:#087e56!important}.heat-pos-2{background:#9fe3b8!important;color:#075f43!important}.heat-pos-3{background:#18875d!important;color:#fff!important}.heat-neg-1{background:#fde2e0!important;color:#a12a22!important}.heat-neg-2{background:#f7a6a0!important;color:#7a1b16!important}.heat-neg-3{background:#c53b32!important;color:#fff!important}.heat-flat{background:#eef1f4!important;color:#667085!important}.heat-na{background:#f8fafc!important;color:#98a2b3!important}.heatmap-note{margin:10px 2px 0}.heatmap-legend .heat-neg-3{background:#c53b32!important}.heatmap-legend .heat-neg-2{background:#f7a6a0!important}.heatmap-legend .heat-flat{background:#eef1f4!important}.heatmap-legend .heat-pos-2{background:#9fe3b8!important}.heatmap-legend .heat-pos-3{background:#18875d!important}

/* v2.3 Best Sector Now score */
.score-filter-bar{margin-top:10px;gap:6px;flex-wrap:wrap}.score-note{margin:7px 0 10px}.sector-score{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:26px;padding:0 8px;border-radius:999px;font-weight:700;font-variant-numeric:tabular-nums}.score-a{background:#dff6e8;color:#126a39}.score-b{background:#e9f4df;color:#4d701d}.score-c{background:#eef1f5;color:#46505f}.score-d{background:#fff1dc;color:#8a5913}.score-e{background:#fde5e5;color:#a72f2f}.score-na{background:#f2f4f7;color:#818896}


/* v2.4 stock breadth + confidence */
.breadth-value{font-variant-numeric:tabular-nums}.confidence-badge{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.04em}.confidence-high{background:#dcfce7;color:#166534}.confidence-medium{background:#fef3c7;color:#92400e}.confidence-low{background:#fee2e2;color:#991b1b}


/* v2.5 Daily Rotation Changes */
.rotation-summary{margin:8px 0 12px;padding:10px 12px;border:1px solid #dbe3ef;border-radius:8px;background:#f7f9fc;color:#475569}
.rotation-table-wrap{max-height:340px}
.rotation-change{display:inline-block;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.02em;white-space:nowrap}
.rotation-change-leader{background:#dcfce7;color:#166534}
.rotation-change-improving{background:#dbeafe;color:#1d4ed8}
.rotation-change-weakening{background:#fef3c7;color:#92400e}
.rotation-change-laggard{background:#fee2e2;color:#b91c1c}
#psxpsd-rotation-table tbody tr{cursor:pointer}
#psxpsd-rotation-table tbody tr:hover{background:#eef6ff}

/* v3.0 combined research workflow */
.psxpsd-star{border:0;background:transparent;color:#94a3b8;font-size:18px;line-height:1;cursor:pointer;padding:2px 4px;vertical-align:middle}.psxpsd-star.is-starred{color:#f59e0b}.psxpsd-star:hover{transform:scale(1.08)}
.watchlist-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.watchlist-grid h3{margin:0 0 8px}.psxpsd-card table tbody tr{cursor:default}.psxpsd-card #psxpsd-table tbody tr,.psxpsd-card #psxpsd-rotation-table tbody tr,.psxpsd-card #psxpsd-multi-table tbody tr,#psxpsd-best-stocks-table tbody tr{cursor:pointer}
@media(max-width:900px){.watchlist-grid{grid-template-columns:1fr}}

/* v3.1 search + master sector chart */
.psxpsd-finder-card{position:relative}.psxpsd-finder-wrap,.table-search-row,.master-selector-actions,.master-chart-toolbar,.master-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.psxpsd-search-input{min-width:260px;max-width:100%;padding:7px 10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff}.psxpsd-finder-wrap .psxpsd-search-input{flex:1;min-width:320px}.psxpsd-search-results{margin-top:8px;border:1px solid #d8dee8;border-radius:9px;background:#fff;max-height:320px;overflow:auto;box-shadow:0 8px 24px rgba(15,23,42,.08)}.search-result{width:100%;display:grid;grid-template-columns:74px minmax(120px,1fr) minmax(120px,1fr);align-items:center;gap:8px;text-align:left;border:0;border-bottom:1px solid #eef2f6;background:#fff;padding:10px 12px;cursor:pointer}.search-result:last-child{border-bottom:0}.search-result:hover{background:#f6f9fc}.search-kind{font-size:10px;font-weight:800;letter-spacing:.05em;color:#64748b}.search-parent{font-size:12px;color:#64748b;text-align:right}.search-empty{padding:12px;color:#667085}.table-search-row{margin:8px 0 12px}.table-search-row label{color:#344054}.stock-search-row{margin-top:0}.master-chart-card{scroll-margin-top:32px}.master-chart-toolbar{justify-content:space-between;margin-bottom:10px}.master-actions{justify-content:flex-end}.check-inline{display:inline-flex;align-items:center;gap:5px;color:#475569}.master-selector{border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;padding:10px;margin-bottom:10px}.master-selector-actions{margin-bottom:9px}.master-selector-actions .psxpsd-search-input{flex:1;min-width:220px}.master-sector-list{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:6px;max-height:260px;overflow:auto;padding:2px}.master-sector-option{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:6px;background:#fff;border:1px solid #e3e8ef;border-radius:7px;padding:7px 8px;cursor:pointer}.master-sector-option:hover{border-color:#91a4c2;background:#f8fbff}.master-sector-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#334155}.master-sector-option small{font-variant-numeric:tabular-nums;color:#64748b}.master-legend{max-height:70px;overflow:auto;border-bottom:1px solid #eef2f6;padding-bottom:6px}.master-legend span{font-size:11px}#psxpsd-master-chart{width:100%;height:520px;background:#0f1724;border-radius:9px}.master-line-label{font-size:10px;font-weight:800;dominant-baseline:middle}.master-note{margin:9px 2px 0}
@media(max-width:1100px){.master-sector-list{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media(max-width:700px){.master-sector-list{grid-template-columns:1fr}.psxpsd-finder-wrap .psxpsd-search-input,.psxpsd-search-input{min-width:100%;width:100%}.search-result{grid-template-columns:60px 1fr}.search-parent{grid-column:2;text-align:left}.master-chart-toolbar{align-items:flex-start}.master-actions{justify-content:flex-start}#psxpsd-master-chart{height:430px}}

/* v3.2 Best Stocks Now search */
.best-stocks-search-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 10px}.best-stocks-search-row .psxpsd-search-input{flex:1;min-width:260px}.best-stocks-search-row .filter-count{margin-left:auto}@media(max-width:700px){.best-stocks-search-row .psxpsd-search-input{min-width:100%;width:100%}.best-stocks-search-row .filter-count{width:100%;margin-left:0}}

/* v4.1.5 safe advanced chart controls */
.master-advanced-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:9px 10px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}.master-advanced-toolbar label{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:#475569}.master-advanced-toolbar select{min-height:34px;border:1px solid #cbd5e1;border-radius:7px;background:#fff}.master-legend span{cursor:pointer;padding:3px 5px;border-radius:5px;transition:.15s}.master-legend span:hover,.master-legend span.focused{background:#e8eefc}.master-chart-card:fullscreen{background:#fff;padding:20px;overflow:auto}.master-chart-card:fullscreen #psxpsd-master-chart{height:calc(100vh - 300px)!important;min-height:520px}.master-tooltip{pointer-events:none}.rotation-map-card{scroll-margin-top:30px}.rotation-map-legend{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 9px}.quad{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800}.quad.leader{background:#dcfce7;color:#166534}.quad.improving{background:#dbeafe;color:#1e40af}.quad.weakening{background:#fef3c7;color:#92400e}.quad.underperformer{background:#fee2e2;color:#991b1b}#psxpsd-rotation-map{width:100%;height:620px;background:#0f1724;border-radius:9px}.rotation-dot{cursor:pointer}.rotation-label{font-size:9.5px;font-weight:700;pointer-events:none}.rotation-axis-title{fill:#aab4c3;font-size:12px;font-weight:700}.rotation-quadrant-label{fill:#64748b;font-size:19px;font-weight:800;opacity:.35}.master-crosshair{stroke:#94a3b8;stroke-width:1;stroke-dasharray:4 4;pointer-events:none}.master-hover-dot{pointer-events:none}.master-tooltip-bg{fill:#111827;stroke:#475569;stroke-width:1;opacity:.97}.master-tooltip-text{fill:#e5e7eb;font-size:11px;pointer-events:none}
@media(max-width:700px){.master-advanced-toolbar{align-items:flex-start}.master-advanced-toolbar label{width:100%;justify-content:space-between}#psxpsd-rotation-map{height:500px}}

/* v4.1.6 rotation-map clarity polish */
.rotation-map-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 10px;padding:9px 10px;border:1px solid #dbe3ec;border-radius:9px;background:#f8fafc}.rotation-map-toolbar label{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:#475569}.rotation-map-toolbar select{min-height:34px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;padding:5px 28px 5px 8px}.rotation-map-tip{font-size:12px;color:#64748b}.rotation-map-shell{position:relative}.rotation-tooltip{position:absolute;z-index:8;width:172px;padding:9px 10px;border-radius:8px;background:rgba(15,23,36,.97);color:#e5e7eb;border:1px solid #475569;box-shadow:0 8px 24px rgba(0,0,0,.25);font-size:12px;line-height:1.45;pointer-events:none}.rotation-tooltip strong{color:#fff}.rotation-dot circle{transition:r .12s,opacity .12s}.rotation-dot:hover circle:nth-last-of-type(1),.rotation-dot:focus circle:nth-last-of-type(1){opacity:1}.rotation-label{font-size:10.5px;font-weight:800;paint-order:stroke;stroke:#0f1724;stroke-width:2.2px;stroke-linejoin:round}.rotation-quadrant-label{font-size:22px;opacity:.22}#psxpsd-rotation-map{height:660px}
@media(max-width:700px){.rotation-map-toolbar label{width:100%;justify-content:space-between}.rotation-map-tip{width:100%}#psxpsd-rotation-map{height:520px}}

/* v4.1.7 rotation-map zero reference labels */
.rotation-zero-label{fill:#cbd5e1;font-size:10.5px;font-weight:800;paint-order:stroke;stroke:#0f1724;stroke-width:3px;stroke-linejoin:round;pointer-events:none}

.psxpsd-watch-alert-box{margin:0 0 16px;padding:12px 14px;border:1px solid #d8dee8;border-radius:10px;background:#f8fafc;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.psxpsd-watch-alert-box .button-row{margin:0}.psxpsd-watch-alert-box .muted{margin-right:auto}
@media(max-width:782px){.psxpsd-watch-alert-box{align-items:stretch;display:block}.psxpsd-watch-alert-box .muted{display:block;margin:8px 0}.psxpsd-watch-alert-box .button-row{display:flex;gap:8px;flex-wrap:wrap}}

/* v4.1.15 SEARCH RESULT VISIBILITY FIX — force readable finder suggestions across themes. */
.psxpsd-search-results{background:#fff;color:#172033}
.psxpsd-search-results .search-result,
.psxpsd-search-results button.search-result{
  color:#172033 !important;
  background:#fff !important;
  opacity:1 !important;
  -webkit-text-fill-color:#172033;
}
.psxpsd-search-results .search-result strong{
  color:#172033 !important;
  -webkit-text-fill-color:#172033;
  font-weight:700;
}
.psxpsd-search-results .search-result .search-kind{
  color:#52637a !important;
  -webkit-text-fill-color:#52637a;
}
.psxpsd-search-results .search-result .search-parent{
  color:#52637a !important;
  -webkit-text-fill-color:#52637a;
}
.psxpsd-search-results .search-result:hover,
.psxpsd-search-results .search-result:focus,
.psxpsd-search-results .search-result:focus-visible{
  background:#eef4ff !important;
  color:#102a56 !important;
  outline:none;
}
.psxpsd-search-results .search-result:hover strong,
.psxpsd-search-results .search-result:focus strong,
.psxpsd-search-results .search-result:focus-visible strong{
  color:#102a56 !important;
  -webkit-text-fill-color:#102a56;
}
.psxpsd-search-results .search-empty{color:#52637a !important;background:#fff}

/* v4.1.33 Rotation heatmap selected-row readability. Preserve analytical cell colors; highlight with outline only. */
#psxpsd-multi-table tbody tr.selected td{box-shadow:inset 0 2px 0 #1677d2,inset 0 -2px 0 #1677d2!important;}
#psxpsd-multi-table tbody tr.selected td:first-child{background:#eaf4ff!important;color:#173550!important;font-weight:800!important;box-shadow:inset 3px 0 0 #1677d2,inset 0 2px 0 #1677d2,inset 0 -2px 0 #1677d2!important;}
#psxpsd-multi-table tbody tr.selected td.heat-pos-1,#psxpsd-multi-table tbody tr.selected td.heat-pos-2{color:#075f41!important;}
#psxpsd-multi-table tbody tr.selected td.heat-neg-1,#psxpsd-multi-table tbody tr.selected td.heat-neg-2{color:#8e1c2b!important;}
#psxpsd-multi-table tbody tr.selected td.heat-flat{color:#475569!important;}

/* v4.1.34 Selected heatmap row: keep all numeric values readable on the light selection highlight. */
#psxpsd-multi-table tbody tr.selected td:not(:first-child){color:#111827!important;}

/* v4.1.35 Selected heatmap row: force one readable light highlight with dark text in every cell. */
#psxpsd-multi-table tbody tr.selected td{
  background:#eaf4ff!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  font-weight:700!important;
  filter:none!important;
}
#psxpsd-multi-table tbody tr.selected td:first-child{
  background:#eaf4ff!important;
  color:#102a43!important;
  -webkit-text-fill-color:#102a43!important;
  font-weight:800!important;
}


/* v4.1.36 Heatmap readability: black text/light row only while hovering. Click selection keeps analytical colors. */
#psxpsd-multi-table tbody tr.selected td{
  background:unset!important;
  -webkit-text-fill-color:currentColor!important;
  font-weight:inherit!important;
  filter:none!important;
}
#psxpsd-multi-table tbody tr.selected td:first-child{
  background:#fff!important;
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
  font-weight:700!important;
}
#psxpsd-multi-table tbody tr.selected td.heat-pos-1{background:#dff7e8!important;color:#087e56!important;}
#psxpsd-multi-table tbody tr.selected td.heat-pos-2{background:#9fe3b8!important;color:#075f43!important;}
#psxpsd-multi-table tbody tr.selected td.heat-pos-3{background:#18875d!important;color:#fff!important;}
#psxpsd-multi-table tbody tr.selected td.heat-neg-1{background:#fde2e0!important;color:#a12a22!important;}
#psxpsd-multi-table tbody tr.selected td.heat-neg-2{background:#f7a6a0!important;color:#7a1b16!important;}
#psxpsd-multi-table tbody tr.selected td.heat-neg-3{background:#c53b32!important;color:#fff!important;}
#psxpsd-multi-table tbody tr.selected td.heat-flat{background:#eef1f4!important;color:#667085!important;}
#psxpsd-multi-table tbody tr.selected td.heat-na{background:#f8fafc!important;color:#98a2b3!important;}

#psxpsd-multi-table tbody tr:hover td,
#psxpsd-multi-table tbody tr.selected:hover td{
  background:#eaf4ff!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  font-weight:700!important;
  filter:none!important;
}
#psxpsd-multi-table tbody tr:hover td:first-child,
#psxpsd-multi-table tbody tr.selected:hover td:first-child{
  color:#102a43!important;
  -webkit-text-fill-color:#102a43!important;
  font-weight:800!important;
}

/* v4.1.37 Watchlist expanded decision-context tables. */
#psxpsd-watchlist-card .table-wrap{overflow-x:auto}
#psxpsd-watchlist-card table{min-width:900px}
#psxpsd-watchlist-card th,#psxpsd-watchlist-card td{white-space:nowrap}
#psxpsd-watchlist-card .watch-change{font-size:11px;font-weight:700}

/* v4.1.75 Stock Rotation Heatmap */
#psxpsd-stock-heatmap-table tbody tr:hover td:not(:first-child){filter:brightness(.96)}
#psxpsd-stock-heatmap-table tbody tr:hover td:first-child{font-weight:700}
#psxpsd-stock-heatmap-table .sector-name{white-space:nowrap}
@media(max-width:700px){#psxpsd-stock-heatmap-card .multi-period-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}#psxpsd-stock-heatmap-table{min-width:980px}}

/* v4.1.85 heatmap display mode toggle */
.psxpsd-heatmap-mode{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.psxpsd-heatmap-mode .button{min-height:30px;padding:4px 10px;font-weight:700;border-radius:7px}.psxpsd-heatmap-mode .button.active{background:#1677d2!important;border-color:#1677d2!important;color:#fff!important;box-shadow:0 2px 6px rgba(22,119,210,.18)}
@media(max-width:700px){.psxpsd-heatmap-mode{gap:5px}.psxpsd-heatmap-mode .button{font-size:12px;padding:4px 8px}}
