.psxpsd-frontend-head{max-width:1760px;margin:24px auto 12px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:0 18px}.psxpsd-frontend-head h1{margin:0 0 4px;font-size:28px;color:#172033}.psxpsd-frontend-head h1 span{font-size:10px;letter-spacing:.08em;background:#111827;color:#fff;border-radius:999px;padding:5px 8px;vertical-align:middle}.psxpsd-frontend-head p{margin:0;color:#667085}.psxpsd-front-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.psxpsd-frontend-wrap{max-width:1760px;margin:0 auto 40px;padding:0 18px}.psxpsd-frontend-wrap .widefat{width:100%;border-collapse:collapse;background:#fff;color:#172033}.psxpsd-frontend-wrap .widefat th,.psxpsd-frontend-wrap .widefat td{border-bottom:1px solid #e7ebf0;text-align:left}.psxpsd-frontend-wrap .striped tbody tr:nth-child(odd) td{background:#fafbfc}.psxpsd-frontend-wrap .button,.psxpsd-front-actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 12px;border:1px solid #b8c2cf;border-radius:6px;background:#fff;color:#1f3f69;text-decoration:none;font-weight:600;cursor:pointer}.psxpsd-frontend-wrap .button:hover,.psxpsd-front-actions .button:hover{background:#f5f8fb}.psxpsd-login-shell{max-width:520px;margin:60px auto;padding:0 18px}.psxpsd-login-card{background:#fff;border:1px solid #d9dee7;border-radius:14px;padding:26px;box-shadow:0 10px 30px rgba(15,23,42,.08)}.psxpsd-login-card h2{margin-top:0}.psxpsd-login-card label{display:block;margin:12px 0 5px;font-weight:600}.psxpsd-login-card input[type=text],.psxpsd-login-card input[type=password]{width:100%;box-sizing:border-box;padding:10px;border:1px solid #cbd5e1;border-radius:7px}.psxpsd-login-card input[type=submit]{margin-top:10px;padding:10px 16px;border:0;border-radius:7px;background:#2857d9;color:#fff;font-weight:700;cursor:pointer}.psxpsd-login-card .login-remember label{display:flex;gap:8px;align-items:center;font-weight:400}.psxpsd-frontend-wrap input,.psxpsd-frontend-wrap select,.psxpsd-frontend-wrap button{font:inherit}.psxpsd-frontend-wrap select{padding:7px 30px 7px 9px;border:1px solid #cbd5e1;border-radius:6px;background:#fff}.psxpsd-frontend-wrap .regular-text{max-width:520px}
@media(max-width:782px){.psxpsd-frontend-head{flex-direction:column}.psxpsd-front-actions{width:100%;justify-content:space-between}.psxpsd-frontend-wrap{padding:0 10px}.psxpsd-card{padding:12px;border-radius:9px}.psxpsd-controls{gap:10px}.period-buttons{overflow-x:auto;flex-wrap:nowrap;width:100%;padding-bottom:4px}.period-btn{flex:0 0 auto;min-height:42px}.signal-filter-bar,.chart-mode-bar{overflow-x:auto;flex-wrap:nowrap;padding-bottom:8px}.signal-filter,.chart-mode{flex:0 0 auto;min-height:42px}.table-wrap{max-height:none}.psxpsd-wrap table th,.psxpsd-wrap table td{padding:8px 9px;font-size:12px}.psxpsd-wrap table th{top:0}.psxpsd-finder-wrap,.table-search-row,.best-stocks-search-row{align-items:stretch}.psxpsd-finder-wrap .button,.table-search-row .button,.best-stocks-search-row .button{min-height:44px}.watchlist-grid{grid-template-columns:1fr}.master-chart-toolbar{display:block}.master-actions{margin-top:8px}.master-sector-list{max-height:360px}.chart-card{min-height:360px}#psxpsd-chart{height:300px}#psxpsd-master-chart{height:360px}.psxpsd-status-pill{padding:8px 10px}.section-title{flex-direction:column}.benchmark{align-self:flex-end}.psxpsd-footnote{font-size:11px}}
@media(max-width:480px){.psxpsd-frontend-head h1{font-size:22px}.psxpsd-card h2{font-size:16px}.psxpsd-frontend-wrap{padding:0 6px}.psxpsd-card{padding:10px}.filter-label{position:sticky;left:0;background:#f7f9fc;padding-right:6px;z-index:2}.master-sector-option{font-size:12px}.psxpsd-login-shell{margin-top:25px}}

/* v4.1 front-end login/navigation refinements */
.psxpsd-login-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.psxpsd-login-card .login-username label,.psxpsd-login-card .login-password label{display:block;font-weight:600;margin-bottom:6px}
.psxpsd-login-card .input{width:100%;max-width:100%;box-sizing:border-box;padding:11px 12px}
.psxpsd-login-card .login-submit .button{min-height:44px;padding:0 20px}
@media (max-width:600px){.psxpsd-login-actions .button{width:100%;text-align:center}.psxpsd-login-card{padding:22px 18px}}

/* v4.1.2 safe desktop-width refinement */
.psxpsd-frontend-wrap .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.psxpsd-frontend-wrap #psxpsd-table{min-width:1320px}
@media (min-width:1400px){
  .psxpsd-frontend-head,.psxpsd-frontend-wrap{width:calc(100% - 48px);box-sizing:border-box}
}


/* v4.1.3 SAFE LAYOUT FIX — CSS only, no routing/page-creation changes */
/* Hide the theme's duplicate page title on the private dashboard page. */
body .entry-title,
body .page-title,
body .ast-single-post-order .entry-title { display:none !important; }

/* Keep dashboard and logout as clearly separated header items. */
.psxpsd-menu-dashboard { margin-left:14px !important; }
.psxpsd-menu-logout { margin-left:14px !important; }
.psxpsd-menu-dashboard > a,
.psxpsd-menu-logout > a { display:inline-block !important; white-space:nowrap; }

/* Break only the private dashboard out of Astra's narrow content container. */
@media (min-width: 1100px) {
  .psxpsd-frontend-head,
  .psxpsd-frontend-wrap {
    position:relative;
    left:50%;
    transform:translateX(-50%);
    width:calc(100vw - 56px) !important;
    max-width:1760px !important;
    box-sizing:border-box;
  }
  .psxpsd-frontend-wrap #psxpsd-table {
    min-width:1450px;
  }
}

@media (min-width: 1600px) {
  .psxpsd-frontend-head,
  .psxpsd-frontend-wrap {
    width:calc(100vw - 72px) !important;
  }
}

@media (max-width:1099px) {
  .psxpsd-frontend-head,
  .psxpsd-frontend-wrap {
    width:auto !important;
    max-width:100% !important;
    left:auto;
    transform:none;
  }
}


/* v4.1.4 SAFE INTERNAL TABS — client-side only; no WordPress routing changes */
.psxpsd-dashboard-tabs{display:flex;gap:8px;align-items:center;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 14px;padding:8px;background:#f7f9fc;border:1px solid #dbe3ec;border-radius:12px;position:sticky;top:8px;z-index:20;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.psxpsd-dashboard-tab{flex:0 0 auto;border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:999px;padding:9px 15px;font-weight:700;cursor:pointer;white-space:nowrap}
.psxpsd-dashboard-tab:hover{background:#eef4ff;border-color:#9db7ee}
.psxpsd-dashboard-tab.active{background:#2857d9;border-color:#2857d9;color:#fff;box-shadow:0 3px 8px rgba(40,87,217,.2)}
.psxpsd-tab-hidden{display:none !important}
@media(max-width:782px){.psxpsd-dashboard-tabs{top:0;margin-left:-2px;margin-right:-2px;border-radius:9px;padding:7px}.psxpsd-dashboard-tab{min-height:42px;padding:9px 13px}}

/* v4.1.6: dashboard logout is kept in the site header only; KSE status remains in the dashboard header. */


/* v4.1.8 SAFE OVERVIEW SNAPSHOT — client-side summary using existing dashboard data only. */
.psxpsd-overview-summary-card{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
.psxpsd-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.psxpsd-summary-tile{min-width:0;border:1px solid #dce5ef;border-radius:12px;padding:14px 15px;background:#fff;box-shadow:0 2px 7px rgba(15,23,42,.035)}
.psxpsd-summary-tile>span{display:block;color:#64748b;font-size:12px;font-weight:700;margin-bottom:6px}
.psxpsd-summary-tile>strong{display:block;color:#14213d;font-size:20px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.psxpsd-summary-tile>small{display:block;color:#64748b;font-size:11px;line-height:1.35;margin-top:6px;min-height:30px}
.psxpsd-what-changed{margin-top:14px;border-top:1px solid #e5eaf0;padding-top:13px}
.psxpsd-what-changed-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.psxpsd-what-changed-head span{font-size:12px;color:#64748b}
.psxpsd-what-changed-list{display:flex;gap:8px;flex-wrap:wrap}
.psxpsd-change-chip{border:1px solid #cbd5e1;background:#f8fafc;border-radius:999px;padding:7px 11px;display:inline-flex;align-items:center;gap:7px;cursor:pointer;color:#334155}
.psxpsd-change-chip:hover{border-color:#8fb0ef;background:#eef4ff}.psxpsd-change-chip strong{font-size:12px}.psxpsd-change-chip span{font-size:11px;color:#64748b}
@media(max-width:1100px){.psxpsd-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.psxpsd-summary-grid{grid-template-columns:1fr}.psxpsd-summary-tile>strong{font-size:18px}.psxpsd-what-changed-head{align-items:flex-start;flex-direction:column}.psxpsd-change-chip{width:100%;justify-content:space-between;border-radius:9px}}


/* v4.1.9 SAFE MOBILE + TABLET POLISH — responsive CSS only; no routing/data changes */
@media (max-width:1024px){
  .psxpsd-frontend-head{margin-top:18px;padding:0 12px}
  .psxpsd-frontend-wrap{padding:0 12px}
  .psxpsd-card{margin-bottom:14px}
  .psxpsd-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .psxpsd-dashboard-tabs{scroll-snap-type:x proximity;scrollbar-width:thin}
  .psxpsd-dashboard-tab{scroll-snap-align:start}
}
@media (max-width:782px){
  .psxpsd-frontend-head{gap:10px;margin:14px auto 10px;padding:0 10px}
  .psxpsd-frontend-head h1{font-size:24px;line-height:1.15}
  .psxpsd-frontend-head p{font-size:13px}
  .psxpsd-front-actions{justify-content:flex-start;gap:7px}
  .psxpsd-status-pill{font-size:12px}
  .psxpsd-dashboard-tabs{margin-bottom:10px;box-shadow:0 3px 10px rgba(15,23,42,.06)}
  .psxpsd-dashboard-tabs::-webkit-scrollbar,.period-buttons::-webkit-scrollbar,.signal-filter-bar::-webkit-scrollbar,.chart-mode-bar::-webkit-scrollbar{height:4px}
  .psxpsd-dashboard-tab{padding:9px 12px;font-size:13px}
  .psxpsd-card{padding:12px !important;border-radius:10px}
  .psxpsd-card h2{font-size:17px;line-height:1.25}
  .psxpsd-card p{line-height:1.45}
  .psxpsd-summary-grid{gap:8px}
  .psxpsd-summary-tile{padding:11px 12px;border-radius:9px}
  .psxpsd-summary-tile>strong{font-size:18px}
  .psxpsd-finder-wrap,.table-search-row,.best-stocks-search-row{gap:7px}
  .psxpsd-search-input{min-height:44px}
  .psxpsd-frontend-wrap select{min-height:42px}
  .table-wrap{border:1px solid #e3e8ef;border-radius:8px}
  .psxpsd-frontend-wrap #psxpsd-table{min-width:1180px}
  .psxpsd-frontend-wrap #psxpsd-stock-table,
  .psxpsd-frontend-wrap #psxpsd-best-stocks-table,
  .psxpsd-frontend-wrap #psxpsd-rotation-table,
  .psxpsd-frontend-wrap #psxpsd-multi-table{min-width:860px}
  .psxpsd-frontend-wrap #psxpsd-watch-sectors,
  .psxpsd-frontend-wrap #psxpsd-watch-stocks{min-width:680px}
  .rotation-map-shell{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:9px}
  #psxpsd-rotation-map{min-width:900px;height:520px !important}
  .master-chart-card .chart-shell,.master-chart-card .master-chart-shell{overflow-x:auto;-webkit-overflow-scrolling:touch}
  #psxpsd-master-chart{min-width:900px;height:500px !important}
  .master-advanced-toolbar{gap:7px;padding:8px}
  .master-advanced-toolbar label{font-size:12px}
  .rotation-map-toolbar{gap:7px;padding:8px}
  .rotation-map-toolbar label{font-size:12px}
}
@media (max-width:600px){
  .psxpsd-summary-grid{grid-template-columns:1fr}
  .psxpsd-frontend-wrap{padding:0 7px}
  .psxpsd-front-actions .button{min-height:40px}
  .psxpsd-finder-wrap .psxpsd-search-input,.table-search-row .psxpsd-search-input,.best-stocks-search-row .psxpsd-search-input{width:100%;min-width:100%}
  .psxpsd-finder-wrap .button,.table-search-row .button,.best-stocks-search-row .button{width:100%}
  .master-selector-actions .button{flex:1 1 auto}
  .master-advanced-toolbar label,.rotation-map-toolbar label{width:100%;justify-content:space-between}
  .master-advanced-toolbar select,.rotation-map-toolbar select{max-width:58%;min-width:145px}
  .psxpsd-what-changed-list{display:grid;grid-template-columns:1fr;gap:7px}
  .psxpsd-change-chip{width:100%;box-sizing:border-box}
}
@media (max-width:420px){
  .psxpsd-frontend-head h1{font-size:21px}
  .psxpsd-dashboard-tab{font-size:12px;padding:8px 10px}
  .period-btn,.signal-filter,.chart-mode{font-size:12px}
  .psxpsd-summary-tile>small{min-height:0}
}

/* v4.1.12 safe export/share controls */
.psxpsd-title-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.psxpsd-export-row{display:flex;justify-content:flex-end;margin:8px 0 10px}
.psxpsd-export-btn{white-space:nowrap}
@media (max-width:782px){
  .psxpsd-title-actions{width:100%;justify-content:flex-start;margin-top:8px}
  .psxpsd-title-actions .button,.psxpsd-export-row .button{min-height:40px}
  .psxpsd-export-row{justify-content:flex-start}
}

/* v4.1.15 FRONT-END THEME OVERRIDE — keep sector/stock finder text visible even when the theme forces white button text. */
.psxpsd-frontend-wrap .psxpsd-search-results .search-result,
.psxpsd-frontend-wrap .psxpsd-search-results button.search-result{
  color:#172033 !important;
  background:#fff !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
}
.psxpsd-frontend-wrap .psxpsd-search-results .search-result strong{color:#172033 !important}
.psxpsd-frontend-wrap .psxpsd-search-results .search-kind,
.psxpsd-frontend-wrap .psxpsd-search-results .search-parent{color:#52637a !important}
.psxpsd-frontend-wrap .psxpsd-search-results .search-result:hover,
.psxpsd-frontend-wrap .psxpsd-search-results .search-result:focus-visible{background:#eef4ff !important;color:#102a56 !important}
.psxpsd-frontend-wrap .psxpsd-search-results .search-result:hover strong,
.psxpsd-frontend-wrap .psxpsd-search-results .search-result:focus-visible strong{color:#102a56 !important}


/* v4.1.16 BRIGHT PREMIUM UI — presentation only; analytics/data logic unchanged. */
.psxpsd-frontend-wrap{
  --psxpsd-ink:#10213a;
  --psxpsd-muted:#5f6f82;
  --psxpsd-line:#d9e3ee;
  --psxpsd-soft:#f4f8fc;
  --psxpsd-blue:#1769e0;
  --psxpsd-blue2:#0b84ff;
  --psxpsd-green:#08a96b;
  --psxpsd-red:#ef3f4f;
  --psxpsd-amber:#f6a700;
  color:var(--psxpsd-ink);
}
.psxpsd-frontend-wrap:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#fbfdff 0%,#f4f8fc 100%)}
.psxpsd-frontend-head h1{color:#0b1f3a;font-weight:800;letter-spacing:-.02em}
.psxpsd-frontend-head p{color:#506176}
.psxpsd-frontend-head h1 span{background:linear-gradient(135deg,#0b5ed7,#0b84ff);box-shadow:0 5px 14px rgba(11,94,215,.20)}
.psxpsd-status-pill{background:#fff;border:1px solid #d7e2ee!important;border-radius:12px!important;box-shadow:0 5px 16px rgba(30,64,104,.07)!important}

.psxpsd-frontend-wrap .psxpsd-card{
  background:linear-gradient(180deg,#ffffff 0%,#fcfeff 100%)!important;
  border:1px solid #d8e3ee!important;
  border-radius:14px!important;
  box-shadow:0 7px 22px rgba(34,69,108,.075)!important;
}
.psxpsd-frontend-wrap .psxpsd-card h2{color:#10213a;font-weight:800;letter-spacing:-.01em}
.psxpsd-frontend-wrap .psxpsd-card p,.psxpsd-frontend-wrap .muted{color:#607185}
.psxpsd-overview-summary-card{background:linear-gradient(180deg,#ffffff 0%,#f9fcff 100%)!important}
.psxpsd-summary-tile{border-color:#d9e5f0!important;border-radius:13px!important;background:#fff!important;box-shadow:0 6px 16px rgba(36,72,112,.065)!important}
.psxpsd-summary-tile>span{color:#62748a!important}
.psxpsd-summary-tile>strong{color:#0d2443!important;font-weight:800}

.psxpsd-dashboard-tabs{background:#f5f9fd!important;border-color:#d7e3ef!important;border-radius:14px!important;box-shadow:0 5px 16px rgba(29,67,108,.065)!important}
.psxpsd-dashboard-tab{border-color:#cfdceb!important;background:#fff!important;color:#24415f!important;box-shadow:0 2px 7px rgba(30,65,104,.045)}
.psxpsd-dashboard-tab:hover{background:#edf6ff!important;border-color:#8fc2ff!important;color:#075fcb!important}
.psxpsd-dashboard-tab.active{background:linear-gradient(135deg,#0b64dc,#1688ff)!important;border-color:#0f72e8!important;color:#fff!important;box-shadow:0 7px 16px rgba(14,111,229,.25)!important}

.psxpsd-frontend-wrap .button,.psxpsd-front-actions .button,.period-btn,.signal-filter,.chart-mode{
  border-radius:9px!important;border-color:#cbd9e8!important;background:#fff!important;color:#204261!important;box-shadow:0 2px 6px rgba(27,62,101,.045);transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease
}
.psxpsd-frontend-wrap .button:hover,.psxpsd-front-actions .button:hover,.period-btn:hover,.signal-filter:hover,.chart-mode:hover{background:#eef7ff!important;border-color:#83bfff!important;transform:translateY(-1px);box-shadow:0 5px 12px rgba(15,94,180,.12)}
.period-btn.active,.signal-filter.active,.chart-mode.active{background:linear-gradient(135deg,#0b64dc,#1688ff)!important;border-color:#0f72e8!important;color:#fff!important;box-shadow:0 6px 14px rgba(14,111,229,.22)!important}
.psxpsd-search-input,.psxpsd-frontend-wrap select,.psxpsd-frontend-wrap input[type="text"],.psxpsd-frontend-wrap input[type="search"]{background:#fff!important;border-color:#cddbea!important;color:#10213a!important;border-radius:9px!important;box-shadow:inset 0 1px 2px rgba(25,57,92,.035)}
.psxpsd-search-input:focus,.psxpsd-frontend-wrap select:focus,.psxpsd-frontend-wrap input[type="text"]:focus,.psxpsd-frontend-wrap input[type="search"]:focus{outline:none!important;border-color:#4da3ff!important;box-shadow:0 0 0 3px rgba(20,132,255,.12)!important}

.table-wrap{background:#fff!important;border:1px solid #d9e4ef!important;border-radius:12px!important;box-shadow:0 3px 12px rgba(29,66,108,.045);overflow:auto}
.psxpsd-frontend-wrap .widefat{background:#fff!important;color:#12263f!important}
.psxpsd-frontend-wrap .widefat th{background:linear-gradient(180deg,#f8fbfe 0%,#eef5fb 100%)!important;color:#1d3550!important;border-bottom:1px solid #cfdeeb!important;font-weight:800!important}
.psxpsd-frontend-wrap .widefat td{border-bottom:1px solid #e6edf4!important}
.psxpsd-frontend-wrap .striped tbody tr:nth-child(odd) td{background:#fbfdff!important}
.psxpsd-frontend-wrap tbody tr:hover td{background:#eef7ff!important}
.psxpsd-frontend-wrap td.pos{background:#e6fbf1!important;color:#057248!important;font-weight:800!important}
.psxpsd-frontend-wrap td.neg{background:#fff0f1!important;color:#c62537!important;font-weight:800!important}
.psxpsd-frontend-wrap td.neutral{background:#f5f8fb!important;color:#586b80!important}

.signal{padding:5px 10px!important;border-radius:999px!important;border:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 2px 7px rgba(29,63,102,.06)}
.signal-leader{background:#dcfbed!important;color:#057447!important;border-color:#a8efd0!important}
.signal-improving{background:#e3f1ff!important;color:#075fc7!important;border-color:#b8dbff!important}
.signal-weakening{background:#fff2cf!important;color:#9a5d00!important;border-color:#ffd777!important}
.signal-laggard{background:#ffe6e9!important;color:#b32035!important;border-color:#ffc3ca!important}
.signal-no-data{background:#f1f5f9!important;color:#66788b!important;border-color:#dde6ef!important}
.confidence-high{background:#ddfaeb!important;color:#086f48!important}.confidence-medium{background:#fff0c7!important;color:#925800!important}.confidence-low{background:#ffe5e8!important;color:#ad2437!important}

/* Thin bright multi-colour score/breadth meters, matching the approved premium style. */
.psxpsd-meter-stack{display:inline-flex;flex-direction:column;align-items:center;gap:5px;min-width:92px}
.psxpsd-meter-stack--breadth{align-items:flex-start}
.psxpsd-score-meter{position:relative;display:block;width:88px;height:7px;border-radius:999px;background:linear-gradient(90deg,#ff4056 0%,#ff8a00 27%,#ffd326 52%,#61d53b 76%,#00b87a 100%);box-shadow:inset 0 1px 1px rgba(255,255,255,.85),0 2px 5px rgba(29,64,102,.16);overflow:hidden}
.psxpsd-score-meter:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.72) 0%,rgba(255,255,255,.08) 52%,rgba(0,0,0,.09) 100%);pointer-events:none;z-index:2}
.psxpsd-score-meter i{position:absolute;top:-2px;left:clamp(1px,var(--meter),calc(100% - 1px));width:4px;height:11px;border-radius:999px;background:#0b2c4f;box-shadow:0 0 0 2px #fff,0 2px 7px rgba(13,44,79,.28);transform:translateX(-50%);z-index:3}
.sector-score{height:24px!important;min-width:36px!important;padding:0 8px!important;background:#fff!important;color:#173550!important;border:1px solid #d6e2ed!important;box-shadow:0 2px 6px rgba(24,61,100,.06)!important}
.score-a{color:#08734a!important}.score-b{color:#3c7a22!important}.score-c{color:#52667b!important}.score-d{color:#9a6100!important}.score-e{color:#bd2638!important}

/* Brighter heatmap while retaining existing analytical class thresholds. */
.psxpsd-frontend-wrap .heat-pos-1{background:#e2faee!important;color:#087249!important}.psxpsd-frontend-wrap .heat-pos-2{background:#aef0c9!important;color:#075f41!important}.psxpsd-frontend-wrap .heat-pos-3{background:#18a66b!important;color:#fff!important}
.psxpsd-frontend-wrap .heat-neg-1{background:#ffe8e9!important;color:#b82a39!important}.psxpsd-frontend-wrap .heat-neg-2{background:#ffb3b8!important;color:#8e1c2b!important}.psxpsd-frontend-wrap .heat-neg-3{background:#eb4353!important;color:#fff!important}.psxpsd-frontend-wrap .heat-flat{background:#f1f5f9!important;color:#607185!important}
.multi-period-wrap #psxpsd-multi-table{background:#e7eef5!important}

/* Chart/rotation shells made visually brighter without changing data or datasets. */
#psxpsd-chart{background:#ffffff!important;border:1px solid #d9e4ef!important;box-shadow:inset 0 1px 0 #fff,0 4px 14px rgba(29,66,108,.055)}
.chart-card,.master-chart-card,.rotation-map-card{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)!important}
.master-chart-toolbar,.master-advanced-toolbar,.rotation-map-toolbar{background:#f7fbff!important;border-color:#d9e5f0!important;border-radius:10px!important}

.psxpsd-change-chip{background:#fff!important;border-color:#d3dfeb!important;color:#29445f!important;box-shadow:0 2px 7px rgba(25,60,98,.04)}
.psxpsd-change-chip:hover{background:#eef7ff!important;border-color:#8bc1fb!important}

@media(max-width:782px){
  .psxpsd-score-meter{width:78px}
  .psxpsd-meter-stack{min-width:80px}
  .psxpsd-frontend-wrap .psxpsd-card{border-radius:11px!important;box-shadow:0 4px 14px rgba(31,68,107,.065)!important}
}

/* v4.1.17 Best Stocks header/body alignment hardening */
.psxpsd-frontend-wrap #psxpsd-best-stocks-table{
  width:100%;
  min-width:1040px;
  table-layout:auto;
}
.psxpsd-frontend-wrap #psxpsd-best-stocks-table thead th{
  white-space:nowrap;
  vertical-align:middle;
}
.psxpsd-frontend-wrap #psxpsd-best-stocks-table tbody td{
  vertical-align:middle;
}
.psxpsd-frontend-wrap #psxpsd-best-stocks-table th:nth-child(4),
.psxpsd-frontend-wrap #psxpsd-best-stocks-table td:nth-child(4){min-width:170px;}
.psxpsd-frontend-wrap #psxpsd-best-stocks-table th:nth-child(10),
.psxpsd-frontend-wrap #psxpsd-best-stocks-table td:nth-child(10){min-width:150px;}
.psxpsd-frontend-wrap #psxpsd-best-stocks-table tbody tr > td:nth-child(n+11){display:none!important;}


/* v4.1.18 COMPLETE DESKTOP TABLE FIT — presentation only; no analytics/data changes. */
@media (min-width:1100px){
  /* Sector Ranking: fit all 12 columns inside the available desktop card instead of forcing a wide internal canvas. */
  .psxpsd-frontend-wrap #psxpsd-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
  }
  .psxpsd-frontend-wrap #psxpsd-table th,
  .psxpsd-frontend-wrap #psxpsd-table td{
    padding:9px 7px!important;
    font-size:13px!important;
    line-height:1.25!important;
    box-sizing:border-box;
  }
  .psxpsd-frontend-wrap #psxpsd-table th{white-space:normal!important;}
  .psxpsd-frontend-wrap #psxpsd-table td{white-space:normal;overflow-wrap:anywhere;}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(1){width:4.5%;}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(2){width:15%;}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(3){width:5.5%;}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(4){width:7%;}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(5){width:9%;}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(6){width:8.5%;}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(7){width:9%;}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(8){width:8.5%;}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(9){width:6%;}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(10){width:8%;}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(11){width:7%;}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(12){width:11%;}
  .psxpsd-frontend-wrap #psxpsd-table .psxpsd-meter-stack{min-width:72px!important;}
  .psxpsd-frontend-wrap #psxpsd-table .psxpsd-score-meter{width:72px!important;}

  /* Rotation heatmap: fit Sector + all periods + Outperform on one desktop view. */
  .psxpsd-frontend-wrap .multi-period-wrap{
    overflow-x:hidden!important;
    overflow-y:auto;
  }
  .psxpsd-frontend-wrap #psxpsd-multi-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
  }
  .psxpsd-frontend-wrap #psxpsd-multi-table th,
  .psxpsd-frontend-wrap #psxpsd-multi-table td{
    padding:10px 8px!important;
    font-size:13px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    box-sizing:border-box;
  }
  .psxpsd-frontend-wrap #psxpsd-multi-table th:first-child,
  .psxpsd-frontend-wrap #psxpsd-multi-table td:first-child{
    width:20%!important;
    white-space:normal!important;
  }
  .psxpsd-frontend-wrap #psxpsd-multi-table th:not(:first-child),
  .psxpsd-frontend-wrap #psxpsd-multi-table td:not(:first-child){width:8%!important;}
  .psxpsd-frontend-wrap #psxpsd-multi-table th:last-child,
  .psxpsd-frontend-wrap #psxpsd-multi-table td:last-child{width:8%!important;}
}

/* Keep safe horizontal scrolling on tablets/phones where fitting every column would make text unreadable. */
@media (max-width:1099px){
  .psxpsd-frontend-wrap .table-wrap,
  .psxpsd-frontend-wrap .multi-period-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch;}
  .psxpsd-frontend-wrap #psxpsd-table{min-width:1180px!important;}
  .psxpsd-frontend-wrap #psxpsd-multi-table{min-width:980px!important;}
}


/* v4.1.20 ORGANIZED WORKSPACE — layout-only refinement; analytics/data formulas unchanged. */
.psxpsd-status-pill{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.psxpsd-status-sep{color:#a7b4c4}
.psxpsd-controls{justify-content:flex-start!important}
.psxpsd-secondary-search{margin-top:10px}

/* Dedicated-workspace toolbars: filters left, actions right, with consistent spacing. */
#psxpsd-ranking-card .section-title,#psxpsd-best-stocks-card .section-title,#psxpsd-watchlist-card .section-title{align-items:center}
#psxpsd-ranking-card .signal-filter-bar,#psxpsd-best-stocks-card .signal-filter-bar{margin-top:10px}
#psxpsd-ranking-card .score-filter-bar{margin-top:8px}
#psxpsd-watchlist-card .psxpsd-watch-alert-box{display:grid;grid-template-columns:minmax(280px,1fr) auto;gap:8px 16px;align-items:center}
#psxpsd-watchlist-card .psxpsd-watch-alert-box .button-row{grid-column:2;grid-row:1 / span 2;align-self:center;justify-content:flex-end}
.watchlist-grid h3{font-size:15px;margin-bottom:10px}

/* Overview = executive summary. Reuse live data, but suppress duplicated work controls and cap preview rows. */
.psxpsd-overview-mode #psxpsd-ranking-card .signal-filter-bar,
.psxpsd-overview-mode #psxpsd-ranking-card .filter-help,
.psxpsd-overview-mode #psxpsd-ranking-card .psxpsd-secondary-search,
.psxpsd-overview-mode #psxpsd-ranking-card .psxpsd-title-actions,
.psxpsd-overview-mode #psxpsd-rotation-card .section-title .button,
.psxpsd-overview-mode #psxpsd-rotation-card .muted,
.psxpsd-overview-mode #psxpsd-best-stocks-card .best-stocks-search-row,
.psxpsd-overview-mode #psxpsd-best-stocks-card .signal-filter-bar,
.psxpsd-overview-mode #psxpsd-best-stocks-card .psxpsd-title-actions{display:none!important}
.psxpsd-overview-mode #psxpsd-ranking-card .section-title p:after{content:" · Top sectors preview";font-weight:700;color:#1769e0}
.psxpsd-overview-mode #psxpsd-rotation-card .section-title p:after{content:" · Latest changes preview";font-weight:700;color:#1769e0}
.psxpsd-overview-mode #psxpsd-best-stocks-card .section-title p:after{content:" · Top stocks preview";font-weight:700;color:#1769e0}
.psxpsd-overview-mode #psxpsd-table tbody tr:nth-child(n+7),
.psxpsd-overview-mode #psxpsd-rotation-table tbody tr:nth-child(n+6),
.psxpsd-overview-mode #psxpsd-best-stocks-table tbody tr:nth-child(n+11){display:none}
.psxpsd-overview-mode #psxpsd-ranking-card,
.psxpsd-overview-mode #psxpsd-rotation-card,
.psxpsd-overview-mode #psxpsd-best-stocks-card{margin-bottom:14px}

/* Master Chart controls grouped into readable rows without changing functions. */
#psxpsd-master-chart-card .master-chart-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#psxpsd-master-chart-card .master-advanced-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px}
#psxpsd-master-chart-card .master-selector-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#psxpsd-master-chart-card .master-selector-actions .psxpsd-search-input{flex:1 1 360px;min-width:240px}

/* Rotation workspace owns both table/heatmap and RS-vs-Momentum map. */
#psxpsd-rotation-map-card{margin-top:14px}

/* Sector drill-down: chart now appears before history in markup. */
#psxpsd-sector-chart-card{margin-top:14px}
#psxpsd-history-card{margin-top:14px}

@media(max-width:782px){
  .psxpsd-status-pill{white-space:normal;flex-wrap:wrap}
  #psxpsd-watchlist-card .psxpsd-watch-alert-box{grid-template-columns:1fr}
  #psxpsd-watchlist-card .psxpsd-watch-alert-box .button-row{grid-column:auto;grid-row:auto;justify-content:flex-start}
  #psxpsd-master-chart-card .master-chart-toolbar{align-items:stretch}
}


/* v4.1.22 FINAL ORGANIZATION POLISH — layout only; calculations/data logic unchanged. */
/* Empty notices must collapse completely. This also removes the thin stale pink/red strip after a cleared error notice. */
.psxpsd-errors:empty{display:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;min-height:0!important}

/* Overview stays a true preview: 5 daily changes, 6 ranked sectors, no unnecessary vertical scrollbars. */
.psxpsd-overview-mode #psxpsd-rotation-table tbody tr:nth-child(n+6){display:none!important}
.psxpsd-overview-mode #psxpsd-table tbody tr:nth-child(n+7){display:none!important}
.psxpsd-overview-mode #psxpsd-rotation-card .rotation-table-wrap,
.psxpsd-overview-mode #psxpsd-ranking-card .table-wrap{max-height:none!important;overflow-y:visible!important}

/* Master Chart: primary analysis choices in one clean row; secondary display tools in the next row. */
#psxpsd-master-chart-card .master-chart-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important}
#psxpsd-master-chart-card .master-primary-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-left:auto}
#psxpsd-master-chart-card .master-period-label{display:inline-flex;align-items:center;gap:7px;font-weight:700;white-space:nowrap}
#psxpsd-master-chart-card .master-period-label select{min-width:82px}
#psxpsd-master-chart-card .master-advanced-toolbar{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;margin-top:9px!important}
@media(max-width:900px){
  #psxpsd-master-chart-card .master-primary-actions{width:100%;justify-content:flex-start;margin-left:0}
}
@media(max-width:600px){
  #psxpsd-master-chart-card .master-primary-actions{align-items:stretch}
  #psxpsd-master-chart-card .master-period-label{width:100%;justify-content:space-between}
}

/* v4.1.23 Market Snapshot status colors + What Changed status colors. Visual only. */
.psxpsd-summary-tile>strong.snapshot-green{color:#057447!important}
.psxpsd-summary-tile>strong.snapshot-blue{color:#075fc7!important}
.psxpsd-summary-tile>strong.snapshot-red{color:#b32035!important}
.psxpsd-summary-tile>strong.snapshot-amber{color:#9a5d00!important}
.psxpsd-summary-tile>strong.snapshot-neutral{color:#0d2443!important}
.psxpsd-change-chip .change-flow{display:inline-flex;align-items:center;gap:5px;font-size:11px}
.psxpsd-change-chip .change-state{font-weight:800}
.psxpsd-change-chip .change-state-green{color:#057447!important}
.psxpsd-change-chip .change-state-blue{color:#075fc7!important}
.psxpsd-change-chip .change-state-amber{color:#9a5d00!important}
.psxpsd-change-chip .change-state-red{color:#b32035!important}
.psxpsd-change-chip .change-state-neutral{color:#64748b!important}
.psxpsd-change-chip .change-arrow{color:#94a3b8!important;font-weight:700}


/* 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.38 WATCHLIST LAYOUT + MOBILE RESPONSIVE POLISH — presentation only. */
/* Watchlist tables need full-width rows: the expanded stock table is too dense for a two-column split. */
#psxpsd-watchlist-card .watchlist-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:18px!important;
  align-items:start;
}
#psxpsd-watchlist-card .watchlist-grid>div{min-width:0;width:100%}
#psxpsd-watchlist-card .table-wrap{width:100%;max-width:100%;box-sizing:border-box}

@media (min-width:1100px){
  #psxpsd-watchlist-card #psxpsd-watch-sectors,
  #psxpsd-watchlist-card #psxpsd-watch-stocks{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
  }
  #psxpsd-watchlist-card #psxpsd-watch-sectors th,
  #psxpsd-watchlist-card #psxpsd-watch-sectors td,
  #psxpsd-watchlist-card #psxpsd-watch-stocks th,
  #psxpsd-watchlist-card #psxpsd-watch-stocks td{
    padding:9px 8px!important;
    font-size:12px!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
    box-sizing:border-box;
  }
  #psxpsd-watchlist-card #psxpsd-watch-sectors th:nth-child(1){width:19%}
  #psxpsd-watchlist-card #psxpsd-watch-sectors th:nth-child(2){width:9%}
  #psxpsd-watchlist-card #psxpsd-watch-sectors th:nth-child(3){width:10%}
  #psxpsd-watchlist-card #psxpsd-watch-sectors th:nth-child(4){width:8%}
  #psxpsd-watchlist-card #psxpsd-watch-sectors th:nth-child(5){width:8%}
  #psxpsd-watchlist-card #psxpsd-watch-sectors th:nth-child(6){width:9%}
  #psxpsd-watchlist-card #psxpsd-watch-sectors th:nth-child(7){width:7%}
  #psxpsd-watchlist-card #psxpsd-watch-sectors th:nth-child(8){width:14%}
  #psxpsd-watchlist-card #psxpsd-watch-sectors th:nth-child(9){width:16%}

  #psxpsd-watchlist-card #psxpsd-watch-stocks th:nth-child(1){width:7%}
  #psxpsd-watchlist-card #psxpsd-watch-stocks th:nth-child(2){width:24%}
  #psxpsd-watchlist-card #psxpsd-watch-stocks th:nth-child(3){width:8%}
  #psxpsd-watchlist-card #psxpsd-watch-stocks th:nth-child(4){width:8%}
  #psxpsd-watchlist-card #psxpsd-watch-stocks th:nth-child(5){width:10%}
  #psxpsd-watchlist-card #psxpsd-watch-stocks th:nth-child(6){width:7%}
  #psxpsd-watchlist-card #psxpsd-watch-stocks th:nth-child(7){width:8%}
  #psxpsd-watchlist-card #psxpsd-watch-stocks th:nth-child(8){width:13%}
  #psxpsd-watchlist-card #psxpsd-watch-stocks th:nth-child(9){width:15%}
}

/* Tablet: preserve legibility with internal scrolling rather than squeezing columns. */
@media (max-width:1099px){
  #psxpsd-watchlist-card #psxpsd-watch-sectors{min-width:980px!important}
  #psxpsd-watchlist-card #psxpsd-watch-stocks{min-width:1080px!important}
}

/* Mobile dashboard: keep page itself fixed-width while dense content scrolls inside its own card. */
@media (max-width:782px){
  .psxpsd-frontend-head,.psxpsd-frontend-wrap{box-sizing:border-box;max-width:100%!important;overflow:visible}
  .psxpsd-frontend-wrap{padding-left:8px!important;padding-right:8px!important}
  .psxpsd-card{max-width:100%;box-sizing:border-box;overflow:hidden}

  /* Navigation/timeframes remain one-line swipe controls. */
  .psxpsd-dashboard-tabs,.period-buttons,.signal-filter-bar,.chart-mode-bar{
    max-width:100%;overflow-x:auto!important;overflow-y:hidden;flex-wrap:nowrap!important;
    -webkit-overflow-scrolling:touch;scrollbar-width:thin;
  }
  .psxpsd-dashboard-tab,.period-btn,.signal-filter,.chart-mode{flex:0 0 auto;white-space:nowrap}

  /* Card headings/actions stack cleanly on narrow screens. */
  .section-title{align-items:stretch!important;gap:8px!important}
  .psxpsd-title-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;width:100%}
  .psxpsd-title-actions .button{width:100%;min-width:0;white-space:normal;text-align:center}
  #psxpsd-watchlist-card .psxpsd-watch-alert-box{padding:10px!important}
  #psxpsd-watchlist-card .psxpsd-watch-alert-box .button-row{display:grid;grid-template-columns:1fr;gap:7px;width:100%}
  #psxpsd-watchlist-card .psxpsd-watch-alert-box .button-row .button{width:100%;min-height:44px;white-space:normal}

  /* All dense tables scroll inside the card. Identity column remains visible. */
  .psxpsd-frontend-wrap .table-wrap,
  .psxpsd-frontend-wrap .multi-period-wrap,
  .psxpsd-frontend-wrap .rotation-table-wrap{
    width:100%;max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;
  }
  .psxpsd-frontend-wrap table th,.psxpsd-frontend-wrap table td{font-size:12px!important;padding:8px 8px!important}
  #psxpsd-watchlist-card #psxpsd-watch-sectors,
  #psxpsd-watchlist-card #psxpsd-watch-stocks{table-layout:auto!important}

  /* Sticky first column is especially useful while swiping wide analytics tables. */
  .psxpsd-frontend-wrap #psxpsd-table th:first-child,
  .psxpsd-frontend-wrap #psxpsd-table td:first-child,
  .psxpsd-frontend-wrap #psxpsd-stock-table th:first-child,
  .psxpsd-frontend-wrap #psxpsd-stock-table td:first-child,
  .psxpsd-frontend-wrap #psxpsd-best-stocks-table th:first-child,
  .psxpsd-frontend-wrap #psxpsd-best-stocks-table td:first-child,
  .psxpsd-frontend-wrap #psxpsd-rotation-table th:first-child,
  .psxpsd-frontend-wrap #psxpsd-rotation-table td:first-child,
  .psxpsd-frontend-wrap #psxpsd-multi-table th:first-child,
  .psxpsd-frontend-wrap #psxpsd-multi-table td:first-child,
  .psxpsd-frontend-wrap #psxpsd-watch-sectors th:first-child,
  .psxpsd-frontend-wrap #psxpsd-watch-sectors td:first-child,
  .psxpsd-frontend-wrap #psxpsd-watch-stocks th:first-child,
  .psxpsd-frontend-wrap #psxpsd-watch-stocks td:first-child{
    position:sticky;left:0;z-index:3;background:#fff;box-shadow:2px 0 0 #e2e8f0;
  }
  .psxpsd-frontend-wrap table thead th:first-child{z-index:6;background:#f3f7fb!important}
  .psxpsd-frontend-wrap .striped tbody tr:nth-child(odd) td:first-child{background:#fafbfc}

  /* Search and toolbars become touch-friendly. */
  .psxpsd-finder-wrap,.table-search-row,.best-stocks-search-row{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
  .psxpsd-search-input{width:100%!important;min-width:0!important;box-sizing:border-box}
  .psxpsd-finder-wrap .button,.table-search-row .button,.best-stocks-search-row .button{width:100%!important;min-height:44px}
  #psxpsd-master-chart-card .master-primary-actions,
  #psxpsd-master-chart-card .master-advanced-toolbar,
  #psxpsd-master-chart-card .master-selector-actions,
  .rotation-map-toolbar{max-width:100%;box-sizing:border-box}

  /* Charts stay readable with a smaller mobile canvas and local horizontal swipe when necessary. */
  .chart-shell,.master-chart-shell,.rotation-map-shell{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  #psxpsd-chart{min-width:660px!important;height:330px!important}
  #psxpsd-master-chart{min-width:720px!important;height:400px!important}
  #psxpsd-rotation-map{min-width:720px!important;height:430px!important}
}

@media (max-width:480px){
  .psxpsd-frontend-wrap{padding-left:5px!important;padding-right:5px!important}
  .psxpsd-card{padding:9px!important}
  .psxpsd-title-actions{grid-template-columns:1fr 1fr}
  .psxpsd-frontend-wrap .button{min-height:42px}
  .psxpsd-frontend-wrap #psxpsd-watch-sectors{min-width:900px!important}
  .psxpsd-frontend-wrap #psxpsd-watch-stocks{min-width:1040px!important}
}

/* v4.1.39 global stock-universe filter */
.psxpsd-global-filter-row{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px}.psxpsd-global-filter-row .period-buttons{flex:0 0 auto;min-width:max-content;overflow:visible}.psxpsd-universe-toggle{display:flex;gap:6px;flex:0 0 auto;padding:4px;border:1px solid #d8e3ef;border-radius:9px;background:#f8fbff}.universe-btn{appearance:none;border:1px solid #cad8e6;background:#fff;color:#24466a;border-radius:7px;padding:7px 11px;font-weight:700;font-size:12px;cursor:pointer;white-space:nowrap}.universe-btn:hover{background:#eef6ff}.universe-btn.active{background:#1684ef;color:#fff;border-color:#1684ef}.universe-btn:focus-visible{outline:2px solid #1684ef;outline-offset:2px}.psxpsd-shariah-badge{display:inline-block;margin-left:6px;padding:2px 5px;border-radius:999px;background:#e7f8ee;color:#087a3d;border:1px solid #a9e4c2;font-size:9px;font-weight:800;line-height:1.2;vertical-align:middle;letter-spacing:.02em;white-space:nowrap}@media(max-width:782px){.psxpsd-global-filter-row{display:flex;flex-wrap:nowrap}.psxpsd-universe-toggle{margin:0;width:max-content;max-width:none;overflow:visible}.universe-btn{min-height:42px}.psxpsd-shariah-badge{font-size:8px;margin-left:4px}}

/* v4.1.49 Sector Screener */
#psxpsd-sector-screener-card .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
#psxpsd-sector-screener-table{min-width:1050px}
#psxpsd-sector-screener-table th,#psxpsd-sector-screener-table td{white-space:nowrap;text-align:right}
#psxpsd-sector-screener-table th:first-child,#psxpsd-sector-screener-table td:first-child{width:64px;min-width:64px;text-align:center;position:sticky;left:0;z-index:3;background:inherit}
#psxpsd-sector-screener-table th:nth-child(2),#psxpsd-sector-screener-table td:nth-child(2){min-width:230px;text-align:left;position:sticky;left:64px;z-index:2;background:inherit}
#psxpsd-sector-screener-table thead th:first-child,#psxpsd-sector-screener-table thead th:nth-child(2){z-index:5}
#psxpsd-sector-screener-table .psxpsd-pos{font-weight:700;color:#16803a}
#psxpsd-sector-screener-table .psxpsd-neg{font-weight:700;color:#b42318}
@media(max-width:782px){#psxpsd-sector-screener-card{padding:10px}#psxpsd-sector-screener-table{min-width:980px}#psxpsd-sector-screener-table th,#psxpsd-sector-screener-table td{padding:8px 9px;font-size:12px}}

/* v4.1.50: Sector Screener keeps global timeframe controls; Shariah-only is hidden by JS only on this tab. */
#psxpsd-sector-screener-table th:nth-child(3),#psxpsd-sector-screener-table td:nth-child(3){min-width:160px}
/* v4.1.51 Above SMA 20-style Sector Screener */
#psxpsd-sector-screener-table{min-width:2450px!important}
#psxpsd-sector-screener-table th,#psxpsd-sector-screener-table td{vertical-align:middle;text-align:center;white-space:nowrap}
#psxpsd-sector-screener-table th:first-child,#psxpsd-sector-screener-table td:first-child{position:sticky;left:0;z-index:4;background:#fff;text-align:left;min-width:210px}
.psxpsd-ss-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.psxpsd-ss-toolbar .active{background:#1677e8;color:#fff;border-color:#1677e8}
.psxpsd-ss-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:10px 0 16px}.psxpsd-ss-controls label{font-weight:700;display:flex;flex-direction:column;gap:5px}.psxpsd-ss-controls select,.psxpsd-ss-controls input{min-width:150px;padding:7px}
.psxpsd-rsi-note{padding:10px 14px;border:1px solid #cfe0f5;border-radius:8px;background:#f5f9ff;margin:10px 0 14px;color:#355b88}.ss-rsi{width:175px;min-height:95px}.ss-rsi b{display:block;text-align:left}.ss-rsi svg{display:block;width:165px;height:58px}.ss-rsi small{display:block;text-align:center}.ss-entry{display:inline-block;padding:5px 9px;border-radius:12px;font-weight:800;background:#eef2f6}.ss-entry.strong{background:#08a343;color:#fff}
@media(max-width:782px){#psxpsd-sector-screener-table{min-width:2350px!important}.psxpsd-ss-controls{display:grid;grid-template-columns:1fr 1fr}.ss-rsi{width:155px}.ss-rsi svg{width:150px}}

/* v4.1.52 Sector Screener: Daily/Weekly/Monthly technical modes and corrected index terminology */
#psxpsd-sector-screener-card{max-width:none!important;width:100%!important;box-sizing:border-box}
#psxpsd-sector-screener-card .psxpsd-sector-screener-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
#psxpsd-sector-screener-table{min-width:2550px!important;width:max-content!important;table-layout:auto!important}
#psxpsd-sector-screener-table th,#psxpsd-sector-screener-table td{padding:10px 12px!important}
#psxpsd-sector-screener-table th:first-child,#psxpsd-sector-screener-table td:first-child{width:190px!important;min-width:190px!important;max-width:190px!important;left:0!important;text-align:left!important;position:sticky!important;z-index:6!important;background:#fff!important}
#psxpsd-sector-screener-table th:nth-child(2),#psxpsd-sector-screener-table td:nth-child(2){width:150px!important;min-width:150px!important;left:190px!important;text-align:center!important;position:sticky!important;z-index:5!important;background:#fff!important}
#psxpsd-sector-screener-table thead th:first-child,#psxpsd-sector-screener-table thead th:nth-child(2){background:linear-gradient(180deg,#f8fbfe 0%,#eef5fb 100%)!important;z-index:8!important}
#psxpsd-sector-screener-table th:nth-child(3),#psxpsd-sector-screener-table td:nth-child(3){min-width:180px!important}
#psxpsd-sector-screener-table th:nth-child(4),#psxpsd-sector-screener-table td:nth-child(4),#psxpsd-sector-screener-table th:nth-child(5),#psxpsd-sector-screener-table td:nth-child(5),#psxpsd-sector-screener-table th:nth-child(6),#psxpsd-sector-screener-table td:nth-child(6){min-width:190px!important}
.psxpsd-ss-timeframes{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 6px}
.psxpsd-ss-timeframes>span{font-weight:800;color:#1d3550;margin-right:2px}
.psxpsd-ss-timeframes .ss-tf.active{background:#1677e8!important;color:#fff!important;border-color:#1677e8!important}
#psxpsd-sector-screener-table .psxpsd-ss-hidden-col{display:none!important}
@media(max-width:782px){
  #psxpsd-sector-screener-table{min-width:2400px!important}
  #psxpsd-sector-screener-table th:first-child,#psxpsd-sector-screener-table td:first-child{width:155px!important;min-width:155px!important;max-width:155px!important}
  #psxpsd-sector-screener-table th:nth-child(2),#psxpsd-sector-screener-table td:nth-child(2){width:125px!important;min-width:125px!important;left:155px!important}
  .psxpsd-ss-timeframes{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}
  .psxpsd-ss-timeframes>span,.psxpsd-ss-timeframes .ss-tf{flex:0 0 auto}
}


/* v4.1.53 Sector Screener: full-page fit + contained horizontal scroll */
#psxpsd-sector-screener-card{width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
#psxpsd-sector-screener-card .psxpsd-sector-screener-wrap{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain;scrollbar-gutter:stable both-edges}
#psxpsd-sector-screener-table{width:2100px!important;min-width:2100px!important;max-width:none!important;table-layout:fixed!important;margin:0!important}
#psxpsd-sector-screener-table th,#psxpsd-sector-screener-table td{padding:8px 8px!important;font-size:13px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
#psxpsd-sector-screener-table th:nth-child(1),#psxpsd-sector-screener-table td:nth-child(1){width:170px!important;min-width:170px!important;max-width:170px!important;left:0!important}
#psxpsd-sector-screener-table th:nth-child(2),#psxpsd-sector-screener-table td:nth-child(2){width:120px!important;min-width:120px!important;max-width:120px!important;left:170px!important}
#psxpsd-sector-screener-table th:nth-child(3),#psxpsd-sector-screener-table td:nth-child(3){width:145px!important;min-width:145px!important;max-width:145px!important}
#psxpsd-sector-screener-table th:nth-child(4),#psxpsd-sector-screener-table td:nth-child(4),
#psxpsd-sector-screener-table th:nth-child(5),#psxpsd-sector-screener-table td:nth-child(5),
#psxpsd-sector-screener-table th:nth-child(6),#psxpsd-sector-screener-table td:nth-child(6){width:155px!important;min-width:155px!important;max-width:155px!important}
#psxpsd-sector-screener-table th:nth-child(7),#psxpsd-sector-screener-table td:nth-child(7),
#psxpsd-sector-screener-table th:nth-child(8),#psxpsd-sector-screener-table td:nth-child(8){width:62px!important}
#psxpsd-sector-screener-table th:nth-child(9),#psxpsd-sector-screener-table td:nth-child(9){width:78px!important}
#psxpsd-sector-screener-table th:nth-child(10),#psxpsd-sector-screener-table td:nth-child(10){width:62px!important}
#psxpsd-sector-screener-table th:nth-child(11),#psxpsd-sector-screener-table td:nth-child(11){width:90px!important}
#psxpsd-sector-screener-table th:nth-child(12),#psxpsd-sector-screener-table td:nth-child(12){width:118px!important}
#psxpsd-sector-screener-table th:nth-child(13),#psxpsd-sector-screener-table td:nth-child(13){width:110px!important}
#psxpsd-sector-screener-table th:nth-child(14),#psxpsd-sector-screener-table td:nth-child(14){width:135px!important}
#psxpsd-sector-screener-table th:nth-child(15),#psxpsd-sector-screener-table td:nth-child(15){width:135px!important}
#psxpsd-sector-screener-table th:nth-child(16),#psxpsd-sector-screener-table td:nth-child(16){width:120px!important}
#psxpsd-sector-screener-table .ss-rsi{width:139px!important;min-width:139px!important}
#psxpsd-sector-screener-table .ss-rsi svg{width:137px!important;height:54px!important}
@media(max-width:782px){
  #psxpsd-sector-screener-card{padding:10px!important}
  #psxpsd-sector-screener-table{width:1980px!important;min-width:1980px!important}
  #psxpsd-sector-screener-table th,#psxpsd-sector-screener-table td{padding:7px 7px!important;font-size:12px!important}
  #psxpsd-sector-screener-table th:nth-child(1),#psxpsd-sector-screener-table td:nth-child(1){width:145px!important;min-width:145px!important;max-width:145px!important}
  #psxpsd-sector-screener-table th:nth-child(2),#psxpsd-sector-screener-table td:nth-child(2){width:105px!important;min-width:105px!important;max-width:105px!important;left:145px!important}
}


/* v4.1.54 Sector Screener: desktop full-page fit without sacrificing RSI mini charts */
#psxpsd-sector-screener-card .psxpsd-sector-screener-wrap{
  width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;
}
#psxpsd-sector-screener-table{
  width:1575px!important;min-width:1575px!important;max-width:1575px!important;table-layout:fixed!important;
}
#psxpsd-sector-screener-table th,#psxpsd-sector-screener-table td{
  padding:7px 5px!important;font-size:12px!important;line-height:1.22!important;
}
#psxpsd-sector-screener-table thead th{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.15!important}
#psxpsd-sector-screener-table th:nth-child(1),#psxpsd-sector-screener-table td:nth-child(1){width:150px!important;min-width:150px!important;max-width:150px!important;left:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal!important}
#psxpsd-sector-screener-table th:nth-child(2),#psxpsd-sector-screener-table td:nth-child(2){width:100px!important;min-width:100px!important;max-width:100px!important;left:150px!important}
#psxpsd-sector-screener-table th:nth-child(3),#psxpsd-sector-screener-table td:nth-child(3){width:120px!important;min-width:120px!important;max-width:120px!important}
#psxpsd-sector-screener-table th:nth-child(4),#psxpsd-sector-screener-table td:nth-child(4),
#psxpsd-sector-screener-table th:nth-child(5),#psxpsd-sector-screener-table td:nth-child(5),
#psxpsd-sector-screener-table th:nth-child(6),#psxpsd-sector-screener-table td:nth-child(6){width:135px!important;min-width:135px!important;max-width:135px!important}
#psxpsd-sector-screener-table th:nth-child(7),#psxpsd-sector-screener-table td:nth-child(7),
#psxpsd-sector-screener-table th:nth-child(8),#psxpsd-sector-screener-table td:nth-child(8){width:50px!important;min-width:50px!important;max-width:50px!important}
#psxpsd-sector-screener-table th:nth-child(9),#psxpsd-sector-screener-table td:nth-child(9){width:65px!important;min-width:65px!important;max-width:65px!important}
#psxpsd-sector-screener-table th:nth-child(10),#psxpsd-sector-screener-table td:nth-child(10){width:50px!important;min-width:50px!important;max-width:50px!important}
#psxpsd-sector-screener-table th:nth-child(11),#psxpsd-sector-screener-table td:nth-child(11){width:75px!important;min-width:75px!important;max-width:75px!important}
#psxpsd-sector-screener-table th:nth-child(12),#psxpsd-sector-screener-table td:nth-child(12){width:100px!important;min-width:100px!important;max-width:100px!important;white-space:normal!important}
#psxpsd-sector-screener-table th:nth-child(13),#psxpsd-sector-screener-table td:nth-child(13){width:90px!important;min-width:90px!important;max-width:90px!important}
#psxpsd-sector-screener-table th:nth-child(14),#psxpsd-sector-screener-table td:nth-child(14){width:110px!important;min-width:110px!important;max-width:110px!important;white-space:normal!important}
#psxpsd-sector-screener-table th:nth-child(15),#psxpsd-sector-screener-table td:nth-child(15){width:110px!important;min-width:110px!important;max-width:110px!important;white-space:normal!important}
#psxpsd-sector-screener-table th:nth-child(16),#psxpsd-sector-screener-table td:nth-child(16){width:100px!important;min-width:100px!important;max-width:100px!important;white-space:normal!important}
#psxpsd-sector-screener-table .ss-rsi{width:119px!important;min-width:119px!important;max-width:119px!important}
#psxpsd-sector-screener-table .ss-rsi svg{width:117px!important;height:50px!important}
@media (min-width:1650px){
  #psxpsd-sector-screener-card .psxpsd-sector-screener-wrap{overflow-x:hidden!important}
}
@media (max-width:1649px){
  #psxpsd-sector-screener-card .psxpsd-sector-screener-wrap{overflow-x:auto!important}
}
@media (max-width:782px){
  #psxpsd-sector-screener-table{width:1575px!important;min-width:1575px!important;max-width:1575px!important}
  #psxpsd-sector-screener-table th,#psxpsd-sector-screener-table td{font-size:11px!important;padding:6px 4px!important}
}


/* v4.1.55 Sector Screener final desktop-fit override.
   Layout only: remove inherited inner vertical scroller, use border-box widths,
   fit normal desktop pages, preserve local horizontal scroll on narrower screens. */
#psxpsd-sector-screener-card{
  width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;
}
#psxpsd-sector-screener-card .psxpsd-sector-screener-wrap{
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;max-height:none!important;
  overflow-x:auto!important;overflow-y:visible!important;
  scrollbar-gutter:auto!important;-webkit-overflow-scrolling:touch!important;
}
#psxpsd-sector-screener-table{
  width:1490px!important;min-width:1490px!important;max-width:1490px!important;
  table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;
  margin:0!important;box-sizing:border-box!important;
}
#psxpsd-sector-screener-table th,#psxpsd-sector-screener-table td{
  box-sizing:border-box!important;padding:6px 4px!important;font-size:11.5px!important;
  line-height:1.2!important;vertical-align:middle!important;
}
#psxpsd-sector-screener-table thead th{
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
  line-height:1.12!important;
}
#psxpsd-sector-screener-table th:nth-child(1),#psxpsd-sector-screener-table td:nth-child(1){width:145px!important;min-width:145px!important;max-width:145px!important;left:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
#psxpsd-sector-screener-table th:nth-child(2),#psxpsd-sector-screener-table td:nth-child(2){width:95px!important;min-width:95px!important;max-width:95px!important;left:145px!important}
#psxpsd-sector-screener-table th:nth-child(3),#psxpsd-sector-screener-table td:nth-child(3){width:112px!important;min-width:112px!important;max-width:112px!important}
#psxpsd-sector-screener-table th:nth-child(4),#psxpsd-sector-screener-table td:nth-child(4),
#psxpsd-sector-screener-table th:nth-child(5),#psxpsd-sector-screener-table td:nth-child(5),
#psxpsd-sector-screener-table th:nth-child(6),#psxpsd-sector-screener-table td:nth-child(6){width:128px!important;min-width:128px!important;max-width:128px!important}
#psxpsd-sector-screener-table th:nth-child(7),#psxpsd-sector-screener-table td:nth-child(7),
#psxpsd-sector-screener-table th:nth-child(8),#psxpsd-sector-screener-table td:nth-child(8){width:48px!important;min-width:48px!important;max-width:48px!important}
#psxpsd-sector-screener-table th:nth-child(9),#psxpsd-sector-screener-table td:nth-child(9){width:61px!important;min-width:61px!important;max-width:61px!important}
#psxpsd-sector-screener-table th:nth-child(10),#psxpsd-sector-screener-table td:nth-child(10){width:48px!important;min-width:48px!important;max-width:48px!important}
#psxpsd-sector-screener-table th:nth-child(11),#psxpsd-sector-screener-table td:nth-child(11){width:72px!important;min-width:72px!important;max-width:72px!important}
#psxpsd-sector-screener-table th:nth-child(12),#psxpsd-sector-screener-table td:nth-child(12){width:96px!important;min-width:96px!important;max-width:96px!important;white-space:normal!important}
#psxpsd-sector-screener-table th:nth-child(13),#psxpsd-sector-screener-table td:nth-child(13){width:84px!important;min-width:84px!important;max-width:84px!important}
#psxpsd-sector-screener-table th:nth-child(14),#psxpsd-sector-screener-table td:nth-child(14){width:102px!important;min-width:102px!important;max-width:102px!important;white-space:normal!important}
#psxpsd-sector-screener-table th:nth-child(15),#psxpsd-sector-screener-table td:nth-child(15){width:104px!important;min-width:104px!important;max-width:104px!important;white-space:normal!important}
#psxpsd-sector-screener-table th:nth-child(16),#psxpsd-sector-screener-table td:nth-child(16){width:92px!important;min-width:92px!important;max-width:92px!important;white-space:normal!important}
#psxpsd-sector-screener-table .ss-rsi{width:112px!important;min-width:112px!important;max-width:112px!important}
#psxpsd-sector-screener-table .ss-rsi svg{width:110px!important;height:49px!important}
#psxpsd-sector-screener-table td:nth-child(7),#psxpsd-sector-screener-table td:nth-child(8),
#psxpsd-sector-screener-table td:nth-child(10){overflow:visible!important;text-overflow:clip!important}
@media (min-width:1600px){
  #psxpsd-sector-screener-card .psxpsd-sector-screener-wrap{overflow-x:hidden!important}
}
@media (max-width:1599px){
  #psxpsd-sector-screener-card .psxpsd-sector-screener-wrap{overflow-x:auto!important}
}
@media (max-width:782px){
  #psxpsd-sector-screener-card{padding:10px!important}
  #psxpsd-sector-screener-table{width:1490px!important;min-width:1490px!important;max-width:1490px!important}
  #psxpsd-sector-screener-table th,#psxpsd-sector-screener-table td{font-size:11px!important;padding:6px 4px!important}
}
\n\n/* v4.1.56 Sector Screener readability + RSI clarity. Layout/visual only. */\n#psxpsd-sector-screener-card .psxpsd-sector-screener-wrap{\n  overflow-x:auto!important;overflow-y:hidden!important;\n}\n#psxpsd-sector-screener-table{\n  width:1400px!important;min-width:1400px!important;max-width:1400px!important;\n}\n#psxpsd-sector-screener-table th,#psxpsd-sector-screener-table td{\n  padding:6px 3px!important;font-size:11.25px!important;line-height:1.18!important;\n}\n#psxpsd-sector-screener-table th:nth-child(1),#psxpsd-sector-screener-table td:nth-child(1){width:135px!important;min-width:135px!important;max-width:135px!important;left:0!important}\n#psxpsd-sector-screener-table th:nth-child(2),#psxpsd-sector-screener-table td:nth-child(2){width:88px!important;min-width:88px!important;max-width:88px!important;left:135px!important}\n#psxpsd-sector-screener-table th:nth-child(3),#psxpsd-sector-screener-table td:nth-child(3){width:105px!important;min-width:105px!important;max-width:105px!important}\n#psxpsd-sector-screener-table th:nth-child(4),#psxpsd-sector-screener-table td:nth-child(4),\n#psxpsd-sector-screener-table th:nth-child(5),#psxpsd-sector-screener-table td:nth-child(5),\n#psxpsd-sector-screener-table th:nth-child(6),#psxpsd-sector-screener-table td:nth-child(6){width:118px!important;min-width:118px!important;max-width:118px!important}\n#psxpsd-sector-screener-table th:nth-child(7),#psxpsd-sector-screener-table td:nth-child(7),\n#psxpsd-sector-screener-table th:nth-child(8),#psxpsd-sector-screener-table td:nth-child(8){width:44px!important;min-width:44px!important;max-width:44px!important}\n#psxpsd-sector-screener-table th:nth-child(9),#psxpsd-sector-screener-table td:nth-child(9){width:58px!important;min-width:58px!important;max-width:58px!important}\n#psxpsd-sector-screener-table th:nth-child(10),#psxpsd-sector-screener-table td:nth-child(10){width:46px!important;min-width:46px!important;max-width:46px!important}\n#psxpsd-sector-screener-table th:nth-child(11),#psxpsd-sector-screener-table td:nth-child(11){width:68px!important;min-width:68px!important;max-width:68px!important}\n#psxpsd-sector-screener-table th:nth-child(12),#psxpsd-sector-screener-table td:nth-child(12){width:92px!important;min-width:92px!important;max-width:92px!important}\n#psxpsd-sector-screener-table th:nth-child(13),#psxpsd-sector-screener-table td:nth-child(13){width:80px!important;min-width:80px!important;max-width:80px!important}\n#psxpsd-sector-screener-table th:nth-child(14),#psxpsd-sector-screener-table td:nth-child(14){width:98px!important;min-width:98px!important;max-width:98px!important}\n#psxpsd-sector-screener-table th:nth-child(15),#psxpsd-sector-screener-table td:nth-child(15){width:100px!important;min-width:100px!important;max-width:100px!important}\n#psxpsd-sector-screener-table th:nth-child(16),#psxpsd-sector-screener-table td:nth-child(16){width:86px!important;min-width:86px!important;max-width:86px!important}\n#psxpsd-sector-screener-table .ss-rsi{width:112px!important;min-width:112px!important;max-width:112px!important;min-height:118px!important}\n#psxpsd-sector-screener-table .ss-rsi svg{display:block!important;width:112px!important;height:82px!important;margin:1px auto 0!important}\n#psxpsd-sector-screener-table .ss-rsi-value{font-size:14px!important;line-height:1.05!important;margin-bottom:1px!important}\n#psxpsd-sector-screener-table .ss-rsi-value.rsi-high{color:#07863a!important}\n#psxpsd-sector-screener-table .ss-rsi-value.rsi-mid{color:#1e2f45!important}\n#psxpsd-sector-screener-table .ss-rsi-value.rsi-low{color:#c62828!important}\n#psxpsd-sector-screener-table .ss-rsi small{font-size:10px!important;line-height:1.05!important;margin-top:1px!important}\n#psxpsd-sector-screener-table td:nth-child(7),#psxpsd-sector-screener-table td:nth-child(8),#psxpsd-sector-screener-table td:nth-child(10){white-space:normal!important;overflow:visible!important;word-break:normal!important}\n#psxpsd-sector-screener-table td:nth-child(9).psxpsd-pos{color:#07863a!important}\n#psxpsd-sector-screener-table td:nth-child(9).psxpsd-neg{color:#c62828!important}\n#psxpsd-sector-screener-table .adx-start{color:#b26a00!important;font-weight:800}\n#psxpsd-sector-screener-table .adx-strong{color:#07863a!important;font-weight:800}\n#psxpsd-sector-screener-table .adx-extreme{color:#c62828!important;font-weight:800}\n#psxpsd-sector-screener-table .ss-entry.bullish{background:#e4f8eb!important;color:#07863a!important;border:1px solid #a7e6bb!important}\n@media (min-width:1450px){#psxpsd-sector-screener-card .psxpsd-sector-screener-wrap{overflow-x:hidden!important}}\n@media (max-width:1449px){#psxpsd-sector-screener-card .psxpsd-sector-screener-wrap{overflow-x:auto!important}}\n@media (max-width:782px){\n  #psxpsd-sector-screener-table{width:1400px!important;min-width:1400px!important;max-width:1400px!important}\n  #psxpsd-sector-screener-table .ss-rsi svg{height:82px!important}\n}\n
/* v4.1.57 Full Sector Index candlestick chart below Sector Screener. */
#psxpsd-sector-screener-table tbody tr.psxpsd-ss-sector-row{cursor:pointer;transition:background-color .12s ease,box-shadow .12s ease}
#psxpsd-sector-screener-table tbody tr.psxpsd-ss-sector-row:hover td{background:#f3f8ff!important}
#psxpsd-sector-screener-table tbody tr.psxpsd-ss-sector-row.is-chart-selected td{background:#eaf3ff!important;box-shadow:inset 0 1px 0 #b8d4fb,inset 0 -1px 0 #b8d4fb}
.psxpsd-ss-count{display:inline-block;margin-left:10px;padding:3px 8px;border:1px solid #d6e0ec;border-radius:999px;background:#fff;font-weight:800;color:#334155;white-space:nowrap}
.psxpsd-sector-full-chart{position:relative;margin-top:18px;padding-top:16px;border-top:2px solid #dce5ef}
.psxpsd-sector-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
.psxpsd-sector-chart-head h3{margin:0 0 4px;font-size:20px;color:#162033}
.psxpsd-sector-chart-head p{margin:0;color:#667085}
.psxpsd-sector-chart-price{text-align:right;min-width:130px}
.psxpsd-sector-chart-price span{display:block;font-size:26px;line-height:1;font-weight:900;color:#162033;font-variant-numeric:tabular-nums}
.psxpsd-sector-chart-price small{display:block;margin-top:4px;color:#667085;font-weight:700}
.psxpsd-sector-chart-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:10px 0 8px;padding:8px;border:1px solid #dce5ef;border-radius:8px;background:#f8fafc}
.psxpsd-sector-chart-toolbar .button{min-height:32px;padding:3px 10px;font-weight:700}
.psxpsd-sector-chart-toolbar .button.active{background:#1f5fae!important;border-color:#1f5fae!important;color:#fff!important}
.psxpsd-sector-chart-toolbar .toolbar-label{font-weight:800;color:#334155;margin-right:2px}
.psxpsd-sector-chart-toolbar .toolbar-divider{width:1px;height:24px;background:#d7e0ea;margin:0 4px}
.psxpsd-sector-chart-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:6px 0 8px;font-size:12px;font-weight:700;color:#526071}
.psxpsd-sector-chart-legend span{display:inline-flex;align-items:center;gap:5px}
.psxpsd-sector-chart-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}
.psxpsd-sector-chart-legend .legend-candle-up{background:#08984a}.psxpsd-sector-chart-legend .legend-candle-down{background:#d12f2f}
.psxpsd-sector-chart-legend .legend-sma:before,.psxpsd-sector-chart-legend .legend-bb:before,.psxpsd-sector-chart-legend .legend-rsi:before,.psxpsd-sector-chart-legend .legend-rsi-ema:before{content:"";display:inline-block;width:18px;height:2px;margin-right:5px;vertical-align:middle}
.psxpsd-sector-chart-legend .legend-sma:before{background:#2962ff}.psxpsd-sector-chart-legend .legend-bb:before{background:#7b8fb3}.psxpsd-sector-chart-legend .legend-rsi:before{background:#00a83b}.psxpsd-sector-chart-legend .legend-rsi-ema:before{background:#e32626}
.psxpsd-sector-chart-wrap{width:100%;overflow-x:auto;overflow-y:hidden;border:1px solid #dce5ef;border-radius:8px;background:#fff}
#psxpsd-sector-candle-svg{display:block;width:100%;min-width:900px;height:auto;aspect-ratio:5/3;background:#fff;touch-action:pan-x pan-y}
.psxpsd-sector-chart-tooltip{position:absolute;z-index:4;top:156px;left:24px;max-width:calc(100% - 48px);padding:7px 10px;border:1px solid #cfd9e5;border-radius:6px;background:rgba(255,255,255,.95);box-shadow:0 2px 8px rgba(31,43,61,.08);font-size:12px;color:#334155;pointer-events:none;font-variant-numeric:tabular-nums}
.psxpsd-sector-chart-tooltip .rsi-green{color:#07863a;font-weight:800}.psxpsd-sector-chart-tooltip .rsi-red{color:#c62828;font-weight:800}
.psxpsd-sector-chart-note{margin:8px 0 0!important}
@media(max-width:782px){
  .psxpsd-sector-chart-head{align-items:flex-start}.psxpsd-sector-chart-price span{font-size:21px}
  .psxpsd-sector-chart-toolbar{gap:5px}.psxpsd-sector-chart-toolbar .button{font-size:12px;padding:3px 8px}
  .psxpsd-sector-chart-toolbar .toolbar-divider{display:none}
  #psxpsd-sector-candle-svg{min-width:880px}
  .psxpsd-sector-chart-tooltip{top:190px;left:12px;max-width:calc(100% - 24px);font-size:11px}
  .psxpsd-ss-count{display:block;width:max-content;margin:6px 0 0}
}

/* v4.1.58 Sector full-chart search + RSI/SMA/EMA condition filters */
.psxpsd-sector-chart-search{margin:14px 0 12px;padding:12px 14px;border:1px solid #cfdef0;border-radius:9px;background:#f8fbff}
.psxpsd-sector-chart-search>label{display:block;margin-bottom:6px;color:#183153}
.psxpsd-sector-chart-search-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.psxpsd-sector-chart-search-row input[type=search]{flex:1 1 360px;min-width:240px;max-width:620px;height:38px}
.psxpsd-sector-chart-search-row .button{min-height:38px;font-weight:800}
.psxpsd-sector-chart-search>small{display:block;margin-top:6px;color:#667085}
.psxpsd-sector-chart-filter-tools{margin:10px 0 8px;padding:10px;border:1px solid #dce5ef;border-radius:9px;background:#fbfcfe}
.psxpsd-chart-filter-buttons{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.psxpsd-chart-filter-buttons .toolbar-label{font-weight:800;color:#334155;margin-right:3px}
.psxpsd-chart-filter-buttons .button{font-weight:800;min-height:34px}
.psxpsd-chart-filter-panels{margin-top:8px}
.psxpsd-chart-filter-panel{padding:12px;border:1px solid #c9d9ec;border-radius:9px;background:#fff;margin-top:8px}
.psxpsd-chart-filter-panel[hidden]{display:none!important}
.psxpsd-chart-filter-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:15px;color:#183153}
.psxpsd-chart-filter-panel-head .button-link{font-size:22px;text-decoration:none;line-height:1;padding:2px 6px;color:#526071}
.psxpsd-chart-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(135px,1fr));gap:9px}
.psxpsd-chart-filter-grid label{font-size:11px;font-weight:800;color:#42526a}
.psxpsd-chart-filter-grid select,.psxpsd-chart-filter-grid input{display:block;width:100%;height:38px;margin-top:4px;font-size:14px}
.psxpsd-chart-filter-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.psxpsd-chart-filter-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.psxpsd-chart-filter-chip{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border-radius:15px;font-size:11px;font-weight:750;border:1px solid #d0d8e2;background:#f3f5f8;color:#344054}
.psxpsd-chart-filter-chip.match{background:#e7f7ed;border-color:#a9dfba;color:#08783a}
.psxpsd-chart-filter-chip.no-match{background:#fff0f0;border-color:#efb7b7;color:#b42318}
.psxpsd-chart-filter-chip button{border:0;background:transparent;color:inherit;font-size:16px;line-height:1;cursor:pointer;padding:0}
.psxpsd-chart-filter-help{margin:8px 0 0!important;font-size:11px}
.psxpsd-sector-chart-legend .legend-custom-sma:before,.psxpsd-sector-chart-legend .legend-custom-ema:before{content:"";display:inline-block;width:18px;height:2px;margin-right:5px;vertical-align:middle}
.psxpsd-sector-chart-legend .legend-custom-sma:before{background:#8e5ad7}.psxpsd-sector-chart-legend .legend-custom-ema:before{background:#f59e0b}
@media(max-width:782px){
 .psxpsd-sector-chart-search-row{display:grid;grid-template-columns:1fr auto}.psxpsd-sector-chart-search-row input[type=search]{min-width:0;width:100%;max-width:none}.psxpsd-sector-chart-search-row #psxpsd-sector-chart-search-msg{grid-column:1/-1}
 .psxpsd-chart-filter-grid{grid-template-columns:1fr 1fr}.psxpsd-chart-filter-actions .button{min-height:42px}
}
@media(max-width:480px){.psxpsd-chart-filter-grid{grid-template-columns:1fr}.psxpsd-sector-chart-search-row{grid-template-columns:1fr}.psxpsd-sector-chart-search-row .button{width:100%}}


/* v4.1.59 Sector chart interaction/layout polish. */
#psxpsd-sector-full-chart .psxpsd-sector-chart-tooltip{display:none!important}
#psxpsd-sector-full-chart .psxpsd-sector-chart-wrap{position:relative;overflow-x:auto!important;overflow-y:hidden!important}
#psxpsd-sector-full-chart #psxpsd-sector-candle-svg{min-width:940px!important}
#psxpsd-sector-full-chart .psxpsd-sector-chart-legend{margin-bottom:10px!important}
@media (max-width:782px){
  #psxpsd-sector-full-chart #psxpsd-sector-candle-svg{min-width:960px!important}
}

/* v4.1.60 Multi-filter chips + TradingView-style right-side future candle spacing. */
#psxpsd-sector-full-chart .psxpsd-chart-filter-chips{row-gap:8px}
#psxpsd-sector-full-chart .psxpsd-chart-filter-chip{max-width:100%;white-space:normal}

/* v4.1.61 chart filter color cleanup */
.psxpsd-sector-chart-legend{display:none!important}
.psxpsd-chart-filter-chip{border-left:4px solid var(--filter-color,#64748b)!important}
.psxpsd-chart-filter-chip .psxpsd-filter-color-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--filter-color,#64748b);margin-right:5px;vertical-align:middle}

/* v4.1.62 streamlined TradingView-style sector chart controls */
.psxpsd-chart-select{height:34px;min-width:132px;border:1px solid #cbd7e5;border-radius:6px;background:#fff;padding:0 8px;font-weight:700;color:#183153}
.psxpsd-chart-settings{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:7px 0;padding:9px 11px;border:1px solid #d8e3ef;border-radius:8px;background:#fbfdff}
.psxpsd-chart-settings[hidden]{display:none!important}.psxpsd-chart-settings select,.psxpsd-chart-settings input[type=number]{height:34px;border:1px solid #cbd7e5;border-radius:6px;padding:0 7px}.psxpsd-chart-settings label{display:inline-flex;align-items:center;gap:6px;font-weight:650;color:#42526a}
.psxpsd-chart-settings-btn{min-width:34px!important;padding:3px 7px!important}.psxpsd-ma-chip{--ma-color:#64748b;display:inline-flex;align-items:center;gap:5px;margin:2px 3px;padding:4px 7px;border:1px solid #d7e0ea;border-radius:13px;background:#fff;font-size:11px;font-weight:800}.psxpsd-ma-chip i{width:16px;height:3px;background:var(--ma-color);display:inline-block}.psxpsd-ma-chip button{border:0;background:transparent;cursor:pointer;font-size:15px;line-height:1;color:#667085}
@media(max-width:700px){.psxpsd-chart-select{min-width:118px}.psxpsd-chart-settings{align-items:stretch}.psxpsd-chart-settings label{width:100%}}

/* v4.1.69 Sector Screener data freshness indicator */
.psxpsd-stale-badge{display:inline-block;margin-top:4px;padding:2px 6px;border-radius:999px;background:#fff3cd;color:#8a5a00;border:1px solid #f1d58a;font-size:10px;font-weight:800;letter-spacing:.04em;line-height:1.2;}
#psxpsd-sector-screener-table td:nth-child(2) small{white-space:nowrap;color:#667085;}

/* v4.1.70 WEBSITE + MOBILE RESPONSIVE POLISH — presentation only; no data/calculation changes. */
.psxpsd-frontend-head,
.psxpsd-frontend-wrap,
.psxpsd-frontend-wrap *,
.psxpsd-frontend-wrap *::before,
.psxpsd-frontend-wrap *::after{box-sizing:border-box}
.psxpsd-frontend-wrap{min-width:0;overflow:visible}
.psxpsd-frontend-wrap .psxpsd-card{width:100%;max-width:100%;min-width:0}
.psxpsd-frontend-wrap .table-wrap,
.psxpsd-frontend-wrap .rotation-table-wrap,
.psxpsd-frontend-wrap .multi-period-wrap,
.psxpsd-sector-screener-wrap,
.psxpsd-sector-chart-wrap,
.master-chart-shell,
.rotation-map-shell{max-width:100%;min-width:0;overflow-x:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;scrollbar-width:thin;touch-action:pan-x pan-y}
.psxpsd-frontend-wrap svg{max-width:none}
.psxpsd-dashboard-tabs,
.period-buttons,
.signal-filter-bar,
.chart-mode-bar,
.psxpsd-ss-timeframes{scrollbar-width:thin;overscroll-behavior-inline:contain}

@media (max-width:1024px){
  .psxpsd-frontend-head,.psxpsd-frontend-wrap{width:100%!important;max-width:100%!important;left:auto!important;transform:none!important;padding-left:12px!important;padding-right:12px!important}
  .psxpsd-dashboard-tabs{width:100%;max-width:100%}
  .psxpsd-card{overflow:visible}
  .section-title{gap:10px}
  .psxpsd-title-actions{max-width:100%}
  .psxpsd-title-actions .button{white-space:normal}
  #psxpsd-master-chart{min-width:800px!important;height:460px!important}
  #psxpsd-rotation-map{min-width:800px!important;height:500px!important}
  #psxpsd-chart{min-width:760px!important;height:320px!important}
  #psxpsd-sector-full-chart #psxpsd-sector-candle-svg{min-width:820px!important}
}

@media (max-width:782px){
  .psxpsd-frontend-head{margin-top:10px!important;padding-left:8px!important;padding-right:8px!important}
  .psxpsd-frontend-wrap{padding-left:8px!important;padding-right:8px!important;margin-bottom:24px}
  .psxpsd-frontend-head h1{font-size:22px!important;overflow-wrap:anywhere}
  .psxpsd-frontend-head p{font-size:12px}
  .psxpsd-front-actions{width:100%;min-width:0}
  .psxpsd-status-pill{max-width:100%;white-space:normal;line-height:1.4}

  .psxpsd-dashboard-tabs{position:sticky;top:0;z-index:30;gap:6px;padding:6px;margin-bottom:10px;border-radius:9px;scroll-snap-type:x proximity}
  .psxpsd-dashboard-tab{min-height:44px;padding:8px 12px;font-size:12px;scroll-snap-align:start}
  .period-btn,.signal-filter,.chart-mode,.universe-btn{min-height:44px!important}

  .psxpsd-card{padding:10px!important;border-radius:9px!important;margin-bottom:10px!important}
  .psxpsd-card h2{font-size:16px!important}
  .section-title{align-items:stretch!important;flex-direction:column!important}
  .psxpsd-title-actions{width:100%;justify-content:flex-start!important}
  .psxpsd-title-actions .button{flex:1 1 auto;min-height:44px}

  .psxpsd-global-filter-row{width:100%;max-width:100%;overflow-x:auto;padding-bottom:4px}
  .signal-filter-bar,.chart-mode-bar,.psxpsd-ss-timeframes{width:100%;max-width:100%;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:6px}
  .filter-label{flex:0 0 auto}

  .psxpsd-frontend-wrap input[type=search],
  .psxpsd-frontend-wrap input[type=number],
  .psxpsd-frontend-wrap select{font-size:16px!important;min-height:44px!important;max-width:100%}
  .psxpsd-frontend-wrap .button{min-height:44px}

  .psxpsd-frontend-wrap .table-wrap,
  .psxpsd-frontend-wrap .rotation-table-wrap,
  .psxpsd-frontend-wrap .multi-period-wrap,
  .psxpsd-sector-screener-wrap{border-radius:8px;box-shadow:inset -10px 0 14px -16px rgba(15,23,42,.55)}
  .psxpsd-frontend-wrap table th,.psxpsd-frontend-wrap table td{font-size:12px!important;padding:8px 8px!important;line-height:1.3}
  .psxpsd-frontend-wrap table thead th{position:sticky;top:0;z-index:4}

  /* Keep the key identifying column visible while swiping large tables. */
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(2),
  .psxpsd-frontend-wrap #psxpsd-table td:nth-child(2),
  .psxpsd-frontend-wrap #psxpsd-stock-table th:nth-child(2),
  .psxpsd-frontend-wrap #psxpsd-stock-table td:nth-child(2),
  .psxpsd-frontend-wrap #psxpsd-best-stocks-table th:nth-child(1),
  .psxpsd-frontend-wrap #psxpsd-best-stocks-table td:nth-child(1){position:sticky;z-index:5;background:#fff}
  .psxpsd-frontend-wrap #psxpsd-table th:nth-child(2),
  .psxpsd-frontend-wrap #psxpsd-table td:nth-child(2){left:52px}
  .psxpsd-frontend-wrap #psxpsd-stock-table th:nth-child(2),
  .psxpsd-frontend-wrap #psxpsd-stock-table td:nth-child(2){left:52px}
  .psxpsd-frontend-wrap #psxpsd-best-stocks-table th:nth-child(1),
  .psxpsd-frontend-wrap #psxpsd-best-stocks-table td:nth-child(1){left:0}
  .psxpsd-frontend-wrap table thead th:nth-child(1),
  .psxpsd-frontend-wrap #psxpsd-table thead th:nth-child(2),
  .psxpsd-frontend-wrap #psxpsd-stock-table thead th:nth-child(2),
  .psxpsd-frontend-wrap #psxpsd-best-stocks-table thead th:nth-child(1){background:#f3f7fb!important}

  /* More compact mobile table canvases while preserving horizontal swipe. */
  .psxpsd-frontend-wrap #psxpsd-table{min-width:1040px!important}
  .psxpsd-frontend-wrap #psxpsd-stock-table{min-width:760px!important}
  .psxpsd-frontend-wrap #psxpsd-best-stocks-table{min-width:820px!important}
  .psxpsd-frontend-wrap #psxpsd-rotation-table{min-width:700px!important}
  .psxpsd-frontend-wrap #psxpsd-multi-table{min-width:860px!important}
  .psxpsd-frontend-wrap #psxpsd-watch-sectors,
  .psxpsd-frontend-wrap #psxpsd-watch-stocks{min-width:700px!important}
  #psxpsd-sector-screener-table{width:1920px!important;min-width:1920px!important}
  #psxpsd-sector-screener-table th:nth-child(1),#psxpsd-sector-screener-table td:nth-child(1){width:150px!important;min-width:150px!important;max-width:150px!important;left:0!important}
  #psxpsd-sector-screener-table th:nth-child(2),#psxpsd-sector-screener-table td:nth-child(2){width:118px!important;min-width:118px!important;max-width:118px!important;left:150px!important}
  #psxpsd-sector-screener-table th:nth-child(3),#psxpsd-sector-screener-table td:nth-child(3){width:135px!important;min-width:135px!important;max-width:135px!important}
  #psxpsd-sector-screener-table th:nth-child(4),#psxpsd-sector-screener-table td:nth-child(4),
  #psxpsd-sector-screener-table th:nth-child(5),#psxpsd-sector-screener-table td:nth-child(5),
  #psxpsd-sector-screener-table th:nth-child(6),#psxpsd-sector-screener-table td:nth-child(6){width:145px!important;min-width:145px!important;max-width:145px!important}
  #psxpsd-sector-screener-table .ss-rsi{width:140px!important;max-width:140px!important}
  #psxpsd-sector-screener-table .ss-rsi svg{width:136px!important;max-width:136px!important}

  .psxpsd-ss-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .psxpsd-ss-controls label,.psxpsd-ss-controls select,.psxpsd-ss-controls input{min-width:0!important;width:100%}

  /* Charts remain legible on phones and tablets with a shorter horizontal swipe. */
  .chart-card,.master-chart-card{min-height:0!important}
  .chart-mode-bar{margin-bottom:6px}
  .master-chart-toolbar,.master-advanced-toolbar,.rotation-map-toolbar{align-items:stretch!important}
  #psxpsd-master-chart{min-width:720px!important;height:400px!important}
  #psxpsd-rotation-map{min-width:720px!important;height:430px!important}
  #psxpsd-chart{min-width:680px!important;height:300px!important}
  #psxpsd-sector-full-chart #psxpsd-sector-candle-svg{min-width:760px!important}
  .psxpsd-sector-chart-wrap{border-radius:7px}
  .psxpsd-sector-chart-head{gap:8px;flex-wrap:wrap}
  .psxpsd-sector-chart-toolbar{display:flex;flex-wrap:nowrap!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;padding-bottom:5px;max-width:100%}
  .psxpsd-sector-chart-toolbar>*{flex:0 0 auto}
  .psxpsd-chart-settings{display:grid;grid-template-columns:1fr 1fr;gap:8px!important}
  .psxpsd-chart-settings>strong{grid-column:1/-1}
  .psxpsd-chart-settings label{width:100%!important;justify-content:space-between}
  .psxpsd-chart-filter-buttons{overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}
  .psxpsd-chart-filter-buttons>*{flex:0 0 auto}
  .psxpsd-sector-chart-note{font-size:11px;line-height:1.4}

  .watchlist-grid{grid-template-columns:1fr!important;gap:10px}
  .psxpsd-watch-alert-box .button-row{display:grid;grid-template-columns:1fr;gap:7px}
  .psxpsd-watch-alert-box .button-row .button{width:100%}
}

@media (max-width:560px){
  .psxpsd-frontend-head,.psxpsd-frontend-wrap{padding-left:6px!important;padding-right:6px!important}
  .psxpsd-card{padding:9px!important}
  .psxpsd-front-actions{display:block}
  .psxpsd-status-pill{display:block;width:100%}
  .psxpsd-summary-grid{grid-template-columns:1fr!important}
  .psxpsd-ss-controls{grid-template-columns:1fr!important}
  .psxpsd-sector-chart-search-row{grid-template-columns:1fr!important}
  .psxpsd-sector-chart-search-row .button{width:100%}
  .psxpsd-chart-filter-grid{grid-template-columns:1fr!important}
  .psxpsd-chart-settings{grid-template-columns:1fr!important}
  .psxpsd-chart-settings>strong{grid-column:auto}
  .psxpsd-chart-filter-actions{display:grid;grid-template-columns:1fr;width:100%}
  .psxpsd-chart-filter-actions .button{width:100%}
  #psxpsd-master-chart{min-width:660px!important;height:370px!important}
  #psxpsd-rotation-map{min-width:660px!important;height:400px!important}
  #psxpsd-chart{min-width:620px!important;height:280px!important}
  #psxpsd-sector-full-chart #psxpsd-sector-candle-svg{min-width:680px!important}
  #psxpsd-sector-screener-table{width:1840px!important;min-width:1840px!important}
  #psxpsd-sector-screener-table th:nth-child(1),#psxpsd-sector-screener-table td:nth-child(1){width:138px!important;min-width:138px!important;max-width:138px!important}
  #psxpsd-sector-screener-table th:nth-child(2),#psxpsd-sector-screener-table td:nth-child(2){width:110px!important;min-width:110px!important;max-width:110px!important;left:138px!important}
  #psxpsd-sector-screener-table .ss-rsi{width:132px!important;max-width:132px!important}
  #psxpsd-sector-screener-table .ss-rsi svg{width:128px!important;max-width:128px!important}
}

@media (max-width:390px){
  .psxpsd-dashboard-tab{padding-left:10px;padding-right:10px}
  .psxpsd-frontend-head h1{font-size:20px!important}
  #psxpsd-sector-screener-table{width:1780px!important;min-width:1780px!important}
  #psxpsd-sector-full-chart #psxpsd-sector-candle-svg{min-width:640px!important}
  #psxpsd-chart{min-width:580px!important}
}


/* v4.1.71 Sector Screener and Chart: external candle OHLC/Volume panel. */
.psxpsd-sector-candle-info{display:grid;grid-template-columns:minmax(115px,1.2fr) repeat(6,minmax(88px,1fr)) minmax(130px,1.25fr);gap:0;margin:10px 0 10px;border:1px solid #d6e1ec;border-radius:9px;background:#fff;overflow:hidden;font-variant-numeric:tabular-nums;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.psxpsd-sector-candle-info[hidden]{display:none!important}
.psxpsd-sector-candle-info>span{display:flex;flex-direction:column;gap:3px;justify-content:center;min-width:0;padding:9px 12px;border-right:1px solid #e5ebf1}
.psxpsd-sector-candle-info>span:last-child{border-right:0}
.psxpsd-sector-candle-info small{font-size:10px;line-height:1.1;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.03em}
.psxpsd-sector-candle-info b{font-size:13px;line-height:1.2;font-weight:900;white-space:nowrap}
.psxpsd-sector-candle-info.up b{color:#07863a}
.psxpsd-sector-candle-info.down b{color:#c62828}
.psxpsd-sector-candle-info .candle-info-date b{font-size:12px}
.psxpsd-sector-candle-info .candle-info-state{background:#f8fafc}
@media(max-width:900px){.psxpsd-sector-candle-info{grid-template-columns:repeat(4,minmax(105px,1fr));overflow-x:auto}.psxpsd-sector-candle-info>span{border-bottom:1px solid #e5ebf1}}
@media(max-width:600px){.psxpsd-sector-candle-info{display:flex;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}.psxpsd-sector-candle-info>span{flex:0 0 105px;padding:8px 10px;scroll-snap-align:start;border-bottom:0}.psxpsd-sector-candle-info .candle-info-date{flex-basis:120px}.psxpsd-sector-candle-info .candle-info-state{flex-basis:145px}}

/* v4.1.77 Potential Leaders */
.psxpsd-potential-note{margin:8px 0 10px;padding:9px 12px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:9px;color:#334155;font-size:12px;line-height:1.45}.psxpsd-potential-badge{display:inline-block;padding:3px 7px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:10px;font-weight:800;margin-bottom:3px}

/* 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}}

/* v4.1.86 Stock Rotation Heatmap hover readability.
   Match Sector Rotation Heatmap: while the mouse is over a stock row,
   temporarily use a light highlight with dark text so every performance
   value remains clearly readable. Analytical heat colors return on mouse-out. */
#psxpsd-stock-heatmap-table tbody tr:hover td{
  background:#eaf4ff!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  font-weight:700!important;
  filter:none!important;
}
#psxpsd-stock-heatmap-table tbody tr:hover td:first-child{
  color:#102a43!important;
  -webkit-text-fill-color:#102a43!important;
  font-weight:800!important;
}


/* v4.1.93 — PSX Insight 5D-Lite Sector Dashboard visual standardization.
   Presentation only. No analytics, EOD, cache, database, bridge or worker logic changes. */
@media (min-width:1100px){
  .psxpsd-frontend-head,.psxpsd-frontend-wrap{width:calc(100vw - 64px)!important;max-width:1760px!important}
}
.psxpsd-frontend-head{margin-top:20px!important;margin-bottom:12px!important;align-items:center!important}
.psxpsd-frontend-head h1{font-size:30px!important;line-height:1.12!important;color:#0b2d52!important;font-weight:850!important}
.psxpsd-frontend-head p{font-size:13px!important;color:#60758c!important}
.psxpsd-status-pill{padding:10px 14px!important;color:#173b61!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;border-left:4px solid #1677e8!important}
.psxpsd-status-pill #psxpsd-kse-perf{font-weight:900}

.psxpsd-dashboard-tabs{gap:7px!important;padding:7px!important;margin-bottom:12px!important;background:#f7fbff!important;border:1px solid #d6e4f1!important;position:relative!important;top:auto!important}
.psxpsd-dashboard-tab{min-height:36px!important;padding:7px 14px!important;border-radius:9px!important;font-size:13px!important;font-weight:800!important}
.psxpsd-dashboard-tab.active{background:linear-gradient(135deg,#0b64dc,#1688ff)!important}

.psxpsd-controls{padding:10px 12px!important;margin-bottom:12px!important}
.psxpsd-global-filter-row{gap:8px!important}
.universe-btn,.period-btn{min-height:34px!important;border-radius:8px!important;font-size:12px!important;font-weight:800!important}
.universe-btn.active,.period-btn.active{background:linear-gradient(135deg,#0b64dc,#1688ff)!important;border-color:#0f72e8!important;color:#fff!important;box-shadow:0 5px 12px rgba(14,111,229,.18)!important}

.psxpsd-frontend-wrap .psxpsd-card{padding:15px!important;margin-bottom:14px!important;border-radius:14px!important}
.section-title{margin-bottom:10px!important}
.section-title h2{font-size:18px!important;line-height:1.2!important;margin-bottom:3px!important}
.section-title p{font-size:12px!important;margin-top:0!important}

.psxpsd-overview-summary-card{border-top:3px solid #1976d2!important}
.psxpsd-summary-grid{gap:10px!important;margin-top:9px!important}
.psxpsd-summary-tile{position:relative;padding:13px 14px!important;border-radius:11px!important;overflow:hidden}
.psxpsd-summary-tile:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:#2386e8}
.psxpsd-summary-tile>span{font-size:11px!important;text-transform:uppercase;letter-spacing:.025em;margin-bottom:5px!important}
.psxpsd-summary-tile>strong{font-size:19px!important;line-height:1.15!important}
.psxpsd-summary-tile>small{font-size:10.5px!important;min-height:24px!important;margin-top:5px!important}
.psxpsd-summary-tile.status-leader:before,.psxpsd-summary-tile.status-improving:before{background:#12a66a}
.psxpsd-summary-tile.status-weakening:before{background:#e4a11b}
.psxpsd-summary-tile.status-laggard:before{background:#e64b55}
.psxpsd-what-changed{margin-top:11px!important;padding-top:11px!important}
.psxpsd-change-chip{padding:5px 9px!important;gap:5px!important;font-size:11px!important}

/* Daily Rotation Changes stays available to existing JS so What Changed remains live,
   but the duplicate Overview card is not displayed. */
.psxpsd-frontend-wrap #psxpsd-rotation-card{display:none!important}

#psxpsd-ranking-card,#psxpsd-best-stocks-card{border-top:3px solid #1976d2!important}
.psxpsd-frontend-wrap .table-wrap{border-radius:10px!important}
.psxpsd-frontend-wrap .widefat th{background:#eaf3fb!important;color:#173b61!important;font-size:11px!important;text-transform:uppercase;letter-spacing:.018em;padding:9px 10px!important;vertical-align:middle!important}
.psxpsd-frontend-wrap .widefat td{font-size:12px!important;padding:8px 10px!important;vertical-align:middle!important}
.psxpsd-frontend-wrap #psxpsd-best-stocks-table{min-width:980px!important}
.psxpsd-frontend-wrap #psxpsd-table{min-width:1180px!important}
.signal{padding:4px 8px!important;font-size:10px!important;font-weight:850!important}
.sector-score{height:22px!important;min-width:34px!important;font-size:11px!important}
.psxpsd-score-meter{height:6px!important;width:78px!important}
.psxpsd-meter-stack{min-width:82px!important;gap:4px!important}

@media (max-width:782px){
  .psxpsd-dashboard-tabs{position:sticky!important;top:0!important}
  .psxpsd-frontend-head h1{font-size:22px!important}
  .psxpsd-summary-tile>strong{font-size:18px!important}
}

/* v4.2.18 Free subscriber locks: original layout and buttons are retained. */
.psxpsd-dashboard-tab.psxpsd-premium-locked{color:#526984;}
.psxpsd-premium-lock{display:inline-block;margin-right:5px;font-size:.85em;vertical-align:baseline;}
.psxpsd-export-locked{color:#526984;}
.psxpsd-export-premium-notice{position:fixed;bottom:22px;right:22px;z-index:999999;max-width:420px;background:#fff;border:1px solid #bed3ee;border-left:4px solid #1678f2;box-shadow:0 8px 28px #142e502b;border-radius:10px;padding:15px 20px;color:#102f54;font-weight:600;}
.psxpsd-export-premium-notice[hidden]{display:none!important;}
.psxpsd-frontend-wrap.psxpsd-premium-view > :not(#psxpsd-dashboard-tabs):not(#psxpsd-premium-tab-notice){display:none!important;}
