:root {
  --page: #f6f8f7;
  --surface: #fff;
  --ink: #293d37;
  --muted: #7a8580;
  --green: #2c5c4f;
  --green-dark: #204b40;
  --mint: #eaf2ed;
  --line: #e9eeeb;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button { border: 0; background: none; }
button:disabled { cursor: default; opacity: .46; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #98bfa5; outline-offset: 4px; }
button { transition: background .18s, transform .18s, color .18s; }
button:not(:disabled):active { transform: translateY(1px); }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; padding: 12px; background: var(--green); color: white; }
.skip-link:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 220px; padding: 36px 20px 22px; display: flex; flex-direction: column; background: white; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; width: fit-content; }
.sidebar .brand { margin-left: 12px; }
.brand > span:last-child { display: flex; align-items: baseline; gap: 10px; font-size: 27px; font-weight: 650; letter-spacing: 3px; color: var(--green-dark); }
.brand small { font-size: 9px; letter-spacing: 1.6px; font-weight: 500; }
.sidebar .brand > span:last-child { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.3; white-space: nowrap; }
.sidebar .brand small { display: block; font-size: 7px; letter-spacing: 1.5px; margin-top: 3px; }
.brand-mark { width: 38px; height: 38px; padding: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 12px; background: var(--green); flex: 0 0 auto; transform: rotate(-4deg); }
.brand-mark i { display: block; background: #def0c2; border-radius: 5px 5px 5px 1px; }
.brand-mark i:nth-child(2) { transform: rotate(90deg); }
.brand-mark i:nth-child(3) { transform: rotate(-90deg); }
.brand-mark i:nth-child(4) { transform: rotate(180deg); }
.nav-label { margin: 50px 0 16px 16px; color: #939d97; font-size: 10px; letter-spacing: 1.6px; }
.desktop-nav { display: flex; flex-direction: column; gap: 8px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 14px; min-height: 48px; width: 100%; padding: 0 16px; color: #76817b; border-radius: 8px; text-align: left; font-size: 13px; }
.nav-link svg { width: 19px; height: 19px; }
.nav-link:hover { background: #f5f8f5; color: var(--green); }
.nav-link.active { background: #eaf2ed; color: var(--green); font-weight: 600; }
.nav-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--green); }
.sidebar-stage { position: relative; margin-top: auto; padding: 22px 16px; background: #f4f7f1; border-radius: 12px; }
.sidebar-stage .eyebrow { color: #82917c; letter-spacing: .5px; font-size: 9px; }
.stage-icon { margin: 15px 0 9px; color: #5f8063; }
.stage-icon svg { width: 30px; height: 30px; stroke-width: 1.3; }
.sidebar-stage h3 { font-size: 12px; font-weight: 600; }
.sidebar-stage p { margin-top: 7px; font-size: 10px; color: #7c887c; line-height: 1.9; }
.sidebar-stage p b { font-weight: 600; }
.sidebar-stage button { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 0; font-size: 10px; color: var(--green); }
.sidebar-stage button svg { width: 15px; height: 15px; }
.sidebar-bottom { margin-top: 28px; }
.sidebar-bottom button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 11px; color: #79867d; }
.sidebar-bottom button svg { width: 17px; height: 17px; }
.sidebar-bottom button svg:last-child { margin-left: auto; width: 14px; }
.sidebar-bottom > span { display: block; padding: 18px 12px 0; font-size: 9px; letter-spacing: .5px; color: #9ca39d; }
.workspace { margin-left: 220px; }
.topbar { height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.75); }
.breadcrumb { display: flex; align-items: center; gap: 14px; font-size: 11px; }
.breadcrumb > span:first-child { color: #909a93; }
.breadcrumb svg { width: 12px; height: 12px; color: #aab3ac; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.demo-tag { font-size: 9px; letter-spacing: 1px; color: #809087; border: 1px solid #e1e8e1; padding: 3px 8px; border-radius: 4px; }
.icon-button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; color: #7a887e; }
.icon-button:hover { background: var(--mint); }
.notification-button { position: relative; }
.notification-button i { position: absolute; height: 5px; width: 5px; background: #b6c8a1; border: 1px solid white; border-radius: 50%; top: 6px; right: 8px; }
.topbar-divider { height: 24px; width: 1px; background: #e4e9e5; }
.profile-button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 0; }
.avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: #e6e9de; border: 3px solid #f6f8f2; border-radius: 50%; color: #727e61; font-family: serif; font-size: 15px; }
.profile-button > span:nth-child(2) { font-size: 11px; font-weight: 500; }
.profile-button small { display: block; font-size: 8px; color: #959d96; font-weight: 400; margin-top: 1px; }
.profile-button > svg { width: 13px; height: 13px; margin-left: 10px; transform: rotate(90deg); }
.page-content { max-width: 1580px; padding: 32px 36px 20px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 15px; }
.eyebrow { font-size: 9px; letter-spacing: 2px; color: #8b978c; font-weight: 500; }
.page-heading h1 { display: flex; align-items: center; gap: 14px; font-size: 29px; letter-spacing: .5px; font-weight: 600; margin: 7px 0; line-height: 1.5; }
.greeting-sun { color: #c1a76c; width: 27px; height: 27px; stroke-width: 1.35; }
.page-heading p { color: #8c958d; font-size: 11px; letter-spacing: .5px; }
.date-button { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 12px; background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; color: #758078; }
.date-button svg { height: 15px; width: 15px; }
.date-button svg:last-child { height: 11px; width: 11px; margin-left: 5px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 284px; gap: 24px; align-items: start; }
.main-column, .right-column { min-width: 0; }
.hero-card { height: 304px; border-radius: var(--radius); background: #ecede3; position: relative; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; right: 0; top: 0; width: 67%; height: 100%; object-fit: cover; object-position: 70% 45%; z-index: -2; }
.hero-wash { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#e9eee3 0%,#e9eee3 32%,rgba(233,238,227,.92) 41%,rgba(233,238,227,.12) 70%,rgba(233,238,227,0) 100%); }
.hero-copy { height: 100%; padding: 26px 30px; }
.hero-label { display: inline-flex; align-items: center; gap: 7px; color: #6b8069; font-size: 9px; letter-spacing: .5px; }
.hero-label > span { width: 5px; height: 5px; border-radius: 50%; background: #7e9a65; }
.hero-copy h2 { font-size: 28px; line-height: 1.55; letter-spacing: 1px; font-weight: 550; margin-top: 12px; color: #294b38; }
.hero-copy > p { color: #6f7f69; font-size: 10px; margin-top: 10px; }
.small-tag { display: inline-block; font-size: 8px; border: 1px solid #cbd4c2; border-radius: 3px; padding: 0 4px; margin-left: 6px; color: #76866d; }
.hero-meta { display: flex; gap: 10px; align-items: center; color: #75816d; font-size: 10px; margin: 12px 0 19px; }
.hero-meta span { display: flex; gap: 5px; align-items: center; }
.hero-meta svg { height: 13px; width: 13px; }
.hero-meta i { height: 8px; width: 1px; background: #bdc8b6; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 10px; padding: 0 20px; font-size: 12px; font-weight: 500; border-radius: 8px; }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-primary > svg:first-child { width: 17px; height: 17px; }
.button-primary > svg:last-child { width: 16px; height: 16px; margin-left: 18px; }
.fill-icon { fill: currentColor; stroke-width: 0; }
.hero-caption { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: #7d8773; font-size: 8px; }
.hero-caption svg { width: 12px; height: 12px; }
.hero-image-note { position: absolute; bottom: 18px; right: 22px; font-size: 9px; letter-spacing: 2px; color: #fafaf2; text-shadow: 0 1px 8px #5558; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 18px; }
.stat-card { display: flex; gap: 12px; align-items: start; position: relative; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; min-height: 110px; }
.stat-icon { display: flex; justify-content: center; align-items: center; border-radius: 10px; width: 33px; height: 33px; flex-shrink: 0; }
.stat-icon svg { width: 17px; height: 17px; stroke-width: 1.5; }
.mint { background: #eef5ee; color: #78967d; }
.sand { background: #f9f3e9; color: #bea476; }
.lavender { background: #f0f0f7; color: #9390af; }
.stat-label { display: block; font-size: 9px; color: #889389; }
.stat-value { font-size: 27px; line-height: 1.5; font-weight: 550; letter-spacing: -.5px; }
.stat-value small { font-weight: 400; letter-spacing: 0; font-size: 10px; color: #8c968e; }
.stat-foot { font-size: 8px; color: #98a198; white-space: nowrap; }
.stat-feeling { font-size: 20px; line-height: 2; letter-spacing: .5px; }
.stat-feeling > span { font-size: 17px; color: #6e9976; margin-left: 3px; }
.stat-sparkline { width: 39px; height: 22px; color: #a6bf9c; position: absolute; right: 12px; bottom: 32px; stroke-width: 1.8; }
.today-movements { margin-top: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 17px; }
.section-heading h2 { font-size: 15px; font-weight: 600; letter-spacing: .4px; display: flex; align-items: center; gap: 10px; }
.count-tag { color: #8b978d; font-size: 9px; font-weight: 400; background: #eaf0eb; padding: 2px 7px; border-radius: 4px; letter-spacing: 0; }
.text-button { display: flex; align-items: center; gap: 7px; padding: 0; color: #708376; font-size: 10px; }
.text-button:hover { color: var(--green-dark); }
.text-button svg { width: 14px; height: 14px; }
.movement-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.movement-card { display: block; min-width: 0; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.movement-card:hover { transform: translateY(-3px); box-shadow: 0 5px 20px #284b3910; }
.movement-visual { height: 132px; position: relative; background: #edf1e8; overflow: hidden; }
.movement-card:nth-child(2) .movement-visual { background: #f2eee5; }
.movement-card:nth-child(3) .movement-visual { background: #ebeff0; }
.movement-art { height: 100%; width: 100%; stroke-width: 1; }
.movement-seq { font-size: 8px; color: #73826d; background: #fff9; position: absolute; top: 10px; left: 10px; padding: 1px 6px; border-radius: 4px; }
.movement-play { width: 26px; height: 26px; background: #ffffffe0; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: absolute; bottom: 10px; right: 10px; color: #657d66; }
.movement-play svg { height: 12px; width: 12px; }
.movement-info { padding: 14px; }
.movement-title { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.movement-title h3 { font-size: 12px; font-weight: 550; }
.movement-title > svg { width: 13px; height: 13px; color: #9aa69a; }
.movement-info p { font-size: 9px; color: #8d978f; margin-top: 6px; }
.movement-bottom { border-top: 1px solid #f0f2ee; display: flex; justify-content: space-between; padding-top: 9px; margin-top: 12px; font-size: 8px; color: #839184; }
.movement-bottom > span { display: flex; align-items: center; gap: 4px; }
.movement-bottom svg { width: 11px; height: 11px; }
.gentle-note { display: flex; align-items: center; position: relative; gap: 14px; background: #eef2e9; border: 1px solid #e7eddf; padding: 18px 20px; border-radius: 10px; margin-top: 22px; }
.note-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; color: #8b9c78; }
.note-icon svg { width: 27px; height: 27px; stroke-width: 1.2; }
.gentle-note h3 { font-size: 11px; font-weight: 500; color: #64795d; margin-bottom: 4px; }
.gentle-note p { font-size: 9px; color: #8a9681; }
.note-scribble { font: italic 16px Georgia,serif; color: #b1bca4; margin-left: auto; white-space: nowrap; }
.learning-teaser { margin-top: 28px; }
.article-row { display: flex; width: 100%; align-items: center; gap: 15px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 15px; text-align: left; }
.article-art { height: 47px; width: 60px; background: #e9eee0; display: flex; justify-content: center; align-items: center; border-radius: 7px; color: #94a77c; }
.article-art svg { width: 29px; height: 29px; stroke-width: 1.1; transform: rotate(-15deg); }
.article-row small { font-size: 8px; color: #929b90; display: block; margin-bottom: 4px; }
.article-row b { font-size: 11px; font-weight: 500; }
.article-row > svg { width: 17px; height: 17px; color: #899c83; margin-left: auto; }
.right-column { display: flex; flex-direction: column; gap: 20px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel .section-heading { margin-bottom: 16px; }
.panel .section-heading h2 { font-size: 13px; }
.subtle-icon { color: #96a191; width: 16px; height: 16px; }
.week-caption { display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: #8c978d; margin-bottom: 12px; }
.week-caption > div { display: flex; gap: 1px; }
.icon-button.tiny { width: 23px; height: 24px; }
.tiny svg { width: 12px; height: 12px; }
.flipped { transform: rotate(180deg); }
.week-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; }
.day-button { display: flex; flex-direction: column; gap: 7px; justify-content: start; align-items: center; padding: 0; font-size: 9px; color: #889486; }
.day-number { display: flex; position: relative; justify-content: center; align-items: center; width: 27px; height: 34px; border-radius: 8px; font-size: 11px; color: #68796a; }
.day-button.done .day-number { background: #edf3ec; }
.day-button.done .day-number:after { content: ''; position: absolute; bottom: 3px; width: 3px; height: 3px; border-radius: 50%; background: #98ad8f; }
.day-button.selected .day-number { background: var(--green); color: white; }
.day-button.selected { color: var(--green); font-weight: 600; }
.day-button.rest-day .day-number { color: #b2b8af; }
.weekly-bottom { display: flex; justify-content: space-between; margin-top: 20px; font-size: 9px; color: #929c91; }
.weekly-bottom > span:first-child { display: flex; align-items: center; gap: 4px; color: #7b8c76; }
.weekly-bottom i { display: inline-block; height: 5px; width: 5px; border-radius: 50%; background: #a5bc99; margin-right: 2px; }
.weekly-bottom b { font-weight: 500; }
.progress-track { background: #eff2ec; height: 5px; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.progress-track > span { display: block; height: 100%; background: #a6bb92; border-radius: 3px; }
.weekly-message { display: flex; justify-content: space-between; color: #9ba591; font-size: 9px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #f0f3ed; }
.weekly-message svg { width: 13px; height: 13px; color: #a6b393; }
.feeling-panel > p { font-size: 9px; color: #929b90; margin-top: -6px; }
.feeling-options { display: flex; justify-content: space-between; gap: 8px; margin-top: 19px; }
.feeling-button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9px; color: #8b9688; padding: 7px 3px; min-width: 42px; border: 1px solid transparent; border-radius: 9px; }
.feeling-button:hover { background: #f5f8f0; }
.feeling-button.selected { background: #f0f5e7; border-color: #ceddc0; color: var(--green); }
.face-icon { width: 33px; height: 33px; stroke-width: 1.4; color: #9aab82; }
.feeling-button:nth-child(2) .face-icon { color: #acb897; }
.feeling-button:nth-child(3) .face-icon { color: #bcb89c; }
.feeling-button:nth-child(4) .face-icon { color: #b6ac9e; }
.feeling-save { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; color: #758568; background: #f0f4e9; border-radius: 6px; font-size: 10px; min-height: 35px; margin-top: 18px; }
.feeling-save svg { width: 12px; height: 12px; }
.privacy-caption { display: block; text-align: center; font-size: 8px; color: #a0a79a; margin-top: 9px; }
.stage-panel { background: #eaf0e8; border: 1px solid #e1e9dc; border-radius: var(--radius); padding: 22px; }
.stage-panel-head { display: flex; align-items: center; gap: 7px; color: #74856d; font-size: 10px; }
.stage-panel-head > span:last-child { margin-left: auto; font-size: 8px; padding: 1px 6px; border: 1px solid #cddbc7; border-radius: 4px; }
.stage-icon-small { display: flex; }
.stage-icon-small svg { width: 16px; height: 16px; }
.stage-panel h2 { font-size: 17px; font-weight: 550; letter-spacing: .5px; margin: 14px 0 7px; }
.stage-panel > p { font-size: 9px; color: #93a08b; }
.stage-panel > p b { font-size: 10px; color: #6f8364; font-weight: 400; margin-left: 8px; }
.stage-steps { display: flex; align-items: center; margin-top: 20px; padding: 0 10px; }
.stage-steps > span { display: flex; width: 22px; height: 22px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #cdd8c6; background: #f6f8f3; font-size: 9px; color: #a2af98; }
.stage-steps > span.done { background: #a6ba96; border-color: #a6ba96; color: white; }
.stage-steps .done svg { width: 13px; height: 13px; }
.stage-steps > span.current { color: #fff; background: #56794e; border-color: #56794e; box-shadow: 0 0 0 4px #dce5d5; }
.stage-steps > i { height: 1px; flex: 1; background: #cfdbca; margin: 0 6px; }
.stage-steps > i.done { background: #a7bd98; }
.stage-step-labels { display: flex; justify-content: space-between; color: #8c9b82; font-size: 8px; margin: 9px 0 19px; }
.stage-step-labels > span:nth-child(2) { color: #536f4a; }
.stage-panel > button { padding-top: 14px; border-top: 1px solid #dce5d4; width: 100%; justify-content: space-between; font-size: 9px; color: #718367; }
.companion-card { display: flex; align-items: center; gap: 11px; text-align: left; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.companion-avatar { display: flex; justify-content: center; align-items: center; flex-shrink: 0; width: 36px; height: 36px; background: #f2efe5; color: #a39573; border-radius: 50%; }
.companion-avatar svg { height: 20px; width: 20px; stroke-width: 1.3; }
.companion-card strong { font-size: 10px; font-weight: 500; }
.companion-card small { display: block; font-size: 8px; color: #98a091; margin-top: 3px; }
.companion-card > svg { margin-left: auto; height: 15px; width: 15px; color: #8a9a7f; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 8px; color: #9aa397; border-top: 1px solid #e7ece5; margin-top: 30px; padding-top: 18px; letter-spacing: .3px; }
.page-footer i { margin: 0 8px; font-style: normal; }
.mobile-brand, .mobile-nav { display: none; }
/* Secondary views share the same calm layout and actual working controls. */
.secondary-heading { margin-bottom: 26px; }
.secondary-heading h1 { font-size: 29px; font-weight: 550; margin: 7px 0; }
.secondary-heading p { font-size: 12px; color: var(--muted); }
.wide-panel { background: white; border: 1px solid var(--line); padding: 30px; border-radius: var(--radius); margin-bottom: 22px; }
.wide-panel h2 { font-size: 18px; font-weight: 550; margin-bottom: 8px; }
.wide-panel > p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.plan-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.plan-overview .stage-panel { margin: 0; }
.plan-overview .button { margin-top: 24px; }
.plan-overview ul { padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 2; }
.plan-list { display: flex; flex-direction: column; gap: 12px; }
.plan-row { display: flex; align-items: center; gap: 20px; background: white; border: 1px solid var(--line); padding: 14px 20px 14px 14px; border-radius: 12px; }
.plan-row .mini-art { height: 80px; width: 124px; background: var(--mint); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.plan-row h3 { font-size: 14px; font-weight: 550; }
.plan-row p { color: var(--muted); font-size: 10px; margin-top: 5px; }
.plan-row > button { margin-left: auto; flex-shrink: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter-button { border: 1px solid var(--line); padding: 7px 18px; border-radius: 20px; background: white; font-size: 11px; color: var(--muted); }
.filter-button.active { background: var(--green); color: white; border-color: var(--green); }
.library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.library-grid .movement-visual { height: 180px; }
.library-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 24px; background: #edf2e6; border: 1px solid #e2e9d9; border-radius: 14px; margin-bottom: 22px; }
.library-intro p { font-size: 12px; color: #63775b; margin-top: 9px; line-height: 1.8; }
.library-intro .text-button { flex-shrink: 0; min-height: 44px; }
.library-search { display: flex; align-items: center; gap: 12px; background: white; border: 1px solid #d7e1cf; border-radius: 11px; padding: 0 16px; margin-bottom: 18px; }
.library-search > svg { width: 19px; height: 19px; color: #819377; flex-shrink: 0; }
.library-search input { width: 100%; min-width: 0; height: 49px; border: 0; background: transparent; outline: none; color: var(--ink); font-size: 14px; }
.library-search:focus-within { outline: 2px solid #7e9a6b; outline-offset: 3px; }
.library-search input::placeholder { color: #8a9681; }
.library-result-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin: 0 0 17px; font-size: 12px; color: #63775b; }
.library-result-heading > span { color: #7f8d75; font-size: 11px; }
.library-empty { grid-column: 1 / -1; }
.library-empty .text-button { margin: 18px auto 0; min-height: 44px; }
.library-footnote { margin-top: 28px; }
.region-art { filter: none; }
.detail-art { position: relative; }
.detail-art-caption { position: absolute; bottom: 7px; left: 0; right: 0; text-align: center; font-size: 10px; color: #667c59; }
.exercise-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #67785f; font-size: 12px; margin: 16px 0 22px; }
.detail-subtitle { font-size: 14px; font-weight: 550; margin: 16px 0 10px; }
.exercise-steps { margin: 0; padding-left: 23px; font-size: 13px; color: #617257; line-height: 1.9; }
.exercise-steps li { margin: 8px 0; padding-left: 4px; }
.exercise-steps li::marker { color: #719459; font-weight: 600; }
.exercise-caution { margin-top: 19px; padding: 14px 16px; background: #f7f2e8; border-radius: 9px; font-size: 12px; color: #776c50; }
.info-dialog .exercise-caution p { margin: 5px 0 0; color: #776c50; font-size: 12px; line-height: 1.8; }
.exercise-source { display: flex; flex-direction: column; gap: 6px; border: 1px solid #e1e8d9; border-radius: 9px; padding: 13px 15px; margin-top: 18px; text-decoration: none; color: #47705a; font-size: 12px; line-height: 1.7; }
.exercise-source span { color: #6f8064; font-size: 10px; }
.exercise-source strong { font-weight: 500; }
.exercise-source:hover { border-color: #9eaf8e; background: #f6f8f0; }
.info-dialog .source-context { font-size: 11px; color: #7c856f; line-height: 1.8; margin-top: 9px; }
.source-list .exercise-source { margin-top: 10px; }
.exercise-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.info-dialog .exercise-detail-actions .button { margin: 0; flex: 1 1 150px; }
.empty-state { padding: 64px 24px; text-align: center; background: white; border: 1px dashed #d7e2d8; border-radius: var(--radius); color: var(--muted); }
.empty-state > svg { width: 38px; height: 38px; color: #a2b49a; margin-bottom: 15px; }
.empty-state h2 { font-size: 17px; color: var(--ink); font-weight: 500; }
.empty-state p { font-size: 12px; margin-top: 10px; }
.records-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chart-header span { font-size: 10px; color: var(--muted); }
.progress-chart { width: 100%; height: 185px; }
.chart-days { display: flex; justify-content: space-around; font-size: 10px; color: var(--muted); }
.record-item { display: flex; align-items: start; padding: 17px 0; gap: 15px; border-bottom: 1px solid var(--line); }
.record-item:last-child { border: 0; }
.record-item > .face-icon { width: 30px; height: 30px; }
.record-item b { font-size: 12px; font-weight: 500; }
.record-item p { color: var(--muted); font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; white-space: pre-line; }
.record-item small { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.record-delete { font-size: 10px; color: var(--muted); padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; margin-top: 10px; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.knowledge-card { text-align: left; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; }
.knowledge-art { height: 170px; background: #e9eee1; display: flex; justify-content: center; align-items: center; color: #92a57a; position: relative; }
.knowledge-art:before, .knowledge-art:after { content: ''; width: 100px; height: 100px; border: 1px solid #c7d4b9; border-radius: 50%; position: absolute; }
.knowledge-art:after { width: 150px; height: 150px; }
.knowledge-art svg { height: 48px; width: 48px; stroke-width: 1; }
.knowledge-card:nth-child(2) .knowledge-art { background: #efe9df; color: #b0a077; }
.knowledge-card:nth-child(3) .knowledge-art { background: #e7eeed; color: #8da8a0; }
.knowledge-copy { padding: 20px; }
.knowledge-copy small { font-size: 9px; color: var(--muted); }
.knowledge-copy h2 { font-size: 15px; font-weight: 550; margin-top: 8px; line-height: 1.8; }
.knowledge-copy p { font-size: 11px; margin-top: 10px; color: var(--muted); }
/* Dialogs and the immersive, phone-first guided session. */
dialog { color: var(--ink); border: 0; padding: 0; background: white; box-shadow: 0 24px 100px #162d3040; }
dialog::backdrop { background: #1b302c85; backdrop-filter: blur(5px); }
body:has(dialog[open]) { overflow: hidden; }
dialog:not([open]) { display: none; }
.training-dialog { width: min(1080px,94vw); max-width: none; height: min(755px,94dvh); max-height: 94dvh; border-radius: 22px; overflow: hidden; }
.training-dialog[open] { display: flex; flex-direction: column; }
.training-header { height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; flex-shrink: 0; border-bottom: 1px solid var(--line); }
.training-brand > span:last-child { font-size: 23px; letter-spacing: 2px; }
.training-brand small { letter-spacing: 1px; color: #87917e; font-size: 9px; }
.training-brand .brand-mark { height: 32px; width: 32px; padding: 7px; }
.training-header-actions { display: flex; gap: 16px; align-items: center; }
.voice-toggle { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--green); background: #f1f6ee; border-radius: 22px; min-height: 34px; padding: 5px 12px; }
.voice-toggle svg { width: 15px; height: 15px; }
.voice-toggle[aria-pressed="false"] { color: #8d958a; background: #f3f4f0; }
.training-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; flex: 1; overflow-y: auto; }
.coach-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 370px; background: #edf1e7; overflow: hidden; }
.coach-visual .ready-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.visual-caption { position: absolute; left: 24px; top: 22px; font-size: 9px; color: #84917c; letter-spacing: 1px; background: #ffffffb0; border-radius: 20px; padding: 5px 10px; }
.coach-visual > .movement-art { width: 95%; height: auto; max-height: 400px; }
.visual-bottom { position: absolute; bottom: 28px; left: 24px; right: 24px; text-align: center; color: #8d9a83; font-size: 9px; letter-spacing: 1px; }
.motion-halo { position: absolute; width: 280px; height: 280px; border: 1px solid #d8e1ce; border-radius: 50%; pointer-events: none; }
.motion-halo:after { content: ''; position: absolute; inset: 25px; border: 1px solid #d8e1ce; border-radius: 50%; }
.coach-control { padding: 38px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.session-kicker { color: #8a9980; font-size: 9px; letter-spacing: 2px; margin-bottom: 10px; }
.coach-control h2 { font-size: 27px; line-height: 1.6; font-weight: 550; letter-spacing: .5px; }
.coach-control .intro-description { font-size: 12px; color: #8a9484; line-height: 2; margin-top: 14px; }
.ready-features { display: flex; gap: 18px; margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; color: #7e9076; }
.ready-features span { display: flex; gap: 6px; align-items: center; }
.ready-features svg { height: 16px; width: 16px; }
.coach-control .ready-start { margin-top: 28px; }
.ready-tip { color: #99a08f; font-size: 9px; margin-top: 13px; text-align: center; }
.session-progress { display: flex; gap: 6px; margin-bottom: 27px; }
.session-progress span { flex: 1; height: 4px; background: #ecf0e7; border-radius: 3px; }
.session-progress span.done { background: #9db88b; }
.session-progress span.current { background: var(--green); }
.exercise-type { display: inline-block; font-size: 9px; color: #819572; margin-top: 8px; }
.countdown { font-size: 76px; letter-spacing: -4px; color: var(--green); font-weight: 400; line-height: 1.2; margin-top: 16px; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 12px; letter-spacing: 0; margin-left: 12px; color: #98a18c; }
.timer-label { color: #9a9f8e; font-size: 9px; margin-top: 5px; }
.coach-quote { display: flex; align-items: start; gap: 9px; font-size: 12px; color: #708261; background: #f4f6ee; border-radius: 8px; padding: 14px; margin-top: 22px; line-height: 1.8; min-height: 70px; }
.coach-quote > svg { height: 17px; width: 17px; margin-top: 2px; color: #92a680; }
.speech-status { display: block; font-size: 9px; color: #87917e; line-height: 1.6; min-height: 15px; margin: 7px 0 13px; }
.training-actions { display: flex; gap: 12px; margin-top: 8px; }
.training-actions .button { flex: 1; padding: 0 12px; font-size: 11px; }
.button-secondary { border: 1px solid #dce5d6; background: white; color: #6b805e; }
.button-secondary:hover { background: #f4f7ee; }
.training-link { display: block; color: #9aa18e; font-size: 9px; text-decoration: underline; text-underline-offset: 4px; width: fit-content; align-self: center; margin-top: 18px; padding: 4px; }
.training-footer { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 8px; color: #9aa290; padding: 14px; border-top: 1px solid var(--line); flex-shrink: 0; background: #fbfcf8; }
.training-footer svg { height: 12px; width: 12px; }
.rest-breath { width: 190px; height: 190px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #8ea178; background: #dfe9d5; box-shadow: 0 0 0 28px #e6eddc,0 0 0 56px #eaf0e1; animation: breathe 5s ease-in-out infinite; }
.rest-breath svg { width: 62px; height: 62px; stroke-width: 1; }
.next-exercise { position: absolute; bottom: 35px; color: #859677; font-size: 10px; }
.paused .rest-breath, .paused .animated-limb { animation-play-state: paused; }
.animated-limb { transform-origin: 121px 103px; animation: gentle-move 5s ease-in-out infinite; }
.summary-visual { background: #eaf0df; }
.summary-flower { width: 150px; height: 150px; color: #8eaa75; stroke-width: 1; }
.summary-stats { display: flex; gap: 40px; margin: 23px 0; }
.summary-stats strong { display: block; font-size: 30px; font-weight: 450; color: var(--green); }
.summary-stats small { color: var(--muted); font-size: 10px; }
.summary-control .button { margin-top: 12px; }
.info-dialog, .feedback-dialog { width: min(480px,calc(100vw - 32px)); max-width: none; border-radius: 20px; max-height: 90dvh; padding: 26px; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.dialog-header .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
.info-dialog h2 { font-size: 23px; line-height: 1.6; font-weight: 550; margin: 8px 0 15px; }
.info-dialog p { font-size: 12px; color: #849079; line-height: 2; margin-top: 12px; white-space: pre-line; }
.info-dialog .detail-art { border-radius: 12px; overflow: hidden; height: 195px; margin-bottom: 20px; background: var(--mint); }
.info-dialog .button { width: 100%; margin-top: 23px; }
.info-note { background: #f4f6ef; border-radius: 8px; padding: 14px; font-size: 11px; line-height: 1.9; color: #839176; margin-top: 18px; }
.feedback-dialog { width: min(490px,calc(100vw - 32px)); }
.feedback-heart { color: #8ea979; background: #f0f4e6; border-radius: 50%; height: 48px; width: 48px; display: flex; align-items: center; justify-content: center; margin: 4px auto 15px; }
.feedback-heart svg { width: 25px; height: 25px; stroke-width: 1.3; }
.feedback-dialog > h2 { font-size: 21px; font-weight: 550; text-align: center; }
.dialog-description { color: var(--muted); font-size: 11px; margin-top: 8px; text-align: center; }
fieldset { border: 0; padding: 0; margin: 26px 0 22px; }
legend { padding: 0; color: #687c5c; font-size: 11px; }
.feedback-moods { display: flex; justify-content: space-between; margin-top: 10px; }
.feedback-moods .feeling-button { min-width: 60px; }
.pain-label { display: flex; align-items: center; justify-content: space-between; color: #6f7f64; font-size: 11px; }
.pain-label output { background: #eff4e6; border-radius: 4px; padding: 2px 7px; font-size: 10px; }
input[type="range"] { accent-color: var(--green); width: 100%; margin: 16px 0 8px; height: 24px; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: #99a08e; font-size: 9px; }
.notes-label { display: flex; gap: 8px; font-size: 11px; color: #6d7b62; margin: 23px 0 9px; }
.notes-label span { color: #a3aa9a; font-size: 10px; }
textarea { width: 100%; border: 1px solid #e3e9dc; background: #fafbf7; padding: 12px; border-radius: 8px; color: var(--ink); resize: vertical; min-height: 80px; max-height: 150px; font-size: 11px; }
textarea::placeholder { color: #abb1a1; }
.feedback-submit { width: 100%; margin-top: 20px; }
.toast { position: fixed; left: calc(50% + 110px); bottom: 28px; z-index: 100; transform: translate(-50%,20px); border-radius: 9px; background: #284c3ff5; color: #f2f7e9; padding: 13px 21px; font-size: 12px; box-shadow: 0 4px 22px #1c352b20; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
dialog .toast { left: 50%; bottom: 22px; }
/* Supporting copy remains readable without competing with the main action. */
.page-heading p, .stat-label, .stat-foot, .movement-info p, .movement-bottom,
.week-caption, .weekly-bottom, .weekly-message, .feeling-panel > p,
.privacy-caption, .stage-panel > p, .stage-step-labels, .companion-card small,
.page-footer, .ready-tip, .speech-status, .timer-label, .exercise-type,
.session-kicker, .training-footer, .visual-bottom, .next-exercise, .range-labels,
.dialog-description, .notes-label span, .article-row small, .sidebar-bottom > span { color: #687660; }
.hero-label, .hero-copy > p, .hero-meta, .hero-caption, .gentle-note p { color: #5d7151; }
.stat-label, .movement-info p { font-size: 10px; }
.stat-foot { font-size: 9px; }
.movement-title h3 { font-size: 13px; }
@keyframes breathe { 0%,100% { transform: scale(.91); } 50% { transform: scale(1.06); } }
@keyframes gentle-move { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }
@media (min-width: 1580px) { .hero-card { height: 330px; } .hero-copy { padding: 33px 38px; } .hero-copy h2 { font-size: 31px; } .movement-visual { height: 160px; } }
@media (max-width: 1240px) {
  .sidebar { width: 196px; padding-left: 15px; padding-right: 15px; }
  .sidebar .brand { margin-left: 7px; gap: 9px; }
  .brand > span:last-child { gap: 7px; font-size: 24px; }
  .brand small { font-size: 8px; letter-spacing: 1px; }
  .workspace { margin-left: 196px; }
  .page-content { padding: 28px 25px 20px; }
  .topbar { padding: 0 25px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) 252px; gap: 18px; }
  .panel, .stage-panel { padding: 18px; }
  .hero-copy { padding: 26px 23px; }
  .hero-copy h2 { font-size: 24px; }
  .hero-photo { width: 62%; }
  .stats-grid { gap: 9px; }
  .stat-card { padding: 15px 11px; gap: 9px; }
  .stat-icon { width: 28px; height: 28px; border-radius: 8px; }
  .stat-value { font-size: 25px; }
  .stat-feeling { font-size: 18px; }
  .stat-foot { font-size: 7px; }
  .stat-sparkline { display: none; }
  .movement-grid { gap: 10px; }
  .movement-info { padding: 12px; }
  .movement-title h3 { font-size: 11px; }
  .movement-visual { height: 117px; }
  .note-scribble { display: none; }
  .toast { left: calc(50% + 98px); }
}
@media (max-width: 1020px) {
  .sidebar { width: 180px; padding: 30px 12px 20px; }
  .brand > span:last-child { display: block; font-size: 24px; }
  .sidebar .brand small { display: block; line-height: 1; font-size: 6px; letter-spacing: 1px; margin-top: 2px; }
  .sidebar .brand-mark { width: 34px; height: 34px; padding: 8px; }
  .nav-label { margin-top: 40px; }
  .nav-link { padding: 0 12px; gap: 11px; font-size: 12px; }
  .sidebar-stage { padding: 17px 13px; }
  .workspace { margin-left: 180px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .right-column { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-copy { padding: 25px 28px; }
  .hero-copy h2 { font-size: 28px; }
  .hero-photo { width: 70%; }
  .movement-visual { height: 140px; }
  .stat-card { padding: 18px 16px; }
  .date-button { font-size: 9px; gap: 6px; }
  .page-heading h1 { font-size: 27px; }
  .companion-card { align-self: start; }
  .library-grid, .knowledge-grid { grid-template-columns: 1fr 1fr; }
  .records-grid { grid-template-columns: 1fr; }
  .plan-overview { grid-template-columns: 1fr; }
  .toast { left: calc(50% + 90px); }
  .training-dialog { height: min(755px,92dvh); }
  .coach-control { padding: 30px; }
  .coach-control h2 { font-size: 24px; }
}
@media (max-width: 767px) {
  body { background: #f7f9f6; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .topbar { height: 72px; padding: 0 22px; border: 0; background: #f7f9f6; }
  .breadcrumb, .topbar-divider, .profile-button > span:nth-child(2), .profile-button > svg { display: none; }
  .mobile-brand { display: flex; gap: 9px; }
  .mobile-brand .brand-mark { width: 30px; height: 30px; padding: 7px; border-radius: 9px; }
  .mobile-brand > span:last-child { font-size: 23px; letter-spacing: 2px; }
  .topbar-actions { gap: 11px; }
  .demo-tag { font-size: 8px; padding: 2px 5px; }
  .avatar { width: 31px; height: 31px; font-size: 13px; border-width: 2px; }
  .icon-button { width: 34px; height: 34px; }
  .notification-button svg { width: 19px; height: 19px; }
  .page-content { padding: 14px 22px calc(90px + env(safe-area-inset-bottom)); }
  .page-heading { align-items: start; margin-bottom: 22px; }
  .page-heading .eyebrow { font-size: 8px; letter-spacing: 1.7px; }
  .page-heading h1 { font-size: 27px; gap: 10px; margin: 6px 0; }
  .greeting-sun { width: 24px; height: 24px; }
  .page-heading p { font-size: 11px; }
  .date-button { background: none; padding: 0; border: 0; font-size: 9px; width: 60px; line-height: 1.8; text-align: right; margin-top: 28px; }
  .date-button > svg { display: none; }
  .dashboard-grid { gap: 24px; }
  .hero-card { height: 314px; border-radius: 15px; }
  .hero-copy { padding: 22px; }
  .hero-copy h2 { font-size: 24px; letter-spacing: .2px; line-height: 1.6; margin-top: 11px; }
  .hero-copy > p { font-size: 9px; margin-top: 12px; }
  .hero-meta { font-size: 9px; gap: 8px; margin: 13px 0 20px; }
  .hero-label { font-size: 8px; }
  .hero-photo { width: 100%; object-position: 80% center; opacity: .8; }
  .hero-wash { background: linear-gradient(90deg,#e9eee3 0%,rgba(233,238,227,.97) 34%,rgba(233,238,227,.7) 54%,rgba(233,238,227,.02) 92%); }
  .hero-card .button { min-height: 43px; font-size: 11px; padding: 0 16px; }
  .hero-card .button > svg:last-child { margin-left: 8px; }
  .hero-caption { font-size: 7px; margin-top: 12px; }
  .hero-image-note { font-size: 7px; right: 14px; bottom: 14px; letter-spacing: 1px; }
  .stats-grid { margin-top: 14px; gap: 8px; }
  .stat-card { display: block; min-height: 138px; padding: 12px; border-radius: 10px; }
  .stat-icon { height: 26px; width: 26px; margin-bottom: 9px; border-radius: 7px; }
  .stat-icon svg { width: 15px; height: 15px; }
  .stat-label { font-size: 8px; }
  .stat-value { font-size: 25px; line-height: 1.55; }
  .stat-value small { font-size: 9px; }
  .stat-feeling { font-size: 17px; line-height: 2.28; white-space: nowrap; }
  .stat-feeling > span { font-size: 13px; margin-left: 0; }
  .stat-foot { font-size: 7px; white-space: normal; line-height: 1.5; display: block; }
  .today-movements { margin-top: 26px; }
  .section-heading { margin-bottom: 15px; }
  .section-heading h2 { font-size: 15px; gap: 7px; }
  .text-button { font-size: 9px; gap: 5px; }
  .text-button svg { height: 13px; width: 13px; }
  .count-tag { font-size: 8px; padding: 1px 5px; }
  .movement-grid { display: flex; gap: 12px; overflow-x: auto; margin: 0 -22px; padding: 0 22px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .movement-grid::-webkit-scrollbar { display: none; }
  .movement-card { flex: 0 0 63%; scroll-snap-align: center; }
  .movement-visual { height: 148px; }
  .movement-info { padding: 14px; }
  .movement-title h3 { font-size: 13px; }
  .movement-info p { font-size: 10px; }
  .movement-bottom { font-size: 9px; }
  .gentle-note { margin-top: 17px; padding: 16px 14px; gap: 10px; }
  .gentle-note h3 { font-size: 11px; }
  .gentle-note p { font-size: 9px; line-height: 1.8; }
  .learning-teaser { margin-top: 25px; }
  .article-row { gap: 12px; padding: 13px; }
  .article-art { flex-shrink: 0; width: 47px; height: 47px; }
  .article-row b { font-size: 10px; line-height: 1.8; }
  .right-column { display: flex; gap: 18px; }
  .panel, .stage-panel { padding: 22px; }
  .weekly-panel .section-heading h2, .feeling-panel .section-heading h2 { font-size: 15px; }
  .week-caption { font-size: 11px; }
  .day-button { font-size: 10px; }
  .day-number { width: 34px; height: 40px; font-size: 12px; }
  .weekly-bottom { font-size: 10px; }
  .weekly-message { font-size: 10px; }
  .feeling-panel > p { font-size: 11px; }
  .feeling-button { font-size: 10px; min-width: 55px; gap: 7px; padding: 9px; }
  .face-icon { width: 37px; height: 37px; }
  .feeling-save { min-height: 40px; font-size: 11px; }
  .stage-panel h2 { font-size: 19px; }
  .stage-panel-head { font-size: 11px; }
  .stage-steps { padding: 0 14px; }
  .stage-step-labels { font-size: 9px; }
  .companion-card { width: 100%; padding: 20px; }
  .companion-card strong { font-size: 12px; }
  .companion-card small { font-size: 10px; }
  .page-footer { margin-top: 28px; line-height: 1.9; font-size: 8px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; background: #fffffff5; border-top: 1px solid #e5ece2; backdrop-filter: blur(12px); justify-content: space-around; padding: 9px 8px calc(9px + env(safe-area-inset-bottom)); }
  .mobile-nav > button { display: flex; flex-direction: column; gap: 3px; align-items: center; color: #9da795; min-width: 49px; min-height: 44px; font-size: 9px; }
  .mobile-nav svg { width: 21px; height: 21px; stroke-width: 1.5; }
  .mobile-nav > button.active { color: var(--green); font-weight: 600; }
  .mobile-nav > button.active svg { fill: #ebf1e5; }
  .secondary-heading h1 { font-size: 26px; }
  .wide-panel { padding: 22px; }
  .plan-overview { gap: 20px; }
  .plan-row { padding: 10px; gap: 12px; }
  .plan-row .mini-art { width: 75px; height: 67px; }
  .plan-row h3 { font-size: 12px; }
  .plan-row p { font-size: 9px; }
  .plan-row .text-button { font-size: 9px; }
  .library-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .library-grid .movement-card { min-width: 0; }
  .library-grid .movement-visual { height: 115px; }
  .library-grid .movement-title h3 { font-size: 11px; }
  .library-grid .movement-info { padding: 11px; }
  .knowledge-grid { grid-template-columns: 1fr; gap: 18px; }
  .knowledge-art { height: 150px; }
  .toast { left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); width: max-content; font-size: 11px; }
  .training-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .training-header { height: 68px; min-height: 68px; padding: env(safe-area-inset-top) 20px 0; }
  .training-brand { gap: 8px; }
  .training-brand > span:last-child { display: flex; font-size: 20px; gap: 6px; letter-spacing: 1px; }
  .training-brand .brand-mark { height: 27px; width: 27px; padding: 6px; gap: 2px; border-radius: 8px; }
  .training-brand small { font-size: 8px; }
  .training-header-actions { gap: 6px; }
  .voice-toggle { font-size: 9px; gap: 5px; padding: 5px 9px; }
  .voice-toggle svg { width: 14px; height: 14px; }
  .training-body { display: flex; flex-direction: column; }
  .coach-visual { min-height: 215px; max-height: 32dvh; flex-shrink: 0; }
  .coach-visual .ready-photo { object-position: center 45%; }
  .coach-visual:has(.ready-photo) { min-height: 240px; max-height: 35dvh; }
  .coach-visual > .movement-art { max-width: 340px; max-height: 220px; }
  .visual-caption { top: 14px; left: 20px; font-size: 8px; padding: 3px 8px; }
  .visual-bottom { font-size: 8px; bottom: 12px; }
  .motion-halo { height: 170px; width: 170px; }
  .motion-halo:after { inset: 17px; }
  .coach-control { padding: 24px; flex: 1; justify-content: start; }
  .session-kicker { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 7px; }
  .coach-control h2 { font-size: 24px; line-height: 1.5; }
  .coach-control .intro-description { font-size: 11px; line-height: 1.9; margin-top: 10px; }
  .ready-features { font-size: 10px; gap: 18px; margin-top: 18px; padding: 14px 0; }
  .coach-control .ready-start { margin-top: 20px; min-height: 46px; }
  .ready-tip { font-size: 9px; margin-top: 11px; }
  .session-progress { margin-bottom: 17px; }
  .countdown { font-size: 64px; margin-top: 10px; line-height: 1.1; }
  .coach-quote { font-size: 11px; margin-top: 16px; min-height: 58px; padding: 11px; }
  .training-actions { margin-top: 4px; gap: 10px; }
  .training-actions .button { min-height: 45px; font-size: 12px; }
  .speech-status { font-size: 8px; margin: 6px 0 10px; }
  .training-link { margin-top: 12px; font-size: 9px; }
  .training-footer { padding: 11px 18px calc(11px + env(safe-area-inset-bottom)); font-size: 7px; line-height: 1.8; }
  .rest-breath { width: 108px; height: 108px; box-shadow: 0 0 0 20px #e6eddc,0 0 0 40px #eaf0e1; }
  .rest-breath svg { height: 40px; width: 40px; }
  .next-exercise { bottom: 15px; font-size: 9px; }
  .summary-flower { width: 100px; height: 100px; }
  .summary-stats { margin: 20px 0; }
  .summary-control .button { min-height: 45px; }
  .info-dialog, .feedback-dialog { padding: 22px; }
  .feedback-dialog > h2 { font-size: 19px; }
  .feedback-dialog .feeling-button { min-width: 50px; padding: 8px; }
}
@media (max-width: 359px) {
  .topbar { padding: 0 16px; }
  .page-content { padding-left: 16px; padding-right: 16px; }
  .demo-tag { display: none; }
  .hero-copy { padding: 20px 17px; }
  .hero-copy h2 { font-size: 22px; }
  .hero-card { height: 300px; }
  .hero-meta { gap: 6px; font-size: 8px; }
  .hero-caption { font-size: 6.5px; }
  .stat-card { padding: 10px; }
  .stat-feeling { font-size: 15px; line-height: 2.6; }
  .movement-grid { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .section-heading h2 { font-size: 14px; }
  .feeling-button { min-width: 42px; padding: 7px 4px; }
  .training-brand small { display: none; }
  .coach-control { padding: 20px; }
  .coach-control h2 { font-size: 22px; }
  .coach-visual { min-height: 175px; }
  .coach-visual:has(.ready-photo) { min-height: 195px; }
  .countdown { font-size: 57px; }
}
@media (max-width: 767px) {
  .page-heading p { font-size: 12px; }
  .hero-label, .hero-copy > p, .hero-meta { font-size: 10px; }
  .hero-caption { font-size: 8px; }
  .hero-copy h2 { font-size: 25px; }
  .hero-meta { margin-bottom: 17px; }
  .stat-label { font-size: 10px; }
  .stat-foot { font-size: 9px; }
  .stat-card { min-height: 151px; }
  .movement-info p { font-size: 11px; }
  .movement-bottom, .movement-seq { font-size: 10px; }
  .text-button { font-size: 11px; }
  .gentle-note h3 { font-size: 13px; }
  .gentle-note p { font-size: 11px; }
  .article-row b { font-size: 12px; }
  .article-row small, .privacy-caption { font-size: 10px; }
  .topbar .icon-button, .training-header .icon-button { width: 42px; height: 42px; }
  .voice-toggle { min-height: 42px; }
  .training-header-actions { gap: 3px; }
  .training-link { font-size: 11px; min-height: 36px; margin-top: 8px; }
  .session-kicker, .exercise-type, .timer-label, .speech-status, .ready-tip { font-size: 10px; }
  .coach-control .intro-description { font-size: 13px; }
  .coach-quote { font-size: 13px; }
  .coach-control { padding-top: 21px; }
  .ready-features { font-size: 11px; }
  .training-footer { font-size: 8px; }
  .info-dialog p { font-size: 14px; }
  .info-note { font-size: 12px; }
  .feedback-dialog > .dialog-description { font-size: 12px; }
  legend, .pain-label, .notes-label { font-size: 13px; }
  textarea { font-size: 13px; }
}
@media (max-width: 359px) {
  .hero-copy h2 { font-size: 22px; }
  .hero-caption { font-size: 7px; }
  .hero-meta { gap: 5px; font-size: 9px; }
  .stat-foot { font-size: 8px; }
  .stat-label { font-size: 9px; }
  .coach-control { padding: 18px; }
  .coach-quote { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Personal plans: common settings, with optional overrides for every set. */
.hero-plan-edit { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; min-height: 44px; color: #536e49; font-size: 11px; padding: 0 4px; vertical-align: middle; }
.hero-copy > p { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movement-title h3, .plan-row h3, .coach-control h2 { overflow-wrap: anywhere; }
.coach-quote > span { max-height: 75px; overflow: auto; }
.hero-plan-edit svg { width: 14px; height: 14px; }
.hero-caption > button { text-decoration: underline; text-underline-offset: 3px; color: #4f6848; padding: 0 0 0 6px; font-size: inherit; }
.plan-overview-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.plan-overview .plan-overview-actions .button { margin-top: 0; }
.plan-detailed-row { display: block; padding: 16px; }
.plan-row-main { display: flex; gap: 18px; align-items: center; }
.plan-row-main > div:nth-child(2) { flex: 1; min-width: 0; }
.plan-row-main > div:nth-child(2) p { overflow-wrap: anywhere; }
.plan-row-main > button { flex-shrink: 0; }
.plan-set-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 13px 0 0 143px; }
.plan-set-chips > span { padding: 8px 11px; border: 1px solid #e8ede2; border-radius: 7px; font-size: 11px; color: #687b5b; background: #f8faf4; }
.plan-set-chips b { font-weight: 500; display: block; font-size: 10px; color: #89947e; margin-bottom: 3px; }
.plan-set-chips small { display: block; font-size: 9px; color: #7f8975; margin-top: 3px; }
.add-plan-entry { width: 100%; margin-top: 18px; border-style: dashed; }
.ready-plan-preview { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; max-height: 125px; overflow: auto; }
.ready-plan-preview > span { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #6f8062; }
.ready-plan-preview b { font-size: 10px; font-weight: 400; color: #97a08b; }
.ready-features { gap: 12px; align-items: center; }
.ready-features > button { display: flex; gap: 5px; align-items: center; padding: 0; color: inherit; font-size: 9px; min-height: 25px; }
.rep-countdown .rep-total { font-size: 24px; letter-spacing: -1px; }
.rep-countdown { font-size: 89px; }
.plan-editor { width: min(890px,calc(100vw - 32px)); height: min(880px,94dvh); max-height: 94dvh; max-width: none; border-radius: 20px; overflow: hidden; }
.plan-editor form { height: 100%; display: flex; flex-direction: column; }
.editor-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 26px 30px 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.editor-header h2 { font-size: 24px; font-weight: 550; margin: 5px 0; }
.editor-header p { font-size: 12px; color: #78876c; }
.editor-scroll { padding: 22px 30px; overflow: auto; flex: 1; min-height: 0; background: #f7f9f5; }
.editor-plan-name { display: block; color: #6c805d; font-size: 12px; }
.editor-plan-name input { display: block; width: 100%; padding: 11px 14px; background: white; border: 1px solid #dce5d4; border-radius: 8px; margin-top: 8px; color: var(--ink); font-size: 15px; }
.editor-week { display: flex; align-items: center; gap: 12px; padding: 18px 0; color: #78896c; font-size: 11px; }
.editor-week > div { display: flex; gap: 6px; }
.editor-week > small { margin-left: auto; font-size: 9px; color: #8b967f; }
.plan-day { height: 30px; width: 30px; border-radius: 50%; border: 1px solid #e0e7d9; background: #fff; color: #99a08e; font-size: 10px; }
.plan-day.selected { background: #e4edd9; color: #547244; border-color: #c4d7b5; }
.editor-card { background: white; border: 1px solid #e1e8da; border-radius: 12px; padding: 18px; margin: 5px 0 18px; }
.editor-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.editor-number { font-size: 11px; color: #99ac87; background: #eff4e8; width: 27px; height: 27px; display: flex; align-items: center; justify-content: center; border-radius: 7px; flex-shrink: 0; }
.editor-action-name { min-width: 0; font-size: 15px; color: var(--ink); border: 0; border-bottom: 1px solid transparent; padding: 5px 0; width: 100%; }
.editor-action-name:hover, .editor-action-name:focus { border-bottom-color: #c8d9bb; }
.editor-reorder { display: flex; align-items: center; margin-left: auto; gap: 3px; }
.editor-reorder button { width: 28px; height: 30px; border-radius: 5px; color: #8c9a7d; background: #f7f9f4; font-size: 16px; }
.editor-reorder button svg { height: 14px; width: 14px; vertical-align: middle; }
.editor-common-fields { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.editor-field { display: flex; flex-direction: column; gap: 7px; font-size: 10px; color: #6f805f; min-width: 0; }
.editor-field > div { display: flex; align-items: center; background: #f7f9f4; border: 1px solid #e2e9db; border-radius: 7px; padding-right: 8px; min-height: 39px; }
.editor-field input { width: 100%; min-width: 0; height: 37px; background: transparent; border: 0; padding: 7px 0 7px 10px; border-radius: 7px; color: #3e5e32; font-size: 14px; -moz-appearance: textfield; }
.editor-field input::-webkit-inner-spin-button { opacity: .35; width: 10px; }
.editor-field small { font-size: 10px; white-space: nowrap; color: #8d9b7d; }
.editor-field select { width: 100%; height: 39px; padding: 5px 7px; border-radius: 7px; border: 1px solid #e2e9db; background: #f7f9f4; color: #547144; font-size: 12px; }
.set-details { margin-top: 17px; border-top: 1px solid #edf0e7; }
.set-details > summary { display: flex; align-items: center; font-size: 11px; color: #6b8557; padding-top: 13px; cursor: pointer; list-style: none; gap: 12px; }
.set-details > summary::-webkit-details-marker { display: none; }
.set-details > summary > span { font-size: 9px; color: #93a086; }
.set-details > summary > svg { width: 13px; height: 13px; transform: rotate(90deg); margin-left: auto; }
.set-details[open] > summary > svg { transform: rotate(-90deg); }
.individual-sets { padding-top: 10px; }
.individual-set { display: grid; grid-template-columns: 60px repeat(4,minmax(0,1fr)); gap: 14px; padding: 13px 0; align-items: end; border-bottom: 1px solid #edf0e7; }
.individual-set > strong { font-size: 11px; color: #799366; font-weight: 500; padding-bottom: 11px; }
.editor-notes-label { display: block; font-size: 10px; color: #81946e; margin-top: 15px; }
.editor-notes-label > input { width: 100%; display: block; font-size: 11px; padding: 8px 0; border: 0; border-bottom: 1px solid #edf0e7; color: var(--ink); background: white; margin-top: 4px; }
.editor-notes-label > input::placeholder { color: #a6af9b; }
.add-action-panel { background: #eef3e6; border: 1px dashed #c7d7b8; border-radius: 12px; padding: 19px; }
.add-action-panel h3 { font-size: 14px; font-weight: 500; }
.add-action-panel p { font-size: 10px; margin-top: 4px; color: #829372; }
.add-action-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.add-action-buttons > button { display: inline-flex; gap: 5px; align-items: center; border: 1px solid #d5e1c8; border-radius: 6px; background: #fff9; color: #6d8759; font-size: 10px; min-height: 32px; padding: 5px 9px; }
.add-action-buttons svg { height: 12px; width: 12px; }
.add-action-buttons { align-items: flex-end; }
.catalog-picker { flex: 1; min-width: 0; color: #677d56; font-size: 11px; }
.catalog-picker select { display: block; width: 100%; height: 43px; padding: 8px 10px; margin-top: 8px; color: #405e32; background: white; border: 1px solid #cbd9be; border-radius: 7px; font-size: 14px; }
.add-action-buttons > button[data-planner="addSelected"] { min-height: 43px; padding: 0 13px; font-size: 12px; }
.custom-action-row { display: flex; gap: 10px; margin-top: 13px; }
.custom-action-row > input { min-width: 0; flex: 1; border: 1px solid #d6e0c9; border-radius: 7px; padding: 9px; font-size: 12px; color: #526946; }
.custom-action-row .button { min-height: 38px; font-size: 11px; padding: 0 14px; }
.editor-medical-note { font-size: 10px; color: #82926f; margin-top: 18px; }
.editor-footer { display: flex; align-items: center; gap: 14px; padding: 18px 30px; border-top: 1px solid #e4ebdc; background: white; flex-shrink: 0; }
.editor-footer > span { margin-left: auto; color: #8a9c78; font-size: 10px; }
.editor-footer .button { min-height: 42px; }
/* Voice settings make device limits and optional human recordings explicit. */
.voice-dialog { width: min(490px,calc(100vw - 30px)); max-width: none; max-height: 91dvh; padding: 25px; border-radius: 20px; overflow: auto; }
.voice-title-icon { height: 42px; width: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #edf3e4; color: #8ea774; margin-bottom: 15px; }
.voice-dialog h2 { font-size: 21px; font-weight: 550; margin-bottom: 9px; }
.voice-explanation { color: #7b8c6b; font-size: 12px; line-height: 1.9; }
.voice-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; font-size: 12px; color: #526c42; }
.voice-setting-row small { display: block; color: #8d9b7b; font-size: 10px; margin-top: 3px; }
.switch-input { appearance: none; -webkit-appearance: none; width: 36px; height: 21px; background: #dce4d3; border-radius: 14px; position: relative; cursor: pointer; flex-shrink: 0; margin: 0; }
.switch-input:before { content: ''; width: 15px; height: 15px; background: white; position: absolute; border-radius: 50%; left: 3px; top: 3px; transition: transform .15s; }
.switch-input:checked { background: var(--green); }
.switch-input:checked:before { transform: translateX(15px); }
.voice-select-label { display: block; font-size: 11px; color: #6b825a; }
.voice-select-label select { display: block; width: 100%; border: 1px solid #dde6d3; background: #f8faf4; color: #506b40; padding: 11px; margin-top: 8px; border-radius: 7px; font-size: 12px; }
.voice-speed-label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #6b825a; margin-top: 20px; }
.voice-speed-label output { color: #7f946a; font-size: 10px; }
.voice-style-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 21px; }
.voice-style-options > label { display: flex; align-items: start; gap: 7px; padding: 12px; border: 1px solid #e0e8d7; background: #fafcf6; border-radius: 8px; cursor: pointer; }
.voice-style-options > label:has(:checked) { border-color: #acc498; background: #f0f5e8; }
.voice-style-options input { accent-color: var(--green); }
.voice-style-options b { display: block; font-size: 11px; color: #66844f; font-weight: 500; }
.voice-style-options small { display: block; font-size: 9px; color: #8a9a78; margin-top: 4px; }
.voice-test-button { width: 100%; }
.voice-preview-status { font-size: 10px; color: #82956e; line-height: 1.8; margin-top: 10px; min-height: 25px; }
.recording-details { border-top: 1px solid #e6ecdd; margin-top: 15px; padding-top: 17px; }
.recording-details summary { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #6e8956; cursor: pointer; list-style: none; }
.recording-details summary::-webkit-details-marker { display: none; }
.recording-details summary svg { height: 16px; width: 16px; }
.recording-details summary svg:last-child { margin-left: auto; height: 12px; width: 12px; transform: rotate(90deg); }
.recording-details > p { font-size: 11px; line-height: 1.9; margin-top: 13px; color: #8a9879; }
.recording-slots { margin-top: 15px; }
.recording-slot { display: flex; position: relative; padding: 13px 0; border-bottom: 1px solid #ecf0e6; justify-content: space-between; align-items: center; font-size: 11px; color: #698551; cursor: pointer; }
.recording-slot small { display: block; color: #94a281; font-size: 9px; margin-top: 3px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recording-slot .recording-file-label { color: #80976a; font-size: 10px; padding: 5px 8px; border: 1px solid #dce6d1; border-radius: 4px; }
.recording-slot input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.number-clips-label { display: block; color: #6f8959; font-size: 11px; margin-top: 17px; }
.number-clips-label input { display: block; width: 100%; font-size: 10px; margin: 8px 0; }
.number-clips-label small { font-size: 9px; color: #94a07f; }
@media(max-width:767px) {
  .hero-plan-edit { font-size: 10px; margin-left: 5px; }
  .hero-caption > button { font-size: 8px; }
  .plan-overview-actions { gap: 8px; }
  .plan-overview-actions .button { font-size: 11px; padding: 0 13px; }
  .plan-row-main { gap: 12px; }
  .plan-set-chips { margin-left: 0; gap: 7px; }
  .plan-set-chips > span { font-size: 11px; flex: 1 0 75px; }
  .plan-set-chips small { font-size: 9px; }
  .plan-editor { width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .editor-header { padding: 22px 20px 17px; gap: 8px; }
  .editor-header h2 { font-size: 22px; margin: 6px 0; }
  .editor-header p { font-size: 11px; }
  .editor-scroll { padding: 18px 16px; }
  .editor-plan-name { font-size: 12px; }
  .editor-plan-name input { font-size: 16px; }
  .editor-week { flex-wrap: wrap; gap: 9px; }
  .editor-week > div { gap: 5px; }
  .editor-week > small { display: block; margin-left: 0; width: 100%; }
  .plan-day { width: 33px; height: 33px; font-size: 11px; }
  .editor-card { padding: 15px; margin-bottom: 15px; }
  .editor-common-fields { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px 10px; }
  .editor-card-head { gap: 8px; }
  .editor-action-name { font-size: 15px; }
  .editor-reorder { gap: 2px; }
  .editor-reorder button { width: 27px; height: 34px; }
  .editor-field { font-size: 11px; }
  .editor-field > div, .editor-field select { min-height: 42px; }
  .editor-field input { height: 40px; font-size: 16px; }
  .editor-field select { font-size: 12px; }
  .editor-field small { font-size: 10px; }
  .set-details > summary { font-size: 12px; gap: 8px; min-height: 43px; padding-top: 8px; }
  .set-details > summary > span { font-size: 9px; flex: 1; max-width: 150px; }
  .individual-set { grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 0; }
  .individual-set > strong { grid-column: 1/-1; font-size: 12px; padding-bottom: 0; }
  .editor-notes-label { font-size: 11px; }
  .editor-notes-label input { font-size: 12px; min-height: 39px; }
  .add-action-panel { padding: 16px; }
  .add-action-buttons > button { min-height: 37px; font-size: 11px; }
  .custom-action-row { gap: 7px; }
  .custom-action-row > input { font-size: 12px; }
  .custom-action-row .button { padding: 0 10px; }
  .editor-footer { padding: 13px 16px calc(13px + env(safe-area-inset-bottom)); flex-wrap: wrap; gap: 9px; }
  .editor-footer > .text-button { font-size: 10px; }
  .editor-footer > span { font-size: 10px; }
  .editor-footer > .button { width: 100%; min-height: 45px; font-size: 13px; }
  .ready-plan-preview { max-height: 95px; margin-top: 16px; }
  .ready-plan-preview > span { font-size: 12px; }
  .ready-features { gap: 11px; flex-wrap: wrap; margin-top: 16px; padding: 10px 0; font-size: 10px; }
  .ready-features > button { font-size: 10px; }
  .coach-control .ready-start { margin-top: 17px; }
  .rep-countdown { font-size: 76px; }
  .voice-toggle span { font-size: 0; }
  .voice-toggle span:after { content:'语音'; font-size: 10px; }
  .voice-toggle[aria-pressed="false"] span:after { content:'静音'; }
  .training-brand small { display: none; }
  .training-header-actions { gap: 2px; }
  .voice-dialog { padding: 22px; }
  .voice-dialog h2 { font-size: 20px; }
  .voice-explanation { font-size: 12px; }
  .voice-setting-row { font-size: 13px; }
  .voice-select-label { font-size: 12px; }
  .voice-select-label select { font-size: 13px; }
  .voice-speed-label { font-size: 12px; }
  .voice-style-options { gap: 8px; }
  .voice-style-options > label { padding: 10px; gap: 5px; }
  .voice-style-options b { font-size: 12px; }
  .voice-style-options small { font-size: 10px; }
}
@media(max-width:359px) {
  .editor-scroll { padding: 16px 12px; }
  .editor-card { padding: 12px; }
  .editor-action-name { font-size: 13px; }
  .editor-number { width: 22px; height: 24px; font-size: 10px; }
  .editor-reorder button { width: 25px; }
  .editor-card-head { gap: 7px; }
  .editor-field { font-size: 10px; }
  .editor-field select { font-size: 11px; padding: 5px; }
  .hero-plan-edit { margin-left: 2px; font-size: 9px; }
}

@media(max-width:600px) {
  .library-intro { padding: 16px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .library-intro p { font-size: 12px; }
  .library-intro .text-button { font-size: 12px; min-height: 35px; }
  .library-search { padding: 0 12px; }
  .library-search input { font-size: 16px; height: 48px; }
  .library-search input::placeholder { font-size: 12px; }
  .filters { gap: 7px; margin-bottom: 19px; }
  .filter-button { min-height: 42px; padding: 7px 14px; font-size: 12px; }
  .library-result-heading { font-size: 11px; gap: 6px; }
  .library-result-heading > span { font-size: 9px; }
  .library-grid .movement-title h3 { font-size: 13px; line-height: 1.6; }
  .library-grid .movement-info { padding: 12px 10px; }
  .library-grid .movement-info > p { font-size: 10px; }
  .library-grid .movement-bottom { gap: 5px; flex-wrap: wrap; }
  .library-grid .movement-bottom > span { font-size: 10px; }
  .library-grid .movement-title > svg { display: none; }
  .library-footnote p { font-size: 12px; }
  .exercise-steps { font-size: 14px; }
  .info-dialog .exercise-caution p { font-size: 13px; }
  .exercise-detail-actions { flex-direction: column; }
  .info-dialog .exercise-detail-actions .button { flex-basis: auto; min-height: 46px; font-size: 13px; }
  .catalog-picker select { font-size: 16px; }
  .add-action-buttons > button[data-planner="addSelected"] { min-height: 43px; }
}
