/* v2.css — components added in prototype 2. Colors come only from the variables in tokens.css. */
.today { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
div.program { cursor: default; }
div.program .small { color: var(--side-muted); font-weight: 500; }
.sec-h { font-size: var(--fs-section-title); font-weight: var(--fw-section-title); margin-top: 6px; }
.form h3.first { border-top: none; padding-top: 0; margin-top: 0; }
.toggle.compact { padding: 0 12px; min-height: var(--control-height-compact); align-items: center; }
.toggle.compact input { margin: 0; }
.tbl td .meter { margin: 4px 0 2px; max-width: 160px; }
.tbl td .pills { display: inline-flex; margin-right: 6px; }
a.pill { text-decoration: none; }

/* pick players from a list */
.pick-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; }
.pick-row { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pick-row:last-child { border-bottom: none; }
.pick-row:hover { background: var(--canvas); }
.pick-row input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.pick-row span { display: flex; flex-direction: column; font-size: 14px; }
.pick-row small { color: var(--muted); font-size: 12.5px; }

/* choice cards (radio) */
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.choice-card { position: relative; display: flex; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-card > span { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--input-border); border-radius: 10px; background: var(--surface); font-size: 14px; }
.choice-card small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.choice-card input:checked + span { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--soft-bg); }
.choice-card input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }

/* timeslot rows in the practice form */
.slot-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 96px 40px; gap: 10px; align-items: end; }
.x-pad { width: 40px; }
@media (max-width: 520px) { .slot-row { grid-template-columns: 1fr 1fr; } .x-pad { display: none; } }

/* sessions and their timeslots */
.sess { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.sess summary { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; border-radius: var(--radius-card); }
.sess summary::-webkit-details-marker { display: none; }
.sess summary:hover { background: var(--canvas); }
.sess[open] summary { border-bottom: 1px solid var(--border); border-radius: var(--radius-card) var(--radius-card) 0 0; }
.sess-date { display: flex; flex-direction: column; }
.sess-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.slot { border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--canvas); min-width: 0; }
.slot .btn { align-self: flex-start; }
.slot-names { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.slot-names li { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.slot-names a { text-decoration: none; font-weight: 600; }
.x-btn { border: none; background: transparent; color: var(--muted); width: 26px; height: 26px; border-radius: var(--radius-chip); display: inline-grid; place-items: center; flex: none; }
.x-btn:hover { background: var(--draft-bg); color: var(--ink); }

/* installments */
.inst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 13px; }
.inst li { display: grid; grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.inst li:last-child { border-bottom: none; }
.inst li span:last-child { text-align: right; color: var(--muted); }
.inst li.paid span:last-child { color: var(--ok-text); font-weight: 700; }
.inst li.overdue span:last-child { color: var(--urgent-bg); font-weight: 700; }
[data-theme="dark"] .inst li.overdue span:last-child { color: var(--warn-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .inst li.overdue span:last-child { color: var(--warn-text); } }
.fee-line { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.fee-line a { text-decoration: none; }

/* message previews */
.preview-bg { background: var(--canvas); border-radius: 10px; padding: 10px; }
.email { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 13.5px; }
.email-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--canvas); border-bottom: 1px solid var(--border); font-size: 12.5px; overflow-wrap: anywhere; }
.email-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.email-body .post-body { font-size: 14px; }
.sticky { position: sticky; top: 44px; }
@media (max-width: 1000px) { .sticky { position: static; } }
.tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }

/* family app */
.ptabs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.badge { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: var(--radius-chip); background: var(--urgent-bg); color: var(--urgent-text); font-size: 10.5px; font-weight: 700; font-style: normal; line-height: 16px; text-align: center; }
.day-h.urgent-h { color: var(--ink); }
.fcard .go { color: var(--link); font-size: 12.5px; }
.fcard .prow { flex-wrap: wrap; }
.fcard.unread > b { font-weight: 800; }
.fcard:not(.unread) > b { font-weight: 600; }
.fcard.urgent-card { border-left: 4px solid var(--urgent-bg); }
.fcard .alert { align-self: stretch; display: inline-flex; gap: 6px; align-items: center; }
.fcard .big { font-size: 22px; }
.fcard a { text-decoration: none; color: inherit; }
.msg-full .msg-title { font-size: 18px; line-height: 1.25; font-weight: 800; }
.msg-full .post-body { font-size: 14.5px; }
.pick-day { display: flex; flex-direction: column; gap: 8px; }
.pick-kid { display: flex; flex-direction: column; gap: 5px; padding-top: 8px; border-top: 1px solid var(--border); }
.pchips button { flex-direction: column; gap: 0; min-height: 46px; min-width: 62px; line-height: 1.2; justify-content: center; }
.pchips button small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.pchips button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pchips button[aria-pressed="true"] small { color: inherit; }
.pchips button[disabled] { opacity: 0.45; cursor: not-allowed; }
.pchips button[disabled][aria-pressed="true"] { opacity: 0.8; }
.in-dialog .pchips button { min-width: 72px; }
.screen-head .icon-btn { width: 32px; height: 32px; text-decoration: none; }

/* the family app on its own page (#/app): fills a phone, sits as a centered column on a wide screen */
.app-full { min-height: 100vh; min-height: 100dvh; background: var(--canvas); color: var(--ink); display: flex; justify-content: center; }
.app-full .screen { width: 100%; max-width: 520px; height: 100vh; height: 100dvh; max-height: none; min-height: 0; border-radius: 0; background: var(--canvas); }
.app-full .screen-head { padding-top: calc(14px + env(safe-area-inset-top)); }
.app-full .ptabs { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
@media (min-width: 560px) { .app-full { background: var(--draft-bg); } .app-full .screen { border-inline: 1px solid var(--border); box-shadow: 0 0 40px var(--shadow); } }
.fbtn { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* family app home */
.hello { display: flex; flex-direction: column; padding: 4px 2px 2px; }
.hello b { font-size: 19px; font-weight: 800; }
.hello .d, .screen-body > .d { font-size: 12.5px; color: var(--muted); }
.notice { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: var(--radius-card); background: var(--urgent-bg); color: var(--urgent-text); text-decoration: none; font-size: 13px; }
.notice b { font-size: 14.5px; }
.fcard.rows { padding: 0; gap: 0; }
.hrow { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; min-width: 0; }
.hrow:last-child { border-bottom: none; }
.hrow .grow { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.hrow .grow b { font-size: 14px; font-weight: 700; line-height: 1.3; }
.hrow .kid { flex: none; min-width: 46px; font-size: 12.5px; font-weight: 700; color: var(--soft-text); }
.hrow .fbtn { flex: none; min-width: 64px; }
.more-link { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--link); text-decoration: none; padding: 0 2px; }
.badge.quiet { background: var(--draft-bg); color: var(--draft-text); }
button.more-link { border: none; background: none; cursor: pointer; }
.pchips button small:empty { display: none; }

/* family app: screen title + player picker, and a two-way switch */
.tab-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 0; }
.tab-head b { font-size: 19px; font-weight: 800; }
.tab-head select { min-height: 34px; padding: 0 8px; border-radius: var(--radius-chip); border: 1px solid var(--input-border); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; max-width: 55%; }
.pseg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--draft-bg); }
.pseg button { min-height: 36px; border: none; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pseg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px var(--shadow); }
.pseg i { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 0 6px; border-radius: var(--radius-chip); background: var(--draft-bg); color: var(--draft-text); }
.pseg button[aria-pressed="true"] i { background: var(--soft-bg); color: var(--soft-text); }
.d.hint { padding: 0 2px; }

/* family app: find a lesson by coach */
.coach-pick { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.coach-pick select { flex: 1; min-height: 36px; padding: 0 10px; border-radius: var(--radius-control); border: 1px solid var(--input-border); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 600; min-width: 0; }

.hrow .why { color: var(--soft-text); font-weight: 600; }

/* family app home: up to three cards, swiped left and right */
.swipe { position: relative; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px; scroll-padding: 0 12px; flex: none; }
.swipe::-webkit-scrollbar { display: none; }
.scard { flex: 0 0 88%; scroll-snap-align: center; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; min-height: 138px; min-width: 0; }
.scard:only-child { flex-basis: 100%; }
.scard .lab { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); }
.scard .pos { font-weight: 600; text-transform: none; letter-spacing: 0; }
.scard b { font-size: 16.5px; font-weight: 800; line-height: 1.25; }
.scard a { color: inherit; text-decoration: none; }
.scard .sub { font-size: 13px; color: var(--muted); }
.scard .sub.why { color: var(--soft-text); font-weight: 600; }
.scard .cta { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 700; display: flex; }
.scard .cta .fbtn { width: 100%; }
.scard.critical { background: var(--urgent-bg); border-color: transparent; color: var(--urgent-text); }
.scard.critical .lab, .scard.critical .sub { color: inherit; opacity: 0.92; }
.scard.todo { border-left: 4px solid var(--primary); }
.dots { display: flex; justify-content: center; gap: 6px; flex: none; }
.dots button { width: 22px; height: 22px; padding: 0; border: none; background: none; display: grid; place-items: center; }
.dots button::after { content: ""; width: 8px; height: 8px; border-radius: var(--radius-chip); background: var(--track); border: 1px solid var(--input-border); }
.dots button[aria-current="true"]::after { background: var(--primary); border-color: var(--primary); width: 18px; }

