.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-tear-sheet table {
  font-size: var(--rf-font-dense) !important;
  line-height: 1.45;
}

.company-tear-sheet thead {
  font-size: var(--rf-font-meta);
}

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

.company-chart-shell--empty {
  min-height: 0;
}

.company-data-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
  border-top: 1px solid rgba(216, 225, 238, 0.12);
  border-bottom: 1px solid rgba(216, 225, 238, 0.12);
  padding: 1.25rem 0;
}

.company-data-status h2 {
  margin-top: 0.45rem;
  color: var(--company-text);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
}

.company-data-status p:last-child {
  margin-top: 0.4rem;
  max-width: 42rem;
  color: rgba(217, 229, 244, 0.76);
  font-size: var(--rf-font-dense);
  line-height: 1.55;
}

.company-reference-grid dt {
  color: rgba(194, 208, 226, 0.66);
  font-size: var(--rf-font-meta);
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.company-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.1rem;
  background: rgba(216, 225, 238, 0.1);
  border-top: 1px solid rgba(216, 225, 238, 0.1);
  border-bottom: 1px solid rgba(216, 225, 238, 0.1);
}

.company-reference-grid > div {
  min-width: 0;
  background: var(--rf-site-background);
  padding: 0.85rem 1rem;
}

.company-reference-grid dd {
  margin-top: 0.42rem;
  overflow-wrap: anywhere;
  color: var(--company-text);
  font-size: var(--rf-font-dense);
  font-weight: 540;
  line-height: 1.4;
}

.company-securities-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.company-securities-heading p {
  max-width: 38rem;
  color: rgba(194, 208, 226, 0.7);
  font-size: var(--rf-font-meta);
  line-height: 1.5;
  text-align: right;
}

.company-securities-table {
  margin-top: 1rem;
  border-top: 1px solid rgba(216, 225, 238, 0.12);
}

.company-securities-row {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(10rem, 1.25fr) minmax(8rem, 0.9fr) minmax(8rem, 0.9fr);
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(216, 225, 238, 0.12);
  padding: 0.75rem 0;
  color: rgba(217, 229, 244, 0.8);
  font-size: var(--rf-font-dense);
}

.company-securities-row strong {
  color: var(--company-text);
  font-family: var(--company-mono);
  font-weight: 600;
}

.company-securities-row--head {
  color: rgba(194, 208, 226, 0.58);
  font-size: var(--rf-font-meta);
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .company-securities-heading {
    display: block;
  }

  .company-securities-heading p {
    margin-top: 0.45rem;
    text-align: left;
  }

  .company-securities-row {
    grid-template-columns: minmax(0, 1fr) minmax(7.5rem, auto);
    gap: 0.35rem 1rem;
  }

  .company-securities-row--head {
    display: none;
  }

  .company-securities-row > :nth-child(2),
  .company-securities-row > :nth-child(4) {
    color: rgba(194, 208, 226, 0.58);
    font-size: var(--rf-font-meta);
  }

  .company-securities-row > :nth-child(3),
  .company-securities-row > :nth-child(4) {
    text-align: right;
  }
}

.company-price-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem;
  min-height: 3.8rem;
  border-bottom: 1px solid rgba(216, 225, 238, 0.12);
  padding: 0 0 0.85rem;
}

.company-price-quote,
.company-price-changes {
  display: flex;
  align-items: flex-end;
}

.company-price-quote {
  gap: 0.9rem;
}

.company-price-main {
  color: var(--company-text);
  font-size: 1.12rem;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
}

