/* Static, server-rendered China search landing content. The interactive App will
   mount inside #tm-search-app when its API is ready. */
.tm-search-hero {
  padding: 34px 0 70px;
  border-bottom: 1px solid var(--tm-border);
  background: radial-gradient(900px 410px at 82% -12%, var(--tm-primary-tint), transparent 72%), rgb(var(--v-theme-surface));
}

.tm-search-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--tm-gray);
  font-size: 13px;
}

.tm-search-breadcrumb a { color: var(--tm-ink); text-decoration: none; }

.tm-search-hero__alternate a,
.tm-search-explainer__link {
  color: var(--tm-ink);
  text-decoration: underline;
  text-decoration-color: var(--tm-primary);
  text-underline-offset: 4px;
}

.tm-search-breadcrumb a:hover,
.tm-search-hero__alternate a:hover,
.tm-search-explainer__link:hover { color: var(--tm-primary); }

.tm-search-hero__alternate {
  max-width: none;
  margin: 18px auto 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.tm-search-hero__copy {
  max-width: 850px;
  margin: 48px auto 34px;
  text-align: center;
}

.tm-search-hero h1 {
  max-width: none;
  margin: 0;
  text-wrap: pretty;
}

.tm-search-hero__sub {
  max-width: 65ch;
  margin: 18px auto 0;
  color: var(--tm-gray);
  font-size: 19px;
  line-height: 1.65;
  text-wrap: pretty;
}

.tm-search-tool {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  background: rgb(var(--v-theme-surface));
  box-shadow: var(--tm-shadow);
}

.tm-search-noscript {
  max-width: 1060px;
  margin: 16px auto 0;
  color: var(--tm-gray);
  text-align: center;
}

.tm-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  align-items: end;
  gap: 14px;
}

.tm-search-field { min-width: 0; }

.tm-search-field span {
  display: block;
  margin-bottom: 8px;
  color: var(--tm-ink);
  font-size: 14px;
  font-weight: 700;
}

.tm-search-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--tm-border);
  border-radius: 8px;
  background: rgb(var(--v-theme-surface));
  color: var(--tm-ink);
  font: inherit;
  box-sizing: border-box;
}

.tm-search-field input::placeholder { color: var(--tm-gray); opacity: .8; }
.tm-search-field input:disabled { opacity: 1; -webkit-text-fill-color: var(--tm-ink); }

.tm-search-field__error {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  color: #a83225;
  font-size: 12px;
  font-weight: 500;
}