/* facility calendar */
a.fc-item, a.chip-btn { text-decoration: none; }
a.chip-btn { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-label .pill { align-self: flex-start; }
.fw-row.fc-head .fw-cell { text-decoration: none; }
.legend i.k { border-radius: 3px; }
.fw-cell .day-empty { opacity: 0.7; }

/* family app: who is already in each time. Time and count on the left, names flowing on the right. */
.roster { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; background: var(--canvas); overflow: hidden; }
.rrow { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 8px; padding: 6px 9px; border-bottom: 1px solid var(--border); align-items: baseline; }
.rrow:last-child { border-bottom: none; }
.rt { font-size: 12.5px; font-weight: 700; display: flex; flex-direction: column; line-height: 1.25; }
.rt small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.rn { font-size: 12.5px; line-height: 1.5; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 9px; }
.rn span { white-space: nowrap; }
.rn .me { color: var(--ink); font-weight: 700; }
.rn .more { font-style: italic; }

/* family app: lessons by the days and times that work */
.lwhen { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.mytimes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.mytimes .grow { flex: 1 1 120px; min-width: 0; font-size: 12.5px; color: var(--muted); }
.tgl { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: var(--radius-chip); border: 1px solid var(--input-border); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; }
.tgl[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tgl i { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 0 6px; border-radius: var(--radius-chip); background: var(--draft-bg); color: var(--draft-text); }
.win-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto minmax(0, 1fr) 40px; gap: 6px; align-items: center; font-size: 13px; }
.win-row select { min-height: var(--control-height-compact); padding: 0 6px; border-radius: var(--radius-control); border: 1px solid var(--input-border); background: var(--canvas); color: var(--ink); font-size: 14px; min-width: 0; width: 100%; }

/* message templates */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.tpl { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--input-border); background: var(--surface); color: var(--ink); font-size: 13.5px; }
.tpl:hover { background: var(--soft-bg); }
.tpl small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.tpl[aria-pressed="true"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--soft-bg); }

/* the branded email: program header, the message, program footer */
.eframe { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; }
.ehead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--tile); color: var(--on-tile); }
.ehead .tile { width: 34px; height: 34px; background: transparent; border: 1.5px solid currentColor; }
.ehead .tile svg { stroke: currentColor; }
.ehead .en { display: flex; flex-direction: column; line-height: 1.2; }
.ehead b { font-size: 17px; font-weight: 800; letter-spacing: 0.2px; }
.ehead small { font-size: 12px; opacity: 0.9; }
.ebody { padding: 16px; min-height: 60px; }
.ebody[contenteditable] { min-height: 220px; outline: none; }
.ebody[contenteditable]:focus-visible { box-shadow: inset 0 0 0 2px var(--link); }
.ebody[contenteditable]:empty::before { content: "Write your message, or start from a template above."; color: var(--muted); }
.etitle { font-size: 18px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; }
.efoot { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--canvas); font-size: 12px; color: var(--muted); }
.efoot b { color: var(--ink); font-size: 12.5px; }
.etools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--border); background: var(--canvas); }
.etools button { min-height: 30px; min-width: 32px; padding: 0 9px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; }
.etools button:hover { background: var(--surface); border-color: var(--input-border); }
.elink { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; }
.elink input { height: 30px; width: 170px; max-width: 42vw; padding: 0 8px; border-radius: 6px; border: 1px solid var(--input-border); background: var(--surface); color: var(--ink); font-size: 12.5px; }
.email-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; margin-bottom: 8px; }

/* formatted message text, in the email and in the family app */
.rich { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 10px; }
.rich h3 { font-size: 15px; font-weight: 800; margin: 16px 0 6px; padding: 0; border: none; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 20px; display: block; }
.rich li { margin: 2px 0; padding: 0; border: none; display: list-item; }
.rich a { color: var(--link); font-weight: 600; }
.rich blockquote { margin: 0 0 10px; padding: 9px 12px; border-left: 4px solid var(--warn-text); background: var(--warn-bg); color: var(--warn-text); border-radius: 0 8px 8px 0; }
.msg-full .rich { font-size: 14px; }
.eframe .ehead small { color: inherit; font-size: 12px; }
.field .eframe { font-weight: 400; }

/* sidebar: fixed to the window so the signed-in user at the bottom is always in view; only the menu scrolls */
@media (min-width: 821px) {
  .sidebar { position: sticky; top: 0; height: 100vh; align-self: flex-start; overflow: hidden; }
  .navwrap { min-height: 0; }
  .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
}
.sidebar-foot { display: flex; align-items: center; gap: 4px; padding-top: 12px; border-top: 1px solid var(--side-border); flex: none; }
.me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; color: var(--side-text); text-decoration: none; }
.me:hover { background: var(--side-border); }
.me[aria-current="page"] { background: var(--side-active-bg); color: var(--side-active-text); }
.me[aria-current="page"] small { color: inherit; }
.me .avatar { width: 34px; height: 34px; }
.me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me-text b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text small { font-size: 12px; color: var(--side-muted); }
.me-out { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--side-muted); }
.me-out:hover { color: var(--side-text); background: var(--side-border); }

/* profile page */
.profile-top { display: flex; align-items: center; gap: 14px; }
.profile-top > span:last-child { display: flex; flex-direction: column; }
.profile-top b { font-size: 20px; font-weight: 800; }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; }
.btn.danger svg { flex: none; }

/* program (tenant) selector, top right of the console */
.tenant { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 10px 4px 12px; border-radius: var(--radius-control); border: 1px solid var(--input-border); background: var(--surface); color: var(--ink); text-align: left; }
.tenant:hover { background: var(--canvas); }
.tenant .dot { margin: 0; width: 12px; height: 12px; border-color: var(--border); flex: none; }
.tenant-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tenant-text b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.tenant-text small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tenant-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tenant-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.tenant-list li[aria-current="true"] { border-color: var(--primary); background: var(--soft-bg); }
.tenant-list li > span:not(.pill) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tenant-list small { color: var(--muted); font-size: 12.5px; }
.tenant-list .dot { margin: 0; border-color: var(--border); flex: none; }

/* dashboard: focus cards for this season and for what is ahead */
.band { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--surface); }
.band.ahead { background: var(--canvas); border-style: dashed; border-color: var(--input-border); }
.band-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.band-head h2 { font-size: var(--fs-section-title); font-weight: 800; }
.band-head span { font-size: 12.5px; color: var(--muted); }
.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.focus { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); border-left: 5px solid var(--track); background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
.focus:hover { border-color: var(--soft-border); background: var(--soft-bg); }
.focus .label { font-size: var(--fs-label); font-weight: var(--fw-label); color: var(--muted); }
.focus .value { font-size: var(--fs-stat); font-weight: var(--fw-stat); line-height: 1.15; }
.focus .value small { font-size: 14px; font-weight: 600; color: var(--muted); }
.focus .sub { font-size: 12.5px; color: var(--muted); }
.focus.urgent { border-left-color: var(--urgent-bg); }
.focus.warn { border-left-color: var(--warn-text); }
.focus.ok { border-left-color: var(--ok-text); }
.focus.info { border-left-color: var(--bar); }

/* family history */
.cat-bars { display: flex; flex-direction: column; gap: 8px; }
.cat-row { display: grid; grid-template-columns: 90px minmax(60px, 1fr) 90px 44px; gap: 10px; align-items: center; font-size: 14px; }
.cat-row b, .cat-row .small { text-align: right; }

/* audience picker: groups from other seasons */
.aud-season { border: 1px dashed var(--input-border); border-radius: 10px; padding: 8px 12px; }
.aud-season summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.aud-season[open] summary { margin-bottom: 8px; }
.empty .row { margin: 4px 0; }

/* season picker above the menu: sets the season the whole console works in */
.season-pick { display: flex; flex-direction: column; gap: 4px; flex: none; }
.season-pick > span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--side-muted); padding-left: 2px; }
.season-pick select { width: 100%; min-height: 40px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--side-border); background: var(--sidebar); color: var(--side-text); font-size: 14.5px; font-weight: 700; }
.season-pick select option { color: var(--ink); background: var(--surface); font-weight: 500; }
.tenant.static { cursor: default; }
.tenant.static:hover { background: var(--surface); }
.season-card.live { border-color: var(--ok-text); }
.season-card .kv { grid-template-columns: 1fr; gap: 8px; }
.band-head h2 .pill { vertical-align: 2px; margin-left: 6px; }
.tenant-list li .btn { flex: none; }

