:root{
  --bg: #000000;
  --fg: #ffffff;
  /* 2026-08 brand refresh: swapped from #ffd54a to match the OBH Invites
     logo art's dominant gold (the "INVITES" lettering / stick tape), which
     reads as a deeper "trophy gold" rather than the old bright lemon-yellow.
     One token, no parallel palette — everything gold-colored site-wide
     inherits this automatically. */
  --gold: #d4af37;
  --muted: #9aa0a6;
  --card: #0a0a0a;
  --line: #1a1a1a;
  --shadow: 0 12px 30px rgba(0,0,0,0.4);
  --overlay: rgba(0,0,0,0.65);

  /* Status colors (data density / capacity+status patterns, added 2026-08).
     Green/red match the values .badge.ok/.badge.need already used as literal
     hex before this pass named them; amber/blue are new. Gold stays reserved
     for primary actions, active nav, and the pre-existing "locked" badge
     convention — these four are for status/data reads only. */
  --green: #33d17a;
  --green-dim: #00140a;
  --amber: #f0a63a;
  --amber-dim: #2a1a05;
  --red: #ff5a5f;
  --red-dim: #1a0000;
  --blue: #5aa9e6;
  --blue-dim: #05141f;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

a{ color: var(--gold); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Visually hidden but screen-reader/SEO visible — for text equivalents of
   messaging that's baked into a decorative image (e.g. the home hero). */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.profile-page .wrap{
  max-width: 1100px;
}

header.topbar{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 2px solid var(--gold);
}

.brand{
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-tagline{
  margin: 2px 0 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.brand-logo{
  height: 56px;
  width: 56px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* Wordmark lockup (obh_invites_header.png) — replaces the square
   .brand-logo icon + plain-text .brand-title pairing; the artwork already
   bakes in "OBH INVITES" as a logotype, so showing both was redundant.
   Sized by height with width auto so it never stretches past its native
   535×175 aspect ratio; max-width caps it on wide viewports. */
.brand-wordmark{
  height: 56px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.brand-title{
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-sub{
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.8;
}

.nav{
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #101010;
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover{
  text-decoration: none;
  border-color: var(--gold);
}

.btn-gold,
.btn.gold{
  background: var(--gold);
  color: #111111;
  border-color: var(--gold);
}

.btn-danger{
  background: #ff5a5f;
  color: #111111;
  border-color: #ff5a5f;
}

.btn.ghost{ background: transparent; }

.btn-sm{
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.1;
}

.hero{
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}

.hero h1{
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hero p{
  margin: 0;
  color: var(--muted);
}

/* Home hero — obh_invites_hero.png as a low-height background band, not a
   dominant full-width image (its headline duplicated the header tagline;
   see base.html's .brand-tagline, the single source of truth for that
   copy now). Fixed height keeps it decorative/textural rather than a
   second marketing block. */
.hero--home{
  position: relative;
  border-top: 3px solid var(--gold);
  background-color: var(--card);
  background-image: url('img/brand/obh_invites_hero.png');
  background-size: cover;
  background-position: center;
  min-height: 90px;
  overflow: hidden;
}

/* Primary navigation tiles — quick-launch grid for the home hero.
   auto-fill + minmax collapses naturally: many columns on desktop, 3-4 on
   tablet, 2 on phone; the media query below forces 1 on very narrow
   screens. Every tile is a real <a> with a visible text label. */
.obh-nav-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.obh-nav-tile{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.obh-nav-tile svg{
  width: 26px;
  height: 26px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
}

.obh-nav-tile:hover{
  border-color: var(--gold);
  background: #141414;
  transform: translateY(-2px);
}

.obh-nav-tile:active{
  transform: translateY(0);
}

.obh-nav-tile.gold{
  background: var(--gold);
  color: #111111 !important;
}

.obh-nav-tile.gold svg{
  stroke: #111111;
}

@media (max-width: 380px){
  .obh-nav-grid{
    grid-template-columns: 1fr;
  }
}

/* Focus-visible + pressed states, additive across the existing interactive
   classes — keyboard-focusable, subtle (gold ring, no motion beyond a 1px
   press), consistent with the "restrained" hover treatment already used on
   .btn:hover / .tab.active. */
.btn:focus-visible,
.tab:focus-visible,
.roster-tab:focus-visible,
.chip:focus-visible,
.obh-nav-tile:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn:active:not(:disabled){
  transform: translateY(1px);
}

.btn:disabled,
.btn.is-disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.row,
.grid{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.grid + .grid,
.row + .row{
  margin-top: 16px;
}

.admin-event-columns{
  flex-wrap: nowrap;
}

/* flex-grow ratio (1:2) on a zero basis, not fixed percentages: 33.333% +
   66.666% only sums to 99.999%, and with flex-shrink:0 and the 16px gap
   .grid adds between them, the row overflowed its container by exactly the
   gap width — pushing the Invitations card's right edge past every other
   card's. Grow ratios on a zero basis split the actual gap-adjusted
   available space exactly 1/3 : 2/3 with no overflow. */
.admin-event-columns .card.third{
  flex: 1 1 0;
  min-width: 0;
}

.admin-event-columns .card.two-thirds{
  flex: 2 1 0;
  min-width: 0;
}

.col,
.card.half{
  flex: 1 1 320px;
}

.profile-edit-col{
  flex: 0 0 528px;
  max-width: 528px;
  min-width: 320px;
}

.profile-side-col{
  flex: 0 0 528px;
  max-width: 528px;
  min-width: 320px;
}

.profile-row{
  flex-wrap: nowrap;
}

@media (max-width: 980px){
  .profile-row{
    flex-wrap: wrap;
  }

  .profile-edit-col,
  .profile-side-col{
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.grid2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kv{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
}

.card{
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 16px;
}

.card.invites-card{
  font-size: 14px;
}

.actions-admin-card,
.invites-admin-card{
  margin-bottom: 16px;
}

.card.full{
  flex: 1 1 100%;
}

.card.third{
  flex: 1 1 280px;
}

.card.two-thirds{
  flex: 2 1 560px;
}

.card h2{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.meta{
  color: var(--muted);
  font-size: 12px;
  opacity: 0.8;
}

.batch-status.is-inactive{
  visibility: hidden;
}

.roster-count{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.count{
  font-weight: 800;
}

.count-warn{
  color: var(--gold);
}

.count-ok{
  color: #33d17a;
}

.goalie-prompt{
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.goalie-prompt.is-open{
  display: flex;
}

.goalie-prompt-card{
  width: min(420px, 92vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.goalie-prompt-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.goalie-prompt-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.count-bad{
  color: #ff5a5f;
}

.tabs{
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  color: var(--fg);
}

.tabs-secondary{
  padding: 6px 0 14px;
  border-bottom: 1px dashed var(--line);
}

.tabs-secondary .tab{
  font-size: 14px;
}

.tab-label{
  background: transparent;
  border-color: transparent;
  color: var(--muted) !important;
  cursor: default;
  padding-left: 0;
}

.roster-tabs{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.roster-tab{
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #101010;
  color: var(--fg);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.roster-tab.is-active{
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.roster-panel{
  display: none;
}

.roster-panel.is-active{
  display: block;
}

.tab{
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  color: var(--fg) !important;
  transition: border-color 0.12s ease;
}

.tabs .tab:link,
.tabs .tab:visited,
.tabs .tab:hover,
.tabs .tab:active,
.tabs a.tab,
.tabs a{
  color: var(--fg) !important;
  text-decoration: none;
}

.tab:hover{
  border-color: var(--gold);
}

.tab[aria-current="page"]{
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
  color: var(--fg) !important;
}

.tab.gold{
  background: var(--gold);
  color: #111111 !important;
  border-color: var(--gold);
}

.tab.gold:hover{
  border-color: var(--gold);
  filter: brightness(1.1);
}

.tab-logout{
  margin-left: auto;
}

.table{
  width: 100%;
  border-collapse: collapse;
}

/* Home page night list (§3) — row-click affordance and the collapsed
   "no date set" disclosure. */
.night-row[data-row-link]{
  cursor: pointer;
}

.night-row[data-row-link]:hover{
  background: rgba(255,255,255,0.03);
}

.night-undated{
  margin-top: 12px;
}

.night-undated summary{
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0;
}

.table th,
.table td{
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.events-table th,
.events-table td{
  font-size: 12px;
}

.invites-admin-card .table th,
.invites-admin-card .table td{
  font-size: 13px;
  white-space: nowrap;
}

.invites-admin-card .invite-row-action{
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.1;
}

.roster-admin-card .table th,
.roster-admin-card .table td{
  font-size: 13px;
}

.roster-admin-card .btn{
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.1;
}

.roster-admin-card .btn.present-toggle{
  padding: 0;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.paid-toggle{
  margin-left: 0;
  border-color: #3a3a3a;
}

.paid-toggle.is-active{
  background: var(--gold);
  border-color: var(--gold);
  color: #111111;
}

.present-toggle{
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid var(--line, #1a1a1a);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.present-toggle::after{
  content: "✓";
  visibility: hidden;
}

.present-toggle.is-active{
  background: var(--gold);
  border-color: var(--gold);
  color: #111111;
}

.present-toggle.is-active::after{
  visibility: visible;
}

.roster-guy-toggle.is-active{
  background: var(--gold);
  border-color: var(--gold);
  color: #111111;
}

.badge-goalie{
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--gold);
  color: #111111;
}

.roster-guest-row td{
  background: rgba(255, 255, 255, 0.02);
}

.roster-guest-name{
  padding-left: 18px;
}

.table th{
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 1;
}

.table-wrap{
  max-height: 520px;
  overflow: auto;
}

.invite-table-wrap{
  max-height: 260px;
  overflow: auto;
}

/* In the admin manage-event two-column layout, let the invite list consume
   remaining card height before it starts scrolling. */
.admin-event-columns .invites-admin-card{
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-event-columns .invites-admin-card .invite-table-wrap{
  flex: 1 1 auto;
  min-height: 0;
  max-height: 420px;
  overflow-y: auto;
}

.rsvp-choice-buttons{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.rsvp-lock-note{
  margin: 8px 0 0;
  color: #c8c8c8;
  font-weight: 600;
}

.rsvp-choice-buttons.is-locked .btn{
  background: #353535;
  border-color: #585858;
  color: #b8b8b8;
  opacity: 1;
  cursor: not-allowed;
}

.rsvp-choice-buttons.is-locked #rsvp-maybe{
  background: #6a6a6a;
  border-color: #808080;
  color: #efefef;
}

/* RSVP status hinting — selected state still comes from the existing
   .btn-gold toggle in event_detail.html's script (untouched); this only
   adds a subtle per-choice border tint on hover/unselected so Going/
   Maybe/No read as distinct even before a choice is made. Text labels
   ("Yes"/"Maybe"/"No") remain the primary signal, not color alone. */
#rsvp-yes-btn:not(.btn-gold):hover{ border-color: var(--green); color: var(--green); }
#rsvp-maybe-btn:not(.btn-gold):hover{ border-color: var(--amber); color: var(--amber); }
#rsvp-no-btn:not(.btn-gold):hover{ border-color: var(--red); color: var(--red); }

.message-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.message-scroll{
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.message-item{
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #0c0c0c;
}

.message-meta{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.message-author{
  font-weight: 600;
  color: var(--fg);
}

.message-body{
  margin-top: 6px;
}

.message-image{
  display: block;
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.message-actions{
  margin-top: 8px;
}

.message-actions summary{
  cursor: pointer;
}

.roster-columns{
  column-count: 2;
  column-gap: 24px;
  margin-top: 8px;
}

.roster-item{
  break-inside: avoid;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.roster-name{
  font-weight: 600;
}

@media (max-width: 780px){
  .admin-event-columns{
    flex-wrap: wrap;
  }

  .admin-event-columns .card.third,
  .admin-event-columns .card.two-thirds{
    flex: 1 1 100%;
  }

  /* Keep a bounded scroll region on stacked mobile cards. */
  .admin-event-columns .invites-admin-card .invite-table-wrap{
    max-height: 260px;
  }

  .hide-mobile{
    display: none;
  }

  .roster-columns{
    column-count: 1;
  }

  .wrap{
    padding: 12px;
  }

  header.topbar{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand{
    gap: 12px;
  }

  .brand-logo{
    height: 48px;
    width: 48px;
  }

  .brand-wordmark{
    height: 44px;
    max-width: 190px;
  }

  .tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .tab{
    white-space: nowrap;
  }

  .tab-logout{
    margin-left: 0;
  }

  .table-wrap{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table th,
  .table td{
    padding: 6px 8px;
    font-size: 13px;
  }

  .card.two-thirds,
  .card.third{
    flex: 1 1 100%;
  }

  .profile-edit-col,
  .profile-side-col{
    flex: 1 1 100%;
    max-width: 100%;
  }

  .actions-admin-card .event-details-row > div{
    flex: 1 1 100%;
    min-width: 0;
  }

  .actions-admin-card input[type="date"],
  .actions-admin-card input[type="time"],
  .actions-admin-card input[type="text"],
  .actions-admin-card input[type="number"],
  .actions-admin-card select{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

}

.badge{
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #0c0c0c;
}

.badge.warn{
  background: #141000;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.badge.ok{
  background: var(--green-dim);
  border: 1px solid var(--green);
  color: var(--green);
}

.badge.whiskey{
  background: #1f1207;
  border: 1px solid #a96a2d;
  color: #e0a15f;
}

.badge.full{
  border: 1px solid #ffffff;
  color: #ffffff;
}

.badge.need{
  background: var(--red-dim);
  border: 1px solid var(--red);
  color: var(--red);
}

.badge.amber{
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  color: var(--amber);
}

/* Capacity / fill bars — one per independent pool (skater, goalie, etc.).
   Always pair with the raw "X / Y" count in markup; the bar alone is never
   enough for a director making an RSVP decision. */
.fill-bar{
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #1f1f1f;
  overflow: hidden;
}

.fill-bar__fill{
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.fill-bar__fill.green{ background: var(--green); }
.fill-bar__fill.amber{ background: var(--amber); }
.fill-bar__fill.red{ background: var(--red); }

.capacity-card{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.capacity-card__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.capacity-card__header h3{
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.capacity-card__count{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Public vs. director-only card treatment. Anything players can eventually
   see (director message, notices) gets the gold left-border; anything
   strictly internal (director notes) gets the red one plus the label. */
.card--public{
  border-left: 4px solid var(--gold);
}

.card--director-only{
  border-left: 4px solid var(--red);
}

.director-only-label{
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red-dim);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Beer Guy role chip — sibling to the existing .badge.whiskey, same shape.
   Green per director preference, reusing the same green tokens as
   .badge.ok so it stays consistent with the rest of the badge system. */
.badge.beer{
  background: var(--green-dim);
  border: 1px solid var(--green);
  color: var(--green);
}

/* Stat tiles — for 3+ related numbers shown together (replaces flat
   label:value text lists). Only color the number when the metric has a
   good/bad reading; leave neutral counts in default text color. */
.stat-tile-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.stat-tile{
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.stat-tile__value{
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
}

.stat-tile__value.good{ color: var(--green); }
.stat-tile__value.bad{ color: var(--red); }

.stat-tile__label{
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Compact event-list row — replaces a 10+ column table row with a dense
   single line (wraps on narrow viewports). Used on the director dashboard's
   Upcoming/Archived Events lists. */
.event-row-card{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 14px;
}

.event-row-card + .event-row-card{
  margin-top: 8px;
}

.event-row-card__main{
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.event-row-card__date{
  font-size: 12px;
  color: var(--muted);
}

.event-row-card__name{
  font-weight: 700;
}

.event-row-card__bar{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 110px;
}

.event-row-card__bar .fill-bar{
  width: 100px;
}

.event-row-card__stats{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.event-row-card__actions{
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Rating row fill bar — sits beside each slider row on the player profile.
   Neutral blue: a rating isn't inherently good/bad without context. */
.rating-row__bar{
  width: 100%;
}

.rating-row__bar .fill-bar{
  height: 6px;
}

/* PPV highlight badge — pulls the headline PPV/OBH-grade readout out of
   plain text into its own pill. Blue, not gold: it's a data readout, not a
   primary action. */
.ppv-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-dim);
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
}

.ppv-badge__label{
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.ppv-badge__value{
  font-size: 16px;
}

/* Read-only rating radar — plain inline SVG, no charting library. */
.rating-radar{
  display: flex;
  justify-content: center;
  margin: 4px 0 10px;
}

.rating-radar svg{
  max-width: 180px;
  width: 100%;
  height: auto;
}

.rating-radar .radar-grid{
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.rating-radar .radar-axis{
  stroke: var(--line);
  stroke-width: 1;
}

.rating-radar .radar-label{
  fill: var(--muted);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.rating-radar .radar-shape{
  fill: var(--blue);
  fill-opacity: 0.25;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: none;
}

/* Django's default form error list (`{{ form.field.errors }}`,
   `{{ form.non_field_errors }}`) — unstyled before this, site-wide. Same red
   "pay attention" language as .card--director-only, so red carries one
   consistent meaning everywhere on the site. */
.errorlist{
  list-style: none;
  margin: 6px 0;
  padding: 8px 12px;
  border-left: 4px solid var(--red);
  background: var(--red-dim);
  border-radius: 6px;
  color: var(--red);
  font-size: 13px;
}

.errorlist li{
  margin: 0;
}

.errorlist li + li{
  margin-top: 4px;
}

.chip{
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
}

.chip.active{
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

code, pre{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  background: #0d0d0d;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

pre{
  white-space: pre-wrap;
  overflow-x: auto;
}

.footer{
  margin-top: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  opacity: 0.7;
}

hr{
  border: none;
  border-top: 1px solid var(--line);
  margin: 12px 0;
}

.lock-pill{
  font-size: 12px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  opacity: 0.8;
}

/* Forms */
form p{ margin: 12px 0; }
label{ font-weight: 700; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="time"],
input[type="number"], select, textarea{
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0e0e0e;
  color: var(--fg);
  box-sizing: border-box;
}
.penalty-box-form select,
.penalty-box-form input[type="number"],
.penalty-box-form input[type="text"]{
  height: 44px;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button{
  filter: invert(1) sepia(1) saturate(6) hue-rotate(5deg);
  opacity: 0.9;
}
input[type="date"]::-webkit-calendar-picker-indicator{
  filter: invert(1);
  opacity: 1;
}
input::placeholder, textarea::placeholder{ color: var(--muted); }
textarea{ resize: vertical; }
ul{ margin: 8px 0 0; padding-left: 18px; }

.guest-row{
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.guest-name{ flex: 1 1 auto; }
.guest-skill{ flex: 0 0 140px; }

.guest-row input,
.guest-row select{
  height: 42px;
}

.quick-actions-wrap{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.quick-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  max-width: 100%;
  min-width: 0;
}

.quick-actions__field{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-actions input,
.quick-actions select{
  height: 42px;
}

.quick-actions__label-spacer{
  visibility: hidden;
}

.quick-actions__submit{
  align-self: flex-start;
}

@media (max-width: 780px){
  .quick-actions{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
  }

  .quick-actions__field{
    width: 100%;
  }

  .quick-actions__field--submit{
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
  }

  .quick-actions__label-spacer{
    display: none;
  }

  .quick-actions input[type="date"]{
    height: 20px;
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
}

.login-overlay{
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card{
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.toggle-check{
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.toggle-check.active{
  background: var(--gold);
  color: #111111;
  transform: scale(1.02);
}

/* Team Generator: drag-to-pair / drag-to-split. Pointer Events (not native
   HTML5 draggable=""), since draggable="" has no real touch support — this
   needs to work the same on a phone/tablet at the rink as it does with a
   mouse. */
.pair-split-toolbar{
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pair-split-mode-btn{
  opacity: 0.6;
}

.pair-split-mode-btn.active{
  opacity: 1;
}

.pair-split-mode-btn.active.mode-pair{
  border-color: var(--green);
  color: var(--green);
}

.pair-split-mode-btn.active.mode-split{
  border-color: var(--red);
  color: var(--red);
}

.pair-split-list{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pair-split-list:empty{
  display: none;
}

.pair-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--green-dim);
  border: 1px solid var(--green);
  color: var(--green);
}

.split-chip{
  background: var(--red-dim);
  border: 1px solid var(--red);
  color: var(--red);
}

.pair-chip button,
.split-chip button{
  background: transparent;
  border: none;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

/* Draggable roster row. touch-action:none stops the browser's own
   touch-scroll gesture from competing with our pointer-based drag on
   touch devices — without it, a drag attempt on a phone just scrolls
   the page instead. */
.roster-row-draggable{
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: opacity 0.1s ease;
}

.roster-row-dragging{
  opacity: 0.4;
}

.roster-row-drop-target-pair{
  outline: 2px solid var(--green);
  outline-offset: -2px;
  background: var(--green-dim);
}

.roster-row-drop-target-split{
  outline: 2px solid var(--red);
  outline-offset: -2px;
  background: var(--red-dim);
}

.drag-ghost{
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--gold);
  color: var(--fg);
  box-shadow: var(--shadow);
  transform: translate(-50%, -120%);
}

.badge.pair{
  background: var(--green-dim);
  border: 1px solid var(--green);
  color: var(--green);
}

.badge.split{
  background: var(--red-dim);
  border: 1px solid var(--red);
  color: var(--red);
}
