/* CDSlides desktop D40–D45: graphite, sage and Source Sans 3. */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/auth/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/auth/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("/auth/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --color-bg: #f3f3f4; --color-surface: #ffffff; --color-raised: #f7f7f8;
  --color-border: #dfdfe3; --color-border-strong: #85858e;
  --color-text: #18181b; --color-text-muted: #55555e; --color-text-subtle: #6b6b74;
  --color-accent: #3e6d4a; --color-accent-hover: #335c3e; --color-on-accent: #ffffff; --color-accent-soft: #e6efe8;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 100%; line-height: 1.45;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-bg: #141517; --color-surface: #18191c; --color-raised: #202125;
    --color-border: #2e3035; --color-border-strong: #72757e;
    --color-text: #ececee; --color-text-muted: #a0a2aa; --color-text-subtle: #868993;
    --color-accent: #93c49c; --color-accent-hover: #a6d1ad; --color-on-accent: #0c1f11; --color-accent-soft: #1f2a22;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-size: .96875rem; -webkit-font-smoothing: antialiased; }
.auth-shell { width: min(100%, 480px); margin: 0 auto; padding: 64px 20px 32px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; font-size: 1.75rem; letter-spacing: -.01em; }
.brand svg { flex: none; color: var(--color-accent); }
.brand b { font-weight: 700; }
.auth-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; padding: 32px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
p { margin: 0; }
#status { margin: 12px 0 24px; color: var(--color-text-muted); overflow-wrap: anywhere; }
section, form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
label { font-weight: 600; }
input, select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--color-border-strong); border-radius: 6px; background: var(--color-raised); color: var(--color-text); font: inherit; }
input::placeholder { color: var(--color-text-subtle); }
button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--color-border-strong); border-radius: 6px; background: var(--color-surface); color: var(--color-text); font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background-color 120ms; }
button:hover:not(:disabled) { background: var(--color-raised); }
button:disabled { opacity: .4; cursor: default; }
.primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.primary:hover:not(:disabled) { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.quiet { border-color: transparent; color: var(--color-text-muted); }
.wide { width: 100%; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--color-text-subtle); font-size: .875rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.hint { color: var(--color-text-muted); font-size: .875rem; }
.identity { padding: 12px 16px; background: var(--color-accent-soft); border-radius: 6px; overflow-wrap: anywhere; }
.account-section { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid var(--color-border); }
#ecclesiae { display: grid; gap: 24px; }
.ecclesia-name { gap: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions button { flex: 1; }
.passkey-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.passkey-list:empty { display: none; }
.passkey-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }
.passkey-list button { font-size: .875rem; }
.page-footer { margin-top: 24px; text-align: center; color: var(--color-text-subtle); font-size: .8125rem; }
@media (max-width: 480px) { .auth-shell { padding-top: 32px; } .auth-card { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }

a { color: var(--color-accent); overflow-wrap: anywhere; }
.planning-card > p:last-of-type { margin-top: 24px; }

.admin-shell { width: min(100%, 760px); }
#admin-content { display: grid; gap: 24px; margin-top: 24px; }
.admin-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.admin-list li { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--color-border); border-radius: 6px; overflow-wrap: anywhere; min-width: 0; }
.admin-list .actions { margin-top: 8px; }
#pending-title { flex: 2; align-self: center; }
.admin-list .actions button { flex: 1 1 110px; overflow-wrap: normal; }