/* recruiting profile */
.rp { display: flex; flex-direction: column; gap: 14px; }
.rp-top { display: grid; grid-template-columns: 190px minmax(0, 1.6fr) minmax(190px, 1fr); gap: 18px; padding: 18px; border-radius: var(--radius-card); background: var(--tile); color: var(--on-tile); }
.rp-photo { aspect-ratio: 4 / 5; border-radius: 10px; border: 2px dashed currentColor; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; opacity: 0.9; }
.rp-photo span { font-size: 54px; font-weight: 800; line-height: 1; }
.rp-photo small { font-size: 12px; }
.rp-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rp-main h2 { font-size: 30px; font-weight: 800; line-height: 1.1; }
.rp-row { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-bottom: 12px; border-bottom: 1px solid currentColor; }
.rp-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rp-item span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; opacity: 0.85; }
.rp-item b { font-size: 18px; font-weight: 800; }
.rp-social { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-social .btn { background: var(--surface); color: var(--ink); border-color: transparent; }
.rp-social .btn.sec { background: transparent; color: inherit; border: 1px dashed currentColor; opacity: 0.85; }
.rp-side { display: flex; flex-direction: column; gap: 16px; padding-left: 18px; border-left: 1px solid currentColor; }
.rp-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; margin-top: auto; }
.rp-logo .tile { background: transparent; border: 1.5px solid currentColor; }
.rp-logo .tile svg { stroke: currentColor; }
@media (max-width: 860px) { .rp-top { grid-template-columns: 120px minmax(0, 1fr); } .rp-side { grid-column: 1 / -1; padding: 14px 0 0; border-left: none; border-top: 1px solid currentColor; flex-direction: row; flex-wrap: wrap; } .rp-main h2 { font-size: 24px; } }
.rp-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 24px; padding: 14px 18px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--surface); }
.rp-contact dl { margin: 0; display: flex; flex-direction: column; }
.rp-pair { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.rp-pair:last-child { border-bottom: none; }
.rp-pair dt { font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); align-self: center; }
.rp-pair dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rp-sec { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--surface); }
.rp-sec h3 { font-size: 18px; font-weight: 800; }
.rp-sec h4 { font-size: 14px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); margin: 0; }
.rp-note { font-size: 13px; color: var(--muted); }
.rp-video { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; border-radius: 12px; border: 1px dashed var(--input-border); background: var(--canvas); aspect-ratio: 16 / 9; min-width: 0; }
.rp-video.feature { aspect-ratio: 16 / 6.5; }
.rp-video b { font-size: 15px; }
.rp-video small { font-size: 12.5px; color: var(--muted); max-width: 34ch; }
.rp-video .play { width: 44px; height: 44px; border-radius: var(--radius-chip); background: var(--draft-bg); border: 1px solid var(--border); position: relative; }
.rp-video .play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid var(--muted); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.rp-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.rp-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.rp-metric { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--canvas); }
.rp-metric .v { display: flex; align-items: baseline; gap: 6px; }
.rp-metric .v b { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rp-metric .v i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); }
.rp-metric .l { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.rp-metric .c { font-size: 12px; color: var(--muted); min-height: 16px; }
.rp-group { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.rp-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.rp-chart { margin: 0; padding: 10px 10px 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.rp-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px 2px; }
.rp-chart figcaption b { font-size: 14px; }
.rp-chart figcaption span { font-size: 12px; color: var(--muted); }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 10.5px; font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--bar); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--bar); stroke: var(--surface); stroke-width: 2; }
.chart .end { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; }
.chart .pt { outline: none; cursor: default; }
.chart .cross { stroke: var(--input-border); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.chart .tip { opacity: 0; pointer-events: none; }
.chart .tip rect { fill: var(--ink); }
.chart .tip-v { fill: var(--surface); font-size: 12.5px; font-weight: 700; font-family: var(--font-sans); }
.chart .tip-l { fill: var(--surface); font-size: 10.5px; font-family: var(--font-sans); opacity: 0.85; }
.chart .pt:hover .tip, .chart .pt:focus .tip, .chart .pt:hover .cross, .chart .pt:focus .cross { opacity: 1; }
.chart .pt:hover .dot, .chart .pt:focus .dot { r: 6; }
.chart-empty { display: grid; place-items: center; min-height: 110px; font-size: 13px; color: var(--muted); border: 1px dashed var(--input-border); border-radius: 10px; margin: 4px 0 8px; }
.rp-table summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--link); padding: 6px 0; }
.rp-table .table-wrap { margin-top: 8px; }
.recruit-page { max-width: 1080px; margin: 0 auto; padding: 20px 16px 40px; }

/* ---------- sign-in: form on the left, product panel on the right */
.si { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; min-height: 100vh; max-width: 1560px; margin: 0 auto; padding: 28px; }
.si-left { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 12px 0; min-width: 0; }
.si-brand { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.1; }
.si-brand > svg { flex: none; }
.si-word { white-space: nowrap; }
.si-word svg { width: 0.600em; height: 0.600em; margin: 0 0.030em; vertical-align: -0.030em; }
.si-brand small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.si-card { width: 100%; max-width: 500px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sheet); box-shadow: 0 16px 40px var(--shadow); padding: 36px 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.si-head { text-align: center; display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.si-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
.si-head p { color: var(--muted); }
.si-card .field > span, .si-card .field > label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.si-card .field input { min-height: var(--control-height); padding: 0 16px; border-radius: var(--radius-card); background: var(--surface); font-size: 15px; }
.si-pw { position: relative; }
.si-pw input { padding-right: 68px !important; }
.si-pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px; border: none; border-radius: var(--radius-control); background: transparent; color: var(--link); font-size: 13px; font-weight: 700; }
.si-pw button:hover { background: var(--soft-bg); }
.si-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-size: 14px; }
.si-row a { font-weight: 600; text-decoration: none; }
.si-row a:hover { text-decoration: underline; }
.si-remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 28px; }
.si-remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.si-card .btn.lg { width: 100%; border-radius: var(--radius-card); }
.si-or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0.4px; }
.si-or::before, .si-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.si-foot { text-align: center; font-size: 13px; color: var(--muted); }
.si-foot b { color: var(--ink); }

