.quality-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.api-band > * {
  min-width: 0;
}

.code-panel {
  max-width: 100%;
}

.summary-legal a {
  color: var(--green-dark);
  font-weight: 750;
  text-underline-offset: 2px;
}

.quality-band {
  grid-template-columns: minmax(350px, .78fr) minmax(620px, 1.22fr);
  gap: 48px;
  align-items: center;
}

.dataset-passport {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c8d2cc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(16, 19, 19, .1);
}

.passport-head,
.passport-title,
.passport-status,
.passport-health-head,
.passport-foot > div {
  display: flex;
  align-items: center;
}

.passport-head {
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.passport-title {
  min-width: 0;
  gap: 12px;
}

.passport-title > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.passport-title small,
.passport-meta span,
.passport-health-head span,
.passport-metrics span,
.passport-metrics small,
.passport-table small,
.passport-foot small {
  color: var(--muted);
  font-size: 10px;
}

.passport-title strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.passport-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--mint);
  color: var(--green-dark);
}

.passport-icon svg,
.passport-status svg,
.passport-foot svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

.passport-status {
  flex: 0 0 auto;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #a9d7c5;
  border-radius: 999px;
  background: #eefaf5;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 780;
}

.passport-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f9fbf9;
}

.passport-meta > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.passport-meta > div:last-child {
  border-right: 0;
}

.passport-meta strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.passport-health {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.passport-health-head {
  justify-content: space-between;
  gap: 18px;
}

.passport-health-head > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.passport-health-head strong {
  font-size: 19px;
}

.passport-health-head > small {
  color: #8a6811;
  font-size: 10px;
  text-align: right;
}

.passport-health-bar {
  height: 7px;
  margin: 11px 0 18px;
  overflow: hidden;
  background: #e6ebe8;
}

.passport-health-bar span {
  display: block;
  width: 84%;
  height: 100%;
  background: var(--green);
}

.passport-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.passport-metrics > div {
  display: grid;
  gap: 2px;
  padding-left: 10px;
  border-left: 2px solid #d7dfda;
}

.passport-metrics > div:first-child {
  border-left-color: var(--green);
}

.passport-metrics strong {
  font-size: 17px;
}

.passport-metrics small {
  line-height: 1.25;
}

.passport-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.passport-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 10px;
}

.passport-table th,
.passport-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.passport-table th {
  background: #f7f9f7;
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
  text-transform: uppercase;
}

.passport-table td:first-child {
  display: grid;
  gap: 2px;
}

.field-ok,
.field-warn,
.row-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 2px 4px 2px 0;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 720;
}

.field-ok {
  background: var(--mint);
  color: var(--green-dark);
}

.field-warn {
  background: var(--yellow-soft);
  color: #745600;
}

.row-status.is-ready {
  background: #eef8f3;
  color: var(--green-dark);
}

.row-status.is-review {
  background: var(--yellow-soft);
  color: #745600;
}

.passport-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  background: #f9fbf9;
}

.passport-foot > div {
  min-width: 0;
  gap: 10px;
}

.passport-foot > div > span {
  display: grid;
  gap: 2px;
}

.passport-foot svg {
  flex: 0 0 auto;
  color: var(--green-dark);
}

.passport-foot b {
  font-size: 10px;
}

.passport-foot a {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 720;
}

.help-band {
  display: grid;
  grid-template-columns: minmax(300px, .65fr) minmax(520px, 1.35fr);
  gap: 70px;
  padding: 94px max(20px, calc((100% - var(--container)) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
}

.help-intro h2 {
  max-width: 520px;
  margin: 0;
  font-size: 52px;
  line-height: 1.02;
}

.help-intro > p:not(.kicker) {
  max-width: 480px;
  margin: 18px 0 24px;
  color: var(--ink-2);
  font-size: 15px;
}

.help-faq {
  border-top: 1px solid var(--line);
}

.help-faq details {
  border-bottom: 1px solid var(--line);
}

.help-faq summary {
  padding: 20px 34px 20px 2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  list-style: none;
}

.help-faq summary::-webkit-details-marker {
  display: none;
}

.help-faq summary::after {
  content: "+";
  float: right;
  margin-right: -30px;
  color: var(--green-dark);
  font-size: 20px;
  line-height: .8;
}

.help-faq details[open] summary::after {
  content: "−";
}

.help-faq p {
  max-width: 760px;
  margin: -4px 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.privacy-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 40px), 1080px);
  margin-inline: auto;
  padding: 16px 18px;
  border: 1px solid #35413b;
  border-radius: 8px;
  background: #111715;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.cookie-notice__copy {
  display: grid;
  max-width: 650px;
  gap: 3px;
}

.cookie-notice__copy strong {
  font-size: 13px;
}

.cookie-notice__copy p {
  margin: 0;
  color: #bdc9c3;
  font-size: 11px;
}

.cookie-notice__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-notice__actions a,
.privacy-settings-link {
  color: #b7c5be;
  font-size: 10px;
  text-underline-offset: 2px;
}

.privacy-notice .button {
  min-height: 36px;
  padding-inline: 12px;
  white-space: nowrap;
}

.privacy-secondary {
  border-color: #46534d;
  background: transparent;
  color: #fff;
}

.privacy-settings-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
}

.baza-assistant {
  --assistant-bottom: 22px;
  position: fixed;
  right: 22px;
  bottom: var(--assistant-bottom);
  z-index: 1600;
  display: grid;
  justify-items: end;
  gap: 10px;
  font-family: Onest, "Segoe UI", sans-serif;
}

.baza-assistant__launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid #087051;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 30px rgba(11, 143, 104, .28);
}

