/* GymSi account: available action first, product preview, secondary sign-in methods. */
.account-modal{width:min(480px,calc(100% - 24px))!important;max-width:calc(100% - 24px);overflow:hidden}
.account-modal[open]{display:flex;flex-direction:column}
.account-modal .modal-head{flex:none;padding:12px 20px;gap:12px}
.account-modal .modal-head h2{font-size:18px;overflow-wrap:anywhere}
.account-modal .modal-head .icon-btn{width:44px;height:44px}
.account-modal .modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 20px max(20px,env(safe-area-inset-bottom));scroll-padding-block:16px}
.account-shell{max-width:420px;margin-inline:auto;min-width:0;color:var(--text)}
.account-brand{display:block;width:112px;max-width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.account-hero-brand{display:flex;justify-content:center;margin:12px 0 14px}
.account-hero{min-width:0;margin-top:18px;padding-block:4px 16px;border-block:1px solid var(--line)}
.account-scene{position:relative;display:grid;place-items:center;height:184px;isolation:isolate;overflow:hidden}
.account-demo-card{position:relative;width:228px;max-width:calc(100% - 34px);border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:12px;color:var(--text);animation:account-card-in 4s ease-out both}
.account-demo-top{display:flex;justify-content:space-between;align-items:center;gap:7px;min-height:20px}
.account-demo-top>strong{font-size:12px;letter-spacing:-.02em}
.account-demo-top>span:not(.premium-badge){font-size:9px;color:var(--muted)}
.account-mini-bodies{display:flex;align-items:center;justify-content:center;height:112px;gap:21px;padding:5px 15px 1px}
.account-mini-bodies .anatomy{height:104px;width:54px;flex:none;overflow:visible}
.account-mini-bodies .muscle-zone.is-selected{stroke:var(--accent);stroke-width:.5;fill:var(--accent)!important;animation:account-map-highlight 4s ease-out both}
.account-map-hint{display:flex;justify-content:center;align-items:center;gap:5px;font-size:9px;color:var(--muted)}
.account-map-dot{width:5px;height:5px;border-radius:50%;background:var(--accent)}
.account-floating{position:absolute;display:flex;align-items:center;gap:8px;max-width:calc(100% - 24px);border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 4px 12px #0a466318;padding:9px;animation:account-float-in 4s ease-out both}
.account-floating-atlas{right:5px;bottom:20px}
.account-floating-coach{left:5px;bottom:20px}
.account-floating-workout{right:5px;bottom:20px}
.account-floating-symbol{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:9px;background:var(--accent-dim);color:var(--accent);font-size:22px}
.account-floating-symbol svg{width:18px;height:18px}
.account-floating strong,.account-floating small{display:block}
.account-floating strong{font-size:11px;font-weight:650}
.account-floating small{font-size:9px;color:var(--muted);margin-top:3px;line-height:1.4}
.account-demo-caption{position:absolute;bottom:2px;left:0;right:0;text-align:center;font-size:9px;color:var(--muted)}
.account-demo-request{margin:11px 0;padding:10px 12px;border:1px solid var(--line);border-radius:13px 13px 4px 13px;background:var(--accent-dim);font-size:10px;line-height:1.5;animation:account-request-in 4s ease-out both}
.account-plan-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.account-plan-days>span{display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 2px;border:1px solid var(--line);border-radius:10px;animation:account-days-in 4s ease-out both}
.account-plan-days b{font-size:10px;color:var(--accent)}
.account-plan-days i{width:6px;height:6px;border-radius:50%;background:var(--accent)}
.account-plan-days small{font-size:8px;color:var(--muted)}
.account-demo-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:10px;color:var(--muted);font-size:9px}
.account-demo-bottom svg{width:12px;height:12px}
.account-exercise-name{font-size:11px;font-weight:650;margin:13px 0 11px}
.account-set-head,.account-set-row{display:grid;grid-template-columns:1.1fr 1fr 1fr 25px;gap:6px;align-items:center;text-align:center}
.account-set-head{font-size:8px;color:var(--muted);margin-bottom:6px}
.account-set-row{min-height:36px;margin-top:5px;font-size:11px}
.account-set-row>b{display:grid;place-items:center;height:30px;border-radius:7px;background:var(--panel-2);border:1px solid var(--line);font-size:13px}
.account-demo-check{display:grid;place-items:center;width:25px;height:27px;border:1px solid var(--accent);border-radius:8px;background:var(--accent-dim);color:var(--accent)}
.account-demo-check svg{width:17px;height:17px}
.account-demo-check-next{animation:account-check-in 4s ease-out both}
.account-timer-ring{width:31px;height:31px;border:3px solid var(--accent-dim);border-right-color:var(--accent);border-top-color:var(--accent);border-radius:50%;transform:rotate(-35deg);animation:account-timer-in 4s ease-out both}
.account-floating-workout strong{font-size:18px;font-variant-numeric:tabular-nums;line-height:1.15;margin-top:2px}
.account-hero-copy{text-align:center;margin:6px auto 0;max-width:350px;overflow-wrap:anywhere}
.account-hero-copy h2{margin:0;font-size:20px;font-weight:700;line-height:1.2;letter-spacing:-.025em;text-wrap:balance}
.account-hero-copy p{font-size:12px;color:var(--muted);line-height:1.5;margin:8px 0 0;text-wrap:pretty}
.account-scene-switch{display:flex;justify-content:center;flex-wrap:wrap;gap:4px;margin:0 0 2px}
.account-scene-switch button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:8px 9px;font-size:11px;color:var(--muted);border-radius:10px;transition:background-color .15s,color .15s}
.account-scene-switch button[aria-pressed=true]{color:var(--accent);background:var(--accent-dim)}
.account-form-card{min-width:0;padding:0;background:var(--panel)}
.account-provider-section{margin-top:16px}
.account-form-heading{margin-bottom:8px}
.account-form-heading h2,.account-email-heading h2{margin:0;font-size:18px;font-weight:700;letter-spacing:-.025em;line-height:1.25}
.account-form-heading p{margin:5px 0 0;font-size:12px;color:var(--muted);line-height:1.5}
.account-providers{display:grid;gap:0}
.account-provider{display:flex;align-items:center;gap:11px;width:100%;min-height:56px;text-align:left;padding:10px 4px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--panel);color:var(--text);transition:background-color .15s,transform .15s}
.account-provider:last-child{border-bottom:0}
.account-provider:disabled{opacity:1;cursor:default}
.account-provider:disabled>.account-provider-copy>small{color:var(--muted)}
.account-provider:disabled>svg{visibility:hidden}
.account-provider:disabled>.account-provider-mark{opacity:.6}
.account-provider:not(:disabled):hover{background:var(--panel-2)}
.account-provider:not(:disabled):active,.account-guest:active,.account-submit:not(:disabled):active{transform:scale(.96)}
.account-provider-mark{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:10px;font-size:22px;font-weight:700}
.account-provider-yandex{background:#fc3f1d;color:#fff;font-family:Arial,sans-serif}
.account-provider-vk{background:#0077ff;color:#fff;font-size:13px;letter-spacing:-.06em}
.account-provider-email{color:var(--accent);background:var(--accent-dim)}
.account-provider-mark>svg{width:21px;height:21px}
.account-provider-copy{flex:1;min-width:0;overflow-wrap:anywhere}
.account-provider-copy strong,.account-provider-copy small{display:block}
.account-provider-copy strong{font-size:13px;font-weight:650;line-height:1.35}
.account-provider-copy small{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.35}
.account-provider>svg{width:16px;height:16px;color:var(--muted);flex:none}
.account-guest,.account-submit{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;width:100%;padding:12px 15px;border-radius:16px;font-size:14px;line-height:1.4;font-weight:650;transition:background-color .15s,transform .15s}
.account-guest{color:#fff;background:var(--accent);border:1px solid transparent}
.account-guest:not(:disabled):hover{filter:brightness(.96)}
.account-form-card>.account-guest-entry{margin-top:20px}
.account-guest>svg{width:17px;height:17px}
.account-guest-note{font-size:12px;color:var(--muted);text-align:center;line-height:1.5;margin:9px 0 0}
.account-premium-link{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;min-height:44px;width:100%;padding:12px 4px;color:var(--muted);font-size:11px;line-height:1.5}
.account-premium-link>svg{width:12px;height:12px}
.account-back,.account-text-button{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 2px;color:var(--accent);font-size:12px;font-weight:600}
.account-back{justify-content:flex-start;margin-bottom:7px}
.account-email-modes{display:grid;grid-template-columns:1fr 1.2fr;gap:4px;padding:4px;margin:16px 0;border-radius:16px;background:var(--panel-2)}
.account-email-modes button{min-height:44px;border-radius:12px;padding:8px 7px;font-size:12px;color:var(--muted)}
.account-email-modes button[aria-pressed=true]{background:var(--panel);box-shadow:0 2px 7px #0a466315;color:var(--text);font-weight:650}
.account-field{display:flex;flex-direction:column;gap:7px;margin:14px 0;color:var(--text);font-size:12px;font-weight:600}
.account-field input{box-sizing:border-box;width:100%;min-width:0;min-height:50px;border:1px solid var(--line);border-radius:16px;padding:12px 14px;background:var(--panel);color:var(--text);font-family:inherit;font-size:16px;line-height:1.4}
.account-field small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.4}
.account-field input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.account-submit{color:#fff;background:var(--accent);border:1px solid transparent}
.account-submit:disabled{background:var(--panel-2);color:var(--muted);border-color:var(--line);cursor:default}
.account-unavailable,.account-form-copy{font-size:12px;color:var(--muted);line-height:1.55;margin:14px 0;overflow-wrap:anywhere}
.account-unavailable{padding:0;background:transparent;border:0}
.account-text-button{width:100%;margin-top:4px;text-decoration:underline;text-underline-offset:3px}
.account-error,.account-info{padding:12px;border:1px solid var(--line);border-radius:12px;font-size:12px;line-height:1.55;overflow-wrap:anywhere;margin:12px 0 0}
.account-error{color:#9f3028;background:#fff0ec;border-color:#e8b9ad}
.account-info{background:var(--accent-dim);color:var(--text)}
.account-shell button:focus-visible,.account-payment button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.account-payment{max-width:420px;margin:auto}
.account-offer{position:relative;overflow:hidden;border:1px solid #467b96;border-radius:24px;padding:22px;background:radial-gradient(circle at 100% 0,#3a7387 0,transparent 65%),linear-gradient(135deg,#132d43,#155572);color:#fff;box-shadow:0 12px 30px #123e5826}
.account-offer-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:27px}
.account-offer-top .account-brand{width:112px}
.account-offer-kicker{font-size:11px;color:#c6e3ec;letter-spacing:.04em}
.account-offer h3{margin:9px 0 22px;font-size:26px;font-weight:700;letter-spacing:-.035em;line-height:1.15}
.account-offer-price{font-size:29px;line-height:1.1;letter-spacing:-.04em;font-weight:750}
.modal-body .account-payment .account-offer>p{margin:7px 0 15px;font-size:12px;color:#fff;line-height:1.5}
.account-offer-chip{display:inline-block;padding:7px 9px;border-radius:10px;border:1px solid #ffffff35;background:#ffffff10;font-size:10px;line-height:1.5;color:#eaf4f8}
.account-offer-benefits{display:grid;gap:17px;list-style:none;margin:22px 0;padding:0}
.account-offer-benefits li{display:flex;align-items:flex-start;gap:11px;min-width:0}
.account-offer-benefits svg{width:21px;height:21px;color:var(--accent);flex:none}
.account-offer-benefits strong,.account-offer-benefits small{display:block}
.account-offer-benefits strong{font-size:14px;line-height:1.4}
.account-offer-benefits small{font-size:12px;color:var(--muted);line-height:1.5;margin-top:4px}
.account-payment-note{border:1px solid var(--line);border-radius:16px;background:var(--panel-2);padding:14px;margin:18px 0}
.account-payment-note strong{font-size:13px}
.account-payment-note p{font-size:12px;line-height:1.55;color:var(--muted);margin:6px 0 0}
:root[data-theme="dark"] .account-floating{box-shadow:0 4px 12px #00000035}
:root[data-theme="dark"] .account-guest:not(:disabled),:root[data-theme="dark"] .account-submit:not(:disabled){color:var(--bg)}
:root[data-theme="dark"] .account-error{background:#3b2325;border-color:#90514c;color:#ffc4b8}
@keyframes account-card-in{0%{opacity:0;transform:translateY(9px) rotate(-2deg)}18%,100%{opacity:1;transform:translateY(0) rotate(0)}}
@keyframes account-float-in{0%,22%{opacity:0;transform:translateY(8px)}40%,100%{opacity:1;transform:translateY(0)}}
@keyframes account-map-highlight{0%,18%{opacity:.4}40%,100%{opacity:1}}
@keyframes account-request-in{0%,15%{opacity:0;transform:translateY(5px)}32%,100%{opacity:1;transform:translateY(0)}}
@keyframes account-days-in{0%,32%{opacity:0;transform:translateY(5px)}53%,100%{opacity:1;transform:translateY(0)}}
@keyframes account-check-in{0%,38%{opacity:.25;transform:scale(.9)}58%,100%{opacity:1;transform:scale(1)}}
@keyframes account-timer-in{0%,48%{opacity:0;transform:rotate(-65deg)}70%,100%{opacity:1;transform:rotate(-35deg)}}
@media(max-width:360px){.account-modal .modal-head{padding-inline:16px}.account-modal .modal-body{padding-inline:16px}.account-hero-copy h2{font-size:19px}.account-floating{gap:6px;padding:8px}.account-floating strong{font-size:10px}.account-floating small{font-size:8px}.account-offer{padding:18px}.account-offer h3{font-size:24px}.account-offer-top{gap:8px}.account-scene-switch button{padding-inline:7px}}
@media(prefers-reduced-motion:reduce){.account-shell *{animation:none!important;transition:none!important}}

.account-profile-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:14px;border:1px solid var(--line);border-radius:16px}.account-profile-card p{color:var(--muted);font-size:12px;margin-top:4px}.premium-card-link+.premium-card-link{margin-left:16px}
.account-profile-card{overflow-wrap:anywhere}.account-profile-card h2{font-size:21px;margin-top:5px}.account-device-note{font-size:12px;line-height:1.55;color:var(--muted);margin:14px 0;padding:12px;background:var(--panel-2);border-radius:12px}.account-session-actions{display:grid;gap:10px;margin-top:18px}.account-delete-panel{padding-top:12px;border-top:1px solid var(--line)}.account-delete-panel p{font-size:12px;line-height:1.55;color:var(--muted);margin:10px 0 16px}.account-delete-panel .btn{min-height:48px}.account-field input[aria-invalid=true]{border-color:var(--danger)}#account-code{font-variant-numeric:tabular-nums;letter-spacing:.25em;font-size:22px}.account-text-button:disabled{cursor:default;text-decoration:none}

/* Legal/help links wrap naturally within small dialogs. */
.account-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;padding:16px 0;max-width:100%;font-size:12px;line-height:1.5}.account-legal a{color:var(--muted,#526575);text-underline-offset:3px;overflow-wrap:anywhere;min-height:32px;display:inline-flex;align-items:center}.account-legal a:focus-visible{outline:2px solid var(--accent,#078b91);outline-offset:3px;border-radius:3px}
