/* Étincelle Servir: volunteer pages. Follows the phone's light/dark setting; the booth mic screen stays dark (style.css). */
:root {
  --bg: #f5f4f1; --surface: #ffffff; --line: #e2e0db; --control: #7d838c;
  --text: #17181b; --text-2: #5b616b; --chip: #e7e4dd;
  --accent: #d9b46f; --on-accent: #1a1200; --sel-bg: #f7efdf; --sel-line: #8a6a2c; --sel-text: #6e5220;
  --ok-bg: #e3f4ea; --ok-line: #1f8a50; --ok-text: #0f6b3a; --ok-strong: #146c3c;
  --gap: #b3261e; --gap-bg: #fbe4e2; --warn-bg: #fdebd9; --warn-line: #c2611a; --warn-text: #8a3f0a;
  --radius-control: 8px; --radius-card: 12px; --radius-chip: 6px;
  --shadow-card: 0 1px 2px rgba(23, 24, 27, 0.06), 0 4px 14px rgba(23, 24, 27, 0.06);
  --shadow-bar: 0 -2px 12px rgba(23, 24, 27, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12; --surface: #171a1f; --line: #2e333b; --control: #646b76;
    --text: #f4f5f7; --text-2: #a3a9b3; --chip: #2a2f37;
    --sel-bg: #2a2316; --sel-line: #d9b46f; --sel-text: #e8cf9b;
    --ok-bg: #10251a; --ok-line: #2fbf71; --ok-text: #2fbf71; --ok-strong: #17733f;
    --gap: #ff8c8c; --gap-bg: #3a1714; --warn-bg: #2e1d10; --warn-line: #f08a3e; --warn-text: #ffb98a;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow-bar: 0 -2px 14px rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; }
html { font-size: 100%; }
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.4; }
*:focus-visible { outline: 3px solid var(--sel-line); outline-offset: 2px; }
::selection { background: #f0dcb2; color: #17181b; }
.hidden { display: none !important; }
main { max-width: 560px; margin: 0 auto; padding: 20px 16px 48px; display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-2); font-size: 0.9375rem; }
h1 { margin: 0; font-size: 1.875rem; font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }
h2 { margin: 0; font-size: 1.1875rem; font-weight: 800; }
h3 { margin: 0; font-size: 1rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--text-2); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px 16px; box-shadow: var(--shadow-card); }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
input[type=text], input[type=search], input[type=url], input[type=number], input[type=date], input[type=time], input[type=tel], input:not([type]), input[inputmode=numeric] {
  min-height: 50px; border-radius: var(--radius-control); border: 2px solid var(--control); background: var(--surface);
  color: var(--text); font-weight: 600; font-size: 1rem; font-family: inherit; padding: 0 12px; width: 100%;
}
input.pin { width: 160px; font-size: 1.5rem; font-weight: 800; letter-spacing: 0.4em; }
label.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; }
label.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--sel-line); flex-shrink: 0; }

button, a.btn, label.btn {
  min-height: 48px; border-radius: var(--radius-control); border: 2px solid var(--control); background: var(--surface);
  color: var(--text); font-weight: 700; font-size: 1rem; font-family: inherit; padding: 0 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
}
button.primary, a.btn.primary, label.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 800; }
button.big { min-height: 56px; font-size: 1.125rem; width: 100%; }
button.ok { background: var(--ok-strong); border-color: var(--ok-strong); color: #fff; }
button.link { border: none; background: none; color: var(--sel-text); text-decoration: underline; text-underline-offset: 3px; }
button.danger { color: var(--gap); border-color: var(--gap); background: transparent; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.chip { min-height: 48px; padding: 4px 6px; font-weight: 600; font-size: 0.9375rem; gap: 4px; flex-wrap: wrap; line-height: 1.15; }
button.chip[aria-pressed=true] { border-color: var(--sel-line); background: var(--sel-bg); color: var(--sel-text); font-weight: 700; }
button.team { min-height: 76px; flex-direction: column; align-items: flex-start; padding: 10px 14px; text-align: left; }
button.team[aria-pressed=true] { border-color: var(--sel-line); background: var(--sel-bg); color: var(--sel-text); }
button.team small { font-weight: 600; color: var(--text-2); font-size: 0.875rem; }

.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: var(--chip); font-weight: 800; font-size: 1.875rem; color: var(--text-2); }
.avatar.empty { border: 2px dashed var(--control); background: var(--surface); }
.avatar.sm { width: 44px; height: 44px; font-size: 0.9375rem; }
.badge { font-size: 0.8125rem; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-chip); }
.badge.pending { background: var(--warn-bg); color: var(--warn-text); }
.badge.ok { background: var(--ok-bg); color: var(--ok-text); }
.badge.gap { background: var(--gap-bg); color: var(--gap); }
.error { color: var(--gap); font-weight: 700; }
.error:empty { display: none; }
.notice { background: var(--warn-bg); color: var(--warn-text); border: 2px solid var(--warn-line); border-radius: var(--radius-card); padding: 12px 14px; font-weight: 600; }
.success { background: var(--ok-bg); color: var(--ok-text); border: 2px solid var(--ok-line); border-radius: var(--radius-card); padding: 12px 14px; font-weight: 600; }
code.copy { display: block; word-break: break-all; background: var(--chip); padding: 10px; border-radius: var(--radius-control); font-size: 0.875rem; }
select { min-height: 44px; border-radius: var(--radius-control); border: 2px solid var(--control); background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.9375rem; font-family: inherit; padding: 0 8px; }

/* Bottom tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-bar); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1 1 0; max-width: 140px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text-2); text-decoration: none; font-size: 0.8125rem; font-weight: 700; border-radius: var(--radius-control);
}
.tabbar a[aria-current=page] { color: var(--sel-text); background: var(--sel-bg); font-weight: 800; }
body.has-tabbar main { padding-bottom: 110px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
label.btn:focus-within { outline: 3px solid var(--sel-line); outline-offset: 2px; }

.logo-mark { height: 28px; width: auto; display: block; }
