:root {
  --bg: #f6f5f2; --panel: #ffffff; --ink: #1d1f22; --muted: #6b6f76;
  --line: #e3e1dc; --accent: #2f5d50; --accent-ink: #ffffff; --danger: #b3412e;
  --radius: 10px; --font: "Inter", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141517; --panel: #1d1f22; --ink: #ececea; --muted: #9a9ea5;
          --line: #2c2f33; --accent: #6fae9a; --accent-ink: #0f1412; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: .04em; }
main { max-width: 760px; margin: 32px auto; padding: 0 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
h1 { font-size: 22px; margin: 0 0 4px; } .muted { color: var(--muted); }
input, textarea { width: 100%; font: inherit; color: inherit; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; outline: none; }
input:focus, textarea:focus { border-color: var(--accent); }
.btn { font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 9px 16px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.row { display: flex; gap: 10px; align-items: flex-start; }
.list { list-style: none; margin: 16px 0 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; }
.link:hover { color: var(--danger); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; }
.toast.show { opacity: 1; }
