/* MOVE product-wide design rules: mobile strength journal, warm neutral surfaces and meaningful teal. */
:root{--blue:#176f62;--blue-dark:#10584f;--ink:#202b2a;--muted:#62716e;--line:#e2e8e5;--paper:#f7f8f6;--white:#fff;--soft:#f0f3f1;--accent-soft:#e8f3ef;--danger:#a83d45;--try-coral:#d85c58;--radius:12px;--try-ease:cubic-bezier(.2,.75,.25,1);color-scheme:light}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
.app-shell{background:var(--paper)}
.app-shell .app-header{height:64px;max-width:none;padding:0 max(20px,calc((100vw - 960px)/2));background:rgba(255,255,255,.96);border-bottom-color:var(--line);backdrop-filter:saturate(1.15);}
.app-header h1{font-size:20px;letter-spacing:-.35px;font-weight:650;color:var(--ink)}
.app-header .header-actions{gap:12px}.app-header .header-profile,.app-header .icon-button{border-radius:50%;transition:background .16s var(--try-ease),color .16s var(--try-ease)}
.app-header .header-profile:hover,.app-header .icon-button:hover{background:var(--accent-soft);color:var(--blue)}
.app-shell .page{margin:0 auto;max-width:760px;padding:18px 20px calc(104px + env(safe-area-inset-bottom));background:transparent}
.app-shell .page h1,.app-shell .page h2,.app-shell .page h3{color:var(--ink)}
.app-shell .bottom-nav{left:50%;right:auto;top:auto;bottom:16px;transform:translateX(-50%);width:min(380px,calc(100% - 32px));padding:6px 10px max(6px,env(safe-area-inset-bottom));border:1px solid rgba(220,228,224,.94);border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 8px 32px rgba(27,53,45,.09);backdrop-filter:blur(12px)}
.app-shell .bottom-nav a{min-height:52px;padding:3px 8px;border-radius:12px;color:#596865;font-size:11px;transition:background .16s var(--try-ease),color .16s var(--try-ease)}
.app-shell .bottom-nav a.selected{background:var(--accent-soft);color:var(--blue);font-weight:600}
.app-shell .bottom-nav a.selected .nav-icon{background:transparent}
.app-shell .bottom-nav .nav-icon,.app-shell .bottom-nav .ui-icon{width:22px;height:22px}
.app-shell .bottom-nav a:hover:not(.selected){background:#f2f5f3}
.button{min-height:46px;padding:10px 16px;border-radius:10px;background:var(--blue);font-size:14px;font-weight:600;transition:background .16s var(--try-ease),transform .16s var(--try-ease),box-shadow .16s var(--try-ease)}
.button:hover:not(:disabled){background:var(--blue-dark);transform:translateY(-1px)}
.button:active:not(:disabled){transform:translateY(0)}
.button.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}
.button.secondary:hover:not(:disabled){background:#f4f7f5}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.app-shell .section-heading{margin:30px 0 14px}.app-shell .section-heading h2{font-size:17px;letter-spacing:-.2px}
.app-shell .empty-card{padding:40px 20px}.app-shell .empty-icon{color:var(--blue);background:var(--accent-soft);border-radius:16px}
/* Home: light feed surface, actual workout data leads. */
.home-page{padding-top:8px!important}.feed-heading{position:sticky;top:64px;z-index:9;margin:0 -20px 2px;padding:0 20px;background:rgba(247,248,246,.96);backdrop-filter:blur(10px)}
.feed-tab{padding:13px 1px 12px;border-bottom-width:2px;font-size:13px}.feed-heading .text-link{min-height:42px;display:flex;align-items:center}
.feed-workout{padding:18px 16px 16px;margin:12px 0 16px;background:var(--white);border:1px solid var(--line);border-radius:14px}
.feed-user{margin-bottom:14px}.app-shell .avatar.feed-avatar{width:40px;height:40px;min-width:40px;background:var(--accent-soft);color:var(--blue)}
.feed-user strong{font-size:13px}.feed-user time{color:#62716e;font-size:11px}.feed-title h3{font-size:17px;line-height:1.35;margin-bottom:13px}
.feed-metrics{padding:12px 0 14px;border:0;border-radius:9px;background:#f6f8f6}
.feed-metrics>div{padding:0 9px;gap:3px}.feed-metrics span{color:#53635f;font-size:10px}.feed-metrics strong{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}
.feed-exercises{gap:10px;padding-top:14px}.feed-exercises>div{min-height:48px}.feed-exercises img{width:42px;height:42px}.feed-exercises span{font-size:12px;color:#52615d}.feed-exercises strong{color:var(--ink)}
.feed-social{gap:12px;margin-top:13px;padding-top:8px;border-color:#edf0ee}.feed-social button,.feed-social>a{min-width:44px;min-height:44px;justify-content:center;border-radius:9px;color:#50605d}.feed-social button:hover,.feed-social>a:hover{background:#f1f5f2}.feed-social [aria-pressed=true]{background:var(--accent-soft);color:var(--blue)}
.workout-photo{max-height:420px;margin:12px auto 0;object-fit:cover;border-radius:10px}.feed-owner-actions .button{min-height:40px}
/* Workout entry and routine cards. */
.workout-page{padding-top:20px!important}.start-empty{min-height:66px;padding:14px 18px;border-radius:12px;background:#e7f1ed;color:#164e45;font-size:15px;font-weight:650;transition:background .16s var(--try-ease)}
.start-empty:hover,.routine-shortcuts a:hover,.routine-shortcuts button:hover{background:#dcece5}.routine-shortcuts{margin:12px 0 28px}.routine-shortcuts>a,.routine-shortcuts>button{min-height:54px;border-radius:10px;background:#fff;border:1px solid var(--line);font-size:13px;font-weight:600}.routine-grid{gap:10px}.routine-card{padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px}.routine-heading h3{font-size:15px}.routine-description{font-size:12px;line-height:1.55;margin-bottom:14px}.routine-card>.button{min-height:44px}.routine-empty{border-color:#d5dfda;border-radius:12px;background:#fff}.resume-card{border:1px solid #dceae4;border-radius:12px;background:#eaf3ef}.resume-card .button{min-height:42px}
/* Logging: preserve density while giving set entry a quiet structure. */
body[data-workout-view="editor"] .page,body[data-workout-view="summary"] .page{max-width:760px;padding-top:0;background:#fff}
.logger-toolbar{margin:0 -20px;padding:8px 16px;background:rgba(255,255,255,.97);height:60px}.logger-toolbar h2{font-size:16px;font-weight:650}.logger-toolbar>.button{min-height:42px}
.live-metrics,.workout-metrics{gap:12px;padding:15px 0}.live-metrics strong,.workout-metrics strong{font-size:16px;font-weight:650}.live-metrics>div:first-child strong{color:var(--blue)}
.session-meta{padding:15px 0 6px}.session-meta input{font-size:20px}.exercise-log-card{padding:18px 0 20px;background:#fff}.exercise-log-card h2{font-size:14px;color:var(--ink)}.exercise-thumb{background:#edf2ef}
.exercise-options{flex-wrap:wrap}.rest-pill,.note-control>summary{min-height:42px;border-radius:8px;background:#f2f5f3;color:#465651}.set-grid{gap:8px}.set-grid input{min-height:42px;border-radius:8px;background:#f7f9f8;border-color:#e8eeeb}.set-check{width:42px;height:42px;border-radius:10px}.set-complete{background:#eff7f2}.set-complete .set-check{background:#24826e}.logger-bottom{padding:22px 0}.logger-bottom>.button{min-height:48px}
body[data-workout-view="summary"] .summary-heading h3{font-size:22px}.summary-exercise{padding:18px 0}.rest-clock{bottom:0;border-radius:14px 14px 0 0;background:#e9f3ef;border-color:#d5e5dd;box-shadow:0 -8px 28px rgba(25,60,47,.1)}
/* Social search and profiles. */
.social-page,.profile-page,.catalogue-page{padding-top:16px!important}.detail-header{min-height:58px;gap:8px;padding:8px 0;background:transparent}.detail-header h1{font-size:17px;font-weight:650}.social-page .detail-header,.profile-page .detail-header{position:sticky;top:64px;z-index:8;background:rgba(247,248,246,.97);backdrop-filter:blur(10px)}
.people-search{margin:12px 0 6px}.people-search input,.exercise-search input{min-height:48px;padding:12px 14px;border:1px solid #dce4df;border-radius:10px;background:#fff;font-size:15px}.people-list{background:#fff;border-top:1px solid var(--line);border-radius:12px;padding:0 14px}.person-row{min-height:72px;padding:10px 0;border-color:var(--line)}.person-row .avatar{width:46px;height:46px;font-size:18px}.person-row .button{min-height:40px}.profile-identity{gap:16px;padding:14px 0 18px}.app-shell .profile-identity .avatar{width:72px;height:72px;min-width:72px;border-radius:50%}.profile-identity h2{font-size:18px;margin-bottom:8px}.social-counts{gap:10px;font-size:12px;color:#53635f}.profile-bio{font-size:14px;color:#465651}.profile-page>.button,.profile-page>button{min-height:44px;min-width:128px}.profile-progress{padding:14px 16px;margin:18px 0 22px;background:#fff;border:1px solid var(--line);border-radius:12px}.profile-progress .section-heading h2{font-size:14px}.activity-chart rect{fill:var(--blue)}.activity-chart text{fill:#53635f}.profile-links a{min-height:54px;background:#fff;border:1px solid var(--line);border-radius:10px}.profile-account{margin-top:24px}
/* Exercise catalogue and detail: search and technique get the first viewport. */
.catalogue-page>.quiet-link{color:#52615d}.app-shell .catalogue-page .exercise-search{margin-top:10px}.app-shell .exercise-card{min-height:84px;padding:12px 4px;background:transparent;border-color:var(--line)}.app-shell .exercise-card .exercise-poster{width:58px;height:58px}.app-shell .exercise-card h2{font-size:14px}.app-shell .exercise-card p{font-size:11px;color:#53635f}.exercise-detail{padding-bottom:calc(92px + env(safe-area-inset-bottom));background:#fff}.exercise-detail .detail-header{position:sticky;top:0;z-index:21;padding:8px 14px;background:rgba(255,255,255,.97);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}.exercise-tabs{top:58px}.exercise-tabs a{min-height:48px;padding:14px 8px 11px;font-size:13px;border-bottom-width:2px}.exercise-video{background:#f4f6f4}.exercise-video video{max-height:420px}.exercise-detail-content{padding:22px 20px}.exercise-detail-content h2{font-size:19px}.how-steps{margin:18px 0;padding-left:22px}.how-steps li{padding-left:8px;margin-bottom:14px;line-height:1.65;font-size:14px}.exercise-facts{gap:12px 16px}.exercise-history{border-color:var(--line)}
/* Finish and share are focused app tasks with clear safe-area space. */
.finish-page,.share-page,.workout-detail-page{padding-top:8px!important}.finish-page form{display:flex;flex-direction:column;gap:4px}.finish-page .detail-header{position:sticky;top:0;z-index:9;margin:0 -20px;padding:8px 14px;background:rgba(247,248,246,.97);backdrop-filter:blur(10px)}.finish-page .detail-header h1{font-size:16px}.finish-page .detail-header .button{min-height:42px;padding:8px 12px}.finish-page label{margin:14px 0 8px;color:#3b4a46;font-size:13px;font-weight:550}.finish-page input:not([type=file]),.finish-page textarea,.finish-page select{min-height:46px;border-color:#dce4df;border-radius:9px;background:#fff;font-size:15px}.finish-page textarea{min-height:96px}.finish-page .photo-picker{padding:16px;border:1px dashed #b8c9c1;border-radius:12px;background:#fff}.finish-page .workout-metrics{margin:6px 0 14px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:12px}.finish-page #remove-photo{min-height:42px;align-self:flex-start}.finish-page #finish-status{min-height:22px;color:var(--danger)}
.share-page{padding-bottom:calc(110px + env(safe-area-inset-bottom))!important}.share-page .detail-header{padding:8px 14px}.share-preview{padding:12px 16px 0}.share-preview canvas{border-radius:12px;border-color:var(--line)}.share-variants{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;margin:14px 14px;padding-bottom:3px}.share-variants button{flex:0 0 auto;min-height:44px;border:1px solid var(--line);border-radius:9px;background:#fff}.share-variants button[aria-pressed=true]{border-color:#bad8cd;background:var(--accent-soft)}.theme-choice{margin:14px 16px}.theme-choice select{min-height:44px}.share-actions{display:grid;grid-template-columns:1fr 1fr;margin:16px;gap:9px}.share-actions .button{min-height:46px}.share-actions #share-file{grid-column:1/-1}.share-explanation{margin:14px 16px;color:#53635f;font-size:12px}
.workout-detail-page .feed-workout{margin-top:0}.workout-detail-page .summary-exercise{padding:16px 0;border-bottom:1px solid var(--line)}
/* Authentication stays unmistakably MOVE and becomes a compact phone-first task. */
body:not(.app-shell) .site-header{max-width:1080px;padding:20px 28px}body:not(.app-shell) .brand-mark{background:var(--blue);border-radius:10px}
body:not(.app-shell) .auth-layout{max-width:1000px;min-height:calc(100dvh - 96px);margin:0 auto;padding:28px;gap:52px;align-items:center}
body:not(.app-shell) .auth-story h1{font-size:clamp(36px,4vw,52px);letter-spacing:-1.8px;line-height:1.08}
body:not(.app-shell) .auth-story .eyebrow,body:not(.app-shell) .auth-card .eyebrow{letter-spacing:.04em;text-transform:none;font-size:12px}
body:not(.app-shell) .auth-card{padding:30px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 38px rgba(31,55,46,.07)}
body:not(.app-shell) .auth-form input{min-height:48px;background:#fff;border-color:#dce4df;border-radius:9px;font-size:16px}
body:not(.app-shell) .auth-form label{font-weight:550;color:#35433f}
body:not(.app-shell) .training-art{background:#e8f3ef;border-radius:16px}.art-grid{display:none}.barbell-bar{background:#51766d;box-shadow:0 8px 18px rgba(22,61,50,.14)}.weight{background:#176f62;border-color:#8eb6a6;box-shadow:none}.art-label{color:#365d53}
body:not(.app-shell) .auth-story h1 span{color:var(--blue)}
@media(min-width:1000px){.app-shell .bottom-nav{bottom:18px}.app-shell .page{padding-top:24px}.app-shell[data-page="workout"] .routine-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell[data-page="home"] .page{max-width:760px}.profile-page .feed-workout{padding:20px}.app-shell[data-page="exercises"] .exercise-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}.app-shell[data-page="exercises"] .exercise-card{border-bottom:1px solid var(--line)}.app-shell[data-page="profile"] .profile-identity{align-items:flex-start}.finish-page,.share-page{max-width:720px}}
@media(min-width:768px) and (max-width:999px){.app-shell .page{padding-left:28px;padding-right:28px}.app-shell .routine-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.social-page,.catalogue-page,.profile-page{max-width:760px}.profile-progress{padding:18px 22px}}
@media(max-width:600px){.app-shell .app-header{height:58px;padding:0 16px}.app-header h1{font-size:18px}.app-header .header-actions{gap:6px}.app-shell .page{padding-left:16px;padding-right:16px;padding-top:14px}.app-shell .bottom-nav{bottom:0;width:100%;max-width:none;border-radius:14px 14px 0 0;border-width:1px 0 0;padding:5px 18px max(6px,env(safe-area-inset-bottom));box-shadow:0 -5px 18px rgba(30,53,45,.06)}.feed-heading{top:58px;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.feed-workout{padding:15px 13px;margin:10px 0 14px;border-radius:12px}.feed-metrics{gap:4px}.feed-metrics>div{padding:0 6px}.feed-metrics strong{font-size:14px}.routine-shortcuts{gap:8px}.routine-shortcuts>a,.routine-shortcuts>button{padding:11px 10px;gap:8px;font-size:12px}.social-page .detail-header,.profile-page .detail-header{top:58px}.exercise-detail{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.exercise-detail .detail-header{top:0}.exercise-tabs{top:56px}.exercise-video video{max-height:320px}.exercise-detail-content{padding:18px 16px}.profile-progress{padding:13px 12px}.profile-identity{align-items:flex-start}.app-shell .profile-identity .avatar{width:64px;height:64px;min-width:64px}.person-row{min-height:68px}.person-row .button{padding:8px 11px}.finish-page .detail-header{margin-left:-16px;margin-right:-16px}.share-preview{padding-left:12px;padding-right:12px}.share-page .detail-header{margin-left:-16px;margin-right:-16px}}
@media(max-width:600px){.logger-toolbar{margin-left:-16px;margin-right:-16px}.set-grid .set-check{width:100%;min-width:0;height:40px}.share-page .detail-header{margin-left:0;margin-right:0}}
@media(max-width:360px){.feed-metrics strong{font-size:13px}.routine-shortcuts>a,.routine-shortcuts>button{font-size:11px}.feed-social{gap:6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

.guest-notice{margin:0 0 1rem;padding:.85rem 1rem;border:1px solid #d8e5df;border-radius:14px;background:#f3f8f5;color:#31564a;font-size:.9rem}.guest-notice a{font-weight:700;color:#126b50}.active-workout-card{display:grid;grid-template-columns:1fr auto;gap:.65rem;align-items:center;margin-bottom:1rem;padding:1rem;border:1px solid #dce5e1;border-radius:16px;background:#fff}.active-workout-card strong,.active-workout-card span{grid-column:1}.active-workout-card button{grid-column:2;grid-row:1 / span 2}.guest-local-history{margin:1rem 0}.guest-local-history>h2{font-size:1.1rem;margin:1rem 0}.guest-local-card{margin:.75rem 0}.guest-history-empty{padding:1rem;color:#69766f}

.guest-active-profile{display:flex;align-items:center;flex-wrap:wrap;gap:.7rem}.guest-active-profile>span{flex:1 1 100%}@media(min-width:600px){.guest-active-profile>span{flex:1}}

.try-modal{width:min(92vw,28rem);padding:0;border:0;border-radius:20px;background:transparent;color:inherit;box-shadow:0 24px 80px #172a2233}.try-modal::backdrop{background:#15211dcc;backdrop-filter:blur(3px)}.try-modal-card{padding:1.4rem;background:#fff;border:1px solid #e2e9e5;border-radius:20px}.try-modal-card h2{margin:0 0 .65rem;font-size:1.2rem}.try-modal-card p{margin:0;color:#52645b;line-height:1.55}.try-modal-actions{display:flex;justify-content:flex-end;gap:.65rem;flex-wrap:wrap;margin-top:1.25rem}.try-modal-actions .button{min-width:6rem}
