:root {
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --accent: #b3261e;
  --bg: #fdfaf6;
  --card: #ffffff;
  --border: #e5e0d8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
}

main {
  max-width: 480px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

h1 { margin-top: 0; font-size: 1.6rem; }
h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }

label { display: block; margin-bottom: 0.9rem; font-weight: 600; }

input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
}

button {
  font: inherit;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

button:disabled { opacity: 0.4; cursor: not-allowed; }
button.link { background: none; color: var(--accent); padding: 0; }
button.danger { background: #555; }

.copy { font-family: ui-monospace, monospace; font-size: 0.85rem; background: #faf7f2; }

.inline { display: inline; }
.inline-form { display: flex; gap: 0.5rem; }
.inline-form input,
.inline-form select { margin-top: 0; }

select {
  font: inherit;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.error { color: var(--accent); font-weight: 600; }
.warning { background: #fff4e5; padding: 0.7rem; border-radius: 8px; }
.muted { color: var(--muted); font-size: 0.9rem; }
.link { word-break: break-all; }

.reveal { font-size: 1.2rem; }
.reveal strong { font-size: 1.8rem; color: var(--accent); }

section { margin-top: 1.5rem; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.4rem; border-bottom: 1px solid var(--border); }