.si-panel { position: relative; overflow: hidden; min-width: 0; background: var(--primary); color: var(--on-primary); border-radius: 24px; padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
/* abstract backdrop: a base path with three bases and home plate, mostly off the edges of the panel */
.si-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: color-mix(in srgb, var(--on-primary) 20%, transparent); stroke-width: 5; stroke-linejoin: round; }
.si-bg .thin { stroke-width: 2; stroke-dasharray: 3 12; }
.si-bg .base { fill: color-mix(in srgb, var(--on-primary) 13%, transparent); }
.si-panel > :not(.si-bg) { position: relative; z-index: 1; }
.si-panel h2 { font-size: clamp(28px, 3.1vw, 46px); line-height: 1.14; font-weight: var(--fw-hero); letter-spacing: -0.8px; text-wrap: balance; max-width: 19em; }
.si-panel h2 u { text-decoration-thickness: 3px; text-underline-offset: 7px; }
.si-panel .lede { color: inherit; opacity: 0.92; max-width: 36rem; }
.si-preview { position: relative; z-index: 1; width: 100%; max-width: 720px; margin: 40px 0 64px; padding-right: 120px; text-align: left; color: var(--ink); }
.si-card2 { background: var(--surface); border-radius: var(--radius-card); box-shadow: 0 18px 44px var(--shadow); }
.si-cal { padding: 18px 96px 46px 20px; }
.si-cal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-size: 14px; }
.si-cal-head small { color: var(--muted); font-size: 12px; }
.si-cal-grid { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 6px 10px; margin-top: 14px; align-items: center; font-size: 11px; color: var(--muted); }
.si-cal-grid > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.si-hours { display: flex; justify-content: space-between; font-size: 10.5px; }
.si-lane { position: relative; height: 26px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--canvas) 0, var(--canvas) calc(var(--hr) - 1px), var(--border) calc(var(--hr) - 1px), var(--border) var(--hr)); }
.si-lane b { position: absolute; top: 2px; bottom: 2px; padding: 0 6px; border-radius: 5px; border-left: 3px solid var(--primary); background: var(--soft-bg); color: var(--soft-text); font-size: 10.5px; font-weight: 700; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-lane b.c1 { background: var(--ok-bg); color: var(--ok-text); border-left-color: var(--ok-text); }
.si-lane b.c2 { background: var(--warn-bg); color: var(--warn-text); border-left-color: var(--warn-text); }
.si-phone { position: absolute; top: -34px; right: 0; width: 204px; border-radius: 30px; background: var(--phone-frame); padding: 7px; box-shadow: 0 18px 44px var(--shadow); }
.si-phone-screen { border-radius: 24px; background: var(--canvas); padding: 14px 10px 10px; display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; min-height: 330px; }
.si-phone-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 0 2px 2px; }
.si-phone-top b { font-size: 14px; font-weight: 800; }
.si-phone-top .tile { width: 22px; height: 22px; border-radius: 6px; }
.si-pcard { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 9px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.si-pcard.act { border-left: 3px solid var(--urgent-bg); }
.si-pcard small { color: var(--muted); font-size: 10.5px; }
.si-pcard b { font-size: 12px; line-height: 1.25; }
.si-pcard .pill { font-size: 9.5px; padding: 1px 6px; }
.si-pcard .fake-btn { align-self: stretch; margin-top: 3px; text-align: center; border-radius: 7px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 11px; padding: 5px 0; }
.si-tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid var(--border); color: var(--muted); }
.si-tabs .on { color: var(--tab-active); }
.si-donut { position: absolute; left: 28px; bottom: -52px; padding: 10px 16px 10px 10px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.si-donut span { display: flex; flex-direction: column; }
.si-donut small { color: var(--muted); font-size: 11.5px; }

@media (max-width: 980px) {
  .si { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 28px; gap: 24px; }
  .si-panel { padding: 36px 20px; }
  .si-preview { margin-top: 56px; }
}
@media (max-width: 560px) {
  .si-card { padding: 28px 20px 22px; }
  .si-brand { font-size: 24px; }
  .si-brand > svg { width: 56px; height: 56px; }
  .si-preview { display: none; }
}

/* ---------- family app sign-in: a short blue hero with the bases backdrop, then the form on a sheet */
.fa-si { flex: 1; overflow-y: auto; display: flex; flex-direction: column; background: var(--surface); }
.fa-si-hero { position: relative; overflow: hidden; flex: none; background: var(--primary); color: var(--on-primary); padding: calc(40px + env(safe-area-inset-top)) 24px 64px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.fa-si-hero > :not(.si-bg) { position: relative; z-index: 1; }
.fa-si-mark { width: 88px; height: 88px; border-radius: 26px; background: var(--surface); display: grid; place-items: center; box-shadow: 0 12px 30px var(--shadow); }
.fa-si-hero h1 { font-size: 25px; font-weight: 800; line-height: 1.15; letter-spacing: -0.3px; text-wrap: balance; }
.fa-si-hero p { font-size: 14.5px; line-height: 1.45; opacity: 0.92; max-width: 21rem; }
.fa-si-form { position: relative; z-index: 1; flex: 1; margin-top: -28px; background: var(--surface); border-radius: 28px 28px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.fa-si-form h2 { font-size: 22px; font-weight: 800; }
.fa-si-form .d { font-size: 13px; color: var(--muted); }
.fa-si-form .d b { color: var(--ink); }
.fa-si-form .pfield input { min-height: var(--control-height); border-radius: var(--radius-card); padding-inline: 14px; font-size: 15px; }
.fa-si-form .fbtn { min-height: var(--control-height); border-radius: var(--radius-card); font-size: 16px; }
.fa-si-by { margin-top: auto; padding-top: 8px; text-align: center; font-size: 12.5px; color: var(--muted); }
.fa-si-by .si-word { font-weight: 800; color: var(--ink); font-size: 14px; }

/* ---------- family app: a simpler look. Greeting header, soft borderless cards, bigger headings, floating tab bar. */
.screen .screen-head { background: transparent; border-bottom: none; padding: 18px 16px 6px; gap: 12px; }
.app-full .screen .screen-head { padding-top: calc(16px + env(safe-area-inset-top)); }
.screen-head .avatar { width: 42px; height: 42px; font-size: 14px; }
.screen .screen-head .t span { font-size: 12.5px; }
.screen .screen-head .t b { font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -0.2px; }
.screen .screen-head .icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px var(--shadow); }
.screen-head .bell .badge { position: absolute; top: -3px; right: -3px; }
.screen .screen-body { padding: 10px 16px 16px; gap: 12px; }
.screen .fcard { border: none; border-radius: 18px; padding: 14px; box-shadow: 0 1px 3px var(--shadow); }
.screen .fcard.rows { padding: 0; overflow: hidden; }
.screen .fcard.urgent-card { border-left: 4px solid var(--urgent-bg); }
.screen .fcard.unread { border-left: 4px solid var(--primary); }
.screen .day-h { font-size: 16px; font-weight: 750; letter-spacing: -0.1px; text-transform: none; color: var(--ink); padding: 8px 2px 0; }
.screen .tab-head b { font-size: 26px; letter-spacing: -0.5px; }
.screen .hrow { padding: 13px 14px; gap: 12px; }
.hrow .when { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.hrow .when b { font-size: 13.5px; color: var(--ink); }
.screen .fbtn, .screen .pseg, .screen .pseg button { border-radius: var(--radius-chip); }
.screen .swipe { margin: 0 -16px; padding: 2px 16px; scroll-padding: 0 16px; }
.screen .scard { border: none; border-radius: 22px; padding: 16px; box-shadow: 0 1px 3px var(--shadow); }
.screen .scard.todo { background: var(--soft-bg); }
.screen .scard.todo .lab { color: var(--soft-text); }
.avatar.xs { width: 28px; height: 28px; font-size: 10.5px; }
.pchips.who a { gap: 6px; min-height: 38px; padding: 0 14px 0 5px; border: none; box-shadow: 0 1px 3px var(--shadow); }
.pchips.who a:first-child { padding: 0 16px; }
.pchips.who a[aria-current="true"] .avatar { background: var(--on-primary); color: var(--primary); }
.daystrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; flex: none; }
.daystrip a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; padding-bottom: 6px; border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 1px 3px var(--shadow); line-height: 1.2; }
.daystrip b { font-size: 16px; font-weight: 750; }
.daystrip span { font-size: 11px; font-weight: 600; color: var(--muted); }
.daystrip i { position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.daystrip a.today { box-shadow: inset 0 0 0 2px var(--primary); }
.daystrip a[aria-current="true"] { background: var(--primary); color: var(--on-primary); }
.daystrip a[aria-current="true"] span { color: inherit; }
.daystrip a[aria-current="true"] i { background: var(--on-primary); }
.screen .ptabs { margin: 0 14px 14px; padding: 6px; gap: 2px; border-top: none; border-radius: var(--radius-chip); background: var(--sidebar); box-shadow: 0 8px 24px var(--shadow); }
.screen .ptabs a { min-height: 48px; border-radius: var(--radius-chip); color: var(--side-muted); }
.screen .ptabs a[aria-current="page"] { background: var(--side-text); color: var(--sidebar); }
.app-full .screen .ptabs { margin-bottom: calc(12px + env(safe-area-inset-bottom)); }
.screen .ptabs { border: 1px solid var(--side-border); }

/* ---------- family app: lessons. An icon beside the bell, a one-row filter bar, two-line cards, a page per lesson. */
.screen-head .lessons.new { background: var(--primary); color: var(--on-primary); }
.screen-head .lessons.new::after { content: ""; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--urgent-bg); border: 2px solid var(--canvas); }
.screen-head .icon-btn[aria-current="page"]:not(.new) { box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary); }
.fbar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; flex: none; }
.fbar::-webkit-scrollbar { display: none; }
.fsel { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; max-width: 160px; padding: 0 12px; border-radius: var(--radius-chip); border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; }
select.fsel { padding-right: 4px; }
.fsel.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.screen .fcard.lcard { flex-direction: row; align-items: center; gap: 12px; }
.lcard .grow { display: flex; flex-direction: column; gap: 3px; flex: 1 1 0; min-width: 0; }
.lwhen { display: flex; align-items: center; gap: 5px; }
.lcard .lwhen { font-size: 13px; font-weight: 600; color: var(--muted); }
.lwhen.fit, .lcard .lwhen.fit, .fitkey { color: var(--ok-text); }
.lwhen .ic { flex: none; }
.fitkey { display: inline-flex; vertical-align: -2px; }
.lspots { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.lspots b { font-size: 13.5px; color: var(--ink); }
.lcard .chev { flex: none; display: grid; color: var(--muted); }
.newdot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--primary); vertical-align: 1px; }
.times-note .more-link { display: inline; padding: 0 0 0 4px; }
.screen .lcard .go { font-size: 13px; font-weight: 700; color: var(--link); margin-top: 2px; }
.screen .lcard .go::after { content: " ›"; }
.roster.list { padding: 10px 12px; gap: 6px; }
.rhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; font-size: 13px; }
.rhead span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.roster.list ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.roster.list li { padding: 6px 0; border-top: 1px solid var(--border); }
.roster.list li.me { color: var(--ink); font-weight: 700; }
.roster.list .more { font-size: 12.5px; font-style: italic; color: var(--muted); }

