/* Adapted from the user's design.md: Amie reference, applied to a working CMS. */
@font-face{font-family:Inter;src:url('/fonts/Inter-variable.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
:root{
  --color-pure-canvas:#fff;--color-fog-surface:#fafafa;--color-ash-border:#cdcdcd;
  --color-stone-divider:#ebebeb;--color-graphite-body:#5c5c5c;--color-silver-muted:#a0a0a0;
  --color-ink-primary:#000;--color-charcoal-dark:#2e2e2e;--color-sky-action:#11a8ff;
  --color-amber-highlight:#fbefaf;--font-inter:Inter,ui-sans-serif,system-ui,"Segoe UI",sans-serif;
  --shadow-card:0 0 0 1px #0000000f,0 1px 1px -.5px #0000000f,0 3px 3px -1.5px #0000000f;
  --shadow-input:0 0 0 1px #0000000d inset;--radius-card:12px;--radius-input:8px;--radius-button:12px;
  --page-max-width:1200px;--ink:var(--color-ink-primary);--muted:var(--color-graphite-body);--line:var(--color-stone-divider);
  font-family:var(--font-inter);font-size:14px;font-weight:400;color:var(--ink);background:var(--color-pure-canvas);font-synthesis:none;
}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}button,a{touch-action:manipulation}button:disabled{opacity:.4;cursor:not-allowed}svg{display:block}button:focus-visible,a:focus-visible{outline:2px solid var(--color-sky-action);outline-offset:3px}
.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:#fff;border-right:1px solid var(--line);padding:32px 20px 24px;display:flex;flex-direction:column;z-index:5}
.brand{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:700;letter-spacing:-.8px;padding:0 12px}.brand-mark{width:38px;height:38px;background:#000;color:#fff;border-radius:10px;display:grid;place-items:center;font-size:29px;font-weight:700;letter-spacing:-3px;padding-right:4px}.brand-caption{display:block;margin-top:5px;font-size:9px;letter-spacing:1.2px;font-weight:500;color:var(--muted)}
.nav-label{margin:48px 12px 16px;color:var(--color-silver-muted);font-size:10px;letter-spacing:1px;font-weight:500}nav{display:grid;gap:6px}nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:8px;color:var(--muted);font-size:13px;font-weight:500}nav a:hover{background:#fafafa;color:#000}nav a.active{background:#fafafa;color:#000;box-shadow:var(--shadow-input)}nav a.active .icon{color:var(--color-sky-action)}.icon{width:20px;height:20px;flex-shrink:0}
.sidebar-bottom{margin-top:auto;padding:32px 12px 24px}.bot-badge{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:500}.status-dot{width:7px;height:7px;border:1.5px solid #01ca45;border-radius:9999px;background:transparent}.sidebar-bottom p{font-size:12px;color:var(--muted);line-height:1.7}.export-link{font-size:12px;color:var(--muted)}.export-link:hover{text-decoration:underline;text-underline-offset:4px}.profile{display:flex;align-items:center;gap:12px;padding:20px 10px 0;border-top:1px solid var(--line);font-size:12px;font-weight:500}.avatar{width:36px;height:36px;display:grid;place-items:center;background:#ebebeb;border-radius:9999px;font-size:14px}.profile small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:4px}
main{margin-left:240px}.topbar{height:68px;padding:0 40px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);background:#ffffffed}.breadcrumb span{color:#a0a0a0;padding:0 12px}.breadcrumb strong{font-weight:500;color:#000}.top-right{display:flex;align-items:center;gap:20px}.icon-button{width:32px;height:32px;border:1px solid var(--color-ash-border);border-radius:8px;background:#fff;font-size:20px;color:var(--muted)}
#content{padding:40px;max-width:1280px;margin:auto;min-height:calc(100vh - 128px);outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.eyebrow{font-size:10px;letter-spacing:1px;color:var(--muted);font-weight:500}h1{font-size:40px;line-height:1.14;letter-spacing:-.48px;font-weight:600;margin:12px 0}h2{font-size:20px;line-height:1.4;letter-spacing:-.35px;font-weight:600;margin:0;color:#000}h3{font-size:16px;line-height:1.5;font-weight:600;margin:0;color:#000}p{line-height:1.75}.subtitle{font-size:14px;line-height:1.7;color:var(--muted);margin:0}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.button{border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;border-radius:12px;font-size:13px;line-height:1.5;font-weight:600;white-space:nowrap}.primary{background:var(--color-sky-action);color:#fff}.primary:hover{background:#049ef4}.secondary,.ghost{background:#fff;color:var(--muted);box-shadow:0 0 0 1px #cdcdcd inset;font-weight:500}.secondary:hover,.ghost:hover{background:#fafafa;color:#000}.danger{background:#fff;box-shadow:0 0 0 1px #cdcdcd inset;color:#000}.danger:hover{background:#f4f4f4}.small{padding:7px 12px;border-radius:8px;font-size:12px}.link-button{border:0;background:transparent;color:var(--muted);font-size:12px;line-height:1.5;padding:4px;cursor:pointer}.link-button:hover{color:#000;text-decoration:underline;text-underline-offset:4px}
.hero{display:grid;grid-template-columns:1.35fr 1fr;gap:40px;align-items:center;background:#fafafa;border-radius:12px;padding:32px;box-shadow:var(--shadow-card)}.hero-copy h2{font-size:36px;font-weight:600;line-height:1.16;letter-spacing:-.9px;margin:16px 0}.hero-copy p{font-size:13px;line-height:1.75;color:var(--muted);max-width:430px;margin:0 0 20px}mark{background:var(--color-amber-highlight);color:#000;padding:0 2px}.hero-plan{background:#fff;box-shadow:var(--shadow-card);border-radius:12px;padding:20px}.hero-plan-title{display:flex;gap:10px;align-items:center;font-weight:500;font-size:13px;margin-bottom:12px}.hero-plan-title .icon{color:#5c5c5c;width:17px}.hero-plan-title .pill{margin-left:auto}.hero-plan-row{border:0;border-top:1px solid #ebebeb;background:#fff;display:flex;align-items:center;gap:14px;padding:16px 0;text-align:left;width:100%}.hero-plan-row:last-child{padding-bottom:2px}.hero-plan-row:hover .hero-plan-name{color:var(--color-sky-action)}.plan-index{font-size:11px;color:#a0a0a0;flex-shrink:0}.hero-plan-name{font-size:14px;font-weight:500;flex:1}.hero-plan-name small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:5px}
.period-row{display:flex;justify-content:space-between;align-items:center;margin:32px 0 20px;font-size:13px;font-weight:500}.period-row .muted{font-weight:400}.periods{display:flex;gap:4px;padding:3px;background:#fafafa;border-radius:9px;box-shadow:var(--shadow-input)}.periods button{border:0;background:transparent;color:var(--muted);font-size:12px;padding:7px 12px;border-radius:7px}.periods button.active{background:#fff;color:#000;box-shadow:var(--shadow-card)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat{padding:24px;background:#fff;border-radius:12px;box-shadow:var(--shadow-card)}.stat-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);gap:10px}.stat-label .icon{width:17px;height:17px;color:#a0a0a0}.stat-value{font-size:36px;font-weight:550;letter-spacing:-1px;margin:20px 0 8px;color:#000;line-height:1}.stat-value small{font-size:14px;font-weight:400;letter-spacing:0;color:var(--muted);margin-left:5px}.stat-note{font-size:11px;color:var(--muted);line-height:1.5}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px;margin-top:24px}.card{padding:24px;border:0;background:#fff;box-shadow:var(--shadow-card);border-radius:12px;min-width:0}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.card-heading h2{font-size:16px;letter-spacing:-.2px}.card-heading small{font-size:12px;color:var(--muted)}.card-caption{font-size:12px;line-height:1.7;color:var(--muted);margin:16px 0 0}.pill{display:inline-flex;align-items:center;background:#ebebeb;border:0;border-radius:9999px;font-size:11px;line-height:1.4;padding:5px 10px;color:var(--muted);white-space:nowrap}.pill.neutral{background:#f4f4f4}
.empty{min-height:180px;padding:24px 0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left}.empty .icon{width:28px;height:28px;color:#a0a0a0;margin-bottom:16px}.empty strong{font-size:14px;font-weight:500;color:#000}.empty p{font-size:12px;color:var(--muted);margin:8px 0 16px;max-width:340px}.chart{width:100%;height:180px;overflow:visible}.chart text{font-family:var(--font-inter);font-size:10px;fill:#a0a0a0}.chart .grid{stroke:#ebebeb;stroke-width:1}.chart .line{fill:none;stroke:#2e2e2e;stroke-width:2.5;stroke-linejoin:round}.chart .dot{fill:white;stroke:#2e2e2e;stroke-width:2}.chart .area{fill:#fafafa}.chart .bar{fill:#cdcdcd}.chart-select{max-width:55%;font-size:12px!important;padding:7px 40px 7px 10px!important}.recent-list{display:grid}.recent-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid #ebebeb}.recent-item:last-child{border-bottom:0}.recent-left{display:flex;gap:12px;align-items:center}.day-number{width:36px;height:38px;display:grid;place-items:center;background:#fafafa;box-shadow:var(--shadow-input);border-radius:8px;font-weight:500;font-size:16px;flex-shrink:0}.recent-title{font-size:13px;line-height:1.5}.recent-meta{font-size:11px;color:var(--muted);margin-top:4px}.full{grid-column:1/-1}.program-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mini-template{background:#fafafa;border-radius:12px;padding:20px;box-shadow:var(--shadow-input)}.mini-template h3{font-size:20px;font-weight:600;margin:12px 0 8px;letter-spacing:-.3px}.mini-template p{font-size:12px;color:var(--muted);margin:0 0 16px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.search{width:100%;max-width:380px}.toolbar .filter{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted)}input,select,textarea{border:1px solid #cdcdcd;box-shadow:var(--shadow-input);border-radius:8px;padding:11px 12px;background:#fff;color:#000;font-size:13px;max-width:100%;outline:none}input::placeholder,textarea::placeholder{color:#a0a0a0}input:focus,select:focus,textarea:focus{border-color:#11a8ff;box-shadow:0 0 0 2px #11a8ff1a}input[type=checkbox]{width:16px;height:16px;flex-shrink:0;accent-color:#11a8ff;box-shadow:none}select{cursor:pointer}textarea{resize:vertical;min-height:88px;line-height:1.7}
.templates-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card.template-card{padding:0;overflow:hidden;display:flex;flex-direction:column}.template-header{padding:24px;background:#fafafa;min-height:156px}.template-card h2{font-size:26px;font-weight:600;letter-spacing:-.5px;margin:14px 0 8px}.template-card .description{font-size:12px;color:var(--muted);line-height:1.7;margin:0}.template-body{padding:24px;flex:1}.exercise-line{display:flex;gap:8px;align-items:baseline;font-size:12px;line-height:1.7;margin-bottom:16px}.exercise-line .index{color:#a0a0a0;font-size:10px;min-width:16px}.exercise-line .name{flex:1;min-width:0;overflow-wrap:anywhere}.exercise-line .target{color:#5c5c5c;font-size:11px;white-space:nowrap}.cardio-line{border-top:1px solid #ebebeb;padding-top:16px;margin-top:24px;font-size:12px;line-height:1.7;color:var(--muted)}.template-footer{display:flex;justify-content:space-between;gap:8px;padding:0 24px 24px}.template-footer .link-button{font-size:11px}.table-wrap{background:#fff;border:0;box-shadow:var(--shadow-card);border-radius:12px;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{background:#fafafa;padding:16px 20px;color:var(--muted);font-size:11px;font-weight:500;border-bottom:1px solid #ebebeb;text-transform:none}td{padding:20px;border-bottom:1px solid #ebebeb;font-size:13px;line-height:1.7}tr:last-child td{border-bottom:0}td:first-child{max-width:430px;font-weight:500}.table-sub{font-size:12px;font-weight:400;color:var(--muted);margin-top:5px}.table-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}.journal-name{font-weight:500}.muted{color:var(--muted)}.notice{background:#fafafa;box-shadow:var(--shadow-input);border-radius:8px;padding:16px;font-size:12px;line-height:1.7;margin-bottom:24px}.notice.warning{border-left:3px solid #cdcdcd}.loading{padding:80px 0;color:var(--muted)}footer{padding:22px 40px;border-top:1px solid #ebebeb;display:flex;justify-content:space-between;gap:16px;color:#a0a0a0;font-size:10px;letter-spacing:1px}footer span{letter-spacing:0}
dialog{border:0;background:#fff;color:#000;border-radius:16px;padding:0;width:min(880px,calc(100vw - 32px));max-height:90vh;box-shadow:0 0 0 1px #0000000f,0 20px 80px #00000026}dialog::backdrop{background:#00000040}#editor-form{display:flex;flex-direction:column;max-height:89vh}#editor-content{padding:32px;overflow:auto}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:28px}.dialog-heading h2{font-size:28px;font-weight:600;letter-spacing:-.5px;margin:8px 0}.dialog-heading p{font-size:12px;color:var(--muted);margin:0}.close-button{background:transparent;border:0;padding:0 4px;font-size:24px;color:#a0a0a0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:500}.field .hint{font-size:12px;line-height:1.5;font-weight:400;color:var(--muted)}.field.wide{grid-column:1/-1}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:28px 0 16px}.section-heading h3{font-size:14px}.section-heading .muted{font-size:11px}.editor-exercise{background:#fafafa;box-shadow:var(--shadow-card);border-radius:12px;padding:20px;margin:16px 0}.exercise-editor-top{display:flex;gap:12px;align-items:center;margin-bottom:20px}.exercise-editor-top select{flex:1;min-width:0}.row-number{font-size:12px;color:#a0a0a0;width:18px;flex-shrink:0}.reorder{display:flex;gap:4px}.reorder button{background:#fff;border:1px solid #cdcdcd;border-radius:6px;width:28px;height:28px;font-size:13px}.plan-inputs{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.notes-toggle{margin-top:16px;width:100%}.notes-toggle textarea{width:100%;min-height:68px}.dialog-actions{display:flex;align-items:center;gap:12px;background:#fff;border-top:1px solid #ebebeb;padding:20px 32px;flex-shrink:0}#form-error{font-size:12px;line-height:1.5;color:#b33b32;margin-right:auto;max-width:60%}.set-row,.set-labels{display:grid;grid-template-columns:24px 1fr 1fr 120px 28px;gap:12px;align-items:center;margin:8px 0}.set-row input[type=number]{width:100%;min-width:0}.set-index,.set-labels{font-size:11px;color:var(--muted)}.set-labels{margin:16px 0 12px}.warmup{display:flex;gap:8px;align-items:center;font-size:11px;font-weight:400;color:var(--muted)}.delete-set{border:0;background:transparent;color:#a0a0a0;font-size:20px}.confirm-body{padding:32px}.confirm-body h2{font-size:22px;margin-top:12px}.confirm-body p{font-size:13px;color:var(--muted)}.confirm-body .actions{justify-content:flex-end;margin-top:24px}#confirm{max-width:460px}#toast{position:fixed;bottom:24px;left:calc(50% + 100px);transform:translateX(-50%) translateY(100px);background:#2e2e2e;color:#fff;padding:16px 24px;border-radius:12px;box-shadow:var(--shadow-card);font-size:13px;max-width:90vw;z-index:100;transition:transform .2s}#toast.visible{transform:translateX(-50%) translateY(0)}#toast.error{background:#2e2e2e}.weight-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:24px}
@media(min-width:1550px){.hero-copy h2{font-size:44px;letter-spacing:-1.1px}.hero{padding:40px}.templates-grid{gap:24px}}
@media(max-width:1200px){.sidebar{width:208px;padding-left:16px;padding-right:16px}main{margin-left:208px}#content{padding:32px 28px}.topbar{padding:0 28px}.hero{gap:24px;padding:28px}.hero-copy h2{font-size:32px}.hero-plan{padding:16px}.templates-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:20px}.stat-label{font-size:11px}.stat-label .icon{display:none}.page-heading .button{padding:12px 16px}.dashboard-grid{grid-template-columns:1fr 1fr}.program-strip{gap:12px}.mini-template{padding:16px}}
@media(max-width:900px){.sidebar{width:184px;padding-left:12px;padding-right:12px}.brand{font-size:21px;padding-left:6px;gap:10px}.brand-caption{font-size:8px}nav a{font-size:12px;padding:12px 10px;gap:10px}.nav-label{font-size:9px;letter-spacing:.5px}.sidebar-bottom{padding-left:10px;padding-right:0}.profile{padding-left:4px}.profile small{font-size:9px}main{margin-left:184px}#content{padding:28px 24px}h1{font-size:32px}.subtitle{font-size:13px}.hero{grid-template-columns:1fr}.hero-plan{display:none}.hero-copy h2{font-size:36px}.stats{grid-template-columns:1fr 1fr}.stat-label .icon{display:block}.dashboard-grid{grid-template-columns:1fr}.program-strip{grid-template-columns:repeat(3,1fr)}.templates-grid{grid-template-columns:1fr}.template-header{min-height:0}.template-card h2{font-size:24px}.weight-layout{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-heading .actions{justify-content:flex-end}.page-heading .button{font-size:12px;white-space:normal;text-align:center;max-width:180px}}
@media(max-width:680px){.sidebar{position:sticky;top:0;width:auto;height:auto;flex-direction:row;align-items:center;gap:12px;padding:12px 16px;border-right:0;border-bottom:1px solid #ebebeb;backdrop-filter:blur(16px);background:#ffffffed}.brand{font-size:19px;padding:0;gap:8px}.brand-mark{width:30px;height:32px;font-size:24px;border-radius:8px}.brand-caption,.nav-label,.sidebar-bottom,.profile{display:none}nav{display:flex;gap:2px;margin-left:auto}nav a{padding:9px}nav a span{display:none}main{margin-left:0}.topbar{height:56px;padding:0 20px}.top-right #today{display:none}#content{padding:24px 20px}h1{font-size:30px}.eyebrow{font-size:9px}.page-heading{gap:12px;margin-bottom:24px}.page-heading .button{font-size:11px;padding:10px 12px;max-width:140px}.hero{padding:24px}.hero-copy h2{font-size:32px}.hero-copy p{font-size:13px}.stats{gap:12px}.stat{padding:18px}.stat-value{font-size:32px}.stat-label{font-size:12px}.stat-note{font-size:10px}.period-row{gap:8px;font-size:12px}.period-row .muted{display:none}.periods button{padding:7px 9px;font-size:11px}.card{padding:20px}.program-strip{grid-template-columns:1fr}.mini-template{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.mini-template .eyebrow{display:none}.mini-template h3{margin:0;font-size:18px}.mini-template p{flex:1;margin:0;font-size:12px}.mini-template .button{font-size:11px}.toolbar{align-items:stretch;flex-direction:column}.toolbar .search{max-width:none}.toolbar .filter{justify-content:flex-end}.toolbar>.muted{font-size:12px}.table-actions{flex-wrap:wrap}.table-wrap td{font-size:12px;padding:16px}.table-wrap th{padding:16px}.table-sub{font-size:11px}.card-heading{gap:8px}.card-heading h2{font-size:14px}.chart-select{font-size:11px!important}.card-caption{font-size:11px}.template-body{padding:20px}.template-footer{padding:0 20px 20px}.exercise-line{font-size:13px}.form-grid{grid-template-columns:1fr;gap:16px}.field.wide{grid-column:auto}#editor-content{padding:24px 16px}.dialog-heading h2{font-size:24px}.editor-exercise{padding:16px}.exercise-editor-top{gap:6px}.exercise-editor-top select{font-size:12px}.reorder button{width:24px;height:27px}.reorder{gap:2px}.plan-inputs{gap:8px}.plan-inputs .field{font-size:11px}.plan-inputs input{width:100%}.set-row,.set-labels{grid-template-columns:18px 1fr 1fr 85px 20px;gap:6px}.set-row input{padding:9px 7px}.warmup{font-size:10px;gap:4px}.set-labels{font-size:10px}.dialog-actions{padding:16px;gap:8px}.dialog-actions .button{font-size:12px;padding:10px 14px}#form-error{font-size:11px;max-width:50%}.section-heading .muted{font-size:10px}#toast{left:50%}footer{padding:20px;font-size:10px}footer span{display:none}}
@media(max-width:390px){.brand{font-size:17px}.brand-mark{display:none}.sidebar{padding:12px}nav a{padding:8px}#content{padding:20px 16px}h1{font-size:26px}.hero-copy h2{font-size:28px}.stat{padding:16px}.stat-label{font-size:11px}.button{font-size:12px}.page-heading .button{max-width:115px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
#quick-exercise{max-width:620px}#quick-error{color:#b33b32;font-size:12px}.section-heading{flex-wrap:wrap}.section-heading .link-button{margin-left:auto}

/* Keep long labels clear of the arrow in all single-choice dropdowns. */
select:not([multiple]){-webkit-appearance:none;appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23545454' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px;text-overflow:ellipsis}
@media(forced-colors:active){select:not([multiple]){-webkit-appearance:auto;appearance:auto;background-image:none}}

/* Release version stays visible in both desktop and compact footers. */
footer{justify-content:flex-start;align-items:center}
footer .app-version{margin-left:auto;font-size:10px;letter-spacing:0;font-weight:400;white-space:nowrap}
/* Responsive additions reuse the established component palette and typography. */
.web-more>summary:focus-visible,.chart-data>summary:focus-visible{outline:2px solid var(--color-sky-action);outline-offset:3px}
.web-mobile-navigation,.mobile-records{display:none}
.chart-data{margin-top:14px;font-size:12px;color:var(--muted)}
.chart-data summary{cursor:pointer;padding:10px 0;min-height:44px}
.chart-data table{margin-top:8px;color:var(--ink)}
.chart-data caption{text-align:left;padding:8px 0;font-weight:500}
@media(max-width:680px){
  body:not(.mini-app) .sidebar{flex-direction:column;align-items:stretch;gap:8px;padding:12px 16px 8px}
  body:not(.mini-app) .sidebar>.brand{align-self:flex-start}
  body:not(.mini-app) #navigation{display:none}
  body:not(.mini-app) .web-mobile-navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0;width:100%}
  .web-mobile-navigation>a,.web-more>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 2px;border-radius:8px;font-size:12px;font-weight:500;color:var(--muted);cursor:pointer;list-style:none}
  body:not(.mini-app) .web-mobile-navigation a span{display:inline}
  .web-more{position:relative;min-width:0}
  .web-more>summary::-webkit-details-marker{display:none}
  .web-more>summary.active,.web-more[open]>summary{background:var(--color-fog-surface);color:var(--ink);box-shadow:var(--shadow-input)}
  .web-more-links{position:absolute;right:0;top:calc(100% + 8px);width:min(280px,calc(100vw - 32px));max-height:65vh;overflow:auto;padding:8px;border:0;border-radius:var(--radius-card);background:var(--color-pure-canvas);box-shadow:var(--shadow-card)}
  body:not(.mini-app) .web-more-links a{justify-content:flex-start;padding:12px;min-height:44px}
  body:not(.mini-app) .responsive-records{display:none}
  body:not(.mini-app) .mobile-records{display:grid;gap:16px}
  .record-card h2{font-size:20px;overflow-wrap:anywhere}
  .record-card dl{display:grid;gap:10px;margin:20px 0}
  .record-card dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px;font-size:12px;line-height:1.6}
  .record-card dt{color:var(--muted)}
  .record-card dd{margin:0;overflow-wrap:anywhere}
  .record-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:var(--muted)}
  .record-date{font-size:12px;color:var(--muted)}
  .record-card .actions{margin-top:20px}
  .record-card .actions>.button,.record-card .actions>.link-button{min-height:44px}
  body:not(.mini-app) .recent-item{flex-wrap:wrap;align-items:flex-start}
  body:not(.mini-app) .recent-left{min-width:0;flex:1 1 180px}
  body:not(.mini-app) .recent-title{overflow-wrap:anywhere}
  body:not(.mini-app) .exercise-editor-top{display:grid;grid-template-columns:18px minmax(0,1fr)}
  body:not(.mini-app) .exercise-editor-top select{width:100%}
  body:not(.mini-app) .exercise-editor-top .reorder{grid-column:2;justify-self:end}
  body:not(.mini-app) .reorder button{width:44px;height:44px}
  body:not(.mini-app) .set-row,body:not(.mini-app) .set-labels{grid-template-columns:18px minmax(0,1fr) minmax(0,1fr) 44px;gap:6px}
  body:not(.mini-app) .set-labels>span:nth-child(n+4){display:none}
  body:not(.mini-app) .set-row .warmup{grid-column:2/4;min-height:36px}
  body:not(.mini-app) .set-row .delete-set{grid-column:4;grid-row:1;min-height:44px}
  body:not(.mini-app) .set-row input[type=number]{min-height:44px}
  body:not(.mini-app) #editor .dialog-actions{flex-wrap:wrap;justify-content:flex-end}
  body:not(.mini-app) #editor #form-error:not(:empty){flex:0 0 100%;max-width:none;margin-right:0;overflow-wrap:anywhere}
}

/* Web workout presentation is independent of the Telegram Mini App stylesheet. */
body:not(.mini-app) .progress-text{white-space:pre-wrap;font-size:13px;line-height:1.8}
body:not(.mini-app) .live-page{width:100%;max-width:960px;margin:0;color:var(--ink);min-width:0}
body:not(.mini-app) .live-page h1{overflow-wrap:anywhere}
body:not(.mini-app) .live-start-caption{font-size:14px;line-height:1.7;color:var(--muted);margin:16px 0 24px}
body:not(.mini-app) .live-start-list{display:grid}
body:not(.mini-app) .live-start-option,body:not(.mini-app) .workout-exercise-option,body:not(.mini-app) .workout-preview-row{display:grid;grid-template-columns:32px minmax(0,1fr) 24px;align-items:center;gap:14px;width:100%;min-height:72px;padding:16px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--color-pure-canvas);color:var(--ink);text-align:left}
body:not(.mini-app) .live-start-option.live-free{grid-template-columns:minmax(0,1fr) 24px;min-height:56px;color:var(--muted);font-size:12px}
body:not(.mini-app) .live-start-option>span,body:not(.mini-app) .workout-exercise-option>span,body:not(.mini-app) .workout-preview-row>div{min-width:0;overflow-wrap:anywhere}
body:not(.mini-app) .live-start-option>span:last-child,body:not(.mini-app) .workout-exercise-option>span:last-child{justify-self:end;color:var(--muted)}
body:not(.mini-app) .live-start-option strong,body:not(.mini-app) .workout-exercise-option strong,body:not(.mini-app) .workout-preview-row strong{font-size:14px;font-weight:500;line-height:1.5}
body:not(.mini-app) .live-start-option small,body:not(.mini-app) .workout-exercise-option small,body:not(.mini-app) .workout-preview-row small{display:block;font-size:11px;font-weight:400;line-height:1.7;color:var(--muted);margin-top:5px}
body:not(.mini-app) .live-plan-number,body:not(.mini-app) .workout-status,body:not(.mini-app) .workout-preview-row>span{font-size:11px;font-weight:400;color:var(--color-silver-muted);font-variant-numeric:tabular-nums}
body:not(.mini-app) .workout-exercise-option.is-completed .workout-status{color:var(--muted)}
body:not(.mini-app) .live-start-option:hover strong,body:not(.mini-app) .workout-exercise-option:hover strong{color:var(--color-sky-action)}
body:not(.mini-app) .live-start-arrow{display:grid;place-items:center}
body:not(.mini-app) .live-page .app-button-icon{width:24px;height:24px}
body:not(.mini-app) .workout-exercise-list{display:grid;margin:0 0 24px}
body:not(.mini-app) .workout-preview-row{grid-template-columns:32px minmax(0,1fr)}
body:not(.mini-app) .live-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px 16px;margin-bottom:24px;color:var(--muted);font-size:12px;line-height:1.5}
body:not(.mini-app) .live-header>span{min-width:0;overflow-wrap:anywhere}
body:not(.mini-app) .live-header>a{display:grid;place-items:center;min-width:44px;min-height:44px;font-size:20px}
body:not(.mini-app) .live-text-button{display:inline-flex;align-items:center;justify-content:flex-start;min-height:44px;max-width:100%;border:0;background:transparent;padding:8px 4px;color:var(--muted);font-size:12px;line-height:1.5;font-weight:400;text-align:left;white-space:normal;overflow-wrap:anywhere}
body:not(.mini-app) .live-text-button:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
body:not(.mini-app) .workout-position{margin:0 0 8px;font-size:12px;color:var(--muted)}
body:not(.mini-app) .live-target{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px;margin:16px 0 24px;color:var(--muted);font-size:13px;line-height:1.7}
body:not(.mini-app) .live-set-progress{color:var(--ink);font-size:20px;line-height:1.4;letter-spacing:-.35px;font-weight:600;font-variant-numeric:tabular-nums}
body:not(.mini-app) #live-set-form{width:100%;max-width:520px}
body:not(.mini-app) .live-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body:not(.mini-app) .live-inputs .field{min-width:0}
body:not(.mini-app) .live-inputs input{width:100%;min-width:0;min-height:44px}
body:not(.mini-app) .live-warmup{display:flex;align-items:center;gap:8px;min-height:44px;width:fit-content;margin:12px 0;font-size:12px;color:var(--muted)}
body:not(.mini-app) .live-page .button{height:auto;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
body:not(.mini-app) .live-page .live-save{width:100%;max-width:520px}
body:not(.mini-app) .live-add-set{display:flex;width:100%;justify-content:center;margin-top:8px;text-align:center}
body:not(.mini-app) .live-fill-previous{margin-top:8px}
body:not(.mini-app) .live-fill-help{margin:0 0 12px}
body:not(.mini-app) .live-edit-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-top:8px}
body:not(.mini-app) .live-recorded{display:flex;flex-wrap:wrap;gap:8px;max-width:520px;margin:20px 0 0}
body:not(.mini-app) .live-recorded button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;max-width:100%;border:0;border-radius:8px;background:var(--color-pure-canvas);color:var(--muted);box-shadow:0 0 0 1px var(--color-ash-border) inset;padding:7px 12px;font-size:12px;line-height:1.5;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body:not(.mini-app) .live-recorded button:hover{background:var(--color-fog-surface);color:var(--ink)}
body:not(.mini-app) .live-recorded button span{font-size:10px;font-weight:400;color:var(--muted)}
body:not(.mini-app) .live-next{max-width:520px;margin-top:12px}
body:not(.mini-app) .live-details{margin-top:24px;border-top:1px solid var(--line);padding-top:8px;font-size:13px;line-height:1.7;color:var(--muted)}
body:not(.mini-app) .live-details summary,body:not(.mini-app) .live-add summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
body:not(.mini-app) .live-details summary:focus-visible,body:not(.mini-app) .live-add summary:focus-visible{outline:2px solid var(--color-sky-action);outline-offset:3px}
body:not(.mini-app) .live-details h2{font-size:14px;margin:24px 0 8px;overflow-wrap:anywhere}
body:not(.mini-app) .live-details p{white-space:pre-wrap;overflow-wrap:anywhere}
body:not(.mini-app) .live-detail-sets{list-style:none;padding:0;margin:8px 0;font-variant-numeric:tabular-nums}
body:not(.mini-app) .live-detail-sets li{padding:4px 0;overflow-wrap:anywhere}
body:not(.mini-app) .live-extra-actions{display:flex;flex-wrap:wrap;gap:8px 16px;margin:12px 0}
body:not(.mini-app) .live-help{font-size:12px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}
body:not(.mini-app) .live-add{font-size:13px;color:var(--muted)}
body:not(.mini-app) .live-add form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;width:100%;max-width:520px;margin:12px 0 24px}
body:not(.mini-app) .live-add .field{flex:1 1 240px;min-width:0}
body:not(.mini-app) .live-add input,body:not(.mini-app) .live-add select{width:100%;min-width:0;min-height:44px}
body:not(.mini-app) .live-completed{padding:20px 0;margin:0 0 8px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
body:not(.mini-app) .live-completed strong{color:var(--ink);font-size:14px;font-weight:500}
body:not(.mini-app) .live-completed p{margin:8px 0}
body:not(.mini-app) .live-completed a{display:inline-flex;align-items:center;min-height:44px;font-size:12px}
body:not(.mini-app) .live-completed a:hover{text-decoration:underline;text-underline-offset:4px}
body:not(.mini-app) .live-page .notice{overflow-wrap:anywhere}
body:not(.mini-app) .live-page .notice .live-text-button{display:flex;margin-top:8px}
body:not(.mini-app) .live-preview-label{width:100%;max-width:960px;margin:0 0 16px;font-size:12px;line-height:1.7;color:var(--muted)}
@media(max-width:680px){
  body:not(.mini-app) .live-header{gap:8px 12px;margin-bottom:20px}
  body:not(.mini-app) .live-focus .live-header{grid-template-columns:minmax(0,1fr) auto}
  body:not(.mini-app) .live-focus .live-header>span{grid-column:1/-1;grid-row:2}
  body:not(.mini-app) .live-focus .live-header>.live-text-button:first-child{grid-column:1;grid-row:1;justify-self:start}
  body:not(.mini-app) .live-focus .live-header>.live-text-button:last-child{grid-column:2;grid-row:1;justify-self:end}
  body:not(.mini-app) .live-start-caption{font-size:13px}
  body:not(.mini-app) .live-start-option,body:not(.mini-app) .workout-exercise-option,body:not(.mini-app) .workout-preview-row{gap:12px;grid-template-columns:24px minmax(0,1fr) 24px}
  body:not(.mini-app) .live-start-option.live-free{grid-template-columns:minmax(0,1fr) 24px}
  body:not(.mini-app) .workout-preview-row{grid-template-columns:24px minmax(0,1fr)}
  body:not(.mini-app) .live-inputs{gap:12px}
  body:not(.mini-app) .live-add .field,body:not(.mini-app) .live-add form>.button{flex-basis:100%;width:100%}
}
