@font-face { font-family: Inter; src: url('assets/inter.ttf') format('truetype'); font-weight: 400; font-display: swap; }
:root {
  color-scheme: light;
  --ink: #10263c;
  --muted: #566d83;
  --blue: #153a68;
  --navy: #153a68;
  --pale: #f0f5fa;
  --line: #dce5ee;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { text-decoration: none; color: var(--blue); }
button, input, textarea, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; transition: background 140ms, color 140ms, border-color 140ms; }
button:active { transform: translateY(1px); }
button:disabled, input:disabled, select:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #326cac; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 37px; line-height: 1.3; letter-spacing: -1.4px; font-weight: 500; }
h2 { font-size: 23px; font-weight: 550; line-height: 1.4; }
h3 { font-size: 18px; font-weight: 600; }
.small { font-size: 13px; color: var(--muted); }
.skip-link { position: fixed; top: -60px; left: 16px; padding: 10px; background: #fff; z-index: 30; }
.skip-link:focus { top: 12px; }
.topbar { max-width: 1176px; margin: auto; height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 28px; }
.brand { font-size: 23px; font-weight: 650; letter-spacing: -.8px; color: var(--ink); white-space: nowrap; }
.navigation { display: flex; gap: 36px; height: 100%; align-items: center; }
.navigation a { position: relative; color: var(--muted); font-size: 14px; padding: 15px 0; white-space: nowrap; }
.navigation a.active { color: var(--navy); font-weight: 600; }
.navigation a.active::after { content: ''; height: 3px; width: 18px; background: var(--navy); position: absolute; bottom: 5px; left: calc(50% - 9px); border-radius: 3px; }
.text-button { border: 0; background: transparent; color: var(--blue); min-height: 40px; padding: 7px 0; text-align: left; font-size: 14px; }
.topbar .text-button { font-size: 13px; color: var(--muted); }
main { max-width: 1176px; margin: auto; padding: 40px 0 28px; min-height: calc(100dvh - 170px); outline: none; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; gap: 18px; }
.eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.plan-meta { display: flex; gap: 17px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 12px; min-height: 28px; }
.plan-meta > * + * { border-left: 1px solid var(--line); padding-left: 17px; }
.plan-meta select { border-top: 0; border-right: 0; border-bottom: 0; border-radius: 0; background: transparent; min-width: 85px; font-size: 13px; padding-top: 3px; padding-bottom: 3px; }
.today-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 76px; align-items: start; }
.training-panel { border-top: 1px solid #bacbdc; }
.training-status { display: flex; justify-content: space-between; gap: 15px; font-size: 13px; color: var(--muted); padding: 12px 0 8px; }
.progress-track { height: 2px; background: var(--pale); }
.progress-fill { height: 100%; background: var(--navy); transition: width 250ms; }
.exercise-row { border-bottom: 1px solid var(--line); }
.exercise-toggle { width: 100%; min-height: 100px; border: 0; background: none; padding: 12px 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) 96px; gap: 15px; align-items: center; text-align: left; scroll-margin-top: 16px; }
.exercise-toggle:hover { background: #f8fafc; }
.exercise-toggle[aria-expanded=true] { color: var(--blue); }
.ordinal { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ordinal.done { color: #246148; font-size: 19px; }
.row-text strong { font-size: 18px; font-weight: 550; display: block; letter-spacing: -.4px; }
.row-text small { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }
.thumb { width: 100%; height: 76px; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.line-art { filter: brightness(0) saturate(100%) invert(16%) sepia(28%) saturate(1350%) hue-rotate(169deg) brightness(89%) contrast(95%); }
.tonal-art { filter: grayscale(1); mix-blend-mode: multiply; }
.exercise-expanded { padding: 0 0 24px 43px; animation: reveal 180ms ease-out; }
.cue { padding: 14px 16px; background: var(--pale); font-size: 15px; line-height: 1.8; margin-bottom: 13px; border-radius: 4px; }
.row-links { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 16px; }
.row-links .text-button { font-size: 14px; }
.log-head, .log-row { display: grid; grid-template-columns: 28px 1fr 1fr 46px; gap: 10px; align-items: center; text-align: center; }
.log-head { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.log-row { margin-bottom: 10px; }
.log-row > span { font-size: 14px; }
.log-row input { min-width: 0; width: 100%; border: 1px solid #bacbdc; border-radius: 4px; text-align: center; padding: 8px; font-size: 17px; background: white; min-height: 46px; }
.log-row input:disabled { background: #f5f7fa; }
.set-complete { width: 46px; height: 46px; background: white; border: 1px solid #bacbdc; border-radius: 4px; font-size: 21px; }
.set-complete[aria-pressed=true] { background: var(--navy); color: white; border-color: var(--navy); }
.input-note { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.8; }
label.input-note { display: block; margin-top: 20px; }
.exercise-expanded textarea { width: 100%; display: block; resize: vertical; padding: 10px 12px; border: 1px solid #bacbdc; border-radius: 4px; margin-top: 7px; font-size: 15px; background: white; }
.session-actions { padding: 22px 0 0; }
.session-actions > .input-note { text-align: center; }
.primary-button, .secondary-button { min-height: 50px; padding: 12px 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 15px; }
.primary-button { background: var(--navy); color: white; border: 1px solid var(--navy); }
.primary-button:hover { background: #214e80; }
.secondary-button { border: 1px solid #bacbdc; color: var(--navy); background: white; }
.full-width { width: 100%; }
.support-panel { padding: 22px 0; border-top: 1px solid var(--line); }
.support-panel:first-child { padding-top: 0; border-top: 0; }
.support-panel h3 { margin-bottom: 15px; }
.support-panel p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.support-list { padding-left: 20px; margin: 0 0 15px; font-size: 14px; line-height: 1.9; }
.support-list li { padding-left: 3px; margin-bottom: 9px; }
.quick-link { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; padding: 13px 0; min-height: 48px; font-size: 14px; }
.quick-link:last-child { border-bottom: 0; }
.quick-link span:last-child { color: var(--blue); }
.week-line { display: flex; gap: 12px; align-items: center; color: var(--blue); font-size: 13px; padding: 20px 0 8px; }
.week-line i { height: 1px; background: #b7c9da; flex: 1; }
.history { margin-top: 38px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.section-head h2 { font-size: 21px; }
.history-item span { color: var(--muted); font-size: 13px; }
.empty { padding: 22px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.filters { display: grid; gap: 15px; margin: 0 0 25px; }
.search-wrap input { width: 100%; background: #f4f7fa; border: 1px solid transparent; border-radius: 4px; min-height: 50px; padding: 12px 16px; font-size: 15px; }
input::placeholder, textarea::placeholder { color: #5f7285; opacity: 1; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.filter-chip { border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--muted); font-size: 13px; padding: 7px 13px; min-height: 38px; white-space: nowrap; }
.filter-chip.selected { background: var(--navy); border-color: var(--navy); color: white; }
.filter-secondary { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.filter-secondary select { padding: 6px 24px 6px 9px; min-height: 38px; background: white; border: 1px solid var(--line); border-radius: 4px; }
.result-count { margin-left: auto; white-space: nowrap; }
.exercise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 42px; }
.exercise-card { background: transparent; padding: 20px 0; border: 0; border-top: 1px solid var(--line); display: flex; align-items: center; text-align: left; min-height: 145px; gap: 18px; }
.exercise-card:hover { background: #f8fafc; }
.card-content { order: 0; min-width: 0; flex: 1; }
.card-content h3 { font-size: 18px; font-weight: 550; margin-bottom: 5px; }
.card-content p { font-size: 13px; color: var(--muted); }
.card-image { width: 126px; height: 100px; order: 1; flex-shrink: 0; display: grid; place-items: center; }
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.card-tags { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; }
.card-tags span:last-child { color: var(--blue); }
.video-symbol { display: grid; place-items: center; gap: 6px; color: var(--blue); }
.video-symbol > span { border: 1px solid #9bb0c7; border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; padding-left: 2px; }
.video-symbol small { font-size: 13px; color: var(--muted); }
.recovery-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 38px; padding: 26px 0 30px; border-top: 1px solid #bacbdc; border-bottom: 1px solid var(--line); }
.nutrition-basics h2, .sleep-basics h2 { font-size: 22px; margin-bottom: 9px; }
.nutrition-basics p, .sleep-basics p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.meal-parts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 23px 0; font-size: 14px; color: var(--blue); }
.meal-parts span { border-bottom: 2px solid #bccfe2; padding: 4px 0 9px; }
.sleep-number { font-size: 38px; font-weight: 500; color: var(--navy); letter-spacing: -1px; margin: 19px 0 12px; }
.sleep-number small { font-size: 14px; letter-spacing: 0; font-weight: 400; margin-left: 8px; color: var(--muted); }
.guide-map { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0 0 24px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.guide-map a { font-size: 14px; padding: 7px 0; }
.guide-group { margin-bottom: 35px; scroll-margin-top: 20px; }
.guide-group h2 { margin: 25px 0 9px; font-size: 23px; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.article-link { text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 21px 0; display: flex; gap: 20px; justify-content: space-between; }
.article-link strong { font-size: 17px; font-weight: 550; }
.article-link p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 7px; }
.article-link > span { color: var(--muted); padding-top: 3px; }
.page-footer { padding: 22px 25px 30px; text-align: center; color: var(--muted); font-size: 13px; }
.page-footer .text-button { font-size: 13px; }
.storage-notice { max-width: 1176px; margin: 10px auto; background: #fff4dc; color: #674700; padding: 13px 18px; font-size: 14px; }
dialog { width: min(1000px, calc(100vw - 56px)); max-height: calc(100dvh - 50px); border: 1px solid var(--line); border-radius: 8px; padding: 0; background: white; color: var(--ink); box-shadow: 0 18px 80px #142c4430; }
dialog::backdrop { background: #10263c80; backdrop-filter: blur(3px); }
.dialog-header { position: sticky; top: 0; z-index: 2; padding: 11px 26px; display: flex; justify-content: space-between; align-items: center; background: white; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.close-button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 28px; }
#dialog-content { padding: 30px 38px 38px; }
.detail-title { margin-bottom: 28px; }
.detail-title h1 { font-size: 30px; font-weight: 550; }
.detail-title p { font-size: 14px; color: var(--muted); margin-top: 9px; }
.exercise-detail-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 38px; }
.motion-player { background: #f5f8fb; border-radius: 4px; overflow: hidden; }
.motion-stage { padding: 20px 12px 16px; }
.motion-stage figure { margin: 0; }
.motion-stage img { width: 100%; height: 235px; object-fit: contain; }
.motion-stage figcaption { font-size: 14px; text-align: center; min-height: 25px; margin-top: 10px; color: var(--muted); }
.motion-controls { padding: 0 14px 14px; display: grid; gap: 10px; }
.motion-controls button { min-height: 44px; background: #fff; border: 1px solid #bacbdc; border-radius: 4px; padding: 8px 11px; font-size: 14px; color: var(--blue); }
.frame-buttons { display: flex; gap: 10px; }
.frame-buttons button { flex: 1; }
.frame-buttons button[aria-pressed=true] { color: white; background: var(--navy); border-color: var(--navy); }
.media-credit { font-size: 13px; line-height: 1.85; color: var(--muted); margin-top: 13px; }
.video-link { border: 1px solid #b8c9da; color: var(--blue); background: white; border-radius: 4px; padding: 13px 15px; display: block; margin-top: 16px; font-size: 14px; text-align: left; }
.video-link small { display: block; font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 5px; }
.detail-video-cover { width: 100%; display: block; margin-bottom: 12px; filter: grayscale(1); }
.teaching-video { width: 100%; aspect-ratio: 16/9; border: 0; margin-top: 16px; background: var(--pale); }
.muscle-list { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.muscle-list dt { font-size: 13px; color: var(--muted); }
.muscle-list dd { margin: 4px 0 15px; font-size: 15px; }
.detail-section { margin-bottom: 26px; }
.detail-section h2 { font-size: 20px; margin-bottom: 11px; }
.detail-section p, .detail-section li { font-size: 15px; line-height: 1.95; }
.detail-section ul, .detail-section ol { padding-left: 23px; margin: 10px 0; }
.detail-section li { margin-bottom: 8px; padding-left: 3px; }
.mistake { border-top: 1px solid var(--line); padding: 13px 0; }
.mistake strong { font-size: 15px; display: block; margin-bottom: 6px; }
.mistake p { color: var(--muted); }
.safety-note { font-size: 14px; line-height: 1.9; padding: 14px 16px; background: #f5f7fa; color: var(--muted); border-radius: 4px; }
.alternative-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sources { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 28px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sources summary { min-height: 38px; }
.sources li { margin: 11px 0; line-height: 1.85; }
.sources ul { padding-left: 20px; }
.reader { max-width: 650px; margin: auto; }
.reader .detail-title { margin-bottom: 34px; }
.reader .detail-section { margin-bottom: 30px; }
.reader .detail-section p, .reader .detail-section li { font-size: 16px; line-height: 1.95; margin-bottom: 12px; }
.takeaway { border-top: 1px solid #b8c9da; border-bottom: 1px solid #b8c9da; padding: 22px 0; font-size: 15px; line-height: 1.9; margin-top: 30px; }
.takeaway strong { display: block; margin-bottom: 6px; color: var(--blue); }
.article-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 25px; }
.article-nav button { max-width: 48%; font-size: 14px; }
.source-group { margin-top: 30px; }
.source-group h2 { font-size: 21px; margin-bottom: 14px; }
.source-group p { margin-bottom: 15px; font-size: 15px; line-height: 1.9; }
.source-item { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.source-item small { font-size: 13px; display: block; color: var(--muted); }
.about-list li { margin-bottom: 15px; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--navy); color: white; padding: 12px 20px; max-width: calc(100vw - 28px); border-radius: 5px; font-size: 14px; }
.rest-timer { position: fixed; bottom: 24px; right: 28px; z-index: 10; border: 1px solid #bacbdc; background: white; box-shadow: 0 4px 25px #17375218; display: flex; gap: 18px; align-items: center; padding: 13px 17px; border-radius: 5px; }
.rest-timer small { font-size: 13px; color: var(--muted); display: block; }
.rest-timer strong { font-size: 24px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.rest-timer button { min-height: 40px; border: 0; padding: 7px 12px; background: var(--pale); color: var(--navy); border-radius: 4px; font-size: 14px; }
.noscript { padding: 24px; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-enter { animation: reveal 180ms ease-out; }
@media (max-width: 1250px) {
  .topbar { margin: 0 36px; }
  main { padding-left: 36px; padding-right: 36px; }
  .today-layout { gap: 50px; }
}
@media (max-width: 850px) {
  .topbar { margin: 0 25px; height: calc(70px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .brand { font-size: 19px; }
  .navigation { position: fixed; inset: auto 0 0; width: 100%; height: calc(76px + env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--line); z-index: 6; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: start; padding: 12px 12px env(safe-area-inset-bottom); }
  .navigation a { text-align: center; padding: 10px 0 16px; font-size: 13px; }
  .navigation a.active::after { bottom: 5px; }
  main { padding: 28px 25px 25px; }
  h1 { font-size: 34px; }
  .page-head { margin-bottom: 24px; }
  .page-head p { font-size: 13px; }
  .today-layout { grid-template-columns: 1fr; gap: 34px; }
  .exercise-toggle { min-height: 90px; grid-template-columns: 26px minmax(0, 1fr) 80px; gap: 12px; padding: 8px 0; }
  .thumb { height: 70px; }
  .row-text strong { font-size: 17px; }
  .row-text small { font-size: 13px; }
  .exercise-expanded { padding-left: 38px; }
  .session-actions { padding-top: 20px; }
  .training-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .support-panel { padding-top: 22px; }
  .support-panel:first-child { padding-top: 22px; border-top: 1px solid var(--line); }
  .exercise-grid { column-gap: 25px; }
  .card-image { width: 90px; }
  .card-content h3 { font-size: 17px; }
  .page-footer { padding-bottom: calc(105px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .rest-timer { bottom: calc(92px + env(safe-area-inset-bottom)); right: 20px; }
  .storage-notice { margin: 0; }
}
@media (max-width: 560px) {
  .plan-meta { gap: 12px; }
  .plan-meta > * + * { padding-left: 12px; }
  .training-aside { display: block; }
  .exercise-grid { grid-template-columns: 1fr; }
  .exercise-card { min-height: 128px; padding: 18px 0; }
  .card-image { width: 96px; height: 85px; }
  .card-tags { margin-top: 9px; gap: 6px 12px; }
  .exercise-expanded { padding-left: 0; }
  .recovery-intro { grid-template-columns: 1fr; gap: 28px; padding-top: 23px; margin-bottom: 25px; }
  .sleep-basics { border-top: 1px solid var(--line); padding-top: 25px; }
  .article-grid { grid-template-columns: 1fr; }
  .guide-map { gap: 4px 23px; }
  .guide-group h2 { font-size: 22px; }
  dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .dialog-header { padding: calc(9px + env(safe-area-inset-top)) 21px 9px; }
  #dialog-content { padding: 25px 25px calc(32px + env(safe-area-inset-bottom)); }
  .detail-title h1 { font-size: 27px; }
  .exercise-detail-layout { grid-template-columns: 1fr; gap: 28px; }
  .motion-stage img { height: 230px; }
  .muscle-list { display: grid; grid-template-columns: 65px 1fr; column-gap: 12px; }
  .muscle-list dd { margin-top: 0; }
}
@media (max-width: 350px) {
  .topbar { margin: 0 20px; }
  main { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 31px; }
  .exercise-toggle { grid-template-columns: 24px minmax(0, 1fr) 60px; gap: 9px; }
  .row-text strong { font-size: 16px; }
  .thumb { height: 62px; }
  .plan-meta { gap: 8px; }
  .plan-meta > * + * { padding-left: 8px; }
  .card-image { width: 74px; }
  #dialog-content { padding-left: 20px; padding-right: 20px; }
}
@media (max-height: 540px) and (max-width: 850px) {
  .topbar { height: 55px; }
  .navigation { height: calc(49px + env(safe-area-inset-bottom)); padding-top: 0; }
  .navigation a { padding-top: 10px; padding-bottom: 12px; }
  .rest-timer { bottom: 62px; }
  .toast { bottom: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