/* ---------- family app: lessons browse (who it is for + Filters, a fits-my-times card, roomy lesson cards) and the filter sheet */
.lsub { margin-top: -10px; padding: 0 2px; font-size: 14px; color: var(--muted); }
.lrow { display: flex; gap: 8px; flex: none; }
.lrow select, .lrow a { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 600; box-shadow: 0 1px 3px var(--shadow); }
.lrow select { flex: 1 1 0; min-width: 0; }
.lrow a { flex: none; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.lcount { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 2px 0; font-size: 15px; }
.lcount span { font-size: 13px; font-weight: 600; color: var(--ok-text); }
.screen .fcard.lesson2 { padding: 16px; gap: 4px; }
.lesson2 .lt { font-size: 17px; font-weight: 750; letter-spacing: -0.2px; }
.lesson2 .chev { flex: none; display: grid; color: var(--muted); }
.lesson2 .d { font-size: 13.5px; }
.lesson2 .ltime { font-size: 15px; font-weight: 600; }
.lesson2 .lfoot { margin-top: 8px; min-height: 26px; }
.fitpill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: var(--ok-bg); color: var(--ok-text); font-size: 12px; font-weight: 600; }
.sheet-dim { position: absolute; inset: 0; z-index: 4; background: color-mix(in srgb, var(--sidebar) 45%, transparent); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; max-height: 92%; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--surface); color: var(--ink); box-shadow: 0 -10px 40px var(--shadow); font-size: 14px; }
.sheet .d { font-size: 13px; color: var(--muted); }
.sheet .grab { align-self: center; width: 44px; height: 4px; border-radius: 4px; background: var(--border); }
.sheet-t { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.sheet-h { font-size: 16px; }
.sheet .icon-btn { border-radius: 50%; background: var(--canvas); color: var(--ink); text-decoration: none; }
.sheet .pfield select { min-height: var(--control-height); border-radius: 12px; border-color: var(--border); font-size: 15px; }
.sheet-sep { height: 1px; background: var(--border); margin: 4px 0; flex: none; }
.avail { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--canvas); font-size: 13.5px; color: var(--muted); }
.avail b { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.avail b .ic { color: var(--primary); }
.sheet-foot { display: flex; align-items: center; gap: 16px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.sheet-foot .more-link { align-self: center; padding: 0 12px; font-size: 15px; }
.sheet-foot .fbtn { flex: 1; min-height: 52px; border-radius: 14px; font-size: 15.5px; text-decoration: none; }

/* ---------- family app: one lesson's page */
.ld-title { padding: 4px 2px 0; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; }
.screen-body > .fitpill { align-self: flex-start; margin-top: -4px; }
.ld-notes { padding: 0 2px; font-size: 14.5px; color: var(--muted); }
.screen .fcard.ld-info { gap: 12px; padding: 16px; }
.irow { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.35; }
.irow > .ic { flex: none; margin-top: 1px; color: var(--muted); }
.irow:first-child > .ic { color: var(--primary); }
.irow b { display: block; font-size: 15px; }
.ld-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 2px 0; }
.ld-h > b { font-size: 19px; font-weight: 800; letter-spacing: -0.2px; }
.ld-h .d { font-size: 13px; color: var(--muted); }
.screen .fcard.ld-sign { padding: 16px; gap: 8px; }
.ld-sign .price { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.ld-sign .incl { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.ld-sign .incl b { font-size: 14.5px; }
.krow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; }
.krow > span { display: flex; flex-direction: column; min-width: 0; }
.krow b { font-size: 16px; }
.screen .krow .fbtn { flex: none; width: auto; min-width: 104px; min-height: 46px; border-radius: 12px; font-size: 15px; }
.krow .fbtn[disabled] { opacity: 0.5; cursor: not-allowed; }
.segs { display: flex; gap: 6px; padding: 0 2px; flex: none; }
.segs i { flex: 1; height: 4px; border-radius: 4px; background: var(--track); }
.segs i.on { background: var(--primary); }
.ld-names { margin: 0; padding: 0 2px; list-style: none; font-size: 15px; }
.ld-names li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.ld-names li:last-child { border-bottom: none; }
.ld-names li.me { font-weight: 700; }

/* ---------- family app: dark header band with light text and translucent round buttons */
.screen .screen-head { background: var(--sidebar); color: var(--side-text); padding: 18px 16px 16px; border-bottom: 1px solid var(--side-border); }
.app-full .screen .screen-head { padding-top: calc(18px + env(safe-area-inset-top)); }
.screen .screen-head .t span { color: var(--side-muted); }
.screen .screen-head .icon-btn { background: color-mix(in srgb, var(--side-text) 14%, transparent); color: var(--side-text); box-shadow: none; }
.screen .screen-head .icon-btn:hover { background: color-mix(in srgb, var(--side-text) 22%, transparent); }
.screen .screen-head .icon-btn:focus-visible { outline-color: var(--side-text); }
.screen .screen-head .lessons.new { background: var(--primary); color: var(--on-primary); }
.screen .screen-head .lessons.new::after { border-color: var(--sidebar); }
.screen .screen-head .icon-btn[aria-current="page"]:not(.new) { box-shadow: inset 0 0 0 2px var(--side-text); color: var(--side-text); }
.screen .screen-head .bell .badge { background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 2px var(--sidebar); }
.screen .screen-body { padding-top: 16px; }
.spotpill { padding: 4px 12px; border-radius: 8px; background: var(--draft-bg); color: var(--draft-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.spotpill.low { background: var(--warn-bg); color: var(--warn-text); }

/* ---------- family app: schedule (date range in the title, player + Filters row, jump-to-day strip, quieter cards) */
.tab-head > .d { font-size: 13.5px; color: var(--muted); align-self: flex-end; padding-bottom: 4px; }
.needs-note { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: none; border-radius: 12px; background: var(--warn-bg); color: var(--warn-text); font-size: 14px; font-weight: 600; text-align: left; flex: none; }
.daystrip { position: sticky; top: -16px; z-index: 2; margin: 0 -16px; padding: 8px 16px; background: var(--canvas); }
.daystrip button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; min-height: 72px; padding: 9px 0 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--ink); line-height: 1.2; }
.daystrip button span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.daystrip button b { font-size: 19px; font-weight: 750; }
.daystrip button i { bottom: 7px; }
.daystrip button[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.daystrip button[aria-current="true"] span { color: inherit; }
.daystrip button[aria-current="true"] i { background: var(--on-primary); }
.screen .day-h[data-day] { scroll-margin-top: 96px; font-size: 17px; }
.screen .fcard.ev { padding: 16px; gap: 10px; }
.ev .grow { gap: 5px; }
.ev .grow > b { font-size: 16.5px; font-weight: 700; letter-spacing: -0.1px; }
.ev .d { font-size: 13.5px; }
.ev > .pills { flex: none; align-self: flex-start; }
.ev .chev { align-self: center; }
.screen .fcard.ev-lesson { background: color-mix(in srgb, var(--soft-bg) 55%, var(--surface)); border-left: 4px solid var(--primary); }
.ev-kind { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--primary); }
.screen .fcard.ev-needs { border-left: 4px solid var(--warn-text); }
.ev-needs .d:first-of-type { color: var(--warn-text); font-weight: 600; }
.sheet-l { font-size: 14px; margin-top: 6px; }
.seg3 { display: flex; gap: 8px; }
.seg3 a { flex: 1 1 0; min-height: 46px; display: grid; place-items: center; padding: 0 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.seg3 a:first-child { flex-grow: 1.5; }
.seg3 a[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.optlist { display: flex; flex-direction: column; gap: 8px; }
.optlist a { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 15px; text-decoration: none; }
.optlist a > .ic { color: var(--primary); flex: none; }
.optlist a span { flex: 1; }
.optlist .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--input-border); display: grid; place-items: center; }
.optlist a[aria-current="true"] { background: var(--soft-bg); border-color: transparent; color: var(--soft-text); font-weight: 700; }
.optlist a[aria-current="true"] .radio { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.sheet > .more-link { font-size: 15px; font-weight: 700; padding: 4px 0; }

/* ---------- family app: flat tab bar. The current tab's icon sits in a soft pill; counts ride on the icon's corner. */
.screen .ptabs { margin: 0; padding: 8px 4px 10px; gap: 0; border: none; border-top: 1px solid var(--border); border-radius: 0; background: var(--surface); box-shadow: none; }
.app-full .screen .ptabs { margin-bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.screen .ptabs a { min-height: 52px; gap: 3px; border-radius: 12px; color: var(--muted); font-size: 11.5px; }
.screen .ptabs a[aria-current="page"] { background: none; color: var(--primary); }
.ptabs .ti { position: relative; display: grid; place-items: center; width: 56px; height: 30px; border-radius: var(--radius-chip); }
.ptabs a[aria-current="page"] .ti { background: var(--soft-bg); }
.ptabs .ti .badge { position: absolute; top: -5px; right: 2px; background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 2px var(--surface); }
.lrow .badge { background: var(--primary); color: var(--on-primary); }

/* ---------- family app: inbox list (search, player + Unread, All / Requests / Updates) and one message */
.msearch { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); box-shadow: 0 1px 3px var(--shadow); flex: none; }
.msearch input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--ink); font-size: 15px; }
.msearch:focus-within { outline: 3px solid var(--link); outline-offset: 2px; }
.lrow a[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.mseg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px; border-radius: 14px; background: var(--draft-bg); flex: none; }
.mseg a { min-height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.mseg a[aria-current="true"] { background: var(--surface); color: var(--primary); font-weight: 700; box-shadow: 0 1px 2px var(--shadow); }
.screen .fcard.mcard { padding: 16px; gap: 6px; }
.mcard > b { font-size: 16.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.1px; }
.mcard > .d { font-size: 13.5px; }
.mcard .mfoot { margin-top: 8px; min-height: 28px; align-items: flex-end; }
.mcard .chev { flex: none; display: grid; color: var(--muted); }
.mtime { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.undot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.mkind { display: grid; color: var(--muted); }
.mdue { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--warn-text); }
.mdue i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--warn-bg); }
.screen .fcard.mcard.open { background: color-mix(in srgb, var(--warn-bg) 45%, var(--surface)); border-left: 4px solid var(--warn-text); }
.mcard.open .mdue i { background: var(--warn-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn-text) 25%, transparent); }
.mcta { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 700; }
.about { align-self: flex-start; padding: 4px 10px; border-radius: 8px; background: var(--soft-bg); color: var(--soft-text); font-size: 12.5px; font-weight: 600; }
.mfrom { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.mfrom b { font-size: 15.5px; }
.mfrom .d { font-size: 13px; color: var(--muted); }
.screen .fcard.mbody { padding: 18px; }
.mbody .rich { font-size: 15px; line-height: 1.6; }
.screen .fbtn.mgot { min-height: 50px; border-radius: 14px; font-size: 15.5px; gap: 8px; flex: none; }
.mtwo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: none; }
.mtwo button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 600; box-shadow: 0 1px 3px var(--shadow); }
.mtwo .ic { color: var(--primary); flex: none; }

