@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  --paper: #faf9f6;
  --surface: #fff;
  --ink: #20242b;
  --muted: #525c68;
  --line: #dcdedc;
  --soft: #f0f1ef;
  --control-line: #818995;
  --accent: #2d4586;
  --accent-soft: #eaf0fb;
  --success: #25624e;
  --danger: #a22f2e;
  --nav-width: 208px;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  font-weight: 420;
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; text-wrap: pretty; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.35rem, 4.5vw, 3.8rem); font-weight: 540; letter-spacing: -.035em; }
h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 580; letter-spacing: -.027em; }
h3 { font-size: 1.06rem; font-weight: 620; }
p, li { line-height: 1.55; }
small, .muted, .heading p, .section-head p, .row-text small, .form-panel > p, .form-panel > div > p { color: var(--muted); }
small { font-size: .875rem; line-height: 1.45; }
strong { font-weight: 640; }
svg { flex: 0 0 auto; vertical-align: middle; }
a { color: var(--accent); text-underline-offset: 3px; }
.skip { position: fixed; inset: -90px auto auto 12px; z-index: 20; padding: 12px; background: var(--surface); }
.skip:focus { top: 12px; }
.shell { min-height: 100dvh; }
.area { margin-left: var(--nav-width); }
.sidebar { position: fixed; z-index: 4; inset: 0 auto 0 0; width: var(--nav-width); display: flex; flex-direction: column; padding: 32px 16px 24px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; border: 0; padding: 0; background: transparent; }
.brand-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: white; }
.brand strong { font-size: 1.65rem; font-weight: 680; letter-spacing: -.065em; line-height: 1; }
.brand strong span { color: var(--accent); }
.sidebar .brand { margin: 0 12px 40px; }
.nav-group { display: grid; gap: 5px; }
.secondary-nav { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.nav-link, .mobile-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); text-align: left; font-weight: 500; }
.nav-link.is-current { background: var(--accent-soft); color: var(--accent); font-weight: 640; }
.side-foot { margin-top: auto; padding: 18px 10px 0; display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.topbar { min-height: 69px; display: flex; align-items: center; justify-content: space-between; padding: 8px clamp(24px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.desktop-crumb, .topbar-end { display: flex; align-items: center; gap: 12px; }
.desktop-crumb { font-size: .9rem; color: var(--muted); }
.desktop-crumb strong { color: var(--ink); font-weight: 540; }
.icon-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; }
.mobile-brand, .mobile-nav, .mobile-more { display: none; }
.content { width: min(100%, 1176px); margin-inline: auto; padding: 36px clamp(24px, 4vw, 56px) 60px; }
.content[data-page="settings"], .content[data-page="activity"], .content[data-page="import"], .content[data-page="export"] { max-width: 960px; }
.heading, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.heading { margin-bottom: 26px; }
.heading p { margin-top: 7px; }
.section-head { margin-bottom: 14px; }
.section-head p, .form-panel > div > p { margin-top: 5px; }
.eyebrow, .session-context { color: var(--muted); font-size: .94rem; font-weight: 490; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 15px; border: 1px solid transparent; border-radius: 10px; text-align: center; text-decoration: none; background: var(--soft); font-size: .94rem; font-weight: 550; line-height: 1.25; }
.button.primary { background: var(--accent); color: white; }
.button.secondary { background: var(--surface); color: var(--ink); border-color: #b8bec6; }
.button.quiet { color: var(--accent); background: transparent; }
.button.selected, .button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.button.wide { width: 100%; }
.button:disabled { cursor: default; }
.button.primary:disabled { color: var(--success); background: #edf4f0; }
.button.danger-text, .danger-text { color: var(--danger); }
.panel { min-width: 0; padding: clamp(18px, 2.3vw, 28px); border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.panel > p, .panel > .actions { margin-top: 8px; }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.stack.compact, .fields.compact { gap: 12px; }
.home-heading { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(155px, 15vw, 214px); margin-bottom: 30px; background: #f0eee8; border-radius: 18px; overflow: hidden; }
.day-title { width: 47%; padding: 24px clamp(20px, 3vw, 38px); }
.day-title h1 { font-size: clamp(2.7rem, 5.2vw, 4.65rem); line-height: 1.03; }
.day-title p { margin-top: 9px; color: #464b52; font-size: 1rem; }
.day-weekday::after { content: ","; }
.day-title .button { padding-inline: 0; }
.day-photo { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 57%; height: 100%; object-fit: cover; object-position: 72% 56%; mask-image: linear-gradient(to right, transparent, black 19%); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, 1fr); gap: clamp(24px, 3vw, 42px); }
.home-grid > .stack { gap: 24px; }
.resume { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; background: var(--accent-soft); border-color: transparent; }
.resume h2 { margin-block: 4px; }
.daily-plan { background: white; }
.daily-plan .section-head { margin: 0 0 5px; }
.daily-plan h2 { color: var(--muted); font-size: .94rem; font-weight: 520; letter-spacing: 0; }
.agenda-row, .line { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 0; border-block-start: 1px solid var(--line); }
.agenda-row { flex-wrap: wrap; }
.agenda-row:first-child, .line:first-child { border-top: 0; }
.agenda-row:last-child, .line:last-child { padding-bottom: 0; }
.row-text, .line > div:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.line strong, .row-text strong, .line small, .row-text small { display: block; }
.line strong, .row-text strong { font-size: 1.03rem; font-weight: 570; }
.line small, .row-text small { margin-top: 3px; }
.daily-plan .row-text strong { font-size: clamp(1.34rem, 2.1vw, 1.75rem); letter-spacing: -.025em; }
.tile-icon, .line > .tile-icon:first-child { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; background: var(--soft); color: var(--muted); }
.daily-plan .tile-icon { display: none; }
.row-actions { display: flex; gap: 4px; align-items: center; }
.activity-picker, .week-panel { padding: 0; border: 0; background: transparent; }
.activity-picker h2, .week-panel h2 { font-size: 1.45rem; }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin-top: 10px; }
.activity-link { display: flex; gap: 11px; align-items: center; width: 100%; padding: 12px 2px; min-height: 55px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-weight: 520; font-size: 1.03rem; text-align: left; }
.activity-link svg { color: var(--muted); }
.activity-link svg:last-child { margin-left: auto; }
.registration-tools, .weekly-review { color: var(--muted); }
.registration-tools .quiet, .weekly-review .quiet { padding-inline: 2px 10px; font-size: .9rem; }
.registration-tools > details { margin: 0; border-top: 0; }
.week-panel .section-head { margin-bottom: 10px; }
.week-panel .section-head p { font-size: .875rem; }
.week-panel .actions { flex-wrap: nowrap; gap: 0; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.week-day { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 68px; padding: 5px 0; border: 0; border-radius: 10px; background: transparent; }
.week-day > span:first-child { color: var(--muted); font-size: .81rem; }
.week-day strong { font-size: 1.17rem; line-height: 1.08; font-variant-numeric: tabular-nums; }
.week-day.is-selected { color: var(--accent); background: var(--accent-soft); }
.week-day.is-selected > span:first-child { color: var(--accent); }
.week-dots { display: flex; align-items: center; gap: 3px; min-height: 5px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: #7d8796; }
.dot.running { background: #926348; }
.dot.jiu_jitsu { background: #756597; }
.dot.rest { background: #b0b1ad; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; padding-block: 12px; }
.stat-grid strong, .stat-grid span { display: block; }
.stat-grid strong { font-size: 2.1rem; line-height: 1.2; font-weight: 530; font-variant-numeric: tabular-nums; }
.stat-grid span, .weekly-review p { color: var(--muted); font-size: .875rem; }
.reference-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.actions, .tags, .targets, .tabs, .set-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.tags:not(:empty) { margin-bottom: 9px; }
.chip { display: inline-flex; align-items: center; width: fit-content; padding: 3px 8px; border-radius: 6px; background: var(--soft); color: var(--muted); font-size: .815rem; font-weight: 520; line-height: 1.45; }
.chip.green, .button.green { background: #edf4f0; color: var(--success); }
.form-panel { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 164px), 1fr)); gap: 14px; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; color: var(--muted); font-size: .9rem; font-weight: 520; }
input, select, textarea, .static-input { min-width: 0; width: 100%; min-height: 46px; border: 1px solid var(--control-line); border-radius: 9px; padding: 9px 11px; background: var(--surface); color: var(--ink); font-size: 1rem; font-weight: 430; }
input[type="checkbox"] { width: 20px; min-height: 20px; accent-color: var(--accent); }
input[type="file"] { padding: 8px; }
select[multiple] { min-height: 96px; }
textarea { resize: vertical; line-height: 1.5; }
.check { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: .95rem; }
.inline-form, .filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.inline-form .field, .filter-form .field { min-width: min(150px, 100%); flex: 1 1 145px; }
.agenda-row .inline-form { width: 100%; }
.filter-form { margin: 8px 0 12px; }
details { border-top: 1px solid var(--line); margin-top: 4px; }
summary { position: relative; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 9px 25px 9px 0; color: var(--muted); list-style: none; font-size: .94rem; font-weight: 510; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 7px; height: 7px; position: absolute; right: 6px; top: calc(50% - 5px); border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
details[open] > summary::after { transform: rotate(225deg); top: calc(50% - 2px); }
details[open] > summary { color: var(--ink); }
summary small { margin-left: auto; font-weight: 430; }
.detail-body { padding: 5px 0 12px; }
.section-fold { margin: 0; padding-block: 8px; }
.section-fold > summary { color: var(--ink); font-size: 1.08rem; font-weight: 560; }
.section-fold[open] { padding-bottom: 18px; }
.section-fold form, .catalog-tools { margin-block: 10px; }
.catalog-tools { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.catalog-tools .field { flex: 1 1 220px; }
.detail-body > .field, .detail-body > .fields, .detail-body > .actions { margin-bottom: 10px; }
.subpanel { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 0 14px; }
.subpanel.inset { padding: 14px; margin: 10px 0; background: var(--surface); }
.subpanel .fields { margin: 10px 0; }
.schedule-edit { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
.schedule-edit strong { padding-top: 9px; }
.schedule-edit select { width: auto; flex: 1 1 120px; }
.savebar { position: sticky; z-index: 2; bottom: 8px; padding: 5px; background: var(--surface); border-radius: 12px; justify-self: end; }
.empty, .hint { background: var(--paper); border-radius: 10px; padding: 16px; }
.empty p { margin: 4px 0 8px; color: var(--muted); }
.empty p:empty { display: none; }
.hint { font-size: .94rem; overflow-wrap: anywhere; }
.session-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.session-top .button { padding-inline: 0 6px; }
.live-status { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: .84rem; }
.live-status i { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.live-status.save-error { color: var(--danger); }
.live-status.save-error i { background: var(--danger); }
.planned-date { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.overview-grid { display: grid; gap: 20px; max-width: 780px; }
.live-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 1.45fr) minmax(270px, 1fr); gap: clamp(24px, 3vw, 44px); }
.workout-focus { gap: 0; }
.workout-focus:focus, .exercise-list:focus { outline: none; }
.workout-focus, .exercise-list { scroll-margin-top: 12px; }
.workout-focus .session-context { margin: 0 0 4px; }
.lift-panel, .series-panel { border: 0; padding: 0; border-radius: 0; background: transparent; }
.lift-panel h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.13; }
.lift-panel .section-head { margin-bottom: 0; }
.lift-panel .exercise-totals { margin-top: 7px; color: var(--muted); font-size: .96rem; }
.series-panel { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 18px; }
.series-heading { justify-content: flex-start; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 13px; }
.series-heading h2 { font-size: 1.45rem; }
.series-heading > span { color: var(--muted); font-size: .9rem; }
.exercise-list .section-head p { font-size: .91rem; }
.exercise-row { display: grid; grid-template-columns: 2ch minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 14px 4px; min-height: 64px; border: 0; border-top: 1px solid var(--line); background: transparent; }
.exercise-number { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .87rem; }
.exercise-row[aria-pressed="true"] { background: var(--accent-soft); }
.exercise-row[aria-pressed="true"] .exercise-number { color: var(--accent); font-weight: 640; }
.exercise-row strong, .exercise-row small { display: block; overflow-wrap: anywhere; }
.exercise-row small { margin-top: 2px; }
.exercise-row .chip { background: transparent; padding: 0; }
.exercise-actions { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; margin-top: 24px; padding: 20px 0 8px; }
.exercise-actions > details { margin-block: 8px; }
.exercise-actions > .button { margin-top: 5px; }
.exercise-actions .set-pills { margin: 4px 0 12px; }
.button.pill, .button.rir-choice { min-height: 44px; padding: 6px 10px; font-size: .88rem; }
.set-pills [aria-pressed="true"], .rir-choice[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--accent); }
.session-tools h2 { margin-bottom: 12px; }
.clock-panel { background: var(--accent-soft); border-radius: 14px; padding: 18px 20px; }
.idle-clock { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; }
.idle-clock .clock-options { grid-column: 1 / -1; }
.clock-label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .96rem; font-weight: 560; }
.clock-owner, .clock-target { color: #4a5870; font-size: .9rem; }
.clock-options { border-color: #ced7e6; }
.clock-options summary { min-height: 44px; padding-block: 7px; font-size: .9rem; }
.clock-options .inline-form { padding: 5px 0; }
.clock-panel .button { min-height: 48px; border-color: #a1aec4; background: transparent; color: #26385e; }
.counting, .stopped-clock { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.counting > p, .stopped-clock > p, .counting .clock-label, .stopped-clock .clock-label { grid-column: 1 / -1; }
.clock-owner { margin-top: 2px; }
.clock-face { grid-column: 1; font-variant-numeric: tabular-nums lining-nums; font-size: clamp(3.5rem, 7vw, 5rem); font-weight: 510; line-height: 1.1; letter-spacing: -.045em; color: #172c53; margin: 6px 0 2px; }
.clock-target { margin-top: 2px; }
.clock-face.long-time { grid-column: 1 / -1; font-size: clamp(2.6rem, 6vw, 4.5rem); overflow-wrap: anywhere; }
.long-time + .button { justify-self: start; margin: 4px 0; }
.clock-alert { margin-top: 6px; color: var(--accent); font-size: .9rem; font-weight: 560; }
.clock-alert:empty { display: none; }
.clock-reached { box-shadow: inset 3px 0 0 var(--accent); }
.record-fields { margin: 17px 0 4px; }
.capture-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stepper { display: flex; align-items: stretch; min-height: 51px; min-width: 0; background: var(--surface); border: 1px solid var(--control-line); border-radius: 10px; }
.stepper input { border: 0; background: transparent; min-width: 0; text-align: center; font-size: 1.35rem; font-weight: 560; padding: 4px 1px; font-variant-numeric: tabular-nums; }
.stepper input::placeholder { color: #697482; opacity: 1; }
.step { align-self: stretch; flex: 0 0 44px; border: 0; border-radius: 8px; padding: 0; background: transparent; color: var(--muted); font-size: 1.18rem; font-weight: 470; }
.confirm-actions { margin-top: 12px; }
.confirm-actions .primary { min-height: 50px; font-size: 1rem; }
.record-extra { margin-top: 12px; }
.record-extra .fields { margin: 6px 0 10px; }
.record-extra .inline-form, .rir-options { margin-block: 12px; }
.rir-options { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.rir-options > span { color: var(--muted); margin-right: 3px; font-size: .9rem; }
.button.rir-choice { min-width: 44px; }
.last-performance { font-size: .92rem; margin-block: 9px; color: var(--muted); }
.series-panel .next-series { margin: 5px 0; }
.set-history .record-fields { margin: 8px 0 14px; }
.active-banner { display: flex; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 18px; border-radius: 11px; background: var(--accent-soft); font-size: .94rem; }
.active-banner span { flex: 1; }
.active-banner strong { font-variant-numeric: tabular-nums; }
.section-links { display: flex; gap: clamp(12px, 3vw, 24px); border-bottom: 1px solid var(--line); }
.section-links button { display: inline-flex; align-items: center; min-height: 46px; padding: 6px 1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 490; }
.section-links [aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 620; }
.evolution-period details { margin: 0; border: 0; }
.evolution-period summary { justify-content: flex-start; width: fit-content; gap: 12px; }
.chart-grid-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chart-plot { min-width: 0; border-radius: 12px; padding: 15px; background: var(--paper); }
.chart-plot h3 { color: var(--muted); font-size: .94rem; font-weight: 510; }
.chart-plot:has(.chart) { grid-column: 1 / -1; }
.chart-value { display: block; margin-top: 3px; color: var(--ink); font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 520; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.chart { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.chart-grid { stroke: var(--line); fill: none; }
.chart text { fill: var(--muted); font-size: 13px; }
.plot-line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.plot-point { fill: var(--accent); }
.chart-dates { display: flex; justify-content: space-between; }
.analysis-section { min-width: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.analysis-section > p { margin: 6px 0 12px; }
.volume-group { margin-top: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 1fr) 3fr max-content; gap: 8px; align-items: center; margin-top: 6px; font-size: .9rem; }
.bar-track { height: 8px; border-radius: 20px; background: var(--soft); overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--accent); }
.table-wrap { min-width: 0; max-width: 100%; overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 560; }
.loading { max-width: 560px; margin: 10vh auto; padding: 25px; }
.loading .button { margin-top: 14px; }
#toast { position: fixed; z-index: 30; left: 50%; bottom: 20px; transform: translate(-50%, 8px); padding: 12px 16px; border-radius: 10px; background: #273145; color: white; max-width: min(90vw, 560px); width: max-content; opacity: 0; pointer-events: none; box-shadow: 0 3px 12px #16213524; transition: opacity .15s, transform .15s; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: #762b2b; }
@media (hover: hover) {
  .activity-link:hover, .section-links button:hover, summary:hover { color: var(--accent); }
  .nav-link:hover, .icon-button:hover, .button.secondary:hover, .button.quiet:hover, .week-day:hover, .exercise-row:hover, .step:hover { background: var(--soft); }
  .button.primary:not(:disabled):hover { background: #20386f; }
}
@media (max-width: 1060px) {
  :root { --nav-width: 178px; }
  .home-grid, .live-grid { gap: 22px; }
}
@media (max-width: 900px) {
  .sidebar, .desktop-crumb, .live-shell .topbar { display: none; }
  .mobile-brand { display: block; }
  .area { margin-left: 0; }
  .topbar { min-height: 59px; padding: 6px max(20px, env(safe-area-inset-right)) 6px max(20px, env(safe-area-inset-left)); }
  .content { padding: 22px 22px calc(88px + env(safe-area-inset-bottom)); }
  .mobile-nav { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 3px 6px calc(3px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
  .mobile-link { display: grid; justify-items: center; place-content: center; gap: 3px; min-height: 53px; padding: 2px; font-size: .765rem; line-height: 1.2; }
  .mobile-link.is-current { color: var(--accent); font-weight: 680; }
  .mobile-link.is-current svg { stroke-width: 2.4; }
  .mobile-more { position: fixed; z-index: 6; bottom: calc(65px + env(safe-area-inset-bottom)); right: 10px; display: grid; width: 210px; border: 1px solid var(--line); background: var(--surface); padding: 6px; border-radius: 12px; box-shadow: 0 7px 24px #20242b1a; }
  .savebar { bottom: calc(65px + env(safe-area-inset-bottom)); }
  .shell:has(input:focus, textarea:focus) .mobile-nav, .shell:has(input:focus, textarea:focus) .mobile-more { visibility: hidden; }
  #toast { bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (min-width: 721px) {
  .chart-plot:has(.chart) { grid-column: auto; }
}
@media (max-width: 720px) {
  .home-grid, .live-grid { grid-template-columns: minmax(0, 1fr); }
  .home-aside { margin-top: 4px; }
  .exercise-list .section-head { padding-bottom: 2px; }
}
@media (max-width: 540px) {
  .content { padding-inline: 20px; padding-top: 17px; }
  .heading { flex-wrap: wrap; margin-bottom: 18px; }
  .panel { padding: 16px; }
  .home-heading { min-height: 130px; margin-bottom: 20px; border-radius: 14px; }
  .day-title { width: 57%; padding: 14px 16px; }
  .day-title p { margin-top: 5px; font-size: .94rem; line-height: 1.4; }
  .day-weekday { display: block; }
  .day-weekday::after { content: none; }
  .day-photo { width: 45%; object-position: 75% 55%; }
  .home-grid > .stack { gap: 20px; }
  .activity-picker, .week-panel, .lift-panel, .series-panel { padding-inline: 0; }
  .activity-picker, .week-panel, .lift-panel { padding-block: 0; }
  .quick-actions { grid-template-columns: 1fr; margin-top: 5px; }
  .activity-link { min-height: 51px; }
  .row-actions { gap: 0; }
  .row-actions .button { padding-inline: 12px; }
  .home-grid { gap: 24px; }
  .registration-tools { display: grid; gap: 0; justify-items: start; }
  .registration-tools > details { width: 100%; }
  .session-top { margin: -3px 0 14px; }
  .series-panel { padding-top: 15px; margin-top: 17px; }
  .clock-panel { padding: 15px; }
  .clock-face { font-size: clamp(3.5rem, 17vw, 4.4rem); }
  .exercise-actions { padding-inline: 0; }
  .series-heading { margin-bottom: 11px; }
  .exercise-row { grid-template-columns: 2ch minmax(0, 1fr); column-gap: 9px; row-gap: 0; }
  .exercise-row .chip { grid-column: 2; }
  .schedule-edit { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 370px) {
  .content { padding-inline: 16px; }
  .step { flex-basis: 38px; }
  .clock-panel .button { padding-inline: 10px; }
  .live-status { font-size: .81rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
