@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,700;0,800;1,800;1,900&display=swap");
:root {
  --ink: #111114;
  --ink-2: #3d3d46;
  --muted: #6e6e7a;
  --paper: #f4f4f6;
  --card: #ffffff;
  --line: #e1e1e7;
  --pitch: #16161a;
  --pitch-dark: #000000;
  --gold: #d30e7c;
  --gold-dark: #a8095f;
  --tint: #fbe8f2;
  --grass: #1d5c3a;
  --red: #c8283c;
  --blue: #2558d6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(17, 17, 20, .06), 0 6px 20px rgba(17, 17, 20, .08);
  --head: "Montserrat", "Arial Black", Arial, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.01em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 900; font-style: italic; text-transform: uppercase; }
h2 { font-size: 1.45rem; font-weight: 800; font-style: italic; text-transform: uppercase; }
h3 { font-size: 1.08rem; font-weight: 800; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

/* Header */
.site-header {
  background: var(--pitch-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--gold);
}
.site-header .inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  max-width: 1500px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark { font-family: "Montserrat", "Arial Black", Arial, sans-serif; font-weight: 900; font-style: italic; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1; color: #fff; text-transform: uppercase; }
.wordmark span { color: var(--gold); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  color: #cfcfd6;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { background: rgba(211,14,124,.22); color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.session { display: flex; align-items: center; gap: 10px; min-width: 90px; justify-content: flex-end; }
.session a { color: #fff; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.session img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.session .ghost-sm { color: #cfcfd6; border-color: rgba(255,255,255,.3); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }

@media (max-width: 1100px) {
  .site-header .inner { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; flex-direction: column; display: none; }
  .nav.open { display: flex; }
  .session { order: 2; }
}

/* Buttons */
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 .95rem var(--body);
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: #e3238e; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn.secondary:hover { border-color: var(--ink-2); }
.btn.dark { background: var(--pitch); color: #fff; }
.btn.dark:hover { background: #2a2a31; }
.btn.danger { background: var(--card); color: var(--red); border-color: #f0c6cc; }
.btn.danger:hover { border-color: var(--red); }
.btn.small, .ghost-sm { padding: 5px 10px; font-size: .85rem; }
.ghost-sm {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 600 .85rem var(--body);
  cursor: pointer;
  color: var(--ink-2);
}
.ghost-sm:hover { border-color: var(--ink-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-dark); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Forms */
label.field { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=date], input[type=time], input[type=number], select, textarea {
  font: inherit;
  font-size: .95rem;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(211,14,124,.3); border-color: var(--gold); }
input[type=range] { width: 100%; accent-color: var(--gold); }
input[type=color] { width: 36px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
input[type=checkbox] { accent-color: var(--gold); width: 16px; height: 16px; }

/* Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 32px 20px 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--gold); }

/* Home */
.hero {
  background:
    radial-gradient(1200px 500px at 85% 20%, rgba(211,14,124,.28), transparent 60%),
    linear-gradient(160deg, #16161a 0%, #000 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .inner { max-width: 1180px; margin: 0 auto; padding: 72px 20px 84px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 1.15rem; color: #d0d0d8; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero-art { width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
@media (max-width: 860px) { .hero .inner { grid-template-columns: 1fr; padding: 48px 16px 56px; } }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: -48px; position: relative; }
.tool-card { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tool-card .icon { width: 48px; height: 48px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; color: var(--gold); }
.tool-card ul { margin: 0 0 12px; padding-left: 18px; color: var(--ink-2); }
.tool-card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 760px) { .tools-grid { grid-template-columns: 1fr; margin-top: -32px; } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.features div { padding: 4px 0; }
.features h3 { color: var(--ink); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.site-footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px 40px; }

/* Auth */
.auth-wrap { max-width: 440px; margin: 48px auto; padding: 0 16px; }
.auth-card { padding: 28px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-switch { margin-top: 16px; font-size: .92rem; text-align: center; }
.form-error { color: var(--red); font-size: .9rem; min-height: 1.2em; margin: 0; }
.notice { background: #fff7dc; border: 1px solid #f0dc95; padding: 12px 14px; border-radius: 8px; }

/* Toast + modal */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,31,24,.5); display: grid; place-items: center; z-index: 150; padding: 16px; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; }
.modal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal header h2 { margin: 0; font-size: 1.4rem; }
.list { display: grid; gap: 8px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .sub { font-size: .82rem; color: var(--muted); }
.empty { padding: 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }

/* App shell (drill + squad) */
.app-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.app-bar .title-input { font-family: var(--head); font-size: 1.35rem; font-weight: 700; border-color: transparent; background: transparent; max-width: 340px; padding: 4px 8px; }
.app-bar .title-input:hover { border-color: var(--line); }
.app-bar .spacer { flex: 1; }
.app-bar .group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.save-state { font-size: .8rem; color: var(--muted); }

/* Drill designer */
.designer { display: grid; grid-template-columns: 128px 1fr 270px; height: calc(100vh - 118px); min-height: 560px; }
.toolbar { background: var(--pitch-dark); padding: 8px 6px; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 3px; overflow-y: auto; }
.toolbar .sep { grid-column: 1 / -1; }
.toolbar .sep { height: 1px; background: rgba(255,255,255,.12); margin: 4px 6px; }
.tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c9c9d1;
  font: 600 .66rem var(--body);
  padding: 6px 2px;
  cursor: pointer;
  text-align: center;
}
.tool svg { width: 26px; height: 26px; }
.tool:hover { background: rgba(255,255,255,.07); color: #fff; }
.tool.active { background: rgba(211,14,124,.25); border-color: var(--gold); color: #fff; }
.stage-wrap { display: flex; flex-direction: column; min-width: 0; background: #e8e8ed; }
.stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px; min-height: 0; position: relative; }
.stage svg#canvas { width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.stage .hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: rgba(15,31,24,.8); color: #fff; padding: 4px 12px; border-radius: 99px; font-size: .8rem; pointer-events: none; }
.steps-bar .ghost-sm { white-space: nowrap; }
.steps-bar { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--card); border-top: 1px solid var(--line); overflow-x: auto; }
.step-tab { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px 12px; font: 700 .85rem var(--body); cursor: pointer; white-space: nowrap; }
.step-tab.active { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.props { background: var(--card); border-left: 1px solid var(--line); overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.props section { display: grid; gap: 10px; }
.props h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch.active { box-shadow: 0 0 0 2px var(--ink); }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.seg button { flex: 1; background: #fff; border: 0; border-right: 1px solid var(--line); padding: 6px 4px; font: 600 .8rem var(--body); cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button.active { background: var(--pitch); color: #fff; }
.seg button.on { background: var(--gold); color: #fff; }
.billing-toggle button, .season-tools .seg button { padding: 8px 14px; font-size: .9rem; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.kbd { font-size: .78rem; color: var(--muted); line-height: 1.7; }
.kbd b { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-weight: 600; }

@media (max-width: 1000px) {
  .designer { grid-template-columns: 70px 1fr; height: auto; }
  .toolbar { grid-template-columns: 1fr; }
  .props { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .stage-wrap { min-height: 60vh; }
}
@media (max-width: 600px) {
  .designer { grid-template-columns: 1fr; }
  .toolbar { display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .toolbar .sep { width: 1px; height: auto; margin: 6px 2px; }
  .tool { min-width: 58px; }
  .stage-wrap { min-height: 0; }
  .stage { min-height: 300px; }
  .app-bar { padding: 10px 16px; }
}

/* Squad selector */
.squad-layout { display: grid; grid-template-columns: 300px 1fr 320px; gap: 18px; padding: 18px 20px 40px; max-width: 1500px; margin: 0 auto; align-items: start; }
.panel { padding: 16px; display: grid; gap: 12px; }
.panel h2 { font-size: 1.25rem; margin: 0; }
.pool { display: grid; gap: 6px; max-height: 58vh; overflow-y: auto; padding-right: 2px; }
.player-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: grab;
  font-size: .92rem;
}
.player-chip.selected-player { outline: 2px solid var(--gold); border-color: var(--gold); background: var(--tint); }
.player-chip.picked { opacity: .55; }
.player-chip.unavailable { background: #f6f2f2; }
.player-chip .name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-chip .pos { font-size: .75rem; color: var(--muted); }
.player-chip .tag { font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--paper); color: var(--ink-2); }
.player-chip .tag.picked { background: var(--tint); color: var(--gold-dark); }
.player-chip .tag.out { background: #fbe4e7; color: var(--red); }
.player-chip .icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; display: grid; place-items: center; }
.player-chip .icon-btn:hover { color: var(--ink); }

.formation-card { padding: 16px; display: grid; gap: 14px; }
.formation {
  position: relative;
  border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 48px, transparent 48px 96px),
    linear-gradient(180deg, #24704a, var(--grass));
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
}
.formation .pline { position: absolute; left: 0; right: 0; border-top: 2px solid rgba(255,255,255,.55); }
.formation .pline.dash { border-top-style: dashed; border-top-color: rgba(255,255,255,.35); }
.slot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  text-align: center;
}
.slot { transform: translate(-50%, -22px); }
.slot .shirt {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 1.05rem var(--head);
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 2px dashed rgba(255,255,255,.6);
  position: relative;
}
.slot.filled .shirt { background: var(--accent, var(--gold)); color: #fff; border: 2px solid #fff; }
.slot .badge { position: absolute; top: -6px; right: -10px; background: var(--ink); color: var(--gold); font: 800 .62rem var(--body); padding: 1px 4px; border-radius: 4px; }
.slot .pname { background: rgba(15,31,24,.78); color: #fff; font-size: .74rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .plabel { color: rgba(255,255,255,.75); font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.slot.drop-hover .shirt, .slot.target .shirt { box-shadow: 0 0 0 4px rgba(211,14,124,.55); }
.slot.active-slot .shirt { box-shadow: 0 0 0 4px #fff; }
.bench { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bench-slot { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px dashed var(--line); border-radius: 8px; cursor: pointer; background: #fff; min-height: 44px; }
.bench-slot.filled { border-style: solid; }
.bench-slot .num { width: 28px; height: 28px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font: 800 .9rem var(--head); flex: none; }
.bench-slot.filled .num { background: var(--accent, var(--gold)); color: #fff; }
.bench-slot .nm { font-size: .85rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bench-slot .nm.empty-nm { color: var(--muted); font-weight: 500; }
.bench-slot.drop-hover, .bench-slot.target { border-color: var(--gold); background: var(--tint); }
.slot-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px 10px; background: var(--paper); border-radius: 8px; font-size: .85rem; }
.slot-actions strong { margin-right: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.publish-result { background: var(--tint); border: 1px solid #f2c3dc; border-radius: 8px; padding: 12px; display: grid; gap: 8px; font-size: .9rem; }
.publish-result input { font-size: .85rem; }
@media (max-width: 1180px) {
  .squad-layout { grid-template-columns: 280px 1fr; }
  .squad-layout .match-panel { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .squad-layout { grid-template-columns: 1fr; padding: 14px 16px 32px; }
  .formation { aspect-ratio: 4 / 5.4; }
  .slot { transform: translate(-50%, -17px); }
  .slot { width: 72px; }
  .slot .shirt { width: 34px; height: 34px; font-size: .9rem; }
  .slot .pname { font-size: .64rem; max-width: 72px; padding: 1px 4px; }
  .slot .plabel { display: none; }
  .pool { max-height: 40vh; }
}

/* Public teamsheet */
.sheet-page { max-width: 760px; margin: 0 auto; padding: 24px 16px 56px; }
.sheet {
  background: var(--pitch-dark);
  color: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sheet .sheet-head { padding: 26px 24px 18px; border-bottom: 4px solid var(--accent, var(--gold)); text-align: center; }
.sheet .sheet-head .comp { font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--accent, var(--gold)); font-weight: 700; }
.sheet .sheet-head h1 { color: #fff; font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 6px 0; }
.sheet .sheet-head h1 .vs { color: var(--accent, var(--gold)); font-size: .6em; vertical-align: middle; margin: 0 .3em; }
.sheet .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: #d0d0d8; font-weight: 600; font-size: .95rem; }
.sheet .body { padding: 20px 24px 26px; display: grid; gap: 18px; }
.sheet h2 { color: var(--accent, var(--gold)); font-size: 1.1rem; letter-spacing: .1em; margin: 0 0 8px; }
.sheet ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.sheet li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.sheet li .n { font: 800 1.15rem var(--cond); color: var(--accent, var(--gold)); width: 26px; flex: none; text-align: right; }
.sheet li .p { font-weight: 700; flex: 1; }
.sheet li .r { font-size: .72rem; color: #a8a8b4; text-transform: uppercase; letter-spacing: .04em; }
.sheet .cap { font-size: .7rem; font-weight: 800; color: #fff; background: var(--accent, var(--gold)); padding: 0 5px; border-radius: 3px; margin-left: 6px; }
.sheet .notes { background: rgba(255,255,255,.06); border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; }
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
@media (max-width: 560px) { .sheet ol { grid-template-columns: 1fr; } }

/* Account */
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.account-grid .card { padding: 18px; display: grid; gap: 12px; align-content: start; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.profile-row { display: flex; align-items: center; gap: 16px; }
.profile-row img, .profile-row .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--pitch); color: #fff; display: grid; place-items: center; font: 800 1.6rem var(--head); }
.skeleton { background: linear-gradient(90deg, #eaeaef, #f6f6f8, #eaeaef); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; height: 1em; }
@keyframes sk { to { background-position: -200% 0; } }

@media print {
  .site-header, .sheet-actions, .site-footer { display: none !important; }
  body { background: #fff; }
}

/* ---- The Hub ---- */
.hub-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; max-width: 1240px; margin: 0 auto; padding: 24px 20px 56px; align-items: start; }
.hub-layout .side { padding: 16px; display: grid; gap: 10px; }
.team-btn { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; font: inherit; }
.team-btn .sub { font-size: .8rem; color: var(--muted); }
.team-btn.active { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.team-head { padding: 18px; display: grid; gap: 12px; }
.code-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; }
.code-box .code { font: 800 1.5rem var(--cond); letter-spacing: .12em; color: var(--ink); }
.badge-u18 { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--tint); color: var(--gold-dark); vertical-align: middle; }
.composer { padding: 18px; display: grid; gap: 12px; }
.attach-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.attach-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 3px 6px 3px 12px; font-size: .85rem; font-weight: 600; }
.attach-chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; }
.feed { display: grid; gap: 14px; }
.hub-post { padding: 16px 18px; display: grid; gap: 8px; }
.hub-post h3 { margin: 0; font-size: 1.35rem; }
.hub-post-top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .82rem; }
.hub-type { background: var(--gold); color: #fff; font-weight: 700; padding: 2px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
.hub-when { font-weight: 700; color: var(--ink); }
.hub-posted { color: var(--muted); margin-right: auto; }
.pre { white-space: pre-wrap; }
.hub-drill { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.hub-drill-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 12px; }
.hub-steps { display: flex; gap: 6px; }
.hub-drill-svg svg { display: block; width: 100%; height: auto; }
.hub-drill-svg svg [data-id] { cursor: default !important; }
.hub-drill-notes { padding: 8px 12px; font-size: .92rem; }
.hub-drill-notes:empty { display: none; }
.hub-drill details { padding: 0 12px 10px; font-size: .9rem; }
.hub-drill summary { cursor: pointer; font-weight: 600; color: var(--gold-dark); }
.hub-sheet .sheet { border-radius: 10px; }
.player-view { max-width: 760px; margin: 0 auto; padding: 24px 16px 56px; display: grid; gap: 16px; }
.team-banner { background: radial-gradient(600px 240px at 90% 0%, rgba(211,14,124,.35), transparent 60%), linear-gradient(160deg, #16161a 0%, #000 100%); color: #fff; border-radius: 14px; padding: 22px; border-bottom: 4px solid var(--gold); }
.team-banner h1 { color: #fff; margin: 0; font-size: clamp(1.8rem, 6vw, 2.6rem); }
.team-banner .sub { color: #d0d0d8; font-weight: 600; }
.safe-note { background: var(--tint); border: 1px solid #f2c3dc; border-radius: 10px; padding: 12px 14px; font-size: .88rem; color: var(--ink-2); }
.join-card { max-width: 460px; margin: 40px auto; padding: 26px; display: grid; gap: 14px; }
.join-card input { font: 700 1.2rem var(--cond); letter-spacing: .1em; text-transform: uppercase; text-align: center; }
@media (max-width: 860px) { .hub-layout { grid-template-columns: 1fr; padding: 16px; } }

/* ---- Drill Vault ---- */
.vault-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; max-width: 1400px; margin: 0 auto; padding: 24px 20px 56px; align-items: start; }
.folders { padding: 12px; display: grid; gap: 2px; position: sticky; top: 76px; }
.folders h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 10px 8px 4px; }
.folder-btn { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; border-radius: 7px; padding: 7px 10px; font: 600 .92rem var(--body); color: var(--ink-2); cursor: pointer; text-align: left; }
.folder-btn .n { margin-left: auto; font-size: .78rem; color: var(--muted); }
.folder-btn:hover { background: var(--paper); }
.folder-btn.active { background: var(--tint); color: var(--gold-dark); }
.folder-btn.drop-hover { outline: 2px dashed var(--gold); }
.vault-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.vault-tools input[type=text] { max-width: 280px; }
.vault-tools select { width: auto; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag-chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 3px 10px; font: 600 .8rem var(--body); cursor: pointer; color: var(--ink-2); }
.tag-chip.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.drill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.drill-card { overflow: hidden; display: flex; flex-direction: column; cursor: grab; }
.drill-card .thumb { display: block; aspect-ratio: 16 / 10; background: var(--grass); overflow: hidden; }
.drill-card .thumb svg { width: 100%; height: 100%; display: block; }
.drill-card .thumb svg [data-id] { cursor: inherit !important; }
.drill-card .info { padding: 10px 12px 12px; display: grid; gap: 4px; flex: 1; }
.drill-card .t { font-weight: 700; display: flex; gap: 6px; align-items: flex-start; }
.drill-card .t span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drill-card .m { font-size: .8rem; color: var(--muted); }
.drill-card .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.drill-card .tags span { font-size: .7rem; font-weight: 700; background: var(--paper); border-radius: 99px; padding: 1px 7px; color: var(--ink-2); }
.drill-card .actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.star { background: none; border: 0; cursor: pointer; font-size: 1.15rem; line-height: 1; color: #c9c3b3; padding: 0; }
.star.on { color: var(--gold); }
@media (max-width: 860px) {
  .vault-layout { grid-template-columns: 1fr; padding: 16px; }
  .folders { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .folders h3 { display: none; }
  .folder-btn { width: auto; background: #fff; border: 1px solid var(--line); }
}

/* ---- Playbook ---- */
.playbook-only { display: none !important; }
body[data-mode="playbook"] .playbook-only { display: grid !important; }
body[data-mode="playbook"] #pitchSection { display: none; }
.hub-play { margin-left: auto; }

.captcha { min-height: 78px; margin: 2px 0 4px; overflow-x: auto; }
.check.consent { align-items: flex-start; font-weight: 500; line-height: 1.4; }
.check.consent input { margin-top: 2px; flex: none; }
.captcha[hidden] { display: none; }
/* ---- Club branding ---- */
.brand-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.brand-toggle .link-btn { flex: none; font-size: .88rem; }
.brand-ed { display: grid; gap: 12px; }
.brand-preview { width: 100%; height: auto; border-radius: 8px; display: block; background: #1f5f3b; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-row .grow { flex: 1; min-width: 0; }
.brand-row .title { font-weight: 700; }
.brand-row .sub { font-size: .82rem; color: var(--muted); }
.brand-thumb { width: 52px; height: 52px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; font-size: .75rem; }
.brand-thumb.wide { width: 96px; }
.brand-thumb img { max-width: 90%; max-height: 90%; object-fit: contain; }
.brand-swatch { width: 28px; height: 28px; border-radius: 50%; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.sheet .sheet-badge { display: block; width: 84px; height: 84px; object-fit: contain; margin: 0 auto 10px; }
.sheet-sponsors { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 14px 20px 18px; border-top: 3px solid var(--accent, var(--gold)); background: #0d0d10; }
.sheet-sponsors span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b9b9c4; }
.sheet-sponsors img { height: 44px; max-width: 130px; object-fit: contain; background: #fff; border-radius: 6px; padding: 5px 8px; }

/* ---- Plans and pricing ---- */
.plan-tag { display: inline-block; vertical-align: middle; font: 800 .62rem/1 var(--body); letter-spacing: .08em; padding: 3px 6px 2px; border-radius: 4px; background: var(--gold); color: #fff; }
.plan-tag.club { background: #111114; }
.session .plans-link { color: #cfcfd6; text-decoration: none; font-weight: 600; font-size: .9rem; }
.session .plans-link:hover { color: #fff; }
.pricing-page { max-width: 1120px; }
.pricing-head { text-align: center; display: grid; gap: 10px; justify-items: center; margin-bottom: 28px; }
.pricing-head h1 { margin: 0; }
.pricing-head p { max-width: 40em; margin: 0; }
.billing-toggle { width: auto; }
.billing-toggle .save { font-size: .72rem; font-weight: 700; color: var(--gold-dark); margin-left: 4px; white-space: nowrap; }
.billing-toggle button { white-space: nowrap; }
.billing-toggle button.on .save { color: #fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.price-card { padding: 26px; display: grid; gap: 12px; position: relative; }
.price-card h2 { margin: 0; }
.price-card .blurb { margin: 0; min-height: 2.6em; }
.price-card.featured { border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(211, 14, 124, .18); }
.price-card.mine { outline: 3px solid var(--tint); }
.price-card .ribbon { position: absolute; top: -12px; right: 18px; background: var(--gold); color: #fff; font: 800 .72rem var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.price .amt { font: 900 italic 2.4rem var(--head); color: var(--ink); }
.price .per { margin-left: 6px; color: var(--muted); font-weight: 600; }
.price-card .fee, .price-card .trial { font-size: .88rem; font-weight: 700; color: var(--gold-dark); }
.current-plan { text-align: center; font-weight: 700; padding: 10px; border-radius: 8px; background: var(--tint); color: var(--gold-dark); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.ticks li.lead { padding-left: 0; font-weight: 700; color: var(--ink-2); }
.ticks li.lead::before { display: none; }
.tester-card { margin-top: 20px; padding: 22px; display: grid; gap: 10px; justify-items: start; border: 2px dashed var(--gold); }
.tester-card h2 { margin: 0; }
.pricing-foot { text-align: center; margin-top: 24px; font-size: .9rem; }
.plan-card .list-item { margin-top: 6px; }
.quota { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; display: grid; gap: 8px; font-size: .92rem; }
.quota.full { border-color: var(--gold); background: var(--tint); }
.quota-bar { height: 6px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.quota-bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }

/* ---- Teamsheet graphic picker ---- */
.modal:has(.gfx) { width: min(980px, 100%); }
.gfx { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.gfx-preview { background: #e8e8ed; border-radius: 10px; padding: 12px; display: grid; place-items: center; min-height: 320px; max-height: 70vh; }
.gfx-preview img { max-width: 100%; max-height: calc(70vh - 24px); border-radius: 6px; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.gfx-preview img:not([src]) { display: none; }
.gfx-side { display: grid; gap: 10px; }
.gfx-side h3 { margin: 4px 0 0; }
.gfx-opts { display: grid; gap: 6px; }
.gfx-opt { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; display: grid; gap: 2px; font: inherit; }
.gfx-opt span { font-size: .8rem; color: var(--muted); }
.gfx-opt.on { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); background: var(--tint); }
@media (max-width: 760px) { .gfx { grid-template-columns: 1fr; } .gfx-preview { min-height: 240px; } }

/* ---- Squadvo Planner ---- */
.planner-tabs { background: #fff; border-bottom: 1px solid var(--line); }
.planner-tabs .inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; gap: 4px; }
.planner-tabs a { padding: 12px 14px; text-decoration: none; color: var(--ink-2); font-weight: 700; border-bottom: 3px solid transparent; }
.planner-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.planner-layout { max-width: 1280px; margin: 0 auto; padding: 20px 24px 60px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.planner-list { padding: 16px; display: grid; gap: 12px; position: sticky; top: 76px; }
.planner-items { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.planner-item { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; cursor: pointer; font: inherit; }
.planner-item span { font-size: .8rem; color: var(--muted); }
.planner-item.active { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
#sessionEditor { display: grid; gap: 14px; }
.ses-head { padding: 18px; display: grid; gap: 12px; }
.ses-head .title-input { flex: 1 1 260px; min-width: 0; font: 800 italic 1.5rem var(--head); border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 2px 0; color: var(--ink); }
.ses-head .title-input:focus { border-bottom-color: var(--gold); outline: none; }
.ses-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ses-timeline { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--paper); }
.ses-timeline span { display: block; height: 100%; }
.ses-total { font-size: .92rem; margin-top: 6px; }
.ses-total .over { color: var(--red); font-weight: 700; }
#sesBlocks { display: grid; gap: 12px; }
.ses-block { padding: 14px 16px 16px; border-left: 6px solid var(--bt); display: grid; gap: 10px; }
.ses-block-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ses-block-top select { width: auto; flex: none; }
.ses-block-top input[data-f="title"] { flex: 1 1 200px; min-width: 0; font-weight: 700; }
.ses-time { font: 800 1.05rem var(--cond); color: var(--bt); min-width: 46px; }
.ses-mins { display: flex; align-items: center; gap: 4px; font-weight: 600; color: var(--muted); flex: none; }
.ses-mins input { width: 70px; }
.ses-move { display: flex; gap: 4px; flex: none; }
.ses-move .ghost-sm { padding: 4px 8px; }
.ses-block-body { display: grid; gap: 10px; }
.ses-add-drill { border: 1px dashed var(--line); background: var(--paper); border-radius: 8px; padding: 10px; font: 600 .92rem var(--body); color: var(--ink-2); cursor: pointer; text-align: left; }
.ses-add-drill:hover { border-color: var(--gold); color: var(--gold-dark); }
.ses-drill { display: flex; gap: 12px; align-items: center; background: var(--paper); border-radius: 8px; padding: 8px; }
.ses-drill .thumb { width: 150px; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; flex: none; background: var(--grass); }
.ses-drill .thumb svg { width: 100%; height: 100%; display: block; }
.ses-drill .grow { display: grid; gap: 4px; }
.ses-addrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ses-addrow .ghost-sm { display: inline-flex; align-items: center; gap: 6px; }
.ses-addrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--bt); display: inline-block; }
.ses-foot { padding: 18px; }
.ses-kit { margin: 0; padding-left: 18px; columns: 2; font-size: .92rem; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.dp-item { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px; display: grid; gap: 4px; cursor: pointer; font: inherit; }
.dp-item:hover { border-color: var(--gold); }
.dp-item .thumb { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--grass); }
.dp-item .thumb svg { width: 100%; height: 100%; display: block; }
.dp-item span.muted { font-size: .78rem; }
@media (max-width: 900px) { .planner-layout { grid-template-columns: 1fr; padding: 16px; } .planner-list { position: static; } .ses-fields { grid-template-columns: 1fr 1fr; } }

/* Season planner */
.season-page { max-width: 1280px; display: grid; gap: 14px; }
.season-bar { padding: 14px 16px; }
.season-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.season-tools .seg { width: auto; }
.season-start { padding: 26px; max-width: 720px; display: grid; gap: 10px; }
.season-start h1 { margin: 0; }
.season-start.locked ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.season-start .btn { justify-self: start; }
.season-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.season-form .form-error, .season-form button { grid-column: 1 / -1; }
.season-form button { justify-self: start; }
.phase-list { display: flex; flex-wrap: wrap; gap: 8px; }
.phase-chip { border: 0; border-left: 8px solid var(--pc); background: #fff; border-radius: 8px; padding: 6px 12px; display: grid; text-align: left; cursor: pointer; font: inherit; box-shadow: var(--shadow); }
.phase-chip span { font-size: .78rem; color: var(--muted); }
.cal { padding: 14px; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-head h2 { margin: 0; font-size: 1.3rem; flex: 1; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font: 700 .75rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-day { position: relative; min-height: 92px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 4px 4px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; overflow: hidden; }
.cal-day:hover { border-color: var(--gold); }
.cal-day.other { background: var(--paper); }
.cal-day.other .cal-num { color: #b5b5bf; }
.cal-day.outside { opacity: .55; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal-num { position: absolute; top: 3px; left: 6px; font: 700 .8rem var(--body); color: var(--ink-2); }
.cal-phase { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--pc); }
.cal-day[style*="--pc"] { background: color-mix(in srgb, var(--pc) 22%, #fff); }
.ev-chip { border: 0; border-left: 3px solid var(--ec); background: color-mix(in srgb, var(--ec) 12%, #fff); border-radius: 4px; padding: 2px 5px; font: 600 .72rem/1.25 var(--body); text-align: left; cursor: pointer; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.legend::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--ec); }
.ev-list { padding: 8px 16px 16px; }
.ev-month { margin: 14px 0 6px; font-size: 1.05rem; }
.ev-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); border-left: 4px solid var(--ec); padding-left: 10px; }
.ev-row.past { opacity: .6; }
.ev-row .grow { flex: 1; min-width: 0; }
.ev-date { width: 42px; text-align: center; display: grid; flex: none; }
.ev-date strong { font: 800 1.3rem var(--cond); line-height: 1; }
.ev-date span { font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.ev-type { font: 700 .7rem var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--ec); }
.day-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.day-pick input { position: absolute; opacity: 0; }
.day-pick span { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; cursor: pointer; }
.day-pick input:checked + span { background: var(--gold); border-color: var(--gold); color: #fff; }
.day-pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.swatch-pick input { position: absolute; opacity: 0; }
.swatch-pick span { display: inline-block; width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch-pick input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
@media (max-width: 760px) { .cal-day { min-height: 64px; } .ev-chip { font-size: .62rem; } .season-form { grid-template-columns: 1fr; } }

/* Shared sessions and coaches in The Hub */
.hub-session { display: grid; gap: 8px; margin-top: 8px; }
.hub-obj { margin: 0; font-size: .92rem; }
.hub-ses-total { font-weight: 700; color: var(--muted); font-size: .85rem; }
.hub-ses-block { border-left: 4px solid var(--bt); background: var(--paper); border-radius: 6px; padding: 8px 10px; display: grid; gap: 4px; }
.hub-ses-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.hub-ses-type { font: 700 .7rem var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--bt); }
.hub-ses-min { margin-left: auto; font-weight: 700; color: var(--muted); font-size: .85rem; }
.hub-ses-block summary { cursor: pointer; font-weight: 600; color: var(--gold-dark); font-size: .88rem; }
.coaches-card { padding: 16px 18px; display: grid; gap: 8px; }

/* ---- Safeguarding page ---- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: .4em; }
.code-entry { margin-top: 20px; text-align: center; }
.code-entry summary { cursor: pointer; color: var(--muted, #666); font-weight: 600; display: inline-block; }
.code-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.code-form input { max-width: 240px; text-transform: uppercase; letter-spacing: .06em; }
.code-msg { color: #c0392b; margin: 8px 0 0; font-size: .9rem; }
.tool-btns { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-btns .btn { margin-top: 0; }
.roster-card { padding: 16px 18px; display: grid; gap: 10px; }
.roster-list { display: grid; gap: 2px; }
.roster-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.roster-row:nth-child(odd) { background: var(--tint); }
.roster-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-pos { color: var(--muted); font-size: .88rem; flex: 0 1 40%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-row .ghost-sm { flex: none; }
.roster-more summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: .9rem; padding: 4px 0; }
.file-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-pick:focus-within .btn { outline: 2px solid var(--gold); outline-offset: 2px; }
.hub-pick { display: grid; gap: 8px; }
.club-page { display: grid; gap: 16px; }
.club-empty { display: grid; gap: 12px; max-width: 640px; }
.club-empty h1 { margin: 0; }
.club-empty ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.club-head { display: grid; gap: 14px; }
.club-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.club-stats > div { background: var(--paper); border-radius: 10px; padding: 10px 12px; display: grid; }
.club-stats strong { font-family: var(--head); font-size: 1.4rem; line-height: 1.1; }
.club-stats span { color: var(--muted); font-size: .85rem; }
.club-stats .warn { background: #fdecee; }
.club-stats .warn strong { color: var(--red); }
.club-h2 { font-size: 1.3rem; margin: 8px 0 0; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.club-team { display: grid; gap: 10px; align-content: start; border-top: 4px solid var(--grass); }
.club-team.waiting { border-top-color: var(--line); }
.club-team.paused, .club-team.lost { border-top-color: var(--red); }
.club-team-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.club-team-top h3 { margin: 0; font-size: 1.15rem; }
.chip { flex: none; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--paper); color: var(--ink-2); }
.chip.ok { background: #e3f1e8; color: var(--grass); }
.chip.warn { background: #fdecee; color: var(--red); }
.club-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .92rem; }
.club-facts dt { color: var(--muted); }
.club-facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.club-activity { padding: 6px; display: grid; }
.club-act { display: grid; grid-template-columns: minmax(110px, 180px) 1fr auto; gap: 10px; align-items: center; text-align: left; font: inherit; background: none; border: 0; border-radius: 8px; padding: 9px 10px; cursor: pointer; color: inherit; }
.club-act:hover { background: var(--paper); }
.club-act-team { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-act-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-act-when { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.chip-hidden { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #fdecee; color: var(--red); }
.club-how { font-size: .88rem; }
.club-note { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 18px; border-left: 4px solid var(--gold); font-size: .92rem; }
.hub-hidden { border: 1px dashed #e3a4ad; }
.hub-hidden-note { background: #fdecee; color: var(--red); font-weight: 600; font-size: .88rem; border-radius: 8px; padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .club-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-act { grid-template-columns: 1fr; gap: 2px; }
  .club-note { flex-direction: column; align-items: flex-start; }
}
.club-head, .club-team, .club-empty { padding: 20px 22px; }
.club-head h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.join-card .field input { text-transform: none; text-align: left; letter-spacing: normal; font-size: 1rem; font-weight: 400; font-family: var(--body); }
.stock-intro { background: var(--paper); border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.stock-badge { flex: none; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: var(--gold); color: #fff; }
.stock-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; cursor: pointer; }
.drill-card.locked .thumb { position: relative; border: 0; padding: 0; width: 100%; cursor: pointer; }
.drill-card.locked .thumb svg { filter: blur(3px) saturate(.6); opacity: .7; }
.lock-over { position: absolute; inset: 0; display: grid; place-items: center; }
.lock-over .plan-tag { font-size: .9rem; padding: 4px 12px; }
.team-info { padding: 18px 20px; display: grid; gap: 12px; }
.team-info h2 { font-size: 1.4rem; }
.ti-h { margin: 4px 0 0; font-size: 1.05rem; }
.ti-sub { margin: -6px 0 0; font-size: .85rem; }
.team-about { margin: 0; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.staff-card { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: 12px; padding: 12px; min-width: 0; }
.staff-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.staff-photo.initials { display: grid; place-items: center; font: 800 1.3rem var(--cond); color: #fff; background: var(--gold); }
.staff-text { min-width: 0; display: grid; gap: 2px; }
.staff-name { font-weight: 700; }
.staff-role { font-size: .82rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.staff-note { font-size: .85rem; color: var(--muted); }
.staff-links { display: grid; gap: 2px; font-size: .88rem; margin-top: 2px; }
.staff-links a { overflow-wrap: anywhere; }
.res-list { display: grid; gap: 6px; }
.res-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.res-icon { font-size: 1.3rem; flex: none; }
.res-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.res-title { font-weight: 700; }
.res-note { font-size: .88rem; }
.res-meta { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.res-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.ti-edit { display: grid; gap: 12px; }
.ti-staff { display: grid; gap: 10px; }
.ti-person { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.ti-photo { display: grid; gap: 6px; justify-items: center; align-content: start; flex: none; width: 86px; }
.ti-photo img, .ti-photo > span { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--paper); display: grid; place-items: center; font-size: .75rem; color: var(--muted); }
.ti-photo-btn { cursor: pointer; text-align: center; }
.ti-fields { flex: 1; display: grid; gap: 8px; min-width: 0; }
.seg { display: flex; gap: 6px; }
.seg label { display: flex; gap: 6px; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.seg label:has(input:checked) { border-color: var(--gold); background: var(--paper); }
.upload-bar { height: 8px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.upload-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
@media (max-width: 560px) {
  .res-row { flex-wrap: wrap; }
  .res-actions { width: 100%; justify-content: flex-start; }
  .ti-person { flex-direction: column; }
  .ti-photo { width: auto; grid-auto-flow: column; justify-content: start; align-items: center; }
}
.hub-post.pinned { border: 2px solid var(--gold); }
.pin-badge { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

/* Team Hub colours and logo (Coach Pro and Club licence) */
.themed .team-banner { background: linear-gradient(160deg, var(--team-1) 0%, var(--team-1d) 100%); color: var(--team-on); border-bottom: 6px solid var(--team-2); }
.themed .team-banner h1 { color: var(--team-on); }
.themed .team-banner .sub { color: var(--team-on); opacity: .8; }
.themed .safe-note { border-color: var(--tint-line); }
.tb-row { display: flex; align-items: center; gap: 16px; }
.tb-text { min-width: 0; }
.team-logo { width: 72px; height: 72px; object-fit: contain; flex: none; }
.team-head .team-logo, .club-head .team-logo { width: 44px; height: 44px; vertical-align: middle; margin: -4px 10px 0 0; }
@media (max-width: 520px) { .team-banner .team-logo { width: 56px; height: 56px; } .tb-row { gap: 12px; } }
.theme-edit { display: grid; gap: 14px; }
.theme-preview { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--paper); }
.theme-preview .team-banner { padding: 16px; }
.theme-preview .team-banner h1 { font-size: 1.6rem; }
.theme-sample { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 4px; }
.theme-sample a { color: var(--gold); font-weight: 700; }
.theme-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.theme-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; padding: 5px 11px 5px 6px; font: 600 .85rem var(--body); cursor: pointer; }
.theme-chip:hover { border-color: var(--ink-2); }
.theme-chip span { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); flex: none; }
.theme-chip span + span { margin-left: -12px; }
.theme-col { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.theme-col input[type=color] { width: 46px; height: 40px; padding: 2px; flex: none; cursor: pointer; }
.theme-col input[type=text] { font-family: ui-monospace, Menlo, Consolas, monospace; min-width: 0; }

/* Club officials (Club licence) */
#teamPanel > div:empty, .player-view > div:empty { display: none; }
.officials-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.officials-link:hover { border-color: var(--gold); }
.ol-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--gold); display: grid; place-items: center; flex: none; }
.ol-text { display: grid; flex: 1; min-width: 0; }
.ol-text span { color: var(--muted); font-size: .88rem; }
.ol-go { font-size: 1.6rem; line-height: 1; color: var(--gold); flex: none; }
.officials { display: grid; gap: 12px; }
.off-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.off-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.off-card.safe { border-color: var(--gold); background: var(--tint); }
.off-role { font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-dark); }
.off-name { font-weight: 700; font-size: 1.05rem; }
.off-card a { font-size: .92rem; word-break: break-word; }
.club-officials { margin-top: 16px; padding: 20px 22px; display: grid; gap: 12px; }
.off-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.off-chip { background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: .88rem; }
.off-chip strong { font-weight: 700; color: var(--ink-2); }
.off-chip.safe { background: var(--tint); border-color: var(--gold); }
.off-edit { display: grid; gap: 12px; }
.off-rows { display: grid; gap: 10px; }
.off-row { display: grid; grid-template-columns: 1.7fr 1fr 1.5fr .9fr auto; gap: 8px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .off-row { grid-template-columns: 1fr 1fr; } .off-row .off-del { justify-self: start; } }
.modal:has(.off-edit) { width: min(940px, 100%); }

/* Feedback and feature ideas */
.fb-form { display: grid; gap: 12px; }
.fb-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-topic { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; padding: 7px 14px; font: 600 .9rem var(--body); cursor: pointer; }
.fb-topic.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fb-done { display: grid; gap: 6px; text-align: center; padding: 10px 0; }
.fb-done h3 { margin: 0; }
.fb-tick { width: 48px; height: 48px; border-radius: 50%; background: var(--grass); color: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; justify-self: center; }
.club-head .ghost-sm { white-space: nowrap; }
.terms-note { font-size: .82rem; margin: 0 0 12px; }
.stock-safety { display: block; margin-top: 6px; font-size: .88rem; color: var(--ink-2); }

/* Availability: requests, replies and family links */
.hub-type.avail { background: var(--ink); }
.avail-slot { display: grid; gap: 10px; margin-top: 10px; }
.avail-slot:empty { display: none; }
.avail-hint { margin: 0; font-size: .9rem; background: var(--tint); border-radius: 8px; padding: 8px 12px; color: var(--ink-2); }
.avail-tally { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.avail-tally .btn, .avail-tally .ghost-sm { margin-left: auto; flex: none; }
.avail-tally .ghost-sm + .ghost-sm { margin-left: 0; }
.av-chip { font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; border: 1px solid transparent; }
.av-chip.yes { background: #e3f4ea; color: #146c3c; border-color: #b9e2c9; }
.av-chip.maybe { background: #fff4d9; color: #8a5a00; border-color: #f2d48d; }
.av-chip.no { background: #fbe4e7; color: #a51c30; border-color: #f2bcc4; }
.av-chip.none { background: var(--paper); color: var(--muted); border-color: var(--line); }
.avail-list summary { cursor: pointer; font-weight: 700; font-size: .92rem; }
.av-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 4px 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.av-row:last-child { border-bottom: 0; }
.av-name { font-weight: 700; }
.av-status { color: var(--ink-2); font-size: .85rem; }
.av-note { grid-column: 2 / -1; color: var(--ink-2); font-size: .86rem; }
.av-dot { width: 10px; height: 10px; border-radius: 50%; background: #c4c4cc; display: inline-block; }
.av-row.yes .av-dot, .av-dot.yes { background: #1f9d55; }
.av-row.maybe .av-dot, .av-dot.maybe { background: #e8a317; }
.av-row.no .av-dot, .av-dot.no { background: #d4334a; }
.fam-chip { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-dark); background: var(--tint); border-radius: 99px; padding: 1px 7px; vertical-align: 2px; }
.fam-links { display: grid; gap: 12px; }
.fam-list { display: grid; }
.fam-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fam-row .fam-name { flex: 1; min-width: 140px; font-weight: 700; }
.fam-row .btn, .fam-row .ghost-sm { flex: none; }
.fam-none { font-size: .85rem; }
/* Team Selector colours */
.player-chip.av-yes { border-left: 5px solid #1f9d55; }
.player-chip.av-maybe { border-left: 5px solid #e8a317; }
.player-chip.av-no { border-left: 5px solid #d4334a; }
.player-chip.av-none { border-left: 5px solid #c4c4cc; }
.player-chip .tag.av.yes { background: #e3f4ea; color: #146c3c; }
.player-chip .tag.av.maybe { background: #fff4d9; color: #8a5a00; }
.player-chip .tag.av.no { background: #fbe4e7; color: #a51c30; }
.player-chip .tag.av.none { background: var(--paper); color: var(--muted); }
.av-chip-note { font-size: .74rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.av-yes .shirt { box-shadow: 0 0 0 3px #1f9d55; }
.slot.av-maybe .shirt { box-shadow: 0 0 0 3px #e8a317; }
.slot.av-no .shirt { box-shadow: 0 0 0 3px #d4334a; }
.av-bar { display: grid; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: .9rem; }
.av-bar[hidden] { display: none; }
/* My family */
.family-page { max-width: 760px; display: grid; gap: 16px; padding-top: 24px; padding-bottom: 48px; }
.fam-intro { padding: 24px; display: grid; gap: 12px; max-width: 560px; margin: 24px auto; }
.fam-top h1 { margin: 2px 0 6px; }
.fam-list-wrap { display: grid; gap: 16px; }
.fam-card { padding: 16px; display: grid; gap: 14px; }
.fam-banner { padding: 16px 18px; }
.fam-banner h2 { color: #fff; margin: 0; font-size: 1.6rem; }
.themed .fam-banner h2 { color: var(--team-on); }
.fam-reqs { display: grid; gap: 12px; }
.fam-req { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.fam-req.dirty { border-color: var(--gold); }
.fr-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.fr-top .hub-when { margin-left: auto; }
.fr-body { font-size: .92rem; color: var(--ink-2); }
.fr-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fr-btn { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 6px; font: 700 .95rem var(--body); cursor: pointer; color: var(--ink); }
.fr-btn.yes.on { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.fr-btn.maybe.on { background: #e8a317; border-color: #e8a317; color: #111; }
.fr-btn.no.on { background: #d4334a; border-color: #d4334a; color: #fff; }
.fr-note textarea { min-height: 0; }
.fr-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.fr-status { font-size: .88rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.fam-past summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.fam-past .fam-reqs { margin-top: 10px; }
.fam-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .92rem; }
.ok-note { background: #e3f4ea; border-color: #b9e2c9; }
.pool { grid-template-columns: minmax(0, 1fr); }

/* Coming up: fixtures, training and events in date order */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.coming-up { padding: 16px; display: grid; gap: 10px; }
.cu-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cu-head h2 { font-size: 1.3rem; margin: 0; }
.cu-head .btn { flex: none; }
.cu-list { display: grid; gap: 8px; }
.cu-week { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 0 0; font-family: var(--body); font-style: normal; font-weight: 800; }
.cu-week:first-child { margin-top: 0; }
.cu-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: start; border: 1px solid var(--line); border-left: 4px solid var(--team-accent, var(--gold)); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.cu-row.cancelled { opacity: .75; }
.cu-row.cancelled .cu-title { text-decoration: line-through; }
.cu-cancel { display: inline-block; text-decoration: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #fbe4e7; color: #a51c30; border-radius: 99px; padding: 1px 8px; vertical-align: 2px; }
.cu-date { display: grid; justify-items: center; background: var(--paper); border-radius: 10px; padding: 6px 2px; line-height: 1.05; }
.cu-date .d { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.cu-date .n { font: 800 1.45rem var(--head); color: var(--ink); }
.cu-date .m { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.cu-main { min-width: 0; display: grid; gap: 3px; }
.cu-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cu-kind { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--kc); border-radius: 99px; padding: 1px 8px; }
.cu-for { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.cu-title { font-weight: 800; font-size: 1.05rem; }
.cu-meta { font-size: .9rem; color: var(--ink-2); }
.cu-info { font-size: .88rem; color: var(--ink-2); background: var(--paper); border-radius: 8px; padding: 6px 9px; margin-top: 2px; white-space: pre-line; }
.cu-reply { font-size: .86rem; color: var(--ink-2); margin-top: 4px; }
.cu-tally { margin-top: 6px; }
.cu-tally .ghost-sm { margin-left: auto; }
.cu-askbtn { justify-self: start; margin-top: 6px; }
.cu-cal { display: grid; justify-items: center; gap: 2px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; color: var(--gold-dark); font: 700 .7rem var(--body); cursor: pointer; }
.cu-cal:hover { border-color: var(--gold); }
.cu-more { justify-self: center; }
.cu-reply-line { display: grid; gap: 6px; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 6px; }
.cu-ask { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .92rem; }
.cu-sent { font-size: .82rem; color: var(--ink-2); display: inline-flex; gap: 5px; align-items: center; }
.cu-reply-line .fr-btn { padding: 9px 4px; font-size: .9rem; }
.cu-note-btn { justify-self: start; font-size: .84rem; font-weight: 600; text-align: left; }
.cu-note { display: grid; gap: 6px; }
.cu-note[hidden] { display: none; }
.cu-note .btn { justify-self: start; }
.fam-players { padding: 16px; display: grid; gap: 8px; }
.fam-players h2 { font-size: 1.2rem; margin: 0; }
.fam-player { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fam-player > span { flex: 1; min-width: 180px; }
.fam-player .btn, .fam-player .ghost-sm { flex: none; }
.cal-menu { display: grid; gap: 10px; }
.cal-menu .btn { text-align: center; }
.hub-linked { font-size: .85rem; font-weight: 700; color: #146c3c; background: #e3f4ea; border-radius: 99px; padding: 3px 10px; }
.ev-chip.cancelled { text-decoration: line-through; opacity: .6; }
@media (max-width: 520px) {
  .cu-row { grid-template-columns: 46px 1fr; }
  .cu-cal { grid-column: 2; justify-self: start; display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; font-size: .78rem; }
}

/* Availability reminders */
.remind-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.remind-row:empty { display: none; }
.remind-when { font-size: .8rem; color: var(--muted); }
.remind-box { display: grid; gap: 12px; }
.remind-box textarea { font: inherit; font-size: .9rem; }
.cu-reply-line.nudged { background: #fff7e0; border: 1px solid #f2d48d; border-radius: 10px; padding: 8px 10px; }
.nudge-flag { font-size: .82rem; font-weight: 800; color: #8a5a00; }
.nudge-note { background: #fff4d9; border-color: #f2d48d; }
.demo-card { max-width: 720px; margin: 24px auto; padding: 24px; display: grid; gap: 12px; }
.demo-card h1 { margin: 0; }
.demo-card ul { margin: 0; padding-left: 20px; }
.demo-log { font-size: .9rem; color: var(--ink-2); }
.demo-log:empty { display: none; }

/* Session plans on training dates */
.cu-plan { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cu-plan-tag { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; color: #1e40af; background: #e8efff; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.cu-plan-tag::before { content: ""; width: 10px; height: 12px; border: 2px solid currentColor; border-radius: 2px; box-sizing: border-box; }
.ses-for { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-left: 5px solid #2563eb; margin-bottom: 14px; padding: 14px 18px; }
.ses-for .eyebrow { margin-bottom: 2px; }
.plan-view .hub-session { margin-top: 10px; }

/* Privacy policy and account data */
.privacy-summary { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 12px; padding: 14px 20px; margin: 18px 0; }
.privacy-summary h2 { margin-top: 0; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
.privacy-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
.privacy-table th, .privacy-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.privacy-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.data-card .row { gap: 8px; flex-wrap: wrap; }
.del-box { display: grid; gap: 12px; }
.del-box ul { margin: 0; padding-left: 20px; }
.del-box input[type=text] { font: inherit; letter-spacing: .08em; }
.del-log { font-size: .9rem; color: var(--muted); margin: 0; padding-left: 20px; }
.del-done { max-width: 560px; margin: 40px auto; text-align: center; display: grid; gap: 12px; }
.ghost-sm.danger-text { color: var(--red); }
.buy-terms { font-size: .76rem; color: var(--muted); margin: 6px 0 0; text-align: center; line-height: 1.35; }

/* Squadvo logo in the header */
.brand-logo { display: block; height: 26px; width: auto; }
@media (max-width: 640px) { .brand-logo { height: 21px; } }
