:root {
  --bg: #0f1117;
  --card: #171a23;
  --border: #262b3a;
  --text: #e6e9f2;
  --muted: #8b93a7;
  --accent: #6366f1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.wrap { max-width: 620px; margin: 0 auto; padding: 24px 16px 60px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 12.5px; }

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

.row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.row strong { color: var(--text); }

input, textarea, select {
  width: 100%;
  background: #0c0e13;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 8px;
}
textarea { min-height: 120px; resize: vertical; }

button {
  border: 1px solid var(--border);
  background: #1d2130;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 4px 8px 4px 0;
}
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.ghost { background: none; color: var(--muted); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.row-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.row-actions button { margin: 0; }

.draft {
  background: #0c0e13;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  white-space: pre-wrap;
  font-size: 12.5px;
  margin-top: 10px;
}

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 8px 0; border-top: 1px solid var(--border); }

.hidden { display: none; }
