
:root {
  --u5p-bg: #05090d;
  --u5p-panel: #081119;
  --u5p-panel2: #0a151e;
  --u5p-line: rgba(126, 236, 220, .12);
  --u5p-line2: rgba(255, 255, 255, .07);
  --u5p-text: #edf8f7;
  --u5p-muted: #78918f;
  --u5p-teal: #61e2d1;
  --u5p-green: #37df9c;
  --u5p-red: #ff6678;
}

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  background: var(--u5p-bg);
  color: var(--u5p-text);
}

body.jarvis-clean-product {
  overflow: auto;
  background:
    radial-gradient(
      circle at 40% -20%,
      rgba(31, 132, 126, .10),
      transparent 35%
    ),
    #05090d;
}

.jarvis-clean-product
#jarvisProductShell {
  width: 100%;
  min-height: 100vh;
}

#jarvisProductHeader {
  height: 58px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns:
    210px
    minmax(620px, 1fr)
    auto;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom:
    1px solid var(--u5p-line2);
  background:
    rgba(4, 9, 13, .97);
  position: sticky;
  top: 0;
  z-index: 10000;
}

.jph-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jph-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border:
    1px solid rgba(97, 226, 209, .35);
  border-radius: 8px;
  background:
    rgba(97, 226, 209, .08);
  color: var(--u5p-teal);
  font-weight: 800;
}

.jph-brand div {
  display: flex;
  flex-direction: column;
}

.jph-brand strong {
  font-size: 13px;
  letter-spacing: .14em;
}

.jph-brand small {
  margin-top: 2px;
  color: var(--u5p-muted);
  font-size: 8px;
  letter-spacing: .12em;
}

.jph-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
}

.jph-nav button {
  min-width: 72px;
  padding: 0 13px;
  border: 0;
  border-bottom:
    2px solid transparent;
  background: transparent;
  color: #7f9695;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.jph-nav button:hover,
.jph-nav button.active {
  color: #efffff;
  border-bottom-color:
    var(--u5p-teal);
  background:
    linear-gradient(
      to top,
      rgba(97,226,209,.07),
      transparent
    );
}

.jph-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.jph-status span {
  padding: 6px 9px;
  border:
    1px solid var(--u5p-line2);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.jph-paper {
  color: #ffd369;
}

.jph-broker {
  color: var(--u5p-teal);
}

#u5pPriorityBar {
  display: grid;
  grid-template-columns:
    1.12fr
    1.28fr
    1fr
    1fr
    1fr
    .82fr
    1.25fr
    1.25fr;
  gap: 1px;
  border-bottom:
    1px solid var(--u5p-line2);
  background: var(--u5p-line2);
}

.u5p-priority,
.u5p-mover {
  min-width: 0;
  min-height: 68px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 0;
  background:
    linear-gradient(
      180deg,
      #09131b,
      #071017
    );
  color: var(--u5p-text);
  text-align: left;
}

.u5p-priority small,
.u5p-mover small,
.u5p-control-label {
  display: block;
  margin-bottom: 7px;
  color: #607a79;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
}

.u5p-priority strong {
  display: block;
  overflow: hidden;
  color: #eefafa;
  font-size: 16px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.u5p-priority.pnl strong {
  font-size: 18px;
}

.u5p-priority.pnl div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

#u5pTodayPnlPercent {
  color: #76908e;
  font-size: 10px;
  font-weight: 700;
}

.u5p-positive {
  color:
    var(--u5p-green) !important;
}

.u5p-negative {
  color:
    var(--u5p-red) !important;
}

.u5p-mover {
  display: grid;
  grid-template-columns:
    31px
    minmax(0,1fr)
    auto;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.u5p-mover:hover {
  background: #0b1821;
}

.u5p-stock-logo {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border:
    1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  background: #101d25;
  color: #b9d1cf;
  font-size: 9px;
  font-weight: 850;
}

.u5p-mover span:nth-child(2) {
  min-width: 0;
}

.u5p-mover small {
  margin-bottom: 3px;
}

.u5p-mover b {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.u5p-mover strong {
  font-size: 11px;
}

.u5p-mover.winner strong {
  color: var(--u5p-green);
}

.u5p-mover.loser strong {
  color: var(--u5p-red);
}

#u5pControlBar {
  min-height: 48px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns:
    160px
    minmax(570px,1fr)
    auto;
  align-items: center;
  gap: 14px;
  padding: 7px 14px;
  border-bottom:
    1px solid var(--u5p-line2);
  background: #060c11;
}

.u5p-auto {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border:
    1px solid rgba(255,255,255,.09);
  border-radius: 7px;
  background: #09141b;
  color: #dcebea;
  text-align: left;
}

.u5p-auto:disabled {
  cursor: not-allowed;
  opacity: .76;
}

.u5p-auto-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #62706f;
  box-shadow:
    0 0 0 4px
    rgba(98,112,111,.08);
}

.u5p-auto small {
  display: block;
  color: #657b79;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .09em;
}

.u5p-auto b {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}

.u5p-regions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.u5p-control-label {
  margin:
    0 6px
    0 0;
}

.u5p-regions button {
  min-width: 42px;
  height: 30px;
  padding: 0 9px;
  border:
    1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: #09131a;
  color: #7e9291;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.u5p-regions button:hover,
.u5p-regions button.active {
  border-color:
    rgba(97,226,209,.42);
  background:
    rgba(97,226,209,.09);
  color: #dffffa;
}

.u5p-system-state {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.u5p-system-state span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #728785;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.u5p-system-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #556260;
}

#jarvisTradeWorkspace {
  width: 100%;
  min-height:
    calc(
      100vh - 175px
    );
  overflow: hidden;
  background: #05090d;
}

.jarvis-clean-product
#jarvisTradeWorkspace
#terminal {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-height:
    calc(
      100vh - 175px
    ) !important;
  margin: 0 !important;
  transform: none !important;
}

