.at-page {
  padding-bottom: 28px;
}

.at-page .ath-hero {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #fffdfa 0%, #fff7ed 55%, #fff 100%);
}
.at-page .ath-hero{
  border-bottom: 0 !important; /* tab bar ile çizgi birleşmesin */
}

.at-page .ath-layout {
  gap: 22px;
}

.at-page .ath-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.at-page .ath-ad {
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.02;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.at-page .ath-takip-btn {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 0 !important;
  box-shadow: none;
}

.at-page .ath-follow-slot {
  flex: 0 0 auto;
  margin-left: 8px;
}

.at-page .ath-takip-btn .pgd-takip-lbl {
  display: inline;
}

.at-page .ath-left,
.at-page .ath-right {
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 0;
}

.at-page .ath-forma-img,
.at-page .ath-forma-ph {
  border-radius: 14px;
}

.at-page .ath-forma-img--fallback {
  padding: 22px !important;
  background: linear-gradient(135deg, #fff7e6 0%, #fffdf8 100%) !important;
}

.at-page .ath-forma-img--custom {
  padding: 0 !important;
  object-fit: cover !important;
}

.at-page .ath-stat {
  border-radius: 10px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--border) 82%, white);
}

.at-page .ath-ad {
  letter-spacing: 0.01em;
}

.at-page .ath-pb > div,
.at-page .anz-fill,
.at-page .tz-mes-bar-fill,
.at-page .tz-mini-bar > div {
  animation: atDetailFill 0.9s ease-out both;
  transform-origin: left center;
}

.at-page .at-tabs {
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff 100%);
}

.at-page .at-tab {
  border-radius: 999px;
  flex: 0 0 auto;
}

.at-page .at-tab-sayac {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold-soft) 78%, #fff);
  border: 1px solid color-mix(in srgb, var(--gold-border) 72%, var(--border));
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.at-page .at-tab-ekuri {
  gap: 9px;
  border-color: color-mix(in srgb, var(--gold-border) 58%, var(--border));
}

.at-page .at-tab-ekuri i {
  color: var(--gold-dark);
}

.at-page .at-tab-ekuri.aktif .at-tab-sayac {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.78);
  color: var(--brand);
}

.at-page .at-pane {
  border-radius: 14px;
  background: #fff;
}

.at-page .atg-ozet-bant,
.at-page .tz-kart,
.at-page .anz-kart,
.at-page .aile-kart {
  border-radius: 10px;
  box-shadow: none;
}

.at-page .atg-ozet-bant,
.at-page .tz-kart,
.at-page .anz-kart,
.at-page .aile-kart,
.at-page .atg-tablo-wrap,
.at-page .aile-tablo-wrap {
  border: 1px solid color-mix(in srgb, var(--border) 84%, white);
  background: #fff;
}

.at-page .at-tabs-bar {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-top: 0 !important;
  box-shadow: none;
  background: var(--surface) !important;
}

.at-page .at-icerik {
  margin-top: 8px;
}

.at-page .ath-form {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed color-mix(in srgb, var(--border) 74%, white);
}

.at-page .ath-ekip {
  margin-top: 12px;
  font-size: 12px;
  border-radius: 10px;
}

