:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0b1f4d;
  background: #f7fafc;
  --ink: #0b1f4d;
  --muted: #6b7c99;
  --brand: #177f91;
  --brand-dark: #126979;
  --brand-soft: #e8f5f7;
  --line: #dde7ef;
  --surface: #ffffff;
  --shadow: 0 16px 40px rgba(20, 79, 96, .08);
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 48px 32px;
  background:
    radial-gradient(circle at 10% 0%, rgba(205, 236, 229, .75), transparent 28rem),
    var(--background, #f4f8f7);
}

main {
  width: min(100%, 1080px);
  min-height: 520px;
  margin: 0 auto;
  padding: 42px 48px;
  background: var(--surface);
  border: 1px solid rgba(220, 232, 229, .9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

main::before {
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 30px;
  content: "";
  border-radius: 999px;
  background: var(--brand);
}

h1, h2, h3 { color: var(--ink); letter-spacing: -.025em; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.05; }
h2 { margin: 34px 0 14px; font-size: 1.35rem; }
p, li { line-height: 1.65; }
p { margin: 12px 0; }
a { color: var(--brand); font-weight: 650; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
.muted { color: var(--muted); font-size: .95rem; }

nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfa;
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 11px 18px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
button:hover, .button:hover { border-color: var(--brand-dark); background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #9ddbd1; outline-offset: 2px; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.invite-actions button, .invite-actions .button { margin: 0; }
nav .button { width: 100%; margin-top: 0; }

article, .card {
  margin: 16px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 67, 62, .04);
}

form { max-width: 680px; }
label { display: block; margin-top: 20px; color: var(--ink); font-weight: 700; }
input, textarea, select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid #cbdad6;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); }
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; margin-right: 7px; accent-color: var(--brand); }
fieldset { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
fieldset label { font-weight: 500; }
.inline { display: inline; }
.inline button { margin-right: 8px; }
.notification-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.notification-actions form { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.notification-actions button { margin: 0; }
.notification-actions .secondary-button { border-color: #b85d66; background: #fff; color: #9b3f49; }
.notification-actions .secondary-button:hover { border-color: #9b3f49; background: #fff1f2; color: #852e3b; }
.notification-actions a { font-size: .9rem; }
.error, .success { margin: 20px 0; padding: 14px 16px; border-radius: 10px; }
.error { color: #8c2929; border: 1px solid #f1caca; background: #fff4f4; }
.success { color: #17633b; border: 1px solid #bfe5d0; background: #effaf3; }
small { color: var(--muted); }

/* Pre-login desktop experience */
.mobile-prelogin { display: none; }
.prelogin-body { padding: 0; background: #f7f9fd; color: #172442; }
.prelogin-shell { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 25% 24%, #fff 0, #f7f9fd 48%, #f3f6fc 100%); }
.prelogin-header { height: 71px; flex: 0 0 71px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(32px, calc((100vw - 1340px) / 2)); border-bottom: 1px solid #dfe5ef; background: rgba(255,255,255,.82); }
.prelogin-brand { display: inline-flex; align-items: center; gap: 13px; color: #142243; font-size: 2rem; font-weight: 800; letter-spacing: -.06em; text-decoration: none; }
.prelogin-bird, .hero-bird { display: inline-grid; place-items: center; color: #7896f1; font-size: 1.65rem; transform: rotate(-28deg); }
.prelogin-nav { display: flex; align-items: center; gap: 31px; margin: 0; padding: 0; border: 0; background: none; }
.prelogin-nav a { color: #172442; font-size: .94rem; text-decoration: none; white-space: nowrap; }
.prelogin-nav .prelogin-create { padding: 13px 23px; border-radius: 9px; background: #3159dc; color: white; box-shadow: 0 5px 12px #3159dc2b; }
.prelogin-main { width: min(100% - 64px, 1310px); min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 537px; gap: 56px; margin: 0 auto; padding: 34px 0 28px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.prelogin-main::before { display: none; }
.prelogin-left { min-width: 0; padding-top: 8px; }
.hero-brand { display: flex; align-items: center; gap: 24px; color: #0f1e43; font-size: 5rem; font-weight: 800; line-height: 1; letter-spacing: -.075em; }
.hero-bird { font-size: 4rem; }
.prelogin-left h1 { margin: 18px 0 13px; color: #172849; font-size: 1.8rem; letter-spacing: -.035em; }
.hero-copy { margin: 0; color: #526381; font-size: 1.05rem; line-height: 1.48; }
.benefits { display: flex; gap: 17px; margin-top: 24px; }
.benefit { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 69px; padding: 12px; border: 1px solid #dce3ef; border-radius: 13px; background: #fff; }
.benefit-icon, .stat-icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; color: #6846de; background: #f0edff; font-size: 1.35rem; }
.benefit-icon.blue, .stat-icon.blue { color: #3260e3; background: #edf2ff; }
.benefit-icon.green, .stat-icon.green { color: #3c9661; background: #eaf7ec; }
.benefit strong, .benefit small { display: block; white-space: nowrap; }
.benefit strong { color: #172442; font-size: .84rem; }
.benefit small { margin-top: 4px; color: #53627e; font-size: .72rem; }
.feed-preview, .login-card, .community-card { border: 1px solid #e1e7f0; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(37,59,101,.07); }
.feed-preview { margin-top: 32px; padding: 15px 15px 7px; }
.feed-preview h2, .community-card h2 { margin: 0 11px 11px; color: #172442; font-size: 1.05rem; }
.preview-post { display: grid; grid-template-columns: 48px 1fr; gap: 14px; margin: 0; padding: 15px; border: 1px solid #e8edf4; border-radius: 11px; box-shadow: none; }
.post-avatar { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: linear-gradient(145deg,#efdccf,#ad8465); color: white; font-size: .7rem; font-weight: 700; }
.post-avatar.anonymous { background: #e6edff; color: #5978e9; font-size: 1.5rem; }
.post-head { display: flex; align-items: center; gap: 7px; color: #7d8aa1; font-size: .75rem; }
.post-head strong { color: #172442; font-size: .85rem; }
.post-head em { padding: 3px 8px; border-radius: 999px; background: #f2edff; color: #7151da; font-size: .65rem; font-style: normal; }
.post-head b { margin-left: auto; letter-spacing: 1px; }
.post-content p { margin: 7px 0 10px; color: #243453; font-size: .77rem; line-height: 1.45; }
.post-actions { display: flex; align-items: center; gap: 20px; color: #53627e; font-size: .72rem; }
.pray-pill { padding: 5px 11px; border-radius: 5px; background: #eeeaff; color: #775ce3; }
.praying-count { margin-left: auto; }
.prelogin-right { display: grid; align-content: start; gap: 22px; padding-top: 0; }
.login-card { padding: 32px 41px 25px; }
.login-card h2 { margin: 0; color: #101f45; font-size: 1.55rem; letter-spacing: -.04em; }
.login-subtitle { margin: 6px 0 21px; color: #697891; font-size: .95rem; }
.login-card form { max-width: none; }
.login-card label { margin-top: 17px; color: #172442; font-size: .79rem; }
.label-row { display: flex; justify-content: space-between; }
.label-row a { color: #3159dc; font-size: .76rem; text-decoration: none; }
.input-wrap { display: flex; align-items: center; gap: 12px; height: 47px; margin-top: 8px; padding: 0 13px; border: 1px solid #cbd6e6; border-radius: 9px; color: #3a4c70; }
.input-wrap input { height: 100%; margin: 0; padding: 0; border: 0; outline: 0; box-shadow: none; font-size: .9rem; }
.input-wrap input::placeholder { color: #8996ad; }
.login-button { width: 100%; height: 40px; margin-top: 16px; border: 0; border-radius: 8px; background: #3159dc; font-size: .9rem; }
.or-divider { display: flex; align-items: center; gap: 15px; margin: 20px 0 13px; color: #64728c; font-size: .8rem; }
.or-divider span { height: 1px; flex: 1; background: #dfe5ef; }
.outline-button { display: flex; align-items: center; justify-content: center; height: 42px; border: 1px solid #5b7ff0; border-radius: 8px; color: #3159dc; font-size: .9rem; text-decoration: none; }
.trust-note { margin: 20px 0 0; text-align: center; color: #596985; font-size: .74rem; }
.login-card .error, .login-card .success { margin: 10px 0; padding: 9px 11px; font-size: .75rem; }
.community-card { overflow: hidden; padding: 18px 24px 0; }
.community-card h2 { margin: 0 0 21px; font-size: 1.02rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 20px; }
.stats > div { display: grid; grid-template-columns: 43px 1fr; align-items: center; column-gap: 10px; }
.stat-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; }
.stats strong { color: #20376f; font-size: 1rem; }
.stats small { color: #53627e; font-size: .7rem; }
.quote { position: relative; display: flex; gap: 14px; margin: 0; padding: 23px 0 25px; border-top: 1px solid #e0e6ef; color: #26375a; }
.quote > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #f0edff; color: #8267df; }
.quote p { margin: 0; font-size: .76rem; line-height: 1.55; }
.quote small { display: block; margin-top: 9px; color: #5b76d2; font-size: .68rem; }
.quote b { position: absolute; right: 8px; top: 17px; color: #7090ed; font-size: 2rem; font-weight: 300; }
.prelogin-footer { width: min(100% - 64px, 1310px); display: flex; justify-content: space-between; align-items: center; margin: auto; padding: 0 0 17px; color: #596985; font-size: .75rem; }
.prelogin-footer nav { display: flex; gap: 38px; margin: 0; padding: 0; border: 0; background: none; }
.prelogin-footer a { color: #596985; font-weight: 500; text-decoration: none; }

@media (max-width: 1050px) { .prelogin-main { grid-template-columns: minmax(0,1fr) 440px; gap: 28px; } .benefits { gap: 8px; } .benefit { padding: 9px; } .benefit strong { font-size: .75rem; } .benefit small { font-size: .65rem; } }
@media (max-width: 800px) { .prelogin-header { padding: 0 20px; } .prelogin-nav { gap: 14px; } .prelogin-nav a:not(.prelogin-create) { display: none; } .prelogin-main { display: block; width: min(100% - 36px, 560px); padding-top: 30px; } .prelogin-left { display: none; } .prelogin-right { padding: 0; } .prelogin-footer { width: min(100% - 36px, 560px); padding: 0 0 18px; } .prelogin-footer nav { gap: 14px; } }

@media (max-width: 800px) {
  .prelogin-body { background: #fff; }
  .prelogin-header { display: none; }
  .mobile-prelogin { display: block; width: 100%; min-height: 0; margin: 0; padding: 38px 18px 16px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
  .mobile-prelogin::before { display: none; }
  .mobile-brand { display: flex; align-items: center; gap: 12px; color: #122047; font-size: 2.35rem; font-weight: 800; letter-spacing: -.07em; }
  .mobile-brand .hero-bird { font-size: 2rem; }
  .mobile-language, .mobile-help { margin-left: auto; color: #1d2e55; font-size: 1rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
  .mobile-help { margin-left: 4px; }
  .mobile-prelogin h1 { margin: 55px 0 12px; color: #101f45; font-size: 2.55rem; line-height: 1.1; letter-spacing: -.06em; }
  .mobile-copy { margin: 0; color: #5e6f92; font-size: 1.06rem; line-height: 1.55; }
  .mobile-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 26px; }
  .mobile-auth-actions .login-button, .mobile-auth-actions .outline-button { width: 100%; height: 58px; margin: 0; font-size: 1.05rem; font-weight: 700; }
  .mobile-trust { margin: 27px 0 33px; text-align: center; color: #5d6e92; font-size: .9rem; }
  .mobile-benefits { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 0; }
  .mobile-benefits .benefit { display: block; min-height: 104px; padding: 13px 10px; border-radius: 15px; box-shadow: 0 7px 18px rgba(38,58,100,.06); }
  .mobile-benefits .benefit-icon { float: left; margin-right: 8px; width: 40px; height: 40px; }
  .mobile-benefits .benefit strong { padding-top: 4px; white-space: normal; font-size: .82rem; line-height: 1.35; }
  .mobile-benefits .benefit small { clear: both; padding-top: 10px; font-size: .74rem; line-height: 1.35; white-space: normal; }
  .mobile-feed { margin-top: 35px; padding: 18px 10px 10px; border-radius: 17px; }
  .mobile-feed h2 { margin: 0 9px 18px; font-size: 1.05rem; }
  .mobile-post { display: grid; grid-template-columns: 54px 1fr; gap: 13px; margin: 0 0 17px; padding: 18px 16px; border: 1px solid #edf0f5; border-radius: 17px; box-shadow: 0 8px 23px rgba(41,61,102,.07); }
  .mobile-post .post-avatar { width: 49px; height: 49px; }
  .mobile-post .post-head { font-size: .86rem; }
  .mobile-post .post-head strong { font-size: 1rem; }
  .mobile-post .post-content p { margin: 12px 0 18px; color: #16264d; font-size: .95rem; line-height: 1.45; }
  .mobile-post .post-actions { gap: 14px; font-size: .8rem; }
  .mobile-post .pray-pill { padding: 14px 16px; background: #3159dc; color: white; font-size: .85rem; font-weight: 650; }
  .mobile-category { display: inline-block; margin-top: 11px; padding: 5px 9px; border-radius: 999px; background: #f0eaff; color: #6746de; font-size: .78rem; font-style: normal; }
  .mobile-quote { position: relative; margin-top: 15px; padding: 28px 20px 27px; border-radius: 17px; overflow: hidden; background: linear-gradient(145deg,#eef3ff,#d9e6fb); color: #182a54; }
  .mobile-quote::after { content: ''; position: absolute; right: -25px; bottom: -40px; width: 70%; height: 80px; border-radius: 50% 50% 0 0; background: #b9cdf8; opacity: .8; }
  .mobile-quote p { position: relative; z-index: 1; margin: 0; font-size: 1rem; line-height: 1.55; }
  .mobile-quote small { display: block; margin-top: 12px; color: #3159dc; font-size: .8rem; }
  .mobile-quote b { position: absolute; z-index: 1; right: 35px; top: 25px; color: #6d8fe5; font-size: 3rem; font-weight: 300; }
  .mobile-community { margin: 22px 0 0; text-align: center; color: #607195; font-size: .9rem; }
  .prelogin-main, .prelogin-footer { display: none; }
  .mobile-form .mobile-prelogin { display: none; }
  .mobile-form .prelogin-main { display: block; width: min(100% - 36px, 560px); padding: 30px 0; }
  .mobile-form .prelogin-left { display: none; }
  .mobile-form .prelogin-right { display: block; }
  .mobile-form .login-card { padding: 27px 22px; }
  .mobile-form .prelogin-footer { display: flex; width: min(100% - 36px, 560px); }
}

@media (max-width: 720px) {
  body { padding: 18px 12px; }
  main { min-height: 0; padding: 28px 20px; border-radius: 18px; }
  main::before { margin-bottom: 24px; }
  nav { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
}

@media (max-width: 430px) {
  h1 { font-size: 1.85rem; }
  nav { grid-template-columns: 1fr; }
  article, .card { padding: 18px; }
}

/* Standalone mobile-first landing page. */
.landing-body { padding: 0; background: #fff; }
.landing-prelogin { display: block; width: min(100%, 760px); min-height: 100vh; margin: 0 auto; padding: 42px 28px 24px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.landing-prelogin::before { display: none; }
.landing-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 58px; }
.landing-topbar .mobile-brand { font-size: 2.2rem; }
.landing-topbar .hero-bird { font-size: 1.9rem; }
.landing-tools { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; border: 0; background: transparent; }
.landing-tools a { color: #1d2e55; font-size: 1rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.landing-prelogin h1 { max-width: 600px; margin: 0 0 12px; color: #101f45; font-size: clamp(2.55rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.06em; }
.landing-prelogin .mobile-copy { font-size: 1.08rem; }
.landing-prelogin .mobile-auth-actions { max-width: 590px; }
.landing-prelogin .mobile-benefits { max-width: 650px; }
.landing-prelogin .mobile-feed { max-width: 700px; }

@media (max-width: 800px) {
  .landing-prelogin { width: 100%; padding: 38px 18px 16px; }
  .landing-topbar { margin-bottom: 55px; }
  .landing-topbar .mobile-brand { font-size: 2.35rem; }
  .landing-topbar .hero-bird { font-size: 2rem; }
  .landing-tools { gap: 6px; }
  .landing-tools a { font-size: 1rem; }
  .landing-tools a:first-child { margin-left: auto; }
  .landing-prelogin h1 { margin: 0 0 12px; font-size: 2.55rem; }
}

@media (max-width: 390px) {
  .landing-tools { gap: 2px; }
  .landing-tools a { font-size: .9rem; }
  .mobile-auth-actions { gap: 10px; }
  .mobile-auth-actions .login-button, .mobile-auth-actions .outline-button { font-size: .94rem; }
  .mobile-benefits { gap: 8px; }
  .mobile-benefits .benefit { padding-left: 8px; padding-right: 8px; }
}

/* Consistent outline icon system for the Pray home navigation and actions. */
.ui-icon { display: inline-block; width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.side-icon .ui-icon { width: 24px; height: 24px; vertical-align: middle; stroke-width: 1.75; }
.side-cta .ui-icon { width: 24px; height: 24px; vertical-align: -.2em; stroke-width: 1.75; }
.global-search > .ui-icon { width: 19px; height: 19px; stroke-width: 1.8; }
.notification-link .ui-icon { width: 21px; height: 21px; vertical-align: -.25em; stroke-width: 1.8; }
.filter-button .ui-icon { width: 18px; height: 18px; vertical-align: -.25em; stroke-width: 1.8; }
.filter-chevron { margin-left: 7px; font-size: 1.2rem; line-height: 0; }
.composer-options .ui-icon { width: 17px; height: 17px; stroke-width: 1.8; vertical-align: -.25em; }
.panel-link .ui-icon { width: 18px; height: 18px; vertical-align: -.25em; }
.invite-icon .ui-icon { width: 30px; height: 30px; stroke-width: 1.8; vertical-align: middle; }
.right-invite-cta .ui-icon { width: 19px; height: 19px; vertical-align: -.25em; }
.mobile-bottom-nav a > span .ui-icon { width: 21px; height: 21px; vertical-align: middle; stroke-width: 1.8; }
.people-icon .ui-icon { width: 18px; height: 18px; vertical-align: -.28em; }
.prayer-actions button .ui-icon { width: 16px; height: 16px; vertical-align: -.23em; }

/* App shell inspired by the desktop product mockup. */
.app-shell { min-height: 100vh; margin: -48px -32px; padding: 0; background: transparent; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; height: 74px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 250px; color: #172442; font-size: 1.85rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.brand-mark { color: #6687ee; font-size: 2rem; line-height: 1; }
.global-search { display: flex; align-items: center; gap: 10px; width: min(100%, 660px); height: 46px; margin: 0 auto; padding: 0 15px; border: 1px solid #d5dfec; border-radius: 11px; background: #fff; color: #8390a7; }
.global-search input { height: 100%; margin: 0; padding: 0; border: 0; outline: 0; color: var(--ink); }
.search-key { margin-left: auto; padding: 4px 8px; border-radius: 6px; background: #f1f4f8; font-size: .8rem; }
.top-actions { display: flex; align-items: center; gap: 18px; color: #172442; }
.top-actions a { color: #172442; text-decoration: none; }
.topbar .top-actions .global-language { order: 0; margin-left: 0; }
.top-actions .top-user-name { white-space: nowrap; }
.top-actions > span[aria-hidden="true"] { display: none; }
.top-actions > span.avatar { display: inline-grid; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg,#d8e5ff,#8ea6e8); color: #1c326f; font-weight: 800; }
.app-body { display: grid; grid-template-columns: 292px minmax(0, 1fr); min-height: calc(100vh - 74px); }
.sidebar { display: flex; flex-direction: column; gap: 10px; padding: 26px 16px 26px; border-right: 1px solid var(--line); background: rgba(255,255,255,.72); }
.side-nav { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0; padding: 0; border: 0; background: transparent; }
.side-nav a { display: flex; align-items: center; gap: 15px; min-height: 52px; padding: 0 22px; border-radius: 11px; color: #243453; font-weight: 600; text-decoration: none; white-space: nowrap; }
.side-nav a:hover, .side-nav a.active { background: #edf2ff; color: #2f55da; }
.side-icon { width: 22px; color: currentColor; font-size: 1.15rem; text-align: center; }
.side-cta { width: 100%; margin: 22px 0 0; background: #3557dc; border-color: #3557dc; }
.right-invite-cta { width: 100%; margin: 0 0 14px; border-color: #f0c27b; background: #f7d8a6; color: #704919; }
.right-invite-cta:hover { border-color: #e8b666; background: #f3c982; color: #5f3c13; }
.quote-card { margin-top: auto; padding: 24px 20px; border-radius: 12px; background: linear-gradient(145deg,#eef3ff,#d9e6fb); color: #30446f; }
.quote-card p { margin: 0; font-size: .9rem; }
.quote-card small { display: block; margin-top: 16px; color: #5571bf; }
.app-page { min-width: 0; padding: 38px 46px; }
.app-main { width: min(100%, 1260px); min-height: 0; margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-main::before { display: none; }

/* Dedicated administration shell. It intentionally does not reuse the user app navigation. */
.admin-body { min-height: 100vh; padding: 0; background: #f4f8f7; }
.admin-shell { min-height: 100vh; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; height: 74px; padding: 0 34px; background: #177f91; color: #fff; }
.admin-brand { color: #fff; font-size: 1.85rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.admin-brand:hover { color: #fff; }
.admin-brand span { margin-left: 8px; color: #ccebef; font-size: .8rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }
.admin-top-actions, .admin-top-actions a { color: #fff; }
.admin-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 74px); }
.admin-sidebar { display: flex; flex-direction: column; padding: 28px 16px; border-right: 1px solid #d9e7e5; background: #fff; }
.admin-sidebar-label { margin: 0 14px 14px; color: #71828e; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.admin-nav { display: grid; grid-template-columns: 1fr; gap: 5px; margin: 0; padding: 0; border: 0; background: transparent; }
.admin-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 9px; color: #243453; font-size: .94rem; font-weight: 650; text-decoration: none; }
.admin-nav a:hover, .admin-nav a.active { background: #e8f5f7; color: #126979; }
.admin-site-link { margin: auto 14px 0; color: #6b7c99; font-size: .9rem; font-weight: 600; text-decoration: none; }
.admin-main { width: auto; min-width: 0; min-height: 0; margin: 0; padding: 42px 48px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.admin-main::before { display: none; }

/* Same Admin navigation for the legacy Admin pages while they are being migrated to the shell. */
.admin-injected-body { min-height: 100vh; padding: 74px 0 0; background: #f4f8f7; }
.admin-injected-body > .admin-topbar { position: fixed; inset: 0 0 auto; z-index: 20; }
.admin-injected-sidebar { position: fixed; z-index: 15; inset: 74px auto 0 0; display: flex; width: 250px; flex-direction: column; padding: 28px 16px; border-right: 1px solid #d9e7e5; background: #fff; }
.admin-injected-body > main { width: auto; min-height: calc(100vh - 74px); margin: 0 0 0 250px; padding: 42px 48px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.admin-injected-body > main::before { display: none; }

.admin-main > h1 { margin-top: 0; }

@media (max-width: 720px) {
  .admin-topbar { height: 64px; padding: 0 18px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 14px 12px; border-right: 0; border-bottom: 1px solid #d9e7e5; }
  .admin-sidebar-label { margin-bottom: 8px; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-site-link { margin: 14px; }
  .admin-main { padding: 28px 20px; }
  .admin-injected-body { padding-top: 64px; }
  .admin-injected-body > .admin-topbar { height: 64px; }
  .admin-injected-sidebar { position: static; width: auto; padding: 14px 12px; border-right: 0; border-bottom: 1px solid #d9e7e5; }
  .admin-injected-body > main { min-height: 0; margin: 0; padding: 28px 20px; }
}
.legacy-app-main { width: min(100%, 1080px); min-height: 520px; margin: 0 auto; padding: 42px 48px; }
.feed-layout { display: grid; grid-template-columns: minmax(480px, 1fr) 330px; gap: 44px; align-items: start; }
.feed-column { min-width: 0; }
.feed-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.feed-heading h1 { margin-bottom: 5px; font-size: 1.8rem; }
.feed-heading p { margin: 0; color: #68758c; }
.filter-button { margin: 0; background: #fff; color: #243453; border-color: #d5dfec; }
.composer { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; margin-bottom: 14px; padding: 18px; border: 1px solid #e1e8f0; border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(31,67,62,.04); }
.composer textarea { height: 66px; min-height: 0; margin: 0; resize: none; }
.composer-error { grid-column: 2; width: 100%; margin: 0; }
.composer-settings { grid-column: 2; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.composer-settings fieldset { min-width: 0; margin: 0; padding: 13px 14px; border-color: #dce8ed; border-radius: 12px; background: #fbfdfe; }
.composer-settings legend { padding: 0 5px; color: var(--ink); font-size: .82rem; font-weight: 750; }
.composer-settings label { display: flex; align-items: center; gap: 4px; margin: 7px 0 0; color: #30496a; font-size: .82rem; font-weight: 500; line-height: 1.25; }
.composer-settings input[type="radio"] { flex: 0 0 auto; margin: 0 4px 0 0; }
.composer-group-picker { display: block !important; margin-top: 11px !important; }
.composer-group-picker[hidden] { display: none !important; }
.composer-group-picker span { display: block; margin-bottom: 5px; font-weight: 650; }
.composer-group-picker select { margin: 0; padding: 8px 9px; font-size: .8rem; }
.composer-footer { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.composer-settings + .composer-footer { justify-content: flex-end; }
.prayer-meta .ui-icon { width: 14px; height: 14px; vertical-align: -.2em; }
.composer-options { display: flex; gap: 22px; color: #354666; font-size: .9rem; }
.composer-options span { white-space: nowrap; }
.composer .button { margin: 0; }
.prayer-card { position: relative; display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 14px; margin: 14px 0; padding: 18px; border: 1px solid #e5ebf2; border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(31,67,62,.04); }
.prayer-card article { margin: 0; padding: 0; border: 0; box-shadow: none; }
.prayer-card h3 { margin: 0; font-size: 1rem; }
.prayer-meta { display: flex; align-items: center; gap: 8px; color: #8090aa; font-size: .86rem; }
.prayer-card .category { display: inline-block; margin-top: 5px; padding: 3px 9px; border-radius: 999px; background: #f0eaff; color: #6b46c1; font-size: .75rem; font-weight: 700; }
.prayer-card .prayer-origin-badge { display: inline-block; margin-top: 5px; margin-left: 5px; padding: 3px 9px; border: 1px solid #b9dde6; border-radius: 999px; background: #eff9fb; color: #176f87; font-size: .75rem; font-weight: 700; }
.prayer-text { margin: 7px 0 14px; color: #354666; line-height: 1.5; }
.prayer-actions { display: flex; align-items: center; gap: 15px; }
.prayer-actions .button, .prayer-actions button { margin: 0; padding: 7px 14px; min-height: 36px; font-size: .86rem; }
.prayer-actions .secondary { background: transparent; border-color: transparent; color: #354666; }
.side-panel { margin-bottom: 14px; padding: 20px; border: 1px solid #e5ebf2; border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(31,67,62,.05); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; font-size: 1.05rem; }
.panel-heading a { font-size: .8rem; text-decoration: none; }
.group-row, .saved-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.group-thumb, .saved-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 9px; background: linear-gradient(145deg,#f4d9ae,#9d7151); color: #fff; font-weight: 800; }
.group-row strong, .saved-row strong { display: block; color: #253453; font-size: .86rem; }
.group-row small, .saved-row small { display: block; font-size: .76rem; }
.panel-link { display: block; margin-top: 12px; text-decoration: none; font-size: .85rem; }
.mobile-welcome, .mobile-bottom-nav, .mobile-search { display: none; }

/* Keep the main navigation independent from the grid used by action bars. */
.sidebar nav { grid-template-columns: 1fr; }

@media (max-width: 1100px) {
  .topbar { padding: 0 20px; }
  .brand { min-width: 180px; }
  .app-page { padding: 30px 24px; }
  .feed-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
}

@media (max-width: 820px) {
  .app-shell { margin: -18px -12px; }
  .topbar { gap: 12px; padding: 0 14px; }
  .brand { min-width: auto; font-size: 1.5rem; }
  .global-search { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .feed-layout { grid-template-columns: 1fr; }
  .app-page { padding: 24px 16px; }
}

/* Mobile home experience */
@media (max-width: 600px) {
  body { padding: 0; background: #fbfcff; }
  .app-shell { margin: 0; min-height: 100vh; padding-bottom: 78px; }
  .topbar { position: sticky; height: 74px; padding: 0 22px; border-bottom: 0; background: rgba(255,255,255,.92); }
  .brand { min-width: 0; gap: 10px; color: #111d42; font-size: 1.55rem; }
  .brand-mark { font-size: 1.9rem; }
  .mobile-search { display: block; margin-left: auto; color: #172442; font-size: 2rem; line-height: 1; text-decoration: none; }
  .top-actions { margin-left: auto; gap: 20px; }
  .top-actions a { position: relative; font-size: 0; color: #172442; }
  .top-actions a::before { content: '\1F514'; font-size: 1.55rem; }
  .top-actions .global-language { display: block; }
  .top-actions .global-language select { max-width: 88px; overflow: hidden; text-overflow: ellipsis; }
  .top-actions .top-user-name { display: none; }
  .top-actions a sup { display: none; }
  .app-body { display: block; min-height: 0; }
  .app-page { padding: 8px 18px 0; }
  .app-main { width: 100%; }
  .mobile-welcome { display: block; margin: 8px 4px 25px; }
  .welcome-line { display: flex; align-items: center; gap: 14px; }
  .welcome-line h1 { margin: 0; color: #182344; font-size: 1.38rem; font-weight: 500; letter-spacing: -.04em; }
  .welcome-line h1 strong { color: #4164d6; font-weight: 700; }
  .sun-icon { color: #f3b84f; font-size: 2.1rem; line-height: 1; }
  .mobile-welcome p { margin: 13px 0 0; color: #5f6d88; font-size: .93rem; }
  .people-icon { margin-right: 8px; color: #5e6b87; font-size: 1.3rem; vertical-align: -2px; }
  .feed-heading { display: none; }
  .feed-layout { display: block; }
  .right-rail { display: none; }
  .composer { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; margin: 0 0 23px; padding: 22px 18px 20px; border: 0; border-radius: 23px; box-shadow: 0 8px 28px rgba(34,49,90,.08); }
  .composer .avatar { width: 48px; height: 48px; }
  .composer textarea { height: 80px; padding: 10px 14px; border: 1px solid #e1e6f0; border-radius: 17px; background: #fbfcff; font-size: .95rem; }
  .composer-footer { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .composer-options { display: contents; }
  .composer-options span { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 15px; background: #f1f2fb; color: #29365b; font-size: .78rem; font-weight: 650; }
  .composer-options span:nth-child(2) { color: #5366d9; background: #f3f0ff; }
  .composer-options span:nth-child(3) { color: #3469d4; background: #eef7ff; }
  .composer-footer button { display: inline-flex; grid-column: 1 / -1; width: 100%; margin-top: 0; }
  .prayer-card { grid-template-columns: 48px minmax(0,1fr); gap: 13px; margin: 0 0 21px; padding: 20px 18px 18px; border: 0; border-radius: 23px; box-shadow: 0 7px 25px rgba(34,49,90,.075); }
  .prayer-card .avatar { width: 48px; height: 48px; }
  .prayer-card h3 { color: #121e41; font-size: 1rem; }
  .prayer-meta { gap: 7px; font-size: .8rem; }
  .prayer-card .category { margin-top: 8px; font-size: .75rem; }
  .prayer-text { margin: 11px 0 18px; color: #172344; font-size: .96rem; line-height: 1.48; }
  .prayer-actions { flex-wrap: wrap; gap: 9px; }
  .prayer-actions .inline { order: 1; flex: 1 0 100%; }
  .prayer-actions .inline button { width: auto; min-width: 0; padding: 10px 17px; border-radius: 14px; background: #3c5edc; border-color: #3c5edc; font-size: .82rem; }
  .prayer-actions .secondary { order: 2; padding: 0; min-height: 30px; color: #63708a; }
  .prayer-actions .muted { order: 3; margin-left: auto; font-size: .78rem; }
  .mobile-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: flex; justify-content: space-around; height: 78px; padding: 9px 8px max(9px, env(safe-area-inset-bottom)); border-top: 1px solid #e5e9f1; background: rgba(255,255,255,.97); box-shadow: 0 -5px 20px rgba(29,43,84,.05); }
  .mobile-bottom-nav a { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #52607e; font-weight: 500; text-decoration: none; }
  .mobile-bottom-nav a span { font-size: 1.55rem; line-height: 1; }
  .mobile-bottom-nav a small { color: inherit; font-size: .7rem; }
  .mobile-bottom-nav a.active { color: #385bd7; }
  .mobile-bottom-nav a.active::before { position: absolute; inset: 0 7px; z-index: -1; content: ''; border-radius: 17px; background: #eef2ff; }
  .mobile-bottom-nav .has-notification::after { position: absolute; top: 9px; right: 25%; width: 8px; height: 8px; content: ''; border: 2px solid #fff; border-radius: 50%; background: #4165d8; }
}
.global-language{flex:0 0 auto;font-size:.85rem}.global-language form{display:flex;align-items:center;gap:.45rem}.global-language label{color:#64748b}.global-language select{border:0;background:transparent;color:#172442;font:inherit;cursor:pointer;outline:none}.global-language button{border:0;background:#3159df;color:#fff;border-radius:999px;padding:.25rem .55rem}.topbar .global-language{order:4;margin-left:0}.site-header .global-language{margin-left:auto}
.global-language{position:relative}.language-menu{position:relative}.language-menu summary{display:flex;align-items:center;gap:.55rem;min-width:92px;padding:.45rem .35rem;color:#172442;cursor:pointer;list-style:none;white-space:nowrap}.language-menu summary::-webkit-details-marker{display:none}.language-options{position:absolute;top:calc(100% + 8px);right:0;z-index:1000;display:grid;min-width:150px;padding:6px;border:1px solid #d5dfec;border-radius:10px;background:#fff;box-shadow:0 12px 30px rgba(23,36,66,.14)}.language-options a{padding:9px 11px;border-radius:7px;color:#172442;text-decoration:none;white-space:nowrap}.language-options a:hover,.language-options a[aria-current="true"]{background:#edf2ff;color:#2f55da}
.site-header{position:sticky;top:0;z-index:900;display:flex;align-items:center;height:74px;margin:-48px -32px 38px;padding:0 30px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.94);backdrop-filter:blur(14px)}.site-brand{display:inline-flex;align-items:center;gap:10px;color:#172442;font-size:1.85rem;font-weight:800;letter-spacing:-.05em;text-decoration:none}.site-brand-mark{color:#6687ee;font-size:2rem;line-height:1}
@media(max-width:600px){.site-header{height:74px;margin:0 0 20px;padding:0 22px}.site-brand{font-size:1.55rem}.site-brand-mark{font-size:1.9rem}}

/* Pray home — calm teal product layout */
.site-header {
  height: 66px;
  padding: 0 26px;
  border-bottom-color: rgba(255,255,255,.14);
  background: linear-gradient(112deg, #218ba0 0%, #177f91 58%, #116f82 100%);
  box-shadow: 0 8px 26px rgba(10,74,90,.13);
  backdrop-filter: none;
}
.site-brand, .site-brand:hover { color: #fff; font-size: 1.55rem; }
.site-brand-logo { width: 31px; height: 31px; object-fit: contain; display: block; }
.site-brand-mark { color: #fff; }
.site-header .language-menu summary { color: #fff; }

.app-shell {
  color: var(--ink);
  background:
    radial-gradient(circle at 67% 18%, rgba(218, 240, 244, .5), transparent 28rem),
    linear-gradient(135deg, #f9fcfd 0%, #f5f9fc 58%, #f8fbfd 100%);
}
.topbar {
  height: 66px;
  gap: 25px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(112deg, #218ba0 0%, #177f91 55%, #116f82 100%);
  box-shadow: 0 8px 28px rgba(10, 74, 90, .14);
  color: #fff;
  backdrop-filter: none;
}
.brand-lockup { display: flex; align-items: center; gap: 18px; min-width: 325px; }
.brand { min-width: auto; gap: 8px; color: #fff; font-size: 1.55rem; letter-spacing: -.045em; }
.brand:hover { color: #fff; }
.brand-mark, .site-brand-mark { display: inline-flex; align-items: center; color: #fff; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 1.75rem; line-height: 1; filter: drop-shadow(0 2px 8px rgba(255,255,255,.18)); }
.brand-logo { width: 31px; height: 31px; object-fit: contain; display: block; filter: drop-shadow(0 2px 8px rgba(255,255,255,.18)); }
.brand-mark .ui-icon, .site-brand-mark svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.global-search {
  width: min(100%, 680px);
  height: 38px;
  margin: 0 auto;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(255,255,255,.17);
  color: rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.global-search input { color: #fff; background: transparent; }
.global-search input::placeholder { color: rgba(255,255,255,.82); opacity: 1; }
.top-actions { gap: 13px; color: #fff; font-size: .86rem; }
.top-actions a, .top-actions .top-user-name { color: #fff; }
.notification-link { position: relative; font-size: 1.25rem; font-weight: 400; line-height: 1; }
.notification-link sup { position: absolute; top: -7px; right: -8px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #177f91; border-radius: 99px; background: #f05b68; color: #fff; font-size: .58rem; }
.topbar .avatar { width: 34px; height: 34px; background: rgba(211,242,248,.72); color: #126979; font-size: .88rem; }
.topbar .global-language { order: 0; }
.topbar .language-menu summary { color: #fff; }
.language-globe { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; }
.language-globe svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar .language-options a { color: var(--ink); }
.topbar .language-options a:hover,
.topbar .language-options a[aria-current="true"] { color: var(--brand-dark); background: var(--brand-soft); }

.app-body { grid-template-columns: 310px minmax(0, 1fr); min-height: calc(100vh - 66px); }
.sidebar { gap: 12px; padding: 34px 26px 30px; border-right-color: #e6eef3; background: rgba(255,255,255,.86); }
.side-nav { gap: 8px; }
.side-nav a { min-height: 58px; padding: 0 20px; border-radius: 13px; color: #18305a; font-size: 1rem; font-weight: 560; }
.side-nav a:hover, .side-nav a.active { color: #12778a; background: linear-gradient(90deg, #e6f4f6, #edf8f9); }
.side-nav a.active { font-weight: 750; }
.side-icon { width: 25px; font-size: 1.25rem; }
.side-cta { min-height: 56px; margin: 22px 0 0; border-color: var(--brand); border-radius: 13px; background: linear-gradient(135deg, #2392a5, var(--brand)); box-shadow: 0 10px 22px rgba(23,127,145,.16); font-size: 1rem; }
.side-cta span { margin-right: 7px; font-size: 1.45rem; font-weight: 400; }
.quote-card { position: relative; overflow: hidden; margin-top: auto; padding: 27px 24px 34px; border: 1px solid #e2edf2; border-radius: 15px; background: linear-gradient(145deg,#f3f9fb,#e8f3f6); color: #68809e; }
.quote-card::after { position: absolute; right: -14px; bottom: -36px; width: 82px; height: 115px; content: ''; border-radius: 75% 0 75% 0; background: rgba(157,205,216,.22); transform: rotate(-24deg); }
.quote-card p { position: relative; z-index: 1; font-size: .9rem; line-height: 1.7; }
.quote-card small { position: relative; z-index: 1; margin-top: 20px; color: #6a9caf; }

.app-page { padding: 34px 38px 44px; }
.app-main { width: min(100%, 1320px); }
.feed-layout { grid-template-columns: minmax(520px, 1fr) 360px; gap: 38px; }
.feed-heading { align-items: center; margin: 0 4px 24px; }
.feed-heading h1 { margin: 0 0 6px; color: var(--ink); font-size: 1.34rem; letter-spacing: -.025em; }
.feed-heading p { color: var(--muted); font-size: .96rem; }
.filter-button { min-height: 48px; margin: 0; padding: 10px 18px; border-color: #e0e9ef; border-radius: 13px; background: #fff; color: #17325f; box-shadow: 0 8px 22px rgba(28,74,99,.05); }
.filter-button:hover { border-color: #c8dce4; background: #f8fcfd; color: var(--brand-dark); }
.filter-button span:first-child { margin-right: 6px; color: #42658c; }
.filter-button span:last-child { margin-left: 8px; }

.composer { grid-template-columns: 54px minmax(0,1fr); gap: 16px; margin-bottom: 14px; padding: 24px; border-color: #e1eaf0; border-radius: 17px; box-shadow: 0 12px 28px rgba(23,78,99,.07); }
.composer .avatar { width: 48px; height: 48px; background: linear-gradient(145deg,#e1f3f7,#a9d9e3); color: #0f7184; }
.composer textarea { height: 82px; padding: 16px 18px; border-color: #9db8bf; border-radius: 12px; background: #fff; color: var(--ink); }
.composer textarea::placeholder { color: #7b8fac; }
.composer textarea:focus { border-color: #7fbcc8; box-shadow: 0 0 0 3px rgba(23,127,145,.09); outline: 0; }
.composer-footer { gap: 22px; }
.composer-options { gap: 25px; color: #274369; }
.composer-options span { display: inline-flex; align-items: center; gap: 8px; }
.composer-options b { color: #31577d; font-size: .92rem; }
.composer-footer button { min-width: 142px; margin: 0; border-radius: 12px; background: linear-gradient(135deg,#2090a4,#177f91); box-shadow: 0 8px 18px rgba(23,127,145,.14); }

.prayer-card { border-color: #e1eaf0; border-radius: 17px; box-shadow: 0 10px 25px rgba(23,78,99,.055); }
.prayer-card .category { color: var(--brand-dark); background: var(--brand-soft); }
.prayer-text { color: #30496a; }

.empty-feed { position: relative; display: flex; min-height: 405px; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 70px 24px 100px; text-align: center; }
.empty-feed::before, .empty-feed::after { position: absolute; bottom: -95px; content: ''; width: 70%; height: 170px; border-radius: 50% 55% 0 0; background: rgba(218,236,243,.38); transform: rotate(-5deg); }
.empty-feed::before { left: 28%; }
.empty-feed::after { right: -22%; bottom: -122px; background: rgba(201,226,235,.28); transform: rotate(8deg); }
.empty-feed h2 { position: relative; z-index: 1; margin: 14px 0 0; color: var(--ink); font-size: 1.28rem; }
.empty-feed p { position: relative; z-index: 1; margin: 6px 0 0; color: var(--muted); }
.empty-botanical { position: relative; width: 108px; height: 108px; border-radius: 50%; background: rgba(231,243,247,.72); }
.empty-botanical::before { position: absolute; left: 52px; top: 25px; width: 3px; height: 67px; content: ''; border-radius: 99px; background: rgba(104,165,184,.35); transform: rotate(25deg); transform-origin: bottom; }
.empty-botanical span { position: absolute; width: 28px; height: 43px; border-radius: 95% 5% 95% 5%; background: rgba(124,181,199,.3); }
.empty-botanical span:nth-child(1) { left: 31px; top: 28px; transform: rotate(-32deg); }
.empty-botanical span:nth-child(2) { left: 55px; top: 21px; transform: rotate(40deg); }
.empty-botanical span:nth-child(3) { left: 54px; top: 55px; transform: rotate(58deg) scale(.85); }

.right-rail { padding-top: 0; }
.side-panel { margin-bottom: 26px; padding: 25px; border-color: #e2ebf0; border-radius: 17px; box-shadow: 0 12px 29px rgba(23,78,99,.065); }
.panel-heading { margin-bottom: 17px; }
.panel-heading h2 { color: var(--ink); font-size: 1.18rem; }
.panel-heading a, .panel-link { color: var(--brand); }
.panel-heading a { font-size: .88rem; }
.group-row { padding: 10px 0; text-decoration: none; }
.group-thumb { width: 54px; height: 54px; border-radius: 11px; background: linear-gradient(145deg,#e8bba9,#9f7797 48%,#253559); }
.group-row strong { color: var(--ink); font-size: .94rem; }
.group-row small { margin-top: 3px; color: var(--muted); }
.panel-link { display: flex; align-items: center; gap: 9px; margin-top: 15px; font-size: .9rem; }
.panel-link span { font-size: 1.35rem; font-weight: 400; }
.invite-panel { padding: 25px; }
.invite-copy { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 16px; align-items: start; }
.invite-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #edf7f9; color: var(--brand); font-size: 1.55rem; }
.invite-copy h2 { margin: 9px 0 5px; color: var(--ink); font-size: 1rem; }
.invite-copy p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.right-invite-cta { width: 100%; min-height: 52px; margin: 24px 0 0; border-color: #62aebc; border-radius: 11px; background: #fff; color: var(--brand); box-shadow: none; }
.right-invite-cta:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

@media (max-width: 1180px) {
  .brand-lockup { min-width: 225px; }
  .app-body { grid-template-columns: 260px minmax(0,1fr); }
  .sidebar { padding-inline: 18px; }
  .feed-layout { grid-template-columns: minmax(440px,1fr) 300px; gap: 24px; }
  .app-page { padding-inline: 24px; }
  .composer-options { gap: 14px; }
}

@media (max-width: 900px) {
  .topbar { height: 66px; padding: 0 18px; }
  .brand-lockup { min-width: auto; }
  .app-body { grid-template-columns: 1fr; min-height: calc(100vh - 66px); }
  .sidebar { display: none; }
  .feed-layout { grid-template-columns: minmax(0,1fr) 280px; }
  .top-user-name { display: none; }
}

@media (max-width: 760px) {
  body { background: #f7fafc; }
  .app-shell { margin: -18px -12px; }
  .topbar { gap: 13px; }
  .global-search { display: none; }
  .mobile-search { display: block; margin-left: auto; color: #fff; font-size: 1.65rem; text-decoration: none; }
  .top-actions { margin-left: 0; }
  .topbar .global-language { display: none; }
  .feed-layout { grid-template-columns: 1fr; }
  .right-rail { display: none; }
  .app-page { padding: 28px 18px 10px; }
  .mobile-welcome { display: none; }
  .feed-heading { display: flex; align-items: flex-start; }
  .feed-heading .filter-button { padding: 8px 11px; font-size: 0; }
  .feed-heading .filter-button span { margin: 0; font-size: 1.15rem; }
  .feed-heading .filter-button span:last-child { display: none; }
  .composer { grid-template-columns: 45px minmax(0,1fr); padding: 18px; border: 1px solid #e1eaf0; border-radius: 17px; }
  .composer .avatar { width: 43px; height: 43px; }
  .composer textarea { height: 76px; }
  .composer-footer { grid-column: 1 / -1; }
  .empty-feed { min-height: 330px; }
}

@media (max-width: 600px) {
  body { padding: 0; }
  body:not(.prelogin-body):not(.landing-body) .site-header { height: 66px; }
  body:not(.prelogin-body):not(.landing-body) .site-header { margin: 0 0 22px; }
  .app-shell { margin: 0; padding-bottom: 76px; }
  .topbar { height: 72px; padding: 0 17px; background: linear-gradient(112deg,#218ba0,#14788b); }
  .brand { font-size: 1.55rem; color: #fff; }
.brand-mark { font-size: 1.7rem; }
  .top-actions { gap: 13px; }
  .top-actions .notification-link { display: block; color: #fff; font-size: 1.35rem; }
  .top-actions .notification-link::before { content: none; }
  .topbar .avatar { width: 38px; height: 38px; }
  .app-page { padding: 24px 14px 0; }
  .feed-heading { margin-inline: 3px; margin-bottom: 18px; }
  .feed-heading h1 { font-size: 1.14rem; line-height: 1.25; }
  .feed-heading p { font-size: .86rem; }
  .composer { margin-bottom: 18px; padding: 16px; border-radius: 17px; box-shadow: 0 9px 25px rgba(23,78,99,.065); }
  .composer textarea { padding: 12px; border-radius: 12px; font-size: .9rem; }
  .composer-footer { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
  .composer-options { display: contents; }
  .composer-options span { justify-content: center; min-height: 42px; padding: 5px; border-radius: 11px; background: #f1f8f9; color: #2c536d; font-size: .72rem; }
  .composer-options span:nth-child(2), .composer-options span:nth-child(3) { color: #2c536d; background: #f1f8f9; }
  .composer-footer button { grid-column: 1 / -1; width: 100%; }
  .prayer-card { border: 1px solid #e1eaf0; border-radius: 17px; }
  .prayer-actions .inline button { border-color: var(--brand); background: var(--brand); }
  .empty-feed { min-height: 300px; padding-inline: 10px; }
  .mobile-bottom-nav { height: 76px; border-top-color: #dce8ed; box-shadow: 0 -6px 20px rgba(22,77,95,.06); }
  .mobile-bottom-nav a.active { color: var(--brand); }
  .mobile-bottom-nav a.active::before { background: var(--brand-soft); }
  .mobile-bottom-nav .has-notification::after { background: var(--brand); }
}

@media (max-width: 390px) {
  .topbar .avatar { display: none; }
  .composer { grid-template-columns: 1fr; }
  .composer > .avatar { display: none; }
  .feed-heading h1 { max-width: 250px; }
}

/* Header user menu */
.user-menu { position: relative; flex: 0 0 auto; }
.user-menu summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 5px; border-radius: 12px; color: #fff; cursor: pointer; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: rgba(255,255,255,.1); }
.user-menu summary:focus-visible { outline: 3px solid rgba(255,255,255,.55); outline-offset: 2px; }
.user-menu-popover { position: absolute; top: calc(100% + 10px); right: 0; z-index: 1000; width: 190px; overflow: hidden; padding: 7px; border: 1px solid #d9e5eb; border-radius: 13px; background: #fff; box-shadow: 0 16px 38px rgba(12,55,70,.2); }
.user-menu-identity { padding: 10px 12px 8px; color: #17325f; }
.user-menu-identity strong, .user-menu-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-identity span { margin-top: 3px; color: #718096; font-size: .84rem; }
.user-menu-divider { height: 1px; margin: 3px 5px 6px; background: #e7edf0; }
.top-actions .user-menu-popover a,
.top-actions .user-menu-popover button { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: flex-start; margin: 0; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: #17325f; font-size: .92rem; font-weight: 650; text-decoration: none; transform: none; }
.top-actions .user-menu-popover a::before { content: none; }
.top-actions .user-menu-popover a:hover,
.top-actions .user-menu-popover button:hover { background: #edf7f8; color: #126979; transform: none; }
.user-menu-popover form { width: 100%; max-width: none; margin: 0; border-top: 1px solid #edf1f4; }
.top-actions .user-menu-popover form button { color: #9a3e3e; }
.top-actions .user-menu-popover form button:hover { color: #852e2e; background: #fff2f2; }

/* Account hub */
.account-body { background: linear-gradient(145deg,#f4fafb,#f8fbfd); }
.account-page { width: min(100%, 1120px); }
.account-page::before { display: none; }
.account-back { margin: 0 0 24px; }
.account-back a { text-decoration: none; }
.account-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.account-heading h1 { margin: 0 0 5px; font-size: clamp(2rem,3vw,2.65rem); }
.account-heading p { margin: 0; color: var(--muted); }
.account-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(145deg,#dff3f6,#a9d9e3); color: var(--brand-dark); font-size: 1.35rem; font-weight: 800; }
.account-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.account-card { padding: 26px; border: 1px solid #e0e9ee; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(23,78,99,.055); }
.account-card h2 { margin: 0 0 18px; }
.account-details { margin: 0; }
.account-details div { padding: 14px 0; border-bottom: 1px solid #edf1f3; }
.account-details div:first-child { padding-top: 0; }
.account-details dt { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.account-details dd { margin: 5px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.account-profile-form { display: grid; gap: 13px; max-width: none; margin-bottom: 22px; }
.account-edit-row { display: grid; grid-template-columns: 1fr 1.5fr auto; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.account-edit-row input, .account-edit-row select { min-width: 0; margin: 0; }
.account-edit-row button { margin: 0; padding: 9px 12px; white-space: nowrap; }
.account-secondary-details { border-top: 1px solid #edf1f3; }
.account-actions { display: grid; gap: 10px; margin-top: 20px; }
.account-actions a { padding: 11px 13px; border-radius: 9px; background: var(--brand-soft); text-decoration: none; }
.account-eyebrow { margin: 0 0 6px; color: var(--brand); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.account-settings h2 { margin-bottom: 5px; }
.account-settings form { max-width: none; }
.account-check { font-weight: 600; }
.account-more { margin-top: 22px; }
.account-danger { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 22px 26px; border: 1px solid #eadede; border-radius: 16px; background: #fffafa; }
.account-danger h2 { margin: 0 0 4px; font-size: 1.12rem; }
.account-danger p { margin: 0; color: var(--muted); font-size: .9rem; }
.account-danger-actions { display: flex; align-items: center; gap: 18px; }
.account-danger-actions form { margin: 0; }
.account-danger-actions .secondary-danger { margin: 0; border-color: #cc7777; background: #fff; color: #923d3d; white-space: nowrap; }
.account-danger-actions .secondary-danger:hover { border-color: #a94f4f; background: #fff1f1; color: #7b2d2d; }
.account-danger-actions > a { color: #9a3e3e; white-space: nowrap; }

@media (max-width: 820px) {
  .user-menu .top-user-name { display: none; }
  .top-actions .user-menu-popover a { position: static; font-size: .92rem; }
  .account-grid { grid-template-columns: 1fr; }
  .account-danger { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .account-body .site-header { margin-bottom: 0; }
  .account-page { min-height: 0; padding: 26px 18px; border: 0; border-radius: 0; box-shadow: none; }
  .account-heading { align-items: flex-start; }
  .account-avatar { width: 52px; height: 52px; }
  .account-card { padding: 21px 18px; }
  .account-edit-row { grid-template-columns: 1fr; gap: 6px; }
  .account-edit-row button { justify-self: start; }
  .account-danger-actions { align-items: flex-start; flex-direction: column; }
  .user-menu-popover { right: -4px; }
}

@media (max-width: 390px) {
  .topbar .user-menu .avatar { display: grid; }
}

/* Pre-login landing page */
.landing-body { min-height: 100vh; padding: 0; overflow-x: hidden; background: #f5fafc; color: #16265f; }
.landing-page { width: 100%; min-height: 100vh; overflow: hidden; }
.landing-page > main { width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.landing-page > main::before { display: none; }
.landing-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: none; height: 66px; margin: 0; padding: 0 30px; border-radius: 0; background: linear-gradient(105deg,#2ea5c4,#1484a4); box-shadow: 0 7px 20px rgba(25,113,143,.12); }
.landing-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 1.9rem; font-weight: 800; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.landing-brand-logo { width: 36px; height: 36px; object-fit: contain; display: block; filter: drop-shadow(0 2px 8px rgba(255,255,255,.18)); }
.landing-brand small { margin-left: 8px; color: rgba(255,255,255,.92); font-size: .94rem; font-weight: 500; letter-spacing: 0; }
.landing-mobile-login, .landing-mobile-menu { display: none; }
.landing-mark { color: #fff; font-size: 1.5em; line-height: .8; }
.landing-nav { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 30px; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.landing-header > .global-language { flex: 0 0 auto; margin-left: 14px; color: #fff; }
.landing-header > .global-language .language-menu summary { min-width: 92px; color: #fff; }
.landing-nav a { color: #fff; font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.landing-nav a:hover { color: #e8fbff; }
.landing-login-link { min-width: 110px; padding: 12px 24px; border: 1px solid rgba(255,255,255,.8); border-radius: 9px; text-align: center; }
.landing-create-link { min-width: 142px; padding: 13px 22px; border-radius: 9px; background: #fff; color: #147a9b !important; text-align: center; font-weight: 750 !important; }
.landing-hero { position: relative; display: flex; min-height: 410px; width: min(100% - 32px, 1440px); margin: 0 auto; overflow: hidden; padding: 55px 80px 38px; background: linear-gradient(90deg,rgba(247,252,254,.98) 0%,rgba(247,252,254,.93) 31%,rgba(247,252,254,.12) 67%,rgba(247,252,254,0) 100%), url('../images/pray-landing-hero.png') center/cover no-repeat; }
.landing-hero-copy { position: relative; z-index: 1; width: min(100%, 680px); }
.landing-hero h1 { max-width: 640px; margin: 0 0 16px; color: #121f59; font-size: clamp(2.8rem,4vw,3.55rem); line-height: 1.03; letter-spacing: -.06em; }
.landing-hero-copy > p { max-width: 610px; margin: 0; color: #53659c; font-size: 1.16rem; line-height: 1.45; }
.landing-hero-actions { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; max-width: 650px; margin-top: 20px; }
.landing-primary-button, .landing-secondary-button { display: inline-flex; align-items: center; justify-content: center; min-width: 230px; min-height: 56px; padding: 13px 25px; border-radius: 9px; font-size: 1rem; font-weight: 750; text-decoration: none; }
.landing-primary-button { border: 1px solid #1889a7; background: linear-gradient(135deg,#2b9fb9,#167d9e); color: #fff; box-shadow: 0 9px 18px rgba(24,126,157,.16); }
.landing-secondary-button { border: 1px solid #1c91b0; background: rgba(255,255,255,.7); color: #1680a3; }
.landing-primary-button:hover { background: #116e8e; color: #fff; }
.landing-secondary-button:hover { background: #fff; color: #126f8f; }
.landing-hero-actions .landing-primary-button, .landing-hero-actions .landing-secondary-button { min-width: 0; padding-inline: 15px; }
.landing-prayer-button { margin: 0; cursor: pointer; font: inherit; }
.landing-no-account { margin-top: 13px !important; color: #263c7d !important; font-size: .92rem !important; font-weight: 700; }
.google-button { width: 100%; min-width: 0; }
.auth-divider { text-align: center; color: #71839e; margin: 14px 0; }
.landing-trust { display: flex; gap: 12px !important; margin-top: 16px !important; color: #6475a5 !important; font-size: .83rem !important; }
.landing-trust b { color: #3993ae; }
.landing-hero-quote { position: absolute; top: 42px; right: 190px; width: 245px; margin: 0; color: #52659d; font-size: 1.03rem; font-style: italic; line-height: 1.45; }
.landing-hero-quote cite { display: block; margin-top: 10px; font-size: .9rem; font-style: normal; }
.landing-prayer-panel { display: grid; grid-template-columns: minmax(220px,.75fr) minmax(0,1.25fr); gap: 38px; width: min(100% - 32px, 1060px); margin: 24px auto; padding: 30px 34px; scroll-margin-top: 18px; border: 1px solid #d3e8ee; border-radius: 17px; background: #fff; box-shadow: 0 14px 34px rgba(25,91,111,.1); }
.landing-prayer-panel[hidden] { display: none !important; }
.guest-prayer-intro h2, .guest-prayer-success h2 { margin: 0 0 8px; color: #111f5c; font-size: 1.9rem; }
.guest-prayer-intro > p:not(.landing-eyebrow), .guest-prayer-success p { margin: 0; color: #62749d; line-height: 1.55; }
.guest-prayer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; max-width: none; }
.guest-prayer-form label { margin: 0; color: #263c6f; font-size: .88rem; }
.guest-prayer-form input, .guest-prayer-form textarea { margin-top: 6px; border-color: #c7dfe6; background: #fbfdfe; }
.guest-prayer-form textarea { min-height: 130px; resize: vertical; }
.guest-prayer-form label small { display: block; margin-top: 5px; color: #71809f; font-size: .76rem; font-weight: 500; line-height: 1.35; }
.guest-prayer-content, .guest-prayer-anonymous, .guest-prayer-turnstile, .guest-prayer-form-message, .guest-prayer-form > button { grid-column: 1 / -1; }
.guest-prayer-anonymous { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.guest-prayer-anonymous input { width: auto; margin: 0; }
.guest-prayer-form label.is-disabled { opacity: .58; }
.guest-prayer-form-message { margin: 0; }
.guest-prayer-turnstile { min-height: 65px; }
.guest-prayer-form > .landing-primary-button { width: 100%; margin: 0; cursor: pointer; }
.guest-prayer-form > .landing-primary-button:disabled { cursor: not-allowed; opacity: .55; }
.guest-prayer-success { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 18px; max-width: 760px; margin: 0 auto; text-align: left; }
.guest-prayer-success-mark { display: grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e7f7f1; color: #178565; font-size: 1.65rem; font-weight: 800; }
.guest-prayer-success .guest-prayer-follow-up { margin-top: 18px; color: #263c7d; font-weight: 700; }
.guest-prayer-success .landing-primary-button { min-width: 180px; min-height: 48px; margin-top: 10px; }
.landing-auth-panel { display: grid; grid-template-columns: .7fr 1.3fr; gap: 30px; width: min(100% - 32px, 980px); margin: 24px auto; padding: 26px 32px; border: 1px solid #d9e9ee; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(25,91,111,.08); }
.landing-auth-panel h2 { margin: 0 0 6px; font-size: 1.8rem; }
.landing-auth-panel p { color: #6375a3; }
.landing-auth-panel form { max-width: none; }
.landing-auth-panel label { margin-top: 10px; font-size: .85rem; }
.landing-auth-panel label > a { float: right; font-size: .8rem; }
.landing-auth-panel input[type=email], .landing-auth-panel input[type=password] { margin-top: 5px; }
.landing-auth-panel .landing-primary-button { width: 100%; margin-top: 15px; cursor: pointer; }
.landing-remember { font-weight: 500; }
.landing-remember input { width: auto; }
.landing-eyebrow { margin: 0 0 6px !important; color: #17829e !important; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.landing-features { display: grid; grid-template-columns: repeat(4,1fr); gap: 35px; width: min(100% - 32px, 1440px); margin: 0 auto; padding: 22px 80px 26px; background: #fff; }
.landing-features article { margin: 0; padding: 0; border: 0; box-shadow: none; }
.landing-feature-icon { display: grid; place-items: center; width: 63px; height: 63px; margin-bottom: 10px; border-radius: 50%; background: #edf8fb; color: #1183a2; font-size: 2rem; }
.landing-features h2 { margin: 0 0 5px; color: #111c5b; font-size: 1.12rem; }
.landing-features p { margin: 0; color: #6172a1; font-size: .91rem; line-height: 1.45; }
.landing-quote-strip { display: flex; align-items: center; justify-content: center; gap: 165px; width: min(100% - 32px, 1440px); min-height: 138px; margin: 0 auto; padding: 22px 80px; border-radius: 14px; background: linear-gradient(100deg,#eaf8fb,#f4fbfd); }
.landing-quote-strip blockquote { width: 380px; margin: 0; color: #6575a4; font-size: 1rem; font-style: italic; line-height: 1.5; }
.landing-quote-strip cite { display: block; margin-top: 6px; font-style: normal; font-size: .85rem; }
.landing-quote-strip > div { min-width: 230px; padding-left: 35px; border-left: 1px solid #c9e4eb; }
.landing-quote-strip strong { display: block; color: #142466; font-size: 1.4rem; }
.landing-quote-strip strong .landing-mark { color: #1591ad; font-size: 1.25em; }
.landing-quote-strip p { margin: 7px 0 0; color: #6575a4; font-size: .92rem; font-style: italic; line-height: 1.4; }
.landing-footer { display: flex; align-items: center; justify-content: space-between; width: min(100% - 32px, 1440px); min-height: 68px; margin: 0 auto; padding: 0 80px; color: #6474a3; font-size: .78rem; }
.landing-footer > div { display: flex; align-items: center; gap: 20px; }
.landing-footer strong { color: #152462; font-size: 1.35rem; }
.landing-footer strong .landing-mark { color: #1591ad; font-size: 1.25em; }
.landing-footer nav { display: flex; gap: 28px; margin: 0; padding: 0; border: 0; background: transparent; }
.landing-footer a { color: #6474a3; font-weight: 500; text-decoration: none; }

@media (max-width: 1100px) {
  .landing-nav { gap: 16px; }
  .landing-nav a:not(.landing-login-link):not(.landing-create-link) { display: none; }
  .landing-hero, .landing-features, .landing-footer { padding-left: 42px; padding-right: 42px; }
  .landing-hero-quote { right: 70px; }
  .landing-quote-strip { gap: 70px; padding-left: 42px; padding-right: 42px; }
}
@media (max-width: 1280px) {
  .landing-nav { gap: 15px; }
  .landing-nav > a:nth-child(-n+4) { display: none; }
}
@media (max-width: 700px) {
  .landing-body { background: #f7fcfe; }
  .landing-header { width: 100%; max-width: none; height: 78px; margin-top: 0; padding: 0 24px; border-radius: 0; background: #f7fcfe; box-shadow: none; }
  .landing-brand { color: #142460; font-size: 1.85rem; }
  .landing-brand .landing-mark { color: #1594b1; }
  .landing-brand small { display: none; }
  .landing-nav, .landing-header > .global-language { display: none; }
  .landing-mobile-login { display: inline-flex; align-items: center; justify-content: center; min-width: 95px; margin-left: auto; margin-right: 15px; padding: 10px 20px; border: 1px solid #168caf; border-radius: 9px; color: #1783a2; font-size: 1rem; font-weight: 750; text-decoration: none; }
  .landing-mobile-menu { display: block; position: relative; z-index: 5; }
  .landing-mobile-menu summary { width: 36px; color: #168aa7; cursor: pointer; font-size: 0; list-style: none; }
  .landing-mobile-menu summary::-webkit-details-marker { display: none; }
  .landing-mobile-menu summary::after { content: '☰'; font-size: 2rem; line-height: 1; }
  .landing-mobile-menu[open] summary::after { content: '×'; font-size: 2.35rem; }
  .landing-mobile-menu > div { position: absolute; top: 43px; right: -6px; display: grid; min-width: 190px; gap: 3px; padding: 8px; border: 1px solid #d7e8ed; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(30,90,110,.16); }
  .landing-mobile-menu a { padding: 10px 12px; border-radius: 8px; color: #183269; font-size: .9rem; text-decoration: none; }
  .landing-mobile-menu a:hover { background: #eef8fa; }
  .landing-hero { display: block; width: 100%; min-height: 720px; padding: 108px 24px 0; background-image: linear-gradient(180deg,#f7fcfe 0%,#f7fcfe 54%,rgba(247,252,254,0) 72%), url('../images/pray-landing-hero.png'); background-position: center, center bottom; background-size: 100% 100%, auto 49%; background-repeat: no-repeat; }
  .landing-hero::after { display: none; }
  .landing-hero-copy { position: relative; z-index: 1; }
  .landing-hero h1 { max-width: 640px; margin-bottom: 17px; font-size: 2.65rem; line-height: 1.08; }
  .landing-hero-copy > p { max-width: 620px; font-size: 1.08rem; line-height: 1.48; }
  .landing-hero-actions { grid-template-columns: 1fr 1fr; max-width: none; gap: 11px; margin-top: 22px; }
  .landing-hero-actions .landing-prayer-button { grid-column: 1 / -1; }
  .landing-primary-button, .landing-secondary-button { width: 100%; min-height: 50px; }
  .landing-trust { justify-content: center; flex-wrap: wrap; gap: 8px !important; margin-top: 18px !important; font-size: .78rem !important; }
  .landing-hero-quote { z-index: 1; top: 61%; right: 24px; width: 245px; font-size: 1rem; }
  .landing-features { display: block; width: 100%; padding: 16px 24px 22px; }
  .landing-features article { display: grid; grid-template-columns: 86px minmax(0,1fr); column-gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid #dbecef; }
  .landing-features article:last-child { border-bottom: 0; }
  .landing-feature-icon { grid-row: 1 / span 2; width: 70px; height: 70px; margin: 0; font-size: 2rem; }
  .landing-features h2 { margin: 0 0 4px; font-size: 1.16rem; }
  .landing-features p { font-size: .98rem; line-height: 1.4; }
  .landing-quote-strip { display: none; }
  .landing-footer { flex-direction: column; align-items: flex-start; gap: 17px; width: 100%; padding: 22px 24px 30px; }
  .landing-footer nav { flex-wrap: wrap; gap: 14px 22px; }
  .landing-auth-panel { grid-template-columns: 1fr; width: 100%; margin: 0; border-radius: 0; padding: 25px 24px; }
  .landing-prayer-panel { grid-template-columns: 1fr; width: 100%; margin: 0; padding: 27px 24px; border-radius: 0; }
  .guest-prayer-form { grid-template-columns: 1fr; }
  .guest-prayer-form > * { grid-column: 1; }
  .guest-prayer-success { align-items: flex-start; }
}

@media (max-width: 390px) {
  .landing-header { padding-inline: 18px; }
  .landing-mobile-login { min-width: 82px; margin-right: 10px; padding-inline: 15px; }
  .landing-hero { min-height: 700px; padding-inline: 19px; }
  .landing-hero h1 { font-size: 2.35rem; }
  .landing-hero-copy > p { font-size: 1rem; }
  .landing-hero-quote { right: 19px; width: 220px; }
  .landing-features { padding-inline: 19px; }
  .landing-prayer-panel { padding-inline: 19px; }
  .guest-prayer-success { gap: 12px; }
  .guest-prayer-success-mark { flex-basis: 44px; width: 44px; height: 44px; }
}

@media (max-width: 760px) {
  .composer-settings { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .composer-settings fieldset { padding: 12px 14px; }
  .composer-settings + .composer-footer { grid-template-columns: 1fr; }
}

/* Pray Design System v1 — shared visual foundation */
:root {
  --pray-primary: #1b899a;
  --pray-primary-hover: #157382;
  --pray-heading: #092653;
  --pray-text: #263b4d;
  --pray-muted: #687d8c;
  --pray-bg: #f5f8fa;
  --pray-surface: #fff;
  --pray-border: #dce6ea;
  --pray-danger: #c94444;
  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --pray-shadow-sm: 0 4px 14px rgba(27, 67, 81, .05);
  --pray-shadow-md: 0 12px 28px rgba(27, 67, 81, .07);
}

html { font-family: Inter, Arial, sans-serif; }
body { color: var(--pray-text); background: var(--pray-bg); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { color: var(--pray-heading); }
h1 { font-size: 34px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
p, li { line-height: 1.5; }
a { color: var(--pray-primary); font-weight: 600; text-decoration: none; }
a:hover { color: var(--pray-primary-hover); text-decoration: underline; }
.muted, small { color: var(--pray-muted); }

/* Shared buttons: existing button markup inherits the primary component. */
button, .button, .btn { min-height: 44px; margin-top: var(--space-4); padding: 10px 18px; border: 1px solid var(--pray-primary); border-radius: 9px; background: var(--pray-primary); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.25; box-shadow: none; }
button:hover, .button:hover, .btn:hover { border-color: var(--pray-primary-hover); background: var(--pray-primary-hover); color: #fff; transform: translateY(-1px); text-decoration: none; }
.btn-primary { border-color: var(--pray-primary); background: var(--pray-primary); color: #fff; }
.btn-secondary, .secondary-button { border-color: var(--pray-border); background: var(--pray-surface); color: var(--pray-text); }
.btn-secondary:hover, .secondary-button:hover { border-color: var(--pray-primary); background: #f1fafb; color: var(--pray-primary-hover); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--pray-primary); }
.btn-ghost:hover { border-color: var(--pray-border); background: #f1fafb; color: var(--pray-primary-hover); }
.btn-danger, .secondary-danger { border-color: var(--pray-danger); background: var(--pray-danger); color: #fff; }
.btn-danger:hover, .secondary-danger:hover { border-color: #a93636; background: #a93636; color: #fff; }

/* Shared form controls */
label { margin-top: var(--space-6); color: var(--pray-text); font-size: 14px; font-weight: 600; }
input, textarea, select { min-height: 46px; margin-top: var(--space-2); padding: 11px 14px; border: 1px solid var(--pray-border); border-radius: 9px; background: var(--pray-surface); color: var(--pray-text); font: inherit; }
textarea { min-height: 120px; }
input:focus, textarea:focus, select:focus { border-color: var(--pray-primary); outline: 3px solid rgba(27, 137, 154, .12); box-shadow: none; }
input[type="checkbox"], input[type="radio"] { min-height: 0; accent-color: var(--pray-primary); }
fieldset { border-color: var(--pray-border); border-radius: var(--radius-md); }

/* Shared surfaces and authenticated layout */
article, .card { margin: var(--space-4) 0; padding: var(--space-6); border: 1px solid var(--pray-border); border-radius: var(--radius-lg); background: var(--pray-surface); box-shadow: var(--pray-shadow-sm); }
.legacy-app-main { width: min(100%, 1080px); padding: var(--space-12) var(--space-8); }
.legacy-app-main > h1 { margin-bottom: var(--space-6); }
.app-page { padding: var(--space-8) var(--space-12) 44px; }
.side-nav a { color: var(--pray-text); font-weight: 600; }
.side-nav a:hover, .side-nav a.active { color: var(--pray-primary-hover); background: #eaf6f7; }
.side-nav a.active { font-weight: 700; }
.side-cta { border-radius: 9px; background: var(--pray-primary); box-shadow: var(--pray-shadow-sm); }
.side-cta:hover { background: var(--pray-primary-hover); }
.notification-card { padding: var(--space-6); }
.notification-message { color: var(--pray-text); }
.notification-actions { margin-top: var(--space-4); }
.success, .error { border-radius: var(--radius-md); }

/* Layout primitives available to current and future pages. */
.page-content { min-height: 100%; background: var(--pray-bg); }
.page-container { width: min(100% - 48px, 1080px); margin: 0 auto; padding: var(--space-12) 0; }
.card-header, .card-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.card-header { margin-bottom: var(--space-4); }
.card-body { color: var(--pray-text); }
.card-footer { margin-top: var(--space-6); }

@media (max-width: 760px) {
  h1 { font-size: 28px; }
  h2 { font-size: 21px; }
  .legacy-app-main { padding: var(--space-8) var(--space-4); }
  .app-page { padding: var(--space-6) var(--space-4) 10px; }
  article, .card { padding: var(--space-4); border-radius: var(--radius-lg); }
  .page-container { width: min(100% - 32px, 1080px); padding: var(--space-8) 0; }
  button, .button, .btn { min-width: 0; }
  .notification-actions form { width: 100%; }
  .notification-actions button { flex: 1 1 120px; }
}

/* Authenticated pages: lighter canvas and clearer content hierarchy. */
.app-inner-shell { background: var(--pray-bg); }
.app-page { background: linear-gradient(135deg, #f7fafb 0%, #f3f8fa 100%); }
.app-page > .legacy-app-main {
  width: min(100%, 1120px);
  min-height: 0;
  padding: 14px 18px 48px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.app-page > .legacy-app-main::before { display: none; }
.app-page > .legacy-app-main > h1 { margin: 0 0 32px; font-size: clamp(2rem, 3vw, 2.45rem); }
.app-page > .legacy-app-main > h2 { margin: 32px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--pray-border); font-size: 1.25rem; }
.app-page > .legacy-app-main > h2:first-of-type { margin-top: 0; }
.app-page > .legacy-app-main > form:not(.inline) { margin-bottom: 20px; }
.app-page > .legacy-app-main > p { color: var(--pray-text); }
.app-page > .legacy-app-main > p > a:not(.button) { font-weight: 600; }
.app-page > .legacy-app-main > article.card { background: rgba(255,255,255,.88); }
.app-page > .legacy-app-main > article.card:first-of-type { margin-top: 0; }
.app-page > .legacy-app-main .success, .app-page > .legacy-app-main .error { max-width: 720px; }

/* Make textual action groups read as deliberate components. */
.legacy-app-main > p form { margin-top: 12px; }
.legacy-app-main > p form button { margin-top: 0; }
.legacy-app-main > p > a.button { margin-top: 0; }
.legacy-app-main > p > a + a { margin-left: 8px; }

@media (max-width: 760px) {
  .app-page > .legacy-app-main { padding: 4px 2px 32px; }
  .app-page > .legacy-app-main > h1 { margin-bottom: 24px; font-size: 28px; }
  .app-page > .legacy-app-main > h2 { margin-top: 28px; font-size: 21px; }
}

/* Pray Visual Refinement v2 */
:root {
  --pray-bg: #f8faf9;
  --pray-border: #e2e9e8;
  --pray-text: #334755;
  --pray-muted: #71818a;
  --pray-shadow-sm: 0 3px 12px rgba(32, 66, 73, .035);
}

body:has(.app-inner-shell) { padding: 0; background: var(--pray-bg); }
.app-inner-shell { min-height: 100vh; background: var(--pray-bg); }
.app-page { background: var(--pray-bg); }
.app-page > .legacy-app-main { width: min(100%, 960px); padding: 24px 24px 56px; }
.app-page > .legacy-app-main > h1 { margin: 0 0 28px; color: var(--pray-heading); font-size: 32px; font-weight: 650; letter-spacing: -.035em; }
.app-page > .legacy-app-main > h2 { margin: 28px 0 12px; padding: 0; border: 0; color: var(--pray-heading); font-size: 21px; font-weight: 650; }
.app-page > .legacy-app-main > h2:first-of-type { margin-top: 0; }

/* Compact, content-sized surfaces */
article, .card { margin: 12px 0; padding: 20px 22px; border-color: var(--pray-border); border-radius: 14px; box-shadow: var(--pray-shadow-sm); }
.app-page > .legacy-app-main > article.card { background: #fff; }
.legacy-app-main > article.card p:last-child { margin-bottom: 0; }
.legacy-app-main > p { margin: 12px 0; }

/* Lighter controls */
button, .button, .btn { min-height: 42px; margin-top: 12px; padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; }
button + button { border-color: var(--pray-border); background: transparent; color: var(--pray-text); }
button + button:hover { border-color: var(--pray-primary); background: #f0f8f8; color: var(--pray-primary-hover); }
.side-cta { min-height: 46px; margin-top: 18px; border-radius: 9px; box-shadow: none; }
.side-nav { gap: 4px; }
.side-nav a { min-height: 48px; padding-inline: 16px; border-radius: 9px; color: #405361; font-size: .94rem; font-weight: 550; }
.side-nav a:hover { background: #f1f8f8; }
.side-nav a.active { background: #eaf6f6; font-weight: 650; }

/* Forms are calmer and do not expand into oversized blocks. */
form { max-width: 620px; }
input, textarea, select { min-height: 44px; border-radius: 9px; }
.legacy-app-main > form:not(.inline) { margin-bottom: 14px; }

/* Notifications become compact list items with a visual marker. */
.notification-card { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.notification-card::before { grid-row: 1 / span 3; display: grid; place-items: center; width: 32px; height: 32px; margin-top: 2px; border-radius: 50%; background: #e8f5f5; color: var(--pray-primary); content: "•"; font-size: 22px; line-height: 1; }
.notification-card .notification-message { grid-column: 2; margin: 0; }
.notification-card > form, .notification-card > .notification-actions, .notification-card > p:not(.notification-message) { grid-column: 2; }
.notification-card > form { max-width: none; }
.notification-card > form button { margin-top: 12px; }
.notification-actions { gap: 12px; margin-top: 12px; }
.notification-actions form { gap: 8px; }
.notification-actions a { align-self: center; font-size: 14px; }

/* Connections use the same compact item language without changing markup. */
.legacy-app-main > p:has(form) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 10px 0; padding: 18px 20px; border: 1px solid var(--pray-border); border-radius: 14px; background: #fff; box-shadow: var(--pray-shadow-sm); }
.legacy-app-main > p:has(form) form { margin: 0; }
.legacy-app-main > p:has(form) form button { margin-top: 8px; }

/* Group rows retain cards, but avoid oversized empty panels. */
.legacy-app-main > article:not(.notification-card) { padding: 18px 20px; }
.legacy-app-main > article:not(.notification-card) h2 { margin: 0 0 6px; font-size: 18px; font-weight: 650; }

@media (max-width: 760px) {
  .app-page > .legacy-app-main { width: 100%; padding: 20px 16px 34px; }
  .app-page > .legacy-app-main > h1 { margin-bottom: 24px; font-size: 28px; }
  .app-page > .legacy-app-main > h2 { margin-top: 24px; font-size: 20px; }
  article, .card { padding: 18px 16px; }
  .notification-card { grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; }
  .notification-card::before { width: 28px; height: 28px; font-size: 19px; }
  .notification-actions form { width: 100%; }
  .notification-actions form button { flex: 1 1 110px; }
  .legacy-app-main > p:has(form) { padding: 16px; }
}

/* Pray Design System — consolidated authenticated experience */
:root {
  --pray-primary: #1b899a;
  --pray-primary-hover: #157382;
  --pray-heading: #16324a;
  --pray-text: #314653;
  --pray-muted: #748690;
  --pray-bg: #f8fbfa;
  --pray-surface: #ffffff;
  --pray-border: #e3ebe9;
  --pray-danger: #c94444;
  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 15px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
}

html, body { max-width: 100%; overflow-x: hidden; }
body:has(.app-inner-shell) { margin: 0; padding: 0; background: var(--pray-bg); color: var(--pray-text); }
.app-shell, .app-inner-shell { width: 100%; min-width: 0; min-height: 100vh; margin: 0; padding: 0; overflow-x: clip; background: var(--pray-bg); }
.topbar { width: 100%; height: 64px; gap: 24px; padding: 0 28px; }
.brand-lockup { min-width: 280px; }
.brand { min-width: 0; font-size: 1.45rem; font-weight: 700; }
.brand-logo { width: 30px; height: 30px; }
.global-search { max-width: 640px; height: 38px; border-radius: 10px; }
.app-body { grid-template-columns: 276px minmax(0, 1fr); min-width: 0; min-height: calc(100vh - 64px); }
.sidebar { min-width: 0; gap: 8px; padding: 28px 20px 24px; background: rgba(255,255,255,.9); border-color: var(--pray-border); }
.side-nav { gap: 5px; }
.side-nav a { min-height: 46px; padding: 0 15px; border-radius: 9px; color: #455966; font-size: .93rem; font-weight: 550; }
.side-nav a:hover { color: var(--pray-primary-hover); background: #f1f8f7; text-decoration: none; }
.side-nav a.active { color: var(--pray-primary-hover); background: #e9f5f4; font-weight: 650; }
.side-icon { width: 21px; }
.side-cta { min-height: 44px; margin-top: 20px; font-size: .92rem; font-weight: 600; }
.quote-card { padding: 22px 20px 26px; border-color: var(--pray-border); background: #f3f8f7; box-shadow: none; }
.quote-card p { color: #647985; font-size: .86rem; }

.app-page { min-width: 0; padding: 32px 40px 56px; background: var(--pray-bg); }
.app-page > .legacy-app-main,
.app-page > .page-content { width: 100%; max-width: 1100px; min-height: 0; margin: 0 auto; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.app-page > .legacy-app-main::before { display: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 28px; }
.page-heading h1 { margin: 0; color: var(--pray-heading); font-size: 32px; font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
.app-page > .legacy-app-main > h1 { margin: 0 0 28px; color: var(--pray-heading); font-size: 32px; font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
.page-heading p { margin: 6px 0 0; color: var(--pray-muted); font-size: 14px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: none; margin: 0; }
.page-actions .btn, .page-actions button { margin: 0; }
.content-section { margin-top: 28px; }
.content-section:first-of-type { margin-top: 0; }
.content-section > h2,
.page-content > h2 { margin: 0 0 12px; padding: 0; border: 0; color: var(--pray-heading); font-size: 21px; font-weight: 650; line-height: 1.25; }
.page-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; color: var(--pray-muted); }
.page-links a { font-size: 14px; }

button, .button, .btn { width: auto; min-width: 0; min-height: 42px; margin-top: 12px; padding: 9px 16px; border-radius: 9px; background: var(--pray-primary); border-color: var(--pray-primary); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; box-shadow: none; }
button:hover, .button:hover, .btn:hover { background: var(--pray-primary-hover); border-color: var(--pray-primary-hover); color: #fff; text-decoration: none; }
.btn-secondary, button.btn-secondary, .button.secondary { background: #fff; border-color: var(--pray-border); color: var(--pray-text); }
.btn-secondary:hover, button.btn-secondary:hover, .button.secondary:hover { background: #f2f8f7; border-color: #b8d4d2; color: var(--pray-primary-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--pray-primary); }
.btn-ghost:hover { background: #edf7f6; border-color: transparent; color: var(--pray-primary-hover); }
.btn-danger, .secondary-danger { background: var(--pray-danger); border-color: var(--pray-danger); color: #fff; }
a { color: var(--pray-primary); font-weight: 600; text-decoration: none; }
a:hover { color: var(--pray-primary-hover); text-decoration: underline; }
.top-actions .notification-link:hover { color: #fff; text-decoration: none; }

.item-list { display: grid; gap: 10px; width: 100%; }
.list-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 74px; margin: 0; padding: 14px 18px; border: 1px solid var(--pray-border); border-radius: 14px; background: var(--pray-surface); box-shadow: 0 3px 12px rgba(34,72,76,.035); }
.item-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e7f4f3; color: var(--pray-primary-hover); font-size: 15px; font-weight: 700; }
.group-avatar { border-radius: 12px; font-size: 20px; font-weight: 500; }
.item-main { min-width: 0; }
.item-title { display: inline-block; color: var(--pray-heading); font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.item-main small { display: block; margin-top: 4px; color: var(--pray-muted); font-size: 13px; line-height: 1.4; }
.item-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: none; margin: 0; }
.item-actions button, .item-actions .button { margin: 0; }
.item-chevron { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--pray-muted); font-size: 25px; font-weight: 400; }
.item-chevron:hover { background: #edf7f6; color: var(--pray-primary); text-decoration: none; }
.empty-state { width: 100%; padding: 24px; border: 1px dashed #d6e4e1; border-radius: 14px; background: rgba(255,255,255,.6); color: var(--pray-muted); font-size: 14px; text-align: center; }

.notification-card { grid-template-columns: 42px minmax(0,1fr) auto; column-gap: 14px; }
.notification-card::before { display: none; }
.notification-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #eaf6f5; }
.notification-icon::before { width: 14px; height: 14px; content: ''; border: 2px solid var(--pray-primary); border-radius: 50% 50% 42% 42%; }
.notification-icon::after { position: absolute; bottom: 9px; width: 5px; height: 2px; content: ''; border-radius: 2px; background: var(--pray-primary); }
.notification-card .notification-message { margin: 0; color: var(--pray-text); font-size: 15px; line-height: 1.4; }
.notification-card.is-read { background: #fbfcfc; }
.notification-card.is-read .notification-icon { opacity: .7; }
.notification-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 0; }
.notification-actions form { width: auto; }
.notification-actions a, .item-link { font-size: 13px; white-space: nowrap; }

.surface-form,
.page-content > form:not(.page-actions):not(.item-actions),
.app-page > .legacy-app-main > form:not(.page-actions):not(.item-actions) { width: 100%; max-width: 760px; margin: 0 0 16px; padding: 22px 24px; border: 1px solid var(--pray-border); border-radius: 15px; background: #fff; box-shadow: 0 3px 12px rgba(34,72,76,.035); }
.app-page > .legacy-app-main > form + form button { background: #fff; border-color: #efcece; color: var(--pray-danger); }
.app-page > .legacy-app-main > form + form button:hover { background: #fff5f5; border-color: var(--pray-danger); color: #a93636; }
label { color: var(--pray-text); font-size: 14px; font-weight: 600; }
input, textarea, select { min-height: 46px; border-color: var(--pray-border); border-radius: 9px; background: #fff; color: var(--pray-text); }
.app-page > .legacy-app-main textarea[name="content"] { border-color: #9db8bf; }
input:focus, textarea:focus, select:focus { border-color: var(--pray-primary); outline: 3px solid rgba(27,137,154,.12); }
.inline-options { display: flex; align-items: center; flex-wrap: wrap; column-gap: 14px; row-gap: 7px; }
.inline-options label { display: inline-flex; align-items: center; margin: 0; }
.inline-options .option-separator { color: var(--pray-muted); font-weight: 700; }
.composer-settings .inline-options label { margin: 0; }
.composer-settings .inline-options .composer-group-picker { flex-basis: 100%; }

.mobile-nav-menu { display: none; }

@media (max-width: 1100px) {
  .brand-lockup { min-width: 190px; }
  .app-body { grid-template-columns: 240px minmax(0,1fr); }
  .app-page { padding: 28px 28px 48px; }
  .sidebar { padding-inline: 14px; }
}

@media (max-width: 900px) {
  .app-body { display: block; }
  .sidebar { display: none; }
  .app-page { padding: 28px 22px 42px; }
  .mobile-nav-menu { position: relative; display: block; margin-left: auto; }
  .mobile-nav-menu summary { display: grid; gap: 4px; width: 38px; height: 38px; place-content: center; border-radius: 9px; cursor: pointer; list-style: none; }
  .mobile-nav-menu summary::-webkit-details-marker { display: none; }
  .mobile-nav-menu summary:hover { background: rgba(255,255,255,.12); }
  .mobile-nav-menu summary span { display: block; width: 19px; height: 2px; border-radius: 2px; background: #fff; }
  .mobile-nav-menu > div { position: absolute; top: 46px; right: 0; z-index: 1000; display: grid; width: min(280px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--pray-border); border-radius: 12px; background: #fff; box-shadow: 0 18px 42px rgba(22,55,65,.18); }
  .mobile-nav-menu a { padding: 11px 13px; border-radius: 8px; color: var(--pray-text); font-size: 14px; }
  .mobile-nav-menu a:hover { background: #edf7f6; color: var(--pray-primary-hover); text-decoration: none; }
  .mobile-bottom-nav { display: none; }
}

@media (max-width: 760px) {
  .topbar { height: 64px; gap: 8px; padding: 0 16px; }
  .brand-lockup { min-width: 0; }
  .global-search, .topbar .global-language, .top-user-name { display: none; }
  .brand { font-size: 1.35rem; }
  .mobile-search { margin-left: 0; }
  .app-page { padding: 24px 16px 34px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 27px; }
  .app-page > .legacy-app-main > h1 { margin-bottom: 24px; font-size: 27px; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .content-section { margin-top: 24px; }
  .content-section > h2, .page-content > h2 { font-size: 20px; }
  .list-item { grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding: 14px; }
  .item-avatar, .notification-icon { width: 38px; height: 38px; }
  .item-actions, .notification-actions, .item-chevron, .item-link { grid-column: 2; justify-content: flex-start; }
  .item-actions { width: 100%; }
  .notification-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .notification-actions form { display: flex; width: 100%; }
  .notification-actions form button { flex: 1 1 auto; }
  .surface-form, .page-content > form:not(.page-actions):not(.item-actions), .app-page > .legacy-app-main > form:not(.page-actions):not(.item-actions) { max-width: none; padding: 20px 16px; }
}

@media (max-width: 390px) {
  .top-actions .avatar { display: none; }
  .page-actions .btn, .page-actions button { flex: 1 1 auto; }
  .item-actions button { flex: 1 1 auto; }
}