.jarvis-clean-product
#jarvisTradeWorkspace
#terminal.hidden {
  display: grid !important;
}

.jarvis-clean-product
#jarvisTradeWorkspace
#terminal > .topbar {
  display: none !important;
}

.jarvis-clean-product
#jarvisTradeWorkspace
#terminal > .rail {
  top: 0 !important;
}

@media (
  max-width: 1450px
) {
  #u5pPriorityBar {
    grid-template-columns:
      repeat(
        4,
        minmax(150px,1fr)
      );
  }

  #u5pControlBar {
    grid-template-columns:
      160px
      minmax(500px,1fr);
  }

  .u5p-system-state {
    display: none;
  }
}


/* U5P-A14-R2 IBKR STATE */

#u5pHeaderBroker[data-state="offline"] {
  color: #ffb020;
  border-color: rgba(255, 176, 32, 0.42);
  background: rgba(255, 176, 32, 0.08);
  white-space: nowrap;
}

#u5pHeaderBroker[data-state="ready"] {
  color: #27d6b0;
  border-color: rgba(39, 214, 176, 0.42);
  background: rgba(39, 214, 176, 0.08);
  white-space: nowrap;
}

html[data-u5p-ibkr-portfolio-state="unavailable"]
#u5pPriorityBar {
  --u5p-account-state: offline;
}

/* ============================================================
   JARVIS U5P-A17
   FINISHED-PRODUCT SHELL VISUAL FOUNDATION
   Scope: clean product shell only.
   Native T5 workspace remains structurally untouched.
   ============================================================ */

:root {
  --u5p-shell-bg: #070b0e;
  --u5p-shell-surface: #0b1115;
  --u5p-shell-surface-2: #0e151a;
  --u5p-shell-surface-3: #111a20;
  --u5p-shell-line: rgba(148, 171, 184, 0.14);
  --u5p-shell-line-strong: rgba(148, 171, 184, 0.24);
  --u5p-shell-text: #edf4f6;
  --u5p-shell-muted: #84959d;
  --u5p-shell-dim: #596971;
  --u5p-shell-accent: #27d6b0;
  --u5p-shell-accent-soft: rgba(39, 214, 176, 0.09);
  --u5p-shell-positive: #27d6b0;
  --u5p-shell-negative: #ff6474;
  --u5p-shell-warning: #e8b85d;
}

html,
body {
  background: var(--u5p-shell-bg);
}

#jarvisProductShell {
  width: 100%;
  min-width: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.012),
      transparent 180px
    ),
    var(--u5p-shell-bg);
  color: var(--u5p-shell-text);
}

/* ---------- PRODUCT HEADER ---------- */

#jarvisProductHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 58px;
  padding: 0 18px;
  display: grid;
  grid-template-columns:
    minmax(150px, auto)
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 18px;
  background:
    rgba(7, 11, 14, 0.96);
  border-bottom:
    1px solid var(--u5p-shell-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22);
}

