:root {
  --bg: #0a0a0a;
  --panel: #141416;
  --ink: #e6e6ef;
  --muted: #9292b1;
  --line: #2a2a32;
  --wave: #76a882;
  --wave-ink: #0a0a0a;
  --bad: #c97a72;
  --tap: 48px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
a { color: var(--wave); text-decoration: none; }
button, input, select, textarea { font: inherit; }
#app { max-width: 720px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
header.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line);
}
header.top .brand { display: flex; align-items: center; min-width: 0; }
header.top .brand-logo { display: block; height: 36px; width: auto; max-width: 220px; object-fit: contain; }
header.top .who { color: var(--muted); font-size: 13px; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.splash { text-align: center; padding: 48px 16px 12px; }
.splash .brand-logo-lg { display: block; width: min(320px, 88%); height: auto; margin: 0 auto 20px; }
main { flex: 1; padding: 12px 16px 96px; }
nav.tabs {
  position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #080808; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
nav.tabs a { color: var(--muted); text-align: center; padding: 12px 4px; font-size: 12px; }
nav.tabs a.on { color: var(--wave); }
h1 { font-size: 22px; font-weight: 600; margin: 8px 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.card {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; margin: 0 0 10px; color: inherit;
}
.card strong { display: block; font-weight: 600; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { background: #2a1614; color: #ffc9b8; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.pill {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: #1a2a20; color: var(--wave); margin-left: 6px;
}
label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 6px; }
input, select, textarea {
  width: 100%; background: #080808; color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; margin: 0 0 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wave); }
.btn {
  display: block; width: 100%; min-height: var(--tap); border: 0; border-radius: 12px;
  background: var(--wave); color: var(--wave-ink); font-weight: 650; margin: 8px 0; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: 0.5; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.toolbar select { margin: 0; }
.dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: 4px 12px; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
