@font-face {
  font-family: Vazirmatn;
  src: url("fonts/Vazirmatn.f6d31671339d.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --navy: #152242;
  --blue: #4C67D6;
  --teal: #169C89;
  --canvas: #F5F7FC;
  --white: #FFFFFF;
  --ink: #1D2B45;
  --secondary: #738096;
  --line: #E5EAF2;
  --warning: #F0A44B;
  --muted: #576780;
  --soft-blue: #edf1ff;
  --soft-teal: #eaf8f4;
  --shadow: 0 12px 36px rgba(32, 50, 94, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.75 Vazirmatn, Tahoma, sans-serif; }
input, select, button, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
a { color: #344cb5; text-decoration-thickness: .08em; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 3px solid #334ab4; outline-offset: 3px; }
h1, h2, h3 { color: var(--navy); line-height: 1.45; margin: 0 0 .6rem; }
h1 { font-size: clamp(22px, 3.3vw, 32px); font-weight: 850; }
h2 { font-size: 18px; }
p { margin: .4rem 0 .8rem; }
small, .muted, .helptext { color: var(--muted); }
bdi { unicode-bidi: isolate; }
.topbar { min-height: 70px; background: white; border-block-end: 1px solid var(--line); padding: 9px max(12px, calc((100vw - 1080px)/2)); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); text-decoration: none; }
.top-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.top-actions form { margin: 0; }
.text-action { display: inline-flex; align-items: center; min-height: 44px; padding: 0 5px; background: none; border: none; color: #3d52a4; font-size: .84rem; }
.wrap { width: min(100% - 24px, 1080px); margin: 22px auto 32px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(14px, 3vw, 24px); min-width: 0; box-shadow: var(--shadow); }
.auth-card { width: min(100%, 460px); margin: min(9vh, 64px) auto; padding: clamp(18px, 4vw, 34px); }
.form-stack { display: grid; gap: 14px; }
.form-stack label { display: block; font-weight: 700; margin-bottom: 3px; }
.form-stack input:not([type=checkbox]), .form-stack select, .form-stack textarea,
.control { width: 100%; background: #f9fbfe; border: 1px solid #aebbd0; border-radius: 11px; padding: 8px 10px; min-height: 44px; }
.form-stack .errorlist { margin: 4px 0; padding-inline-start: 20px; color: #a4223e; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; padding: 7px 13px; border: 1px solid transparent; border-radius: 11px; font-weight: 760; text-decoration: none; text-align: center; }
.primary { color: white; background: var(--blue); }
.primary:hover { background: #3c55bf; }
.secondary { color: #3b4d74; background: white; border-color: #d1dbea; }
.secondary:hover { background: var(--soft-blue); }
.tea { color: white; background: #13796d; }
.notice { color: #243c76; background: var(--soft-blue); border-inline-start: 4px solid var(--blue); padding: 9px 13px; border-radius: 9px; overflow-wrap: anywhere; }
.notice.error { color: #78142d; background: #fff0f3; border-color: #aa2848; }
.notice.warning { color: #69431e; background: #fff6e8; border-color: var(--warning); }
.notice.success { color: #175b51; background: var(--soft-teal); border-color: var(--teal); }
.skip-link { position: absolute; inset-block-start: -150px; z-index: 50; padding: 8px; background: white; }
.skip-link:focus { inset-block-start: 4px; }
.eyebrow { color: #13796d; font-weight: 800; margin: 0 0 .3rem; }
.stack { display: grid; gap: 14px; min-width: 0; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.space-between { justify-content: space-between; }
.table-region { overflow: auto; max-width: 100%; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: start; padding: 10px; border-block-end: 1px solid var(--line); }
.data-table th { background: #f7f9fc; color: var(--navy); }
.legend { display: flex; gap: 6px; align-items: center; font-size: .86rem; }
.pill { display: inline-block; padding: 3px 8px; border-radius: 8px; background: #edf1fc; color: #3d5076; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 380px) {
  .topbar .brand img { width: 30px; height: 30px; }
  .topbar .brand strong { font-size: .88rem; }
  .topbar { flex-wrap: wrap; }
}
.entry-heading { margin-bottom: 14px; }
.sport-hero {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  min-height: 164px; padding: clamp(17px, 4vw, 31px); margin-bottom: 14px; border-radius: 22px;
  color: white; background: linear-gradient(124deg, #152242, #304674);
}
.sport-hero::before, .sport-hero::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 50%;
  inset: -92px auto auto -53px; width: 270px; height: 270px; border: 1px solid #ffffff24;
}
.sport-hero::after { inset: -74px auto auto -10px; width: 195px; height: 195px; border: 35px solid #ffffff0a; }
.hero-copy, .hero-count { z-index: 1; }
.hero-copy > span { color: #d3dff8; font-size: .88rem; }
.hero-copy h2 { color: white; font-size: clamp(20px, 4vw, 31px); margin: 3px 0 11px; }
.hero-pill { background: #ffffff22; padding: 4px 9px; border-radius: 9px; font-size: .78rem; }
.hero-count { aspect-ratio: 1; min-width: 73px; width: clamp(73px, 12vw, 106px); border-radius: 50%; background: #ffffff21; border: 1px solid #ffffff35; display: grid; align-content: center; justify-items: center; }
.hero-count strong { font-size: clamp(23px, 5vw, 38px); line-height: 1.12; }
.hero-count span { color: #edf3ff; font-size: .65rem; }
.date-card { margin-bottom: 13px; }
.date-card form { margin: 0; }
.date-input { max-width: 130px; }
.reuse-panel { display: flex; gap: 12px; background: #effaf7; border: 1px solid #cbe7de; color: #235a52; padding: 14px; border-radius: 18px; margin-bottom: 14px; }
.reuse-panel h2 { color: #175c50; margin-bottom: 2px; }
.reuse-panel p { margin: 0 0 9px; }
.reuse-icon { flex: 0 0 37px; height: 37px; background: #d5f0e8; border-radius: 12px; display: grid; place-items: center; font-size: 24px; }
.reuse-detail { display: block; margin-top: 4px; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.lookup-controls { display: grid; gap: 4px; }
.lookup-controls label { font-weight: 700; }
.lookup-controls select { margin-bottom: 6px; }
.lookup-input { display: flex; flex-wrap: nowrap; }
.lookup-input input { min-width: 0; flex: 1 1 0; scroll-margin-block-end: 155px; }
.lookup-status { min-height: 1.75em; }
.roster-list { display: grid; gap: 7px; max-height: 425px; overflow: auto; padding: 3px; }
.person-option {
  display: flex; align-items: center; text-align: start; gap: 9px; width: 100%; min-height: 60px;
  border: 1px solid #dce4f0; background: white; border-radius: 12px; color: var(--ink); padding: 8px 9px;
}
.person-option.picked, .person-option[aria-selected=true] { border-color: #8d9fe2; background: var(--soft-blue); }
.person-option.keyboard-active { outline: 2px solid #334ab4; outline-offset: -2px; }
.person-option small { display: block; }
.person-check { width: 20px; height: 20px; border: 1px solid #7284ad; border-radius: 5px; flex: 0 0 20px; display: grid; place-items: center; }
.person-option.picked .person-check { background: #405dc1; border-color: #405dc1; color: white; }
.person-option.picked .person-check::before { content: "✓"; font-weight: 900; line-height: 1; }
.person-avatar { flex: 0 0 34px; height: 34px; border-radius: 10px; background: #e9eefc; color: #3f5598; display: grid; place-items: center; }
.person-option:nth-child(3n) .person-avatar { background: #e7f5f1; color: #306758; }
.more-people { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding-inline-start: 8px; border-radius: 24px; background: #f0f3fb; border: 1px solid var(--line); max-width: 100%; }
.chip span { overflow-wrap: anywhere; }
.chip button { width: 44px; min-height: 44px; border: none; background: transparent; color: #3c4f77; font-size: 1.2rem; }
.save-dock {
  position: sticky; bottom: 12px; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px;
  margin-top: 13px; padding: 10px 13px; border-radius: 16px; border: 1px solid var(--line); background: white;
  box-shadow: 0 10px 31px rgba(21,34,66,.19);
}
.save-message { display: grid; font-size: .87rem; }
.save-message label { min-height: 44px; display: flex; align-items: center; gap: 5px; }
.save-message input { accent-color: var(--blue); }
.conflict-panel { margin-block-start: 12px; }
.coach-nav { display: none; }
@media (max-width: 760px) {
  .entry-grid { grid-template-columns: minmax(0, 1fr); }
  body:has(.coach-nav) .wrap { padding-bottom: 68px; }
  body:has(.coach-nav) .save-dock { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .coach-nav {
    display: flex; justify-content: space-around; position: fixed; z-index: 5; inset: auto 0 0;
    min-height: 58px; background: white; border-block-start: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .coach-nav a { display: grid; justify-items: center; align-content: center; min-width: 92px; padding: 5px 9px; color: var(--muted); text-decoration: none; font-weight: 700; }
  .coach-nav a[aria-current=page] { color: #344cb5; }
  .coach-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
}
