/* LOT02 composes the LOT01 foundation; no styles on Coach/Nutrition/billing. */
.ui-lot02,.lot-subjective{--mp-base:#0b171c;--mp-card:#14262d;--mp-elevated:#1b333b;--mp-text:#f2f6f4;--mp-secondary:#aec0c4;--mp-border:#2b424a;--mp-accent:#89dcca;--mp-watch:#eac991;--mp-error:#f1a8a2;--mp-muted:#aec0c4;--mp-card-emphasis:#14262d;font-family:'MP Lot Inter',Inter,system-ui,sans-serif}
.ui-lot02 :is(.aa-post-session,.aa-checkin-content){display:flex;flex-direction:column;gap:24px;min-width:0;margin:0;padding:0;background:none;border:0;box-shadow:none}
.ui-lot02 .lot2-heading{display:flex;flex-direction:column;gap:8px;min-width:0}
.ui-lot02 .lot2-heading h1,.lot-subjective .lot2-heading h1,.lot-subjective .lot2-heading h2{font-size:1.875rem;line-height:1.2;font-weight:600;letter-spacing:0;margin:0;color:var(--mp-text);text-wrap:pretty}
.ui-lot02 .lot2-heading small{text-transform:uppercase}
.ui-lot02 .lot2-metrics{gap:24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.ui-lot02 .lot2-metrics strong{font-size:2.5rem;font-weight:500;line-height:1.1;overflow-wrap:anywhere}
.ui-lot02 .lot2-metrics .lot2-rpe strong{color:var(--mp-text)}
.ui-lot02 .lot2-rpe{display:flex;flex-direction:column;gap:4px;min-width:0}
.ui-lot02 .lot2-rpe small{font-size:.875rem;line-height:1.4;overflow-wrap:anywhere}
.ui-lot02 .lot2-feedback-link{display:flex;flex-direction:column;gap:6px;text-decoration:none;min-height:80px;box-sizing:border-box;color:var(--mp-text)}
.ui-lot02 .lot2-feedback-link strong{font-size:1rem;color:var(--mp-text)}
.ui-lot02 .lot2-feedback-link span{font-size:.875rem;color:var(--mp-secondary)}
.ui-lot02 .lot2-sources-link{min-height:44px;display:flex;align-items:center}
.ui-lot02 .lot2-sources{display:flex;flex-direction:column;gap:24px}
.ui-lot02 .lot-card :is(h2,p,small){overflow-wrap:anywhere}
.ui-lot02 :is(.aa-post-review,.aa-post-link,.aa-post-planned,.aa-historical-prescription,.lot2-prescribed-actual,[data-performance-root],[data-performance-trends],[data-performance-block-root]){background:var(--mp-card);color:var(--mp-text);border:0;border-radius:20px;padding:20px;min-width:0;box-shadow:none}
.ui-lot02 :is(.aa-post-review,.aa-post-link,.aa-post-planned) :is(p,small,span){color:var(--mp-secondary);font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}
.ui-lot02 details>summary{min-height:44px;cursor:pointer;overflow-wrap:anywhere}
.ui-lot02 .aa-activity-visual{background:var(--mp-card);border:0;border-radius:20px;padding:16px;margin:0;display:block}
.ui-lot02 .aa-activity-visual .aav-charts{margin:12px 0}
.ui-lot02 .aa-activity-visual :is(.aav-note,.aav-method,.aav-hint,.aav-alert){font-size:.875rem;line-height:1.5;color:var(--mp-secondary);margin:0}
.ui-lot02 .aa-activity-visual .aav-chart{background:var(--mp-card);padding:12px 0;border:0;border-radius:0}
.ui-lot02 .aa-activity-visual .aav-power{--aav-color:#89dcca}
.ui-lot02 .aa-activity-visual .aav-chart figcaption{font-size:1rem;font-weight:600}
.ui-lot02 .aa-activity-visual .aav-chart figcaption strong{font-size:.875rem}
.ui-lot02 .aa-activity-visual .aav-chart svg{height:132px}
.ui-lot02 .aa-activity-visual :is(.aav-inspector,.aav-reading){background:var(--mp-elevated);color:var(--mp-text);border-color:var(--mp-border)}
.ui-lot02 .aa-activity-visual :is(button,select,input){min-height:44px;font-size:1rem;max-width:100%}
.ui-lot02 .aa-activity-visual [aria-pressed=true]{background:var(--mp-accent);color:var(--mp-base)}
.ui-lot02 .aa-activity-visual button{color:var(--mp-text);background:var(--mp-elevated)}
.ui-lot02 [data-performance-root] h1{font-size:1.3125rem;line-height:1.35}
.ui-lot02 [data-performance-root]{display:flex;flex-direction:column;gap:16px;margin:24px 0}
.ui-lot02 [data-performance-root] :is(p,summary,small){line-height:1.5;overflow-wrap:anywhere}
.ui-lot02 [data-performance-root] [role=group]{display:flex;flex-wrap:wrap;gap:8px}
.ui-lot02 [data-performance-root] [aria-pressed=true]{background:var(--mp-accent);color:var(--mp-base)}
.ui-lot02 [data-performance-coverage]{background:var(--mp-elevated);color:var(--mp-watch);padding:16px;border-radius:12px}
.ui-lot02 [data-performance-root] a{display:inline-flex;align-items:center;min-height:44px}
.lot-subjective{color:var(--mp-text);font:400 1rem/1.4 'MP Lot Inter',Inter,system-ui,sans-serif;min-width:0;box-sizing:border-box}
.ui-lot02 .lot-subjective{background:none;border:0;padding:0;margin:0;box-shadow:none;display:flex;flex-direction:column;gap:24px}
.lot-subjective :is(p,legend,label,button,summary,textarea,select,input){font:inherit;line-height:1.4}
.lot-subjective p{margin:0;color:var(--mp-secondary)}
.lot-subjective fieldset{min-width:0;border:0;padding:0;margin:0 0 24px}
.lot-subjective legend{font-weight:600;color:var(--mp-text);margin:0 0 8px;padding:0;font-size:1rem}
.lot-subjective .aa-checkin-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.lot-subjective [data-choice-field=sleepQuality] .aa-checkin-options,.lot-subjective [data-choice-field=unusualPain] .aa-checkin-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.lot-subjective .aa-checkin-options label{position:relative;min-width:0;display:block;margin:0;cursor:pointer}
.lot-subjective .aa-checkin-options input{position:absolute;width:1px;height:1px;min-height:0;opacity:0;inset:0;pointer-events:none}
.lot-subjective .aa-checkin-options label span{display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box;min-height:44px;padding:10px 8px;background:var(--mp-elevated);border:1px solid transparent;border-radius:12px;color:var(--mp-text);font-size:1rem;font-weight:600;overflow-wrap:anywhere}
.lot-subjective .aa-checkin-options input:checked+span{background:var(--mp-accent);color:var(--mp-base);border-color:var(--mp-accent)}
.lot-subjective .aa-checkin-options input:focus-visible+span{outline:3px solid var(--mp-accent);outline-offset:3px}
.lot-subjective :is(button,select,input:not([type=radio]),textarea,summary){min-height:44px;box-sizing:border-box;max-width:100%}
.lot-subjective :is(button,input:not([type=radio]),select,textarea){background:var(--mp-elevated);color:var(--mp-text);border:1px solid var(--mp-border);border-radius:12px;padding:10px 12px}
.lot-subjective textarea{display:block;width:100%;min-height:120px;resize:vertical;margin-top:8px}
.lot-subjective .lot2-clear{color:var(--mp-secondary);background:none;border:0;text-decoration:underline;font-size:.875rem;margin-top:4px}
.lot-subjective [hidden]{display:none!important}
.lot-subjective :is(button,textarea,summary,select,input):focus-visible{outline:3px solid var(--mp-accent);outline-offset:3px}
.lot-subjective .lot2-rpe-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 8px}
.lot-subjective .lot2-completion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.lot-subjective [data-subjective-choice]{font-weight:600;min-height:44px}
.lot-subjective [data-subjective-choice][aria-pressed=true]{background:var(--mp-accent);color:var(--mp-base)}
.lot-subjective :is(.lot2-date,form>details,.lot2-revision){padding:16px;background:var(--mp-card);border-radius:12px;margin:0 0 16px}
.lot-subjective form>details label{display:block}
.lot-subjective [data-subjective-note]{font-size:.875rem;line-height:1.5;margin:16px 0;color:var(--mp-secondary)}
.lot-subjective [data-subjective-status]{background:var(--mp-card);padding:16px;border-radius:12px;line-height:1.5}
.lot-subjective [role=alert]{padding:16px;color:var(--mp-error);background:var(--mp-card);border:1px solid var(--mp-error);border-radius:12px}
.lot-subjective .lot2-save-action>button{width:100%;min-height:52px;border:0;background:var(--mp-accent);color:var(--mp-base);font-weight:600}
.lot-subjective button:disabled{opacity:.55}
.ui-lot02.aa-checkin-page .lot2-save-action,.ui-lot02 .lot2-feedback-page .lot2-save-action{position:fixed;z-index:25;left:50%;transform:translateX(-50%);bottom:calc(76px + env(safe-area-inset-bottom));width:min(680px,100%);padding:16px 24px;background:var(--mp-base);box-sizing:border-box;border-top:1px solid var(--mp-border)}
.ui-lot02.aa-checkin-page main,.ui-lot02 .lot2-feedback-page{padding-bottom:calc(190px + env(safe-area-inset-bottom))}
html:has(.ui-lot02){scroll-padding-bottom:180px}
.lot-subjective [data-subjective-resume]{margin:12px 0;white-space:normal}
.lot-subjective .lot2-revision :is(p,small){display:block;overflow-wrap:anywhere;margin:8px 0}
.ui-lot02 .lot2-prescribed-actual :is(select,textarea){max-width:100%;width:100%;box-sizing:border-box;font:inherit}
.ui-lot02 .lot2-prescribed-actual :is(small,p){overflow-wrap:anywhere}
@media(max-width:359px){.ui-lot02 .lot2-metrics{gap:16px}.ui-lot02 .lot2-metrics strong{font-size:2rem}.lot-subjective .aa-checkin-options label span{padding:10px 4px;font-size:.9375rem}.ui-lot02 .lot2-save-action{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){.ui-lot02 *{scroll-behavior:auto!important;transition:none!important}}
.ui-lot02 .lot2-prescribed-page{display:flex;flex-direction:column;gap:24px}
.ui-lot02 .lot2-block-summary{background:var(--mp-card);padding:20px;border-radius:20px;margin:20px 0;display:grid;gap:16px}
.ui-lot02 .lot2-block-summary .lot-session-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ui-lot02 .lot2-block-summary strong{display:block;font-size:2rem;color:var(--mp-text)}
.ui-lot02 [data-block-inventory] :is(p,small,label){overflow-wrap:anywhere}
.ui-lot02 [data-block-form]>label{background:var(--mp-card);padding:16px;border-radius:12px;margin:12px 0}
.ui-lot02 [data-block-form] :is(button,select){min-height:44px;font:inherit;width:100%}
/* Fixed form action must keep the viewport as containing block during shell entry. */
.ui-lot02 main.aa-enter{animation:none;transform:none}
.ui-lot02 .lot2-save-action{bottom:calc(76px + env(safe-area-inset-bottom) + var(--aa-keyboard-offset,0px))}
@media(max-width:420px){.ui-lot02.aa-post-page .aa-brand span{display:inline}}
/* Clip horizontal decoration without creating an unscrolled vertical ancestor
   that prevents the existing trace inspector from sticking to the viewport. */
.ui-lot02{overflow-x:clip;overflow-y:visible}
html:has(.ui-lot02),body:has(.ui-lot02){overflow-x:clip;overflow-y:visible}
/* Leave room for the readable inspector and the persistent header when a
   curve is brought into view; the source points and cursor math are unchanged. */
.ui-lot02 .aa-activity-visual [data-aav-inspector-slot]:has(.aav-inspector){top:calc(72px + env(safe-area-inset-top))}
.ui-lot02 .aa-activity-visual .aav-chart svg{scroll-margin-top:calc(80px + 45dvh);scroll-margin-bottom:100px}
.ui-lot02 .aa-activity-visual :is([data-aav-zoom],[data-aav-pan]){scroll-margin-top:calc(80px + 45dvh);scroll-margin-bottom:100px}
.lot-subjective button{min-width:0;white-space:normal;overflow-wrap:anywhere}

/* Geometry follows actual navigation/action height, including enlarged text. */
.ui-lot02 .lot2-save-action{bottom:calc(var(--lot2-nav-height,76px) + var(--aa-keyboard-offset,0px))}
.ui-lot02.aa-checkin-page main,.ui-lot02 .lot2-feedback-page{padding-bottom:calc(var(--lot2-form-space,190px) + var(--aa-keyboard-offset,0px))}
.ui-lot02{padding-bottom:calc(var(--lot2-nav-height,76px) + 16px)}
.ui-lot02 .aa-activity-visual [data-aav-inspector-slot]:has(.aav-inspector){top:calc(var(--lot2-header-height,64px) + 8px)}
.ui-lot02 .aa-activity-visual :is(.aav-chart svg,[data-aav-zoom],[data-aav-pan]){scroll-margin-top:calc(var(--lot2-header-height,64px) + 16px + 45dvh);scroll-margin-bottom:100px}
.ui-lot02.aa-checkin-page .lot2-save-action,.ui-lot02 .lot2-feedback-page .lot2-save-action{bottom:calc(var(--lot2-nav-height,76px) + var(--aa-keyboard-offset,0px))}