/* ---------- family app: reminders (a sheet of suggested times, a date-and-time sheet, and the saved note) */
.mtwo a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; box-shadow: 0 1px 3px var(--shadow); }
.mtwo a.on { background: var(--soft-bg); border-color: transparent; color: var(--soft-text); box-shadow: none; }
.rset { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok-text); border: 1px solid color-mix(in srgb, var(--ok-text) 30%, transparent); flex: none; }
.rset > span { flex: 1; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.rset b { font-size: 14.5px; }
.rset button { border: none; background: none; color: inherit; font-size: 13.5px; font-weight: 700; padding: 6px 4px; }
.sheet .grow { flex: 1; }
.sheet-back { display: grid; place-items: center; width: 32px; height: 40px; margin-left: -6px; color: var(--muted); text-decoration: none; }
.sheet .center { text-align: center; }
.rlabel { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.rlabel .ic, .ropt > .ic:first-child, .rin > .ic, .rnote > .ic { color: var(--primary); flex: none; }
.ropt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-align: left; text-decoration: none; font-size: 14px; }
.ropt > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ropt b { font-size: 15px; }
.ropt span span { font-size: 12.5px; color: var(--muted); }
.ropt > .ic:last-child { color: var(--muted); flex: none; }
.ropt:hover { border-color: var(--soft-border); }
.ropt.pick { min-height: 52px; border-color: transparent; background: var(--canvas); color: var(--primary); margin-top: 4px; }
.rin { display: flex; align-items: center; gap: 12px; min-height: var(--control-height); padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.sheet .pfield .rin input { flex: 1; min-height: 44px; padding: 0; border: none; background: transparent; font-size: 15px; outline: none; }
.rin:focus-within { outline: 3px solid var(--link); outline-offset: 2px; }
.rnote { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border-radius: 12px; background: var(--canvas); font-size: 15px; }
.screen .sheet .fbtn.rgo { min-height: 52px; border-radius: 14px; font-size: 15.5px; border: none; }

/* ---------- family app: home ("Your day, at a glance") */
.screen .fcard.crit { padding: 16px; gap: 4px; background: color-mix(in srgb, var(--urgent-bg) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--urgent-bg) 25%, transparent); box-shadow: none; }
.crit .lab { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--urgent-bg); }
.crit .big { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; margin-top: 4px; }
.crit .d { font-size: 14.5px; }
.screen .crit .fbtn { align-self: flex-end; width: auto; min-height: 46px; padding: 0 20px; border-radius: 12px; font-size: 14.5px; text-decoration: none; }
.ld-h a { font-size: 13.5px; font-weight: 700; color: var(--link); text-decoration: none; }
.screen .hrow.nrow, .screen .hrow.trow { padding: 14px 16px; }
.nrow .grow { gap: 3px; }
.nrow b, .trow b { font-size: 15.5px; }
.nrow .when2 { font-size: 14px; font-weight: 600; }
.nrow .chev { flex: none; display: grid; color: var(--muted); }
.softbtn { flex: none; display: grid; place-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--soft-bg); color: var(--soft-text); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.newsrow { display: flex; align-items: center; gap: 14px; padding: 8px 4px; color: inherit; text-decoration: none; flex: none; }
.newsrow > .ic { flex: none; color: var(--muted); }
.newsrow .grow { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.newsrow b { font-size: 15px; }
.newsrow .d { font-size: 13px; color: var(--muted); }
.newsrow .chev { flex: none; display: grid; color: var(--muted); }
.screen .fcard.crit .fbtn { color: var(--on-primary); }
.screen .fcard.crit .big { font-weight: 800; }
.screen .fcard .softbtn { color: var(--soft-text); }
/* nothing in the phone's scrolling body may be squeezed to fit: the body scrolls instead (a card with clipped corners would otherwise lose its last row) */
.screen-body > * { flex-shrink: 0; }

/* ---------- family app: alerts sheet (the bell) */
.arow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }
.arow > .ic { flex: none; color: var(--primary); }
.arow > .ic:last-child { color: var(--muted); }
.arow .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; color: inherit; text-decoration: none; font-size: 13px; }
.arow .grow > span { color: var(--muted); }
.arow b { font-size: 15px; line-height: 1.3; }
.arow .alab { font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--primary); }
.arow.crit { background: color-mix(in srgb, var(--urgent-bg) 8%, var(--surface)); border-color: color-mix(in srgb, var(--urgent-bg) 25%, transparent); }
.arow.crit > .ic:first-child, .arow.crit .alab { color: var(--urgent-bg); }
.arow.quiet { background: var(--ok-bg); border-color: transparent; color: var(--ok-text); }
.arow.quiet > .ic, .arow.quiet .grow > span { color: inherit; }
.arow.later { background: var(--canvas); border-color: transparent; }
.arow button { flex: none; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; }