#jarvisProductHeader .jarvis-product-brand,
#jarvisProductHeader .product-brand,
#jarvisProductHeader [class*="brand"] {
  min-width: 0;
}

#jarvisProductHeader nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

#jarvisProductHeader nav::-webkit-scrollbar {
  display: none;
}

#jarvisProductHeader nav button {
  position: relative;
  min-height: 57px;
  padding: 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--u5p-shell-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    color 120ms ease,
    background 120ms ease;
}

#jarvisProductHeader nav button:hover {
  color: var(--u5p-shell-text);
  background: rgba(255,255,255,0.025);
}

#jarvisProductHeader nav button.active,
#jarvisProductHeader nav button[aria-current="page"] {
  color: #ffffff;
}

#jarvisProductHeader nav button.active::after,
#jarvisProductHeader nav button[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--u5p-shell-accent);
  box-shadow:
    0 0 12px rgba(39,214,176,0.38);
}

#u5pHeaderMode,
#u5pHeaderBroker {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border:
    1px solid var(--u5p-shell-line-strong);
  border-radius: 5px;
  background: rgba(255,255,255,0.025);
  color: var(--u5p-shell-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

/* ---------- PRIORITY ACCOUNT BAR ---------- */

#u5pPriorityBar {
  position: relative;
  z-index: 80;
  width: 100%;
  min-height: 76px;
  padding: 10px 18px;
  display: grid;
  grid-template-columns:
    minmax(128px, 1.15fr)
    minmax(150px, 1.35fr)
    repeat(4, minmax(105px, 0.9fr))
    minmax(150px, 1.2fr)
    minmax(150px, 1.2fr);
  gap: 0;
  align-items: stretch;
  background:
    linear-gradient(
      180deg,
      #0c1216,
      #090e12
    );
  border-bottom:
    1px solid var(--u5p-shell-line);
  box-shadow:
    inset 0 -1px rgba(0,0,0,0.28);
}

#u5pPriorityBar > * {
  min-width: 0;
  padding: 5px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right:
    1px solid var(--u5p-shell-line);
}

#u5pPriorityBar > *:first-child {
  padding-left: 2px;
}

#u5pPriorityBar > *:last-child {
  border-right: 0;
}

#u5pPriorityBar span,
#u5pPriorityBar small,
#u5pPriorityBar label {
  color: var(--u5p-shell-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

#u5pPriorityBar strong,
#u5pPriorityBar b {
  margin-top: 3px;
  color: var(--u5p-shell-text);
  font-variant-numeric:
    tabular-nums lining-nums;
}

#u5pPortfolioValue,
#u5pTodayPnl {
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

#u5pOpenPnl,
#u5pRealizedPnl,
#u5pBuyingPower,
#u5pPositionCount {
  font-size: 15px;
}

#u5pTodayPnlPercent {
  margin-left: 5px;
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.u5p-positive,
#u5pPriorityBar .u5p-positive {
  color: var(--u5p-shell-positive) !important;
}

.u5p-negative,
#u5pPriorityBar .u5p-negative {
  color: var(--u5p-shell-negative) !important;
}

/* ---------- WINNER / LOSER ---------- */

#u5pWinnerCard,
#u5pLoserCard {
  cursor: pointer;
  transition:
    background 120ms ease,
    border-color 120ms ease;
}

#u5pWinnerCard:hover,
#u5pLoserCard:hover {
  background: rgba(255,255,255,0.025);
}

#u5pWinnerLogo,
#u5pLoserLogo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--u5p-shell-surface-3);
}

#u5pWinnerSymbol,
#u5pLoserSymbol {
  font-size: 12px;
  letter-spacing: 0.025em;
}

#u5pWinnerPnl,
#u5pLoserPnl {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* ---------- CONTROL BAR ---------- */

#u5pControlBar {
  position: relative;
  z-index: 70;
  min-height: 46px;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--u5p-shell-surface);
  border-bottom:
    1px solid var(--u5p-shell-line);
}

#u5pControlBar button {
  min-height: 30px;
  border:
    1px solid var(--u5p-shell-line-strong);
  border-radius: 5px;
  background: var(--u5p-shell-surface-2);
  color: var(--u5p-shell-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

#u5pAutoTradingToggle {
  opacity: 0.62;
  cursor: not-allowed;
}

