:root {
  color-scheme: light;

  /* RISE colors: green-black, team green, off-white */
  --ink: #0f1311;
  --ink-2: #4b564f;
  --green: #2fbf6b;
  --paper: #ecf2e9;

  --bg: var(--paper);
  --card: #fbfcfa;
  --line: #d6dfd3;
  --field: #edf1eb;

  --sage-soft: #ddf2e5;  --sage-mid: #2fbf6b;  --sage-deep: #0f1311;
  --honey-soft: #fcf2d6; --honey-mid: #f6dc9a; --honey-deep: #6e4e0c;
  --rose-soft: #fbe8e6;  --rose-mid: #f4c6c1;  --rose-deep: #8f3a34;
  --sky-soft: #e4eefa;   --sky-mid: #c9dcf5;   --sky-deep: #2f5a96;

  --primary: #2fbf6b;
  --primary-hover: #28a85d;

  --r-lg: 14px;
  --r-md: 10px;
  --r-pill: 10px;
  --shadow: none;
  --shadow-lift: 0 10px 30px rgb(15 19 17 / .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --heavy: "Archivo Black", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font: 500 16px/1.45 var(--font);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

/* ---------- Header ---------- */

.top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.brand img { width: 84px; height: 44px; flex: none; object-fit: contain; }
.brand h1 { margin: 0; font: 400 22px/1.15 var(--heavy); text-transform: uppercase; letter-spacing: -.01em; }
.brand p { margin: 2px 0 0; font: 400 11px/1 var(--heavy); color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.tabs button {
  border: 0;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font: 400 13px var(--heavy);
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs .count {
  display: inline-block;
  min-width: 22px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--field);
  color: var(--ink-2);
  font: 400 12px/20px var(--heavy);
  text-align: center;
}
.tabs button[aria-selected="true"] .count { background: var(--green); color: var(--ink); }

/* ---------- Cards ---------- */

.stack { display: grid; gap: 16px; }

.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.card h2 {
  margin: 0;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--paper);
  font: 400 14px/1.3 var(--heavy);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card-body { padding: 4px 20px 8px; }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row > .seg, .row > .stepper { flex: none; }
.row-label { min-width: 0; font-weight: 700; line-height: 1.25; }
.row-stack { display: block; }
.row-stack .row-label { display: block; margin-bottom: 8px; }

/* ---------- Text fields ---------- */

.field { display: block; min-width: 0; }
.field > span, .field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.field .req { color: var(--rose-deep); }

input[type="text"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  background: var(--field);
  font-weight: 600;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: #7c8b81; font-weight: 500; }
input[type="text"]:focus, select:focus, textarea:focus {
  background: var(--card);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgb(47 191 107 / .25);
}
textarea {
  display: block;
  min-height: 92px;
  resize: vertical;
  field-sizing: content;
}
select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235a6b60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.err { display: block; margin-top: 5px; font-size: 13.5px; font-weight: 700; color: var(--rose-deep); }
.hint { display: block; margin-top: 5px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }

/* The meet / team block at the very top */
.who { padding: 20px; display: grid; gap: 14px; overflow: visible; position: relative; }
.who.open { z-index: 6; }
.meet-line { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.meet-line strong { font: 400 19px/1.2 var(--heavy); text-transform: uppercase; }
.meet-line .hint { margin: 0; }
.who-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* The team dropdown */
.team-pick { position: relative; }
.team-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 8px 14px 8px 10px;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  background: var(--field);
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.team-btn:hover { background: #e9eee8; }
.team-btn:focus-visible, .team-btn[aria-expanded="true"] {
  outline: none;
  background: var(--card);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgb(47 191 107 / .25);
}
.team-btn[aria-invalid="true"] { background: var(--rose-soft); border-color: #dd9a94; }
.team-btn-text { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; line-height: 1.2; }
.team-btn-text.unset { padding-left: 4px; color: #66756b; font-weight: 600; }
.team-chevron { flex: none; width: 14px; height: 10px; color: var(--ink-2); transition: transform .15s; }
.team-btn[aria-expanded="true"] .team-chevron { transform: rotate(180deg); }
.team-num {
  flex: none;
  min-width: 66px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--green);
  font: 400 15px/1.3 var(--heavy);
  text-align: center;
}
.team-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--line);
}
.team-search-wrap { padding: 10px; border-bottom: 1px solid var(--line); }
input.team-search { min-height: 44px; padding-block: 8px; }
.team-list { max-height: var(--list-height, 320px); margin: 0; padding: 6px; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.team-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  cursor: pointer;
  user-select: none;
}
.team-option:hover, .team-option.active { background: var(--sage-soft); }

.team-option[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--green); }
.team-none { padding: 18px 12px; color: var(--ink-2); font-weight: 600; text-align: center; }
.team-option small { display: block; margin-top: 1px; font-size: 13px; font-weight: 700; color: var(--honey-deep); }
.team-option.claimed { color: var(--ink-2); cursor: not-allowed; }
.team-option.claimed:hover, .team-option.claimed.active { background: var(--field); }
.team-option.claimed .team-num, .team-option.claimed:hover .team-num { background: var(--honey-soft); color: var(--honey-deep); }

/* ---------- Pick-one buttons (yes/no, 1-5, red/blue) ---------- */

.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--field);
}
.seg-full { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 700;
  user-select: none;
  transition: background .12s, color .12s, box-shadow .12s;
}
.seg-full .opt span { min-width: 0; padding: 0 4px; }
.opt:hover span { background: rgb(15 19 17 / .05); }
.opt input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 1px; }

/* Selected states. Each also gets a ring and heavier weight so they don't rely on colour alone. */
.opt input:checked + span { font-weight: 800; box-shadow: inset 0 0 0 1.5px currentColor; }
.opt-tone input:checked + span { background: var(--ink); color: var(--paper); }
.opt-yes  input:checked + span { background: var(--green); color: var(--ink); }
.opt-no   input:checked + span { background: var(--rose-mid); color: var(--rose-deep); }
.opt-red  input:checked + span { background: var(--rose-mid); color: var(--rose-deep); }
.opt-blue input:checked + span { background: var(--sky-mid);  color: var(--sky-deep); }

/* ---------- Counters ---------- */

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--field);
}
.stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  touch-action: manipulation;
  transition: transform .08s, background .12s;
}
.stepper button:hover { background: var(--sage-soft); }
.stepper button:active { transform: scale(.92); }
.stepper input[type="text"] {
  width: 52px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  border-radius: 12px;
}

