:root {
  --ink: #1b1838;
  --gold: #d99a2b;
  --gold-soft: #f3d9a4;
  --bg: #f7f3ea;
  --surface: #ffffff;
  --text: #1b1838;
  --muted: #6b6684;
  --line: #e6dfd0;
  --danger: #b4372f;
  --live: #d6453a;
  --radius: 14px;
  --font: "Inter", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12101f; --surface: #1c1930; --text: #f2ede3; --muted: #a29db8; --line: #2e2a47;
    --gold-soft: #4a3a1c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12101f; --surface: #1c1930; --text: #f2ede3; --muted: #a29db8; --line: #2e2a47;
  --gold-soft: #4a3a1c; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .01em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand small { font-weight: 500; color: var(--muted); font-family: "Noto Sans Ethiopic", var(--font); }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 12px; }
h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.1; margin: 28px 0 12px; letter-spacing: -.02em; }
h2 { font-size: 20px; margin: 0 0 12px; }
p.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
textarea { min-height: 140px; font-family: "Noto Sans Ethiopic", var(--font); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  background: var(--ink); color: #fff; text-decoration: none; min-height: 46px;
}
:root[data-theme="dark"] .btn, .dark-btn { background: var(--gold); color: #1b1838; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { background: var(--gold); color: #1b1838; } }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.gold { background: var(--gold); color: #1b1838; }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.error { color: var(--danger); font-size: 14px; min-height: 1.2em; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214,69,58,.6); } 100% { box-shadow: 0 0 0 10px rgba(214,69,58,0); } }
.am { font-family: "Noto Sans Ethiopic", var(--font); }
.seg-list { list-style: none; margin: 0; padding: 0; }
code.code { font-size: 1.4em; letter-spacing: .15em; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .dot.on { animation: none; } }
