/* Dashboard layout, login forms, record editors, and responsive staff workspace styling. */

:root {
  --ink: #161916;
  --muted: #687068;
  --line: #e6e9e5;
  --paper: #f5f6f3;
  --white: #fff;
  --green: #214f3d;
  --green-2: #2f6a51;
  --orange: #ef8c2f;
  --shadow: 0 18px 60px rgba(29, 40, 34, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  background: #fff;
  color: #111;
  padding: 10px 16px;
  z-index: 50;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  display: grid;
  grid-template-columns: 276px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #111412;
  color: #fff;
  padding: 26px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  padding: 0 8px 25px;
}
.wordmark > span:last-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark strong {
  font:
    800 18px/1 'Manrope',
    sans-serif;
  letter-spacing: -0.7px;
}
.wordmark small {
  font:
    700 8px/1 'Manrope',
    sans-serif;
  letter-spacing: 2px;
  color: #9da49f;
}
.bridge-mark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 30px;
  height: 20px;
}
.bridge-mark i {
  display: block;
  width: 8px;
  border: 2px solid #e9a35e;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.bridge-mark i:nth-child(1) {
  height: 11px;
}
.bridge-mark i:nth-child(2) {
  height: 18px;
}
.bridge-mark i:nth-child(3) {
  height: 11px;
}
.church-switcher {
  border: 1px solid #303430;
  background: #1a1e1b;
  border-radius: 12px;
  padding: 11px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.church-switcher .church-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #f59a33;
  color: #fff;
  font-weight: 800;
  border-radius: 9px;
}
.church-switcher small,
.sidebar-foot small {
  display: block;
  color: #8e9790;
  font-size: 10px;
  margin-bottom: 2px;
}
.church-switcher strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 142px;
}
.church-switcher button,
.sidebar-foot button {
  background: none;
  border: 0;
  color: #9da49f;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar nav p {
  color: #6f7771;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 13px 12px 5px;
  margin: 0;
}
.sidebar nav a {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  padding: 10px 12px;
  color: #aeb5b0;
  text-decoration: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  color: #fff;
  background: #252a26;
}
.sidebar nav a.active {
  box-shadow: inset 3px 0 #eb9b50;
}
.sidebar nav a span {
  font-size: 16px;
}
.sidebar nav a b {
  background: #ef8c2f;
  color: #fff;
  border-radius: 999px;
  font-size: 9px;
  padding: 2px 6px;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #2a2e2b;
  padding: 18px 7px 3px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
}
.sidebar-foot .user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #315443;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}
.sidebar-foot strong {
  font-size: 11px;
}
.page {
  min-width: 0;
}
.topbar {
  height: 72px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.breadcrumbs span,
.breadcrumbs i {
  color: #9aa09a;
}
.breadcrumbs i {
  font-style: normal;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
}
.icon-button span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ef8c2f;
  border-radius: 50%;
  right: 8px;
  top: 7px;
}
.visit-site {
  color: #2b5b47;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #cad6cf;
  padding: 9px 13px;
  border-radius: 9px;
  background: #f8fbf9;
}
.menu {
  display: none;
  border: 0;
  background: none;
  font-size: 20px;
}
main {
  padding: 38px 38px 64px;
  max-width: 1500px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 26px;
}
.eyebrow,
.kicker {
  margin: 0 0 7px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-weight: 700;
  font-size: 10px;
  color: #779083;
}
.page-heading h1 {
  font:
    700 clamp(28px, 3vw, 40px) / 1.1 'Manrope',
    sans-serif;
  letter-spacing: -1.4px;
  margin: 0 0 7px;
}
.page-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.primary {
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(33, 79, 61, 0.18);
}
.primary span {
  margin-right: 6px;
}
.notice {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #eaf2ed;
  border: 1px solid #cfe0d5;
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 22px;
  color: #325342;
}
.notice > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  color: var(--orange);
}
.notice p {
  margin: 0;
  font-size: 12px;
}
.notice button {
  border: 0;
  background: none;
  color: #698071;
  font-size: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 17px;
}
.metrics article,
.panel,
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 6px 30px rgba(24, 38, 30, 0.035);
}
.metrics article {
  padding: 17px 18px;
}
.metrics article > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.metrics small {
  font-weight: 600;
  color: #5f675f;
}
.metrics strong {
  font:
    700 30px/1 'Manrope',
    sans-serif;
  display: block;
  margin: 15px 0 8px;
}
.metrics p {
  font-size: 10px;
  color: #818881;
  margin: 0;
}
.metrics p b {
  color: #2b7755;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  font-size: 13px;
}
.peach {
  background: #fff0e4;
  color: #bd631f;
}
.blue {
  background: #e9f2fa;
  color: #3e6f92;
}
.violet {
  background: #f0eafa;
  color: #70549a;
}
.green {
  background: #e8f3ed;
  color: #32694f;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 17px;
}
.panel {
  padding: 20px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.panel-head h2 {
  font:
    700 19px/1.2 'Manrope',
    sans-serif;
  margin: 0;
}
.panel-head a {
  font-size: 11px;
  font-weight: 700;
  color: #4d695a;
  text-decoration: none;
}
.person-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid #edf0ed;
}
.person-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}
.coral {
  background: #ffe4d8;
  color: #a95435;
}
.amber {
  background: #fff0c9;
  color: #8a6522;
}
.teal {
  background: #dff1e9;
  color: #2c6b54;
}
.person-row strong,
.event-row strong {
  display: block;
  font-size: 12px;
}
.person-row small,
.event-row small {
  display: block;
  color: #858c86;
  font-size: 10px;
  margin-top: 3px;
}
.tag {
  font-size: 9px;
  background: #eef1ee;
  color: #646c65;
  padding: 5px 7px;
  border-radius: 999px;
}
.tag.urgent {
  background: #fff0e6;
  color: #b45e25;
}
.tag.done {
  background: #e8f3ed;
  color: #2f6a51;
}
.person-row button {
  border: 1px solid #dfe4df;
  background: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
}
.events-panel {
  grid-row: span 2;
}
.event-row {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #edf0ed;
}
.event-row time {
  border: 1px solid #e1e5e1;
  border-radius: 9px;
  text-align: center;
  overflow: hidden;
}
.event-row time b {
  display: block;
  font-size: 16px;
  padding: 6px 0 1px;
}
.event-row time span {
  display: block;
  background: #f2f4f1;
  font-size: 8px;
  padding: 3px;
}
.recurring {
  font-size: 8px;
  color: #4a705e;
}
.secondary {
  width: 100%;
  border: 1px dashed #cdd5cf;
  background: #f8faf8;
  color: #41624f;
  border-radius: 9px;
  padding: 10px;
  margin-top: 10px;
  font-weight: 700;
  font-size: 10px;
}
.activity-panel {
  min-height: 210px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 8px;
  padding: 8px 0;
}
.timeline i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
}
.green-dot {
  background: #4e9d73;
}
.orange-dot {
  background: #e8994d;
}
.purple-dot {
  background: #8a70ae;
}
.timeline strong {
  font-size: 11px;
}
.timeline p {
  font-size: 10px;
  color: #676f68;
  margin: 2px 0;
}
.timeline small {
  color: #9ca29d;
  font-size: 9px;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.placeholder-view {
  min-height: 70vh;
}
.empty-state {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 40px;
}
.empty-state > span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #edf3ef;
  color: #335e49;
  font-size: 28px;
}
.empty-state h2 {
  font:
    700 22px 'Manrope',
    sans-serif;
  margin: 18px 0 6px;
}
.empty-state p {
  color: var(--muted);
  font-size: 13px;
  max-width: 460px;
}
.placeholder-view .page-heading {
  margin-top: 10px;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(540px, calc(100% - 30px));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.25);
}
dialog::backdrop {
  background: rgba(13, 18, 15, 0.65);
  backdrop-filter: blur(4px);
}
dialog form {
  padding: 27px;
  position: relative;
}
.dialog-close {
  position: absolute;
  right: 17px;
  top: 15px;
  border: 0;
  background: #f1f3f1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
}
dialog h2 {
  font:
    700 26px 'Manrope',
    sans-serif;
  margin: 0 0 20px;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-grid button {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 1px 10px;
}
.quick-grid button > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #edf3ef;
  border-radius: 9px;
}
.quick-grid button strong {
  font-size: 12px;
}
.quick-grid button small {
  font-size: 9px;
  color: #828983;
}
.quick-grid button:hover {
  border-color: #91aa9c;
  background: #f8fbf9;
}
.auth-screen {
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
  background: #fff;
}
.auth-brand {
  padding: 48px clamp(36px, 6vw, 88px);
  background: #111412;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-brand::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid #445048;
  border-radius: 50%;
  right: -280px;
  bottom: -170px;
  box-shadow:
    0 0 0 55px rgba(255, 255, 255, 0.025),
    0 0 0 115px rgba(255, 255, 255, 0.018);
}
.auth-brand .wordmark {
  padding: 0;
}
.auth-brand > div {
  position: relative;
  z-index: 1;
}
.auth-kicker {
  color: #e7a263;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}
.auth-brand h1 {
  font:
    700 clamp(38px, 5vw, 68px) / 0.98 'Manrope',
    sans-serif;
  letter-spacing: -3px;
  margin: 15px 0 22px;
}
.auth-brand > div > p:last-child {
  color: #aab3ad;
  line-height: 1.7;
  max-width: 460px;
}
.auth-brand > small {
  color: #6f7972;
  letter-spacing: 0.5px;
}
.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 38px;
  background: #f5f6f3;
}
.auth-card,
.auth-pending,
.access-pending {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid #e1e6e2;
  border-radius: 20px;
  padding: 38px;
  box-shadow: var(--shadow);
}
.auth-lock,
.auth-pending > span,
.access-pending > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #eaf2ed;
  color: #26543f;
  font-size: 22px;
  margin-bottom: 25px;
}
.auth-card h2,
.auth-pending h2,
.access-pending h2 {
  font:
    700 30px 'Manrope',
    sans-serif;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
.auth-card > p:not(.eyebrow):not(.auth-status),
.auth-pending p,
.access-pending p {
  color: #69716a;
  font-size: 13px;
  line-height: 1.6;
}
.auth-card label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin: 24px 0 7px;
}
.auth-card input {
  width: 100%;
  border: 1px solid #d8ded9;
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.auth-card input:focus {
  border-color: #4e7d65;
  box-shadow: 0 0 0 3px rgba(78, 125, 101, 0.12);
}
.auth-submit {
  width: 100%;
  margin-top: 11px;
  display: flex;
  justify-content: space-between;
}
.auth-card > small {
  display: block;
  color: #979d98;
  font-size: 9px;
  line-height: 1.5;
  margin-top: 20px;
}
.auth-status {
  min-height: 18px;
  color: #a14d31;
  font-size: 11px;
  margin: 10px 0 0;
}
.auth-pending,
.access-pending {
  text-align: left;
}
.auth-pending .secondary,
.access-pending .secondary {
  margin-top: 18px;
}
.loading-copy,
.empty-copy {
  color: #8a918b;
  font-size: 11px;
  padding: 18px 0;
  border-top: 1px solid #edf0ed;
}
.app-shell[hidden],
.auth-screen[hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 228px 1fr;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .events-panel {
    grid-row: auto;
  }
  .church-switcher strong {
    max-width: 98px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -285px;
    width: 276px;
    transition: left 0.25s ease;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.2);
  }
  .sidebar.open {
    left: 0;
  }
  .menu {
    display: block;
  }
  .topbar {
    padding: 0 17px;
    height: 62px;
  }
  .breadcrumbs {
    display: none;
  }
  .visit-site {
    font-size: 0;
  }
  .visit-site::after {
    content: 'View site ↗';
    font-size: 11px;
  }
  main {
    padding: 26px 17px 50px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-heading .primary {
    width: 100%;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .dashboard-grid {
    display: block;
  }
  .panel {
    margin-bottom: 12px;
  }
  .person-row {
    grid-template-columns: 40px 1fr auto;
  }
  .person-row .tag {
    display: none;
  }
  .notice {
    align-items: start;
  }
  .notice button {
    padding: 0;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .auth-screen {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .auth-brand {
    min-height: 260px;
    padding: 28px 24px;
  }
  .auth-brand h1 {
    font-size: 38px;
    letter-spacing: -2px;
    margin: 12px 0;
  }
  .auth-brand > small {
    display: none;
  }
  .auth-form-wrap {
    padding: 24px 16px;
  }
  .auth-card,
  .auth-pending,
  .access-pending {
    padding: 28px;
  }
}
@media (max-width: 450px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .person-row button {
    padding: 7px;
  }
  .top-actions {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.wordmark img {
  display: block;
  width: 156px;
  height: auto;
  filter: brightness(0) invert(1);
}
.wordmark > small {
  font:
    700 8px/1 'Manrope',
    sans-serif;
  letter-spacing: 2px;
  color: #9da49f;
}
.auth-brand .wordmark img {
  width: 188px;
}

.workspace-content {
  display: grid;
  gap: 14px;
}
.list-tools {
  margin: 0 0 22px;
}
.list-tools label {
  display: grid;
  gap: 7px;
  max-width: 420px;
  font-size: 12px;
  font-weight: 700;
}
.list-tools input,
.form-grid input,
.form-grid textarea,
.form-grid select,
.profile-form input,
.profile-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d7ded8;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.record-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: grid;
  gap: 12px;
}
.record-card header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}
.record-card h2 {
  font:
    700 18px Manrope,
    sans-serif;
  margin: 0;
}
.record-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.record-card small {
  color: var(--muted);
}
.record-card .record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.record-card .tag {
  text-transform: capitalize;
  white-space: nowrap;
}
.record-card a {
  color: var(--green);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.form-grid .full-width {
  grid-column: 1/-1;
}
.form-grid textarea {
  min-height: 110px;
  resize: vertical;
}
.form-grid input[type='checkbox'] {
  width: auto;
  justify-self: start;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
#record-dialog {
  width: min(660px, calc(100% - 24px));
  max-height: 90vh;
  overflow: auto;
  padding: 30px;
}
#record-form {
  position: relative;
}
#record-title {
  margin: 5px 0 25px;
  font:
    700 26px Manrope,
    sans-serif;
}
#record-error {
  color: #a33f2e;
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(450px, calc(100vw - 48px));
  padding: 16px 20px;
  background: #214f3d;
  color: white;
  border-radius: 12px;
  z-index: 100;
  box-shadow: var(--shadow);
}
.toast[data-error='true'] {
  background: #913c30;
}
.load-error {
  padding: 22px;
  border: 1px solid #d8a99d;
  border-radius: 12px;
  background: #fff7f4;
}
.profile-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.section-note {
  padding: 16px;
  background: #edf3ef;
  border-radius: 10px;
  font-size: 13px;
  color: #486153;
}
.church-switcher {
  grid-template-columns: 38px 1fr;
}
.church-switcher select {
  grid-column: 1/-1;
  width: 100%;
  background: #222c25;
  color: #fff;
  border: 1px solid #425047;
  border-radius: 6px;
  padding: 7px;
  font: inherit;
  font-size: 12px;
}
.history-list {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.history-list p {
  padding: 8px 0;
}
.secondary:disabled,
.primary:disabled {
  opacity: 0.5;
  cursor: wait;
}
.workspace-content .empty-state {
  padding: 40px 24px;
}
.person-row button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e49a4b;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid label {
    grid-column: 1/-1;
  }
  .record-card {
    padding: 18px;
  }
  .record-card header {
    flex-wrap: wrap;
  }
}

.top-actions .visit-site {
  white-space: nowrap;
  width: auto;
  flex-shrink: 0;
}
.top-actions {
  gap: 12px;
}
.top-actions #refresh-workspace {
  width: auto;
  min-width: 90px;
}

.auth-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.auth-options button {
  padding: 0;
  border: 0;
  background: none;
  color: #315c46;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-options button:last-child {
  flex-basis: 100%;
  text-align: left;
}
.auth-card[hidden],
.auth-pending[hidden],
.access-pending[hidden],
.auth-options button[hidden],
#login-password-wrap[hidden] {
  display: none !important;
}
#password-form .secondary {
  margin-top: 16px;
}
.auth-card button:disabled {
  opacity: 0.6;
  cursor: wait;
}

