/* BriefRooms Stock Trading — two independent market actions.
   Presentation only: the renderer's navigation and portfolio state stay unchanged. */
.stock-trading-page .str-market-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stock-trading-page .str-market-tab,
.stock-trading-page .str-market-tab:not(.is-active) {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 70px;
  padding: 11px 14px 13px;
  border: 1px solid #658ca5;
  border-radius: 14px;
  background: #13364b;
  color: #f5fbff;
  text-shadow: none;
  box-shadow: 0 4px 0 #061a29, 0 8px 15px rgba(0, 0, 0, .19);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .16s ease, border-color .16s ease,
              box-shadow .16s ease, transform .16s ease;
}

/* No shared glass overlay: each control has its own bounded surface. */
.stock-trading-page .str-market-tab::before,
.stock-trading-page .str-market-tab::after {
  content: none;
}

.stock-trading-page .str-market-tab-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.015em;
}

.stock-trading-page .str-market-tab small {
  position: relative;
  color: #c0d6e5;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}

.stock-trading-page .str-market-tab:hover {
  transform: translateY(-2px);
  border-color: #a7d8e7;
  background: #1b445c;
  box-shadow: 0 6px 0 #061a29, 0 11px 17px rgba(0, 0, 0, .23);
}

.stock-trading-page .str-market-tab.is-active,
.stock-trading-page .str-market-tab.is-active:hover {
  border: 2px solid #45ded5;
  background: #0c454c;
  color: #ffffff;
  box-shadow: 0 4px 0 #063039, 0 8px 17px rgba(0, 0, 0, .22);
}

.stock-trading-page .str-market-tab.is-active:hover {
  transform: translateY(-2px);
  background: #0d5358;
}

.stock-trading-page .str-market-tab.is-active small {
  color: #d3f6f1;
}

.stock-trading-page .str-market-tab.is-active::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #45ded5;
  pointer-events: none;
}

