:root {
  --bg: #0f1412;
  --panel: #1a221e;
  --ink: #e8f0ea;
  --muted: #8fa197;
  --line: #2c3a33;
  --accent: #3dd68c;
  --accent-ink: #062416;
  --warn: #f0c674;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, #1d3a2c 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #243028 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.top {
  padding: 2rem 1.25rem 0.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.nav a:hover {
  border-bottom-color: var(--accent);
}

.brand {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

.field {
  width: 100%;
  background: #0c100e;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  margin-bottom: 0.65rem;
}

#feedback {
  scroll-margin-top: 1.25rem;
}

.tag {
  color: var(--muted);
  max-width: 36rem;
  margin: 0.4rem 0 0;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  display: grid;
  gap: 1rem;
}

.panel {
  background: color-mix(in srgb, var(--panel) 92%, black);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.25rem;
}

h1,
h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.muted {
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.lbl {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

textarea {
  width: 100%;
  background: #0c100e;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  resize: vertical;
  font: inherit;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.75rem;
}

.between {
  justify-content: space-between;
}

.file {
  font-size: 0.9rem;
  color: var(--muted);
}

button {
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.status {
  margin: 0.75rem 0 0;
  color: var(--warn);
  font-size: 0.9rem;
}

.table-wrap {
  overflow: auto;
  margin: 0.75rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.9rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem;
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 500;
  background: #121915;
}

td input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  font: inherit;
  padding: 0.35rem;
  border-radius: 4px;
}

td input:focus {
  outline: none;
  border-color: var(--accent);
  background: #0c100e;
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding-bottom: 2rem;
}

.foot a {
  color: var(--accent);
}

code {
  color: var(--accent);
}

.hint {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.privacy {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.slim h2 {
  margin-bottom: 0.4rem;
}

.history {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tight {
  margin-top: 0;
}

@media (max-width: 640px) {
  .between {
    flex-direction: column;
    align-items: stretch;
  }
  .between .row {
    justify-content: stretch;
  }
  .between .row button {
    flex: 1;
  }
}
