* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(150deg, #091426, #0d1b3b 45%, #0f244f);
  color: #e5e7eb;
}

.container {
  width: min(1200px, 92vw);
  margin: 24px auto 40px;
  display: grid;
  gap: 16px;
}

.header h1 {
  margin: 0;
  font-size: 30px;
}

.header p {
  margin: 6px 0 0;
  color: #b8c5dc;
}

.card {
  background: rgba(7, 16, 34, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 14px;
}

h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 10px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  color: #cfd8e7;
  font-size: 13px;
}

input,
select,
button {
  border-radius: 10px;
  border: 1px solid #304a78;
  padding: 10px 12px;
  font-size: 14px;
}

input,
select {
  background: #0a1730;
  color: #e5e7eb;
}

button {
  background: linear-gradient(180deg, #3c7ef7, #245ec8);
  color: #fff;
  cursor: pointer;
}

button.secondary {
  background: #2d3f63;
}

button.danger {
  background: linear-gradient(180deg, #f84b64, #cb2d45);
}

button:hover {
  filter: brightness(1.08);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  margin-top: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 9px 10px;
  text-align: left;
  font-size: 13px;
}

th {
  color: #c7d7f6;
  background: rgba(28, 50, 91, 0.5);
}

.hint {
  font-size: 12px;
  color: #9fb0cd;
  margin-top: 10px;
}

.log {
  min-height: 120px;
  margin: 0;
  white-space: pre-wrap;
  background: #060f1f;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

@media (max-width: 900px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}
