#enterprise-settings {
  --ent-pad: clamp(20px, 2.45vw, 38px);
  min-width: 0;
}
.ent-title,
.ent-head h3,
.ent-columns h4,
.ent-dialog h2 {
  margin: 0;
  letter-spacing: normal;
  line-height: 1.35;
}
.ent-title {
  font-size: var(--type-card);
  margin-bottom: 20px;
}
.ent-card {
  background: var(--surface);
  padding: var(--ent-pad);
  border-radius: 26px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.ent-card + .ent-card {
  margin-top: clamp(18px, 1.6vw, 26px);
}
.ent-head,
.ent-id,
.ent-ai-title,
.ent-chip,
.ent-replies > div,
.ent-models dt,
.ent-quotas dd {
  display: flex;
  align-items: center;
}
.ent-head {
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.ent-head button {
  min-height: 48px;
  padding: 10px 22px;
  font-size: var(--type-control);
  border-radius: 13px;
}
.ent-secondary {
  background: #f0f5ff;
  border: 1px solid #d6e2f8;
  color: #234b94;
}
.ent-id {
  gap: clamp(12px, 1.45vw, 24px);
  min-width: 0;
}
.ent-head h3 {
  font-size: var(--type-card);
}
.ent-tile {
  display: grid;
  place-items: center;
  width: clamp(62px, 5.35vw, 82px);
  height: clamp(62px, 5.35vw, 82px);
  border-radius: 18px;
  background: #e9f0ff;
  color: #2262f4;
  flex: none;
}
.ent-tile .icon {
  width: 52%;
  height: 52%;
}
.ent-ai-title {
  gap: 14px;
  flex-wrap: wrap;
}
.ent-id p {
  color: var(--muted);
  font-size: var(--type-support);
  margin: 4px 0 0;
}
.ent-chip {
  display: inline-flex;
  gap: 6px;
  border-radius: 9px;
  line-height: 1.45;
  font-size: var(--type-meta);
  padding: 4px 12px;
  font-weight: 680;
  white-space: nowrap;
}
.ent-chip.yes {
  color: #166a3d;
  background: #e1f5e7;
}
.ent-chip.no {
  color: #505e73;
  background: #edf0f5;
}
.ent-chip .icon {
  width: 1em;
  height: 1em;
}
.ent-replies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(20px, 2.2vw, 34px) 0 0;
}
.ent-replies > div {
  gap: clamp(12px, 1.8vw, 29px);
  min-width: 0;
  flex-wrap: wrap;
  padding-left: clamp(14px, 2.2vw, 34px);
  border-left: 1px solid var(--line);
}
.ent-replies > div:first-child {
  border: 0;
  padding-left: 5px;
}
.ent-replies dt,
.ent-models dt,
.ent-models dd {
  font-size: var(--type-body);
  font-weight: 620;
}
.ent-replies dd,
.ent-models dd,
.ent-quotas dd {
  margin: 0;
}
.ent-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  margin-top: clamp(22px, 2.6vw, 42px);
}
.ent-columns h4 {
  font-size: var(--type-item);
}
.ent-models {
  padding-right: clamp(20px, 3vw, 48px);
  margin: 12px 0 0;
}
.ent-models > div {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: clamp(43px, 3.92vw, 62px);
  padding: 7px 0;
}
.ent-models > div + div,
.ent-quotas dl > div + div {
  border-top: 1px solid var(--line);
}
.ent-models dt {
  gap: 12px;
  color: #384c6b;
}
.ent-models dt .icon {
  color: #61789b;
  width: 24px;
  height: 24px;
  flex: none;
}
.ent-quotas {
  border-left: 1px solid var(--line);
  padding-left: clamp(22px, 3vw, 48px);
}
.ent-quotas dl {
  margin: 9px 0 0;
}
.ent-quotas dd {
  gap: 14px;
  align-items: baseline;
  padding: clamp(13px, 1.3vw, 20px) 0;
  flex-wrap: wrap;
}
.ent-quotas dd strong {
  font-family: Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #1959e5;
  font-size: var(--type-metric);
  line-height: 1.22;
  letter-spacing: -0.04em;
}
.ent-quotas dd span {
  font-size: var(--type-body);
  color: var(--muted);
}
.ent-dialog {
  width: min(650px, calc(100% - 24px));
}
.ent-dialog h2 {
  font-size: var(--type-card);
}
.ent-dialog fieldset {
  border: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
}
.ent-dialog fieldset + fieldset {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.ent-dialog legend {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ent-choice,
.ent-dialog .config-editor-fields > label.ent-choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-weight: 620;
  line-height: 1.55;
  flex-direction: row;
}
.ent-choice input {
  flex: none;
  margin: 4px 0 0;
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--primary);
}
.ent-choice small,
.ent-fields small {
  display: block;
  font-weight: 480;
  font-size: 14px;
  color: var(--muted);
}
.ent-fields,
.ent-dialog fieldset,
.ent-fields [data-model-restrictions]:not([hidden]) {
  display: grid;
  gap: 12px;
}
.ent-fields [data-ent-recommend] {
  justify-self: start;
}
.ent-fold {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0;
}
.ent-fold summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  background: #f4f7fd;
  border-radius: 14px;
  padding: 13px 16px;
  color: #334c70;
}
.ent-fold[open] summary {
  border-radius: 14px 14px 0 0;
}
.ent-fold summary strong {
  margin: 0 8px 0 4px;
  color: var(--ink);
}
.ent-fold summary small {
  color: var(--muted);
  font-size: 14px;
}
.ent-fields {
  padding: 16px;
}
.ent-tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 15px;
}
.ent-caution,
.ent-notice {
  background: #fff5e2;
  color: #775518;
  padding: 13px 16px;
  border-radius: 12px;
  line-height: 1.55;
}
.ent-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.ent-notice p {
  margin: 3px 0;
}
@media (min-width: 1101px) {
  .ent-title {
    margin-bottom: 26px;
  }
  .ent-chip {
    padding: 4px 13px;
  }
  .ent-models > div {
    min-height: clamp(53px, 4.08vw, 64px);
  }
  .ent-quotas dd {
    padding-block: 23px;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .ent-models {
    padding-right: 18px;
  }
  .ent-models dt {
    gap: 6px;
  }
  .ent-models > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ent-replies > div {
    gap: 10px;
    padding-left: 14px;
  }
}
@media (max-width: 760px) {
  #enterprise-settings {
    --ent-pad: 18px;
  }
  .ent-title {
    margin-bottom: 12px;
  }
  .ent-card {
    border-radius: 20px;
  }
  .ent-tile {
    width: 49px;
    height: 49px;
    border-radius: 14px;
  }
  .ent-head {
    gap: 15px 8px;
  }
  .ent-head button {
    padding: 8px 12px;
    min-height: 44px;
  }
  .ent-id {
    gap: 10px;
  }
  .ent-ai-title {
    gap: 7px;
  }
  .ent-chip {
    padding: 3px 8px;
  }
  .ent-replies {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }
  .ent-replies > div,
  .ent-replies > div:first-child {
    border: 0;
    padding: 10px 0;
    justify-content: space-between;
  }
  .ent-replies > div + div {
    border-top: 1px solid var(--line);
  }
  .ent-columns {
    grid-template-columns: 1fr;
    gap: 19px;
    margin-top: 20px;
  }
  .ent-models {
    padding: 0;
  }
  .ent-models > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ent-models dt {
    gap: 8px;
  }
  .ent-models dt .icon {
    width: 19px;
    height: 19px;
  }
  .ent-quotas {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }
  .ent-quotas dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ent-quotas dl > div + div {
    border: 0;
    border-left: 1px solid var(--line);
    padding-left: 16px;
  }
  .ent-quotas dd {
    display: grid;
    padding: 0;
    gap: 4px;
  }
  .ent-dialog .field-pair,
  .ent-tool-list {
    grid-template-columns: 1fr;
  }
  .ent-fold summary small {
    display: block;
    margin-left: 4px;
  }
}
