:root {
  color: #102335;
  background: #07131f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(42, 159, 255, 0.22), transparent 28rem),
    linear-gradient(135deg, #06101a 0%, #10283a 52%, #06101a 100%);
}

main {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero,
.panel {
  border: 1px solid rgba(142, 190, 224, 0.24);
  background: rgba(247, 251, 255, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.hero h1,
.panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.95;
}

.hero p {
  max-width: 720px;
  color: #526577;
  font-size: 17px;
  line-height: 1.5;
}

.hero img {
  width: 170px;
  max-width: 28vw;
  border-radius: 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #168fe0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

.panel {
  padding: 22px;
  border-radius: 14px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: #20384d;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wide {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #b6c7d3;
  border-radius: 9px;
  padding: 11px 12px;
  background: #ffffff;
  color: #102335;
  font: inherit;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(35, 159, 245, 0.24);
  border-color: #168fe0;
}

.toolbar,
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.filters {
  margin: 16px 0;
}

.filters input {
  flex: 1 1 220px;
}

.filters select {
  flex: 0 0 170px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(135deg, #1199f1, #6fd0ff);
  color: #06101a;
  font-weight: 950;
  font-size: 14px;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 153, 241, 0.28);
}

#status {
  min-height: 24px;
  color: #0d5e8c;
  font-weight: 800;
}

.clients {
  display: grid;
  gap: 12px;
  max-height: 1100px;
  overflow: auto;
  padding-right: 4px;
}

.client {
  border: 1px solid #d6e2eb;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.client:hover,
.client:focus,
.client.selected {
  border-color: #168fe0;
  box-shadow: 0 12px 28px rgba(17, 153, 241, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.client div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client strong {
  font-size: 17px;
}

.client span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #eaf6ff;
  color: #075986;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.client p {
  margin: 8px 0 0;
  color: #526577;
}

.client small {
  display: block;
  margin-top: 9px;
  color: #6a7d8f;
  font-weight: 700;
}

.empty,
.error {
  border: 1px dashed #b6c7d3;
  border-radius: 12px;
  padding: 18px;
  color: #526577;
  background: #f7fbff;
}

.error {
  color: #8a1f1f;
  border-color: #e0a0a0;
  background: #fff7f7;
}

@media (max-width: 980px) {
  .grid,
  .fields {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }
}

@media (max-width: 650px) {
  main {
    width: min(100% - 20px, 1440px);
    padding-top: 10px;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .hero img {
    width: 132px;
    max-width: 100%;
  }

  .panel {
    padding: 16px;
  }

  button,
  .filters select,
  .toolbar button {
    width: 100%;
  }
}
