*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #888;
  --accent: #4f8ef7;
  --danger: #e05252;
  --green: #4caf50;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  outline: none;
  width: 100%;
}

input:focus, textarea:focus {
  border-color: var(--accent);
}

.error-msg {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  margin-top: 6px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 600;
  transition: opacity .15s;
}
.btn-primary:hover { opacity: .85; }
.btn-primary:disabled { opacity: .5; cursor: default; }

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 600;
}
.btn-ghost {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
}
.btn-sm { font-size: 13px; padding: 6px 12px; }
.btn-icon { background: none; color: var(--text-muted); font-size: 18px; padding: 4px 8px; }
.btn-icon:hover { color: var(--text); }

.hidden { display: none !important; }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.note-text { color: var(--text-muted); font-size: 12px; }
.destruct-done { color: var(--text-muted); text-align: center; margin-top: 40vh; }
