/* طبقة إصلاح مستقلة: تبقى صالحة حتى لو تعطلت كتلة تنسيق قديمة قبلها. */
.vax-world{overflow:hidden}
html[data-theme="light"]{--route-accent:#2e8f69;--route-soft:rgba(46,143,105,.13)}
html[data-theme="light"][data-app-route="koah"]{--route-accent:#287896;--route-soft:rgba(40,120,150,.13)}
html[data-theme="light"][data-app-route="beslenme"],
html[data-theme="light"][data-app-route="defter"]{--route-accent:#8a651e;--route-soft:rgba(138,101,30,.13)}
.motion-dialog{
  width:min(1080px,calc(100% - 24px));
  max-height:calc(100dvh - 24px);
  padding:0;
  border:1px solid var(--line);
  border-radius:28px;
  background:#0b231b;
  color:var(--ink);
  box-shadow:0 35px 100px rgba(0,0,0,.55);
  box-sizing:border-box;
  overflow-y:auto;
  overflow-x:hidden;
}
.motion-dialog::backdrop{background:rgba(4,18,14,.72);backdrop-filter:blur(8px)}
.motion-dialog .lung-camera-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:26px;border-bottom:1px solid var(--line)}
.motion-dialog .lung-camera-head h2{margin:13px 0 0;font-size:32px;line-height:1.08;letter-spacing:-.045em}
.motion-dialog .lung-camera-head>button{width:47px;min-width:47px;height:47px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.04);color:var(--ink);font-size:22px;cursor:pointer}
.motion-dialog .lung-camera-consent{display:flex;gap:14px;margin:20px 24px;padding:16px;border:1px solid rgba(148,229,191,.2);border-radius:16px;background:rgba(148,229,191,.07)}
.motion-dialog .lung-camera-consent>span{width:39px;height:39px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:rgba(148,229,191,.12);color:var(--mint)}
.motion-dialog .lung-camera-consent b{display:block;font-size:12px}
.motion-dialog .lung-camera-consent p{margin:5px 0 0;color:#9eb6ac;font-size:10px;line-height:1.55}
.motion-dialog .lung-video-stage{position:relative;min-height:330px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:radial-gradient(circle,rgba(148,229,191,.12),rgba(0,0,0,.18))}
.motion-dialog .lung-video-stage video{position:absolute;inset:0;width:100%;height:100%;min-height:330px;object-fit:cover;transform:scaleX(-1)}
.motion-dialog .lung-camera-placeholder{display:grid;justify-items:center;gap:7px;padding:82px 22px 22px;color:#8ea69c;text-align:center}
.motion-dialog .lung-camera-placeholder>span{width:72px;height:72px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:26px}
.motion-dialog .lung-camera-placeholder b{color:#c8dbd3}
.motion-dialog .lung-camera-placeholder small{max-width:270px;font-size:9px;line-height:1.5}
.motion-dialog .lung-camera-live{position:absolute;z-index:5;left:13px;top:13px;padding:8px 10px;border-radius:999px;background:rgba(3,20,14,.78);color:#fff;font-size:9px;font-weight:800}
.motion-dialog .lung-camera-live i{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#ff6e66;box-shadow:0 0 8px #ff6e66}
.motion-dialog .lung-camera-status{min-height:22px;margin:13px 0 0;color:#8fa89d;font-size:10px}
.motion-dialog .lung-camera-actions{display:flex;gap:8px;margin:10px 24px}
.motion-dialog .lung-camera-actions button{min-height:54px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 18px;border-radius:15px;font:800 12px Manrope;cursor:pointer}
.motion-dialog .lung-camera-actions button:disabled{opacity:.4;cursor:not-allowed}
.motion-dialog .lung-camera-limit{margin:18px 24px 24px;padding:15px;border-left:3px solid var(--gold);border-radius:0 13px 13px 0;background:rgba(230,201,142,.07);color:#cdbb94;font-size:10px;line-height:1.6}
.motion-dialog .lung-camera-limit b{display:block;margin-bottom:4px;color:#ead8af}
.motion-layout{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr);
  gap:16px;
  margin:0 24px;
}
.motion-layout>*{min-width:0}
.motion-layout .lung-video-stage{margin:0}
.motion-layout .lung-camera-status{margin-left:0;margin-right:0}
.lung-video-stage #motionCanvas{
  position:absolute;
  inset:0;
  z-index:2;
  width:100%;
  height:100%;
  pointer-events:none;
}
.motion-coach-card{
  min-width:0;
  padding:22px;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(148,229,191,.055);
}
.motion-coach-card h3{margin:13px 0 18px;font-size:23px;line-height:1.1}
.motion-rep{display:flex;align-items:end;gap:11px}
.motion-rep strong{font:600 62px/1 DM Sans;color:var(--mint)}
.motion-rep span{max-width:110px;color:var(--muted);font-size:11px;line-height:1.35}
.motion-status{min-height:58px;margin:17px 0;padding:13px;border-radius:13px;background:rgba(255,255,255,.04);color:#c7dbd2;font-size:12px;line-height:1.55}
.motion-status[data-tone="good"]{background:rgba(91,194,143,.13);color:var(--mint)}
.motion-status[data-tone="warn"]{background:rgba(232,145,134,.13);color:#ffb4ab}
.motion-status[data-tone="guide"]{background:rgba(230,198,138,.1);color:#ead19f}
.motion-borg{display:grid;gap:7px;color:var(--muted);font-size:11px}
.motion-borg select{min-height:48px;padding:0 11px;border:1px solid var(--line);border-radius:12px;background:#0f2d24;color:var(--ink);font:700 12px Manrope}
.motion-ack{display:flex;align-items:flex-start;gap:9px;margin:14px 0;color:#a7bdb4;font-size:10px;line-height:1.5}
.motion-ack input{width:19px;height:19px;flex:0 0 auto;accent-color:var(--mint)}
.motion-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.motion-actions button{min-height:50px;border-radius:13px;font:800 11px Manrope}
.motion-actions #motionStart:not(:disabled){box-shadow:0 12px 26px rgba(46,150,110,.24)}
.motion-status[data-tone="warn"]+ .motion-borg{padding-top:4px}
.motion-stop-signs{display:flex;gap:10px;margin:14px 24px;padding:14px 16px;border:1px solid rgba(232,145,134,.25);border-radius:14px;background:rgba(232,145,134,.07);color:#9a514a;font-size:10px;line-height:1.6}
.motion-stop-signs b{flex:0 0 auto;color:#b34239}
.motion-dialog .lung-camera-limit{margin-top:12px}
.living-motion-open{min-height:38px;padding:0 11px;border:1px solid rgba(44,140,102,.28);border-radius:11px;background:rgba(148,229,191,.1);color:var(--mint);font:800 10px Manrope;cursor:pointer}
.motion-lung-avatar{
  position:absolute;
  z-index:4;
  top:12px;
  right:12px;
  width:122px;
  display:grid;
  justify-items:center;
  padding:8px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:18px;
  background:rgba(4,24,18,.72);
  box-shadow:0 12px 30px rgba(0,0,0,.23);
  backdrop-filter:blur(10px);
}
.motion-lung-avatar img{width:80px!important;height:70px!important;max-width:80px;object-fit:contain;animation:breathe 3.4s ease-in-out infinite;filter:drop-shadow(0 8px 8px rgba(0,0,0,.22))}
.motion-lung-avatar span{color:#d8eee4;font:800 7px Manrope;letter-spacing:.1em;text-align:center}
html[data-theme="light"] .motion-coach-card{background:#f3faf6;border-color:#d2e6db}
html[data-theme="light"] .motion-dialog{background:#f8fcf9;color:#183e32}
html[data-theme="light"] .motion-dialog::backdrop{background:rgba(32,61,50,.45)}
html[data-theme="light"] .motion-dialog .lung-camera-consent{background:#e9f7f0}
html[data-theme="light"] .motion-dialog .lung-camera-consent p,
html[data-theme="light"] .motion-dialog .lung-camera-status{color:#5f7a70}
html[data-theme="light"] .motion-dialog .lung-video-stage{background:radial-gradient(circle,#eef8f3,#deece5)}
html[data-theme="light"] .motion-dialog .lung-camera-placeholder{color:#5e7b70}
html[data-theme="light"] .motion-dialog .lung-camera-placeholder b{color:#345f50}
html[data-theme="light"] .motion-dialog .lung-camera-limit{background:#fff7e8;color:#725f3a}
html[data-theme="light"] .motion-dialog .lung-camera-limit b{color:#76571e}
html[data-theme="light"] .motion-status{background:#fff;color:#3d6657}
html[data-theme="light"] .motion-borg select{background:#fff;color:#183b30}
html[data-theme="light"] .motion-ack{color:#4c6c60}
html[data-theme="light"] .motion-stop-signs{background:#fff4f2;color:#784b47}
html[data-theme="light"] .motion-lung-avatar{background:rgba(255,255,255,.88);border-color:#cfe4d9}
html[data-theme="light"] .motion-lung-avatar span{color:#23664d}

@media(max-width:780px){
  .motion-layout{grid-template-columns:1fr;margin:0 14px}
  .motion-dialog .lung-video-stage{min-height:42dvh}
  .motion-coach-card{padding:18px}
  .motion-stop-signs,.motion-dialog .lung-camera-actions,.motion-dialog .lung-camera-limit{margin-left:14px;margin-right:14px}
}

@media(max-width:560px){
  .vax-hero h1 em{display:block;font-size:45px;line-height:.98}
  .journal-masthead{flex-direction:column;align-items:stretch;gap:16px;margin:0 0 24px}
  .journal-private{width:100%;max-width:none;box-sizing:border-box}
  .journal-datebar{grid-template-columns:46px minmax(0,1fr) auto 46px;gap:6px}
  .journal-date-btn{width:46px}
  .journal-today-btn{padding-left:10px;padding-right:10px;font-size:9px}
  .journal-scene{padding:14px 14px 38px}
  .journal-book{grid-template-columns:1fr;min-height:690px}
  .journal-book:after,.journal-left{display:none}
  .journal-right{border-radius:18px!important;padding:34px 24px 44px!important}
  .journal-page textarea,.journal-page input,.journal-page select{width:100%;max-width:100%;box-sizing:border-box}
  .motion-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0}
  .motion-dialog .lung-camera-head{position:sticky;z-index:12;top:0;padding:16px 14px;background:rgba(248,252,249,.96);backdrop-filter:blur(14px)}
  .motion-dialog .lung-camera-head h2{font-size:27px}
  .motion-dialog .lung-camera-head>button{width:46px;min-width:46px;height:46px}
  .motion-dialog .lung-camera-consent{margin:14px;padding:14px}
  .motion-dialog .lung-video-stage{min-height:310px}
  .motion-dialog .lung-camera-placeholder{padding-top:68px}
  .motion-dialog .lung-camera-actions{display:grid;grid-template-columns:1fr 1fr}
  .motion-actions{grid-template-columns:1fr}
  .motion-stop-signs{flex-direction:column}
  .living-motion-open{padding:0 8px;font-size:9px}
  .motion-lung-avatar{width:92px}
  .motion-lung-avatar img{width:60px!important;height:52px!important;max-width:60px}
}

/* Pulmoner rehabilitasyon hareket koçu — zengin, hızlı ve mobil öncelikli */
.motion-exercise-library{
  margin:0 24px 16px;
  padding:18px;
  border:1px solid rgba(148,229,191,.18);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(148,229,191,.07),rgba(230,201,142,.035));
  overflow:hidden;
}
.motion-library-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:13px}
.motion-library-head>div{display:grid;gap:4px}
.motion-library-head span{color:var(--mint);font:800 8px Manrope;letter-spacing:.18em}
.motion-library-head strong{font:700 19px/1.15 Manrope;letter-spacing:-.025em}
.motion-library-head small{max-width:240px;color:#8ea69c;font:600 9px/1.45 Manrope;text-align:right}
.motion-exercise-strip{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(170px,1fr);
  gap:9px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
  padding:1px 1px 7px;
}
.motion-exercise-choice{
  min-width:0;
  min-height:72px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px;
  border:1px solid rgba(148,229,191,.13);
  border-radius:15px;
  background:rgba(255,255,255,.035);
  color:var(--ink);
  text-align:left;
  scroll-snap-align:start;
  cursor:pointer;
  transition:border-color .2s,background .2s,transform .2s;
}
.motion-exercise-choice:hover{transform:translateY(-2px);border-color:rgba(148,229,191,.38)}
.motion-exercise-choice.is-active{border-color:#8ee0b8;background:rgba(111,214,164,.14);box-shadow:0 0 0 2px rgba(111,214,164,.07) inset}
.motion-exercise-choice i{width:39px;height:39px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:rgba(148,229,191,.1);font:normal 19px/1 sans-serif}
.motion-exercise-choice span{min-width:0;display:grid;gap:3px}
.motion-exercise-choice small{color:#89ad9e;font:800 7px Manrope;letter-spacing:.11em;text-transform:uppercase}
.motion-exercise-choice b{overflow:hidden;color:inherit;font:800 10px/1.25 Manrope;text-overflow:ellipsis;white-space:nowrap}

.motion-guide-panel{
  display:grid;
  grid-template-columns:145px minmax(0,1fr);
  gap:17px;
  align-items:center;
  margin-bottom:20px;
  padding:13px;
  border:1px solid rgba(148,229,191,.16);
  border-radius:17px;
  background:linear-gradient(150deg,rgba(148,229,191,.09),rgba(255,255,255,.025));
}
.motion-demo-wrap{position:relative;min-width:0;display:grid;place-items:center;overflow:hidden;border-radius:14px;background:radial-gradient(circle at 50% 34%,rgba(148,229,191,.16),transparent 67%)}
#motionDemoCanvas{display:block;width:100%;height:auto;max-height:190px;object-fit:contain}
.motion-demo-label{position:absolute;bottom:7px;left:50%;padding:6px 8px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(4,25,18,.78);color:#d8f4e7;font:800 6px Manrope;letter-spacing:.13em;white-space:nowrap;transform:translateX(-50%);backdrop-filter:blur(7px)}
.motion-guide-copy{min-width:0;display:grid;align-content:center;gap:6px}
.motion-guide-copy>span{color:var(--mint);font:800 8px Manrope;letter-spacing:.15em;text-transform:uppercase}
.motion-guide-copy>strong{font:750 21px/1.08 Manrope;letter-spacing:-.035em}
.motion-guide-copy>p{min-height:42px;margin:0;color:#a8bdb4;font:500 10px/1.5 Manrope}
.motion-guide-controls{display:flex;align-items:center;gap:7px;margin-top:5px}
.motion-guide-controls button,.motion-guide-controls label{min-height:39px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid rgba(148,229,191,.17);border-radius:11px;background:rgba(255,255,255,.035);color:#9eb7ad;font:800 8px Manrope}
.motion-guide-controls button{cursor:pointer}
.motion-guide-controls button.is-on{border-color:rgba(148,229,191,.48);color:#c9f4de;background:rgba(148,229,191,.09)}
.motion-guide-controls select{border:0;background:transparent;color:inherit;font:800 8px Manrope;outline:0}
.motion-guide-controls select option{background:#123027;color:#fff}

.motion-analysis-hud{position:absolute;z-index:3;inset:0;pointer-events:none;opacity:.72;transition:opacity .25s}
.lung-video-stage.is-analyzing .motion-analysis-hud{opacity:1}
.motion-scan-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(127,236,186,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(127,236,186,.075) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.9),transparent 90%)}
.motion-scan-line{position:absolute;left:2%;right:2%;top:12%;height:1px;background:linear-gradient(90deg,transparent,#a7f5d0,transparent);box-shadow:0 0 12px #75e7ad;opacity:0}
.lung-video-stage.is-analyzing .motion-scan-line{opacity:.8;animation:motionScan 2.2s ease-in-out infinite}
@keyframes motionScan{0%,100%{top:12%}50%{top:86%}}
.motion-analysis-hud .corner{position:absolute;width:30px;height:30px;border-color:#9df2c8;border-style:solid;filter:drop-shadow(0 0 5px rgba(123,241,185,.5))}
.motion-analysis-hud .corner.a{left:12px;top:12px;border-width:2px 0 0 2px;border-radius:9px 0 0}
.motion-analysis-hud .corner.b{right:12px;top:12px;border-width:2px 2px 0 0;border-radius:0 9px 0 0}
.motion-analysis-hud .corner.c{right:12px;bottom:12px;border-width:0 2px 2px 0;border-radius:0 0 9px}
.motion-analysis-hud .corner.d{left:12px;bottom:12px;border-width:0 0 2px 2px;border-radius:0 0 0 9px}
.motion-hud-metrics{position:absolute;right:11px;bottom:11px;display:flex;gap:5px}
.motion-hud-metrics span{min-width:48px;display:grid;gap:1px;padding:6px 7px;border:1px solid rgba(158,243,203,.18);border-radius:9px;background:rgba(3,25,18,.78);color:#85ac9c;font:700 6px Manrope;text-align:center;backdrop-filter:blur(8px)}
.motion-hud-metrics b{color:#d9ffec;font:800 9px Manrope}

.motion-evidence{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px;align-items:center;margin:14px 24px;padding:15px;border:1px solid rgba(148,229,191,.16);border-radius:15px;background:rgba(148,229,191,.045)}
.motion-evidence>div{display:flex;align-items:flex-start;gap:10px;min-width:0}
.motion-evidence>div>span{width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;background:rgba(148,229,191,.13);color:var(--mint);font-weight:900}
.motion-evidence p{margin:0;color:#9eb7ad;font:500 9px/1.55 Manrope}
.motion-evidence p b{display:block;margin-bottom:2px;color:#d7ece3;font-size:10px}
.motion-evidence nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:330px}
.motion-evidence a{padding:7px 8px;border:1px solid rgba(148,229,191,.16);border-radius:9px;color:#aee9cb;font:800 7px Manrope;text-decoration:none;white-space:nowrap}
.motion-evidence a:hover{background:rgba(148,229,191,.09)}

.living-call-quality{display:inline-flex;align-items:center;gap:6px;width:max-content;margin-top:7px;padding:6px 9px;border:1px solid rgba(70,145,113,.18);border-radius:999px;background:rgba(255,255,255,.42);color:#52796b;font:700 8px Manrope}
.living-call-quality i{width:7px;height:7px;border-radius:50%;background:#90aa9f}
.living-call-quality[data-tone="loading"] i{background:#e5b960;box-shadow:0 0 0 4px rgba(229,185,96,.13);animation:qualityPulse 1s infinite}
.living-call-quality[data-tone="good"] i{background:#43b77f;box-shadow:0 0 0 4px rgba(67,183,127,.13)}
.living-call-quality[data-tone="fair"] i{background:#d6a645}
.living-call-quality[data-tone="poor"] i{background:#dc6e64}
@keyframes qualityPulse{50%{opacity:.4}}

html[data-theme="light"] .motion-exercise-library{border-color:#d4e7dd;background:linear-gradient(135deg,#f2faf6,#fffaf0)}
html[data-theme="light"] .motion-library-head small{color:#5c796e}
html[data-theme="light"] .motion-exercise-choice{border-color:#d4e6dc;background:rgba(255,255,255,.78);color:#183e32}
html[data-theme="light"] .motion-exercise-choice.is-active{border-color:#61b58c;background:#e8f7ef}
html[data-theme="light"] .motion-exercise-choice small{color:#487a67}
html[data-theme="light"] .motion-guide-panel{border-color:#d2e6db;background:linear-gradient(145deg,#eaf8f1,#fff)}
html[data-theme="light"] .motion-guide-copy>p{color:#4f7164}
html[data-theme="light"] .motion-guide-controls button,html[data-theme="light"] .motion-guide-controls label{border-color:#c9dfd3;background:#fff;color:#3c6757}
html[data-theme="light"] .motion-guide-controls button.is-on{background:#e4f6ed;color:#205b45}
html[data-theme="light"] .motion-guide-controls select option{background:#fff;color:#173e31}
html[data-theme="light"] .motion-evidence{border-color:#d2e5da;background:#f4faf6}
html[data-theme="light"] .motion-evidence p{color:#4f6f63}
html[data-theme="light"] .motion-evidence p b{color:#214e3e}
html[data-theme="light"] .motion-evidence a{border-color:#cadfd4;color:#26694f;background:#fff}

@media(max-width:780px){
  .motion-exercise-library{margin:0 14px 14px;padding:14px}
  .motion-library-head{align-items:start}
  .motion-library-head small{max-width:155px}
  .motion-exercise-strip{grid-auto-columns:minmax(158px,46vw)}
  .motion-evidence{grid-template-columns:1fr;margin-left:14px;margin-right:14px}
  .motion-evidence nav{justify-content:flex-start;max-width:none}
}

@media(max-width:560px){
  .motion-library-head{display:grid;gap:7px}
  .motion-library-head small{max-width:none;text-align:left}
  .motion-exercise-strip{grid-auto-columns:minmax(156px,68vw)}
  .motion-exercise-choice{min-height:68px}
  .motion-guide-panel{grid-template-columns:116px minmax(0,1fr);gap:11px;padding:10px}
  #motionDemoCanvas{max-height:154px}
  .motion-guide-copy>strong{font-size:18px}
  .motion-guide-copy>p{min-height:0;font-size:9px}
  .motion-guide-controls{display:grid}
  .motion-guide-controls button,.motion-guide-controls label{min-height:38px;justify-content:center}
  .motion-hud-metrics{right:8px;bottom:8px}
  .motion-hud-metrics span{min-width:42px;padding:5px}
  .motion-evidence nav{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .motion-evidence a{text-align:center;white-space:normal}
}

@media(max-width:390px){
  .motion-guide-panel{grid-template-columns:1fr}
  .motion-demo-wrap{max-height:170px}
  #motionDemoCanvas{width:150px}
  .motion-guide-copy{text-align:center}
  .motion-guide-controls{grid-template-columns:1fr 1fr}
}

@media(prefers-reduced-motion:reduce){
  .motion-scan-line,.living-call-quality i{animation:none!important}
}

/* Hareket koçu anlaşılır akış: seç → hazırla → dene → gerçek sayım */
.motion-journey{margin:0 24px 14px;padding:16px;border:1px solid rgba(148,229,191,.18);border-radius:20px;background:rgba(148,229,191,.045)}
.motion-journey ol{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 15px;padding:0;list-style:none}
.motion-journey ol:before{content:"";position:absolute;left:9%;right:9%;top:17px;height:2px;background:rgba(148,229,191,.15)}
.motion-step{position:relative;z-index:1;display:grid;justify-items:center;gap:6px;color:#7f9d91;text-align:center}
.motion-step b{width:34px;height:34px;display:grid;place-items:center;border:2px solid rgba(148,229,191,.18);border-radius:50%;background:#102d24;color:#8ba79c;font:800 10px Manrope}
.motion-step span{font:750 8px/1.25 Manrope}
.motion-step.is-current b{border-color:#92e7bd;background:#2f956e;color:#fff;box-shadow:0 0 0 5px rgba(81,188,139,.11)}
.motion-step.is-current span{color:#d6f4e5}
.motion-step.is-done b{border-color:#5eb58d;background:#dff8ea;color:#1e674b}
.motion-step.is-done b:after{content:"✓";font-size:13px}.motion-step.is-done b{font-size:0}
.motion-now-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"eyebrow button" "title button" "text button";gap:4px 16px;align-items:center;padding:16px;border-radius:15px;background:linear-gradient(135deg,#1c684f,#2e9970);color:#fff;box-shadow:0 14px 30px rgba(17,91,65,.17)}
.motion-now-card>span{grid-area:eyebrow;color:#bcebd5;font:800 7px Manrope;letter-spacing:.15em}
.motion-now-card>strong{grid-area:title;font:800 19px/1.12 Manrope;letter-spacing:-.025em}
.motion-now-card>p{grid-area:text;max-width:630px;margin:1px 0 0;color:#d5f0e3;font:500 9px/1.5 Manrope}
.motion-now-card>button{grid-area:button;min-height:49px;padding:0 17px;border:1px solid rgba(255,255,255,.32);border-radius:13px;background:#fff;color:#1d674c;font:800 9px Manrope;cursor:pointer;white-space:nowrap}

.motion-stage-message{position:absolute;z-index:7;left:50%;top:50%;width:min(270px,78%);display:grid;justify-items:center;gap:7px;padding:18px;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(5,30,22,.86);color:#fff;text-align:center;transform:translate(-50%,-50%);box-shadow:0 18px 45px rgba(0,0,0,.28);backdrop-filter:blur(13px)}
.motion-stage-message[hidden]{display:none!important}
.motion-stage-message strong{font:850 24px/1 Manrope;letter-spacing:.04em}
.motion-stage-message span{color:#c8dfd5;font:600 9px/1.5 Manrope}
.motion-stage-message[data-tone="countdown"] strong{font-size:72px;color:#ffe29b}
.motion-stage-message[data-tone="active"]{border-color:rgba(133,237,184,.55);background:rgba(17,93,66,.9)}
.motion-stage-message[data-tone="practice"]{border-color:rgba(245,209,132,.5);background:rgba(78,58,24,.9)}
.motion-stage-message[data-tone="warn"]{border-color:rgba(255,149,137,.5);background:rgba(91,37,31,.91)}
.motion-stage-message[data-tone="done"]{border-color:rgba(133,237,184,.55);background:rgba(19,107,75,.92)}

.motion-count-guide{display:grid;gap:12px;margin:0 0 18px;padding:14px;border:1px solid rgba(148,229,191,.15);border-radius:16px;background:rgba(255,255,255,.025)}
.motion-cycle-line{display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:center;gap:8px}
.motion-cycle-line span{padding:7px 9px;border-radius:999px;background:rgba(255,255,255,.035);color:#7f9f92;font:750 7px Manrope;white-space:nowrap}
.motion-cycle-line span.is-current{background:#e1f8eb;color:#1d684c;box-shadow:0 0 0 3px rgba(91,192,143,.08)}
.motion-cycle-line span.is-done{background:rgba(95,193,143,.16);color:#9de4c1}
.motion-cycle-line i{height:2px;background:rgba(148,229,191,.15)}
.motion-count-meta{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}
#motionCountConfidence{min-width:0;display:flex;align-items:center;gap:7px;color:#8da99d;font:750 8px Manrope}
#motionCountConfidence>i{width:9px;height:9px;flex:0 0 auto;border-radius:50%;background:#7c948a}
#motionCountConfidence[data-tone="good"]{color:#9ce3bf}#motionCountConfidence[data-tone="good"]>i{background:#55cd93;box-shadow:0 0 0 4px rgba(85,205,147,.1)}
#motionCountConfidence[data-tone="fair"]{color:#e4c783}#motionCountConfidence[data-tone="fair"]>i{background:#e0b859}
#motionCountConfidence[data-tone="poor"]{color:#ee9d94}#motionCountConfidence[data-tone="poor"]>i{background:#e27d72}
.motion-count-meta label{display:flex;align-items:center;gap:6px;color:#8ba79c;font:750 7px Manrope}
.motion-count-meta select{min-height:34px;padding:0 7px;border:1px solid rgba(148,229,191,.16);border-radius:9px;background:#102e25;color:#d9eee5;font:750 8px Manrope}
#motionTargetProgress{min-width:48px;color:#e7f7ef;font:800 12px Manrope;text-align:right}

.motion-transition{margin:16px 24px;padding:26px;border:1px solid rgba(148,229,191,.2);border-radius:24px;background:linear-gradient(145deg,rgba(148,229,191,.11),rgba(230,201,142,.055));text-align:center}
.motion-transition[hidden]{display:none!important}
.motion-transition-icon{width:52px;height:52px;display:grid;place-items:center;margin:0 auto 11px;border-radius:50%;background:#dcf7e9;color:#1f7555;font:900 20px Manrope}
.motion-transition>span{color:var(--mint);font:800 8px Manrope;letter-spacing:.17em}
.motion-transition h3{margin:7px 0 5px;font:800 27px/1.08 Manrope;letter-spacing:-.04em}
.motion-transition>p{max-width:540px;margin:0 auto;color:#9db6ac;font:500 10px/1.55 Manrope}
.motion-transition-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:520px;margin:18px auto}
.motion-transition-stats>div{display:grid;gap:3px;padding:14px;border:1px solid rgba(148,229,191,.14);border-radius:14px;background:rgba(255,255,255,.035)}
.motion-transition-stats strong{color:#c8f3dc;font:800 24px Manrope}.motion-transition-stats span{color:#88a89a;font:700 7px Manrope}
.motion-after-borg{max-width:520px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;margin:0 auto;color:#c4ddd2;font:750 10px Manrope;text-align:left}
.motion-after-borg select{min-height:44px;padding:0 10px;border:1px solid rgba(148,229,191,.2);border-radius:11px;background:#102e25;color:#fff;font:750 9px Manrope}
#motionAfterAdvice{margin-top:12px;color:#d4b06c}
.motion-transition-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:620px;margin:16px auto 0}
.motion-transition-actions button{min-height:48px;border:1px solid rgba(148,229,191,.18);border-radius:12px;background:rgba(255,255,255,.04);color:#cce8dc;font:800 9px Manrope;cursor:pointer}
.motion-transition-actions #motionNextButton{background:#2e966e;color:#fff}.motion-transition-actions #motionRepeatButton{grid-column:1/-1}
.motion-transition-actions button:disabled{opacity:.45;cursor:not-allowed}
.motion-dialog #lungCameraStart{display:none!important}
.motion-dialog .lung-camera-actions #lungCameraStop{width:100%}

html[data-theme="light"] .motion-journey{border-color:#d2e6db;background:#f2faf6}
html[data-theme="light"] .motion-step b{background:#fff;border-color:#d2e7dc;color:#57786b}
html[data-theme="light"] .motion-step span{color:#58766a}
html[data-theme="light"] .motion-step.is-current span{color:#1e6048}
html[data-theme="light"] .motion-count-guide{border-color:#d3e6dc;background:#f8fcf9}
html[data-theme="light"] .motion-cycle-line span{background:#edf6f1;color:#59776b}
html[data-theme="light"] .motion-cycle-line span.is-current{background:#dff6e9;color:#1d684c}
html[data-theme="light"] .motion-cycle-line span.is-done{background:#e7f6ee;color:#2e795c}
html[data-theme="light"] #motionCountConfidence{color:#4f7163}
html[data-theme="light"] .motion-count-meta select{background:#fff;color:#244e3e;border-color:#cee1d7}
html[data-theme="light"] #motionTargetProgress{color:#214f3d}
html[data-theme="light"] .motion-transition{border-color:#d2e6db;background:linear-gradient(145deg,#eef9f3,#fff9ed)}
html[data-theme="light"] .motion-transition>p{color:#4e6f62}
html[data-theme="light"] .motion-transition-stats>div{border-color:#d4e6dc;background:#fff}
html[data-theme="light"] .motion-transition-stats strong{color:#246b50}
html[data-theme="light"] .motion-transition-stats span{color:#58796b}
html[data-theme="light"] .motion-after-borg{color:#315d4c}
html[data-theme="light"] .motion-after-borg select{background:#fff;color:#244e3e;border-color:#cde1d6}
html[data-theme="light"] .motion-transition-actions button{border-color:#cde1d6;background:#fff;color:#285d49}
html[data-theme="light"] .motion-transition-actions #motionNextButton{background:#2e966e;color:#fff}

@media(max-width:780px){
  .motion-journey{margin:0 14px 14px}
  .motion-transition{margin-left:14px;margin-right:14px}
}

@media(max-width:560px){
  .motion-journey{padding:12px}
  .motion-journey ol{gap:3px;margin-bottom:12px}
  .motion-journey ol:before{left:10%;right:10%;top:15px}
  .motion-step b{width:30px;height:30px;font-size:9px}
  .motion-step span{font-size:6.5px}
  .motion-now-card{grid-template-columns:1fr;grid-template-areas:"eyebrow" "title" "text" "button";gap:5px;padding:14px}
  .motion-now-card>strong{font-size:18px}.motion-now-card>p{font-size:9px}.motion-now-card>button{width:100%;margin-top:7px}
  .motion-dialog:not([data-flow="choose"]) .motion-exercise-library{display:none}
  .motion-dialog[data-flow="choose"] .motion-layout,.motion-dialog[data-flow="choose"] .motion-evidence,.motion-dialog[data-flow="choose"] .motion-stop-signs,.motion-dialog[data-flow="choose"] .lung-camera-actions{display:none}
  .motion-dialog[data-flow="rest"] .motion-layout,.motion-dialog[data-flow="rest"] .lung-camera-actions{display:none}
  .motion-stage-message{width:72%;padding:16px}.motion-stage-message strong{font-size:21px}
  .motion-cycle-line{gap:4px}.motion-cycle-line span{padding:6px;font-size:6px}.motion-cycle-line i{min-width:8px}
  .motion-count-meta{grid-template-columns:1fr auto}.motion-count-meta label{grid-row:2}.motion-count-meta #motionTargetProgress{grid-column:2;grid-row:1/3;align-self:center}
  .motion-transition{padding:20px 14px}.motion-transition h3{font-size:23px}
  .motion-transition-stats{gap:5px}.motion-transition-stats>div{padding:11px 5px}.motion-transition-stats strong{font-size:21px}
  .motion-after-borg{grid-template-columns:1fr;text-align:center}.motion-after-borg select{width:100%}
  .motion-transition-actions{grid-template-columns:1fr}.motion-transition-actions #motionRepeatButton{grid-column:auto}
  .motion-actions #motionStart{min-height:58px;font-size:12px}
}
