/* Shared surfaces for the training home, library and community. */
body[data-screen=home] .phone-shell.focus-a{
 background:radial-gradient(ellipse at 50% 30%,#eaf5ff 0%,#f4faff 26%,#fff 63%);
}
.landing-training .landing-date{
 padding:6px 11px;border-radius:999px;background:#fff9;border:1px solid #dbe8f3;
 color:#3d607b;font-size:13px;font-weight:600;
}
.landing-training .landing-ring{
 isolation:isolate;width:clamp(164px,48vw,223px);position:relative;border:1px solid #b9d6ee;
 background:radial-gradient(circle at 35% 18%,#fff 5%,#f8fcff 47%,#e6f2ff 100%);
 box-shadow:0 0 0 9px #eaf4ff9c,0 16px 43px #205a8b1a,inset 0 2px 3px #fff;
}
.landing-ring::before,.landing-ring::after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.landing-ring::before{
 inset:-5px;padding:4px;
 background:conic-gradient(from -45deg,#beddf5 0%,#a1c8ea 22%,#4b91cb 47%,#a2cde8 72%,#beddf5 100%);
 mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 mask-composite:exclude;
}
.landing-ring::after{inset:10px;border:1px solid #d3e5f3;box-shadow:inset 0 0 13px #e6f1f9}
.landing-training .landing-ring.is-done{border-color:#afd0bf}
.landing-ring.is-done::before{background:conic-gradient(from -45deg,#a8d1bd,#65a68d,#a8d1bd)}
.landing-ring .landing-ring-content{position:relative;z-index:1;display:grid;justify-items:center;gap:6px;max-width:100%;color:#123b61}
.landing-ring .landing-ring-caption{font-size:12px;font-weight:700;color:#48708b;letter-spacing:.08em}
.landing-ring .landing-done{z-index:1;right:10px;bottom:2px;background:#258178;box-shadow:0 0 0 4px #f5fcff}
.landing-training .landing-exercises{width:min(100%,440px);border:1px solid #e5edf4;background:#fffffff0;border-radius:18px;padding:3px 14px}
body[data-screen=home] .focus-a .landing-training .landing-action>.primary{background:#1766a9;box-shadow:0 7px 16px #1765a929}
body[data-screen=library] .phone-shell.focus-a{background:#fff}
.exercise-library.library-top{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:10px}
.library-top .exercise-regions{
 position:relative;display:flex;align-items:center;gap:5px;overflow:auto hidden;scrollbar-width:thin;
 overscroll-behavior:contain;padding:4px 0 5px;border-radius:0;
 background:#fff;border-bottom:1px solid #e8eef4;scroll-padding-inline:5px;
}
.library-top .exercise-regions button{
 flex:0 0 auto;min-height:38px;padding:5px 12px;border:0;border-radius:999px;
 color:#435c72;font-size:13px;white-space:nowrap;background:transparent;
}
.library-top .exercise-regions button.on{background:#e8f3ff;color:#124b7e;font-weight:760}
.library-top .exercise-groups{padding:0 2px 14px}
.library-top .catalog-grid{gap:10px}
.library-top .catalog-action{overflow:hidden;border-radius:14px;background:white;border:1px solid #e2ebf3;text-align:left;box-shadow:none}
.library-top .catalog-action b,.library-top .catalog-action small{padding-inline:10px}
.library-top .catalog-action small{padding-bottom:8px;color:#476782}
.library-top .catalog-action .catalog-picture{background:#172434}
.foundation-reason{margin:0 0 14px;padding:12px 14px;border:1px solid #d8e7f3;border-radius:15px;background:#f0f7ff;color:#204d72}
.foundation-reason p{margin:5px 0;line-height:1.5;font-size:14px}
.foundation-reason button{padding:5px 0;min-height:36px}
.plan-loading-tip small{display:inline-block;color:#315974;font-size:12px;font-weight:700}
.plan-loading-tip[data-tone=light]{background:#f2f8f6;border-color:#d8eae4}
.plan-loading-tip[data-tone=encourage]{background:#f2f6ff;border-color:#dfe8fb}
.community-embed .phone-shell,.community-embed #app{background:#fff}
.community-embed .community-tabs{margin-bottom:9px}
.community-embed .circle-demo-note{margin-block:5px 10px;color:#526b7d}
.community-embed .sport-scroll{
 display:flex;gap:4px;overflow:auto hidden;scrollbar-width:thin;overscroll-behavior:contain;
 margin:0 0 12px;padding:2px 0 5px;border-bottom:1px solid #e7edf2
}
.community-embed .sport-scroll button{
 flex:0 0 auto;min-height:38px;padding:4px 11px;border:0;border-radius:999px;
 color:#476479;background:#fff;font-size:13px;font-weight:650
}
.community-embed .sport-scroll button.on{background:#e6f3fa;color:#185577}
.community-embed .circle-feed{gap:14px}
.community-embed .circle-post{
 display:block;position:relative;padding:0;border:1px solid #e4ebf1;border-radius:18px;
 background:white;box-shadow:0 3px 14px #24445f07;overflow:hidden
}
.community-embed .circle-post-content{width:100%;min-width:0}
.community-embed .circle-post-head{display:flex;align-items:center;gap:9px;padding:11px 13px}
.community-embed .circle-post-head .avatar{display:grid;place-items:center;position:static;
 flex:0 0 34px;width:34px;height:34px;background:#e6f3fa;color:#1b5b7f}
.community-embed .circle-post-head strong{display:block;line-height:1.35;color:#143651;font-size:14px}
.community-embed .circle-post-head small{display:block;color:#526e81;font-size:11px}
.community-embed .circle-post-head .feed-sport{margin-inline-start:auto;color:#365f79;background:#eef6fa;border-radius:999px;padding:4px 7px;white-space:nowrap}
.community-embed .circle-post-content>.circle-photos.single{margin:0;border-radius:0;max-width:none}
.community-embed .circle-post-content>.circle-photos.single .circle-photo{width:100%;aspect-ratio:16/10;border-radius:0;max-height:370px}
.community-embed .circle-post-content>.circle-photos:not(.single){margin:0 12px}
.community-embed .circle-post-text{padding:0 13px;margin:10px 0 6px;color:#173851;line-height:1.55}
.community-embed .circle-post-content .post-actions{margin:6px 12px 0;padding:2px 0 5px;border-top:1px solid #edf2f5}
.community-embed .circle-post-content .post-actions button{min-height:38px;color:#45627a;font-size:13px}
.community-embed .circle-post-content .post-actions .liked{color:#ab3556}
.community-embed .circle-post-content .comment-preview{margin:0 13px 8px}


.rest-next{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding:14px;background:#f1f7fe;border:1px solid #dce9f7;border-radius:14px}
.rest-next small,.rest-next p{color:#426582}
.rest-next h3{margin:4px 0;font-size:17px}
.rest-next p{font-size:13px;margin:0}
.rest-next button{flex:0 0 auto;min-height:44px;padding:8px 11px}
.rest-plan-end{margin:10px 0 0}
.custom-week-board{padding:13px 10px 10px;margin-bottom:12px;border:1px solid #dce9f7;background:#fafcfe;border-radius:16px}
.custom-week-board .section-title{align-items:center;margin:0 1px 10px}
.custom-week-board h2{font-size:16px;margin:0}
.custom-week-board .section-title span{font-size:12px;color:#426582}
.custom-week-board .custom-calendar{margin-bottom:0}
.custom-week-board .custom-calendar button{border-radius:10px;min-height:54px;padding:6px 0}
.custom-week-board .custom-calendar button.on{border-color:#74a9db;background:#ebf5ff;color:#245681}
.custom-week-board .custom-day-trained{color:#24669d;font-weight:640}
@media(max-width:359px){.custom-week-board{padding-inline:5px}.rest-next{gap:8px;padding:10px}}


/* Category navigation and community publishing. */
.library-top .exercise-categories{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:start;gap:6px;padding:3px 0 8px;border-bottom:1px solid #e8eef4;background:white}
.exercise-category-grid{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:5px}
.exercise-category-grid.is-expanded{grid-auto-flow:row;grid-template-columns:repeat(4,minmax(0,1fr))}
.exercise-category-grid button,.exercise-category-toggle{min-width:0;min-height:42px;padding:4px 2px;border:0;border-radius:10px;background:#f5f8fc;color:#3c5870;font-size:clamp(11px,3.1vw,14px);white-space:nowrap}
.exercise-category-grid .on{background:#e8f3ff;color:#124b7e;font-weight:730}
.exercise-category-toggle{display:grid;place-items:center;color:#245e92}
.exercise-category-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.exercise-category-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.community-embed .parent-tabs.sport-scroll{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;padding:2px 0 6px;overflow:visible}
.community-embed .parent-tabs.sport-scroll button{min-width:0;min-height:42px;padding:4px 1px;font-size:clamp(11px,3.1vw,14px)}
.community-embed .circle-feed-tools{display:flex;align-items:center;gap:7px;margin:0}
.community-embed .circle-profile-button{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#edf5fb;color:#346388}
.community-embed .circle-profile-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.community-embed #app:has(.circle-compose-dock){padding-bottom:85px!important}
.circle-compose-dock{position:fixed;z-index:12;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);display:grid;place-items:center;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e8eff7}
.circle-new-post{display:grid;place-items:center;width:56px;height:43px;border:0;border-radius:14px;background:#1766a9;color:white;cursor:pointer}
.circle-new-post svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}
#modal:has(.circle-post-options){position:fixed;inset:auto 0 0;width:min(100%,480px);max-width:100%;margin:0 auto;padding:0;border:0;border-radius:21px 21px 0 0;background:#fff;color:#17344c}
#modal:has(.circle-post-options)::backdrop{background:#14243270}
.circle-post-options{display:grid;padding-bottom:env(safe-area-inset-bottom,0px)}
.circle-post-options button{min-height:55px;border:0;border-bottom:1px solid #e9eff5;background:white;font-size:16px}
.circle-post-options button:last-child{border:0;border-top:6px solid #f3f6fa;color:#547289}
.circle-photo-add input[hidden]{display:none}
.recovery-choices + .recovery-choices{border-top:1px solid #d9e7f4}
.recovery-choices .warmup-options{padding-top:0}
.recovery-choices h3{padding:10px 12px 6px;font-size:13px;color:#385f83}


#startup-screen{position:fixed;z-index:1000;inset:0;display:grid;place-content:center;justify-items:center;gap:16px;background:radial-gradient(ellipse at 65% 30%,#d8efff,#f7fbff 65%,#e5f7f8);color:#234e73;font-weight:700}
#startup-screen[hidden]{display:none!important}
#startup-screen span::after{content:"";display:block;margin:14px auto 0;width:68px;height:3px;border-radius:5px;background:linear-gradient(90deg,#296ec5,#4ca6d9,#13a3aa)}
#startup-screen .boot-reload{visibility:hidden;animation:boot-retry 0s 8s forwards;color:#12528a;font-size:14px}
@keyframes boot-retry{to{visibility:visible}}
#retained-circle[hidden]{display:block!important;visibility:hidden;position:fixed;left:-110vw;top:0;width:min(100%,480px);height:100dvh;pointer-events:none;overflow:hidden}
#retained-circle:not([hidden]){background:#f1f8ff}
#retained-circle[data-ready=false] iframe{visibility:hidden}
#retained-circle .circle-entry-status{position:absolute;inset:0;display:grid;place-items:center;align-content:start;padding:clamp(28px,9vh,90px) 16px;text-align:center;color:#284e72}
#retained-circle .circle-entry-status p{color:inherit}
#retained-circle[data-ready=true] .circle-entry-status,#retained-circle[data-failed=true] .circle-entry-wait,#retained-circle:not([data-failed=true]) .circle-entry-failed{display:none}
#retained-circle .circle-entry-failed button{margin-top:12px}
.library-top .catalog-action .catalog-picture{position:relative;aspect-ratio:4/3;height:auto;overflow:hidden;background:radial-gradient(ellipse at 46% 30%,#375775,#213447 80%)}
.library-top .catalog-picture :is(.cover-status,.catalog-cover-tile){position:absolute;inset:0;width:auto;height:auto;border-radius:0}
.library-top .catalog-picture .cover-status{background:none;display:grid;justify-items:center;align-content:center;gap:4px;color:#e5f3ff;font-size:32px}
.library-top .catalog-picture .cover-status small{padding:0;color:#e5f3ff;font-size:11px}
.library-top .catalog-picture .catalog-cover-tile{display:none;background:url('assets/action-covers-v2442.webp') var(--cover-x) var(--cover-y)/var(--cover-cols) var(--cover-rows) no-repeat}
.covers-ready .library-top .catalog-picture .catalog-cover-tile{display:block}
.library-top .catalog-picture .catalog-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .14s ease}
.library-top .catalog-picture .catalog-cover.is-ready{opacity:1}
body[data-screen=home] .phone-shell.focus-a{background:#deeffc url('assets/home-flow-v2440.webp') center/100% 100% no-repeat}
body[data-screen=home] .focus-a .app-header{background:transparent}
body[data-screen=home] .focus-a .home-profile-entry,body[data-screen=home] .focus-a .home-brand-mark{background:#f7fcffae;box-shadow:0 3px 12px #24669a0f}
body[data-screen=home] .focus-a #app{padding-top:8px!important}
.landing-training .landing-date{margin-top:clamp(28px,7vh,74px);padding:8px 13px;color:#17324e;background:#f6fbffb0;border-color:#b8d1e6;font-weight:750}
.landing-training .landing-ring{margin-top:clamp(22px,3.7vh,34px);width:clamp(167px,50vw,229px);border-color:#b4cbe1;background:radial-gradient(ellipse at 31% 22%,#fff 0%,#eff5ff 36%,#c8def7 77%,#effaff 96%);box-shadow:0 12px 28px #185b9b29,inset 0 0 23px #5a94ce37}
.landing-ring::before{inset:-5px;padding:4px;background:conic-gradient(from -35deg,#8bc6ef,#2b7bbd 31%,#2478be 58%,#86bdea 82%,#8bc6ef)}
.landing-ring::after{inset:8px;border:1px solid #84add5;box-shadow:0 0 0 7px #f4faffbe,inset 0 0 13px #b8d5f29b}
.a-home.landing-training .landing-ring h1{color:#102740;font-size:clamp(25px,7vw,36px)!important;font-weight:830;letter-spacing:.01em}
.landing-training .landing-action{padding-top:clamp(38px,8vh,76px);margin-top:0}
body[data-screen=home] .focus-a .landing-training .landing-action>.primary{min-height:58px;border-radius:18px;background:linear-gradient(103deg,#1854be,#146cc2 45%,#087d86);color:white;font-size:18px;font-weight:800;box-shadow:0 12px 23px #1c6cb52a}
body[data-screen=home] .landing-practice{color:#274961;font-weight:690;text-shadow:0 1px 4px #ffffffcf}
body[data-screen=home] #bottomNav{background:linear-gradient(110deg,#e0effaf2,#e9f9fbeb);border:1px solid #f9feff;box-shadow:0 -3px 24px #27638c23;border-radius:20px 20px 0 0}
body[data-screen=home] #bottomNav button,body[data-screen=home] #bottomNav button b,body[data-screen=home] #bottomNav button span{color:#224968;font-weight:760}
body[data-screen=home] #bottomNav button svg{stroke-width:1.9}
body:is([data-screen=library],[data-screen=circle],[data-screen=plan],[data-screen=calendar],[data-screen=mine]) .phone-shell.focus-a,
body.community-embed .phone-shell{background:radial-gradient(ellipse at 96% 0%,#e6f2fe 0%,#f8fcff 42%,#fff 78%)}
body:is([data-screen=library],[data-screen=circle],[data-screen=plan],[data-screen=calendar]) .page-heading h1{color:#15344f}
@media(max-height:720px){.landing-training .landing-date{margin-top:17px}.landing-training .landing-action{padding-top:31px}.landing-training .landing-ring{margin-top:19px;width:clamp(151px,47vw,190px)}}
@media(prefers-reduced-motion:reduce){.library-top .catalog-picture .catalog-cover{transition:none}}

