/* Legacy of Grace Church app — shared styles */
:root {
  --bg: #F6F5F1; --card: #FFFFFF; --line: #E3E1DA; --line2: #EFEDE7; --ink: #15171C; --ink2: #3D4250; --muted: #5B6070;
  --accent: #2B50D8; --accent-ink: #1C3AA8; --accent-soft: #E9EEFC;
  --yes: #1F9D55; --yes-soft: #DDF3E6; --yes-ink: #136B3A;
  --maybe: #F2B705; --maybe-soft: #FFF1C2; --maybe-ink: #6B4E00;
  --no: #D93A3A; --no-soft: #FBE0E0; --no-ink: #A42222;
  --radius: 14px;
  --font: -apple-system, 'SF Pro Text', Inter, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-display: -apple-system, 'SF Pro Display', Inter, system-ui, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
/* 16px+ in every text box stops iPhones from zooming in when you tap one */
input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; width: 100%; min-width: 0; border: 1px solid #CFCCC3; border-radius: 10px; background: #fff; padding: 0 12px; height: 46px; outline: none; }
textarea { padding: 10px 12px; height: auto; resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.field { display: block; font-size: 13px; font-weight: 600; min-width: 0; }
label.field > input, label.field > select, label.field > textarea { display: block; margin-top: 6px; }
label.field .hint { font-weight: 400; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.dark { background: var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid #CFCCC3; }
.btn.soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn.danger { background: #fff; color: var(--no-ink); border: 1px solid #F1C4C4; }
.btn.small { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.link { background: transparent; color: var(--ink2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--line2); color: var(--ink2); }
.chip.green { background: var(--yes-soft); color: var(--yes-ink); } .chip.yellow { background: var(--maybe-soft); color: var(--maybe-ink); }
.chip.red { background: var(--no-soft); color: var(--no-ink); } .chip.blue { background: var(--accent-soft); color: var(--accent-ink); }
.chip.dark { background: var(--ink); color: #fff; }
.seg { display: flex; gap: 4px; padding: 4px; background: #EAE8E2; border-radius: 12px; }
.seg button { flex: 1; height: 38px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #CFCCC3; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.pills button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ev-icon.emoji { line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.empty { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed #CFCCC3; border-radius: var(--radius); background: rgba(255,255,255,0.6); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.notice.wip { background: #FFF6E8; border: 1px solid #F1D3A3; color: #5A3300; }
.notice.info { background: #F1F4FD; color: var(--accent-ink); }
.notice.ok { background: var(--yes-soft); color: var(--yes-ink); }
.notice.bad { background: var(--no-soft); color: var(--no-ink); }
.bar { height: 6px; background: var(--line2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.back { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; color: var(--ink); text-decoration: none; }
#toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .2s; z-index: 100; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--no); }
.sheet-bg { position: fixed; inset: 0; background: rgba(21,23,28,0.45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; background: #fff; border-radius: 22px 22px 0 0; padding: 22px 20px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; max-height: 90vh; overflow: auto; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 20px; } }
.skeleton { background: linear-gradient(90deg, #EFEDE7, #F7F6F2, #EFEDE7); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
