:root {
  --bg: #0f1115;
  --surface: #181b22;
  --surface-2: #20242e;
  --border: #2c313d;
  --text: #e8ebf0;
  --muted: #8a93a6;
  --brand: #4f8cff;
  --danger: #ff5c5c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.topo { display: flex; justify-content: space-between; align-items: center; }
h1 { font-size: 1.4rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; }
.muted { color: var(--muted); font-size: .88rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
}
textarea, input[type="text"], input[type="password"] {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
}
input[type="file"] { color: var(--text); margin-bottom: 10px; display: block; }
button, .btn {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: .95rem;
  cursor: pointer;
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
}
button:hover, .btn:hover { opacity: .9; }
.link { background: none; color: var(--brand); padding: 0; margin: 0; text-decoration: underline; font-size: .85rem; }
.link--perigo { color: var(--danger); }
.btn-perigo { background: var(--danger); }
.btn-copiar { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); margin-top: 8px; }

.historico__cabecalho { display: flex; justify-content: space-between; align-items: center; }
.item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.item__meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.item__texto {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .9rem;
}
.item__arquivo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.auth-box {
  max-width: 340px;
  margin: 18vh auto 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.auth-box input { text-align: center; margin-bottom: 10px; }
.erro { color: var(--danger); font-size: .9rem; }
.flash { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; max-width: 760px; margin: 16px auto 0; }

@media (max-width: 480px) {
  .auth-box { margin-top: 10vh; }
}
