.account-loading .main-nav,
.account-loading .profile-button,
.account-loading .page-footer,
.account-logged-out .main-nav,
.account-logged-out .profile-button,
.account-logged-out .page-footer,
.account-logged-out #storage-warning,
.account-staff .main-nav,
.account-staff .page-footer { display: none !important; }
.account-loading-copy { padding: 60px 0; text-align: center; font-size: 14px; color: var(--muted); }
.account-logged-out .workspace,
.account-staff .workspace { padding-bottom: env(safe-area-inset-bottom); }
.account-logged-out main { min-height: calc(100dvh - 82px); display: grid; place-items: center; }
.account-login { width: 100%; max-width: 360px; padding: 30px 0 64px; }
.account-login-heading { margin-bottom: 34px; }
.account-login h1 { font-size: 34px; line-height: 1.15; font-weight: 550; letter-spacing: -1.1px; }
.account-login-heading p { margin-top: 15px; font-size: 14px; color: var(--muted); }
.account-form { display: grid; gap: 18px; min-width: 0; }
.account-form .form-field { margin: 0; min-width: 0; }
.account-form .form-input { min-width: 0; width: 100%; font-size: 16px; min-height: 48px; }
.account-form .button { min-height: 48px; font-size: 14px; }
.account-form .form-label { line-height: 1.5; }
.account-form .form-help { line-height: 1.55; margin-top: 8px; }
.account-form [hidden] { display: none !important; }
.account-form-error { color: #98443d; font-size: 13px; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.account-form[aria-busy="true"] { opacity: .7; }
.account-identity { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.account-identity strong { font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.account-identity span { font-size: 12px; color: var(--muted); }
.account-profile-links { margin-top: 22px; }
.account-link { background: none; border: 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 19px 0; gap: 14px; font-size: 14px; color: var(--ink); min-height: 56px; }
.account-link svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.account-link:hover { color: var(--accent); }
.account-logout { color: var(--muted); }
.account-details summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 8px 0; line-height: 1.5; }
.account-details[open] summary { margin-bottom: 14px; }
.account-details .form-label { display: block; margin-bottom: 8px; }
.account-data { border-top: 1px solid var(--line); padding: 10px 0; }
.account-data p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0 0 12px; }
.account-data .export-actions { margin: 18px 0 10px; }
.account-data .button { min-height: 44px; }
.account-autofill-login { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.account-staff-page { max-width: 760px; margin: 0 auto; }
.account-staff-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.account-staff-heading h1 { font-size: 30px; font-weight: 500; letter-spacing: -.8px; }
.account-staff-heading .button { flex-shrink: 0; min-height: 44px; }
.account-person { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-width: 0; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; color: var(--ink); background: transparent; }
button.account-person:hover { background: var(--surface); }
.account-person-name { display: grid; min-width: 0; gap: 6px; }
.account-person-name strong { font-size: 15px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.account-person-name small { font-size: 12px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.account-person > svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.account-empty { color: var(--muted); font-size: 14px; line-height: 1.65; padding: 22px 0; }
.account-empty p { margin: 0 0 18px; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.account-tabs button { font-size: 14px; min-height: 46px; background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; }
.account-tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.account-coach-assignment { margin-top: 25px; padding-top: 10px; border-top: 1px solid var(--line); }
.account-coach-assignment .account-form { margin: 8px 0 14px; gap: 12px; }
.account-schedule-form { margin-top: 26px; }
.account-planned { margin-top: 18px; }
.account-plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.account-plan-row > span { display: grid; gap: 6px; min-width: 0; }
.account-plan-row strong { font-size: 14px; font-weight: 500; }
.account-plan-row small { font-size: 12px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.account-plan-row .icon-button { min-width: 44px; min-height: 44px; }
.account-plan-exercises { justify-self: start; min-height: 44px; padding: 7px 0; font-size: 12px; }
.account-exercise-editor { min-width: 0; }
.account-group-toolbar { position: sticky; top: -1px; z-index: 2; padding: 7px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.account-group-toolbar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.account-group-toolbar-top > span { font-size: 13px; font-weight: 500; }
.account-group-toolbar .text-button { min-height: 44px; font-size: 12px; padding: 8px 4px; }
.account-group-toolbar.is-selecting { padding-bottom: 10px; }
.account-group-toolbar .button:disabled { opacity: .42; cursor: default; }
.account-group-help { margin: 10px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.account-exercise-options { display: grid; gap: 4px; min-width: 0; }
.account-exercise-choice { display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; min-height: 64px; padding: 12px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--ink); text-align: left; background: transparent; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.account-exercise-choice > span:last-child { display: grid; gap: 5px; min-width: 0; }
.account-exercise-choice strong { font-size: 13px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.account-exercise-choice small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.account-exercise-check { width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid var(--line); border-radius: 50%; display: none; align-items: center; justify-content: center; }
.is-selecting .account-exercise-check { display: inline-flex; }
.account-exercise-check svg { width: 12px; height: 12px; }
.account-exercise-choice.is-selected { background: var(--tint); border-color: var(--focus); }
.account-exercise-choice.is-selected .account-exercise-check { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.account-exercise-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-exercise-group { min-width: 0; padding: 0 5px 5px; margin: 5px 0; border: 1px solid #dde1e5; border-radius: 9px; background: #f4f6f7; }
.account-exercise-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; min-height: 44px; }
.account-exercise-group-head > span { font-size: 11px; color: #606974; font-weight: 500; }
.account-exercise-group-head .text-button { font-size: 11px; min-height: 44px; padding: 8px 0; color: var(--muted); }
.account-exercise-group .account-exercise-choice + .account-exercise-choice { border-top-color: #e5e8eb; border-radius: 0 0 6px 6px; }
.account-exercise-group .account-exercise-choice.is-selected { border-color: var(--focus); border-radius: 7px; }
.account-back { margin-bottom: 18px; min-height: 44px; }
.account-result-exercise { padding: 18px 0; border-bottom: 1px solid var(--line); }
.account-result-exercise h3 { font-size: 14px; font-weight: 500; line-height: 1.6; }
.account-result-exercise h3 small { display: block; color: #925c57; font-size: 12px; font-weight: 400; }
.account-result-group-label { display: inline-block; padding: 3px 7px; margin-bottom: 8px; border-radius: 4px; background: #edf0f2; color: #626b75; font-size: 11px; }
.account-result-sets { padding: 0; list-style: none; margin: 13px 0 0; }
.account-result-sets li { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 8px; padding: 7px 0; align-items: baseline; }
.account-result-sets li > span { font-size: 12px; color: var(--muted); }
.account-result-sets strong { font-size: 13px; font-weight: 400; line-height: 1.65; font-variant-numeric: tabular-nums; }
.account-drop-separator { color: var(--muted); white-space: normal; }
.account-result-skipped { background: #fdf3f2; padding-left: 12px; padding-right: 12px; border-radius: 6px; }
.account-workout-note { white-space: pre-wrap; font-size: 13px; line-height: 1.7; margin-top: 18px; }
#account-athlete-error:not([hidden]) { margin-top: 16px; }
.account-migration > p { font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.account-migration > .form-help { font-size: 12px; color: var(--muted); }
.account-migration-counts { display: grid; gap: 14px; padding: 20px 0; margin: 0 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account-migration-counts div { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.account-migration-counts dt { color: var(--muted); font-size: 13px; }
.account-migration-counts dd { font-size: 16px; margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 650px) {
  .account-logged-out main { min-height: calc(100dvh - 62px - env(safe-area-inset-bottom)); }
  .account-logged-out .toast, .account-staff .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .account-login { padding-top: 26px; padding-bottom: 55px; }
  .account-login h1 { font-size: 32px; }
  .account-profile .account-link { font-size: 14px; }
  .account-staff-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
  .account-staff-heading h1 { font-size: 27px; width: 100%; }
  .account-staff-heading .button { font-size: 13px; }
  .account-identity { align-items: flex-start; }
  .account-data .export-actions { flex-wrap: wrap; }
}
