.bigdata-page {
  padding-bottom: 72px;
}

.bigdata-hero {
  align-items: stretch;
  background:
    radial-gradient(circle at 85% 15%, rgba(48, 178, 179, .2), transparent 34%),
    linear-gradient(132deg, #0a2744 0%, #0d4972 62%, #0a6b75 100%);
}

.bigdata-hero h1,
.bigdata-hero p,
.bigdata-hero .eyebrow {
  color: #fff;
}

.bigdata-scope {
  min-width: 280px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
}

.bigdata-search-panel {
  margin-top: -22px;
  position: relative;
  z-index: 2;
}

.bigdata-category {
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
}

.bigdata-category legend {
  color: #53657a;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.category-choice {
  align-items: center;
  background: #f7fafc;
  border: 1px solid #d9e4ee;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  min-height: 78px;
  padding: 14px 16px;
  transition: .18s ease;
}

.category-choice:hover,
.category-choice.active {
  background: #eef8fb;
  border-color: #0b83bd;
  box-shadow: 0 8px 20px rgba(10, 91, 130, .1);
}

.category-choice input {
  accent-color: #0878c9;
  height: 19px;
  width: 19px;
}

.category-choice span {
  display: grid;
  gap: 4px;
}

.category-choice b {
  color: #10253f;
  font-size: 16px;
}

.category-choice small {
  color: #65758a;
  line-height: 1.35;
}

.bigdata-query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.bigdata-query-row input {
  border: 2px solid #cad9e7;
  border-radius: 14px;
  font-size: 17px;
  min-height: 54px;
  padding: 0 18px;
}

.bigdata-query-row button {
  min-width: 128px;
}

.bigdata-subtitle {
  color: #66768a;
  margin: 5px 0 0;
  max-width: 860px;
}

.bigdata-kpis {
  grid-template-columns: repeat(6, minmax(135px, 1fr));
}

.bigdata-kpis article {
  min-height: 105px;
}

.bigdata-kpis small {
  color: #728096;
}

.bigdata-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 20px;
}

.chart-shell {
  min-height: 250px;
  overflow: hidden;
  width: 100%;
}

.entity-candidate-grid,
.related-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.entity-candidate,
.bigdata-record-card,
.price-group-grid article {
  background: #f9fbfd;
  border: 1px solid #dce6ef;
  border-radius: 14px;
  padding: 15px;
}

.entity-candidate > div,
.bigdata-record-card > div,
.entity-candidate footer,
.bigdata-record-card footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.entity-candidate h3,
.bigdata-record-card h3 {
  color: #122943;
  font-size: 16px;
  line-height: 1.45;
  margin: 12px 0 7px;
}

.entity-candidate p,
.bigdata-record-card p {
  color: #64758a;
  margin: 0 0 12px;
}

.source-chip {
  background: #e8f3f9;
  border-radius: 999px;
  color: #0c6694;
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  padding: 5px 9px;
}

.source-chip.contracts {
  background: #eeeafb;
  color: #644ca4;
}

.source-chip.prices {
  background: #e9f7ef;
  color: #28784e;
}

.source-chip.plan {
  background: #fff2d8;
  color: #8b5c0b;
}

