/* Интерактивная октограмма (тизер/результат). Имя файла matrix-octogram — не chart.demo в БД.
   Палитра звезды повторяет натальную карту (NatalChartSVG): светлое полотно,
   плоские насыщенные цвета, тёмная типографика. */
.matrix-octogram-frame,
.matrix-demo__grid {
  --matrix-plate: #ffffff;
  --matrix-plane: #f1f4f9;
  --matrix-struct: #96a3b6;
  --matrix-ink: #1f2b3a;
  --matrix-ink-soft: #5a6b80;
  --matrix-zone-center: #f1c40f;
  --matrix-zone-center-ink: #8a6a06;
  --matrix-zone-self: #34495e;
  --matrix-zone-genus: #9b59b6;
  --matrix-zone-money: #27ae60;
  --matrix-zone-love: #e74c3c;
}

.matrix-demo__grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.matrix-demo__grid > * {
  min-width: 0;
  max-width: 100%;
}

.matrix-octogram-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.matrix-octogram {
  display: block;
  width: 360px;
  min-width: 360px;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .matrix-octogram {
    width: min(100%, 560px);
  }
}

/* Полотно на весь кадр — как белый фон под SVG натальной карты. */
.matrix-octogram__plate {
  fill: var(--matrix-plate);
  pointer-events: none;
}

.matrix-octogram__ring-band {
  fill: none;
  stroke: #eef1f6;
  pointer-events: none;
}

.matrix-octogram__plane {
  stroke: var(--matrix-struct);
  stroke-width: 1.5;
}

.matrix-octogram__plane--self {
  fill: none;
}

.matrix-octogram__plane--genus {
  fill: var(--matrix-plane);
}

.matrix-octogram__line {
  fill: none;
  stroke: var(--matrix-struct);
  stroke-width: 1.25;
}

.matrix-octogram__hit {
  fill: transparent;
  pointer-events: all;
  cursor: pointer;
}

.matrix-point {
  outline: none;
}

.matrix-point__disc {
  fill: var(--matrix-plate);
  stroke: var(--matrix-zone-self);
  stroke-width: 2;
}

.matrix-point__n {
  fill: var(--matrix-ink);
  font-family: var(--bs-font-monospace);
  pointer-events: none;
}

.matrix-point--e .matrix-point__n {
  font-size: 22px;
  font-weight: 700;
}

.matrix-point--vertex .matrix-point__n {
  font-size: 17px;
  font-weight: 700;
}

.matrix-point--inner .matrix-point__n {
  font-size: 13px;
  font-weight: 600;
}

.matrix-point__focus-ring {
  fill: none;
  stroke: none;
  pointer-events: none;
}

.matrix-point:focus-visible .matrix-point__focus-ring {
  stroke: var(--e-global-color-2dc4116);
  stroke-width: 2;
}

.matrix-point:hover .matrix-point__disc,
.matrix-point.is-hover .matrix-point__disc {
  stroke: var(--e-global-color-2dc4116);
}

.matrix-point.is-selected .matrix-point__disc {
  fill: color-mix(in srgb, var(--e-global-color-2dc4116) 20%, var(--matrix-plate));
  stroke: var(--e-global-color-2dc4116);
  stroke-width: 3.5;
}

.matrix-point.is-muted {
  opacity: 0.40;
}

.matrix-layers {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.matrix-layers__option {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--astro-ink) 45%, transparent);
  border-radius: 4px;
  background: var(--astro-panel);
  color: var(--astro-ink);
  font-family: var(--bs-font-monospace);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
}

.matrix-layers__option:hover {
  border-color: var(--e-global-color-2dc4116);
}

.matrix-layers__option:has(input:checked) {
  border-width: 2px;
  border-color: var(--e-global-color-2dc4116);
  background: color-mix(in srgb, var(--e-global-color-2dc4116) 16%, transparent);
  color: var(--e-global-color-2dc4116);
}

.matrix-layers__option:focus-within {
  outline: 2px solid var(--e-global-color-2dc4116);
  outline-offset: 2px;
}

.matrix-layers__option input {
  margin: 4px 0 0;
  accent-color: var(--e-global-color-2dc4116);
}