.company-price-asof,
.company-price-metric {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.company-price-asof > span,
.company-price-metric > span {
  color: rgba(194, 208, 226, 0.68);
  font-size: var(--rf-font-meta);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.company-price-asof strong {
  color: rgba(217, 229, 244, 0.88);
  font-size: var(--rf-font-meta);
  font-weight: 560;
  line-height: 1;
}

.company-price-changes {
  justify-content: flex-end;
  gap: 0;
}

.company-price-metric {
  min-width: 8.6rem;
  border-left: 1px solid rgba(216, 225, 238, 0.12);
  padding-left: 1rem;
}

.company-price-metric strong,
.company-price-metric a {
  color: var(--company-text);
  font-size: var(--rf-font-dense);
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}

.company-price-metric [data-tone="positive"] {
  color: #86efac;
}

.company-price-metric [data-tone="negative"] {
  color: #fca5a5;
}

.company-price-metric [data-tone="flat"] {
  color: rgba(226, 232, 240, 0.9);
}

.company-price-source {
  align-self: center;
  color: #a5b4fc;
  font-size: var(--rf-font-meta);
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.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: var(--rf-font-dense);
  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 {
  margin-top: 0.8rem;
  color: rgba(217, 229, 244, 0.86);
  font-size: var(--rf-font-body) !important;
  line-height: var(--rf-leading-body) !important;
}

.company-side-rail {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.company-side-section {
  border-top: 1px solid rgba(216, 225, 238, 0.12);
  padding-top: 1.25rem;
}

.company-side-label {
  color: var(--company-muted-soft);
  font-size: var(--rf-font-meta);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.company-side-description {
  margin-top: 0.35rem;
  color: rgba(194, 208, 226, 0.72);
  font-size: var(--rf-font-meta);
  line-height: 1.35;
}

.company-side-empty {
  margin-top: 0.65rem;
  color: rgba(194, 208, 226, 0.58);
  font-size: var(--rf-font-dense);
}

.company-peer-list,
.company-publication-list,
.company-richerai-actions {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(216, 225, 238, 0.1);
}

.company-peer-list li,
.company-publication-list li,
.company-richerai-actions li {
  min-width: 0;
  border-bottom: 1px solid rgba(216, 225, 238, 0.1);
}

.company-peer-link,
.company-richerai-tool-link {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.45rem;
  color: inherit;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.company-peer-link {
  grid-template-columns: minmax(0, 1fr) auto;
}

.company-peer-name {
  overflow: hidden;
  color: var(--company-text);
  font-size: var(--rf-font-dense);
  font-weight: 590;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-peer-ticker {
  justify-self: end;
  color: rgba(194, 208, 226, 0.66);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--rf-font-meta);
  line-height: 1.3;
  white-space: nowrap;
}

.company-richerai-workspace {
  border-bottom: 0;
}

.company-richerai-tool-link {
  grid-template-columns: minmax(0, 1fr) auto;
}

.company-richerai-tool-link strong {
  overflow: hidden;
  color: var(--company-text);
  font-size: var(--rf-font-dense);
  font-weight: 590;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-richerai-tool-link > span {
  justify-self: end;
  color: rgba(194, 208, 226, 0.62);
  font-size: var(--rf-font-dense);
  line-height: 1;
}

.company-peer-link:hover,
.company-peer-link:focus-visible,
.company-richerai-tool-link:hover,
.company-richerai-tool-link:focus-visible {
  background: rgba(142, 182, 216, 0.055);
  outline: none;
}

.company-peer-link:hover .company-peer-name,
.company-peer-link:focus-visible .company-peer-name,
.company-richerai-tool-link:hover strong,
.company-richerai-tool-link:focus-visible strong {
  color: #c7d2fe;
}

.company-richerai-tool-link:hover > span,
.company-richerai-tool-link:focus-visible > span {
  color: var(--company-text);
}

.richerai-rail-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, var(--rf-site-background-color));
  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, 472px);
  border-left: 1px solid var(--rf-financial-divider);
  background: var(--rf-financial-bg);
  box-shadow: -28px 0 72px rgba(0, 0, 0, 0.68);
}

.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 {
  align-items: center;
  min-height: 84px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rf-financial-divider);
}

.company-invest-panel-head h2,
.company-invest-ticker,
.company-invest-submit {
  color: var(--rf-financial-primary);
  font-weight: 620;
}

.company-invest-panel-head h2 {
  margin-top: 3px;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.company-invest-eyebrow,
.company-invest-label {
  color: var(--rf-financial-accent);
  font-size: var(--rf-font-meta);
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.company-invest-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid transparent;
  color: var(--rf-financial-secondary);
  font-size: 28px;
  line-height: 1;
}

.company-invest-close:hover,
.company-invest-close:focus-visible {
  border-color: var(--rf-financial-divider);
  color: var(--rf-financial-primary);
  outline: none;
}

.company-invest-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 24px 24px;
}

.company-invest-summary {
  padding: 22px 0;
  border-bottom: 1px solid var(--rf-financial-divider);
}

.company-invest-ticker {
  font-size: 18px;
  line-height: 1.25;
}

.company-invest-name {
  margin-top: 3px;
  font-size: var(--rf-font-dense);
  line-height: 1.45;
}

.company-invest-name,
.company-invest-price > span,
.company-invest-account-row p,
.company-invest-estimates span,
.company-invest-simulated span {
  color: var(--rf-financial-secondary);
}

.company-invest-meta {
  margin-top: 7px;
  color: var(--rf-financial-tertiary);
  font-size: var(--rf-font-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.company-invest-price p {
  color: var(--rf-financial-primary);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.company-invest-price p span,
.company-invest-price > span {
  font-size: var(--rf-font-meta);
}

.company-invest-card,
.company-invest-estimates,
.company-invest-simulated {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--rf-financial-divider);
  background: rgba(255, 255, 255, 0.018);
}

.company-invest-label,
.company-invest-field-title {
  display: block;
  margin: 20px 0 8px;
  color: var(--rf-financial-secondary);
  font-size: var(--rf-font-dense);
  font-weight: 560;
}

.company-invest-label {
  margin-top: 0;
}

.company-invest-select,
.company-invest-input-row,
.company-invest-segmented {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--rf-financial-divider);
  background: var(--rf-bg-soft);
  color: var(--rf-financial-primary);
  font-size: var(--rf-font-dense);
}

.company-invest-select,
.company-invest-input-row {
  margin-top: 9px;
  padding: 0 14px;
}

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

.company-invest-input-row input {
  min-width: 0;
  flex: 1 1 auto;
  appearance: textfield;
  background: transparent;
  color: var(--rf-financial-primary);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.company-invest-input-row input::-webkit-inner-spin-button,
.company-invest-input-row input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.company-invest-input-row > span {
  color: var(--rf-financial-secondary);
  font-size: var(--rf-font-dense);
}

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

.company-invest-segmented button {
  min-height: 46px;
  color: var(--rf-financial-secondary);
  font-size: var(--rf-font-dense);
  font-weight: 620;
}

.company-invest-segmented button + button {
  border-left: 1px solid var(--rf-financial-divider);
}

.company-invest-segmented [aria-pressed="true"] {
  background: var(--rf-financial-accent-soft);
  color: var(--rf-financial-primary);
}

.company-invest-segmented [aria-pressed="true"][data-invest-side="BUY"] {
  box-shadow: inset 0 -2px 0 var(--rf-success);
  background: rgba(116, 217, 159, 0.10);
  color: var(--rf-success);
}

.company-invest-segmented [aria-pressed="true"][data-invest-side="SELL"] {
  box-shadow: inset 0 -2px 0 var(--rf-danger);
  background: rgba(224, 108, 117, 0.10);
  color: var(--rf-danger);
}

.company-invest-execution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--rf-financial-divider);
  color: var(--rf-financial-secondary);
  font-size: var(--rf-font-dense);
}

.company-invest-execution strong {
  color: var(--rf-financial-primary);
  font-weight: 560;
}

.company-invest-funding {
  display: inline-flex;
  margin-top: 14px;
  color: var(--rf-financial-accent);
  font-size: var(--rf-font-dense);
  font-weight: 560;
}

.company-invest-order-wrap {
  position: relative;
  margin-top: 18px;
}

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

.company-invest-estimates {
  display: grid;
  gap: 8px;
}

.company-invest-estimates span,
.company-invest-account-row p,
.company-invest-simulated span {
  font-size: var(--rf-font-dense);
  line-height: 1.45;
}

.company-invest-estimates strong,
.company-invest-account-row strong {
  color: var(--rf-financial-primary);
  font-size: var(--rf-font-dense);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

.company-invest-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 1px solid rgba(142, 182, 216, 0.56);
  background: var(--rf-financial-accent);
  color: #071019;
  font-size: var(--rf-font-dense);
  letter-spacing: 0.04em;
}

.company-invest-submit:hover,
.company-invest-submit:focus-visible {
  background: #a6c7e2;
  outline: none;
}

.company-invest-status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--rf-financial-secondary);
  font-size: var(--rf-font-dense);
}

.company-invest-auth-lock {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--rf-surface-raised);
  backdrop-filter: blur(6px);
}

