.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9800;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 900px);
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 64px);
  background: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9900;
  overflow: hidden;
}

#technologyModal {
  z-index: 10000;
  max-height: 80vh;
}

#technologyModal .modal-header,
#technologyModal .modal-footer {
  padding: 16px;
}

#technologyModal .modal-body {
  padding: 16px;
}

.technology-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas:
    "media description"
    "features features"
    "meta meta";
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .technology-modal__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "description"
      "features"
      "meta";
  }
}

.technology-modal__primary,
.technology-modal__secondary,
.technology-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.technology-modal__primary {
  grid-area: media;
}

.technology-modal__secondary {
  display: contents;
}

.technology-modal__description {
  grid-area: description;
}

.technology-modal__features {
  grid-area: features;
}

.technology-modal__meta {
  grid-column: 1 / -1;
  grid-area: meta;
}

.technology-modal__media-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 640px) {
  .technology-modal__media-group {
    flex-wrap: nowrap;
  }
}

.technology-modal__gallery {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

@media (min-width: 640px) {
  .technology-modal__gallery {
    flex-direction: column;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
  }
}

.technology-modal__gallery.hidden {
  display: none;
}

.technology-modal__gallery-item {
  flex: 0 0 auto;
}

.technology-modal__thumbnail {
  display: block;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.technology-modal__thumbnail img {
  display: block;
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.technology-modal__thumbnail:hover,
.technology-modal__thumbnail:focus-visible {
  border-color: rgba(30, 58, 138, 0.45);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.18);
  outline: none;
  transform: translateY(-2px);
}

.technology-modal__thumbnail:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.35);
}

.technology-modal__thumbnail.is-active {
  border-color: rgba(30, 58, 138, 0.65);
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.22);
  transform: translateY(-1px);
}

.technology-modal__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(243, 244, 246, 0.95), rgba(156, 163, 175, 0.32));
  border: 1px solid rgba(107, 114, 128, 0.28);
  min-height: 180px;
  box-sizing: border-box;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

@media (min-width: 720px) {
  .technology-modal__media {
    flex: 1 1 clamp(280px, 50vw, 540px);
    min-width: 0;
  }
}

.technology-modal__media-image {
  display: block;
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(55, 65, 81, 0.12);
}

.technology-modal__media--empty {
  background: linear-gradient(135deg, rgba(243, 244, 246, 0.95), rgba(156, 163, 175, 0.22));
  border-style: dashed;
  border-color: rgba(107, 114, 128, 0.45);
}

.modal-header,
.modal-footer {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.modal-footer {
  border-top: 1px solid #ddd;
  border-bottom: 0;
  justify-content: flex-end;
}

.modal-title-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #dc2626;
  outline: none;
}

.modal-close:active {
  color: #b91c1c;
}

.modal-body {
  padding: 10px;
  overflow-y: auto;
  flex: 1;
}

.favorite-toggle {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #1a349b;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.favorite-toggle .favorite-toggle__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.favorite-toggle:hover,
.favorite-toggle:focus-visible {
  border-color: #1a349b;
  color: #0f1f63;
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 12px 24px rgba(26, 52, 155, 0.15);
}

.favorite-toggle.is-active {
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.15);
}

.favorite-toggle.is-loading {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}



.tech-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
  grid-auto-rows: minmax(0, auto);
}

.tech-modal-layout.is-single-column {
  grid-template-columns: minmax(0, 1fr);
}

.tech-modal-layout > .modal-accordion--aggregations {
  grid-column: 1 / -1;
  width: 100%;
}

.tech-modal-layout > .modal-accordion--full {
  grid-column: 1 / -1;
  width: 100%;
}

.tech-modal-primary,
.tech-modal-secondary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.tech-modal-layout.is-single-column .tech-modal-secondary {
  grid-column: 1;
}

.tech-modal-secondary.hidden {
  display: none;
}

.tech-modal-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-modal-accordion-group .modal-accordion {
  margin-bottom: 0;
}

.modal-accordion-panel .tech-aggregations {
  margin-top: 0;
  width: 100%;
}

.tech-modal-secondary .tech-aggregations {
  width: 100%;
}

