/* StoxCredit market detail redesign v6 (route: #/market/<id>/borrow, data-production-route="market").
   Colors: existing tokens only (--sc-brand from the live primary button, --p, --line via color-mix).
   Layout, spacing, type, and motion only. No financial logic, addresses, or routes are changed.
   Selectors use the page's own high-specificity prefix so they win the cascade. */

/* ---------- One navigation system: remove the duplicate floating pill nav ---------- */
nav#scrollRouteNav { display: none !important; }

/* ---------- Two-column desktop layout: market information left, transaction panel right ---------- */
html[data-production-route="market"] body.stock-detail-mode #appView .layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  padding-top: 4px !important;
}
html[data-production-route="market"] body.stock-detail-mode #appView .layout > article#stockDetailContent {
  min-width: 0 !important;
}
html[data-production-route="market"] body.stock-detail-mode #appView .layout > aside {
  position: sticky !important;
  top: 84px !important;
  max-height: calc(100vh - 100px) !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  min-width: 0 !important;
}
html[data-production-route="market"] body.stock-detail-mode #appView .back-markets {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 10px;
  font-size: 13px;
  text-decoration: none;
  color: var(--sc-brand, currentColor);
}
html[data-production-route="market"] body.stock-detail-mode #appView .back-markets:hover { text-decoration: underline; }

