:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#252525;background:#f7f5ef}
*{box-sizing:border-box}body{margin:0}.wrap{max-width:1080px;margin:auto;padding:0 20px}
.site-header{background:#fff;border-bottom:1px solid #ddd}.header-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{color:#252525;text-decoration:none}.brand strong{display:block;font-size:1.45rem}.brand span{font-size:.8rem;color:#6c6c6c}
nav{display:flex;gap:14px;flex-wrap:wrap}nav a{color:#3d5747;text-decoration:none;font-weight:600}
main{padding-top:28px;padding-bottom:50px}h1,h2,h3{color:#293d32}a{color:#365f49}
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.card,.panel{background:#fff;border:1px solid #ddd;border-radius:8px;padding:20px}
.card h2{margin-top:0}.muted{color:#707070}.meta{font-size:.88rem;color:#737373}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.button,button,input[type=submit]{display:inline-block;border:0;border-radius:6px;padding:10px 15px;background:#3d624d;color:#fff;text-decoration:none;font-weight:650;cursor:pointer}
.button.secondary{background:#6b716d}.button.danger{background:#8a3434}
form .row{margin-bottom:16px}label{display:block;font-weight:650;margin-bottom:5px}input[type=text],input[type=email],input[type=password],input[type=date],select,textarea{width:100%;padding:10px;border:1px solid #bbb;border-radius:5px;background:#fff;font:inherit}textarea{min-height:150px}
table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:10px;border-bottom:1px solid #ddd;vertical-align:top}th{background:#f1f1ed}
.flash{padding:12px 15px;border-radius:6px;margin-bottom:18px}.flash.success{background:#e4f1e7}.flash.error{background:#f5dddd}
.badge{display:inline-block;padding:3px 8px;border-radius:99px;background:#e9ece8;font-size:.78rem}.footer{border-top:1px solid #ddd;padding-top:18px;padding-bottom:30px;color:#777}
.login-box{max-width:520px;margin:30px auto}.entry{margin-bottom:16px}.entry h3{margin-bottom:5px}.prose{white-space:pre-wrap;line-height:1.6}
@media(max-width:760px){.header-inner{align-items:flex-start;flex-direction:column;padding-top:16px;padding-bottom:16px}}

/* Prayers listing */
.prayer-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),340px));gap:16px;align-items:start}
.prayer-card-grid .entry{margin-bottom:0;min-width:0;overflow-wrap:anywhere}
.status-filter{display:flex;flex-wrap:wrap;gap:10px 20px;border:0;padding:0;margin:0 0 16px}
.status-filter legend{font-weight:650;margin-bottom:8px}
.status-filter label{display:inline-flex;align-items:center;gap:6px;font-weight:400;margin:0}
.status-filter input{margin:0}
