:root {
  --forest: #274936;
  --sage: #91a78f;
  --leaf: #c7d4c4;
  --sand: #d8c5a8;
  --cream: #f7f3ea;
  --paper: #fbf8f2;
  --earth: #6f5b46;
  --terra: #c98268;
  --muted: #6b7a6e;
  --card: #fff;
  --danger: #9b3a2f;
  --line: rgba(39, 73, 54, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --motion-fast: 180ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(900px 420px at 8% -10%, #e4eee2 0%, transparent 55%),
    radial-gradient(640px 360px at 110% 0%, #efe6d6 0%, transparent 48%),
    #efe8dc;
  color: var(--forest);
  -webkit-font-smoothing: antialiased;
}
button, [role="button"], a.btn, a.tab, a.chip, a.topic, a.icon-btn { cursor: pointer; }
.shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  position: relative;
  box-shadow: 0 0 0 1px rgba(39, 73, 54, 0.06);
}
.pad { padding: 22px 18px calc(96px + env(safe-area-inset-bottom)); }
.pad-sm { padding: 22px 18px calc(96px + env(safe-area-inset-bottom)); }
.kicker {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--earth); margin-bottom: 6px;
}
h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 5vw, 1.85rem);
  letter-spacing: -0.02em; line-height: 1.15;
}
h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.sub { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.5; }
.card {
  background: #fff; border-radius: var(--radius-lg); padding: 16px;
  margin-top: 12px; border: 1px solid transparent;
}
.card.sage { background: #e8efe6; }
.card.sand { background: #f3ebdd; }
.stack { display: flex; flex-direction: column; gap: 12px; }
label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; border: 1.5px solid var(--line); background: #fff;
  border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; color: var(--forest);
  min-height: 44px;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--forest); outline-offset: 1px; border-color: var(--forest);
}
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; text-align: center; background: var(--sage);
  color: var(--forest); font-weight: 650; padding: 14px; border-radius: var(--radius);
  border: 0; text-decoration: none; font-size: 15px; min-height: 48px;
  transition: transform var(--motion-fast) var(--ease), opacity var(--motion-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn.forest { background: var(--forest); color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--forest); margin-top: 10px; }
.btn.danger { background: #f4e4e1; color: var(--danger); margin-top: 10px; }
.btn.google {
  background: #fff; border: 1.5px solid var(--line); color: #1f1f1f; font-weight: 600;
  margin-top: 8px;
}
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.link {
  display: block; text-align: center; color: var(--forest); font-size: 14px;
  padding: 12px; text-decoration: none; min-height: 44px;
}
.err { color: var(--danger); font-size: 13px; }
.ok { color: var(--forest); font-size: 13px; font-weight: 600; }
.flash {
  background: #e8efe6; border-radius: 12px; padding: 10px 12px;
  margin-bottom: 12px; font-size: 13.5px;
}
.tabs {
  position: sticky; bottom: 0; min-height: 72px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
  box-shadow: 0 -8px 24px rgba(39, 73, 54, 0.06);
}
.tab {
  background: none; border: 0; color: #8a968c; font-size: 10px; font-weight: 500;
  text-decoration: none; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; min-height: 64px; padding: 8px 2px;
}
.tab.active { color: var(--forest); font-weight: 650; }
.tab .ico { display: block; }
.topic {
  display: flex; align-items: center; gap: 12px; padding: 14px; background: #e8efe6;
  border-radius: 18px; text-decoration: none; color: inherit; margin-top: 10px; min-height: 64px;
}
.topic-ico {
  width: 36px; height: 36px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; color: var(--forest); flex-shrink: 0;
}
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #3d5345; line-height: 1.4; }
.check input { width: auto; min-height: 0; margin-top: 3px; }
.q { background: #fff; border-radius: 18px; padding: 14px; margin-top: 10px; }
.q p { font-size: 14px; line-height: 1.55; color: #3d5345; margin-top: 8px; }
.num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: #fff;
  font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; flex-shrink: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: transparent;
  color: var(--forest); border: 1.5px solid var(--forest);
  border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 600;
  text-decoration: none; min-height: 40px;
}
.list-item {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 48px;
}
.list-item:last-child { border-bottom: 0; }
.list-left { display: inline-flex; align-items: center; gap: 8px; }
.pill { background: #e8efe6; border-radius: 999px; padding: 2px 8px; font-size: 12px; color: var(--muted); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; text-decoration: none; color: var(--forest);
}
.tiny { font-size: 12px; color: var(--muted); line-height: 1.45; }
.verse { font-family: var(--font-display); font-style: italic; font-size: 16px; line-height: 1.45; color: var(--earth); }
.verse cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.gsi { min-height: 44px; margin: 8px 0 4px; }
.or {
  display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0;
}
.or:before, .or:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mark { margin-bottom: 14px; }
.muted-box { background: #fff; border-radius: 12px; padding: 10px 12px; margin: 8px 0 4px; }
.code {
  display: block; font-size: 11px; background: #fff; border-radius: 8px; padding: 8px 10px;
  word-break: break-all; color: var(--forest); margin-top: 4px;
}
.hidden { display: none; }
.bullets { margin: 8px 0 0 18px; color: #3d5345; font-size: 14px; line-height: 1.5; }
.users { width: 100%; border-collapse: collapse; font-size: 13px; }
.users td { padding: 10px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.text-btn {
  background: none; border: 0; color: var(--forest); font: inherit; font-size: 12px;
  font-weight: 650; text-decoration: underline; padding: 6px 4px; min-height: 36px;
}
.danger-text { color: var(--danger); }
.inline { display: flex; gap: 6px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.ico { display: block; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
