/* =================================================================
   ACTS CHURCH BAHRAIN — MEMBER PORTAL (Round 95)
   Layout follows the two-column "soft cards" dashboard reference.
   Every colour, font, radius and button comes from the ACTS website
   tokens in style.css (navy + steel, gold accent, Fraunces + Inter,
   pill buttons). Nothing here introduces another palette or icon set.
   ================================================================= */
.mp-body { background: var(--fog-50); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
.mp-main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 24px 48px; }

/* ---------- Header ---------- */
.mp-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.mp-header-inner { max-width: 1280px; margin: 0 auto; padding: 8px 24px; min-height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.mp-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; justify-self: start; }
.mp-brand-logo { height: 44px; width: auto; }
.mp-brand-text strong { font-family: var(--font-display); font-weight: 600; color: var(--navy-950); font-size: 1.05rem; white-space: nowrap; }
.mp-header-title { text-align: center; }
.mp-header-title span { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); }
.mp-user { position: relative; justify-self: end; }
.mp-user-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid transparent; border-radius: var(--radius-pill); padding: 4px 10px 4px 14px; cursor: pointer; color: var(--navy-900); min-height: 44px; }
.mp-user-btn:hover, .mp-user-btn[aria-expanded="true"] { background: var(--fog-50); border-color: var(--line); }
.mp-welcome { font-size: .92rem; color: var(--ink-soft); }
.mp-welcome strong { color: var(--navy-950); font-weight: 600; }
.mp-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; z-index: 70; }
.mp-menu[hidden] { display: none; }
.mp-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--ink); min-height: 44px; }
.mp-menu a:hover { background: var(--fog-50); color: var(--navy-900); }
.mp-menu a.is-danger { color: var(--danger); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.mp-icon { flex: none; }

/* ---------- Avatars ---------- */
.mp-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-100); color: var(--gold-600); font-weight: 700; font-family: var(--font-body); font-size: .95rem; border: 1px solid var(--line); }
.mp-avatar--sm { width: 38px; height: 38px; font-size: .8rem; }
.mp-avatar--md { width: 52px; height: 52px; }
.mp-avatar--lg { width: 84px; height: 84px; font-size: 1.5rem; border-width: 2px; border-color: #fff; box-shadow: var(--shadow-sm); }
.mp-avatar--square { border-radius: 9px; }
.mp-avatar--icon { background: var(--steel-100); color: var(--navy-700); border-color: transparent; border-radius: 10px; }

/* ---------- Dashboard grid ---------- */
.mp-grid { display: grid; grid-template-columns: 47fr 53fr; gap: 24px; align-items: start; }
.mp-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- Cards ---------- */
.mp-card { padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 3px rgba(12,35,48,.05); overflow: hidden; min-width: 0; }
.mp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--fog-50)); border-top: 3px solid var(--gold-500); }
.mp-card-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; color: var(--navy-950); }
.mp-card-head h2 .mp-icon { color: var(--gold-600); }
.mp-card-body { padding: 16px 18px; }
.mp-card-body > :last-child { margin-bottom: 0; }
.mp-card-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--fog-50); }
.mp-card-foot .mp-foot-link { margin-left: auto; }
.mp-card-foot .mp-foot-link:only-child { margin-left: 0; }
.mp-foot-link { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--navy-700); }
.mp-foot-link:hover { color: var(--gold-600); }
.mp-card .btn { padding: 10px 20px; font-size: .88rem; }
.mp-card .btn-sm { padding: 9px 18px; }
.mp-card-head .btn { padding: 6px 16px; font-size: .84rem; }
.mp-empty { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.mp-more { margin: 6px 4px 0; font-size: .85rem; color: var(--ink-soft); }
.mp-meta { display: block; font-size: .84rem; color: var(--ink-soft); margin: 0; }
.mp-muted { color: var(--ink-soft); }

/* ---------- My Details ---------- */
.mp-details { display: flex; gap: 18px; align-items: flex-start; }
.mp-details-info { min-width: 0; }
.mp-details-info h3 { margin: 0 0 4px; font-size: 1.25rem; }
.mp-line { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: .92rem; color: var(--ink-soft); }
.mp-line .mp-icon { color: var(--steel-500); }
.mp-line span { overflow-wrap: anywhere; }

/* ---------- Rows (whole row is the link) ---------- */
.mp-rows { display: flex; flex-direction: column; gap: 4px; }
.mp-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; min-height: 52px; border-radius: 10px; border: 1px solid transparent; color: var(--ink); transition: background .15s ease, border-color .15s ease; }
.mp-row:hover { background: var(--fog-50); border-color: var(--line); }
.mp-row:hover .mp-row-arrow { color: var(--gold-600); transform: translateX(2px); }
.mp-row-lead { flex: none; display: inline-flex; }
.mp-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mp-row-title { font-weight: 600; font-size: .95rem; color: var(--navy-950); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-row-sub { font-size: .83rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-row-arrow { color: var(--steel-300); flex: none; transition: transform .15s ease, color .15s ease; display: inline-flex; }
.mp-badge { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--gold-100); color: var(--gold-600); white-space: nowrap; }
.mp-badge--in_progress { background: var(--steel-100); color: var(--navy-700); }
.mp-badge--prayed_for { background: #e3f5ec; color: var(--success); }
.mp-badge--closed { background: var(--fog-50); color: var(--ink-soft); border: 1px solid var(--line); }
.mp-date { width: 44px; height: 46px; border-radius: 10px; background: var(--gold-100); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.mp-date b { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-950); }
.mp-date i { font-style: normal; font-size: .65rem; font-weight: 700; letter-spacing: .08em; color: var(--gold-600); }

/* ---------- Prayer / Sermon ---------- */
.mp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mp-stats a { display: flex; flex-direction: column; align-items: center; padding: 10px; border-radius: 10px; background: var(--fog-50); border: 1px solid var(--line); }
.mp-stats a:hover { border-color: var(--gold-400); }
.mp-stats b { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-950); line-height: 1.1; }
.mp-stats span { font-size: .78rem; color: var(--ink-soft); }
.mp-sermon { display: flex; gap: 14px; align-items: center; color: inherit; }
.mp-sermon-thumb { position: relative; flex: none; width: 150px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--navy-950); }
.mp-sermon-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mp-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(12,35,48,.28); }
.mp-sermon-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-sermon-text strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-950); }
.mp-sermon:hover strong { color: var(--gold-600); }

