:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #292929;
  background: #665fce;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(111, 132, 255, .95), transparent 33%),
    linear-gradient(135deg, #586fe3 0%, #7651b8 100%);
}

.page-shell {
  width: min(1080px, 92%);
  margin: 0 auto;
  padding: 10vh 0;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 1fr);
  gap: 34px;
  align-items: start;
}

.card {
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(37, 24, 83, .34);
  padding: 28px;
}

h1 {
  margin: 0 0 24px;
  font-size: 26px;
}

label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 700;
  color: #4a4a4a;
}

input, select {
  width: 100%;
  min-height: 47px;
  padding: 0 14px;
  border: 1px solid #d6d6dc;
  border-radius: 5px;
  background: #fff;
  font-size: 15px;
  outline: none;
  transition: .2s ease;
}

input:focus, select:focus {
  border-color: #6e70e8;
  box-shadow: 0 0 0 3px rgba(110, 112, 232, .15);
}

button {
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #5e7bec, #7847b6);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6d6dc;
  border-radius: 5px;
  padding-left: 12px;
}

.search-box input {
  border: 0;
  box-shadow: none;
}

.users-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
}

.user-item {
  position: relative;
  border-left: 4px solid #627cff;
  border-radius: 6px;
  background: #f5f5f7;
  padding: 18px 50px 18px 18px;
  line-height: 1.5;
}

.user-item p {
  margin: 0;
}

.delete-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  min-height: 30px;
  margin: 0;
  border-radius: 50%;
  padding: 0;
  background: #e05666;
  font-size: 13px;
}

.message {
  min-height: 22px;
  margin: 12px 0 0;
  font-weight: 700;
}

.message.success { color: #207a45; }
.message.error { color: #b42335; }
.empty-state { color: #666; text-align: center; padding: 24px; }

@media (max-width: 780px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding: 34px 0;
  }
}
