/* Operational pages share stable navigation, loading and floating feedback. */
html[data-page-loading=true] #page-frame main,html[data-page-loading=true] #page-frame footer{visibility:hidden}
html[data-page-loading=true] .site-header{z-index:90;transform:none!important;transition:none!important;pointer-events:auto}
.page-loader{position:fixed;inset:100px 14px 14px;z-index:80;display:grid;place-items:center;padding:24px;border-radius:0 0 22px 22px;background:var(--paper,#fffaf6);color:var(--ink,#342933)}
.page-loader[hidden]{display:none}
.page-loader-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center;max-width:420px}
.loading-star{width:55px;height:55px;fill:#f4d4e2;stroke:var(--berry,#a4406b);stroke-width:1.7;stroke-linejoin:round;animation:loading-light 1s ease-in-out infinite alternate}
.loading-wordmark{font-family:Familjen,system-ui,sans-serif;font-size:25px;font-weight:700;letter-spacing:-.045em}
.page-loader-card>p{font-family:Familjen,system-ui,sans-serif;font-size:15px;color:var(--muted,#756571);line-height:1.5}
.loading-recovery{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:6px}
@keyframes loading-light{from{opacity:.4;transform:rotate(-8deg)}to{opacity:1;transform:rotate(8deg)}}
html[data-backend=true] .backend-status.backend-toast{position:fixed;z-index:80;bottom:32px;right:34px;display:flex;align-items:center;gap:16px;width:max-content;max-width:min(440px,calc(100vw - 48px));margin:0;padding:14px 14px 14px 20px;border:1px solid #bdd2df;border-radius:12px;background:#eff7fb;color:var(--ink);box-shadow:0 8px 30px #34293316;font-size:15px;line-height:1.5;transition:opacity 160ms cubic-bezier(.23,1,.32,1),transform 160ms cubic-bezier(.23,1,.32,1)}
html[data-backend=true] .backend-toast[data-error=true]{border-color:#dbb4c5;background:#fff0f5}
.backend-toast-copy{min-width:0;overflow-wrap:anywhere}
.backend-toast-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.backend-toast-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.backend-toast-close:focus-visible{outline:2px solid var(--berry);outline-offset:2px}
@starting-style{html[data-backend=true] .backend-status.backend-toast{opacity:0;transform:translateY(6px)}}
html[data-backend=true] main[aria-busy=true]{cursor:progress}
html[data-backend=true] button[aria-busy=true]:not(.cloud-google)::after{content:' …';font-size:16px}
.session-loading{padding:24px 0;line-height:1.6}
.session-loading .hand{font-size:26px}
.planning-retry{margin-top:20px}
@media(min-width:1000px){html[data-backend=true] .site-header{display:grid;grid-template-columns:1fr auto 1fr}html[data-backend=true] .wordmark{justify-self:start}html[data-backend=true] .header-actions{justify-self:end}}
@media(max-width:999px){.page-loader{border-radius:0}html[data-backend=true] .backend-status.backend-toast{right:16px;left:16px;bottom:max(18px,env(safe-area-inset-bottom));width:auto;max-width:none;font-size:14px;padding-left:16px}}
@media(prefers-reduced-motion:reduce){.loading-star{animation:none}html[data-backend=true] .backend-status.backend-toast{transition:none}}
html[data-input=keyboard] .backend-status.backend-toast{transition:none}
@media(hover:hover) and (pointer:fine){.backend-toast-close:hover{background:#34293309}}
/* Daily coach tools: the existing paper, pink and sky-blue vocabulary. */
.coach-page .coach-main-nav{display:flex;gap:24px}
.backend-roster a{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.coach-profile-link{font-size:13px;font-weight:400;text-decoration:underline;text-underline-offset:3px;color:var(--berry)}
.coach-main-nav a[aria-current=page]{color:var(--berry);text-decoration:underline;text-underline-offset:8px}
@media(max-width:999px){html[data-backend=true] .coach-page .site-header{display:flex;flex-wrap:wrap;column-gap:12px;row-gap:0;padding-top:8px}.coach-page .coach-identity{margin-left:auto}.coach-page .coach-identity>span{display:none}.coach-page .coach-main-nav{order:3;flex-basis:100%;justify-content:space-between;gap:12px}.coach-page .coach-main-nav a{font-size:13px;min-height:44px}}
.coach-week-nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:28px 0 18px}
.coach-week-nav p{margin:0;font-weight:600}
.coach-week-nav>a:not(.backend-inline){display:grid;place-items:center;width:42px;height:42px;background:#e1edf3;border-radius:50%;text-decoration:none;color:inherit}
.coach-week-nav a:active,.coach-directory a:active{transform:scale(.98)}
.coach-note{margin:28px 0 0;padding:24px;border-radius:18px;background:#f8eff2;border:1px solid #e7d6de}
.coach-note h3{margin-top:0;font-size:24px}
.coach-note label{display:block;font-weight:600;margin:18px 0 10px}
.coach-note textarea{box-sizing:border-box;display:block;width:100%;resize:vertical;border:1px solid #d6c5cd;border-radius:12px;padding:16px;background:#fffdfb;font:inherit;line-height:1.6;min-height:180px}
.coach-note-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:16px}
.coach-note-footer p{font-size:13px;color:#66535e;max-width:290px}
.coach-directory-search{max-width:640px;margin:28px 0}
.coach-directory-search label{display:block;font-weight:600;margin-bottom:10px}
.coach-directory-search input{box-sizing:border-box;width:100%;padding:15px 18px;border:1px solid #d4dce0;border-radius:14px;font:inherit;background:#fffdfb}
.coach-directory-search p{font-size:14px;color:#65555e}
.coach-directory{list-style:none;padding:0;margin:0 0 30px;display:grid;gap:14px}
.coach-directory li>a{display:flex;align-items:center;gap:24px;padding:24px;border:1px solid #e7dce0;border-radius:20px;background:#fffdfb;color:inherit;text-decoration:none}
.coach-directory .profile-initials{flex-shrink:0;width:58px;height:58px;font-size:21px;margin:0}
.coach-directory-person,.coach-directory-balances{display:grid;gap:7px}
.coach-directory-person strong{font-size:22px}
.coach-directory-person small{font-size:14px;color:#66535e;overflow-wrap:anywhere}
.coach-directory-balances{margin-left:auto;font-size:14px;flex-shrink:0}
.coach-directory-balances b{font-size:13px;margin-top:5px}
@media(max-width:760px){.coach-directory li>a{padding:18px;gap:14px;flex-wrap:wrap}.coach-directory-person{flex:1;min-width:180px}.coach-directory-balances{width:100%;margin-left:72px;flex-shrink:1}.coach-directory-person strong{font-size:20px}.coach-note{padding:18px}.coach-week-nav{gap:10px}.coach-week-nav p{order:3;width:100%;font-size:14px}.coach-note-footer .button{width:100%}}
