.markets-shell-wrapper {
  padding: 0 !important;
  margin: 0 auto;
  max-width: none;
}

.company-tear-sheet {
  --company-text: #f8fbff;
  --company-muted: #d9e5f4;
  --company-muted-soft: #c2d0e2;
  display: grid;
  gap: 24px;
  color: var(--company-text);
}

.company-title-mobile,
.company-invest-mobile {
  display: none;
}

.company-back-label {
  margin-left: 0.25rem;
}

.company-hero {
  position: relative;
}

.company-tear-sheet > * {
  min-width: 0;
}

.company-tear-sheet .text-slate-50,
.company-tear-sheet .text-slate-100 {
  color: var(--company-text) !important;
}

.company-tear-sheet .text-slate-200,
.company-tear-sheet .text-slate-300 {
  color: var(--company-muted) !important;
}

.company-tear-sheet .text-slate-400,
.company-tear-sheet .text-slate-500,
.company-tear-sheet .text-slate-600 {
  color: var(--company-muted-soft) !important;
}

.company-tear-sheet .bg-white\/\[0\.02\] {
  background-color: rgba(255, 255, 255, 0.055) !important;
}

.company-tear-sheet input::placeholder {
  color: rgba(217, 229, 244, 0.72);
}

.company-chart-shell {
  min-height: clamp(310px, 34vw, 440px);
}

.company-chart-canvas-wrap {
  position: relative;
  height: clamp(230px, 27vw, 350px);
  min-width: 0;
  overflow: hidden;
  background: transparent;
}

.company-chart-canvas-wrap::after {
  content: none;
}

#priceChart {
  position: relative;
  z-index: 1;
  display: block;
}

.price-range-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 440px;
}