[hidden] {
  display: none !important;
}

#invite-admin-form > button[type='submit'] {
  margin-top: 16px;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.assignment-filter,
.subscription-choice {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
}
.subscription-choice input,
.assignment-filter input {
  width: auto;
}
.church-brand-preview {
  padding: 28px;
  border-radius: 16px;
  margin: 22px 0;
}
.church-brand-preview img {
  max-width: 160px;
  max-height: 130px;
  object-fit: contain;
  display: block;
  margin: 18px 0;
}
#onboarding-form {
  margin-bottom: 24px;
}
#notification-form > button,
#onboarding-form > button {
  margin-top: 18px;
}
.assignment-label {
  font-weight: 600;
}

/* Giving services pair an independent public-visibility checkbox with its destination. */
.giving-services {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 28px 0 20px;
  padding: 20px;
}
.giving-services legend {
  font-size: 18px;
  font-weight: 700;
  padding: 0 8px;
}
.giving-services > p {
  font-size: 13px;
  color: #486153;
  margin: 0 0 18px;
  line-height: 1.6;
}
.giving-service-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px 20px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.giving-service-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}
.profile-form .giving-service-check input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.giving-service-destination,
.giving-service-name {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.giving-service-name {
  grid-column: 2;
}
@media (max-width: 640px) {
  .giving-services {
    padding: 16px;
  }
  .giving-service-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .giving-service-name {
    grid-column: 1;
  }
}
