:root { --bg:#f6f5f2; --card:#fff; --ink:#1c1b19; --muted:#6d6a63; --line:#e3e0d9; --accent:#c2410c; --accent-ink:#fff; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#141311; --card:#1e1d1a; --ink:#f1efe9; --muted:#a29e94; --line:#34322d; --accent:#f97316; --accent-ink:#1a0d02; }
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:14px 20px; border-bottom:1px solid var(--line); background:var(--card); }
.brand { font-weight:700; color:var(--ink); text-decoration:none; }
nav { display:flex; gap:18px; align-items:center; }
nav form { margin:0; }
main { max-width:820px; margin:0 auto; padding:24px 16px 64px; }
a { color:var(--accent); }
h1 { font-size:24px; margin:8px 0 12px; overflow-wrap:anywhere; }
h2 { font-size:17px; margin:0 0 10px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:20px; margin:0 0 18px; }
.narrow { max-width:420px; margin:8vh auto; }
.scroll { overflow-x:auto; }
summary { cursor:pointer; font-weight:600; }
details[open] summary { margin-bottom:14px; }
label { display:block; font-weight:600; margin:0 0 14px; }
label small { display:block; font-weight:400; color:var(--muted); margin-top:4px; }
label.check { font-weight:400; display:flex; gap:10px; align-items:flex-start; }
label.check input { width:auto; margin-top:4px; }
input, textarea { width:100%; display:block; margin-top:5px; padding:9px 11px; border:1px solid var(--line); border-radius:7px; background:var(--bg); color:var(--ink); font:inherit; }
textarea { resize:vertical; }
.suffix { display:flex; align-items:center; gap:8px; }
.suffix input { flex:1; min-width:0; }
.suffix b { margin-top:5px; color:var(--muted); font-weight:400; }
button, .button { display:inline-block; padding:9px 16px; border:1px solid var(--accent); border-radius:7px; background:var(--accent); color:var(--accent-ink); font-family:inherit; font-size:14px; font-weight:600; line-height:1.4; cursor:pointer; text-decoration:none; }
button.secondary { background:transparent; color:var(--accent); }
button.link { border:0; background:none; color:var(--accent); padding:0; font-weight:400; }
button:disabled { opacity:.45; cursor:default; }
[hidden] { display:none !important; }
.row { display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.row input { flex:1; min-width:200px; margin:0; }
.inline { display:flex; gap:10px; margin-bottom:12px; }
.inline input { margin:0; }
table { width:100%; border-collapse:collapse; margin-bottom:12px; }
th, td { text-align:left; padding:9px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
td form { margin:0; }
.num { text-align:right; font-variant-numeric:tabular-nums; }
.muted { color:var(--muted); }
.tag { font-size:12px; padding:2px 8px; border:1px solid var(--line); border-radius:99px; }
.tag.sent, .tag.subscribed { color:#15803d; border-color:#15803d55; }
.tag.sending { color:var(--accent); }
.flash { padding:11px 14px; border-radius:8px; margin-bottom:16px; border:1px solid #15803d66; background:#15803d1a; }
.flash.error { border-color:#dc262666; background:#dc26261a; }
progress { width:100%; height:12px; accent-color:var(--accent); }
iframe { width:100%; height:460px; border:1px solid var(--line); border-radius:8px; background:#fff; }
