/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: var(--navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; border-right: 8px solid var(--yellow); position: relative; overflow: hidden; }
.login .art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 70px; height: 150px; background: repeating-linear-gradient(180deg, transparent 0 46px, rgba(255,255,255,.12) 46px 48px); }
.login .art h1 { font-family: var(--display); font-size: clamp(44px, 6vw, 84px); line-height: .92; margin: 0; font-weight: 800; position: relative; z-index: 1; }
.login .art p { color: var(--yellow-2); margin: 10px 0 0; font-weight: 600; position: relative; z-index: 1; }
.login .art a { color: #c9d5f5; position: relative; z-index: 1; }
.login form { align-self: center; justify-self: center; width: min(380px, 100% - 40px); display: grid; gap: 14px; padding: 40px 0; }
.login form h2 { font-family: var(--display); font-size: 34px; margin: 0; }
.login .err { color: #b3261e; font-weight: 600; font-size: 14px; min-height: 20px; }
@media (max-width: 820px) { .login { grid-template-columns: 1fr; } .login .art { padding: 28px; min-height: 220px; border-right: 0; border-bottom: 8px solid var(--yellow); } .login .art::after { display: none; } }

/* shell */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.rail { background: var(--navy); color: #dfe6fb; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.rail .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: #fff; }
.rail .brand b { font-family: var(--display); font-size: 20px; line-height: 1.05; font-weight: 700; }
.rail .brand small { display: block; color: var(--yellow-2); font-size: 12px; font-weight: 600; }
.rail a.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #dfe6fb; text-decoration: none; font-weight: 600; font-size: 14px; }
.rail a.nav:hover { background: rgba(255,255,255,.07); }
.rail a.nav.on { background: var(--yellow); color: var(--ink); }
.rail .sep { height: 1px; background: rgba(255,255,255,.12); margin: 10px 6px; }
.rail .me { margin-top: auto; padding: 12px 8px 4px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.12); }
.rail .me b { display: block; color: #fff; }
.rail .me button { background: none; border: 0; color: var(--yellow-2); padding: 0; cursor: pointer; font-weight: 600; margin-right: 12px; margin-top: 6px; }
.menu-btn { display: none; }
main.main { padding: 24px 32px 60px; min-width: 0; }
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ph h1 { margin: 0; font-family: var(--display); font-size: 38px; line-height: 1; font-weight: 800; }
.ph p { margin: 6px 0 0; color: var(--muted); }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .rail.open { transform: none; box-shadow: 0 0 0 100vmax rgba(6,15,42,.45); }
  .menu-btn { display: inline-flex; margin-bottom: 12px; }
  main.main { padding: 16px 16px 60px; }
}

/* panels */
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.box + .box { margin-top: 16px; }
.box h2 { font-family: var(--display); font-size: 24px; margin: 0 0 12px; }
.box h3 { font-size: 15px; margin: 0 0 8px; }
.row-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.help { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* dashboard */
.counts { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 18px; }
.counts div { font-size: 14px; color: var(--muted); font-weight: 600; }
.counts b { display: block; font-family: var(--display); font-size: 36px; color: var(--ink); line-height: 1; }
.dash { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .dash { grid-template-columns: 1fr; } }
.sprow { display: grid; grid-template-columns: 26px 140px 1fr 70px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.sprow:first-of-type { border-top: 0; }
.sprow .ic { color: var(--blue); display: grid; }
.sprow .rail2 { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; display: flex; }
.sprow .rail2 i { display: block; height: 100%; }
.sprow .rail2 .f { background: var(--ok); }
.sprow .rail2 .l { background: var(--yellow); }
.sprow span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.act { list-style: none; margin: 0; padding: 0; }
.act li { display: flex; gap: 10px; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.act li:first-child { border-top: 0; }
.act li small { display: block; color: var(--muted); font-size: 12px; }
.act li button { flex: none; }

/* events */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .in { width: auto; min-width: 140px; }
.filters input.in { min-width: 220px; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #fafbfe; }
.evname { font-weight: 600; }
.evname small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 600; font-size: 12px; }
.progbar { width: 70px; height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-left: 6px; }
.progbar i { display: block; height: 100%; background: var(--blue); }
.bulk { position: sticky; bottom: 14px; margin-top: 14px; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; box-shadow: 0 12px 30px rgba(6,15,42,.3); }
.bulk b { margin-right: 6px; }

/* event page */
.evtop { display: flex; gap: 14px; align-items: flex-start; }
.evtop .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; flex: none; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.meta span { font-size: 13px; padding: 2px 9px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.back { display: inline-block; margin-bottom: 10px; font-weight: 600; text-decoration: none; font-size: 14px; }
.etabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0; overflow-x: auto; }
.etabs a { padding: 9px 14px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.etabs a.on { color: var(--ink); border-bottom-color: var(--yellow); }
.ent-table td { padding: 6px 8px; }
.ent-table .in { padding: 6px 8px; }
.ent-table .idx { color: var(--muted); font-weight: 700; width: 30px; text-align: center; }
.ent-table select.in { min-width: 130px; }
.ent-table .seed { width: 64px; }
.locked { background: #f6f8fc; }
.gen { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* score modal */
.sc-side { display: grid; grid-template-columns: 8px 1fr 110px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.sc-side:first-of-type { border-top: 0; }
.sc-side .bar { height: 44px; border-radius: 3px; }
.sc-side b { font-size: 17px; display: block; line-height: 1.2; }
.sc-side input { font-size: 28px; font-family: var(--display); font-weight: 700; text-align: center; padding: 4px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-top: 12px; }
.seg button { flex: 1; border: 0; background: #fff; padding: 9px 8px; font-weight: 600; cursor: pointer; border-left: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.quick { display: flex; gap: 6px; margin-top: 10px; }

/* scored results */
.res-table td { padding: 6px 8px; }
.res-table input.in { padding: 6px 8px; width: 92px; text-align: center; font-variant-numeric: tabular-nums; }
.res-table input.time { width: 110px; }
.res-table select.in { width: 86px; }
.res-table .tot { font-weight: 800; font-family: var(--display); font-size: 20px; }
.stick { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* lists editors */
.ed-table td { padding: 6px 8px; }
.ed-table .in { padding: 6px 8px; }
input[type=color].in { padding: 2px; width: 46px; height: 36px; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-end; }
.scale label { display: grid; gap: 2px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.scale input { width: 60px; text-align: center; }
.picklist { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.picklist .grp { font-weight: 700; font-size: 13px; color: var(--muted); margin: 8px 0 2px; }
.picklist .check { font-size: 14px; padding: 2px 0; }
.logo-prev { width: 64px; height: 64px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: var(--navy); }
.logo-prev img { max-width: 100%; max-height: 100%; }

/* sports */
.sp-badge { width: 36px; height: 36px; border-radius: 9px; background: var(--navy); color: var(--yellow); display: inline-grid; place-items: center; }
.sp-badge.lg { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.sp-form fieldset { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.sp-form legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: 6px; }
.sp-preview { display: flex; gap: 14px; align-items: center; padding: 12px 14px; margin-bottom: 14px; background: var(--chalk); border-radius: 12px; }
.sp-preview b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; }
.sp-preview span { font-size: 13px; color: var(--muted); }
.err-line { color: #b3261e; font-size: 13px; font-weight: 600; margin: 4px 0 0; min-height: 0; }
.err-line:empty { display: none; }
.icgrid { display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 6px; }
.icgrid .ic { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icgrid .ic:hover { border-color: var(--blue); color: var(--blue); }
.icgrid .ic[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: var(--yellow); }
.opts { display: grid; gap: 8px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .opts.two, .opts.three { grid-template-columns: 1fr; } }
.opt { text-align: left; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 9px 12px; cursor: pointer; display: grid; gap: 2px; }
.opt b { font-size: 14px; }
.opt span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.opt:hover { border-color: #9fb4ea; }
.opt[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #f2f5fd; }

/* calendar & sessions */
.evcal { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.evcal a { text-decoration: none; }
.evcal a:hover { text-decoration: underline; }
.unsched { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 14px; padding: 10px 12px; background: #fff8de; border: 1px solid #f1d36b; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; }
.unsched small { color: var(--muted); }
.modal.mid { width: min(680px, 100%); }
.sess .fs { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.sess legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: 6px; }
.opts.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .opts.four { grid-template-columns: 1fr 1fr; } }
.seq { list-style: none; margin: 0 0 8px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); max-height: 300px; overflow: auto; }
.seq li { display: grid; grid-template-columns: 16px 26px 1fr auto; gap: 8px; align-items: center; padding: 5px 8px 5px 10px; border-top: 1px solid var(--line-2); font-size: 14px; background: #fff; }
.seq li:first-child { border-top: 0; }
.seq li.empty { display: block; color: var(--muted); padding: 14px; }
.seq li.dragging { opacity: .4; }
.seq li.over { box-shadow: inset 0 2px 0 var(--blue); }
.seq .grip { color: #aab4c8; cursor: grab; font-size: 12px; letter-spacing: -2px; }
.seq .sq { width: 24px; height: 24px; border-radius: 6px; background: var(--chalk); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--muted); }
.seq .ctl { display: flex; gap: 0; }
.seq .ctl .btn { padding: 3px 7px; }
.seq-add { display: flex; gap: 6px; }
.seq-add select { flex: 1; min-width: 0; }
.warn-line { color: #9a5b00; background: #fff8de; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; margin: 8px 0 0; }
.warn-line:empty { display: none; }
/* rulebook forms */
.rf-grp { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 14px; margin: 12px 0 0; min-width: 0; }
.rf-grp legend { font-family: var(--display); font-size: 18px; font-weight: 700; padding: 0 6px; color: var(--ink); }
.rf-grp .grid3 { align-items: start; }
label.f.rf .lt { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-height: 20px; }

/* awards */
.aw-win { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line-2); }
.aw-win:first-child { border-top: 0; }
.aw-win .chip-campus i { width: 12px; height: 12px; margin-top: 5px; }
.aw-photo { max-width: 160px; border-radius: 10px; margin-top: 8px; display: block; }
.aw-ph img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block; }
/* pending coach sign-ups count in the menu */
.rail a.nav .nbadge { margin-left: auto; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 99px; display: inline-grid; place-items: center; padding: 0 6px; animation: nbPulse 2s ease-in-out infinite; }
@keyframes nbPulse { 50% { box-shadow: 0 0 0 5px rgba(255,197,18,.25); } }
.evpk .grp .check { font-weight: 700; color: var(--ink); }