/* ---------- Compact market header (target ~120-180px) ---------- */
html[data-production-route="market"] body.stock-detail-mode #marketOverview {
  display: grid !important;
  gap: 0 !important;
  margin: 0 0 14px !important;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .market-identity {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 0 12px !important;
  animation: sc-mkd-in .7s cubic-bezier(.22, 1, .36, 1) both;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .market-identity h1 {
  font-family: "Instrument Serif", Georgia, serif !important;
  font-weight: 400 !important;
  font-size: clamp(28px, 2.6vw, 38px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .market-identity p {
  font-size: 13px !important;
  margin: 2px 0 0 !important;
  opacity: .72;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .token-stack { display: inline-flex; }
html[data-production-route="market"] body.stock-detail-mode #marketOverview .token-stack .coin {
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .market-identity:hover .token-stack .coin:first-child { transform: translateX(-3px) rotate(-6deg); }
html[data-production-route="market"] body.stock-detail-mode #marketOverview .market-identity:hover .token-stack .coin:last-child { transform: translateX(3px) rotate(6deg); }
html[data-production-route="market"] body.stock-detail-mode #marketOverview .lltv-pill {
  margin-left: auto;
  padding: 6px 10px !important;
  font-size: 12px !important;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  white-space: nowrap;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .market-tvl {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 0 14px !important;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  font-size: 13px;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .market-tvl strong {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 600;
}

/* ---------- Stats: six metrics in a structured 3 x 2 grid with hairlines ---------- */
html[data-production-route="market"] body.stock-detail-mode #marketOverview .overview-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  margin: 0 !important;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .overview-stats > div {
  display: grid !important;
  align-content: start;
  gap: 3px !important;
  padding: 12px 14px !important;
  min-width: 0;
  border-left: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .overview-stats > div:nth-child(3n+1) { border-left: 0 !important; padding-left: 0 !important; }
html[data-production-route="market"] body.stock-detail-mode #marketOverview .overview-stats > div:nth-child(n+4) { border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent) !important; }
html[data-production-route="market"] body.stock-detail-mode #marketOverview .overview-stats > div > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .66;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .overview-stats > div > strong {
  font-family: var(--mono) !important;
  font-variant-numeric: tabular-nums;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .overview-stats > div > small {
  font-size: 11px !important;
  opacity: .62;
  line-height: 1.35;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .utilization-track {
  height: 4px !important;
  border-radius: 999px;
  margin-top: 6px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .utilization-track > i {
  display: block;
  height: 100%;
  background: var(--sc-brand, currentColor);
  transform-origin: left center;
  animation: sc-mkd-grow 1.1s cubic-bezier(.22, 1, .36, 1) .3s both;
}
@keyframes sc-mkd-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Borrow APY / Lend APY: labelled as variable ---------- */
html[data-production-route="market"] body.stock-detail-mode #marketOverview .rate-pair {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  margin: 0 !important;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .rate-pair > div {
  display: grid !important;
  gap: 3px !important;
  padding: 12px 14px !important;
  border-left: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .rate-pair > div:first-child { border-left: 0; padding-left: 0; }
html[data-production-route="market"] body.stock-detail-mode #marketOverview .rate-pair > div > span {
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .66;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .rate-pair > div > strong {
  font-family: var(--mono) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .rate-pair > div > small {
  justify-self: start;
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--sc-brand, currentColor);
  border: 1px solid color-mix(in srgb, var(--sc-brand, currentColor) 40%, transparent);
}

/* ---------- Tabs: section navigation with an animated underline ---------- */
html[data-production-route="market"] body.stock-detail-mode #appView .detail-nav {
  display: flex !important;
  gap: 20px !important;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  margin: 14px 0 12px !important;
  overflow-x: auto;
  scrollbar-width: none;
}
html[data-production-route="market"] body.stock-detail-mode #appView .detail-nav button {
  position: relative;
  background: none !important;
  border: 0 !important;
  padding: 8px 0 10px !important;
  font-size: 13px !important;
  font-weight: 600;
  color: inherit;
  opacity: .6;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .3s ease;
}
html[data-production-route="market"] body.stock-detail-mode #appView .detail-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--sc-brand, currentColor);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
html[data-production-route="market"] body.stock-detail-mode #appView .detail-nav button:hover { opacity: 1; }
html[data-production-route="market"] body.stock-detail-mode #appView .detail-nav button.on { opacity: 1; }
html[data-production-route="market"] body.stock-detail-mode #appView .detail-nav button.on::after { transform: scaleX(1); }
html[data-production-route="market"] body.stock-detail-mode #appView .detail-nav button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

/* ---------- Market information: compact key-value rows ---------- */
html[data-production-route="market"] body.stock-detail-mode #marketInformation {
  animation: sc-mkd-in .6s cubic-bezier(.22, 1, .36, 1) .1s both;
}
html[data-production-route="market"] body.stock-detail-mode #marketInformation h2 {
  font-family: "Instrument Serif", Georgia, serif !important;
  font-weight: 400 !important;
  font-size: 26px !important;
  line-height: 1.1 !important;
  margin: 0 0 6px !important;
}
html[data-production-route="market"] body.stock-detail-mode #marketInformation h3 {
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .66;
  margin: 18px 0 4px !important;
}
html[data-production-route="market"] body.stock-detail-mode #marketInformation .market-overview-note,
html[data-production-route="market"] body.stock-detail-mode #marketInformation > p {
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 4px 0 !important;
}
html[data-production-route="market"] body.stock-detail-mode #marketInformation .attribute {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline;
  gap: 16px !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  font-size: 14px;
}
html[data-production-route="market"] body.stock-detail-mode #marketInformation .attribute > span { opacity: .66; flex: none; }
html[data-production-route="market"] body.stock-detail-mode #marketInformation .attribute > b {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
html[data-production-route="market"] body.stock-detail-mode #marketInformation details.contract-details {
  margin-top: 12px;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  padding-top: 10px;
}
html[data-production-route="market"] body.stock-detail-mode #marketInformation details > summary,
html[data-production-route="market"] body.stock-detail-mode details.market-info > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
html[data-production-route="market"] body.stock-detail-mode details > summary::after {
  content: "+";
  font-family: var(--mono);
  opacity: .6;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
html[data-production-route="market"] body.stock-detail-mode details[open] > summary::after { transform: rotate(45deg); }
html[data-production-route="market"] body.stock-detail-mode details > summary::-webkit-details-marker { display: none; }
html[data-production-route="market"] body.stock-detail-mode .oracle-update-note {
  font-size: 12px;
  opacity: .66;
  margin: 8px 0 0;
}

/* ---------- Contract details: full address, wrapped, never clipped ---------- */
html[data-production-route="market"] body.stock-detail-mode .contract-line {
  font-size: 12px;
  line-height: 1.5;
  padding: 6px 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}
html[data-production-route="market"] body.stock-detail-mode .contract-line a {
  font-family: var(--mono);
  color: var(--sc-brand, currentColor);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  transition: border-color .3s ease;
}
html[data-production-route="market"] body.stock-detail-mode .contract-line a:hover { border-color: var(--sc-brand, currentColor); }
html[data-production-route="market"] body.stock-detail-mode .sc-copy {
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform .2s ease, border-color .3s ease;
}
html[data-production-route="market"] body.stock-detail-mode .sc-copy:hover { border-color: var(--sc-brand, currentColor); }
html[data-production-route="market"] body.stock-detail-mode .sc-copy:active { transform: scale(.94); }
html[data-production-route="market"] body.stock-detail-mode .sc-copy:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
html[data-production-route="market"] body.stock-detail-mode .market-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-brand, currentColor);
  text-decoration: none;
  margin-top: 6px;
}
html[data-production-route="market"] body.stock-detail-mode .market-link:hover { text-decoration: underline; }