#u5pRegions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

#u5pRegions [data-u5p-region] {
  min-width: 38px;
  min-height: 27px;
  padding: 0 8px;
  border:
    1px solid var(--u5p-shell-line);
  border-radius: 4px;
  background: rgba(255,255,255,0.018);
  color: var(--u5p-shell-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.045em;
}

#u5pRegions [data-u5p-region]:hover {
  border-color:
    rgba(39,214,176,0.30);
  color: var(--u5p-shell-text);
}

#u5pRegions [data-u5p-region].active,
#u5pRegions [data-u5p-region][aria-pressed="true"] {
  border-color:
    rgba(39,214,176,0.42);
  background: var(--u5p-shell-accent-soft);
  color: var(--u5p-shell-accent);
}

/* ---------- IBKR STATE ---------- */

#u5pHeaderBroker[data-state="offline"] {
  color: var(--u5p-shell-warning);
  border-color: rgba(232,184,93,0.30);
  background: rgba(232,184,93,0.06);
}

#u5pHeaderBroker[data-state="ready"] {
  color: var(--u5p-shell-accent);
  border-color: rgba(39,214,176,0.36);
  background: rgba(39,214,176,0.065);
}

/* ---------- T5 BOUNDARY ---------- */

#jarvisTradeWorkspace {
  position: relative;
  width: 100%;
  min-width: 0;
}

/*
  Deliberately do not restyle internal #terminal descendants here.
  T5 remains the native trading foundation and receives its own
  dedicated finished-product integration pass.
*/

/* ---------- RESPONSIVE SHELL ---------- */

@media (max-width: 1380px) {
  #u5pPriorityBar {
    grid-template-columns:
      repeat(4, minmax(120px, 1fr));
  }

  #u5pPriorityBar > * {
    border-bottom:
      1px solid var(--u5p-shell-line);
  }
}

@media (max-width: 980px) {
  #jarvisProductHeader {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 0 10px;
  }

  #jarvisProductHeader nav {
    justify-content: flex-start;
  }

  #u5pPriorityBar {
    padding-left: 10px;
    padding-right: 10px;
    grid-template-columns:
      repeat(2, minmax(135px, 1fr));
  }

  #u5pControlBar {
    padding-left: 10px;
    padding-right: 10px;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  #jarvisProductHeader {
    position: relative;
    display: block;
    padding: 8px 10px 0;
  }

  #jarvisProductHeader nav {
    margin-top: 6px;
  }

  #jarvisProductHeader nav button {
    min-height: 40px;
  }

  #u5pPriorityBar {
    grid-template-columns: 1fr 1fr;
  }
}


/* ============================================================
   JARVIS U5P-A18
   PROFESSIONAL SHELL DENSITY + T5 INTEGRATION

   Purpose:
   - reduce shell vertical footprint
   - increase information density
   - establish financial hierarchy
   - eliminate visual gap before T5
   - preserve native T5 internals
   ============================================================ */

/* ---------- HEADER DENSITY ---------- */

#jarvisProductHeader {
  min-height: 48px;
  padding-left: 14px;
  padding-right: 14px;
  gap: 14px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18);
}

#jarvisProductHeader nav button {
  min-height: 47px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 11px;
}

#jarvisProductHeader nav button.active::after,
#jarvisProductHeader nav button[aria-current="page"]::after {
  left: 9px;
  right: 9px;
}

#u5pHeaderMode,
#u5pHeaderBroker {
  min-height: 24px;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 9px;
}


/* ---------- ACCOUNT STRIP ---------- */

#u5pPriorityBar {
  min-height: 64px;
  padding: 7px 14px;

  grid-template-columns:
    minmax(130px, 1.05fr)
    minmax(150px, 1.22fr)
    minmax(112px, 0.90fr)
    minmax(112px, 0.90fr)
    minmax(130px, 1fr)
    minmax(100px, 0.78fr)
    minmax(150px, 1.10fr)
    minmax(150px, 1.10fr);

  background:
    linear-gradient(
      180deg,
      rgba(13, 21, 26, 0.98),
      rgba(8, 14, 18, 0.98)
    );
}

#u5pPriorityBar > * {
  padding: 3px 12px;
}

#u5pPriorityBar span,
#u5pPriorityBar small,
#u5pPriorityBar label {
  font-size: 8px;
  letter-spacing: 0.075em;
}

