/* Coach workspace and field entry. */
.m-shell {background:#f4f6f8;}
.h5-home-title {display:flex;gap:10px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;margin:0 0 14px;}
.h5-home-title h1 {font-size:clamp(24px,6.8vw,32px);}
.h5-home-title time {font-size:13px;color:var(--muted);}
.h5-start {background:linear-gradient(116deg,#192c43 20%,#244966 100%);padding:20px 22px;border-radius:18px;}
.h5-start h2 {margin:0;font-size:28px;line-height:1.32;color:#fff;}
.h5-start p {margin:4px 0 15px;color:#d5e2ec;}
.h5-start .m-light {background:#ffcc99;color:#452508;}
.h5-start .m-ball {width:218px;height:218px;right:-13px;bottom:-58px;opacity:.38;}
.h5-tools {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:16px 0;}
.h5-tools a {display:flex;flex-direction:column;align-items:center;gap:7px;min-height:68px;color:var(--ink);font-size:14px;}
.h5-tools a>span {width:43px;height:43px;border-radius:13px;display:grid;place-items:center;background:#f9e3d2;color:#933c15;}
.h5-tools a:nth-child(2)>span {background:#e0ebf6;color:#315b83;}
.h5-tools a:nth-child(3)>span {background:#deeee8;color:#2e6552;}
.h5-tools a:nth-child(4)>span {background:#ede6f2;color:#684b7d;}
.h5-numbers {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:6px 0 10px;}
.h5-numbers div {min-width:0;}
.h5-numbers b,.h5-numbers small {display:block;}
.h5-numbers b {font-family:Inter,system-ui,sans-serif;font-size:27px;font-weight:680;font-variant-numeric:tabular-nums;line-height:1.2;}
.h5-numbers small {font-size:13px;color:var(--muted);margin-top:4px;}
.h5-four {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
.h5-report-head {padding:18px 20px;background:#1c354d;color:white;border-radius:15px;overflow-wrap:anywhere;}
.h5-report-head h2 {font-size:25px;color:white;margin:4px 0 8px;}
.h5-report-head p,.h5-report-head small {color:#dce7f3;font-size:14px;}
.h5-report-line,.h5-sport-line {padding:11px 0;border-top:1px solid var(--line);}
.h5-report-line {display:flex;justify-content:space-between;gap:10px;}
.h5-sport-line h3 {font-size:15px;margin:0 0 4px;}
.h5-sport-line p,.h5-report-line {font-size:14px;}
.h5-export {display:flex;flex-wrap:wrap;gap:8px;margin:16px 0;}
#sport-entry [hidden] {display:none!important;}
.h5-step {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0;color:#86411c;font-size:14px;}
.h5-step strong {flex:none;}.h5-step progress {width:45%;height:6px;accent-color:var(--orange);}
#sport-entry .form-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
#sport-entry .form-grid label,#sport-entry .sp-attempt label {min-width:0;}
#sport-entry :is(input,select) {width:100%;min-width:0;min-height:46px;font-size:16px;box-sizing:border-box;}
#sport-entry .sp-attempt {min-width:0;padding:13px 12px 16px;border:1px solid #dce3eb;border-radius:12px;margin:14px 0;}
#sport-entry .sp-attempt legend {padding:0 5px;font-size:16px;font-weight:650;}
#sport-entry .m-form-foot {display:flex;gap:8px;}.h5-check h3 {line-height:1.45;}.h5-check p {display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px;}
.h5-check small {display:block;margin-top:8px;color:var(--muted);}
@media(max-height:540px){.mobile-app dialog[open] {max-height:96vh;max-height:96dvh;overflow:auto;}}
@media print {
  .h5-export,.m-back,.m-bottom {display:none!important;}
  #usage-body .m-section,#usage-body header {break-inside:avoid;box-shadow:none;}
  .h5-report-head {color:var(--ink);background:white;padding:4px 0;}
  .h5-report-head :is(p,h2,small) {color:var(--ink);}
}

.m-bottom .h5-rail-brand,.m-bottom .h5-rail-tools {display:none;}
@media screen and (max-width:899px), screen and (hover:none) and (max-height:539px) {
  .m-bottom[data-secondary=true] [href="#home"].h5-nav-link {color:var(--orange);font-weight:700;}
}
/* Short touch viewports include phones in landscape. */
@media screen and (min-width:900px) and (min-height:540px), screen and (min-width:900px) and (hover:hover) {
  .mobile-app {--rail:clamp(192px,17vw,252px);--gutter:clamp(24px,3.3vw,62px);}
  .m-shell {
    display:grid;grid-template-columns:var(--rail) minmax(0,1fr);
    grid-template-rows:auto 1fr;min-height:100vh;max-width:none;margin:0;padding:0;box-shadow:none;
  }
  .m-shell .m-bottom {
    grid-column:1;grid-row:1/3;position:sticky;top:0;bottom:auto;left:auto;transform:none;
    align-self:start;display:flex;flex-direction:column;gap:5px;overflow-y:auto;
    height:100vh;height:100dvh;width:auto;padding:28px 14px;
    background:#182c43;border:0;box-shadow:none;
  }
  .m-bottom .h5-rail-brand {
    display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;
    padding:0 10px;margin:0 0 28px;color:#fff;text-align:left;
  }
  .h5-rail-brand img {width:40px;height:40px;border-radius:11px;}
  .h5-rail-brand b,.h5-rail-brand small {display:block;}
  .h5-rail-brand b {font-size:22px;letter-spacing:.08em;line-height:1.3;}
  .h5-rail-brand small {margin-top:2px;font-size:12px;color:#bdcbda;}
  .m-bottom .h5-nav-link {
    flex:none;display:flex;flex-direction:row;justify-content:flex-start;gap:13px;
    padding:11px 15px;border-radius:9px;min-height:45px;color:#d6e1ed;font-size:15px;
  }
  .m-bottom .h5-nav-link:hover {background:#263c54;color:white;}
  .m-bottom .h5-nav-link[aria-current=page] {background:#344b62;color:#fff;font-weight:700;box-shadow:inset 3px 0 #ffb575;}
  .m-bottom .h5-nav-link[aria-current=page] svg {color:#ffc79a;}
  .m-bottom .h5-rail-tools {display:grid;gap:5px;margin-top:17px;padding-top:18px;border-top:1px solid #3b4d61;}
  .m-bar {grid-column:2;grid-row:1;min-width:0;padding:12px var(--gutter);min-height:65px;}
  .m-bar-brand img {display:none;}
  .m-bar-brand>div {display:flex;align-items:center;gap:14px;}
  .m-bar-brand small {margin:0;padding-left:14px;border-left:1px solid var(--line);font-size:13px;}
  #m-main {
    grid-column:2;grid-row:2;width:100%;max-width:1500px;min-width:0;
    margin:0 auto;padding:clamp(24px,3vw,44px) var(--gutter) 48px;
  }
  .m-title {margin-bottom:22px;}
  .m-title h1,.mobile-app .sp-heading h1 {font-size:clamp(27px,2.3vw,36px);}
  .m-section {padding:20px 22px;border-radius:15px;}
  .m-bar-brand b,.m-section,.m-auth-hero h1 {overflow-wrap:anywhere;}
  #m-main:is([data-page="home"],[data-page="org"]) {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-content:start;
  }
  #m-main:is([data-page="home"],[data-page="org"])>* {min-width:0;margin:0;}
  #m-main:is([data-page="home"],[data-page="org"])>.m-title {grid-column:1/-1;margin-bottom:4px;}
  #m-main[data-page="home"] {
    grid-template-areas:"title title" "start overview" "tools tools" "recent roster" "plan plan";
  }
  .h5-home-title {grid-area:title;}.h5-start {grid-area:start;}.h5-overview {grid-area:overview;}
  .h5-tools {grid-area:tools;}.h5-recent {grid-area:recent;}.h5-roster {grid-area:roster;}
  .m-plan-line {grid-area:plan;}
  .h5-start {min-height:174px;padding:24px;}
  .h5-start h2 {font-size:31px;}
  .h5-overview {display:flex;flex-direction:column;justify-content:space-between;}
  .h5-overview .h5-numbers b {font-size:clamp(28px,2.8vw,42px);}
  .h5-tools {gap:12px;}
  .h5-tools a {flex-direction:row;justify-content:flex-start;gap:10px;padding:12px;background:white;border:1px solid var(--line);border-radius:12px;}
  .h5-tools a:hover,.m-record:hover,.m-person:hover {background:#f9f5f0;}
  .h5-tools a>span {flex:none;}
  .h5-plan {background:#1e3850;color:white;border-color:#1e3850;}
  .h5-plan :is(.m-section-head h2,.m-big) {color:white;}
  .h5-plan .m-big strong {color:#ffc596;font-size:42px;}
  .h5-plan :is(.m-muted,.m-account-meta) {color:#d7e2ec;}
  .h5-plan progress {accent-color:#ffba82;}
  .h5-team {grid-column:1/-1;}
  #m-main[data-page="org"]>[data-action="logout"] {grid-column:1/-1;width:auto;min-width:125px;justify-self:end;}
  .h5-account-info .m-info {min-height:45px;}
  #m-main[data-page="athletes"] .m-search {max-width:520px;}
  #m-main[data-page="records"] .m-filters {max-width:680px;}
  .mobile-app .sp-heading {margin-bottom:22px;}
  .mobile-app .sp-sports button {padding-inline:17px;}
  .mobile-app .sp-tabs {gap:26px;}
  .mobile-app .sp-plan-grid,.mobile-app .sp-analysis {grid-template-columns:repeat(2,minmax(0,1fr));}
  #m-main[data-page="sports"] {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;align-content:start;align-items:start;}
  #m-main[data-page="sports"]>* {grid-column:1/-1;min-width:0;}
  #m-main[data-page="sports"]>.sp-family-plan:has(+.sp-evidence) {grid-column:1;}
  #m-main[data-page="sports"]>.sp-family-plan+.sp-evidence {grid-column:2;}
  #usage-body {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
  #usage-body>* {margin:0;min-width:0;}
  #usage-body :is(.h5-report-head,.h5-export,.m-section:last-of-type) {grid-column:1/-1;}
  .h5-report-head {padding:22px 24px;}
  .mobile-app dialog[open] {margin:auto;max-height:85vh;padding:24px;max-width:min(550px,90vw);}
  .mobile-app dialog.wide[open] {width:620px;max-width:90vw;}
  .mobile-app #toast {bottom:30px;}
  .m-auth {
    display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr);
    margin:clamp(24px,6vh,72px) auto;width:min(92%,1000px);max-width:none;min-height:0;border-radius:22px;
  }
  .m-auth-hero {padding:clamp(28px,4vw,54px);background:linear-gradient(140deg,#192b43,#284c67);}
  .m-auth-hero h1 {font-size:clamp(32px,3.2vw,46px);margin-top:clamp(70px,11vh,130px);}
  .m-auth-hero .m-ball {width:360px;height:360px;right:-66px;bottom:-80px;opacity:.29;}
  .m-auth-body {padding:26px clamp(26px,3vw,48px);}
}
@media screen and (min-width:900px) and (max-width:1079px) and (min-height:540px), screen and (min-width:900px) and (max-width:1079px) and (hover:hover) {
  .h5-tools a {justify-content:center;flex-direction:column;gap:5px;}
}

.m-bar-brand {flex:1;}
.m-bar .m-menu-toggle {flex:none;min-width:44px;min-height:44px;}
.mobile-app dialog.org-drawer[open] {position:fixed;inset:0 auto 0 0;margin:0;width:min(82vw,263px);height:100%;height:100dvh;max-width:none;max-height:none;background:#192b43;color:#f7f9fb;border:0;border-radius:0;padding:calc(12px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom));overflow-y:auto;}
.org-drawer .m-sheet-handle {display:none;}
.org-drawer .dialog-head {position:static;background:transparent;padding:6px 5px 14px;border-bottom:1px solid #45546a;margin-bottom:10px;}
.org-drawer .dialog-head h2 {font-size:17px;color:white;overflow-wrap:anywhere;}
.org-drawer .m-icon {background:#34455c;color:white;flex:none;}
.org-drawer .org-menu-list {display:grid;gap:4px;}
.org-drawer .h5-nav-link {display:flex;align-items:center;gap:12px;min-height:47px;border-radius:8px;padding:8px 13px;color:#e2e9f4;}
.org-drawer .h5-nav-link[aria-current=page] {background:#ad4012;color:#fff;font-weight:700;}
.org-menu-list .annual-link small {margin-left:auto;border:1px solid currentColor;border-radius:20px;padding:2px 6px;white-space:nowrap;font-size:11px;}
.org-menu-list .annual-link {border:1px solid #c59362;color:#ffe0b7;}
.org-report-mark {display:flex;align-items:center;gap:10px;margin:10px 0;color:var(--ink);overflow-wrap:anywhere;}
.org-report-mark img {object-fit:contain;flex:none;border-radius:6px;background:white;}
.org-report-mark small {display:block;color:var(--muted);font-size:12px;}
.org-plan-link {display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:underline;}
.member-offer {border-top:4px solid var(--orange);}
.member-offer strong {color:#a43e11;font-size:23px;white-space:nowrap;}
.member-offer small {font-size:12px;}
.org-lesson {border-top:1px solid var(--line);}
.org-lesson summary {padding:13px 2px;cursor:pointer;}
.org-lesson summary small {margin:0 9px;color:var(--muted);}
.org-lesson dl {margin:2px 0 14px;padding:8px 14px;background:#f5f7fa;border-radius:7px;}
.org-lesson dt {font-weight:700;margin-top:8px;}
.org-lesson dd {margin:3px 0 10px;line-height:1.65;}
@media screen and (min-width:900px) and (min-height:540px),screen and (min-width:900px) and (hover:hover){
  .m-bar .m-menu-toggle,.m-bottom .h5-quick {display:none;}
  .m-bottom .h5-rail-tools.org-menu-list {margin:0;padding:0;border:0;}
  #membership-body {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;align-items:start;}
  #membership-body .m-section {margin:0;}
  #membership-body .m-section:last-child {grid-column:1/-1;}
  #m-main[data-page="new"] .m-section {max-width:650px;}
}

.org-drawer .dialog-head #dialog-title {display:flex;align-items:center;gap:9px;min-width:0;line-height:1.35;}
.org-drawer #dialog-title img {border-radius:8px;object-fit:contain;flex:none;}
.org-drawer #dialog-title small {display:block;margin-top:3px;font-size:11px;font-weight:400;color:#c2cfde;}
.org-drawer .dialog-head .m-icon {border-radius:8px;}