/* ---------- family app: program invite and create account (before sign-in) */
.fa-si-hero b { font-weight: 800; }
.fa-si-form a.fbtn { text-decoration: none; }
.fa-si-form .fbtn.sec { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.fa-si-form .center { text-align: center; }
.fa-si-form .d a { color: var(--link); font-weight: 700; text-decoration: none; }
.fa-si-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv-kids { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.inv-kids li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.inv-kids li:last-child { border-bottom: none; }
.inv-kids li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.inv-kids b { font-size: 16px; color: var(--ink); }
.inv-kids .avatar { width: 42px; height: 42px; font-size: 14px; }

/* ---------- console: program invites on the Families list */
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.bulkbar .btn { margin-left: auto; }
.bulk-all { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.bulk-all input, .inv-box { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }

/* ---------- Schedule: calendar, lists, series and date pages, create forms */
.push { margin-left: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.flabel { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.stack.tight { gap: 8px; }
.linklike { border: none; background: none; padding: 0; color: var(--link); font-weight: 600; font-size: 14px; text-align: left; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.linklike.danger { color: var(--urgent-bg); }
.btn.wide { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.panel hr, .summary hr { border: none; border-top: 1px solid var(--border); margin: 2px 0; width: 100%; }
.form-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split.wide-left { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
@media (max-width: 1000px) { .split.wide-left { grid-template-columns: minmax(0, 1fr); } }

/* activity types: practice blue, workout green, lesson slate, block striped, needs-a-space amber */
.ty-practice { --ty-bg: var(--soft-bg); --ty-fg: var(--soft-text); --ty-bar: var(--bar); }
.ty-workout { --ty-bg: var(--ok-bg); --ty-fg: var(--ok-text); --ty-bar: var(--ok-text); }
.ty-lesson { --ty-bg: var(--draft-bg); --ty-fg: var(--ink); --ty-bar: var(--ink); }
.ty-flag { --ty-bg: var(--warn-bg); --ty-fg: var(--warn-text); --ty-bar: var(--warn-text); }
.ty-block { --ty-bg: repeating-linear-gradient(135deg, var(--draft-bg) 0 6px, var(--border) 6px 8px); --ty-fg: var(--draft-text); --ty-bar: var(--input-border); }
.pill.ty { background: var(--ty-bg); color: var(--ty-fg); }
.legend i[class^="ty-"] { background: var(--ty-bar); width: 10px; height: 10px; border-radius: 50%; }
.legend i.ty-block { background: var(--ty-bg); border: 1px solid var(--input-border); border-radius: 3px; width: 16px; }
.ev[class*="ty-"] { background: var(--ty-bg); border-left-color: var(--ty-bar); }
button.ev { border-top: none; border-right: none; border-bottom: none; text-align: left; font: inherit; font-size: 12.5px; cursor: pointer; width: 100%; }
.ev.ty-block { color: var(--ink); }
.ev.cancelled { opacity: 0.6; }
.ev .flagtxt { color: var(--warn-text); font-weight: 700; font-size: 12px; }
.ev.cancelled .flagtxt { color: var(--urgent-bg); }
.season-tag { display: inline-block; align-self: flex-start; margin-top: 2px; padding: 1px 6px; border-radius: var(--radius-chip); border: 1px solid var(--input-border); font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface); }
.tbl .season-tag { margin-left: 6px; }

.cal-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cal-bar h2 { font-size: 20px; font-weight: 800; margin-right: 10px; min-width: 190px; }
.cal-bar .icon-btn { text-decoration: none; }
.cal-banner { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); font-size: 14px; }
.cal-banner span { display: inline-flex; gap: 14px; align-items: center; }
.cal-banner a { color: var(--warn-text); font-weight: 700; text-decoration: none; }
.cal-banner a:hover { text-decoration: underline; }
.cal-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; }
.day-col.today { display: flex; align-items: stretch; font-size: inherit; font-weight: inherit; color: inherit; }
.cal-week .day-col h3 { align-items: center; }
.cal-week .day-col h3 a { color: inherit; text-decoration: none; }
.cal-week .daynum { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; }
.cal-week .day-col.today .daynum { background: var(--primary); color: var(--on-primary); }
.cal-week .ev { padding: 8px 9px; gap: 3px; }
.daylist { display: flex; flex-direction: column; gap: 8px; }
.daylist .ev { padding: 10px 12px; font-size: 13.5px; }
.daylist .ev b { font-size: 15px; }
.fc-item[class*="ty-"] { background: var(--ty-bg); color: var(--ty-fg); border: none; border-left: 4px solid var(--ty-bar); font: inherit; font-size: 12px; cursor: pointer; text-decoration: none; }
.fc-avail { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); }
.fc-label .pill { align-self: flex-start; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; padding: 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 8px 24px var(--shadow); display: flex; flex-direction: column; }
.menu-pop a { padding: 9px 12px; border-radius: 7px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.menu-pop a:hover { background: var(--soft-bg); }

.stat.kpi { gap: 2px; }
.tile-row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.tbl td a.big { font-size: 15.5px; }

.create-top { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.create-top .seg a { min-width: 110px; justify-content: center; min-height: 38px; }
.create { display: flex; flex-direction: column; gap: 14px; }
.create-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .create-grid { grid-template-columns: minmax(0, 1fr); } }
.create .panel.form { padding: 20px; }
.create .form h3 { font-size: 16px; padding-top: 14px; }
.create .form h3.first { padding-top: 0; }
.summary { position: sticky; top: 16px; gap: 8px; }
.summary h2 { font-size: var(--fs-section-title); }
.summary .pill { align-self: flex-start; }
.sum-title { font-size: 20px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.sum-price { display: flex; flex-direction: column; gap: 4px; }
.sum-price b { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-control); font-size: 16px; }
.sum-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sum-dates li { display: flex; justify-content: space-between; gap: 10px; }
.create-foot { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: flex-end; }
.slot-row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--link); }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.date-title { font-size: 22px; font-weight: 800; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.date-big { font-size: 22px !important; font-weight: 800; }
.enroll-h { font-size: 16px; font-weight: 700; }
.kv.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-cards.one { grid-template-columns: 1fr; }
.count-line { font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.date-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.date-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto 16px; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--canvas); text-decoration: none; color: inherit; font-size: 13.5px; }
.date-row:hover { outline: 1px solid var(--soft-border); }
.date-row .when { display: flex; flex-direction: column; white-space: nowrap; }
.date-row .when small { color: var(--muted); }
.date-row .what { color: var(--muted); overflow-wrap: anywhere; }
.date-row.cancelled .when b { text-decoration: line-through; }
@media (max-width: 640px) { .date-row { grid-template-columns: 1fr 16px; } .date-row .what, .date-row .pills { grid-column: 1; } }
.date-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.date-chips a { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--canvas); text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.date-chips a[aria-current="true"] { background: var(--soft-bg); border-color: var(--soft-border); color: var(--soft-text); }
.date-chips a.cancelled { text-decoration: line-through; color: var(--muted); }

/* ---------- Facility & Spaces */
.fac { display: flex; flex-direction: column; gap: 10px; }
.fac + .fac { margin-top: 10px; }
.fac-name { font-size: 20px !important; font-weight: 800; }
.fac .sec-h { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin: 0; font-size: 18px; }
.fac .sec-h .small { font-weight: 400; }
.hours-ed { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hours-row { display: grid; grid-template-columns: 130px auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; width: 100%; font-size: 14px; }
.hours-row select { min-height: var(--control-height-compact); padding: 0 8px; border-radius: var(--radius-control); border: 1px solid var(--input-border); background: var(--canvas); color: var(--ink); font-size: 14px; min-width: 0; }
.hours-row .toggle.compact { border: none; padding: 0; background: none; min-height: 0; }
@media (max-width: 520px) { .hours-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Events */
.chipset { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chipset .flabel { margin-right: 6px; }
.chipset a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--radius-chip); border: 1px solid var(--input-border); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.chipset a small { color: var(--muted); font-weight: 600; }
.chipset a:hover { background: var(--canvas); }
.chipset a[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chipset a[aria-pressed="true"] small { color: inherit; }
.month-h { display: flex; gap: 12px; align-items: baseline; margin-top: 10px; font-size: 18px; }
.month-h .small { font-weight: 400; }
.tbl td.ev-when { min-width: 150px; vertical-align: top; }
.tbl td.ev-when .pill { margin-top: 4px; }
.tbl td.ev-name { min-width: 260px; }
.tbl td.ev-coach { min-width: 260px; max-width: 420px; }
.tbl td.ev-coach .pill { margin-bottom: 4px; }

/* ---------- Players: one section for players, families, age groups and teams */
.dlg-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dlg-title small { font-size: 12.5px; color: var(--muted); }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.pill.grp { background: var(--draft-bg); color: var(--ink); font-weight: 600; }
button.pill { border: none; cursor: pointer; font-family: inherit; }
button.pill:hover { text-decoration: underline; }
.small-link { font-size: 13.5px; font-weight: 600; text-decoration: none; }
a.small-link:hover { text-decoration: underline; }
a.plain { color: inherit; font-weight: 400 !important; text-decoration: none; }
a.plain:hover, a.strong:hover { color: var(--link); text-decoration: underline; }
a.strong { color: var(--ink); font-weight: 700 !important; text-decoration: none; }
.warn-t { color: var(--warn-text); font-weight: 600; }
.ok-t { color: var(--ok-text); font-weight: 600; }
.trail { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.trail a { text-decoration: none; }
.tabs-row .count { margin-left: 2px; }
.tabs-row a[aria-current="page"] .count { background: var(--soft-bg); color: var(--soft-text); }
/* a banner with a title, a line of detail and one link on the right */
.note-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; }
.note-bar > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.note-bar b { font-size: 14.5px; }
.note-bar a, .note-bar .linklike { color: inherit; font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.note-bar a:hover { text-decoration: underline; }
.note-bar.warn { background: var(--warn-bg); color: var(--warn-text); }
.note-bar.info { background: var(--soft-bg); color: var(--ink); }
.note-bar.info b { color: var(--soft-text); }
.note-bar.ok { background: var(--ok-bg); color: var(--ink); }
.note-bar.ok b { color: var(--ok-text); }
/* filters with the label kept for screen readers only: the placeholder or first option says what each one is */
.filters.bare { align-items: center; }
.filters.bare .filter > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.filters.bare .result-count { white-space: nowrap; }
/* ticking rows, and the bar that appears once something is ticked */
.selc { width: 36px; padding-right: 0 !important; }
.sel-box, .sel-all, .check-line input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); flex: none; vertical-align: middle; }
.tbl tr.on td { background: var(--soft-bg); }
.selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 8px 14px; border-radius: 10px; background: var(--soft-bg); color: var(--soft-text); }
.selbar .linklike { padding: 0 8px; }
.selbar .bulk-all b { font-size: 14.5px; }
/* a list on the left, the chosen item on the right */
.two-pane { display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .two-pane { grid-template-columns: minmax(0, 1fr); } }
.pane-list { gap: 14px; }
.pane-items, .pane-group { display: flex; flex-direction: column; gap: 4px; }
.pane-group { gap: 2px; margin-bottom: 8px; }
.pane-group > .eyebrow { padding: 2px 8px 4px; }
.pane-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--ink); min-height: 40px; }
.pane-item:hover { background: var(--canvas); }
.pane-item[aria-current="true"] { background: var(--soft-bg); }
.pane-item[aria-current="true"] b { color: var(--soft-text); }
.pane-item b { font-size: 14.5px; }
.pane-item small { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pane-item.big { padding: 12px; }
.pane-item.big > span { display: flex; flex-direction: column; gap: 2px; }
.pane-item.big b { font-size: 18px; font-weight: 800; }
.pane-item.big small.warn-t { color: var(--warn-text); }
.pane-item.big svg { color: var(--link); }
.pane-list .filter input { width: 100%; }
.pane-foot { border-top: 1px solid var(--border); padding-top: 12px; }
.pane-main { padding: 20px; gap: 14px; }
.pane-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.pane-head h2 { font-size: 26px; font-weight: 800; line-height: 1.15; }
.pane-main .table-wrap { border: 1px solid var(--border); border-radius: 10px; margin: 0; }
/* boxes inside dialogs */
.infobox { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--canvas); }
.infobox.row { flex-direction: row; }
.infobox > span { display: flex; flex-direction: column; gap: 3px; }
.infobox b { font-size: 15px; }
.infobox b.lg, .flabel.lg { font-size: 17px; font-weight: 800; }
.infobox small { font-size: 13px; color: var(--muted); }
.groupbox { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--canvas); }
.groupbox.stack { background: var(--surface); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check-line input { margin-top: 1px; }
.check-line span { display: flex; flex-direction: column; gap: 2px; }
.check-line small { font-size: 12.5px; color: var(--muted); }
.team-card { position: relative; display: flex; cursor: pointer; }
.team-card input { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.team-card > span { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 12px 46px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.team-card b { font-size: 15px; }
.team-card small { font-size: 12.5px; color: var(--muted); }
.team-card input:checked + span { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--soft-bg); }
.after-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.form.fill { flex: 1; }
.form-foot.sheet-end { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); justify-content: space-between; align-items: center; }
.pick-head, .pick-row.two { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: center; }
.pick-head { padding: 0 12px; font-size: 12.5px; font-weight: 700; }
.pick-head span:first-child { grid-column: 1 / 3; }
.pick-row.two b { font-size: 14px; font-weight: 600; }
.pick-row.two em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pick-row.two.on { background: var(--draft-bg); cursor: default; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr); }
.pick-row:has(input:checked) { background: var(--soft-bg); }
.pick-list.tall { max-height: min(340px, 40vh); }
.g-block { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
/* one player, one family */
.events.roomy li a { padding: 12px 14px; }
.list.contact > li { gap: 2px; font-size: 14px; }
.list.contact a, .list.guardians a { text-decoration: none; }
.list.guardians > li { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 12px; padding-block: 14px; }
.list.guardians > li > span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.list.guardians b { font-size: 15.5px; }
.place-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.place-row b { font-size: 15.5px; }
.list > li.kid-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.kid-row > span:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.kid-row small { font-size: 12.5px; }
.kv.hist dd { font-size: 22px; font-weight: 800; }
.bal { font-size: 28px; font-weight: 800; line-height: 1.15; }
.stat.big { padding: 16px 18px; }
.fee-tbl td:first-child { width: 52%; }
.fee-tbl .fee-inst td:first-child { padding-left: 32px; }
.fee-tbl .fee-head td { padding-top: 16px; padding-bottom: 14px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
/* recruiting profile inside the player page */
.rp-top.v3 { grid-template-columns: minmax(170px, 1fr) minmax(0, 1.7fr) minmax(190px, 1fr); padding: 22px; }
.rp-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rp-id h2 { font-size: 28px; font-weight: 800; line-height: 1.1; }
.rp-id > span { font-size: 14px; font-weight: 600; }
.rp-id small { margin-top: auto; padding-top: 12px; font-size: 12.5px; opacity: 0.9; }
.rp-inline { border: none; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.rp-top.v3 .rp-row { border-bottom: none; padding-bottom: 0; gap: 10px 34px; }
.rp-top.v3 .rp-main { gap: 18px; justify-content: center; }
@media (max-width: 860px) { .rp-top.v3 { grid-template-columns: minmax(0, 1fr); } }
.rp-links h3, .rp-two h3, .panel > .panel-head h3 { font-size: 16px; font-weight: 700; }
.rp-linkrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.rp-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; min-width: 0; }
.rp-link a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; align-items: start; }
.rp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rp-fact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.rp-fact a { text-decoration: none; }
.rp-vgrid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr); gap: 12px; }
@media (max-width: 900px) { .rp-vgrid { grid-template-columns: minmax(0, 1fr); } }
.rp-vcats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .rp-vcats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); } }
.rp-vcard { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.rp-vcard b { font-size: 14.5px; }
.rp-vcard small { font-size: 12.5px; color: var(--muted); }
.rp-vcard.feature { background: var(--canvas); gap: 8px; }
.rp-vcard.feature b { font-size: 18px; }
.rp-vcard.feature .btn { align-self: flex-start; margin-top: 6px; }
.rp-metrics.v3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .rp-metrics.v3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rp-metrics.v3 .rp-metric { background: var(--surface); }
.rp-metric .c.up { color: var(--ok-text); }
.rp-charts.v3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .rp-charts.v3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); } }
.post-card { gap: 8px; }
.post-card h3 { font-size: 17px; font-weight: 700; }
.post-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.measure { display: flex; flex-direction: column; }
.measure-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(90px, 1fr) minmax(70px, 0.7fr); gap: 14px; align-items: center; padding: 7px 0; font-size: 14px; }
.measure-row.head { font-size: 12.5px; font-weight: 700; }
.measure-row input { min-height: 38px; padding: 6px 10px; border-radius: var(--radius-control); border: 1px solid var(--input-border); background: var(--canvas); color: var(--ink); width: 100%; }
.dest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .dest-grid { grid-template-columns: minmax(0, 1fr); } }
.fmt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fmt-row label { position: relative; display: inline-flex; }
.fmt-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fmt-row span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--radius-control); border: 1px solid var(--input-border); background: var(--surface); font-size: 14px; font-weight: 700; }
.fmt-row input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.fmt-row input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
.checkrows { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.checkrows > div { display: flex; justify-content: space-between; gap: 12px; }
.checkrows dt { color: var(--muted); }
.checkrows dd { margin: 0; }

/* ---------- Events finder: a filter bar, tournaments by month, showcase cards, and a details panel beside the list */
.soft-t { color: var(--soft-text); font-weight: 600; }
.ev-bar { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 12px; padding: 14px; }
.ev-pick { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); }
.ev-pick:focus-within { border-color: var(--link); }
.ev-pick select { border: none; background: transparent; color: var(--ink); font-size: 15.5px; font-weight: 600; padding: 2px 0; width: 100%; outline: none; }
.ev-pick select option { color: var(--ink); background: var(--surface); }
.ev-bar .btn { align-self: center; }
.ev-tools { gap: 10px 16px; }
.ev-search { flex: 0 1 420px; }
.ev-search input { width: 100%; height: 44px; }
.ev-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.ev-sort select { border: none; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 4px 0; }
.ev-sort select option { color: var(--ink); background: var(--surface); }
.ev-sum b { color: var(--ink); }
.month-h { align-items: baseline; }
.month-h .sec-h { font-size: 18px; margin: 0; }
.ev-list { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.ev-row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1.2fr) auto; gap: 14px 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.ev-row:last-child { border-bottom: none; }
.ev-row.on { background: var(--soft-bg); }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 60px; border-radius: 8px; background: var(--canvas); }
.ev-row.on .ev-date { background: var(--surface); }
.ev-date b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.ev-date small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.ev-main, .ev-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ev-main b { font-size: 15.5px; }
.ev-meta b { font-size: 14.5px; }
.ev-main small, .ev-meta small { font-size: 13px; color: var(--muted); }
.ev-flag { position: absolute; top: 6px; right: 8px; color: var(--ok-text); }
.ev-more { align-self: center; }
@media (max-width: 760px) { .ev-row { grid-template-columns: 56px minmax(0, 1fr); } .ev-meta, .ev-row > .btn { grid-column: 2; justify-self: start; } }
.ev-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .ev-split { grid-template-columns: minmax(0, 1fr); } .ev-split > .ev-detail { order: -1; } }
.ev-split .ev-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
.ev-split .ev-meta { grid-column: 2; grid-row: 2; }
.ev-detail { position: sticky; top: 12px; padding: 20px; gap: 14px; max-height: calc(100vh - 24px); overflow-y: auto; }
.ev-detail h2 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.ev-facts { display: flex; flex-direction: column; gap: 8px; }
.ev-fact { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 14.5px; }
.ev-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ev-card { text-decoration: none; color: var(--ink); gap: 6px; padding: 16px 18px; }
.ev-card:hover { border-color: var(--soft-border); }
.ev-card.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.ev-card > b { font-size: 16.5px; }
.ev-card > .muted { font-size: 14px; }
.ev-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.ev-wait { padding: 16px 18px; }
.ev-card .small-link { color: var(--link); }
