/* ui.css: 담당 1 홈 / 공통 UI (v12.5에 자리만 만들었어요)
   새 공통 스타일을 여기에 써요. 기존 css 파일(style, dark-theme, ten-talk)도 담당 1만 고쳐요.
   공통 약속(레벨, Day 진행, 레슨 결과)은 js/05-shared.js 함수를 써요. 규칙은 CLAUDE.md를 봐요. */

/* ---------- v12.9 홈: 클로이 사진, Hey 이름, 버튼 3단계, 이번 주 학습 카드 ---------- */
html body #homeView{display:flex!important;flex-direction:column!important;overflow:hidden!important;position:relative;padding-left:10px!important;padding-right:10px!important;padding-bottom:0!important;margin-bottom:-6px!important}
html[data-theme="light"] body[data-view="home"],html[data-theme="light"] body[data-view="home"] #homeView{background:#ffffff!important}
html[data-theme="dark"] body[data-view="home"],html[data-theme="dark"] body[data-view="home"] #homeView{background:#0f0f11!important}
/* top row: TenTalk and the gear (the date and the old greeting are kept but not shown) */
html body #homeView .hv-top{position:relative;z-index:3;display:flex!important;align-items:center;justify-content:space-between;flex:0 0 auto;margin:6px 0 0!important;padding:0 8px 0 12px;min-height:46px}
html body #homeView .hv-top>div{display:none!important}
html body #homeView .hv-top .c-logo{font-family:var(--f-display);font-weight:800;font-size:27px;letter-spacing:-.02em;color:#111318;line-height:1}
html[data-theme="dark"] body #homeView .hv-top .c-logo{color:#fff}
html body #homeView .hv-top .hv-gear{position:static!important;width:46px!important;height:46px!important;border-radius:50%!important;display:flex;align-items:center;justify-content:center;padding:0!important;background:rgba(255,255,255,.88)!important;border:0!important;box-shadow:0 0 0 1px rgba(0,0,0,.06)!important;color:#111318!important}
html[data-theme="dark"] body #homeView .hv-top .hv-gear{background:rgba(20,20,22,.5)!important;box-shadow:0 0 0 1px rgba(255,255,255,.16)!important;color:#fff!important}
html body #homeView .hv-top .hv-gear svg{width:21px;height:21px}
html body #homeView .wk-sec{display:none!important}
/* v13.2 배경: 책상 사진 (라이트 / 다크 같은 장면). 화면 맨 위부터 깔고, 크기와 자리는 homeBg가 맞춰요. 아래 끝은 이번 주 학습 카드 뒤에서 흐려져요
   v28.1 메인 (사용자 결정 11-06 A-2, 담당 1 구역): 라이트는 비행기 창밖 낮 하늘 사진 (home-bg-sky), 다크는 책상 밤 사진 그대로예요. TenTalk 글씨 뒤 흰빛 (.c-wash) 은 쓰지 않아요
   v28.2 (사용자 결정 11-06 01:36): 사진에서 의자 (파란 등받이 / 옆판 / 팔걸이) 를 지우고 벽으로 채웠어요. 같은 파일 이름이라 주소 끝 ?v=2 로 새로 받아요
   v29.3 메인 (사용자 결정 11-09 15:51, 목업 B + 1) 골드 빛): 다크는 골드 물결 그림 (home-bg-wave) 을 화면 전체에 깔고 아래 끝을 흐리게 하지 않아요 (크기와 자리는 homeBg) */
