/* Persian desk chrome only; no global theme/hidden override. */
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui="radar-desk-1"] {
  --desk-navy: #0c1626;
  --desk-line: #26364c;
  --desk-teal: #38d0bd;
  --desk-blue: #559de8;
  display: grid !important;
  direction: rtl;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  gap: 12px;
  padding: 0;
  margin-block: 14px 18px;
  overflow: visible;
}
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab:not(#pulseAnalysisLink) {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  aspect-ratio: 4.2 / 1;
  padding: 13px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: right;
  color: #eef3fa;
  background: var(--desk-navy);
  border: 1px solid var(--desk-line);
  border-radius: 16px;
  box-shadow: none;
  transform: none;
  white-space: normal;
}
/* Explicit RTL cells: grid line 1 is the RIGHT edge. Do not reorder native nodes. */
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > [data-daily-tab="tools"] { grid-area: 1 / 1; }
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > [data-daily-tab="compare"] { grid-area: 1 / 2; }
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > :is([data-daily-tab="future"], #screeningIndependentOpen) { grid-area: 2 / 1; }
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > [data-daily-tab="portfolio"] { grid-area: 2 / 2; }
/* The independent screener is the EXISTING live controller. Its native power
   button remains available to that controller but must not become a fifth tile. */
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui]:has(> #screeningIndependentOpen) > [data-daily-tab="future"] { display: none !important; }
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab > span { min-width: 0; }
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab b { display: block; font-size: clamp(13px, 2.6vw, 20px); line-height: 1.6; }
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab small { display: block; margin-top: 4px; color: #9aaabe; font-size: 11px; line-height: 1.7; white-space: normal; }
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab .daily-icon { flex: 0 0 25px; width: 25px; height: 25px; color: var(--desk-teal); }
/* Never counterfeit .active/aria-pressed. Underline tracks the existing handler. */
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab:is(.active, [aria-pressed="true"]) {
  border-color: #36534f;
  box-shadow: inset 0 -2px 0 var(--desk-teal);
}
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab:is(.active, [aria-pressed="true"]) :is(b, .daily-icon) { color: var(--desk-teal); }
/* display:contents makes the two entrances grid cells IN the same navigation.
   The old controls-after-nav MutationObserver cannot separate row 3 from rows 1–2. */
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row { --desk-navy:#0b1921; --desk-line:#25404a; --desk-teal:#38d0bd; --desk-blue:#46758e; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); direction:rtl; gap:8px; margin:14px 0 18px; }
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row > .pulse-analysis-entry {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  position: static;
}
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row > [data-desk-analysis="smart"] { grid-area: 1 / 1; }
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row > [data-desk-analysis="77"] { grid-area: 1 / 2; display: block; }
html[lang^="fa"] #page-content#page-content #home:has(#screening77Open:not([hidden]):not(.radar-section-off)) > nav.daily-tabs[data-radar-desk-ui] > .radar-desk-analysis-row > [data-desk-analysis="77"] { display: block; }
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row .pulse-analysis-square {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: auto;
  min-height: 56px;
  aspect-ratio: 3.6 / 1;
  margin: 0;
  padding: 13px 10px;
  position: static;
  border: 1px solid var(--desk-line);
  border-radius: 16px;
  background: var(--desk-navy);
  color: #eef3fa;
  text-decoration: none;
  transform: none;
  box-shadow: none;
}
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row .pulse-analysis-label { position: static; font-size: clamp(13px, 2.6vw, 20px); font-weight: 750; line-height: 1.6; white-space: normal; }
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row .pulse-analysis-icon { position: static; display: block; order: -1; width: 27px; height: 27px; color: var(--desk-teal); }
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row > [data-desk-analysis="77"] .pulse-analysis-square { border-color: var(--desk-blue); }
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row > [data-desk-analysis="77"] .pulse-analysis-icon { color: var(--desk-blue); }
/* Presentation duplicates are suppressed, but their original nodes and handlers
   stay intact for screeningSmartOpen's existing forwarded click. */
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > #pulseAnalysisLink,
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .pulse-analysis-entry { display: none !important; }
/* Feature switches win over layout. No author-hidden control is force-shown. */
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > [hidden] { display: none !important; }
html[lang^="fa"] #page-content#page-content #home:has(> nav.daily-tabs > [data-daily-tab="future"]:is([hidden], .radar-section-off)) > nav.daily-tabs[data-radar-desk-ui] > .radar-desk-analysis-row > .pulse-analysis-entry { display: none !important; }
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] :is(button, a):focus-visible { outline: 2px solid var(--desk-teal); outline-offset: 3px; }
/* routeIntro is outside #home and may be reused by SPA navigation; only home-active. */
html[lang^="fa"] #page-content#page-content:has(> #home.active:not([hidden]):not(.radar-section-off)) > #routeIntro[data-radar-desk-intro] {
  direction: rtl;
  text-align: right;
  border-inline-start: 2px solid #38d0bd;
  border-inline-end: 0;
  padding-inline-start: 12px;
  background: transparent;
}
html[lang^="fa"] #page-content#page-content:has(> #home.active:not([hidden]):not(.radar-section-off)) > #routeIntro[data-radar-desk-intro] h1 { margin-block: 0 4px; color: #eef3fa; font-size: 23px; line-height: 1.7; }
html[lang^="fa"] #page-content#page-content:has(> #home.active:not([hidden]):not(.radar-section-off)) > #routeIntro[data-radar-desk-intro] p { margin: 0; color: #9aaabe; font-size: 12px; line-height: 1.9; }
@media (max-width: 380px) {
  html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] { gap: 9px; }
  html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab:not(#pulseAnalysisLink) { padding: 11px 9px; gap: 7px; }
}

html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab :is(small,em) { display:none; }
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab .daily-icon { color:#38d0bd; stroke:currentColor; stroke-width:1.75; fill:none; width:25px; height:25px; }
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab:is(.active,[aria-pressed="true"]) { border-color:#38d0bd; box-shadow:inset 0 -3px 0 #38d0bd; background:linear-gradient(100deg,rgba(56,208,189,.09),#0b1921); }
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab:is(.active,[aria-pressed="true"]) b {color:#eef3fa;}
html[lang^="fa"] #page-content#page-content #home:has(#pulse77Card[hidden]) > [data-daily-panel="future"] > .radar-desk-analysis-row [data-desk-analysis="77"] {display:none!important;}
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] {--desk-navy:#0b1921;--desk-line:#25404a;--desk-blue:#46758e;gap:8px;}
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row .pulse-analysis-entry {margin-top:8px;}
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row .pulse-analysis-square {gap:12px;}
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row [data-desk-analysis="smart"] .pulse-analysis-icon {display:none;}
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row [data-desk-analysis="77"] .pulse-analysis-icon {color:#38d0bd;}
html[lang^="fa"] #page-content#page-content:has(> #home.active:not([hidden])) > #routeIntro {direction:rtl;text-align:right;border-inline-start:3px solid #38d0bd;border-inline-end:0;padding-inline-start:14px;background:transparent;}
html[lang^="fa"] #page-content#page-content:has(> #home.active:not([hidden])) > #routeIntro h1 {color:#eef3fa;}
html[lang^="fa"] #page-content#page-content:has(> #home.active:not([hidden])) > #routeIntro p {color:#9aaabe;}
html[data-theme="light"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] {--desk-navy:#eef7f8;--desk-line:#c3d8dd;}
html[data-theme="light"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] :is(b,.pulse-analysis-label) {color:#152a34;}
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab:is(.active,[aria-pressed="true"]) {border:1px solid #38d0bd!important;box-shadow:inset 0 -3px 0 #38d0bd!important;background:linear-gradient(100deg,rgba(56,208,189,.09),var(--desk-navy))!important;}
html[lang^="fa"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab:is(.active,[aria-pressed="true"]) b {color:#eef3fa!important;}
html[data-theme="light"] #page-content#page-content #home > nav.daily-tabs[data-radar-desk-ui] > .commodity-market-tab:is(.active,[aria-pressed="true"]) b {color:#152a34!important;}

/* Desk 483: remove only the pictured Persian trend-strength presentation.
   Keep original nodes, controllers, analysis guards, ads and data untouched. */
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"] > :is(#dailyMomentumRoot, .analysis-disclaimer) { display: none !important; }

/* Desk487: the two preserved links now belong only to the existing screening panel. */
html[data-theme="light"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row {--desk-navy:#eef7f8;--desk-line:#c3d8dd;}
html[data-theme="light"] #page-content#page-content #home > [data-daily-panel="future"] > .radar-desk-analysis-row .pulse-analysis-label {color:#152a34;}
html[lang^="fa"] #page-content#page-content #home > [data-daily-panel="future"][hidden] {display:none!important;}
