:root {
  --bg: #0f1115;
  --card: #171a21;
  --fg: #e6e8eb;
  --muted: #9aa3af;
  --accent: #2ea150;
  --accent-strong: #0b6e2d;
  --danger: #d94646;
  --border: #262a33;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  min-height: 100dvh;
}

body {
  padding: env(safe-area-inset-top, 16px) 16px env(safe-area-inset-bottom, 16px);
  display: flex;
  justify-content: center;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  margin-top: 24px;
}

header h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

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

input[type="text"], input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  background: #0f1218;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px; /* iOS evita zoom */
}

input[type="text"] {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  background: var(--accent-strong);
  color: white;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
}

button:disabled {
  opacity: 0.6;
}

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

.status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 1.5em;
}

.status.ok { color: var(--accent); }
.status.err { color: var(--danger); }
.status.info { color: var(--muted); }

footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

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

.feed li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed li:last-child { border-bottom: 0; }

.feed .ident {
  font-weight: 600;
  font-size: 15px;
  min-width: 64px;
}

.feed .meta {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}

.feed .meta a {
  color: var(--muted);
  text-decoration: underline dotted;
}

.feed .thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #0f1218 center/cover no-repeat;
  border: 1px solid var(--border);
}
