.next9-mode .search-card[hidden],
.next9-mode .next9-picker-launcher[hidden] {
  display: none !important;
}

.next9-mode .search-card {
  padding: 18px;
  border: 1px solid #b9cfe8;
  border-radius: 14px;
  background: #fff;
}

.next9-mode .search-card .section-title {
  align-items: center;
  gap: 12px;
}

.next9-mode .next9-close-picker {
  margin-left: auto;
}

.next9-mode .next9-picker-launcher {
  display: flex;
  align-items: center;
  padding: 14px 0 2px;
}

.next9-mode #actionResults {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.next9-mode .next9-action-option {
  overflow: hidden;
  border: 1px solid #c8d8e9;
  border-radius: 12px;
  background: #fff;
  color: #17263d;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.next9-mode .next9-action-option:hover,
.next9-mode .next9-action-option:focus-visible {
  border-color: #4c8ed6;
  box-shadow: 0 0 0 3px rgba(36, 117, 202, .12);
  outline: none;
}

.next9-mode .next9-action-option.inspected {
  border-color: #2475ca;
  box-shadow: 0 8px 22px rgba(32, 79, 130, .12);
}

.next9-mode .next9-action-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 11px 13px;
}

.next9-mode .next9-action-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.next9-mode .next9-action-summary strong {
  font-size: 15px;
  line-height: 1.3;
}

.next9-mode .next9-action-summary small {
  color: #61738a;
  line-height: 1.35;
}

