[data-component="asset_header"].investi-async-module {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: visible;
}

[data-component="asset_header"].investi-async-module::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}

[data-component="asset_header"].investi-async-module.investi-pre-load {
  min-height: 144px;
}

.investi-asset-header {
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  position: relative;
  z-index: 1;
}

.investi-asset-header.base {
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  border-color: color-mix(in srgb, var(--border-color) 88%, transparent);
  box-shadow: 0 6px 20px var(--shadow-color);
}

.investi-asset-header__identity {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.investi-asset-header__logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 68px;
  max-width: min(240px, 42vw);
  height: 68px;
  padding: 8px 14px;
  overflow: hidden;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-1) 74%, transparent);
  border: 1px solid var(--border-color);
  box-sizing: border-box;
}

.investi-asset-header__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.investi-asset-header__logo-fallback {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.investi-asset-header__copy {
  min-width: 0;
}

[data-mode="dark"] .investi-asset-header__logo-shell {
  background: #fff;
  border-color: color-mix(in srgb, #fff 22%, var(--border-color));
}

.investi-asset-header__title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.02;
  color: var(--heading-color);
}

.investi-asset-header__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.investi-asset-header__mtf-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.investi-asset-header__subtitle {
  margin-top: 4px;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
  color: var(--text-secondary);
}

.investi-asset-header__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.investi-asset-header__price {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  font-weight: 800;
  color: var(--heading-color);
}

.investi-asset-header__change {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--text-secondary);
}

.investi-asset-header__change--gain {
  color: var(--success-color);
}

.investi-asset-header__change--loss {
  color: var(--danger-color);
}

@media (max-width: 767px) {
  .investi-asset-header__identity {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px;
  }

  .investi-asset-header__logo-shell {
    min-width: 56px;
    max-width: min(180px, 48vw);
    height: 56px;
    padding: 7px 12px;
  }
}
