:root {
  --bg: #0f1419;
  --card: #1a2332;
  --text: #e8eef7;
  --muted: #8b9cb3;
  --accent: #c9a227;
  --ok: #3d9a5c;
  --border: #2a3544;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px 28px;
}

h1 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--accent);
}

.sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.muted {
  color: var(--muted);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s;
}

.item:active {
  opacity: 0.92;
}

.item.on {
  border-color: var(--ok);
}

.cb {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ok);
}

.item.on .cb {
  border-color: var(--ok);
  background: rgba(61, 154, 92, 0.2);
}

.txt {
  flex: 1;
}

.actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

button.primary {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #d4b82e, #a88615);
  color: #1a1203;
  cursor: pointer;
}

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

.result {
  margin-top: 16px;
  padding: 14px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.err {
  color: #e07070;
}

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

.warn-sheet {
  margin-top: 16px;
  padding: 14px;
  background: rgba(224, 112, 112, 0.12);
  border: 1px solid rgba(224, 112, 112, 0.35);
  border-radius: 12px;
}

.warn-sheet p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

button.secondary {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

button.secondary:active {
  opacity: 0.9;
}

button.danger-outline {
  border-color: rgba(224, 112, 112, 0.5);
  color: #e8a0a0;
}