.next9-mode .next9-action-summary em {
  color: #1f67ad;
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.next9-mode .next9-action-option.inspected .next9-action-summary {
  background: #f4f8fd;
}

.next9-mode .next9-action-subtypes {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-top: 1px solid #d7e3ef;
  background: #fbfdff;
}

.next9-mode .next9-action-subtypes > strong {
  color: #315a82;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.next9-mode .next9-action-subtypes > p { margin: 0; color: #536a80; line-height: 1.4; overflow-wrap: anywhere; }
.next9-mode .next9-action-subtypes > div { display: flex; flex-wrap: wrap; gap: 6px; }
.next9-mode .next9-action-subtypes > div > span { padding: 6px 9px; border: 1px solid #cddbe8; border-radius: 7px; background: #fff; color: #294d70; font-size: 13px; line-height: 1.3; }

.next9-mode .next9-selected-catalog-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  margin-bottom: 10px;
  color: #61738a;
  font-size: 12px;
}

.next9-mode .next9-selected-catalog-number strong {
  color: #294764;
}

.next10-mode .next10-deal-structure {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #d7e1ec;
  border-radius: 12px;
  background: #f8fafc;
}

.next10-mode .next10-options-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.next10-mode .next10-options-title {
  display: grid;
  gap: 1px;
}

.next10-mode .next10-options-title > strong { font-size: 13px; }
.next10-mode .next10-options-title > span { color: #6a788a; font-size: 12px; }
.next10-mode .next10-options-controls { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: end; gap: 7px; }
.next10-mode .next10-mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #bdcada;
  border-radius: 9px;
  background: #fff;
  color: #34465b;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.next10-mode .next10-mode-chip[aria-pressed="true"],
.next10-mode .next10-mode-chip:has(input:checked) { border-color: #76aada; background: #eaf5ff; color: #145d96; }
.next10-mode .next10-mode-chip > span { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 4px; font-size: 11px; }
.next10-mode .next10-mode-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.next10-mode .next10-mode-chip b { font: inherit; }
.next10-mode .next10-deal-structure p { margin: 0; }
.next10-mode .next10-mode-note { margin-top: 8px; color: #5b6d80; font-size: 12px; line-height: 1.4; }
.next10-mode .next10-mode-warning { color: #8a5b00; font-size: 13px; font-weight: 700; }
.next10-mode .next10-mixed-details { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #dce4ed; }
.next10-mode .next10-mixed-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next10-mode .next10-mixed-head > strong { font-size: 13px; }
.next10-mode .next10-contract-elements { display: grid; gap: 5px; }
.next10-mode .next10-contract-elements > span { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; padding: 7px 9px; border: 1px solid #d6e0ea; border-radius: 8px; background: #fff; color: #3d5269; font-size: 12px; }
.next10-mode .next10-contract-elements b { color: #145d96; }
.next10-mode .next10-contract-elements > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next10-mode .next10-contract-elements em { color: #146c43; font-style: normal; font-weight: 750; }
.next10-mode .next9-picker-launcher { display: flex; flex-wrap: wrap; gap: 8px; }
.next10-mode .next10-item-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 2px; }
.next10-mode .next10-item-badges span { padding: 4px 7px; border-radius: 999px; background: #edf6ff; color: #275c8d; font-size: 11px; font-weight: 800; }
.next10-result-mode { display: grid; gap: 2px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid #abd0ee; border-radius: 10px; background: #eef8ff; color: #245b86; }
.next10-result-mode span { font-size: 13px; }
.next10-mixed-result { display: grid; gap: 0; margin-bottom: 12px; overflow: hidden; border: 1px solid #b6d7c5; border-radius: 12px; background: #f2fbf6; }
.next10-mixed-result header { display: flex; justify-content: space-between; gap: 14px; padding: 13px 14px; border-bottom: 1px solid #cce5d6; }
.next10-mixed-result h4, .next10-mixed-result p { margin: 0; }
.next10-mixed-result header > strong { align-self: center; color: #12623d; font-size: 20px; }
.next10-mixed-result > div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 14px; border-bottom: 1px solid #dceee3; }
.next10-mixed-result > small { padding: 10px 14px; color: #587265; }

@media (max-width: 760px) {
  .next10-mode .next10-options-row { grid-template-columns: 1fr; align-items: stretch; }
  .next10-mode .next10-options-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .next10-mode .next10-mode-chip { justify-content: center; white-space: normal; text-align: center; }
  .next10-mode .next10-contract-elements > span { grid-template-columns: 68px minmax(0, 1fr); }
  .next10-mode .next10-contract-elements em { grid-column: 2; }
  .next10-mixed-result header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .next10-mode .next10-options-controls { grid-template-columns: 1fr; }
}

.next9-mode .next9-related {
  margin-top: 14px;
  padding: 0;
}

.next9-mode .next9-related header {
  margin-bottom: 10px;
}

.next9-mode .next9-related h4,
.next9-mode .next9-related p {
  margin: 0;
}

.next9-mode .next9-related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #d8e3ed;
}

.next9-mode .next9-related-list button {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 8px 14px;
  min-height: 50px;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid #d8e3ed;
  border-radius: 0;
  background: transparent;
  color: #17314d;
  text-align: left;
  cursor: pointer;
}

.next9-mode .next9-related-list button:hover,
.next9-mode .next9-related-list button:focus-visible {
  background: #f3f8fd;
  box-shadow: none;
  outline: none;
}

.next9-mode .next9-related-list small {
  color: #61738a;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.next9-mode .next9-related-list .next9-related-benefit {
  margin-top: 4px;
  grid-column: 1 / -1;
  color: #176242;
  font-weight: 750;
}

.next9-mode .next9-related-list em {
  color: #9a5900;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.next9-mode .next9-related-list button.caution {
  box-shadow: inset 3px 0 #d49a35;
}

.next9-mode .next9-inherited-benefit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid #9dd4b8;
  border-left: 4px solid #2a9966;
  border-radius: 9px;
  background: #effaf4;
  color: #174e38;
}

.next9-mode .next9-inherited-benefit > span {
  display: grid;
  gap: 3px;
}

.next9-mode .next9-inherited-benefit small {
  color: #416b59;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .next9-mode .next9-action-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .next9-mode .next9-action-summary em {
    grid-column: 2;
    white-space: normal;
  }
  .next9-mode .next9-related-list button { grid-template-columns: 1fr; gap: 4px; padding: 10px 2px; }
  .next9-mode .next9-related-list em { justify-self: start; }
  .next9-mode .next9-picker-launcher,
  .next9-mode .next9-inherited-benefit {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .next9-mode .next9-action-summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .next9-mode .next9-action-summary em {
    grid-column: 1;
    justify-self: start;
  }
}

@container action-card (max-width: 860px) {
  .next9-related-list button {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 9px;
  }

  .next9-related-list em {
    justify-self: start;
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  .next9-mode .next9-related-list button {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 9px;
  }

  .next9-mode .next9-related-list em {
    justify-self: start;
    white-space: normal;
  }
}
