.language-host,
.language-review-intro,
.language-admin-boundary,
.language-help-callout,
.language-evidence-footer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.language-host {
  margin: -4px 0 20px;
  padding: 14px 16px;
  border: 1px solid #bedbd7;
  border-left: 4px solid #11828b;
  border-radius: 7px;
  background: #f0faf8;
  color: #17253a;
}

.language-host strong,
.language-review-intro strong,
.language-help-callout strong,
.language-admin-boundary strong,
.language-evidence-footer strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.35;
}

.language-host p,
.language-review-intro p,
.language-help-callout p,
.language-admin-boundary p,
.language-evidence-footer p {
  margin: 4px 0 0;
  color: #54667c;
  font-size: 0.84rem;
  line-height: 1.5;
}

.language-fieldset {
  min-width: 0;
  margin: 0;
  padding: 15px 0;
  border: 0;
  border-top: 1px solid #dbe3ea;
}

.language-fieldset legend {
  margin-bottom: 11px;
  color: #17253a;
  font-size: 0.83rem;
  font-weight: 800;
}

.language-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.language-choice-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.language-choice {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.language-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.language-choice > span {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid #cad5df;
  border-radius: 7px;
  background: #fff;
  color: #21445c;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.language-choice > span .icon {
  grid-row: 1 / span 2;
  color: #11828b;
}

.language-choice strong {
  overflow-wrap: anywhere;
  font-size: 0.87rem;
  line-height: 1.3;
}

.language-choice small {
  margin-top: 3px;
  color: #62748a;
  font-size: 0.73rem;
  line-height: 1.35;
}

.language-choice:hover > span {
  border-color: #7fb7b8;
  transform: translateY(-1px);
}

.language-choice > input:checked + span {
  border-color: #11828b;
  background: #eaf8f6;
  box-shadow: inset 0 0 0 1px #11828b;
}

.language-choice > input:focus-visible + span {
  outline: 3px solid #f5c947;
  outline-offset: 2px;
}

.language-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #d4dce5;
  border-radius: 7px;
  background: #f7f9fb;
  color: #33475e;
  font-size: 0.78rem;
  line-height: 1.45;
}

.language-confirm input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: #11828b;
}

.language-help-callout {
  align-items: center;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid #ecd175;
  border-radius: 7px;
  background: #fff9df;
}

.language-help-callout > .icon {
  flex: 0 0 auto;
  color: #ad7200;
}

.language-help-callout > div {
  min-width: 0;
  flex: 1;
}

.language-help-callout .button {
  flex: 0 0 auto;
}

.language-release-boundary {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #d4dce5;
  border-radius: 7px;
  background: #f7f9fb;
  color: #4d6076;
  font-size: 0.76rem;
  line-height: 1.45;
}

.language-release-boundary .icon {
  flex: 0 0 auto;
  color: #11828b;
}

.language-surface-proof {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #dbe3ea;
  border-radius: 7px;
  background: #fff;
}

.language-surface-proof > span {
  min-width: 0;
}

.language-surface-proof strong,
.language-surface-proof small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-surface-proof strong {
  font-size: 0.78rem;
}

.language-surface-proof small {
  margin-top: 2px;
  color: #66768a;
  font-size: 0.7rem;
}

.language-mode-notice {
  position: relative;
  z-index: 15;
  border-bottom: 1px solid #d4dce5;
  background: #fff9df;
}

.language-mode-notice__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #354960;
  font-size: 0.78rem;
}

.language-mode-notice__inner > .icon {
  flex: 0 0 auto;
  color: #a36900;
}

.language-mode-notice__inner > span {
  min-width: 0;
  flex: 1;
}

