:root {
  /* Outliv brand — "Daylight Premium Realism": warm cream base, rust as the one accent. */
  --ink: #1c1b23; --muted: #6b6658; --line: #e7e2d6; --bg: #f6f3eb; --card: #fff;
  --brand: #c34921; --brand-ink: #a53a17; --brand-soft: #f6e6df;
  --green: #c6d874; --blue: #aecde9; --yellow: #feffc4;
  --warn: #b45309; --err: #b91c1c; --ok: #4d7c0f;
  --radius: 10px;
  --font-ui: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Lora", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-ui);
  color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5; }
a { color: var(--brand); }
a:hover { color: var(--brand-ink); }
.container { max-width: 1040px; margin: 0 auto; padding: 24px 20px 80px; }

/* Light topbar — the logo is dark charcoal, so the bar is always cream/white. */
.topbar { display: flex; align-items: center; gap: 20px; padding: 12px 20px;
  background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.mainnav { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.mainnav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink);
  font-weight: 600; }
.mainnav a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.mainnav a.active { background: var(--brand); color: #fff; }
.userbox { display: flex; align-items: center; gap: 12px; color: var(--muted); }

h1, h2, h3 { font-family: var(--font-ui); }
h1 { font-size: 24px; margin: 0 0 16px; font-weight: 700; }
h2 { font-size: 18px; margin: 24px 0 10px; font-weight: 700; }

/* Coach photos (roster + form). Round, warm border, graceful placeholder. */
.coach-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: var(--bg); display: block; }
.coach-photo-lg { width: 84px; height: 84px; }
.photo-field { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; }
.stat .n { font-size: 30px; font-weight: 800; color: var(--brand-ink); }
.stat .l { color: var(--muted); font-size: 14px; }

table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }

label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 16px; min-height: 44px; background: #fff; }
textarea { min-height: 90px; }
.help { color: var(--muted); font-size: 13px; margin-top: 4px; }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; padding: 11px 18px;
  border-radius: 9px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none;
  min-height: 44px; }
.btn:hover { background: var(--brand-ink); }
.btn-secondary { background: #eef2f6; color: var(--ink); }
.btn-danger { background: var(--err); }
.btn-link { background: none; border: 0; color: var(--brand-ink); cursor: pointer; font: inherit;
  text-decoration: underline; padding: 0; }
.actions { display: flex; gap: 10px; margin-top: 18px; align-items: center; }

.flashes { margin-bottom: 16px; }
.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 8px; border: 1px solid; }
.flash-success { background: #ecfdf3; border-color: #abefc6; color: var(--ok); }
.flash-error { background: #fef2f2; border-color: #fecaca; color: var(--err); }
.flash-warning { background: #fffbeb; border-color: #fde68a; color: var(--warn); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px;
  background: #eef2f6; color: var(--muted); }
.badge-private { background: #ecfeff; color: #0e7490; }
.badge-home { background: #f5f3ff; color: #6d28d9; }
.badge-alert { background: #fef2f2; color: #b91c1c; }
.tag-warn { color: var(--warn); font-weight: 600; }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.2); }

.login-wrap { max-width: 380px; margin: 8vh auto; }
.muted { color: var(--muted); }
.right { text-align: right; }

/* "Add one at a time" picker (coaches, levels, off-days) — senior-friendly chips. */
.picker { margin-top: 12px; }
.picker-add { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.picker-add .picker-select { flex: 1; min-width: 200px; }
.picker-add .btn { white-space: nowrap; }
.picker-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px;
  background: var(--brand-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.chip-x { width: 26px; min-height: 26px; height: 26px; padding: 0; border-radius: 999px;
  border: none; background: #ecd5cb; color: var(--brand-ink); font-size: 18px; line-height: 1;
  cursor: pointer; }
.chip-x:hover { background: #e2c1b3; }
.picker-empty { color: var(--muted); font-size: 14px; }
.req { color: var(--err); }
.template-picker { background: var(--brand-soft); border: 1px solid #ecd5cb; border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 16px; }
.template-picker .picker-add { align-items: end; }