.tm-search-field input[aria-invalid="true"] { border-color: #a83225; }

.tm-search-tool__button {
  min-height: 48px;
  margin-bottom: 23px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.tm-search-tool__button:disabled { opacity: .75; cursor: default; }

.tm-search-tool__button.is-loading::after {
  display: inline-block;
  width: 1.5em;
  margin-left: 2px;
  text-align: left;
  content: ".";
  animation: tm-search-loading-dots 1.05s steps(1, end) infinite;
}

@keyframes tm-search-loading-dots {
  0%, 100% { content: "."; }
  33% { content: ".."; }
  66% { content: "..."; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-search-tool__button.is-loading::after { content: "..."; animation: none; }
}

.tm-search-status {
  color: var(--tm-gray);
  font-size: 15px;
  line-height: 1.5;
}

.tm-search-status:empty { display: none; }

.tm-search-status.is-loading,
.tm-search-status.is-error {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--tm-primary-tint);
}

.tm-search-status.is-error { color: #7f2b20; }

/* Keep the full landing page in the server-rendered document for discovery, then
   reduce the live view to the search workspace once a query has started. */
.tm-search-page.is-search-results .tm-search-hero__copy,
.tm-search-page.is-search-results .tm-search-hero__alternate,
.tm-search-page.is-search-results #what-you-see,
.tm-search-page.is-search-results #how,
.tm-search-page.is-search-results #faq {
  display: none;
}

.tm-search-page.is-search-results .tm-search-hero {
  padding: 28px 0 42px;
  background: rgb(var(--v-theme-surface));
}

.tm-search-page.is-search-results .tm-search-breadcrumb { margin-bottom: 24px; }

.tm-search-page.is-search-results .tm-search-tool {
  max-width: 1180px;
  box-shadow: none;
}

.tm-search-page.is-search-results .tm-search-form {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--tm-border);
}

.tm-search-results { margin-top: 28px; }

.tm-search-results__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.tm-search-results__header h2 {
  margin: 6px 0 4px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.tm-search-results__header p,
.tm-search-result-heading p,
.tm-search-records__heading p,
.tm-search-overview p {
  margin: 5px 0 0;
  color: var(--tm-gray);
  font-size: 14px;
}

.tm-search-results__label,
.tm-search-class-card__role {
  color: var(--tm-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tm-search-result-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  background: rgb(var(--v-theme-surface));
}

.tm-search-result-panel h3,
.tm-search-risk-bridge h3 { margin: 0; font-size: 20px; line-height: 1.3; }

.tm-search-result-heading,
.tm-search-records__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tm-search-coverage {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tm-primary-tint);
  color: var(--tm-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tm-search-coverage--partial { background: #fff5d9; color: #805b00; }
.tm-search-coverage--unavailable { background: #f3f4f6; color: var(--tm-gray); }

.tm-search-query-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
}

.tm-search-query-terms > span { color: var(--tm-gray); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.tm-search-query-terms strong { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 7px; background: var(--tm-primary-tint); font-size: 13px; }
.tm-search-query-terms small { color: var(--tm-gray); font-size: 10px; font-weight: 500; }

.tm-search-fallback-card { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 18px; border-radius: 10px; background: rgb(var(--v-theme-background)); }
.tm-search-fallback-card__icon { color: var(--tm-primary); font-size: 28px; }
.tm-search-fallback-card strong { display: block; }
.tm-search-fallback-card p { margin: 5px 0 0; color: var(--tm-gray); }

.tm-search-scope__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tm-search-class-card-shell,
.tm-search-scope__grid > .tm-search-class-card--add {
  flex: 1 0 240px;
  min-width: 0;
}

.tm-search-class-card-shell { position: relative; }
.tm-search-class-card-shell .tm-search-class-card { width: 100%; height: 100%; }

.tm-search-class-card {
  min-width: 0;
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--tm-border);
  border-radius: 9px;
  background: rgb(var(--v-theme-surface));
  color: var(--tm-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tm-search-class-card:hover,
.tm-search-class-card:focus-visible,
.tm-search-class-card.is-selected { border-color: var(--tm-primary); }

.tm-search-class-card.is-selected { box-shadow: inset 3px 0 0 var(--tm-primary); }
.tm-search-class-card.is-unavailable { background: rgb(var(--v-theme-background)); }
.tm-search-class-card.is-unavailable small { color: #805b00; font-weight: 700; }

.tm-search-class-card strong,
.tm-search-class-card small { display: block; }
.tm-search-class-card strong { margin-top: 9px; font-size: 16px; }
.tm-search-class-card small { margin-top: 7px; color: var(--tm-gray); }
.tm-search-class-card__mark { display: block; margin-top: 10px; overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.tm-search-class-card__groups { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tm-search-class-card__groups i { padding: 3px 6px; border-radius: 5px; background: rgb(var(--v-theme-background)); color: var(--tm-gray); font-size: 10px; font-style: normal; }
.tm-search-class-card__remove { position: absolute; z-index: 2; top: 10px; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgb(var(--v-theme-background)); color: var(--tm-gray); font: inherit; cursor: pointer; }
.tm-search-class-card__remove:hover,
.tm-search-class-card__remove:focus-visible { background: var(--tm-primary-tint); color: var(--tm-primary); }

.tm-search-class-card--add {
  position: sticky;
  z-index: 3;
  right: 0;
  display: flex;
  flex: 0 0 110px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  background: rgb(var(--v-theme-surface));
  box-shadow: -14px 0 18px rgba(255, 255, 255, .92);
  color: var(--tm-gray);
  text-align: center;
}

.tm-search-scope__grid > .tm-search-class-card--add { flex: 0 0 110px; }

.tm-search-class-card--add:disabled { cursor: default; opacity: .55; }
.tm-search-class-card__plus { color: var(--tm-primary); font-size: 30px; line-height: 1; }

.tm-search-sort select {
  min-height: 44px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--tm-border);
  border-radius: 8px;
  background: rgb(var(--v-theme-surface));
  color: var(--tm-ink);
  font: inherit;
}

.tm-search-inline-error { flex-basis: 100%; margin: 0; color: #a83225; }

.tm-search-overview__head { display: flex; align-items: center; justify-content: space-between; }
.tm-search-overview__legend { display: flex; justify-content: flex-end; gap: 22px; margin-top: -25px; }
.tm-search-overview__level { position: relative; min-width: 48px; padding-left: 12px; }
.tm-search-overview__level::before { position: absolute; inset: 2px auto 0 0; width: 7px; border-radius: 999px; background: #dfe1e5; content: ""; }
.tm-search-overview__level--exact::before { background: var(--tm-primary); }
.tm-search-overview__level--high::before { background: #ff9877; }
.tm-search-overview__level--medium::before { background: #ffc6b3; }
.tm-search-overview__level strong,
.tm-search-overview__level span { display: block; }
.tm-search-overview__level strong { font-size: 22px; line-height: 1; }
.tm-search-overview__level span { margin-top: 6px; color: var(--tm-gray); font-size: 11px; }

.tm-search-overview__table { margin-top: 24px; border-top: 1px solid var(--tm-border); }
.tm-search-overview-row { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); align-items: center; gap: 28px; width: 100%; padding: 18px 0; border: 0; border-bottom: 1px solid var(--tm-border); background: transparent; color: var(--tm-ink); font: inherit; text-align: left; }
.tm-search-overview-row.is-action { cursor: pointer; }
.tm-search-overview-row.is-action:hover,
.tm-search-overview-row.is-action:focus-visible { background: linear-gradient(90deg, transparent, var(--tm-primary-tint), transparent); }
.tm-search-overview-row__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tm-search-overview-row__title em { padding: 3px 7px; border-radius: 999px; background: #fff5d9; color: #805b00; font-size: 10px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.tm-search-overview-row__role,
.tm-search-filter__role { padding: 3px 7px; border-radius: 999px; background: var(--tm-role-bg, #f3f4f6); color: var(--tm-role-color, var(--tm-gray)); font-size: 10px; text-transform: uppercase; }
.tm-search-role--core { --tm-role-bg: var(--tm-primary-tint); --tm-role-color: var(--tm-primary); }
.tm-search-role--protection { --tm-role-bg: #fff5d9; --tm-role-color: #805b00; }
.tm-search-role--defensive { --tm-role-bg: #fce8e6; --tm-role-color: #9b2c24; }
.tm-search-role--manual { --tm-role-bg: #f7efe7; --tm-role-color: #7a4a2f; }
.tm-search-class-card__role { color: var(--tm-role-color, var(--tm-primary)); }
.tm-search-overview-row__insight { display: block; margin-top: 7px; color: var(--tm-gray); font-size: 13px; line-height: 1.45; }
.tm-search-distribution { display: flex; width: 100%; height: 8px; overflow: hidden; border-radius: 999px; background: #eef0f3; }
.tm-search-distribution span { min-width: 0; }
.tm-search-distribution__exact { background: var(--tm-primary); }
.tm-search-distribution__high { background: #ff9877; }
.tm-search-distribution__medium { background: #ffc6b3; }
.tm-search-distribution__low { background: #dfe1e5; }
.tm-search-distribution__counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; color: var(--tm-gray); font-size: 11px; }

.tm-search-sort { display: flex; align-items: center; gap: 9px; color: var(--tm-gray); font-size: 13px; }
.tm-search-sort select { min-height: 40px; }

.tm-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tm-border);
}

.tm-search-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--tm-border);
  border-radius: 999px;
  background: rgb(var(--v-theme-surface));
  color: var(--tm-ink);
  font: inherit;
  cursor: pointer;
}

.tm-search-filter.is-selected { border-color: var(--tm-primary); color: var(--tm-primary); }
.tm-search-filter strong { font-size: 14px; }

.tm-search-record { display: grid; grid-template-columns: 82px minmax(0, 1fr) 150px; gap: 20px; padding: 22px 10px; border-bottom: 1px solid var(--tm-border); border-radius: 8px; cursor: pointer; }
.tm-search-record:hover,
.tm-search-record:focus-visible { background: rgb(var(--v-theme-background)); outline: none; }
.tm-search-record:last-child { border-bottom: 0; }
.tm-search-record__visual { display: flex; align-items: center; justify-content: center; width: 82px; height: 74px; overflow: hidden; border-radius: 9px; background: var(--tm-primary-tint); font-size: 12px; font-weight: 800; text-align: center; }
.tm-search-record__visual img { width: 100%; height: 100%; object-fit: contain; }
.tm-search-record__main h4 { margin: 0; font-size: 18px; }
.tm-search-record__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; color: var(--tm-gray); font-size: 13px; }
.tm-search-status-chip { padding: 4px 8px; border-radius: 999px; background: #eef0f3; color: var(--tm-gray); font-size: 11px; font-weight: 700; }
.tm-search-status-chip--registered { background: #e9f5e6; color: #35752f; }
.tm-search-status-chip--pending { background: #fff5d9; color: #805b00; }
.tm-search-status-chip--inactive { background: #fce8e6; color: #9b2c24; }
.tm-search-record__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; }
.tm-search-record__facts div { min-width: 0; }
.tm-search-record__facts dt { color: var(--tm-gray); font-size: 11px; }
.tm-search-record__facts dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
.tm-search-class-tag { display: inline-flex; padding: 2px 6px; border-radius: 5px; background: var(--tm-primary-tint); color: var(--tm-primary); }
.tm-search-group-code.is-target { color: #c43f2f; }
.tm-search-record__score { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.tm-search-record__score strong { margin-top: 8px; font-size: 30px; line-height: 1; }
.tm-search-similarity { display: inline; padding: 0; font-size: 11px; font-weight: 700; }
.tm-search-similarity--exact { color: #b3261e; }
.tm-search-similarity--high { color: #a04400; }
.tm-search-similarity--medium { color: #8a4b00; }
.tm-search-similarity--low { color: #315a8e; }
.tm-search-record__details { margin-top: auto; padding: 0; border: 0; border-bottom: 1px solid var(--tm-primary); background: transparent; color: var(--tm-ink); font: inherit; font-size: 13px; cursor: pointer; }
.tm-search-empty { margin: 0; padding: 36px 0 18px; color: var(--tm-gray); text-align: center; }

.tm-search-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 22px; color: var(--tm-gray); font-size: 13px; }
.tm-search-page-button { min-width: 88px; height: 38px; padding: 0 14px; border: 1px solid var(--tm-border); border-radius: 999px; background: rgb(var(--v-theme-surface)); color: var(--tm-ink); cursor: pointer; }
.tm-search-page-button:disabled { cursor: default; opacity: .45; }

.tm-search-risk-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  margin-top: 18px;
  padding: 28px;
  border-radius: var(--tm-radius);
  background: var(--tm-primary-tint);
}

.tm-search-risk-bridge p { max-width: 70ch; margin: 10px 0 0; color: var(--tm-gray); line-height: 1.6; }
.tm-search-risk-bridge .tm-btn { display: inline-flex; white-space: nowrap; }
.tm-search-disclaimer { max-width: 85ch; margin: 18px auto 0; color: var(--tm-gray); font-size: 12px; line-height: 1.6; text-align: center; }

.tm-search-dialog-backdrop { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(26, 28, 31, .55); }
.tm-search-dialog { width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 26px; border-radius: var(--tm-radius); background: rgb(var(--v-theme-surface)); box-shadow: var(--tm-shadow); }
.tm-search-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tm-search-dialog__head h3 { margin: 0; font-size: 24px; }
.tm-search-dialog__head p { margin: 6px 0 0; color: var(--tm-gray); font-size: 13px; }
.tm-search-dialog__close { border: 0; border-bottom: 1px solid var(--tm-primary); background: transparent; color: var(--tm-ink); font: inherit; cursor: pointer; }
.tm-search-dialog__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px 0 0; }
.tm-search-dialog__facts div { padding-top: 12px; border-top: 1px solid var(--tm-border); }
.tm-search-dialog__facts dt { color: var(--tm-gray); font-size: 12px; }
.tm-search-dialog__facts dd { margin: 6px 0 0; overflow-wrap: anywhere; font-weight: 650; }
.tm-search-class-dialog { width: min(920px, 100%); }
.tm-search-class-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 24px; }
.tm-search-class-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 12px; border: 1px solid var(--tm-border); border-radius: 8px; background: rgb(var(--v-theme-surface)); color: var(--tm-ink); font: inherit; text-align: left; cursor: pointer; }
.tm-search-class-option:hover,
.tm-search-class-option:focus-visible { border-color: var(--tm-primary); }
.tm-search-class-option:disabled { cursor: default; opacity: .5; }
.tm-search-class-option > span { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tm-search-class-option b { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: rgb(var(--v-theme-background)); color: var(--tm-primary); }
.tm-search-class-option > span > span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tm-search-class-option small { color: var(--tm-gray); font-size: 10px; white-space: nowrap; }
.tm-search-class-option.is-suggested { background: var(--tm-primary-tint); }

.tm-search-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tm-search-features .tm-card { height: 100%; }
.tm-search-features .tm-card h3 { font-size: 19px; }

.tm-search-feature-number {
  display: block;
  margin-bottom: 17px;
  color: var(--tm-primary);
  font-size: 15px;
  font-weight: 800;
}

.tm-search-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.tm-search-explainer__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 30px;
}

.tm-search-explainer__art {
  min-height: 380px;
  border-radius: var(--tm-radius);
  background-color: var(--tm-primary-tint);
  background-image: url(../../images/tm/hero-street-cn.webp);
  background-position: center;
  background-size: cover;
}

.tm-search-explainer__actions .tm-btn { display: inline-flex; }

@media (max-width: 959.98px) {
  .tm-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-search-tool__button { grid-column: 1 / -1; width: 100%; }
  .tm-search-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-search-explainer { gap: 28px; }
  .tm-search-overview-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tm-search-class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-search-record { grid-template-columns: 70px minmax(0, 1fr) 130px; }
  .tm-search-record__visual { width: 70px; height: 64px; }
  .tm-search-record__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-search-risk-bridge { grid-template-columns: minmax(0, 1fr); }
  .tm-search-risk-bridge .tm-btn { justify-self: start; }
}

@media (max-width: 599.98px) {
  .tm-search-hero { padding: 20px 0 52px; }
  .tm-search-hero__copy { margin: 36px auto 28px; }
  .tm-search-hero__sub { font-size: 17px; }
  .tm-search-tool { padding: 20px; }
  .tm-search-form { grid-template-columns: minmax(0, 1fr); }
  .tm-search-tool__button { grid-column: auto; }
  .tm-search-features { grid-template-columns: minmax(0, 1fr); }
  .tm-search-explainer { grid-template-columns: minmax(0, 1fr); }
  .tm-search-explainer__art { min-height: 240px; }
  .tm-search-page.is-search-results .tm-search-hero { padding: 16px 0 28px; }
  .tm-search-page.is-search-results .tm-search-tool { padding: 0; border: 0; }
  .tm-search-result-panel { padding: 18px; }
  .tm-search-result-heading,
  .tm-search-records__heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .tm-search-class-card-shell,
  .tm-search-scope__grid > .tm-search-class-card--add { flex-basis: min(78vw, 280px); }
  .tm-search-scope__grid > .tm-search-class-card--add { flex-basis: 110px; }
  .tm-search-hero__alternate { font-size: 13px; white-space: normal; }
  .tm-search-overview__legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .tm-search-overview__level { min-width: 0; }
  .tm-search-overview-row { padding: 16px 0; }
  .tm-search-distribution__counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-search-record { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
  .tm-search-record__visual { width: 58px; height: 58px; }
  .tm-search-record__score { grid-column: 1 / -1; align-items: flex-start; flex-direction: row; gap: 12px; text-align: left; }
  .tm-search-record__score strong { margin-top: 0; font-size: 24px; }
  .tm-search-record__details { margin: 3px 0 0 auto; }
  .tm-search-record__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .tm-search-risk-bridge { padding: 22px; }
  .tm-search-risk-bridge .tm-btn { width: 100%; text-align: center; white-space: normal; }
  .tm-search-dialog__facts { grid-template-columns: minmax(0, 1fr); }
  .tm-search-class-grid { grid-template-columns: minmax(0, 1fr); }
}
