:root {
  --bg: #0b1020;
  --card: #111a33;
  --text: #e9eefc;
  --muted: #a9b6df;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #7aa2ff;
  --accent2: #9b7cff;
  --bad: #ff6b6b;
  --ok: #2fe2a6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 10%, rgba(122, 162, 255, 0.25), transparent),
    radial-gradient(900px 500px at 70% 30%, rgba(155, 124, 255, 0.18), transparent),
    var(--bg);
  color: var(--text);
}

.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  letter-spacing: -0.02em;
  font-size: 28px;
}

h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.sub {
  margin: 6px 0 0;
  color: var(--muted);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
  backdrop-filter: blur(8px);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.label {
  font-size: 13px;
  color: var(--muted);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
}

.input:focus {
  border-color: rgba(122, 162, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(122, 162, 255, 0.16);
}

.button {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #0b1020;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.05);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 12px;
}

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

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(0, 0, 0, 0.18);
}

.table th,
.table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: rgba(233, 238, 252, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.table td {
  color: rgba(233, 238, 252, 0.92);
  font-size: 13px;
}

.table .num {
  text-align: right;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 16px 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pill.ok {
  background: rgba(47, 226, 166, 0.12);
  border: 1px solid rgba(47, 226, 166, 0.35);
  color: var(--ok);
}

.pill.bad {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: var(--bad);
}

.pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(233, 238, 252, 0.85);
}

.flash {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.flash.error {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
}

.progress-wrap {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
  transition: width 240ms ease;
}

.sortbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.copy-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
  display: inline-block;
}

.copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(233, 238, 252, 0.92);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:hover {
  filter: brightness(1.1);
}

@media (max-width: 720px) {
  .container {
    padding: 22px 12px 44px;
  }

  .header {
    flex-direction: column;
    gap: 10px;
  }

  h1 {
    font-size: 22px;
  }

  .card {
    padding: 14px;
  }

  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .input {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .table {
    min-width: 620px;
  }
}

@media (max-width: 420px) {
  .table {
    min-width: 560px;
  }
}
