:root{font-family:'DM Sans',sans-serif;color:#171717;background:#eeeee8;color-scheme:light;--paper:#f8f6f0;--ink:#171717;--muted:#707267;--line:#e2e3d9;--soft:#eeeee7;--accent:#ff4210;--orange:var(--accent)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.4}a{color:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #797b73}[hidden]{display:none!important}h1,h2,h3,p{margin:0}svg{width:20px;height:20px;flex:none;display:block}button svg{pointer-events:none}.home{max-width:440px;margin:0 auto;background:var(--paper);padding:22px 20px 105px;min-height:100svh}.date-header{font-size:12px;line-height:1.5;color:var(--muted);margin-bottom:12px}.cycle-summary{width:100%;border:0;background:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0;text-align:left;min-height:54px}.cycle-summary-copy{display:flex;flex:1;flex-direction:column;gap:4px}.cycle-summary strong{font-size:18px;line-height:1.3;font-weight:500;letter-spacing:-.2px}.cycle-summary #cycle-timing{font-size:13px;line-height:1.5;color:var(--muted)}.cycle-summary svg{width:16px;height:16px;color:#93948a}.cycle-summary:hover svg{color:var(--orange)}.calendar-section{margin:16px 0}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:28px;margin-bottom:6px}.month-button{display:flex;align-items:center;gap:6px;font-weight:500;font-size:12px;border:0;padding:0;background:none;min-height:32px;color:var(--muted)}.month-button svg{width:13px;height:13px}.month-button[aria-expanded=true] svg{transform:rotate(180deg)}.calendar-arrows{display:flex;gap:6px;align-items:center}.small-icon{border:0;background:transparent;border-radius:50%;width:28px;height:28px;font-size:22px;line-height:1;color:#6d7167}.small-icon:hover{background:#eaeae1}.text-button{border:0;background:none;padding:8px 0;font-size:14px;line-height:1.3;color:var(--muted);min-height:40px;font-weight:500}.text-button:hover{color:var(--ink)}#calendar-today{font-size:12px;margin-right:4px;min-height:32px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;background:var(--soft);padding:3px;border:1px solid var(--line);border-radius:18px}.day{position:relative;border:0;background:transparent;border-radius:14px;min-height:99px;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;gap:4px;padding:7px 0;font-size:16px;font-variant-numeric:tabular-nums}.day-name{font-size:10px;line-height:12px;color:var(--muted)}.day:hover{background:#eeede5}.day.is-today .day-number{font-weight:700}.day[aria-pressed=true]{background:var(--paper);color:var(--ink);box-shadow:inset 0 0 0 1px #17171712}.day[aria-pressed=true] .day-name{color:var(--muted)}.day.outside{opacity:.45}.day-marks i,.calendar-legend i{display:inline-block;width:4px;height:4px;border-radius:50%}.day.is-today .day-number{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:4px}.workout-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:25px;background:#1c110f;color:#fff;height:clamp(420px,calc(100svh - 350px),590px);min-width:0}.hero-image{position:absolute;top:0;left:0;width:100%;height:88%;object-fit:cover;object-position:center bottom;z-index:-2}.hero-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#15120e25 0%,transparent 27%,#180b0700 47%,#1c110f88 66%,#1c110ff5 83%,#1c110f 100%)}.hero-top{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:16px}.hero-move{background:#ffffff16;backdrop-filter:blur(12px);color:#fff;border:1px solid #ffffff70;border-radius:100px;min-height:36px;font-size:12px;padding:8px 14px;white-space:nowrap}.hero-move:hover{background:#ffffff30}.hero-copy{position:absolute;bottom:20px;left:24px;right:24px;text-align:center}h1{font-family:'Lora',Georgia,serif;font-size:44px;line-height:1.04;font-weight:400;letter-spacing:-.8px}h1 em{font-weight:400}.hero-meta{color:#ffffffcc;font-size:13px;margin-top:10px;line-height:1.5}.hero-meta span{margin:0 6px;color:#fff5}.workout-cta{margin-top:24px;width:100%;min-height:50px;border-radius:100px;background:var(--paper);color:var(--ink);text-decoration:none;display:flex;align-items:center;justify-content:center;gap:18px;padding:13px 18px;font-size:15px;line-height:1.3;font-weight:500;box-shadow:0 2px 14px #0001}.workout-cta:hover{background:#fff}.workout-cta svg{width:21px;height:21px}.home-nav{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:408px;z-index:5;display:flex;justify-content:center;padding:0;background:transparent;pointer-events:none}.home-nav button,.sheet .nav-segments label>span{border:0;border-radius:100px;background:transparent;flex:1;min-height:42px;padding:10px 18px;display:flex;justify-content:center;align-items:center;gap:8px;color:var(--muted);font-size:14px;font-weight:500;line-height:1.3}.home-nav button svg{width:19px;height:19px}.home-nav button[aria-current=page],.sheet .nav-segments input:checked+span{color:var(--ink);background:var(--paper);box-shadow:inset 0 0 0 1px #1717170d}.home-nav button:hover{color:var(--ink);background:#f8f6f080}.completion-note{display:flex;align-items:center;gap:8px;background:#edf0e6;color:#637157;font-size:11px;line-height:1.5;border-radius:12px;padding:8px 11px;margin-bottom:12px}.completion-note button{margin-left:auto;border:0;background:none;color:inherit;font-size:18px}.done-dot{width:22px;height:22px;border-radius:50%;background:#edf1e7;color:#6c805b;display:inline-grid;place-items:center;flex:none;font-size:12px}.about-heading{margin:24px 0}.about-heading h1{font-size:34px;line-height:1.15;letter-spacing:-.8px}.card{background:transparent;border:0;border-radius:0;box-shadow:none}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}h2{font-size:18px;line-height:1.3;font-weight:500;letter-spacing:0}.optional{font-size:12px;color:var(--muted)}.cycle-card{padding:0 0 24px;border-bottom:1px solid var(--line)}.cycle-card .section-heading,.rhythm-card .section-heading{margin:0 0 18px}.cycle-visual{display:flex;align-items:center;gap:19px}.cycle-ring{width:85px;height:85px;flex:none;border-radius:50%;padding:3px;background:conic-gradient(var(--accent) var(--cycle-progress,0%),var(--line) 0);transform:rotate(-15deg)}.cycle-ring>div{width:100%;height:100%;border-radius:50%;background:var(--paper);display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(15deg)}.cycle-ring span{font-size:12px;color:var(--muted)}.cycle-ring strong{font-size:32px;font-weight:400;letter-spacing:-.8px;line-height:1.1}.cycle-visual h3{font-size:16px;font-weight:500;line-height:1.3;letter-spacing:0}.cycle-visual p{font-size:14px;color:var(--muted);line-height:1.5;margin-top:8px}.cycle-estimate{font-size:12px;color:var(--muted);line-height:1.5;margin-top:16px}.mood-card{padding:0}.mood-options{display:grid;grid-template-columns:1fr;gap:8px}.mood-button,.sheet .mood-button{border:1px solid transparent;background:var(--soft);display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 16px;border-radius:14px;font-size:16px;line-height:1.3;color:var(--ink);text-align:left}.mood-button:hover{background:#e7e7df}.mood-button[aria-pressed=true],.mood-button:has(input:checked){background:white;color:var(--ink);border-color:var(--ink)}.mood-response{min-height:44px;display:flex;align-items:center;font-size:12px;line-height:1.5;color:var(--muted);margin-top:12px;padding:0}.rhythm-card{margin-top:24px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.rhythm-card .section-heading{margin-bottom:8px}.rhythm-card>p{font-size:14px;color:var(--muted);line-height:1.5}.rhythm-card .preference-summary{border-top:1px solid var(--line);margin-top:13px;padding-top:13px;overflow-wrap:anywhere}.recent-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:14px 0}.recent-row>div{flex:1;min-width:0}.recent-row strong{font-size:16px;font-weight:500;line-height:1.3;display:block;overflow-wrap:anywhere}.recent-row small{display:block;color:var(--muted);font-size:12px;line-height:1.4;margin-top:7px}.recent-row time{font-size:12px;color:var(--muted)}.recent-empty{font-size:14px;color:var(--muted);line-height:1.5;padding:3px 0 9px}footer{text-align:center;color:#7d8277;font-size:12px;padding:36px 0 8px}footer span{display:block;color:#b0b4aa;font-size:10px;margin-top:8px}
.sheet{position:fixed;inset:auto 0 0;margin:0 auto;padding:25px 24px max(26px,env(safe-area-inset-bottom));border:1px solid #e8e8e0;border-bottom:0;border-radius:28px 28px 0 0;width:min(100%,440px);max-width:100%;max-height:88dvh;overflow:auto;overscroll-behavior:contain;background:var(--paper);color:var(--ink)}.sheet::backdrop{background:#20221d65;backdrop-filter:blur(5px)}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:23px}.sheet-header h2{font-size:20px;font-weight:500;line-height:1.3;letter-spacing:0}.sheet-close{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--soft);font-size:26px;font-weight:400;color:var(--ink)}.sheet label{display:block;font-size:14px;line-height:1.5;margin-bottom:20px}.sheet input,.sheet select,.sheet textarea{display:block;width:100%;border:1px solid #dedfd7;border-radius:13px;background:white;padding:13px;color:var(--ink);min-height:49px;font-size:16px;margin-top:7px}.sheet input[type=date]{appearance:none;-webkit-appearance:none}.sheet textarea{resize:vertical;min-height:88px}.sheet-help{font-size:14px;color:var(--muted);line-height:1.5;margin:-8px 0 24px}.save-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;padding:13px 18px;border:0;border-radius:100px;background:var(--ink);color:white;font-size:16px;font-weight:500;line-height:1.3;margin-top:24px}.save-button:hover{background:#333}.sheet-error{color:#8a452c;font-size:12px;line-height:1.5;margin-top:12px}.sheet-alternative{display:block;margin:12px auto 0;border:0;background:none;min-height:44px;font-size:14px;color:var(--muted)}.rhythm-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;border:0;margin:0 0 24px;padding:0}.rhythm-days legend{font-size:14px;margin-bottom:12px}.rhythm-days label{margin:0;position:relative}.rhythm-days input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0;padding:0}.rhythm-days span{display:grid;place-items:center;min-height:44px;border:1px solid transparent;border-radius:14px;font-size:14px;background:var(--soft)}.rhythm-days input:checked+span{background:#fff;border-color:var(--ink);color:var(--ink)}.rhythm-days input:focus-visible+span{outline:2px solid #797b73;outline-offset:3px}.toast{position:fixed;z-index:10;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);border-radius:100px;background:#29302a;color:#fff;font-size:13px;padding:13px 20px;box-shadow:0 8px 24px #0002;text-align:center;pointer-events:none}.save-warning{font-size:12px;line-height:1.5;color:#955c32;background:#fff2e5;padding:15px;border-radius:15px;margin-top:14px}.sheet-open{overflow:hidden}
.toast{bottom:max(88px,calc(env(safe-area-inset-bottom) + 75px))}.sheet{z-index:10}.sheet-close:focus-visible{outline-color:#777e70}.save-warning{position:fixed;z-index:11;bottom:85px;left:50%;transform:translateX(-50%);width:min(390px,calc(100% - 32px))}@media(max-width:480px){:root{background:var(--paper)}.home{padding-top:max(20px,env(safe-area-inset-top))}}@media(max-width:360px){.home{padding-left:16px;padding-right:16px}.hero-copy{left:20px;right:20px}h1{font-size:40px}}@media(prefers-reduced-motion:no-preference){.workout-cta,.day,.mood-button{transition:background .15s}.sheet[open]{animation:sheet-in .22s ease-out}@keyframes sheet-in{from{opacity:.4;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}}

/* Controls follow the workout overview and completion screen. */
.nav-segments{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);border-radius:100px;background:var(--soft);width:100%}
.feeling-check{width:18px;height:18px;border-radius:50%;border:1px solid #85867d;flex:none}
.mood-button[aria-pressed=true] .feeling-check,.mood-button:has(input:checked) .feeling-check{background:var(--accent);border-color:var(--accent);box-shadow:inset 0 0 0 4px white}
@media(max-width:360px){.home-nav button{padding:10px 12px}.hero-copy{left:20px;right:20px}.cycle-summary strong{font-size:16px}}

.cycle-day-indicator{position:relative;isolation:isolate;width:52px;height:52px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:conic-gradient(var(--accent) var(--cycle-progress,0%),var(--line) 0);gap:0}
.cycle-day-indicator:before{content:'';position:absolute;inset:2px;border-radius:50%;background:var(--paper);z-index:-1}
.cycle-day-indicator>span{font-size:9px;line-height:12px;color:var(--muted)}
.cycle-summary .cycle-day-indicator strong{font-size:22px;font-weight:400;line-height:1.1;letter-spacing:-.5px}
.day-thumbnail{position:relative;display:block;width:35px;height:40px;border-radius:7px;overflow:hidden;margin-top:3px}
.day-thumbnail img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 75%}
.day-done{position:absolute;right:1px;bottom:1px;display:grid;place-items:center;width:13px;height:13px;border-radius:50%;background:var(--paper);color:var(--ink);font-size:9px}
.day-activity{font-size:10px;color:var(--muted);min-height:40px;display:flex;align-items:center;justify-content:center;line-height:1.2;margin-top:3px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.hero-move{display:flex;align-items:center;gap:6px;max-width:76%;text-align:left}
.hero-status{display:flex;align-items:center;gap:5px;font-size:11px;color:white;text-shadow:0 1px 6px #0008;white-space:nowrap}
.hero-status i{display:block;width:5px;height:5px;border-radius:50%;background:var(--accent)}
.hero-meta{line-height:1.7}
.calendar-section{margin:18px -4px 14px;padding:10px 10px 12px;background:#282925;color:var(--paper);border-radius:24px}
.calendar-toolbar{padding:0 6px;margin-bottom:4px;min-height:34px}
.calendar-section .month-button,.calendar-section .text-button,.calendar-section .small-icon{color:#d4d4cc}
.calendar-section .small-icon:hover{background:#ffffff12}
.calendar-grid{background:transparent;border:0;border-radius:0;padding:0;gap:2px}
.day{min-height:94px;padding:6px 0 4px;color:var(--paper)}
.day-name,.day-activity{color:#b3b5a9}
.day:hover{background:#ffffff0c}
.day[aria-pressed=true]{background:#4b4d43;color:#fff;box-shadow:none}
.day[aria-pressed=true] .day-name,.day[aria-pressed=true] .day-activity{color:#dedfd4}
.day-number{line-height:24px}
.day.is-today .day-number{text-decoration:none;font-weight:400}
.day-thumbnail,.day-activity{margin-top:0}
.day.is-planned[aria-pressed=true] .day-thumbnail{height:26px}
.day.is-planned[aria-pressed=true] .day-thumbnail img{object-position:center 69.33%}
.calendar-session{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 6px 0;padding-top:8px;border-top:1px solid #ffffff20;font-size:12px;color:#b3b5a9}
.calendar-session .text-button{flex:none;font-size:12px}
/* Figma 2343:426: the title sits above the trainer in a single-screen card. */
.home{padding-top:20px}
.workout-hero{margin:0 -8px;height:auto;aspect-ratio:369/448;border-radius:28px;display:flex;flex-direction:column;justify-content:space-between;padding:32.67px 24px 24px}
.hero-image{top:-37.5%;left:calc(50% + .5px);transform:translateX(-50%);width:calc(100% + 5px);height:auto;max-width:none;object-fit:contain;object-position:center}
.hero-shade{background:linear-gradient(0deg,rgba(22,19,16,.132) 0%,transparent 22%,transparent 48%,rgba(28,17,15,.175) 62%,rgba(28,17,15,.653) 79%,rgba(28,17,15,.7) 100%)}
.hero-copy{position:relative;inset:auto;width:100%}
.hero-meta{margin-top:8px;line-height:1.7}
.workout-cta{flex-shrink:0;margin-top:24px}
.cycle-day-indicator:before{inset:1px}
.nav-segments{gap:3px}
/* Blur belongs to the floating pill, with no full-width backdrop beneath it. */
.home-nav .nav-segments{padding:6px;gap:3px;border:1px solid #ffffff85;background:rgba(248,246,240,.68);-webkit-backdrop-filter:blur(22px) saturate(1.35);backdrop-filter:blur(22px) saturate(1.35);box-shadow:0 8px 28px #17171718,inset 0 1px 0 #ffffffb3;pointer-events:auto}
.home-nav button{min-height:48px;color:#55574f}
.home-nav button[aria-current=page]{color:var(--ink);background:#ffffff70;box-shadow:inset 0 1px 0 #ffffffb3}
.home-nav button:hover{background:#ffffff60;color:var(--ink)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.home-nav .nav-segments{background:var(--paper)}}
@media(prefers-reduced-transparency:reduce){.home-nav .nav-segments{background:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none}}
.mood-response:empty{display:none}
@media(max-height:740px) and (max-width:600px){
  .home:has(#plan-view:not([hidden])){padding-top:12px}
  .home:has(#plan-view:not([hidden])) .date-header{margin-bottom:12px}
  .cycle-summary{min-height:48px}
  .cycle-day-indicator{width:44px;height:44px}
  .cycle-summary-copy>strong{font-size:16px}
  .calendar-section{margin-top:10px;margin-bottom:10px;padding-top:6px;padding-bottom:6px}
  .calendar-toolbar{min-height:28px;margin-bottom:2px}
  .month-button,#calendar-today{min-height:28px}
  .day{min-height:62px;padding:2px 0;gap:2px}
  .day-number{line-height:20px}
  .day-thumbnail,.day-activity,.day.is-planned[aria-pressed=true] .day-thumbnail{height:22px;min-height:22px}
  .workout-hero{padding-top:24px}
  #home-title{font-size:40px}
}
@media(max-width:360px){.cycle-summary strong{font-size:16px}.cycle-summary #cycle-timing{font-size:12px}.cycle-day-indicator{width:46px;height:46px}.hero-top{padding:13px}.hero-move{font-size:11px;padding:8px 10px}.day-thumbnail{width:31px}}

/* Workout lifecycle: one familiar card, with the action appropriate to the day. */
.card-actions{margin-top:auto;width:100%}
.card-actions .workout-cta{margin-top:16px}
.card-secondary{display:block;margin:4px auto -8px;min-height:40px;border:0;background:none;color:inherit;opacity:.82;font-size:12px;padding:8px 14px}
.card-secondary:hover{opacity:1}
.card-next{width:100%;display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 10px;border:1px solid #ffffff60;border-radius:100px;background:#f8f6f0dd;color:var(--ink);font-size:12px;backdrop-filter:blur(12px)}
.calm-card{color:#35392e;background:#eae4d8}
.calm-card .hero-image{inset:0;transform:none;width:100%;height:100%;object-fit:cover}
.calm-card .hero-shade{background:linear-gradient(180deg,#f8f6f0da 0%,#f8f6f0b0 26%,#f8f6f032 60%,#f8f6f010 100%)}
.calm-card #home-title{font-size:37px;line-height:1.13;letter-spacing:-.8px}
.calm-card .hero-copy{padding-top:15px}
.calm-card .hero-meta{color:#4b5045;font-size:14px;line-height:1.6;margin:18px auto 0;max-width:280px}
.calm-card .card-secondary{margin:0 auto 4px;padding:8px 18px;min-height:40px;border-radius:100px;background:#f8f6f0dd}
.workout-hero[data-state=in-progress] #home-title{font-size:37px;line-height:1.13}
.toast{pointer-events:auto;display:flex;align-items:center;gap:16px;min-width:240px;justify-content:space-between;border-radius:18px;text-align:left}
#undo-move{color:#fff;background:none;border:0;border-left:1px solid #ffffff40;padding:7px 0 7px 16px;font-size:13px;font-weight:600}
#move-impact{font-size:13px;line-height:1.5}
#move-impact>p{color:var(--muted);margin-bottom:8px}
#move-impact ul{list-style:none;margin:0;padding:0;max-height:210px;overflow:auto}
#move-impact li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:10px 0}
#move-impact s{color:var(--muted)}
.result-summary{text-align:center;padding:8px 0 16px}.result-summary h3{font-family:Lora,serif;font-weight:400;font-size:28px;margin:18px 0 10px}.result-summary p{font-size:14px;color:var(--muted)}
a.save-button{text-decoration:none}
@media(max-width:360px){.calm-card #home-title,.workout-hero[data-state=in-progress] #home-title{font-size:32px}.calm-card .hero-meta{font-size:13px}.card-next{font-size:11px}}

/* Distinct entities: period support, a day off, a completed workout, and system notices. */
.card-status{display:inline-block;padding:5px 11px;margin-bottom:10px;border:1px solid #ffffff60;border-radius:100px;background:#ffffff18;color:#fff;font-size:11px;line-height:16px;letter-spacing:.1px}
.completed-card{aspect-ratio:369/384;padding-top:24px;padding-bottom:18px}
.completed-card .hero-image{top:-43.75%}
.completed-card .hero-shade{background:linear-gradient(180deg,#1c110fc4 0%,#1c110f50 45%,#1c110f15 62%,#1c110fdd 100%)}
.completed-card #home-title{font-size:40px}
.workout-result{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding-top:14px;border-top:1px solid #ffffff55}
.workout-result strong{font-size:18px;font-weight:500;line-height:1.4}
.workout-result p{font-size:13px;line-height:1.5;color:#ffffffcc;margin-top:2px}
.workout-result button{min-height:42px;padding:9px 17px;background:#f8f6f0;color:var(--ink);border:0;border-radius:100px;font-size:13px}
.completed-next{display:block;width:calc(100% + 16px);margin:12px -8px 0;padding:12px 16px;min-height:48px;border:1px solid var(--line);border-radius:100px;background:transparent;color:var(--muted);font-size:12px}
.completed-next:hover{background:var(--soft);color:var(--ink)}
.plan-message{padding:22px 20px;margin:0 -4px;border:1px solid var(--line);border-radius:20px;background:#f0f0e8;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.plan-message h2{font-size:18px;font-weight:500;line-height:1.35}
.plan-message p{font-size:14px;line-height:1.5;color:var(--muted);margin-top:7px}
.plan-message button{padding:8px 14px;min-height:40px;border:1px solid #c9cbc0;border-radius:100px;background:transparent;font-size:13px}
.plan-message button:hover{background:#fff8}
.plan-message[data-state=past-rest]{background:transparent}
@media(max-width:360px){.completed-card #home-title{font-size:36px}.completed-card{padding-left:20px;padding-right:20px}.workout-result strong{font-size:16px}.workout-result p{font-size:12px}}

/* Optical depth: soften only the reading area, leaving the photograph alive. */
.hero-atmosphere{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0}
.calm-card .hero-atmosphere{opacity:1;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);-webkit-mask-image:linear-gradient(#000 0%,#000c 26%,transparent 63%);mask-image:linear-gradient(#000 0%,#000c 26%,transparent 63%)}
.calm-card .hero-shade{background:linear-gradient(180deg,#f8f6f0ed 0%,#f8f6f0cf 22%,#f8f6f050 44%,#f8f6f000 65%)}
.calm-card[data-state=rest] .hero-image{object-position:center 58%}
.calm-card[data-state=rest] .hero-shade{background:linear-gradient(180deg,#f0efdfed 0%,#f0efdfd4 22%,#f0efdf70 43%,#f0efdf00 68%)}
.calm-card .card-next{background:#f8f6f0d9;border-color:#ffffff6b;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.completed-card .hero-atmosphere{opacity:1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);-webkit-mask-image:linear-gradient(transparent 63%,#000 91%);mask-image:linear-gradient(transparent 63%,#000 91%)}
.completed-card .hero-shade{background:linear-gradient(180deg,#1c110fbd 0%,#1c110f50 36%,#1c110f00 57%,#1c110f32 72%,#1c110fe6 100%)}

/* Log exercise uses the existing quiet secondary controls, without shifting the hero. */
.date-header{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:18px}
.log-exercise{position:absolute;right:0;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:5px;min-height:44px;padding:0 0 0 8px;border:0;background:transparent;color:var(--ink);font-size:12px;font-weight:500}
.log-exercise>span{font-size:19px;font-weight:400;line-height:1}
.log-exercise:hover{color:var(--muted)}
.edit-activity{min-width:44px;min-height:44px}
/* Reuse My Space choice rows and the existing navigation segmented control. */
.sheet #log-form fieldset{border:0;padding:0;margin:0;min-width:0}
.sheet #log-form input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0;padding:0}
.sheet #log-form label{position:relative;cursor:pointer}
.sheet #log-form .mood-button{margin:0;display:flex}
.sheet #log-form .mood-button:has(input:focus-visible),.sheet .nav-segments label:has(input:focus-visible),.sheet .log-alternate:has(input:focus-visible){outline:2px solid #797b73;outline-offset:3px}
.sheet .log-strength{grid-template-columns:repeat(2,minmax(0,1fr))}
.sheet .log-question{margin-bottom:16px}
.sheet .log-selected{padding-top:0}
.sheet .log-selected strong:focus,.sheet .log-question:focus{outline:none}
.sheet .nav-segments label{flex:1;min-width:0;margin:0}
.sheet .nav-segments label>span{padding:10px 8px;white-space:nowrap}
.sheet .log-alternate{margin:0;display:flex;align-items:center}
.sheet .log-alternate input:checked+span{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.sheet #log-form .section-heading{margin:20px 0 8px}
.sheet #log-form .section-heading h2{font-size:16px}
.sheet #log-form .log-effort{margin-top:24px}
.sheet #log-form legend{font-size:16px;font-weight:500;margin-bottom:12px;padding:0}
.sheet #activity-focus{margin-top:20px}
.sheet .log-choice-chevron{transform:rotate(-90deg);color:var(--muted)}
.sheet .custom-activity-field{margin:16px 0 0;min-width:0}
.sheet .custom-activity-field input{max-width:100%;min-width:0}
@media(max-width:360px){.log-exercise{font-size:12px}.date-header{font-size:11px}}
/* Figma 2471:1521: thumbnail sizes, colors and card action positions. */
.day-thumbnail{height:26px}
.day-thumbnail img{object-position:center 69.33%}
/* Recorded activities use the same quiet tiles in the calendar and My Space. */
.day-movement{display:flex;align-items:center;justify-content:center;gap:2px;position:relative;flex:none;width:35px;max-width:100%;height:26px;border-radius:7px;background:var(--paper);color:var(--ink)}
.day-movement .activity-icon{width:22px;height:22px}
.day-movement.has-multiple{width:42px}
.day-movement.has-multiple .activity-icon{width:18px;height:20px;flex:0 1 auto;min-width:0}
.day-movement.has-more:after{content:'';position:absolute;left:5px;right:5px;bottom:-3px;height:1px;background:var(--paper);opacity:.6}
.activity-tile{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:7px;background:var(--soft);color:var(--ink)}
.activity-tile .activity-icon{width:24px;height:24px}
.recent-row a.text-button{text-decoration:none;text-align:right}
@media(max-width:360px){.day-movement{width:31px}.day-movement.has-multiple{width:37px}}
@media(max-height:740px) and (max-width:600px){.day-movement{height:22px}.day-movement .activity-icon{height:20px}}
.calendar-section .month-button,.calendar-section .text-button,.calendar-section .small-icon{color:#b3b5a9}
.hero-meta{color:#fff}
.hero-shade{background:linear-gradient(180deg,rgba(28,17,15,.7) 0%,rgba(28,17,15,.653) 21%,rgba(28,17,15,.175) 38%,transparent 52%,transparent 78%,rgba(28,17,15,.132) 100%)}
.calm-card .card-next{background:var(--paper);border:0;color:#353b30;backdrop-filter:none;-webkit-backdrop-filter:none}
.calm-card[data-state=rest] .hero-image{object-position:center}
.card-status{background:transparent}
.workout-result{border-color:#fff}
.workout-result strong{line-height:1.35}
.workout-result p{line-height:17px}
.card-secondary{margin:0;min-height:36px;width:100%;padding:8px 18px;opacity:1;line-height:18px}

/* Dated readiness and explicit plan changes. */
.plan-change{padding:16px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.6}
.plan-change p{margin-top:6px}.plan-change small{display:block;margin-top:8px;color:var(--muted)}
.plan-change button{min-height:44px;margin-top:8px}

/* Period logging is a persistent, non-blocking prompt near the cycle summary. */
.period-reminder{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}
.period-reminder p{font-size:13px;line-height:1.4}.period-reminder small{display:block;color:var(--muted);font-size:11px;line-height:1.4;margin-top:3px}
.period-log-button{border:1px solid var(--ink);border-radius:100px;padding:10px 14px;min-height:44px;background:var(--paper);font-size:13px;white-space:nowrap}
.cycle-card>.period-log-button{margin-top:16px}.period-date-choices{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 24px}
.period-date-choices button{border:1px solid var(--line);border-radius:100px;min-height:44px;padding:10px 14px;background:var(--paper);font-size:14px}
.period-date-choices [aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* Keep the primary action above the floating navigation on a collapsed calendar. */
@media(max-width:600px){
 .workout-hero[data-fit="true"]{height:var(--home-hero-height);aspect-ratio:auto;min-height:min-content;padding-top:20px;padding-bottom:16px}
 .workout-hero[data-fit="true"] .hero-copy{flex-shrink:0}
 .workout-hero[data-fit="true"] .hero-image{inset:0;width:100%;height:100%;transform:none;object-fit:cover;object-position:center 48%}
 .workout-hero[data-fit="true"] .hero-shade{background:linear-gradient(180deg,#1c110fc4, #1c110f45 38%,transparent 65%,#1c110f50)}
 .workout-hero[data-fit="true"] #home-title{font-size:clamp(30px,9.5vw,40px)}
 .workout-hero[data-fit="true"] .hero-meta{margin-top:6px;line-height:1.45}
 .workout-hero[data-fit="true"] .card-actions{flex-shrink:0}
 .workout-hero[data-fit="true"] .card-status{margin-bottom:6px}
 .workout-hero[data-fit="true"] .workout-cta{margin-top:16px}
}

/* Home shares the warm dark background of the workout player. */
:root{color-scheme:dark;--paper:#0e0007;--ink:#f8f6f0;--muted:#bbb4b6;--line:#ffffff24;--soft:#241a20;background:var(--paper);color:var(--ink)}
.home{background:var(--paper);padding-bottom:calc(112px + env(safe-area-inset-bottom))}
.date-header,.cycle-summary #cycle-timing{color:var(--muted)}
.cycle-summary svg{color:#b9b2b4;width:20px;height:20px}
.cycle-summary:hover svg{color:var(--ink)}
.calendar-section{background:#231b20;border:1px solid #ffffff14}
.calendar-section .day{color:var(--ink)}
.day[aria-pressed=true]{background:#45343e}
.day[aria-pressed=true] .day-name,.day[aria-pressed=true] .day-activity{color:#eee6e9}
.day-movement{background:#171015;color:#e7dee2;border:1px solid #ffffff1b;border-radius:8px;height:28px}
.day[aria-pressed=true] .day-movement{background:#291c24;border-color:#ffffff26}
.day-movement.has-more:after{background:#b7aab1}
.activity-tile{background:#241a20;color:#e7dee2;border:1px solid #ffffff1b}
.log-choice-name{display:flex;align-items:center;gap:12px}
.log-choice-name .activity-icon{width:24px;height:24px}
.home-nav .nav-segments{background:rgba(39,29,35,.83);border-color:#ffffff2b;box-shadow:0 8px 28px #0005,inset 0 1px 0 #ffffff10}
.home-nav button{color:#bfb6ba}
.home-nav button[aria-current=page]{color:var(--ink);background:#ffffff14;box-shadow:inset 0 1px 0 #ffffff1c}
.home-nav button:hover{background:#ffffff10;color:var(--ink)}
.workout-hero{background:#0e0007;border:1px solid #ffffff12}
.workout-cta{background:#f8f6f0;color:#21151b}
.workout-cta:hover{background:white}
.sheet{background:#1b1117;color:var(--ink);border-color:#ffffff26}
.sheet input,.sheet select,.sheet textarea{background:#251b21;color:var(--ink);border-color:#ffffff26;color-scheme:dark}
.sheet .save-button{background:#f8f6f0;color:#21151b}
.sheet .mood-button,.mood-button{background:#271e24;color:var(--ink)}
.sheet .mood-button:hover,.mood-button:hover{background:#33272f}
.sheet .mood-button:has(input:checked),.mood-button[aria-pressed=true]{background:#3b2d36;border-color:#ab939f}
.sheet .nav-segments input:checked+span{background:#4b3644;color:var(--ink)}
.sheet .sheet-close{background:#ffffff08;color:var(--ink);border-color:#ffffff2b}
.sheet .sheet-help,.sheet .optional,.sheet .sheet-alternative{color:var(--muted)}
.cycle-insight>h3{font-family:'Lora',Georgia,serif;font-weight:400;font-size:30px;line-height:1.15;margin:12px 0}
.cycle-insight p{font-size:15px;line-height:1.6;color:#d4cbd0}
.cycle-insight .insight-date{font-size:12px;color:#b9aeb4}
.insight-section{padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}
.insight-section h4{font-size:13px;font-weight:600;margin:0 0 8px;color:var(--ink)}
.cycle-insight .insight-note{font-size:12px;color:#a69aa1;margin:24px 0 4px}
.insight-pattern{margin-top:8px}
.cycle-insight .sheet-alternative{width:100%;text-align:left;padding-left:0}
/* Fit on desktop panels too: a narrow app can live inside a wide browser. */
.workout-hero[data-fit="true"]{height:var(--home-hero-height);aspect-ratio:auto;min-height:min-content;padding-top:18px;padding-bottom:14px}
.workout-hero[data-fit="true"] .hero-copy,.workout-hero[data-fit="true"] .card-actions{flex-shrink:0}
.workout-hero[data-fit="true"] .hero-image{inset:0;width:100%;height:100%;transform:none;object-fit:cover;object-position:center 48%}
.workout-hero[data-fit="true"] .hero-shade{background:linear-gradient(180deg,#0e0007d0,#0e000749 38%,transparent 65%,#0e000766)}
.workout-hero[data-fit="true"] #home-title{font-size:clamp(28px,9vw,40px)}
.workout-hero[data-fit="true"] .hero-meta{margin-top:6px;line-height:1.45}
.workout-hero[data-fit="true"] .card-status{margin-bottom:6px}
.workout-hero[data-fit="true"] .workout-cta{margin-top:14px}
@media(max-height:650px){
 .home:has(#plan-view:not([hidden])){padding-top:10px}
 .date-header{margin-bottom:8px}
 .calendar-section{margin-top:10px;margin-bottom:10px;padding-top:6px;padding-bottom:6px}
 .day{min-height:60px;gap:2px;padding:2px 0}
 .day-movement{height:24px}
 .day-movement .activity-icon{height:20px}
 .workout-hero[data-fit="true"] #home-title{font-size:28px}
 .workout-hero[data-fit="true"] .hero-meta{font-size:12px}
}
@media(prefers-reduced-transparency:reduce){.home-nav .nav-segments{background:#271d23}}

/* Shared plan feedback; no calendar layout changes. */
.plan-update-status{display:flex;align-items:center;gap:9px;margin:0 0 16px;font-size:13px;line-height:1.5;color:var(--muted)}
.plan-update-status[hidden],.plan-update-spinner[hidden]{display:none}
.plan-update-spinner{display:inline-block;flex:none;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:plan-update-spin .8s linear infinite}
@keyframes plan-update-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.plan-update-spinner{animation:none}}

.plan-saving::before{content:"";display:inline-block;width:14px;height:14px;margin-right:9px;vertical-align:-2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:plan-saving-spin .8s linear infinite}
@keyframes plan-saving-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.plan-saving::before{animation:none}}
