/* Each authored data-portal-new-feature marker can be removed independently. */
:where(#topMain,.portal-global-navigation,.portal-nav-flyout) a[data-portal-new-feature] { position:relative; }
#topMain a[data-portal-new-feature], .portal-workspace .portal-sidebar .portal-global-navigation a[data-portal-new-feature], .portal-nav-flyout a[data-portal-new-feature] { padding-right:42px !important; }
:where(#topMain,.portal-global-navigation,.portal-nav-flyout) a[data-portal-new-feature]::before { content:"NEW"; position:absolute; top:3px; right:5px; padding:1px 4px; border:1px solid #f07057; border-radius:4px; background:#ffdfd5; color:#f07057; font:700 9px/1.3 "Source Sans 3","Segoe UI",sans-serif; letter-spacing:.3px; pointer-events:none; }
html[data-portal-skin="dark"] :where(#topMain,.portal-global-navigation,.portal-nav-flyout) a[data-portal-new-feature]::before { background:rgba(240,112,87,.14); color:#f07057; border-color:#f07057; }
:where(#topMain,.portal-global-navigation,.portal-nav-flyout) a[data-portal-new-feature="chat-my-data"]::before { content:"BETA"; }
/* Trial: remove this stylesheet to restore the previous dual-menu layout. */
@media screen and (min-width: 901px) {
  .portal-workspace .portal-shell-row.portal-dual-navigation { grid-template-columns: 76px 220px minmax(0, 1fr); }
  .portal-workspace .portal-shell-row.portal-dual-navigation > .portal-sidebar { display: block; }
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar { padding-inline: 8px; min-width: 0; }
  .portal-workspace .portal-dual-navigation .portal-global-navigation > .portal-sidebar-product { padding-inline: 0; }
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar .portal-sidebar-product img { width: 42px; height: 48px; }
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar .portal-global-links > li > .list-group-item {
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 56px; padding-inline: 0 !important; font-size: 0 !important;
  }
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar .portal-global-links > li > .list-group-item[data-portal-new-feature] { padding-inline:0 !important; }
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar .portal-global-links > li > .list-group-item[data-portal-new-feature]::before { display:none; content:none; }
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar .portal-global-links > li > .list-group-item > :not(.portal-nav-icon) { display: none; }
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar .portal-global-links > li > .list-group-item::after {
    content: attr(aria-label); display: block; flex: none; width: 100%; height: auto;
    margin: 0; border: 0; transform: none; text-align: center;
    font: 400 10px/1.2 "Source Sans 3", "Segoe UI", sans-serif; white-space: normal; overflow-wrap: anywhere;
  }
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar .portal-nav-icon { flex: 0 0 24px; width: 24px; height: 24px; }
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar .portal-menu-divider { margin-inline: 8px; }
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar .portal-account-identity,
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar button.language > .fa { display: none; }
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar button.language { justify-content: center; gap: 0; padding-inline: 0 !important; }
  .portal-workspace .portal-dual-navigation > .portal-global-sidebar .portal-sidebar-account > .dropdown-menu { width: 280px; }
}

/* Match the eventual icon-primary + section navigation before enhancement. */
@media screen and (min-width:901px) {
  html.portal-content-preparing:not(.portal-layout-ready) .portal-workspace :is([data-portal-control*="Settings/"],[data-portal-control="ClientDetails/InventoryClientDetails"]) .row:not(.portal-shell-row):has(> .sidebar .settings-side-menu):has(> .col-lg-10),
  html.portal-content-preparing:not(.portal-layout-ready) .portal-workspace .row:not(.portal-shell-row):has(> .sidebar[data-portal-control*="Settings/"] .settings-side-menu):has(> .col-lg-10) {
    grid-template-columns:76px 220px minmax(0,1fr);
  }
  html.portal-content-preparing:not(.portal-layout-ready) .portal-workspace :is([data-portal-control*="Settings/"],[data-portal-control="ClientDetails/InventoryClientDetails"]) .row:not(.portal-shell-row):has(> .sidebar .settings-side-menu):has(> .col-lg-10)::before,
  html.portal-content-preparing:not(.portal-layout-ready) .portal-workspace .row:not(.portal-shell-row):has(> .sidebar[data-portal-control*="Settings/"] .settings-side-menu):has(> .col-lg-10)::before {
    content:""; display:block; grid-column:1; grid-row:1;
  }
}