/* ---------- Sub pages ---------- */
.mp-back { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--navy-700); margin-bottom: 14px; min-height: 36px; }
.mp-back:hover { color: var(--gold-600); }
.mp-page-head { margin-bottom: 18px; }
.mp-page-head h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 4px; }
.mp-page-head p { margin: 0; }
.mp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; margin-top: 4px; }
.mp-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mp-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.mp-two .mp-card + .mp-card, .mp-card + .mp-two { margin-top: 0; }
.mp-family-hero { display: flex; gap: 24px; align-items: center; padding: 18px; margin-bottom: 20px; }
.mp-family-photo { flex: none; width: 260px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--steel-100); display: flex; align-items: center; justify-content: center; color: var(--steel-500); }
.mp-family-photo img { width: 100%; height: 100%; object-fit: cover; }
.mp-family-info h1 { font-size: 1.7rem; margin-bottom: 6px; }
.mp-inline-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.mp-person { display: flex; gap: 12px; align-items: center; padding: 8px 10px; }
.mp-person strong { display: block; color: var(--navy-950); }
.mp-kids { display: flex; flex-direction: column; gap: 10px; }
.mp-kid { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.mp-kid-main { flex: 1; min-width: 0; }
.mp-kid-main strong { display: block; color: var(--navy-950); }
.mp-ministry-hero { display: flex; gap: 18px; align-items: center; padding: 18px; margin-bottom: 20px; }
.mp-ministry-hero h1 { margin: 0 0 4px; font-size: 1.6rem; }
.mp-ministry-logo { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.mp-note { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mp-note:last-child { border-bottom: 0; padding-bottom: 0; }
.mp-note h3 { font-size: 1rem; margin: 2px 0 4px; }
.mp-note-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.mp-update { color: var(--success); display: flex; align-items: center; gap: 6px; }
.mp-pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 0; color: var(--ink); }
.mp-dl { margin: 0 0 12px; display: grid; gap: 10px; }
.mp-dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.mp-dl dt { color: var(--ink-soft); font-size: .88rem; }
.mp-dl dd { margin: 0; font-weight: 600; color: var(--navy-950); text-align: right; overflow-wrap: anywhere; }
.mp-dl--inline { margin-bottom: 16px; }

/* ---------- Forms ---------- */
.mp-form-card .mp-card-body { display: flex; flex-direction: column; gap: 14px; }
.mp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mp-span { grid-column: 1 / -1; }
.mp-card .field input, .mp-card .field select, .mp-card .field textarea, .mp-auth-card .field input { padding: 11px 13px; border-radius: 10px; min-height: 44px; }
.mp-phone { display: flex; gap: 8px; }
.mp-phone select { max-width: 150px; flex: none; }
.mp-phone input { flex: 1; min-width: 0; }
.mp-photo-edit { display: flex; align-items: center; gap: 16px; }
.mp-photo-edit > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mp-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.mp-file:focus-visible + .field-hint { outline: 3px solid var(--gold-500); }
.mp-check { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-soft); }
.mp-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.mp-choices legend { font-weight: 600; font-size: .88rem; color: var(--navy-900); padding: 0; margin-bottom: 6px; }
.mp-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.mp-choice:hover { border-color: var(--gold-400); }
.mp-choice:has(input:checked) { border-color: var(--gold-500); background: var(--gold-100); }
.mp-choice input { margin-top: 4px; accent-color: var(--gold-600); }
.mp-choice small { display: block; color: var(--ink-soft); font-size: .8rem; }
.mp-flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; font-size: .92rem; }
.mp-flash--success { background: #e3f5ec; color: var(--success); }
.mp-flash--error { background: #fbe9e6; color: var(--danger); }
.mp-pw { position: relative; display: flex; }
.mp-pw input { flex: 1; padding-right: 64px !important; }
.mp-pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--navy-700); font-weight: 600; font-size: .82rem; cursor: pointer; padding: 8px; }
.mp-code-input { letter-spacing: .5em; font-size: 1.4rem !important; text-align: center; font-family: var(--font-display); }
.mp-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-700); font-weight: 600; cursor: pointer; text-decoration: underline; }
.mp-inline-form { margin-top: 14px; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Sign-in / activation ---------- */
.mp-auth-body { background: linear-gradient(180deg, var(--fog-50), #fff 60%); }
.mp-auth { flex: 1; width: 100%; max-width: 460px; margin: 0 auto; padding: 36px 20px 40px; display: flex; flex-direction: column; align-items: center; }
.mp-auth-logo img { height: 96px; width: auto; margin-bottom: 18px; }
.mp-auth-card { width: 100%; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: 16px; box-shadow: var(--shadow-md); padding: 30px 30px 26px; }
.mp-auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.mp-auth-card .eyebrow { margin-bottom: 8px; }
.mp-auth-lead { color: var(--ink-soft); margin-bottom: 18px; }
.mp-form { display: flex; flex-direction: column; gap: 14px; }
.mp-auth-links { text-align: center; margin: 14px 0 0; font-size: .9rem; }
.mp-auth-links a, .mp-auth-note a { color: var(--navy-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mp-auth-note { text-align: center; font-size: .9rem; margin: 10px 0 0; }
.mp-auth-foot { margin-top: 18px; font-size: .85rem; }
.mp-auth-foot a { color: var(--ink-soft); }
.mp-auth-card .btn { padding: 13px 24px; }

.mp-footer { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; padding: 18px 24px 26px; font-size: .82rem; color: var(--ink-soft); border-top: 1px solid var(--line); background: #fff; }
.mp-footer a:hover { color: var(--gold-600); }

/* ---------- Tablet / mobile: one column, in the requested reading order ---------- */
@media (max-width: 980px) {
  .mp-grid { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
  .mp-col { display: contents; }
  .mp-c-details { order: 1; } .mp-c-family { order: 2; } .mp-c-groups { order: 3; } .mp-c-events { order: 4; }
  .mp-c-prayer { order: 5; } .mp-c-news { order: 6; } .mp-c-sermon { order: 7; } .mp-c-resources { order: 8; }
  .mp-two { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .mp-main { padding: 16px 16px 40px; }
  .mp-header-inner { padding: 6px 16px; grid-template-columns: auto 1fr auto; gap: 10px; }
  .mp-brand-text, .mp-welcome { display: none; }
  .mp-header-title { text-align: left; }
  .mp-header-title span { font-size: .7rem; }
  .mp-user-btn { padding: 4px 8px; }
  .mp-brand-logo { height: 38px; }
  .mp-family-hero, .mp-ministry-hero { flex-direction: column; align-items: flex-start; }
  .mp-family-photo { width: 100%; }
  .mp-form-grid { grid-template-columns: 1fr; }
  .mp-phone { flex-direction: column; } .mp-phone select { max-width: none; }
  .mp-sermon { flex-direction: column; align-items: flex-start; }
  .mp-sermon-thumb { width: 100%; }
  .mp-kid { flex-wrap: wrap; } .mp-kid .btn { width: 100%; }
  .mp-card-foot .btn { flex: 1; }
  .mp-auth-card { padding: 24px 20px; }
  .mp-card-head .btn { padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .mp-row, .mp-row-arrow { transition: none; } }

/* Round 96 — resource rows with View / Download buttons */
.mp-resource-row { cursor: default; }
.mp-resource-row:hover { background: transparent; border-color: transparent; }
.mp-resource-actions { flex: none; display: inline-flex; gap: 8px; }
.mp-resource-actions .btn { padding: 6px 14px; font-size: .82rem; }
@media (max-width: 560px) {
  .mp-resource-row { flex-wrap: wrap; }
  .mp-resource-row .mp-row-main { flex-basis: calc(100% - 52px); }
  .mp-resource-actions { width: 100%; padding-left: 52px; }
}

/* =================================================================
   Round 100 — personalised dashboard, profile tabs, bell, bottom nav
   Same navy / gold / white tokens as the rest of the portal.
   ================================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mp-header-right { display: flex; align-items: center; gap: 8px; justify-self: end; }
.mp-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--navy-900); border: 1px solid transparent; transition: background .15s ease; }
.mp-bell:hover { background: var(--fog-50); border-color: var(--line); color: var(--gold-600); }
.mp-bell-count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold-500); color: var(--navy-950); font-size: .68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* Welcome + four summary cards */
.mp-welcome-hero { background: linear-gradient(135deg, var(--navy-950), var(--navy-700)); color: #fff; border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-md); border-bottom: 4px solid var(--gold-500); }
.mp-welcome-text h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 4px; }
.mp-welcome-text p { margin: 0; color: rgba(255,255,255,.85); }
.mp-next-service { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; font-size: .92rem; color: var(--gold-100) !important; }
.mp-next-service .mp-icon { color: var(--gold-400); flex: none; }
.mp-next-service strong { color: #fff; }
.mp-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.mp-sum { background: #fff; color: var(--ink); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; border-top: 3px solid var(--gold-500); transition: transform .15s ease, box-shadow .15s ease; }
.mp-sum:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mp-sum-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--gold-100); color: var(--gold-600); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.mp-sum-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.mp-sum-value { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: var(--navy-950); }
.mp-sum-value--text { font-size: 1.1rem; line-height: 1.25; min-height: 2.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-sum-sub { font-size: .82rem; color: var(--ink-soft); min-height: 1.2rem; }
.mp-sum-link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; font-weight: 700; color: var(--navy-700); }
.mp-sum-link:hover { color: var(--gold-600); }
.mp-c-journey { order: 0; }

/* Profile tab strip */
.mp-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin: 0 0 20px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.mp-tab { flex: none; padding: 11px 16px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0; min-height: 44px; display: inline-flex; align-items: center; }
.mp-tab:hover { color: var(--navy-900); background: var(--fog-50); }
.mp-tab.is-active { color: var(--navy-950); border-bottom-color: var(--gold-500); }

/* Page heads, sub headings, tables, misc */
.mp-page-head--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mp-sub { font-size: 1rem; margin: 18px 0 8px; color: var(--navy-950); }
.mp-stats--3 { grid-template-columns: repeat(3, 1fr); }
.mp-stats > span { display: flex; flex-direction: column; align-items: center; padding: 10px; border-radius: 10px; background: var(--fog-50); border: 1px solid var(--line); }
.mp-table-wrap { overflow-x: auto; }
.mp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mp-table th { text-align: left; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mp-table td { padding: 10px; border-bottom: 1px solid var(--line); }
.mp-table tr:last-child td { border-bottom: 0; }
.mp-pending-note { background: var(--gold-100); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: .9rem; }
.mp-badge--pending { background: var(--gold-100); color: var(--gold-600); }
.mp-badge--approved, .mp-badge--answered { background: #e3f5ec; color: var(--success); }
.mp-badge--rejected, .mp-badge--withdrawn { background: var(--fog-50); color: var(--ink-soft); border: 1px solid var(--line); }
.mp-danger { color: var(--danger) !important; }
.mp-dl--tight { margin: 8px 0 0; gap: 6px; font-size: .9rem; }
.mp-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mp-timeline li { padding-left: 14px; border-left: 3px solid var(--gold-400); display: flex; flex-direction: column; gap: 2px; }
.mp-note-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.mp-note-actions form { margin: 0; }
.mp-choice--check { align-items: flex-start; }

/* Journey milestones */
.mp-journey-steps { padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.mp-step { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.mp-step.is-done { border: 1px solid var(--line); border-top: 3px solid var(--gold-500); box-shadow: 0 1px 3px rgba(12,35,48,.05); }
.mp-step-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--steel-100); color: var(--steel-500); display: inline-flex; align-items: center; justify-content: center; }
.mp-step.is-done .mp-step-icon { background: var(--gold-100); color: var(--gold-600); }
.mp-step strong { color: var(--navy-950); }

/* Notifications / request lists */
.mp-notices { display: flex; flex-direction: column; gap: 4px; }
.mp-notice { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; border: 1px solid transparent; margin: 0; }
.mp-notice.is-unread { background: var(--gold-100); }
.mp-notice:hover { border-color: var(--line); }
.mp-notice-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
div.mp-notice-main { cursor: default; }
.mp-notice-title { font-weight: 600; color: var(--navy-950); }
.mp-notice-body { font-size: .88rem; color: var(--ink); overflow-wrap: anywhere; }
.mp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); flex: none; }

/* Groups */
.mp-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.mp-group-top { display: flex; align-items: center; gap: 12px; }
.mp-group-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mp-group-name { font-weight: 700; color: var(--navy-950); font-size: 1.02rem; }
.mp-group-name:hover { color: var(--gold-600); }
.mp-group-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.mp-group-actions form { margin: 0; }
.mp-pop { position: relative; }
.mp-pop summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mp-pop summary::-webkit-details-marker { display: none; }
.mp-pop-body { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--fog-50); min-width: 260px; }
.mp-join { margin-top: 8px; }
.mp-join summary { cursor: pointer; font-weight: 600; color: var(--navy-700); padding: 8px 0; }
.mp-join-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); margin: 0; }

/* Events */
.mp-event-list { gap: 14px; margin-bottom: 20px; }
.mp-event { padding: 16px; }
.mp-event-top { display: flex; align-items: flex-start; gap: 14px; }
.mp-event-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-event-main h3 { margin: 0; font-size: 1.1rem; }
.mp-event-sum { margin: 10px 0 0; color: var(--ink); }
.mp-event-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.mp-event-actions form { margin: 0; display: flex; align-items: center; gap: 8px; }
.mp-inline-label { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--ink-soft); }
.mp-inline-label select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); min-height: 36px; }

/* Directory, preview, consent, search */
.mp-search { display: flex; gap: 8px; margin: 0 0 16px; max-width: 420px; }
.mp-search input { flex: 1; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); min-height: 44px; }
.mp-directory { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mp-person-card { display: flex; gap: 12px; padding: 14px; align-items: center; }
.mp-person-card strong { display: block; color: var(--navy-950); }
.mp-preview { padding: 0; }
.mp-preview iframe { display: block; width: 100%; height: min(78vh, 900px); min-height: 420px; border: 0; background: var(--fog-50); }
.mp-preview img { display: block; max-width: 100%; margin: 0 auto; }
.mp-preview-help { padding: 10px 16px; border-top: 1px solid var(--line); }
.mp-consent { margin-bottom: 20px; border-color: var(--gold-400); }

/* Switch rows (settings) */
.mp-switch { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.mp-switch:last-child { border-bottom: 0; }
.mp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mp-switch-ui { flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--steel-300); position: relative; transition: background .15s ease; margin-top: 2px; }
.mp-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.mp-switch input:checked + .mp-switch-ui { background: var(--gold-600); }
.mp-switch input:checked + .mp-switch-ui::after { transform: translateX(18px); }
.mp-switch input:focus-visible + .mp-switch-ui { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.mp-switch small { display: block; color: var(--ink-soft); font-size: .8rem; }

/* Hover polish */
.mp-card { transition: box-shadow .15s ease; }
.mp-card:hover { box-shadow: 0 4px 14px rgba(12,35,48,.08); }

/* Mobile bottom navigation */
.mp-bottom-nav { display: none; }
@media (max-width: 980px) {
  .mp-summary { grid-template-columns: repeat(2, 1fr); }
  .mp-journey-steps { grid-template-columns: repeat(2, 1fr); }
  .mp-c-journey { order: 3; }
}
@media (max-width: 720px) {
  .mp-welcome-hero { padding: 18px; border-radius: 14px; }
  .mp-sum { padding: 12px; }
  .mp-sum-value { font-size: 1.6rem; }
  .mp-header-right { gap: 2px; }
  .mp-body.mp-has-bottom-nav { padding-bottom: 72px; }
  .mp-bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(12,35,48,.08); padding-bottom: env(safe-area-inset-bottom); }
  .mp-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 2px; min-height: 58px; font-size: .68rem; font-weight: 600; color: var(--ink-soft); }
  .mp-bottom-nav a.is-active { color: var(--navy-950); box-shadow: inset 0 3px 0 var(--gold-500); }
  .mp-bottom-nav a.is-active .mp-icon { color: var(--gold-600); }
  .mp-footer { padding-bottom: 20px; }
  .mp-event-top { flex-wrap: wrap; }
  .mp-pop-body { min-width: 0; width: 100%; }
}
@media (max-width: 420px) {
  .mp-summary { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mp-journey-steps { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .mp-sum, .mp-card, .mp-switch-ui, .mp-switch-ui::after { transition: none; } .mp-sum:hover { transform: none; } }

/* ---------- Round 103: SALT Group members, Add Child ---------- */
.mp-group-detail, .mp-roster-card { margin-bottom: 18px; }
.mp-roster { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.mp-roster-head, .mp-roster-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 16px; }
.mp-roster-head { background: var(--fog-50, #f5f7fa); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.mp-roster-row { border-top: 1px solid var(--line); }
.mp-roster-row:nth-child(odd) { background: rgba(12,35,48,.015); }
.mp-roster-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mp-roster-person > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.mp-roster-person strong { color: var(--navy-950); overflow-wrap: anywhere; }
.mp-role { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-700, #8a6a1d); }
.mp-roster-cell { min-width: 0; overflow-wrap: anywhere; font-size: .92rem; }
.mp-roster-cell a { color: var(--navy-800, var(--navy-950)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(12,35,48,.25); }
.mp-roster-cell a:hover { text-decoration-color: currentColor; }
.mp-linknote { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; }
.mp-add-child { margin: 16px 0 6px; }
.mp-dup .mp-kid { margin-bottom: 14px; }
@media (max-width: 720px) {
  .mp-roster-head { display: none; }
  .mp-roster-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .mp-roster-cell { padding-left: 52px; font-size: .9rem; }
  .mp-roster-cell::before { content: attr(data-label) ": "; color: var(--ink-soft); font-size: .8rem; }
}
.mp-roster-card .field-hint { margin-top: 14px; }

/* ---- Round 105: My ACTS hub (For You, Calendar, Messages) ---- */
.ph-foryou { margin: 0 0 18px; border-left: 4px solid var(--gold-500, #c9a24b); }
.ph-foryou .mp-card-head h2 { margin: 0; }
.ph-act { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line); }
.ph-act:first-child { border-top: 0; }
.ph-act .mp-avatar { flex: none; }
.ph-act-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ph-act-title { font-weight: 600; color: var(--navy-950); overflow-wrap: anywhere; }
.ph-act .btn { flex: none; }
.ph-next { display: flex; flex-direction: column; gap: 2px; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ph-chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--navy-950); text-decoration: none; background: #fff; }
.ph-chip b { margin-left: 4px; color: var(--ink-soft); }
.ph-chip.is-on { background: var(--navy-950); color: #fff; border-color: var(--navy-950); }
.ph-chip.is-on b { color: #fff; }
.ph-agenda { padding: 4px 14px; }
.ph-day { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ph-day:first-child { border-top: 0; }
.ph-day.is-today { background: var(--gold-100); margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.ph-date { flex: none; width: 52px; text-align: center; display: flex; flex-direction: column; line-height: 1.1; }
.ph-date b { font-size: 1.35rem; color: var(--navy-950); }
.ph-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.ph-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph-title { font-weight: 600; color: var(--navy-950); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.ph-title:hover { text-decoration: underline; }
.ph-side { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ph-t-assignment .ph-date b { color: var(--gold-600); }
.ph-thread .mp-card-body { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.ph-bubble { max-width: 82%; align-self: flex-start; background: var(--fog-50); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.ph-bubble p { margin: 0; overflow-wrap: anywhere; }
.ph-bubble.is-mine { align-self: flex-end; background: var(--steel-100); border-radius: 14px 14px 4px 14px; }
.ph-compose { display: flex; gap: 10px; align-items: flex-end; }
.ph-compose textarea { flex: 1; min-width: 0; width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: vertical; }
.ph-compose .btn { flex: none; }
.ph-aud { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--steel-100); color: var(--navy-700); }
@media (max-width: 640px) {
  .ph-day { flex-wrap: wrap; }
  .ph-side { width: 100%; justify-content: flex-start; padding-left: 66px; }
  .ph-act { flex-wrap: wrap; }
  .ph-bubble { max-width: 92%; }
  .ph-compose { flex-direction: column; align-items: stretch; }
  .ph-compose .btn { width: 100%; }
}

/* Round 106 — children in a SALT Group (name + age only) */
.mp-kids { list-style:none; margin:0 0 10px; padding:0; display:grid; gap:8px; }
.mp-kids li { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:baseline; padding:9px 12px; border:1px solid var(--line, #e4e8ee); border-radius:10px; background:#fff; }
.mp-kid-name { font-weight:600; }
@media (max-width:520px) { .mp-kids li { flex-direction:column; gap:2px; } }

/* Round 109 — class sessions in the portal calendar */
.ph-t-class .ph-date b { color: var(--navy-700, #2f5fa8); }
.ph-t-seminar .ph-date b { color: var(--gold-600, #b8860b); }
.mp-c-myclasses .mp-rows { margin: 0; }

/* Round 111 — Bible Study Groups (private mini-site in the Members Portal) */
.bs-cover { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius-md, 12px) var(--radius-md, 12px) 0 0; }
.bs-h { margin: 14px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.mp-badge--bs-current { background: #fff3cf; color: #7a5600; }
.mp-badge--bs-completed, .mp-badge--bs-present { background: #e3f5ec; color: var(--success); }
.mp-badge--bs-upcoming, .mp-badge--bs-assigned, .mp-badge--bs-scheduled { background: var(--steel-100); color: var(--navy-700); }
.mp-badge--bs-overdue, .mp-badge--bs-absent, .mp-badge--bs-urgent, .mp-badge--bs-cancelled { background: #fde8e6; color: #a32218; }
.mp-badge--bs-important, .mp-badge--bs-revision, .mp-badge--bs-late { background: var(--gold-100); color: var(--gold-600); }
.mp-badge--bs-submitted, .mp-badge--bs-in_progress, .mp-badge--bs-excused { background: #e8eefb; color: #2b4b8f; }
a.mp-row.bs-current { background: #fff8e6; border-left: 3px solid #e0a800; }
.bs-bar { height: 8px; background: var(--fog-50, #eef0f4); border-radius: 99px; overflow: hidden; }
.bs-bar span { display: block; height: 100%; background: var(--navy-700, #1f3a6b); }
.bs-event { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bs-event:last-child { border-bottom: 0; }
.bs-event.bs-cancelled { opacity: .65; }
.bs-event-date { flex: none; width: 46px; text-align: center; background: var(--gold-100); border-radius: 10px; padding: 4px 0; line-height: 1.1; }
.bs-event-date b { display: block; font-size: 1.15rem; }
.bs-event-date i { font-style: normal; font-size: .68rem; letter-spacing: .06em; color: var(--ink-soft); }
.bs-event-main { min-width: 0; flex: 1; }
.bs-event-actions { font-size: .85rem; margin-top: 3px; }
.bs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.bs-stats div { background: var(--fog-50, #f4f5f8); border-radius: 10px; padding: 8px; text-align: center; }
.bs-stats b { display: block; font-size: 1.25rem; }
.bs-stats span { font-size: .72rem; color: var(--ink-soft); }

/* Round 115 — “Switch To” block at the top of the profile menu (shared markup with the CMS menu) */
.mp-menu .as-switch { padding: 0 0 6px; margin: 0 0 6px; border-bottom: 1px solid var(--line); }
.mp-menu .as-switch-title { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 12px 4px; }
.mp-menu .as-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--ink); min-height: 44px; text-decoration: none; }
.mp-menu a.as-item:hover { background: var(--fog-50); color: var(--navy-900); }
.mp-menu .as-item.is-current { background: var(--fog-50); color: var(--navy-900); font-weight: 600; cursor: default; }
.mp-menu .as-cur { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.mp-menu .as-cur .as-ico { width: 12px; height: 12px; color: var(--success, #1b7f4b); }
.mp-menu .as-go { margin-left: auto; display: inline-flex; color: var(--ink-soft); }
.mp-menu .as-go .as-ico { width: 14px; height: 14px; }
@media (max-width: 560px) { .mp-menu { min-width: min(260px, calc(100vw - 24px)); } }
.mp-menu .as-label { white-space: nowrap; }
.mp-menu:has(.as-switch) { min-width: 250px; }

/* =================================================================
   Round 119 — compact, app-like dashboard ("pd-" block)
   Navy only for the Next-service strip; white cards, subtle borders, gold as a small accent.
   Phone: 2 × 2 quick overview, one column. Tablet: 2 × 2. Desktop: four cards in one row + a 2/3 + 1/3 split.
   ================================================================= */
.pd { display: flex; flex-direction: column; gap: 18px; }
.pd section { padding: 0; }   /* style.css gives every <section> 88px of padding */
.pd-top { display: grid; gap: 10px; }
.pd-greet h1 { margin: 0; font-size: 1.55rem; line-height: 1.2; color: var(--navy-950); }
.pd-welcome { display: none; margin: 2px 0 0; color: var(--ink-soft); }

.pd-svc { display: flex; flex-wrap: wrap; align-items: center; background: linear-gradient(135deg, var(--navy-950), var(--navy-700)); color: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); }
.pd-svc-link { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; border-radius: 14px; min-height: 64px; }
.pd-svc-link:hover { color: #fff; }
.pd-svc-link:focus-visible, .pd-svc-btn:focus-visible, .pd-ov-card:focus-visible, .pd-row:focus-visible, .pd-tile:focus-visible, .pd-more:focus-visible, .pd-foot:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.pd-svc-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.1); color: var(--gold-400); display: inline-flex; align-items: center; justify-content: center; }
.pd-svc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pd-svc-lab { font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-400); }
.pd-svc-name { font-weight: 700; font-size: 1.02rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-svc-when { font-size: .82rem; line-height: 1.3; color: rgba(255,255,255,.84); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-svc-go { flex: none; color: var(--gold-400); display: inline-flex; }
.pd-svc-btn { flex: none; margin: 0 12px 0 0; padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: var(--radius-pill); background: var(--gold-500); color: var(--navy-950); font-weight: 700; font-size: .8rem; white-space: nowrap; }
.pd-svc-btn:hover { background: var(--gold-400); color: var(--navy-950); }

.pd-h { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); }
.pd-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pd-sec-head .pd-h { margin-bottom: 8px; }
.pd-more { display: inline-flex; align-items: center; gap: 2px; min-height: 28px; font-size: .8rem; font-weight: 600; color: var(--navy-700); white-space: nowrap; }
.pd-more:hover { color: var(--gold-600); }
.pd-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold-500); color: var(--navy-950); font-size: .7rem; font-weight: 800; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; }

/* quick overview */
.pd-ov { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pd-ov-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic val" "lab lab" "sub sub"; column-gap: 8px; row-gap: 1px; align-content: start; align-items: center; min-height: 96px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; min-width: 0; }
.pd-ov-card:hover { border-color: var(--gold-400); box-shadow: 0 3px 10px rgba(12,35,48,.07); }
.pd-ov-ic { grid-area: ic; width: 34px; height: 34px; border-radius: 10px; background: var(--gold-100); color: var(--gold-600); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.pd-ov-val { grid-area: val; justify-self: end; text-align: right; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; color: var(--navy-950); min-width: 0; }
.pd-ov-val.is-text { font-family: var(--font-body); font-weight: 700; font-size: .95rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pd-ov-lab { grid-area: lab; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--navy-700); }
.pd-ov-sub { grid-area: sub; font-size: .78rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-ov-card.is-due .pd-ov-ic { background: var(--navy-950); color: var(--gold-400); }
.pd-ov-card.is-due .pd-ov-val { color: var(--gold-600); }
.pd-ov-card.is-clear .pd-ov-ic { background: #e3f5ec; color: var(--success); }
.pd-ov-card.is-clear .pd-ov-val { color: var(--success); }

/* compact list rows */
.pd-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pd-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; min-height: 58px; color: var(--ink); border-top: 1px solid var(--line); transition: background .12s ease; }
.pd-row:first-child { border-top: 0; }
.pd-row:hover { background: var(--fog-50); }
.pd-row:hover .pd-go { color: var(--gold-600); }
.pd-lead { flex: none; display: inline-flex; }
.pd-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--steel-100); color: var(--navy-700); display: inline-flex; align-items: center; justify-content: center; }
.pd-chip { width: 40px; height: 44px; border-radius: 10px; background: var(--gold-100); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.pd-chip b { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-950); }
.pd-chip i { font-style: normal; font-size: .58rem; font-weight: 700; letter-spacing: .08em; color: var(--gold-600); }
.pd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pd-title { line-height: 1.3; font-weight: 600; font-size: .92rem; color: var(--navy-950); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-sub { line-height: 1.35; font-size: .8rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-badge { flex: none; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--gold-100); color: var(--gold-600); font-size: .68rem; font-weight: 700; }
.pd-go { flex: none; display: inline-flex; color: var(--steel-300); transition: color .12s ease; }
.pd-list--action { border-left: 3px solid var(--gold-500); }
.pd-list--action .pd-ic { background: var(--gold-100); color: var(--gold-600); }
.pd-list--action .pd-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pd-foot { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-height: 40px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--navy-700); }

/* my space shortcuts */
.pd-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pd-tile { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 12px 7px 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .86rem; color: var(--navy-950); min-width: 0; transition: border-color .12s ease; }
.pd-tile:hover { border-color: var(--gold-400); }
.pd-tile-lab { flex: 1; min-width: 0; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pd-tile .pd-badge { max-width: 46%; }

.pd-grid { display: flex; flex-direction: column; gap: 18px; }
.pd-col { display: contents; }
.pd-s-actions { order: 1; } .pd-s-coming { order: 2; } .pd-s-news { order: 3; } .pd-s-res { order: 4; } .pd-s-sermon { order: 5; } .pd-s-space { order: 6; }

/* an odd number of overview cards: the last one takes the full row on phones and tablets */
@media (max-width: 980px) { .pd-ov--3 .pd-ov-card:last-child { grid-column: 1 / -1; } }
@media (min-width: 721px) {
  .pd { gap: 22px; }
  .pd-tiles { grid-template-columns: repeat(3, 1fr); }
  .pd-welcome { display: block; }
  .pd-greet h1 { font-size: 1.9rem; }
}
@media (min-width: 981px) {
  .pd-top { grid-template-columns: minmax(0, 1fr) minmax(380px, 1.15fr); align-items: center; gap: 24px; }
  .pd-greet h1 { font-size: 2.1rem; }
  .pd-ov { gap: 14px; }
  .pd-ov--4 { grid-template-columns: repeat(4, 1fr); }
  .pd-ov--3 { grid-template-columns: repeat(3, 1fr); }
  .pd-ov-card { min-height: 116px; padding: 16px 18px; }
  .pd-ov-ic { width: 38px; height: 38px; }
  .pd-ov-val { font-size: 1.9rem; }
  .pd-ov-val.is-text { font-size: 1.05rem; }
  .pd-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .pd-grid--single { grid-template-columns: minmax(0, 1fr); }
  .pd-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
  .pd-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .pd-svc-btn { margin: 0 14px 12px 66px; }
  .pd-list--action .pd-badge { display: none; }   /* the whole row is the link; give the title the room */
}
@media (max-width: 900px) { .mp-welcome { display: none; } }   /* the avatar is enough; keeps the header on one line */
@media (prefers-reduced-motion: reduce) { .pd-ov-card, .pd-row, .pd-tile, .pd-go { transition: none; } }

/* Round 119 — a tighter phone header and bottom navigation; the floating switcher sits just above the bottom navigation */
@media (max-width: 720px) {
  .mp-header-inner { min-height: 60px; padding: 4px 16px; }
  .mp-brand-logo { height: 40px; }
  .mp-body.mp-has-bottom-nav { padding-bottom: 76px; }
  .mp-bottom-nav a { padding: 6px 2px; min-height: 60px; gap: 1px; }
}

/* Round 120 — Clear cache & refresh + notification tidy-up */
.mp-menu .mp-menu-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: .92rem; font-weight: 500; color: var(--ink); min-height: 44px; text-align: left; cursor: pointer; }
.mp-menu .mp-menu-btn:hover, .mp-menu .mp-menu-btn:focus-visible { background: var(--fog-50); color: var(--navy-900); }
.mp-tidy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mp-tidy-item h3 { font-size: 1rem; margin: 0 0 4px; }
.mp-tidy-item .btn[disabled] { opacity: .5; cursor: not-allowed; }
.mp-tidy [data-mp-refresh-msg] { font-weight: 600; }
@media (max-width: 720px) { .mp-tidy-grid { grid-template-columns: 1fr; gap: 18px; } }

/* Round 147 — the profile / Quick Access menu scrolls inside the visible screen and never runs behind the fixed bottom navigation.
   --mp-header-h and --mp-bottom-nav-h are measured by assets/js/portal.js (the fallbacks below are only used before it runs). */
:root { --mp-header-h: 61px; --mp-bottom-nav-h: 0px; }
body.mp-has-bottom-nav { --mp-bottom-nav-h: calc(60px + env(safe-area-inset-bottom, 0px)); }
.mp-menu { max-height: calc(100vh - var(--mp-header-h) - 24px); max-height: calc(100dvh - var(--mp-header-h) - 24px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #c3ccd4 transparent; }
.mp-menu::-webkit-scrollbar { width: 8px; }
.mp-menu::-webkit-scrollbar-thumb { background: #c3ccd4; border-radius: 8px; }
.mp-menu-scrim { display: none; }
@media (max-width: 720px) {
  /* the menu ends 12px above the bottom navigation; whatever does not fit scrolls inside the menu */
  .mp-menu { max-height: calc(100vh - var(--mp-header-h) - var(--mp-bottom-nav-h) - 12px - 6px);
             max-height: calc(100dvh - var(--mp-header-h) - var(--mp-bottom-nav-h) - 12px - 6px);
             padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .mp-menu .as-switch-title { position: sticky; top: -6px; z-index: 2; background: #fff; margin-top: -6px; padding-top: 14px; }
  .mp-menu-scrim { display: block; position: fixed; inset: 0; z-index: 58; background: rgba(12,35,48,.38); opacity: 0; pointer-events: none; transition: opacity .15s ease; }
  html.mp-menu-open .mp-menu-scrim { opacity: 1; pointer-events: auto; }
  /* html only (it propagates to the viewport): a second overflow:hidden on <body> would turn the body into its own scroller and the sticky header would scroll away */
  html.mp-menu-open { overflow: hidden; overscroll-behavior: none; }
  /* Quick Access already lives inside the open menu: the floating switcher steps aside */
  html.mp-menu-open .as-fab-root { display: none !important; }
}
/* very small phones: the menu becomes a right-hand drawer between the header and the bottom navigation */
@media (max-width: 480px) {
  .mp-user { position: static; }
  .mp-menu { right: 0; left: auto; top: 100%; width: min(88vw, 340px); min-width: 0 !important; border-radius: 0 0 0 14px; border-right: 0; border-top: 0; box-shadow: -6px 6px 24px rgba(12,35,48,.18);
             max-height: calc(100vh - var(--mp-header-h) - var(--mp-bottom-nav-h));
             max-height: calc(100dvh - var(--mp-header-h) - var(--mp-bottom-nav-h)); }
}
@media (prefers-reduced-motion: reduce) { .mp-menu-scrim { transition: none; } }
