:root {
  --bg: #0f1216;
  --panel: #171b21;
  --panel-2: #1e242c;
  --line: #2a323c;
  --text: #e6eaf0;
  --muted: #8b97a6;
  --accent: #35a8e0;
  --accent-hover: #4cb9ee;
  --ok: #46c07a;
  --warn: #e0a23b;
  --err: #e05a5a;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.brand h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.5px;
  background: linear-gradient(92deg, #35a8e0, #7ad0f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.resolve {
  display: flex;
  gap: 10px;
}

#post-input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

#post-input::placeholder {
  color: #5c6875;
}

#post-input:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  padding: 13px 22px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #04121b;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

button:hover:not(:disabled) {
  background: var(--accent-hover);
}

button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.status.err {
  color: var(--err);
}

.status.ok {
  color: var(--ok);
}

.results {
  margin-top: 26px;
}

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.results-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.files {
  margin: 0;
  padding: 0;
  list-style: none;
}

.file {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}

.file-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.file-meta {
  grid-column: 1;
  color: var(--muted);
  font-size: 12.5px;
}

.file-action {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
}

.file-action button {
  padding: 8px 15px;
  font-size: 13px;
}

.bar {
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 4px;
  background: var(--panel-2);
  border-radius: 999px;
  overflow: hidden;
}

.bar > i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.15s linear;
}

.file.done .bar > i {
  background: var(--ok);
}

.file.failed .bar > i {
  background: var(--err);
}

.file.failed .file-meta {
  color: var(--err);
}

.foot {
  margin-top: 40px;
  color: #6b7684;
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

code {
  background: var(--panel-2);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12.5px;
}