.language-mode-notice__inner button {
  flex: 0 0 auto;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #0d6670;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-mode-notice__inner button:hover,
.language-mode-notice__inner button:focus-visible {
  text-decoration: underline;
}

.language-admin-boundary {
  margin: 2px 0 18px;
  padding: 14px 16px;
  border: 1px solid #b9d8d5;
  border-left: 4px solid #11828b;
  border-radius: 7px;
  background: #eff9f7;
}

.language-admin-boundary > .icon,
.language-evidence-footer > .icon {
  flex: 0 0 auto;
  color: #11828b;
}

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

.language-metrics > div {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #d8e0e8;
  border-top: 4px solid #2783db;
  border-radius: 7px;
  background: #fff;
}

.language-metrics > div:nth-child(2) { border-top-color: #e97658; }
.language-metrics > div:nth-child(3) { border-top-color: #11828b; }
.language-metrics > div:nth-child(4) { border-top-color: #f0b31d; }

.language-metrics small,
.language-metrics span {
  display: block;
  overflow-wrap: anywhere;
  color: #66778b;
  font-size: 0.72rem;
}

.language-metrics strong {
  display: block;
  margin: 6px 0 3px;
  color: #17253a;
  font-size: 1.7rem;
  line-height: 1;
}

.language-admin-section {
  margin-top: 28px;
  padding-top: 25px;
  border-top: 1px solid #d8e0e8;
}

.language-request-list,
.language-review-list {
  display: grid;
  gap: 9px;
}

.language-request-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border: 1px solid #d8e0e8;
  border-radius: 7px;
  background: #fff;
}

.language-request-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f7f5;
  color: #11828b;
}

.language-request-list article > div:nth-child(2) {
  min-width: 0;
}

.language-request-list article small,
.language-request-list article strong,
.language-request-list article p,
.language-request-list article span {
  overflow-wrap: anywhere;
}

.language-request-list article small,
.language-request-list article > div:nth-child(2) > span {
  display: block;
  color: #6a798c;
  font-size: 0.71rem;
}

.language-request-list article strong {
  display: block;
  margin: 2px 0;
  color: #17253a;
  font-size: 0.9rem;
}

.language-request-list article p {
  margin: 3px 0;
  color: #465b72;
  font-size: 0.8rem;
  line-height: 1.4;
}

.language-request-list article > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-coverage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.language-coverage__item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #d8e0e8;
  border-left: 4px solid #98a7b7;
  border-radius: 7px;
  background: #fff;
}

.language-coverage__item--good { border-left-color: #11828b; }
.language-coverage__item--attention { border-left-color: #e8a60b; }

.language-coverage__item > span:first-child { color: #526b80; }
.language-coverage__item--good > span:first-child { color: #11828b; }
.language-coverage__item--attention > span:first-child { color: #b47800; }

.language-coverage__item div {
  min-width: 0;
}

.language-coverage__item strong,
.language-coverage__item small {
  display: block;
  overflow-wrap: anywhere;
}

.language-coverage__item strong {
  color: #17253a;
  font-size: 0.82rem;
}

.language-coverage__item small {
  margin-top: 2px;
  color: #6a798c;
  font-size: 0.68rem;
}

.language-review-list article {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 13px 14px;
  border: 1px solid #d8e0e8;
  border-radius: 7px;
  background: #fff;
}

.language-review-list article > div:first-child {
  min-width: 0;
}

.language-review-list article > div:first-child strong,
.language-review-list article > div:first-child small {
  display: block;
  overflow-wrap: anywhere;
}

.language-review-list article > div:first-child strong {
  margin-top: 7px;
  color: #17253a;
  font-size: 0.86rem;
}

.language-review-list article > div:first-child small {
  margin-top: 2px;
  color: #68788b;
  font-size: 0.7rem;
}

.language-review-list dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.language-review-list dt,
.language-review-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.69rem;
}

.language-review-list dt { color: #718095; }
.language-review-list dd { margin-top: 2px; color: #253b51; font-weight: 700; }

.language-reviewer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #50647b;
  font-size: 0.73rem;
}

.language-empty {
  padding: 25px;
  border: 1px dashed #becbd6;
  border-radius: 7px;
  background: #f8fafb;
  text-align: center;
}

.language-empty strong,
.language-empty span {
  display: block;
}

.language-empty strong { color: #24384d; }
.language-empty span { margin-top: 4px; color: #6b798b; font-size: 0.78rem; }

.language-evidence-footer {
  margin-top: 28px;
  padding: 15px 16px;
  border: 1px solid #d6dee7;
  border-radius: 7px;
  background: #f7f9fb;
}

.language-review-intro {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid #c5dce0;
  border-left: 4px solid #2783db;
  border-radius: 7px;
  background: #f1f8fd;
}

.language-review-intro > .icon { flex: 0 0 auto; color: #2783db; }
.language-review-intro--attention { border-color: #ecd175; border-left-color: #e8a60b; background: #fff9df; }
.language-review-intro--attention > .icon { color: #a66c00; }
.language-review-intro--general { border-color: #b9d8d5; border-left-color: #11828b; background: #eff9f7; }
.language-review-intro--general > .icon { color: #11828b; }

.language-packet-summary {
  margin-bottom: 15px;
  padding: 14px 15px;
  border: 1px solid #d6dee7;
  border-radius: 7px;
  background: #fff;
}

.language-packet-summary > div:first-child strong,
.language-packet-summary > div:first-child small {
  display: block;
}

.language-packet-summary > div:first-child strong {
  margin-top: 8px;
  color: #17253a;
  font-size: 1rem;
}

.language-packet-summary > div:first-child small {
  margin-top: 2px;
  color: #68798d;
  font-size: 0.74rem;
}

.language-packet-summary dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e1e7ed;
}

.language-packet-summary dt,
.language-packet-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.72rem;
}

.language-packet-summary dt { color: #718095; }
.language-packet-summary dd { margin-top: 3px; color: #253b51; font-weight: 700; }
.language-packet-summary code { font-size: 0.68rem; }

.language-packet-summary blockquote {
  margin: 13px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #11828b;
  background: #f0f8f7;
  color: #334a5f;
  font-size: 0.83rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .language-metrics,
  .language-coverage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-review-list article {
    grid-template-columns: 1fr auto;
  }

  .language-review-list dl {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .language-packet-summary dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .language-choice-grid,
  .language-choice-grid--four,
  .language-metrics,
  .language-coverage {
    grid-template-columns: 1fr;
  }

  .language-choice-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-help-callout {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .language-help-callout .button {
    width: 100%;
  }

  .language-mode-notice__inner {
    width: min(100% - 20px, 1180px);
    min-height: 52px;
    align-items: flex-start;
    padding: 8px 0;
  }

  .language-request-list article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .language-request-icon {
    width: 38px;
    height: 38px;
  }

  .language-request-list article > div:last-child {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .language-review-list article {
    grid-template-columns: 1fr;
  }

  .language-review-list dl,
  .language-review-list article > .button,
  .language-reviewer {
    grid-column: auto;
    grid-row: auto;
  }

  .language-review-list dl {
    grid-template-columns: 1fr 1fr;
  }

  .language-review-list article > .button {
    width: 100%;
  }

  .language-packet-summary dl {
    grid-template-columns: 1fr;
  }
}
