.admin-models-page {
  min-height: 100vh;
  color: #111111;
  background: #f6f6f4;
}

.admin-models-page > main {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.admin-models-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #999993;
}

.admin-models-heading p {
  margin: 0 0 4px;
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.admin-models-heading h1 {
  margin: 0;
  font-size: 34px;
}

.admin-models-heading > strong {
  font-family: Consolas, monospace;
  font-size: 13px;
}

.admin-models-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
  border-block: 1px solid #8c8c86;
  background: #ffffff;
}

.admin-models-summary > span {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 18px;
  border-right: 1px solid #c1c1ba;
  color: #65655f;
  font-size: 12px;
}

.admin-models-summary > span:last-child { border-right: 0; }
.admin-models-summary strong { overflow-wrap: anywhere; color: #111111; font-size: 15px; }

.admin-models-table-wrap {
  overflow-x: auto;
  border: 1px solid #8c8c86;
  background: #ffffff;
}

.admin-models-table-wrap table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-models-table-wrap th,
.admin-models-table-wrap td {
  padding: 14px 12px;
  border-right: 1px solid #d0d0ca;
  border-bottom: 1px solid #d0d0ca;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.admin-models-table-wrap thead th {
  background: #e7e7e2;
  font-weight: 900;
}

.admin-models-table-wrap th:first-child { width: 210px; }
.admin-models-table-wrap th:nth-child(2),
.admin-models-table-wrap th:nth-child(3) { width: 62px; text-align: center; }
.admin-models-table-wrap th:nth-child(4) { width: 112px; }
.admin-models-table-wrap th:nth-child(5) { width: 96px; }
.admin-models-table-wrap th:nth-child(6) { width: 170px; }
.admin-models-table-wrap th:nth-child(7) { width: 90px; }
.admin-models-table-wrap th:nth-child(8) { width: 180px; }
.admin-models-table-wrap th:nth-child(9) { width: 84px; }

.admin-models-table-wrap tbody th strong,
.admin-models-table-wrap tbody th code,
.admin-models-table-wrap td small {
  display: block;
}

.admin-models-table-wrap tbody th code,
.admin-models-table-wrap td small {
  margin-top: 5px;
  color: #65655f;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.admin-models-table-wrap td:nth-child(2),
.admin-models-table-wrap td:nth-child(3) { text-align: center; }

.admin-models-table-wrap input[type="number"] {
  width: 76px;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid #777770;
  border-radius: 0;
}

.admin-models-table-wrap input[type="checkbox"],
.admin-models-table-wrap input[type="radio"] {
  width: 18px;
  height: 18px;
}

.model-state { display: inline-block; padding: 4px 6px; border: 1px solid #7d7d77; font-family: Consolas, monospace; }
.model-state.is-available,
.model-state.is-verified { border-color: #287b45; color: #1f6639; background: #edf8f0; }
.model-state.is-unavailable,
.model-state.is-unverified,
.model-state.is-blocked { border-color: #a66c18; color: #7c4a06; background: #fff7df; }

.admin-models-actions {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid #999993;
}

.admin-models-actions > div:last-child { display: flex; gap: 8px; }
.admin-models-actions button,
.admin-models-alert button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #111111;
  border-radius: 0;
  background: #f2f500;
  font-weight: 800;
}
.admin-models-actions button:disabled { color: #777770; background: #dfdfda; cursor: not-allowed; }
.admin-models-validation,
.admin-models-notice { margin: 0; font-weight: 700; }
.admin-models-validation { color: #a52e24; }
.admin-models-notice { color: #1f6639; }

.admin-models-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  border-left: 5px solid #d14a3b;
  background: #fff1ef;
}

.admin-models-loading { display: grid; gap: 10px; margin-top: 24px; }
.admin-models-loading span { display: block; height: 62px; background: #dfdfda; }

@media (max-width: 760px) {
  .admin-models-page > main { width: 100%; padding-right: 16px; padding-left: 16px; }
  .admin-models-summary { grid-template-columns: 1fr; }
  .admin-models-summary > span { border-right: 0; border-bottom: 1px solid #c1c1ba; }
  .admin-models-actions { align-items: stretch; flex-direction: column; }
  .admin-models-actions > div:last-child { display: grid; }
}