/* ---------- Transaction panel: prominent, segmented tabs ---------- */
html[data-production-route="market"] body.stock-detail-mode #appView .layout > aside section.panel {
  border-radius: 16px;
  padding: 18px !important;
}
html[data-production-route="market"] body.stock-detail-mode #details .tabs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
  padding: 4px !important;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 5%, transparent);
  margin: 0 0 14px !important;
}
html[data-production-route="market"] body.stock-detail-mode #details .tabs button {
  padding: 9px 4px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: inherit;
  font-size: 13px !important;
  font-weight: 600;
  opacity: .66;
  cursor: pointer;
  transition: background-color .35s ease, color .35s ease, opacity .35s ease, box-shadow .35s ease;
}
html[data-production-route="market"] body.stock-detail-mode #details .tabs button:hover { opacity: 1; }
html[data-production-route="market"] body.stock-detail-mode #details .tabs button.on {
  opacity: 1;
  background: var(--p, #fff) !important;
  color: var(--sc-brand, currentColor) !important;
  box-shadow: 0 1px 3px color-mix(in srgb, currentColor 14%, transparent);
}
html[data-production-route="market"] body.stock-detail-mode #details .tabs button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* Inputs: consistent size, clear focus ring, Max feedback */
html[data-production-route="market"] body.stock-detail-mode #form .field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
html[data-production-route="market"] body.stock-detail-mode #form .balance-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  gap: 8px;
}
html[data-production-route="market"] body.stock-detail-mode #form .balance-row > span { font-weight: 600; font-size: 13px; }
html[data-production-route="market"] body.stock-detail-mode #form .balance-row > b { font-weight: 500; opacity: .66; font-size: 12px; }
html[data-production-route="market"] body.stock-detail-mode #form .amount {
  display: flex !important;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 8px 0 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  transition: border-color .3s ease, box-shadow .3s ease;
}
html[data-production-route="market"] body.stock-detail-mode #form .amount:focus-within {
  border-color: var(--sc-brand, currentColor);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc-brand, currentColor) 14%, transparent);
}
html[data-production-route="market"] body.stock-detail-mode #form .amount input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--mono) !important;
  font-size: 24px !important;
  font-weight: 600;
  color: inherit;
  padding: 0 !important;
  outline: none;
}
html[data-production-route="market"] body.stock-detail-mode #form .max-btn {
  flex: none;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  background: transparent;
  color: var(--sc-brand, currentColor);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .2s ease, background-color .25s ease, border-color .25s ease;
}
html[data-production-route="market"] body.stock-detail-mode #form .max-btn:hover {
  background: color-mix(in srgb, var(--sc-brand, currentColor) 8%, transparent);
  border-color: var(--sc-brand, currentColor);
}
html[data-production-route="market"] body.stock-detail-mode #form .max-btn:active { transform: scale(.94); }
html[data-production-route="market"] body.stock-detail-mode #form .market-input-equivalent,
html[data-production-route="market"] body.stock-detail-mode #form .hint {
  font-size: 12px;
  opacity: .66;
  margin: 0;
}
html[data-production-route="market"] body.stock-detail-mode #form .position-metrics {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px 14px !important;
  padding: 10px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
html[data-production-route="market"] body.stock-detail-mode #form .position-metrics > div { display: grid; gap: 2px; }
html[data-production-route="market"] body.stock-detail-mode #form .position-metrics span { font-size: 11px; opacity: .66; text-transform: uppercase; letter-spacing: .06em; }
html[data-production-route="market"] body.stock-detail-mode #form .position-metrics b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; }

html[data-production-route="market"] body.stock-detail-mode #details .market-live-preview { margin: 10px 0; }
html[data-production-route="market"] body.stock-detail-mode #details .estimate { margin: 10px 0 12px; }
html[data-production-route="market"] body.stock-detail-mode #details .estimate strong { font-family: var(--mono); font-size: 22px; font-variant-numeric: tabular-nums; transition: opacity .3s ease; }
html[data-production-route="market"] body.stock-detail-mode #details button#action.primary {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), filter .25s ease, opacity .25s ease;
}
html[data-production-route="market"] body.stock-detail-mode #details button#action.primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
html[data-production-route="market"] body.stock-detail-mode #details button#action.primary:active:not(:disabled) { transform: scale(.985); }
html[data-production-route="market"] body.stock-detail-mode #details button#action.primary:disabled { opacity: .55; cursor: not-allowed; }
html[data-production-route="market"] body.stock-detail-mode #details .notice { font-size: 12px; line-height: 1.5; opacity: .72; margin: 10px 0 0; }
html[data-production-route="market"] body.stock-detail-mode #details details.projection-details { margin: 8px 0; }
html[data-production-route="market"] body.stock-detail-mode #details details.projection-details > summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 6px 0; }

