/* Sunrise — mobile-first styles */
:root {
  --bg: #0b1e33;
  --card: #132c49;
  --line: #24405f;
  --text: #eef4fb;
  --muted: #9db2c9;
  --accent: #f59e0b;
  --accent-fg: #1a1206;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #38bdf8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
#app { max-width: 640px; margin: 0 auto; padding: 12px 12px 48px; }
h1 { font-size: 1.6rem; margin: 0.4em 0; }
h2 { font-size: 1.25rem; margin: 0.8em 0 0.4em; }
h3 { font-size: 1.05rem; margin: 0.8em 0 0.3em; }
a { color: var(--blue); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
}
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.muted { color: var(--muted); font-size: 0.9rem; }
.small { font-size: 0.85rem; }
label { display: block; margin: 10px 0 4px; font-weight: 600; }
input[type="text"], input[type="password"], input[type="email"], input[type="date"],
input[type="time"], input[type="number"], textarea, select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0d2440;
  color: var(--text);
}
textarea { min-height: 80px; resize: vertical; }
input[type="checkbox"] { width: 20px; height: 20px; margin-right: 6px; vertical-align: middle; }
.checks label { display: inline-block; margin: 4px 12px 4px 0; font-weight: normal; }
button, .btn {
  display: inline-block;
  padding: 10px 18px;
  margin: 6px 6px 6px 0;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button.secondary, .btn.secondary { background: #24405f; color: var(--text); }
button.danger, .btn.danger { background: var(--red); color: #fff; }
button.green, .btn.green { background: var(--green); color: #06240f; }
button:disabled { opacity: 0.5; cursor: default; }
button.big { width: 100%; padding: 14px; font-size: 18px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 8px; }
.topbar .brand { font-size: 1.4rem; font-weight: 800; color: var(--accent); text-decoration: none; }
.err { color: var(--red); font-weight: 600; margin: 8px 0; }
.ok { color: var(--green); font-weight: 600; margin: 8px 0; }
.warn { color: var(--accent); font-weight: 600; margin: 8px 0; }
.hidden { display: none !important; }
#update-banner {
  background: var(--accent); color: var(--accent-fg);
  padding: 8px 12px; text-align: center; font-weight: 700;
  position: sticky; top: 0; z-index: 50;
}
#update-banner button { margin: 0 0 0 8px; padding: 4px 12px; background: var(--accent-fg); color: var(--accent); }
table.resp { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.resp th, table.resp td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
table.resp th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
}
.pill.skater { background: #14532d; color: #bbf7d0; }
.pill.goalie { background: #1e3a8a; color: #bfdbfe; }
.pill.sub { background: #0c4a6e; color: #bae6fd; }
.pill.waitlist { background: #713f12; color: #fde68a; }
.pill.no { background: #7f1d1d; color: #fecaca; }
.pill.none { background: #334155; color: #cbd5e1; }
.invitee-row { border-bottom: 1px solid var(--line); padding: 8px 0; }
.msg { margin: 4px 0 4px 16px; padding: 6px 10px; background: #0d2440; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; font-size: 0.92rem; }
.attendee { padding: 6px 0; border-bottom: 1px dotted var(--line); }
select.inline { width: auto; padding: 6px; font-size: 14px; }
.event-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: #334155; color: #e2e8f0; font-weight: 700; }
.badge.draft { background: #713f12; color: #fde68a; }
.badge.scheduled { background: #14532d; color: #bbf7d0; }
.badge.completed { background: #334155; color: #cbd5e1; }
