:root {
  --bg: #000000;
  --bg-soft: #050b13;
  --card: rgba(10, 16, 26, 0.82);
  --line: rgba(56, 189, 248, 0.22);
  --line-strong: rgba(56, 189, 248, 0.45);
  --text: #cdefff;
  --muted: #86b8d1;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(14, 165, 233, 0.18), transparent 70%),
    var(--bg);
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.hero {
  padding: 24px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

h1 {
  margin: 14px 0 8px;
  font-size: clamp(1.9rem, 3.1vw, 2.5rem);
  line-height: 1.1;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.panel {
  padding: 16px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

input,
button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 14px;
  color: var(--text);
  background: rgba(4, 12, 20, 0.82);
}

input {
  flex: 1;
  min-width: 220px;
}

input::placeholder {
  color: rgba(134, 184, 209, 0.55);
}

input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

button {
  cursor: pointer;
  font-weight: 700;
  background: rgba(14, 165, 233, 0.18);
  color: var(--accent);
}

button:hover {
  border-color: var(--line-strong);
  background: rgba(14, 165, 233, 0.28);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 730px;
  border-collapse: collapse;
  background: rgba(2, 8, 16, 0.9);
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 12px;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

tr:nth-child(even) td {
  background: rgba(5, 14, 24, 0.75);
}

a.download {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

a.download:hover {
  color: #7dd3fc;
}

small {
  color: var(--muted);
}

.panel-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

#countText {
  color: #7dd3fc;
  font-size: 13px;
}

.message {
  min-height: 20px;
  color: #67e8f9;
  font-size: 13px;
}

.message.error {
  color: var(--danger);
}

@media (max-width: 700px) {
  .toolbar {
    flex-direction: column;
  }

  input,
  button {
    width: 100%;
  }

  .panel-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
