/* Bayside Netball Club coaching platform. Same palette and display face as the club site. */
:root {
  --navy-900: #050f2c;
  --navy-800: #08183f;
  --navy-700: #0c2358;
  --blue-600: #1657d6;
  --blue-500: #2f7bff;
  --blue-100: #e9f1ff;
  --coral-600: #f5401f;
  --coral-500: #ff5331;
  --coral-100: #ffe9e4;
  --green-600: #128a52;
  --green-100: #e2f6ec;
  --amber-600: #b26b00;
  --amber-100: #fff3dc;
  --ink: #0a1530;
  --muted: #5a6985;
  --line: #e4eaf3;
  --bg: #f2f6fc;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(8, 24, 63, .07);
  --shadow: 0 14px 36px rgba(8, 24, 63, .12);
  --display: "Anton", "Arial Narrow", sans-serif;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 68px;
  --tabbar-h: 0px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--coral-500); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--navy-800); line-height: .95; letter-spacing: .005em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.12rem; font-weight: 800; color: var(--navy-800); margin: 0 0 .35em; line-height: 1.25; }
p { margin: 0 0 .9rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.hidden { display: none !important; }

/* ---------- Shell ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 3px solid var(--navy-800); }
.header__in { max-width: 1320px; margin: 0 auto; height: var(--header-h); padding: 0 clamp(16px, 3vw, 32px); display: flex; align-items: center; gap: 20px; }
.header__logo img { height: 42px; width: auto; }
.nav { display: flex; gap: 2px; margin-left: 12px; flex: 1; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: .55rem .8rem; border-radius: 9px; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-800); }
.nav a:hover { background: var(--blue-100); color: var(--coral-500); }
.nav a.active { background: var(--navy-800); color: #fff; }
.nav a.nav__admin { margin-left: auto; }
.header__me { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; border: 0; cursor: pointer; }
.main { max-width: 1320px; margin: 0 auto; padding: clamp(18px, 3vw, 36px) clamp(16px, 3vw, 32px) calc(60px + var(--tabbar-h)); }
.tabbar { display: none; }
.icon { width: 18px; height: 18px; flex: none; }

@media (max-width: 860px) {
  :root { --header-h: 58px; --tabbar-h: 66px; }
  .header__logo img { height: 34px; }
  .nav { display: none; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy-800); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255,255,255,.7); font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 6px 2px; border-radius: 10px; }
  .tabbar a .icon { width: 22px; height: 22px; }
  .tabbar a.active { color: #fff; background: rgba(255,255,255,.1); }
  .tabbar a.active .icon { color: var(--coral-500); }
}

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 2px solid transparent; border-radius: 11px; padding: .78rem 1.25rem; font-weight: 800; font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; line-height: 1; background: var(--navy-800); color: #fff; transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); color: #fff; background: var(--navy-700); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn--coral { background: var(--coral-500); box-shadow: 0 8px 20px rgba(255,83,49,.3); }
.btn--coral:hover { background: var(--coral-600); }
.btn--blue { background: var(--blue-600); }
.btn--blue:hover { background: var(--blue-500); }
.btn--line { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn--line:hover { background: var(--blue-100); color: var(--navy-800); border-color: var(--blue-100); }
.btn--ghost { background: transparent; color: var(--navy-800); padding: .55rem .7rem; }
.btn--ghost:hover { background: var(--blue-100); color: var(--navy-800); }
.btn--danger { background: #fff; color: var(--coral-600); border-color: var(--coral-100); }
.btn--danger:hover { background: var(--coral-100); color: var(--coral-600); }
.btn--sm { padding: .5rem .8rem; font-size: .74rem; border-radius: 9px; }
.btn--done { background: var(--green-600); }
.btn--done:hover { background: var(--green-600); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-800); }
.input, select.input, textarea.input { width: 100%; border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: .7rem .85rem; font-size: 1rem; transition: border-color .15s; }
.input:focus { border-color: var(--blue-500); outline: none; }
textarea.input { resize: none; overflow: hidden; min-height: 46px; line-height: 1.5; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 700px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.error { background: var(--coral-100); color: var(--coral-600); border-radius: 10px; padding: .7rem .9rem; font-weight: 700; font-size: .92rem; margin-bottom: 14px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(16px, 2.4vw, 24px); }
.card + .card { margin-top: 16px; }
.stack > * + * { margin-top: 16px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead h1 { margin: 0; }
.pagehead .sub { color: var(--muted); font-weight: 600; margin-top: 6px; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: .26rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--blue-100); color: var(--blue-600); white-space: nowrap; }
.tag--coral { background: var(--coral-100); color: var(--coral-600); }
.tag--green { background: var(--green-100); color: var(--green-600); }
.tag--amber { background: var(--amber-100); color: var(--amber-600); }
.tag--grey { background: #eef1f6; color: var(--muted); }
.tag--navy { background: var(--navy-800); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- This week hero ---------- */
.hero { background: var(--navy-800); color: #fff; border-radius: 20px; padding: clamp(20px, 4vw, 40px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(47,123,255,.55), rgba(22,87,214,0) 70%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 7vw, 4.6rem); margin-bottom: .2em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(226,235,250,.85); font-weight: 600; margin-bottom: 18px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__week { font-family: var(--display); font-size: 1.25rem; color: var(--coral-500); letter-spacing: .03em; text-transform: uppercase; margin-bottom: 8px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn--line { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.hero .btn--line:hover { background: #fff; color: var(--navy-800); }
.weeknav { display: flex; gap: 8px; }

.notice { background: var(--amber-100); color: #6b4300; border-radius: 12px; padding: .8rem 1rem; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.notice .icon { margin-top: 3px; }
.notice small { display: block; font-weight: 500; opacity: .8; }

.levels { display: inline-flex; background: #fff; border-radius: 12px; padding: 4px; gap: 4px; box-shadow: var(--shadow-sm); }
.levels button { border: 0; background: transparent; border-radius: 9px; padding: .55rem .9rem; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); cursor: pointer; }
.levels button.on { background: var(--navy-800); color: #fff; }

/* ---------- Run sheet ---------- */
.session { margin-top: 18px; }
.session__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.session__head h2 { margin: 0; }
.runsheet { display: flex; flex-direction: column; gap: 12px; }
.block { display: grid; grid-template-columns: 92px 1fr; gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.block__time { background: var(--navy-800); color: #fff; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }
.block__time b { font-family: var(--display); font-size: 1.7rem; font-weight: 400; line-height: 1; }
.block__time small { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.block__time .slot { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--coral-500); margin-top: 6px; }
.block__body { display: grid; grid-template-columns: 1fr 150px; gap: 14px; padding: 14px 16px; align-items: center; min-width: 0; }
.block__body.noimg { grid-template-columns: 1fr; }
.block__body h3 { margin-bottom: 4px; }
.block__body p { margin: 0; color: var(--muted); font-size: .94rem; }
.block__note { margin-top: 8px !important; color: var(--ink) !important; background: var(--blue-100); border-radius: 8px; padding: .45rem .65rem; font-size: .9rem; }
.block__thumb { width: 150px; height: 100px; border-radius: 10px; overflow: hidden; background: var(--bg); }
.block__thumb img, .block__thumb svg { width: 100%; height: 100%; object-fit: cover; }
.block a.block__link { color: inherit; display: contents; }
.block:hover h3 { color: var(--blue-600); }
.block--empty .block__body p { font-style: italic; }
@media (max-width: 600px) {
  .block { grid-template-columns: 66px 1fr; }
  .block__time b { font-size: 1.35rem; }
  .block__body { grid-template-columns: 1fr; }
  .block__thumb { width: 100%; height: 150px; order: -1; }
}

/* ---------- Feedback ---------- */
.stars { display: inline-flex; gap: 6px; }
.stars button { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; font-size: 1rem; color: var(--muted); }
.stars button.on { background: var(--coral-500); border-color: var(--coral-500); color: #fff; }

/* ---------- Drill library ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters .input { width: auto; flex: 1 1 240px; }
.filters select.input { flex: 0 1 190px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .42rem .85rem; font-weight: 800; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; color: var(--navy-800); }
.chip.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip .count { opacity: .6; margin-left: 4px; }
.drills { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.dcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.dcard__img { aspect-ratio: 16/10; background: var(--navy-800); position: relative; overflow: hidden; }
.dcard__img img, .dcard__img svg { width: 100%; height: 100%; object-fit: cover; }
.dcard__img .tag { position: absolute; left: 10px; top: 10px; }
.dcard__img .play { position: absolute; right: 10px; bottom: 10px; background: rgba(5,15,44,.82); color: #fff; border-radius: 999px; padding: .3rem .6rem; font-size: .72rem; font-weight: 800; display: inline-flex; gap: 5px; align-items: center; }
.dcard__img .play .icon { width: 13px; height: 13px; }
.dcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dcard__body h3 { margin: 0; }
.dcard__body p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dcard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.85); font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; text-align: center; padding: 16px; line-height: 1; background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); }

/* ---------- Drill detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 980px) { .detail { grid-template-columns: 1fr; } }
.media-main { background: var(--navy-900); border-radius: var(--radius); overflow: hidden; }
.media-main img, .media-main svg { width: 100%; height: auto; }
.video { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe, .video video { display: block; width: 100%; border: 0; }
.video--portrait { max-width: 420px; margin-inline: auto; }
.video--portrait iframe, .video--portrait video { aspect-ratio: 9/16; max-height: 78vh; }
.video--landscape iframe, .video--landscape video { aspect-ratio: 16/9; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs button { width: 92px; height: 64px; border-radius: 9px; overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; background: var(--navy-800); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.thumbs button.on { border-color: var(--coral-500); }
.thumbs img, .thumbs svg { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.fact { background: var(--bg); border-radius: 10px; padding: .6rem .8rem; }
.fact b { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.fact span { font-weight: 700; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 800; font-size: .82rem; display: grid; place-items: center; }
.points { margin: 0; padding-left: 1.15rem; }
.points li { margin-bottom: 6px; }
.points li::marker { color: var(--coral-500); }
.section-title { font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; color: var(--navy-800); margin: 22px 0 10px; font-weight: 400; letter-spacing: .02em; }
.links a { display: flex; align-items: center; gap: 8px; padding: .65rem .8rem; background: var(--bg); border-radius: 10px; font-weight: 700; margin-bottom: 8px; word-break: break-word; }
.favbtn.on { background: var(--coral-500); color: #fff; border-color: var(--coral-500); }

/* ---------- Season ---------- */
.season { display: flex; flex-direction: column; gap: 10px; }
.wk { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 18px; color: inherit; }
a.wk:hover { color: inherit; box-shadow: var(--shadow); }
.wk__date { line-height: 1.1; }
.wk__date b { font-family: var(--display); font-size: 1.6rem; font-weight: 400; color: var(--navy-800); display: block; }
.wk__date small { font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wk__body h3 { margin: 0 0 4px; }
.wk__body p { margin: 0; color: var(--muted); font-size: .9rem; }
.wk--now { background: var(--navy-800); }
.wk--now .wk__date b, .wk--now h3 { color: #fff; }
.wk--now .wk__date small, .wk--now p { color: rgba(226,235,250,.8); }
.wk--past { opacity: .62; }
.wk--off { background: transparent; box-shadow: none; border: 2px dashed var(--line); }
@media (max-width: 600px) { .wk { grid-template-columns: 70px 1fr; } .wk > :last-child { grid-column: 1 / -1; } }

/* ---------- Tables ---------- */
.tablewrap { width: 100%; overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.t th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: .55rem .6rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.t td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t td.c, .t th.c { text-align: center; }
.dot { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 800; }
.dot--ready { background: var(--green-600); color: #fff; }
.dot--seen { background: var(--blue-100); color: var(--blue-600); }
.dot--none { background: #f1f3f7; color: #b4bccb; }
.dot--off { background: transparent; color: #c8cfdb; }

/* ---------- Admin ---------- */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.subnav a { padding: .55rem .9rem; border-radius: 10px; background: #fff; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.subnav a.on { background: var(--navy-800); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 18px; }
.stat b { display: block; font-family: var(--display); font-size: 2.3rem; font-weight: 400; color: var(--navy-800); line-height: 1; }
.stat span { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.planner { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.planner > * { min-width: 0; }
@media (max-width: 980px) { .planner { grid-template-columns: 1fr; } }
.weeklist { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; scrollbar-width: none; }
.weeklist::-webkit-scrollbar { display: none; }
@media (max-width: 980px) { .weeklist { position: static; max-height: none; flex-direction: row; overflow-x: auto; padding-bottom: 4px; } .weeklist a { flex: 0 0 auto; } }
.weeklist a { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: .6rem .8rem; border-radius: 10px; background: #fff; color: var(--navy-800); font-weight: 700; font-size: .88rem; }
.weeklist a small { color: var(--muted); font-weight: 600; }
.weeklist a.on { background: var(--navy-800); color: #fff; }
.weeklist a.on small { color: rgba(255,255,255,.7); }
.weeklist a.off { opacity: .6; }
.pblock { display: grid; grid-template-columns: 30px 130px 80px 1fr auto; gap: 10px; align-items: start; padding: 12px; border-radius: 12px; background: var(--bg); margin-bottom: 8px; }
.pblock .input { padding: .5rem .6rem; font-size: .92rem; }
.pblock__drill { min-width: 0; }
.pblock__pick { display: flex; gap: 8px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: .42rem .6rem; cursor: pointer; min-height: 42px; width: 100%; text-align: left; }
.pblock__pick:hover { border-color: var(--blue-500); }
.pblock__pick.empty { color: var(--muted); border-style: dashed; }
.pblock__move { display: flex; flex-direction: column; gap: 2px; }
.pblock__move button { border: 0; background: #fff; border-radius: 6px; width: 28px; height: 20px; cursor: pointer; font-size: .7rem; color: var(--muted); }
@media (max-width: 760px) { .pblock { grid-template-columns: 30px 1fr 70px; } .pblock__drill, .pblock__actions { grid-column: 2 / -1; } }
.modal-bg { position: fixed; inset: 0; background: rgba(5,15,44,.55); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 18px; width: min(860px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: 0 40px 90px rgba(5,15,44,.4); overflow: hidden; }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.modal__head h2 { margin: 0; font-size: 1.6rem; }
.modal__body { padding: 18px 20px; overflow: auto; scrollbar-width: thin; }
.modal__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pickitem { display: flex; gap: 10px; align-items: center; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 8px; cursor: pointer; }
.pickitem:hover { border-color: var(--blue-500); }
.pickitem .pthumb { width: 64px; height: 46px; border-radius: 8px; overflow: hidden; flex: none; background: var(--navy-800); }
.pickitem .pthumb img, .pickitem .pthumb svg { width: 100%; height: 100%; object-fit: cover; }
.pickitem b { display: block; font-size: .9rem; line-height: 1.2; }
.pickitem small { color: var(--muted); font-size: .75rem; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h)); transform: translateX(-50%); background: var(--navy-800); color: #fff; padding: .8rem 1.2rem; border-radius: 12px; font-weight: 700; z-index: 200; box-shadow: var(--shadow); animation: fade .2s; max-width: calc(100vw - 32px); }
.copybox { display: flex; gap: 8px; align-items: center; background: var(--green-100); padding: 10px; border-radius: 12px; margin-top: 10px; }
.copybox input { flex: 1; border: 0; background: transparent; font-weight: 700; color: var(--green-600); min-width: 0; }
.imgedit { display: flex; gap: 10px; flex-wrap: wrap; }
.imgedit figure { margin: 0; width: 130px; position: relative; }
.imgedit figure img { width: 130px; height: 90px; object-fit: cover; border-radius: 10px; }
.imgedit figure button { position: absolute; top: 4px; right: 4px; }
.listedit .item { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.listedit .item .input { flex: 1; }
.feedback-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.feedback-item:last-child { border-bottom: 0; }

/* ---------- Court diagram ---------- */
.court { display: block; width: 100%; height: auto; background: #1f5fc4; }
.diagram-editor { border-radius: 12px; overflow: hidden; border: 2px solid var(--line); }
.diagram-editor .court { cursor: crosshair; touch-action: none; }
.dtools { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--bg); }
.dtools button { border: 2px solid var(--line); background: #fff; border-radius: 9px; padding: .4rem .65rem; font-weight: 800; font-size: .74rem; text-transform: uppercase; cursor: pointer; }
.dtools button.on { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------- Auth ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.auth__photo { background: var(--navy-800) url(/img/login.jpg) center/cover; position: relative; }
.auth__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,15,44,0) 40%, rgba(5,15,44,.85)); }
.auth__photo h2 { position: absolute; left: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 48px); right: 20px; color: #fff; z-index: 1; font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0; }
.auth__form { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 6vw, 80px); max-width: 560px; width: 100%; }
.auth__form img { height: 64px; width: auto; align-self: flex-start; margin-bottom: 30px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; grid-template-rows: 32vh auto; } .auth__photo h2 { font-size: 2.4rem; } }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty h3 { color: var(--navy-800); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); font-weight: 700; }

/* ---------- Print: courtside run sheet ---------- */
@media print {
  .header, .tabbar, .no-print, .hero__actions, .weeknav, .levels { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; }
  .hero { background: #fff; color: var(--ink); padding: 0 0 10px; border-bottom: 3px solid var(--navy-800); border-radius: 0; }
  .hero::after { display: none; }
  .hero h1 { color: var(--navy-800); font-size: 2.4rem; }
  .hero__meta { color: var(--ink); }
  .block { box-shadow: none; border: 1px solid #ccd; break-inside: avoid; }
  .block__thumb { display: none; }
  .block__body { grid-template-columns: 1fr; }
}

.notelink { color: var(--blue-600); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------- Head coach view switch ---------- */
.modeswitch { display: inline-flex; background: var(--bg); border-radius: 11px; padding: 3px; gap: 2px; border: 2px solid var(--line); }
.modeswitch a { padding: .45rem .8rem; border-radius: 8px; font-weight: 800; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.modeswitch a:hover { color: var(--navy-800); }
.modeswitch a.on { background: var(--navy-800); color: #fff; }
body.admin-mode .modeswitch a.on { background: var(--coral-500); }
body.admin-mode .header { border-bottom-color: var(--coral-500); }
@media (min-width: 861px) { .subnav { display: none; } }
@media (max-width: 860px) { .modeswitch a { padding: .4rem .55rem; font-size: .66rem; } }
@media (max-width: 400px) { .header__logo img { height: 28px; } }
@media (max-width: 860px) {
  .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(16px, 3vw, 32px)); padding: 2px clamp(16px, 3vw, 32px) 6px; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: 0 0 auto; padding: .45rem .75rem; font-size: .72rem; }
}

/* =========================================================
   Shell v2: left sidebar (desktop), drawer + top bar (phone)
   ========================================================= */
:root { --side-w: 256px; --night: #061234; --night-2: #0c1d4a; --night-3: #142a63; }
.header { display: none; }
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
.side { background: var(--night); color: #c9d4ea; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px 14px; overflow-y: auto; scrollbar-width: none; z-index: 70; }
.side::-webkit-scrollbar { display: none; }
.side__brand { display: block; background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.side__brand img { height: 34px; width: auto; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--night-2); color: #fff; margin-bottom: 12px; }
.who:hover { color: #fff; background: var(--night-3); }
.who__av { width: 36px; height: 36px; border-radius: 10px; background: var(--coral-500); color: #fff; font-weight: 800; font-size: .82rem; display: grid; place-items: center; flex: none; }
.who__txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.who__txt b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__txt small { color: #8fa0c4; font-size: .78rem; }
.side .modeswitch { display: grid; grid-template-columns: 1fr 1fr; background: var(--night-2); border: 0; border-radius: 11px; padding: 4px; gap: 4px; margin-bottom: 6px; }
.side .modeswitch.hidden { display: none; }
.side .modeswitch a { text-align: center; color: #8fa0c4; padding: .5rem .4rem; border-radius: 8px; font-size: .72rem; }
.side .modeswitch a:hover { color: #fff; }
.side .modeswitch a.on { background: #fff; color: var(--navy-800); }
body.admin-mode .side .modeswitch a.on { background: var(--coral-500); color: #fff; }
.side__grp { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6b7ca3; padding: 16px 12px 6px; }
.side__nav a { display: flex; align-items: center; gap: 11px; padding: .62rem .8rem; margin: 1px 0; border-radius: 10px; color: #c9d4ea; font-weight: 700; font-size: .93rem; }
.side__nav a .icon { color: #7d8fb8; }
.side__nav a:hover { background: var(--night-2); color: #fff; }
.side__nav a.on { background: var(--night-3); color: #fff; }
.side__nav a.on .icon { color: var(--coral-500); }
.side__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--night-2); display: flex; flex-direction: column; gap: 2px; }
.side__foot a, .side__foot button { display: flex; align-items: center; gap: 11px; background: none; border: 0; color: #9fb0d3; font-weight: 700; font-size: .88rem; padding: .55rem .8rem; border-radius: 10px; cursor: pointer; text-align: left; }
.side__foot a:hover, .side__foot button:hover { background: var(--night-2); color: #fff; }
.work { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.scrim { display: none; }
.main { max-width: none; width: 100%; margin: 0; padding: clamp(18px, 3vw, 40px) clamp(16px, 3.4vw, 48px) calc(60px + var(--tabbar-h)); }
.subnav { display: none !important; }
.placeholder span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.placeholder { font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.05; }
.pickitem .placeholder, .block__thumb .placeholder, .thumbs .placeholder { font-size: .72rem; padding: 6px; }
.progress { display: grid; gap: 6px; margin: 6px 0 10px; font-size: .85rem; font-weight: 700; }
.progress i { display: block; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress b { display: block; height: 100%; background: var(--coral-500); transition: width .2s; }
.vidrow { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 12px; padding: 8px; margin-bottom: 8px; }
.vidrow img, .vidrow__ph { width: 72px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--navy-800); color: #fff; display: grid; place-items: center; flex: none; }
.vidrow b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breaks .break { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; background: var(--bg); border-radius: 12px; padding: 10px 12px 0; margin-bottom: 8px; }
.breaks .break .btn { margin-bottom: 14px; }
.preview { display: flex; gap: 8px; align-items: center; background: var(--blue-100); color: var(--navy-800); border-radius: 12px; padding: .75rem 1rem; margin: 4px 0 16px; font-size: .95rem; }
@media (max-width: 700px) { .breaks .break { grid-template-columns: 1fr 1fr; } .breaks .break .field:first-child { grid-column: 1 / -1; } }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-104%); transition: transform .28s var(--ease); box-shadow: var(--shadow); }
  .shell.nav-on .side { transform: none; }
  .shell.nav-on .scrim { display: block; position: fixed; inset: 0; background: rgba(5, 15, 44, .5); z-index: 65; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 3px solid var(--navy-800); padding: 8px 16px; height: 58px; }
  body.admin-mode .topbar { border-bottom-color: var(--coral-500); }
  .topbar__logo { margin-right: auto; }
  .topbar__logo img { height: 32px; width: auto; }
  .menu-btn { width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--bg); display: grid; place-content: center; gap: 4px; cursor: pointer; }
  .menu-btn span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--navy-800); }
}
@media (min-width: 861px) { .tabbar { display: none !important; } }
@media (max-width: 860px) { body.admin-mode { --tabbar-h: 0px; } }
/* =========================================================
   Form sections
   ========================================================= */
.fsec { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden; }
.fsec__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: linear-gradient(180deg, #f7f9fd, #fff); border-bottom: 1px solid var(--line); }
.fsec__head h3 { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.fsec__ic { width: 32px; height: 32px; border-radius: 9px; background: var(--navy-800); color: #fff; display: grid; place-items: center; flex: none; }
.fsec__ic .icon { width: 16px; height: 16px; }
.fsec__body { padding: 18px 18px 6px; }
.fsec__body .check { margin-bottom: 14px; }
.formgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.formgrid__side { position: sticky; top: 16px; }
.modal .formgrid { grid-template-columns: 1fr; gap: 0; }
.modal .formgrid__side { position: static; }
.modal .fsec { box-shadow: none; border: 1px solid var(--line); }
.formcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.formcols .fsec--wide { grid-column: 1 / -1; }
.formcols .fsec { margin-bottom: 0; }
.modal .formcols { grid-template-columns: 1fr; gap: 0; }
.modal .formcols .fsec { margin-bottom: 14px; }
@media (max-width: 1100px) { .formgrid, .formcols { grid-template-columns: 1fr; } .formgrid__side { position: static; } }
.savebar { position: sticky; bottom: calc(12px + var(--tabbar-h)); z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(8, 24, 63, .96); backdrop-filter: blur(8px); padding: 10px 12px; border-radius: 14px; box-shadow: var(--shadow); margin-top: 16px; }
.savebar .btn--danger { background: transparent; color: #ffb4a3; border-color: rgba(255, 255, 255, .18); }

/* =========================================================
   My team
   ========================================================= */
.teamhero { background: var(--navy-800); color: #fff; border-radius: 20px; padding: clamp(18px, 3vw, 30px); display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.teamhero h1 { color: #fff; margin-bottom: 10px; }
.teamhero .tag { background: rgba(255, 255, 255, .12); color: #fff; }
.teamhero .tag--navy { background: var(--coral-500); }
.teamhero__stats { display: flex; gap: 10px; }
.teamhero__stats div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 16px; text-align: center; min-width: 88px; }
.teamhero__stats b { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 400; line-height: 1; }
.teamhero__stats span { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9fb0d3; }
.segtabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 14px; padding: 5px; gap: 5px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.segtabs a { display: flex; align-items: center; justify-content: center; gap: 7px; padding: .7rem .5rem; border-radius: 10px; font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.segtabs a.on { background: var(--navy-800); color: #fff; }
.segtabs a.on .icon { color: var(--coral-500); }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pcard { display: flex; align-items: center; gap: 12px; background: #fff; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px 14px; text-align: left; cursor: pointer; }
.pcard:hover { box-shadow: var(--shadow); }
.pcard__av { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); font-weight: 800; display: grid; place-items: center; flex: none; }
.pcard__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pcard__txt b { color: var(--navy-800); }
.pcard__txt small { color: var(--muted); font-size: .76rem; }
.pcard__att { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--display); font-size: 1.3rem; color: var(--navy-800); line-height: 1; gap: 3px; }
.pcard__att small { font-family: var(--font); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .62rem; color: var(--muted); }
.elist { display: flex; flex-direction: column; gap: 10px; }
.ecard { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px 16px; color: inherit; }
.ecard:hover { color: inherit; box-shadow: var(--shadow); }
.ecard__date { width: 54px; height: 54px; border-radius: 12px; background: var(--navy-800); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.ecard__date b { font-family: var(--display); font-weight: 400; font-size: 1.4rem; }
.ecard__date small { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #9fb0d3; margin-top: 3px; }
.ecard__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ecard__txt b { color: var(--navy-800); }
.ecard__txt small { color: var(--muted); }
.eventhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 10px 0 16px; }
.eventhead h1 { margin: 0; }
.eventhead .sub { color: var(--muted); font-weight: 600; margin-top: 6px; }
.score { display: flex; align-items: flex-end; gap: 10px; background: var(--navy-800); padding: 10px 14px; border-radius: 16px; }
.score label { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #9fb0d3; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.score input { width: 78px; text-align: center; font-family: var(--display); font-size: 2rem; padding: .2rem; border: 0; }
.score > b { color: #fff; font-size: 1.6rem; padding-bottom: 8px; }
.attrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.attrow:last-child { border-bottom: 0; }
.attrow__name { display: flex; flex-direction: column; min-width: 0; }
.attrow__name small { color: var(--muted); }
.attseg { display: inline-flex; background: var(--bg); border-radius: 11px; padding: 3px; gap: 3px; flex: none; }
.attseg button { border: 0; background: transparent; border-radius: 8px; padding: .55rem .75rem; font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); cursor: pointer; min-width: 58px; }
.attseg button.on--present { background: var(--green-600); color: #fff; }
.attseg button.on--absent { background: var(--coral-500); color: #fff; }
.attseg button.on--excused { background: var(--amber-600); color: #fff; }
.statcard { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.statcard > b { display: block; margin-bottom: 8px; color: var(--navy-800); }
.steppers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stepper { background: var(--bg); border-radius: 12px; padding: 8px 6px; text-align: center; }
.stepper > span { display: block; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.stepper > div { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 9px; border: 0; background: #fff; color: var(--navy-800); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.stepper button:active { transform: scale(.94); }
.stepper output { font-family: var(--display); font-size: 1.5rem; color: var(--navy-800); min-width: 26px; }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.minis div { background: var(--bg); border-radius: 12px; padding: 10px; text-align: center; }
.minis b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: var(--navy-800); }
.minis span { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
@media (max-width: 700px) {
  .segtabs a { flex-direction: column; gap: 3px; padding: .55rem .2rem; font-size: .66rem; }
  .steppers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .attrow { flex-wrap: wrap; }
  .attseg { width: 100%; }
  .attseg button { flex: 1; padding: .7rem .4rem; }
  .teamhero__stats { width: 100%; }
  .teamhero__stats div { flex: 1; min-width: 0; }
  .minis { grid-template-columns: repeat(2, 1fr); }
}
.tablewrap { scrollbar-width: none; }
.tablewrap::-webkit-scrollbar { display: none; }

.score input { color: var(--navy-800); }
.preview .icon { flex: none; }

/* Planner run sheet v2 */
.pblock { display: block; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.pblock__top { display: grid; grid-template-columns: 30px minmax(0, 1.3fr) 92px minmax(0, 1fr) 40px; gap: 8px; align-items: center; padding: 10px 10px 10px 8px; background: var(--bg); }
.pblock__top .input { padding: .5rem .6rem; font-size: .92rem; }
.pblock__min { position: relative; display: block; }
.pblock__min span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; pointer-events: none; }
.pblock__min input { padding-right: 38px !important; }
.pblock__drill { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 10px; }
.pblock__pick { justify-content: space-between; }
.pblock__change { font-size: .72rem; font-weight: 800; color: var(--blue-600); text-transform: uppercase; letter-spacing: .05em; }
.pblock__drill textarea { margin: 0; font-size: .92rem; padding: .5rem .6rem; }
@media (max-width: 760px) {
  .pblock__top { grid-template-columns: 30px minmax(0, 1fr) 84px 40px; }
  .pblock__top select[data-bf="level"] { grid-column: 2 / 4; grid-row: 2; }
  .pblock__drill { grid-template-columns: 1fr; }
}

/* Full-width content: keep long text readable */
@media (min-width: 981px) { .detail { grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); } }
.hero p, .card p { max-width: 90ch; }
/* Link preview pane */
.ppane { position: fixed; inset: 0; z-index: 120; }
.ppane__scrim { position: absolute; inset: 0; background: rgba(5, 15, 44, .45); opacity: 0; transition: opacity .25s; }
.ppane__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(980px, 62vw); background: #fff; display: flex; flex-direction: column; box-shadow: -30px 0 80px rgba(5, 15, 44, .35); transform: translateX(102%); transition: transform .28s var(--ease); }
.ppane.on .ppane__scrim { opacity: 1; }
.ppane.on .ppane__panel { transform: none; }
.ppane__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.ppane__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ppane__title b { color: var(--navy-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppane__title small { color: var(--muted); font-weight: 600; }
.ppane__body { flex: 1; min-height: 0; background: var(--bg); overflow: auto; scrollbar-width: none; }
.ppane__frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.ppane__frame--video { background: #000; }
.ppane__card { margin: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.ppane__card img { width: 100%; max-height: 360px; object-fit: cover; }
.ppane__card > div { padding: 20px 22px 24px; }
.ppane__card p { color: var(--muted); }
@media (max-width: 860px) { .ppane__panel { width: 100%; top: 8vh; border-radius: 18px 18px 0 0; transform: translateY(102%); } .ppane.on .ppane__panel { transform: none; } }

/* =========================================================
   Courtside session mode
   ========================================================= */
body.courtside .side, body.courtside .topbar, body.courtside .tabbar, body.courtside .scrim { display: none !important; }
body.courtside .shell { grid-template-columns: 1fr; }
body.courtside .main { padding: 0; max-width: none; }
body.courtside { --tabbar-h: 0px; background: var(--navy-900); }
.cs { min-height: 100dvh; background: var(--navy-900); color: #fff; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) clamp(14px, 4vw, 40px) max(14px, env(safe-area-inset-bottom)); }
.cs--break { background: #062a52; }
.cs__top { display: flex; align-items: center; gap: 14px; }
.cs__x { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; flex: none; }
.cs__x:hover { color: #fff; background: rgba(255,255,255,.18); }
.cs__title { display: flex; flex-direction: column; min-width: 0; }
.cs__title small { color: #9fb0d3; font-weight: 700; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs__title b { font-size: 1.05rem; }
.cs__rail { display: flex; gap: 4px; margin: 16px 0 6px; }
.cs__seg { height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.cs__seg.done { background: var(--coral-500); }
.cs__seg i { display: block; height: 100%; width: 0; background: var(--coral-500); }
.cs__main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px 0; }
.cs__slot { background: var(--coral-500); color: #fff; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; border-radius: 999px; padding: .45rem 1rem; margin-bottom: 14px; }
.cs__main h1 { color: #fff; font-size: clamp(2.2rem, 7vw, 4.4rem); max-width: 22ch; margin: 0 0 6px; }
.cs__clock { font-family: var(--display); font-size: clamp(6rem, 26vw, 15rem); line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; margin: 6px 0 10px; }
.cs__clock.over { color: var(--coral-500); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.cs__note { background: rgba(255,255,255,.1); border-radius: 12px; padding: .7rem 1rem; max-width: 60ch; font-weight: 600; }
.cs__note .notelink { color: #9cc2ff; }
.cs__points ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; max-width: 60ch; }
.cs__points li { background: rgba(255,255,255,.07); border-radius: 12px; padding: .6rem 1rem; font-size: 1.05rem; color: #dce6fb; }
.cs__show { margin-top: 16px; background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cs__show:hover { background: #fff; color: var(--navy-800); }
.cs__skip { margin-top: 10px; background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cs__next { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
.cs__next small { color: #9fb0d3; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.cs__next b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs__next span { color: #9fb0d3; font-weight: 700; }
.cs__ctrl { display: grid; grid-template-columns: 1fr 1fr 1.6fr 1fr; gap: 10px; }
.cs__btn { height: 72px; border-radius: 18px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; cursor: pointer; }
.cs__btn .icon { width: 30px; height: 30px; }
.cs__btn:disabled { opacity: .35; }
.cs__btn--big { background: var(--coral-500); }
.cs__btn--next { background: #fff; color: var(--navy-800); }
.cs__btn .pause { width: 22px; height: 26px; border-left: 7px solid #fff; border-right: 7px solid #fff; }
.cs__start { flex: 1; max-width: 640px; width: 100%; margin: 0 auto; padding: 20px 0; display: flex; flex-direction: column; }
.cs__start h1 { color: #fff; font-size: clamp(2.4rem, 8vw, 4rem); margin: 10px 0 4px; }
.cs__sum { color: #9fb0d3; font-weight: 600; }
.cs__pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.cs__pick a { padding: .5rem .9rem; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: .9rem; }
.cs__pick a.on { background: #fff; color: var(--navy-800); }
.cs__here { background: rgba(255,255,255,.06); border-radius: 16px; padding: 14px; margin: 8px 0 14px; }
.cs__here h2 { color: #fff; font-size: 1.5rem; margin: 0; }
.cs__here .btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cs__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.cs__chip { border: 2px solid rgba(255,255,255,.2); background: transparent; color: #fff; border-radius: 12px; padding: .8rem .6rem; font-weight: 800; font-size: 1rem; cursor: pointer; }
.cs__chip.on { background: var(--green-600); border-color: var(--green-600); }
.cs__count { color: #9fb0d3; margin: 10px 0 0; font-weight: 700; }
.cs__list { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 6px; }
.cs__list li { display: flex; gap: 14px; background: rgba(255,255,255,.05); border-radius: 12px; padding: .7rem 1rem; }
.cs__list span { color: var(--coral-400, #ff7a5c); font-weight: 800; min-width: 54px; }
.cs__go { width: 100%; padding: 1.15rem; font-size: 1.05rem; margin-top: 8px; }
.cs .btn--line.cs__go { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cs .field > span { color: #9fb0d3; }
.cs__stars { margin: 8px 0 18px; }
.cs__stars button { width: 58px; height: 58px; font-size: 1.2rem; }
.modal-bg--sheet .modal { width: min(760px, 100%); }
@media (max-width: 600px) { .cs__ctrl { grid-template-columns: 1fr 1fr 1.4fr 1fr; } .cs__btn { height: 64px; } }

/* =========================================================
   Onboarding + guide
   ========================================================= */
.onboard { margin-bottom: 16px; }
.onboard__bar { height: 8px; border-radius: 99px; background: var(--line); margin: 12px 0 10px; overflow: hidden; }
.onboard__bar i { display: block; height: 100%; background: var(--coral-500); border-radius: 99px; }
.onboard__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.onboard__item { display: flex; align-items: center; gap: 10px; padding: .7rem .8rem; border-radius: 12px; background: var(--bg); color: var(--navy-800); font-weight: 700; }
.onboard__item .icon:last-child { margin-left: auto; color: var(--muted); }
.onboard__item.done { color: var(--muted); text-decoration: line-through; }
a.onboard__item:hover { background: var(--blue-100); color: var(--navy-800); }
.onboard__tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; flex: none; }
.onboard__tick.on { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.onboard__tick .icon { width: 14px; height: 14px; }
.guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.guide__sec h2 { margin-bottom: 10px; }
.guide__sec p { line-height: 1.6; }
@media (max-width: 600px) { .guide { grid-template-columns: 1fr; } }

/* =========================================================
   Drill filters
   ========================================================= */
.fpanel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 18px 8px; margin-bottom: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 22px; }
.fpanel__grp b { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fpanel__grp .chips { margin-bottom: 10px; }
.fpanel__grp select.input { margin-bottom: 10px; }
.fpanel #clear { justify-self: start; align-self: end; margin-bottom: 10px; }
.filters select#sort { flex: 0 0 auto; width: auto; }

/* =========================================================
   Game day
   ========================================================= */
.score--ro { color: #fff; }
.score--ro label b { font-family: var(--display); font-size: 2.2rem; font-weight: 400; color: #fff; min-width: 60px; text-align: center; }
.rot th { color: var(--navy-800); font-size: .82rem; }
.rot td { padding: 4px; min-width: 120px; }
.rot__sel { padding: .45rem .5rem; font-size: .9rem; }
.rot__bench td { font-size: .82rem; color: var(--muted); vertical-align: top; }
.rot__fair { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.live { max-width: 760px; margin: 0 auto; }
.live__board { display: flex; align-items: center; justify-content: center; gap: 18px; background: var(--navy-800); color: #fff; border-radius: 20px; padding: 18px; }
.live__board div { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.live__board span { font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb0d3; }
.live__board b { font-family: var(--display); font-weight: 400; font-size: 4.2rem; line-height: 1; }
.live__board em { font-style: normal; font-size: 2rem; color: #9fb0d3; }
.live__q { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 12px 0; }
.live__q button { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: .5rem; font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--navy-800); }
.live__q button small { color: var(--muted); font-weight: 700; }
.live__q button.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.live__q button.on small { color: #9fb0d3; }
.live__first { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-weight: 700; margin-bottom: 10px; }
.live__first button { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: .45rem .8rem; font-weight: 800; cursor: pointer; }
.live__first button.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.live__cp { text-align: center; font-weight: 700; padding: .55rem; border-radius: 12px; margin-bottom: 12px; }
.live__cp.us { background: var(--blue-100); color: var(--blue-600); }
.live__cp.them { background: var(--coral-100); color: var(--coral-600); }
.live__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.live__btn { border: 0; border-radius: 18px; padding: 22px 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; }
.live__btn b { font-family: var(--display); font-weight: 400; font-size: 2rem; text-transform: uppercase; }
.live__btn span { font-weight: 700; opacity: .9; }
.live__btn--us { background: var(--blue-600); }
.live__btn--them { background: var(--coral-500); }
.live__btn:active { transform: scale(.97); }
.live__miss { display: flex; gap: 8px; margin-top: 10px; }
.live__miss .btn { flex: 1; }
.live__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.live__stats div { background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); padding: 12px; text-align: center; }
.live__stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--navy-800); }
.live__stats span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.live__stats small { color: var(--muted); }
.stepper--auto { background: var(--blue-100); }
.stepper--auto > div { justify-content: center; }
.stepper--auto small { display: block; font-size: .62rem; color: var(--blue-600); font-weight: 700; margin-top: 2px; }
.savebar__status { color: #9fb0d3; font-weight: 700; font-size: .85rem; flex: 1; text-align: right; }
@media (max-width: 600px) { .live__stats { grid-template-columns: 1fr; } .live__board b { font-size: 3.4rem; } }

.live__miss .btn { min-width: 0; white-space: normal; }
@media (max-width: 700px) { .rot td { min-width: 0; width: 100%; } .rot__sel { font-size: 1rem; padding: .6rem; } }

.session__head > div:first-child { min-width: 0; flex: 1 1 240px; }
.session__head h2 { overflow-wrap: anywhere; }
.session__head .tag { white-space: normal; text-align: left; }
