/* 눈 운동(운동 기둥) — 실험실(/app/lab/)과 루틴 앱 운동 탭이 함께 쓰는 화면 규칙. 시안 A(흰·미스트 바탕, 먹 #15181C, 볼트는 채움만, 어두운 바탕 금지: dim = #8D939A) */
.lab-grid { align-items: start; }
.lab-h { font-size: 1.25rem; font-weight: 850; margin: 0 0 var(--s3); }
.prog { border: 2px solid var(--line); border-radius: var(--r-m); padding: var(--s4); margin-bottom: var(--s4); display: grid; gap: var(--s3); }
.prog.on { border-color: var(--ink); }
.prog.off { background: var(--mist); border-color: transparent; color: var(--ink-2); }
.prog .plan { border-width: 0; padding: 0; }
.lab-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.lv { display: flex; gap: var(--s2); }
.lv .chip { min-height: 48px; min-width: 48px; font-family: var(--f-num); font-weight: 800; font-size: 1.125rem; }
.picker { display: grid; gap: var(--s3); }
.pick { text-align: left; border: 2px solid var(--line); background: var(--paper); border-radius: var(--r-m); padding: var(--s4); cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s3); color: var(--ink); font: inherit; }
.pick:hover:not(:disabled) { border-color: var(--ink); }
.pick b { font-size: 1.125rem; }
.pick small { grid-column: 1; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.pick .num { grid-row: 1; grid-column: 2; font-weight: 800; }
.pick em { grid-column: 1 / -1; font-style: normal; font-size: .875rem; font-weight: 700; color: var(--ink-2); }
.pick:disabled { background: var(--mist); cursor: default; }
.recent { margin-top: var(--s5); }
.res, .recent dl { display: grid; gap: var(--s2); margin: var(--s5) 0; }
.res div, .recent dl div { display: flex; justify-content: space-between; gap: var(--s3); border-bottom: 1px solid var(--line); padding: var(--s3) 0; }
.res dt, .recent dt { font-weight: 700; } .res dd, .recent dd { margin: 0; font-family: var(--f-num); font-weight: 800; text-align: right; }

/* 진행 화면 */
.lab-run .wrap { min-height: calc(100dvh - 65px - var(--s4) - var(--s5)); }
.lab-run .ring { margin: var(--s3) 0; }
.lab-head .step-name { font-size: 1.5rem; margin: 0; }
.lab-head .step-text { font-size: 1.0625rem; margin: var(--s1) 0 0; color: var(--ink-2); font-weight: 600; min-height: 1.5em; }
.lab-hint { margin-top: var(--s1); }
.stage { position: relative; flex: 1; min-height: 300px; margin: var(--s3) calc(var(--gutter) * -1) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; touch-action: manipulation; }
.ex { position: absolute; inset: 0; }
.ex-cv { position: absolute; inset: 0; display: block; }
.ex-msg { position: absolute; left: 0; right: 0; text-align: center; font-weight: 800; opacity: 0; transition: none; pointer-events: none; }
.lab-timer { display: flex; align-items: baseline; gap: 6px; margin-top: var(--s3); }
.lab-timer .num { font-size: 2.5rem; font-weight: 800; font-stretch: 80%; line-height: 1; }
.lab-timer .u { font-weight: 800; }
.lab-timer .tot { margin-left: auto; font-weight: 700; } .lab-timer .tot .num { font-size: 1.25rem; }
.run-safe { font-size: .8125rem; color: var(--ink-2); margin: var(--s2) 0 0; font-weight: 600; }
.lab-ctrl { grid-template-columns: 1.3fr 1fr 1fr; padding-top: var(--s3); }
.lab-ctrl .rbtn { min-height: 56px; font-size: 1.0625rem; }
.lab-run .run-vol { margin-top: var(--s2); }
body.dim .lab-head .step-text, body.dim .run-safe { color: var(--ink); }
body.dim .stage { background: var(--dim); border-color: transparent; }
.dimmer { position: fixed; inset: 0; background: var(--dim); opacity: 0; pointer-events: none; z-index: 40; }

/* 와이드 점프(듣는 운동용): 박자·횟수만 */
.ex-jump.wide .ex-count { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-num); font-weight: 800; font-size: 6rem; }
.ex-side { position: absolute; top: 20%; bottom: 20%; width: 14px; border-radius: 7px; background: var(--volt); box-shadow: inset 0 0 0 2px var(--ink); opacity: .12; }
.ex-side.l { left: 12px; } .ex-side.r { right: 12px; }
/* 원근 전환(듣는 운동으로 옮김 — 엔진만 유지) */
.ex-nearfar { border: 0; background: transparent; width: 100%; height: 100%; cursor: pointer; font: inherit; color: var(--ink); }
.ex-letters { font-family: var(--f-ko); font-weight: 900; letter-spacing: .08em; }
.ex-far { position: absolute; bottom: 16px; left: 0; right: 0; font-weight: 800; opacity: 0; }
.ex-converge .phase { top: 12%; font-size: 1.25rem; }
/* 숫자 찾기 */
.ex-search .ex-field { position: absolute; inset: 0 0 40px 0; }
.ex-num { position: absolute; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--f-num); font-weight: 800; cursor: pointer; padding: 0; transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .2s ease; }
.ex-num.found { background: var(--volt); border-color: var(--volt-deep); color: var(--ink-2); }
.ex-num:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ex-search .hint, .ex-search .done { bottom: 8px; font-size: 1.125rem; }
.ex-search .done { font-family: var(--f-num); }
/* 주변 시야 */
.ex-peri { display: flex; flex-direction: column; }
.ex-arena { position: relative; flex: 1; cursor: crosshair; }
.ex-fix { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--ink); }
.ex-mark { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--volt); box-shadow: inset 0 0 0 2.5px var(--ink); opacity: 0; }
.ex-dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); padding: var(--s2); }
.ex-dir { min-height: 56px; font-family: var(--f-num); border: 2px solid var(--ink); background: var(--paper); border-radius: var(--r-m); font-size: 1.5rem; font-weight: 800; cursor: pointer; color: var(--ink); }
.ex-dir:active { background: var(--volt); }
/* 쉬기·마무리 숨 원 */
.ex-rest { display: grid; place-items: center; }
.ex-breath { width: 38vmin; height: 38vmin; max-width: 260px; max-height: 260px; border-radius: 50%; background: rgba(207,245,62,.55); box-shadow: inset 0 0 0 2px var(--ink); }

.lab-off { padding-top: var(--s6); text-align: center; }
.lab-off .lab-timer.big { justify-content: center; } .lab-off .lab-timer.big .num { font-size: 7rem; }

@media (min-width: 900px) {
  .lab-run .wrap { display: flex; max-width: 1200px; }
  .stage { margin: var(--s3) 0 0; border: 1px solid var(--line); border-radius: var(--r-m); min-height: 460px; }
  .picker { grid-template-columns: 1fr 1fr; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .lab-run .wrap { min-height: 0; }
  .stage { min-height: 70vh; }
  .lab-head .step-text, .run-safe, .lab-run .run-vol { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ex-num { transition: none; } }
