/* Dashboard additions after v6: placement confirm, events tab, single funds figure, one-row footer logos. */
.vtile-money { grid-template-columns: 1fr; border-top: 0; padding-top: 2px; }
.vtile-money .net { display: flex; align-items: baseline; gap: var(--s2); }
.vtile-money .net small { font-size: 11px; }

.seg button.on { color: #fff !important; }
.seg button.ox.on { background: var(--blue) !important; } .seg button.ld.on { background: var(--purple) !important; }
.aq-row { flex-wrap: wrap; }
.confirm { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); margin: var(--s1) 0 2px var(--s5); padding: var(--s2) var(--s3); border-radius: 10px; font-size: 13px; animation: sx-in .18s ease; }
.confirm.ox { background: #EEF3FD; box-shadow: inset 3px 0 0 var(--blue); } .confirm.ld { background: #F4EEFA; box-shadow: inset 3px 0 0 var(--purple); }
.confirm-q { font-size: 14px; }
.confirm-facts { flex-basis: 100%; color: var(--muted); font-size: 12px; order: 2; }
.confirm-btns { margin-left: auto; display: flex; gap: var(--s2); align-items: center; }
.bulk-q { font-weight: 600; margin-left: var(--s1); }


/* activity: rows never overlap — name wraps, time stays in its own column */
.act li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--s2); align-items: start; }
.act .aq-club .nm { white-space: normal; }
.act time { padding-top: 2px; }
.sx-head { min-width: 0; } .sx-toggle { min-width: 0; } .sx-title { overflow: hidden; text-overflow: ellipsis; }
.sx-sum { flex-shrink: 1; min-width: 0; }

/* footer: SEIRC + partner logos in one row */
.foot .partners { display: flex; align-items: center; justify-content: center; gap: var(--s5); flex-wrap: wrap; }
.foot .partners .foot-logo { height: 44px; margin: 0; }
.foot .partners img { height: 40px; }
.partners-sep { width: 1px; height: 36px; background: var(--line); }
@media (max-width: 599px) { .partners-sep { display: none; } .foot .partners .foot-logo { flex-basis: 100%; height: 40px; object-fit: contain; } }