html body #homeView #hvHero{flex:1 1 auto!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:column;margin:0!important;position:relative}
#hvHero .c-sp{flex:1 1 auto;min-height:0}
html body .c-bg{position:fixed;display:none;left:0;top:0;width:100vw;height:60vh;z-index:0;pointer-events:none;background:url(../assets/images/home-bg-sky.webp?v=2) no-repeat 0 0/100% auto;-webkit-mask-image:linear-gradient(#000 calc(100% - 60px),transparent);mask-image:linear-gradient(#000 calc(100% - 60px),transparent)}
html[data-theme="dark"] body .c-bg{background-image:url(../assets/images/home-bg-wave.webp);-webkit-mask-image:none;mask-image:none}
html body .c-wash{position:fixed;inset:0;z-index:0;pointer-events:none;display:none}
html body[data-view="home"] .c-bg{display:block}
/* phones: the photo is under the page, so the 홈 view itself is see-through (the page color stays on <body>) */
@media (max-width:900px){html[data-theme] body[data-view="home"] #homeView{background:transparent!important}}
/* PC: inside the 홈 panel */
@media (min-width:901px){html body #homeView>.c-bg{position:absolute;width:100%;display:block}html body #homeView>.c-wash{position:absolute}}
#hvHero .c-tx{position:relative;z-index:2;max-width:54%;padding:0 12px 14px;color:#111318;word-break:keep-all}
html[data-theme="dark"] #hvHero .c-tx{color:#fff}
#hvHero .c-hey{font-size:28px;font-weight:800;letter-spacing:-.03em;line-height:1.12;white-space:nowrap}
#hvHero .c-q{font-size:19px;font-weight:700;letter-spacing:-.03em;line-height:1.32;margin-top:8px}
#hvHero .c-hey .c-wv{position:relative;z-index:3}
/* the button row: the routine button on the left */
#hvHero .c-row{position:relative;z-index:3;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;flex:0 0 auto}
/* the button: blue (light) / gold with white text (dark) / green when today is done */
html body #homeView #hvHero .hero.c-go{position:relative;z-index:3;display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;align-content:center!important;gap:8px;line-height:1!important;flex:0 0 auto;width:64%!important;height:56px!important;min-height:0!important;margin:0!important;padding:0 16px!important;border:0!important;border-radius:29px!important;overflow:visible!important;background:linear-gradient(180deg,#5a73ff,#3d5afe)!important;box-shadow:0 10px 26px rgba(61,90,254,.32)!important;color:#fff!important;cursor:pointer;grid-template-columns:none!important}
html[data-theme="dark"] body #homeView #hvHero .hero.c-go{background:linear-gradient(180deg,#f7c843,#e6a812)!important;box-shadow:0 10px 28px rgba(243,187,42,.30)!important;color:#fff!important}
/* done (v13.4): a white glass button (dark: a dark glass one) with the green check badge, so done reads as finished, not as one more thing to press */
html[data-theme] body #homeView #hvHero .hero.c-go.done{background:rgba(255,255,255,.9)!important;box-shadow:0 8px 22px rgba(20,30,60,.14),inset 0 0 0 1px rgba(0,0,0,.05)!important;color:#111318!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
html[data-theme="dark"] body #homeView #hvHero .hero.c-go.done{background:rgba(30,30,34,.72)!important;box-shadow:0 8px 22px rgba(0,0,0,.4),inset 0 0 0 1px rgba(255,255,255,.14)!important;color:#fff!important}
html body #homeView #hvHero .hero.c-go.done .go svg{width:26px!important;height:26px!important;padding:5px;border-radius:50%;background:#16a34a;color:#fff;box-sizing:border-box}
html body #homeView #hvHero .hero.c-go .go{display:inline-flex!important;align-self:center!important;align-items:center!important;gap:8px;position:static!important;width:auto!important;height:auto!important;min-width:0!important;margin:0!important;padding:0!important;background:none!important;box-shadow:none!important;border:0!important;color:inherit!important;font-size:20px!important;font-weight:800!important;letter-spacing:-.02em;white-space:nowrap}
html[data-theme="dark"] body #homeView #hvHero .hero.c-go:not(.done) .go{text-shadow:0 1px 2px rgba(120,80,0,.35)}
#hvHero .hero.c-go .go svg{width:22px!important;height:22px!important;flex:0 0 auto}
#hvHero .c-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* 이번 주 학습: the same card, the dates in a small box at the top */
html body #homeView #hvWeek{flex:0 0 auto!important;min-height:0!important;max-height:none!important;display:block!important;margin:10px 0 0!important;padding:15px 18px 13px!important;border-radius:26px!important;background:#fff!important;border:0!important;box-shadow:0 0 0 1px #e8eaef,0 6px 20px rgba(20,30,60,.05)!important;position:relative;z-index:3}
html[data-theme="dark"] body #homeView #hvWeek{background:#17171a!important;box-shadow:0 0 0 1px #2a2a2f!important}
#hvWeek .hw-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
#hvWeek .hw-top b{font-size:17px;font-weight:800;color:#111318}
#hvWeek .hw-rng{display:inline-flex;align-items:center;height:28px;padding:0 11px;border-radius:999px;background:#eef1f6;color:#3a3f4b;font-size:13.5px;font-weight:600;box-shadow:inset 0 0 0 1px #e2e6ee;white-space:nowrap}
html[data-theme="dark"] #hvWeek .hw-top b{color:#fff}
html[data-theme="dark"] #hvWeek .hw-rng{background:#26262b;color:#d4d4d8;box-shadow:inset 0 0 0 1px #34343a}
html body #homeView #hvWeek .hw-hd{display:flex!important;justify-content:space-between;align-items:baseline;margin:10px 0 0!important}
html body #homeView #hvWeek .hw-big{font-size:30px!important;font-weight:800!important;line-height:1!important;color:#111318!important}
html body #homeView #hvWeek .hw-big small{font-size:16px!important;font-weight:500!important;color:#7b808c!important;margin-left:3px}
html body #homeView #hvWeek .hw-goal{font-size:14.5px!important;font-weight:600!important;color:#111318!important;background:none!important;padding:0!important}
html[data-theme="dark"] body #homeView #hvWeek .hw-big,html[data-theme="dark"] body #homeView #hvWeek .hw-goal{color:#fff!important}
html body #homeView #hvWeek .hw-bar{height:8px!important;border-radius:4px!important;background:#e9ecf2!important;border:0!important;margin:12px 0!important;overflow:hidden}
html[data-theme="dark"] body #homeView #hvWeek .hw-bar{background:#2a2a30!important}
html body #homeView #hvWeek .hw-bar i{background:#3d5afe!important;min-width:8px}
html[data-theme="dark"] body #homeView #hvWeek .hw-bar i{background:#f5c542!important}
html body #homeView #hvWeek .hw-row{display:flex!important;justify-content:space-between!important;gap:0!important;margin:0!important}
html body #homeView #hvWeek .hw-d{display:flex!important;flex-direction:column!important;align-items:center!important;gap:7px!important;flex:0 0 auto!important;min-width:0!important;background:none!important;border:0!important;padding:0!important;position:relative}
html body #homeView #hvWeek .hw-d .w{font-size:13px!important;color:#7b808c!important;font-weight:500!important}
html body #homeView #hvWeek .hw-d .n{width:38px!important;height:38px!important;border-radius:50%!important;background:#f0f2f6!important;background-image:none!important;color:#3a3f4b!important;border:0!important;box-shadow:none!important;display:flex!important;align-items:center;justify-content:center;font-size:17px!important;font-weight:600!important}
html[data-theme="dark"] body #homeView #hvWeek .hw-d .n{background:#26262b!important;color:#d4d4d8!important}
html body #homeView #hvWeek .hw-d.today .n{background:#3d5afe!important;color:#fff!important;font-weight:800!important}
html[data-theme="dark"] body #homeView #hvWeek .hw-d.today .n{background:#f5c542!important;color:#16130a!important}
html body #homeView #hvWeek .hw-d.ok .n{background:#16a34a!important;color:#fff!important}
html[data-theme="dark"] body #homeView #hvWeek .hw-d.ok .n{background:#22c55e!important;color:#07160d!important}
html body #homeView #hvWeek .hw-d.today .w{color:#3d5afe!important;font-weight:700!important}
html[data-theme="dark"] body #homeView #hvWeek .hw-d.today .w{color:#f5c542!important}
/* v13.2: today done = green (the circle and the weekday), the same as the green 오늘의 루틴 완료 button */
html body #homeView #hvWeek .hw-d.today.ok .n{background:#16a34a!important;color:#fff!important}
html[data-theme="dark"] body #homeView #hvWeek .hw-d.today.ok .n{background:#1fb457!important;color:#fff!important}
html body #homeView #hvWeek .hw-d.today.ok .w{color:#16a34a!important}
html[data-theme="dark"] body #homeView #hvWeek .hw-d.today.ok .w{color:#28c060!important}
html body #homeView #hvWeek .hw-d>i,html body #homeView #hvWeek .hw-d em{display:none!important}
html body #homeView #hvWeek .hw-d .n svg{width:18px;height:18px}
html body #homeView #hvWeek .hw-note{display:block!important;text-align:center;font-size:14px!important;color:#7b808c!important;margin:10px 0 0!important}
html[data-theme] body #homeView:has(.hero.done) #hvWeek .hw-bar i{background:#16a34a!important}
html[data-theme="dark"] body #homeView:has(.hero.done) #hvWeek .hw-bar i{background:#22c55e!important}

/* v13.2: dark gold button with black text (done stays green with white text); the routine label a little smaller */
html body #homeView #hvHero .hero.c-go .go{font-size:18px!important}
html[data-theme="dark"] body #homeView #hvHero .hero.c-go:not(.done){color:#16130a!important}
html[data-theme="dark"] body #homeView #hvHero .hero.c-go:not(.done) .go{text-shadow:none!important}
/* v13.2: 이번 주 학습 bigger, a box on the white page, a small gap above the tab bar */
html[data-theme="light"] body #homeView #hvWeek{box-shadow:0 0 0 1px #e3e6ee,0 10px 28px rgba(20,30,60,.10)!important}
html body #homeView #hvWeek{margin:14px 0 14px!important;padding:24px 22px 22px!important;border-radius:28px!important}
#hvWeek .hw-top b{font-size:19px}
#hvWeek .hw-rng{font-size:14px;height:30px}
html body #homeView #hvWeek .hw-hd{margin-top:16px!important}
html body #homeView #hvWeek .hw-big{font-size:38px!important}
html body #homeView #hvWeek .hw-goal{font-size:16px!important}
html body #homeView #hvWeek .hw-bar{height:10px!important;margin:18px 0!important}
html body #homeView #hvWeek .hw-d{gap:9px!important}
html body #homeView #hvWeek .hw-d .w{font-size:13px!important}
html body #homeView #hvWeek .hw-d .n{width:38px!important;height:38px!important;font-size:16px!important}   /* v13.4: smaller circles, more room between the days */
html body #homeView #hvWeek .hw-row{padding:0 4px!important}
html body #homeView #hvWeek .hw-note{margin-top:18px!important;font-size:15px!important}
@media (max-height:700px){#hvHero .c-hey{font-size:24px}#hvHero .c-q{font-size:17px}#hvHero .c-tx{max-width:52%;padding-bottom:12px}html body #homeView #hvWeek{margin-bottom:4px!important;padding:14px 16px 12px!important}html body #homeView #hvWeek .hw-big{font-size:30px!important}html body #homeView #hvWeek .hw-hd{margin-top:8px!important}html body #homeView #hvWeek .hw-bar{display:block!important;margin:10px 0!important}html body #homeView #hvWeek .hw-d{gap:5px!important}html body #homeView #hvWeek .hw-d .n{width:36px!important;height:36px!important;font-size:16px!important}html body #homeView #hvWeek .hw-note{display:block!important;margin-top:8px!important;font-size:13px!important}}
/* v13.3 (메인): on a narrow phone (360px Galaxy and smaller) the button grows to its label, so 10분 루틴 시작하기 and the arrow never go past it */
html body #homeView #hvHero .hero.c-go{min-width:max-content!important}

/* ---------- v13.4 다크 모드 골드 (홈과 같은 색): 루틴 탭의 지금 단계 번호와 시작하기 버튼, 기록 탭의 오늘 표시 ---------- */
html[data-theme="dark"] body #ttLearn .rt-s.cur .rt-dot{background:#f5c542!important;color:#16130a!important;box-shadow:0 0 0 4px var(--t-bg),0 0 0 9px rgba(245,197,66,.22)!important}
html[data-theme="dark"] body #ttLearn .rt-go{background:linear-gradient(180deg,#f7c843,#e6a812)!important;color:#16130a!important;box-shadow:0 8px 18px rgba(243,187,42,.30)!important}
html[data-theme="dark"] body #side .cd.today .num{background:#f5c542!important;color:#16130a!important;font-weight:800!important}
html[data-theme="dark"] body #side .cal-lg i.today{background:#f5c542!important}
html[data-theme="dark"] body #side .sd-tabs button[aria-selected="true"]{border-bottom-color:#f5c542!important;color:#f5c542!important}

/* ---------- v13.4 상태바: 홈 화면 앱에서는 사진이 시계 / 카메라 자리까지 깔려요 (index.html의 black-translucent). 시계 글씨가 흰색이라
   라이트 모드에서는 맨 위 상태바 높이만 살짝 어둡게 깔아요 ---------- */
html[data-theme="light"] body::before{content:"";position:fixed;left:0;right:0;top:0;height:env(safe-area-inset-top,0px);z-index:2147483000;pointer-events:none;background:linear-gradient(rgba(0,0,0,.28),rgba(0,0,0,0))}
/* 홈과 학습 탭은 위 여백이 없어서, 상태바 높이만큼 내려요 (루틴 / 기록 / 설정은 이미 내려와 있어요) */
html body #homeView,html body #talkView{padding-top:calc(4px + env(safe-area-inset-top,0px))!important}
/* ---------- 탭 전환 움직임 (v13.4): 하단 탭 선택 표시 하나가 미끄러져요 (js/06-ui.js) ---------- */
#tabBar .tb-pill{position:absolute;left:0;top:0;border-radius:28px;background:var(--b-tint,#e9edff);z-index:0;pointer-events:none;
  transition:transform .34s cubic-bezier(.3,1.25,.5,1),width .34s cubic-bezier(.3,1.25,.5,1),opacity .15s}
html[data-theme="dark"] #tabBar .tb-pill{background:#2d2f36}
#tabBar .tb-pill.still{transition:none}
#tabBar.has-pill button{position:relative;z-index:1;-webkit-tap-highlight-color:transparent}
#tabBar.has-pill button[aria-current="page"]{background:transparent!important}
#tabBar.has-pill button svg{transition:transform .18s ease-out}
#tabBar.has-pill button.tb-pop svg{transform:scale(1.14) translateY(-1px)}
@media (prefers-reduced-motion:reduce){#tabBar .tb-pill,#tabBar.has-pill button svg{transition:none}}

/* ---------- v13.6 설정 레벨 드롭박스 (TALK 1~4) ---------- */
html body #settings .seg[data-for="level"]{display:none!important}
#settings .lv-dd{position:relative;flex:none;margin-left:auto}
#settings .set-card:has(.lv-dd){overflow:visible}   /* the list hangs below the row, over the next group */
#settings .set-group:has(.lv-dd){position:relative;z-index:5}
#settings .lv-dd-btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 12px 0 16px;border-radius:12px;border:1px solid #e0e0e0;background:transparent;color:#111318;font-family:var(--f-en);font-weight:800;font-size:14.5px;letter-spacing:.01em;white-space:nowrap;cursor:pointer}
#settings .lv-dd-btn svg{width:15px;height:15px;color:#8a8f99;transition:transform .15s}
#settings .lv-dd.open .lv-dd-btn svg{transform:rotate(180deg)}
html[data-theme="dark"] #settings .lv-dd-btn{border-color:#3a3b42;background:#26272c;color:#e3b65c}
#settings .lv-dd-list{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:200px;padding:6px;border-radius:16px;background:#fff;box-shadow:0 16px 40px rgba(20,30,60,.18),0 0 0 1px rgba(0,0,0,.05);display:flex;flex-direction:column;gap:2px}
#settings .lv-dd-list[hidden]{display:none}
html[data-theme="dark"] #settings .lv-dd-list{background:#24252a;box-shadow:0 16px 40px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.08)}
#settings .lv-dd-list button{display:flex;align-items:baseline;gap:6px;width:100%;height:44px;padding:0 12px;border:0;border-radius:12px;background:transparent;text-align:left;cursor:pointer;line-height:44px}
#settings .lv-dd-list b{font-family:var(--f-en);font-weight:800;font-size:14.5px;letter-spacing:.01em;color:#111318}
#settings .lv-dd-list span{font-family:"Pretendard Variable","Pretendard",system-ui,sans-serif;font-weight:600;font-size:12.5px;color:#8a8f99}
#settings .lv-dd-list i{margin-left:auto;align-self:center;display:flex;visibility:hidden}
#settings .lv-dd-list i svg{width:16px;height:16px}
#settings .lv-dd-list .on{background:#e9edff}
#settings .lv-dd-list .on b,#settings .lv-dd-list .on span,#settings .lv-dd-list .on i{color:#3d5afe}
#settings .lv-dd-list .on i{visibility:visible}
html[data-theme="dark"] #settings .lv-dd-list b{color:#f2f2f4}
html[data-theme="dark"] #settings .lv-dd-list .on{background:#3a3418}
html[data-theme="dark"] #settings .lv-dd-list .on b,html[data-theme="dark"] #settings .lv-dd-list .on span,html[data-theme="dark"] #settings .lv-dd-list .on i{color:#e3b65c}
#settings .lv-dd-list button:focus-visible{outline:2px solid currentColor;outline-offset:-2px}

/* ---------- v13.6 레벨 배지 (홈 / 루틴 톱니바퀴 왼쪽, 학습 탭 TALK 배지와 같은 모양) ---------- */
html body .ui-lv{display:inline-flex;align-items:center;flex:none;height:26px;padding:0 11px;margin:0 8px 0 auto;border:0;border-radius:999px;background:#3d5afe;color:#fff;font-family:var(--f-en);font-weight:800;font-size:12.5px;letter-spacing:.01em;white-space:nowrap;cursor:pointer;box-shadow:none}
html[data-theme="dark"] body .ui-lv{background:#f5c542;color:#16130a}   /* v15.1 d2 (사용자 요청): 홈 골드와 같게, 검은 글씨 */
html body #ttLearn .rt-top .ui-lv{position:absolute;right:56px;top:6px;margin:0}   /* the gear is 46px, pinned at the top right */
/* v13.6 상태바 아래로 내리기: 홈 화면 앱이 시계 / 카메라 자리까지 그려지면서 위가 가려지던 화면들 (대화, 상황극 고르기, 오늘의 챌린지 닫기) */
html[data-theme] body[data-view="call"] .app>header{margin-top:env(safe-area-inset-top,0px)!important}
html[data-theme] body #rpView{padding-top:calc(4px + env(safe-area-inset-top,0px))!important}
html[data-theme] #chalSheet #chClose{bottom:auto!important;top:calc(env(safe-area-inset-top,0px) + 8px)!important}
/* 처음 시작하기 닉네임: 키보드가 올라와도 입력 완료 버튼은 둥근 버튼 모양 그대로, 양옆 여백을 둬요 */
html body .ob-kb .ob-foot{padding:8px 16px 10px!important}
html body .ob-kb .ob-go{height:52px!important;border-radius:26px!important}

/* ---------- v14.5 레벨은 내일부터: 안내 창과 설정의 한 줄 ---------- */
#settings .lv-next{margin:4px 0 0;padding:0 16px;font-size:13px;font-weight:700;color:#3d5afe}
#settings .lv-next[hidden]{display:none}
html[data-theme="dark"] #settings .lv-next{color:#e3b65c}
.lvn-dim{position:fixed;inset:0;z-index:300;background:rgba(10,12,20,.45);display:flex;align-items:center;justify-content:center;padding:24px}
.lvn{width:100%;max-width:330px;border-radius:24px;background:#fff;padding:24px 20px 18px;box-shadow:0 24px 60px rgba(0,0,0,.25);text-align:center;word-break:keep-all}
html[data-theme="dark"] .lvn{background:#1f2024}
.lvn .ic{width:52px;height:52px;border-radius:50%;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;background:#e9edff;color:#3d5afe}
html[data-theme="dark"] .lvn .ic{background:#3a3418;color:#e3b65c}
.lvn .ic svg{width:26px;height:26px}
.lvn h3{margin:0;font-size:19px;font-weight:800;letter-spacing:-.02em;color:#111318}
html[data-theme="dark"] .lvn h3{color:#f2f2f4}
.lvn p{margin:10px 0 0;font-size:14.5px;line-height:1.5;color:#5b6170}
html[data-theme="dark"] .lvn p{color:#a1a1aa}
.lvn p b{font-family:var(--f-en);font-weight:800;color:#111318}
html[data-theme="dark"] .lvn p b{color:#e3b65c}
.lvn .bt{display:flex;gap:8px;margin-top:20px}
.lvn .bt button{flex:1;height:48px;border:0;border-radius:24px;font-size:15.5px;font-weight:800;cursor:pointer}
.lvn .bt .no{background:#eef0f4;color:#3a3f4b}
html[data-theme="dark"] .lvn .bt .no{background:#2a2b30;color:#d4d4d8}
.lvn .bt .ok{background:#3d5afe;color:#fff}
html[data-theme="dark"] .lvn .bt .ok{background:#e3b65c;color:#fff}
/* v14.5 학습 탭 레벨 배지를 루틴 배지와 같게: 같은 글씨(Montserrat 800), 톱니바퀴와 같은 높이 가운데 */
html body #talkView .ls-top .ls-lv{font-family:var(--f-en);font-weight:800;letter-spacing:.01em;position:relative;top:-4px}   /* the gear there sits 4px up (lesson.css), the badge follows it */

/* ---------- v14.6 AI 튜터 배지 (js/06 uiAiBadges) ---------- */
.ui-ai{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px 0 8px;border-radius:999px;font-family:"Pretendard Variable",Pretendard,system-ui,sans-serif;font-size:11px;font-weight:700;letter-spacing:-.01em;line-height:1;white-space:nowrap;background:rgba(255,255,255,.95);color:#3d5afe;box-shadow:0 0 0 1px rgba(61,90,254,.25),0 2px 6px rgba(0,0,0,.12)}
.ui-ai i{width:6px;height:6px;border-radius:50%;background:#3d5afe;flex:none}
html[data-theme="dark"] .ui-ai{background:rgba(30,30,34,.85);color:#e3b65c;box-shadow:0 0 0 1px rgba(227,182,92,.45)}
html[data-theme="dark"] .ui-ai i{background:#e3b65c}
#juliaTile .tags:has(.ui-ai){display:inline-flex;align-items:center;gap:6px}
#juliaTile.rpface .ui-ai,#juliaTile.samtalk .ui-ai,body.kb #juliaTile .ui-ai{display:none}
.rt-ai{position:absolute;right:12px;bottom:12px;display:flex;pointer-events:none;z-index:2}   /* 사진 속 Julia 몸 오른쪽 아래 */
@media (max-width:359px){.rt-ai{right:8px}.rt-ai .ui-ai{font-size:10px;padding:0 7px}}

/* ---------- v14.6 앱을 켤 때 예전 대화 화면이 잠깐 보이지 않게 ----------
   index.html의 뼈대는 대화 화면이라, js가 첫 화면(showView)을 고르기 전 한 번 그려지면 대화 종료 / 파란 화면이 0.1초 보였어요.
   body에 data-view가 생기기 전에는 앱과 하단 탭을 숨겨요 (배경색만 보여요). 레벨 고르기 화면은 .app 밖이라 그대로 떠요. */
body:not([data-view]) .app,body:not([data-view]) #tabBar{visibility:hidden!important}

/* 담당 5: 라이트 홈 배경 사진 전체를 조금 더 진하게 (B안) */
html[data-theme="light"] body .c-bg{filter:brightness(.84) contrast(1.15) saturate(1.25)}

/* ---------- v14.8 복습하기 / 오늘의 챌린지 마이크를 스몰톡 / 상황극과 같게 (사용자 요청) ----------
   담당 3의 css/level.css v2 (통화 화면)와 같은 모양: 상태는 가운데 작은 칩 한 줄 (설명 줄은 숨겨요), 칩 바탕은 상태와 상관없이 같고 말하는 중에만 막대가 빨강.
   마이크는 듣는 동안 진한 빨강에 퍼지는 링, 내가 말하는 동안은 빨강 그라데이션 / 두근거림 / 링 두 겹. 동작(js)은 그대로예요. */
html[data-theme] #ttFlow #flLs.qz-ls,html[data-theme] #chalSheet #chLs.qz-ls{width:max-content!important;max-width:calc(100% - 32px)!important;padding:6px 14px!important;border-radius:99px!important;min-height:0!important;gap:8px!important;align-self:center;border:0!important;box-shadow:none!important;background:rgb(233,237,255)!important;color:#111318!important}
html[data-theme] #ttFlow #flLs.qz-ls{margin:0 auto 19px!important}
html[data-theme] #chalSheet #chLs.qz-ls{margin:auto auto 7px!important}   /* 마이크 위 간격이 스몰톡 칩과 같아요 (27px) */
html[data-theme="dark"] #ttFlow #flLs.qz-ls,html[data-theme="dark"] #chalSheet #chLs.qz-ls{background:rgb(31,36,64)!important;color:#fff!important}
html[data-theme] #ttFlow #flLs small,html[data-theme] #chalSheet #chLs small{display:none!important}
html[data-theme] #ttFlow #flLs b,html[data-theme] #chalSheet #chLs b{font-size:13.5px!important;font-weight:700!important;color:inherit!important}
html[data-theme] #ttFlow #flLs .lv,html[data-theme] #chalSheet #chLs .lv{transform:scale(.8)}
html[data-theme] #ttFlow #flLs .lv i,html[data-theme] #chalSheet #chLs .lv i{background:#3d5afe!important}
html[data-theme] #ttFlow #flLs[data-st="talk"] .lv i,html[data-theme] #chalSheet #chLs[data-st="talk"] .lv i{background:#e5484d!important}
html[data-theme="dark"] #ttFlow #flLs .lv i,html[data-theme="dark"] #chalSheet #chLs .lv i{background:#6f86ff!important}
html[data-theme="dark"] #ttFlow #flLs[data-st="talk"] .lv i,html[data-theme="dark"] #chalSheet #chLs[data-st="talk"] .lv i{background:#ff6b6f!important}
/* 복습하기 마이크: 듣는 동안 통화 화면처럼 단색 빨강 + 퍼지는 링 (예전에는 위아래 그라데이션)
   v25.7 메인 (사용자 요청 10-22, 다섯 번째: 복습하기 빈칸 답 / 3번 말하기에서 링이 안 보여요): 그림자 (box-shadow) 에 !important 를 붙이면
   애니메이션이 그림자를 못 바꿔서 듣는 중 링 (micpulse) 도, 말하는 중 링 (d3Ring) 도 안 그려지고 버튼 크기만 움직였어요. 그림자는 !important 없이 둬요 (tests/d4-revring.js) */
html[data-theme] #ttFlow .tt-micbox .tt-mbig.listening,html[data-theme] #ttFlow .tt-micbox .tt-mbig.recording{background:#e5484d!important;box-shadow:0 0 0 0 rgba(215,0,21,.45);animation:micpulse 1.6s ease-out infinite!important}
html[data-theme="dark"] #ttFlow .tt-micbox .tt-mbig.listening,html[data-theme="dark"] #ttFlow .tt-micbox .tt-mbig.recording{background:#d70015!important}
/* 내가 말하는 동안 (칩이 말하는 중): 통화 화면의 d3Ring / d3Beat */
html[data-theme] #ttFlow .tt-micbox:has(#flLs[data-st="talk"]:not([hidden])) .tt-mbig.listening,html[data-theme] #chalSheet:has(#chLs[data-st="talk"]:not([hidden])) #chMic.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] #ttFlow .tt-micbox .tt-mbig.listening{animation:none!important}html[data-theme] #ttFlow .tt-micbox:has(#flLs[data-st="talk"]:not([hidden])) .tt-mbig.listening,html[data-theme] #chalSheet:has(#chLs[data-st="talk"]:not([hidden])) #chMic.listening{animation:none!important;box-shadow:0 0 0 10px rgba(229,72,77,.3),0 12px 34px rgba(229,72,77,.55)!important}}

/* ---------- v14.8 상황극 대화 화면 장면 사진 (사용자가 고른 시안 B) ----------
   가운데부터 둥글게 흐려지던 것을, 모서리가 둥근 사진 전체가 보이고 아래쪽만 대화로 흐려지게 바꿔요. Julia 사진(.cut)은 그대로예요. */
html body[data-view="call"] #juliaTile .cx-por.ph{width:min(350px,90%)!important;border-radius:22px;-webkit-mask-image:linear-gradient(180deg,#000 80%,transparent 100%)!important;mask-image:linear-gradient(180deg,#000 80%,transparent 100%)!important}
/* v18 (사용자 요청, 시안 A): ⋯ 버튼은 사진 모서리에 걸치지 않고 사진 안쪽 오른쪽 위 (위 / 오른쪽 10px). 두 테마 모두 흰 동그라미에 검은 점 */
html[data-theme] body[data-view="call"] #juliaTile.rpface #moreBtn{right:calc((100% - min(350px,90%))/2 + 10px)!important;top:10px!important;background:#fff!important;color:#1d1d1f!important;border:0!important;box-shadow:0 2px 8px rgba(0,0,0,.18)!important;-webkit-backdrop-filter:none;backdrop-filter:none}

/* ---------- v14.8 상황극 고르기 (사용자가 고른 F + H1, js/06 uiRpDecor) ---------- */
#rpView .rp-g2 .rp-t{position:relative}
#rpView .rp-g2 .rp-t > #rpStart.ui-play{position:absolute!important;left:2px;right:2px;top:2px;bottom:50px;z-index:2;width:auto!important;max-width:none!important;height:auto!important;margin:0!important;padding:24px 0 0!important;border:0!important;border-radius:20px 20px 0 0!important;background:rgba(0,0,0,.32)!important;color:#fff!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;font:inherit;font-size:14px!important;font-weight:800;text-shadow:0 1px 4px rgba(0,0,0,.5);cursor:pointer;-webkit-tap-highlight-color:transparent}
#rpView #rpStart.ui-play .pl{width:32px;height:32px;border-radius:50%;background:var(--rp-acc);color:var(--rp-on);display:grid;place-items:center;box-shadow:0 3px 10px rgba(0,0,0,.28);text-shadow:none}   /* v16.0 (메인, 사용자가 고른 B): 52에서 32로 작게. 사진 전체가 버튼이라 누르는 칸은 그대로예요 */
html[data-theme="light"] #rpView #rpStart.ui-play .pl{background:#3d5afe;color:#fff}
#rpView #rpStart.ui-play .pl svg{width:13px;height:13px;margin-left:2px}
#rpView #rpStart.ui-play:active .pl{transform:scale(.94)}
#rpDetail.ui-h1 .rp-cap{display:grid!important;grid-template-columns:84px 1fr;column-gap:14px;align-items:center;padding:14px!important}
#rpDetail.ui-h1 .rp-th{grid-row:1/5;width:84px;height:84px;border-radius:16px;object-fit:cover;box-shadow:0 4px 12px rgba(0,0,0,.18)}
#rpDetail.ui-h1 .rp-cap>*:not(.rp-th):not(.rp-gl){grid-column:2}
#rpDetail.ui-h1 .rp-badge{justify-self:start}
#rpDetail.ui-h1 .nm{font-size:20px!important;margin:4px 0 2px}
#rpDetail.ui-h1 .rp-goal{display:none!important}
#rpDetail.ui-h1 .rp-gl{grid-column:1/3;display:flex;gap:8px;align-items:center;margin-top:12px;padding:10px 12px;border-radius:12px;background:rgba(61,90,254,.08);font-size:13.5px;font-weight:600;line-height:1.35;color:var(--t-ink,#1d1d1f)}
html[data-theme="dark"] #rpDetail.ui-h1 .rp-gl{background:rgba(227,182,92,.12);color:#f3f3f5}
#rpDetail.ui-h1 .rp-gl i{flex:none;font-style:normal;font-size:11.5px;font-weight:800;padding:3px 8px;border-radius:99px;background:var(--rp-acc);color:var(--rp-on)}
html[data-theme="light"] #rpDetail.ui-h1 .rp-gl i{background:#3d5afe;color:#fff}
#rpView .rp-g2 .rp-t #rpStart.ui-play .pt{display:block!important;color:#fff!important;font-size:13px!important;font-weight:800!important;letter-spacing:-.01em;line-height:1.2;text-shadow:0 1px 4px rgba(0,0,0,.55)}
#rpView .rp-g2 .rp-t #rpStart.ui-play .pl{flex:none}
html[data-theme="light"] #rpView .rp-g2 .rp-t #rpStart.ui-play .pl{background:#3d5afe!important;color:#fff!important}
/* 사진 칸이 낮은 작은 화면: 재생 버튼만 작게 (글자는 숨겨요) */
#rpView .rp-g2 .rp-t > #rpStart.ui-play.sm{padding:0!important;gap:0}
#rpView .rp-g2 .rp-t #rpStart.ui-play.sm .pt{display:none!important}
#rpView .rp-g2 .rp-t #rpStart.ui-play.sm .pl{width:28px;height:28px}
#rpView .rp-g2 .rp-t #rpStart.ui-play.sm .pl svg{width:11px;height:11px}
/* 키가 작은 화면: 위 설명 카드를 작게 (사진 56px, 목표 칩은 숨겨요. 예전에도 이 높이에서는 목표를 숨겼어요) */
@media (max-height:700px){
  #rpDetail.ui-h1 .rp-cap{grid-template-columns:56px 1fr;padding:10px 12px!important}
  #rpDetail.ui-h1 .rp-th{width:56px;height:56px;border-radius:12px}
  #rpDetail.ui-h1 .nm{font-size:18px!important;margin:2px 0 0}
  #rpDetail.ui-h1 .rp-gl{display:none!important}
}
html[data-theme="dark"] #rpView .rp-g2 .rp-t #rpStart.ui-play .pl{background:#e3b65c!important;color:#111!important}   /* 다크: 골드 동그라미에 검은 세모 (다른 골드 버튼과 같아요) */
/* v14.8 위 설명 카드 높이 고정 (사용자 요청): 장면마다 목표가 한 줄 / 두 줄이라 카드 높이가 바뀌며 화면이 움직였어요.
   목표 칩은 늘 두 줄 높이 (짧으면 가운데), 길면 두 줄에서 말줄임. 이름 / 상대도 한 줄로 고정 */
#rpDetail.ui-h1 .rp-gl{height:58px;box-sizing:border-box;padding-top:0!important;padding-bottom:0!important}
#rpDetail.ui-h1 .rp-gl span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#rpDetail.ui-h1 .nm,#rpDetail.ui-h1 .rp-who{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
/* 위 설명 카드는 처음 그릴 때부터 같은 높이 (꾸미기 전후로 아래 목록 칸이 바뀌면 목록이 한 줄 밀려요) */
#rpView #rpDetail.rp-info{height:200px!important;box-sizing:border-box;overflow:hidden}
@media (max-height:700px){#rpView #rpDetail.rp-info{height:105px!important}}
/* v14.8 작은 화면 (카드 높이 150px 아래, js/06 uiRpFit): 시작하기 글자는 숨기고 작은 재생 버튼만. 라이트 / 다크 같은 기준이에요 */
#rpView .rp-g2 .rp-t > #rpStart.ui-play.sm{flex-direction:row;gap:0}
#rpView .rp-g2 .rp-t #rpStart.ui-play.sm .pt{display:none!important}

/* ---------- v14.8 다크 상황극 카드도 라이트와 같은 모양 (사용자 요청) ----------
   v15.2 유리 카드(level.css, 사진이 카드 전체 + 글자는 사진 위 유리 칸) 대신 위는 사진, 아래는 글자 칸. 색만 다크예요. */
html[data-theme="dark"] body #rpView .rp-g2 .rp-t{background:#1c1c21!important;box-shadow:0 0 0 1px rgba(255,255,255,.08)!important}
html[data-theme="dark"] body #rpView .rp-g2 .rp-t[aria-pressed="true"]{box-shadow:none!important}
html[data-theme="dark"] body #rpView .rp-g2 .rp-t img{position:static!important;inset:auto!important;width:100%!important;height:auto!important}
html[data-theme="dark"] body #rpView .rp-g2 .rp-tx{position:static!important;left:auto;right:auto;bottom:auto;border-radius:0;padding:8px 11px 10px!important;background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important}
html[data-theme="dark"] body #rpView .rp-g2 .rp-t:not([aria-pressed="true"]) .rp-tx span{color:rgba(255,255,255,.6)!important}
html[data-theme="dark"] body #rpView .rp-g2 .rp-t[aria-pressed="true"] .rp-tx span{color:#e3b65c!important}
@media (max-height:700px){html[data-theme="dark"] body #rpView .rp-g2 .rp-tx{padding:6px 10px 8px!important}}
/* v14.8 다크 글자 칸: 그 장면 사진 색이 흐릿하게 비쳐요 (사용자가 고른 T2). --ph는 js/06 uiRpDecor가 카드마다 넣어요 */
html[data-theme="dark"] body #rpView .rp-g2 .rp-t{background:#141418!important}
html[data-theme="dark"] body #rpView .rp-g2 .rp-tx{position:relative!important;overflow:hidden;z-index:0}
html[data-theme="dark"] body #rpView .rp-g2 .rp-tx::before{content:"";position:absolute;inset:-20px;z-index:-1;background:var(--ph) center bottom/cover;filter:blur(18px) brightness(.55) saturate(1.2);transform:scaleY(-1);pointer-events:none}

/* ---------- v14.8 기록 탭 구분 잘 보이게 (사용자가 고른 A) ----------
   위 탭 (리포트 / 실수 / 오답 노트 / 지난 대화): 회색 바탕 한 줄 안에서 고른 탭만 흰 칸 (다크는 골드에 검은 글씨).
   오답노트 분류 (전체 / 발음 / 문법 / 표현): 고르지 않은 것도 칩 바탕, 고른 것은 파랑 (다크 골드).
   카드 안: 내가 말한 것 연한 빨강 / 옳은 답변 연한 초록 / 설명 회색 칸. 다크는 카드와 칸을 한 단계씩 밝게 (사용자: 너무 어두워 구분이 안 돼요) */
html body #side .sd-tabs{display:flex!important;gap:4px!important;padding:4px!important;border-radius:14px!important;background:#e2e6ee!important;border:0!important;margin:8px 16px 12px!important;box-shadow:none!important}
html body #side .sd-tabs button{flex:1;min-width:0;height:38px!important;border-radius:11px!important;border:0!important;border-bottom:0!important;background:transparent!important;color:#5b6170!important;font-size:14.5px!important;font-weight:700!important;box-shadow:none!important;margin:0!important;padding:0!important;white-space:nowrap}
html body #side .sd-tabs button[aria-selected="true"]{background:#fff!important;color:#1d1d1f!important;font-weight:800!important;box-shadow:0 1px 4px rgba(20,30,60,.12)!important}
html[data-theme="dark"] body #side .sd-tabs{background:#25272e!important}
html[data-theme="dark"] body #side .sd-tabs button{color:#b9bcc5!important}
html[data-theme="dark"] body #side .sd-tabs button[aria-selected="true"],html[data-theme="dark"] body #side .sd-tabs button[aria-selected="true"] *{background:#e3b65c!important;color:#111!important;-webkit-text-fill-color:#111}
html body #notes .on-seg{display:flex!important;gap:8px!important;background:none!important;padding:0!important;border:0!important;margin-bottom:12px!important}
html body #notes .on-seg button{flex:1;height:38px!important;border-radius:99px!important;background:#fff!important;color:#3b4252!important;font-weight:700!important;box-shadow:inset 0 0 0 1px #d6dbe5!important;border:0!important}
html body #notes .on-seg button[aria-selected="true"]{background:#3d5afe!important;color:#fff!important;box-shadow:none!important}
html[data-theme="dark"] body #notes .on-seg button{background:#2a2c33!important;color:#e2e4ea!important;box-shadow:inset 0 0 0 1px #3a3d46!important}
html[data-theme="dark"] body #notes .on-seg button[aria-selected="true"]{background:#e3b65c!important;color:#111!important;box-shadow:none!important}
#side .on-c .wn-me,#side .on-c .wn-ok{padding:9px 11px;border-radius:12px;margin:4px 0 8px}
#side .on-c .wn-me{background:#fff4f4}#side .on-c .wn-ok{background:#effaf2}
#side .on-c .wn-sec{background:#f4f6fa;border-radius:12px;padding:10px 12px;margin-top:6px;border:0!important}
/* 다크: 카드 #23252b + 테두리, 안쪽 칸 #2f3239, 글씨 밝게 */
html[data-theme="dark"] body #side .on-c,html[data-theme="dark"] body #side .hd-c,html[data-theme="dark"] body #side .cal,html[data-theme="dark"] body #side .sd-card,html[data-theme="dark"] body #side .rp-card{background:#23252b!important;box-shadow:0 0 0 1px rgba(255,255,255,.10)!important}
html[data-theme="dark"] body #side .on-c .wn-me{background:rgba(255,99,104,.16)}
html[data-theme="dark"] body #side .on-c .wn-ok{background:rgba(52,211,113,.15)}
html[data-theme="dark"] body #side .on-c .wn-sec{background:#2f3239}
html[data-theme="dark"] body #side .on-c .wn-me,html[data-theme="dark"] body #side .on-c .wn-ok,html[data-theme="dark"] body #side .on-c .wn-sec p,html[data-theme="dark"] body #side .on-c .wn-words dd{color:#f1f2f5!important}
html[data-theme="dark"] body #side .on-c .wn-lb.me{color:#ff8a8e!important}
html[data-theme="dark"] body #side .on-c .wn-lb.ok{color:#5be08e!important}
html[data-theme="dark"] body #side .on-c .wn-h{color:#f0c46a!important}
html[data-theme="dark"] body #side .on-c .on-d,html[data-theme="dark"] body #side .on-c .on-lab{color:#a9adb7!important}
html[data-theme="dark"] body #side .hd-st{background:#2f3239!important}
html[data-theme="dark"] body #side .hd-st span{color:#b9bcc5!important}

/* v14.8 다크 기록 카드 한 단계 더 밝게 (사용자 요청) */
html[data-theme="dark"] body #side .on-c,html[data-theme="dark"] body #side .hd-c,html[data-theme="dark"] body #side .cal,html[data-theme="dark"] body #side .sd-card,html[data-theme="dark"] body #side .rp-card{background:#2c2e35!important;box-shadow:0 0 0 1px rgba(255,255,255,.12)!important}
html[data-theme="dark"] body #side .on-c .wn-me{background:rgba(255,99,104,.22)!important}
html[data-theme="dark"] body #side .on-c .wn-ok{background:rgba(52,211,113,.20)!important}
html[data-theme="dark"] body #side .on-c .wn-sec{background:#3a3d46!important}
html[data-theme="dark"] body #side .hd-st{background:#3a3d46!important}
html[data-theme="dark"] body #side .sd-tabs{background:#2c2e35!important}
html[data-theme="dark"] body #notes .on-seg button:not([aria-selected="true"]){background:#33363e!important}
/* v14.8 복습하기 / 챌린지 마이크: 듣는 중 / 말하는 중을 마이크 상태(js/06 uiMicSync)로 바로 표시해요. 3번 말하기에서도 빠지지 않게 */
html[data-theme] #ttFlow .tt-micbox.ui-on .tt-mbig{background:#e5484d!important;box-shadow:0 0 0 0 rgba(215,0,21,.45);animation:micpulse 1.6s ease-out infinite!important}   /* v25.7: 그림자에 !important 없이 (위 설명) */
html[data-theme="dark"] #ttFlow .tt-micbox.ui-on .tt-mbig{background:#d70015!important}
html[data-theme] #ttFlow .tt-micbox.ui-talk .tt-mbig,html[data-theme] #chalSheet .compose.ui-talk #chMic{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] #ttFlow .tt-micbox.ui-on .tt-mbig,html[data-theme] #ttFlow .tt-micbox.ui-talk .tt-mbig,html[data-theme] #chalSheet .compose.ui-talk #chMic{animation:none!important}}

/* ---------- 마이크 허용 안내 (담당 1, 승인 시안 B 가운데 카드 / D 막혔을 때 시트) ---------- */
.ui-mic{--m-acc:#3d5afe;--m-on:#fff;--m-tint:rgba(61,90,254,.1);--m-card:#fff;--m-sub:#f2f4f6;--m-ink:#1d1d1f;--m-mu:#7a7f88;--m-line:#e5e8eb;--m-dim:rgba(10,14,30,.45);
  position:fixed;inset:0;z-index:10060;font-family:var(--f-body,"Pretendard Variable",system-ui,sans-serif);color:var(--m-ink);word-break:keep-all;letter-spacing:-.01em}
html[data-theme="dark"] .ui-mic{--m-acc:var(--b-gold,#e3b65c);--m-on:#111;--m-tint:rgba(227,182,92,.14);--m-card:#1c1d21;--m-sub:#26272c;--m-ink:#f2f2f4;--m-mu:#8d8f97;--m-line:#2e3036;--m-dim:rgba(0,0,0,.62)}
.ui-mic *{box-sizing:border-box}
.ui-mdim{position:absolute;inset:0;background:var(--m-dim);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;transition:opacity .22s}
.ui-mic.on .ui-mdim{opacity:1}
.ui-mic h2{margin:0;font-size:23px;font-weight:800;letter-spacing:-.035em;line-height:1.35;color:var(--m-ink)}
.ui-mic p{margin:8px 0 0;font-size:15px;font-weight:500;line-height:1.5;color:var(--m-mu)}
.ui-mic p.bad{color:#f04452;font-weight:700}
.ui-mgo{display:block;width:100%;height:56px;margin-top:4px;border:0;border-radius:16px;background:var(--m-acc);color:#fff;font:800 17px var(--f-body,"Pretendard Variable",system-ui,sans-serif)}
.ui-mgo:disabled{opacity:.6}
.ui-msub{display:block;width:100%;height:46px;border:0;background:transparent;color:var(--m-mu);font:700 15px var(--f-body,"Pretendard Variable",system-ui,sans-serif)}
.ui-mic button{cursor:pointer;-webkit-tap-highlight-color:transparent}
.ui-mic button:active{transform:scale(.98)}
/* B */
.ui-mcard{position:absolute;left:22px;right:22px;top:50%;max-width:420px;margin:0 auto;background:var(--m-card);border-radius:28px;padding:30px 22px 12px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.25);
  transform:translateY(-46%) scale(.96);opacity:0;transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .22s}
.ui-mic.on .ui-mcard{transform:translateY(-50%);opacity:1}
.ui-mring{position:relative;width:120px;height:120px;margin:0 auto 20px;display:grid;place-items:center}
.ui-mring span{position:absolute;inset:0;border-radius:50%;background:var(--m-tint);animation:uiMr 2s ease-in-out infinite}
.ui-mring span:nth-child(2){inset:16px;animation-delay:-1s}
@keyframes uiMr{50%{transform:scale(.92)}}
.ui-mring b{position:relative;width:64px;height:64px;border-radius:50%;background:var(--m-acc);color:var(--m-on);display:grid;place-items:center;box-shadow:0 10px 24px rgba(61,90,254,.3)}
html[data-theme="dark"] .ui-mring b{box-shadow:0 10px 24px rgba(227,182,92,.25)}
.ui-mring svg{width:28px;height:28px;stroke:currentColor}
.ui-msteps{margin:18px 0 16px;display:flex;justify-content:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--m-mu)}
.ui-msteps span{padding:6px 10px;border-radius:999px;background:var(--m-sub)}
.ui-msteps span.on{background:var(--m-tint);color:var(--m-acc)}
/* D */
.ui-msheet{position:absolute;left:0;right:0;bottom:0;max-width:560px;margin:0 auto;background:var(--m-card);border-radius:28px 28px 0 0;padding:12px 22px calc(env(safe-area-inset-bottom,0px) + 18px);text-align:center;box-shadow:0 -10px 40px rgba(0,0,0,.18);
  transform:translateY(100%);transition:transform .32s cubic-bezier(.2,.8,.2,1);max-height:100%;overflow-y:auto}
.ui-mic.on .ui-msheet{transform:none}
.ui-msheet.shake{animation:uiMs .35s}
@keyframes uiMs{20%,60%{translate:-6px 0}40%,80%{translate:6px 0}}
.ui-mgrab{width:40px;height:5px;border-radius:3px;background:var(--m-line);margin:0 auto 18px}
.ui-mwarn{position:relative;width:56px;height:56px;border-radius:18px;margin:4px auto 14px;background:rgba(240,68,82,.12);color:#f04452;display:grid;place-items:center}
.ui-mwarn svg{width:26px;height:26px;stroke:currentColor}
.ui-mwarn::after{content:"";position:absolute;width:34px;height:2.5px;border-radius:2px;background:#f04452;transform:rotate(-45deg)}
.ui-mgs{margin:18px 0 16px;display:flex;flex-direction:column;gap:8px;text-align:left}
.ui-mg{display:flex;align-items:center;gap:12px;background:var(--m-sub);border-radius:16px;padding:12px 14px}
.ui-mg .n{width:26px;height:26px;flex:0 0 auto;border-radius:50%;background:var(--m-acc);color:var(--m-on);display:grid;place-items:center;font:800 13px var(--f-en,Montserrat,sans-serif)}
.ui-mg .t{flex:1 1 auto;min-width:0}
.ui-mg b{display:block;font-size:14.5px;font-weight:700;color:var(--m-ink)}
.ui-mg .t span{display:block;margin-top:2px;font-size:12.5px;color:var(--m-mu)}
.ui-mg .u{flex:0 0 auto;font-size:12px;font-weight:700;padding:6px 9px;border-radius:9px;background:var(--m-card);border:1px solid var(--m-line);color:var(--m-ink)}
@media (max-height:700px){.ui-mring{width:96px;height:96px;margin-bottom:14px}.ui-mring b{width:54px;height:54px}.ui-mic h2{font-size:21px}.ui-mgs{margin:12px 0 10px;gap:6px}.ui-mg{padding:9px 12px}.ui-mwarn{width:48px;height:48px;margin-bottom:10px}.ui-mgrab{margin-bottom:12px}}
@media (prefers-reduced-motion:reduce){.ui-mring span{animation:none}.ui-mcard,.ui-msheet{transition:none}}
html[data-theme="dark"] body .ui-mic .ui-mgo{background:var(--m-acc)!important;color:#fff!important;border:0!important;box-shadow:none!important;height:56px!important;border-radius:16px!important}   /* the old dark button style is kept off */
html[data-theme="dark"] body .ui-mic .ui-msub{background:transparent!important;color:var(--m-mu)!important;border:0!important;box-shadow:none!important;height:46px!important}
/* v20.3~v20.4 마이크 꺼짐 (사용자 결정, 메인이 고침): 시트 닫기 X / 막혀 있으면 대화 화면 마이크 버튼이 음소거 모양 (js/06 uiMicBarSync) */
.ui-msheet .ui-mclose{position:absolute;top:14px;right:14px;width:34px;height:34px;border:0;border-radius:50%;background:var(--m-sub);color:var(--m-mu);display:grid;place-items:center;padding:0;z-index:1}
html body #micBtn.ui-moff{opacity:.42!important}
#micBtn.ui-moff::after{content:"";position:absolute;left:50%;top:50%;width:58%;height:3px;border-radius:2px;background:#f04452;transform:translate(-50%,-50%) rotate(-45deg);pointer-events:none}

/* ---------- 설정 화면 고정 (사용자 제보: 아이폰에서 설정이 위아래 / 좌우로 흔들려요) ----------
   루틴 알림 2줄이 생긴 뒤로 설정 내용이 화면보다 길어져서 안쪽이 스크롤돼요. 아이폰은 이때 안쪽이 좌우로도 밀리고, 끝에서 튕기거나
   뒤 화면까지 같이 끌려와요. 안쪽은 위아래로만 움직이고 튕기지 않게, 머리줄과 바깥은 손가락에 끌려오지 않게 막아요 */
#settings{overscroll-behavior:none;touch-action:none}
#settings .set-body{overflow-x:hidden!important;overflow-y:auto;overscroll-behavior:none!important;touch-action:pan-y}
#settings .set-row select,#settings .set-row input{touch-action:manipulation}
#settings .set-row select,#settings #themeSel,#settings #level,#settings #ntTime{font-size:16px!important}   /* under 16px the iPhone zooms the page in when it is tapped */

/* ---------- 상황극 미션 팝업 (A)과 사진 아래 목표 띠 (D) (사용자 승인 시안) ---------- */
.ui-mx{--m-acc:#3d5afe;--m-on:#fff;--m-tint:rgba(61,90,254,.1);--m-card:#fff;--m-sub:#f2f4f6;--m-ink:#1d1d1f;--m-mu:#7a7f88;--m-dim:rgba(236,239,245,.78);
  position:fixed;inset:0;z-index:10050;font-family:var(--f-body,"Pretendard Variable",system-ui,sans-serif);color:var(--m-ink);word-break:keep-all;letter-spacing:-.01em}
html[data-theme="dark"] .ui-mx{--m-acc:var(--b-gold,#e3b65c);--m-on:#111;--m-tint:rgba(227,182,92,.15);--m-card:#1c1d21;--m-sub:#26272c;--m-ink:#f2f2f4;--m-mu:#8d8f97;--m-dim:rgba(40,41,46,.62)}
.ui-mxdim{position:absolute;inset:0;background:var(--m-dim);-webkit-backdrop-filter:blur(26px) saturate(1.1);backdrop-filter:blur(26px) saturate(1.1);opacity:0;transition:opacity .2s}
.ui-mx.on .ui-mxdim{opacity:1}
.ui-mxc{position:absolute;left:20px;right:20px;top:50%;max-width:440px;margin:0 auto;max-height:calc(100% - 32px);overflow-y:auto;background:var(--m-card);border-radius:26px;box-shadow:0 20px 50px rgba(0,0,0,.3);
  transform:translateY(-46%) scale(.97);opacity:0;transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .2s}
.ui-mx.on .ui-mxc{transform:translateY(-50%);opacity:1}
.ui-mxph{position:relative;height:140px;background:var(--m-sub) center 60%/cover no-repeat;border-radius:26px 26px 0 0}
.ui-mxph::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,0) 40%,var(--m-card));border-radius:inherit}
.ui-mxwho{position:absolute;left:16px;bottom:10px;z-index:2;font-size:12px;font-weight:800;color:#fff;background:rgba(0,0,0,.45);padding:5px 10px;border-radius:999px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.ui-mxbd{padding:6px 20px 18px}
.ui-mxk{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:800;color:var(--m-acc)}
.ui-mxk i{font-style:normal;font:800 11px var(--f-en,Montserrat,sans-serif);letter-spacing:.04em;padding:3px 7px;border-radius:6px;background:var(--m-tint)}
.ui-mx h3{margin:8px 0 0;font-size:22px;font-weight:800;letter-spacing:-.035em;line-height:1.3;color:var(--m-ink)}
.ui-mxtips{margin-top:14px;display:flex;flex-direction:column;gap:7px}
.ui-mxtip{display:flex;gap:10px;align-items:flex-start;background:var(--m-sub);border-radius:13px;padding:10px 12px;font-size:14px;font-weight:600;line-height:1.4}
.ui-mxtip b{flex:0 0 auto;width:20px;height:20px;margin-top:1px;border-radius:50%;background:var(--m-acc);color:var(--m-on);display:grid;place-items:center;font:800 11px var(--f-en,Montserrat,sans-serif)}
.ui-mxtip small{display:block;margin-top:2px;font:600 13px var(--f-en,Montserrat,sans-serif);color:var(--m-mu)}
.ui-mx .ui-mxgo{display:block;width:100%;height:54px;margin-top:16px;border:0;border-radius:16px;background:var(--m-acc);color:#fff;font:800 17px var(--f-body,"Pretendard Variable",system-ui,sans-serif);cursor:pointer}
html[data-theme="dark"] body .ui-mx .ui-mxgo{background:var(--m-acc)!important;color:#fff!important;border:0!important;height:54px!important;border-radius:16px!important;box-shadow:none!important}
@media (max-height:600px){.ui-mxph{height:104px}.ui-mx h3{font-size:20px}.ui-mxtip{padding:8px 11px;font-size:13.5px}.ui-mxtips{margin-top:10px;gap:6px}.ui-mx .ui-mxgo{height:48px;margin-top:12px}}
@media (prefers-reduced-motion:reduce){.ui-mxc{transition:none}}
/* D: the goal band on the bottom of the partner photo; the big Coach Sam goal box and the name tag step aside */
body.ui-mxrp #log>.coach.role:first-child{display:none}
body.ui-mxrp #juliaTile .tags{visibility:hidden}
.ui-goal{position:absolute;z-index:6;display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;border:0;border-radius:0 0 18px 18px;background:rgba(0,0,0,.5);color:#fff;font:800 13.5px var(--f-body,"Pretendard Variable",system-ui,sans-serif);text-align:left;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);cursor:pointer;box-sizing:border-box}
.ui-goal[hidden]{display:none}
.ui-goal svg{width:15px;height:15px;flex:0 0 auto;stroke:#fff}
.ui-goal .t{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ui-goal .m{flex:0 0 auto;font-size:12px;font-weight:700;opacity:.85}
html[data-theme="dark"] body .ui-goal{background:rgba(0,0,0,.55)!important;color:#fff!important;border:0!important;height:36px!important;border-radius:0 0 18px 18px!important;box-shadow:none!important}

/* 담당 5 (사용자 요청 10-12): 라이트 홈 10분 루틴 시작하기 버튼은 루틴 탭 스몰톡 카드와 같은 네이비 그라데이션 (A안). 다크 골드와 완료 버튼은 그대로 */
html[data-theme="light"] body #homeView #hvHero .hero.c-go:not(.done){background:linear-gradient(145deg,#2b3f72 0%,#1b2a4e 52%,#111a33 100%)!important;color:#fff!important;box-shadow:0 10px 26px rgba(17,26,51,.32)!important}

/* ---------- v18 학습 탭 타일 사진 자리 (js/06): 사진을 받는 동안 회색 칸 대신 은은한 반짝임, 받으면 부드럽게 나타나요 ---------- */
#talkView .ls-tile.ui-wait{background-image:linear-gradient(110deg,var(--t-card2,#eceef2) 30%,rgba(255,255,255,.55) 50%,var(--t-card2,#eceef2) 70%)!important;background-size:250% 100%!important;animation:uiShim 1.3s linear infinite}
html[data-theme="dark"] #talkView .ls-tile.ui-wait{background-image:linear-gradient(110deg,#1f2025 30%,#2c2e35 50%,#1f2025 70%)!important}
#talkView .ls-tile.ui-in{animation:uiTileIn .35s ease both}
@keyframes uiShim{from{background-position:120% 0}to{background-position:-20% 0}}
@keyframes uiTileIn{from{filter:brightness(1.12) saturate(.7)}}
@media (prefers-reduced-motion:reduce){#talkView .ls-tile.ui-wait{animation:none}#talkView .ls-tile.ui-in{animation:none}}

/* ---------- v18 기록 탭 리포트 (js/06 uiRx, 사용자 승인 시안 C + G1) ---------- */
.ui-rxp>#calCard,.ui-rxp>#weekCard,.ui-rxp>#weekly{display:none!important}
.ui-rx,.ui-rx-shw{--a:var(--t-blue);--td:#3d5afe;--ok:#1f9254;--okT:#dcf3e5;--no:#e5484d;--noT:#fdecec}
html[data-theme="dark"] .ui-rx,html[data-theme="dark"] .ui-rx-shw{--a:#e3b65c;--td:#e3b65c;--ok:#5fd39a;--okT:rgba(76,195,138,.2);--no:#ff6b6b;--noT:rgba(229,72,77,.18)}
.ui-rx-c{background:var(--t-card);border-radius:20px;padding:16px;box-shadow:0 0 0 1px var(--t-line);margin:0 0 10px}
.ui-rx-hd{display:flex;align-items:center;gap:12px}
.ui-rx-av{flex:none;width:44px;height:44px;border-radius:50%;background:#e9eefc url(../assets/images/chloe-cutout.webp) no-repeat 50% 23%/185% auto}
html[data-theme="dark"] .ui-rx-av{background-color:#2a2c33}
.ui-rx-hd small{display:block;font-size:12px;font-weight:700;color:var(--t-mu)}
.ui-rx-hd b{display:block;margin-top:2px;font-size:16px;font-weight:800;line-height:1.4;letter-spacing:-.02em;color:var(--t-ink);word-break:keep-all}
.ui-rx-sec{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 12px}
.ui-rx-st{display:flex;align-items:center;gap:10px;min-width:0}
.ui-rx-st>b{font-size:14px;font-weight:800;color:var(--t-ink);white-space:nowrap}
.ui-rx-lg{display:flex;gap:8px;white-space:nowrap}
.ui-rx-lg>span{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:700;color:var(--t-mu)}
.ui-rx-lg i{width:8px;height:8px;border-radius:50%;background:var(--ok)}.ui-rx-lg .no i{background:var(--no)}
html[data-theme] body .ui-rx .ui-rx-calb{display:flex;align-items:center;gap:1px;flex:none;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;height:auto!important;min-height:0!important;width:auto!important;font-family:inherit;font-size:12.5px!important;font-weight:800!important;color:var(--a)!important;white-space:nowrap}
.ui-rx-calb svg{width:14px;height:14px}
.ui-rx-d{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.ui-rx-d>span{height:54px;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:12px;font-weight:800;background:var(--t-card2);color:var(--t-mu);white-space:nowrap}
.ui-rx-d>span small{font-family:var(--f-en);font-size:10px;font-weight:700;opacity:.85}
.ui-rx-d>span i{width:5px;height:5px;border-radius:50%;margin-top:3px;background:transparent}
.ui-rx-d .ok{background:var(--okT);color:var(--ok)}.ui-rx-d .ok i{background:var(--ok)}
.ui-rx-d .no{background:var(--noT);color:var(--no)}.ui-rx-d .no i{background:var(--no)}
.ui-rx-d .td{background:transparent;box-shadow:inset 0 0 0 2px var(--td);color:var(--td)}
.ui-rx-ln{height:1px;background:var(--t-line);margin:14px 0}
.ui-rx-k3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}   /* v18: 세 칸 같은 폭 (사용자 승인 EQ4) */
.ui-rx-k3>div{min-width:0;padding:0 8px;border-left:1px solid var(--t-line)}.ui-rx-k3>div:first-child{padding-left:0;border-left:0}
.ui-rx-k3 span{display:block;font-size:11.5px;font-weight:700;color:var(--t-mu);white-space:nowrap}
.ui-rx-nv{display:flex;align-items:baseline;gap:4px;margin-top:4px;white-space:nowrap}
.ui-rx-nv b{font-family:var(--f-en);font-size:18px;font-weight:800;color:var(--t-ink);letter-spacing:-.02em}
.ui-rx-nv b small{font-family:var(--f-body);font-size:11px;font-weight:700;margin-left:1px;color:var(--t-mu)}
.ui-rx-nv em{font-style:normal;font-size:10.5px;font-weight:800}
.ui-rx-nv .up{color:var(--t-green)}.ui-rx-nv .dn{color:var(--t-red)}
.ui-rx-k3 p{margin:4px 0 0;font-size:9px;font-weight:700;color:var(--t-mu);white-space:nowrap;letter-spacing:-.03em}
.ui-rx-row{display:flex;gap:10px}.ui-rx-row+.ui-rx-row{margin-top:14px}
.ui-rx-tag{flex:none;align-self:flex-start;font-size:11px;font-weight:800;padding:3px 8px;border-radius:999px;white-space:nowrap}
.ui-rx-row.g .ui-rx-tag{background:var(--t-greenT);color:var(--t-green)}.ui-rx-row.b .ui-rx-tag{background:var(--t-yelT);color:var(--t-yel)}
.ui-rx-row>div{min-width:0;flex:1}
.ui-rx-row b{display:block;font-size:14px;font-weight:800;color:var(--t-ink);line-height:1.4;word-break:keep-all}
.ui-rx-row b small{font-size:12px;font-weight:700;color:var(--t-mu);margin-left:4px}
.ui-rx-ex{margin-top:4px;font-size:13.5px;font-weight:600;line-height:1.45;color:var(--t-ink2);overflow-wrap:anywhere}
.ui-rx-ex s{color:var(--t-mu)}.ui-rx-ex u{text-decoration:none;color:var(--t-green);font-weight:800}
@media (max-width:359px){.ui-rx-lg>span{font-size:11px}.ui-rx-st{gap:6px}.ui-rx-nv b{font-size:16px}.ui-rx-k3>div{padding:0 6px}}
/* 이번 달 달력 팝업: 예전 달력 (#calCard)을 그대로 옮겨 담아요 */
.ui-rx-dim{position:fixed;inset:0;z-index:100000;background:rgba(10,14,30,.45);animation:uiRxF .2s ease both}
html[data-theme="dark"] .ui-rx-dim{background:rgba(0,0,0,.6)}
.ui-rx-sh{position:fixed;left:0;right:0;bottom:0;z-index:100001;max-height:92%;overflow:auto;overscroll-behavior:contain;background:var(--t-bg);border-radius:24px 24px 0 0;padding:10px 12px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(0,0,0,.2);animation:uiRxUp .28s cubic-bezier(.2,.9,.3,1) both}
.ui-rx-gr{width:38px;height:4px;border-radius:2px;background:var(--t-line2);margin:0 auto 8px}
.ui-rx-tp{display:flex;align-items:center;justify-content:space-between;padding:2px 6px 6px}
.ui-rx-tp b{font-size:16px;font-weight:800;color:var(--t-ink)}
html[data-theme] body .ui-rx-tp button{width:32px!important;height:32px!important;min-width:0!important;padding:0!important;border-radius:50%!important;border:0!important;display:grid;place-items:center;background:var(--t-card)!important;color:var(--t-ink)!important;box-shadow:0 0 0 1px var(--t-line)!important}
.ui-rx-tp button svg{width:16px;height:16px}
.ui-rx-sh #calCard{margin:0;gap:10px;padding:14px}
.ui-rx-sh .cd{padding:0 0 3px!important;gap:2px!important}.ui-rx-sh .cd .num{width:30px;height:30px;font-size:13.5px}.ui-rx-sh .cd i{width:5px;height:5px}
.ui-rx-sh .cal-sum>div{padding:8px 10px}.ui-rx-sh .cal-sum b{font-size:19px}
.ui-rx-sh .cal-g{row-gap:0}
.ui-rx-sh .cd.ok i,.ui-rx-sh .cal-lg i.ok,.ui-rx-sh .cal-det.ok i{background:var(--ok)!important}
html[data-theme="dark"] .ui-rx-sh .cd.today .num{background:#e3b65c!important;color:#111!important}
html[data-theme="dark"] .ui-rx-sh .cd.sel:not(.today) .num{box-shadow:inset 0 0 0 2px #e3b65c!important}
html[data-theme="dark"] .ui-rx-sh .cal-lg i.today{background:#e3b65c!important}
@media (max-height:600px){.ui-rx-sh{padding-top:6px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.ui-rx-gr{margin-bottom:4px}.ui-rx-tp{padding:0 6px 4px}.ui-rx-sh #calCard{gap:7px;padding:10px 12px}.ui-rx-sh .cal-sum>div{padding:6px 9px}.ui-rx-sh .cal-sum b{font-size:16px}.ui-rx-sh .cd .num{width:27px;height:27px;font-size:13px}.ui-rx-sh .cd{padding:0 0 2px!important}.ui-rx-sh .cal-det{padding:8px 12px}.ui-rx-sh .cal-det span{font-size:11.5px;line-height:1.35}.ui-rx-sh .cal-det b{font-size:13px}.ui-rx-sh .cal-lg{font-size:11.5px}}
.ui-rx-sh .cal-sum .ui-rx-bst{margin-left:5px;font-style:normal;font-size:11px;font-weight:800;letter-spacing:0;color:var(--ok)}   /* v18: 연속 학습 옆 최고 기록 */
@keyframes uiRxF{from{opacity:0}}
@keyframes uiRxUp{from{transform:translateY(100%)}}
@media (prefers-reduced-motion:reduce){.ui-rx-dim,.ui-rx-sh{animation:none}}

/* ---------- v18 좁은 폰 (사용자 요청: 최근 5년 갤럭시 / 아이폰 모두 맞게, tests/d1-devices.js) ----------
   380 미만 (갤럭시 S21~S26 / 플립 / 폴드 바깥 화면): 루틴 탭 제목이 TALK 배지와 겹치지 않게 글씨를 줄여요.
   350 미만 (폴드3~6 바깥 화면): 홈 이번 주 루틴 제목은 한 줄, 목표 문구는 끊는 자리에서 두 줄, 루틴 카드의 시간 칩은 제목 옆 */
.hw-goal span{display:inline-block;white-space:nowrap}
@media (max-width:379px){html body #ttLearn .rt-h{font-size:24px;white-space:nowrap}}
@media (max-width:349px){html body #ttLearn .rt-h{font-size:20px}
 html body .hw-top{font-size:17px!important;white-space:nowrap}
 html body .hw-goal{font-size:12.5px!important;line-height:1.35}
 html body #ttLearn .rt-tt{flex-wrap:nowrap}
 html body #ttLearn .rt-tt b{font-size:15.5px;white-space:nowrap}
 html body #ttLearn .rt-d{font-size:12.5px}}
/* v18 지난 대화 총 학습 시간 칸 (0시간 00분): 다른 칸보다 조금 넓게, 좁은 폰에서는 글씨를 줄여 칸 안에 들어가요 */
.hd-sts:has(.hd-tot.h){grid-template-columns:1.35fr 1fr 1fr 1fr}   /* 1시간이 넘을 때만 첫 칸을 넓혀요, 1시간 미만은 네 칸 같은 폭 */
.hd-st.hd-tot:not(.h) b{font-size:19px;letter-spacing:-.02em}
.hd-st.hd-tot b{font-size:17px;letter-spacing:-.04em}
.hd-st.hd-tot b small{font-size:11px}
@media (max-width:379px){.hd-st.hd-tot b{font-size:15px}.hd-st.hd-tot b small{font-size:10px}.hd-sts:has(.hd-tot){gap:6px}}
/* v18 (사용자 요청): 지난 대화 네 칸의 숫자 줄 높이를 같게 해서, 아래 이름 (총 학습 시간 / 말한 횟수 / 오답 / 발음)이 같은 높이에 와요 */
.hd-sts .hd-st b{display:block;text-align:center;height:22px;line-height:22px}
@media (max-width:349px){.hd-sts:has(.hd-tot){grid-template-columns:1.3fr 1fr 1fr 1fr}}   /* 폴드 바깥 화면: 총 학습 시간 이름이 칸에 들어가게 첫 칸만 조금 넓게 */
/* ---------- 해석 보기 (사용자 결정 목업 E1) ---------- */
/* 말풍선 아래 작은 해석 글자, 누르면 같은 자리에 한국어. ⋯ 메뉴 버튼은 숨겨요 */
html[data-theme] body.ui-ko1 #moreBtn,html[data-theme] body.ui-ko1 #moreMenu{display:none!important}
body.ui-ko1 .row.julia.ui-ko .bubble,body.ui-ko1 .row.julia.ui-ko .ko-line{cursor:pointer;-webkit-tap-highlight-color:transparent}
body.ui-ko1 .row.julia.ui-ko:not(.ui-ko-open) .ko-line{opacity:.85}
/* ---------- 스크롤 위 가장자리 (사용자 결정 시안 A) ---------- */
/* 스크롤 중인 칸의 윗부분 28px 을 투명하게 흐려요. js/06 이 맨 위가 아닐 때만 ui-sct 를 붙여요 */
.ui-sct{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 28px);mask-image:linear-gradient(to bottom,transparent 0,#000 28px)}
/* ---------- 다크 모드 색 톤 (사용자 결정: 리포트 톤으로 맞춰요) ---------- */
/* 기록: 카드는 리포트와 같은 짙은 카드 + 얇은 테두리, 안쪽 칸은 한 단계 밝은 회색, 강조는 골드. 빨강 / 초록은 글자와 왼쪽 줄에만 */
html[data-theme="dark"] body #side .sd-card,html[data-theme="dark"] body #side .cal,html[data-theme="dark"] body #side .on-c,html[data-theme="dark"] body #side .hd-c{background:#1c1d21!important;box-shadow:0 0 0 1px #2e3036!important;border:0!important;border-radius:20px!important}
html[data-theme="dark"] body #side .sd-card:has(.notes),html[data-theme="dark"] body #side .sd-card:has(.hist){background:transparent!important;box-shadow:none!important}
html[data-theme="dark"] body #side .mi-sum .good,html[data-theme="dark"] body #side .hd-st,html[data-theme="dark"] body #side .on-c .wn-sec{background:#24262c!important}
html[data-theme="dark"] body #side .mi-rk{background:rgba(227,182,92,.14)!important;color:#e3b65c!important}
html[data-theme="dark"] body #side .pat .bar{background:#2a2c33!important}
html[data-theme="dark"] body #side .pat .bar>*{background:#e3b65c!important}
html[data-theme="dark"] body #side .sd-primary{background:#e3b65c!important;color:#141414!important}
html[data-theme="dark"] body #side .on-c .wn-me{background:#24262c!important;box-shadow:inset 3px 0 0 #ff6b6b}
html[data-theme="dark"] body #side .on-c .wn-ok{background:#24262c!important;box-shadow:inset 3px 0 0 #5fd39a}
html[data-theme="dark"] body #side .hd-rel{background:rgba(227,182,92,.14)!important;color:#e3b65c!important}
/* 학습 탭: 추천 카드 (다음에 할 카드)는 골드 그대로, 나머지 카드와 클로이 카드만 리포트 톤 */
html[data-theme="dark"] body #talkView .lh .lh-b:not(.lh-rec):not(.done):not(.ls-off){background-color:#1c1d21!important;border:0!important;box-shadow:0 0 0 1px #2e3036!important}   /* 메인 v22.1 합치기: 추천 카드는 담당 2 의 lh-rec (첫 카드가 아닐 수 있어요) */
html[data-theme="dark"] body #talkView .ls-chloe{background:#1c1d21!important;box-shadow:0 0 0 1px #2e3036!important}
/* 학습 탭 다크 추천 카드 (사용자 결정 시안 A): 골드 테두리와 은은한 빛을 더해 다른 카드와 잘 구분돼요 */
html[data-theme="dark"] body #talkView .lh .lh-b.lh-rec:not(.done):not(.ls-off){outline:2px solid #e3b65c!important;outline-offset:0;filter:drop-shadow(0 8px 18px rgba(227,182,92,.2))}
/* ---------- 학습 탭 추천 카드 (사용자 결정: 다크는 시안 A 골드 테두리, 두 테마 모두 빛줄기가 지나가요) ---------- */
html[data-theme="dark"] body #talkView .lh .lh-b.lh-rec:not(.done):not(.ls-off){outline:2px solid #e3b65c!important;outline-offset:0;filter:drop-shadow(0 8px 18px rgba(227,182,92,.2))}
/* 추천 카드 위로 얇은 빛줄기가 2.4초마다 한 번 지나가요 (사용자 결정 시안 3). 빛줄기 칸 (.ui-recsh)은 js/06 이 넣어요 */
@keyframes uiRecSweep{0%{transform:translateX(-120%) skewX(-18deg)}55%,100%{transform:translateX(320%) skewX(-18deg)}}
body.ui-recmove #talkView .lh .lh-b.lh-rec:not(.done):not(.ls-off){position:relative;overflow:hidden}
#talkView .lh .ui-recsh{display:none}
body.ui-recmove #talkView .lh .lh-b.lh-rec:not(.done):not(.ls-off) .ui-recsh{display:block;position:absolute;top:0;bottom:0;left:0;width:35%;z-index:3;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.38),transparent);animation:uiRecSweep 2.4s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){body.ui-recmove #talkView .lh .ui-recsh{display:none!important}}
/* ---------- 성장 별 배지 (사용자 결정) ---------- */
/* 홈 위 배지: 차오르는 링 안에 별과 숫자를 가운데로 (시안 C, 별이 두 자리면 js/06 이 ui-xp2 를 붙여 글자를 조금 작게). 링 밖 숫자는 빼요.
   작은 폰에서 포인트 숫자가 숨으면 배지는 톱니바퀴와 같은 동그라미예요. js/14 / css/xp.css 는 담당 2 파일이라 여기서 모양만 덮어요 */
html body #homeView .xp-pill{gap:8px!important;padding-left:4px!important}
html body #homeView .xp-pill .xp-ring{width:38px!important;height:38px!important}
html body #homeView .xp-pill .xp-ring i{width:30px!important;height:30px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:1px}
html body #homeView .xp-pill .xp-ring i svg{display:block!important;width:9px!important;height:9px!important;flex:none}
html body #homeView .xp-pill .xp-ring i u{display:block!important;text-decoration:none;font:900 12px/1 Montserrat,sans-serif;letter-spacing:-.3px;color:var(--xtx)}
html body #homeView .xp-pill .xp-ring i.ui-xp2 u{font-size:10.5px;letter-spacing:-.5px}
html body #homeView .xp-pill .xp-ring i.ui-xp2 svg{width:8px!important;height:8px!important}
html body #homeView .xp-pill>b{display:none!important}
html body #homeView .xp-pill.xp-s1,html body #homeView .xp-pill.xp-s2{padding:0!important;justify-content:center!important;aspect-ratio:1/1}
html body #homeView .xp-pill.xp-s1 small,html body #homeView .xp-pill.xp-s2 small{display:none!important}
/* 설정 프로필 카드의 다음 별 배지: 점선을 촘촘하게 (시안 1). 메인 v22.6: SVG 속성 안 calc() 는 아이폰 Safari 가 못 읽을 수 있어서 같은 모양을 calc 없이 그려요 (테두리 바깥 반은 잘려서 2px) */
html body .xp-to{border:0!important;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27100%25%27%20height%3D%27100%25%27%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20rx%3D%2712%27%20ry%3D%2712%27%20fill%3D%27none%27%20stroke%3D%27%233d5afe%27%20stroke-width%3D%274%27%20stroke-dasharray%3D%273.5%202.5%27/%3E%3C/svg%3E") no-repeat;background-size:100% 100%}
html[data-theme="dark"] body .xp-to{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27100%25%27%20height%3D%27100%25%27%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20rx%3D%2712%27%20ry%3D%2712%27%20fill%3D%27none%27%20stroke%3D%27%23f2c14e%27%20stroke-width%3D%274%27%20stroke-dasharray%3D%273.5%202.5%27/%3E%3C/svg%3E")}
/* ---------- 리포트 이번 주 합계 줄 (사용자 결정 A 수정: 날짜 없이 굵게) ---------- */
/* 요일 칸 아래 구분선 가운데에 이번 주 합계. 아래 숫자 3개가 오늘이 아니라 이번 주를 합친 값이라는 걸 보여 줘요 */
.ui-rx-ln.ui-rx-sum{height:auto;background:none;display:flex;align-items:center;gap:10px;margin:14px 0 12px;font-size:12.5px;font-weight:900;line-height:1.2;color:var(--t-ink,#14161c);white-space:nowrap}
.ui-rx-ln.ui-rx-sum::before,.ui-rx-ln.ui-rx-sum::after{content:"";flex:1;height:1px;background:var(--t-line)}
html[data-theme="dark"] .ui-rx-ln.ui-rx-sum{color:#f2f2f4}
@media (max-height:600px){.ui-rx-ln.ui-rx-sum{margin:6px 0 4px;font-size:12px}}   /* 아이폰 SE 처럼 키가 작은 화면: 늘어나는 높이를 줄여요 */