.company-invest-auth-lock > div {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--rf-financial-divider);
  background: var(--rf-bg-soft);
  text-align: center;
}

.company-invest-auth-lock p {
  color: var(--rf-financial-accent);
  font-size: var(--rf-font-meta);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.company-invest-auth-lock h3 {
  margin-top: 8px;
  color: var(--rf-financial-primary);
  font-size: 19px;
  font-weight: 560;
  line-height: 1.3;
}

.company-invest-auth-lock h3 + span {
  display: block;
  margin-top: 10px;
  color: var(--rf-financial-secondary);
  font-size: var(--rf-font-body);
  line-height: var(--rf-leading-body);
}

.company-invest-auth-lock a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border: 1px solid rgba(142, 182, 216, 0.56);
  background: var(--rf-financial-accent);
  color: #071019;
  font-size: var(--rf-font-dense);
  font-weight: 620;
}

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

.company-invest-simulated p {
  color: var(--rf-financial-primary);
  font-size: var(--rf-font-dense);
  font-weight: 560;
}

/* Keep identity and actions in separate rows, including long issuer names. */
.company-hero-heading,
.company-exchange-kicker {
  min-width: 0;
}

.company-exchange-kicker > svg,
.company-exchange-kicker > .rf-flag-code {
  flex-shrink: 0;
}

.company-exchange-kicker .rf-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.company-invest-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 16px;
  min-width: 0;
}

.company-invest-slot > a,
.company-invest-slot > button {
  flex: 1 1 18rem;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 10px 16px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  letter-spacing: normal;
  text-transform: none;
}

