:root {
  --ink: hsl(168 25.55% 26.86%);
  --ink-2: hsl(168 20% 34%);
  --teal: hsl(13.2 41.67% 52.94%);
  --teal-dark: hsl(13.2 42% 44%);
  --blue-soft: hsl(25.71 32% 90%);
  --gold: hsl(25.71 31.61% 69.61%);
  --gold-soft: hsl(25.71 38% 89%);
  --green: hsl(168 25.55% 26.86%);
  --green-soft: hsl(107.37 18% 90%);
  --cream: #f3efe9;
  --paper: #ffffff;
  --line: #dce2e2;
  --muted: #6f7d79;
  --muted-2: #929c98;
  --danger: #a95f51;
  --shadow: 0 18px 50px rgba(51, 86, 79, 0.12);
  --shadow-sm: 0 8px 22px rgba(51, 86, 79, 0.09);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Open Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(42, 125, 132, 0.32);
  outline-offset: 2px;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 16%, rgba(180, 91, 67, .19), transparent 29%),
    radial-gradient(circle at 88% 82%, rgba(214, 186, 151, .22), transparent 31%),
    var(--ink);
}
.auth-card {
  width: min(680px, 100%);
  padding: 38px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(12, 34, 31, .28);
}
.auth-brand { width: 184px; margin-bottom: 30px; }
.auth-brand img { display: block; width: 100%; height: auto; }
.auth-card h1 { margin-bottom: 12px; text-transform: uppercase; font-size: clamp(28px, 7vw, 40px); }
.auth-copy { max-width: 590px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.login-role-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.login-role-option { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf9; color: var(--ink); text-align: left; cursor: pointer; transition: .18s ease; }
.login-role-option:hover { border-color: rgba(180,91,67,.5); background: #fffaf7; }
.login-role-option.active { border-color: var(--teal); background: #fff8f4; box-shadow: 0 0 0 3px rgba(180,91,67,.1); }
.login-role-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--ink); font-size: 16px; }
.login-role-option.active .login-role-icon { background: var(--teal); }
.login-role-option strong, .login-role-option small { display: block; }
.login-role-option strong { font-family: "Poppins", sans-serif; font-size: 13px; }
.login-role-option small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.login-mode-summary { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--teal); border-radius: 0 9px 9px 0; background: var(--blue-soft); }
.login-mode-summary strong { display: block; font-family: "Poppins", sans-serif; font-size: 12px; }
.login-mode-summary p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.auth-form { display: grid; gap: 10px; margin-top: 25px; }
.auth-form label { font-size: 14px; font-weight: 800; }
.auth-form input {
  width: 100%;
  border: 1px solid #bdcac6;
  border-radius: 11px;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  font-size: 16px;
}
.auth-form .primary-button { min-height: 48px; margin-top: 3px; font-size: 12px; }
.auth-status { min-height: 21px; margin-top: 15px; color: var(--teal-dark); font-size: 14px; line-height: 1.5; }
.auth-status.error { color: var(--danger); }
.auth-note { margin: 23px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.55; }

.prototype-banner {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  background: #294a44;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  letter-spacing: .035em;
  text-align: center;
}

