/* Phone layouts: readable controls, compact navigation, and no sideways tables. */
.mobile-nav-toggle{display:none}
@media(max-width:700px){
 html{scroll-padding-top:110px;-webkit-text-size-adjust:100%}
 .shell{display:block}.main{padding:0 16px calc(28px + env(safe-area-inset-bottom));min-width:0}
 .sidebar{position:sticky;top:0;z-index:15;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));box-shadow:0 2px 10px #15345218}
 .sidebar .sidebar-wordmark{display:block;margin:0;padding:0;border:0;min-width:0}
 .sidebar .wordmark-club{font-size:9px;letter-spacing:.7px}.sidebar .wordmark-home{font-size:21px;display:flex;gap:6px;align-items:center;margin:4px 0 0}.sidebar .wordmark-home>span{margin:0}.sidebar .wordmark-line{display:none}
 .mobile-nav-toggle{display:flex;align-items:center;justify-content:center;align-self:center;min-height:46px;padding:10px 14px;border:1px solid #ffffff70;border-radius:9px;background:#ffffff14;color:white;font-weight:650;font-size:15px}
 .sidebar .nav{display:none;grid-column:1/-1}.sidebar.nav-open .nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:14px;max-height:60dvh;overflow:auto}
 .sidebar .nav button{min-height:48px;font-size:14px;text-align:left;justify-content:flex-start;padding:12px;white-space:normal}.sidebar .nav svg{display:block}
 .topbar{min-height:66px;margin-bottom:18px;gap:8px}.topbar .topactions{width:100%;flex-wrap:nowrap;gap:8px}.topactions #child{min-width:0;max-width:none!important;width:0;flex:1}.topbar .account-menu{margin-left:auto;flex-shrink:0}
 .account-menu summary{min-height:46px;display:flex;align-items:center}.account-menu>div{max-width:calc(100vw - 32px)}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important;min-height:48px;max-width:100%}
 button,.button,summary{touch-action:manipulation}.button,.tabs button,.section-nav button,.account-menu button{min-height:46px}
 input[type=checkbox],input[type=radio]{width:22px;height:22px;flex-shrink:0}
 .section-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:0 0 12px;scrollbar-width:thin}.section-nav button{white-space:nowrap;flex-shrink:0;font-size:14px}
 .heading,.cardhead{flex-wrap:wrap;gap:12px}.heading .button{white-space:normal}.card{padding:18px;margin-bottom:18px;min-width:0}.card h2{line-height:1.3}
 .quick-actions{flex-wrap:wrap}.quick-actions .button{flex:1 1 140px;white-space:normal}
 .banner{flex-wrap:wrap;gap:10px}.banner>span{flex:1 1 100%}
 .form-grid,.goalform,.owner-settings-fields,.people-form-grid,.people-filters{grid-template-columns:minmax(0,1fr)!important}
 .people-table-wrap{overflow:visible}.people-table,.people-table tbody{display:block;width:100%}.people-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .people-table tr{display:block;border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:14px;background:white}
 .people-table td{display:block;border:0;padding:6px 0;min-width:0!important;overflow-wrap:anywhere}.people-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;margin-bottom:4px}.people-table td:first-child strong{font-size:17px}
 .people-row-actions{display:grid;grid-template-columns:1fr;min-width:0;gap:8px;margin-top:8px}.people-row-actions .button{width:100%;min-height:46px;white-space:normal}
 .people-review dl{grid-template-columns:80px minmax(0,1fr)}.people-choices{grid-template-columns:1fr}.people-choices label{min-height:48px}
 .coach-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));overscroll-behavior:contain}
 .coach-dialog header{position:sticky;top:-16px;background:white;z-index:2;padding:12px 0;border-bottom:1px solid var(--line)}.coach-dialog header h2{font-size:22px;margin:0 0 8px}.coach-dialog header .eyebrow{margin:0 0 5px}.coach-dialog header button{min-height:46px}
 .coach-dialog footer{position:static;box-shadow:none;padding-bottom:max(12px,env(safe-area-inset-bottom))}.coach-dialog footer .button{flex:1 1 140px}.coach-drill-fields{grid-template-columns:1fr}.coach-recipients label{min-height:52px}.coach-recipient-tools{gap:8px}.coach-recipient-tools label{min-width:0;flex-basis:100%}
 .coach-roster-member{flex-wrap:wrap}.coach-roster-member>*{min-width:0;overflow-wrap:anywhere}.coach-roster-member button{min-height:46px}
 .team-link,.activity-assignment{flex-wrap:wrap}.team-link .button{width:100%}
 .login{min-height:100dvh}.loginbox{padding:20px}.login .tabs{gap:4px}.login .tabs button{padding:10px 6px}
 #notice:not(:empty){bottom:calc(14px + env(safe-area-inset-bottom));width:calc(100vw - 32px);max-width:420px;padding:14px 16px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.mobile-bottom-nav,.mobile-week-glance{display:none}