/* Position summary: compact rows */
html[data-production-route="market"] body.stock-detail-mode #details #positionSummary.position-summary {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
html[data-production-route="market"] body.stock-detail-mode #details #positionSummary .summary-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .66;
  margin-bottom: 4px;
}
html[data-production-route="market"] body.stock-detail-mode #details #positionSummary > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
  font-size: 13px;
}
html[data-production-route="market"] body.stock-detail-mode #details #positionSummary > div > span { opacity: .66; }
html[data-production-route="market"] body.stock-detail-mode #details #positionSummary > div > b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }

/* Stat icons: small, brand-tinted, sized so they never render as solid blocks */
html[data-production-route="market"] body.stock-detail-mode #marketOverview .sc-stat-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font-style: normal;
  color: var(--sc-brand, currentColor);
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: transparent;
}
html[data-production-route="market"] body.stock-detail-mode #marketOverview .sc-stat-ico svg {
  display: block;
  width: 11px;
  height: 11px;
  fill: none;
}

/* Entrance motion */
@keyframes sc-mkd-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Tablet and phone: stack, keep the transaction panel reachable ---------- */
@media (max-width: 960px) {
  html[data-production-route="market"] body.stock-detail-mode #appView .layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  html[data-production-route="market"] body.stock-detail-mode #appView .layout > aside {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
@media (max-width: 960px) {
  html[data-production-route="market"] body.stock-detail-mode #appView .layout > article#stockDetailContent { order: 0 !important; grid-row: auto !important; grid-column: auto !important; grid-area: auto !important; }
  html[data-production-route="market"] body.stock-detail-mode #appView .layout > aside { order: 1 !important; grid-row: auto !important; grid-column: auto !important; grid-area: auto !important; }
}
@media (max-width: 600px) {
  html[data-production-route="market"] body.stock-detail-mode #marketOverview .market-identity { flex-wrap: wrap; }
  html[data-production-route="market"] body.stock-detail-mode #marketOverview .lltv-pill { margin-left: 0; }
  html[data-production-route="market"] body.stock-detail-mode #marketOverview .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html[data-production-route="market"] body.stock-detail-mode #marketOverview .overview-stats > div:nth-child(3n+1) { border-left: 1px solid color-mix(in srgb, currentColor 12%, transparent) !important; padding-left: 14px !important; }
  html[data-production-route="market"] body.stock-detail-mode #marketOverview .overview-stats > div:nth-child(2n+1) { border-left: 0 !important; padding-left: 0 !important; }
  html[data-production-route="market"] body.stock-detail-mode #marketOverview .overview-stats > div:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent) !important; }
  html[data-production-route="market"] body.stock-detail-mode #marketOverview .overview-stats > div:nth-child(-n+2) { border-top: 0 !important; }
  html[data-production-route="market"] body.stock-detail-mode #marketOverview .rate-pair { grid-template-columns: 1fr 1fr !important; }
  html[data-production-route="market"] body.stock-detail-mode #form .amount { height: 52px; }
  html[data-production-route="market"] body.stock-detail-mode #form .amount input { font-size: 22px !important; }
  html[data-production-route="market"] body.stock-detail-mode #appView .detail-nav { gap: 16px !important; }
}

/* ---------- Reduced motion: no entrance or bar animation, instant state changes ---------- */
@media (prefers-reduced-motion: reduce) {
  html[data-production-route="market"] body.stock-detail-mode #marketOverview .market-identity,
  html[data-production-route="market"] body.stock-detail-mode #marketInformation,
  html[data-production-route="market"] body.stock-detail-mode #marketOverview .utilization-track > i,
  html[data-production-route="market"] body.stock-detail-mode #appView .detail-nav button::after,
  html[data-production-route="market"] body.stock-detail-mode #details .tabs button,
  html[data-production-route="market"] body.stock-detail-mode #form .amount,
  html[data-production-route="market"] body.stock-detail-mode #details button#action.primary { animation: none !important; transition: none !important; transform: none !important; }
}
