:root { --blue: #005495; --accent: #4169E1; --bg: #f7f5f0; --card: #fff; --ink: #1a1a1a; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); }
header { background: var(--blue); color: #fff; padding: 12px 16px; position: sticky; top: 0; }
header h1 { margin: 0; font-size: 1.2rem; }
main { padding: 16px; max-width: 720px; margin: 0 auto; }
.card { background: var(--card); border-radius: 10px; padding: 14px; margin-bottom: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card.tap { cursor: pointer; }
.card.done { opacity: .65; }
.card.done p { text-decoration: line-through; }
.toolbar { display: flex; gap: 8px; margin-bottom: 14px; }
button { background: var(--blue); color: #fff; border: 0; border-radius: 8px;
         padding: 10px 16px; font-size: 1rem; cursor: pointer; }
button.ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
button.small { padding: 6px 10px; font-size: .85rem; margin-top: 8px; }
input { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc;
        border-radius: 8px; font-size: 1rem; }
.meta { color: #666; font-size: .85rem; display: block; margin-top: 4px; }
.badge { display: inline-block; background: #eee; border-radius: 20px; padding: 2px 10px;
         font-size: .75rem; margin-top: 6px; }
.badge.done { background: #d4edda; color: #155724; }
.err { color: #c00; }
.list { display: flex; flex-direction: column; }
h2 { margin: 4px 0 8px; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; display: flex;
  background: var(--card); border-top: 1px solid #ddd; z-index: 10; }
.bottomnav button { flex: 1; background: transparent; color: #666; border-radius: 0;
  padding: 12px 4px; font-size: .8rem; }
.bottomnav button.active { color: var(--blue); font-weight: 700; }
main { padding-bottom: 70px; }
.card.scripture { border-left: 4px solid var(--blue); background: #f8f6f0; }
.card.scripture .verse { font-style: italic; font-size: 1.05rem; line-height: 1.5; margin: 0 0 8px; }
.card.scripture-invite { border-left: 4px solid var(--accent, #4169E1); background: #f0f4ff; cursor: pointer; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100;
  display: flex; align-items: flex-end; justify-content: center; }
.modal { width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto;
  border-radius: 16px 16px 0 0; margin: 0; }
.modal label { display: block; font-size: .85rem; color: #666; margin: 10px 0 4px; }
.modal textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 8px;
  font-size: 1rem; font-family: inherit; resize: vertical; }
.desc-row { display: flex; gap: 8px; align-items: flex-start; }
.desc-row textarea { flex: 1; }
button.mic { font-size: 1.4rem; padding: 10px 14px; flex-shrink: 0; }
button.mic.listening { background: #c00; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.photo-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.photo-row .thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.modal-overlay.photo-editor { flex-direction: column; align-items: center; justify-content: flex-start;
  background: rgba(0,0,0,.92); padding: 0; }
.photo-canvas-wrap { flex: 1; display: flex; align-items: center; justify-content: center;
  width: 100%; overflow: hidden; touch-action: none; }
.photo-canvas-wrap canvas { max-width: 100%; max-height: 100%; }
.photo-toolbar { display: flex; gap: 8px; padding: 12px; width: 100%; max-width: 720px;
  justify-content: center; background: rgba(0,0,0,.8); }
.photo-toolbar button { flex: 1; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #fff;
  border-top-color: transparent; border-radius: 50%; animation: spin .6s linear infinite;
  vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
