:root {
  color-scheme: light dark;
  --background: #f5f7fa;
  --foreground: #17232f;
  --muted-foreground: #566273;
  --card: #ffffff;
  --secondary: #eaf0f6;
  --border: #d8e0e9;
  --primary: #2454ad;
  --primary-foreground: #ffffff;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--foreground);
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #10151c;
    --foreground: #edf2f7;
    --muted-foreground: #aab6c5;
    --card: #19212c;
    --secondary: #263345;
    --border: #354357;
    --primary: #9bbcff;
    --primary-foreground: #10254a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 28px max(16px, env(safe-area-inset-left));
}
[hidden] { display: none !important; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: var(--primary); text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
p, h1, h2, h3, h4, h5, figure, dl, dd { margin: 0; }
p { line-height: 1.6; }
main { max-width: 980px; margin: 0 auto; }
.intro { margin-bottom: 20px; }
.eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); font-weight: 650; }
.intro h1 { font-size: clamp(28px, 5vw, 36px); line-height: 1.2; letter-spacing: -.035em; margin: 8px 0 10px; }
.subtitle { font-size: 15px; color: var(--muted-foreground); }
.schedule { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted-foreground); }
.schedule span + span::before { content: "·"; padding-right: 8px; }
.app-tools { margin-bottom: 20px; }
.offline-status { font-size: 13px; color: var(--muted-foreground); }
.install-help { font-size: 14px; margin-top: 6px; }
.install-help summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 600; }
.install-help ol { padding-left: 22px; margin: 4px 0 10px; line-height: 1.7; }
.install-help p { font-size: 13px; color: var(--muted-foreground); }
.update-button { margin-top: 10px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--primary); color: var(--primary-foreground); font-weight: 600; }
.rules { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.rules > summary { padding: 16px 2px; min-height: 48px; cursor: pointer; font-size: 14px; font-weight: 650; line-height: 1.5; }
.rules-content { padding: 0 2px 18px; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.rule-grid h3 { font-size: 15px; margin-bottom: 5px; }
.rule-grid p { font-size: 14px; }
.recovery { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
.equipment-note { margin-top: 16px; font-size: 13px; color: var(--muted-foreground); }
.day-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.day-nav button { border: 1px solid var(--border); background: var(--card); border-radius: 11px; padding: 13px 8px; min-height: 48px; font-size: 15px; font-weight: 600; }
.day-nav button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.day-short { display: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; }
.toolbar p { font-size: 13px; color: var(--muted-foreground); }
.expand { border: 1px solid var(--border); background: var(--card); border-radius: 10px; padding: 11px 13px; font-size: 13px; min-height: 44px; }
#workouts { scroll-margin-top: 16px; }
.day-panel { margin-top: 24px; }
.day-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.day-heading h2 { font-size: 27px; letter-spacing: -.025em; margin-top: 4px; }
.day-heading > p { text-align: right; font-size: 12px; color: var(--muted-foreground); }
.pair-note { font-size: 13px; line-height: 1.6; border-left: 3px solid var(--primary); padding: 1px 0 1px 13px; margin-bottom: 20px; color: var(--muted-foreground); }
.pair-note span { display: block; font-weight: 650; color: var(--foreground); font-size: 14px; margin-bottom: 3px; }
.exercise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.exercise { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; }
.exercise-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.number { flex: 0 0 34px; height: 34px; display: grid; place-items: center; background: var(--secondary); border-radius: 9px; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.muscle { font-size: 12px; color: var(--muted-foreground); margin-bottom: 3px; }
.exercise h3 { font-size: 19px; line-height: 1.4; font-weight: 650; letter-spacing: -.015em; }
.exercise-main { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; align-items: start; }
.metrics { display: grid; grid-template-columns: 1fr; gap: 14px; }
.metrics dt { font-size: 12px; color: var(--muted-foreground); margin-bottom: 4px; }
.metrics dd { font-size: 15px; font-weight: 550; line-height: 1.5; }
.metrics .dose { font-size: 29px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.per-side { display: block; font-size: 13px; margin-top: 4px; }
.warmup { margin-top: 14px; font-size: 14px; }
.warmup span { display: block; font-size: 12px; color: var(--muted-foreground); margin-bottom: 3px; }
.drop { font-size: 13px; font-weight: 650; margin-top: 14px; }
.drop-hint { font-size: 12px; color: var(--muted-foreground); line-height: 1.5; margin-top: 3px; }
.photo-button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: white; overflow: hidden; }
.photo-button img { width: 100%; height: 156px; display: block; object-fit: contain; }
.zoom-hint { position: absolute; bottom: 5px; right: 6px; font-size: 18px; color: #33465c; background: white; border: 1px solid #d9dfe5; border-radius: 5px; width: 24px; height: 24px; line-height: 21px; }
.equipment figcaption { font-size: 12px; line-height: 1.45; margin-top: 7px; overflow-wrap: anywhere; }
.equipment figcaption a { font-weight: 550; }
.equipment figcaption p { font-size: 12px; margin-top: 5px; color: var(--muted-foreground); line-height: 1.5; }
.photo-note { font-size: 13px; color: var(--muted-foreground); margin-top: 12px; line-height: 1.5; }
.technique { margin-top: 16px; border-top: 1px solid var(--border); }
.technique > summary { padding: 14px 0 3px; min-height: 48px; font-size: 15px; font-weight: 600; cursor: pointer; }
.details-body { padding-top: 14px; }
.technique-grid { display: grid; gap: 16px; }
.technique-grid h4, .alternatives > h4 { font-size: 15px; font-weight: 650; margin-bottom: 5px; }
.technique-grid p { font-size: 15px; }
.alternatives { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.alternatives ul { list-style: none; padding: 0; margin: 12px 0; }
.alternative { display: flex; align-items: start; gap: 16px; }
.alternative h5 { font-size: 15px; font-weight: 650; line-height: 1.5; }
.alternative p { font-size: 14px; margin-top: 4px; }
.equipment.small { flex: 0 0 130px; width: 130px; }
.small .photo-button img { height: 100px; }
.subtle { font-size: 12px; color: var(--muted-foreground); }
.footer { margin: 24px 0 8px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-foreground); }
.footer p + p { margin-top: 8px; }
.js-controls { display: none; }
.js .js-controls { display: grid; }
.js .toolbar { display: flex; }
.skip { position: absolute; left: -10000px; }
.skip:focus { position: static; display: block; padding: 10px; }
.photo-dialog { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; width: min(700px, calc(100% - 32px)); max-height: 90%; overflow: auto; background: var(--card); color: var(--foreground); }
.photo-dialog::backdrop { background: rgba(10, 15, 20, .7); }
.dialog-header { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dialog-header h2 { font-size: 16px; line-height: 1.4; }
.dialog-close { border: 1px solid var(--border); border-radius: 9px; background: var(--secondary); padding: 10px 12px; min-height: 44px; font-size: 14px; }
.photo-dialog img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: white; border-radius: 9px; }
.photo-dialog p { font-size: 13px; margin-top: 12px; }
.noscript { font-size: 14px; padding: 12px 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; }
@media (min-width: 850px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .exercise-main { grid-template-columns: minmax(0, 1fr) 220px; }
  .photo-button img { height: 180px; }
  .technique-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .exercise h3 { font-size: 20px; }
}
@media (max-width: 600px) {
  body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .day-nav {
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border-top: 1px solid var(--border);
    background: var(--card);
    gap: 8px;
  }
  .day-long { display: none; }
  .day-short { display: inline; }
  .day-heading h2 { font-size: 25px; }
  .day-heading > p { max-width: 125px; font-size: 12px; }
  .exercise-main { grid-template-columns: minmax(0, 1fr) 128px; gap: 12px; }
  .photo-button img { height: 132px; }
  .metrics .dose { font-size: 26px; }
  .metrics dd { font-size: 14px; }
  .rule-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: center; }
  .toolbar p { font-size: 12px; }
  .expand { font-size: 12px; }
  .equipment.small { flex-basis: 110px; width: 110px; }
  .small .photo-button img { height: 95px; }
}
@media (max-width: 374px) {
  .exercise-main { grid-template-columns: 1fr; }
  .equipment:not(.small) { max-width: 220px; }
  .photo-button img { height: 170px; }
  .alternative { flex-direction: column; }
  .toolbar { align-items: flex-start; }
}
@media (display-mode: standalone) { .install-help { display: none; } }
@media print {
  body { padding: 0; }
  .day-panel[hidden] { display: block !important; }
  .day-nav, .toolbar, .app-tools, .zoom-hint, .photo-dialog, .skip { display: none !important; }
  .exercise { break-inside: avoid; }
  .day-panel { break-before: page; }
  main { max-width: none; }
  a { color: inherit; }
}
