:root {
  color-scheme: dark;
  --navy: #041f35;
  --navy-deep: #021524;
  --teal: #0d5868;
  --teal-soft: #167488;
  --gold: #d3aa50;
  --gold-light: #f1d68f;
  --ink: #e9f4f6;
  --muted: #adc4ca;
  --line: rgba(215, 235, 237, .16);
  --surface: rgba(5, 35, 54, .88);
  --surface-2: rgba(12, 72, 90, .75);
  --danger: #f1a390;
  --success: #96d6ad;
  font-family: Inter, Aptos, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: linear-gradient(135deg, var(--navy-deep), var(--navy)); font-size: 16px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(241, 214, 143, .55); outline-offset: 2px; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 .5rem; color: var(--gold-light); font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.muted-copy, .dialog-copy { color: var(--muted); line-height: 1.55; }
.button { border: 0; border-radius: .82rem; min-height: 2.9rem; padding: .68rem 1.05rem; font-weight: 800; transition: transform .16s ease, filter .16s ease, background .16s ease; }
.button:hover:not(:disabled), .quick-card:hover, .member-card:hover, .export-card:hover, .area-card:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button:disabled { opacity: .52; cursor: not-allowed; }
.button-primary { color: #172a33; background: linear-gradient(135deg, #f2d77f, #c68f37); }
.button-quiet { color: #e9f4f6; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.text-button, .back-button { border: 0; color: var(--gold-light); background: transparent; font-weight: 750; text-decoration: underline; }
.status-message { min-height: 1.3rem; margin: .75rem 0 0; color: var(--gold-light); font-size: .88rem; line-height: 1.4; }

/* Entrada: fotografia oficial com véu azul-petróleo para preservar leitura. */
.login-scene {
  position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 1.25rem;
  background: url("https://static.wixstatic.com/media/7df9a9_ce2626f45afd476ab1f452ba6cd56a07~mv2.png") center / cover no-repeat;
}
.login-veil { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(1, 25, 42, .91), rgba(2, 42, 58, .73) 54%, rgba(1, 18, 35, .88)); }
.login-card {
  position: relative; width: min(100%, 34rem); padding: clamp(1.5rem, 4vw, 2.45rem); border: 1px solid rgba(241, 214, 143, .45);
  border-radius: 1.55rem; text-align: center; background: linear-gradient(145deg, rgba(5, 35, 55, .94), rgba(3, 24, 43, .95)); box-shadow: 0 2rem 5rem rgba(0, 0, 0, .48); backdrop-filter: blur(14px);
}
.login-logo { display: block; width: 7.3rem; height: 7.3rem; margin: -4.7rem auto 1rem; object-fit: cover; border-radius: 1.5rem; border: 2px solid rgba(241, 214, 143, .65); box-shadow: 0 .9rem 2.2rem rgba(0, 0, 0, .42); }
.login-card h1 { margin: 0; font-size: clamp(2rem, 6vw, 2.8rem); letter-spacing: -.06em; }
.version-label { margin: .45rem 0 0; color: #bfd2d7; font-size: .68rem; font-weight: 850; letter-spacing: .1em; }
.login-copy { max-width: 26rem; margin: .75rem auto 1.15rem; color: #d4e2e5; line-height: 1.55; }
.area-picker, .profile-picker { display: grid; gap: .7rem; margin: 1rem 0; text-align: left; }
.area-card, .login-profile { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 5.2rem; padding: .8rem; color: var(--ink); text-align: left; border: 1px solid var(--line); border-radius: .9rem; background: rgba(255, 255, 255, .06); }
.area-card b, .login-profile b { margin-left: auto; color: var(--gold-light); font-size: .74rem; font-weight: 800; }
.area-icon, .profile-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 3.15rem; height: 3.15rem; border-radius: .8rem; color: #102c39; background: linear-gradient(145deg, #f0d177, #bb8432); font-size: 1.3rem; font-weight: 900; }
.area-card strong, .area-card small, .login-profile strong, .login-profile small { display: block; }
.area-card strong, .login-profile strong { margin-bottom: .25rem; font-size: 1rem; }
.area-card small, .login-profile small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.login-profile.selected { border-color: var(--gold); background: rgba(211, 170, 80, .14); }
.operator-stage { text-align: left; }
.picker-label { margin: .8rem 0 .4rem; color: #c4d4d7; font-size: .9rem; }
.back-button { padding: 0; font-size: .88rem; }
.password-field { display: grid; gap: .36rem; position: relative; margin-top: .8rem; color: #d6e5e7; font-size: .82rem; font-weight: 750; }
.password-field input { width: 100%; min-height: 3.15rem; padding: .65rem 3rem .65rem .8rem; color: #fff; border: 1px solid var(--line); border-radius: .72rem; background: rgba(0, 11, 22, .58); }
.password-field button { position: absolute; right: .35rem; bottom: .38rem; min-width: 4.3rem; height: 2.35rem; color: var(--gold-light); border: 0; border-radius: .5rem; background: transparent; font-size: .72rem; font-weight: 800; }
.button-wide { width: 100%; margin-top: .8rem; }
.login-footer { display: flex; justify-content: center; align-items: center; gap: .75rem; margin-top: 1.1rem; }
.connection-badge { display: inline-flex; align-items: center; gap: .38rem; padding: .38rem .65rem; color: #d0e6dc; border-radius: 999px; background: rgba(150, 214, 173, .12); font-size: .75rem; }
.connection-badge::before { width: .45rem; height: .45rem; content: ""; border-radius: 50%; background: var(--success); }

/* Aplicativo autenticado. */
.app-shell { min-height: 100vh; background: radial-gradient(circle at 78% 2%, rgba(28, 111, 129, .24), transparent 31rem), linear-gradient(135deg, #031a2e, #062a42); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; min-height: 4.5rem; gap: .75rem; padding: .55rem clamp(.75rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line); background: rgba(2, 22, 38, .88); backdrop-filter: blur(16px); }
.menu-button, .icon-button, .avatar-button { display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: #f6fbfc; }
.menu-button, .icon-button { min-height: 2.7rem; padding: .45rem .7rem; border-radius: .72rem; font-size: .75rem; font-weight: 800; }
.top-brand { display: flex; align-items: center; gap: .55rem; color: #edf7f8; font-size: .85rem; font-weight: 850; letter-spacing: .09em; }
.top-brand img { width: 2.3rem; height: 2.3rem; border-radius: .65rem; object-fit: cover; }
.top-brand b { color: var(--gold-light); }
.top-account { display: flex; align-items: center; gap: .65rem; margin-left: auto; }
.environment-label { color: #bdd0d5; font-size: .78rem; }
.avatar-button { width: 2.55rem; height: 2.55rem; border-radius: 50%; color: #072536; background: linear-gradient(145deg, #f0d177, #bd8736); font-size: .78rem; font-weight: 900; }
.menu-drawer { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: min(18.5rem, calc(100vw - 2.2rem)); padding: 1.1rem .8rem; border-right: 1px solid rgba(241, 214, 143, .32); background: linear-gradient(180deg, #062c43, #021c2d); box-shadow: 1.3rem 0 3rem rgba(0, 0, 0, .35); transform: translateX(-110%); transition: transform .22s ease; }
.menu-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .35rem .35rem 1rem; border-bottom: 1px solid var(--line); }
.drawer-head small, .drawer-head strong { display: block; }
.drawer-head small { margin-bottom: .25rem; color: var(--gold-light); font-size: .65rem; letter-spacing: .12em; }
.drawer-head strong { font-size: 1rem; }
.drawer-nav { display: grid; gap: .25rem; padding-top: .8rem; }
.nav-group { margin: .8rem .55rem .25rem; color: var(--gold-light); font-size: .65rem; font-weight: 850; letter-spacing: .1em; }
.nav-item { padding: .78rem .85rem; color: #d7e6e8; text-align: left; border: 0; border-radius: .65rem; background: transparent; font-size: .91rem; font-weight: 700; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(80, 157, 169, .22); }
.nav-item.active { box-shadow: inset 3px 0 var(--gold); }
.nav-badge { float: right; color: var(--gold-light); font-size: .72rem; }
.drawer-foot { margin-top: auto; padding: .85rem .5rem; color: #a9c2c8; border-top: 1px solid var(--line); font-size: .75rem; line-height: 1.52; }
.logout-button { margin-top: .65rem; padding: .78rem; color: #ffd5cc; border: 1px solid rgba(241, 163, 144, .3); border-radius: .7rem; background: rgba(241, 163, 144, .08); font-weight: 800; }
.menu-scrim { position: fixed; z-index: 40; inset: 0; padding: 0; border: 0; background: rgba(0, 10, 18, .55); }
.content { width: min(100%, 88rem); margin: 0 auto; padding: clamp(1.1rem, 3vw, 2.6rem); }
.view { display: none; animation: fade .18s ease; }
.view.active { display: block; }
.pastoral-session .secretary-only { display: none !important; }
.pastoral-session .pastoral-only.view:not(.active) { display: none; }
.pastoral-session .pastoral-only.view.active { display: block; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.section-heading h2 { max-width: 40rem; margin: 0; font-size: clamp(1.65rem, 4vw, 2.45rem); line-height: 1.08; letter-spacing: -.05em; }
.section-heading p:not(.eyebrow) { max-width: 48rem; margin: .6rem 0 0; color: var(--muted); line-height: 1.55; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.metric-card, .surface { border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(145deg, var(--surface-2), var(--surface)); box-shadow: 0 1rem 2.8rem rgba(0, 0, 0, .14); }
.metric-card { min-height: 9.2rem; padding: 1.15rem; }
.metric-card p, .metric-card small { margin: 0; color: #bdd0d4; }
.metric-card strong { display: block; margin: .5rem 0; font-size: 2rem; letter-spacing: -.05em; }
.metric-card.gold strong { color: var(--gold-light); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; margin: 1rem 0; }
.quick-card { display: grid; align-content: start; min-height: 10rem; padding: 1.05rem; color: #e7f4f5; text-align: left; border: 1px solid var(--line); border-radius: .95rem; background: linear-gradient(145deg, rgba(15, 92, 109, .72), rgba(5, 40, 58, .9)); }
.quick-card > span { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; margin-bottom: .75rem; color: #132d38; border-radius: .65rem; background: var(--gold-light); font-size: 1.35rem; font-weight: 900; }
.quick-card strong, .quick-card small { display: block; }
.quick-card small { margin-top: .4rem; color: #bdd2d6; line-height: 1.4; }
.celebration-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-top: 1rem; }
.surface { padding: clamp(1rem, 2vw, 1.35rem); }
.surface-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.surface-head h3 { margin: 0; font-size: 1.1rem; }
.celebration-date { display: grid; place-items: center; min-width: 3rem; min-height: 2.5rem; color: var(--gold-light); border: 1px solid rgba(241, 214, 143, .45); border-radius: .7rem; background: rgba(211, 170, 80, .1); font-size: .84rem; font-weight: 800; }
.celebration-list { display: grid; gap: .5rem; margin-top: .9rem; }
.celebration-row { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .65rem; color: var(--ink); text-align: left; border: 0; border-radius: .65rem; background: rgba(0, 0, 0, .14); }
.celebration-row b { margin-left: auto; color: var(--gold-light); font-size: 1.2rem; font-weight: 400; }
.celebration-row strong, .celebration-row small { display: block; }
.celebration-row small { margin-top: .2rem; color: #b6cbd0; font-size: .76rem; }
.avatar { display: grid; flex: 0 0 auto; place-items: center; width: 2.4rem; height: 2.4rem; color: #e9f8f9; border-radius: .68rem; background: linear-gradient(145deg, #278697, #0b4b61); font-size: .78rem; font-weight: 900; }
.avatar.large { width: 4rem; height: 4rem; border-radius: 1rem; font-size: 1.1rem; }
.avatar-photo { overflow: hidden; padding: 0; }
.avatar-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pastor-note { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 1rem; }
.pastor-note h3 { max-width: 45rem; margin: 0; font-size: 1rem; line-height: 1.5; }

/* Fichas, diretórios e form. */
.member-form { display: grid; gap: .8rem; }
.member-form details { overflow: hidden; border: 1px solid var(--line); border-radius: .92rem; background: linear-gradient(145deg, var(--surface-2), var(--surface)); }
.member-form summary { padding: 1rem 1.1rem; color: #edf7f8; cursor: pointer; list-style: none; font-weight: 850; }
.member-form summary::after { float: right; color: var(--gold-light); content: "⌄"; }
.member-form details[open] summary { border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .14); }
.member-form details[open] summary::after { content: "⌃"; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; padding: 1.05rem; }
.form-grid label, .change-row label { display: grid; gap: .35rem; color: #c8d9dc; font-size: .76rem; font-weight: 750; }
.form-grid input, .form-grid select, .form-grid textarea, .profile-form input, .filter-row input, .filter-row select, .change-row input {
  width: 100%; min-height: 2.75rem; padding: .62rem .7rem; color: #f0f7f8; border: 1px solid var(--line); border-radius: .62rem; background: rgba(0, 13, 25, .45);
}
.form-grid textarea { min-height: 5.6rem; resize: vertical; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: 1 / -1; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding: .85rem 0 .1rem; }
.form-foot .status-message { flex: 1; margin: 0; }
.filter-row { display: flex; gap: .7rem; margin-bottom: 1rem; }
.search-field { display: flex; flex: 1; align-items: center; gap: .35rem; max-width: 38rem; padding-left: .65rem; color: var(--gold-light); border: 1px solid var(--line); border-radius: .65rem; background: rgba(5, 35, 54, .72); }
.search-field input { border: 0; background: transparent; }
.filter-row select { width: 13rem; }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.member-card { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 5.4rem; padding: .75rem; color: var(--ink); text-align: left; border: 1px solid var(--line); border-radius: .85rem; background: linear-gradient(145deg, rgba(13, 79, 96, .7), rgba(4, 35, 52, .88)); }
.member-card > span:not(.avatar) { min-width: 0; }
.member-card strong, .member-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card strong { margin-bottom: .17rem; }
.member-card small { color: #b8cdd1; font-size: .72rem; line-height: 1.4; }
.member-card b { margin-left: auto; color: var(--gold-light); font-size: 1.3rem; font-weight: 400; }
.role-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.role-chip { padding: .58rem .8rem; color: #d7e9ea; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: .83rem; font-weight: 750; }
.role-chip.active { color: #172d37; border-color: var(--gold); background: var(--gold-light); }

/* Pendências: comparação editável antes da decisão. */
.pending-list { display: grid; gap: .75rem; }
.pending-card { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.pending-card h3 { margin: .1rem 0 .4rem; }
.pending-card p:not(.eyebrow), .pending-card small { color: #bdd0d5; line-height: 1.5; }
.pending-card p:not(.eyebrow) { margin: 0 0 .4rem; }
.pending-actions { display: grid; gap: .55rem; min-width: 12.5rem; text-align: right; }
.pending-actions span { color: var(--gold-light); font-size: .78rem; }
.dialog { width: min(100% - 1.5rem, 52rem); max-height: min(90vh, 50rem); padding: 0; color: var(--ink); border: 1px solid rgba(241, 214, 143, .38); border-radius: 1rem; background: #06283f; box-shadow: 0 2rem 6rem rgba(0, 0, 0, .5); }
.dialog::backdrop { background: rgba(0, 12, 22, .72); backdrop-filter: blur(3px); }
.dialog-card header, .dialog-card footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--line); }
.dialog-card footer { border-top: 1px solid var(--line); border-bottom: 0; }
.dialog-card header h2 { margin: 0; font-size: 1.35rem; }
.dialog-card > div { padding: 1.15rem 1.25rem; overflow: auto; }
.identity-callout { padding: .85rem 1rem; border-left: 3px solid var(--gold); border-radius: .2rem .65rem .65rem .2rem; background: rgba(211, 170, 80, .11); }
.identity-callout strong { color: var(--gold-light); }
.identity-callout p { margin: .35rem 0 0; color: #d3e1e4; line-height: 1.45; font-size: .88rem; }
.change-table { display: grid; gap: .6rem; margin-top: 1rem; }
.change-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: .85rem; align-items: end; padding: .8rem; border: 1px solid var(--line); border-radius: .75rem; background: rgba(0, 0, 0, .12); }
.change-row b, .change-row small { display: block; }
.change-row b { margin-bottom: .25rem; }
.change-row small { color: #b5c9ce; font-size: .78rem; line-height: 1.45; }

/* Migração e exportação. */
.upload-surface { display: grid; grid-template-columns: 1fr auto; gap: .85rem; align-items: center; }
.drop-target { display: grid; min-height: 9rem; place-items: center; align-content: center; padding: 1rem; text-align: center; border: 1px dashed rgba(241, 214, 143, .65); border-radius: .85rem; background: rgba(211, 170, 80, .05); cursor: pointer; }
.drop-target span { color: var(--gold-light); font-size: 1.8rem; }
.drop-target strong, .drop-target small { display: block; }
.drop-target small, .file-meta { margin-top: .3rem; color: #b7cbcf; font-size: .83rem; }
.file-meta { grid-column: 1; }
.upload-surface .button { grid-column: 2; grid-row: 1 / 3; }
.import-result { margin-top: .9rem; }
.import-result h3 { margin: 0; }
.import-summary { display: flex; flex-wrap: wrap; gap: .55rem; margin: .9rem 0; }
.summary-pill { padding: .35rem .65rem; color: #c9edda; border-radius: 999px; background: rgba(150, 214, 173, .12); font-size: .8rem; }
.summary-pill.blocked { color: #ffc4b4; background: rgba(241, 163, 144, .12); }
.plan-list { display: grid; gap: .55rem; max-height: 25rem; margin: 1rem 0; overflow: auto; }
.plan-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: .65rem; }
.plan-row strong, .plan-row small { display: block; }
.plan-row small { color: #b5c8cd; font-size: .76rem; line-height: 1.4; }
.plan-action { color: var(--gold-light); font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.plan-row.blocked .plan-action { color: var(--danger); }
.protection-choice { margin-bottom: 1rem; }
.protection-choice label { font-weight: 750; }
.protection-choice p { margin: .55rem 0 0; color: var(--muted); line-height: 1.45; font-size: .85rem; }
.export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.export-card { display: grid; min-height: 7.6rem; align-content: space-between; padding: 1rem; color: var(--ink); text-align: left; border: 1px solid var(--line); border-radius: .85rem; background: linear-gradient(145deg, rgba(15, 88, 105, .72), rgba(4, 37, 53, .88)); }
.export-card b { color: var(--gold-light); font-size: 1.08rem; }
.export-card span { color: #c0d1d5; font-size: .82rem; line-height: 1.4; }
.site-sync-surface { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; border-color: rgba(201, 164, 77, .55); background: linear-gradient(135deg, rgba(14, 75, 91, .72), rgba(4, 37, 53, .94)); }
.site-sync-surface h3 { margin: .25rem 0; color: var(--gold-light); }
.site-sync-surface p { margin: .35rem 0 0; color: #c3d6da; line-height: 1.5; }
.site-sync-surface .form-foot { display: grid; min-width: 15rem; gap: .55rem; }
.site-sync-surface .status-message { margin: 0; }

/* Perfil e diálogos de ficha. */
.profile-form { display: grid; grid-template-columns: 10rem 1fr; gap: 1.2rem; align-items: start; }
.profile-photo-wrap { display: grid; gap: .65rem; justify-items: center; }
.profile-photo { width: 8.2rem; height: 8.2rem; object-fit: cover; border: 1px solid rgba(241, 214, 143, .45); border-radius: 1.3rem; background: #0a4b60; }
.photo-upload { position: relative; display: inline-grid; place-items: center; min-height: 2.5rem; overflow: hidden; text-decoration: none; font-size: .76rem; }
.member-dialog-head { display: flex; gap: .85rem; align-items: center; padding-bottom: 1rem; }
.member-dialog-head strong { font-size: 1.2rem; }
.member-dialog-head p { margin: .25rem 0 0; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.detail-grid article { padding: .7rem; border: 1px solid var(--line); border-radius: .65rem; background: rgba(0, 0, 0, .12); }
.detail-grid small { color: var(--gold-light); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.detail-grid p { margin: .35rem 0 0; line-height: 1.45; }
.privacy-note { margin-bottom: 0; color: #b9cbd0; font-size: .8rem; line-height: 1.45; }
.empty-state { padding: 1.2rem; color: #bdd0d5; text-align: center; }
@keyframes fade { from { opacity: .45; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .metric-grid, .quick-grid, .directory-grid, .export-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-form { grid-template-columns: 1fr; }
  .profile-photo-wrap { justify-items: start; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .login-scene { padding: 1.1rem; background-position: 58% center; }
  .login-card { margin-top: 3.5rem; padding: 1.35rem 1.05rem; }
  .login-logo { width: 6rem; height: 6rem; margin-top: -4.1rem; }
  .environment-label { display: none; }
  .content { padding: 1rem .8rem 1.5rem; }
  .section-heading, .pastor-note { flex-direction: column; }
  .section-heading .button, .pastor-note .button { width: 100%; }
  .metric-grid, .quick-grid, .celebration-grid, .directory-grid, .export-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; padding: .85rem; }
  .form-grid .span-2, .form-grid .span-3 { grid-column: auto; }
  .form-foot { align-items: stretch; flex-direction: column; }
  .form-foot .button { width: 100%; }
  .filter-row { flex-direction: column; }
  .filter-row select { width: 100%; }
  .pending-card { align-items: stretch; flex-direction: column; }
  .pending-actions { min-width: 0; text-align: left; }
  .pending-actions .button { width: 100%; }
  .change-row { grid-template-columns: 1fr; }
  .dialog-card header, .dialog-card footer { padding: 1rem; }
  .dialog-card footer { align-items: stretch; flex-direction: column-reverse; }
  .dialog-card footer .button { width: 100%; }
  .upload-surface { display: flex; flex-direction: column; align-items: stretch; }
  .upload-surface .button { min-height: 3.2rem; }
  .site-sync-surface { align-items: stretch; flex-direction: column; }
  .site-sync-surface .form-foot { min-width: 0; }
  .plan-row { grid-template-columns: auto 1fr; }
  .plan-row > small { grid-column: 2; }
  .plan-row input { grid-row: 1 / 3; }
  .detail-grid { grid-template-columns: 1fr; }
}