.banner-dot { width: 6px; height: 6px; border-radius: 999px; background: #cf765a; box-shadow: 0 0 0 4px rgba(207,118,90,.16); }

.app-shell { min-height: calc(100vh - 32px); display: grid; grid-template-columns: 248px minmax(0, 1fr); }

.sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 32px 22px 22px;
  background: var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand { display: block; padding: 0 6px 20px; }
.brand-logo-wrap { border-radius: 12px; padding: 12px 13px 10px; background: #f7f3ed; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.brand-logo-wrap img { display: block; width: 100%; height: auto; }
.brand-portal-label { display: block; margin: 10px 2px 0; color: rgba(255,255,255,.68); font-family: "Poppins", sans-serif; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; }

.sidebar-context { margin: 0 0 17px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.055); }
.sidebar-context-kicker, .sidebar-context strong, .sidebar-context small { display: block; }
.sidebar-context-kicker { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-context strong { margin-top: 6px; overflow: hidden; color: white; font-family: "Poppins", sans-serif; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; }
.sidebar-context small { margin-top: 4px; color: rgba(255,255,255,.52); font-size: 9px; line-height: 1.45; }
.sidebar-context-back { margin: 11px 0 0; padding: 0; border: 0; background: transparent; color: #f3d1c7; font-size: 9px; font-weight: 800; cursor: pointer; }
.sidebar-context-back:hover { color: white; }

.primary-nav { display: grid; gap: 6px; }
.nav-section-label { margin: 9px 12px 2px; color: rgba(255,255,255,.37); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-item {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.68);
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
}
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 var(--teal); }
.nav-icon { font-size: 18px; text-align: center; }
.nav-count { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; color: white; background: var(--teal); font-size: 10px; font-weight: 800; }
.nav-count.neutral { background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); }
.sidebar-spacer { flex: 1; }

.guide-card { display: grid; grid-template-columns: 38px 1fr 30px; align-items: center; gap: 10px; padding: 13px 10px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.guide-avatar, .user-avatar, .church-avatar { display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.guide-avatar { width: 38px; height: 38px; background: var(--gold); color: var(--ink); font-size: 11px; }
.guide-copy small, .guide-copy strong { display: block; }
.guide-copy small { color: rgba(255,255,255,.48); font-size: 9px; margin-bottom: 3px; }
.guide-copy strong { font-size: 12px; }
.icon-button { border: 0; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.icon-button.light { background: rgba(255,255,255,.1); color: white; }
.reset-button { margin-top: 12px; border: 0; background: transparent; color: rgba(255,255,255,.42); font-size: 10px; cursor: pointer; padding: 8px; }
.reset-button:hover { color: white; }
.brand-tagline { margin: 2px 8px 0; color: rgba(255,255,255,.28); font-family: "Poppins", sans-serif; font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }

.main-content { min-width: 0; }
.topbar { height: 74px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.78); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 15; }
.church-identity { display: flex; align-items: center; gap: 11px; }
.church-avatar { width: 38px; height: 38px; color: white; background: var(--teal); font-size: 11px; }
.church-identity strong, .church-identity small { display: block; }
.church-identity strong { font-size: 13px; }
.church-identity small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.view-mode-badge { display: block; width: max-content; margin-bottom: 2px; color: var(--teal-dark); font-size: 8px; font-weight: 800; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.notification-button { position: relative; border: 1px solid var(--line); background: white; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 20px; }
.notification-button i { position: absolute; right: 5px; top: 4px; width: 7px; height: 7px; background: var(--teal); border-radius: 50%; border: 2px solid white; }
.notification-button b { position: absolute; right: -7px; top: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border: 2px solid white; border-radius: 999px; background: var(--teal); color: white; font-size: 9px; line-height: 1; }
.user-avatar { width: 38px; height: 38px; border: 0; background: var(--ink); color: white; font-size: 11px; cursor: pointer; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; cursor: pointer; }

.page-wrap { max-width: 1240px; margin: 0 auto; padding: 36px 42px 64px; }
.admin-context-banner { margin: 0 0 22px; padding: 14px 16px; border: 1px solid rgba(180,91,67,.28); border-left: 5px solid var(--teal); border-radius: 13px; background: linear-gradient(135deg, #fff8f4, #fff); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-context-banner span, .admin-context-banner strong, .admin-context-banner small { display: block; }
.admin-context-banner span { color: var(--teal-dark); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.admin-context-banner strong { margin-top: 4px; font-family: "Poppins", sans-serif; font-size: 15px; }
.admin-context-banner small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.view { display: none; animation: enter .32s ease both; }
.view.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.welcome-row, .section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.eyebrow, .section-kicker { text-transform: uppercase; font-weight: 800; letter-spacing: .14em; color: var(--teal); font-size: 9px; }
.eyebrow { margin: 0 0 9px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-family: "Poppins", sans-serif; font-weight: 600; font-size: clamp(28px, 3vw, 38px); line-height: 1.14; letter-spacing: -.028em; }
h2 { margin-bottom: 7px; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 20px; line-height: 1.25; }
.welcome-row h1, .section-header h1 { text-transform: uppercase; }
h3 { margin-bottom: 7px; }
.lead { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.primary-button, .secondary-button, .small-button, .filter-button, .chip, .text-button {
  border-radius: 9px;
  cursor: pointer;
  transition: .18s ease;
}
.primary-button { border: 1px solid var(--teal); background: var(--teal); color: white; padding: 11px 16px; font-size: 10px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; box-shadow: 0 8px 18px rgba(180,91,67,.18); }
.primary-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .58; cursor: wait; transform: none; }
.link-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.secondary-button { border: 1px solid #ccd5d1; background: white; padding: 10px 15px; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.secondary-button:hover { border-color: var(--teal); color: var(--teal); }
.full { width: 100%; display: flex; justify-content: center; align-items: center; gap: 12px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 800; }
.text-button:hover { color: var(--ink); }

.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.next-step-card, .progress-card, .journey-card, .task-preview-card, .resource-card, .help-panel, .forms-section, .required-panel { background: var(--paper); border: 1px solid rgba(22,55,70,.08); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.next-step-card { padding: 24px; background: linear-gradient(145deg, #fffdfa 0%, #f7f1e9 100%); border-top: 4px solid var(--teal); }
.next-step-header { display: flex; justify-content: space-between; align-items: center; }
.due-pill { margin-left: 9px; color: #875e24; background: var(--gold-soft); border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 750; }
.time-estimate { color: var(--muted); font-size: 10px; }
.next-step-body { display: grid; grid-template-columns: 52px 1fr; gap: 17px; margin: 24px 0 21px; }
.step-number { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 13px; background: var(--ink); color: white; font-family: "Poppins", sans-serif; font-size: 17px; font-weight: 600; }
.next-step-body h2 { font-size: 24px; }
.next-step-body p { color: var(--muted); font-size: 12px; line-height: 1.55; margin-bottom: 13px; }
.mini-progress { height: 5px; background: #dde4e2; border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.mini-progress span { height: 100%; display: block; background: var(--gold); border-radius: 999px; }
.next-step-body small { color: var(--muted); font-size: 9px; }

.progress-card { padding: 24px; display: flex; align-items: center; gap: 22px; }
.progress-ring { --p: calc(var(--progress) * 1%); flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) var(--p), #e6eceb 0); position: relative; }
.progress-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: white; }
.progress-ring div { position: relative; z-index: 1; text-align: center; }
.progress-ring strong, .progress-ring small { display: block; }
.progress-ring strong { font-family: "Poppins", sans-serif; font-size: 23px; }
.progress-ring small { color: var(--muted); font-size: 9px; }
.progress-copy h2 { margin-top: 7px; }
.progress-copy p { color: var(--muted); font-size: 11px; line-height: 1.55; }

.journey-card { margin-top: 18px; padding: 24px 26px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-heading h2 { margin-top: 6px; }
.card-heading.compact h2 { margin-bottom: 0; font-size: 19px; }
.stage-badge { padding: 6px 10px; border-radius: 999px; color: var(--teal); background: var(--blue-soft); font-size: 9px; font-weight: 800; }
.journey-track { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto; align-items: start; margin: 20px 0 21px; }
.journey-step { border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; width: 82px; text-align: center; }
.step-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: white; border: 2px solid #ccd6d6; color: var(--muted); font-size: 11px; font-weight: 800; position: relative; z-index: 1; }
.journey-step.complete .step-dot { color: white; background: var(--green); border-color: var(--green); }
.journey-step.active .step-dot { color: white; background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 6px rgba(42,125,132,.12); }
.step-label { margin-top: 8px; }
.step-label small, .step-label strong, .step-label em { display: block; }
.step-label small { color: var(--muted-2); font-size: 7px; text-transform: uppercase; letter-spacing: .12em; }
.step-label strong { margin: 3px 0; font-size: 10px; }
.step-label em { color: var(--muted-2); font-size: 8px; font-style: normal; }
.journey-step.active .step-label em { color: var(--teal); font-weight: 800; }
.track-line { height: 2px; margin-top: 16px; background: #dce3e2; }
.track-line.complete { background: var(--green); }
.stage-explainer { display: flex; gap: 13px; align-items: center; border-radius: 12px; padding: 14px 16px; background: #f5f8f7; }
.explainer-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--teal); flex: 0 0 auto; }
.stage-explainer strong { font-size: 11px; }
.stage-explainer p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.process-progress { height: 8px; margin: 22px 0 18px; overflow: hidden; border-radius: 999px; background: #e7ecea; }
.process-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ink), var(--teal)); transition: width .25s ease; }
.process-snapshot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.process-snapshot-item { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fafbf9; text-align: left; cursor: pointer; transition: .18s ease; }
.process-snapshot-item:hover { border-color: #b9caca; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.process-snapshot-item.current { border-color: rgba(180,91,67,.42); background: #fff8f4; box-shadow: inset 3px 0 0 var(--teal); }
.process-snapshot-item.complete { background: #f4f7f3; }
.process-snapshot-item span, .process-snapshot-item strong, .process-snapshot-item small { display: block; }
.process-snapshot-item span { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.process-snapshot-item strong { margin-top: 7px; font-family: "Poppins", sans-serif; font-size: 15px; line-height: 1.3; }
.process-snapshot-item small { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.journey-link { margin-top: 18px; }

.pathway-header { align-items: center; }
.pathway-summary { border-top: 4px solid var(--teal); }
.pathway-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.tip-timeline { display: grid; gap: 11px; }
.tip-step-card { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); transition: .18s ease; }
.tip-step-card:hover { transform: translateY(-1px); border-color: #b9caca; }
.tip-step-card.current { border: 2px solid rgba(180,91,67,.5); background: linear-gradient(135deg, #fffaf6, #fff); box-shadow: 0 12px 28px rgba(180,91,67,.12); }
.tip-step-card.upcoming { box-shadow: none; background: rgba(255,255,255,.7); }
.timeline-marker { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #cbd5d2; background: white; color: var(--muted); font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 700; }
.tip-step-card.complete .timeline-marker { border-color: var(--ink); background: var(--ink); color: white; }
.tip-step-card.current .timeline-marker { border-color: var(--teal); background: var(--teal); color: white; box-shadow: 0 0 0 7px rgba(180,91,67,.12); }
.tip-step-copy, .tip-step-copy strong, .tip-step-copy small { display: block; min-width: 0; }
.tip-step-meta { color: var(--teal); font-size: 12px; font-weight: 700; }
.tip-step-copy strong { margin-top: 4px; font-family: "Poppins", sans-serif; font-size: 17px; line-height: 1.3; }
.tip-step-copy small { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tip-step-status { align-self: start; padding: 6px 9px; border-radius: 999px; background: #edf1f0; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.tip-step-card.complete .tip-step-status { color: var(--ink); background: var(--green-soft); }
.tip-step-card.current .tip-step-status { color: var(--teal-dark); background: var(--gold-soft); }
.pathway-aside { display: grid; gap: 16px; position: sticky; top: 98px; }
.current-step-panel, .principle-card, .future-process-card { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.current-step-panel { padding: 25px; background: var(--ink); color: white; }
.current-step-panel .section-kicker { color: #dfaa98; }
.current-step-number { display: block; margin: 20px 0 7px; font-family: "Poppins", sans-serif; font-size: 46px; line-height: 1; color: var(--gold); }
.current-step-panel h2 { font-size: 23px; }
.current-step-panel p { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.6; }
.current-step-panel .secondary-button { color: white; background: transparent; border-color: rgba(255,255,255,.32); }
.current-step-actions { display: grid; gap: 9px; margin-top: 20px; }
.principle-card { padding: 23px; border: 1px solid rgba(22,55,70,.08); background: white; }
.principle-card h2 { margin-top: 8px; }
.principle-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.future-process-card { padding: 22px; border: 1px dashed #b7c4c1; background: rgba(255,255,255,.52); }
.future-badge { display: inline-block; padding: 5px 8px; border-radius: 999px; color: var(--muted); background: #e8eceb; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.future-process-card h3 { margin-top: 13px; font-family: "Poppins", sans-serif; font-size: 17px; }
.future-process-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.lower-grid { margin-top: 18px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.task-preview-card, .resource-card { padding: 22px 24px; }
.compact-tasks { margin-top: 14px; }
.compact-task { display: grid; grid-template-columns: 25px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #edf0ef; }
.compact-task:first-child { border-top: 0; }
.compact-check { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #ccd7d6; border-radius: 6px; color: white; font-size: 10px; }
.compact-check.done { background: var(--green); border-color: var(--green); }
.compact-task strong { display: block; font-size: 11px; }
.compact-task small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.compact-task > small { color: var(--muted); }
.resource-card { display: grid; grid-template-columns: 142px 1fr; gap: 22px; align-items: center; background: var(--ink); color: white; overflow: hidden; }
.resource-card p { color: rgba(255,255,255,.62); font-size: 10px; line-height: 1.55; }
.resource-card .section-kicker { color: #9fd0d1; }
.resource-card .text-button { color: #f3d885; }
.resource-visual { height: 148px; border-radius: 10px; position: relative; overflow: hidden; background: linear-gradient(rgba(51,86,79,.05), rgba(51,86,79,.16)), url("assets/church-leader.webp") center / cover; transform: rotate(-2deg); box-shadow: 0 15px 26px rgba(0,0,0,.18); }

.completion-summary { min-width: 164px; padding: 13px 16px; border-radius: 12px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.completion-summary strong, .completion-summary span { display: block; }
.completion-summary strong { font-family: "Poppins", sans-serif; font-size: 19px; }
.completion-summary span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.action-layout { display: grid; grid-template-columns: 1fr 260px; gap: 20px; align-items: start; }
.subsection-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 13px; }
.subsection-title h2 { margin: 5px 0 0; }
.status-key { color: var(--muted); font-size: 8px; }
.status-key i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--gold); margin-right: 4px; }
.task-list { display: grid; gap: 9px; }
.task-row { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 15px 16px; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; transition: .18s ease; }
.task-row:hover { border-color: #b9caca; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.task-row.done { background: #f8faf8; }
.task-checkbox { width: 24px; height: 24px; border: 1px solid #bcc9c8; border-radius: 7px; background: white; cursor: pointer; }
.task-checkbox.checked { background: var(--green); border-color: var(--green); color: white; }
.task-copy strong { display: block; font-size: 12px; }
.task-copy span { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }
.task-action { border: 0; background: transparent; color: var(--teal); font-size: 10px; font-weight: 800; cursor: pointer; }
.help-panel { padding: 23px; background: var(--ink); color: white; position: sticky; top: 96px; }
.help-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #e1b5a6; margin-bottom: 18px; font-family: "Poppins", sans-serif; }
.help-panel h3 { font-family: "Poppins", sans-serif; font-size: 17px; font-weight: 600; }
.help-panel p { color: rgba(255,255,255,.62); font-size: 10px; line-height: 1.55; }
.help-panel .secondary-button { background: transparent; color: white; border-color: rgba(255,255,255,.25); margin-top: 8px; }
.help-panel hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 20px 0 14px; }
.help-panel small, .help-panel strong { display: block; }
.help-panel small { color: rgba(255,255,255,.45); font-size: 8px; }
.help-panel strong { font-size: 10px; margin-top: 4px; }

.forms-section { margin-top: 28px; padding: 22px 24px; }
.filter-button, .chip { border: 1px solid var(--line); color: var(--muted); background: white; padding: 6px 10px; font-size: 9px; }
.filter-button.active, .chip.active { background: var(--blue-soft); border-color: #c6dfe2; color: var(--teal); font-weight: 800; }
.forms-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.forms-row { display: grid; grid-template-columns: 2fr 1.15fr .9fr .55fr; gap: 14px; align-items: center; padding: 13px 15px; border-top: 1px solid var(--line); font-size: 10px; }
.forms-row:first-child { border-top: 0; }
.forms-head { background: #f5f7f6; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 7px; font-weight: 800; }
.forms-row > div { display: flex; align-items: center; gap: 10px; }
.forms-row strong, .forms-row small { display: block; }
.forms-row strong { font-size: 10px; }
.forms-row small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.forms-row.muted { opacity: .67; }
.file-icon { width: 30px; height: 34px; border-radius: 7px; display: grid; place-items: center; font-size: 9px; font-weight: 900; flex: 0 0 auto; }
.file-icon.form { color: var(--teal); background: var(--blue-soft); }
.file-icon.done { color: var(--green); background: var(--green-soft); }
.file-icon.locked { color: var(--muted); background: #edf0ef; }
.status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; margin-right: 4px; }
.status-dot.amber { background: var(--gold); }.status-dot.gray { background: #aab6b6; }.status-dot.green { background: var(--green); }
.small-button { border: 1px solid var(--teal); background: var(--teal); color: white; padding: 7px 10px; font-size: 9px; font-weight: 800; }
.small-button.ghost { background: white; color: var(--teal); }

.document-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 22px; }
.document-summary-grid article { display: flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 13px; padding: 15px; }
.summary-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; font-size: 12px; }
.summary-icon.green { color: var(--green); background: var(--green-soft); }.summary-icon.blue { color: var(--teal); background: var(--blue-soft); }.summary-icon.gold { color: #8b642b; background: var(--gold-soft); }
.document-summary-grid strong, .document-summary-grid small { display: block; }
.document-summary-grid strong { font-size: 13px; }.document-summary-grid small { color: var(--muted); font-size: 8px; margin-top: 2px; }
.document-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.upload-zone { min-height: 142px; border: 1.5px dashed #abc0c0; border-radius: 15px; background: rgba(255,255,255,.64); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; transition: .2s ease; }
.upload-zone:hover, .upload-zone.dragging { border-color: var(--teal); background: var(--blue-soft); }
.upload-zone.uploading { cursor: wait; border-style: solid; border-color: var(--teal); background: var(--blue-soft); }
.upload-icon { width: 36px; height: 36px; margin-bottom: 9px; border-radius: 50%; display: grid; place-items: center; background: white; color: var(--teal); box-shadow: var(--shadow-sm); font-size: 18px; }
.upload-zone strong { font-size: 11px; }.upload-zone p { color: var(--muted); font-size: 9px; margin: 5px 0 4px; }.upload-zone small { color: var(--muted-2); font-size: 7px; }
.document-list-header { display: flex; justify-content: space-between; align-items: flex-end; margin: 24px 0 11px; }
.document-list-header h2 { margin: 5px 0 0; }
.document-filters { display: flex; gap: 5px; }
.document-list { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.document-row { display: grid; grid-template-columns: 1fr 105px 34px; gap: 10px; align-items: center; padding: 13px 15px; border-top: 1px solid var(--line); }
.document-row:first-child { border-top: 0; }
.document-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.document-main > span:last-child { min-width: 0; }
.document-main strong, .document-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-main strong { font-size: 10px; }.document-main small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.document-source { color: var(--muted); font-size: 8px; }
.doc-menu { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 17px; }
.required-panel { padding: 22px; position: sticky; top: 96px; }
.required-progress { height: 5px; background: #e7eceb; border-radius: 999px; overflow: hidden; margin: 13px 0 17px; }
.required-progress span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.required-item { display: grid; grid-template-columns: 20px 1fr; gap: 9px; padding: 10px 0; border-top: 1px solid #edf0ef; }
.required-item:first-child { border-top: 0; }
.required-check { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-size: 8px; background: #eef1f0; color: var(--muted); }
.required-item.done .required-check { background: var(--green-soft); color: var(--green); }
.required-item strong, .required-item small { display: block; }
.required-item strong { font-size: 9px; }.required-item small { color: var(--muted); font-size: 7px; margin-top: 3px; }
.panel-note { margin: 17px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; line-height: 1.5; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(10,34,44,.46); backdrop-filter: blur(3px); z-index: 50; }
.drawer { position: fixed; z-index: 60; top: 0; right: 0; width: min(520px, 100vw); height: 100vh; background: white; box-shadow: -22px 0 60px rgba(14,43,55,.18); transform: translateX(105%); transition: transform .3s ease; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-header { padding: 25px 27px 17px; display: flex; justify-content: space-between; gap: 20px; }
.drawer-header h2 { margin: 6px 0 0; font-size: 25px; }
.close-button { border: 0; background: #f1f4f3; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 21px; line-height: 1; }
.drawer-progress { height: 4px; background: #edf0ef; }.drawer-progress span { display: block; height: 100%; background: var(--gold); transition: width .2s ease; }
.drawer-body { padding: 24px 27px 100px; overflow: auto; }
.form-intro { padding: 14px; border-radius: 11px; background: #f4f7f6; color: var(--muted); font-size: 10px; line-height: 1.5; }
.field-group { display: grid; gap: 7px; margin-top: 18px; }
.field-group label { font-size: 10px; font-weight: 800; }
.field-group label small { color: var(--muted); font-weight: 500; }
.field-group input, .field-group textarea, .field-group select { width: 100%; border: 1px solid #cbd6d6; border-radius: 9px; padding: 11px 12px; color: var(--ink); background: white; font-size: 11px; }
.field-group textarea { min-height: 94px; resize: vertical; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scale-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.scale-options label { border: 1px solid var(--line); border-radius: 8px; padding: 10px 4px; text-align: center; cursor: pointer; font-size: 9px; }
.scale-options input { width: auto; margin: 0 0 5px; display: block; margin-inline: auto; }
.drawer-footer { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 27px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

.dialog { display: none; position: fixed; z-index: 60; width: min(480px, calc(100vw - 30px)); max-height: calc(100vh - 40px); overflow: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); background: white; border-radius: 18px; padding: 29px; box-shadow: var(--shadow); }
.dialog.open { display: block; animation: dialogEnter .2s ease both; }
@keyframes dialogEnter { from { opacity: 0; transform: translate(-50%, -47%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.dialog-close { position: absolute; right: 17px; top: 17px; }
.dialog-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-soft); color: var(--teal); font-family: "Poppins", sans-serif; font-size: 21px; margin-bottom: 17px; }
.dialog h2 { font-size: 25px; padding-right: 30px; }
.dialog p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.message-box { width: 100%; min-height: 110px; border: 1px solid #cbd6d6; border-radius: 10px; padding: 11px; resize: vertical; color: var(--ink); }
.preview-list { margin: 16px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.preview-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 10px; }
.preview-list span { color: var(--muted); }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: white; border-radius: 10px; padding: 11px 15px; font-size: 10px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .24s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.admin-heading h1 { margin: 6px 0 8px; }
.admin-heading .lead { margin: 0; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.admin-metrics article { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.admin-metrics article.attention { border-color: rgba(180,91,67,.26); background: linear-gradient(145deg, #fff, #fff7f3); }
.admin-metrics span, .admin-metrics strong, .admin-metrics small { display: block; }
.admin-metrics span { color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-metrics strong { margin: 8px 0 2px; font-family: "Poppins", sans-serif; font-size: 30px; line-height: 1; }
.admin-metrics small { color: var(--muted-2); font-size: 12px; }
.admin-notice { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border: 1px solid rgba(51,86,79,.14); border-radius: 15px; background: var(--green-soft); }
.admin-notice-icon { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 800; }
.admin-notice strong { display: block; font-family: "Poppins", sans-serif; font-size: 15px; }
.admin-notice p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.activity-center { margin-top: 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.activity-heading { align-items: flex-end; }
.activity-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.activity-list { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.activity-item { width: 100%; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 15px 16px; border: 0; border-top: 1px solid var(--line); background: white; color: var(--ink); text-align: left; cursor: pointer; transition: .18s ease; }
.activity-item:first-child { border-top: 0; }
.activity-item:hover { background: #f8faf9; }
.activity-item.unread { background: #fff8f4; box-shadow: inset 3px 0 0 var(--teal); }
.activity-kind { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--blue-soft); color: var(--teal); font-size: 15px; font-weight: 800; }
.activity-kind.high { background: #f8e8df; color: var(--teal-dark); }
.activity-copy { min-width: 0; }
.activity-copy strong, .activity-copy span, .activity-copy small { display: block; }
.activity-copy strong { font-family: "Poppins", sans-serif; font-size: 13px; }
.activity-copy span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy small { margin-top: 5px; color: var(--muted-2); font-size: 10px; }
.activity-actions { display: flex; align-items: center; gap: 7px; }
.activity-status { padding: 5px 8px; border-radius: 999px; background: #eef2f1; color: var(--muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.activity-item.unread .activity-status { background: var(--teal); color: white; }
.activity-resolve { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 7px 9px; color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 800; }
.activity-resolve:hover { border-color: var(--green); color: var(--green); }
.activity-empty { padding: 38px 24px; text-align: center; }
.activity-empty strong { display: block; font-family: "Poppins", sans-serif; font-size: 18px; }
.activity-empty p { max-width: 480px; margin: 7px auto 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.notification-preview { display: grid; gap: 9px; margin-top: 15px; }
.notification-preview button { width: 100%; display: grid; gap: 3px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf9; color: var(--ink); text-align: left; cursor: pointer; }
.notification-preview button strong { font-size: 11px; }
.notification-preview button span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-workspaces { margin-top: 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.admin-refresh-note { color: var(--muted); font-size: 12px; }
.admin-table { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.admin-row { display: grid; grid-template-columns: minmax(220px, 1.35fr) minmax(130px, .8fr) minmax(190px, 1fr) auto; gap: 18px; align-items: center; padding: 15px 17px; border-top: 1px solid var(--line); }
.admin-row:first-child { border-top: 0; }
.admin-row-head { color: var(--muted); background: #f5f7f6; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.admin-row strong, .admin-row small { display: block; }
.admin-row strong { font-size: 13px; }
.admin-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.admin-church-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.church-avatar.small { width: 37px; height: 37px; font-size: 11px; flex: 0 0 auto; }
.admin-empty { padding: 42px 24px; text-align: center; }
.admin-empty strong { font-family: "Poppins", sans-serif; font-size: 20px; }
.admin-empty p { max-width: 520px; margin: 9px auto 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.dialog-note { margin-top: 16px; padding: 11px 12px; border-radius: 9px; background: #f4f7f6; font-size: 12px !important; }

.admin-workspace-tools { margin: -2px 0 20px; padding: 16px 18px; border: 1px solid rgba(51,86,79,.18); border-radius: 14px; background: linear-gradient(135deg, #edf6f3, #f8fbfa); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-workspace-tools[hidden] { display: none; }
.admin-workspace-tools strong, .admin-workspace-tools small { display: block; }
.admin-workspace-tools strong { margin-top: 5px; font-family: "Poppins", sans-serif; font-size: 14px; }
.admin-workspace-tools small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.admin-workspace-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.message-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.message-thread-card, .message-info-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.message-thread-card { overflow: hidden; }
.message-thread { min-height: 360px; max-height: 56vh; overflow-y: auto; padding: 22px; background: #f8faf9; display: flex; flex-direction: column; gap: 12px; }
.message-empty { margin: auto; max-width: 390px; text-align: center; color: var(--muted); }
.message-empty strong { display: block; color: var(--ink); font-family: "Poppins", sans-serif; font-size: 17px; }
.message-empty p { margin: 6px 0 0; font-size: 12px; line-height: 1.55; }
.message-bubble { width: min(76%, 560px); padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; background: white; }
.message-bubble.mine { align-self: flex-end; color: white; border-color: var(--teal); border-radius: 14px 14px 4px 14px; background: var(--teal); }
.message-bubble header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 10px; }
.message-bubble header span { color: var(--muted); }
.message-bubble.mine header span { color: rgba(255,255,255,.68); }
.message-bubble p { margin: 0; color: inherit; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-composer { padding: 18px 20px; border-top: 1px solid var(--line); }
.message-composer label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; }
.message-composer textarea { width: 100%; min-height: 96px; resize: vertical; border: 1px solid #cbd6d6; border-radius: 10px; padding: 11px 12px; color: var(--ink); font-size: 14px; }
.message-composer > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.message-composer small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.message-info-card { padding: 23px; }
.message-info-card h2 { margin: 15px 0 7px; }
.message-info-card p, .message-info-card li { color: var(--muted); font-size: 11px; line-height: 1.55; }
.message-info-card ul { margin: 15px 0 0; padding-left: 18px; }
.message-info-card li + li { margin-top: 7px; }
.integration-source-list { margin: 16px 0 0; display: grid; gap: 8px; }
.integration-source-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--teal); background: #f8faf9; font-size: 11px; font-weight: 800; text-decoration: none; }
.integration-source-list a::after { content: "↗"; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 210px minmax(0,1fr); }
  .sidebar { padding-inline: 16px; }
  .topbar, .page-wrap { padding-left: 28px; padding-right: 28px; }
  .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
  .progress-card { min-height: 170px; }
  .journey-track { overflow-x: auto; padding-bottom: 8px; grid-template-columns: 82px 60px 82px 60px 82px 60px 82px 60px 82px; }
  .action-layout, .document-layout, .message-layout { grid-template-columns: 1fr; }
  .pathway-layout { grid-template-columns: 1fr; }
  .pathway-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .current-step-panel { grid-row: span 2; }
  .help-panel, .required-panel { position: static; }
  .document-layout .required-panel { grid-row: 1; }
  .admin-row { grid-template-columns: 1fr 1fr auto; }
  .admin-row > span:nth-child(3) { grid-column: 1 / 3; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .activity-heading { align-items: flex-start; flex-direction: column; }
  .activity-filters { justify-content: flex-start; }
  .admin-row-head { display: none; }
  .message-info-card { grid-row: 1; }
}

@media (max-width: 720px) {
  .auth-screen { padding: 16px; }
  .auth-card { padding: 27px 22px; border-radius: 19px; }
  .auth-brand { margin-bottom: 22px; }
  .login-role-switch { grid-template-columns: 1fr; }
  .prototype-banner { height: auto; min-height: 38px; padding-block: 6px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; top: 38px; left: 0; height: calc(100vh - 38px); width: 260px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: block; }
  .topbar { height: 68px; padding: 0 17px; }
  .page-wrap { padding: 27px 17px 50px; }
  .admin-context-banner { align-items: stretch; flex-direction: column; }
  .admin-context-banner .secondary-button { width: 100%; }
  .view-mode-badge { margin-bottom: 1px; }
  .church-identity small { display: none; }
  .church-identity strong { max-width: 155px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .welcome-row, .section-header { align-items: flex-start; flex-direction: column; }
  .welcome-row .secondary-button { display: none; }
  .next-step-body { grid-template-columns: 40px 1fr; }
  .step-number { width: 40px; height: 40px; }
  .progress-card { align-items: flex-start; }
  .journey-card { padding-inline: 17px; }
  .process-snapshot { grid-template-columns: 1fr; }
  .pathway-aside { grid-template-columns: 1fr; }
  .current-step-panel { grid-row: auto; }
  .tip-step-card { grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding: 15px; }
  .timeline-marker { width: 40px; height: 40px; font-size: 12px; }
  .tip-step-status { grid-column: 2; justify-self: start; }
  .resource-card { grid-template-columns: 92px 1fr; }
  .resource-visual { height: 122px; }
  .forms-section { padding: 18px 14px; }
  .forms-head { display: none; }
  .forms-row { grid-template-columns: 1fr auto; }
  .forms-row > span:nth-child(2), .forms-row > span:nth-child(3) { grid-column: 1; padding-left: 40px; }
  .forms-row > button { grid-column: 2; grid-row: 1; }
  .document-summary-grid { grid-template-columns: 1fr; }
  .document-list-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .document-row { grid-template-columns: 1fr 24px; }
  .document-source { display: none; }
  .two-fields { grid-template-columns: 1fr; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-metrics { grid-template-columns: 1fr; }
  .activity-center { padding: 17px 14px; }
  .activity-item { grid-template-columns: 40px minmax(0,1fr); }
  .activity-actions { grid-column: 2; justify-content: flex-start; }
  .admin-workspaces { padding: 17px 14px; }
  .admin-row { grid-template-columns: 1fr; gap: 11px; }
  .admin-row > span:nth-child(3) { grid-column: 1; }
  .admin-row .small-button { width: 100%; }
  .admin-workspace-tools { align-items: stretch; flex-direction: column; }
  .admin-workspace-actions { flex-direction: column; }
  .admin-workspace-actions button { width: 100%; }
  .message-bubble { width: 90%; }
  .message-composer > div { align-items: stretch; flex-direction: column; }
  .message-composer button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
