/* Shared look for /join and /admin (same tokens as the dashboard page). */
:root {
  color-scheme: dark;
  --bg: #0e0e10; --surface-1: #17171a; --surface-2: #1f1f23; --line: #2a2a2f;
  --text-primary: #f4f2ee; --text-secondary: #b9b6ae; --text-muted: #85827b;
  --accent: #e8c27a; --accent-soft: rgba(232, 194, 122, .14); --live: #ff3b5c; --ok: #6fcf97;
  --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: #8a867d;
    --accent: #9a6b1f; --accent-soft: rgba(154,107,31,.12); --live: #d81b40; --ok: #1f8a4c;
    --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: Fraunces, 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(--accent); }
.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 10px/1 Inter, sans-serif; letter-spacing: .08em; 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 var(--line); border-radius: 10px; padding: 10px 12px; }
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(--text-primary); color: var(--bg); border-color: var(--text-primary); }
.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"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.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; }