.bigdata-card-list {
  display: grid;
  gap: 10px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.actionable-rank {
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
}

.actionable-rank > span {
  display: grid;
}

.price-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.price-group-grid article {
  display: grid;
  gap: 7px;
}

.price-group-grid article strong {
  color: #0c657f;
  font-size: 22px;
}

.price-group-grid article span,
.price-group-grid article small {
  color: #65758a;
}

.related-section-grid > section {
  min-width: 0;
}

.related-section-grid > section > h3 {
  border-bottom: 1px solid #e1e8ef;
  color: #17314e;
  margin: 0 0 12px;
  padding-bottom: 10px;
}

.related-section-grid .bigdata-card-list,
.related-section-grid section {
  max-height: 620px;
  overflow: auto;
}

.company-fact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.company-fact-list > div {
  border-bottom: 1px solid #e4ebf1;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
}

.company-fact-list dt {
  color: #6b7a8d;
}

.company-fact-list dd {
  color: #18324d;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.bigdata-pager {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.bigdata-pager span {
  color: #637389;
  font-size: 13px;
}

.bigdata-modal-card {
  max-height: 88vh;
  max-width: 1080px;
  overflow: auto;
  width: calc(100% - 36px);
}

.bigdata-modal-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.bigdata-modal-facts article {
  background: #f4f8fb;
  border-radius: 12px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 1100px) {
  .bigdata-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .price-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .bigdata-category,
  .bigdata-two-column,
  .entity-candidate-grid,
  .related-section-grid {
    grid-template-columns: 1fr;
  }
  .bigdata-query-row {
    grid-template-columns: 1fr;
  }
  .bigdata-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .price-group-grid,
  .bigdata-modal-facts {
    grid-template-columns: 1fr;
  }
  .actionable-rank {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .actionable-rank > small,
  .actionable-rank > button {
    grid-column: 2;
  }
}


.analysis-progress-modal {
  z-index: 1500;
}

.analysis-progress-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  padding: 34px;
  text-align: center;
  width: calc(100% - 36px);
}

.analysis-progress-card h2,
.analysis-progress-card p {
  margin: 0;
}

.analysis-progress-card small {
  color: #637389;
}

.analysis-spinner {
  animation: analysis-spin 0.85s linear infinite;
  border: 4px solid #dce9f5;
  border-radius: 50%;
  border-top-color: #0878c9;
  height: 44px;
  width: 44px;
}

.analysis-cancel-button {
  margin-top: 8px;
  min-width: 150px;
}

@keyframes analysis-spin {
  to { transform: rotate(360deg); }
}

/* v13.4: complete, expandable classifications and translatable details */
.category-rank-card {
  border-bottom: 1px solid #e2eaf1;
}

.category-rank-summary {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #17314e;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr) auto 28px;
  padding: 11px 8px;
  text-align: left;
  width: 100%;
}

.category-rank-summary:hover,
.category-rank-summary[aria-expanded="true"] {
  background: #eef7fb;
}

.category-rank-summary > b {
  align-items: center;
  background: #0e6b9c;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.category-rank-summary > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.category-rank-summary strong,
.category-rank-summary small {
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.category-rank-summary > span small {
  color: #617389;
}

.category-rank-summary > i {
  color: #0c6f9e;
  font-size: 21px;
  font-style: normal;
  text-align: center;
}

.category-rank-detail {
  background: #f7fafc;
  border: 1px solid #dce8f0;
  border-radius: 12px;
  margin: 0 6px 12px 44px;
  padding: 14px;
}

.category-rank-detail dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 12px;
}

.category-rank-detail dl > div {
  min-width: 0;
}

.category-rank-detail dt {
  color: #6c7b8c;
  font-size: 12px;
}

.category-rank-detail dd {
  color: #17314e;
  font-weight: 750;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.category-description {
  border-top: 1px solid #dde7ee;
  display: grid;
  gap: 7px;
  padding-top: 11px;
}

.bigdata-translatable {
  max-width: 100%;
  min-width: 0;
}

.bigdata-translatable-inline {
  align-items: flex-start;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bigdata-translatable-inline .translation-result {
  flex-basis: 100%;
  width: 100%;
}

.bigdata-entity-names,
.bigdata-entity-cell {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.bigdata-entity-names {
  color: #64758a;
  margin: 0 0 12px;
}

.bigdata-entity-cell .compact {
  justify-self: start;
}

.bigdata-related-name {
  font-size: inherit;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.bigdata-translatable .translatable-source,
.bigdata-description-cell {
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal;
}

.bigdata-card-description {
  font-size: inherit;
  font-weight: inherit;
}

.bigdata-card-heading {
  color: #122943;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
  margin: 12px 0 7px;
}

.bigdata-modal-heading {
  color: #122943;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  margin: 8px 0 14px;
}

.bigdata-card-description .translate-icon,
.bigdata-modal-title .translate-icon {
  margin-top: 1px;
}

.bigdata-plan-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.bigdata-plan-facts article {
  background: #f4f8fb;
  border: 1px solid #e0e8ef;
  border-radius: 12px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
}

.bigdata-plan-facts span {
  color: #6c7b8c;
  font-size: 12px;
}

.bigdata-plan-facts strong {
  color: #18324d;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .category-rank-summary {
    grid-template-columns: 26px minmax(0, 1fr) 24px;
  }
  .category-rank-summary > small {
    grid-column: 2;
  }
  .category-rank-summary > i {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .category-rank-detail {
    margin-left: 0;
  }
  .category-rank-detail dl,
  .bigdata-plan-facts {
    grid-template-columns: 1fr;
  }
}