/* ---- staging, save bar, sheets, slim rows ---- */
.aq-row.staged { background: #FFFBEA; }
.seg button { min-width: 0; padding: var(--s2) var(--s3); }
.cnt { min-width: 30px; text-align: right; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.aq-club .sub { font-size: 11px; }
.savebar { position: sticky; bottom: 0; display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); background: #1B2440; color: #fff; border-radius: 0 0 14px 14px; animation: sheet-up .2s ease; font-size: 13px; }
.savebar > span { margin-right: auto; display: flex; align-items: center; gap: var(--s1); }
.savebar .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: var(--s1); }
.savebar .linkbtn { color: #B9C8FF; }
.savebar .btn { background: var(--gold, #F2B705); color: #1B2440; }
.emap-routes .route.staged { opacity: .95 !important; stroke-width: calc(var(--z) * 2.6px); stroke-dasharray: none; }
.emap-routes .route.staged.ox { stroke: var(--blue); } .emap-routes .route.staged.ld { stroke: var(--purple); }

.vtile-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.vtile-paid b { font-size: 15px; font-weight: 800; color: var(--ink); }
.vtile.ox .vtile-paid b { color: var(--blue); } .vtile.ld .vtile-paid b { color: var(--purple); }
.vtile-status, .vtile-legend, .vtile-money, .vtile-why { display: none !important; }

/* club sheet: info + drive toggle */
.sel-drive { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); }
.drive { display: flex; flex-direction: column; align-items: flex-start; gap: 0; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: var(--s2) var(--s3); cursor: pointer; font: inherit; min-height: 48px; }
.drive span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.drive b { font-size: 17px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.drive.ox span { color: var(--blue); } .drive.ld span { color: var(--purple); }
.drive.ox.cur { border-color: var(--blue); background: #F1F5FD; } .drive.ld.cur { border-color: var(--purple); background: #F6F2FB; }
.drive:not(.cur) { opacity: .7; } .drive:hover { opacity: 1; }

/* map highlight for the event picked on the Events page */
.ev-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--bg); }
.ev-bar .ox { background: var(--blue); } .ev-bar .ld { background: var(--purple); }
.emap.has-ev .club:not(.ev-hit), .emap.has-ev .emap-routes path { opacity: .1 !important; }
.emap.has-ev .club.ev-hit circle { r: calc(var(--z) * var(--evr) * 1px); stroke: #fff; filter: drop-shadow(0 0 calc(var(--z) * 5px) rgba(242,183,5,.8)); }

/* not-allocated pool, suggestion on the chip, gold split separator */
.sx.pool-sx { border-left: 4px solid #9AA3B8; } .sx.pool-sx .sx-title { color: var(--muted); } .sx.pool-sx .sx-head { background: #F6F7FA; }
.pool-list { padding-top: var(--s1); }
.seg button.sugg { position: relative; font-weight: 800; }
.seg button.sugg::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold, #F2B705); box-shadow: 0 0 0 1.5px #fff; }
.seg button.ox.sugg { color: var(--blue); } .seg button.ld.sugg { color: var(--purple); }
.seg button:not(.sugg) { color: var(--muted); background: #fff; }
.ev-bar { gap: 0; height: 12px; }
.ev-bar .gold { flex: 0 0 4px; background: var(--gold, #F2B705); box-shadow: 0 0 6px rgba(242,183,5,.8); }

/* ---- Entries CRM table ---- */
.crm-bar { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-bottom: var(--s2); }
.crm-bar .el-search { flex: 1 1 260px; }
.crm { background: #fff; border-radius: var(--r-card, 14px); box-shadow: var(--shadow); overflow: hidden; }
/* the entry form (coach.css) also uses .crm for its picker/roster grid: admin lists stay a plain block */
.admin .crm { display: block; }
.crm-head, .crm-row { display: grid; grid-template-columns: minmax(240px, 2.2fr) minmax(180px, 1.6fr) 80px 160px 100px 80px; gap: var(--s3); align-items: center; padding: var(--s2) var(--s4); }
.crm-head { background: #FAFBFD; border-bottom: 1px solid var(--line); }
.crm-head > * { font: 700 11px Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: none; border: 0; padding: 0; text-align: left; }
.crm-head button { cursor: pointer; } .crm-head .sorted { color: var(--blue); } .crm-head .sorted::after { content: " ↓"; }
.crm-head .num, .crm-row .num { text-align: right; justify-self: end; font-variant-numeric: tabular-nums; }
.crm-row { width: 100%; border: 0; border-bottom: 1px solid #EEF1F6; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .12s; }
.crm-row:last-child { border-bottom: 0; }
.crm-row:hover { background: #F5F8FE; }
.crm-row > span { min-width: 0; }
.crm-row small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-row .c-coach span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-row .c-ath { font-weight: 800; }
.crm-row .c-paid { font-weight: 700; }
.crm-row .c-date { color: var(--muted); font-size: 13px; }
.crm-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: var(--s2) var(--s1); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pager { display: flex; align-items: center; gap: var(--s2); font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .crm { background: none; box-shadow: none; }
  .crm-head { display: none; }
  .crm-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "club paid" "venue ath"; row-gap: var(--s1); border-radius: 12px; margin-bottom: var(--s2); box-shadow: var(--shadow); border: 0; }
  .crm-row .c-coach, .crm-row .c-date { display: none; }
  .crm-row .c-club { grid-area: club; } .crm-row .c-paid { grid-area: paid; } .crm-row .c-venue { grid-area: venue; } .crm-row .c-ath { grid-area: ath; }
  .crm-row .c-ath::after { content: " athletes"; font-weight: 500; color: var(--muted); font-size: 12px; }
}

/* ---- modal page ---- */
.modal-back { position: fixed; inset: 0; background: rgba(15,22,45,.45); backdrop-filter: blur(3px); z-index: 80; animation: fade-in .15s ease; }
@keyframes fade-in { from { opacity: 0; } }
.modal { position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(15,22,45,.35); overflow: hidden; outline: none; animation: modal-in .2s cubic-bezier(.2,.8,.2,1); }
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(.98); } }
.m-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s4); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FAFBFE, #fff); }
.m-head.ox { box-shadow: inset 0 4px 0 var(--blue); } .m-head.ld { box-shadow: inset 0 4px 0 var(--purple); }
.m-blade { width: 64px; flex: none; }
.m-id { min-width: 0; flex: 1; } .m-id h2 { margin: 0; font-size: 20px; font-weight: 800; } .m-id p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.m-chips { display: flex; gap: var(--s1); flex-wrap: wrap; }
.m-nav { display: flex; gap: var(--s1); }
.m-icon { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); font-size: 18px; cursor: pointer; }
.m-icon:hover { background: var(--pale); }
.m-tabs { display: flex; gap: 2px; padding: var(--s1) var(--s3) 0; border-bottom: 1px solid var(--line); }
.m-tabs button { border: 0; background: none; font: 600 14px Inter, sans-serif; color: var(--muted); padding: var(--s2) var(--s3); border-bottom: 2px solid transparent; cursor: pointer; display: inline-flex; gap: var(--s1); align-items: center; }
.m-tabs button.on { color: var(--ink); border-bottom-color: var(--blue); }
.m-body { padding: var(--s4) var(--s4); overflow-y: auto; flex: 1; }
.m-facts { margin: 0; display: grid; gap: var(--s3); }
.m-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: var(--s3); font-size: 14px; }
.m-facts dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 2px; }
.m-facts dd { margin: 0; }
.m-mail { list-style: none; margin: 0; padding: 0; }
.m-mail li { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s2) 0; border-bottom: 1px solid #F0F2F7; }
.m-mail i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; flex: none; background: var(--bg); }
.m-mail li.in i { background: var(--pale); color: var(--blue); }
.m-mail a { text-decoration: none; color: inherit; min-width: 0; } .m-mail b { display: block; font-size: 14px; } .m-mail small { color: var(--muted); font-size: 12px; }
.m-foot { display: flex; gap: var(--s2); flex-wrap: wrap; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: #FAFBFD; }
.m-foot .m-map { margin-left: auto; }
@media (max-width: 599px) {
  .modal { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; animation: sheet-up .22s ease; }
  .m-head { flex-wrap: wrap; } .m-facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- events page ---- */
.dash-line .ox-t b { color: var(--blue); } .dash-line .ld-t b { color: var(--purple); }
.btn.ghosty { color: var(--blue); } .btn.ghosty:hover { background: var(--pale); }

/* ===== v7: three-segment strip, drawers, activity button, search like the segment headers ===== */
.dash.solo { display: block; }
.dash.solo .emap-stage > svg { max-height: calc(100vh - 290px); min-height: 420px; aspect-ratio: 16 / 8.5; }
.vstrip.three { grid-template-columns: 1fr 1fr 1fr; }
.vtile.pool .vtile-head { background: linear-gradient(100deg, #5D6782, #7A849D); }
.vtile.pool .vtile-body { background: #F4F5F8; }
.vtile.pool { color: #5D6782; }
.vtile.pool .vtile-paid b { color: #3E475F; }
.vtile-bar .pool-fill { background: repeating-linear-gradient(135deg, #AEB5C6 0 4px, #CDD2DD 4px 8px); border-radius: 99px; }
.vtile.pool.on { box-shadow: inset 0 0 0 2px #5D6782; }
.vtile { cursor: pointer; }

.dash-line { align-items: center; }
.act-btn { display: inline-flex; align-items: center; gap: var(--s1); border: 0; background: #fff; box-shadow: var(--shadow); border-radius: 999px; padding: var(--s1) var(--s3); font: 600 13px Inter, sans-serif; color: var(--ink); cursor: pointer; }
.act-btn:hover, .act-btn.on { background: var(--ink); color: #fff; }
.att-badge { background: #E3A008; color: #fff; border-radius: 99px; font-size: 11px; font-weight: 800; padding: 0 var(--s2); }

/* search bar dressed like the segment headers */
.emap-panel { background: linear-gradient(100deg, #1B2440, #2B3760); border-radius: 12px; box-shadow: 0 8px 24px rgba(15,22,45,.28); }
.emap-search > svg { stroke: rgba(255,255,255,.75); }
.emap-search input { background: transparent; color: #fff; font-weight: 600; }
.emap-search input::placeholder { color: rgba(255,255,255,.65); font-weight: 500; }
.emap-clear { background: rgba(255,255,255,.14); color: #fff; }
.emap-results { background: #fff; border-top: 0; }

/* semi-modal side drawer */
.drawer-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(15,22,45,.12); animation: fade-in .15s ease; }
.drawer { position: fixed; z-index: 71; top: 72px; right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(15,22,45,.3); overflow: hidden; outline: none; animation: drawer-in .22s cubic-bezier(.2,.8,.2,1); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); color: #fff; }
.drawer.ox .drawer-head { background: linear-gradient(100deg, #1247BC, #2C62D4); }
.drawer.ld .drawer-head { background: linear-gradient(100deg, #6B3FA0, #8657BE); }
.drawer.pool .drawer-head { background: linear-gradient(100deg, #5D6782, #7A849D); }
.drawer.activity .drawer-head { background: linear-gradient(100deg, #1B2440, #2B3760); }
.drawer-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold, #F2B705); box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(242,183,5,.8); flex: none; }
.drawer-id { flex: 1; min-width: 0; } .drawer-id h2 { margin: 0; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.drawer-id p { margin: 2px 0 0; font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-head .m-icon { background: rgba(255,255,255,.16); color: #fff; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s2) var(--s3) var(--s3); }
.drawer-foot { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border-top: 1px solid var(--line); background: #FAFBFD; }
.df-note { margin-right: auto; font-size: 13px; color: var(--muted); } .df-note b { color: var(--ink); }
.btn.gold { background: var(--gold, #F2B705); color: #1B2440; } .btn.gold:hover { background: #E0A800; }
.feed-sec { margin: var(--s1) 0 var(--s3); }
.feed-sec h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: var(--s2) 2px var(--s1); display: flex; gap: var(--s2); align-items: center; }
.feed-sec.warn h3 { color: var(--warn); } .feed-sec h3 span { background: var(--warn-bg); color: var(--warn); border-radius: 99px; padding: 0 var(--s2); font-size: 11px; }
.feed-kind { display: flex; gap: var(--s1); align-items: center; font-size: 12px; font-weight: 700; color: var(--ink); margin: var(--s2) 2px 2px; }
.act-ico.pay { background: var(--warn-bg); color: var(--warn); }
@media (max-width: 899px) {
  .vstrip.three { grid-template-columns: 1fr 1fr 1fr; }
  .vstrip.three .vtile-line span:first-child { display: none; }
  .vtile.pool .vtile-id b { font-size: 12px; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 75vh; border-radius: 16px 16px 0 0; animation: sheet-up .22s ease; }
}

/* waiting clubs are grey on the map (dot and faint route) until a venue is chosen */
.emap-routes .none { stroke: #8E97AD; }
.emap-clubs .club.none circle, .emap-clubs .club.soft.none circle { fill: #9AA3B8; }
.emap-routes .route.suggested.none { opacity: .35; stroke-dasharray: .012 .018; animation: none; stroke-dashoffset: 0; }

/* search text set like the segment headers */
.emap-search input { font: 800 13px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.emap-search input::placeholder { font: 700 12px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* segments line up exactly */
.vstrip { align-items: stretch; }
.vtile { margin: 0; border-radius: 0; }
.vtile-head { min-height: 58px; box-sizing: border-box; }
.drawer { top: 16px; }
@media (min-width: 900px) { .drawer { top: 80px; } }

/* ===== v8: drawers inside the map, countdown pop-up, fits a desktop screen ===== */
.vtile.pool { padding: 0; }
.emap-stage .drawer.inline { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(380px, calc(100% - 24px)); z-index: 6;
  border-radius: 14px; box-shadow: 0 12px 40px rgba(15,22,45,.25); animation: drawer-in .2s cubic-bezier(.2,.8,.2,1); }
.emap.has-drawer .emap-sheet { right: calc(min(380px, 100% - 24px) + 24px); }
/* the whole dashboard fits in one desktop screen: header 60, tabs+line ~96, strip ~124, margins */
.dash.solo .emap-stage > svg { aspect-ratio: auto; height: calc(100vh - 340px); min-height: 380px; max-height: 640px; }

.cd-anchor { position: relative; margin-left: auto; }
.dash-line .close { border: 0; cursor: pointer; font: 600 13px Inter, sans-serif; }
.dash-line .close.on, .dash-line .close:hover { background: var(--blue); color: #fff; }
.dash-line .act-btn { margin-left: 0; }
.cd-scrim { position: fixed; inset: 0; z-index: 69; }
.cd { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 360px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(15,22,45,.3); overflow: hidden; animation: modal-pop .18s ease; color: var(--ink); }
@keyframes modal-pop { from { opacity: 0; transform: translateY(-6px); } }
.cd-race { background: linear-gradient(110deg, #1247BC 0%, #2C62D4 45%, #6B3FA0 100%); color: #fff; padding: var(--s4) var(--s4); }
.cd-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.cd-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin-top: var(--s2); }
.cd-clock div { background: rgba(255,255,255,.14); border-radius: 10px; padding: var(--s2) var(--s1); text-align: center; }
.cd-clock b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-clock small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.cd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.cd-row > div { background: #fff; padding: var(--s3) var(--s4); }
.cd-row .cd-label { color: var(--muted); opacity: 1; }
.cd-row b { display: block; font-size: 18px; font-weight: 800; margin-top: 2px; } .cd-row small { font-size: 12px; color: var(--muted); }
.cd-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: var(--s3) var(--s2) var(--s1); text-align: center; }
.cd-stats b { display: block; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; } .cd-stats small { font-size: 11px; color: var(--muted); }
.cd-foot { margin: 0; padding: var(--s1) var(--s4) var(--s3); font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 599px) { .cd { position: fixed; left: 12px; right: 12px; width: auto; top: 120px; } }

/* ===== Material 3 layer for sheets: buttons, lists, tabs, cards (state layers on hover) ===== */
.mbtn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); height: 40px; padding: 0 var(--s4); border-radius: 20px; border: 0;
  font: 600 14px/1 Inter, sans-serif; letter-spacing: .01em; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; transition: box-shadow .15s; }
.mbtn::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .15s; }
.mbtn:hover::after { opacity: .08; } .mbtn:active::after { opacity: .12; }
.mbtn:disabled { opacity: .38; cursor: default; }
.mbtn.sm { height: 32px; padding: 0 var(--s3); font-size: 13px; border-radius: 16px; }
.mbtn.filled { background: var(--blue); color: #fff; } .mbtn.filled:hover { box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.mbtn.filled.ox { background: var(--blue); } .mbtn.filled.ld { background: var(--purple); }
.mbtn.filled.gold { background: var(--gold, #F2B705); color: #1B2440; }
.mbtn.tonal { background: #DCE5F8; color: #0E2F7A; }
.mbtn.outlined { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px #8E99B5; }
.mbtn.text { background: transparent; color: var(--blue); padding: 0 var(--s3); }

/* side sheet top app bar + tabs */
.drawer.neutral .drawer-head { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer.neutral .drawer-head .m-icon { background: transparent; color: var(--ink); }
.drawer.neutral .drawer-head .m-icon:hover { background: rgba(27,36,64,.08); }
.drawer-head { min-height: 64px; box-sizing: border-box; }
.drawer-id h2 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.drawer-head .m-icon.back { font-size: 18px; }
.drawer-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 var(--s2); }
.drawer-tabs:empty { display: none; }
.drawer-tabs button { flex: 1; border: 0; background: none; height: 44px; font: 600 13px Inter, sans-serif; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.drawer-tabs button:hover { background: rgba(27,36,64,.04); }
.drawer-tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }
.drawer-body { padding: var(--s1) var(--s3) var(--s3); }

/* M3 list items (compact two-line) */
.ml-list { list-style: none; margin: 0; padding: 0; }
.ml-item { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 48px; padding: var(--s1) var(--s2); border: 0; background: none; border-radius: 10px;
  font: inherit; color: inherit; text-align: left; position: relative; }
button.ml-item { cursor: pointer; } button.ml-item:hover { background: rgba(18,71,188,.06); }
.ml-list.dense .ml-item { min-height: 40px; padding: var(--s1) var(--s2); gap: var(--s2); }
.ml-lead { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #EEF1F7; color: var(--ink); font-weight: 700; font-size: 12px; }
.ml-list.dense .ml-lead { width: 26px; height: 26px; font-size: 11px; }
.ml-lead.num { background: #EEF1F7; font-variant-numeric: tabular-nums; }
.ml-lead.pay { background: var(--ok-bg); color: var(--ok); } .ml-lead.in { background: #DCE5F8; color: var(--blue); } .ml-lead.out { background: #EEF1F7; color: var(--muted); }
.ml-text { flex: 1; min-width: 0; }
.ml-text b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-text small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-list.dense .ml-text b { font-size: 13px; } .ml-list.dense .ml-text small { font-size: 11px; }
.ml-trail { font-size: 12px; color: var(--muted); white-space: nowrap; display: flex; gap: var(--s1); align-items: center; font-variant-numeric: tabular-nums; }
.ml-trail b { color: var(--ink); font-size: 14px; }
.ibtn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--blue); }
.ibtn:hover { background: rgba(18,71,188,.08); }

/* activity groups */
.feed-kind { width: 100%; border: 0; background: none; cursor: pointer; padding: var(--s1) var(--s1); font: 700 12px Inter, sans-serif; color: var(--ink); display: flex; gap: var(--s2); align-items: center; border-radius: 8px; }
.feed-kind:hover { background: rgba(27,36,64,.04); }
.feed-kind .sx-chev { transform: rotate(-45deg); } .feed-kind .sx-chev.open { transform: rotate(45deg); }
.feed-sum { margin-left: auto; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.feed-sec h3 { margin-top: var(--s3); }

/* club card */
.cc-id { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s1) var(--s2); }
.cc-blade { width: 64px; flex: none; } .cc-blade.none { height: 20px; background: var(--bg); border-radius: 4px; }
.cc-id h3 { margin: 0; font-size: 18px; font-weight: 800; } .cc-id p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.cc-tabs { display: flex; gap: var(--s1); margin: var(--s1) 0 var(--s1); }
.cc-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 8px; height: 32px; padding: 0 var(--s3); font: 600 13px Inter, sans-serif; color: var(--muted); cursor: pointer; }
.cc-tabs button.on { background: #DCE5F8; border-color: #DCE5F8; color: #0E2F7A; }
.cc-sec { padding: var(--s2) 0; border-top: 1px solid #F0F2F7; }
.cc-sec h4 { margin: var(--s1) var(--s1) var(--s1); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cc-status { display: flex; align-items: center; gap: var(--s2); justify-content: space-between; padding: var(--s2) var(--s3); border-radius: 12px; background: #F4F5F8; }
.cc-status.ox { background: #E8EEFB; color: var(--blue); } .cc-status.ld { background: #F0E9F8; color: var(--purple); }
.cc-status b { font-size: 14px; }
.cc-choose { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s2); }
.cc-drive { margin: var(--s2) var(--s1) 0; font-size: 12px; color: var(--muted); }
.cc-actions { display: flex; flex-wrap: wrap; gap: var(--s2); padding: var(--s3) 0 var(--s1); border-top: 1px solid #F0F2F7; }

/* payment + email views */
.pv-amt { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s1) 2px; } .pv-amt b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pv-sub { margin: 0 var(--s1) var(--s2); font-size: 12px; color: var(--muted); }
.pv-h { margin: var(--s3) var(--s1) var(--s1); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ev-subj { margin: var(--s3) var(--s1) var(--s1); font-size: 16px; font-weight: 800; }
.ev-atts { display: flex; gap: var(--s1); flex-wrap: wrap; margin: var(--s1) var(--s1) var(--s2); }
.chip-a { font-size: 12px; text-decoration: none; padding: var(--s1) var(--s2); border-radius: 8px; border: 1px solid var(--line); color: var(--ink); }
.ev-frame { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* countdown sheet */
.cdp-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.cdp-clock div { background: #F4F6FB; border-radius: 12px; padding: var(--s2) var(--s1); text-align: center; }
.cdp-clock b { display: block; font-size: 24px; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cdp-clock small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cdp-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.cdp-stats b { display: block; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; } .cdp-stats small { font-size: 11px; color: var(--muted); }

/* bottom card actions */
.sel-club { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.sel-actions { display: flex; flex-direction: column; gap: var(--s1); align-items: stretch; }
.sel-status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: center; color: var(--muted); }
.sel-status.ox { color: var(--blue); } .sel-status.ld { color: var(--purple); }
@media (max-width: 899px) { .sel-club { grid-template-columns: 1fr; } .sel-actions { flex-direction: row; flex-wrap: wrap; align-items: center; } }

/* ===== One type scale for sheets, cards and the map card (Material roles) =====
   title 17/600 · headline 14/600 · body 13/400 · meta 12/400 · label 11/700 caps · numeral 16–24/700 tabular */
.drawer-id h2 { font: var(--t-label); font-size: 13px; letter-spacing: .12em; }
.cc-id h3, .ev-subj, .sel-id h3 { font: var(--t-title); margin: 0; }
.cc-id p, .pv-sub, .sel-id p { font: var(--t-meta); color: var(--muted); }
.ml-text b, .cc-status b, .feed-kind { font: var(--t-head); }
.ml-text small, .ml-trail, .cc-drive { font: var(--t-meta); }
.ml-list.dense .ml-text b { font: var(--t-head); font-size: 13px; } .ml-list.dense .ml-text small { font: var(--t-meta); font-size: 11px; }
.cc-sec h4, .pv-h, .sel-status, .drive span, .cdp-clock small, .cd-label, .feed-sec h3 { font: var(--t-label); letter-spacing: .1em; text-transform: uppercase; }
.cc-tabs button, .drawer-tabs button { font: var(--t-head); font-size: 13px; }
.drive b, .ml-trail b, .cdp-stats b { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.pv-amt b { font-size: 24px; font-weight: 700; }

/* neutral buttons everywhere in sheets: white, ink text, hairline; venue colour only where it means a venue */
.mbtn.neutral { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #CDD3DF; font: 600 13px/1 Inter, sans-serif; height: 36px; padding: 0 var(--s4); border-radius: 18px; }
.mbtn.neutral.sm { height: 30px; padding: 0 var(--s3); font-size: 12px; border-radius: 15px; }
.mbtn.neutral:hover { box-shadow: inset 0 0 0 1px #9AA3B8; }
.cc-actions { gap: var(--s1); }
.cc-status .mbtn.neutral { background: rgba(255,255,255,.75); }
.ibtn { color: var(--ink); }

/* map bottom card: oar + code | name + athletes · venue | drives | status + view details */
.sel-club { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: var(--s4); }
.sel-who { gap: var(--s3); }
.sel-oar { display: flex; flex-direction: column; align-items: center; gap: var(--s1); flex: none; }
.sel-oar .sel-blade { width: 56px; } .sel-oar .sel-blade.none { height: 16px; background: var(--bg); border-radius: 4px; }
.sel-code { font: var(--t-label); letter-spacing: .14em; color: var(--muted); }
.sel-id h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-id p { margin: 2px 0 0; }
.sel-actions { align-items: stretch; min-width: 130px; }
.sel-status { text-align: center; }
@media (max-width: 899px) { .sel-club { grid-template-columns: 1fr; } .sel-actions { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ===== v9: venue tiles (the earlier coloured look) with placements in place of money ===== */
.vtile-line { gap: var(--s2); }
.vtile-line > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtile-paid { white-space: nowrap; }
.vtile-go { display: inline-flex; align-items: center; font-weight: 600; color: #3E475F; white-space: nowrap; }
.vtile-go .ic { width: 16px; height: 16px; }
.vtile:focus-visible { outline: none; box-shadow: var(--ring); z-index: 1; }
.gold-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold, #F2B705); box-shadow: 0 0 0 2px rgba(242,183,5,.25); flex: none; }

/* ===== v10: map interactions, venue sheet ===== */
/* filter chips on the map, under the search */
.emap-chips { position: absolute; left: 12px; top: 64px; z-index: 3; display: flex; flex-wrap: wrap; gap: var(--s1); max-width: calc(100% - 24px); animation: m-arrive var(--mo-3, 240ms) var(--e-settle, ease) both; }
.emap-chips .chip { height: 30px; box-shadow: 0 1px 3px rgba(27,36,64,.1); }
.emap-chips .chip.on { background: #1B2440; border-color: #1B2440; color: #fff; }
.emap-chips .chip.ox.on { background: var(--blue); border-color: var(--blue); } .emap-chips .chip.ld.on { background: var(--purple); border-color: var(--purple); }
.emap-chips .chip.none.on { background: #5D6782; border-color: #5D6782; }
.emap-chips .chip.on .dot { background: #fff; }
.emap-chips .chip.ev { background: #FFF6D6; border-color: var(--gold, #F2B705); color: var(--ink); }
.emap-chips .chip.ev span { margin-left: 2px; font-size: 15px; line-height: 1; color: var(--muted); }
.emap.has-drawer .emap-chips { max-width: calc(100% - min(380px, 100% - 24px) - 48px); }
.emap.only-none .emap-routes path:not(.none), .emap.only-none .club:not(.none) { opacity: .08 !important; transition: opacity .3s; }
.emap.only-none .club.none circle { r: calc(var(--z) * (var(--r) + 1.5) * 1px); }
.emap-tip .tip-ev { margin-top: 2px; color: var(--ink); font-size: 11px; }
@media (max-width: 899px) {
  .emap-chips { position: static; order: -1; align-self: stretch; width: auto; flex-direction: row; padding: var(--s2) var(--s3); max-width: none !important; background: var(--card); border-bottom: 1px solid var(--line); }
  .emap-chips .chip { white-space: nowrap; }
}
@media (max-width: 599px) {
  .vstrip.three .vtile-head { flex-wrap: wrap; gap: 2px var(--s1); align-items: flex-start; padding: var(--s2); }
  .vstrip.three .vtile-id { flex: 1 1 0; min-width: 0; }
  .vstrip.three .vtile-id b { font-size: 12px; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vstrip.three .vtile-id small { display: none; }
  .vstrip.three .vtile-fig { flex-basis: 100%; margin-left: 0; text-align: left; padding-left: 20px; }
  .vstrip.three .vtile-fig b { font-size: 18px; }
  .vstrip.three .vtile-fig small { font-size: 10px; margin-left: 2px; }
  .vtile-paid { font-size: 11px; }
}

/* venue sheet (dashboard Venues tab and the map's venue details) */
.vp { --vc: var(--blue); --vc-pale: #F3F6FD; display: flex; flex-direction: column; gap: var(--s3); }
.vp.ld { --vc: var(--purple); --vc-pale: #F7F3FC; }
.vp-head { display: flex; align-items: center; gap: var(--s2); }
.vp-pin { width: 12px; height: 12px; margin-left: 5px; border-radius: 50%; flex: none; background: var(--vc); box-shadow: 0 0 0 3px var(--vc-pale), 0 0 0 4.5px var(--vc); }
.vp-id { flex: 1; min-width: 0; } .vp-id h3 { margin: 0; font: var(--t-title); color: var(--vc); } .vp-id p { margin: 2px 0 0; font: var(--t-meta); color: var(--muted); }
.vp-id p:only-child { margin: 0; font: var(--t-body, 400 13px/1.4 Inter, sans-serif); font-size: 13px; color: var(--ink); }
.vp-head .mbtn { flex: none; gap: var(--s1); } .vp-head .ic, .vp-foot .ic { width: 16px; height: 16px; }
.vp-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.vp-times > div { display: flex; flex-direction: column; padding: var(--s2) var(--s3); background: var(--vc-pale); min-width: 0; }
.vp-times small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.vp-times b { font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.vp-note { display: flex; flex-direction: column; gap: 2px; margin: calc(var(--s2) * -1) 0 0; font: var(--t-meta); color: var(--muted); } .vp-note b { color: var(--ink); font-weight: 600; } .vp-note:empty { display: none; }
.vp-floor { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); border: 1px solid var(--line); border-radius: 12px; }
.vp-floor-head { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; font: var(--t-meta); color: var(--muted); }
.vp-floor-head b { color: var(--vc); font-size: 15px; }
.vp-ergs { display: flex; flex-direction: column; gap: 4px; }
.vp-row { display: grid; grid-template-columns: 16px repeat(10, 1fr); gap: 4px; align-items: center; }
.vp-row-l { font: 700 10px Inter, sans-serif; font-style: normal; color: var(--muted); }
.vp-erg { height: 12px; border-radius: 3px; background: var(--vc); opacity: .75; animation: m-arrive var(--mo-3, 240ms) var(--e-settle, ease) both; animation-delay: calc(var(--i) * 6ms); }
.vp-links { display: flex; flex-wrap: wrap; gap: var(--s1); }
.vp-links a { display: inline-flex; align-items: center; gap: var(--s1); padding: 5px var(--s3) 5px var(--s2); border-radius: var(--r-pill); background: var(--pale); color: var(--blue); font: 600 12px Inter, sans-serif; text-decoration: none; }
.vp-links a:hover { background: var(--light); } .vp-links .ic { width: 16px; height: 16px; }
.vp-sec h4 { display: flex; align-items: center; gap: var(--s1); margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--ink); }
.vp-sec h4 .ic { width: 18px; height: 18px; color: var(--vc); }
.vp-sec p { margin: 0; padding-left: 22px; font-size: 13px; }
.vp-text { white-space: pre-line; }
.vp-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; padding-top: var(--s2); border-top: 1px solid var(--line); }
.vp-foot small { font: var(--t-meta); color: var(--muted); }
.vp-foot .mbtn { gap: var(--s1); }
@media (prefers-reduced-motion: reduce) { .vp-erg, .emap-chips { animation: none; } }

/* venue edit page: collapsible groups, a sticky save bar */
.vform { --vc: var(--blue); display: flex; flex-direction: column; gap: var(--s3); }
.vform.ld { --vc: var(--purple); }
.vgroup { padding: 0; overflow: hidden; }
.vgroup > summary { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); cursor: pointer; list-style: none; font: var(--t-head); font-size: var(--fs-md); }
.vgroup > summary::-webkit-details-marker { display: none; }
.vgroup > summary > .ic { width: 20px; height: 20px; color: var(--vc); }
.vgroup > summary span { flex: 1; }
.vgroup > summary .vgroup-chev { color: var(--muted); transition: transform var(--mo-2, 200ms) var(--e-settle, ease); }
.vgroup:not([open]) > summary .vgroup-chev { transform: rotate(-90deg); }
.vgroup > summary:hover { background: rgba(27,36,64,.03); }
.vgroup-body { display: flex; flex-direction: column; gap: var(--s3); padding: 0 var(--s4) var(--s4); }
.vform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 var(--s3); }
.vform-grid:empty { display: none; }
.vform-grid.long { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.vform-grid .field:has(input.wide) { grid-column: 1 / -1; }
.vform textarea { width: 100%; min-height: 84px; resize: vertical; font: inherit; }
.verg { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); align-items: start; }
.verg .field { margin: 0; }
.verg-step input { width: 64px; border: 0; background: none; text-align: center; font: 700 18px Inter, sans-serif; font-variant-numeric: tabular-nums; -moz-appearance: textfield; padding: 0; }
.verg-step input::-webkit-inner-spin-button, .verg-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.verg-preview { min-width: 200px; display: flex; flex-direction: column; gap: 4px; align-self: center; max-height: 132px; overflow: hidden; padding: var(--s2); border: 1px solid var(--line); border-radius: 12px; }
.verg-preview .vp-erg { background: var(--vc); }
.verg-sum { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--s1); margin: 0; font: var(--t-meta); color: var(--muted); }
.verg-sum .notice { margin: 0; }
.vpeople { display: flex; flex-direction: column; gap: var(--s2); }
.vpeople > .muted { margin: 0; }
.vperson { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr auto; gap: var(--s2); align-items: center; margin: 0; padding: 0; border: 0; min-width: 0; }
.vperson input { min-width: 0; width: 100%; }
.vperson .m-icon { display: grid; place-items: center; background: transparent; color: var(--muted); }
.vperson .m-icon:hover { background: var(--err-bg); color: var(--err); }
.vperson .ic { width: 18px; height: 18px; }
.vpeople-add { align-self: flex-start; gap: var(--s1); } .vpeople-add .ic { width: 18px; height: 18px; }
.vform-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 calc(var(--s2) * -1);
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--card, #fff); border-radius: 14px 14px 0 0; box-shadow: 0 -6px 20px rgba(27,36,64,.1);
  transition: background var(--mo-2, 200ms) ease; }
.vform-bar small { margin-right: auto; font: var(--t-meta); color: var(--muted); }
.vform-bar.dirty { background: #FFF8E1; } .vform-bar.dirty small { color: #6B5200; font-weight: 600; }
.vform-bar .notice { margin: 0; flex-basis: 100%; order: -1; }
@media (max-width: 599px) {
  .verg { grid-template-columns: 1fr; }
  .vperson { grid-template-columns: 1fr 1fr auto; padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
  .vperson input:nth-of-type(3), .vperson input:nth-of-type(4) { grid-row: 2; }
  .vperson .m-icon { grid-row: 1; grid-column: 3; }
  .vperson input:nth-of-type(4) { grid-column: 2 / 4; }
}

/* venue sheet: contacts, what's still missing */
.vp-people { list-style: none; margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; }
.vp-people li { display: flex; align-items: center; gap: var(--s1); padding: var(--s1) 0; border-bottom: 1px solid var(--line); }
.vp-people li:last-child { border-bottom: 0; }
.vp-person { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.vp-person small { font: var(--t-meta); color: var(--muted); }
.vp-people .m-icon { display: grid; place-items: center; width: 32px; height: 32px; color: var(--vc); background: var(--vc-pale); text-decoration: none; }
.vp-people .m-icon .ic { width: 16px; height: 16px; }
.vp-missing { display: flex; align-items: flex-start; gap: var(--s1); margin: 0; font: var(--t-meta); color: var(--muted); }
.vp-missing .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* venue tabs on the map (All · Oxford · London), before the filter chips */
.emap-tabs { display: inline-flex; padding: 3px; gap: 2px; background: #fff; border-radius: var(--r-pill); box-shadow: 0 1px 3px rgba(27,36,64,.12); }
.emap-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); background: none;
  font: 600 13px Inter, sans-serif; color: var(--ink); cursor: pointer; transition: background var(--mo-2, 200ms) ease, color var(--mo-2, 200ms) ease; }
.emap-tabs button:hover:not(.on) { background: rgba(27,36,64,.06); }
.emap-tabs button.on { background: #1B2440; color: #fff; }
.emap-tabs button.ox.on { background: var(--blue); } .emap-tabs button.ld.on { background: var(--purple); }
.emap-tabs button.on .dot { background: #fff; }
.emap-tabs button:focus-visible { outline: none; box-shadow: var(--ring); }
.emap-chips { align-items: center; }
/* on a phone the sheet beside the map rises from the bottom, like the club panel */
@media (max-width: 899px) {
  .emap-stage .drawer.inline { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 60vh; z-index: 60;
    border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(27,36,64,.25); animation: drawer-rise .24s cubic-bezier(.2,.8,.2,1); }
  .emap-stage .drawer.inline .drawer-foot { padding-bottom: calc(var(--s2) + env(safe-area-inset-bottom)); }
  .emap-tabs { flex: none; }
}
/* the club card beside the map already says what the bottom sheet would */
.emap:has(.drawer.inline .cc) .emap-sheet:not(.ev) { display: none; }

/* club peek in the map's bottom sheet: stacked, then one row when the sheet is wide (container query) */
.emap-sheet:has(.pk) { container-type: inline-size; padding: var(--s3) var(--s7) var(--s3) var(--s3); }
.pk { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.pk-who { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.pk-blade { width: 52px; flex: none; } .pk-blade.none { height: 14px; background: var(--bg); border-radius: 4px; }
.pk-id { flex: 1; min-width: 0; }
.pk-id h3 { margin: 0; font: var(--t-title); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-id p { margin: 2px 0 0; display: flex; align-items: center; gap: var(--s2); font: var(--t-meta); color: var(--muted); }
.pk-code { font: var(--t-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.pk-chip { flex: none; align-self: flex-start; padding: 4px var(--s3); border-radius: var(--r-pill); font: 600 12px/1.2 Inter, sans-serif; white-space: nowrap;
  background: #EEF0F5; color: #3E475F; }
.pk-chip.ox { background: #E4ECFB; color: var(--blue); } .pk-chip.ld { background: #EFE7F8; color: var(--purple); } .pk-chip.staged { background: #FFF6D6; color: #6B5200; }
.pk-row { display: flex; align-items: stretch; gap: var(--s2); }
.pk-drive { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); min-width: 0; }
.pk-drive .drive { min-width: 0; min-height: 52px; }
.pk-drive .drive b { white-space: nowrap; font-size: 16px; }
.pk-go { flex: none; align-self: center; height: 40px; padding: 0 var(--s4); }
@container (min-width: 720px) {
  .pk { flex-direction: row; align-items: center; gap: var(--s4); }
  .pk-who { flex: 1 1 0; }
  .pk-row { flex: 1.3 1 0; }
}
@container (max-width: 360px) {
  .pk-row { flex-direction: column; }
  .pk-go { align-self: stretch; }
}

/* side sheets slide in fully opaque over the scrim (no see-through fade over the page) */
@keyframes drawer-slide { from { transform: translateX(24px); } }
@keyframes drawer-rise { from { transform: translateY(24px); } }
.drawer:not(.inline) { background: var(--card, #fff); animation-name: drawer-slide; }
.drawer-scrim { background: rgba(15,22,45,.28); }
@media (max-width: 899px) { .drawer:not(.inline) { animation-name: drawer-rise; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }

/* Needs attention (ActivityFeed): unread first with a dot, one action each, ⋯ for mark read / silence the kind. */
.att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.att-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--s3); row-gap: var(--s2); align-items: start; padding: var(--s2); border-radius: var(--r-ctl); transition: background var(--mo-2, .2s) ease, opacity var(--mo-2, .2s) ease; }
.att-item:hover { background: #F5F8FE; }
.att-item.read { opacity: .78; }
.att-lead { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #EEF1F7; color: var(--ink); }
.att-lead .ic { width: 18px; height: 18px; }
.att-lead.k-payments { background: var(--warn-bg); color: var(--warn); } .att-lead.k-mail { background: #DCE5F8; color: var(--blue); } .att-lead.k-entries { background: var(--ok-bg); color: var(--ok); }
.att-dot { position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--card); }
.att-text { min-width: 0; display: grid; gap: 1px; }
.att-text b { font: var(--t-head); color: var(--ink); overflow-wrap: anywhere; }
.att-item.unread .att-text b { font-weight: 700; }
.att-text small { font: var(--t-meta); color: var(--muted); overflow-wrap: anywhere; }
.att-acts time { margin-left: auto; font: var(--t-meta); color: var(--muted); white-space: nowrap; }
.att-acts { grid-column: 2; display: flex; gap: var(--s2); align-items: center; }
.att-acts .mbtn { white-space: nowrap; text-decoration: none; }
.att-more { position: relative; grid-column: 3; grid-row: 1; margin: -4px -4px 0 0; }
.att-more summary { list-style: none; cursor: pointer; } .att-more summary::-webkit-details-marker { display: none; }
.att-menu { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 220px; display: grid; padding: var(--s1) 0; background: var(--card); border-radius: var(--r-ctl); box-shadow: 0 6px 24px rgba(27,36,64,.18); animation: att-pop .15s ease; }
.att-menu button, .att-menu a { display: flex; gap: var(--s2); align-items: center; padding: var(--s2) var(--s3); border: 0; background: none; font: inherit; font-size: var(--fs-sm); color: var(--ink); text-align: left; cursor: pointer; text-decoration: none; }
.att-menu button:hover, .att-menu a:hover { background: #F5F8FE; }
.att-menu .ic { width: 18px; height: 18px; color: var(--muted); }
@keyframes att-pop { from { opacity: 0; transform: translateY(-4px); } }
.feed-sec.att h3 .att-all, .att-all { margin-left: auto; display: inline-flex; gap: var(--s1); align-items: center; border: 0; background: none; padding: 2px var(--s1); font: var(--t-meta); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--blue); cursor: pointer; border-radius: 6px; }
.att-all .ic { width: 16px; height: 16px; }
.att-all:hover { background: rgba(18,71,188,.08); }
.att-none { margin: var(--s1) 2px var(--s2); font: var(--t-meta); color: var(--muted); }
.att-list.read { margin-top: var(--s1); }
.att-muted { margin-top: var(--s2); }
.att-muted .att-all { margin-left: 0; color: var(--muted); }
.att-muted ul { list-style: none; margin: var(--s1) 0 0; padding: 0; }
.att-muted li { display: flex; gap: var(--s2); align-items: center; padding: 2px var(--s2); font-size: var(--fs-sm); }
.att-muted li span { margin-right: auto; } .att-muted li .ic { width: 18px; height: 18px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .att-menu { animation: none; } .att-item { transition: none; } }
/* The refund the dashboard opened, and a club's coaches card reached by #coaches. */
.rf-item.focus { background: #FFF8E6; box-shadow: inset 3px 0 0 var(--gold, #F2B705); }
#coaches:target { box-shadow: 0 0 0 2px var(--gold, #F2B705), var(--shadow); }

/* Phone: the floating side sheet becomes a bottom sheet (the generic `.drawer { top: 16px }` above used to pin it to
   the top). Up to 92% of the screen, its own scroll, clear of the home indicator; the page behind doesn't scroll. */
@media (max-width: 899px) {
  .drawer:not(.inline) { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: var(--r-sheet) var(--r-sheet) 0 0;
    animation: drawer-up var(--mo-3) var(--e-settle); box-shadow: 0 -8px 40px rgba(15,22,45,.22); }
  .drawer:not(.inline) .drawer-body { min-height: 0; overscroll-behavior: contain; padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom)); }
  .drawer:not(.inline) .drawer-foot { padding-bottom: calc(var(--s2) + env(safe-area-inset-bottom)); }
  .drawer:not(.inline) .drawer-head { padding-left: max(var(--s4), env(safe-area-inset-left)); padding-right: max(var(--s4), env(safe-area-inset-right)); }
}
@keyframes drawer-up { from { transform: translateY(100%); } }
html:has(.drawer-scrim), body:has(.drawer-scrim) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer:not(.inline) { animation: none; } }
.toast.vtoast { bottom: 96px; }
/* Activity decisions (activity2): the confirm / reason step, icons sized like the rest of the admin buttons; the coaches card's ⋯ menu */
.att-acts .ic, .att-ask .ic, .cc-acts .mbtn .ic { width: 18px; height: 18px; }
.att-acts { flex-wrap: wrap; }
.att-ask { grid-column: 2 / 4; display: grid; gap: var(--s2); }
.att-ask small { font: var(--t-meta); color: var(--ink); }
.att-ask input { min-height: 36px; padding: var(--s2) var(--s3); font-size: var(--fs-ctl); }
.att-ask .att-acts { grid-column: auto; justify-content: flex-end; }
.att-menu .danger { color: var(--err); } .att-menu .danger .ic { color: var(--err); }
.att-menu button:disabled { opacity: .38; cursor: default; }
.cc-acts { display: flex; align-items: center; gap: var(--s2); }
.cc-acts .att-more { margin: 0; }
@media (max-width: 600px) {
  #coaches .ml-item { flex-wrap: wrap; }
  .cc-acts:has(> .mbtn) { flex-basis: 100%; justify-content: flex-end; }
}