.at-page .ath-chips {
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.at-page .ath-chip {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
}

.at-page .ath-nesep {
  gap: 8px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .at-page .ath-title-row {
    flex-wrap: wrap;
    align-items: center;
  }
  .at-page .ath-follow-slot {
    margin-left: 0;
  }
}

@keyframes atDetailFill {
  from {
    transform: scaleX(0.08);
    opacity: 0.35;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Compact horse analysis view */
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-shell {
  --adx-line: rgba(62, 47, 25, 0.10);
  --adx-line-strong: rgba(62, 47, 25, 0.16);
  --adx-soft: #fbfaf7;
  --adx-muted: #6f6659;
  --adx-green: #1c7c54;
  --adx-blue: #2f6fa8;
  gap: 12px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-panel,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-card,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-mini-panel {
  border-color: var(--adx-line);
  border-radius: 8px;
  box-shadow: none;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card {
  position: relative;
  gap: 7px;
  min-height: 0;
  padding: 10px 12px 11px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--adx-accent, #a06b18);
  opacity: 0.78;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card-head,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card-meta,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-panel-head,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-head,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-foot {
  gap: 8px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card-label,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-panel-note,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-mini-head span,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-cell--head,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-cell--side {
  letter-spacing: 0;
  text-transform: none;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card-label {
  min-width: 0;
  color: #5f574d;
  font-size: 11px;
  line-height: 1.25;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  justify-content: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--adx-accent, #a06b18) 12%, #fff);
  color: var(--adx-accent, #a06b18);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card-icon i {
  font-size: 14px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card-icon .pgd2-pist-ico,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-surface .pgd2-pist-ico,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-side .pgd2-pist-ico,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-name .pgd2-pist-ico {
  width: 15px;
  height: 15px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card-value {
  min-width: 0;
  overflow: hidden;
  color: #21180f;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card-meta {
  min-width: 0;
  color: var(--adx-muted);
  font-size: 11px;
  line-height: 1.25;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-card-meta strong {
  flex: 0 0 auto;
  font-size: 12px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-meter,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-track,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-bucket-track {
  background: #ece5db;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-meter {
  height: 4px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-panel {
  overflow: hidden;
  background: #fff;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-panel-head {
  min-height: 0;
  padding: 10px 12px;
  background: var(--adx-soft);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-panel-title {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-panel-note {
  color: var(--adx-muted);
  font-size: 11px;
  line-height: 1.35;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-recent-layout {
  grid-template-columns: minmax(500px, 5fr) minmax(0, 8fr);
  grid-template-areas: "races charts";
  gap: 12px;
  padding: 12px;
  align-items: start;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-grid {
  grid-area: races;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 6px;
  align-content: start;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-card {
  --adx-race-tone: #b88a3c;
  gap: 4px;
  min-height: 0;
  padding: 7px;
  border-left: 3px solid var(--adx-race-tone);
  background: #fff;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-card--win {
  --adx-race-tone: var(--adx-green);
  background: #f6fcf8;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-card--place {
  --adx-race-tone: #c88d26;
  background: #fffaf0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-card--mid {
  --adx-race-tone: var(--adx-blue);
  background: #f7fbff;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-card--back {
  --adx-race-tone: #8b8173;
  background: #fffdfa;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-head {
  gap: 6px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-date,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-meta,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-foot {
  color: var(--adx-muted);
  font-size: 10px;
  line-height: 1.25;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-surface {
  color: var(--adx-race-tone);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-finish {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: #21180f;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-finish::after {
  content: ". sıra";
  color: var(--adx-muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-meta,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-foot--empty {
  grid-template-columns: 1fr;
  min-height: 13px;
  color: #8a8176;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-meta span,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-foot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-recent-side {
  grid-area: charts;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 2fr);
  gap: 8px;
  align-items: start;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-mini-panel {
  padding: 10px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-mini-head {
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.25;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-mini-head span {
  color: var(--adx-muted);
  font-size: 10.5px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-form-chart {
  height: auto;
  aspect-ratio: 380 / 176;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-form-grid {
  stroke: #e4dbcf;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-form-line {
  stroke: #266f5b;
  stroke-width: 2px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-form-point {
  stroke: #266f5b;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-bucket-list {
  gap: 7px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-bucket-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  gap: 8px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-bucket-track {
  height: 5px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-bucket-fill {
  background: linear-gradient(90deg, #88c9a1 0%, #1f7a54 100%);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-bucket-label,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-bucket-value {
  color: var(--adx-muted);
  font-size: 11px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-split-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-split-summary--single {
  grid-template-columns: 1fr;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-split-summary-item {
  gap: 2px;
  padding: 7px 6px;
  border-color: var(--adx-line);
  border-radius: 7px;
  background: #fffdfa;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-split-summary-item span {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-split-summary-item strong {
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-split-empty {
  margin-top: 7px;
  color: #8a8176;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix {
  grid-template-columns: 92px repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--adx-line);
  border-top: 1px solid var(--adx-line);
  border-radius: 8px;
  background: #fff;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-cell {
  min-height: 56px;
  padding: 7px;
  gap: 3px;
  border-color: var(--adx-line);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-cell--head,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-cell--side {
  min-height: 34px;
  background: var(--adx-soft);
  color: #5f574d;
  font-size: 10.5px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-cell--side {
  align-items: flex-start;
  padding-left: 9px;
  text-align: left;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-side {
  gap: 6px;
  color: #4c453b;
  font-size: 11px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-cell--high {
  background: #effaf4;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-cell--mid {
  background: #fff8ed;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-cell--low {
  background: #fffdfa;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-main {
  color: #21180f;
  font-size: 14px;
  line-height: 1.1;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-sub,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-foot {
  color: var(--adx-muted);
  font-size: 10px;
  line-height: 1.15;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-bottom-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-list {
  gap: 0;
  padding: 8px 12px 10px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-row {
  gap: 7px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--adx-line);
  border-radius: 0;
  background: transparent;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-row:last-child {
  border-bottom: 0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-name,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-name--link {
  min-width: 0;
  color: #21180f;
  font-size: 13px;
  line-height: 1.25;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-sub,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-foot span {
  flex: 0 0 auto;
  color: var(--adx-muted);
  font-size: 11px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-track {
  height: 5px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-fill {
  background: linear-gradient(90deg, #a9d8b7 0%, #3e9964 100%);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-fill--win {
  background: linear-gradient(90deg, #62b983 0%, #1c7c54 100%);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-fill--blue {
  background: linear-gradient(90deg, #a8c7e6 0%, #5c91c6 100%);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-fill--blue-strong {
  background: linear-gradient(90deg, #5c91c6 0%, #2f6fa8 100%);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-rank-foot strong {
  color: var(--adx-green);
  font-size: 14px;
  line-height: 1.1;
}

@media (max-width: 1180px) {
  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-recent-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "charts"
      "races";
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-recent-side {
    grid-template-columns: minmax(0, 3fr) minmax(240px, 2fr);
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-shell {
    gap: 10px;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-top-grid,
  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-recent-side {
    grid-template-columns: 1fr;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-bottom-grid {
    grid-template-columns: 1fr;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-recent-layout {
    padding: 10px;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix {
    grid-template-columns: 74px repeat(3, minmax(0, 1fr));
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-cell {
    min-height: 52px;
    padding: 6px 4px;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-cell--side {
    padding-left: 6px;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-side,
  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-sub,
  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-matrix-foot {
    font-size: 9.5px;
  }
}

@media (max-width: 420px) {
  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-grid {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-card {
    flex: 0 0 148px;
    scroll-snap-align: start;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .adx-race-foot {
    grid-template-columns: 1fr;
  }
}

/* Compact secondary horse tabs: style, gallop, family, stablemates */
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-shell,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-shell,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-grid {
  --atd-line: rgba(62, 47, 25, 0.10);
  --atd-line-strong: rgba(62, 47, 25, 0.16);
  --atd-soft: #fbfaf7;
  --atd-muted: #6f6659;
  --atd-green: #1c7c54;
  --atd-blue: #2f6fa8;
  gap: 12px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-signal-grid,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-top-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-signal-card,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-top-card,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-panel,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-panel,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-latest-card,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-compare-item,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-kart,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo-wrap {
  border-color: var(--atd-line);
  border-radius: 8px !important;
  box-shadow: none !important;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-signal-card,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-top-card {
  gap: 6px;
  min-height: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-signal-label,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-top-label,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-panel-note,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-panel-note,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-matrix-cell--head,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-matrix-cell--side,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-head,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-table thead th {
  letter-spacing: 0;
  text-transform: none;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-signal-label,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-top-label {
  color: #5f574d;
  font-size: 11px;
  line-height: 1.25;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-signal-value,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-top-value {
  color: #21180f;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: 0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-signal-note,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-top-note {
  color: var(--atd-muted);
  font-size: 11px;
  line-height: 1.25;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-meter,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-compare-track {
  height: 4px;
  background: #ece5db;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-meter-fill {
  background: linear-gradient(90deg, #8fcba5 0%, #1c7c54 100%);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-panel,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-panel,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-kart {
  overflow: hidden;
  background: #fff !important;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-panel-head,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-panel-head,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-head {
  min-height: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--atd-line);
  background: var(--atd-soft);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-panel-title,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-panel-title {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-panel-note,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-panel-note {
  color: var(--atd-muted);
  font-size: 11px;
  line-height: 1.35;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-panel-body,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-panel-body {
  padding: 12px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(230px, 0.72fr);
  gap: 12px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-map-chart {
  max-height: 250px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-map-box {
  fill: #fffdfa;
  stroke: #e6ded2;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-grid-line,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-grid-line {
  stroke: #e4dbcf;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-map-line {
  stroke: #266f5b;
  stroke-width: 2px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-map-point {
  stroke: #266f5b;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-point-label {
  fill: #2e6d59;
  font-size: 9.5px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-axis-label {
  fill: #6f6659;
  font-size: 10px;
  font-weight: 800;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-bar-grid {
  min-height: 156px;
  gap: 8px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-bar-card {
  gap: 6px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-bar-value {
  font-size: 14px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-bar-track {
  height: 104px;
  padding: 7px;
  border-color: var(--atd-line);
  background: #fffdfa;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-bar-fill {
  background: linear-gradient(180deg, #8fcba5 0%, #1c7c54 100%);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-bar-fill--fallback {
  background: linear-gradient(180deg, rgba(128, 151, 179, 0.54) 0%, rgba(73, 113, 164, 0.80) 100%);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-bar-label,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-split-legend span {
  color: var(--atd-muted);
  font-size: 11px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-split-legend {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-matrix {
  grid-template-columns: 92px repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--atd-line);
  border-radius: 8px;
  background: #fff;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-matrix-cell {
  min-height: 54px;
  padding: 7px;
  border-color: var(--atd-line);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-matrix-cell--head,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-matrix-cell--side {
  min-height: 34px;
  background: var(--atd-soft);
  color: #5f574d;
  font-size: 10.5px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-matrix-main {
  color: #21180f;
  font-size: 13px;
  line-height: 1.15;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-matrix-sub {
  color: var(--atd-muted);
  font-size: 10px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-main-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-line-chart {
  max-height: 150px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-line-path {
  stroke: #266f5b;
  stroke-width: 2px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-line-point {
  stroke: #266f5b;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-latest-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-latest-card,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-compare-item {
  padding: 9px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-latest-head strong,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-meta-top strong,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-compare-title {
  color: #21180f;
  font-size: 13px;
  line-height: 1.25;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-latest-time,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-compare-value {
  color: #21180f;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-latest-meta,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-latest-foot,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-meta-mid,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-meta-foot,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-compare-label {
  color: var(--atd-muted);
  font-size: 10.5px;
  line-height: 1.25;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-table {
  grid-template-columns: minmax(150px, 1.05fr) repeat(5, minmax(58px, 1fr));
  border-color: var(--atd-line);
  border-radius: 8px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-head,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-meta,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-cell {
  min-height: 48px;
  padding: 8px;
  border-color: var(--atd-line);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-head {
  background: var(--atd-soft);
  color: #5f574d;
  font-size: 10.5px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-meta {
  gap: 4px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-cell {
  background: rgba(31, 124, 84, calc(0.04 + (var(--glx-heat) * 0.003)));
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-cell strong {
  color: #21180f;
  font-size: 13px;
  letter-spacing: 0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-cell--empty {
  background: #fffdfa;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-compare-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-compare-list > .at-bos {
  grid-column: 1 / -1;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-compare-bars {
  gap: 7px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-table {
  min-width: 760px;
  font-size: 12px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-table thead th,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-table tbody td {
  padding: 8px 9px;
  border-color: var(--atd-line);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-table thead th {
  background: var(--atd-soft);
  color: #5f574d;
  font-size: 10.5px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-table-links {
  gap: 5px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-table-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(47, 111, 168, 0.16);
  border-radius: 6px;
  background: #f7fbff;
  color: var(--atd-blue);
  font-size: 11px;
  line-height: 1;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-table-links a:hover {
  border-color: rgba(28, 124, 84, 0.24);
  background: #f3faf6;
  color: var(--atd-green);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-kart-wide {
  grid-column: 1 / -1;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-kart {
  min-width: 0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #21180f;
  font-size: 14px;
  font-weight: 800;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-head-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.25;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-head-title i {
  color: var(--atd-green);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-parent {
  min-width: 80px;
  max-width: 38%;
  overflow: hidden;
  color: var(--atd-muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-sayac {
  flex: 0 0 auto;
  min-width: 24px;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  border: 1px solid var(--atd-line);
  border-radius: 999px;
  background: #fff;
  color: #4c453b;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo-wrap {
  overflow-x: hidden;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  table-layout: fixed;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-tablo {
  min-width: 700px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo th,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--atd-line);
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo th:nth-child(1),
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo td:nth-child(1) {
  width: 52%;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo th:nth-child(2),
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo td:nth-child(2),
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo th:nth-child(3),
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo td:nth-child(3),
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo th:nth-child(4),
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo td:nth-child(4),
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo th:nth-child(5),
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo td:nth-child(5) {
  width: 12%;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo th {
  background: #fffdfa;
  color: #5f574d;
  font-size: 10.5px;
  font-weight: 800;
  text-align: left;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo th:not(:first-child),
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-num {
  text-align: center;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo tbody tr:last-child td {
  border-bottom: 0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-tablo tbody tr:hover td {
  background: #fffdfa;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  color: #21180f;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-link span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-link:hover {
  color: var(--atd-green);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-sex,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-chip,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-percent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-sex {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid var(--atd-line);
  color: #4c453b;
  background: #fff;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-sex--male {
  color: #2f6fa8;
  background: #f2f7fd;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-sex--female {
  color: #9d4f7a;
  background: #fff4fa;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-win {
  color: var(--atd-green);
  font-weight: 900;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-chip,
.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-percent {
  min-width: 36px;
  min-height: 20px;
  padding: 0 7px;
  background: #f4f7f5;
  color: #246b4a;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-hip {
  color: var(--atd-muted);
  font-size: 11px;
  line-height: 1.35;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-grid {
  grid-template-columns: 1fr;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-panel {
  overflow: hidden;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(360px, 1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--atd-line);
  border-radius: 7px;
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-main {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #21180f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-name span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-name:hover {
  color: var(--atd-green);
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-centers {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--atd-muted);
  font-size: 11px;
  line-height: 1.35;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-centers span {
  flex: 0 0 auto;
  color: #7a6d5d;
  font-weight: 800;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-centers strong {
  min-width: 0;
  color: #4e463c;
  font-weight: 700;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-stat {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 7px;
  border: 1px solid var(--atd-line);
  border-radius: 6px;
  background: #fff;
  text-align: center;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-stat span {
  color: #7a6d5d;
  font-size: 10px;
  font-weight: 800;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-stat strong {
  color: #21180f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-empty {
  grid-column: 1 / -1;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glp-bos {
  border: 1px solid var(--atd-line, rgba(62, 47, 25, 0.10));
  border-radius: 8px;
  background: #fff;
  color: var(--atd-muted, #6f6659);
  font-size: 13px;
}

.pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glp-bos-ico {
  display: block;
  margin-bottom: 8px;
  color: var(--atd-muted, #6f6659);
  font-size: 26px;
}

.glx-modal-open {
  overflow: hidden;
}

.glx-source-modal[hidden] {
  display: none !important;
}

.glx-source-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 18px;
}

.glx-source-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 11, 0.58);
}

.glx-source-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.glx-source-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(62, 47, 25, 0.10);
  background: #fbfaf7;
}

.glx-source-modal__head h2 {
  margin: 0;
  color: #21180f;
  font-family: "Barlow", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.glx-source-modal__head p {
  margin: 4px 0 0;
  color: #6f6659;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.glx-source-modal__close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(62, 47, 25, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #4c453b;
  cursor: pointer;
}

.glx-source-modal__close:hover {
  background: #f7fbff;
  color: #2f6fa8;
}

.glx-source-modal__source {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(62, 47, 25, 0.10);
  background: #f3faf6;
  color: #246b4a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.glx-source-modal__body {
  min-height: 220px;
  overflow: auto;
  background: #111;
}

.glx-source-modal__body--stats {
  background: #fff;
}

.glx-source-modal__frame,
.glx-source-modal__video {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
  border: 0;
  background: #111;
}

.glx-source-modal__video-wrap {
  position: relative;
  min-height: 460px;
  height: 100%;
  background: #111;
}

.glx-source-modal__video-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.glx-source-modal__stats {
  display: grid;
  gap: 0;
  padding: 8px 16px 16px;
}

.glx-source-modal__stat-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.36fr) minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(62, 47, 25, 0.10);
}

.glx-source-modal__stat-row:last-child {
  border-bottom: 0;
}

.glx-source-modal__stat-row span {
  color: #6f6659;
  font-size: 12px;
  font-weight: 800;
}

.glx-source-modal__stat-row strong {
  min-width: 0;
  color: #21180f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.glx-source-modal__stat-empty {
  padding: 20px 0;
  color: #6f6659;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.glx-source-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(62, 47, 25, 0.10);
  background: #fff;
  color: #6f6659;
  font-size: 11px;
  font-weight: 700;
}

.glx-source-modal__foot a {
  color: #2f6fa8;
  font-weight: 900;
  text-decoration: none;
}

.glx-source-modal__foot a:hover {
  color: #1c7c54;
}

@media (max-width: 1180px) {
  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-grid,
  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-signal-grid,
  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-panel-head,
  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-matrix {
    grid-template-columns: 74px repeat(3, minmax(0, 1fr));
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ptx-matrix-cell {
    min-height: 50px;
    padding: 6px 4px;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-panel-body {
    overflow-x: auto;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .glx-heat-table {
    min-width: 640px;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .aile-grid {
    grid-template-columns: 1fr;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-card {
    grid-template-columns: 1fr;
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pgd-entity-detail-shell.pgd-entity-detail-shell--horse .ekuri-centers {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .glx-source-modal {
    padding: 10px;
  }

  .glx-source-modal__panel {
    max-height: calc(100vh - 20px);
  }

  .glx-source-modal__frame,
  .glx-source-modal__video,
  .glx-source-modal__video-wrap {
    min-height: 340px;
  }

  .glx-source-modal__foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .glx-source-modal__stat-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