/* ---------- Points ---------- */

.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 0 12px;
}
.points input[type="text"] { text-align: center; font-size: 18px; font-weight: 800; padding-inline: 4px; }
.row > input.short { flex: none; width: 140px; min-height: 44px; text-align: center; }
.pt-calc output {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--r-md);
  background: var(--field);
  font-size: 20px;
  font-weight: 800;
}
.pt-total output {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--green);
  font: 400 20px var(--heavy);
}

/* ---------- Banners ---------- */

.banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--r-md);
  outline: none;
}
.banner strong { display: block; font-weight: 800; font-size: 16.5px; }
.banner p { margin: 2px 0 0; font-size: 15px; }
.banner > div { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.banner-stop { background: var(--rose-soft); color: var(--rose-deep); box-shadow: inset 0 0 0 1.5px var(--rose-mid); }
.banner-info { background: var(--sky-soft); color: var(--sky-deep); box-shadow: inset 0 0 0 1.5px var(--sky-mid); }

.locked { opacity: .42; filter: saturate(.6); transition: opacity .2s; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--field);
  color: var(--ink);
  font: 400 14px var(--heavy);
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background .15s, transform .08s;
}
.btn:hover { background: #e7ece6; }
.btn:active { transform: scale(.98); }
.btn:disabled { cursor: not-allowed; opacity: .6; transform: none; }
.btn:focus-visible, .tabs button:focus-visible, .stepper button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.btn-primary { background: var(--primary); color: var(--ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { background: #b9c4bc; color: var(--ink-2); opacity: 1; }
.btn-danger { background: var(--rose-mid); color: var(--rose-deep); }
.btn-danger:hover { background: #f3c3be; }
.banner .btn { min-height: 40px; background: rgb(255 255 255 / .75); color: inherit; }
.banner .btn:hover { background: #fff; }

.savebar {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: env(safe-area-inset-bottom);
  padding: 10px 10px 10px 20px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgb(15 19 17 / .12);
}
.savebar-text { min-width: 0; line-height: 1.25; }
.savebar-text strong, .savebar-text small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.savebar-text strong { font-weight: 800; }
.savebar-text small { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.savebar-text.muted { color: var(--ink-2); font-weight: 600; }
.savebar .btn { flex: none; padding: 0 26px; min-height: 48px; }

.quiet-row { display: flex; justify-content: center; margin-top: 14px; }
.link {
  border: 0;
  padding: 8px 12px;
  background: none;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover { color: var(--ink); }

/* ---------- Saved list ---------- */

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.toolbar select { min-height: 44px; padding-block: 8px; }
.toolbar .field-label { margin-bottom: 4px; }

.entry { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.entry summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
  border-radius: var(--r-lg);
}
.entry summary::-webkit-details-marker { display: none; }
.entry-num {
  flex: none;
  min-width: 68px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--green);
  font: 400 16px/1.3 var(--heavy);
  text-align: center;
}
.entry-num.red { background: var(--rose-soft); color: var(--rose-deep); }
.entry-num.blue { background: var(--sky-soft); color: var(--sky-deep); }
.entry-who { flex: 1 1 auto; min-width: 0; }
.entry-who strong { display: block; font-weight: 800; overflow-wrap: anywhere; }
.entry-who small { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.entry-chips { flex: none; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.chip {
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  background: var(--honey-soft);
  color: var(--honey-deep);
}
.chip-pts { background: var(--ink); color: var(--green); }

.detail { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.detail h3 { margin: 16px 0 6px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.detail dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
.detail dt { color: var(--ink-2); font-weight: 600; }
.detail dd { margin: 0; font-weight: 800; text-align: right; }
.detail .note { margin: 6px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--field); white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-actions { display: flex; gap: 8px; margin-top: 16px; }

.empty {
  padding: 40px 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--ink-2);
}
.empty strong { display: block; margin-bottom: 4px; font: 400 17px var(--heavy); text-transform: uppercase; color: var(--ink); }

/* ---------- Toast and dialog ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 20;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  box-shadow: var(--shadow-lift);
  animation: toast-in .2s ease-out;
}
.toast.bad { background: var(--rose-deep); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

dialog {
  width: min(400px, calc(100vw - 32px));
  padding: 24px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}
dialog::backdrop { background: rgb(15 19 17 / .45); }
dialog h3 { margin: 0 0 6px; font: 400 18px/1.25 var(--heavy); text-transform: uppercase; }
dialog p { margin: 0 0 20px; color: var(--ink-2); overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .top { gap: 12px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; }
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 340px) {
  .who-more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .who, .card-body { padding-inline: 16px; }
  .card h2 { padding-inline: 16px; }
  .opt span { min-width: 54px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Team Scouting: front page, sign-in, team page
   ===================================================================== */

a.brand { color: inherit; text-decoration: none; }
.first { padding-right: .14em; }

input[type="email"], input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  background: var(--field);
  font-weight: 600;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input[type="email"]:focus, input[type="password"]:focus {
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgb(47 191 107 / .25);
}
input[aria-invalid="true"] { background: var(--rose-soft); border-color: #dd9a94; }

/* ---------- Front page ---------- */

body.home { background: var(--ink); color: var(--paper); }

.site {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 56px) 26px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.site-top { font: 400 14px var(--heavy); text-transform: uppercase; letter-spacing: .06em; }
.site-top a { color: var(--green); text-decoration: none; }

.landing {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: 48px 0;
}
.tag { margin: 0 0 .45em; color: var(--green); font: 400 clamp(18px, 2vw, 26px)/1 var(--heavy); text-transform: uppercase; }
.pitch h1 { margin: 0; font: 400 clamp(56px, 7vw, 90px)/.86 var(--heavy); text-transform: uppercase; letter-spacing: -.035em; }
.pitch h1 span { display: block; }
.lede { margin: 30px 0 0; max-width: 25em; font-size: 18px; line-height: 1.5; color: rgb(236 242 233 / .72); }

.site-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: rgb(236 242 233 / .55); }
.site-foot a { color: inherit; }

/* ---------- Sign-in panel ---------- */

.auth { padding: 28px 26px 26px; border-radius: 16px; background: var(--paper); color: var(--ink); }
.auth h2 { margin: 0 0 18px; padding: 0; background: none; color: var(--ink); font: 400 22px/1.15 var(--heavy); text-transform: uppercase; letter-spacing: -.01em; }
.auth .sub { margin: -10px 0 18px; color: var(--ink-2); overflow-wrap: anywhere; }
.auth .stack { gap: 12px; }
.auth .btn { width: 100%; min-height: 50px; }
.auth input[type="text"], .auth input[type="email"], .auth input[type="password"] {
  min-height: 50px;
  background: #fff;
  border-color: var(--line);
}
.auth input:focus { border-color: var(--green); }

.g-real { display: flex; justify-content: center; min-height: 44px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 2px 0; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.back { display: inline-flex; align-items: center; gap: 6px; margin: -8px 0 10px -10px; padding: 6px 10px; }
.back svg { width: 8px; height: 13px; }

.role-opts { display: grid; gap: 10px; }
.role-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  text-align: left;
  transition: box-shadow .12s;
}
.role-opt > span { flex: 1; }
.role-opt::after { content: "\2192"; font: 400 20px var(--heavy); }
.role-opt:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.role-opt:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.role-opt strong { display: block; font: 400 18px/1.2 var(--heavy); text-transform: uppercase; }
.role-opt small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14.5px; }

.results { max-height: 300px; margin: 0; padding: 4px; list-style: none; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.results:empty { display: none; }
.results .team-option { min-height: 50px; }
.team-option .loc { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); }

.team-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.team-card .team-num { min-width: 74px; padding: 8px 10px; font-size: 19px; }
.team-card strong { display: block; font: 400 18px/1.2 var(--heavy); text-transform: uppercase; overflow-wrap: anywhere; }
.team-card small { display: block; color: var(--ink-2); }

input.code-input {
  min-height: 62px !important;
  text-align: center;
  font: 400 28px var(--heavy);
  letter-spacing: .22em;
  text-transform: uppercase;
}
input.code-input::placeholder { letter-spacing: .12em; font-size: 22px; color: #b3bdb5; }

.form-err { margin: -2px 0 0; color: var(--rose-deep); font-size: 14px; font-weight: 600; }

/* ---------- Team page header ---------- */

.brand h1 .team-num { min-width: 0; margin-right: 8px; padding: 2px 8px; font-size: 18px; vertical-align: 2px; }
.me-wrap { position: relative; order: 3; }
.me-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; }
.me-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.me-btn .avatar { width: 40px; height: 40px; }
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 12;
  width: 250px;
  padding: 14px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line);
}
.menu strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.menu small { display: block; color: var(--ink-2); overflow-wrap: anywhere; }
.menu .chip { display: inline-block; margin: 8px 0 12px; }
.menu .btn { width: 100%; }

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--field);
  color: var(--ink);
  font: 400 13px var(--heavy);
  box-shadow: inset 0 0 0 1px var(--line);
}
.avatar.coach { background: var(--green); box-shadow: none; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ---------- Team tab ---------- */

.code-box {
  margin: 16px 0 6px;
  padding: 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--green);
  text-align: center;
  font: 400 clamp(30px, 9vw, 44px)/1.1 var(--heavy);
  letter-spacing: .14em;
  user-select: all;
}
.code-box span { color: var(--paper); opacity: .35; letter-spacing: 0; margin: 0 .08em 0 -.08em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 16px; }

.meet-box { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 16px 0; }
.meet-box strong { display: block; font: 400 18px/1.2 var(--heavy); text-transform: uppercase; }
.meet-box small { display: block; margin-top: 3px; color: var(--ink-2); }

.member { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member-who { flex: 1 1 auto; min-width: 0; }
.member-who strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.member-who small { display: block; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.member-who .on { color: #1d8a4b; font-weight: 600; }
.member-who .on::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
.member-acts { flex: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.member-acts .btn { min-height: 36px; padding: 0 12px; font-size: 12px; }
.chip-coach { background: var(--green); color: var(--ink); }
.chip-student { background: var(--field); color: var(--ink); }

/* ---------- Meet picker ---------- */

.meet-dialog { width: min(520px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 32px)); padding: 0; overflow: hidden; }
.meet-dialog[open] { display: flex; flex-direction: column; }
.meet-dialog .md-head { padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.meet-dialog .md-head h3 { margin-bottom: 12px; }
.meet-dialog .md-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px 12px; }
.meet-dialog .md-foot { display: flex; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); }
.md-label { margin: 14px 8px 6px; font: 400 12px var(--heavy); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.meet-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; text-align: left; }
.meet-opt:hover { background: var(--field); }
.meet-opt[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--green); }
.meet-date { flex: none; width: 52px; padding: 5px 0; border-radius: 8px; background: var(--ink); color: var(--green); text-align: center; line-height: 1.1; }
.meet-date b { display: block; font: 400 18px var(--heavy); }
.meet-date i { display: block; color: var(--paper); font: 400 10px var(--heavy); font-style: normal; text-transform: uppercase; }
.meet-opt strong { display: block; font-weight: 700; }
.meet-opt small { display: block; color: var(--ink-2); font-size: 14px; }
.custom-meet { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 4px 8px; }
.custom-meet input { min-height: 44px; padding-block: 8px; }

.note-line { margin: 0; padding: 12px 0 14px; color: var(--ink-2); font-size: 14.5px; }

@media (max-width: 860px) {
  .pitch h1 { font-size: clamp(56px, 15vw, 104px); }
  .landing { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 36px 0 40px; max-width: 520px; width: 100%; }
  .in-flow .pitch { display: none; }
  .in-flow .landing { align-items: start; padding-top: 24px; }
}
@media (max-width: 560px) {
  .site { padding: 18px 16px 22px; }
  .auth { padding: 22px 18px 18px; }
  .lede { font-size: 16.5px; margin-top: 22px; }
  .top .brand { order: 1; }
  .me-wrap { order: 2; }
  .top .tabs { order: 3; }
  .tabs button { padding: 0 8px; }
  .member { flex-wrap: wrap; }
  .member-who { flex-basis: calc(100% - 48px); }
  .member-acts { width: 100%; justify-content: flex-start; padding-left: 48px; }
}
