:root {
  --ink: #17251f;
  --muted: #68756e;
  --line: #e3e8e2;
  --bg: #f4f6f2;
  --paper: #fff;
  --green: #17654e;
  --green2: #2a8063;
  --mint: #e8f3ed;
  --mint2: #d4e9dc;
  --amber: #98651b;
  --amberbg: #fff6e7;
  --red: #a6433d;
  --redbg: #fff0ee;
  --shadow: 0 14px 38px rgba(25, 48, 37, .055);
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; background:var(--bg); }
body { color:var(--ink); background:var(--bg); font-family:var(--font-ui); font-size:15px; line-height:1.5; letter-spacing:-.01em; }
button, input, select, textarea { font:inherit; }
button, a, select { -webkit-tap-highlight-color:transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline:3px solid #58a987; outline-offset:3px; }
.app { min-height:100svh; grid-template-columns:252px minmax(0,1fr); }
.sidebar { height:100svh; padding:28px 18px 20px; background:rgba(255,255,255,.9); border-color:#e5e9e4; }
.brand { margin:0 10px 42px; gap:11px; }
.brand-mark { width:36px; height:36px; border-radius:13px; background:var(--green); font:750 20px var(--font-ui); box-shadow:0 4px 11px #17654e2b; }
.brand-name { font:700 21px var(--font-ui); letter-spacing:-.8px; }
.nav-caption { margin:0 12px 10px; color:#87928b; font-size:10px; letter-spacing:1.2px; }
.nav { gap:5px; }
.nav button { min-height:46px; gap:12px; padding:10px 13px; border-radius:12px; color:#626f68; font-size:14px; font-weight:570; transition:background-color .18s ease,color .18s ease,transform .15s ease; }
.nav button:hover { background:#f2f6f2; }
.nav button:active, .primary:active, .secondary:active, .shortcut-card:active { transform:scale(.98); }
.nav button.active { color:#145c45; background:#eaf4ed; }
.nav-ico { width:20px; font-size:19px; }
.privacy-mini { padding:15px; border-radius:15px; background:#f7f9f6; font-size:12px; }
.privacy-mini strong { margin-bottom:4px; font-size:13px; }
.user-mini { padding:17px 9px 4px; }
.avatar { width:38px; height:38px; background:#e6f1e9; font-size:14px; }
.user-name { font-size:13px; }
.user-plan { font-size:11px; }
.main { min-width:0; }
.topbar { position:sticky; top:0; z-index:4; height:70px; padding:0 clamp(25px,5vw,72px); background:rgba(248,250,247,.82); backdrop-filter:blur(20px) saturate(160%); -webkit-backdrop-filter:blur(20px) saturate(160%); border-color:#e3e8e2; }
.breadcrumb { color:#7b8780; font-size:13px; }
.breadcrumb b { color:#304038; font-weight:600; }
.top-actions { gap:14px; }
.help-link { min-height:42px; padding:0 12px; border-radius:11px; font-size:13px; }
.content { width:min(100%,1260px); padding:38px clamp(25px,5vw,72px) 64px; }
.welcome { align-items:center; margin-bottom:25px; }
.eyebrow { margin-bottom:9px; color:#34775d; font-size:10px; letter-spacing:1.3px; }
.welcome h1, .screen-heading h1 { color:#182820; font-weight:680; letter-spacing:-1.15px; }
.welcome h1 { font-size:clamp(28px,3vw,36px); }
.welcome p, .screen-heading p { color:#6d7972; font-size:15px; }
.date-badge { padding:10px 13px; border-radius:12px; background:#fff; color:#637168; font-size:12px; }
.notice { align-items:center; gap:12px; padding:14px 16px; border-color:#f0e3c8; border-radius:15px; background:#fffbf3; color:#71634a; font-size:13px; }
.notice strong { color:#4c432f; }
.notice-icon { font-size:17px; }
.app-screen { display:grid; gap:20px; animation:screen-in .28s ease both; }
.app-screen[hidden] { display:none; }
@keyframes screen-in { from { opacity:.45; transform:translateY(5px); } to { opacity:1; transform:none; } }
.screen-heading { margin:0 2px 3px; }
.screen-heading .eyebrow { text-transform:capitalize; }
.screen-heading h1 { margin:0; font-size:32px; line-height:1.15; }
.screen-heading p { margin:8px 0 0; }
.card { min-width:0; border:1px solid #e5eae4; border-radius:20px; background:var(--paper); box-shadow:var(--shadow); }
.card-head { padding:22px 24px 17px; gap:16px; }
.card-title { font-size:17px; letter-spacing:-.35px; }
.card-desc { margin-top:5px; font-size:13px; }
.live-state { padding:7px 10px; border-radius:999px; font-size:10px; letter-spacing:.5px; }
.plan-chip { padding:6px 8px; border-radius:7px; background:#edf4ee; color:#527362; font-size:10px; }
.stage { margin:0 20px; min-height:340px; max-height:560px; aspect-ratio:16/9; border-radius:17px; background:radial-gradient(ellipse at 50% 65%,#283a32,#17221d 78%); }
.stage video { object-fit:cover; }
.stage-shade { background:radial-gradient(ellipse at 50% 60%,#2c4037 0%,#1b2821 82%); }
.setup-message { max-width:370px; padding:28px; }
.cam-icon { width:55px; height:55px; border-radius:17px; font-size:23px; }
.setup-message h3 { font-size:16px; }
.setup-message p { font-size:13px; }
.primary, .secondary, .quiet { min-height:44px; padding:10px 16px; border-radius:12px; font-size:13px; font-weight:650; transition:background .18s ease,transform .15s ease,box-shadow .18s ease; }
.primary { background:#17654e; box-shadow:0 4px 11px #17654e1a; }
.primary:hover { background:#10543f; box-shadow:0 6px 16px #17654e26; }
.secondary { color:#155c45; background:#eaf4ed; }
.secondary:hover { background:#deeee3; }
.quiet { color:#66766d; }
.stage-instructions { bottom:16px; left:16px; padding:10px 13px; border-radius:11px; font-size:12px; }
.stage-counter { top:16px; right:16px; padding:9px 13px; border-radius:13px; }
.stage-counter strong { font-size:23px; }
.stage-stop { top:16px; left:16px; padding:10px 13px; border-radius:10px; font-size:12px; }
.camera-meta { right:16px; bottom:16px; font-size:11px; }
.camera-status-line { margin:0 20px; padding:12px 3px; font-size:12px; }
.camera-controls { gap:10px; padding:14px 20px 18px; }
.camera-device { min-height:44px; padding:0 12px; border:1px solid #e1e7e1; border-radius:11px; background:#fff; color:#47564d; font-size:13px; }
.controls-note { color:#7d8982; font-size:12px; }
.setup-row { gap:10px; padding:15px 20px 20px; }
.setup-tip { border-radius:13px; background:#f6f8f5; padding:12px; }
.setup-tip i { width:25px; height:25px; }
.setup-tip b { font-size:12px; }
.setup-tip span { font-size:11px; }
.stats { gap:13px; }
.stat { padding:19px 20px; border-radius:18px; }
.stat-label { font-size:10px; letter-spacing:1px; }
.stat-value { margin-top:8px; font-size:28px; }
.stat-foot { margin-top:3px; font-size:12px; }
.panel { padding:22px 24px; }
.panel-top { margin-bottom:17px; }
.panel-top h2, .section-head h2 { font-size:17px; letter-spacing:-.3px; }
.panel-top p, .checkin-intro { margin-top:5px; font-size:13px; }
.calibration-actions { gap:8px; }
.angle-values { gap:10px; }
.angle-empty { padding:18px; border-radius:13px; background:#f6f8f5; font-size:13px; }
.angle-footnote, .fine-print { color:#758179; font-size:12px; line-height:1.55; }
.checkin-card, .coach-card, .report-card, .recent-card { padding:23px 24px; }
.section-head, .coach-head, .recent-header { margin-bottom:10px; }
.section-head h2, .coach-head h2, .recent-header h2 { font-size:17px; }
.optional { padding:5px 8px; border-radius:999px; background:#f1f5f1; color:#758179; font-size:10px; }
.rating button, .rating .rating-button { min-width:44px; min-height:44px; border-radius:12px; }
.note-input, .plan-form input, .plan-form textarea, .dialog input, .dialog select, .dialog textarea { min-height:46px; border:1px solid #dfe6df; border-radius:12px; background:#fff; padding:11px 13px; color:#203128; font-size:14px; }
.note-input, .plan-form textarea, .dialog textarea { min-height:100px; resize:vertical; }
.checkin-actions { gap:9px; margin-top:15px; }
.coach-card { background:#f0f6f1; border-color:#e3eee5; }
.coach-icon { width:38px; height:38px; border-radius:13px; background:#dfede2; }
.coach-copy, .coach-foot { font-size:13px; }
.progress-tools { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:18px; }
.progress-tools .panel { min-width:0; }
.plan-form { gap:14px; }
.plan-form label { gap:7px; color:#47574e; font-size:12px; font-weight:620; }
.plan-grid { gap:12px; }
.upload-row { gap:10px; margin-top:16px; }
.upload-button { min-height:44px; border-radius:12px; }
.upload-hint { color:#7c8880; font-size:12px; }
.photo-gallery { gap:10px; }
.media-empty { padding:24px 14px; border:1px dashed #d8e2d9; border-radius:14px; color:#7c8880; text-align:center; font-size:13px; }
.visit-guide { display:flex; align-items:center; gap:14px; padding:17px 19px; border:1px solid #e1e9e1; border-radius:17px; background:#f6f9f5; color:#34463b; }
.visit-guide-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:13px; background:#e3efe5; color:#28664e; }
.visit-guide p { margin:4px 0 0; color:#758179; font-size:13px; }
.footer-disclaimer { color:#77847c; font-size:12px; line-height:1.55; }
.dialog { border:1px solid #e1e7e1; border-radius:22px; box-shadow:0 28px 80px #10231a40; }
.dialog::backdrop { background:#13261dcc; backdrop-filter:blur(6px); }
.dialog-inner { padding:26px; }
.dialog-head h2 { font-size:22px; letter-spacing:-.6px; }
.toast { border-radius:13px; }
.home-focus { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; min-height:230px; padding:34px 38px; margin:4px 0 1px; border:0; border-radius:24px; color:#fff; background:linear-gradient(116deg,#164c3c 0%,#216b50 60%,#348260 100%); box-shadow:0 20px 38px #1a604329; }
.home-focus::after { position:absolute; content:""; width:360px; height:360px; right:-80px; top:-170px; border:1px solid #ffffff20; border-radius:50%; box-shadow:0 0 0 35px #ffffff08,0 0 0 72px #ffffff06; }
.home-focus > div:first-child { position:relative; z-index:1; max-width:500px; }
.home-kicker { color:#c6e5d1; font-size:10px; font-weight:700; letter-spacing:1.4px; }
.home-focus h2 { margin:10px 0 4px; color:#fff; font-size:30px; letter-spacing:-.7px; }
.home-focus p { margin:0 0 20px; color:#d7e9dc; font-size:14px; }
.home-focus .primary { color:#145c45; background:#fff; box-shadow:none; }
.home-focus .primary:hover { background:#eff7f1; }
.home-art { position:absolute; right:42px; bottom:-35px; width:215px; height:205px; border:1px solid #ffffff3a; border-radius:48% 48% 10% 10%; background:linear-gradient(150deg,#ffffff13,#ffffff02); opacity:.8; }
.home-art span { position:absolute; top:28px; right:34px; display:grid; place-items:center; width:52px; height:52px; border:1px solid #ffffff4d; border-radius:50%; color:#e6f2e9; font-size:23px; }
.home-art i { position:absolute; left:39px; top:75px; width:125px; height:108px; border:1px solid #ffffff5c; border-bottom:0; border-radius:52% 52% 0 0; }
.home-art b { position:absolute; left:94px; top:33px; width:34px; height:34px; border:1px solid #ffffff68; border-radius:50%; }
.home-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.shortcut-card { display:flex; align-items:center; gap:13px; min-width:0; min-height:90px; padding:16px; border:1px solid #e4e9e3; border-radius:17px; background:#fff; color:#24352b; text-align:left; box-shadow:var(--shadow); transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.shortcut-card:hover { transform:translateY(-2px); border-color:#c9d9cc; box-shadow:0 16px 32px #183b2810; }
.shortcut-icon { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border-radius:13px; background:#edf5ee; color:#286a50; font-size:19px; }
.shortcut-card b, .shortcut-card small { display:block; }
.shortcut-card b { font-size:14px; font-weight:650; }
.shortcut-card small { margin-top:3px; color:#7a877f; font-size:11px; }
.shortcut-arrow { margin-left:auto; color:#819088; font-size:17px; }
.mobile-nav { display:none; }
@media(max-width:1000px) {
  .app { grid-template-columns:220px minmax(0,1fr); }
  .progress-tools { grid-template-columns:1fr; }
  .home-focus { min-height:210px; }
}
@media(max-width:760px) {
  .app { display:block; min-height:100svh; }
  .sidebar { display:none; }
  .topbar { height:60px; padding:0 20px; }
  .content { padding:25px 20px calc(105px + env(safe-area-inset-bottom)); }
  .welcome { align-items:flex-start; gap:12px; }
  .welcome h1 { font-size:29px; }
  .date-badge { white-space:nowrap; padding:8px 10px; font-size:11px; }
  .notice { align-items:flex-start; }
  .app-screen { gap:15px; }
  .screen-heading { margin-bottom:0; }
  .screen-heading h1 { font-size:29px; }
  .card-head { padding:18px 18px 14px; }
  .stage { margin:0 13px; min-height:270px; border-radius:15px; }
  .camera-status-line { margin:0 14px; flex-wrap:wrap; gap:8px; }
  .camera-controls { padding:12px 14px 16px; flex-wrap:wrap; }
  .camera-controls > .primary, .camera-controls > .secondary { flex:1; }
  .control-divider { display:none; }
  .camera-device { max-width:100%; flex:1 1 42%; }
  .controls-note { flex-basis:100%; }
  .setup-row { grid-template-columns:1fr; padding:8px 14px 15px; }
  .setup-tip { display:flex; align-items:center; gap:10px; }
  .setup-tip span { margin-top:1px; }
  .stats { gap:8px; }
  .stat { padding:14px 12px; border-radius:15px; }
  .stat-value { font-size:23px; }
  .stat-foot { font-size:10px; }
  .panel, .checkin-card, .coach-card, .report-card, .recent-card { padding:18px; }
  .calibration-actions { flex-wrap:wrap; }
  .home-focus { min-height:210px; padding:25px 22px; border-radius:21px; }
  .home-focus h2 { font-size:25px; }
  .home-focus p { max-width:250px; font-size:13px; }
  .home-art { right:-42px; opacity:.45; }
  .home-shortcuts { grid-template-columns:1fr; gap:9px; }
  .shortcut-card { min-height:72px; padding:12px 14px; border-radius:15px; }
  .mobile-nav { position:fixed; z-index:8; display:flex; justify-content:space-around; left:0; right:0; bottom:0; padding:8px 7px calc(8px + env(safe-area-inset-bottom)); background:rgba(250,252,250,.88); backdrop-filter:blur(22px) saturate(170%); -webkit-backdrop-filter:blur(22px) saturate(170%); border-top:1px solid #dfe8df; box-shadow:0 -8px 26px #1a3b260d; }
  .mobile-nav button { flex:1; min-height:53px; border:0; background:transparent; color:#748078; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; border-radius:13px; font-size:10px; font-weight:600; }
  .mobile-nav button.active { background:#e9f3eb; color:#1b644d; }
  .mobile-nav button span { font-size:19px; line-height:1.1; }
  .dialog-inner { padding:21px; }
}
@media(max-width:390px) {
  .content { padding-left:14px; padding-right:14px; }
  .welcome { flex-direction:column; }
  .stage { min-height:230px; }
  .stats { grid-template-columns:1fr; }
  .stat { display:grid; grid-template-columns:1fr auto; align-items:center; gap:0 10px; }
  .stat-label, .stat-foot { grid-column:1; }
  .stat-value { grid-column:2; grid-row:1 / span 2; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto!important; }
  *, *::before, *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}
@media(prefers-reduced-transparency:reduce) {
  .topbar, .mobile-nav { background:#fff; backdrop-filter:none; -webkit-backdrop-filter:none; }
}
@media(prefers-contrast:more) {
  :root { --muted:#46544b; --line:#9aa99c; }
  .card, .shortcut-card, .date-badge, .camera-device { border-color:#9aa99c; }
  .nav button.active, .mobile-nav button.active { outline:1px solid currentColor; }
}

/* Practice: readable from the exercise position, with one place for session actions. */
.content { margin-inline:auto; }
.app-screen[data-screen-view="move"] { max-width:1080px; margin-inline:auto; width:100%; }
.app-screen[data-screen-view="move"] .screen-heading h1 { font-size:clamp(32px,4vw,44px); }
#movement { overflow:hidden; }
#movement .card-head { padding:24px 28px 18px; }
#movement .card-title { font-size:26px; }
#movement .card-desc { font-size:16px; }
#movement .live-state { font-size:12px; }
.practice-choices { display:flex; flex-wrap:wrap; gap:8px; padding:0 28px 22px; }
.practice-choices button { flex:1 1 140px; min-height:52px; border:1px solid #d7e2db; background:#f8faf7; color:#43584d; border-radius:14px; padding:12px 14px; font:600 15px var(--font-ui); cursor:pointer; }
.practice-choices button[aria-pressed="true"] { border-color:var(--green); background:var(--green); color:#fff; box-shadow:0 3px 9px #17654e20; }
.practice-choices button:disabled { cursor:default; opacity:.55; }
.practice-choices button[aria-pressed="true"]:disabled { opacity:1; }
#movement .stage { margin:0 20px; min-height:360px; max-height:590px; border-radius:18px; }
#movement .setup-message { max-width:470px; padding:28px 32px; }
#movement .setup-message h3 { font-size:clamp(24px,3vw,32px); line-height:1.2; }
#movement .setup-message p { font-size:18px; line-height:1.6; color:#d5e5db; }
#movement .stage-counter { display:grid; place-content:center; top:20px; right:20px; min-width:108px; padding:14px 22px; background:#fff; }
#movement .stage-counter strong { font:750 clamp(42px,5vw,68px)/1 var(--font-ui); letter-spacing:-2px; }
#movement .stage-counter span { font-size:14px; margin-top:6px; color:#40574b; }
#movement .camera-meta { font-size:11px; bottom:12px; right:16px; }
#movement .stage-instructions { position:relative; inset:auto; display:block; margin:16px 20px 0; padding:20px 26px; max-width:none; border:1px solid #dce8df; border-left:5px solid var(--green); border-radius:14px; background:#edf5ef; color:#173d2d; }
#movement .stage-instructions strong { display:block; font-size:clamp(24px,3vw,36px); line-height:1.2; margin-bottom:8px; letter-spacing:-.7px; }
#movement .stage-instructions span { display:block; font-size:clamp(18px,2vw,23px); color:#375748; line-height:1.45; }
#movement[data-session-active="true"] .stage-instructions { background:#163e2e; border-color:#163e2e; color:#fff; }
#movement[data-session-active="true"] .stage-instructions span { color:#e1eee5; }
#movement .camera-status-line { font-size:14px; flex-wrap:wrap; gap:10px; padding:14px 6px; border:0; background:transparent; }
.session-actions { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:12px; padding:8px 24px 24px; }
.session-actions button { min-height:56px; font-size:17px; min-width:155px; }
.session-actions #stageStop { position:static; display:none; background:#a3342e; color:white; border:0; border-radius:12px; padding:12px 24px; }
.session-actions #stageStop.show { display:block; }
#movement[data-session-active="true"] #startBtn { display:none; }
#movement[data-session-active="true"] #enableCamera, #movement[data-session-active="true"] #manualBtn { display:none; }
.practice-settings { padding:0 28px 20px; }
.practice-settings summary, .voice-settings summary, .companion-demo summary { min-height:44px; display:list-item; cursor:pointer; color:#38654e; font-weight:600; font-size:15px; padding:10px 0; }
#movement .camera-controls { padding:12px 0 0; gap:12px; align-items:end; }
.camera-controls label { display:grid; gap:6px; font-size:14px; color:#52685b; flex:1 1 150px; }
#movement .camera-device { font-size:16px; min-height:48px; max-width:100%; width:100%; padding:10px 14px; border-radius:10px; }
#movement .controls-note { font-size:14px; margin-left:0; }
#movement .setup-row { padding:0 28px 24px; gap:12px; }
#movement .setup-tip { padding:12px; }
#movement .setup-tip b { font-size:14px; }
#movement .setup-tip span { font-size:13px; line-height:1.5; }
#manualCounter { padding:10px 24px 24px!important; gap:18px!important; }
#manualCounter button { min-height:54px; font-size:18px; }
#manualCounter span { font-size:16px!important; }
.session-companion { padding:26px 28px!important; margin:0!important; }
.companion-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.companion-name { display:flex; align-items:center; gap:14px; }
.voice-symbol { display:grid; place-items:center; width:48px; height:48px; background:#e8f3ed; color:var(--green); border-radius:16px; font-size:26px; flex-shrink:0; }
.session-companion h2 { margin:0; font-size:23px; letter-spacing:-.5px; }
.companion-name p { margin:4px 0 0; color:#5b7063; font-size:15px; }
.voice-toggle { position:relative; display:flex; align-items:center; gap:10px; min-height:48px; padding:8px 14px; background:#eef5ef; border-radius:999px; cursor:pointer; font-size:15px; font-weight:650; }
.voice-toggle input { appearance:none; width:40px; height:24px; border-radius:999px; background:#a7b3aa; position:relative; margin:0; cursor:pointer; }
.voice-toggle input:checked { background:var(--green); }
.voice-toggle input:before { content:''; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:white; transition:transform .15s; }
.voice-toggle input:checked:before { transform:translateX(16px); }
.companion-toolbar { margin:24px 0 18px; }
.voice-modes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.voice-modes button { text-align:left; padding:14px 16px; min-height:76px; border:1px solid #dce5de; border-radius:13px; background:#fafbf9; color:#405749; font:650 16px var(--font-ui); cursor:pointer; }
.voice-modes button span { display:block; font-size:13px; font-weight:400; margin-top:5px; }
.voice-modes button[aria-pressed="true"] { background:#e7f2eb; border-color:#367c58; color:#164c32; box-shadow:inset 0 0 0 1px #367c58; }
.companion-activity { font-size:17px; font-weight:600; color:#284b38; margin:14px 0 6px; }
.companion-event { font-size:17px; color:#50665a; margin:6px 0; }
.companion-event:empty { display:none; }
.voice-settings { margin-top:16px; border-top:1px solid #e3eae4; padding-top:5px; }
.voice-settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:12px 0 16px; }
.voice-settings-grid label { display:grid; gap:8px; font-size:14px; font-weight:600; }
.voice-settings-grid select { width:100%; min-width:0; max-width:100%; min-height:48px; padding:10px 12px; border:1px solid #cfdcd3; border-radius:10px; background:#fff; color:#294434; font:15px var(--font-ui); }
.companion-actions { display:flex; gap:10px; flex-wrap:wrap; margin:12px 0; }
.companion-actions button { font-size:15px; min-height:46px; }
.companion-technical { font-size:13px; color:#627469; line-height:1.5; overflow-wrap:anywhere; margin:10px 0; }
.companion-followup { border-top:1px solid #dce6de; margin-top:22px; padding-top:24px; }
.companion-followup[hidden], .companion-summary[hidden] { display:none; }
.followup-eyebrow { color:#46715a; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; }
.followup-question { font-size:clamp(23px,2.5vw,30px); line-height:1.4; letter-spacing:-.6px; color:#1b3a29; margin:12px 0 6px; }
.companion-followup label { display:block; font-size:15px; font-weight:600; margin-top:16px; }
.companion-followup label span { font-size:13px; color:#697a6e; font-weight:400; margin-left:8px; }
.companion-followup textarea { display:block; width:100%; box-sizing:border-box; min-height:110px; border:1px solid #cfdcd3; border-radius:12px; padding:14px; margin:8px 0 16px; background:#fcfdfa; color:#25432f; font:16px/1.5 var(--font-ui); resize:vertical; }
.companion-summary { white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; padding:18px; border-radius:12px; background:#f2f6f1; }
.companion-demo { margin-top:18px; border-top:1px solid #e3eae4; padding-top:5px; }
.companion-demo p { font-size:14px; color:#607365; line-height:1.6; }
@media(min-width:1000px) { .app-screen[data-screen-view="move"] .layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:650px) {
  #movement .card-head { padding:20px 18px 16px; }
  .practice-choices { padding:0 16px 16px; display:grid; grid-template-columns:1fr 1fr; }
  .practice-choices button { font-size:14px; }
  #movement .stage { margin:0 10px; min-height:280px; }
  #movement .stage-counter { min-width:76px; padding:12px 16px; top:12px; right:12px; }
  #movement .stage-instructions { margin:12px 10px 0; padding:18px; }
  #movement .stage-instructions strong { font-size:25px; }
  #movement .stage-instructions span { font-size:18px; }
  .session-actions { padding:6px 16px 18px; gap:10px; }
  .session-actions button { flex:1 1 130px; min-width:0; font-size:16px; }
  .practice-settings { padding:0 18px 16px; }
  #movement .setup-row { padding:0 16px 18px; }
  .session-companion { padding:22px 18px!important; }
  .companion-heading { gap:14px; }
  .companion-name p { font-size:14px; }
  .voice-modes { gap:6px; }
  .voice-modes button { padding:12px 8px; font-size:14px; text-align:center; }
  .voice-modes button span { font-size:12px; }
  .voice-settings-grid { grid-template-columns:1fr; }
}

/* Keep the active session in view without scrolling back to the controls. */
#movement { scroll-margin-top:84px; }
#movement .stage { height:clamp(280px,38svh,430px); min-height:0; aspect-ratio:auto; }
#movement .setup-message h3 { font-family:var(--font-ui); font-weight:700; }
.app-screen:has(#movement[data-session-active="true"]) .screen-heading { display:none; }
#movement[data-session-active="true"] .card-head,
#movement[data-session-active="true"] .practice-choices,
#movement[data-session-active="true"] .setup-row,
#movement[data-session-active="true"] .practice-settings { display:none; }
#movement[data-session-active="true"] { padding-top:20px; }
#movement[data-session-active="true"] .stage { height:clamp(240px,40svh,440px); }
#movement[data-session-active="true"] .session-actions { padding-bottom:20px; }
#movement[data-manual="true"] .frame-guide,
#movement[data-manual="true"] .setup-next { display:none; }
#movement[data-manual="true"] .stage { height:220px; }
#movement[data-manual="true"] .cam-icon { display:none; }
#practiceVoice { min-width:115px; }
@media(max-width:650px) {
  #movement { scroll-margin-top:72px; }
  #movement .stage { height:300px; }
  #movement[data-session-active="true"] .stage { height:260px; }
  #movement[data-manual="true"] .stage { height:210px; }
}

/* Show the entire sensor image, including feet. Overlay uses the same contain transform. */
#movement .stage { height:clamp(420px,58svh,700px); }
#movement .stage video { object-fit:contain; }
#movement[data-session-active="true"] .stage { height:clamp(360px,56svh,680px); }
#movement[data-manual="true"] .stage { height:240px; }
#movement .session-actions { position:sticky; bottom:12px; z-index:3; background:#fff; border-radius:14px; box-shadow:0 5px 20px #173d2d0d; }
.rep-goal { position:absolute; top:20px; left:20px; padding:10px 14px; border-radius:999px; background:#153b2ee6; color:#e1f6e8; font-size:15px; font-weight:650; z-index:2; }
.rep-reward { position:absolute; bottom:42px; left:50%; transform:translateX(-50%); background:#e5ffab; color:#234b23; padding:12px 22px; border-radius:999px; font-size:clamp(21px,3vw,30px); font-weight:750; z-index:2; opacity:0; pointer-events:none; white-space:nowrap; }
.rep-reward.celebrate { animation:rep-celebrate 1s ease-out both; }
@keyframes rep-celebrate { 0% { opacity:0; transform:translate(-50%,12px) scale(.88); } 18%,65% { opacity:1; transform:translate(-50%,0) scale(1); } 100% { opacity:0; transform:translate(-50%,-15px) scale(1.02); } }
@media(max-width:650px) {
  #movement .stage, #movement[data-session-active="true"] .stage { height:clamp(380px,56svh,620px); }
  #movement[data-manual="true"] .stage { height:240px; }
  #movement .session-actions { bottom:78px; }
  .rep-goal { max-width:55%; font-size:12px; top:12px; left:12px; padding:8px 10px; }
}
@media(prefers-reduced-motion:reduce) { .rep-reward.celebrate { animation:none!important; opacity:1; } }

.session-actions #newSession[hidden] { display:none; }
.session-actions #newSession { border:2px solid #17654e; }

/* Connected journal pages: shared hierarchy, explicit data sources, generous controls. */
.care-home,.care-checkin,.care-progress,.care-visit { width:100%; max-width:1140px; margin-inline:auto; }
.care-kicker { display:block; color:#397052; font-size:12px; font-weight:750; letter-spacing:1.2px; text-transform:uppercase; margin-bottom:10px; }
.care-panel { padding:28px!important; }
.care-panel h2,.care-intro h2 { font:700 clamp(23px,2.5vw,32px)/1.25 var(--font-ui); letter-spacing:-.8px; margin:0 0 14px; }
.care-panel h3 { font-size:19px; line-height:1.4; }
.care-panel p,.care-intro p { font-size:16px; line-height:1.65; }
.care-muted { color:#5e7365; font-size:14px!important; }
.care-badge { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; background:#edf4ed; color:#3e6550; font-size:12px; font-weight:600; }
.care-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.care-stat { padding:24px; border:1px solid #dfe8df; background:#fff; border-radius:18px; display:grid; gap:6px; }
.care-stat strong { font-size:36px; letter-spacing:-1px; line-height:1.2; }
.care-stat span { font-size:15px; font-weight:650; color:#365441; }
.care-stat small { font-size:13px; color:#6b7a70; }
.care-home .welcome h1 { font-size:clamp(32px,4vw,46px); max-width:660px; line-height:1.15; }
.care-home .welcome p { font-size:17px; }
.care-home .notice { display:none; }
.care-home .care-hero { margin:0; min-height:260px; background:#174d37; color:#fff; padding:34px; border:0; }
.care-home .care-hero .home-kicker { color:#bbd6c3; font-size:12px; }
.care-home .care-hero h2 { color:white; font-size:36px; line-height:1.2; }
.care-home .care-hero p { color:#d8eadd; font-size:17px; max-width:430px; }
.care-home .care-hero .primary { background:#def2af; color:#204622; font-size:16px; min-height:50px; box-shadow:none; }
.care-home .home-art { opacity:.3; }
.care-home .shortcut-card { min-height:110px; padding:22px; }
.care-home .shortcut-card b { font-size:18px; }.care-home .shortcut-card small { font-size:14px; }
.care-section-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:18px; }
.care-section-head h2 { margin-bottom:0; }
.care-latest { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.care-latest h3 { margin:0; }.care-latest p { margin:6px 0;color:#607466; }
.care-latest-count { min-width:85px; text-align:center; font-size:40px; font-weight:750; color:#17654e; background:#edf5ed; border-radius:15px; padding:12px; }
.care-latest-count small { display:block; font-size:13px; font-weight:500; }
.care-latest button { margin-left:auto; }
.care-intro { padding:8px 2px 20px; max-width:700px; }.care-intro h2 { font-size:32px; }.care-intro p { color:#617367; }
.care-checkin #checkin { padding:30px; max-width:850px; }
.care-checkin .section-head h2 { font-size:24px; }
.care-checkin .checkin-intro { font-size:16px; margin-bottom:24px; }
.care-checkin .field-label { font-size:17px; margin:24px 0 12px; }
.care-checkin .optional,.care-checkin .field-value { font-size:14px; }
.care-checkin .rating { gap:8px; flex-wrap:wrap; }
.care-checkin .rating button { flex:1 0 42px; min-height:52px; font-size:18px; border-radius:12px; }
.care-checkin .scale-labels { font-size:13px; margin-top:8px; }
.care-checkin .note-input { min-height:140px; font-size:17px; padding:16px; line-height:1.5; border-radius:13px; }
.care-checkin .checkin-actions { flex-wrap:wrap; gap:12px; }.care-checkin .checkin-actions button { flex:0 1 auto; font-size:16px; min-height:50px; }
.care-checkin .checkin-feedback { display:block; width:100%; font-size:14px; margin:4px 0; }
.care-checkin .coach-card { display:none; }
.care-checkin-entry { border-top:1px solid #e2e9e2; padding:18px 0; }.care-checkin-entry>div { display:flex; align-items:center; gap:12px; }
.care-checkin-entry p { margin:8px 0; }
.care-filters { display:flex; gap:16px; flex-wrap:wrap; padding:18px 0 24px; }
.care-filters label { flex:1 1 180px; display:grid; gap:8px; color:#4e6556; font-size:14px; font-weight:650; }
.care-filters select { width:100%; border:1px solid #ccdacf; border-radius:12px; background:white; min-height:50px; padding:10px 14px; font:16px var(--font-ui); color:#254a33; }
.care-chart-empty { margin-top:24px; padding:36px 24px; text-align:center; background:#f3f7f1; border:1px dashed #ccdbce; border-radius:16px; }
.care-chart-empty>span { font-size:40px; color:#7b9d82; }.care-chart-empty h3 { margin:8px 0; }.care-chart-empty p { margin:8px auto; max-width:480px; color:#687b6d; }
#careChart svg { display:block; width:100%; height:auto; max-height:290px; margin-top:20px; overflow:visible; }
#careChart svg text { fill:#687d6c; font-size:13px; font-family:var(--font-ui); }
.care-chart-dates { display:flex; justify-content:space-between; font-size:13px; color:#64766a; }
.care-table-wrap { overflow:auto; margin-top:18px; }.care-table { width:100%; border-collapse:collapse; text-align:left; font-size:15px; }
.care-table th { text-transform:uppercase; letter-spacing:.6px; font-size:11px; color:#6c7c70; padding:14px 10px; border-bottom:1px solid #d8e2d9; white-space:nowrap; }
.care-table td { padding:17px 10px; border-bottom:1px solid #e6ece5; vertical-align:middle; }
.care-table small { display:block; font-size:12px; color:#6b7c6e; margin-top:5px; }.care-table .quiet { font-size:14px; }
#progress[hidden],#recentSessions[hidden],#visit-note[hidden] { display:none!important; }
.care-support summary,.care-ai-sharing summary,.care-saved summary { cursor:pointer; font-size:16px; font-weight:650; padding:10px 0; color:#36654a; }
.care-support .progress-tools { margin-top:20px; }.care-support .plan-form label { font-size:15px; }.care-support .plan-form input,.care-support .plan-form textarea { font-size:16px; min-height:48px; }
.care-visit-layout { display:grid; grid-template-columns:minmax(280px,.85fr) minmax(0,1.5fr); gap:22px; align-items:start; }
.care-selection h2 { font-size:25px; }.care-select-session { display:flex; align-items:center; gap:12px; padding:15px 0; border-bottom:1px solid #e2e9df; cursor:pointer; }
.care-select-session input,.care-check input { width:20px; height:20px; flex:0 0 20px; accent-color:#17654e; }
.care-select-session strong { display:block; font-size:15px; }.care-select-session small { display:block; font-size:12px; color:#6a7d6e; margin-top:4px; }
.care-ai-sharing { margin-top:24px; border-top:1px solid #dde6db; padding-top:12px; }.care-ai-sharing p { font-size:14px; }
.care-check { display:flex; align-items:flex-start; gap:10px; font-size:14px; line-height:1.5; margin:16px 0; }
.care-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:16px 0; }.care-actions button { font-size:14px; }
.care-actions button:disabled,#careReviewSharing:disabled { opacity:.45; cursor:not-allowed; }
#carePayload { white-space:pre-wrap; word-break:break-word; font:12px/1.6 ui-monospace,monospace; max-height:300px; overflow:auto; background:#f2f6ee; padding:14px; border-radius:10px; }
#careAiStatus,#careSelectionStatus,#careExplanationStatus { font-size:14px; line-height:1.6; color:#4d6755; overflow-wrap:anywhere; }
#careQuestion { margin:20px 0; padding:20px; background:#eff6e8; border-radius:14px; }
#careQuestion[hidden],#careSharePreview[hidden] { display:none; }
#careQuestion h3 { font-size:20px; margin:10px 0; }
#careQuestion label { font-size:14px; }
#careQuestion textarea { width:100%; padding:12px; border:1px solid #bfd1be; border-radius:10px; font:16px var(--font-ui); box-sizing:border-box; margin:10px 0; }
.care-saved { margin-top:24px; border-top:1px solid #e0e9dc; padding-top:8px; }
.care-saved-item { display:grid; gap:5px; width:100%; text-align:left; background:#f3f7f0; border:1px solid #dce7d7; border-radius:10px; padding:12px; margin:10px 0; color:#335840; cursor:pointer; }
.care-saved-item span { font-size:12px; }
.care-note-panel { padding:30px!important; }.care-document-heading { padding:28px 0; border-top:1px solid #dde6d8; border-bottom:1px solid #dde6d8; margin-top:22px; }
.care-document-heading h2 { font-size:34px; letter-spacing:-1px; margin:12px 0; }.care-document-heading p { font-size:14px; color:#69816b; }
.care-note-totals { display:flex; gap:20px; flex-wrap:wrap; padding:20px 0; color:#2b5a37; }
#careVisitDocument h3 { margin:28px 0 12px; color:#2f5739; font-size:18px; }
#careVisitDocument p,#careVisitDocument li { font-size:15px; line-height:1.7; }
#careVisitDocument blockquote,.care-checkin-entry blockquote { border-left:3px solid #aac59e; margin:14px 0; background:#f5f8f1; padding:14px 18px; color:#466345; font-size:15px; line-height:1.6; white-space:pre-wrap; }
#careVisitDocument blockquote small { display:block; color:#6b8064; margin-bottom:6px; font-size:12px; }
.care-note-footer { margin-top:28px; padding-top:18px; border-top:1px solid #dce5d4; color:#6b7d64; font-size:13px; line-height:1.6; }
.care-empty { padding:20px 0; color:#687c69; font-size:15px; }
@media(max-width:1050px) { .care-visit-layout { grid-template-columns:1fr; } }
@media(max-width:650px) {
 .care-panel,.care-note-panel { padding:22px 18px!important; }.care-stats { gap:9px; }.care-stat { padding:17px 12px; }.care-stat strong { font-size:29px; }.care-stat span { font-size:12px; }.care-stat small { font-size:11px; }
 .care-home .care-hero { padding:26px 22px; min-height:240px; }.care-home .care-hero h2 { font-size:30px; }.care-home .care-hero p { font-size:15px; }.care-home .care-hero>div:first-child { max-width:100%; }.care-home .home-art { display:none; }
 .care-latest button { margin-left:0; }.care-checkin #checkin { padding:24px 18px; }.care-checkin .rating button { flex-basis:38px; }
 .care-document-heading h2 { font-size:29px; }.care-visit-layout { gap:16px; }
}
@media print {
 body.care-print { background:white!important; }
 body.care-print .sidebar,body.care-print .topbar,body.care-print .mobile-nav,body.care-print .care-selection,body.care-print .care-note-panel>.care-section-head,body.care-print .care-note-panel>.care-actions,body.care-print #careNoteStatus,body.care-print .visit-guide,body.care-print .footer-disclaimer,body.care-print .screen-heading { display:none!important; }
 body.care-print .app,body.care-print .main,body.care-print .content,body.care-print .care-visit-layout,body.care-print #screen-reports { display:block!important; width:100%!important; max-width:none!important; margin:0!important; padding:0!important; }
 body.care-print .care-note-panel { border:0!important; padding:0!important; box-shadow:none!important; }
 body.care-print #careVisitDocument { display:block!important; color:black; }
 body.care-print .care-table-wrap { overflow:visible; }.care-table tr { break-inside:avoid; }
}

.care-measurements { margin:22px 0; padding:16px; background:#f4f7ef; border-radius:12px; }
.care-measurements summary { cursor:pointer; font-weight:650; color:#36583d; }

/* Gemini is the lead feature; the sharing consent remains explicit. */
.care-visit-layout>.care-ai-sharing { grid-column:1/-1; margin:0; padding:30px; border:1px solid #b9d4c3; border-radius:22px; background:linear-gradient(125deg,#edf6ed,#f1f3ff); box-shadow:0 10px 30px #173d2d08; }
.gemini-intro { display:flex; justify-content:space-between; align-items:center; gap:28px; }
.gemini-intro>div { max-width:700px; }.gemini-intro h2 { font-size:clamp(26px,3vw,38px); line-height:1.15; letter-spacing:-1px; margin:16px 0; }
.gemini-intro p { font-size:16px; line-height:1.6; color:#4d655a; max-width:650px; margin:0; }
.gemini-brand { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:750; color:#42598b; border:1px solid #d1daf1; background:#f9faff; padding:7px 11px; border-radius:999px; }
.gemini-brand>span { font-size:20px; color:#6677c8; }
.gemini-intro>.primary { flex-shrink:0; min-height:54px; padding:14px 20px; font-size:16px; white-space:nowrap; }
.gemini-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; list-style:none; margin:26px 0 12px; padding:22px 0; border-top:1px solid #d1dfd6; border-bottom:1px solid #d1dfd6; }
.gemini-steps li { display:flex; align-items:flex-start; gap:10px; }.gemini-steps li>span { background:white; color:#3d6b56; border-radius:50%; width:28px; height:28px; display:grid; place-items:center; flex-shrink:0; font-size:13px; font-weight:700; }
.gemini-steps strong { display:block; font-size:14px; color:#2d4d3e; }.gemini-steps small { display:block; font-size:12px; color:#657c6f; line-height:1.5; margin-top:4px; }
.gemini-sharing-options { display:flex; align-items:flex-start; gap:24px; flex-wrap:wrap; }.gemini-sharing-options .care-check { flex:1 1 420px; margin:10px 0; }.gemini-sharing-options details { flex:1 1 220px; font-size:13px; color:#607365; }.gemini-sharing-options details summary { cursor:pointer; padding:10px 0; font-size:14px; color:#486b59; }
.care-ai-sharing #careSharePreview { border-top:1px solid #cbded0; margin-top:18px; padding-top:14px; }.care-ai-sharing #carePayload { background:#ffffffa8; max-height:250px; }
.care-home .care-choice-hero { padding:32px; }.care-home .care-choice-hero>div:first-child { max-width:none; width:100%; }
.care-home .care-choice-hero #homePlanCopy { max-width:760px; }
.home-movement-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:26px; }
.home-movement-choices button { display:grid; grid-template-columns:38px minmax(0,1fr); align-items:center; gap:5px 12px; text-align:left; min-height:102px; padding:20px; color:#fff; border:1px solid #ffffff47; border-radius:16px; background:#ffffff0d; font-family:var(--font-ui); cursor:pointer; transition:background .15s,border-color .15s; }
.home-movement-choices button:hover { background:#ffffff20; border-color:#c8e5ac; }.home-movement-choices button>span { grid-row:1/span 2; width:38px; height:38px; display:grid; place-items:center; border-radius:12px; font-size:25px; background:#ffffff17; color:#d7edbd; }
.home-movement-choices strong { font-size:17px; font-weight:650; }.home-movement-choices small { font-size:13px; color:#c6dacc; }
.care-home .home-choice-note { font-size:13px; color:#b9d0c0; max-width:none; margin:18px 0 0; }
@media(max-width:850px) { .gemini-intro { flex-direction:column; align-items:flex-start; }.gemini-intro h2 { font-size:30px; }.gemini-steps { gap:12px; } }
@media(max-width:650px) {
 .care-visit-layout>.care-ai-sharing { padding:24px 18px; }.gemini-intro { gap:20px; }.gemini-intro h2 { font-size:28px; }.gemini-intro>.primary { width:100%; }.gemini-steps { grid-template-columns:1fr; gap:14px; margin-top:22px; }.gemini-steps strong { font-size:15px; }.gemini-sharing-options { gap:4px; }
 .care-home .care-choice-hero { padding:26px 20px; }.home-movement-choices { grid-template-columns:1fr; gap:10px; margin-top:22px; }.home-movement-choices button { min-height:78px; padding:15px; }
}
@media print { body.care-print .care-ai-sharing { display:none!important; } }

#careSharePreview, #careQuestion, #careVisitDocument { scroll-margin-top:90px; }

.session-countdown[hidden] { display:none!important; }
.session-countdown { position:absolute; z-index:6; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:#fff; text-align:center; background:rgba(15,31,26,.84); backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); }
.countdown-label { color:#d3e5d9; font-size:10px; font-weight:700; letter-spacing:1.6px; }
.session-countdown strong { display:grid; place-items:center; width:112px; height:112px; margin:4px 0; border:2px solid #c8e3d455; border-radius:50%; color:#fff; background:#ffffff0c; font-size:64px; font-weight:600; line-height:1; font-variant-numeric:tabular-nums; animation:countdown-breathe 1s ease-in-out infinite alternate; }
.session-countdown p { margin:0; color:#e0eae3; font-size:13px; }
.countdown-cancel { min-height:36px; margin-top:8px; padding:7px 13px; border:1px solid #ffffff50; border-radius:999px; color:#fff; background:#ffffff12; font-size:11px; }
.countdown-cancel:hover { background:#ffffff24; }
/* Formnote's new direction: a quiet movement journal, not a panel dashboard. */
:root {
  --ink:#26332d; --muted:#6e7972; --line:#d9ddd5; --bg:#fbfaf6; --paper:#fffefa;
  --green:#285b49; --green2:#285b49; --mint:#e5ece5; --mint2:#d8e2d8;
  --amber:#8b6738; --amberbg:#f3ede2; --red:#a2463e; --redbg:#f6e9e6;
  --shadow:none; --font-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-editorial:"Iowan Old Style","Baskerville","Palatino Linotype",Georgia,serif;
}
html, body { min-width:320px; background:#fbfaf6; color:#26332d; font-family:var(--font-ui); font-size:14px; line-height:1.5; letter-spacing:0; }
button, input, select, textarea { font-family:var(--font-ui); }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline:2px solid #a44f36; outline-offset:3px; }
.app { grid-template-columns:218px minmax(0,1fr); min-height:100svh; }
.sidebar { padding:26px 16px 16px; background:#efeee8; border-color:#d9ddd5; }
.brand { margin:0 8px 38px; gap:10px; }
.brand-mark { width:30px; height:30px; border-radius:2px; color:white; background:#204637; box-shadow:none; font:700 17px/1 var(--font-editorial); }
.brand-name { color:#26332d; font:700 20px/1 var(--font-editorial); letter-spacing:-.6px; }
.nav-caption { margin:0 11px 9px; color:#89918a; font-size:9px; letter-spacing:1.15px; }
.nav { gap:2px; }
.nav button { min-height:42px; padding:9px 11px; border-left:2px solid transparent; border-radius:0; color:#66736b; font-size:12px; font-weight:560; transition:color .16s,background-color .16s,border-color .16s; }
.nav button:hover { background:#e8e7df; }
.nav button.active { color:#204637; border-left-color:#a44f36; border-radius:0; background:#e4e8df; font-weight:650; }
.nav-ico { color:#778178; font-size:15px; }
.nav button.active .nav-ico { color:#204637; }
.privacy-mini { padding:12px 11px; border:0; border-top:1px solid #c8cec4; border-radius:0; background:transparent; font-size:10px; line-height:1.45; }
.privacy-mini strong { margin-bottom:3px; font-size:11px; }
.user-mini { margin-top:8px; padding:13px 8px 1px; border-top:1px solid #d9ddd5; }
.avatar { width:30px; height:30px; color:#204637; background:#dfe7df; font-size:11px; }
.user-name { font-size:11px; } .user-plan { font-size:9px; }
.topbar { height:56px; padding:0 clamp(22px,4vw,54px); border-color:#d9ddd5; background:#fbfaf6; backdrop-filter:none; -webkit-backdrop-filter:none; }
.breadcrumb { color:#89918a; font-size:11px; } .breadcrumb b { color:#405049; font-weight:620; }
.help-link { min-height:34px; padding:5px 8px; border-radius:0; font-size:11px; }
.help-link:hover { color:#204637; text-decoration:underline; text-underline-offset:3px; }
.content { width:100%; max-width:1480px; padding:32px clamp(22px,4vw,54px) 56px; }
.welcome { align-items:flex-end; gap:16px; margin-bottom:25px; }
.eyebrow { color:#285b49; font-size:9px; letter-spacing:1.25px; }
.welcome h1, .screen-heading h1 { color:#26332d; font-family:var(--font-editorial); font-weight:500; letter-spacing:-.65px; }
.welcome h1 { font-size:clamp(28px,3vw,34px); line-height:1.1; }
.welcome p { display:none; }
.date-badge { padding:7px 0 6px 11px; border:0; border-left:1px solid #c8cec4; border-radius:0; color:#6e7972; background:transparent; font-size:10px; }
.notice { display:none; }
.app-screen { gap:25px; min-width:0; animation:screen-in .18s ease both; }
.app-screen[hidden] { display:none; }
@keyframes screen-in { from {opacity:.65} to {opacity:1} }
.screen-heading { margin:0; padding:0 0 15px; border-bottom:1px solid #c8cec4; }
.screen-heading .eyebrow { margin-bottom:4px; color:#89918a; }
.screen-heading h1 { margin:0; font-size:clamp(25px,2.5vw,30px); line-height:1.12; }
.screen-heading p { margin:5px 0 0; color:#6e7972; font-size:12px; }
.card { min-width:0; border:1px solid #d9ddd5; border-radius:3px; background:#fffefa; box-shadow:none; }

/* Home */
.home-focus { display:grid; grid-template-columns:minmax(0,1fr) minmax(200px,290px); align-items:stretch; min-height:218px; overflow:hidden; padding:0; border:0; border-top:1px solid #c8cec4; border-bottom:1px solid #c8cec4; border-radius:0; color:#26332d; background:#f0efe8; box-shadow:none; }
.home-focus::after, .home-art::after, .home-art-orbit { display:none; }
.home-focus-copy { position:relative; z-index:1; align-self:center; max-width:600px; padding:28px 30px; }
.home-kicker { color:#285b49; font-size:9px; font-weight:700; letter-spacing:1.3px; }
.home-focus h2 { margin:10px 0 6px; color:#26332d; font:500 clamp(28px,3vw,36px)/1.08 var(--font-editorial); letter-spacing:-.8px; }
.home-focus p { margin:0; color:#405049; font-size:13px; }
.home-hero-meta { display:flex; flex-wrap:wrap; gap:6px 15px; margin:12px 0 17px; color:#6e7972; font-size:10px; }
.home-hero-meta span + span { padding-left:13px; border-left:1px solid #c8cec4; }
.home-hero-meta span:first-child::before { content:"◷"; margin-right:6px; color:#285b49; }
.home-focus .primary { color:white; background:#204637; box-shadow:none; }
.home-focus .primary:hover { background:#173b30; }
.home-art { position:relative; right:auto; bottom:auto; display:grid; place-items:center; width:auto; height:auto; min-height:190px; overflow:hidden; border:0; border-left:1px solid #d4d7cd; border-radius:0; background:#e5e5d9; opacity:1; }
.home-art svg { width:min(78%,190px); height:min(90%,190px); overflow:visible; }
.home-art .art-chair { fill:none; stroke:#738278; stroke-width:4; stroke-linecap:square; stroke-linejoin:miter; }
.home-art .art-head { fill:#f4f2e9; stroke:#536b5d; stroke-width:2; }
.home-art .art-body { fill:none; stroke:#315e4a; stroke-width:7; stroke-linecap:square; stroke-linejoin:miter; }
.home-art .art-joint, .home-art .art-motion, .home-art .art-arrow { fill:none; stroke:#a44f36; stroke-width:1.5; stroke-linecap:square; }
.home-art .art-joint { stroke-width:6; }
.home-art .art-motion { stroke-dasharray:2 5; }
.home-art .art-caption { display:none; }
.home-shortcuts { display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,.34fr); gap:0 38px; min-width:0; padding-top:2px; }
.journal-list-heading { grid-column:1/-1; display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding-bottom:8px; border-bottom:1px solid #c8cec4; color:#89918a; font-size:9px; letter-spacing:.9px; text-transform:uppercase; }
.journal-list-heading span:last-child { color:#6e7972; font-size:10px; letter-spacing:0; text-transform:none; }
.shortcut-card { display:grid; grid-template-columns:31px minmax(0,1fr) 20px; align-items:center; gap:10px; width:100%; min-width:0; min-height:59px; padding:9px 0; border:0; border-bottom:1px solid #d9ddd5; border-radius:0; color:#26332d; background:transparent; text-align:left; box-shadow:none; transition:color .15s,padding .15s; }
.shortcut-card:hover { padding-left:4px; color:#204637; border-color:#c8cec4; background:transparent; box-shadow:none; transform:none; }
.shortcut-num { color:#a44f36; font:500 13px var(--font-editorial); }
.shortcut-card b, .shortcut-card small { display:block; }
.shortcut-card b { color:inherit; font-size:12px; font-weight:650; }
.shortcut-card small { margin-top:2px; color:#6e7972; font-size:10px; line-height:1.35; }
.shortcut-icon { display:none; }
.shortcut-arrow { justify-self:end; margin:0; color:#89918a; font-size:14px; }

/* Practice layout: camera first, measurements in a restrained side rail. */
.practice-layout { display:grid; grid-template-columns:minmax(0,1fr) 275px; align-items:start; gap:24px; min-width:0; }
.practice-layout > *, .practice-aside { min-width:0; }
.practice-aside { display:grid; gap:23px; }
#movement { min-width:0; padding-bottom:2px; overflow:hidden; border:1px solid #d9ddd5; border-radius:3px; background:#fffefa; box-shadow:none; }
.card-head { padding:16px 17px 13px; }
.card-title { color:#26332d; font-size:16px; letter-spacing:-.2px; }
.card-desc { color:#6e7972; font-size:11px; }
.plan-chip { padding:0 0 0 8px; border:0; border-left:1px solid #c8cec4; border-radius:0; color:#285b49; background:transparent; font-size:8px; letter-spacing:.85px; }
.live-state { padding:3px 0 3px 8px; border:0; border-left:1px solid #d9ddd5; border-radius:0; color:#6e7972; background:transparent; font-size:9px; }
.live-dot.ready, .live-dot.active { box-shadow:none; }
.stage { min-width:0; min-height:0; max-height:none; margin:0 13px; border-radius:2px; background:#202d28; }
.stage-shade { background:#202d28; }
.setup-message { max-width:350px; padding:18px; }
.cam-icon { width:38px; height:38px; border-radius:50%; border-color:#85968c; color:#e7ece6; background:transparent; font-size:17px; }
.setup-message h3 { color:#fff; font:500 20px/1.2 var(--font-editorial); }
.setup-message p { color:#d2d9d3; font-size:11px; }
.frame-guide { border-color:#c5d2c755; }
.stage-instructions { left:12px; bottom:12px; max-width:min(65%,280px); padding:8px 10px; border-left:2px solid #c0d1c3; border-radius:0; background:#14231dcf; font-size:10px; }
.stage-counter { top:12px; right:12px; min-width:55px; padding:6px 8px; border-left:2px solid #c2d4c5; border-radius:0; background:#14231dcf; }
.stage-counter strong { font:500 24px/1 var(--font-editorial); }
.stage-stop { top:12px; left:12px; min-height:33px; padding:7px 10px; border-radius:2px; background:#a44f36; font-size:10px; }
.camera-meta { right:11px; bottom:10px; font-size:9px; }
.camera-status-line { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 14px; min-width:0; margin:0 13px; padding:10px 0; border-bottom:1px solid #d9ddd5; font-size:10px; }
.camera-controls { display:flex; align-items:center; flex-wrap:wrap; gap:7px; min-width:0; padding:11px 13px 13px; }
.camera-controls > * { min-width:0; }
.camera-controls > .primary, .camera-controls > .secondary { flex:0 0 auto; }
.camera-device { flex:1 1 145px; width:auto; max-width:100%; min-width:0; min-height:37px; padding:7px 9px; border:1px solid #c8cec4; border-radius:2px; color:#405049; background:#fffefa; font-size:10px; }
.camera-controls .control-divider { display:none; }
.controls-note { flex:1 0 100%; color:#89918a; font-size:9px; }
.primary, .secondary, .quiet { min-height:39px; padding:8px 12px; border:1px solid transparent; border-radius:2px; font-size:11px; font-weight:650; transition:background-color .15s,border-color .15s,color .15s; }
.primary { color:white; background:#204637; box-shadow:none; }
.primary:hover:not(:disabled) { background:#173b30; box-shadow:none; transform:none; }
.secondary { color:#204637; border-color:#b7c8b9; background:transparent; }
.secondary:hover:not(:disabled) { background:#edf1e9; }
.quiet { color:#6e7972; background:transparent; }
.setup-row { gap:0; padding:0 13px 14px; }
.setup-tip { display:grid; grid-template-columns:18px minmax(0,1fr); gap:0 7px; padding:9px 8px; border-top:1px solid #d9ddd5; border-radius:0; background:transparent; }
.setup-tip + .setup-tip { border-left:1px solid #d9ddd5; }
.setup-tip i { width:17px; height:17px; border-radius:50%; color:#285b49; background:#e5ece5; font-size:8px; }
.setup-tip b { color:#405049; font-size:9px; }
.setup-tip span { grid-column:2; margin-top:2px; color:#6e7972; font-size:9px; line-height:1.35; }
.manual-counter { display:flex; align-items:center; justify-content:center; gap:9px; padding:0 13px 13px; }
.manual-counter span { color:#6e7972; font-size:10px; }
.session-countdown { background:#17271fef; backdrop-filter:none; -webkit-backdrop-filter:none; }
.session-countdown strong { border:1px solid #d3dfd477; border-radius:50%; background:transparent; font-family:var(--font-editorial); animation:none; }
.countdown-cancel { border-radius:2px; }

/* Measurements and check-in */
.stats { display:grid; grid-template-columns:1fr; gap:0; border-top:1px solid #c8cec4; border-bottom:1px solid #c8cec4; }
.stat { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:2px 9px; padding:11px 0; border:0; border-bottom:1px solid #d9ddd5; border-radius:0; background:transparent; box-shadow:none; }
.stat:last-child { border-bottom:0; }
.stat-label { color:#89918a; font-size:8px; letter-spacing:.85px; }
.stat-value { grid-column:2; grid-row:1/span 2; margin:0; color:#204637; font:500 25px/1 var(--font-editorial); }
.stat-foot { grid-column:1; margin:0; color:#6e7972; font-size:9px; line-height:1.3; }
.panel { min-width:0; padding:16px 0; border:0; border-top:1px solid #c8cec4; border-radius:0; background:transparent; box-shadow:none; }
.panel-top { gap:10px; margin-bottom:12px; }
.panel-top h2, .section-head h2 { color:#26332d; font:500 19px/1.18 var(--font-editorial); letter-spacing:-.15px; }
.panel-top p, .checkin-intro { margin:5px 0 0; color:#6e7972; font-size:10px; }
.calibration-actions { gap:6px; flex-wrap:wrap; }
.calibration-actions .primary, .calibration-actions .secondary { min-height:34px; padding:7px 9px; font-size:9px; }
.angle-values { gap:6px; }
.angle-empty { padding:9px 0; border:0; border-top:1px solid #d9ddd5; border-radius:0; color:#6e7972; background:transparent; font-size:10px; }
.angle-cell { padding:8px 0; border-top:1px solid #d9ddd5; }
.angle-cell span { color:#6e7972; font-size:10px; }
.angle-cell strong { color:#26332d; font-size:11px; }
.angle-footnote, .fine-print { color:#89918a; font-size:9px; line-height:1.45; }
.checkin-layout { display:grid; grid-template-columns:minmax(0,1fr) 265px; align-items:start; gap:30px; }
.checkin-card { min-width:0; padding:0 0 18px; border:0; border-bottom:1px solid #c8cec4; border-radius:0; background:transparent; box-shadow:none; }
.section-head { margin-bottom:5px; }
.section-head h2, .coach-head h2, .recent-header h2 { color:#26332d; font:500 21px/1.2 var(--font-editorial); }
.optional { color:#89918a; font-size:9px; }
.checkin-intro { margin-bottom:21px; }
.field-label { margin:16px 0 7px; color:#405049; font-size:11px; font-weight:650; }
.field-value { color:#6e7972; font-size:10px; }
.rating { gap:5px; margin:0 0 4px; }
.rating button, .rating .rating-button { min-width:38px; min-height:36px; padding:5px; border:1px solid #c8cec4; border-radius:2px; color:#405049; background:transparent; font-size:11px; }
.rating button:hover { border-color:#285b49; }
.rating button[aria-pressed=true] { color:white; border-color:#204637; background:#204637; }
.rating.pain button[aria-pressed=true] { border-color:#a44f36; background:#a44f36; }
.scale-labels { color:#89918a; font-size:9px; }
.pain-note { padding:9px 10px; border-left:2px solid #a2463e; border-radius:0; color:#a2463e; background:#f6e9e6; font-size:10px; }
.note-input, .plan-form input, .plan-form textarea, .dialog input, .dialog select, .dialog textarea { display:block; width:100%; min-width:0; min-height:38px; padding:9px 10px; border:1px solid #c8cec4; border-radius:2px; color:#26332d; background:#fffefa; font-size:11px; }
.note-input, .plan-form textarea, .dialog textarea { min-height:82px; }
.note-input::placeholder, input::placeholder, textarea::placeholder { color:#929991; }
.checkin-actions { gap:10px; margin-top:13px; }
.checkin-feedback { color:#285b49; font-size:10px; }
.coach-card { align-self:start; padding:16px 0; border:0; border-top:2px solid #285b49; border-bottom:1px solid #d9ddd5; border-radius:0; background:transparent; box-shadow:none; }
.coach-head { gap:9px; margin-bottom:9px; }
.coach-head h2 { font-size:17px; }
.coach-icon { display:none; }
.coach-copy { margin:0; color:#405049; font:400 16px/1.45 var(--font-editorial); }
.coach-foot { margin-top:11px; color:#89918a; font-size:9px; }

/* Progress and records */
.progress-layout { display:grid; grid-template-columns:minmax(0,1fr) 310px; align-items:start; gap:28px; min-width:0; }
.progress-main, .progress-aside, .progress-tools { display:grid; gap:18px; min-width:0; }
.progress-aside { padding-left:18px; border-left:1px solid #d9ddd5; }
.progress-tools { grid-template-columns:1fr; gap:18px; }
#progress { padding:0 0 16px; border:0; border-bottom:1px solid #c8cec4; border-radius:0; background:transparent; box-shadow:none; }
.legend { gap:12px; color:#6e7972; font-size:9px; }
.legend i { width:8px; height:8px; }
.legend .legend-dash { width:14px; height:0; border-top:1px dashed #a44f36; border-radius:0; background:transparent!important; }
#progressSvg { display:block; width:100%; min-width:0; height:168px; overflow:visible; }
#progressSvg text { fill:#6e7972; font:9px var(--font-ui); }
#targetPath { stroke:#a44f36; stroke-width:1.5; stroke-dasharray:4 5; }
#rangePath { stroke:#285b49; stroke-width:2.5; }
.chart-empty { position:relative; min-width:0; min-height:140px; }
.chart-empty-note { position:absolute; inset:0; display:grid; place-items:center; color:#89918a; font-size:11px; pointer-events:none; }
.chart-labels { display:flex; justify-content:space-between; color:#89918a; font-size:9px; }
.analysis-summary { margin-top:13px; padding:10px 0 0; border-top:1px solid #d9ddd5; color:#6e7972; font-size:10px; line-height:1.5; }
.analysis-summary b { color:#26332d; }
.trend-flag { color:#a44f36; }
#recentSessions { padding:14px 0 0; border:0; border-top:1px solid #c8cec4; border-radius:0; background:transparent; box-shadow:none; }
.recent-header { gap:10px; margin-bottom:6px; }
.recent-header h2 { font-size:19px; }
.recent-header button, .text-action { padding:3px 0; border:0; color:#6e7972; background:transparent; font-size:9px; text-decoration:underline; text-underline-offset:2px; }
.session-row { display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid #d9ddd5; }
.session-date { color:#89918a; font-size:8px; }
.session-date strong { color:#204637; font:500 18px/1 var(--font-editorial); }
.session-main { display:grid; gap:2px; min-width:0; }
.session-main b { color:#26332d; font-size:10px; }
.session-main span, .session-pain { color:#6e7972; font-size:9px; line-height:1.35; }
.session-pain { text-align:right; }
.empty-sessions { padding:13px 0; color:#89918a; font-size:10px; }
.progress-tools .panel { padding:16px 0; }
.plan-form { gap:11px; }
.plan-form label { gap:5px; color:#405049; font-size:10px; }
.plan-grid { gap:9px; }
.plan-summary { padding:9px 0; border-top:1px solid #d9ddd5; color:#6e7972; font-size:10px; }
.plan-summary b { color:#204637; }
.upload-row { gap:8px; margin-top:12px; }
.upload-hint { color:#89918a; font-size:9px; }
.scan-status { color:#6e7972; font-size:10px; }
.scan-review { margin-top:10px; padding:9px 0; border-top:1px solid #d9ddd5; }
.scan-review summary { color:#204637; font-size:10px; }
.media-list { gap:6px; margin-top:10px; }
.document-item { grid-template-columns:minmax(0,1fr) auto; gap:4px 8px; padding:8px 0; border-top:1px solid #d9ddd5; }
.document-item a { color:#204637; font-size:10px; overflow-wrap:anywhere; }
.document-item small { color:#89918a; font-size:8px; }
.photo-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.photo-item { min-width:0; border-bottom:1px solid #d9ddd5; }
.photo-item img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; background:#f0efe8; }
.photo-item > div { display:grid; gap:3px; padding:7px 0; }
.photo-item b { color:#26332d; font-size:9px; }
.photo-item small { color:#89918a; font-size:8px; }
.media-empty { grid-column:1/-1; padding:12px 0; border:0; border-top:1px dashed #c8cec4; border-radius:0; color:#89918a; font-size:10px; text-align:left; }

/* Visit note, dialogs and responsive controls */
.report-card { padding:0 0 16px; border:0; border-top:1px solid #c8cec4; border-bottom:1px solid #c8cec4; border-radius:0; background:transparent; box-shadow:none; }
.report-summary { gap:11px; padding:12px 0; border-top:1px solid #d9ddd5; border-bottom:1px solid #d9ddd5; }
.report-icon { width:34px; height:34px; border:1px solid #c8cec4; border-radius:50%; color:#285b49; font-size:14px; }
.report-name { color:#26332d; font-size:12px; }
.report-name small { margin-top:2px; color:#6e7972; font-size:9px; }
.report-actions { gap:7px; padding-top:11px; }
.report-foot, .footer-disclaimer { color:#89918a; font-size:9px; line-height:1.45; }
.visit-guide { gap:10px; padding:10px 0; border:0; border-top:1px solid #d9ddd5; border-bottom:1px solid #d9ddd5; border-radius:0; color:#405049; background:transparent; }
.visit-guide-icon { color:#a44f36; font-size:13px; }
.visit-guide p { margin:2px 0 0; color:#6e7972; font-size:9px; }
.dialog { width:min(620px,calc(100vw - 28px)); max-height:min(86svh,820px); border:1px solid #c8cec4; border-radius:3px; color:#26332d; background:#fbfaf6; box-shadow:0 16px 50px #1b2c2333; }
.dialog::backdrop { background:#18231e99; backdrop-filter:none; }
.dialog-inner { padding:22px; }
.dialog-head { padding-bottom:12px; border-bottom:1px solid #c8cec4; }
.dialog-head h2 { color:#26332d; font:500 25px/1.15 var(--font-editorial); }
.close-btn { min-height:34px; border:1px solid #c8cec4; border-radius:2px; color:#405049; background:transparent; font-size:10px; }
.dialog-content { padding:12px 0; color:#405049; font-size:11px; }
.dialog-content h3 { color:#26332d; font-size:12px; }
.dialog-actions { gap:8px; padding-top:12px; border-top:1px solid #d9ddd5; }
.dialog-foot { color:#89918a; font-size:9px; }
.calibration-warning { padding:9px 10px; border-left:2px solid #8b6738; border-radius:0; color:#725a37; background:#f3ede2; font-size:10px; }
.calibration-fields { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.calibration-fields label { color:#405049; font-size:10px; }
.goal-hint { color:#89918a; font-size:9px; }
.calibration-source, .auto-cal-status { color:#6e7972; font-size:10px; }
.auto-pose-card { gap:12px; padding:12px 0; border-top:1px solid #d9ddd5; border-bottom:1px solid #d9ddd5; }
.auto-pose-illustration { flex:0 0 54px; width:54px; height:54px; padding:4px; color:#285b49; background:#f0efe8; }
.auto-pose-illustration .pose-arc { stroke:#a44f36; }
.auto-pose-card h3 { color:#26332d; font:500 16px var(--font-editorial); }
.step-label { color:#285b49; font-size:8px; }
.toast { border:1px solid #354a3c; border-radius:2px; background:#26382f; box-shadow:none; font-size:11px; }

@media (max-width:1120px) {
  .app { grid-template-columns:200px minmax(0,1fr); }
  .practice-layout { grid-template-columns:minmax(0,1fr); }
  .practice-aside { grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); gap:25px; }
  .progress-layout { grid-template-columns:minmax(0,1fr) 280px; gap:20px; }
  .progress-aside { padding-left:14px; }
}
@media (max-width:900px) {
  .app { display:block; min-height:100svh; }
  .sidebar { display:none; }
  .topbar { height:52px; padding:0 18px; }
  .content { max-width:760px; padding:24px 20px calc(92px + env(safe-area-inset-bottom)); }
  .mobile-nav { position:fixed; z-index:10; right:0; bottom:0; left:0; display:flex; justify-content:space-around; padding:5px 6px calc(5px + env(safe-area-inset-bottom)); border-top:1px solid #c8cec4; background:#fbfaf6; backdrop-filter:none; -webkit-backdrop-filter:none; }
  .mobile-nav button { display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:49px; padding:5px 2px; border:0; border-radius:0; color:#6e7972; background:transparent; font-size:8px; font-weight:580; }
  .mobile-nav button.active { color:#204637; background:transparent; box-shadow:inset 0 2px 0 #a44f36; }
  .mobile-nav button span { font-size:15px; line-height:1.05; }
  .progress-layout { grid-template-columns:minmax(0,1fr); }
  .progress-aside { padding:0; border:0; }
  .progress-tools { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .content { padding:21px 15px calc(88px + env(safe-area-inset-bottom)); }
  .welcome { align-items:flex-start; flex-direction:column; gap:7px; margin-bottom:20px; }
  .welcome h1 { font-size:29px; }
  .date-badge { padding:5px 0 5px 8px; }
  .screen-heading h1 { font-size:26px; }
  .home-focus { grid-template-columns:minmax(0,1fr) 110px; min-height:186px; }
  .home-focus-copy { padding:20px 15px; }
  .home-focus h2 { font-size:27px; }
  .home-focus p { font-size:11px; }
  .home-hero-meta { gap:5px; margin:9px 0 12px; font-size:9px; }
  .home-hero-meta span + span { padding-left:7px; }
  .home-art { min-height:160px; }
  .home-art svg { width:108px; height:140px; }
  .home-shortcuts { grid-template-columns:minmax(0,1fr); gap:0; }
  .journal-list-heading { align-items:flex-start; flex-direction:column; gap:2px; }
  .practice-aside { grid-template-columns:minmax(0,1fr); gap:15px; }
  .checkin-layout { grid-template-columns:minmax(0,1fr); gap:12px; }
  .progress-tools { grid-template-columns:minmax(0,1fr); }
  .stage { aspect-ratio:4/3; margin:0 9px; }
  .setup-row { grid-template-columns:minmax(0,1fr); padding:0 9px 10px; }
  .setup-tip + .setup-tip { border-left:0; }
  .camera-controls { padding-left:9px; padding-right:9px; }
  .camera-controls > .primary, .camera-controls > .secondary { flex:1 1 auto; }
  .camera-device { flex:1 1 calc(50% - 7px); }
  .controls-note { flex-basis:100%; }
  .camera-status-line { margin:0 9px; }
  .rating { gap:4px; }
  .rating button, .rating .rating-button { flex:1; min-width:0; min-height:39px; }
  .dialog-inner { padding:16px; }
}
@media (max-width:380px) {
  .home-focus { grid-template-columns:minmax(0,1fr) 82px; }
  .home-focus-copy { padding-left:12px; padding-right:10px; }
  .home-art svg { width:89px; }
  .date-badge { font-size:9px; }
  .session-row { grid-template-columns:30px minmax(0,1fr); }
  .session-pain { grid-column:2; text-align:left; }
}
@media (prefers-reduced-motion:reduce) {
  .app-screen { animation:none; }
  .session-countdown strong { animation:none; }
}