.price-range-btn {
  min-height: 2.25rem;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(194, 208, 226, 0.78);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.price-range-btn:hover,
.price-range-btn:focus-visible {
  color: #f8fbff;
  outline: none;
  border-color: rgba(255, 255, 255, 0.18);
}

.price-range-btn.is-active,
.price-range-btn[aria-pressed="true"] {
  color: #f8fbff;
  background: rgba(64, 82, 172, 0.34);
  border-color: rgba(129, 140, 248, 0.22);
}

.company-description-copy {
  color: rgba(217, 229, 244, 0.86);
}

.company-richerai-workspace {
  border-top: 1px solid rgba(216, 225, 238, 0.12);
  border-bottom: 1px solid rgba(132, 154, 184, 0.36);
  background: linear-gradient(180deg, rgba(8, 13, 21, 0.18), rgba(8, 13, 21, 0));
  padding: 1.65rem 0 0;
}

.company-richerai-workspace h2 {
  color: #dbe7f7;
  font-size: 0.82rem;
  font-weight: 720;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
}

.company-richerai-kicker {
  margin-top: 0.9rem;
  color: rgba(217, 229, 244, 0.78);
  font-size: 0.95rem;
  line-height: 1.4;
}

.company-richerai-actions {
  margin-top: 1.7rem;
  display: grid;
  gap: 1.7rem;
}

.company-richerai-actions li {
  display: grid;
  grid-template-columns: 3.05rem minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.company-richerai-actions strong,
.company-richerai-actions em {
  display: block;
  font-style: normal;
}

.company-richerai-actions strong {
  color: #f8fbff;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
}

.company-richerai-actions em {
  margin-top: 0.38rem;
  color: rgba(217, 229, 244, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
}

.company-richerai-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  color: rgba(185, 204, 229, 0.9);
}

.company-richerai-icon svg {
  width: 2rem;
  height: 2rem;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-richerai-open {
  margin-top: 2rem;
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-top: 1px solid transparent;
  padding: 0.1rem 0 0.9rem;
  color: #dbe7f7;
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.company-richerai-open span:last-child {
  color: rgba(217, 229, 244, 0.92);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.company-richerai-open:hover,
.company-richerai-open:focus-visible {
  color: #f8fbff;
  outline: none;
}

.richerai-rail-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(9, 14, 22, 0), rgba(5, 9, 14, 0.96));
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.fundamentals-locked-cell {
  color: transparent;
  user-select: none;
  position: relative;
}

.fundamentals-locked-cell::before {
  content: "";
  position: absolute;
  inset: 50% 0.25rem auto 1.25rem;
  height: 0.75rem;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(71, 85, 105, 0.18), rgba(148, 163, 184, 0.34), rgba(71, 85, 105, 0.18));
  filter: blur(3px);
}

.company-invest-panel {
  width: min(100vw, 440px);
  border-left: 1px solid rgba(216, 225, 238, 0.12);
  background: #070c13;
  box-shadow: -28px 0 70px rgba(0, 0, 0, 0.62);
}

.company-invest-panel-head,
.company-invest-summary,
.company-invest-account-row,
.company-invest-estimates div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.company-invest-panel-head {
  padding: 1.5rem 1.7rem 1rem;
}

.company-invest-panel-head h2,
.company-invest-ticker,
.company-invest-submit {
  color: #f8fbff;
  font-weight: 720;
}

.company-invest-close {
  color: rgba(203, 213, 225, 0.75);
  font-size: 2rem;
}

.company-invest-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 1.7rem 1.55rem;
}

.company-invest-summary {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(216, 225, 238, 0.1);
}

.company-invest-name,
.company-invest-price > span,
.company-invest-account-row p,
.company-invest-estimates span,
.company-invest-simulated span {
  color: rgba(148, 163, 184, 0.9);
}

.company-invest-meta {
  margin-top: 0.35rem;
  color: rgba(148, 163, 184, 0.78);
  font-size: 0.8rem;
}

.company-invest-price {
  text-align: right;
  white-space: nowrap;
}

.company-invest-card,
.company-invest-estimates,
.company-invest-simulated {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(216, 225, 238, 0.1);
  background: rgba(255, 255, 255, 0.015);
}

.company-invest-label,
.company-invest-field-title {
  display: block;
  margin: 1.25rem 0 0.65rem;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.85rem;
  font-weight: 650;
}

.company-invest-label {
  margin-top: 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.company-invest-select,
.company-invest-input-row,
.company-invest-segmented {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(216, 225, 238, 0.12);
  background: rgba(13, 20, 31, 0.82);
  color: #f8fbff;
}

.company-invest-select,
.company-invest-input-row {
  margin-top: 0.75rem;
  padding: 0 1rem;
}

.company-invest-input-row {
  display: flex;
  align-items: center;
}

.company-invest-input-row input {
  min-width: 0;
  flex: 1 1 auto;
  background: transparent;
  color: #f8fbff;
  font-size: 1.1rem;
  outline: none;
}

.company-invest-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-invest-segmented button {
  min-height: 3rem;
  color: rgba(203, 213, 225, 0.72);
  font-weight: 700;
}

.company-invest-segmented [aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.055);
  color: #f8fbff;
}

.company-invest-segmented [aria-pressed="true"][data-invest-side="BUY"] {
  background: rgba(31, 108, 62, 0.72);
}

.company-invest-segmented [aria-pressed="true"][data-invest-side="SELL"] {
  background: rgba(110, 35, 52, 0.72);
}

.company-invest-funding {
  display: inline-flex;
  margin-top: 1rem;
  color: #818cf8;
  font-weight: 650;
}

.company-invest-order-wrap {
  position: relative;
  margin-top: 1.25rem;
}

.company-invest-form--locked {
  filter: blur(4px);
  opacity: 0.45;
}

.company-invest-estimates {
  display: grid;
  gap: 0.6rem;
}

.company-invest-submit {
  width: 100%;
  min-height: 3.25rem;
  margin-top: 1.2rem;
  background: #4f46e5;
}

.company-invest-status {
  min-height: 1.25rem;
  margin-top: 0.75rem;
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.82rem;
}

.company-invest-auth-lock {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 9, 14, 0.88);
  backdrop-filter: blur(6px);
}

.company-invest-auth-lock > div {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(216, 225, 238, 0.18);
  background: #090f18;
  text-align: center;
}

.company-invest-auth-lock a {
  display: flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  background: #f8fafc;
  color: #020617;
  font-weight: 760;
}

.company-invest-simulated {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

@media (max-width: 1023px) {
  .company-tear-sheet {
    gap: 18px;
  }

  .company-chart-shell {
    min-height: 318px;
  }

  .company-chart-canvas-wrap {
    height: 226px;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  .price-range-group {
    max-width: none;
    gap: 0.35rem;
  }

  .company-price-strip {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
  }

  .company-price-values {
    min-width: 0;
    flex: 1 1 auto;
  }

  .company-mobile-last-update {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.6rem;
    flex: 0 0 auto;
    max-width: none;
    white-space: nowrap;
  }

  .company-mobile-last-update-label {
    color: #cbd5e1;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    line-height: 1;
    text-transform: uppercase;
  }

  .company-mobile-last-update-date {
    color: #f8fafc;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1;
  }

  .company-back-link {
    font-size: 1.45rem;
    line-height: 1;
    color: #f8fbff;
  }

  .company-back-label,
  .company-invest-desktop,
  .company-title-desktop {
    display: none;
  }

  .company-exchange-kicker {
    display: inline-flex;
    max-width: calc(100% - 6.25rem);
    align-items: center;
    gap: 0.5rem;
  }

  .company-exchange-kicker .rf-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }

  .company-invest-slot {
    position: absolute;
    right: 0;
    top: 2.65rem;
    z-index: 2;
  }

  .company-invest-mobile,
  .company-title-mobile {
    display: inline-flex;
  }

  .company-invest-slot > div:first-child {
    display: none;
  }

  .company-invest-slot button {
    min-height: 2rem;
    min-width: 5.25rem;
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .company-invest-slot button:hover,
  .company-invest-slot button:focus-visible {
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .company-title-mobile {
    flex-direction: column;
    gap: 0.25rem;
  }

  .company-title-mobile span:first-child {
    font-size: 1.65rem;
    line-height: 1.08;
  }

  .company-title-mobile span:last-child {
    font-size: 1rem;
    line-height: 1.3;
    color: rgba(217, 229, 244, 0.92);
  }

  .company-meta-line {
    margin-top: 0.5rem;
    font-size: 0.78rem;
  }

  .company-description-copy {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .price-range-btn {
    min-height: 2rem;
    font-size: 0.72rem;
  }

  .company-richerai-workspace {
    padding: 1rem;
  }
}

@media (min-width: 1024px) {
  .company-tear-sheet {
    grid-template-columns: minmax(0, 68fr) minmax(300px, 32fr);
  }
}
