:root {
  color-scheme: light;
  --paper: #f5f6f7;
  --surface: #fff;
  --green: #075438;
  --green-deep: #082c20;
  --green-ink: #0a3f2c;
  --green-wash: #e9f7ef;
  --accent: #6df3ac;
  --black: #101412;
  --sidebar-width: 232px;
  --ink: #101412;
  --muted: #515b56;
  --line: #e1e5e3;
  --shadow: 0 3px 18px #14281c08;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
img, svg { vertical-align: middle; }
img { max-width: 100%; }
button svg, a svg, .metric-icon svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #08734c; outline-offset: 3px; }
#main:focus { outline: none; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: white; }
.skip-link:focus { width: auto; height: auto; padding: 12px; clip-path: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.55rem); font-weight: 800; letter-spacing: -.048em; }
h2 { font-size: 1.4rem; font-weight: 780; }
h3 { font-size: 1.06rem; font-weight: 740; }
p + h3 { margin-top: 16px; }
h3 + p { margin-top: 6px; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.preline { white-space: pre-wrap; overflow-wrap: anywhere; }
.eyebrow { font-size: .71rem; letter-spacing: .14em; line-height: 1.3; font-weight: 780; color: #086045; text-transform: uppercase; }
.subtitle { color: var(--muted); font-size: 1.02rem; margin-top: 8px; }
.stack { display: grid; align-content: start; gap: 15px; min-width: 0; }
.actions, .dialog-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; font-weight: 740; font-size: .9rem; line-height: 1.2; text-align: center; transition: background .18s, color .18s, border-color .18s; }
.primary { color: white; background: var(--green); box-shadow: 0 2px 3px #082c201f; }
.primary:hover { background: #08734c; }
.outline { color: var(--green-ink); background: var(--surface); border-color: #d3dbd6; }
.outline:hover { background: var(--green-wash); border-color: #5a8a72; }
.soft, .ghost { color: var(--green); background: var(--green-wash); }
.soft:hover, .ghost:hover { background: #d5f0e1; }
.ghost { background: transparent; }
.danger { color: white; background: #a93b32; }
.danger:hover { background: #86342e; }
.small-btn { min-height: 37px; padding-inline: 11px; font-size: .81rem; }
.wide { width: 100%; }
.wide > span { text-align: left; }
.wide svg:last-child:not(:first-child) { margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); color: var(--green-ink); background: #fff; border-radius: 9px; flex: 0 0 auto; }
.icon-btn:hover { background: var(--green-wash); }
.text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: .85rem; font-weight: 730; border: 0; background: none; padding: 5px 0; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; font-size: .89rem; margin-bottom: 17px; min-height: 32px; }
.crumb:hover { text-decoration: underline; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 39px; height: 39px; border-radius: 50%; background: var(--green-wash); color: var(--green); font-size: .82rem; font-weight: 780; }
.avatar.large { width: 66px; height: 66px; font-size: 1.3rem; }
.avatar.dark { background: var(--green); color: white; }
.badge { display: inline-flex; gap: 6px; align-items: center; padding: 5px 9px; border-radius: 99px; background: #f1f3f3; color: #37443d; font-size: .74rem; line-height: 1.15; font-weight: 750; white-space: nowrap; }
.badge i { height: 5px; width: 5px; border-radius: 50%; background: currentColor; }
.badge.active, .badge.current, .badge.full { background: #e0f8e9; color: #085537; }
.badge.expiring, .badge.partial { background: #fcf0d7; color: #795013; }
.badge.expired { background: #f8eae5; color: #893b32; }
.badge.scheduled { background: #e6edf2; color: #355970; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: .82rem; font-weight: 830; line-height: 1.05; letter-spacing: .008em; }
.brand img { flex: none; object-fit: contain; mix-blend-mode: screen; filter: contrast(1.12); }
.brand-link { display: inline-flex; }
.shell { min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; width: var(--sidebar-width); padding: 0 15px 15px; display: flex; flex-direction: column; background: var(--black); color: #fff; }
.sidebar .brand-link { display: flex; align-items: center; min-height: 71px; padding: 0 8px; border-bottom: 1px solid #ffffff21; }
.sidebar-label { margin: 26px 11px 10px; color: #acb7b1; font-weight: 750; font-size: .65rem; letter-spacing: .16em; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 11px; min-height: 46px; border-radius: 8px; color: #c3cec8; font-size: .91rem; font-weight: 650; }
.nav-item:hover { background: #fff1; color: #fff; }
.nav-item.selected { background: #143c2b; color: #fff; font-weight: 760; }
.sidebar .nav-item.selected::before { content: ""; position: absolute; left: 0; width: 3px; height: 21px; border-radius: 4px; background: var(--accent); }
.nav-item.selected svg { color: var(--accent); }
.sidebar :focus-visible, .mobile-top :focus-visible, .mobile-nav :focus-visible { outline-color: var(--accent); }
.sidebar-bottom { margin-top: auto; }
.hero-kicker i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: none; }
.account { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid #ffffff26; border-radius: 9px; }
.account:hover { background: #fff1; }
.account .avatar { background: #1a4732; color: #a4f7c8; }
.account > span:nth-child(2) { flex: 1; min-width: 0; }
.account strong, .account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account strong { font-size: .88rem; }
.account small { font-size: .74rem; color: #bbc8c0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 71px; margin-left: var(--sidebar-width); padding-inline: clamp(23px, 3.3vw, 52px); background: #fff; border-bottom: 1px solid var(--line); }
.topbar-path { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .82rem; }
.topbar-path strong { color: var(--ink); }
.topbar-profile { border-radius: 50%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.notification-bell { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 11px; color: var(--green-ink); background: #fff; }
.notification-bell:hover, .notification-bell[aria-current] { background: var(--green-wash); border-color: #b9d7c7; }
.notification-bell-count { position: absolute; top: -4px; right: -5px; min-width: 20px; padding: 1px 4px; color: #fff; background: var(--green); border: 2px solid #fff; border-radius: 99px; text-align: center; line-height: 15px; font-size: .65rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mobile-top .notification-bell { color: #e7f5ed; background: #ffffff0b; border-color: #ffffff33; }
.mobile-top .notification-bell:hover, .mobile-top .notification-bell[aria-current] { background: #1c4634; border-color: #78bc9c; }
.mobile-top .notification-bell-count { color: #0b2c20; background: #b2f4ce; border-color: var(--black); }
.notification-center { max-width: 960px; }
.notification-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 12px; }
.notification-tools .notification-tabs { flex: 1 1 360px; margin-bottom: 0; }
.notification-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; margin-bottom: 12px; }
.notification-tabs a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border-radius: 8px; color: var(--green-ink); font-size: .87rem; font-weight: 740; }
.notification-tabs a:hover { background: var(--green-wash); }
.notification-tabs a[aria-current] { background: var(--green); color: #fff; }
.notification-tab-count { display: inline-grid; place-items: center; min-width: 22px; padding: 1px 5px; border-radius: 99px; background: var(--green-wash); color: var(--green-ink); font-size: .73rem; font-variant-numeric: tabular-nums; }
.notification-tabs a[aria-current] .notification-tab-count { background: #fff; }
.notification-list { display: grid; gap: 9px; }
.notification-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 13px; padding: 14px; }
.notification-row-unread { border-color: #aed5c0; background: #f7fcf9; }
.notification-row-icon { margin: 0; }
.notification-row-meta, .notification-row-copy h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.notification-row-meta { color: var(--muted); font-size: .75rem; }
.notification-row-meta > span { font-weight: 750; }
.notification-row-copy { overflow-wrap: anywhere; }
.notification-row-copy h2 { margin: 3px 0; font-size: 1.04rem; }
.notification-row-copy p { color: var(--muted); font-size: .89rem; }
.notification-unread { padding: 2px 6px; border-radius: 99px; background: #dff5e9; color: var(--green-ink); font-size: .69rem; font-weight: 750; white-space: nowrap; }
.notification-row-actions { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: end; }
.notification-row-actions .btn { min-height: 44px; }
@media (max-width: 700px) {
  .notification-row { grid-template-columns: auto minmax(0,1fr); gap: 8px 10px; padding: 11px; }
  .notification-row-actions { grid-column: 1 / -1; }
}
@media (max-width: 410px) {
  .notification-tabs { gap: 3px; }
  .notification-tabs a { padding-inline: 8px; font-size: .77rem; }
  .notification-tab-count { min-width: 19px; padding-inline: 4px; font-size: .69rem; }
}
.mobile-top, .mobile-nav { display: none; }
.main { margin-left: var(--sidebar-width); padding: 27px clamp(23px, 3.3vw, 52px) 46px; max-width: 1640px; }
.focus-main { max-width: 1050px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.page-head .eyebrow { margin-bottom: 9px; }
.page-head > div:first-child { min-width: 0; }
.page-head .actions { flex: 0 1 auto; justify-content: flex-end; }
.page-head .actions .btn { white-space: nowrap; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.padded { padding: clamp(15px, 2vw, 23px); }
.card-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 11px; }
.card-title p { color: var(--muted); font-size: .85rem; margin-top: 5px; }
.card-title h2 { align-self: center; }
.card > .muted + .actions { margin-top: 10px; }
.coach-overview { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(255px, 1fr); gap: 15px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 283px; padding: 27px clamp(18px, 3vw, 36px); border-radius: 15px; background: var(--green-deep); color: #fff; }
.hero-decoration { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#08291f 0%,#08291fe8 30%,#08291f2b 74%,#071b13a3 100%), url('/assets/training-hero.webp') right 12%/cover no-repeat; }
.hero-decoration::after { content: ""; position: absolute; inset: 0; border-bottom: 3px solid var(--accent); opacity: .76; }
.hero-inner { position: relative; min-width: 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .66rem; font-weight: 790; letter-spacing: .13em; padding: 6px 9px; border: 1px solid #c7fbe34d; color: #e5ffef; background: #0b2c20b3; border-radius: 6px; }
.hero h2 { margin: 13px 0 8px; font-size: clamp(2.1rem, 4vw, 3.65rem); line-height: .98; letter-spacing: -.055em; }
.hero h2 em, .login-statement em { color: var(--accent); font-style: normal; }
.hero-inner > p:not(.hero-kicker) { color: #e5f3eb; font-size: .92rem; }
.hero-btn { color: #09271a; background: var(--accent); margin-top: 17px; min-height: 42px; }
.hero-btn:hover { background: #a4ffc9; }
.hero :focus-visible, .library-promo :focus-visible, .celebration :focus-visible { outline-color: #fff; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.coach-metrics { grid-template-columns: 1fr; grid-template-rows: repeat(3,minmax(0,1fr)); margin: 0; gap: 9px; }
.metric { display: flex; align-items: center; gap: 11px; padding: 14px; }
.metric-icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 43px; height: 43px; border-radius: 10px; background: var(--green-wash); color: var(--green); }
.metric-copy { flex: 1; min-width: 0; }
.metric p { font-size: .81rem; color: var(--ink); font-weight: 730; line-height: 1.25; }
.metric strong { font-size: 2.22rem; line-height: 1; font-weight: 820; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.metric small { display: block; color: var(--muted); font-size: .74rem; margin-top: 3px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 14px; margin-top: 14px; align-items: start; }
.library-promo { background: #092f21; border-color: #092f21; color: white; display: flex; flex-direction: column; gap: 9px; min-height: 100%; }
.library-promo-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.library-promo .metric-icon { background: #164c34; color: var(--accent); }
.library-count { color: var(--accent); font-size: .69rem; font-weight: 780; letter-spacing: .12em; }
.library-promo > p { color: #d8e9df; flex: 1; }
.library-promo .btn { margin-top: 4px; }
.recent { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; min-width: 0; }
.row:hover .row-copy strong { color: var(--green); text-decoration: underline; }
.row + .row, .rows > div + div { border-top: 1px solid #edf0ee; }
.row-copy { flex: 1; min-width: 0; }
.row-copy strong, .row-copy small, .membership strong, .membership small { display: block; overflow-wrap: anywhere; }
.row-copy small, .membership small { color: var(--muted); font-size: .79rem; margin-top: 2px; }
.row > svg { color: var(--muted); }
.empty { text-align: center; padding: 28px 16px; display: grid; justify-items: center; gap: 8px; }
.empty p { color: var(--muted); font-size: .9rem; max-width: 42ch; }
.empty .btn { margin-top: 5px; }
.toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.list-sort { min-width: 0; max-width: 100%; }
.list-sort .field { grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 7px; }
.list-sort .field > span { white-space: nowrap; }
.list-sort select { min-height: 44px; }
.list-sort-bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.client-tools .list-sort { display: none; }
.searchbox { display: flex; align-items: center; flex: 1 1 250px; max-width: 460px; gap: 10px; background: var(--surface); color: var(--muted); padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; min-height: 45px; }
.searchbox:focus-within { outline: 2px solid #759886; }
.searchbox input { border: 0; background: transparent; outline: 0; flex: 1; min-width: 0; height: 43px; color: var(--ink); }
.searchbox input:focus-visible { outline: none; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.filter { min-height: 40px; padding: 0 13px; color: var(--green-ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: .83rem; font-weight: 690; white-space: nowrap; }
.filter:hover { border-color: #86af99; }
.filter.chosen { color: white; background: var(--green); }
.client-list { padding: 0 18px; }
.client-grid { display: grid; grid-template-columns: minmax(145px,1.5fr) minmax(110px,1fr) minmax(86px,.65fr) minmax(95px,.92fr) minmax(90px,.72fr) 16px; align-items: center; gap: 10px; }
.table-head { min-height: 48px; color: var(--muted); font-size: .72rem; font-weight: 770; letter-spacing: .055em; text-transform: uppercase; }
.client-sort-button { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; text-transform: inherit; font: inherit; letter-spacing: inherit; }
.client-sort-button svg { flex: none; opacity: .58; }
.client-sort-button:hover, [aria-sort] > .client-sort-button { color: var(--green); }
[aria-sort] > .client-sort-button svg { opacity: 1; }
.client-line { position: relative; min-height: 65px; padding-block: 7px; border-top: 1px solid #edf0ee; font-size: .87rem; }
.client-line:hover, .client-line:focus-within { background: #f3faf6; }
.client-name, .client-name-link, .client-name-link > span:nth-child(2) { min-width: 0; }
.client-name-link { display: flex; gap: 10px; align-items: center; }
.client-name-link::after { content: ''; position: absolute; inset: 0; }
.client-name strong, .client-name small { display: block; overflow: hidden; text-overflow: ellipsis; }
.client-name small { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.client-plan-name { display: block; margin-bottom: 4px; font-size: .73rem; font-weight: 720; overflow-wrap: anywhere; }
.client-column-arrow { color: var(--muted); }
.client-program { overflow-wrap: anywhere; }
.client-mobile-label { display: none; }
.client-trophy-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; min-width: 0; max-width: 100%; }
.client-trophy-count { display: inline-flex; align-items: center; gap: 2px; font-size: .77rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.client-trophies-none { color: var(--muted); }
.client-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.table-foot { padding: 13px 0; border-top: 1px solid #edf0ee; color: var(--muted); font-size: .78rem; }
.identity { display: flex; align-items: center; gap: 13px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.48fr); gap: 14px; align-items: start; }
.detail-grid.wide-left { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #edf0ee; }
.facts dt { font-size: .84rem; font-weight: 700; }
.facts dd { font-size: .84rem; text-align: right; color: var(--muted); margin: 0; overflow-wrap: anywhere; min-width: 0; }
.membership { display: flex; gap: 11px; align-items: center; margin: 13px 0; }
.tabs { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; margin: 0 0 15px; border-bottom: 1px solid var(--line); }
.tabs > a, .tabs > button:not(.btn) { color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font-size: .87rem; font-weight: 720; overflow-wrap: anywhere; min-width: 0; }
.tabs > .active { color: var(--green); border-bottom-color: var(--green); }
.tabs > a:hover, .tabs > button:not(.btn):hover { color: var(--green); }
.tabs > .btn { align-self: center; }
.client-profile-tabs > a { min-height: 44px; display: flex; align-items: center; }
.client-sheets-shortcut { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 12px; margin-bottom: 14px; }
.client-sheets-shortcut:hover { border-color: #86af99; }
.client-sheets-shortcut h2 { font-size: 1.24rem; }
.client-sheets-shortcut p { margin-top: 4px; overflow-wrap: anywhere; }
.client-sheets-open { color: var(--green); font-size: .88rem; font-weight: 730; }
.client-sheets-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.client-sheet-filters, .client-sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.client-sheet-filters .filter { display: inline-flex; align-items: center; min-height: 44px; }
.client-sheet-filters [aria-current="page"] { background: var(--green); color: #fff; border-color: var(--green); }
.client-sheet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.client-sheet-main { flex: 1 1 15rem; min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; }
.client-sheet-main:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.client-sheet-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.client-sheet-heading h3 { font-size: 1.12rem; }
.client-sheet-main .assignment-dates { margin: 5px 0 0; }
.badge.completed { background: #edeaf7; color: #504077; }
.client-sheet-delete { color: #90352c; border-color: #efd5d0; }
.client-sheet-delete:hover { background: #f9edea; border-color: #c98278; }
@media (max-width: 650px) {
  .client-profile-tabs { gap: 3px; }
  .client-profile-tabs > a { padding-inline: 8px; }
  .client-sheets-shortcut { grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; }
  .client-sheets-open { display: none; }
  .client-sheet-row { display: grid; }
  .client-sheet-main .metric-icon { width: 35px; height: 35px; }
  .client-sheet-actions .btn { min-height: 44px; }
}
.assignment-head { display: flex; align-items: center; gap: 11px; }
.assignment-head > div { flex: 1; min-width: 0; }
.assignment-head p { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.assignment-dates { display: flex; align-items: center; gap: 7px; margin: 12px 0; font-size: .83rem; color: var(--muted); }
.assignment .week-progress { margin-bottom: 15px; color: var(--green-ink); }
.callout { display: flex; gap: 11px; padding: 12px; border-radius: 10px; color: var(--green-ink); background: var(--green-wash); margin: 12px 0 0; }
.callout svg { flex: none; }
.callout strong, .coach-note strong { font-size: .87rem; }
.callout p, .coach-note p { font-size: .85rem; color: var(--muted); margin-top: 3px; }
.warmup { margin: 0 0 14px; }
.count { font-size: .82rem; background: var(--green-wash); color: var(--green); font-weight: 760; border-radius: 99px; padding: 3px 8px; }
.library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.results-count { color: var(--muted); font-size: .83rem; margin-bottom: 8px; }
.exercise-card { padding: 9px; overflow: hidden; }
.exercise-open { display: block; position: relative; }
.exercise-open:hover h2 { color: var(--green); text-decoration: underline; }
.exercise-picture { position: relative; }
.thumb { display: block; object-fit: cover; flex: none; }
.exercise-picture .thumb { width: 100%; aspect-ratio: 16/10; border-radius: 11px; }
.placeholder { display: grid; place-items: center; color: #87f2b6; background: repeating-linear-gradient(125deg,transparent 0 45px,#36de9250 46px 47px,transparent 48px 75px), #0d3526; }
.play-bubble { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; left: 8px; bottom: 8px; color: var(--green); background: white; border-radius: 50%; box-shadow: 0 3px 7px #0002; }
.exercise-copy { padding: 10px 4px; min-width: 0; }
.exercise-copy .eyebrow { font-size: .66rem; }
.exercise-copy h2 { font-size: 1.14rem; margin: 4px 0; }
.exercise-copy p:last-child { font-size: .82rem; color: var(--muted); }
.exercise-chevron { display: none; }
.exercise-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf0ee; padding: 7px 3px 2px; }
.exercise-actions .icon-btn { width: 36px; height: 36px; }
.media-card { min-width: 0; }
.player { width: 100%; max-height: 60vh; aspect-ratio: 16/9; background: #101412; border-radius: 10px; display: block; }
.detail-thumb { width: 100%; max-height: 280px; aspect-ratio: 16/9; border-radius: 10px; margin-bottom: 8px; }
.upload-preview { display: grid; place-items: center; min-height: 134px; border: 1px dashed #acc4b3; border-radius: 10px; color: var(--green); background: var(--green-wash); }
.upload input { padding: 7px; }
.upload input::file-selector-button { margin-right: 7px; border: 0; border-radius: 7px; padding: 7px; background: var(--green-wash); color: var(--green); font-weight: 730; cursor: pointer; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--green); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.field > span { font-size: .83rem; font-weight: 730; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; min-height: 42px; padding: 8px 10px; border-radius: 9px; border: 1px solid #d3dcd6; color: var(--ink); background: #fff; }
.field input[type=date] { appearance: none; min-height: 42px; }
.field input[readonly] { background: #f3f5f4; }
.field input::placeholder, .field textarea::placeholder { color: #65716a; }
.field textarea { min-height: 78px; resize: vertical; }
.form-error { padding: 9px 11px; color: #842a21; background: #fbede8; border-radius: 8px; font-size: .86rem; }
.editor-item { padding: 13px; }
.reorder { display: flex; gap: 4px; }
.reorder:empty { display: none; }
.editor-item .icon-btn { width: 34px; height: 34px; }
.preview-items { margin: 7px 0 0; padding-left: 19px; }
.athlete-hero { min-height: 234px; }
.athlete-hero .hero-decoration { background-position: center, right 8%; }
.athlete-hero h2 { margin-top: 12px; }
.week-progress { display: grid; gap: 5px; font-size: .85rem; color: #e1f3e9; max-width: 300px; margin-top: 12px; }
progress { display: block; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; background: #e1ebe5; color: var(--green); }
progress::-webkit-progress-bar { background: transparent; }
progress::-webkit-progress-value { background: currentColor; border-radius: 99px; }
progress::-moz-progress-bar { background: currentColor; border-radius: 99px; }
.hero progress { color: var(--accent); background: #ffffff37; }
.next-workout { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; border-left: 3px solid var(--green); }
.next-workout h2 { margin: 6px 0 3px; font-size: 1.47rem; }
.next-workout .btn { flex: none; }
.library-quick { display: flex; gap: 10px; align-items: center; padding: 11px; border-radius: 12px; background: #ebf7f0; }
.library-quick:hover { background: #dcf4e6; }
.workout-card { border-top: 3px solid var(--green); }
.chart { margin: 10px 0 2px; }
.chart svg { width: 100%; height: 124px; display: block; }
.chart-grid { fill: none; stroke: #e2e8e4; vector-effect: non-scaling-stroke; }
.chart .bar { fill: #82d3a9; }
.chart .last { fill: #075438; }
.chart-labels { display: grid; grid-template-columns: repeat(6,1fr); text-align: center; color: var(--muted); font-size: .7rem; margin-top: 5px; }
.progress-chart .chart { max-width: 760px; }
.log-results { display: grid; gap: 6px; padding: 0 0 10px 52px; }
.log-item { border: 1px solid var(--line); background: #f6faf8; border-radius: 9px; padding: 9px; }
.log-item > div { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.log-item small, .log-item p { color: var(--muted); font-size: .84rem; }
.log-item p { margin-top: 5px; }
.item-heading { display: flex; gap: 10px; align-items: center; }
.item-heading h2, .item-heading h3, .item-heading > div:has(h1) { flex: 1; }
.item-index { font-size: .9rem; font-weight: 790; color: #0c6748; }
.prescription { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 13px 0 0; }
.prescription > div { border-left: 1px solid #e6ebe8; padding-left: 7px; }
.prescription > div:first-child { border: 0; padding-left: 0; }
.prescription dt { font-size: .62rem; color: var(--muted); font-weight: 760; letter-spacing: .045em; }
.prescription dd { font-weight: 760; margin: 1px 0 0; font-size: 1rem; overflow-wrap: anywhere; }
.coach-note { border-top: 1px solid #e6ebe8; margin-top: 13px; padding-top: 8px; display: flex; gap: 8px; color: var(--green); }
.coach-note > svg { flex: none; }
.bottom-actions { display: none; }
.workout-top { display: flex; justify-content: space-between; gap: 9px; align-items: end; }
.workout-top .eyebrow { margin-bottom: 6px; }
.workout-top > span { color: var(--green); font-size: .82rem; white-space: nowrap; }
.workout-meter { margin: 8px 0 11px; }
.workout-steps { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.workout-steps button { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--green-ink); font-weight: 730; }
.workout-steps .done-step { background: var(--green-wash); }
.workout-steps .current-step { border-color: var(--green); background: var(--green); color: white; }
.workout-card h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-top: 4px; }
.technique { background: #f1f8f4; border-radius: 8px; margin-top: 12px; padding: 9px 11px; }
.technique summary { cursor: pointer; font-weight: 730; color: var(--green); font-size: .88rem; }
.technique p { margin: 6px 0 0; }
.workout-form { margin-top: 17px; }
.workout-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.workout-form legend { font-weight: 760; margin-bottom: 7px; }
.status-options { display: flex; gap: 6px; flex-wrap: wrap; }
.status-options label { position: relative; flex: 1 1 120px; min-width: 0; }
.status-options input { position: absolute; opacity: 0; }
.status-options span { display: flex; gap: 6px; align-items: center; justify-content: center; min-height: 43px; border: 1px solid #d3dcd6; border-radius: 8px; padding: 6px; cursor: pointer; color: var(--green-ink); font-size: .81rem; font-weight: 690; }
.status-options input:checked + span { background: var(--green-wash); border-color: #238b5d; box-shadow: inset 0 0 0 1px #238b5d; }
.status-options input:focus-visible + span { outline: 3px solid #08734c; outline-offset: 2px; }
.workout-actions { justify-content: flex-end; }
.workout-footer { margin-top: 10px; }
.workout-footer p { font-size: .82rem; text-align: right; }
.celebration { padding: 35px 14px; min-height: 410px; position: relative; isolation: isolate; overflow: hidden; text-align: center; display: grid; gap: 10px; align-content: center; justify-items: center; background: radial-gradient(ellipse at 50% 20%, #154d34, #091f16 74%); color: #fff; border-color: var(--green-deep); }
.celebration-icon { display: grid; place-items: center; background: var(--accent); color: #09271a; width: 78px; height: 78px; border-radius: 21px; }
.celebration .eyebrow { color: var(--accent); }
.celebration > p:not(.eyebrow) { color: #d9e8df; }
.celebration-totals { display: flex; gap: 10px; margin: 8px 0; }
.celebration-totals > span { padding: 10px; background: #ffffff13; border: 1px solid #fff3; border-radius: 10px; font-size: .81rem; color: #d9e8df; }
.celebration-totals strong { display: block; color: #fff; font-size: 1.35rem; }
.celebration .actions { justify-content: center; }
.celebration .primary { background: var(--accent); color: #09271a; }
.celebration .primary:hover { background: #a4ffc9; }
.celebration-confetti { position: absolute; inset: 0; z-index: -1; }
.celebration-confetti i { position: absolute; top: 15%; left: 20%; width: 9px; height: 15px; border-radius: 3px; background: #a5ffca; transform: rotate(30deg); animation: confetti .9s ease-out both; }
.celebration-confetti i:nth-child(2) { top: 37%; left: 10%; background: #59b883; }
.celebration-confetti i:nth-child(3) { top: 51%; left: 23%; transform: rotate(-30deg); }
.celebration-confetti i:nth-child(4) { top: 13%; left: 79%; background: #59b883; }
.celebration-confetti i:nth-child(5) { top: 39%; left: 87%; transform: rotate(-30deg); }
.celebration-confetti i:nth-child(6) { top: 52%; left: 75%; background: #59b883; }
@keyframes confetti { from { translate: 0 -30px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
dialog { width: min(600px,calc(100% - 24px)); max-height: min(88dvh,780px); padding: 21px; border: 1px solid var(--line); border-radius: 19px; background: white; color: var(--ink); box-shadow: 0 18px 65px #0d2b2140; }
dialog::backdrop { background: #0b1510a8; }
.dialog-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 15px; }
.dialog-head h2 { font-size: 1.55rem; }
.dialog-head p { color: var(--muted); margin-top: 6px; font-size: .9rem; }
.dialog-actions { justify-content: flex-end; margin-top: 13px; }
.exercise-picker { gap: 9px; }
.exercise-picker-filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(136px,36%); gap: 9px; }
.exercise-picker-filters input, .exercise-picker-filters select { min-height: 44px; }
.exercise-picker-status { margin-top: 3px; font-weight: 650; }
.exercise-picker-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.exercise-picker-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; color: var(--green-ink); text-align: left; }
.exercise-picker-item:hover { background: var(--green-wash); border-color: var(--green); }
.exercise-picker-item > span { min-width: 0; overflow-wrap: anywhere; }
.exercise-picker-item strong, .exercise-picker-item small { display: block; }
.exercise-picker-item small { margin-top: 1px; color: var(--muted); font-size: .79rem; }
.exercise-picker-empty { padding: 12px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); }
.exercise-picker-pages { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.exercise-picker-pages button:disabled { cursor: default; }
@media (max-width: 360px) {
  .exercise-picker-filters { grid-template-columns: minmax(0,1fr); }
}
.toast { position: fixed; z-index: 10; bottom: 18px; right: 18px; max-width: min(430px,calc(100% - 36px)); background: var(--green-deep); color: white; border-radius: 10px; padding: 10px 14px; box-shadow: 0 3px 20px #0002; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .16s,transform .16s; font-size: .9rem; }
.toast.visible { opacity: 1; transform: none; }
.toast.error { background: #823a32; }
.toast.warning { background: #614313; }
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); background: #fff; }
.login-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; overflow: hidden; padding: 37px clamp(24px,4.5vw,64px); color: #fff; background: linear-gradient(90deg,#091812e8 0%,#0a2217a3 57%,#08160e35), url('/assets/training-hero.webp') 71% center/cover, var(--black); }
.login-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-bottom: 4px solid var(--accent); }
.login-mark, .login-statement { position: relative; z-index: 1; }
.login-statement { margin-block: auto; }
.login-statement > p { font-size: clamp(2.55rem,6.4vw,6.65rem); line-height: .94; letter-spacing: -.065em; font-weight: 840; }
.login-panel { display: grid; align-items: center; padding: 30px; }
.login-inner { width: min(100%,430px); margin: auto; }
.login-inner h1 { margin-top: 9px; font-size: clamp(2.1rem,4.1vw,3.4rem); }
.login-form { margin: 22px 0 8px; gap: 12px; }
.login-form .field input { min-height: 49px; }
.login-form .btn { min-height: 48px; }
.login-caption { text-align: center; font-size: .78rem; margin-top: 8px; }
.password-field { position: relative; }
.password-field input { padding-right: 47px; }
.password-field .icon-btn { position: absolute; right: 4px; bottom: 4px; border: 0; }
.forgot { justify-self: end; margin-top: -6px; }
.demo-box { margin-top: 23px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f3f8f5; }
.demo-box p { color: var(--muted); font-size: .81rem; margin-top: 2px; }
.demo-box .actions { margin-top: 8px; }
.login-mobile-brand { display: none; }
.initial, .startup-error { min-height: 100dvh; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px; }
.initial img { border-radius: 9px; }
@media (max-width: 1050px) {
  :root { --sidebar-width: 192px; }
  .sidebar { padding-inline: 11px; }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .client-grid { grid-template-columns: minmax(125px,1.25fr) minmax(94px,.85fr) minmax(77px,.62fr) minmax(70px,.85fr) minmax(77px,.72fr) 16px; }
}
@media (max-width: 980px) {
  .coach-overview { grid-template-columns: 1fr; }
  .coach-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: none; }
  .metric { gap: 7px; }
  .metric .metric-icon { width: 36px; height: 36px; }
  .metric strong { font-size: 1.78rem; }
}
@media (max-width: 820px) {
  :root { --sidebar-width: 68px; }
  .sidebar { padding: 0 7px 12px; align-items: center; }
  .sidebar .brand-link { padding: 0 4px; margin: 0; }
  .account { padding: 4px; }
  .sidebar .brand > span, .sidebar-label, .sidebar .nav-item > span, .account > span:nth-child(2), .account > svg { display: none; }
  .sidebar nav { margin-top: 23px; }
  .sidebar .nav-item { justify-content: center; width: 49px; }
}
@media (651px <= width <= 740px) {
  .client-grid { grid-template-columns: minmax(112px,1.25fr) minmax(99px,.9fr) minmax(70px,.65fr) minmax(62px,.85fr) minmax(70px,.65fr) 14px; gap: 7px; }
  .client-grid.table-head { font-size: .66rem; letter-spacing: .03em; }
  .client-name-link { gap: 6px; }
}
@media (max-width: 650px) {
  .sidebar, .topbar { display: none; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: max(11px,env(safe-area-inset-top)) 14px 10px; background: var(--black); color: white; border-bottom: 1px solid #ffffff21; }
  .mobile-top .brand img { width: 36px; height: 36px; }
  .mobile-top .avatar { background: #1b4b35; color: #a4f7c8; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; inset: auto 9px max(7px,env(safe-area-inset-bottom)); z-index: 4; background: var(--black); border: 1px solid #23372b; border-radius: 13px; padding: 4px; box-shadow: 0 4px 18px #1115; }
  .mobile-nav .nav-item { flex-direction: column; gap: 2px; justify-content: center; min-height: 46px; padding: 4px 0; font-size: .63rem; }
  .mobile-nav .nav-item.selected { background: #174633; color: #fff; }
  .main { margin: 0; padding: 17px 12px calc(81px + env(safe-area-inset-bottom)); }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 14px; gap: 11px; }
  .page-head .actions { justify-content: flex-start; }
  h1 { font-size: clamp(2rem,9vw,2.8rem); }
  .subtitle { margin-top: 4px; font-size: .95rem; }
  .coach-overview { gap: 9px; }
  .hero { min-height: 205px; padding: 16px; border-radius: 13px; }
  .hero-decoration, .athlete-hero .hero-decoration { background-position: center,right 26%; }
  .hero h2 { font-size: clamp(1.92rem,8vw,2.8rem); }
  .hero-inner > p:not(.hero-kicker) { font-size: .85rem; max-width: 29ch; }
  .hero-kicker { font-size: .61rem; }
  .metrics { gap: 6px; margin: 9px 0; }
  .coach-metrics { margin: 0; }
  .metric { display: grid; grid-template-columns: 1fr auto; gap: 5px; padding: 8px; border-radius: 10px; }
  .metric .metric-icon { width: 30px; height: 30px; border-radius: 7px; }
  .metric .metric-icon svg { width: 17px; }
  .metric-copy { grid-area: 2 / 1 / 3 / 3; }
  .metric p { font-size: .68rem; }
  .metric strong { font-size: 1.44rem; }
  .metric small { display: none; }
  .dashboard-grid, .detail-grid, .detail-grid.wide-left { grid-template-columns: 1fr; gap: 10px; }
  .stack { gap: 10px; }
  .card { border-radius: 13px; }
  .padded { padding: 12px; }
  .library-promo { min-height: 0; }
  .client-list { padding: 0 9px; }
  .client-tools .list-sort { display: block; }
  .table-head { display: none; }
  .client-grid { grid-template-columns: minmax(0,1fr) minmax(0,min(38%,114px)) 12px; gap: 5px; }
  .client-line:nth-child(2) { border-top: 0; }
  .client-name { grid-area: 1 / 1; }
  .client-membership { grid-area: 1 / 2; text-align: right; max-width: 114px; }
  .client-column-arrow { grid-area: 1 / 3; }
  .client-date { grid-area: 2 / 1; color: var(--muted); font-size: .72rem; }
  .client-mobile-label { display: inline; }
  .client-trophies { grid-area: 2 / 2; }
  .client-trophy-counts { justify-content: flex-end; }
  .client-program { grid-area: 3 / 1 / 4 / 3; color: var(--muted); font-size: .75rem; }
  .client-name-link { gap: 5px; }
  .client-name .avatar { width: 33px; height: 33px; }
  .client-name strong { font-size: .82rem; }
  .badge { padding: 4px 6px; gap: 4px; font-size: .68rem; }
  .library-tools { align-items: stretch; }
  .searchbox { max-width: none; }
  .filter { min-height: 34px; padding-inline: 9px; }
  .athlete .library-grid { grid-template-columns: 1fr; gap: 6px; }
  .athlete .exercise-open { display: flex; align-items: center; gap: 9px; padding-right: 3px; }
  .athlete .exercise-picture { flex: 0 0 88px; }
  .athlete .exercise-chevron { display: block; margin-left: auto; }
  .athlete .exercise-copy { padding: 2px; }
  .athlete .exercise-copy h2 { font-size: 1.02rem; }
  .exercise-card { padding: 6px; }
  .exercise-copy h2 { font-size: 1rem; }
  .exercise-actions .btn { padding-inline: 6px; }
  .next-workout { align-items: stretch; flex-direction: column; }
  .next-workout .btn { justify-content: space-between; }
  .identity .avatar.large { width: 52px; height: 52px; }
  .log-results { padding-left: 0; }
  .item-heading h2 { font-size: 1.15rem; }
  .bottom-actions { display: block; margin-top: 10px; }
  .bottom-actions .btn { width: 100%; }
  .workout-card .item-heading { flex-wrap: wrap; }
  .toast { bottom: calc(65px + env(safe-area-inset-bottom)); right: 10px; }
  .login { display: block; }
  .login-visual { display: none; }
  .login-panel { min-height: 100dvh; padding: 0 15px 20px; align-items: start; }
  .login-mobile-brand { display: flex; align-items: center; min-height: 126px; padding: 14px; margin: 0 0 21px; color: #fff; border-radius: 12px; border-bottom: 3px solid var(--accent); background: linear-gradient(90deg,#091d14ed,#091d144a), url('/assets/training-hero.webp') right 29%/cover, var(--black); }
  .login-mobile-brand .brand img { width: 47px; height: 47px; }
  .login-inner { max-width: 395px; }
  .field input, .field select, .field textarea, .searchbox input { font-size: 16px; }
  dialog { padding: 14px; }
}
@media (max-width: 350px) {
  .form-grid { grid-template-columns: 1fr; }
  .partial-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric p { font-size: .62rem; }
  .client-name .avatar { display: none; }
  .assignment-head > .metric-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Anagrafica e abbonamenti */
.avatar { position: relative; overflow: hidden; }
.avatar-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-photo-field { display: flex; align-items: flex-start; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.profile-photo-field > div { flex: 1; }
.profile-photo-field .stack { gap: 7px; }
.email-confirm { margin: 0; }
.email-confirm > div { flex: 1; min-width: 0; }
.email-confirm .field { margin-top: 8px; }
.nav-short { display: none; }
.membership-status { margin: -3px 0 11px; }
.badge.pay-due { color: #744508; background: #fff1d6; }
.badge.pay-processing { color: #224d67; background: #e5f2fc; }
.badge.pay-paid { color: #075438; background: #dff8e9; }
.badge.pay-unrecorded { color: #3f4a44; background: #edf0ee; }
.catalog-section, .subscription-section { margin-bottom: 20px; }
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.catalog-sort { margin-bottom: 12px; justify-content: flex-end; }
.stack > .catalog-head { margin: 8px 0 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr)); gap: 12px; }
.plan-card { display: flex; flex-direction: column; gap: 13px; border-top: 3px solid var(--green); }
.plan-heading { display: flex; align-items: start; gap: 9px; justify-content: space-between; }
.plan-heading h3 { font-size: 1.24rem; margin-top: 5px; }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: .88rem; }
.plan-features li { display: flex; align-items: flex-start; gap: 7px; overflow-wrap: anywhere; }
.plan-features svg { color: var(--green); margin-top: 2px; flex: none; }
.plan-prices { display: grid; gap: 9px; margin-top: auto; padding: 11px; border-radius: 8px; background: #f2f8f5; }
.plan-prices > div + div { padding-top: 8px; border-top: 1px solid #d8e8de; }
.plan-prices p, .subscription-payment p { color: var(--muted); font-size: .8rem; }
.plan-prices strong { font-size: 1.03rem; }
.plan-prices small, .subscription-payment small { display: block; color: var(--muted); font-size: .77rem; margin-top: 3px; overflow-wrap: anywhere; }
.member-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); grid-template-areas: "primary upgrade" "history upgrade"; gap: 14px; align-items: start; }
.member-primary { grid-area: primary; }
.member-history { grid-area: history; }
.member-current { overflow: hidden; }
.member-cover { padding: clamp(16px,3vw,25px); color: white; background: linear-gradient(115deg,#101412,#075438); border-bottom: 3px solid var(--accent); }
.member-cover h2 { margin: 8px 0 10px; font-size: clamp(1.6rem,3vw,2.5rem); }
.subscription-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.subscription-body { display: grid; gap: 12px; }
.subscription-dates { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .85rem; }
.subscription-dates svg { flex: none; }
.subscription-payment { display: grid; gap: 8px; padding: 12px; border-radius: 9px; background: #f1f8f4; }
.subscription-payment strong { display: block; margin: 3px 0; font-size: 1.65rem; line-height: 1.15; color: var(--green-ink); }
.subscription-checkout { display: grid; gap: 7px; }
.subscription-checkout .btn { justify-self: start; }
.subscription-checkout h3 { margin: 3px 0; }
.payment-offer-section { gap: 7px; }
.payment-offers, .subscription-installments { display: grid; gap: 8px; }
.payment-offer, .subscription-installment { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f7faf8; }
.payment-offer, .subscription-installment-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; }
.payment-offer > div, .subscription-installment-head > div { min-width: 0; overflow-wrap: anywhere; }
.payment-offer small, .subscription-installment small { display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; }
.payment-offer small:first-of-type { font-size: .86rem; font-weight: 650; }
.payment-method-change > .payment-offer-section { margin-top: 8px; }
.subscription-installments { margin: 0; padding: 0; list-style: none; }
.subscription-installment-action { margin-top: 8px; }
.transfer-choice summary { cursor: pointer; list-style: none; }
.transfer-choice summary::-webkit-details-marker { display: none; }
.transfer-choice[open] summary > svg:last-child { transform: rotate(90deg); }
.transfer-panel { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f7fbf8; }
.transfer-panel dl { margin: 0 0 8px; }
.transfer-field { padding: 6px 0; }
.transfer-field + .transfer-field { border-top: 1px solid var(--line); }
.transfer-field dt { color: var(--muted); font-size: .76rem; font-weight: 700; }
.transfer-field dd { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin: 0; }
.transfer-field dd span { min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.transfer-field .icon-btn { flex: none; }
.subscription-row > summary { display: flex; align-items: center; gap: 9px; cursor: pointer; min-height: 40px; list-style: none; }
.subscription-row > summary::-webkit-details-marker { display: none; }
.subscription-row > summary > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.subscription-row > summary small { display: block; color: var(--muted); font-size: .76rem; }
.subscription-row > summary > svg { flex: none; color: var(--green); }
.subscription-row[open] > summary > svg { transform: rotate(90deg); }
.subscription-row > .subscription-body { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 10px; }
.upgrade-card { grid-area: upgrade; display: grid; gap: 8px; background: var(--green-deep); color: #fff; }
.upgrade-card .metric-icon { background: #164c34; color: var(--accent); }
.upgrade-card > p { color: #d8e9df; }
.upgrade-card .btn { margin-top: 3px; }
.checkout-fields .text-link { justify-self: start; white-space: normal; text-align: left; }
.enrollment-preview { margin: 0; font-weight: 700; }
@media (max-width: 650px) {
  .mobile-nav { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .mobile-nav .nav-full { display: none; }
  .mobile-nav .nav-short { display: inline; }
  .mobile-nav .nav-item { font-size: clamp(.52rem,1.55vw,.63rem); }
  .mobile-nav .nav-item svg { width: 19px; height: 19px; }
  .member-layout { grid-template-columns: 1fr; grid-template-areas: "primary" "upgrade" "history"; gap: 10px; }
  .subscription-checkout .btn { width: 100%; }
  .subscription-row > summary .subscription-badges { justify-content: flex-end; max-width: 46%; }
  .payment-offer .btn, .subscription-installment-action .btn { min-height: 44px; }
  .catalog-head .btn { min-height: 40px; padding-inline: 9px; }
  .profile-photo-field { gap: 9px; padding: 9px; }
  .profile-photo-field .avatar { width: 48px; height: 48px; font-size: 1rem; }
}

/* Percorso atleta */
.journey-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 17px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.journey-tabs a { display: grid; place-items: center; min-height: 42px; padding: 6px 13px; border-radius: 7px; color: var(--green-ink); font-size: .88rem; font-weight: 720; }
.journey-tabs a:hover { background: var(--green-wash); }
.journey-tabs .active, .journey-tabs .active:hover { background: var(--green); color: #fff; }
.journey-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.journey-heading h2 { margin: 3px 0; font-size: clamp(1.3rem,3vw,1.75rem); }
.journey-heading p.muted { font-size: .87rem; }
.journey-history-head { margin-top: 22px; }
.goal-grid, .journey-card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr)); align-items: start; gap: 11px; }
.goal-column { display: grid; align-content: start; gap: 8px; }
.goal-column > h3 { font-size: .84rem; color: var(--green-ink); }
.goal-column > .muted { font-size: .85rem; }
.goal-card { display: grid; gap: 10px; }
.goal-card-head, .track-top { display: flex; align-items: center; gap: 9px; }
.goal-card-head > div, .track-top > div { min-width: 0; }
.goal-card small, .track-card small { color: var(--muted); font-size: .79rem; }
.goal-card p { font-size: .88rem; }
.goal-card .goal-trophy-label { margin-bottom: 3px; color: var(--muted); font-size: .76rem; font-weight: 720; }
.goal-trophy-label + h3 { margin-top: 0; }
.trophy-bronze { --trophy-deep: #713d24; --trophy-metal: #be7650; --trophy-glow: #f0c29c; --trophy-wash: #fdf0e5; --trophy-line: #e5c5af; }
.trophy-silver { --trophy-deep: #384d62; --trophy-metal: #8399ae; --trophy-glow: #d1dfec; --trophy-wash: #edf4fa; --trophy-line: #cddce9; }
.trophy-gold { --trophy-deep: #6c4a09; --trophy-metal: #b48120; --trophy-glow: #f5d273; --trophy-wash: #fff6d9; --trophy-line: #e9d29d; }
.trophy-mark { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--trophy-line); border-radius: 12px; color: var(--trophy-deep); background: linear-gradient(143deg, #fff 4%, var(--trophy-wash) 45%, var(--trophy-glow)); }
.trophy-mark svg { display: block; filter: drop-shadow(0 1px 1px #fff9); }
.trophy-mark-mini { width: 22px; height: 22px; border: 0; border-radius: 5px; }
.trophy-mark-medium { width: 70px; height: 70px; border-radius: 20px; }
.trophy-mark-large { position: relative; z-index: 1; width: 118px; height: 118px; border-radius: 32px; box-shadow: inset 0 1px 0 #fffa, 0 10px 24px color-mix(in srgb,var(--trophy-metal),transparent 72%); }
.trophy-mark-large svg, .trophy-mark-medium svg { stroke-width: 1.28; }
.trophy-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.trophy-choices legend { margin-bottom: 6px; font-size: .84rem; font-weight: 730; }
.trophy-choices > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.trophy-choice { display: grid; min-width: 0; position: relative; cursor: pointer; }
.trophy-choice input { position: absolute; opacity: 0; }
.trophy-choice > span { display: grid; justify-items: center; gap: 5px; min-width: 0; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: .81rem; }
.trophy-choice:hover > span { background: var(--green-wash); }
.trophy-choice input:checked + span { border-color: #34775b; box-shadow: inset 0 0 0 1px #34775b; background: #edf8f2; }
.trophy-choice input:focus-visible + span { outline: 3px solid #08734c; outline-offset: 2px; }
.trophy-award-summary { display: flex; align-items: center; gap: 9px; }
.trophy-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px; border-color: var(--trophy-line); transition: box-shadow .18s, border-color .18s; }
.trophy-card:hover { border-color: var(--trophy-metal); box-shadow: 0 5px 18px #172d2114; }
.trophy-card > svg { color: var(--trophy-deep); }
.trophy-card-content { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.trophy-card-content small { color: var(--trophy-deep); font-size: .73rem; font-weight: 750; }
.trophy-card-content strong { line-height: 1.16; }
.trophy-card-content time { color: var(--muted); font-size: .79rem; }
.trophy-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0 0 14px; }
.trophy-total { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 10px; min-width: 0; }
.trophy-total dt { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .76rem; font-weight: 720; }
.trophy-total dd { margin: 0; font-size: 1.33rem; font-weight: 780; line-height: 1.1; }
.trophy-showcase { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; gap: 8px; padding: clamp(20px,5vw,39px) 15px; text-align: center; background: radial-gradient(ellipse at center,var(--trophy-glow) 0%,var(--trophy-wash) 53%,#fff 94%); border-radius: inherit; }
.trophy-showcase-status { margin-top: 9px; color: var(--trophy-deep); font-size: .9rem; font-weight: 760; }
.trophy-showcase-status + h2 { margin: 0; font-size: clamp(1.5rem,5vw,2.1rem); }
.trophy-showcase-meta { color: var(--trophy-deep); font-size: .87rem; }
.trophy-detail-note { padding: 13px 16px; border-top: 1px solid var(--line); }
.trophy-media-item p { margin-top: 6px; }
.trophy-unlock-dialog { position: relative; }
.trophy-unlock-dialog > .icon-btn { position: absolute; z-index: 2; top: 0; right: 0; }
.trophy-unlock-dialog .trophy-showcase { border-radius: 13px; }
.trophy-unlocked .trophy-mark-large { animation: trophy-reveal .66s cubic-bezier(.16,.84,.32,1.2) both; }
.trophy-particles { position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.trophy-particles i { position: absolute; top: 37%; left: 50%; width: 9px; height: 13px; border-radius: 3px; opacity: 0; background: var(--trophy-metal); }
.trophy-unlocked .trophy-particles i { animation: trophy-burst .85s .15s ease-out both; }
.trophy-particles i:nth-child(1) { --trophy-x: -104px; --trophy-y: -42px; }
.trophy-particles i:nth-child(2) { --trophy-x: -70px; --trophy-y: -82px; background: #fff; }
.trophy-particles i:nth-child(3) { --trophy-x: 74px; --trophy-y: -68px; }
.trophy-particles i:nth-child(4) { --trophy-x: 109px; --trophy-y: -13px; background: #fff; }
.trophy-particles i:nth-child(5) { --trophy-x: 89px; --trophy-y: 49px; }
.trophy-particles i:nth-child(6) { --trophy-x: -100px; --trophy-y: 42px; }
@keyframes trophy-reveal { from { opacity: 0; transform: translateY(15px) scale(.74); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes trophy-burst { 0% { opacity: 0; transform: scale(.2); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--trophy-x),var(--trophy-y)) rotate(170deg); } }
@media (prefers-reduced-motion: reduce) { .trophy-unlocked .trophy-mark-large, .trophy-unlocked .trophy-particles i { animation: none; } }
@media (max-width: 540px) {
  .trophy-total { grid-template-columns: minmax(0,1fr); justify-items: center; gap: 5px; padding: 8px 4px; text-align: center; }
  .trophy-total dt { flex-direction: column; gap: 5px; }
  .trophy-total .trophy-mark { width: 39px; height: 39px; }
  .trophy-card-art .trophy-mark { width: 55px; height: 55px; border-radius: 14px; }
  .trophy-card-art svg { width: 32px; height: 32px; }
}
.track-card { display: grid; align-content: start; gap: 7px; }
.track-card:hover { border-color: #94b7a3; }
.track-top > div { flex: 1; }
.track-top > svg { flex: none; color: var(--green); }
.track-top .thumb { width: 46px; height: 46px; border-radius: 8px; }
.track-top .thumb svg { width: 21px; }
.journey-track-selection { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; }
.journey-track-selection .track-top { min-width: 0; }
.journey-track-selection .track-top > div { overflow-wrap: anywhere; }
.journey-track-selection small { display: block; color: var(--muted); }
.journey-track-selection .btn { min-height: 44px; }
.track-number { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 9px; }
.track-number strong { font-size: 1.45rem; color: var(--green-ink); }
.track-number span, .track-card p { color: var(--muted); font-size: .82rem; }
.track-count { justify-self: start; border-radius: 6px; padding: 2px 6px; background: #edf5f0; }
.journey-disclosure { margin-top: 14px; }
.journey-disclosure summary { cursor: pointer; font-weight: 700; }
.journey-disclosure[open] summary { margin-bottom: 10px; }
.journey-plot { display: block; width: min(100%,660px); margin-inline: auto; color: var(--muted); }
.journey-plot text { font-size: 12px; fill: currentColor; }
.journey-axis { stroke: #dce7e0; fill: none; vector-effect: non-scaling-stroke; }
.journey-line { stroke: var(--green); fill: none; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.journey-point { fill: var(--green); stroke: white; stroke-width: 1.25; }
.journey-plot-dates { display: flex; justify-content: space-between; width: min(100%,660px); margin-inline: auto; padding-inline: 13% 2%; color: var(--muted); font-size: .78rem; }
.journey-reading summary { display: flex; align-items: center; gap: 9px; min-height: 42px; cursor: pointer; list-style: none; }
.journey-reading summary::-webkit-details-marker { display: none; }
.journey-reading summary > svg { flex: none; color: var(--green); }
.journey-reading[open] summary > svg { transform: rotate(90deg); }
.reading-label { flex: 1; min-width: 0; }
.reading-label strong { color: var(--green-ink); font-size: 1.16rem; }
.reading-label small { display: block; color: var(--muted); font-size: .81rem; }
.journey-reading-body { display: grid; gap: 10px; margin-top: 9px; padding-top: 10px; border-top: 1px solid var(--line); }
.journey-media-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 8px; }
.journey-media-item { min-width: 0; }
.journey-media-item img { display: block; width: 100%; height: 180px; object-fit: contain; border-radius: 8px; background: #f2f6f4; }
.journey-media-item video { max-height: 230px; }
.anamnesis-note { border-left: 3px solid var(--green); }
@media (max-width:650px) {
  .journey-tabs a { flex: 1 1 auto; padding-inline: 7px; font-size: .82rem; }
  .journey-heading { flex-wrap: wrap; }
  .journey-heading > .btn { flex: 0 1 auto; }
  .journey-media-grid { grid-template-columns: 1fr; }
}

.payment-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.payment-stat { display: grid; align-content: start; gap: 8px; }
.payment-stat-head { display: flex; align-items: center; gap: 8px; }
.payment-stat-head .metric-icon { width: 34px; height: 34px; flex: none; }
.payment-stat h2 { font-size: .96rem; letter-spacing: -.015em; }
.payment-stat > strong { font-size: clamp(1.27rem,2.35vw,2rem); letter-spacing: -.045em; line-height: 1.1; overflow-wrap: anywhere; }
.payment-stat-received { color: #fff; background: linear-gradient(140deg,var(--green-deep),var(--green)); border-color: var(--green); }
.payment-stat-received .muted { color: #d2ebe0; }
.payment-toolbar { margin-bottom: 14px; }
.payment-toolbar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.payment-toolbar-head h2 { font-size: 1.08rem; }
.payment-toolbar-head .btn { min-height: 44px; }
.payment-filter-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 16px; }
.payment-filter-grid > *, .payment-filter-grid .field { min-width: 0; }
.payment-filter-grid .field { margin: 0; }
.payment-filter-grid select, .payment-filter-grid input { width: 100%; min-height: 44px; text-overflow: ellipsis; }
.payment-period { margin: 4px 0 11px; }
.payment-charts { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); align-items: stretch; gap: 15px; margin-bottom: 15px; }
.payment-charts > section { min-width: 0; }
.payment-section-head p { margin-top: 5px; }
.payment-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.payment-plot-grid { stroke: var(--line); fill: none; vector-effect: non-scaling-stroke; }
.payment-comparison-plot { display: block; width: 100%; margin: 14px auto 8px; }
.payment-axis-label { fill: var(--muted); font-size: 13px; }
.payment-series-0 { fill: var(--green); color: var(--green); }
.payment-series-1 { fill: var(--black); color: var(--black); }
.payment-chart-legend, .payment-breakdown-legend { padding: 0; margin: 16px 0 0; list-style: none; }
.payment-chart-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.payment-chart-legend li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 7px; font-size: .82rem; }
.payment-chart-legend li strong { grid-column: 2; font-size: 1.1rem; }
.payment-series-dot { display: inline-block; width: 9px; height: 9px; flex: none; border-radius: 3px; background: currentColor; }
.payment-comparison-change { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; font-size: .85rem; }
.payment-comparison-change span { color: var(--muted); }
.payment-chart-data { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .84rem; }
.payment-chart-data summary { cursor: pointer; min-height: 44px; color: var(--green); font-weight: 700; }
.payment-table-wrap { max-height: 300px; overflow: auto; overscroll-behavior: contain; }
.payment-table-wrap table { width: 100%; border-collapse: collapse; }
.payment-table-wrap th, .payment-table-wrap td { text-align: right; white-space: nowrap; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.payment-table-wrap th:first-child { text-align: left; }
.payment-table-wrap thead { color: var(--muted); }
.payment-chart-empty { display: grid; align-content: center; min-height: 190px; padding: 25px 10px; text-align: center; color: var(--muted); font-size: .89rem; }
.payment-breakdown-body { display: grid; justify-items: center; gap: 4px; }
.payment-donut-wrap { position: relative; width: 180px; max-width: 100%; margin: 10px auto 0; }
.payment-donut { display: block; width: 100%; }
.payment-donut-total { position: absolute; inset: 32% 17%; display: grid; align-content: center; justify-items: center; gap: 3px; text-align: center; pointer-events: none; }
.payment-donut-total span { font-size: .76rem; color: var(--muted); }
.payment-donut-total strong { font-size: .89rem; letter-spacing: -.025em; line-height: 1.2; white-space: nowrap; }
.payment-breakdown-legend { width: 100%; margin-top: 4px; }
.payment-breakdown-legend li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .83rem; }
.payment-breakdown-legend li > span:last-child { display: grid; justify-items: end; }
.payment-breakdown-legend small { color: var(--muted); }
.payment-breakdown-label { overflow-wrap: anywhere; }
.payment-tone-0 { color: var(--green); }
.payment-tone-1 { color: var(--black); }
.payment-tone-2 { color: #399977; }
.payment-tone-3 { color: #70857b; }
.payment-tone-4 { color: #97c8af; }
.payment-tone-5 { color: #a64a35; }
.payment-tone-6 { color: #ba851f; }
.payment-register .callout { margin-top: 13px; }
.payment-register #payment-results { margin-top: 13px; }
.payment-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(100px,1fr); align-items: center; gap: 9px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.payment-person, .payment-dates, .payment-value { display: grid; align-content: start; justify-items: start; gap: 3px; min-width: 0; }
.payment-person a { font-weight: 750; color: var(--green); overflow-wrap: anywhere; }
.payment-person a:hover { text-decoration: underline; }
.payment-row small { color: var(--muted); overflow-wrap: anywhere; }
.payment-row-action { justify-self: end; }
.payment-value strong { overflow-wrap: anywhere; }
@media (max-width: 950px) {
  .payment-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .payment-charts { grid-template-columns: minmax(0,1fr); }
  .payment-breakdown-body { grid-template-columns: minmax(140px,180px) minmax(0,1fr); align-items: center; gap: 20px; }
}
@media (max-width: 650px) {
  .coach .mobile-nav.payments-visible { grid-template-columns: repeat(7,minmax(0,1fr)); }
  .payment-stat { padding: 12px; }
  .payment-stat-head .metric-icon { width: 28px; height: 28px; }
  .payment-stat-head .metric-icon svg { width: 17px; height: 17px; }
  .payment-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .payment-filter-compare, .payment-filter-search { grid-column: 1 / -1; }
  .payment-axis-label { font-size: 18px; }
  .payment-breakdown-body { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .payment-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .payment-person { grid-column: 1; grid-row: 1; }
  .payment-value { grid-column: 2; grid-row: 1; justify-items: end; text-align: end; }
  .payment-dates { grid-column: 1; grid-row: 2; }
  .payment-row-action { grid-column: 2; grid-row: 2; }
  .payment-row-action .btn { min-height: 44px; }
}

.assignment-open { min-height: 44px; border-radius: 9px; }
.assignment-open > svg { flex: none; color: var(--green); }
.assignment-open:hover h2 { color: var(--green); text-decoration: underline; }
.assignment-period .week-progress { margin-top: 14px; color: var(--green-ink); }
.assignment-date-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); gap: 9px; margin: 0; }
.assignment-date-grid > div { min-width: 0; padding: 11px 12px; border-radius: 9px; background: #f4f8f6; }
.assignment-date-grid dt { color: var(--muted); font-size: .8rem; }
.assignment-date-grid dd { margin: 3px 0 0; font-size: .96rem; font-weight: 730; }
.assignment-comment > .btn, .assignment-private > .btn { margin-top: 12px; }
.assignment-updated { margin-top: 6px; }
.assignment-private { border-left: 3px solid var(--green); }
.session-exercise-link { display: flex; align-items: center; gap: 10px; min-height: 48px; border-radius: 8px; }
.session-exercise-link > div:not(.thumb) { flex: 1; min-width: 0; }
.session-exercise-link .thumb { width: 49px; height: 49px; border-radius: 8px; }
.session-exercise-link > svg, .session-exercise-video { flex: none; color: var(--green); }
.session-exercise-link h2 { font-size: 1.13rem; }
.session-exercise-link:hover h2 { color: var(--green); text-decoration: underline; }
.session-exercise-link h2 + p { margin-top: 4px; }
.session-exercise-video { display: flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; }
.assignment-work { margin-top: 12px; padding: 11px 13px; border-left: 3px solid var(--green); border-radius: 7px; background: #edf7f1; }
.assignment-work strong, .assignment-feedback strong { color: var(--green-ink); font-size: .84rem; }
.assignment-work p, .assignment-feedback p { margin-top: 4px; }
.assignment-prescription { grid-template-columns: repeat(auto-fit,minmax(min(100%,110px),1fr)); }
.assignment-prescription > div, .assignment-prescription > div:first-child { border: 1px solid var(--line); padding: 8px 9px; border-radius: 8px; }
.assignment-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.assignment-feedback > div { flex: 1 1 200px; min-width: 0; }
.assignment-feedback small { display: block; margin-top: 4px; color: var(--muted); }
.assignment-feedback > .btn { min-height: 44px; }
.athlete-sheet-link:hover { text-decoration: underline; }
.training-section-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr)); gap: 8px; }
.training-section-option { display: grid; align-content: center; gap: 2px; min-height: 48px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; overflow-wrap: anywhere; }
.training-section-option span { font-size: .81rem; color: var(--muted); }
.training-section-option:hover { border-color: var(--green); }
.training-section-option[aria-current] { border-color: var(--green); background: var(--green-wash); color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--green); }
.training-week-controls { display: grid; grid-template-columns: minmax(144px,225px) minmax(0,1fr); gap: 12px 18px; align-items: end; border-top: 1px solid var(--line); margin-top: 15px; padding-top: 14px; }
.training-week-picker select { min-height: 44px; }
.training-week-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 44px; }
.training-week-summary > p { font-size: .87rem; }
.training-section-history { padding-top: 10px; border-top: 1px solid var(--line); }
.training-section-history .actions { margin-top: 4px; }
.feedback-video { display: block; width: min(100%,520px); max-height: 340px; margin-top: 8px; border-radius: 9px; background: var(--black); }
@media (max-width: 650px) {
  .training-section-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .training-section-option { padding-inline: 8px; font-size: .9rem; }
  .training-week-controls { grid-template-columns: minmax(0,1fr); }
  .training-week-summary .actions { width: 100%; }
  .training-week-summary .btn { flex: 1 1 auto; }
}
@media (max-width: 460px) {
  .assignment-date-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .session-exercise-video > span { display: none; }
  .assignment-exercise .session-exercise-link .thumb { width: 43px; height: 43px; }
  .session-exercise-link > svg { width: 14px; }
}

.program-editor-information h2, .program-editor-workspace h2 { font-size: 1.28rem; }
.program-editor-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,130px),1fr)); gap: 8px 14px; margin: 0; }
.program-editor-facts dt { color: var(--muted); font-size: .76rem; }
.program-editor-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: .92rem; font-weight: 720; }
.program-editor-information .program-editor-meta { border-top: 1px solid var(--line); }
.program-editor-workspace, .program-editor-selected, .program-editor-week-content { grid-template-columns: minmax(0,1fr); }
.program-editor-section-title, .program-editor-section-head, .program-editor-active-heading, .program-editor-section-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.program-editor-section-hint { margin-top: -6px; }
.program-editor-active-heading h3 { font-size: 1.18rem; }
.program-editor-remove { color: #8c392f; }
.program-editor-remove:hover { border-color: #8c392f; }
.program-editor-active-heading > details[open] { flex-basis: 100%; }
.program-editor-section-controls > .field { flex: 1 1 12rem; }
.program-editor-section-controls > .reorder { align-self: end; }
.program-editor-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.program-editor-tabs > .training-section-option { text-align: left; font-weight: 720; max-width: 100%; }
.program-editor-tabs > [aria-pressed="true"] { border-color: var(--green); background: var(--green-wash); color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--green); }
.program-editor-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.program-editor-selected { padding: clamp(10px,2vw,18px); background: #f5f8f6; border: 1px solid #d9e5dc; border-radius: 12px; }
.program-editor-week-navigation > strong { display: block; color: var(--muted); font-size: .82rem; }
.program-editor-week-tabs { display: flex; gap: 6px; padding: 6px; margin: 0 -6px; overflow-x: auto; scroll-padding-inline: 6px; scrollbar-width: thin; }
.program-editor-week-tabs-short { flex-wrap: wrap; overflow-x: visible; }
.program-editor-week-tab { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 44px; flex: 0 0 auto; padding: 0 5px; border: 1px solid #d3dcd6; border-radius: 8px; background: #fff; color: var(--green-ink); font-size: .87rem; font-weight: 740; }
.program-editor-week-tab:hover { border-color: var(--green); }
.program-editor-week-tab[aria-pressed="true"] { color: #fff; background: var(--green); border-color: var(--green); }
.program-editor-week-content { padding-top: 10px; border-top: 1px solid #d9e5dc; }
.program-editor-week-content h4 { margin: 0; font-size: 1.02rem; line-height: 1.2; }
.program-editor-week-content .callout { margin: 0; }
.program-editor-section-title .count { margin-left: 3px; }
.program-editor-defaults { padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.program-editor-defaults[open] { padding-bottom: 10px; }
.program-editor-meta summary { min-height: 36px; padding: 8px 0; color: var(--green); font-size: .87rem; font-weight: 720; cursor: pointer; }
.program-editor-meta > :not(summary) { margin-top: 5px; }
.program-editor-item { display: grid; gap: 10px; min-width: 0; }
.program-editor-item .item-heading { flex-wrap: wrap; }
.program-editor-item .item-heading h3 { flex: 1 1 8rem; min-width: 0; overflow-wrap: anywhere; }
.program-editor-item .reorder { margin-left: auto; }
.program-editor-work { display: grid; justify-items: start; gap: 5px; }
.program-editor-work .field { width: 100%; }
.program-editor-work-warning { padding: 4px 8px; border-radius: 6px; background: #fff0d0; color: #664009; font-size: .8rem; font-weight: 680; }
.program-editor-footer { position: sticky; z-index: 2; bottom: 10px; display: grid; gap: 8px; padding: 9px 12px; box-shadow: 0 -2px 14px #10241612; }
.program-editor-footer .actions { justify-content: flex-end; }
.program-editor-recovery, .program-editor-time-parts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.program-editor-time { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.program-editor-time > strong { display: block; margin-bottom: 6px; font-size: .85rem; }
.program-editor-time .field > span { color: var(--muted); font-size: .72rem; }
.program-editor-time .field input { padding-inline: 8px; }
.program-editor-time > small { display: block; margin-top: 5px; color: var(--green-ink); font-size: .75rem; }
.program-editor-readonly p { margin-top: 5px; }
.program-editor-preview { margin-top: 10px; }
.program-editor-preview .preview-items > li + li { margin-top: 8px; }
@media (max-width: 650px) {
  .program-editor-information, .program-editor-workspace, .program-editor-selected { gap: 8px; }
  .program-editor-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 10px; }
  .program-editor-section-head > .btn { padding-inline: 9px; }
  .program-editor-section-hint { margin-top: -3px; }
  .program-editor-active-heading h3 { font-size: 1.07rem; }
  .program-editor-section-controls .icon-btn, .program-editor-item .icon-btn { width: 44px; height: 44px; }
  .program-editor-footer { bottom: calc(63px + env(safe-area-inset-bottom)); }
  .program-editor-footer .actions > .btn { flex: 1 1 auto; }
}
@media (max-width: 360px) {
  .program-editor-recovery { grid-template-columns: minmax(0,1fr); }
  .program-editor-section-title > .btn { width: 100%; }
}

.admin-screen { display: grid; gap: 16px; min-width: 0; }
.admin-screen > .page-head { margin-bottom: 0; }
.admin-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.admin-metric { display: flex; gap: 12px; align-items: flex-start; padding: 18px; }
.admin-metric > div { min-width: 0; }
.admin-metric p { font-size: .82rem; font-weight: 720; }
.admin-metric strong { display: block; margin-top: 8px; font-size: 2.2rem; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.admin-metric small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; }
.admin-metric:last-child { background: var(--green); color: #fff; border-color: var(--green); }
.admin-metric:last-child .metric-icon { background: #ffffff1f; color: var(--accent); }
.admin-metric:last-child small { color: #d4ecdf; }
.admin-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.admin-section-heading h2 { font-size: 1.2rem; }
.admin-section-heading p { margin-top: 5px; color: var(--muted); font-size: .83rem; }
.admin-filter-grid { display: grid; grid-template-columns: minmax(180px,1.4fr) repeat(2,minmax(125px,1fr)); gap: 12px; align-items: end; }
.admin-filter-grid > .admin-period { grid-column: span 2; }
.admin-period { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; min-width: 0; }
.admin-filters .field { min-width: 0; }
.admin-filters input, .admin-filters select { width: 100%; min-width: 0; }
.admin-user-row { display: grid; grid-template-columns: minmax(200px,1.65fr) minmax(92px,.8fr) minmax(85px,.7fr) minmax(110px,.9fr) minmax(65px,.5fr) 132px; gap: 10px; align-items: center; }
.admin-table-head { min-height: 43px; color: var(--muted); font-size: .68rem; font-weight: 780; text-transform: uppercase; letter-spacing: .04em; }
.admin-user-row:not(.admin-table-head) { border-top: 1px solid var(--line); padding-block: 14px; font-size: .81rem; }
.admin-user-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-user-identity > div { min-width: 0; }
.admin-user-identity strong, .admin-user-identity span:not(.avatar), .admin-user-identity small, .admin-user-role strong, .admin-user-role small { display: block; overflow-wrap: anywhere; }
.admin-user-identity strong { font-size: .88rem; }
.admin-user-identity span:not(.avatar), .admin-user-identity small, .admin-user-role small { margin-top: 3px; color: var(--muted); }
.admin-user-identity small { font-size: .71rem; }
.admin-user-identity .admin-self { display: inline-block !important; margin: 0 0 0 7px !important; padding: 1px 5px; border-radius: 4px; color: var(--green) !important; background: var(--green-wash); font-size: .67rem; vertical-align: middle; }
.admin-user-login { color: var(--muted); font-variant-numeric: tabular-nums; }
.admin-user-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.admin-user-actions .icon-btn { width: 40px; height: 40px; }
.admin-user-actions [data-action="admin-delete-user"] { color: #9c3b32; }
.admin-user-actions [data-action="admin-delete-user"]:hover { background: #faeeea; }
.admin-access-count { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 7px; color: var(--green); background: var(--green-wash); font-weight: 760; font-variant-numeric: tabular-nums; }
.admin-access-count:hover { background: #d5f0e1; }
.admin-mobile-label { display: none; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 16px; margin-top: 12px; border-top: 1px solid var(--line); }
.admin-pagination p { color: var(--muted); font-size: .83rem; }
.admin-activity-filter-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.admin-activity-filter-form .admin-period { flex: 1 1 280px; max-width: 520px; }
.admin-activity-filter-form > .form-error { flex-basis: 100%; }
.admin-activity-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.admin-event-list { list-style: none; margin: 0; padding: 0; }
.admin-event-list > li { display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: start; padding-block: 14px; border-top: 1px solid var(--line); }
.admin-event-icon { display: grid; place-items: center; width: 32px; height: 32px; background: var(--green-wash); color: var(--green); border-radius: 8px; flex: none; }
.admin-event-list li > div { flex: 1 1 170px; min-width: 0; overflow-wrap: anywhere; }
.admin-event-list strong { font-size: .87rem; }
.admin-event-list p { margin-top: 3px; font-size: .79rem; color: var(--muted); }
.admin-event-list small, .admin-event-list time { color: var(--muted); font-size: .71rem; }
.admin-event-list time { margin-left: 42px; font-variant-numeric: tabular-nums; }
.admin-event-detail { white-space: pre-wrap; }
.admin-coach-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.admin-coach-field p { margin-top: 6px; }
.admin-account-context { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #f7faf8; }
.admin-account-context > span:not(:first-child) { margin-top: 6px; }
.admin-profile-facts { display: grid; gap: 4px; margin: 0; }
.admin-profile-facts dt { color: var(--muted); font-size: .8rem; }
.admin-profile-facts dd { margin: 0 0 10px; overflow-wrap: anywhere; font-weight: 720; }
@media (max-width: 1200px) and (min-width: 651px) {
  .admin-user-row { grid-template-columns: minmax(170px,1.4fr) minmax(90px,.8fr) minmax(84px,.7fr) minmax(75px,.7fr) 50px 40px; gap: 8px; }
  .admin-user-actions { flex-direction: column; }
  .admin-user-actions .btn { padding-inline: 4px; font-size: .7rem; }
  .admin-user-actions .btn svg { display: none; }
  .admin-metric { padding: 12px; flex-wrap: wrap; }
  .admin-metric strong { font-size: 1.9rem; }
  .admin-activity-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 1150px) and (min-width: 651px) {
  .admin-table-head { display: none; }
  .admin-user-row:not(.admin-table-head) { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr); gap: 12px; }
  .admin-user-identity { grid-column: 1 / -1; }
  .admin-mobile-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .69rem; }
  .admin-user-actions { flex-direction: row; grid-column: span 2; }
}
@media (max-width: 650px) {
  .superuser .mobile-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .superuser .mobile-nav .nav-item { font-size: .69rem; }
  .admin-screen { gap: 12px; }
  .admin-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .admin-metric { padding: 12px; gap: 8px; }
  .admin-metric .metric-icon { width: 32px; height: 32px; border-radius: 8px; }
  .admin-metric .metric-icon svg { width: 18px; height: 18px; }
  .admin-metric p { font-size: .74rem; }
  .admin-metric strong { margin-top: 5px; font-size: 1.9rem; }
  .admin-metric small { font-size: .67rem; }
  .admin-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .admin-filter-grid > .field:first-child, .admin-filter-grid > .field:last-child { grid-column: 1 / -1; }
  .admin-section-heading h2 { font-size: 1.13rem; }
  .admin-table-head { display: none; }
  .admin-user-row:not(.admin-table-head) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding-block: 16px; }
  .admin-user-identity { grid-column: 1 / -1; padding-bottom: 2px; }
  .admin-user-role, .admin-user-status, .admin-user-login, .admin-user-accesses { display: grid; gap: 4px; align-content: start; justify-items: start; min-width: 0; }
  .admin-user-actions { grid-column: 1 / -1; justify-content: flex-end; gap: 8px; }
  .admin-user-actions .icon-btn { width: 44px; height: 44px; }
  .admin-mobile-label { display: block; color: var(--muted); font-size: .69rem; }
  .admin-user-login { font-size: .79rem; }
  .admin-user-role small { margin-top: 0; }
  .admin-activity-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .admin-activity-filter-form { gap: 12px; }
  .admin-activity-filter-form .admin-period { flex-basis: 100%; max-width: none; }
  .admin-activity-filter-form > .actions { width: 100%; }
  .admin-activity-filter-form .actions > .btn { flex: 1; padding-inline: 8px; }
  .admin-event-list time { margin-left: 42px; }
  .admin-profile { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 360px) {
  .admin-metric { flex-wrap: wrap; }
}