.baza-assistant__launcher::before {
  content: "";
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.baza-assistant__launcher::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 13px;
  width: 6px;
  height: 6px;
  border-bottom: 2px solid currentColor;
  transform: rotate(-35deg);
}

.baza-assistant__nudge {
  display: flex;
  align-items: start;
  gap: 12px;
  width: 300px;
  padding: 13px 14px;
  border: 1px solid #cbd5cf;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.baza-assistant__nudge > div {
  display: grid;
  gap: 3px;
}

.baza-assistant__nudge strong {
  font-size: 12px;
}

.baza-assistant__nudge span {
  color: var(--muted);
  font-size: 10px;
}

.baza-assistant__nudge button,
.baza-assistant__icon-button,
.baza-assistant__handoff-head button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.baza-assistant__panel {
  width: min(390px, calc(100vw - 28px));
  max-height: min(650px, calc(100vh - var(--assistant-bottom) - 72px));
  overflow: hidden;
  border: 1px solid #c8d2cc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(16, 19, 19, .22);
}

.baza-assistant__header {
  display: grid;
  grid-template-columns: 38px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #f7faf8;
}

.baza-assistant__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 850;
}

.baza-assistant__header > div {
  display: grid;
  gap: 2px;
}

.baza-assistant__header strong {
  font-size: 13px;
}

.baza-assistant__header span {
  color: var(--muted);
  font-size: 10px;
}

.baza-assistant__header span i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
}

.baza-assistant__messages {
  display: grid;
  align-content: start;
  gap: 9px;
  height: 286px;
  overflow-y: auto;
  padding: 14px;
  background: #fbfcfb;
}

.baza-assistant__message {
  width: fit-content;
  max-width: 88%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.baza-assistant__message--user {
  justify-self: end;
  border-color: #a7d8c6;
  background: var(--mint);
}

.baza-assistant__message--typing {
  color: var(--muted);
}

.baza-assistant__suggestions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 14px 11px;
  background: #fbfcfb;
}

.baza-assistant__suggestions button {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid #bad0c6;
  border-radius: 5px;
  background: #fff;
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 690;
}

.baza-assistant__composer {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 7px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}

.baza-assistant__composer textarea {
  width: 100%;
  max-height: 100px;
  resize: none;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  font: inherit;
  font-size: 11px;
}

.baza-assistant__composer textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 143, 104, .1);
}

.baza-assistant__composer button,
.baza-assistant__submit {
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-weight: 760;
}

.baza-assistant__composer button:disabled,
.baza-assistant__submit:disabled {
  opacity: .55;
  cursor: wait;
}

.baza-assistant__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 11px;
  color: var(--muted);
  font-size: 8px;
}

.baza-assistant__footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 720;
}

.baza-assistant__handoff-callout {
  margin: 0 14px 11px;
  padding: 10px;
  border: 1px solid #bad0c6;
  border-radius: 6px;
  background: #eef8f3;
  font-size: 10px;
}

.baza-assistant__handoff-callout p {
  margin: 0 0 7px;
}

.baza-assistant__handoff-callout > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.baza-assistant__handoff-callout button,
.baza-assistant__handoff-callout a,
.baza-assistant__email-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.baza-assistant__handoff {
  display: grid;
  gap: 9px;
  max-height: 350px;
  overflow-y: auto;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.baza-assistant__handoff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.baza-assistant__handoff-head strong {
  font-size: 12px;
}

.baza-assistant__handoff > label {
  display: grid;
  gap: 4px;
  font-size: 9px;
  font-weight: 720;
}

.baza-assistant__handoff input[type="text"] {
  width: 100%;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
}

.baza-assistant__consent {
  display: grid !important;
  grid-template-columns: 16px 1fr;
  align-items: start;
  font-weight: 500 !important;
  line-height: 1.4;
}

.baza-assistant__consent input {
  margin: 2px 0 0;
  accent-color: var(--green);
}

.baza-assistant__consent a {
  color: var(--green-dark);
}

.baza-assistant__submit {
  min-height: 38px;
}

.baza-assistant__email-link {
  display: inline-block;
  width: fit-content;
}

.baza-assistant__form-status {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.assistant-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .quality-band {
    grid-template-columns: 1fr;
  }

  .help-band {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .quality-tabs {
    grid-template-columns: 1fr;
  }

  .quality-tab {
    min-height: 46px;
  }

  .api-copy,
  .code-panel {
    width: 100%;
    min-width: 0;
  }

  .code-panel pre {
    max-width: 100%;
  }

  .passport-head,
  .passport-foot,
  .passport-health-head {
    align-items: flex-start;
  }

  .passport-meta,
  .passport-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .passport-meta > div:nth-child(2) {
    border-right: 0;
  }

  .passport-meta > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .passport-foot {
    flex-direction: column;
  }

  .help-band {
    padding: 68px 14px;
  }

  .help-intro h2 {
    font-size: 40px;
  }

  .privacy-notice {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    width: auto;
    gap: 12px;
    padding: 14px;
  }

  .cookie-notice__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-notice__actions a {
    grid-column: 1 / -1;
  }

  .baza-assistant {
    right: 12px;
  }

  .baza-assistant__panel {
    width: calc(100vw - 24px);
    max-height: min(620px, calc(100vh - var(--assistant-bottom) - 66px));
  }

  .baza-assistant__messages {
    height: 250px;
  }
}

@media (max-width: 430px) {
  .passport-status {
    padding: 6px;
  }

  .passport-status svg {
    display: none;
  }

  .passport-health-head {
    display: grid;
  }

  .passport-health-head > small {
    text-align: left;
  }
}