@media (max-width: 1280px) {
  .tech-modal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tech-modal-secondary {
    order: 2;
  }
}

.modal-accordion {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.modal-accordion.hidden {
  display: none;
}

.modal-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: none;
  border: none;
  border-radius: 12px 12px 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.modal-accordion-trigger:hover,
.modal-accordion-trigger:focus-visible {
  background: rgba(37, 99, 235, 0.06);
  outline: none;
}

.modal-accordion-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.modal-accordion-trigger.is-disabled {
  cursor: not-allowed;
  color: #94a3b8;
}

.modal-accordion-trigger.is-disabled .modal-accordion-icon {
  opacity: 0.35;
}

.modal-accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-accordion-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand, #1e3a8a);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.modal-accordion-icon::before {
  content: '▾';
  line-height: 1;
}

.modal-accordion-trigger.is-open .modal-accordion-icon {
  transform: rotate(180deg);
}

.modal-accordion-panel {
  padding: 16px 18px 18px;
  border-top: 1px solid #e5e7eb;
}

.modal-accordion-panel:last-child {
  border-radius: 0 0 12px 12px;
}

#techModal .modal-info,
#technologyModal .modal-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 0;
  align-items: stretch;
}

#techModal .modal-info-primary,
#technologyModal .modal-info-primary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}


#techModal .tech-modal__media-group {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  #techModal .tech-modal__media-group {
    flex-wrap: nowrap;
  }
}

#techModal .tech-modal__gallery {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

@media (min-width: 640px) {
  #techModal .tech-modal__gallery {
    flex-direction: column;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
  }
}

#techModal .tech-modal__gallery.hidden {
  display: none;
}

#techModal .tech-modal__gallery-item {
  flex: 0 0 auto;
}

#techModal .tech-modal__thumbnail {
  display: block;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#techModal .tech-modal__thumbnail img {
  display: block;
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

#techModal .tech-modal__thumbnail:hover,
#techModal .tech-modal__thumbnail:focus-visible {
  border-color: rgba(30, 58, 138, 0.45);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.18);
  outline: none;
  transform: translateY(-2px);
}

#techModal .tech-modal__thumbnail:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.35);
}

#techModal .tech-modal__thumbnail.is-active {
  border-color: rgba(30, 58, 138, 0.65);
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.22);
  transform: translateY(-1px);
}

#techModal .tech-modal__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(243, 244, 246, 0.95), rgba(156, 163, 175, 0.32));
  border: 1px solid rgba(107, 114, 128, 0.28);
  min-height: 180px;
  box-sizing: border-box;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

@media (min-width: 720px) {
  #techModal .tech-modal__media {
    flex: 1 1 clamp(280px, 50vw, 540px);
    min-width: 0;
  }
}

#techModal .tech-modal__media-image {
  display: block;
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(55, 65, 81, 0.12);
}

#techModal .tech-modal__media--empty {
  background: linear-gradient(135deg, rgba(243, 244, 246, 0.95), rgba(156, 163, 175, 0.22));
  border-style: dashed;
  border-color: rgba(107, 114, 128, 0.45);
}


#techModal .modal-image-placeholder,
#technologyModal .modal-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  min-height: 148px;
  padding: 18px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  color: #4b5563;
}