.company-invest-trigger {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(142, 182, 216, 0.52);
  background: rgba(142, 182, 216, 0.08);
  color: var(--rf-financial-primary);
  font-size: var(--rf-font-dense);
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-demo-trigger {
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, .45);
  background: transparent;
  color: rgb(148 163 184);
  padding: .7rem 0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.company-demo-trigger:hover,
.company-demo-trigger:focus-visible { border-color: rgb(226 232 240); color: rgb(226 232 240); }

.company-invest-trigger:hover,
.company-invest-trigger:focus-visible {
  border-color: var(--rf-financial-accent);
  background: var(--rf-financial-accent-soft);
  outline: none;
}

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

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

  .company-hero-heading {
    display: contents;
  }

  .company-title {
    grid-row: 2;
    overflow-wrap: anywhere;
  }

  .company-meta-line {
    grid-row: 3;
  }

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

  .company-chart-shell--empty {
    min-height: 0;
  }

  .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 {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 0.75rem;
  }

  .company-price-source {
    grid-column: 1 / -1;
  }

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

  .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 {
    grid-row: 1;
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    gap: 0.5rem;
  }

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

  .company-invest-slot {
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.75rem;
  }

  .company-invest-slot > a,
  .company-invest-slot > button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .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(142, 182, 216, 0.52) !important;
    background: rgba(142, 182, 216, 0.08) !important;
    padding: 0.5rem 1rem !important;
    font-size: var(--rf-font-dense);
    letter-spacing: normal;
  }

  .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: var(--rf-font-dense);
  }

  .company-description-copy {
    font-size: var(--rf-font-body);
    line-height: var(--rf-leading-body);
  }

  .price-range-btn {
    min-height: 2rem;
    font-size: var(--rf-font-dense);
  }

}

@media (max-width: 767px) {
  .company-price-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }

  .company-price-quote {
    justify-content: space-between;
  }

  .company-price-changes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(216, 225, 238, 0.1);
    padding-top: 0.7rem;
  }

  .company-price-metric {
    min-width: 0;
  }

  .company-price-metric:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .company-invest-panel {
    top: 0;
    bottom: 0;
    width: 100%;
    border-left: 0;
  }

  .company-invest-panel-head {
    min-height: 76px;
    padding: 14px 20px;
  }

  .company-invest-scroll {
    padding: 0 20px calc(24px + env(safe-area-inset-bottom));
  }

  .company-invest-summary {
    padding: 18px 0;
  }

  .company-invest-card,
  .company-invest-estimates,
  .company-invest-simulated {
    padding: 14px;
  }
}

@media (min-width: 1024px) {
  .company-back-link {
    grid-area: back;
  }

  .company-hero {
    grid-area: hero;
  }

  .company-side-rail {
    grid-area: side;
  }

  #company-price-history {
    grid-area: price;
  }

  #company-overview {
    grid-area: overview;
  }

  #company-fundamentals {
    grid-area: fundamentals;
  }

  .company-tear-sheet {
    grid-template-columns: minmax(0, 68fr) minmax(300px, 32fr);
    grid-template-areas:
      "back back"
      "hero side"
      "price side"
      "overview side"
      "fundamentals side";
    align-items: start;
  }

  .company-tear-sheet--without-prices {
    grid-template-areas:
      "back back"
      "hero side"
      "overview side"
      "price side"
      "fundamentals side";
  }
}

@media (max-width: 639px) {
  .company-data-status {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .company-reference-grid {
    grid-template-columns: 1fr;
  }
}

body.company-order-open { overflow: hidden; }
.company-invest-panel {
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  overscroll-behavior: contain;
}
.company-invest-panel-head { flex: 0 0 auto; }
.company-invest-panel-head > div { min-width: 0; }
.company-invest-panel-head h2 { overflow-wrap: anywhere; }
.company-invest-close { flex: 0 0 auto; }
.company-invest-scroll {
  min-height: 0;
  overscroll-behavior: contain;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.company-invest-panel[data-authenticated="false"] .company-invest-form--locked {
  display: none;
}
.company-invest-panel[data-authenticated="false"] .company-invest-auth-lock {
  position: static;
  padding: 0;
  backdrop-filter: none;
}
@media (max-width: 600px) {
  .company-invest-panel { width: 100%; border-left: 0; }
  .company-invest-panel-head {
    min-height: 0;
    padding: max(14px, env(safe-area-inset-top)) 16px 14px;
    gap: 12px;
  }
  .company-invest-panel-head h2 { font-size: 18px; }
  .company-invest-scroll { padding-inline: 16px; }
  .company-invest-summary { flex-wrap: wrap; padding-block: 16px; }
  .company-invest-summary > div { min-width: 0; max-width: 100%; }
  .company-invest-name { overflow-wrap: anywhere; }
  .company-invest-auth-lock > div { padding: 18px 14px; }
  .company-invest-account-row { flex-wrap: wrap; }
}