.matrix-layers__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.matrix-layers__name,
.matrix-layers__hint {
  font-family: var(--bs-font-monospace);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.matrix-layers__hint {
  opacity: 0.78;
}

.matrix-octogram__accent-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.matrix-octogram__accent-line--money {
  stroke: var(--matrix-zone-money);
  stroke-dasharray: 7 5;
}

.matrix-octogram__accent-line--love {
  stroke: var(--matrix-zone-love);
}

.matrix-octogram__glyph {
  font-family: var(--bs-font-monospace);
  font-size: 20px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: var(--matrix-plate);
  stroke-width: 3px;
}

.matrix-octogram__glyph--money {
  fill: var(--matrix-zone-money);
}

.matrix-octogram__glyph--love {
  fill: var(--matrix-zone-love);
}

/* Знаки Марса и Венеры на родовых квадратах — контуры иконок натальной карты. */
.matrix-octogram__sigil path {
  fill: none;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.matrix-octogram__sigil--mars path {
  stroke: #2d6ca8;
}

.matrix-octogram__sigil--venus path {
  stroke: #c2367f;
}

.matrix-octogram__accent-label {
  fill: var(--matrix-ink-soft);
  font-family: var(--bs-font-monospace);
  font-size: 14px;
  font-weight: 400;
}

.matrix-octogram__label {
  fill: var(--matrix-ink);
  font-family: var(--bs-font-sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: all;
  cursor: pointer;
  paint-order: stroke fill;
  stroke: var(--matrix-plate);
  stroke-width: 3.5px;
}

/* Родовые подписи вынесены за кольцо лет — на тёмную карточку, не на полотно. */
/* Подпись лежит в зазоре между вершиной и полосой кольца — кегль мельче. */
.matrix-octogram__label--axis {
  font-size: 10.5px;
}

.matrix-octogram__label--outer {
  font-size: 12px;
  font-weight: 600;
  fill: var(--matrix-zone-genus);
}

.matrix-octogram__label:focus-visible {
  outline: 2px solid var(--e-global-color-2dc4116);
  outline-offset: 2px;
}

.matrix-point--zone-center .matrix-point__disc {
  fill: color-mix(in srgb, var(--matrix-zone-center) 20%, var(--matrix-plate));
  stroke: var(--matrix-zone-center);
  stroke-width: 3;
}

.matrix-point--zone-center .matrix-point__n {
  fill: var(--matrix-zone-center-ink);
}

.matrix-point--zone-genus .matrix-point__disc {
  stroke: var(--matrix-zone-genus);
}

.matrix-point--zone-genus .matrix-point__n {
  fill: var(--matrix-zone-genus);
}

.matrix-point--zone-money .matrix-point__disc {
  stroke: var(--matrix-zone-money);
}

.matrix-point--zone-money .matrix-point__n {
  fill: var(--matrix-zone-money);
}

.matrix-point--zone-love .matrix-point__disc {
  stroke: var(--matrix-zone-love);
}

.matrix-point--zone-love .matrix-point__n {
  fill: var(--matrix-zone-love);
}

.matrix-point__lock-bg {
  fill: var(--matrix-plate);
}

.matrix-point__lock rect {
  fill: var(--matrix-ink-soft);
}

.matrix-point__lock path {
  stroke: var(--matrix-ink-soft);
  stroke-width: 1.15;
}

.matrix-point-panel {
  min-height: 96px;
  margin-top: 32px;
  padding: 16px;
  background: var(--astro-panel);
  color: var(--astro-ink);
}

.matrix-point-panel__head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num role";
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  margin-bottom: 8px;
}

.matrix-point-panel__display {
  grid-area: num;
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--bs-font-sans-serif);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  color: var(--e-global-color-2dc4116);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.matrix-point-panel__heading {
  grid-area: title;
  margin: 0;
  font-family: var(--bs-font-sans-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.matrix-point-panel__body {
  grid-area: role;
  margin: 0;
  font-family: var(--bs-font-monospace);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: #dbc9fa;
}

.matrix-point-panel__card {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: 11.05rem;
  margin: 0;
  overflow: visible;
  pointer-events: none;
  opacity: 0.14;
}

.matrix-point-panel__card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 150 / 220;
  object-fit: contain;
  object-position: top right;
  border-radius: 0;
  box-shadow: none;
}

.matrix-purpose {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.matrix-purpose--tab {
  margin-top: 8px;
}

.matrix-purpose li {
  font-family: var(--bs-font-monospace);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--form-text-color);
  padding: 4px 0;
}

.matrix-purpose--cards {
  margin-top: 4px;
}

.matrix-purpose--cards li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(231, 233, 241, 0.08);
}

.matrix-purpose--cards li:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.matrix-purpose__title,
.matrix-purpose__lens,
.matrix-purpose__who {
  margin: 0;
}

.matrix-purpose__title {
  font-family: var(--bs-font-sans-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--form-text-color);
}

.matrix-purpose__label {
  color: #dbc9fa;
}

.matrix-purpose__lens {
  font-family: var(--bs-font-monospace);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--form-text-color);
}

.matrix-purpose__lens strong {
  font-weight: 300;
  font-style: italic;
  color: #dbc9fa;
}

.matrix-purpose__who {
  margin-top: 0;
  font-family: var(--bs-font-monospace);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--form-text-color);
}

