/* Shared look for /join and /admin (same tokens as the dashboard page). */
:root {
  color-scheme: dark;
  --bg: #0e0e10; --surface-1: #1a1a1e; --surface-2: #222226; --line: #2a2a30;
  --text-primary: #f4f0e8; --text-secondary: #c9c4ba; --text-muted: #96928c;
  --accent: #e5b65c; --accent-soft: rgba(229, 182, 92, .14); --live: #ff5c64; --ok: #6fcf97; --on-accent: #0e0e10;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 12px 32px rgba(0,0,0,.35);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f4ef; --surface-1: #fffdf9; --surface-2: #f1eee7; --line: #e3dfd5;
    --text-primary: #17161a; --text-secondary: #57544d; --text-muted: #6f6b62;
    --accent: #865c17; --accent-soft: rgba(134,92,23,.12); --live: #b8143a; --ok: #17733e; --on-accent: #fffdf9;
    --shadow: 0 1px 0 rgba(0,0,0,.02), 0 10px 28px rgba(60,40,10,.08);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text-primary); font: 400 15px/1.5 Inter, system-ui, sans-serif; }
h1, h2, h3 { font-family: Gelasio, Georgia, serif; font-weight: 500; margin: 0; }
h1 { font-size: 28px; } h2 { font-size: 20px; } h3 { font-size: 16px; font-family: Inter, system-ui, sans-serif; font-weight: 600; }
a { color: var(--text-primary); text-underline-offset: 3px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
.narrow { max-width: 440px; }
.card { background: var(--surface-1); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--text-muted); font-size: 13px; }
.lede { color: var(--text-secondary); margin: 6px 0 18px; }
.pill { font: 600 12px/1 Inter, sans-serif; letter-spacing: .04em; padding: 4px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); text-transform: uppercase; }
.pill.bad { background: rgba(255,59,92,.14); color: var(--live); }
label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
input, select { width: 100%; font: 400 16px Inter, system-ui, sans-serif; color: var(--text-primary); background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--text-muted) 75%, var(--line)); border-radius: 12px; padding: 12px 14px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { font: 500 14px Inter, system-ui, sans-serif; border-radius: 10px; padding: 10px 14px; cursor: pointer;
  background: transparent; color: var(--text-primary); border: 1px solid var(--line); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.danger { color: var(--live); }
.btn:disabled { opacity: .5; cursor: default; }
.err { color: var(--live); font-size: 14px; min-height: 20px; }
.ok { color: var(--ok); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { font: 500 13px Inter, sans-serif; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text-secondary); cursor: pointer; }
.tabs button[aria-selected="true"], .tabs button[aria-checked="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.code { font: 600 26px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; padding: 14px; text-align: center;
  background: var(--surface-2); border-radius: 10px; user-select: all; word-break: break-all; }
.code.small { font-size: 13px; letter-spacing: 0; text-align: left; white-space: pre-wrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--text-muted); font-weight: 500; font-size: 12px; }
dialog { background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--line); border-radius: 14px; padding: 22px; max-width: 460px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.55); }
.hidden { display: none !important; }
/* usual live hours editor (admin.html, start.html) */
.hours-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.hours-row .days { display: flex; flex-wrap: wrap; gap: 6px; }
.hours-row .days label { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 5px 8px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; color: var(--text-primary); cursor: pointer; }
.hours-row .days input { width: auto; margin: 0; }
.hours-row .times { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hours-row .times input { width: auto; min-width: 120px; }

/* Gratitude brand: seal + wordmark over sign-in / start / join, slogan, focus ring */
.gbrand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 20px; }
.gwm { font: 500 14px/1 "Bodoni Moda", "Bodoni MT", Didot, serif; letter-spacing: .32em; margin-right: -.32em; color: var(--text-secondary); }
.gslogan { margin: 0 0 18px; text-align: center; font: 400 17px/1.35 Gelasio, Georgia, serif; color: var(--text-primary); }
.gslogan em { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn.google { width: 100%; background: #f2ece0; color: #141416; border: 1px solid color-mix(in srgb, var(--text-muted) 70%, var(--line)); font-weight: 600; display: flex; gap: 10px; align-items: center; justify-content: center; }