.stock-trading-page .str-market-tab:focus-visible {
  z-index: 1;
  outline: 3px solid #f5fbff;
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .stock-trading-page .str-market-tabs {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .stock-trading-page .str-market-tab,
  .stock-trading-page .str-market-tab:not(.is-active) {
    min-height: 64px;
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stock-trading-page .str-market-tab {
    transition: none;
  }
  .stock-trading-page .str-market-tab:hover,
  .stock-trading-page .str-market-tab.is-active:hover {
    transform: none;
  }
}


/* 2026-10-22 approved visual: illustrated independent market actions.
   Both illustrations are original, local SVGs; portfolio state stays read-only. */
@media (min-width: 1251px) {
  .stock-trading-page .str-market-overview {
    grid-template-columns: minmax(0, 1fr) minmax(270px, .31fr) 210px;
    gap: 16px;
  }
}
.stock-trading-page .str-market-tab,
.stock-trading-page .str-market-tab:not(.is-active) {
  isolation: isolate;
  align-items: flex-start;
  justify-content: center;
  min-height: 92px;
  gap: 4px;
  padding: 15px 55px 14px 22px;
  overflow: hidden;
  background-color: #113c56;
  background-image: none;
}
.stock-trading-page .str-market-tab[data-market-jump="US"] { background-color: #1a3052; }
.stock-trading-page .str-market-tab::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: url("/assets/stock-market-gpw-skyline.svg") right center / cover no-repeat;
  opacity: .94;
  pointer-events: none;
}
.stock-trading-page .str-market-tab[data-market-jump="US"]::before {
  background-image: url("/assets/stock-market-us-skyline.svg");
}
.stock-trading-page .str-market-tab::after,
.stock-trading-page .str-market-tab.is-active::after {
  content: "›";
  position: absolute;
  right: 13px;
  top: 50%;
  left: auto;
  bottom: auto;
  z-index: 2;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(232,251,255,.67);
  border-radius: 50%;
  background: rgba(2,18,33,.49);
  color: #effcff;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 350;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 1px 6px rgba(0,0,0,.22);
  pointer-events: none;
}
.stock-trading-page .str-market-tab-title,
.stock-trading-page .str-market-tab small {
  position: relative;
  z-index: 1;
  text-align: left;
}
.stock-trading-page .str-market-tab-title {
  justify-content: flex-start;
  gap: 12px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.stock-trading-page .str-market-tab .str-flag {
  width: 46px;
  height: 30px;
  flex: 0 0 46px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.19), 0 3px 7px rgba(0,0,0,.23);
}
.stock-trading-page .str-market-tab .str-flag-us {
  background: repeating-linear-gradient(to bottom,#b22234 0 2.31px,#fff 2.31px 4.62px);
}
.stock-trading-page .str-market-tab .str-flag-us::before { width: 20px; height: 16px; }
.stock-trading-page .str-market-tab small {
  margin-left: 58px;
  color: #e2eff7;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}
.stock-trading-page .str-market-tab:hover {
  background-color: #16586e;
}
.stock-trading-page .str-market-tab[data-market-jump="US"]:hover {
  background-color: #26456f;
}
.stock-trading-page .str-market-tab.is-active,
.stock-trading-page .str-market-tab.is-active:hover {
  background-color: #036571;
  box-shadow: 0 4px 0 #063039, 0 9px 18px rgba(0,0,0,.26), inset 0 -3px 0 #0ce8dc;
}
.stock-trading-page .str-market-tab.is-active:hover { background-color: #087784; }
.stock-trading-page .str-market-tab.is-active small { color: #efffff; }
@media (min-width: 901px) and (max-width: 1250px) {
  .stock-trading-page .str-market-overview { grid-template-columns: minmax(0,1fr); }
  .stock-trading-page .str-data-stamp { grid-column: auto; }
}
@media (max-width: 620px) {
  .stock-trading-page .str-market-tab,
  .stock-trading-page .str-market-tab:not(.is-active) {
    min-height: 80px;
    padding: 12px 53px 12px 15px;
  }
  .stock-trading-page .str-market-tab-title { font-size: 18px; gap: 10px; }
  .stock-trading-page .str-market-tab .str-flag { width:38px; height:25px; flex-basis:38px; }
  .stock-trading-page .str-market-tab .str-flag-us { background: repeating-linear-gradient(to bottom,#b22234 0 1.92px,#fff 1.92px 3.84px); }
  .stock-trading-page .str-market-tab .str-flag-us::before { width:17px; height:13px; }
  .stock-trading-page .str-market-tab small { margin-left:48px; font-size:11px; white-space:normal; }
  .stock-trading-page .str-market-tab::after,
  .stock-trading-page .str-market-tab.is-active::after { right:10px; width:32px; height:32px; font-size:26px; }
}


/* 2026-10-22: align GPW and USA status headers on the SAME row.
   Portfolio data remains directly above USA. Presentation only. */
@media (min-width: 1251px) {
  .stock-trading-page .str-market-overview {
    grid-template-columns: minmax(0, 1.83fr) minmax(470px, 1fr);
    gap: 16px;
  }
}
.stock-trading-page .str-market-statuses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  align-items: stretch;
}
.stock-trading-page .str-market-us-panel {
  display: contents;
}
.stock-trading-page .str-market-statuses > .str-market-status {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  border-left: 0;
  border-right: 1px solid rgba(82,161,197,.18);
}
.stock-trading-page .str-market-us-panel > .str-data-stamp {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
  gap: 8px;
  padding: 7px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.stock-trading-page .str-market-us-panel .str-data-stamp > span {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 7px;
}
.stock-trading-page .str-market-us-panel .str-data-stamp svg {
  width: 16px;
  height: 16px;
}
.stock-trading-page .str-market-us-panel .str-data-stamp strong {
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.stock-trading-page .str-market-us-panel > .str-market-status {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  border-top: 1px solid rgba(82,161,197,.13);
}
/* Matching vertical padding and top alignment makes both status headings
   share exactly the same y coordinate even when descriptions wrap. */
.stock-trading-page .str-market-statuses > .str-market-status,
.stock-trading-page .str-market-us-panel > .str-market-status {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 10px 12px;
  gap: 8px;
}
.stock-trading-page .str-market-statuses .str-status-dot {
  margin-top: 3px;
}
.stock-trading-page .str-market-status > div,
.stock-trading-page .str-data-stamp > div {
  min-width: 0;
}
.stock-trading-page .str-market-status strong {
  line-height: 1.25;
}
.stock-trading-page .str-market-status small {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
@media (max-width: 1250px) {
  .stock-trading-page .str-market-overview {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  .stock-trading-page .str-market-statuses {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }
  .stock-trading-page .str-market-statuses > .str-market-status {
    grid-column: 1;
    grid-row: 1;
    border-right: 0;
    border-bottom: 1px solid rgba(82,161,197,.18);
    padding: 12px 14px;
  }
  .stock-trading-page .str-market-us-panel > .str-data-stamp {
    grid-column: 1;
    grid-row: 2;
    padding: 10px 14px 7px;
  }
  .stock-trading-page .str-market-us-panel > .str-market-status {
    grid-column: 1;
    grid-row: 3;
    padding: 10px 14px 12px;
  }
}
