:root {
  --bg: #070708;
  --card: #121214;
  --line: #232326;
  --text: #f3f3f5;
  --muted: #8d8d95;
  --accent: #d6ff3f;
  --danger: #ff6b6b;
  --safe: env(safe-area-inset-bottom, 16px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; }
body { min-height: 100dvh; padding: calc(18px + env(safe-area-inset-top)) 16px calc(88px + var(--safe)); }
h1 { margin: 0; font-size: 28px; letter-spacing: -0.04em; }
h2 { margin: 0 0 10px; font-size: 18px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.error { color: var(--danger); min-height: 1.2em; }
.hidden { display: none !important; }
.top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.orb {
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--accent); color: #111; font-size: 20px;
}
.rings { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-bottom: 12px; }
.ring-card, .mini, .card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px;
}
.ring-card { display: flex; gap: 12px; align-items: center; grid-row: span 2; }
.ring { width: 74px; height: 74px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: #262628; stroke-width: 8; }
.ring .progress { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; }
.ring-card strong, .mini strong { display: block; font-size: 26px; letter-spacing: -0.04em; }
.ring-card span, .mini p { color: var(--muted); margin: 0; font-size: 13px; }
.card { margin-bottom: 12px; }
.card-h { display: flex; justify-content: space-between; align-items: center; }
.pill { background: #1c1c1f; color: var(--accent); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.plan { margin: 0; padding-left: 18px; }
.plan li { margin: 8px 0; line-height: 1.35; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 10px 0; border-bottom: 1px solid var(--line); }
input {
  width: 100%; margin: 0 0 10px; padding: 14px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: #0c0c0e; color: var(--text); font-size: 16px;
}
.primary {
  width: 100%; border: 0; border-radius: 16px; padding: 14px;
  background: var(--accent); color: #111; font-weight: 700; font-size: 16px;
}
.check, .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; }
.row input { width: 90px; margin: 0; }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 48vh; }
.bubble { max-width: 88%; padding: 12px 14px; border-radius: 18px; line-height: 1.4; white-space: pre-wrap; }
.bubble.user { align-self: flex-end; background: #242428; }
.bubble.assistant { align-self: flex-start; background: #15180f; border: 1px solid #2a3318; }
.composer { display: flex; gap: 8px; margin-top: 12px; }
.composer input { margin: 0; }
.composer button { width: 48px; border: 0; border-radius: 14px; background: var(--accent); }
nav {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe));
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  background: #101012ee; border: 1px solid var(--line); border-radius: 22px; padding: 8px;
  backdrop-filter: blur(16px);
}
nav button { border: 0; background: transparent; color: var(--muted); padding: 10px 0; font-size: 12px; }
nav button.on { color: #111; background: var(--accent); border-radius: 14px; font-weight: 700; }
.lock {
  position: fixed; inset: 0; background: var(--bg); z-index: 20;
  display: grid; place-items: center; padding: 24px;
}
.lock-card { width: min(420px, 100%); }
.code { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; color: #d6ff3f; }