.home-history{margin:0 0 24px;border:1px solid var(--line);border-radius:12px;background:white}
.home-history>summary{padding:18px 20px;font-weight:650;cursor:pointer;min-height:54px;color:var(--ink)}
.home-history>.card{border:0;margin:0;border-top:1px solid var(--line);border-radius:0 0 12px 12px}
@media(max-width:700px){
 .main{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
 .mobile-bottom-nav{position:fixed;z-index:16;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;background:#fff;border-top:1px solid #d6e1ee;box-shadow:0 -4px 18px #122d4e0b;padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
 .mobile-bottom-nav button{border:0;border-radius:12px;background:transparent;color:#56677d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 3px;min-height:58px;font-size:12px;font-weight:600;line-height:1.2}
 .mobile-bottom-nav button[aria-current=page]{background:#eaf2fd;color:#004187}.mobile-bottom-nav svg{width:22px;height:22px;display:block}.mobile-bottom-nav button:focus-visible{outline:3px solid #004187;outline-offset:-3px}
 .shell:has(input:focus) .mobile-bottom-nav,.shell:has(textarea:focus) .mobile-bottom-nav,.shell:has(select:focus) .mobile-bottom-nav{display:none}
 .sidebar{position:relative;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:10px;box-shadow:none}.sidebar .wordmark-home{font-size:20px}.sidebar .wordmark-club{font-size:8px}.mobile-nav-toggle{min-height:44px;font-size:14px;padding:8px 12px}
 html{scroll-padding-top:20px;scroll-padding-bottom:100px}.section-nav{margin-bottom:18px}
 .mobile-week-glance{display:flex;align-items:center;gap:18px;padding:16px 18px;background:#eaf2fb;border-radius:14px;margin-bottom:18px;border:1px solid #d8e7f6}.mobile-week-glance>div{min-width:0}.mobile-week-glance strong{display:block;color:#123e73;font-size:26px;font-variant-numeric:tabular-nums;line-height:1.1}.mobile-week-glance span{display:block;font-size:11px;line-height:1.4;color:#4e6580;margin-top:5px}.mobile-week-glance button{margin-left:auto;min-height:44px;background:none;border:0;color:#174c85;font-size:12px;font-weight:700;padding:4px;white-space:nowrap}
 .learning-heading h1{font-size:30px;margin-bottom:6px}.learning-heading .eyebrow{margin-bottom:8px}.learning-heading .muted{font-size:14px}.learning-heading{margin-bottom:18px}.learning-aside .learning-week{display:none}
 .learning-assignments{border:1px solid #d9e4f0;box-shadow:0 4px 18px #1d4b7a08;border-radius:16px}.learning-assignments .learning-row{grid-template-columns:44px minmax(0,1fr);gap:12px}.learning-assignments .learning-type{width:44px;min-height:44px;font-size:0;padding:10px;border-radius:12px}.learning-assignments .learning-type svg{width:22px;height:22px;margin:0}.learning-assignments .learning-row>.button{grid-column:1/-1;width:100%;min-height:50px}.learning-assignments .learning-row h3{font-size:18px;line-height:1.35}.learning-assignments .learning-footer{display:grid;grid-template-columns:1fr 1fr;gap:8px}.learning-footer button{font-size:12px;padding:10px 6px}
 .coach-home-actions{gap:10px}.coach-home-actions button{padding:16px 18px}.coach-home-actions strong{font-size:18px;margin-bottom:4px}.coach-home-actions span{font-size:13px;line-height:1.45}
 .banner{padding:10px 12px;font-size:12px}.banner>span{flex:1 1 100%}.banner label{font-size:12px}.banner select{min-height:44px}
 .login-arena .loginintro{min-height:170px}.login-arena .loginintro h1{font-size:28px;margin:16px 0 10px}.login-arena .loginintro .muted{font-size:13px}.login.login-arena{gap:18px;padding:22px 16px 30px}
 #notice:not(:empty){bottom:calc(86px + env(safe-area-inset-bottom))}
}

.goal-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0}.goal-done{font-weight:650;color:#216448}.goal-actions [data-goal-action=remove]{color:#8d3030}.removed-goals .card{margin:0;border-radius:0;border:0;border-top:1px solid var(--line)}
@media(max-width:700px){.goal-actions{display:grid;grid-template-columns:1fr;gap:10px}.goal-actions .button{width:100%;min-height:48px}.update-goal{flex-wrap:wrap}.update-goal input{flex:1;min-width:90px}.update-goal button{flex:1;min-height:48px}}
