:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d332b;
  background: #f4f8f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green-900: #123b32;
  --green-800: #185b4a;
  --green-700: #287b63;
  --green-100: #e7f3ed;
  --ink: #1d332b;
  --muted: #65786f;
  --line: #e1eae4;
  --surface: #fffefa;
  --warning-bg: #fff8e9;
  --warning-line: #ead7a8;
  --danger: #963a30;
  --gold: #d4a657;
  --shadow-soft: 0 14px 40px rgb(24 65 47 / 7%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 8% 0%, rgb(215 236 223 / 48%), transparent 34rem),
    linear-gradient(180deg, #f7faf7 0%, #f2f6f2 100%);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #71aa8d;
  outline-offset: 2px;
}
[hidden] { display: none !important; }

@keyframes enter-softly {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 72px;
  padding: 0 clamp(1rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgb(255 254 250 / 90%);
  border-bottom: 1px solid rgb(219 231 222 / 85%);
  box-shadow: 0 6px 22px rgb(25 59 42 / 3%);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-size: .94rem; letter-spacing: -.02em; }
.brand strong { color: var(--green-800); font-weight: 650; }
.brand-mark {
  width: 36px; height: 36px; display: block; flex: none;
  border-radius: 10px;
}
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.environment-label, .security-pill { color: var(--muted); font-size: .82rem; font-weight: 600; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: .4rem; border-radius: 50%; background: #4c9a68; }
.page-shell { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 0 4.5rem; }
.page-shell > section:not([hidden]) { animation: enter-softly .42s both; }
.page-shell > section:nth-child(2):not([hidden]) { animation-delay: .07s; }
.page-shell > section:nth-child(3):not([hidden]) { animation-delay: .12s; }
.auth-init-status { width: min(100%, 760px); margin: 0 auto; padding: .65rem .85rem; border-left: 2px solid #d4e4d8; color: var(--muted); font-size: .8rem; }
.auth-init-status .intro { margin: 0; font-size: .8rem; line-height: 1.45; }
.auth-init-status[data-state="error"] { width: min(100%, 460px); margin-top: 6vh; padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.auth-init-status[data-state="error"] .button { margin: .8rem .4rem 0 0; }
.sign-in-card {
  width: min(100%, 460px); margin: 6vh auto 0; padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgb(218 231 221 / 90%); border-radius: 20px; background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.eyebrow { margin-bottom: .65rem; color: var(--green-700); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .7rem; color: var(--green-900); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.13; letter-spacing: -.045em; }
.sign-in-card h1 { font-size: 2rem; }
.intro { max-width: 680px; margin-bottom: 1.65rem; color: var(--muted); line-height: 1.65; }
label { display: block; margin-bottom: .45rem; color: #35423a; font-size: .85rem; font-weight: 650; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: .65rem .75rem; border: 1px solid #ccd6ce;
  border-radius: 9px; background: #fff; color: var(--ink);
  box-shadow: 0 1px 2px rgb(20 55 36 / 3%);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input:hover, select:hover, textarea:hover { border-color: #9cb5a4; }
input:focus, select:focus, textarea:focus { border-color: #438366; box-shadow: 0 0 0 3px rgb(67 131 102 / 12%); outline: 0; }
input:disabled, select:disabled, textarea:disabled { background: #f2f5f2; box-shadow: none; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.password-input { position: relative; width: 100%; }
.password-input > input { padding-right: 4.5rem; }
.password-toggle {
  position: absolute; top: 50%; right: .25rem; min-width: 3.5rem; min-height: 44px;
  padding: .35rem .55rem; transform: translateY(-50%); border: 0; border-radius: 6px;
  color: var(--green-800); background: transparent; cursor: pointer; font-size: .8rem; font-weight: 700;
}
.password-toggle:hover { background: #f1f7f2; }
.password-toggle:focus-visible { outline: 3px solid #71aa8d; outline-offset: 2px; }
.sign-in-card form label:not(:first-child) { margin-top: 1rem; }
.button {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1rem; border: 1px solid transparent; border-radius: 8px;
  cursor: pointer; font-size: .86rem; font-weight: 680;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.button:not(:disabled):hover { transform: translateY(-1px); }
.button:not(:disabled):active { transform: translateY(1px) scale(.99); }
.button:disabled { cursor: wait; opacity: .62; }
.button-primary { color: #fff; background: linear-gradient(135deg, #287b60, #175444 78%); box-shadow: 0 5px 14px rgb(24 91 70 / 18%); }
.button-primary:hover:not(:disabled) { background: linear-gradient(135deg, #206d54, #103f36 78%); box-shadow: 0 7px 18px rgb(24 91 70 / 24%); }
.button-secondary { color: var(--green-900); background: var(--green-100); border-color: #d4e4d8; }
.button-secondary:hover:not(:disabled) { background: #dcebe0; }
.button-quiet { min-height: 36px; padding: .4rem .7rem; color: var(--green-800); background: transparent; border-color: var(--line); }
.button-quiet:hover:not(:disabled) { background: #f1f7f2; border-color: #c8dace; }
.button-wide { width: 100%; margin-top: 1.35rem; }
.notice { min-height: 1.25rem; margin: .7rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.notice[data-kind="success"] { color: #276341; }
.notice[data-kind="error"] { color: var(--danger); }
.notice[data-kind="info"] { color: #536355; }
.fine-print { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: #78837b; font-size: .76rem; line-height: 1.5; }
.selected-scc { display: grid; gap: .25rem; margin: 0; color: var(--green-900); line-height: 1.5; }
.selected-scc span { color: var(--muted); font-size: .88rem; }
.member-request-list { display: grid; gap: .6rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.member-request-list li { display: grid; gap: .45rem; min-width: 0; padding: .95rem; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #fffefa, #f8fbf8); box-shadow: 0 3px 12px rgb(24 65 47 / 3%); animation: enter-softly .3s both; }
.member-request-list li > strong { color: var(--green-900); font-size: .92rem; }
.member-request-list li span { color: var(--muted); font-size: .82rem; text-transform: capitalize; }
.member-request-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .35rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.member-request-actions .button { min-width: 112px; }
.released-assignment-details { display: grid; gap: .5rem; margin-top: .55rem; padding: clamp(.85rem, 2.5vw, 1.2rem); border: 1px solid #d8e7dc; border-radius: 12px; background: linear-gradient(145deg, #f5faf6, #fffefa); }
.released-assignment-details h3 { margin: 0; color: var(--green-900); font-size: 1rem; }
.released-assignment-details p { margin: 0; color: #39463d; line-height: 1.6; overflow-wrap: anywhere; }
.released-assignment-details .assignment-intention { white-space: pre-wrap; }
.scc-invitation-code-value { display: block; overflow-wrap: anywhere; user-select: all; }
.prayer-intention-form { display: grid; gap: .65rem; margin-top: 1rem; padding: clamp(.9rem, 2.5vw, 1.25rem); border: 1px solid #e2ebe4; border-radius: 14px; background: linear-gradient(145deg, #fffefa, #f7faf7); }
.prayer-intention-form label:not(:first-child) { margin-top: .55rem; }
.prayer-intention-form .fine-print { margin: .2rem 0 .35rem; padding-top: .7rem; }
.prayer-intention-form .button { justify-self: start; min-width: 180px; }
.prayer-intention-list li { gap: .35rem; }
.prayer-intention-list li p { margin: .2rem 0 0; color: #39463d; font-size: .88rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.8rem; }
.page-heading .intro { margin-bottom: 0; }
.security-pill { flex: 0 0 auto; padding: .55rem .8rem; border: 1px solid #d7e7db; border-radius: 100px; background: #f6fbf7; }
.read-boundary {
  display: flex; gap: 1rem; margin-bottom: 1.8rem; padding: 1.1rem 1.25rem;
  border: 1px solid var(--warning-line); border-radius: 12px; background: var(--warning-bg);
}
.boundary-icon { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #715c2c; background: #f4e7bf; font-family: Georgia, serif; font-weight: 700; }
.read-boundary strong { display: block; margin: .05rem 0 .28rem; color: #514322; font-size: .9rem; }
.read-boundary p { margin: 0; color: #716342; font-size: .83rem; line-height: 1.55; }
.workspace-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 1.4rem; }
.workspace-rail { position: sticky; top: 88px; padding: 1rem .65rem; border: 1px solid #e1eae4; border-radius: 15px; background: rgb(255 254 250 / 76%); box-shadow: 0 8px 25px rgb(32 59 40 / 4%); }
.rail-label { margin: 0 0 .7rem .7rem; color: #8a968d; font-size: .67rem; font-weight: 750; letter-spacing: .1em; }
.rail-link { display: flex; align-items: center; gap: .65rem; margin: .15rem 0; padding: .72rem .7rem; border: 1px solid transparent; border-radius: 9px; color: #546158; font-size: .82rem; font-weight: 630; text-decoration: none; transition: background .16s, border-color .16s, color .16s; }
.rail-link:hover, .rail-link:focus-visible { color: var(--green-900); border-color: #dce9df; background: linear-gradient(100deg, #eaf4ec, #f5f8ef); }
.rail-link span { color: #8b998f; font-size: .68rem; font-variant-numeric: tabular-nums; }
.rail-note { display: flex; align-items: flex-start; margin: 2rem .65rem 0; color: #79857c; font-size: .73rem; line-height: 1.45; }
.rail-note .status-dot { flex: 0 0 auto; margin-top: .27rem; }
.workspace-content { display: grid; gap: 1.35rem; min-width: 0; }
.panel { min-width: 0; padding: clamp(1.1rem, 3vw, 1.7rem); border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, #fffefa 0%, #fffefa 72%, #f8fbf8 100%); box-shadow: 0 8px 26px rgb(32 59 40 / 5%); scroll-margin-top: 92px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.panel-heading .eyebrow { margin-bottom: .35rem; }
h2 { margin: 0; color: var(--green-900); font-size: 1.28rem; letter-spacing: -.025em; }
h3 { margin: 0 0 .3rem; color: #27372e; font-size: .96rem; }
.panel-copy { max-width: 760px; margin: 0 0 1.35rem; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.status-label { flex: 0 0 auto; display: inline-flex; align-items: center; padding: .36rem .58rem; border-radius: 100px; font-size: .68rem; font-weight: 700; }
.status-unavailable { color: #725f35; background: #f8f0da; }
.status-pending { color: #725f35; background: #f8f0da; }
.status-approved, .status-active { color: #276341; background: #e8f3eb; }
.status-suspended, .status-revoked, .status-rejected { color: #8a493b; background: #f8ece9; }
.status-closed, .status-expired, .status-replaced, .status-withdrawn { color: #626b65; background: #edf0ed; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: .95rem; }
.field { min-width: 0; }
.field-error { display: block; min-height: 1.1rem; margin-top: .3rem; color: var(--danger); font-size: .78rem; line-height: 1.4; }
.field-error:empty { display: none; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-span { grid-column: 1 / -1; }
.field-action { display: flex; align-items: flex-end; }
.field-action .button { width: 100%; }
.field small { display: block; margin-top: .4rem; color: #7b867e; font-size: .73rem; line-height: 1.45; }
.muted { color: #7c867e; font-size: .78rem; font-weight: 450; }
.subsection-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; padding-top: 1.15rem; border-top: 1px solid #e6ece7; }
.subsection-heading p { margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.5; }
.action-block { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.action-title { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .9rem; }
.action-title p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.step-number { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--green-800); background: var(--green-100); font-size: .7rem; font-weight: 750; }
.record-list { min-width: 0; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .65rem; margin: .8rem 0 1.4rem; }
.overview-metric { display: grid; gap: .25rem; min-width: 0; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: #f8faf8; }
.overview-metric strong { color: var(--green-900); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.overview-metric span { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .65rem; margin: .8rem 0 0; }
.metric-card { display: grid; gap: .35rem; min-width: 0; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: #f8faf8; }
.metric-card dt { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.metric-card dd { margin: 0; color: var(--green-900); font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.directory-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr); align-items: end; gap: .8rem; margin: .7rem 0; }
.directory-filters label { display: grid; gap: .35rem; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: #fffefa; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .79rem; text-align: left; }
th, td { padding: .72rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: #52685a; background: linear-gradient(180deg, #f3f8f3, #edf4ee); font-size: .69rem; font-weight: 720; letter-spacing: .02em; white-space: nowrap; }
td { color: #39463d; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fbfcfa; }
tbody tr:hover { background: #f1f7f2; }
.table-actions { display: flex; flex-wrap: wrap; gap: .4rem; min-width: 150px; }
.table-actions .button, td .button { min-height: 34px; padding: .45rem .62rem; font-size: .73rem; white-space: nowrap; }
.selected-scc { margin-top: .35rem; }
.selected-scc .action-block:first-child { border-top: 1px solid var(--line); }
.leader-queue-form { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, auto); align-items: end; gap: .65rem; margin-top: .9rem; }
.leader-queue-form label { min-width: 0; }
.leader-queue-form .button { min-height: 44px; }
#selected-appointment-candidate { margin-top: .75rem; padding: .85rem 1rem; border: 1px solid #d9e8dd; border-radius: 11px; background: linear-gradient(110deg, #eff7f0, #fbf8ed); }
#signed-in-view.sign-in-card { width: min(100%, 1050px); margin-top: 2rem; }
#signed-in-view > .intro { max-width: 780px; }
#signed-in-view > .subsection-heading:first-of-type { margin-top: 1.4rem; }
#member-account-title { scroll-margin-top: 92px; }
#member-prayer-tools, #leader-tools { display: grid; gap: .2rem; min-width: 0; }
#signed-in-view > .action-block { margin-top: 1.6rem; }
#signed-in-view .form-grid { max-width: 820px; }
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid rgb(220 231 222 / 75%);
  color: #78877e;
  text-align: center;
  font-size: .76rem;
}
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  min-height: 44px;
  padding: .62rem 1rem;
  border: 1px solid #1e9c61;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #27bd72, #12834e);
  box-shadow: 0 6px 16px rgb(24 137 80 / 18%);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s, background .18s;
}
.whatsapp-link:hover { transform: translateY(-1px); background: linear-gradient(135deg, #21ad67, #0e7545); box-shadow: 0 8px 20px rgb(24 137 80 / 26%); }
.whatsapp-icon { display: inline-grid; width: 1.2rem; height: 1.2rem; place-items: center; border: 1px solid rgb(255 255 255 / 70%); border-radius: 50%; font-size: .9rem; line-height: 1; }
.whatsapp-number { padding-left: .45rem; border-left: 1px solid rgb(255 255 255 / 45%); font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer-credit, .footer-love { margin: 0; }
.footer-love strong { color: var(--green-800); font-weight: 700; }
.welcome-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(1.5rem, 6vw, 5rem);
  border: 1px solid #dce9df;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 96% 0%, rgb(220 239 224 / 82%), transparent 30rem),
    linear-gradient(118deg, #fffefa 10%, #f5faf5 58%, #eaf4ec 100%);
  box-shadow: 0 24px 65px rgb(26 68 47 / 9%);
}
.welcome-panel::after {
  position: absolute;
  z-index: -1;
  right: -7rem;
  bottom: -12rem;
  width: 27rem;
  aspect-ratio: 1;
  border: 1px solid rgb(47 120 83 / 10%);
  border-radius: 50%;
  box-shadow: 0 0 0 2.4rem rgb(47 120 83 / 3%), 0 0 0 5rem rgb(47 120 83 / 2%);
  content: "";
}
.welcome-kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.15rem; padding: .48rem .75rem; border: 1px solid #dce9dc; border-radius: 999px; color: #456c56; background: rgb(255 254 250 / 75%); font-size: .77rem; font-weight: 650; }
.welcome-kicker-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgb(212 166 87 / 16%); }
.welcome-copy .eyebrow { color: #60806a; }
.welcome-copy h1 { max-width: 720px; margin-bottom: 1rem; font-size: clamp(2.65rem, 6.3vw, 5rem); line-height: 1.03; letter-spacing: -.06em; }
.welcome-copy .intro { max-width: 650px; margin-bottom: 1.8rem; font-size: clamp(.98rem, 1.5vw, 1.08rem); }
.welcome-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.welcome-note { position: relative; padding: clamp(1.35rem, 3vw, 1.8rem); border: 1px solid rgb(214 230 218 / 90%); border-radius: 20px; background: linear-gradient(145deg, rgb(255 255 252 / 92%), rgb(241 248 242 / 94%)); box-shadow: 0 16px 40px rgb(30 73 49 / 8%); animation: enter-softly .48s .1s both; }
.welcome-note::before { display: block; width: 38px; height: 3px; margin-bottom: 1.1rem; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #e5c98e); content: ""; }
.welcome-note h2, .welcome-path h2 { margin-bottom: .8rem; }
.welcome-note ol { display: grid; gap: .8rem; margin: 0; padding-left: 1.25rem; color: #39463d; font-size: .88rem; line-height: 1.5; }
.welcome-note li { padding-left: .15rem; }
.welcome-note li::marker { color: #b2863f; font-weight: 750; }
.welcome-note p, .welcome-path p { margin: 1rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.welcome-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0 2.2rem; }
.welcome-value { display: flex; align-items: flex-start; gap: .8rem; min-width: 0; padding: 1.05rem; border: 1px solid rgb(223 233 225 / 85%); border-radius: 14px; background: rgb(255 254 250 / 72%); animation: enter-softly .38s both; }
.welcome-value:nth-child(2) { animation-delay: .06s; }
.welcome-value:nth-child(3) { animation-delay: .12s; }
.welcome-value-number { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #e7dbbd; border-radius: 10px; color: #8f6b2e; background: #fbf5e8; font-size: .66rem; font-weight: 750; }
.welcome-value h2 { margin: .05rem 0 .3rem; color: var(--green-900); font-size: .9rem; letter-spacing: -.01em; }
.welcome-value p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.platform-discovery { margin: 0 0 2.2rem; }
.platform-discovery-heading { max-width: 720px; margin: 0 auto 1.25rem; text-align: center; }
.platform-discovery-heading .eyebrow { margin-bottom: .45rem; }
.platform-discovery-heading h2 { margin-bottom: .55rem; color: var(--green-900); font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.035em; }
.platform-discovery-heading > p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.platform-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fffefa, #f8fbf8);
  box-shadow: 0 8px 26px rgb(32 59 40 / 4%);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.platform-card:hover { transform: translateY(-3px); border-color: #cbded0; box-shadow: 0 14px 32px rgb(32 59 40 / 8%); }
.platform-card-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.platform-card-logo-frame {
  display: grid;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(29 51 43 / 8%);
  border-radius: 16px;
  background: #10121c;
}
.platform-card-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.platform-card-category { margin: 0 0 .18rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.platform-card-brand h3 { margin: 0; color: var(--green-900); font-size: 1.2rem; letter-spacing: -.02em; }
.platform-card h4 { margin: 0 0 .55rem; color: var(--ink); font-size: 1.04rem; line-height: 1.35; letter-spacing: -.02em; }
.platform-card-description { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.platform-card-benefits { display: grid; gap: .5rem; margin: 1rem 0; padding-left: 1.15rem; color: #39463d; font-size: .82rem; line-height: 1.5; }
.platform-card-benefits li::marker { color: var(--green-700); }
.platform-card-audience, .platform-card-access { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.platform-card-access { margin-top: .5rem; }
.platform-card-audience strong, .platform-card-access strong { color: var(--green-900); }
.platform-card-cta { margin-top: 1.1rem; min-height: 44px; }
.platform-card-cta:active { transform: translateY(1px); }
.platform-card-cta:focus-visible { outline-offset: 3px; }
.welcome-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.welcome-path { position: relative; overflow: hidden; padding: clamp(1.2rem, 3vw, 1.7rem); border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #fffefa, #f8fbf8); box-shadow: 0 8px 26px rgb(32 59 40 / 4%); transition: transform .2s, box-shadow .2s, border-color .2s; animation: enter-softly .4s both; }
.welcome-path:nth-child(2) { animation-delay: .08s; }
.welcome-path:hover { transform: translateY(-3px); border-color: #cbded0; box-shadow: 0 14px 32px rgb(32 59 40 / 8%); }
.welcome-path .eyebrow { margin-bottom: .55rem; color: #8a754d; }
.welcome-path h2 { font-size: 1.2rem; }
.welcome-path p { max-width: 50ch; min-height: 2.7em; }
.welcome-path a { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; color: var(--green-800); font-size: .86rem; font-weight: 720; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.welcome-path a::after { content: "→"; transition: transform .18s; }
.welcome-path a:hover::after { transform: translateX(3px); }

.leader-activation-shell { width: min(100% - 2rem, 520px); margin: 0 auto; padding: clamp(2rem, 8vh, 5rem) 0; }
.leader-activation-card { width: 100%; margin: 0; }
.activation-home-link { margin-bottom: 1.8rem; color: var(--green-800); font-size: .82rem; font-weight: 650; }
.activation-home-link a { display: inline-flex; align-items: center; gap: .55rem; text-underline-offset: .2em; }

@media (max-width: 740px) {
  .page-shell { padding-top: 1.75rem; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: .9rem; }
  .workspace-grid { grid-template-columns: 1fr; gap: .5rem; }
  .workspace-rail { position: sticky; z-index: 8; top: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; padding: .45rem; }
  .rail-label { flex-basis: 100%; margin: 0 .45rem .15rem; }
  .rail-link { flex: 1 1 auto; justify-content: center; gap: .4rem; margin: 0; padding: .55rem .6rem; font-size: .76rem; }
  .rail-note { display: none; }
  .welcome-panel { grid-template-columns: 1fr; gap: 1.5rem; padding: clamp(1.5rem, 6vw, 2.5rem); }
  .welcome-copy h1 { max-width: 640px; }
  .welcome-values { margin-bottom: 1.5rem; }
  .platform-discovery { margin-bottom: 1.6rem; }
  .platform-card-grid { grid-template-columns: 1fr; }
  #signed-in-view.sign-in-card { width: 100%; margin-top: 1.25rem; }
  .sign-in-card { margin-top: 3vh; }
  .leader-queue-form { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, auto)); }
}
@media (max-width: 520px) {
  .topbar { min-height: 60px; flex-wrap: wrap; padding: .55rem .8rem; }
  .brand { gap: .5rem; font-size: .8rem; }
  .brand-mark { width: 32px; height: 32px; }
  .topbar-actions { flex-wrap: wrap; justify-content: flex-end; gap: .3rem; }
  .topbar-actions .button { min-height: 34px; padding: .35rem .5rem; font-size: .72rem; }
  .environment-label { display: none; }
  .page-shell { width: min(100% - 1.1rem, 1200px); padding-top: 1.35rem; }
  .panel { padding: 1rem; }
  .panel-heading, .subsection-heading { align-items: stretch; flex-direction: column; }
  .panel-heading > .button, .subsection-heading > .button { align-self: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .directory-filters { grid-template-columns: 1fr; }
  .field-span { grid-column: auto; }
  .field-action { margin-top: -.15rem; }
  .security-pill { font-size: .75rem; }
  .welcome-paths { grid-template-columns: 1fr; }
  .welcome-panel { padding: 1.35rem; border-radius: 20px; }
  .welcome-copy h1 { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  .welcome-kicker { align-items: flex-start; font-size: .7rem; line-height: 1.4; }
  .welcome-actions { display: grid; grid-template-columns: 1fr; }
  .welcome-actions .button { width: 100%; }
  .welcome-values { grid-template-columns: 1fr; gap: .55rem; margin: 1rem 0 1.5rem; }
  .welcome-value { padding: .85rem; }
  .welcome-path p { min-height: 0; }
  .platform-card { padding: 1rem; }
  .workspace-rail { top: 60px; }
  .rail-link { flex-basis: calc(50% - .2rem); justify-content: flex-start; }
  .panel-heading h2 { font-size: 1.15rem; }
  .action-title { gap: .55rem; }
  .action-title > div { min-width: 0; }
  .action-title p, .subsection-heading p { max-width: 100%; }
  .member-request-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
  .member-request-actions .button { width: 100%; }
  .leader-queue-form { grid-template-columns: 1fr; }
  .leader-queue-form > * { min-width: 0; }
  .leader-queue-form .button { width: 100%; }
  .form-grid .button, .field-action .button { width: 100%; }
  .table-scroll { margin-right: 0; }
  table { min-width: 620px; }
  .overview-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leader-activation-shell { width: min(100% - 1.1rem, 520px); padding-top: 1.35rem; }
  .leader-activation-card { padding: 1.25rem; }
  .site-footer { gap: .55rem; padding: 1.25rem .75rem 1.5rem; }
  .whatsapp-link { width: min(100%, 320px); }
  .table-scroll { border-radius: 7px; }
  th, td { padding: .62rem .55rem; }
  .table-actions { min-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .platform-card:hover { transform: none; }
}