/* Карта здоровья — вкладка справа, таблица в стиле объектов натала. */
.matrix-chakra-card {
  margin-top: 0;
  padding-top: 0;
}

.matrix-chakra-card--tab {
  border-top: 0;
}

.matrix-chakra-card__heading {
  margin: 0 0 8px;
  font-family: var(--bs-font-sans-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.matrix-chakra-intro {
  margin-bottom: 12px;
  font-family: var(--bs-font-monospace);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--form-text-color);
}

.matrix-chakra-intro p {
  margin: 0 0 0.7em;
}

.matrix-chakra-intro p:last-child {
  margin-bottom: 0;
}

.matrix-chakra-intro b,
.matrix-chakra-intro strong {
  font-weight: 300;
  font-style: italic;
  color: #dbc9fa;
}

.matrix-chakras {
  margin-bottom: 0;
  color: var(--form-text-color);
}

.matrix-chakras th,
.matrix-chakras td {
  font-size: 15px;
  text-align: center;
  vertical-align: middle;
}

.matrix-chakras thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--e-global-color-2dc4116);
}

.matrix-chakras th[scope="row"] {
  text-align: left;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.matrix-chakras__level {
  display: inline-block;
  min-width: 1.1em;
  font-weight: 600;
  color: var(--e-global-color-2dc4116);
}

.matrix-year-ring__circle {
  fill: none;
  stroke: #c4ccd9;
  stroke-width: 1.25;
  pointer-events: none;
}

.matrix-year-ring__tick {
  stroke: #c4ccd9;
  stroke-width: 1;
  pointer-events: none;
}

.matrix-year-ring__tick.is-major {
  stroke: var(--matrix-struct);
  stroke-width: 2;
}

.matrix-year-ring__tick.is-current {
  stroke: var(--matrix-zone-love);
  stroke-width: 4;
}

.matrix-year-ring__range {
  fill: #9aa6b8;
  font-family: var(--bs-font-sans-serif);
  font-size: 5.4px;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.matrix-year-ring__label {
  fill: var(--matrix-ink-soft);
  font-family: var(--bs-font-sans-serif);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.matrix-year-ring__hit {
  fill: none;
  stroke: transparent;
  stroke-width: 26px;
  pointer-events: stroke;
  cursor: pointer;
}

.matrix-year-controls {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.matrix-year-intro {
  margin: 0 0 12px;
  font-family: var(--bs-font-monospace);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--form-text-color);
}

.matrix-year-panel .matrix-point-panel__head {
  margin-bottom: 0;
}

.matrix-year-panel .matrix-point-panel__pm {
  margin-top: 8px;
}

.matrix-year-controls__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.matrix-year-controls__btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.matrix-year-controls__input {
  max-width: 6rem;
}

.matrix-year-readout {
  margin: 12px 0 0;
  font-family: var(--bs-font-monospace);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--form-text-color);
}

@media (min-width: 768px) {
  .matrix-demo__grid {
    grid-template-columns: minmax(360px, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "octo side"
      "octo extras";
    align-items: start;
  }

  .matrix-octogram-col {
    grid-area: octo;
  }

  .matrix-demo__side {
    grid-area: side;
  }

  .matrix-demo__extras {
    grid-area: extras;
  }

  .matrix-octogram {
    margin: 0;
  }

  .matrix-octogram-frame {
    width: min(100%, 560px);
  }
}

#matrix-octogram-slot {
  position: relative;
}

.matrix-octogram-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.75rem 0.5rem;
  overflow: visible;
  border-radius: 0.375rem;
}

.matrix-octogram-frame .matrix-octogram {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.matrix-narrative {
  margin-bottom: 1.25rem;
}

.matrix-narrative__heading {
  margin: 0 0 12px;
  font-family: var(--bs-font-sans-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.matrix-narrative__body,
.matrix-comfort-panel .order-teaser-body,
.matrix-narrative__body p,
.matrix-narrative__body ul,
.matrix-narrative__body ol,
.matrix-narrative__body li,
.matrix-comfort-panel .order-teaser-body p,
.matrix-comfort-panel .order-teaser-body ul,
.matrix-comfort-panel .order-teaser-body ol,
.matrix-comfort-panel .order-teaser-body li {
  font-family: var(--bs-font-monospace);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--form-text-color);
}

.matrix-narrative__body {
  margin: 0;
}

.matrix-narrative__body p,
.matrix-narrative__body ul,
.matrix-narrative__body ol,
.matrix-comfort-panel .order-teaser-body p,
.matrix-comfort-panel .order-teaser-body ul,
.matrix-comfort-panel .order-teaser-body ol {
  margin: 0 0 0.7em;
}

.matrix-narrative__body strong,
.matrix-comfort-panel .order-teaser-body strong {
  font-weight: 300;
  font-style: italic;
  color: #dbc9fa;
}

.matrix-narrative__body > :last-child,
.matrix-comfort-panel .order-teaser-body > :last-child {
  margin-bottom: 0;
}

.matrix-explore {
  margin-top: 1rem;
  margin-bottom: 0;
  width: 100%;
}

@media (max-width: 575.98px) {
  .matrix-octogram__label {
    display: none;
  }
}

.matrix-side-scroll {
  max-height: 600px;
  overflow-y: auto;
}

.matrix-comfort-panel {
  margin: 0;
}

.card.astro-card.matrix-side-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card.astro-card.matrix-side-card--teaser {
  padding-bottom: 20px !important;
}

.matrix-side-card .matrix-side-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
}

.matrix-side-card:not(.matrix-side-card--teaser) .matrix-side-scroll {
  overflow-y: auto;
}

.matrix-side-card--teaser .matrix-side-scroll {
  overflow: hidden;
}

.matrix-side-card .matrix-side-tabs {
  flex: 0 0 auto;
}

.matrix-side-card .matrix-side-tab-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.matrix-side-card:not(.matrix-side-card--teaser) .matrix-side-tab-content > .tab-pane.show.active {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.matrix-side-card--teaser .matrix-side-tab-content > .tab-pane.show.active {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .row.g-3.matrix-chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .matrix-chart-row > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
  }

  .matrix-chart-row__side {
    min-height: 0;
    overflow: hidden;
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }

  .matrix-chart-row__side > .matrix-side-card {
    flex: 1 1 auto;
    width: 100%;
    height: var(--matrix-star-h, 100%);
    max-height: var(--matrix-star-h, 100%);
    min-height: 0;
    overflow: hidden;
  }
}

.matrix-side-tab-content > .tab-pane.show.active:has(.matrix-comfort-panel--teaser),
.matrix-side-tab-content > .tab-pane.show.active:has(.matrix-purpose-panel--teaser),
.matrix-side-tab-content > .tab-pane.show.active:has(.matrix-chakra-panel--teaser) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.matrix-comfort-panel--teaser,
.matrix-purpose-panel--teaser,
.matrix-chakra-panel--teaser {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.matrix-purpose-panel {
  margin: 0;
}

.matrix-teaser-clip {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.matrix-teaser-clip__window {
  position: relative;
  max-height: 100%;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 calc(100% - 8.5em),
    rgba(0, 0, 0, 0.78) calc(100% - 6.8em),
    rgba(0, 0, 0, 0.48) calc(100% - 5.1em),
    rgba(0, 0, 0, 0.2) calc(100% - 3.4em),
    rgba(0, 0, 0, 0.05) calc(100% - 1.7em),
    transparent calc(100% - 0.3em)
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 calc(100% - 8.5em),
    rgba(0, 0, 0, 0.78) calc(100% - 6.8em),
    rgba(0, 0, 0, 0.48) calc(100% - 5.1em),
    rgba(0, 0, 0, 0.2) calc(100% - 3.4em),
    rgba(0, 0, 0, 0.05) calc(100% - 1.7em),
    transparent calc(100% - 0.3em)
  );
}

.matrix-teaser-clip__blur {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent calc(100% - 8.5em),
    rgba(0, 0, 0, 0.2) calc(100% - 6.8em),
    rgba(0, 0, 0, 0.55) calc(100% - 5.1em),
    rgba(0, 0, 0, 0.9) calc(100% - 3.4em),
    #000 calc(100% - 1.7em),
    rgba(0, 0, 0, 0.2) calc(100% - 0.4em),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent calc(100% - 8.5em),
    rgba(0, 0, 0, 0.2) calc(100% - 6.8em),
    rgba(0, 0, 0, 0.55) calc(100% - 5.1em),
    rgba(0, 0, 0, 0.9) calc(100% - 3.4em),
    #000 calc(100% - 1.7em),
    rgba(0, 0, 0, 0.2) calc(100% - 0.4em),
    transparent 100%
  );
}

.matrix-teaser-clip__blur .order-teaser-body,
.matrix-teaser-clip__blur .matrix-purpose,
.matrix-teaser-clip__blur .matrix-chakra-body,
.matrix-teaser-clip__blur .table {
  filter: blur(14px);
}

.matrix-teaser-cta {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .matrix-teaser-clip__blur .order-teaser-body,
  .matrix-teaser-clip__blur .matrix-purpose,
  .matrix-teaser-clip__blur .matrix-chakra-body,
  .matrix-teaser-clip__blur .table {
    filter: none;
  }
}

.matrix-layers-select {
  min-height: 44px;
}

.matrix-layers-group {
  width: 100%;
  display: flex;
}

.matrix-layers-group > .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.3rem;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  font-family: var(--bs-font-monospace);
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.matrix-point-panel--card {
  position: relative;
  margin-top: 0;
  padding: 0;
  background: transparent;
  min-height: 0;
  overflow: visible;
}

.matrix-year-card--card {
  position: relative;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  overflow: visible;
}

.matrix-share-bar--under-hero {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0.75rem 0 0;
}

.hz-result-hero__text .matrix-share-bar {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  justify-content: flex-start;
}

.hz-result-hero__text .matrix-share-bar__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
}

.hz-result-hero__text .matrix-share-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hz-result-hero__text .matrix-share-bar__btn {
  border: 1px solid var(--e-global-color-2dc4116);
  color: var(--e-global-color-2dc4116);
  background: transparent;
}

@media (max-width: 767.98px) {
  .hz-result-hero__text .matrix-share-bar {
    justify-content: center;
  }
}

.matrix-overlay {
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--astro-ink);
  font-family: var(--bs-font-monospace);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  transform: translate(-50%, -50%);
  cursor: pointer;
  white-space: nowrap;
}

.matrix-overlay--L1 {
  transform: translate(calc(-50% + 22px), calc(-50% + 28px));
}

.matrix-overlay:focus-visible {
  outline: 2px solid var(--e-global-color-2dc4116);
  outline-offset: 2px;
}

.matrix-point-panel__skel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.matrix-point-panel.is-filled .matrix-point-panel__skel {
  display: none;
}

.matrix-point-panel__pm {
  position: relative;
  z-index: 1;
}

.matrix-point-panel__pm-label {
  margin: 16px 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--e-global-color-2dc4116);
}

.matrix-point-panel__plus,
.matrix-point-panel__minus {
  margin: 0;
  font-family: var(--bs-font-monospace);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--form-text-color);
  white-space: pre-line;
}

.matrix-year-card {
  margin-top: 0;
  padding: 0;
  background: transparent;
  color: var(--form-text-color);
}

.matrix-year-card__heading {
  margin: 0 0 8px;
}

.matrix-sticky-pay__once {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--astro-ink);
  opacity: 0.78;
}
