:root {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #29303b;
  background: #f3f3f4;
  font-synthesis: none;
  --canvas: #f3f3f4;
  --paper: #fff;
  --ink: #272e39;
  --muted: #70747c;
  --line: #e0e2e5;
  --green: #2e3541;
  --dark: #232832;
  --lime: #b1c5e8;
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button, a, summary, input, select, textarea { touch-action: manipulation; }
button { transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #687a99; outline-offset: 4px;
}
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 24px; padding: 14px 20px; border-radius: 8px; background: var(--dark); color: #fff; z-index: 200; font-size: 14px; }
.skip-link:focus { top: 16px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 222px; padding: 33px 20px 0; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 30; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; width: max-content; margin-left: 13px; color: #2e3643; }
.brand svg { height: 32px; width: 28px; stroke: none; }
.brand > span { font-family: 'Manrope', sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -1.8px; }
.brand-dot { color: #8492aa; }
.workspace-label { font-size: 10px; font-weight: 550; line-height: 1.7; letter-spacing: 1.4px; color: #7d828b; margin: 40px 13px 17px; }
.nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item { display: flex; gap: 12px; align-items: center; border: 0; padding: 14px 15px; border-radius: 9px; background: transparent; text-align: left; color: #71757c; font-size: 13px; font-weight: 500; min-height: 48px; }
.nav-item svg { width: 19px; height: 19px; stroke-width: 1.7; }
.nav-item:hover { background: #f2f3f4; color: #383e48; }
.nav-item.active { background: #e9ebed; color: #3b4352; font-weight: 650; box-shadow: inset 3px 0 #6e7d97; }
.nav-badge { margin-left: auto; font-size: 9px; padding: 3px 6px; border-radius: 4px; background: #eaebed; color: #636b79; letter-spacing: .5px; }
.sidebar-bottom { margin-top: auto; padding-top: 45px; }
.growth-card { position: relative; border: 1px solid #d0ddf2; border-radius: 13px; background: linear-gradient(140deg, #eceef0, #f8f9fa); padding: 19px 17px; margin-bottom: 24px; overflow: hidden; }
.growth-card:after { content: ''; position: absolute; right: -28px; top: 20px; width: 100px; height: 100px; border: 1px solid #cfdbf1; border-radius: 50%; pointer-events: none; }
.growth-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #cbd9f0; color: #5a6880; font-size: 22px; margin-bottom: 17px; }
.growth-card strong { font-size: 13px; font-weight: 650; }
.growth-card p { font-size: 11px; color: #717781; line-height: 1.8; margin: 8px 0 23px; }
.growth-card > span { font-size: 8px; color: #6f7989; letter-spacing: 1px; }
.settings-button { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: #747981; font-size: 12px; min-height: 42px; margin: 0 0 10px 8px; padding: 5px; }
.settings-button svg { width: 18px; height: 18px; }
.profile { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 20px 0 23px; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #e8e9ec; color: #646c7b; font-size: 13px; font-weight: 600; border: 1px solid #d3def2; }
.avatar.small { width: 34px; height: 34px; font-size: 12px; }
.profile strong { display: block; font-size: 11px; font-weight: 600; }
.profile span { display: block; margin-top: 4px; font-size: 10px; color: #7b808a; }
.profile .profile-dot { width: 6px; height: 6px; border-radius: 50%; background: #8392ad; margin: 0 0 0 auto; }
.workspace { min-width: 0; margin-left: 222px; flex: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 82px; padding: 0 37px; border-bottom: 1px solid var(--line); background: #f7f8f9d9; }
.breadcrumb { display: flex; gap: 14px; align-items: center; font-size: 11px; color: #868a91; }
.breadcrumb span { color: #bcbfc5; }
.breadcrumb strong { color: #606670; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.local-indicator { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #747a85; }
.local-indicator i, .coach-title i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #7d8ca6; }
.icon-button { display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 7px; width: 35px; height: 35px; background: transparent; color: #707885; }
.icon-button:hover { background: #eaecee; border-color: #cedbf1; }
.icon-button svg { width: 18px; height: 18px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; max-width: 1530px; padding: 35px 36px; margin: 0 auto; align-items: start; }
#main-content { min-width: 0; outline: none; }
.eyebrow, .page-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 1.9px; color: #767d88; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0 28px; }
.page-header .eyebrow { margin: 0; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; }
h1 { font-size: 33px; line-height: 1.3; letter-spacing: -1.35px; font-weight: 650; margin: 11px 0 8px; }
.page-subtitle { font-size: 12px; line-height: 1.8; color: #777c84; margin: 0; }
.date-label { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #767c86; white-space: nowrap; border: 1px solid #dbdee2; border-radius: 8px; padding: 10px 12px; background: #f7f8f9; }
.date-label svg { width: 14px; height: 14px; }
.workout-hero { position: relative; isolation: isolate; overflow: hidden; background: #262c36; color: #f0f1f3; border-radius: 18px; padding: 31px 33px; min-height: 304px; box-shadow: 0 9px 20px #23293308; }
.workout-hero:before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 93% 55%, #63728d55, transparent 65%); z-index: -1; }
.workout-hero:after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .12; background-image: radial-gradient(#bdceec 0.6px, transparent 0.6px); background-size: 5px 5px; mask-image: linear-gradient(100deg, transparent 25%, black); }
.hero-content { position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 9px; color: #a4bce5; font-weight: 500; letter-spacing: 1.6px; }
.hero-badge:before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #93afdf; box-shadow: 0 0 0 4px #93afdf12; }
.hero-badge > i { display: none; }
.workout-hero h2 { position: relative; font-size: 42px; font-weight: 500; line-height: 1.15; letter-spacing: -1.7px; margin: 22px 0 13px; max-width: 340px; }
.workout-hero p { font-size: 11px; line-height: 1.8; color: #babec4; max-width: 290px; margin: 0 0 17px; }
.hero-meta, .hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: #b9bdc5; margin: 0 0 24px; font-size: 9px; }
.chip { display: flex; align-items: center; gap: 5px; }
.chip svg { width: 13px; height: 13px; }
.hero-actions { display: flex; gap: 20px; align-items: center; }
.button, .primary-button, .btn-primary { display: inline-flex; justify-content: center; align-items: center; gap: 17px; padding: 12px 17px; min-height: 42px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.button svg { width: 16px; height: 16px; }
.primary-button, .button-primary, .btn-primary { background: #b0c5e8; color: #333a45; box-shadow: 0 3px 5px #13161c0a; }
.primary-button:hover, .button-primary:hover, .btn-primary:hover { background: #c7d6ef; transform: translateY(-1px); }
.button-dark { background: #3d4552; color: #f0f1f3; }
.button-dark:hover { background: #2c333f; }
.button-secondary, .secondary-button { background: transparent; color: #c3c7cf; padding: 8px 0; border: 0; min-height: 40px; font-weight: 500; }
.button-secondary:hover, .secondary-button:hover { color: #eeeff1; }
.button:disabled { transform: none; opacity: .5; box-shadow: none; }
.btn-secondary { border: 1px solid #c4d3ee; border-radius: 8px; background: #fff; padding: 11px 15px; color: #5d6677; font-size: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 35px; padding: 5px 0; border: 0; background: transparent; font-size: 11px; color: #677182; }
.text-button:hover { color: #3d4451; }
.hero-art { position: absolute; width: 310px; height: 310px; top: 32px; right: -14px; z-index: 0; transform: rotate(-27deg); pointer-events: none; }
.hero-art:before, .hero-art:after, .hero-art > div { content: ''; position: absolute; inset: 22px; border: 33px solid #74839c; border-radius: 50%; transform: rotateX(49deg); box-shadow: inset 3px 2px 6px #99b3e177, inset -2px -3px 6px #4b536299, 7px 15px 15px #13161b80; }
.hero-art:after { inset: 76px; border-width: 26px; border-color: #799cd8; transform: translateY(32px) rotateX(49deg); box-shadow: inset 3px 2px 5px #b1c5e895, inset -2px -2px 5px #69758a90, 6px 13px 13px #13161c85; }
.hero-art > div { inset: 123px; border-width: 19px; border-color: #a7bee6; transform: translateY(58px) rotateX(49deg); box-shadow: inset 1px 2px 6px #d5e0f3aa, 6px 10px 15px #13161c80; }
.stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 20px 0 28px; }
.stat-card { min-width: 0; padding: 19px 19px 18px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 7px #343a4502; }
.stat-top { display: flex; align-items: center; gap: 9px; }
.stat-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: #eff0f1; color: #7e899c; flex-shrink: 0; }
.stat-icon svg { width: 15px; height: 15px; }
.stat-label { font-size: 10px; color: #747a84; font-weight: 500; line-height: 1.4; }
.stat-value { display: block; font-family: 'Manrope',sans-serif; font-size: 29px; font-weight: 600; letter-spacing: -1px; line-height: 1.3; margin: 15px 0 7px; }
.stat-value small { font-family: 'DM Sans',sans-serif; color: #7c838e; font-size: 10px; font-weight: 400; letter-spacing: 0; }
.stat-detail { margin: 0; font-size: 9px; color: #808691; line-height: 1.6; }
.mini-progress { display: flex; gap: 4px; margin-top: 13px; }
.mini-progress i { height: 4px; border-radius: 5px; flex: 1; background: #e9ebed; }
.mini-progress i.filled { background: #7398d6; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 25px 0 17px; }
.section-heading h2 { font-size: 17px; font-weight: 650; letter-spacing: -.4px; line-height: 1.4; margin: 0; }
.section-heading p { font-size: 11px; color: #7c828d; line-height: 1.7; margin: 4px 0 0; }
.section-heading select { background: #fff; border: 1px solid #cbd9f0; border-radius: 8px; padding: 10px 12px; min-height: 39px; color: #636b79; font-size: 11px; max-width: 160px; }
.count-badge { font-family: 'DM Sans',sans-serif; display: inline-block; vertical-align: middle; background: #e9ebed; color: #768091; font-size: 8px; font-weight: 500; border-radius: 5px; padding: 4px 7px; letter-spacing: 0; margin-left: 6px; white-space: nowrap; }
.week-plan { margin: 28px 0 31px; }
.week-plan .section-heading { margin-top: 0; margin-bottom: 14px; }
.week-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; }
.week-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 13px 2px 12px; border: 1px solid #dfe1e5; border-radius: 10px; background: #f7f8f9; color: #92969c; min-height: 107px; }
.week-day.is-training { background: #fff; color: #636c7b; }
.week-day.is-training:hover { border-color: #8eabde; background: #eff0f1; transform: translateY(-2px); }
.week-day.is-today { background: #e5e7ea; border-color: #88a7dd; box-shadow: 0 2px 8px #74839c10; }
.week-day-name { font-size: 9px; font-weight: 500; }
.week-date { font-family: 'Manrope',sans-serif; font-size: 19px; font-weight: 550; line-height: 1.1; color: #606877; letter-spacing: -.5px; }
.week-day.is-today .week-date { color: #3c4759; }
.week-day-type { font-size: 8px; line-height: 1.4; }
.week-day-marker { display: grid; place-items: center; min-height: 12px; width: 100%; color: #8891a0; font-size: 7px; line-height: 1; }
.week-day-marker i { display: block; width: 4px; height: 4px; border-radius: 50%; background: #89a8dd; }
.week-day.is-today .week-day-marker { color: #5b6a84; font-size: 7px; font-weight: 600; }
.week-day.is-complete .week-day-marker svg { width: 13px; height: 13px; color: #5b6a83; }
.week-meta { font-size: 10px; color: #7a828f; white-space: nowrap; }
.week-plan .subtle-tag { background: none; padding: 0; font-size: 10px; }
.exercise-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.exercise-item { border-bottom: 1px solid #e9ebed; transition: background .18s; }
.exercise-item:last-child { border-bottom: 0; }
.exercise-item:hover { background: #fbfbfb; }
.exercise-row { display: flex; align-items: center; gap: 12px; padding: 17px 18px 9px; min-height: 82px; }
.exercise-number { color: #959aa3; font-size: 10px; font-variant-numeric: tabular-nums; width: 18px; flex-shrink: 0; }
.exercise-visual { display: grid; place-items: center; width: 46px; height: 46px; background: #eceef0; border: 1px solid #e4e6e9; border-radius: 10px; color: #7a8599; flex-shrink: 0; }
.exercise-visual svg { width: 37px; height: 37px; stroke-width: 1.6; }
.exercise-info { flex: 1; min-width: 0; }
.exercise-info strong, .exercise-info h3 { font-size: 12px; font-weight: 550; color: #3c434e; display: block; line-height: 1.6; margin: 0; }
.exercise-info small { display: block; font-size: 10px; color: #808794; line-height: 1.6; margin-top: 4px; }
.exercise-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.exercise-meta span { font-size: 8px; color: #848a95; line-height: 1.4; }
.exercise-meta span + span:before { content: '·'; margin-right: 5px; color: #b4b7bd; }
.exercise-target { min-width: 49px; text-align: right; flex-shrink: 0; }
.exercise-target strong { display: block; font-size: 12px; font-weight: 550; color: #596272; white-space: nowrap; }
.exercise-target > span { display: block; font-size: 8px; color: #858c99; line-height: 1.6; margin-top: 5px; white-space: nowrap; }
.exercise-weight { min-width: 67px; margin-left: 6px; }
.exercise-weight strong { color: #59657b; }
.exercise-weight strong span { display: inline; font-size: 9px; font-weight: 400; margin-left: 2px; color: #828b9b; }
.exercise-row > button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #ccd9f0; border-radius: 7px; min-width: 37px; min-height: 37px; padding: 8px 10px; margin-left: 3px; background: #f1f2f3; color: #5f6b7f; font-size: 9px; font-weight: 500; white-space: nowrap; }
.exercise-row > button svg { width: 13px; height: 13px; }
.exercise-row > button:hover { background: #d4dff3; border-color: #afc4e8; }
.target-details { margin: 0 18px 12px 106px; }
.target-details summary { display: flex; align-items: center; gap: 5px; color: #6f798a; font-size: 10px; cursor: pointer; list-style: none; width: max-content; padding: 3px 0; min-height: 28px; }
.target-details summary::-webkit-details-marker { display: none; }
.target-details summary:after { content: '+'; color: #969da9; font-size: 12px; }
.target-details[open] summary:after { content: '−'; }
.target-details p { font-size: 10px; line-height: 1.9; background: #f0f1f2; border-radius: 7px; padding: 12px 14px; color: #707a8b; margin: 7px 0 2px; }
.insight-card { display: flex; align-items: flex-start; gap: 13px; border: 1px solid #ccd9f0; border-radius: 12px; background: #e9eaec; padding: 18px 20px; margin-top: 20px; }
.insight-card > svg { width: 20px; height: 20px; color: #798498; margin-top: 1px; }
.insight-card strong { display: block; font-size: 11px; color: #545e6f; font-weight: 600; line-height: 1.6; }
.insight-card p { font-size: 10px; color: #737d8e; line-height: 1.85; margin: 5px 0 0; }
.insight-tag { margin-left: auto; flex-shrink: 0; border: 1px solid #bdceec; border-radius: 5px; font-size: 8px; color: #778296; padding: 6px 8px; }
.coach-panel { position: sticky; top: 25px; align-self: start; border: 1px solid #dbdee2; border-radius: 17px; background: #fff; padding: 21px 19px 15px; box-shadow: 0 7px 15px #2b323d07; }
.coach-title { display: flex; align-items: center; gap: 10px; padding-bottom: 19px; border-bottom: 1px solid #e9ebed; }
.coach-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e5e6e9; color: #657288; }
.coach-mark svg { width: 21px; height: 21px; }
.coach-title h2 { font-size: 13px; font-weight: 650; letter-spacing: -.3px; margin: 0 0 5px; }
.coach-title #coach-mode { display: flex; align-items: center; gap: 6px; color: #7b8391; font-size: 9px; }
.coach-title .coach-more { margin-left: auto; font-size: 20px; color: #757d8a; letter-spacing: 1px; }
.coach-intro { position: relative; overflow: hidden; background: linear-gradient(135deg, #eff0f1, #f5f6f7); border: 1px solid #e6e8eb; border-radius: 12px; padding: 19px 17px; margin: 19px 0 14px; min-height: 154px; }
.coach-intro .eyebrow { font-size: 8px; letter-spacing: 1.2px; color: #7e889a; }
.coach-intro h3 { position: relative; z-index: 1; font-size: 21px; font-weight: 500; line-height: 1.45; letter-spacing: -.6px; margin: 10px 0 8px; max-width: 175px; }
.coach-intro p { position: relative; z-index: 1; font-size: 10px; line-height: 1.8; color: #778090; margin: 0; max-width: 165px; }
.coach-orb { position: absolute; right: -19px; bottom: 8px; height: 108px; width: 108px; display: grid; place-items: center; }
.coach-orb:before, .coach-orb:after { content: ''; position: absolute; width: 99px; height: 99px; border: 1px solid #c5d4ee; border-radius: 50%; }
.coach-orb:after { width: 123px; height: 123px; border-color: #e4e6e9; }
.coach-orb > div { position: relative; width: 75px; height: 75px; border-radius: 50%; background: radial-gradient(circle at 32% 25%,#e4e5e8,#a5bce5 33%,#6990d3 75%,#7b889d); box-shadow: 0 10px 20px #81a2da44, inset -4px -3px 8px #75809230; }
.coach-orb > div:before { content: '✧'; position: absolute; top: 5px; left: 21px; color: #e5e7ea; font-size: 48px; transform: rotate(15deg); }
.coach-context { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 17px; }
.coach-context > span { font-size: 9px; border: 1px solid #d4dff2; border-radius: 20px; padding: 5px 8px; color: #7c8595; background: #fafafb; }
.chat-messages { display: flex; flex-direction: column; gap: 9px; max-height: 250px; overflow-y: auto; scrollbar-width: thin; padding: 2px 1px 8px; }
.chat-bubble { border-radius: 10px; font-size: 11px; line-height: 1.85; padding: 13px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bubble.assistant { background: #f1f2f4; border: 1px solid #e9eaec; color: #6e7786; }
.chat-bubble.user { background: #d6e1f3; color: #4f5a6d; margin-left: 18px; }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0 20px; }
.quick-prompts button { display: flex; justify-content: space-between; align-items: center; gap: 9px; border: 1px solid #cedbf1; border-radius: 7px; background: white; padding: 8px 10px; min-height: 34px; font-size: 9px; color: #727d8f; }
.quick-prompts button:last-child { flex: 1; }
.quick-prompts button:hover { background: #edeef0; border-color: #a7bee6; }
.quick-prompts span { font-size: 12px; color: #8994a6; }
.coach-form { border: 1px solid #c5d4ee; border-radius: 11px; padding: 13px 13px 10px; background: #fbfbfb; }
.coach-form:focus-within { border-color: #7c9ed9; box-shadow: 0 0 0 3px #bacceb33; }
.coach-form textarea { width: 100%; min-height: 54px; display: block; background: transparent; resize: vertical; border: 0; outline: none; color: #545f73; font-size: 11px; line-height: 1.8; }
.coach-form textarea:focus-visible { outline: none; }
.coach-form textarea::placeholder { color: #9297a0; }
.composer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; }
.composer-bottom > span { font-size: 7px; color: #979da6; letter-spacing: .8px; }
.composer-bottom button { display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 7px; background: #b4c7e9; color: #5c6a81; font-size: 20px; }
.composer-bottom button:hover { background: #9ab4e2; }
.demo-note { font-size: 8px; color: #9298a1; text-align: center; margin: 12px 0 0; line-height: 1.7; }
.app-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1530px; margin: auto; padding: 1px 37px 30px; font-size: 9px; color: #858d9a; }
.app-footer > span:first-child { font-size: 8px; letter-spacing: 1.5px; }
.app-footer i { font-style: normal; color: #79869c; margin-left: 7px; }
.session-summary { display: flex; align-items: center; gap: 16px; background: #e7e8eb; border: 1px solid #c6d5ef; border-radius: 12px; padding: 18px; margin-bottom: 21px; color: #737d8e; font-size: 11px; }
.session-summary strong { color: #4a566b; font-size: 12px; }
.session-progress { height: 6px; border-radius: 6px; overflow: hidden; flex: 1; background: #c9d7ef; }
.session-progress > i { display: block; height: 100%; border-radius: 6px; background: #8191ac; transition: width .3s; }
.logger-card, .goal-card, .chart-card, .history-card, .coach-main-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 18px; }
.logger-heading { display: flex; align-items: center; gap: 12px; }
.logger-heading h2 { font-size: 15px; line-height: 1.5; font-weight: 600; margin: 0; }
.logger-heading p { font-size: 10px; color: #7c8493; margin: 4px 0 0; line-height: 1.6; }
.logger-target { margin-left: auto; color: #707b8f; font-size: 10px; line-height: 1.7; text-align: right; max-width: 140px; }
.logger-target span { font-size: 9px; }
.recommendation-note { background: #f0f1f2; color: #737d8e; font-size: 10px; line-height: 1.9; border-radius: 8px; padding: 12px 14px; margin: 18px 0; }
.set-labels, .set-row { display: grid; grid-template-columns: 26px 1fr 1fr 1fr 76px; gap: 11px; align-items: center; }
.set-labels { margin: 0 0 10px; font-size: 8px; font-weight: 500; letter-spacing: .6px; color: #7f8897; }
.set-row { margin: 10px 0; }
.set-number { font-size: 12px; color: #858e9d; }
.set-row label { display: block; min-width: 0; }
.field-label { display: none; }
.set-row input { width: 100%; min-width: 0; padding: 11px 10px; min-height: 43px; border: 1px solid #ccd9f0; border-radius: 8px; background: #fafafa; color: #465164; font-size: 13px; font-variant-numeric: tabular-nums; }
.set-row .button { min-height: 43px; gap: 4px; font-size: 9px; padding: 10px 7px; background: #d7e1f3; color: #5c697f; }
.set-row .button:hover { background: #bcceec; }
.set-row.saved input { background: #f0f1f3; border-color: #e6e7ea; color: #848d9c; }
.set-row .saved-button { background: #eaecee; color: #7f899a; }
.set-row .saved-button svg { width: 12px; height: 12px; }
.effort-help { margin: 17px 0 0; font-size: 9px; line-height: 1.9; color: #858c98; }
.workout-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 25px 0; }
.workout-bottom p { margin: 0; max-width: 270px; font-size: 11px; line-height: 1.9; color: #7c8493; }
.goal-card .section-heading { margin: 0 0 20px; }
.goal-form { display: block; }
.form-field { display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: #616b7d; margin: 22px 0; }
.form-field select { padding: 13px 12px; border: 1px solid #cad7ef; border-radius: 8px; width: 100%; background: #fafafa; color: #4e596c; font-size: 12px; min-height: 45px; }
.form-field small { color: #858c99; font-size: 10px; line-height: 1.8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .form-field { margin: 5px 0 18px; }
.goal-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e9ebed; padding-top: 20px; margin-top: 12px; }
.goal-actions p { font-size: 10px; line-height: 1.8; max-width: 225px; color: #868d9a; margin: 0; }
.chart-card .section-heading { margin: 0; }
.subtle-tag { display: inline-block; padding: 7px 10px; background: #eceef0; color: #7d889a; border-radius: 6px; font-size: 9px; white-space: nowrap; }
.volume-chart svg { width: 100%; height: auto; margin-top: 28px; stroke: none; }
.history-card { padding: 10px 15px; overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.history-table th { padding: 14px 9px; text-align: left; font-weight: 500; color: #868e9b; font-size: 9px; }
.history-table td { padding: 15px 9px; border-top: 1px solid #e9eaec; color: #667083; white-space: nowrap; }
.history-table .icon-button { width: 30px; height: 30px; }
.history-table .icon-button svg { width: 15px; height: 15px; }
.empty-state { padding: 45px 25px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 18px 0; }
.empty-state > svg { color: #678fd3; width: 34px; height: 34px; }
.empty-state h3 { font-size: 20px; font-weight: 500; letter-spacing: -.5px; margin: 18px 0 10px; }
.empty-state p { color: #808897; font-size: 12px; line-height: 1.9; max-width: 330px; margin: 0 auto 23px; }
.coach-explainer { padding: 28px; border: 1px solid #c9d7ef; border-radius: 14px; background: #e8e9eb; margin: 22px 0; }
.coach-label { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: 1.3px; color: #7c8799; }
.coach-explainer h2 { font-size: 26px; font-weight: 500; letter-spacing: -.7px; line-height: 1.5; }
.coach-explainer > p { font-size: 12px; color: #747f91; line-height: 1.9; }
.prompt-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 23px; }
.prompt-chips button { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #bfcfec; border-radius: 8px; background: #f7f7f8; padding: 13px; min-height: 44px; font-size: 11px; text-align: left; color: #6b778c; }
.prompt-chips button:hover { background: #fff; border-color: #85a5dc; }
.prompt-chips svg { width: 13px; height: 13px; }
.coach-main-card .chat-messages { max-height: 380px; gap: 12px; }
.coach-main-card .chat-bubble { font-size: 12px; }
.coach-main-form { display: flex; gap: 10px; border-top: 1px solid #e9ebed; padding-top: 17px; margin-top: 15px; }
.coach-main-form input { flex: 1; min-width: 0; padding: 13px; min-height: 46px; border: 1px solid #cad7ef; border-radius: 8px; background: #fbfbfb; color: #5c677b; font-size: 12px; }
#toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%,20px); background: #353c47; border: 1px solid #48505d; color: #e8e9eb; box-shadow: 0 8px 35px #22273033; padding: 13px 22px; border-radius: 10px; font-size: 12px; line-height: 1.6; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .2s, transform .2s; max-width: min(440px,90vw); }
#toast.show { opacity: 1; transform: translate(-50%,0); }
.loading-screen { padding: 100px 0; text-align: center; color: #737e90; font-size: 13px; }
html { scroll-behavior: smooth; }
@media (min-width: 1550px) {
  .content-grid { padding: 43px 46px; gap: 35px; grid-template-columns: minmax(0,1fr) 325px; }
  .topbar { padding: 0 46px; }
  h1 { font-size: 38px; }
  .workout-hero { padding: 35px 39px; min-height: 330px; }
  .workout-hero h2 { font-size: 48px; }
  .hero-art { right: 7px; top: 30px; width: 350px; height: 350px; }
  .exercise-row { min-height: 88px; padding: 18px 22px 9px; }
  .target-details { margin-left: 110px; }
}
@media (max-width: 1300px) {
  .sidebar { width: 204px; padding-left: 17px; padding-right: 17px; }
  .workspace { margin-left: 204px; }
  .content-grid { grid-template-columns: minmax(0,1fr) 285px; padding: 31px 27px; gap: 23px; }
  .topbar { padding: 0 28px; }
  h1 { font-size: 30px; }
  .date-label { display: none; }
  .hero-art { right: -85px; opacity: .8; }
  .stat-card { padding: 16px 14px; }
  .stat-icon { width: 25px; height: 25px; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 27px; }
  .stat-value small { font-size: 9px; }
  .exercise-row { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .exercise-number { display: none; }
  .exercise-visual { width: 39px; height: 39px; }
  .exercise-visual svg { width: 32px; height: 32px; }
  .exercise-weight { min-width: 56px; margin-left: 0; }
  .exercise-target strong { font-size: 11px; }
  .exercise-row > button { font-size: 8px; padding: 7px; gap: 3px; }
  .exercise-info strong { font-size: 11px; }
  .target-details { margin-left: 63px; }
  .insight-tag { display: none; }
  .coach-panel { padding-left: 17px; padding-right: 17px; }
  .coach-intro { padding: 18px 13px; }
  .coach-orb { right: -30px; opacity: .85; }
}
@media (max-width: 1140px) {
  .content-grid { grid-template-columns: minmax(0,1fr); max-width: 850px; padding: 32px; }
  .coach-panel { position: static; display: grid; grid-template-columns: 1fr 1.2fr; column-gap: 24px; padding: 24px; }
  .coach-title { grid-column: 1/-1; margin-bottom: 18px; }
  .coach-intro { grid-column: 1; grid-row: 2/5; margin: 0; min-height: 200px; }
  .coach-intro h3 { font-size: 24px; max-width: 200px; }
  .coach-intro p { font-size: 12px; }
  .coach-orb { right: -10px; bottom: 15px; opacity: .7; }
  .coach-context { grid-column: 2; }
  #chat-messages { grid-column: 2; max-height: 190px; }
  .quick-prompts { grid-column: 2; margin-bottom: 12px; }
  .coach-form { grid-column: 2; }
  .demo-note { grid-column: 1/-1; text-align: right; margin-top: 15px; }
  .date-label { display: inline-flex; }
  .hero-art { right: -5px; opacity: 1; }
  .workout-hero { min-height: 310px; }
  .exercise-number { display: block; }
  .exercise-visual { width: 46px; height: 46px; }
  .exercise-info strong { font-size: 13px; }
  .exercise-target strong { font-size: 13px; }
  .exercise-row > button { font-size: 10px; padding: 9px 11px; gap: 7px; }
  .exercise-row { gap: 12px; padding: 17px 18px 9px; }
  .target-details { margin-left: 106px; }
  .stat-label { font-size: 11px; }
  .stat-icon { width: 29px; height: 29px; }
  .stat-value { font-size: 30px; }
  .stat-detail { font-size: 10px; }
  h1 { font-size: 34px; }
}
@media (max-width: 820px) {
  .sidebar { width: 182px; padding-left: 12px; padding-right: 12px; }
  .workspace { margin-left: 182px; }
  .brand { gap: 8px; margin-left: 10px; }
  .brand > span { font-size: 30px; }
  .brand svg { width: 25px; }
  .workspace-label { font-size: 8px; margin-left: 11px; }
  .nav-item { font-size: 12px; gap: 10px; padding-left: 12px; padding-right: 12px; }
  .content-grid { padding: 25px 22px; }
  .topbar { padding: 0 23px; }
  .local-indicator { font-size: 9px; }
  .topbar-right { gap: 12px; }
  .breadcrumb { gap: 8px; font-size: 10px; }
  h1 { font-size: 30px; }
  .date-label { display: none; }
  .workout-hero { padding: 29px 26px; }
  .workout-hero h2 { font-size: 39px; }
  .hero-art { right: -110px; opacity: .75; }
  .stat-grid { gap: 9px; }
  .stat-card { padding: 15px 12px; }
  .stat-top { gap: 7px; }
  .stat-icon { width: 23px; height: 23px; }
  .stat-icon svg { width: 13px; height: 13px; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 26px; }
  .stat-value small, .stat-detail { font-size: 8px; }
  .week-grid { gap: 5px; }
  .week-day { min-height: 100px; border-radius: 8px; }
  .week-day-type { font-size: 7px; }
  .exercise-number { display: none; }
  .exercise-visual { width: 38px; height: 38px; border-radius: 9px; }
  .exercise-info strong, .exercise-target strong { font-size: 11px; }
  .exercise-row { gap: 10px; padding: 15px 13px 8px; }
  .exercise-row > button { font-size: 8px; padding: 7px; gap: 4px; }
  .target-details { margin-left: 61px; }
  .coach-panel { display: block; padding: 21px; }
  .coach-intro { min-height: 150px; margin-bottom: 15px; padding: 20px; }
  .coach-intro h3 { font-size: 23px; max-width: 250px; }
  .coach-intro p { max-width: 260px; font-size: 11px; }
  .coach-orb { right: 15px; opacity: 1; bottom: 16px; }
  .demo-note { text-align: center; }
  .app-footer { padding-left: 23px; padding-right: 23px; font-size: 8px; }
  .logger-card, .goal-card { padding: 20px; }
  .set-labels, .set-row { gap: 8px; grid-template-columns: 18px 1fr 1fr 1fr 64px; }
  .set-labels { font-size: 6px; }
  .logger-target { font-size: 9px; }
}
@media (max-width: 650px) {
  .sidebar { position: fixed; inset: auto 0 0; height: calc(72px + env(safe-area-inset-bottom)); width: auto; padding: 0 7px env(safe-area-inset-bottom); background: #fff; border: 0; border-top: 1px solid var(--line); overflow: visible; box-shadow: 0 -5px 20px #2f364305; }
  .brand, .workspace-label, .sidebar-bottom { display: none; }
  .nav { display: flex; flex-direction: row; align-items: center; justify-content: space-around; gap: 0; height: 100%; }
  .nav-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 10px; min-width: 57px; min-height: 52px; border-radius: 9px; font-size: 9px; line-height: 1.2; }
  .nav-item svg { height: 19px; width: 19px; }
  .nav-item.active { box-shadow: none; background: #eaebed; }
  .nav-badge { display: none; }
  .workspace { margin: 0 0 calc(72px + env(safe-area-inset-bottom)); }
  .topbar { height: 66px; padding: 0 20px; gap: 10px; }
  .breadcrumb { font-size: 10px; gap: 8px; }
  .breadcrumb > span { display: none; }
  .breadcrumb > strong { border-left: 1px solid #cad7ef; padding-left: 9px; }
  .topbar-right { gap: 8px; }
  .local-indicator { display: none; }
  .avatar.small { width: 30px; height: 30px; font-size: 10px; }
  .icon-button { height: 32px; width: 32px; }
  .content-grid { display: grid; grid-template-columns: minmax(0,1fr); padding: 27px 18px; gap: 24px; }
  .page-header { margin: 0 0 24px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.6px; }
  h1 { font-size: 30px; letter-spacing: -1.2px; margin-top: 10px; }
  .page-subtitle { font-size: 11px; line-height: 1.9; max-width: 280px; }
  .workout-hero { padding: 28px 23px; border-radius: 15px; min-height: 323px; }
  .hero-badge { font-size: 8px; }
  .workout-hero h2 { font-size: 37px; letter-spacing: -1.5px; max-width: 250px; margin-top: 24px; }
  .workout-hero p { font-size: 10px; max-width: 225px; }
  .hero-meta { font-size: 8px; gap: 10px; margin-bottom: 21px; }
  .hero-meta .chip:last-child { display: none; }
  .hero-art { right: -130px; top: 75px; width: 295px; height: 295px; opacity: .62; }
  .hero-actions { gap: 20px; }
  .hero-actions .primary-button { font-size: 11px; min-height: 44px; padding-left: 14px; padding-right: 14px; }
  .hero-actions .secondary-button { font-size: 10px; }
  .stat-grid { gap: 8px; margin: 15px 0 26px; }
  .stat-card { padding: 13px 10px 14px; border-radius: 10px; }
  .stat-top { display: block; }
  .stat-icon { height: 25px; width: 25px; margin-bottom: 9px; border-radius: 7px; }
  .stat-label { font-size: 9px; min-height: 26px; }
  .stat-value { font-size: 25px; margin: 7px 0 7px; }
  .stat-value small { display: block; font-size: 8px; margin-top: 3px; }
  .stat-detail { font-size: 8px; line-height: 1.7; }
  .mini-progress { margin-top: 10px; }
  .section-heading h2 { font-size: 16px; }
  .section-heading p { font-size: 10px; }
  .section-heading { gap: 12px; margin: 23px 0 14px; }
  .section-heading select { max-width: 124px; font-size: 10px; min-height: 40px; padding: 9px; }
  .count-badge { display: none; }
  .week-plan { margin: 26px 0; }
  .week-plan .subtle-tag { font-size: 9px; }
  .week-grid { gap: 5px; }
  .week-day { min-height: 100px; padding: 11px 2px; border-radius: 8px; gap: 8px; }
  .week-day-name { font-size: 9px; }
  .week-date { font-size: 17px; }
  .week-day-type { font-size: 8px; max-width: 40px; min-height: 21px; white-space: normal; line-height: 1.3; }
  .exercise-list { border-radius: 12px; }
  .exercise-row { display: grid; grid-template-columns: 39px minmax(0,1fr) auto; gap: 7px 10px; padding: 16px 13px 5px; }
  .exercise-number { display: none; }
  .exercise-visual { grid-row: 1/3; width: 39px; height: 43px; }
  .exercise-info { grid-column: 2; grid-row: 1; align-self: end; }
  .exercise-info strong { font-size: 12px; line-height: 1.5; }
  .exercise-info small { font-size: 9px; }
  .exercise-meta { margin-top: 3px; }
  .exercise-meta span { font-size: 8px; }
  .exercise-row > .exercise-target { grid-column: 2; grid-row: 2; display: flex; align-items: baseline; gap: 5px; text-align: left; min-width: 0; }
  .exercise-row > .exercise-target strong { font-size: 11px; }
  .exercise-row > .exercise-target > span { display: none; }
  .exercise-row > .exercise-weight { grid-column: 2; grid-row: 2; margin-left: 62px; }
  .exercise-weight strong { font-size: 11px; }
  .exercise-weight strong span { font-size: 8px; }
  .exercise-row > button { grid-column: 3; grid-row: 1/3; font-size: 9px; min-height: 42px; min-width: 60px; padding: 8px; margin-left: 0; gap: 5px; }
  .exercise-row > button svg { width: 11px; height: 11px; }
  .target-details { margin: 3px 13px 12px 62px; }
  .target-details summary { min-height: 36px; font-size: 10px; }
  .target-details p { margin-left: -49px; font-size: 10px; }
  .insight-card { padding: 16px; gap: 11px; }
  .insight-card strong { font-size: 11px; }
  .insight-card p { font-size: 10px; }
  .coach-panel { padding: 21px 18px 16px; border-radius: 15px; }
  .coach-title h2 { font-size: 14px; }
  .coach-title #coach-mode { font-size: 10px; }
  .coach-intro { padding: 20px 16px; min-height: 165px; }
  .coach-intro h3 { font-size: 22px; max-width: 195px; }
  .coach-intro p { font-size: 11px; max-width: 195px; }
  .coach-orb { right: -12px; bottom: 10px; opacity: .85; }
  .coach-context > span { font-size: 10px; }
  .chat-bubble { font-size: 12px; }
  .quick-prompts button { min-height: 40px; font-size: 10px; }
  .coach-form textarea { font-size: 16px; min-height: 65px; }
  .composer-bottom button { height: 39px; width: 39px; }
  .composer-bottom > span { font-size: 7px; }
  .demo-note { font-size: 9px; }
  .app-footer { padding: 0 20px 24px; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 9px; }
  .logger-card { padding: 19px 15px; border-radius: 12px; }
  .logger-heading { flex-wrap: wrap; gap: 9px; }
  .logger-heading h2 { font-size: 14px; }
  .logger-heading p { font-size: 10px; }
  .logger-target { margin-left: 0; max-width: none; text-align: left; font-size: 10px; padding: 7px 10px; border: 1px solid #d0dcf1; background: #f5f5f6; border-radius: 5px; width: 100%; }
  .recommendation-note { font-size: 10px; padding: 12px; margin-top: 13px; }
  .set-labels { display: none; }
  .set-row { position: relative; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px 9px; padding: 16px 12px 13px; border: 1px solid #d0dcf1; border-radius: 10px; background: #fcfcfd; margin: 12px 0; }
  .set-number { grid-column: 1/-1; font-size: 10px; font-weight: 600; padding-bottom: 1px; }
  .set-number:before { content: 'SET '; font-size: 9px; letter-spacing: 1px; }
  .field-label { display: block; font-size: 10px; color: #7a8496; margin: 0 0 7px; }
  .set-row input { font-size: 16px; min-height: 46px; padding: 10px 8px; background: #fff; border-radius: 7px; }
  .set-row .button { grid-column: 1/-1; min-height: 43px; font-size: 11px; gap: 6px; border-radius: 7px; margin-top: 3px; }
  .set-row.saved { background: #f2f3f5; border-color: #cfdbf1; }
  .set-row .saved-button { background: #e5e7ea; }
  .set-row .saved-button svg { width: 15px; height: 15px; }
  .effort-help { font-size: 10px; }
  .session-summary { padding: 16px; flex-wrap: wrap; gap: 10px; font-size: 10px; }
  .session-summary > span:last-child { font-size: 9px; }
  .session-progress { min-width: 60px; }
  .workout-bottom { flex-direction: column; align-items: stretch; gap: 15px; }
  .workout-bottom p { max-width: none; font-size: 11px; }
  .workout-bottom .button { font-size: 12px; min-height: 46px; }
  .goal-card { padding: 21px 17px; }
  .form-grid { gap: 13px; }
  .form-field { font-size: 11px; }
  .form-field select { font-size: 16px; padding: 12px 9px; }
  .form-field small { font-size: 10px; }
  .goal-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .goal-actions p { font-size: 10px; max-width: none; }
  .goal-actions .button { min-height: 45px; font-size: 12px; }
  .chart-card { padding: 19px 16px; }
  .chart-card .section-heading h2 { font-size: 14px; }
  .chart-card .section-heading p { font-size: 9px; }
  .subtle-tag { font-size: 8px; padding: 6px 8px; }
  .volume-chart svg { margin-top: 15px; }
  .history-card { padding: 7px 9px; }
  .history-table { font-size: 10px; }
  .history-table th { font-size: 9px; }
  .history-table td, .history-table th { padding: 13px 8px; }
  .coach-explainer { padding: 24px 19px; }
  .coach-explainer h2 { font-size: 24px; }
  .coach-explainer > p { font-size: 12px; }
  .prompt-chips { grid-template-columns: 1fr; }
  .prompt-chips button { min-height: 46px; }
  .coach-main-card { padding: 19px 15px; }
  .coach-main-form input { font-size: 16px; }
  .coach-main-form .button { padding: 12px; min-width: 45px; }
  #toast { bottom: 88px; padding: 12px 18px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}

/* Personal weekly split and mixed workout measurements. */
.program-banner { display: flex; align-items: center; gap: 12px; padding: 16px 18px; margin: 0 0 20px; border: 1px solid #c1d1ed; border-radius: 12px; background: #e9eaec; color: #5e687b; font-size: 11px; line-height: 1.8; }
.program-banner svg { width: 20px; height: 20px; color: #78849a; }
.program-banner strong { display: block; font-size: 12px; color: #495364; font-weight: 600; }
.program-banner p { margin: 3px 0 0; font-size: 10px; color: #737d8e; }
.program-pill, .session-kind, .unit-pending { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 5px; border: 1px solid #c7d6ef; background: #eff0f2; font-size: 8px; color: #7d8798; white-space: nowrap; }
.unit-pending { border-color: #e8e1c7; background: #faf7eb; color: #9e915f; }
.program-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 10px; color: #7d8697; margin: 14px 0; }
.program-notes, .measurement-note { font-size: 10px; line-height: 1.85; padding: 12px 14px; background: #f2f3f5; border: 1px solid #e4e6e9; border-radius: 8px; color: #737d8e; margin: 12px 0; }
.program-notes p, .measurement-note p { margin: 3px 0; }
.program-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 17px 0; }
.program-editor { border: 1px solid #cad8f0; border-radius: 12px; margin: 19px 0; background: #fff; overflow: hidden; }
.program-editor > summary { cursor: pointer; color: #616c80; font-size: 12px; padding: 17px 19px; min-height: 50px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.program-editor > summary::-webkit-details-marker { display: none; }
.program-editor > summary:after { content: '+'; font-size: 20px; color: #78849a; }
.program-editor[open] > summary { border-bottom: 1px solid #e4e5e8; }
.program-editor[open] > summary:after { content: '−'; }
.program-target-form, .program-editor-form { padding: 7px 20px 20px; }
.program-target-form > p, .program-editor-form > p { font-size: 10px; line-height: 1.9; color: #7f8897; }
.target-editor-exercise { padding: 18px 0; border-bottom: 1px solid #eaebed; }
.target-editor-exercise:last-of-type { border-bottom: 0; }
.target-editor-exercise h3 { font-size: 12px; line-height: 1.6; font-weight: 600; margin: 0 0 12px; }
.target-editor-row { display: flex; align-items: flex-end; gap: 9px; margin: 10px 0; }
.target-editor-row > span { min-width: 33px; align-self: center; font-size: 10px; color: #848c99; }
.target-editor-row label { flex: 1; min-width: 0; font-size: 10px; color: #7b8595; }
.target-editor-row .field-label { display: block; font-size: 9px; margin: 0 0 6px; }
.target-editor-row input { width: 100%; min-width: 0; border: 1px solid #ccd9f0; background: #fbfbfb; color: #566379; border-radius: 7px; padding: 10px; min-height: 40px; font-size: 12px; }
.target-editor-row input::placeholder { color: #a9adb4; }
.alternative-select, .exercise-choice { max-width: 100%; border: 1px solid #c6d5ee; border-radius: 7px; padding: 9px 11px; font-size: 11px; color: #637087; background: #f6f6f7; min-height: 40px; }
.logger-heading .alternative-select, .logger-heading .exercise-choice { margin: 9px 0 3px; }
.run-summary { padding: 16px; background: #f0f1f2; border: 1px solid #d4dff3; border-radius: 8px; font-size: 12px; color: #767f90; line-height: 1.9; margin: 15px 0; }
.run-summary strong { color: #606a7d; }
.rest-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 33px; border-radius: 16px; background: #e5e7ea; border: 1px solid #c3d2ed; min-height: 270px; }
.rest-card h2 { font-size: 30px; font-weight: 500; letter-spacing: -.8px; line-height: 1.4; margin: 17px 0 12px; color: #495467; }
.rest-card p { font-size: 12px; line-height: 1.9; max-width: 380px; color: #737e90; margin: 0 0 20px; }
.rest-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #bfd0ed; color: #7f8ba0; font-size: 24px; }
.set-row[data-mode="run"] { grid-template-columns: 26px 1fr 1fr 76px; }
.set-row[data-mode="duration"] { grid-template-columns: 26px 1fr 1fr 76px; }
.set-row[data-mode="distance"] { grid-template-columns: 26px 1fr 1fr 1fr 76px; }
.mixed-set-row { display: grid; grid-template-columns: 26px repeat(var(--fields,3),minmax(0,1fr)) 76px; gap: 11px; align-items: end; margin: 12px 0; }
.mixed-set-row .field-label { display: block; font-size: 9px; color: #858d9b; margin-bottom: 7px; }
.mixed-set-row label { min-width: 0; }
.mixed-set-row input { min-width: 0; width: 100%; min-height: 43px; border: 1px solid #cad8f0; border-radius: 8px; background: #fafafa; color: #5e6a7f; font-size: 13px; padding: 11px 10px; }
.mixed-set-row .button { min-height: 43px; padding: 10px 7px; font-size: 9px; gap: 4px; background: #d7e1f3; color: #5c697f; }
.mixed-set-row.saved input { background: #f0f1f3; border-color: #e6e7ea; color: #848d9c; }
.exercise-target .target-line { display: block; font-size: 10px; line-height: 1.8; }
.exercise-item .source-note { font-size: 9px; color: #878f9d; margin: 0 18px 12px 106px; line-height: 1.8; }
.program-settings { margin: 22px 0; padding: 20px; background: #f5f5f6; border: 1px solid #d3def2; border-radius: 11px; }
.program-settings h3 { font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.program-settings p { font-size: 10px; line-height: 1.8; color: #818996; }
.week-day.is-selected { box-shadow: inset 0 0 0 1px #7787a2; border-color: #86a6dc; }
.week-day[disabled] { opacity: 1; }
@media(max-width:820px) {
  .target-editor-row { gap: 7px; }
  .exercise-item .source-note { margin-left: 61px; }
  .mixed-set-row { grid-template-columns: 18px repeat(var(--fields,3),minmax(0,1fr)) 64px; gap: 8px; }
  .mixed-set-row .button { font-size: 8px; }
}
@media(max-width:650px) {
  .program-banner { padding: 15px; align-items: flex-start; font-size: 11px; }
  .program-banner p { font-size: 10px; }
  .program-pill, .session-kind, .unit-pending { white-space: normal; line-height: 1.6; }
  .program-editor > summary { font-size: 12px; padding: 16px; }
  .program-target-form, .program-editor-form { padding: 4px 15px 16px; }
  .target-editor-exercise { padding: 17px 0; }
  .target-editor-exercise h3 { font-size: 12px; }
  .target-editor-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 12px; border: 1px solid #e3e5e8; border-radius: 8px; margin: 10px 0; }
  .target-editor-row > span { grid-column: 1/-1; }
  .target-editor-row input { min-height: 44px; font-size: 16px; padding: 10px 8px; }
  .target-editor-row .field-label { font-size: 10px; }
  .program-target-form > .button, .program-editor-form > .button { width: 100%; min-height: 44px; }
  .alternative-select, .exercise-choice { font-size: 16px; padding: 11px 9px; width: 100%; min-height: 45px; }
  .logger-heading .alternative-select, .logger-heading .exercise-choice { flex-basis: 100%; }
  .set-row[data-mode="run"], .set-row[data-mode="duration"], .set-row[data-mode="distance"], .mixed-set-row { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 16px 12px 13px; gap: 10px 9px; border: 1px solid #d0dcf1; border-radius: 10px; background: #fcfcfd; margin: 12px 0; }
  .mixed-set-row .set-number { grid-column: 1/-1; }
  .mixed-set-row .button { grid-column: 1/-1; min-height: 43px; font-size: 11px; margin-top: 3px; }
  .mixed-set-row .field-label { font-size: 10px; }
  .mixed-set-row input { font-size: 16px; min-height: 46px; padding: 10px 8px; }
  .set-row[data-mode="run"] label, .set-row[data-mode="duration"] label { grid-column: span 1; }
  .rest-card { padding: 27px 23px; min-height: 270px; }
  .rest-card h2 { font-size: 27px; }
  .rest-card p { font-size: 11px; }
  .program-settings { padding: 17px 13px; }
  .exercise-item .source-note { margin-left: 62px; font-size: 9px; }
}
.personal-target-list { border: 1px solid #cfdbf1; border-radius: 8px; overflow: hidden; margin: 9px 0; background: #fafafa; }
.personal-target-list > div { display: grid; grid-template-columns: 37px 1fr auto; gap: 10px; align-items: center; font-size: 10px; color: #7f8898; border-bottom: 1px solid #e5e6e9; padding: 10px 12px; }
.personal-target-list > div:last-child { border-bottom: 0; }
.personal-target-list strong { font-size: 10px; font-weight: 500; color: #5d697f; }
.target-explanation p { line-height: 1.9; }
.movement-choice-label { display: flex; flex-direction: column; gap: 8px; font-size: 10px; color: #757f91; margin: 17px 0; }
.movement-choice-label select { width: 100%; }
.history-basis { display: block; font-size: 8px; color: #9298a3; margin-top: 4px; }
.target-editor-exercise > .measurement-note { font-size: 10px; line-height: 1.9; }
.set-row.mixed-set-row { grid-template-columns: 26px repeat(var(--fields,3),minmax(0,1fr)) 76px; align-items: end; }
.set-row.mixed-set-row .set-number { align-self: center; }
@media(max-width:820px) { .set-row.mixed-set-row { grid-template-columns: 18px repeat(var(--fields,3),minmax(0,1fr)) 64px; } }
@media(max-width:650px) {
 .set-row.mixed-set-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .set-row.mixed-set-row .set-number { grid-column: 1/-1; }
 .personal-target-list { margin-left: -49px; }
 .personal-target-list > div { gap: 7px; padding: 10px; font-size: 9px; grid-template-columns: 32px minmax(0,1fr) auto; }
 .personal-target-list strong { font-size: 9px; }
 .target-editor-row label { min-width: 0; }
 .movement-choice-label { font-size: 11px; }
}