#u5pPriorityBar strong,
#u5pPriorityBar b {
  margin-top: 2px;
}


/* ---------- PRIMARY FINANCIAL HIERARCHY ---------- */

#u5pTodayPnl {
  font-size: 20px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.035em;
}

#u5pTodayPnlPercent {
  font-size: 10px;
  font-weight: 760;
}

#u5pPortfolioValue {
  font-size: 17px;
  font-weight: 690;
}

#u5pBuyingPower {
  font-size: 14px;
  font-weight: 660;
}

#u5pOpenPnl,
#u5pRealizedPnl {
  font-size: 13px;
  font-weight: 650;
}

#u5pPositionCount {
  font-size: 14px;
  font-weight: 720;
}


/* ---------- MOVER COMPRESSION ---------- */

#u5pWinnerCard,
#u5pLoserCard {
  padding-top: 3px;
  padding-bottom: 3px;
}

#u5pWinnerLogo,
#u5pLoserLogo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

#u5pWinnerSymbol,
#u5pLoserSymbol {
  font-size: 11px;
  font-weight: 720;
}

#u5pWinnerPnl,
#u5pLoserPnl {
  font-size: 10px;
  font-weight: 690;
}


/* ---------- CONTROL / REGION STRIP ---------- */

#u5pControlBar {
  min-height: 36px;
  padding: 4px 14px;
  gap: 9px;

  background:
    rgba(8, 14, 18, 0.98);
}

#u5pControlBar button {
  min-height: 26px;
  font-size: 9px;
}

#u5pAutoTradingToggle {
  min-height: 26px;
  padding-left: 9px;
  padding-right: 9px;
}

#u5pRegions {
  gap: 4px;
}

#u5pRegions [data-u5p-region] {
  min-width: 34px;
  min-height: 24px;
  padding-left: 7px;
  padding-right: 7px;
  font-size: 8px;
}


/* ---------- SHELL ? T5 JOIN ---------- */

#jarvisTradeWorkspace {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0;
  background: #070c10;
}

/*
  The clean shell must visually terminate directly into the
  native T5 terminal. We intentionally do not target internal
  #terminal descendants in this pass.
*/

#jarvisProductShell > #jarvisTradeWorkspace {
  margin-block-start: 0 !important;
}


/* ---------- LARGE DESKTOP ---------- */

@media (min-width: 1600px) {

  #jarvisProductHeader {
    padding-left: 16px;
    padding-right: 16px;
  }

  #u5pPriorityBar {
    padding-left: 16px;
    padding-right: 16px;
  }

  #u5pControlBar {
    padding-left: 16px;
    padding-right: 16px;
  }

}


/* ---------- MID DESKTOP ---------- */

@media (max-width: 1380px) {

  #u5pPriorityBar {
    grid-template-columns:
      repeat(4, minmax(120px, 1fr));
  }

}


/* ---------- TABLET ---------- */

@media (max-width: 980px) {

  #jarvisProductHeader {
    min-height: 48px;
  }

  #u5pPriorityBar {
    grid-template-columns:
      repeat(2, minmax(135px, 1fr));
  }

  #u5pControlBar {
    flex-wrap: wrap;
  }

}


/* D20_P8_CN_VISIBLE_CANONICAL_ASSET_CONTROLS */
.jarvis-clean-product #browserTabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.jarvis-clean-product #browserTabs button {
  min-width: 0;
  min-height: 28px;
  padding: 4px;
  font-size: 10px;
  white-space: normal;
}

/* D20_P8_CY_PRESENTATION_ONLY_INSTRUMENT_LOGOS */
.jarvis-instrument-logo { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; flex:0 0 24px; box-sizing:border-box; overflow:hidden; border:1px solid #263d4b; border-radius:7px; background:#10202b; color:#b8d2e2; font:600 10px/1 system-ui,sans-serif; vertical-align:middle; }
.jarvis-instrument-logo img { display:block; width:100%; height:100%; object-fit:contain; background:#fff; }
.jarvis-has-logo { position:relative; padding-left:29px; min-height:24px; }
.jarvis-has-logo > .jarvis-instrument-logo { position:absolute; left:0; top:50%; transform:translateY(-50%); }
.jarvis-instrument-logo-header { width:32px; height:32px; flex-basis:32px; margin-right:6px; font-size:12px; }
