:root{
  --bg: #f0f7f5;
  --card: #ffffff;
  --muted: #6b7b75;
  --accent: #6aa0a1;
  --accent-dark: #528987;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial;color:#114b46;background:var(--bg)}
.app{max-width:900px;margin:0 auto;padding:16px}
.app-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
h1{font-size:1.25rem;margin:0;color:var(--accent-dark)}
.link-btn{background:none;border:none;color:var(--accent);font-weight:600}
.prayer-area{display:grid;grid-template-columns:1fr;gap:12px}
.card{background:var(--card);padding:14px;border-radius:12px;box-shadow:0 6px 18px rgba(17,75,70,0.06)}
.prayer-text{font-size:1rem;color:var(--muted);line-height:1.4}
.controls{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}
button{background:var(--accent);border:none;color:white;padding:8px 12px;border-radius:8px;font-weight:600}
button:active{transform:translateY(1px)}
.beads-wrapper{display:flex;justify-content:center;align-items:center}
#beadsSvg{width:100%;max-width:640px;height:auto;touch-action:manipulation}
.hidden{display:none}
#reflection textarea{width:100%;padding:10px;border-radius:8px;border:1px solid #e6efe9}
.notes-panel{max-height:60vh;overflow:auto}
.notes-list{list-style:none;padding:0;margin:0}
.notes-list li{padding:8px;border-bottom:1px solid #eef6f4}
@media(min-width:700px){.prayer-area{grid-template-columns:360px 1fr}}

/* bead styles (SVG circle classes) */
.bead{fill:#e6f6f4;stroke:#c3e9e4;stroke-width:2;cursor:pointer;transition:fill .12s ease, stroke .12s ease}
.bead.small{}
.bead.large{}
.bead.current{fill:var(--accent);stroke:var(--accent-dark);stroke-width:3}
.bead.past{fill:#eef9f7}

/* Fixed nav controls */
.fixed-controls{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:1200;background:transparent;padding:6px;border-radius:12px}
.fixed-controls button{padding:10px 16px;border-radius:999px;box-shadow:0 6px 18px rgba(17,75,70,0.08)}

/* Note form styling inside panel */
.note-form{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.note-form label{display:flex;flex-direction:column;font-size:0.9rem;color:var(--muted)}
.note-form input,.note-form textarea{padding:8px;border-radius:8px;border:1px solid #e6efe9;margin-top:6px}
.note-controls{justify-content:flex-start}

/* Cross graphic */
.bead.cross{cursor:pointer;display:block}
.bead.cross image{width:54px;height:78px}
.bead.current.cross image{filter:drop-shadow(0 0 6px rgba(82,136,135,0.9))}
