/* level.css: 담당 3 대화 / 레벨 시스템 (v12.5에 자리만 만들었어요)
   레벨 고르기, 레벨 테스트, Cindy 안내 화면의 스타일을 여기에 써요.
   공통 약속(레벨, Day 진행, 레슨 결과)은 js/05-shared.js 함수를 써요. 규칙은 CLAUDE.md를 봐요. */

/* ---------- 레벨 고르기 (v13.4, 메인이 담당 3 자리에 만들었어요) ----------
   v13.6 처음 시작하기 (닉네임 / 레벨 / 완료). 강조색은 var(--b-gold): 다크는 골드 바탕에 검은 글씨, 라이트는 파랑 바탕에 흰 글씨 (앱 버튼과 같아요).
   .ob-a 가 붙은 글과 카드는 --i 순서대로 아래에서 스르륵 올라와요. 움직임 줄이기 설정이면 바로 보여요. */
.lv-setup{--lv-acc:var(--b-gold,#3D5AFE);--lv-on:#fff;--lv-tint:rgba(61,90,254,.1);--lv-ex:var(--t-card2,#eceef2);--lv-exOn:rgba(255,255,255,.2);--lv-avbg:#e9eefc;--lv-dim:rgba(0,0,0,.45);--lv-modal:#fff;--ob-bg:#fff;--ob-card:#f2f4f6;--ob-cardLine:transparent;--ob-exBg:#fff;--ob-off:#e5e8eb;--ob-offInk:#b0b8c1;--ob-err:#f04452;--ob-line:#d9dde3;--ob-btnInk:#fff;--ob-ease:cubic-bezier(.2,.8,.2,1);
  position:fixed;left:0;right:0;top:0;height:100%;z-index:10000;background:var(--ob-bg);color:var(--t-ink,#1d1d1f);display:flex;flex-direction:column;overflow:hidden;word-break:keep-all;overflow-wrap:break-word;font-family:var(--f-body)}
.lv-setup::before{content:"";position:fixed;left:0;right:0;top:-50vh;bottom:-50vh;z-index:-1;background:var(--ob-bg)}   /* v14.6 (메인): obFit sizes this box to the visible part of the screen, so while the keyboard or the browser bar moves, the screen under it (홈) never shows and cannot be tapped */
html[data-theme="dark"] .lv-setup{--lv-on:#111;--lv-tint:rgba(227,182,92,.14);--lv-exOn:rgba(0,0,0,.13);--lv-avbg:#2a2c33;--lv-dim:rgba(0,0,0,.62);--lv-modal:#1f2024;--ob-bg:#0f0f11;--ob-card:var(--t-card,#1c1d21);--ob-cardLine:var(--t-line,#2e3036);--ob-exBg:var(--t-card2,#26272c);--ob-off:#26272b;--ob-offInk:#6b6c73;--ob-err:#ff5b62;--ob-line:#3a3b40}
body.lv-on nav.tabbar,body.lv-on #tabBar{visibility:hidden}
.lv-setup *{box-sizing:border-box}
.lv-setup button{white-space:normal;font-family:inherit;-webkit-tap-highlight-color:transparent;cursor:pointer}
/* the top: only the back button (step 2); no progress bar */
.ob-top{flex:0 0 auto;display:flex;align-items:center;width:100%;max-width:560px;margin:0 auto;padding:calc(env(safe-area-inset-top,0px) + 6px) 10px 0}
.ob-back{width:40px;height:40px;flex:0 0 auto;border:0;border-radius:50%;background:transparent;display:none;align-items:center;justify-content:center;padding:0;color:var(--t-ink,#1d1d1f)}
.ob-back.on{display:flex;animation:obFade .3s ease}
.ob-back svg{width:24px;height:24px;stroke:currentColor}
/* a step: the words on top, the button at the bottom (on the keyboard while typing) */
.ob-step{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;width:100%;max-width:560px;margin:0 auto}
.ob-step[hidden]{display:none}
.ob-body{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;padding:20px 22px 12px}
.ob-foot{flex:0 0 auto;padding:10px 20px calc(env(safe-area-inset-bottom,0px) + 16px);transition:padding .2s}
.ob-a{animation:none}
/* v13.9 (d2, asked by the user): smoother, not in steps. A short rise with a long soft ease, the lines only 35ms apart,
   and the step going away fades out gently in place */
.ob-step.on .ob-a{animation:obUp .8s cubic-bezier(.22,1,.36,1) calc(var(--i,0) * 35ms + 40ms) backwards}
.ob-step.out .ob-a{animation:obOut .22s cubic-bezier(.4,0,1,1) forwards}
@keyframes obUp{from{opacity:0;transform:translateY(10px)}}
@keyframes obOut{to{opacity:0;transform:translateY(-6px)}}
.ob-av{width:64px;height:64px;flex:0 0 auto;border-radius:50%;background-color:var(--lv-avbg);background-repeat:no-repeat;background-size:185% auto;background-position:50% 23%;box-shadow:0 0 0 3px var(--ob-bg),0 8px 20px rgba(20,30,60,.16);margin:0 0 20px 3px}
.ob-h1{margin:0;font-size:28px;font-weight:800;letter-spacing:-.035em;line-height:1.32;color:var(--t-ink,#1d1d1f)}
.ob-h1 .ob-a{display:block}
.ob-h1 .ob-say{display:flex;align-items:center;gap:10px}   /* 클로이 small, saying the first line (the level step) */
.ob-av.xs{width:36px;height:36px;margin:0;box-shadow:0 0 0 2px var(--ob-bg),0 4px 12px rgba(20,30,60,.18)}
.ob-h1 em{font-style:normal;color:var(--lv-acc)}
.ob-p{margin:10px 0 0;font-size:16px;font-weight:500;line-height:1.5;color:var(--t-mu,#7a7a7a)}
/* 1) the nickname */
.ob-step[data-step="name"] .ob-body{padding-top:clamp(32px,10vh,96px)}   /* the nickname step sits lower, not stuck to the top */
.ob-field{margin-top:36px}
.ob-lb{display:block;font-size:13.5px;font-weight:700;color:var(--t-mu,#7a7a7a);margin:0 0 2px 1px;transition:color .2s}
.ob-row{display:flex;align-items:center;gap:8px;border-bottom:2px solid var(--ob-line);transition:border-color .2s}
.ob-field:focus-within .ob-lb{color:var(--lv-acc)}
.ob-row:focus-within{border-bottom-color:var(--lv-acc)}
.ob-field.ob-bad .ob-row{border-bottom-color:var(--ob-err)}
.ob-field.ob-bad .ob-lb{color:var(--ob-err)}
html[data-theme] .lv-setup input.ob-inp{flex:1 1 auto;min-width:0;width:100%;height:54px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;-webkit-appearance:none;appearance:none;font:inherit;font-size:26px;font-weight:700;letter-spacing:-.02em;color:var(--t-ink,#1d1d1f);caret-color:var(--lv-acc)}
html[data-theme] .lv-setup input.ob-inp::placeholder{color:var(--t-mu,#7a7a7a);opacity:.45;font-weight:600}
.ob-clr{flex:0 0 auto;width:30px;height:30px;border:0;border-radius:50%;background:transparent;padding:0;display:flex;align-items:center;justify-content:center}
.ob-clr[hidden]{display:none}
.ob-clr svg{width:21px;height:21px}
.ob-clr circle{fill:var(--ob-offInk)}
.ob-clr path{stroke:var(--ob-bg)}
.ob-cnt{flex:0 0 auto;min-width:36px;text-align:right;font-size:14px;font-weight:700;color:var(--t-mu,#7a7a7a);font-variant-numeric:tabular-nums;transition:color .2s}
.ob-field.ob-bad .ob-cnt{color:var(--ob-err)}
.ob-help{margin:10px 0 0 1px;min-height:20px;font-size:13.5px;line-height:1.45;color:var(--t-mu,#7a7a7a);transition:color .2s}
.ob-help.ob-bad{color:var(--ob-err);font-weight:600}
/* the button: gray until it can be pressed */
.ob-go{display:flex;align-items:center;justify-content:center;width:100%;height:56px;border:0;border-radius:999px;background:var(--lv-acc);color:var(--ob-btnInk);font-size:17px;font-weight:800;letter-spacing:-.01em;white-space:nowrap!important;box-shadow:0 10px 24px rgba(0,0,0,.14);transition:background-color .25s,color .25s,box-shadow .25s,border-radius .2s,transform .12s}
.ob-go:active:not(:disabled){transform:scale(.97)}
.ob-go:disabled{opacity:1;background:var(--ob-off);color:var(--ob-offInk);box-shadow:none;text-shadow:none;cursor:default}   /* the app dims every disabled button; here the gray says it */
html[data-theme="dark"] .ob-go,html[data-theme="dark"] .lv-go,html[data-theme="dark"] .lv-tabs button.on{text-shadow:0 1px 2px rgba(120,80,0,.35)}   /* dark: white text on gold, like the 홈 button */
/* typing (the keyboard is up): the button sits on the keyboard, the photo steps aside */
.ob-kb .ob-foot{padding:0}
.ob-kb .ob-go{height:54px;border-radius:0;box-shadow:none}
.ob-kb .ob-step[data-step="name"] .ob-body{padding-top:16px}
.ob-kb .ob-h1{font-size:23px}
.ob-kb .ob-p{margin-top:6px;font-size:15px}
.ob-kb .ob-field{margin-top:18px}
/* 2) the level: Talk 1~4 */
.lv-sec{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 10px 2px}
.lv-sec>span{font-size:13.5px;font-weight:700;color:var(--t-mu,#7a7a7a)}
.lv-exbtn{display:inline-flex;align-items:center;gap:3px;height:34px;padding:0 10px 0 13px;border:0;border-radius:999px;background:var(--lv-tint);color:var(--lv-acc);font-size:13.5px;font-weight:800;white-space:nowrap!important}
.lv-exbtn svg{width:15px;height:15px;stroke:var(--lv-acc)}
.lv-list{display:flex;flex-direction:column;gap:10px}
.lv-card{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:var(--ob-card);border:1px solid var(--ob-cardLine);border-radius:20px;padding:13px 16px;color:var(--t-ink,#1d1d1f);transition:background-color .2s,border-color .2s,box-shadow .2s,transform .12s}
.lv-card:active{transform:scale(.98)}
.lv-tx{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.lv-nm{display:flex;align-items:center;gap:8px}
.lv-nm b{font-family:var(--f-en);font-size:18px;font-weight:700;letter-spacing:-.01em;line-height:1.2}
.lv-nm i{font-style:normal;font-size:12px;font-weight:800;line-height:1;padding:5px 8px;border-radius:999px;background:var(--lv-tint);color:var(--lv-acc);transition:background-color .2s,color .2s}
.lv-ds{margin-top:4px;font-size:13.5px;font-weight:600;line-height:1.35;color:var(--t-mu,#7a7a7a)}
.lv-ex{margin-top:8px;display:inline-block;max-width:100%;background:var(--ob-exBg);border-radius:10px;padding:5px 10px;font-family:var(--f-en);font-weight:600;font-size:13px;line-height:1.35}
.lv-ck{width:26px;height:26px;border-radius:50%;border:2px solid var(--ob-line);flex:0 0 auto;display:flex;align-items:center;justify-content:center;transition:background-color .2s,border-color .2s}
.lv-ck svg{width:15px;height:15px;stroke:var(--lv-acc);opacity:0;transform:scale(.6);transition:opacity .2s,transform .3s var(--ob-ease)}
.lv-card.on{background:var(--lv-acc);border-color:var(--lv-acc);color:var(--lv-on);box-shadow:0 12px 26px rgba(0,0,0,.16)}
.lv-card.on .lv-ds{color:var(--lv-on);opacity:.8}
.lv-card.on .lv-ex{background:var(--lv-exOn);color:var(--lv-on)}
.lv-card.on .lv-nm i{background:#fff;color:var(--lv-acc)}   /* chosen: the level chip white, like the check */
.lv-bars{display:inline-flex;align-items:flex-end;gap:2px;height:14px;flex:0 0 auto}
.lv-bars s{display:block;width:4px;border-radius:1.5px;background:var(--ob-line);text-decoration:none;transition:background-color .2s}
.lv-bars s:nth-child(1){height:5px}.lv-bars s:nth-child(2){height:8px}.lv-bars s:nth-child(3){height:11px}.lv-bars s:nth-child(4){height:14px}
.lv-bars s.on{background:var(--lv-acc)}
.lv-card.on .lv-bars s{background:rgba(255,255,255,.4)}
.lv-card.on .lv-bars s.on{background:#fff}
.lv-rg{font-family:var(--f-en);font-size:11px;font-weight:700;letter-spacing:.02em;line-height:1;padding:4px 7px;border-radius:6px;background:rgba(127,127,127,.14);color:var(--t-mu,#8a8a8a);white-space:nowrap}
.lv-card.on .lv-rg{background:rgba(255,255,255,.24);color:var(--lv-on)}
.lv-card.on .lv-ck{border:0;background:#fff}   /* the check is white in both themes (dark: black text, white check) */
.lv-card.on .lv-ck svg{opacity:1;transform:none}
/* 3) done: 클로이 with a check, then 홈 slides in */
.ob-done .ob-body{align-items:center;text-align:center;padding-bottom:36px}
.ob-done .ob-body>:first-child{margin-top:auto}
.ob-done .ob-body>:last-child{margin-bottom:auto}
.ob-hero{position:relative;width:112px;height:112px;flex:0 0 auto;margin-bottom:26px}
.ob-av.lg{width:112px;height:112px;margin:0;box-shadow:0 0 0 4px var(--ob-bg),0 14px 34px rgba(20,30,60,.2)}
.ob-hero::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid var(--lv-acc);opacity:0;pointer-events:none}
.ob-badge{position:absolute;right:-3px;bottom:3px;width:34px;height:34px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px var(--lv-acc),0 6px 14px rgba(0,0,0,.2)}
.ob-badge svg{width:19px;height:19px;stroke:var(--lv-acc)}
.ob-step.on .ob-hero{animation:obPopIn .7s cubic-bezier(.34,1.56,.64,1) .05s backwards}
.ob-step.on .ob-badge{animation:obPopIn .5s cubic-bezier(.34,1.56,.64,1) .5s backwards}
.ob-step.on .ob-hero::after{animation:obRing 1.3s ease-out .55s}
@keyframes obPopIn{from{opacity:0;transform:scale(.55)}}
@keyframes obRing{from{opacity:.7;transform:scale(.92)}to{opacity:0;transform:scale(1.4)}}
.ob-done .ob-p{margin-top:14px}
.ob-ask{margin:22px 0 0;font-size:18px;font-weight:800;letter-spacing:-.02em;line-height:1.4;color:var(--t-ink,#1d1d1f)}
/* leaving: 처음 시작하기 slides away to the left, 홈 comes in from the right, the tab bar rises.
   v13.9 (d2, asked by the user): smoother, one glide instead of steps. The two screens cross-fade, 홈 moves as one piece
   with a short distance and a long soft ease, its parts only 40ms apart, all done by 1.05s. */
.lv-setup.bye{pointer-events:none;animation:obBye .6s cubic-bezier(.22,1,.36,1) forwards}
@keyframes obBye{to{opacity:0;transform:translateX(-28px) scale(.985)}}
body.ob-enter #homeView>.c-bg{animation:obBg 1.05s cubic-bezier(.22,1,.36,1) backwards}
body.ob-enter #homeView>.hv-top{animation:obSlide .9s cubic-bezier(.22,1,.36,1) .04s backwards}
body.ob-enter #hvHero .c-tx{animation:obSlide .9s cubic-bezier(.22,1,.36,1) .08s backwards}
body.ob-enter #hvHero .c-row{animation:obSlide .9s cubic-bezier(.22,1,.36,1) .1s backwards}
body.ob-enter #homeView>#hvWeek{animation:obSlide .9s cubic-bezier(.22,1,.36,1) .12s backwards}
body.ob-enter #tabBar{animation:obTab .85s cubic-bezier(.22,1,.36,1) .14s backwards}
@keyframes obBg{from{opacity:0;scale:1.03}}
@keyframes obSlide{from{opacity:0;translate:28px 0}}
@keyframes obTab{from{opacity:0;translate:0 36px}}
/* 레벨별 대화 예시 (a popup) */
.lv-pop{position:fixed;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;padding:calc(env(safe-area-inset-top,0px) + 16px) 14px calc(env(safe-area-inset-bottom,0px) + 16px)}
.lv-pop[hidden]{display:none}
.lv-dim{position:absolute;inset:0;background:var(--lv-dim);animation:obFade .2s ease}
.lv-modal{position:relative;width:100%;max-width:440px;max-height:100%;display:flex;flex-direction:column;background:var(--lv-modal);border:1px solid var(--t-line,#e0e0e0);border-radius:28px;padding:20px 16px 16px;box-shadow:0 24px 60px rgba(0,0,0,.35);animation:obUp .34s var(--ob-ease)}
@keyframes obFade{from{opacity:0}}
.lv-x{position:absolute;right:14px;top:14px;width:34px;height:34px;border:0;border-radius:50%;background:var(--t-card2,#eceef2);display:flex;align-items:center;justify-content:center;padding:0}
.lv-x svg{width:16px;height:16px;stroke:var(--t-mu,#7a7a7a)}
.lv-modal h2{font-size:21px;font-weight:850;letter-spacing:-.03em;margin:0;padding-right:44px;color:var(--t-ink,#1d1d1f)}
.lv-d{font-size:13.5px;color:var(--t-mu,#7a7a7a);margin:4px 0 14px;line-height:1.4}
.lv-tabs{display:flex;gap:4px;padding:4px;border-radius:13px;background:var(--t-card2,#eceef2);margin-bottom:10px;flex:0 0 auto}
.lv-tabs button{flex:1 1 0;min-width:0;border:0;border-radius:10px;padding:8px 0;background:transparent;color:var(--t-mu,#7a7a7a);font-family:var(--f-en);font-size:14px;font-weight:700;white-space:nowrap!important;transition:background-color .2s,color .2s}
.lv-tabs button.on{background:var(--lv-acc);color:var(--ob-btnInk)}
.lv-tcap{display:flex;align-items:center;gap:7px;margin:0 0 10px 2px;font-size:13.5px;font-weight:600;color:var(--t-mu,#7a7a7a);flex:0 0 auto}
.lv-tcap>span{min-width:0}
.lv-tcap b{font-size:12px;font-weight:800;line-height:1;padding:5px 8px;border-radius:999px;background:var(--lv-tint);color:var(--lv-acc)}
.lv-rows{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:8px}
.lv-row{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;border:0;border-radius:14px;background:var(--t-card2,#eceef2);padding:11px 14px;color:var(--t-ink,#1d1d1f);flex:0 0 auto}
.lv-row .q{font-family:var(--f-en);font-weight:700;font-size:14px;line-height:1.35}
.lv-row .a{font-family:var(--f-en);font-weight:600;font-size:13px;line-height:1.35;color:var(--t-mu,#7a7a7a);margin-top:4px;padding-left:12px;position:relative}
.lv-row .a:before{content:"";position:absolute;left:0;top:3px;width:3px;height:13px;border-radius:2px;background:var(--lv-acc)}
.lv-row .k{display:block;width:100%;font-size:12.5px;color:var(--t-mu,#7a7a7a);margin-top:6px;padding-top:6px;border-top:1px dashed var(--t-line2,#d2d2d7);line-height:1.4}
.lv-row .k[hidden]{display:none}
.lv-hint{text-align:center;font-size:12.5px;color:var(--t-mu,#7a7a7a);margin:10px 0 0;flex:0 0 auto}
.lv-mfoot{padding-top:12px;flex:0 0 auto}
.lv-go{display:flex;align-items:center;justify-content:center;width:100%;height:54px;border:0;border-radius:999px;background:var(--lv-acc);color:var(--ob-btnInk);font-size:17px;font-weight:800;letter-spacing:-.01em;white-space:nowrap!important;box-shadow:0 10px 24px rgba(0,0,0,.14)}
/* smaller phones: each step stays on one screen without scrolling (the card lines go first, then the photo) */
@media (max-height:900px){.ob-body{padding-top:12px}.ob-av{width:58px;height:58px;margin-bottom:16px}.ob-av.xs{width:32px;height:32px;margin:0}.ob-h1{font-size:26px}.ob-p{font-size:15px;margin-top:8px}.lv-sec{margin-top:14px}.lv-card{padding:10px 15px}.lv-ex{margin-top:5px}.lv-list{gap:7px}}
@media (max-height:760px){.ob-body{padding-top:10px}.ob-h1{font-size:24px}.ob-p{font-size:14.5px;margin-top:6px}.lv-sec{margin:10px 0 7px 2px}.lv-exbtn{height:30px}.lv-card{padding:8px 14px}.lv-ds{margin-top:3px;font-size:13px;line-height:1.3}.lv-ex{margin-top:5px}.lv-list{gap:6px}.ob-go{height:52px}.ob-foot{padding-top:8px}.ob-field{margin-top:26px}}
@media (max-height:690px){.ob-body{padding-top:10px}.ob-h1{font-size:23px}.ob-p{font-size:14.5px;margin-top:6px}.lv-sec{margin:10px 0 7px 2px}.lv-exbtn{height:30px}.lv-card{padding:6px 14px}.lv-ds{font-size:13px;line-height:1.3}.lv-ex{padding:4px 9px}.lv-list{gap:5px}.ob-foot{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 12px)}.ob-hero,.ob-av.lg{width:96px;height:96px}}
@media (max-height:650px){.ob-p{display:none}.lv-sec{margin-top:12px}}
@media (prefers-reduced-motion:reduce){.lv-setup *,.lv-setup.bye,body.ob-enter *{animation:none!important;transition:none!important}}

/* ---------- 상황극 고르기 (d3, E+D): 오늘의 추천 큰 카드 + 20개 장면 한눈에 ----------
   강조색은 var(--b-gold): 다크는 골드 (글씨 검정), 라이트는 파랑 (글씨 흰색). */
#rpView{--rp-acc:var(--b-gold,#3D5AFE);--rp-on:#fff}
html[data-theme="dark"] #rpView{--rp-on:#111}
#rpView .hv-top{order:0}
#rpView .rp-hero{order:1;position:relative;flex:none;height:clamp(200px,28vh,250px);margin-top:6px;padding:0!important;border-radius:22px!important;overflow:hidden;background:#111!important;box-shadow:0 0 0 2px var(--rp-acc)!important;display:block}
#rpView .rp-hi{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 18%;display:block}
#rpView .rp-cap{position:absolute;left:0;right:0;bottom:0;padding:40px 14px 12px;background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.9) 40%);display:flex;flex-direction:column;gap:2px;color:#fff;word-break:keep-all}
#rpView .rp-badge{align-self:flex-start;background:var(--rp-acc);color:var(--rp-on);font-size:12px;font-weight:800;padding:3px 10px;border-radius:999px;margin-bottom:3px}
#rpView .rp-badge.mine{background:#fff;color:#111}
#rpView .rp-hero .nm{font-size:22px;font-weight:800;letter-spacing:-.02em;color:#fff!important;line-height:1.25}
#rpView .rp-who{font-size:13px;font-weight:700;color:var(--rp-acc)}
html:not([data-theme="dark"]) #rpView .rp-who{color:#aebcff}
#rpView .rp-goal{font-size:13px;line-height:1.4;color:#e2e2e6;margin-bottom:8px}
#rpView .rp-hero .rp-start{height:46px;margin-top:0;width:100%;background:var(--rp-acc)!important;color:var(--rp-on)!important;border-radius:16px!important;font-size:16px!important;font-weight:800}
#rpView .rp-all{order:2;display:flex;flex-direction:column;gap:5px;margin-top:12px}
#rpView .rp-ot{margin-bottom:2px;font-size:16px;font-weight:800;letter-spacing:-.01em;color:var(--v-ink)}
#rpView .rp-grp{display:flex;gap:8px;align-items:flex-start}
#rpView .rp-gt{flex:none;width:40px;padding-top:18px;font-size:12px;font-weight:700;line-height:1.25;color:var(--v-mu);word-break:keep-all}
#rpView .rp-g5{flex:1;min-width:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
#rpView .rp-t{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;min-width:0}
#rpView .rp-t img{width:100%;aspect-ratio:1;object-fit:cover;object-position:center 20%;border-radius:12px;border:2px solid transparent;display:block;background:#222}
#rpView .rp-t span{max-width:100%;white-space:normal;font-size:10px;line-height:1.15;letter-spacing:-.04em;color:var(--v-mu);text-align:center;word-break:keep-all}
#rpView .rp-t[aria-pressed="true"] img{border-color:var(--rp-acc)}
#rpView .rp-t[aria-pressed="true"] span{color:var(--rp-acc);font-weight:800}
html:not([data-theme="dark"]) #rpView .rp-t[aria-pressed="true"] span{color:var(--rp-acc)}
#rpView .rp-t.rp-rec::after{content:"추천";position:absolute;top:3px;left:3px;padding:1px 4px;border-radius:5px;background:var(--rp-acc);color:var(--rp-on);font-size:9px;font-weight:800;line-height:1.3}
#rpView .rp-t.rp-rec[aria-pressed="true"]::after{display:none}
#rpView .rail-dots{display:none}
@media (max-height:700px){#rpView .rp-hero{height:190px}}   /* a short phone: the 20 photos scroll a little, no text is cut */

/* ---------- 닉네임 (d3): 키보드가 올라와도 클로이 사진이 보여요, 화면이 한 번에 확 올라가지 않고 부드럽게 줄어요.
   비속어는 빨간 경고 표시와 함께 알려 줘요. ---------- */
.ob-step[data-step="name"] .ob-av{transition:width .28s var(--ob-ease,ease),height .28s var(--ob-ease,ease),margin .28s var(--ob-ease,ease)}
.ob-step[data-step="name"] .ob-body{transition:padding-top .28s var(--ob-ease,ease)}
.ob-step[data-step="name"] .ob-h1,.ob-step[data-step="name"] .ob-p,.ob-step[data-step="name"] .ob-field{transition:font-size .28s var(--ob-ease,ease),margin .28s var(--ob-ease,ease)}
.ob-kb .ob-step[data-step="name"] .ob-av{width:48px;height:48px;margin-bottom:12px}
.ob-help.ob-warn{display:flex;align-items:center;gap:6px}
.ob-help .ob-wi{flex:0 0 auto;width:17px;height:17px;color:var(--ob-err)}
@media (prefers-reduced-motion:reduce){.ob-step[data-step="name"] .ob-av,.ob-step[data-step="name"] .ob-body,.ob-step[data-step="name"] .ob-h1,.ob-step[data-step="name"] .ob-p,.ob-step[data-step="name"] .ob-field{transition:none}}
@media (max-width:370px){.ob-step[data-step="level"] .ob-h1{font-size:23.5px}}   /* d3: a 360px Galaxy keeps the level title on two lines, so the 4 cards fit without scrolling */

/* ---------- 상황극 고르기 v14.3 (A: 분류 탭 + 2열 카드, 사용자 요청으로 d2가 고쳤어요) ----------
   위 추천 카드, 분류 탭 4개, 아래는 2열 카드. 카드 높이는 남은 칸의 딱 절반이라 4장이 잘리지 않고 다 보여요. 한 줄씩 딱 맞춰 넘어가요. */
#rpView{overflow:hidden!important;padding-bottom:14px!important}
#rpView .rp-hero{height:clamp(150px,24dvh,210px)}
#rpView .rp-cap{padding:30px 14px 12px}
#rpView .rp-tabs{order:2;flex:0 0 auto;display:flex!important;gap:6px;margin:12px 0 10px;padding:0;overflow:visible}
#rpView .rp-tabs[hidden]{display:none!important}
#rpView .rp-tabs button{flex:1 1 0;min-width:0;height:36px;padding:0 4px!important;border:0!important;border-radius:999px!important;background:var(--t-card2,#eceef2)!important;color:var(--t-mu,#7a7a7a)!important;font-size:13px;font-weight:700;white-space:nowrap;-webkit-tap-highlight-color:transparent;box-shadow:none!important}
#rpView .rp-tabs button.on{background:var(--t-ink,#1d1d1f)!important;color:var(--t-bg,#fff)!important}
#rpView .rp-g2{order:3;position:relative;flex:1 1 auto;min-height:0;margin:0 -2px;padding:0 2px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;container-type:size;scroll-snap-type:y mandatory;display:flex;flex-direction:column;gap:10px;scrollbar-width:none}
#rpView .rp-g2::-webkit-scrollbar{display:none}
#rpView .rp-g2 .rp-grp{display:block}
#rpView .rp-g2 .rp-gt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;padding:0}
#rpView .rp-g2 .rp-g5{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:calc((100cqh - 10px) / 2);gap:10px}
#rpView .rp-g2 .rp-t{scroll-snap-align:start;display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:0;border-radius:18px;overflow:hidden;background:var(--t-card,#fff);box-shadow:0 0 0 1px var(--t-line,#e0e0e0);text-align:left}
#rpView .rp-g2 .rp-t img{flex:1 1 auto;min-height:0;width:100%;height:auto;aspect-ratio:auto;border:0;border-radius:0;object-fit:cover;object-position:center 22%}
#rpView .rp-g2 .rp-tx{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:1px;padding:8px 11px 10px;min-width:0}
#rpView .rp-g2 .rp-tx b{font-size:14.5px;font-weight:800;letter-spacing:-.02em;line-height:1.25;color:var(--t-ink,#1d1d1f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#rpView .rp-g2 .rp-tx span{font-size:12px;line-height:1.3;color:var(--t-mu,#7a7a7a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;text-align:left;letter-spacing:0}
#rpView .rp-g2 .rp-t[aria-pressed="true"]{box-shadow:0 0 0 2px var(--rp-acc)}
#rpView .rp-g2 .rp-t[aria-pressed="true"] .rp-tx b{color:var(--t-ink,#1d1d1f)}
#rpView .rp-g2 .rp-t.rp-rec::after{top:8px;left:8px;padding:2px 6px;font-size:10.5px}
@media (max-height:700px){#rpView .rp-hero{height:clamp(140px,24dvh,170px)}#rpView .rp-goal{display:none}#rpView .rp-hero .rp-start{height:40px}#rpView .rp-tabs{margin:10px 0 8px}#rpView .rp-g2 .rp-tx{padding:6px 10px 8px}}
@media (prefers-reduced-motion:reduce){#rpView .rp-g2{scroll-behavior:auto}}
/* v15.2 메인 (사용자가 고른 시안 C 유리 카드): 다크 모드만, 사진이 카드 전체를 채우고 글자는 사진 위 반투명 유리 칸에 있어요. 사진과 분류 탭은 조금 밝게. 라이트는 그대로 */
html[data-theme="dark"] #rpView .rp-g2 .rp-t{position:relative!important;background:#1a1a1a!important}
html[data-theme="dark"] #rpView .rp-g2 .rp-t img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;filter:brightness(1.12) saturate(1.08)}
html[data-theme="dark"] #rpView .rp-hi{filter:brightness(1.08)}
html[data-theme="dark"] #rpView .rp-g2 .rp-tx{position:absolute!important;left:6px;right:6px;bottom:6px;z-index:1;border-radius:13px;padding:8px 10px 9px!important;background:rgba(40,40,46,.42)!important;-webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
html[data-theme="dark"] #rpView .rp-g2 .rp-tx b{color:#fff!important}
html[data-theme="dark"] #rpView .rp-g2 .rp-t:not([aria-pressed="true"]) .rp-tx span{color:rgba(255,255,255,.85)!important}
html[data-theme="dark"] #rpView .rp-tabs button:not(.on){background:rgba(255,255,255,.10)!important;color:#e4e5ea!important}

/* d3 (사용자 요청): 라이트 모드 스몰톡, 줄리아 뒤에 다크 모드처럼 네이비 빛이 퍼져요 (테두리 없이, 상황극 상대 사진에는 안 써요) */
html[data-theme="light"] body[data-view="call"] #juliaTile:not(.rpface) .cx-glow{width:100%;height:100%;aspect-ratio:auto;top:50%;border-radius:0;background:radial-gradient(ellipse 48% 52% at 50% 55%,rgba(16,46,178,.60) 0%,rgba(32,72,208,.34) 42%,rgba(60,100,225,.11) 72%,rgba(255,255,255,0) 100%)}

/* d3 (사용자 요청 v2): 스몰톡 / 상황극 마이크 상태는 작은 칩 한 줄 (두 번째 줄 설명은 숨겨요), 마이크 링과 겹치지 않게 살짝 위에 */
html[data-theme] body[data-view="call"] #listenBar{width:max-content!important;max-width:calc(100% - 32px)!important;margin:0 auto 19px!important;padding:6px 14px!important;border-radius:99px!important;min-height:0!important;gap:8px!important}
html[data-theme] body[data-view="call"] #listenBar #lsSub{display:none!important}
html[data-theme] body[data-view="call"] #listenBar #lsTx{font-size:13.5px!important}
html[data-theme] body[data-view="call"] #listenBar .lv{transform:scale(.8)}
/* 내가 말하는 동안 (body.mic-talk, js/03 listenUI): 마이크가 진한 빨강, 살짝 두근거리고 링 두 겹이 퍼져요 */
@keyframes d3Ring{0%{box-shadow:0 0 0 0 rgba(229,72,77,.6),0 0 0 0 rgba(229,72,77,.4),0 12px 34px rgba(229,72,77,.55)}100%{box-shadow:0 0 0 22px rgba(229,72,77,0),0 0 0 40px rgba(229,72,77,0),0 12px 34px rgba(229,72,77,.55)}}
@keyframes d3Beat{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
html[data-theme] body.mic-talk[data-view="call"] .compose .cx-row .mic#micBtn.listening{background:radial-gradient(circle at 50% 35%,#ff5a63,#e0262f 72%)!important;animation:d3Ring 1s ease-out infinite,d3Beat .5s ease-in-out infinite!important}
@media (prefers-reduced-motion:reduce){html[data-theme] body.mic-talk[data-view="call"] .compose .cx-row .mic#micBtn.listening{animation:none!important;box-shadow:0 0 0 10px rgba(229,72,77,.3),0 12px 34px rgba(229,72,77,.55)!important}}
/* v15.5 메인 테스트용 (사용자 요청): 루틴 탭 지금 단계 번호를 누르면 완료 (js/05-shared.js). iPhone이 누름으로 알아보게 해요. 테스트가 끝나면 빼요 */
#ttLearn .rt-s.cur .rt-dot{cursor:pointer;-webkit-tap-highlight-color:transparent}

/* d3 (사용자 요청): 복습하기 / 챌린지 / 복습 문제에서도 내가 말하는 동안 마이크가 진한 빨강, 두근거림, 링 두 겹 (스몰톡과 같은 효과) */
html[data-theme] body.mic-talk .tt-mbig.recording,html[data-theme] body.mic-talk #chalSheet #chDock .mic#chMic.recording,html[data-theme] body.mic-talk #quizSheet .qz-mic.recording{background:radial-gradient(circle at 50% 35%,#ff5a63,#e0262f 72%)!important;animation:d3Ring 1s ease-out infinite,d3Beat .5s ease-in-out infinite!important}
@media (prefers-reduced-motion:reduce){html[data-theme] body.mic-talk .tt-mbig.recording,html[data-theme] body.mic-talk #chalSheet #chDock .mic#chMic.recording,html[data-theme] body.mic-talk #quizSheet .qz-mic.recording{animation:none!important;box-shadow:0 0 0 10px rgba(229,72,77,.3),0 12px 34px rgba(229,72,77,.55)!important}}
/* v15.6 메인 (사용자가 고른 시안 B): 위는 고른 장면 설명만 (사진 없는 글 카드), 시작하기는 고른 카드 안에 (js/04 renderRp).
   고른 카드 테두리는 카드 안쪽에 그려서 목록 맨 위 / 맨 아래에 붙어도 잘리지 않아요. 라이트 분류 탭은 흰 바탕 칩으로 또렷하게 */
#rpView .rp-hero.rp-info{height:auto!important;background:var(--t-card,#fff)!important;box-shadow:0 0 0 1px var(--t-line,#e2e7f0)!important}
#rpView .rp-info .rp-cap{position:static;background:none;padding:14px 16px 15px;color:var(--t-ink,#1d1d1f)}
#rpView .rp-info .nm{color:var(--t-ink,#1d1d1f)!important;font-size:21px}
#rpView .rp-info .rp-goal{color:var(--t-mu,#6b7280);margin-bottom:0}
html:not([data-theme="dark"]) #rpView .rp-info .rp-who{color:var(--rp-acc)}
html:not([data-theme="dark"]) #rpView .rp-info .rp-badge.mine{background:#e9edf5;color:#1d1d1f}
#rpView .rp-g2 .rp-t[aria-pressed="true"]{box-shadow:none!important}
#rpView .rp-g2 .rp-t[aria-pressed="true"]::before{content:"";position:absolute;inset:0;z-index:3;border:2px solid var(--rp-acc);border-radius:inherit;pointer-events:none}
#rpView .rp-g2 .rp-tx .rp-go{display:flex;align-items:center;justify-content:center;align-self:stretch;max-width:none;height:34px;margin:8px 0 0;padding:0 8px;border:0;border-radius:12px;background:var(--rp-acc);color:var(--rp-on);font:inherit;font-size:14px;font-weight:800;letter-spacing:-.01em;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
#rpView .rp-g2 .rp-tx .rp-go:active{transform:scale(.97)}
#rpView .rp-g2 .rp-t[aria-pressed="true"] .rp-tx{padding-bottom:9px}
html:not([data-theme="dark"]) #rpView .rp-tabs button:not(.on){background:#fff!important;color:#3b4252!important;box-shadow:0 0 0 1px #dde3ee,0 1px 2px rgba(17,24,39,.05)!important}
@media (max-height:700px){#rpView .rp-g2 .rp-tx .rp-go{height:30px;margin-top:6px;font-size:13px}}

/* v16.3 스몰톡 / 상황극 복습 3번 말하기 (사용자 요청, 담당 2가 고침): 좋아요! 한 번 더 / 다시 말해 보세요가 나와도 문장이 움직이지 않아요.
   문장 묶음은 가운데 그대로, 결과 글은 그 아래에 겹쳐 나와요 */
#ttFlow .tt-fbody.rv-rep .rv-mid{--rvfb:clamp(124px,21vh,170px);position:relative;padding-bottom:var(--rvfb)}   /* room for the result kept below the sentence, so it never pushes or scrolls it */
#ttFlow .tt-fbody.rv-rep .rv-fb{position:absolute;left:0;right:0;top:calc(100% - var(--rvfb));margin-top:14px}

/* ---------- 레벨 테스트 (담당 1이 사용자 요청으로 만들었어요, 담당 3 구역) ----------
   레벨 고르기 위에 덮이는 화면 (#lvTest, 레벨 고르기와 같은 색 변수). 안내 / 문항 (표현, 듣기) / 결과 */
.lt-entry{display:flex;align-items:center;gap:12px;width:100%;margin-top:10px;text-align:left;border:1.5px dashed var(--lv-acc);border-radius:18px;padding:12px 14px;background:transparent;color:var(--t-ink,#1d1d1f)}
.lt-entry:active{transform:scale(.98)}
.lt-ei{width:36px;height:36px;flex:0 0 auto;border-radius:11px;background:var(--lv-tint);color:var(--lv-acc);display:grid;place-items:center;font-weight:900;font-size:17px}
.lt-et{flex:1 1 auto;min-width:0}
.lt-et b{display:block;font-size:15px;font-weight:800;line-height:1.3}
.lt-et span{display:block;margin-top:2px;font-size:13px;font-weight:600;color:var(--t-mu,#7a7a7a)}
.lt-entry svg{width:18px;height:18px;flex:0 0 auto;stroke:var(--lv-acc)}
@media (max-height:839px){.lt-entry{justify-content:center;gap:4px;margin-top:5px;padding:0;height:22px;border:0;border-radius:0}.lt-ei,.lt-et span{display:none}.lt-et{flex:0 0 auto}.lt-et b{font-size:13.5px;color:var(--lv-acc)}.lt-entry svg{width:15px;height:15px}.ob-step[data-step="level"] .lv-sec{margin-top:8px}}   /* a short screen: one line of text, so the cards still fit */
.lt{z-index:10001}
.lt .ob-top{gap:6px}
.lt-pg{flex:1 1 auto;height:6px;border-radius:3px;background:var(--ob-off);overflow:hidden;margin:0 4px}
.lt-pg i{display:block;height:100%;border-radius:3px;background:var(--lv-acc);transition:width .35s var(--ob-ease)}
.lt-cnt{flex:0 0 auto;min-width:44px;text-align:right;padding-right:8px;font-family:var(--f-en);font-size:14px;font-weight:700;color:var(--t-mu,#7a7a7a)}
.lt .ob-av.lt-av{margin-bottom:20px}
.lt-facts{margin-top:26px;display:flex;flex-direction:column;gap:10px}
.lt-fact{display:flex;align-items:center;gap:14px;background:var(--ob-card);border:1px solid var(--ob-cardLine);border-radius:18px;padding:14px 16px}
.lt-fi{width:40px;height:40px;flex:0 0 auto;border-radius:12px;background:var(--lv-tint);color:var(--lv-acc);display:grid;place-items:center;font-family:var(--f-en);font-weight:800;font-size:15px}
.lt-fact b{display:block;font-size:16px;font-weight:800;line-height:1.3}
.lt-fact span span{display:block;margin-top:2px;font-size:13.5px;font-weight:500;color:var(--t-mu,#7a7a7a);line-height:1.35}
.lt-kind{align-self:flex-start;font-size:13px;font-weight:800;color:var(--lv-acc);background:var(--lv-tint);padding:6px 10px;border-radius:999px;line-height:1}
.lt-h{margin:14px 0 0;font-size:21px;font-weight:800;line-height:1.4;letter-spacing:-.03em;color:var(--t-ink,#1d1d1f)}
.lt-qs{margin-top:16px;background:var(--ob-card);border:1px solid var(--ob-cardLine);border-radius:18px;padding:18px}
.lt-en{display:block;font-family:var(--f-en);font-size:19px;font-weight:600;line-height:1.5;color:var(--t-ink,#1d1d1f)}
.lt-en u{text-decoration:none;display:inline-block;width:72px;height:1em;vertical-align:-3px;border-bottom:2.5px solid var(--lv-acc);margin:0 3px}
.lt-ko{display:block;margin-top:8px;font-size:14px;font-weight:500;color:var(--t-mu,#7a7a7a)}
.lt-lis{margin-top:14px;background:var(--ob-card);border:1px solid var(--ob-cardLine);border-radius:20px;padding:8px 12px 8px 8px}
.lt-lrow{display:flex;align-items:center;gap:14px}
.lt-jav{position:relative;width:62px;height:62px;flex:0 0 auto;border-radius:50%;background-size:cover;background-position:center 20%;background-color:var(--lv-avbg)}
.lt-jav::after{content:"";position:absolute;inset:0;border-radius:50%;border:3px solid var(--lv-acc);opacity:0;transition:opacity .2s}   /* v17.4 (user request): the ring is drawn inside the photo, so it never spills out of the box */
.lt-lis[data-vs="talk"] .lt-jav::after{opacity:1}
.lt-lis[data-vs="talk"] .lt-jav{animation:ltRing 1.4s ease-in-out infinite}
@keyframes ltRing{0%,100%{box-shadow:0 0 0 0 var(--lv-tint)}50%{box-shadow:0 0 0 4px var(--lv-tint)}}
.lt-lis[data-vs="talk"] .lt-jav::before{content:"";position:absolute;right:-1px;bottom:-1px;z-index:2;width:20px;height:20px;border-radius:50%;box-shadow:0 0 0 2px var(--ob-card);
  background:var(--lv-acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M5 10v4M9 7v10M13 9v6M17 6v12'/%3E%3C/svg%3E") center/12px no-repeat}   /* the small sound badge while Julia talks */
html[data-theme="dark"] .lt-lis[data-vs="talk"] .lt-jav::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M5 10v4M9 7v10M13 9v6M17 6v12'/%3E%3C/svg%3E")}
.lt-lst{flex:0 1 auto;min-width:0;display:inline-flex;flex-direction:column}
.lt-lst b{display:block;font-size:15px;font-weight:800;line-height:1.35;color:var(--t-ink,#1d1d1f)}
.lt-lst>[data-ltst2]{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:13px;font-weight:600;color:var(--t-mu,#7a7a7a)}
.lt-lst>[data-ltst2].on{color:var(--lv-acc)}
.lt-eq{display:inline-flex;gap:2px;align-items:flex-end;height:12px}
.lt-eq s{width:3px;height:12px;border-radius:1px;background:var(--lv-acc);transform-origin:bottom;animation:ltEq .8s ease-in-out infinite}
.lt-eq s:nth-child(2){animation-delay:-.3s}.lt-eq s:nth-child(3){animation-delay:-.55s}
@keyframes ltEq{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
.lt-wave{display:flex;align-items:center;gap:2px;width:100%;height:16px;margin-top:6px}
.lt-wave s{flex:1 1 0;min-width:0;border-radius:1px;background:var(--ob-off);transition:background-color .15s}
.lt-lis[data-vs="wait"] .lt-wave s{opacity:.6}
.lt-wave s.p{background:var(--lv-acc)}
.lt-lis[data-vs="done"] .lt-wave s.p{background:color-mix(in srgb,var(--lv-acc) 45%,var(--ob-off))}
.lt-re{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 11px;margin-left:auto;border:0;border-radius:999px;font-size:13px;font-weight:800;white-space:nowrap;background:var(--ob-off);color:var(--t-mu,#7a7a7a)}
.lt-re.on{background:var(--lv-tint);color:var(--lv-acc)}
.lt-re.used{background:transparent;border:1.5px dashed var(--ob-line);padding:0 10px}
.lt-re svg{width:14px;height:14px;stroke:currentColor}
.lt-re small{font-size:12px;font-weight:800;opacity:.8}
.lt-spin{width:13px;height:13px;border-radius:50%;border:2.5px solid var(--lv-tint);border-top-color:var(--lv-acc);animation:ltSpin .8s linear infinite}
@keyframes ltSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.lt-spin,.lt-eq s,.lt-lis[data-vs="talk"] .lt-jav{animation:none}}
.lt-opts.lt-lock .lt-op{opacity:.45}
.lt-lnote{margin:8px 0 0;text-align:center;font-size:12.5px;font-weight:600;color:var(--t-mu,#7a7a7a)}
.lt-opts{margin-top:22px;display:flex;flex-direction:column;gap:9px}
.lt-op{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--ob-card);border:2px solid transparent;border-radius:16px;padding:13px 14px;color:var(--t-ink,#1d1d1f);font-family:var(--f-en)!important;font-size:16px;font-weight:600;line-height:1.35;transition:background-color .15s,border-color .15s}
.lt-op i{font-style:normal;width:28px;height:28px;flex:0 0 auto;border-radius:50%;background:var(--ob-bg);display:grid;place-items:center;font-size:13px;font-weight:800;color:var(--t-mu,#7a7a7a)}
.lt-op.on{border-color:var(--lv-acc);background:var(--lv-tint)}
.lt-op.on i{background:var(--lv-acc);color:#fff}
html[data-theme="dark"] .lt-op.on i{color:#111}
.lt-skip{display:block;width:100%;height:40px;margin-top:4px;border:0;background:transparent;font-size:15px;font-weight:700;color:var(--t-mu,#7a7a7a)}
.lt .ob-foot .ob-go{display:block;width:100%}
.lt-rc{margin-top:22px;background:var(--lv-acc);color:#fff;border-radius:24px;padding:20px}
html[data-theme="dark"] .lt-rc{color:#111}
.lt-rk{display:block;font-size:14px;font-weight:700;opacity:.8}
.lt-rl{margin-top:8px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.lt-rl b{font-family:var(--f-en);font-size:30px;font-weight:800;line-height:1.1}
.lt-rl i{font-style:normal;font-size:13px;font-weight:800;line-height:1;padding:5px 9px;border-radius:999px;background:#fff;color:var(--lv-acc)}
.lt-rl .lv-bars s{background:rgba(255,255,255,.4)}.lt-rl .lv-bars s.on{background:#fff}
html[data-theme="dark"] .lt-rl .lv-bars s{background:rgba(0,0,0,.2)}html[data-theme="dark"] .lt-rl .lv-bars s.on{background:#111}
.lt-rl .lv-rg{background:rgba(255,255,255,.24);color:inherit}
.lt-rc p{margin:10px 0 0;font-size:15px;font-weight:600;line-height:1.5}
.lt-sc{margin-top:12px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.lt-sc div{background:var(--ob-card);border:1px solid var(--ob-cardLine);border-radius:16px;padding:13px 12px}
.lt-sc span{display:block;font-size:13px;color:var(--t-mu,#7a7a7a);font-weight:600}
.lt-sc b{display:block;margin-top:4px;font-family:var(--f-en);font-size:21px;font-weight:800;color:var(--t-ink,#1d1d1f)}
.lt-sc small{font-size:13px;color:var(--t-mu,#7a7a7a);font-weight:700}
.lt-lad{margin-top:12px;display:block;background:var(--ob-card);border:1px solid var(--ob-cardLine);border-radius:18px;padding:14px 16px}
.lt-lt2{display:block;font-size:13px;font-weight:700;color:var(--t-mu,#7a7a7a);margin-bottom:4px}
.lt-lr{display:flex;align-items:center;gap:10px;margin-top:7px;font-family:var(--f-en);font-size:13px;font-weight:700;color:var(--t-ink,#1d1d1f)}
.lt-lr .n{width:56px;flex:0 0 auto}.lt-lr .tr{flex:1 1 auto;height:8px;border-radius:4px;background:var(--ob-off);overflow:hidden}.lt-lr .tr i{display:block;height:100%;background:var(--lv-acc);border-radius:4px}
.lt-lr .v{width:34px;flex:0 0 auto;text-align:right;color:var(--t-mu,#7a7a7a)}
.lt-lr.off{opacity:.45}
@media (max-height:760px){.lt-facts{margin-top:18px;gap:8px}.lt-fact{padding:11px 14px}.lt .ob-av.lt-av{width:52px;height:52px;margin-bottom:14px}.lt-h{font-size:19px;margin-top:10px}.lt-qs{margin-top:12px;padding:14px 16px}.lt-lis{margin-top:12px;padding:7px 12px 7px 7px}.lt-jav{width:56px;height:56px}.lt-opts{margin-top:18px;gap:7px}.lt-op{padding:10px 14px}
 .lt-rc{margin-top:14px;padding:16px 18px}.lt-rl b{font-size:26px}.lt-sc div{padding:10px 12px}.lt-sc b{font-size:19px}.lt-lad{padding:10px 14px}.lt-lr{margin-top:5px}.lt-skip{height:34px}}
@media (max-height:700px){.lt-lnote{display:none}}   /* a short screen: the dimmed choices say it already */
@media (max-height:700px){.lt-wave{height:14px;margin-top:5px}.lt-op{padding:9px 14px}.lt-h{margin-top:8px}}
@media (max-height:600px){.lt .ob-body{padding-top:8px}.lt-h{font-size:17px;margin-top:6px}.lt-kind{padding:5px 9px;font-size:12px}.lt-lis{margin-top:8px;padding:6px 10px 6px 6px}.lt-jav{width:48px;height:48px}.lt-lst b{font-size:14px}.lt-lst>span{font-size:12px;margin-top:1px}.lt-wave{height:12px;margin-top:4px}.lt-opts{margin-top:14px;gap:6px}.lt-op{padding:7px 12px;font-size:15px}.lt-op i{width:24px;height:24px}.lt-qs{margin-top:8px;padding:10px 14px}.lt-en{font-size:17px}.lt-ko{margin-top:4px}.lt .ob-go{height:48px}.lt-skip{height:32px;margin-top:2px}.lt .ob-foot{padding-top:6px;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 8px)}}   /* iPhone SE with the Safari bars (375x548): the 4 choices and the buttons on one screen */
@media (max-height:600px){.lt-res .ob-body{padding-bottom:4px}.lt-res .ob-h1{font-size:20px}.lt-res .ob-av.xs{width:30px;height:30px}.lt-rc{margin-top:10px;padding:12px 14px;border-radius:18px}.lt-rk{font-size:12.5px}.lt-rl{margin-top:4px}.lt-rl b{font-size:22px}.lt-rc p{margin-top:6px;font-size:13.5px;line-height:1.4}
 .lt-sc{margin-top:8px;gap:6px}.lt-sc div{padding:8px 10px;border-radius:13px}.lt-sc span{font-size:12px}.lt-sc b{font-size:17px;margin-top:2px}.lt-lad{margin-top:8px;padding:8px 12px;border-radius:14px}.lt-lt2{font-size:12px;margin-bottom:0}.lt-lr{margin-top:3px;font-size:12px}.lt-lr .tr{height:6px}.lt-rc p{line-height:1.35}.lt-lad{padding:7px 12px}}   /* the result on an iPhone SE with the Safari bars */
/* v17 (d3, 사용자 승인 목업): 예문은 고른 카드에만 보여요. 카드 목록은 안내 문구에서 조금 더 떨어져요 */
.lv-card:not(.on) .lv-ex{display:none}
.ob-step[data-step="level"] .lv-sec{margin-top:34px}
@media (max-height:760px){.ob-step[data-step="level"] .lv-sec{margin-top:24px}}
@media (max-height:650px){.ob-step[data-step="level"] .lv-sec{margin-top:14px}}
@media (max-height:839px) and (min-height:651px){   /* v17: with the examples folded there is room, so a short screen keeps the dashed card too (smaller) */
.ob-step[data-step="level"] .lt-entry{justify-content:flex-start;gap:10px;margin-top:8px;padding:8px 12px;height:auto;border:1.5px dashed var(--lv-acc);border-radius:16px}
.ob-step[data-step="level"] .lt-ei{display:grid;width:30px;height:30px;font-size:15px;border-radius:9px}
.ob-step[data-step="level"] .lt-et{flex:1 1 auto}
.ob-step[data-step="level"] .lt-et b{font-size:14.5px;color:var(--t-ink,#1d1d1f)}
.ob-step[data-step="level"] .lt-et span{display:block;font-size:12.5px}}
/* v18 (d3, 사용자 승인 목업): 복습하기에서 다른 표현으로 맞혔을 때 내가 한 말 / 정답 표현 */
.tt-fbok.tt-alt{flex-direction:column;align-items:stretch;gap:10px}
.tt-alt .hd{display:flex;align-items:center;gap:8px}.tt-alt .hd>span{margin-left:auto;color:var(--t-ink2);font-size:13.5px;text-align:right}
.tt-alt .rows{display:flex;flex-direction:column;gap:6px;background:var(--t-card,#fff);border-radius:12px;padding:10px 12px}
.tt-alt .r{display:flex;gap:10px;align-items:baseline;font-size:14px}
.tt-alt .r i{font-style:normal;flex:0 0 64px;font-size:12px;font-weight:700;color:var(--t-mu,#8a8a8a)}
.tt-alt .r span{margin-left:0;text-align:left;font-size:14px;color:var(--t-ink,#1d1d1f);min-width:0;overflow-wrap:anywhere}
.tt-alt .r b{color:var(--t-green);font-weight:850}
html[data-theme="dark"] .tt-alt .rows{background:rgba(255,255,255,.06)}

/* ---------- v18.4 상황극 고르기 A-1 (사용자가 고른 목업, 메인이 만들었어요. js/04 renderRp) ----------
   위 오늘의 추천 한 줄 카드 / 분류 칩 (거르기) / 사진 2열 격자 (내 레벨에 맞아요, 도전해 볼까요). 예전 카드 모양(가로 줄, 목록)은 여기서 모두 덮어써요.
   화면은 위아래로만 움직여요: 목록 상자는 옆으로 넘치지 않고(overflow-x hidden), 손가락 움직임도 위아래만 받아요(touch-action pan-y).
   시작하기는 js/06 uiRpDecor 가 고른 카드에 다는 앱의 원래 재생 버튼(동그라미 + 시작하기)을 그대로 써요 */
html[data-theme] body #rpView.rpx{--x-card:#fff;--x-ink:#1d1d1f;--x-mu:#7a7f88;--x-acc:#3d5afe;--x-on:#fff;--x-chip:#fff;--x-chipInk:#3a3f4a;--x-chipOn:#1d1d1f;--x-chipOnInk:#fff;--x-sh:0 2px 10px rgba(20,30,60,.07);overflow:hidden!important;overscroll-behavior:none!important;touch-action:pan-y}
html[data-theme="dark"] body #rpView.rpx{--x-card:#1c1d21;--x-ink:#f2f2f4;--x-mu:#8d8f97;--x-acc:#e3b65c;--x-on:#111;--x-chip:rgba(255,255,255,.1);--x-chipInk:#e6e6ea;--x-chipOn:#f2f2f4;--x-chipOnInk:#121214;--x-sh:0 0 0 1px #2a2c33}
html[data-theme] body[data-view="rp"] #rpView.rpx{display:flex!important;flex-direction:column!important}
html[data-theme] body #rpView.rpx>.hv-top{order:0;flex:0 0 auto}
/* 오늘의 추천 한 줄 카드 */
html[data-theme] body #rpView.rpx>#rpDetail.rpx-today{all:unset!important;order:1!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:12px!important;flex:0 0 auto!important;margin:2px 0 0!important;padding:10px 12px 10px 10px!important;background:var(--x-card)!important;border-radius:20px!important;box-shadow:var(--x-sh)!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent!important;min-width:0!important}
html[data-theme] body #rpView.rpx #rpDetail .rpx-th{all:unset!important;overflow:hidden!important;display:block!important;width:58px!important;height:58px!important;flex:0 0 auto!important;border-radius:14px!important;object-fit:cover!important;background:var(--x-chip)!important}
html[data-theme] body #rpView.rpx #rpDetail .rpx-tt{all:unset!important;display:block!important;flex:1 1 auto!important;min-width:0!important}
html[data-theme] body #rpView.rpx #rpDetail .rp-badge{all:unset!important;display:block!important;font-size:12px!important;font-weight:800!important;line-height:1.3!important;color:var(--x-acc)!important}
html[data-theme] body #rpView.rpx #rpDetail .nm{all:unset!important;display:block!important;margin-top:2px!important;font-size:17px!important;font-weight:800!important;letter-spacing:-.03em!important;line-height:1.3!important;color:var(--x-ink)!important;word-break:keep-all!important;overflow-wrap:anywhere!important}
html[data-theme] body #rpView.rpx #rpDetail .rp-who{all:unset!important;display:block!important;margin-top:1px!important;font-size:12.5px!important;font-weight:600!important;line-height:1.35!important;color:var(--x-mu)!important;word-break:keep-all!important}
html[data-theme] body #rpView.rpx #rpDetail .rpx-go{all:unset!important;box-sizing:border-box!important;flex:0 0 auto!important;width:40px!important;height:40px!important;border-radius:50%!important;background:var(--x-acc)!important;color:var(--x-on)!important;display:grid!important;place-items:center!important;box-shadow:0 3px 10px rgba(0,0,0,.28)!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent!important}
html[data-theme] body #rpView.rpx #rpDetail .rpx-go svg{display:block!important;width:15px!important;height:15px!important;margin-left:2px!important}
html[data-theme] body #rpView.rpx #rpDetail .rpx-go:active{transform:scale(.94)!important}
/* 분류 칩: 한 줄에 다 들어가요 (옆으로 넘기지 않아요) */
html[data-theme] body #rpView.rpx>#rpFil.rpx-chips{all:unset!important;order:2!important;box-sizing:border-box!important;display:flex!important;gap:6px!important;flex:0 0 auto!important;margin:14px 0 10px!important;min-width:0!important}
html[data-theme] body #rpView.rpx #rpFil.rpx-chips>button{all:unset!important;box-sizing:border-box!important;flex:0 0 auto!important;height:34px!important;padding:0 10px!important;border-radius:999px!important;background:var(--x-chip)!important;color:var(--x-chipInk)!important;font-size:14px!important;font-weight:700!important;line-height:34px!important;white-space:nowrap!important;box-shadow:var(--x-sh)!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent!important}
html[data-theme] body #rpView.rpx #rpFil.rpx-chips>button.on{background:var(--x-chipOn)!important;color:var(--x-chipOnInk)!important;box-shadow:none!important}
@media (max-width:379px){html[data-theme] body #rpView.rpx #rpFil.rpx-chips{gap:5px!important}html[data-theme] body #rpView.rpx #rpFil.rpx-chips>button{padding:0 8px!important;font-size:13.5px!important}}
@media (max-width:344px){html[data-theme] body #rpView.rpx #rpFil.rpx-chips{gap:4px!important}html[data-theme] body #rpView.rpx #rpFil.rpx-chips>button{padding:0 6px!important;font-size:12.5px!important}}
/* 목록: 위아래로만 */
html[data-theme] body #rpView.rpx>#rpRail.rpx-rail{all:unset!important;order:3!important;box-sizing:border-box!important;display:block!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;touch-action:pan-y!important;width:auto!important;margin:0 -4px!important;padding:4px 4px 16px!important}
html[data-theme] body #rpView.rpx #rpRail .rpx-sec{display:flex;justify-content:space-between;align-items:baseline;margin:2px 2px 10px}
html[data-theme] body #rpView.rpx #rpRail .rpx-grid+.rpx-sec{margin-top:18px}
html[data-theme] body #rpView.rpx #rpRail .rpx-sec b{font-size:16.5px;font-weight:800;letter-spacing:-.02em;color:var(--x-ink)}
html[data-theme] body #rpView.rpx #rpRail .rpx-sec span{font-size:13px;font-weight:700;color:var(--x-mu)}
html[data-theme] body #rpView.rpx #rpRail .rpx-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
html[data-theme] body #rpView.rpx #rpRail .rpx-grid>.rp-t{all:unset!important;box-sizing:border-box!important;position:relative!important;display:block!important;min-width:0!important;background:var(--x-card)!important;border-radius:16px!important;overflow:hidden!important;box-shadow:var(--x-sh)!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent!important}
html[data-theme] body #rpView.rpx #rpRail .rpx-grid>.rp-t[aria-pressed="true"]{box-shadow:0 0 0 2px var(--x-acc),0 6px 18px rgba(0,0,0,.18)!important}
html[data-theme] body #rpView.rpx #rpRail .rpx-grid>.rp-t>img{all:unset!important;overflow:hidden!important;display:block!important;width:100%!important;height:100px!important;object-fit:cover!important;background:var(--x-chip)!important}
html[data-theme] body #rpView.rpx #rpRail .rpx-grid>.rp-t>.rp-tx{all:unset!important;display:block!important;padding:8px 11px 10px!important}
html[data-theme] body #rpView.rpx #rpRail .rpx-grid>.rp-t>.rp-tx>b{all:unset!important;display:block!important;font-size:15px!important;font-weight:800!important;letter-spacing:-.03em!important;line-height:1.3!important;color:var(--x-ink)!important;word-break:keep-all!important;overflow-wrap:anywhere!important}
html[data-theme] body #rpView.rpx #rpRail .rpx-grid>.rp-t>.rp-tx>span{all:unset!important;display:block!important;margin-top:2px!important;font-size:12.5px!important;font-weight:600!important;line-height:1.35!important;color:var(--x-mu)!important;word-break:keep-all!important;overflow-wrap:anywhere!important}
html[data-theme] body #rpView.rpx #rpRail .rpx-grid>.rp-t[aria-pressed="true"]>.rp-tx>span{color:var(--x-acc)!important;font-weight:800!important}
/* 고른 카드의 시작하기 (js/06 의 동그라미 + 시작하기): 사진 위를 덮어요 */
html[data-theme] body #rpView.rpx .rp-g2 .rpx-grid>.rp-t>#rpStart.ui-play{left:0!important;right:0!important;top:0!important;border-radius:16px 16px 0 0!important;background:rgba(0,0,0,.26)!important}
/* v18 (담당 1, 사용자 요청, 승인 시안 GP8): 레벨 테스트 첫 문제 위에 뜨는 안내 (모르는 문제가 나오면 잘 모르겠어요 눌러주세요). 가운데 정렬 카드 */
.lt-tipw{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:0 28px}
.lt-tipdim{position:absolute;inset:0;background:rgba(10,14,30,.5);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);animation:ltTipF .2s ease both}
html[data-theme="dark"] .lt-tipdim{background:rgba(0,0,0,.65)}
.lt-tip{--a:#3d5afe;--card:#fff;--ink:#1d1d1f;--mu:#7a7f88;--tint:rgba(61,90,254,.1);position:relative;width:100%;max-width:340px;max-height:calc(100% - 32px);overflow:auto;background:var(--card);border-radius:24px;padding:26px 22px 16px;color:var(--ink);text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.28);word-break:keep-all;animation:ltTipIn .26s cubic-bezier(.2,.9,.3,1.2) both}
html[data-theme="dark"] .lt-tip{--a:#e3b65c;--card:#1c1d21;--ink:#f2f2f4;--mu:#8d8f97;--tint:rgba(227,182,92,.15)}
.lt-tipav{display:block;width:56px;height:56px;margin:0 auto;border-radius:50%;background:#e9eefc no-repeat 50% 23%/185% auto}
html[data-theme="dark"] .lt-tipav{background-color:#2a2c33}
.lt-tip h3{margin:12px 0 0;font-size:22px;font-weight:800;letter-spacing:-.035em;line-height:1.5;color:var(--ink)}
.lt-tipc{display:inline-block;font-size:19px;font-weight:800;color:var(--a);background:var(--tint);padding:3px 11px;border-radius:9px}
.lt-tip p{margin:10px 0 0;font-size:14px;line-height:1.5;font-weight:500;color:var(--mu)}
.lt-tip .lt-tipgo{display:block;width:100%;margin-top:20px;height:50px;border:0;border-radius:15px;background:var(--a);color:#fff;font-size:16px;font-weight:800;font-family:inherit}
html[data-theme="dark"] body .lt-tip .lt-tipgo{background:var(--a)!important;color:#fff!important;text-shadow:0 1px 2px rgba(120,80,0,.35)}
@keyframes ltTipF{from{opacity:0}}
@keyframes ltTipIn{from{opacity:0;transform:scale(.94)}}
@media (max-height:600px){.lt-tip{padding:20px 20px 14px}.lt-tip h3{font-size:20px}.lt-tipc{font-size:17px}.lt-tip .lt-tipgo{margin-top:16px;height:46px}}

/* d3 v19 (사용자가 고른 목업 B안): 기록 탭 리포트 이번 주 칸에서 오늘을 다 했으면 지난 한 날처럼 연한 초록 바탕 / 초록 날짜와 점,
   오늘 테두리와 오늘 글자는 테두리 색 (라이트 파랑 / 다크 골드). 아직 안 했으면 지금처럼 테두리만 (담당 1 css/ui.css 구역은 그대로) */
.ui-rx-d .td.ok{background:var(--okT);color:var(--td);box-shadow:inset 0 0 0 2px var(--td)}
.ui-rx-d .td.ok small{color:var(--ok)}.ui-rx-d .td.ok i{background:var(--ok)}

/* v23 담당 3 (사용자 제보: 알림 카운트다운 화면 위에서 처음 안내가 나왔어요): 안내 중에 카운트다운이 열리면 안내는 그 아래에서 기다려요 (js/15 gd-hold) */
.gd-ov.gd-hold{visibility:hidden!important;pointer-events:none!important}
