.add-device-modal {
  &__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 260px;
  }

  &__model-list {
    max-height: 420px;
    overflow: auto;
    padding-right: 8px;
  }

  &__model-group {
    & + & {
      margin-top: 20px;
    }
  }

  &__group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
  }

  &__model-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  &__model-card {
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f5f6f8;
    cursor: pointer;
    transition: all 0.18s;

    &:hover,
    &.is-selected {
      border-color: #7c3aed;
      background: #f5f0ff;
    }
  }

  &__model-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
  }

  &__model-desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.45);
  }

  &__selected-model {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f5f6f8;
  }

  &__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
  }

  &__back-icon {
    position: absolute;
    top: 18px;
    left: 16px;
  }
}