.modal-body .ats {
  --ats-surface: #ffffff;
  --ats-border-color: #d1d5db;
  --ats-header-bg: var(--brand, #1e3a8a);
  --ats-header-text: #ffffff;
  --ats-row-odd-bg: #f8fafc;
  --ats-row-even-bg: #edf2ff;
  --ats-row-text: #0f172a;
  --ats-link-color: #1d4ed8;
  border: 1px solid var(--ats-border-color);
  border-collapse: separate;
  border-radius: 12px;
  border-spacing: 0;
  width: 100%;
  overflow: hidden;
  background-color: var(--ats-surface);
  color: var(--ats-row-text);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.modal-body .ats th,
.modal-body .ats td {
  border-bottom: 1px solid var(--ats-border-color);
  padding: 10px 14px;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.modal-body .ats thead th {
  text-align: left;
  background-color: var(--ats-header-bg);
  color: var(--ats-header-text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.modal-body .ats tbody td {
  text-align: left;
}

.modal-body .ats td img {
  display: none;
}

.modal-body .ats tbody tr:last-child th,
.modal-body .ats tbody tr:last-child td {
  border-bottom: none;
}


.bool-true {
  color: green;
}

.bool-false {
  color: red;
}

.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.care-bar-card {
  gap: 18px;
}

.care-bar-card__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.care-bar-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.care-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.care-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.care-bar-label {
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
}

.care-bar-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.care-bar-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.care-bar-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.75));
  transition: width 0.3s ease;
}

.care-bar-caption {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

@media (max-width: 960px) {
  .care-bar-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .care-bar-value {
    font-size: 0.88rem;
  }
}

.hidden {
  display: none;
}

.modal.hidden,
.modal-overlay.hidden {
  display: none;
}


.tech-aggregations {
  --tech-aggregations-surface: #f9fafb;
  --tech-aggregations-border: #e5e7eb;
  --tech-aggregations-heading: #0f172a;
  --tech-aggregations-tab-bg: #ffffff;
  --tech-aggregations-tab-text: #1f2937;
  --tech-aggregations-tab-border: #d1d5db;
  --tech-aggregations-tab-hover: #1d4ed8;
  --tech-aggregations-tab-active-bg: #2563eb;
  --tech-aggregations-tab-active-border: #1d4ed8;
  --tech-aggregations-tab-active-text: #ffffff;
  --tech-aggregations-panel-header-bg: var(--brand, #1e3a8a);
  --tech-aggregations-panel-cell-bg: #ffffff;
  --tech-aggregations-panel-cell-text: #000000;
  margin-top: 20px;
  border: 1px solid var(--tech-aggregations-border);
  border-radius: 12px;
  padding: 16px;
  background-color: var(--tech-aggregations-surface);
  color: var(--tech-aggregations-heading);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease,
    color 0.3s ease;
}

.tech-aggregations-gauge {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 16px;
  padding: 24px;
  background-color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #0f172a;
}

.tech-aggregations-gauge__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-aggregations-gauge__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: inherit;
}

.tech-aggregations-gauge__description {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
}

.tech-aggregations-gauge__ranges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.tech-aggregations-gauge__ranges::before {
  content: '';
  display: none;
}

.tech-aggregations-range {
  --range-position: 0%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(248, 250, 252, 0.6) 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-aggregations-range__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tech-aggregations-range__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.tech-aggregations-range__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.tech-aggregations-range__track {
  position: relative;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #dc2626 0%,
    #f97316 20%,
    #facc15 50%,
    #4ade80 80%,
    #16a34a 100%
  );
  overflow: hidden;
}

.tech-aggregations-range__indicator {
  position: absolute;
  top: 50%;
  left: var(--range-position);
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #1b55df;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  transition: left 0.35s ease, opacity 0.2s ease;
}

.tech-aggregations-range__title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-aggregations-range__metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
}

.tech-aggregations-range__label {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

.tech-aggregations-range__empty {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.tech-aggregations-range.is-empty {
  border-color: rgba(148, 163, 184, 0.5);
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.tech-aggregations-range.is-empty .tech-aggregations-range__track {
  background: #e2e8f0;
}

.tech-aggregations-range.is-empty .tech-aggregations-range__indicator {
  opacity: 0;
}

.tech-aggregations-gauge__empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background-color: rgba(148, 163, 184, 0.12);
}

.tech-aggregations h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: inherit;
}

.tech-aggregations__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.tech-aggregations__header-primary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.tech-aggregations__header-primary h3 {
  margin: 0;
}

.tech-aggregations__header .tech-aggregations-tabs {
  margin-bottom: 0;
  justify-content: flex-start;
}

.tech-aggregations__header .tech-aggregations-tab {
  flex: 0 0 auto;
}

.tech-aggregations__content {
  display: grid;
  gap: 24px;
  align-items: flex-start;
}

.tech-aggregations__content > .tech-aggregations-highlight {
  margin-bottom: 0;
}

.tech-aggregations__content > .tech-aggregations-panels {
  margin-top: 0;
}

@media (max-width: 1280px) {
  .tech-aggregations__header,
  .tech-aggregations__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .tech-aggregations__header {
    gap: 16px;
  }
}

.tech-aggregations-highlight {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.tech-aggregations-highlight.is-hidden {
  display: none;
}

.tech-aggregations-highlight .tech-aggregation {
  margin: 0;
}

.tech-aggregations-highlight .care-bar-card {
  margin: 0;
}

.tech-aggregations-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tech-aggregations-tabs--compact {
  margin-bottom: 0;
  gap: 6px;
  justify-content: flex-start;
}

.tech-aggregations-tabs--compact .tech-aggregations-tab {
  padding: 6px 12px;
  font-size: 0.9rem;
}

.tech-aggregations-tabs--compact .tech-aggregations-tab {
  background-color: var(--tech-aggregations-tab-active-bg);
  border-color: var(--tech-aggregations-tab-active-border);
  color: var(--tech-aggregations-tab-active-text);
  cursor: default;
}

.tech-aggregations-tabs--compact .tech-aggregations-tab.is-disabled {
  opacity: 1;
}

.tech-aggregations-tab {
  border: 1px solid var(--tech-aggregations-tab-border);
  background-color: var(--tech-aggregations-tab-bg);
  color: var(--tech-aggregations-tab-text);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tech-aggregations-tab:hover,
.tech-aggregations-tab:focus {
  outline: none;
  border-color: var(--tech-aggregations-tab-hover);
  color: var(--tech-aggregations-tab-hover);
}

.tech-aggregations-tab.is-active {
  background-color: var(--tech-aggregations-tab-active-bg);
  border-color: var(--tech-aggregations-tab-active-border);
  color: var(--tech-aggregations-tab-active-text);
}

.tech-aggregations-tab.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tech-aggregations-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-aggregations-panels th {
  background-color: var(--tech-aggregations-panel-header-bg);
  color: #ffffff;
}

.tech-aggregations-panels td {
  background-color: var(--tech-aggregations-panel-cell-bg);
  color: var(--tech-aggregations-panel-cell-text);
}

.tech-aggregation {
  border: 1px solid var(--tech-aggregations-border);
  border-radius: 10px;
  padding: 12px 14px;
  background-color: var(--tech-aggregations-panel-cell-bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-aggregation.is-active {
  display: flex;
}

.tech-aggregation:not(.is-active) {
  display: none;
}

.tech-aggregation-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-aggregation-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-aggregation-header h4 {
  margin: 0;
  font-size: 1.05rem;
}

.tech-aggregation-count {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
}


.tech-aggregation-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.tech-aggregation-content-secondary,
.tech-aggregation-content-primary {
  min-width: 0;
}

.tech-aggregation-content-secondary {
  order: 1;
}

.tech-aggregation-content-primary {
  order: 2;
  display: flex;
  width: 100%;
}

.tech-aggregation-content-primary .tech-aggregation-chart-stack {
  flex: 1 1 auto;
}

.tech-aggregation-content-primary .tech-aggregation-chart-wrapper {
  flex: 1 1 100%;
}

.tech-aggregation-metrics {
  --tech-aggregation-surface: #ffffff;
  --tech-aggregation-border-color: #e5e7eb;
  --tech-aggregation-divider-color: #1f2937;
  --tech-aggregation-row-bg: #f8fafc;
  --tech-aggregation-title-bg: #f1f5f9;
  --tech-aggregation-value-bg: #ffffff;
  --tech-aggregation-value-alt-bg: #f1f5f9;
  --tech-aggregation-text: #0f172a;
  --tech-aggregation-text-strong: #000000;
  --tech-aggregation-text-muted: #6b7280;
  overflow-x: auto;
  background-color: var(--tech-aggregation-surface);
  border: 1px solid var(--tech-aggregation-border-color);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
  color: var(--tech-aggregation-text);
}

.tech-aggregation-metrics-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
}

.tech-aggregation-metrics-table tbody tr {
  background-color: var(--tech-aggregation-row-bg);
}

.tech-aggregation-metrics-table tbody tr + tr .tech-aggregation-metric-title,
.tech-aggregation-metrics-table tbody tr + tr .tech-aggregation-metric-value {
  border-top: 1px solid var(--tech-aggregation-border-color);
}

.tech-aggregation-metric:nth-of-type(even) {
  background-color: transparent;
}

.tech-aggregation-metric:nth-of-type(even) .tech-aggregation-metric-title,
.tech-aggregation-metric:nth-of-type(even) .tech-aggregation-metric-value {
  background-color: var(--tech-aggregation-title-bg);
  color: var(--tech-aggregation-text-strong);
}

.tech-aggregation-metric:nth-of-type(even) .tech-aggregation-metric-value {
  background-color: var(--tech-aggregation-value-alt-bg);
}

.tech-aggregation-metric-title,
.tech-aggregation-metric-value {
  padding: 12px 16px;
  background-color: var(--tech-aggregation-value-bg);
  color: inherit;
}

.tech-aggregation-metric-title {
  font-size: 0.9rem;
  font-weight: 600;
  background-color: var(--tech-aggregation-title-bg);
  color: var(--tech-aggregation-text-strong);
  margin: 0;
  text-align: left;
}

.tech-aggregation-metric-label {
  display: block;
  color: inherit;
}

.tech-aggregation-metric-description {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: inherit;
}

.tech-aggregation-metric-value {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.tech-aggregation-metric--section-divider .tech-aggregation-metric-title,
.tech-aggregation-metric--section-divider .tech-aggregation-metric-value {
  padding-top: 18px;
  border-top: 8px solid var(--tech-aggregation-divider-color);
}

.tech-aggregation-metric-value-suffix {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tech-aggregation-text-muted);
  letter-spacing: 0.01em;
  text-transform: none;
}

.tech-aggregation-metric-value--empty,
.tech-aggregation-metric-empty {
  color: var(--tech-aggregation-text-muted);
  font-style: italic;
}

.tech-aggregation-metric-empty {
  display: inline-block;
}

.tech-aggregation-metric-value small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--tech-aggregation-text-muted);
  margin-top: 4px;
}

@media (prefers-color-scheme: dark) {
  .modal-body .ats {
    --ats-surface: rgba(15, 23, 42, 0.78);
    --ats-border-color: rgba(148, 163, 184, 0.35);
    --ats-header-bg: rgba(37, 99, 235, 0.78);
    --ats-header-text: #f8fafc;
    --ats-row-odd-bg: rgba(15, 23, 42, 0.68);
    --ats-row-even-bg: rgba(30, 41, 59, 0.78);
    --ats-row-text: #e2e8f0;
    --ats-link-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
  }

  .tech-aggregations {
    --tech-aggregations-surface: rgba(15, 23, 42, 0.72);
    --tech-aggregations-border: rgba(148, 163, 184, 0.35);
    --tech-aggregations-heading: #e2e8f0;
    --tech-aggregations-tab-bg: rgba(15, 23, 42, 0.65);
    --tech-aggregations-tab-text: #e2e8f0;
    --tech-aggregations-tab-border: rgba(148, 163, 184, 0.4);
    --tech-aggregations-tab-hover: #93c5fd;
    --tech-aggregations-tab-active-bg: #2563eb;
    --tech-aggregations-tab-active-border: #60a5fa;
    --tech-aggregations-tab-active-text: #f8fafc;
    --tech-aggregations-panel-header-bg: rgba(37, 99, 235, 0.85);
    --tech-aggregations-panel-cell-bg: rgba(15, 23, 42, 0.78);
    --tech-aggregations-panel-cell-text: #e2e8f0;
  }

  .tech-aggregation-metrics {
    --tech-aggregation-surface: rgba(15, 23, 42, 0.65);
    --tech-aggregation-border-color: rgba(148, 163, 184, 0.4);
    --tech-aggregation-row-bg: rgba(15, 23, 42, 0.4);
    --tech-aggregation-title-bg: rgba(30, 41, 59, 0.8);
    --tech-aggregation-value-bg: rgba(15, 23, 42, 0.7);
    --tech-aggregation-value-alt-bg: rgba(30, 41, 59, 0.78);
    --tech-aggregation-text: #e2e8f0;
    --tech-aggregation-text-strong: #f8fafc;
    --tech-aggregation-text-muted: rgba(148, 163, 184, 0.85);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.35);
  }

  .tech-aggregation-metrics-table tbody tr + tr .tech-aggregation-metric-title,
  .tech-aggregation-metrics-table tbody tr + tr .tech-aggregation-metric-value {
    border-top-color: rgba(148, 163, 184, 0.35);
  }

  .tech-aggregation-chart-wrapper {
    border-color: rgba(148, 163, 184, 0.35);
    background-color: rgba(15, 23, 42, 0.72);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
  }
}

.tech-aggregation-chart-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  width: 100%;
}

.tech-aggregation-chart-stack--two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .tech-aggregation-chart-stack--two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tech-aggregation-chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 240px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.tech-aggregation-chart-wrapper canvas,
.tech-aggregation-chart-wrapper .care-bar-chart {
  width: 100%;
}


.tech-aggregation-chart-wrapper.has-side-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
  gap: 16px;
}

.tech-aggregation-chart-wrapper.has-side-list.has-visible-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tech-aggregation-chart-wrapper.has-side-list:not(.has-visible-list) {
  justify-items: center;
  gap: 0;
}

.tech-aggregation-chart-side {
  display: none;
  height: 100%;
}

.tech-aggregation-chart-wrapper.has-visible-list .tech-aggregation-chart-side {
  display: flex;
  flex-direction: column;
}

.tech-aggregation-chart-main {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.tech-aggregation-chart-side-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 8px;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background-color: #f9fafb;
  min-width: 190px;
  align-content: start;
}

.tech-aggregation-chart-side-list dt {
  grid-column: 1;
  text-align: left;
}

.tech-aggregation-chart-side-list dd {
  grid-column: 2;
  text-align: left;
}

.tech-aggregation-chart-side-list dt {
  font-weight: 600;
  color: #1f2937;
}

.tech-aggregation-chart-side-list dd {
  margin: 0;
  color: #111827;
}

.tech-aggregation-chart-wrapper canvas {
  width: 95% !important;
  height: 95% !important;
}

.tech-aggregation-chart-wrapper.has-side-list canvas {
  width: 95% !important;
  height: 95% !important;
}

@media (max-width: 640px) {
  .tech-aggregation-metric-title,
  .tech-aggregation-metric-value {
    padding: 10px 12px;
  }

  .tech-aggregation-metric-value {
    font-size: 1rem;
  }
}

.tech-aggregation-empty,
.tech-aggregations-empty {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.modal-related {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #f9fafb;
}

.modal-related-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.modal-related-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.modal-related h3 {
  margin: 0 0 8px;
}

.modal-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-related-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--brand, #1d4ed8);
  text-decoration: underline;
  cursor: pointer;
}

.modal-related-link:hover,
.modal-related-link:focus {
  text-decoration: none;
  outline: none;
}

.modal-related-meta {
  font-size: 0.9rem;
  color: #4b5563;
}

@media (max-width: 768px) {
  .modal-related-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}


.tech-modal__meta {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  padding: 18px 20px;
}

.tech-modal__meta h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #0f172a;
}

.tech-modal__meta .ats {
  margin: 0;
}

.tech-modal__meta .ats tbody tr:nth-child(odd) {
  background-color: var(--ats-row-odd-bg);
}

.tech-modal__meta .ats tbody tr:nth-child(even) {
  background-color: var(--ats-row-even-bg);
}

.tech-modal__meta .ats th {
  width: 38%;
  font-weight: 600;
}

.tech-modal__meta .ats td {
  background: transparent;
}

.modal-product-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
}

.modal-product-details__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-product-details__item:hover,
.modal-product-details__item:focus-within {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.modal-product-details__term {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.modal-product-details__description {
  font-size: 0.9rem;
  color: #334155;
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}

.modal-product-details__description a {
  color: #2563eb;
  text-decoration: underline;
}

.modal-product-details__description a:hover,
.modal-product-details__description a:focus {
  text-decoration: none;
}
