/* ─────────────────────────────────────────────────────────────────────────────
   구지(집사) 대화 스테이지 — 게임(비주얼노벨) 대사창 템플릿. 여러 화면 공용.
     레이아웃(세로 3단): 상단 레터박스 → 무대(구지 + 선택적 모달) → 하단 대사창
     · 구지는 무대 왼쪽 "바닥"에 서 있다 = 대사창 바로 위 → 가운데 대사와 절대 겹치지 않는다.
     · 대사창 = 왼쪽 이름표(액자) + 좌측정렬 대사 + 좌우 넘기기 화살표(◀ 구지 아래 · ▶ 대사 오른쪽 공백).
   쓰는 법: butler-stage.js 의 DuhdiButler.open({...}). turtle.js 가 먼저 로드돼 있어야 한다.
   ───────────────────────────────────────────────────────────────────────────── */
/* ★ 구지 위치·크기 손잡이 — 여기 셋만 만지면 된다(JS 는 --bst-size 를 읽어 mount 하므로 px 를 두 곳에 안 박는다).
     --bst-size : 구지 크기(폭). 높이는 리그 비율(엔진 GEOM.AR → --guji-ar)로 자동
     --bst-x    : 화면 왼쪽에서 얼마나 띄울지 (음수 = 그만큼 화면 밖으로 잘려 나간다)
     --bst-y    : 대사창 위에서 얼마나 띄울지 (키우면 위로 / 음수면 대사창에 파묻힌다) */

@font-face {
    font-family: 'JeonnamEducationBarun';
    src: url('/butler/vendor/webfonts/noonnu/JNE-Bareun-TTF-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'JeonnamEducationBarun';
    src: url('/butler/vendor/webfonts/noonnu/JNE-Bareun-TTF-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
/* ★ 무대의 '금색 두 톤'과 '화살촉' = 이 셋이 정본. 2026-08-27 .bst → :root 로 올렸다.
     이유: 무대 밖 부품도 같은 얼굴을 써야 한다 — 튜토리얼 말풍선(butler-coach.css)이 첫 손님이다.
     (그 전엔 .bst 안에서만 살아서, 무대 밖에서 var(--bst-frame) 을 쓰면 빈 값이 됐다.)
     --bst-frame / --bst-frame-d : 옅은 금색 2톤. 녹색(--brand)은 포인트로만.
       여기 둘만 바꾸면 프레임·기둥·화살표·선택지·말풍선이 한 번에 따라간다.
     --bst-head : 화살촉 정본 — 왼쪽은 세로로 자르고 가운데를 파낸 화살표(대표님 첨부 이미지).
       선택지 화살표(.bst-sarr) · 대사 넘기기(.bst-nav) · 닫기(.bst-vnx-tri) · 코치 [다음]이 이 한 줄을 같이 쓴다.
       비율로 쓰므로 크기는 각자 width/height 로만 정한다(모양이 안 어긋난다). */
:root{ --bst-frame:#c8b183; --bst-frame-d:#8d7a52;
  --bst-head:polygon(0 0, 100% 50%, 0 100%, 0 68%, 54% 50%, 0 32%); }

.bst{ --bst-size:min(56vw, 320px); --bst-x:calc(var(--bst-size) * -.144);   /* 11/22 「점점 구지가 왼쪽으로 가려지는 뷰」 — -46px 고정은 폭 320 기준이라 작은 구지(창 뜬 무대 95~122px)는 절반 가까이 잘렸다 → 폭의 14.4%(320 일 때 -46 그대로) */   /* 구지 위치·크기 손잡이 */
  /* ⭐ 다리는 대사창 뒤로 — **초록 몸통 아래 끝 = 대사창 윗선**(대표님 2026-10-08 캡처의 초록 선).
       실측(2026-10-08): 예전 -45px 고정이면 몸통 끝과 윗선 사이가 크기 400 에서 66px · 202 에서 12px 떴다 = 크기에 비례.
       그래서 크기에 비례해 내린다. 크기를 바꿔도 같은 선에서 잘린다. */
  --bst-y:calc(-2px - var(--bst-size) * .27);
  /* ⭐ 모달이 쓸 구역 = **화면 최상단부터 대사창 위까지**(대표님 2026-09-06 · 참조 그림의 파란 선).
       ⚠⚠ 여백은 구역 **바깥**이 아니라 스크롤러(.bst-body) **안쪽**에 준다(대표님 2026-09-06):
         "대화창과 메모지 사이 여백 없애고, 스크롤러 자체 위아래에 패딩을 배치해 —
          그래야 스크롤이 이 공간 안에서 되는 느낌이지."
         바깥 여백으로 주면 굴릴 때 종이가 허공에서 끊긴다. 안쪽에 주면 여백째 굴러간다.
       ⚠ 띠는 흐름에서 빠져(absolute) 구역을 안 깎는다 — 종이는 띠를 절반까지 올라탄다.
       ⚠ 안전영역(상태바)만 구역 바깥에 남긴다 — 그건 여백이 아니라 **못 쓰는 자리**다. */
  --bst-toph:8vh;
  --bst-pad:calc(var(--bst-toph) / 2);
  --bst-mtop:var(--sa-top, env(safe-area-inset-top, 0px));
  position:fixed; inset:0; z-index:200; display:flex; flex-direction:column;
  /* 슬라이드가 화면 끝까지 펼쳐질 때(.glsl 100vw) 데스크톱 스크롤바 폭만큼 넘치는 것을 여기서 감춘다.
     무대는 화면을 덮는 고정 레이어라 감춰도 잃는 것이 없다(2026-09-25). */
  overflow-x:hidden;   /* 100vw 슬라이드 */
  /* ⚠ overflow-x:hidden 이라 세로는 auto 가 된다 — 안쪽이 넘치면 **무대 뿌리에 스크롤바 자리(10px)가 선다**.
       덮개(.bst-dim)는 그 자리를 빼고 깔려 화면 오른쪽에 뒤 화면이 선명한 띠로 보였다
       (대표님 10/19 「상점 모달 우측이 비어 뒷배경이 보인다」 · 1536·1920 에서 도장판 상세가 1.18~1.36배로 커져 넘친 때).
       굴림은 판 안쪽 상자가 맡는다 — 뿌리는 굴러도 막대를 그리지 않는다. */
  scrollbar-width:none;
  /* ⚠ 여기에 페이드를 걸지 않는다(2026-09-02). animation-fill-mode:both 라 **끝난 뒤에도 남아**
     이 요소가 backdrop root 가 되고, 그러면 아래 .bst-dim 의 backdrop-filter 가 볼 '뒤'가 사라진다
     = 무대 뒤가 어두워지기만 하고 **흐려지지 않았다**(픽셀 실측: 배경 글자 선명도 4722 → 2351,
     걷어내면 4722 → 172). 페이드는 딤이 스스로 한다.
   ⚠ overscroll-behavior:none — 무대 안에서 끝까지 굴려도 그 힘이 뒤 화면으로 넘어가지 않는다. */
  overscroll-behavior:none; }
/* 무대 뒤 화면을 어둡게 + 흐리게. ⚠ 닫기 트리거 아님(팝업은 버튼으로만 닫는다)
   blur 값은 모달 딤(.covl, app-calendar.css)과 같은 5px — 둘이 달라지면 화면 전환에서 티가 난다. */
.bst-dim{ position:absolute; inset:0; background:rgba(0,0,0,.5);
  -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px);
  touch-action:none;   /* 딤을 끌어도 뒤 화면이 안 움직인다(대표님 2026-09-02) */
  animation:bst-dim-in .44s ease both; }   /* 조명 켜기 — 서서히 어두워지고 흐려진다 */

/* 상단 레터박스 — 아래 대사창(검정)과 짝을 이뤄 시네마틱 프레임을 만든다 */
.bst-top{ position:absolute; left:0; right:0; top:0; z-index:1; height:var(--bst-toph); min-height:34px;
  background:#000; padding-top:var(--sa-top, env(safe-area-inset-top, 0px));
  /* 조명 켜기(대표님 2026-09-02): 부품을 화면 밖에서 밀어 넣지 않고 **제자리에서 밝힌다**.
     차례가 곧 연출이다 — 딤(0) → 위 띠(.18) → 대사창(.24) → 구지(.30) → 이름표(.52) → 대사(.60). */
  animation:bst-fade .34s ease .18s both; }

/* 선택지 = 사용자가 지금 할 수 있는 행동(참조: 오른쪽에 쌓인 대사 선택 버튼).
   구지 대사에 "대답"하는 자리 — 오른쪽 정렬로 쌓아 구지(왼쪽)와 마주 보게 둔다.
   st.choices([{label, onClick}]) 로 세우고, choices(null) 이면 사라진다. */
/* bottom = 16px(대표님 2026-10-24 「선택지 아래 여백은 지금 상태로 전체 공용으로」). 예전 52px 은 대사창 위(top:-40px)에 떠 있던
   닫기 X 를 피하던 값이었는데, 닫기는 이제 대사창 안 오른쪽 아래(.bst-vnx · right:0 bottom:0)라 그 자리가 비어 있었다. 대화 모드는 14px. */
.bst-choices{ position:absolute; right:10px; bottom:16px; z-index:3;
  display:flex; flex-direction:column; align-items:flex-end; gap:6px;
  max-width:min(80%, 330px); }
.bst-choices:empty{ display:none; }
.bst-choice{ max-width:100%; padding:7px 14px; text-align:right;
  background:#17140f; border:1px solid var(--bst-frame-d); border-left:3px solid var(--bst-frame);
  color:#fff; font-size:16px; font-weight:600; line-height:1.4; cursor:pointer;
  box-shadow:0 4px 14px rgba(0,0,0,.45);
  /* 선택지는 **대사가 다 나온 뒤에** 선다 — --bst-cd(첫 칸 시각)는 JS 가 대사 줄 수를 보고 심는다.
     못 심었을 때의 기본값 .78s = 대사 한 줄짜리 기준. 칸 사이는 .07s(아래 nth-child). */
  animation:bst-zoom-r .3s cubic-bezier(.2,.9,.3,1.1) both;
  animation-delay:calc(var(--bst-cd, .78s) + var(--ci, 0) * .07s); }
.bst-choice:hover, .bst-choice:focus-visible{ background:#241f16; border-left-color:var(--brand,#63bc99); outline:none; }
.bst-choice:active{ transform:translateY(1px); }
/* 앞으로 가는 대답 = **지금 색의 반전**(대표님 2026-08-26): 금색 판 + 왼쪽 검정 기둥.
   물러나는 대답(닫기·뒤로·지우기 …)은 위의 기본값 그대로 검정 판 + 금색 기둥이다.
   어느 쪽인지는 butler-stage.js 의 toneOf() 가 말(label)로 가린다 — 목록은 거기 한 곳에만 둔다.
   ⚠ hover 는 기본 hover 보다 셀렉터가 하나 더 무거워야 이긴다(.bst-choice.bst-pos:hover). */
/* ⛔ 2026-08-26: 여기에 도금 그라디언트(결·안쪽 흰 실선·글자 흰 그림자)를 넣었다가 되돌렸다 —
      대표님 "이상해". 무대의 다른 금색(이름표·화살촉·프레임)이 전부 단색 --bst-frame 이라
      선택지만 번쩍이면 그 하나가 튄다. 금색은 단색으로 두고, 강조는 **색 반전**으로만 한다. */
/* 아이콘은 **글자 앞**(대표님 2026-08-27). 글자보다 조금 작게 두고 광학 중심을 맞춰 내린다.
   ⚠ 판 폭은 안 건드린다 — 320px 화면에서도 가장 긴 대답이 164px 라 22px 이 더 들어갈 자리가 있다(실측). */
.bst-ic{ font-size:.94em; line-height:1; margin-right:6px; vertical-align:-1px; opacity:.3; }
/* 적어서 추가·직접 묻기 — **네모 안에 큰 가, 작은 나**(대표님 2026-08-27).
   ⚠ 아이콘 글꼴엔 한글이 없다 — 앱 글꼴로 직접 그린다(테두리 한 겹 + 두 글자).
   ⚠ 색은 글자색을 따라간다(currentColor) — 금색 판에서도 검정 판에서도 같이 산다. */
.bst-ic.ic-han{ display:inline-block; position:relative; box-sizing:border-box;
  width:1.05em; height:1.05em; border:1px solid currentColor; border-radius:2px;
  font-style:normal; font-weight:700; vertical-align:-2px; }
.bst-ic.ic-han::before{ content:"가"; position:absolute; left:.06em; top:0; font-size:.62em; line-height:1.05; }
.bst-ic.ic-han::after{ content:"나"; position:absolute; right:.06em; bottom:.02em; font-size:.44em; line-height:1.05; }
.bst-choice.bst-pos{ background:var(--bst-frame); border-color:var(--bst-frame-d);
  border-left-color:#17140f; color:#17140f; }
.bst-choice.bst-pos:hover, .bst-choice.bst-pos:focus-visible{ background:#dcc79f; border-left-color:#000; }
/* 값 고르는 칸(.bst-step)에는 tone 클래스를 아예 안 붙인다(stepCell) — 설정 줄은 조용해야 한다.
   그래서 여기 따로 되돌리는 규칙을 두지 않는다(안 쓰는 규칙은 다음 사람을 헷갈리게 한다). */
/* 하나씩 밀려 들어온다(참조처럼 위에서부터 차례로) */
.bst-choice{ --ci:0 }
.bst-choice:nth-child(2){ --ci:1 } .bst-choice:nth-child(3){ --ci:2 } .bst-choice:nth-child(4){ --ci:3 }
.bst-choice:nth-child(5){ --ci:4 } .bst-choice:nth-child(6){ --ci:5 } .bst-choice:nth-child(7){ --ci:6 }

/* ★ 값을 고르는 칸 = [ 이름 ◀ 지금값 ▶ ] (대표님 2026-08-22)
     선택지 판(위 .bst-choice)을 그대로 쓰고 안만 셋으로 나눈다 — 판이 하나 더 생기는 게 아니라 같은 판이다.
     무대 모달 안에 있던 옵션 줄(간략/상세 · 명언 · 색)을 이 칸으로 빼면 모달은 '보여 주는 것'만 남는다
     = 더디패·디자인을 그만큼 크게 띄울 수 있다.
   ⚠ 판 전체는 누르는 자리가 아니다 — 누르는 건 화살표 둘과 값뿐(그래서 겉이 button 이 아니라 div 다). */
.bst-choice.bst-step{ display:flex; align-items:center; gap:10px; width:100%; box-sizing:border-box;
  padding:5px 12px 5px 14px; text-align:left; cursor:default; }
.bst-choice.bst-step:hover{ background:#17140f; border-left-color:var(--bst-frame); }   /* 판은 안 눌리니 밝아지지도 않는다 */
.bst-choice.bst-step:active{ transform:none; }
/* min-width 둘 = 줄 맞추기. 이름('색'과 '내용')이 같은 자리를 차지해야 화살표가 세로로 줄 서고,
   값 칸에 바닥 폭을 주어야 값이 짧아졌다 길어졌다 할 때 판이 좌우로 들썩이지 않는다. */
.bst-slbl{ flex:0 0 auto; min-width:2.6em; font-size:13px; font-weight:700; letter-spacing:.02em; color:rgba(255,255,255,.6); }
.bst-sval{ flex:1 1 auto; min-width:4.6em; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:3px 2px; color:#fff; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.bst-sval:focus-visible{ outline:1px solid var(--bst-frame); outline-offset:2px; }
/* 화살표(선택지) = 아래 .bst-head 화살촉과 같은 모양. 손가락 히트영역은 ::after 로 넓힌다(이모지 금지). */
.bst-sarr{ position:relative; flex:0 0 13px; width:13px; height:17px; padding:0; border:0; background:none; cursor:pointer; }
.bst-sarr::before{ content:""; position:absolute; inset:0; background:var(--bst-frame); clip-path:var(--bst-head); }
.bst-sarr::after{ content:""; position:absolute; left:50%; top:50%; width:36px; height:36px; transform:translate(-50%,-50%); }
.bst-sarr.p::before{ transform:scaleX(-1); }
.bst-sarr:hover::before, .bst-sarr:focus-visible::before{ background:#fff; }
.bst-sarr:focus-visible{ outline:none; }

/* 무대 = 구지가 서는 곳 + 선택지.
   ★ 이 영역(상단 띠 ~ 대사창 사이)이 앞으로 "집사가 지금 무엇을 하고 있는지 / 사용자가 무엇을 할 수 있는지"를
     보여 주는 모달 자리다. 지금은 마이크 듣는 중 상태만 대사로 말하지만,
     앞으로 진행 상황·결과·확인 요청 같은 본 동작 UI 가 여기(.bst-modal)에 뜬다.
     → st.body(...) 를 주면 이 자리에 모달이 선다. body 를 안 주면 무대는 비어 있고 구지 연출만 남는다. */
.bst-stage{ position:relative; z-index:1; flex:1; min-height:0; }

/* 무대 배경 사진(로그인/온보딩 프로세스) — st.scene({bg,...}). 가독 위해 위·아래 어둡게 덮는다. */
.bst-scene .bst-stage{ background-size:cover; background-position:center; background-repeat:no-repeat; }
.bst-scene .bst-stage::before{ content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(15,12,8,.42), rgba(15,12,8,.14) 38%, rgba(15,12,8,.5)); }
/* 로그인/온보딩: 상단 검정 레터박스를 키워 그 안에 타이틀을 앉힌다(대표님).
   ⚠ 장면 무대는 띠 **안에 글이 들어간다** — 흐름에서 빼면 그 글이 무대 내용과 겹친다. 여기선 되돌린다. */
.bst-scene .bst-top{ position:relative; min-height:clamp(94px,17vh,150px); display:flex; flex-direction:column;
  align-items:center; justify-content:center; }
.bst-scene-head{ text-align:center; pointer-events:none; padding:2px 16px; animation:bst-fade .6s ease both; }
/* "더디집사" — 고풍스러운 금색 그라데이션 + 어두운 외곽선(명조 bold). */
.bst-scene-ttl{ font-family:'Nanum Myeongjo','Batang',serif; font-weight:800; font-size:clamp(30px,8.4vw,44px);
  letter-spacing:.09em; line-height:1.06;
  background:linear-gradient(176deg,#fbf3d6 0%,#ecce8a 40%,#c99b45 70%,#eccd88 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
  -webkit-text-stroke:.6px rgba(58,40,12,.55);
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
/* "모두에게 집사를" — surf2 컬러(연한 오프화이트). */
.bst-scene-sub{ font-family:'Nanum Myeongjo','Batang',serif; font-weight:400; font-size:clamp(12px,3.4vw,15px);
  letter-spacing:.17em; color:var(--surf2,#f6f6f6); opacity:.94; margin-top:7px; text-shadow:0 1px 8px rgba(0,0,0,.55); }

/* 구지 — 왼쪽 아래, 대사창 위에 선다. 위치·크기는 위 .bst 의 --bst-* 만 만진다. */
.bst-npc{ position:absolute; left:var(--bst-x); bottom:var(--bst-y); z-index:1; pointer-events:none;
  transform-origin:left bottom;
  animation:bst-zoom-up .46s cubic-bezier(.2,.9,.3,1.06) .3s both; }   /* 0.93배에서 제 크기로 */
.bst-gu{ position:relative; width:var(--bst-size); height:calc(var(--bst-size) * var(--guji-ar, 1.125)); }
.bst-gu > *{ position:absolute; left:0; bottom:0; }

/* 하단 대사창 = 아래 레터박스 겸용. 테두리를 두른 게임 대사 프레임(참조: 이름표 왼쪽 · 텍스트 좌측정렬).
   min-height = 대사가 한 줄이어도 높이가 안 줄어든다(줄 수가 바뀔 때마다 창이 들썩이지 않게). */
/* 디테일(프레임·이름표·화살표) = 옅은 금색. 녹색(--brand)은 포인트로만 쓴다(이름표 글자 등). */
.bst-vn{ --bst-frame:#c8b183; --bst-frame-d:#8d7a52;   /* 옅은 금색 / 그 그늘 — 두 톤이라야 금속 느낌이 난다 */
  position:relative; z-index:2; flex:0 0 auto; min-height:120px;
  background:#0b0b0b; color:#fff; text-align:left;
  border-top:2px solid var(--bst-frame);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(200,177,131,.14);  /* 금색 헤어라인 */
  padding:26px 24px max(12px, var(--sa-bottom, env(safe-area-inset-bottom, 0px)));   /* 위 20 → 26: 명찰(이름표) 아래와 첫 줄 사이(대표님 2026-09-14 밤) */
  animation:bst-fade .34s ease .24s both; }
    
.bst-plate{ position:absolute; left:40px; top:-15px; display:inline-block; padding:4px 14px 6px;font-family: 'JeonnamEducationBarun';
  background:#0b0b0b; border:3px solid var(--bst-frame); border-radius:2px;
  box-shadow:0 0 0 1px var(--bst-frame-d), inset 0 0 0 1px rgba(200,177,131,.28);   /* 금색 이중 테두리 */
  color:var(--bst-frame); font-size:14px; font-weight:bold; letter-spacing:.04em; white-space:nowrap;
  animation:bst-plate-glow .7s ease .52s both; }   /* 조명 켜기 — 금색 빛이 한 번 지나간다 */
/* [◀][대사][▶] — 화살표는 위아래가 아니라 좌우.
     ◀ = 구지 아래(대사창 왼쪽 칸) · ▶ = 대사 오른쪽 남는 공백. 칸은 항상 자리를 잡아 두어
     화살표가 켜지고 꺼져도 대사가 좌우로 흔들리지 않는다.
   ⚠ 대사는 flex:1 + min-width:0 이라야 한다. grid 1fr(=minmax(auto,1fr))로 두면 여유폭 계산이 어긋날 때
      칸이 min-content(한 글자)까지 찌그러져 글자가 세로로 한 자씩 쪼개진다. */
/* ⭐ 닫기는 **줄 안에 끼지 않는다**(대표님 2026-08-31). 예전엔 [◀][대사][▶][닫기] 로 한 줄에 나란히 놓여
     닫기가 가로폭을 통째로 먹었다 — 폭이 좁은 폰일수록 글이 설 자리가 줄었다.
     이제 대사줄 **오른쪽 아래에 붙박고**(absolute), 글은 그 자리만큼 **아래 여백을 미리 빼 둔다**.
   ⚠ ▶(다음)은 위쪽으로 올린다(align-self:flex-start) — 안 그러면 붙박은 닫기와 같은 자리에서 겹친다. */
/* ⚠ 닫기 자리는 **글 상자 안이 아니라 줄 바깥**이어야 한다(2026-08-31 실측으로 잡은 것).
     처음엔 .bst-say 에 padding-bottom 을 줬는데, 그건 스크롤되는 안쪽이라 **마지막 줄만** 비켜났다 —
     가운데 줄들은 그대로 닫기 밑으로 지나가 글자와 단추가 겹쳐 보였다.
     줄(.bst-row)에 아래 여백을 주면 글 상자 자체가 그만큼 짧아져 어느 줄도 그 아래로 못 간다. */
/* ⚠ 닫기 아래 여백은 **말상자의 padding-bottom**(안전영역)이 정한다 — 그건 못 줄인다(제스처 바에 겹친다).
     그래서 **위 여백을 그 값에 맞춘다**. 줄의 아래 패딩 = 닫기 높이(34) + 그 여백.
     그러면 닫기 글자의 위·아래가 같아 보인다(대표님 2026-09-01 실측: 위 0 / 아래 12 이었다). */
.bst-row{ position:relative; display:flex; align-items:center; gap:10px; min-height:60px;
  --bst-x-h:34px; --bst-x-gap:max(12px, var(--sa-bottom, env(safe-area-inset-bottom, 0px)));
  padding-bottom:calc(var(--bst-x-h) + var(--bst-x-gap)); }
.bst-say{ flex:1 1 auto; min-width:0; margin:0; font-size:20px; font-weight:300; line-height:1.4; color:#fff;   /* 1.55 → 1.4(대표님 2026-09-14 밤 "줄간격 더 줄여") */
  white-space:pre-line; overflow-wrap:anywhere; word-break:keep-all; overflow-y:auto; -webkit-overflow-scrolling:touch;
  /* ⭐ 일곱 줄까지 펴고 그 뒤로는 스크롤한다(대표님 2026-09-02 "7줄로 늘려 조금 더 보여도 되겠다").
       예전 40vh 는 폰(892)에서 357px = **열한 줄**이라, 브리핑이 길어지면 대사창이 화면 절반을 먹고
       구지가 밀려 올라갔다. 줄 수로 못 박으면 글이 길어져도 창 높이가 안 변한다.
     ⚠ min() 은 아주 낮은 화면(가로 모드)에서의 안전선이다 — 그땐 46vh 가 이긴다.
     ⚠ overscroll-behavior:contain — 끝까지 굴려도 그 힘이 뒤 화면으로 넘어가지 않는다. */
  max-height:min(calc(7 * 1.4em), 46vh); overscroll-behavior:contain; }
/* ⭐ 대사는 **언제나 왼쪽**이다(대표님 2026-09-02 "절대로 좌측 정렬").
     가운데로 선 판이 가끔 나왔는데, 무대 CSS·JS 어디에도 가운데로 두는 규칙이 없다 —
     바깥 어느 화면의 text-align 이 흘러들어온 것으로 본다. 물려받지 않게 여기서 못 박는다.
   ⚠ !important 는 쓰지 않는다(전역 잠금은 클릭마다 문서를 다시 재게 만든다) —
     상속보다 **명시**가 이기므로 이걸로 족하다. */
.bst-vn, .bst-row, .bst-say, .bst-say .bsay-l{ text-align:left; }
/* ⭐⭐ **여기가 "가끔 중앙정렬"의 진짜 자리였다**(2026-09-02 캡쳐로 잡음).
     일정·할 일 이름은 눌러야 하니 <button> 으로 그리는데, 버튼은 text-align 을 **물려받지 않는다**
     (브라우저 기본 스타일이 center 를 준다). 이름이 짧아 한 줄이면 티가 안 나고,
     "기후산업국제박람회 성남시 통합관 참가기업 사전 간담회"처럼 **두 줄로 접힐 때만** 가운데로 섰다.
     그래서 어떤 날은 멀쩡하고 어떤 날은 가운데로 보였다. */
.bst-say button{ text-align:left; }
/* 스크롤바 = 무대의 금색 두 톤. ⚠ 표준 속성(scrollbar-*)은 크롬 121+ 에서 ::-webkit-scrollbar 를
   통째로 무시하므로 그쪽을 모르는 브라우저(파이어폭스)에만 준다 — 모달 스크롤바와 같은 까닭. */
.bst-say::-webkit-scrollbar{ width:6px; }
.bst-say::-webkit-scrollbar-track{ background:transparent; }
.bst-say::-webkit-scrollbar-thumb{ background:var(--bst-frame-d); border-radius:6px; }
.bst-say::-webkit-scrollbar-thumb:hover{ background:var(--bst-frame); }
@supports not selector(::-webkit-scrollbar){
  .bst-say{ scrollbar-width:thin; scrollbar-color:var(--bst-frame-d) transparent; }
}
/* ⭐ 마디 사이는 **붙인다**(2026-09-02 대표님 "간격 대화처럼 좁혀").
     예전엔 .52em 을 줘서 브리핑이 성겼다 — 게다가 서버가 넣은 빈 줄에도 이 값이 앞뒤로 붙어
     문단 사이가 **10.4 + 8.4 + 10.4 = 29px** 로 세 겹이 됐다(폰 실측).
     이제 줄은 대화와 같이 딱 붙고, 문단은 아래 빈 마디 하나가 가른다. */
.bsay-l{ display:block; }
.bsay-l + .bsay-l{ margin-top:0; }
/* ⭐ 대사는 **한 줄씩** 나온다(대표님 2026-09-02). 타자기(한 글자씩)는 글자 수만큼 기다리지만
     이건 줄 수만큼만 기다린다 — 브리핑 9마디 268자 기준 2.3초 대 9.0초.
     --say-lb = 대사가 들어오는 시각(위 .bst-say 의 차례와 맞춘다) · --li = 몇 번째 마디인가(JS 가 심는다). */
.bst-say.bsay-step .bsay-l{ animation:bst-line-in .34s ease-out both;
  animation-delay:calc(var(--say-lb, .6s) + var(--li, 0) * .2s); }
/* ⚠ 이 줄은 이제 **기본값과 같다**(위에서 마디 사이를 0 으로 붙였다 — 2026-09-02 대표님 "대화처럼 좁혀").
     지우지 않고 남기는 까닭: 언젠가 기본을 다시 벌리더라도 **대화만은 좁아야** 하기 때문이다.
     그때 이 한 줄이 없으면 채팅 답이 브리핑 간격으로 다시 벌어진다(실제로 한 번 겪었다). */
.bst-say.bsay-tight .bsay-l + .bsay-l{ margin-top:0; }
/* 마디 사이에 끼운 숨은 줄바꿈 — 화면엔 없고 textContent 에만 있다(butler-stage.js 의 say() 주석 참고).
   ⚠ 이게 사이에 끼므로 say() 로 온 글에서는 `.bsay-l + .bsay-l` 이 아예 안 걸린다(=늘 좁다).
     위 bsay-tight 규칙은 그래도 남겨 둔다 — 언젠가 이 조각을 걷어도 간격이 안 벌어지게. */
.bsay-nl{ display:none; }
.bst-say.bsay-tight .bsay-l:first-child{ font-weight:300; }
.bsay-l:first-child{ font-weight:400; }                      /* 첫 줄(인사+요약)만 조금 더 진하게 — 눈이 어디부터 읽을지 안다 */
/* 빈 줄 = 문단 가름(블록·마무리). 빈 마디는 높이가 0이라 그냥 두면 사라진다 — 한 칸을 준다.
   ⭐ 마디 사이를 0 으로 붙였으므로 **문단을 가르는 일은 이 한 줄이 홀로 맡는다** → 조금 키운다(.42 → .62em).
      줄은 붙고 문단만 벌어져, 어디까지가 한 덩어리인지가 오히려 또렷해진다.
   ⚠ 마지막이 빈 줄이면 아래만 벌어지므로 그건 접는다. */
.bsay-l:empty{ display:block; height:.62em; }
.bsay-l:empty:last-child{ display:none; }
/* 서식 셋(2026-09-02 대표님) — 숫자는 굵게 · 일정은 밑줄 · 할 일은 점선 · 경고는 기울임(색 쓰지 않는다).
   ⚠ 밑줄 둘은 **누르는 것**이고 기울임은 **읽는 것**이다. 선의 결로 가른다. */
.bst-say b{ font-weight:800; }
.bst-say i.bsay-warn{ font-style:italic; }
.bsay-td{ display:inline; padding:0; border:0; background:none; cursor:pointer;
  font:inherit; color:inherit; letter-spacing:inherit;
  text-decoration:underline dotted; text-decoration-thickness:1.5px; text-underline-offset:3px; }
.bsay-td:active{ opacity:.6; }
/* 일정 이름 — 눌러서 그 일정으로 간다. 밑줄이 곧 "누를 수 있다"는 표시다. */
.bsay-ev{ display:inline; padding:0; border:0; background:none; cursor:pointer;
  font:inherit; color:inherit; letter-spacing:inherit;
  text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px;
  text-decoration-color:rgba(255,255,255,.55); }
.bsay-ev:hover, .bsay-ev:focus-visible{ text-decoration-color:#fff; outline:none; }
.bsay-ev:active{ opacity:.7; }
/* 브리핑 채팅바가 열리면 하단 대사창을 채팅바 위로 올리고, 길면 대사창 안에서 스크롤 */
:root.bcb-open .bst-row{ margin-bottom:86px; }
:root.bcb-open .bst-say{ max-height:min(calc(7 * 1.4em), 30vh); }
/* 넘기기 화살표 — 문자 대신 CSS 삼각형(이모지 금지). 기본 숨김: st.nav({prev,next}) 로 준 쪽만 켜진다. */
.bst-nav{ position:relative; flex:0 0 14px; width:14px; height:19px; padding:0; border:0; background:none;
  cursor:pointer; animation:bst-blink 1.1s steps(1,end) infinite; }
.bst-nav::before{ content:""; position:absolute; inset:0; background:var(--bst-frame); clip-path:var(--bst-head); }
.bst-nav::after{ content:""; position:absolute; left:50%; top:50%; width:38px; height:38px; transform:translate(-50%,-50%); }  /* 손가락 히트영역 */
.bst-prev::before{ transform:scaleX(-1); }
.bst-nav[hidden]{ visibility:hidden; display:block; }   /* 숨겨도 칸은 유지 → 대사 위치 고정 */

/* 무대 가운데 = 실제 동작 모달(옵션). body 를 안 주면 아예 안 뜬다 = 순수 대사 연출. */
/* ═══ 공통 모달 옷(2026-08-26 대표님) — .cmodal 네 형제와 **같은 얼굴**을 쓴다 ═══
   담는 것: 바탕 #f5f5f5 · 외곽선 3px + 지글지글 · 모서리 12px · 제목 #999 가운데 ·
            위아래 구분선 #999 · 스크롤바 #333(오른쪽 2px) · 안쪽 흰 그림자.
   ⭐ 안 담는 것 = **자리와 크기**. 무대 모달은 구지와 대사창 사이에 앉아야 한다
      (top:35% · min(92vw,420px) · max-height:calc(100% - 24px) 그대로).
      여기에 .cmodal 의 height:90dvh 를 주면 구지도 대사창도 덮는다.
   ⭐ 외곽선 그림(::before 14겹)은 app-calendar.css 의 한 벌을 **같이 쓴다** — 여기 베끼지 말 것.
   ⭐ 예외: 바탕을 일부러 없앤 모달(.dsh-bare 상점 · .dyp-modal 그림판)은 각자 제 파일에서 옷을 벗는다.
      대표님이 직접 빼라고 하신 것이라 여기서 되살리면 안 된다.
   ⚠ overflow 는 visible 이라야 한다 — hidden 이면 지글지글이 상자 밖으로 못 나간다(잘린다). */
/* ⭐ **낮은 모달은 구역 한가운데, 높은 모달은 위에 붙이고 굴린다**(대표님 2026-09-07).
     구역 = 화면 위(--bst-mtop)에서 대화창 위까지(= 무대). 그 구역의 **80% 이하**면 가운데,
     넘으면 위에 붙이고 .bst-body 를 굴린다.
     ⭐ 문턱 0.8 은 새로 만든 값이 아니다 — 안내(app-guide.js centerDay)가 이미 쓰던 그 값이다
       ("한 칸이 구역을 거의 채우면 가운데로 밀지 말고 위에 붙인다"). 규칙을 하나로 둔다.
   ⚠⚠ 가운데는 **transform 이 아니라 top 에 더한 px(--bst-mshift)** 로 만든다.
     translateY(-50%) 로 하면 등장 애니메이션(bst-zoom-top)이 transform 을 통째로 덮어써 자리가 튄다.
     그리고 재서 넣은 px 이라 **위로 넘칠 수가 없다** — 아래 옛 판이 겪은 사고가 되살아나지 않는다.
   ⚠ 밀어 내린 만큼 max-height 에서도 뺀다(안 빼면 아래로 그만큼 넘친다).
   ⭐ 아래는 그 옛 판의 기록이다 — 위를 못 박는다는 원칙은 그대로다. */
/* ⭐ 모달은 **위에서 내려 앉힌다**(대표님 2026-09-02 · --bst-mtop 이 손잡이).
     예전 top:35% + translateY(-50%) 는 가운데 정렬이라 내용이 길어질수록 **위로도** 자라
     무대 밖으로 넘쳤다(max-height 가 100%-24px 이면 위로 -15%까지 나간다).
     위를 못 박으면 넘칠 수가 없고, 남는 높이가 곧 최대 높이다. */
.bst-modal{ position:absolute; left:50%; top:calc(var(--bst-mtop) + var(--bst-mshift, 0px)); transform:translate(-50%, 0); z-index:2;
  box-sizing:border-box; width:min(92vw, 420px); display:flex; flex-direction:column;
  /* 아래로 비워 둘 양(--bst-mbot)은 JS(fitStage)가 **재서** 넣는다 — 선택지와 가로로 겹치는 자리에서만
     그 줄만큼 비운다. 안 겹치면 기본 16px 그대로라 넓은 화면은 한 줄도 손해 보지 않는다. */
  max-height:calc(100% - var(--bst-mtop) - var(--bst-mshift, 0px) - var(--bst-mbot, 0px) - var(--bst-mgapb, 0px));   /* mgapb = 넘칠 때 아래 여백(위와 같게 · 11/22) */
  background:#f5f5f5; background-clip:padding-box;
  border:3px solid transparent; border-radius:12px; overflow:visible;
  box-shadow:0 18px 50px rgba(0,0,0,.4), inset 0 0 14px 2px #fff;
  /* 종이 서식 폼의 뿌리 변수 — app-calendar.css 의 .cmodal/.bst-modal 공용 폼 규칙이 이 셋을 읽는다.
     (셀렉터를 넓혀 규칙을 같이 쓰므로 변수만 여기서 세워 주면 된다 — 규칙을 베끼지 말 것) */
  --paper:#f5f5f5; --ink2:#1a1a1a; --rule:#111;
  animation:bst-zoom-top .3s ease .44s both; }
.bst-hd{ flex:0 0 auto; display:flex; align-items:center; justify-content:center; gap:8px; padding:12px 16px 10px;
  border-bottom:1px solid #999; }
.bst-ttl{ flex:1; min-width:0; font-size:15px; font-weight:700; color:#999; text-align:center;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* 제목 아래 밑줄 탭(st.tabs · 2026-09-22 대표님) — 제목은 그대로 가운데, 탭은 그 아래 가운데.
   ⚠ 탭이 있을 때만 머리를 세로로 세운다(탭 없는 모달은 지금 모습 그대로여야 한다).
   ⚠ 밑줄(2px)과 머리 아래 선(1px)이 맞닿게 -1px — 안 그러면 선이 두 줄로 보인다. */
.bst-hd.has-tabs{ flex-direction:column; align-items:stretch; gap:0; padding-bottom:0; }
.bst-hd.has-tabs .bst-ttl{ margin-bottom:8px; }
.bst-tabs{ display:flex; gap:16px; justify-content:center; }
.bst-tab{ appearance:none; background:none; border:0; padding:6px 2px 7px; font:inherit; font-size:13px; color:#9a9a9a;
  cursor:pointer; width:fit-content; border-bottom:2px solid transparent; margin-bottom:-1px; }
.bst-tab.on{ color:var(--ink,#1a1a1a); font-weight:700; border-bottom-color:var(--ink,#1a1a1a); }
.bst-body{ flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain;
  padding:14px 16px; font-size:14px; color:var(--ink,#111); }
/* 스크롤러 **안쪽** 위·아래 자리 — 굴리면 이 여백도 같이 굴러간다(대표님 2026-09-06).
   ⚠ 어떤 갈래는 .bst-body 에 padding:0 을 준다(옷 벗은 모달들) → padding 으로 주면 지워진다.
   ⭐ 아래는 위의 **두 배**다(대표님 2026-09-06 "하단 padding bottom 만 더 늘리고") —
     위는 종이가 화면 끝에 닿아 끝이 보이지만, 아래는 대사창(검정)이 바로 붙어 있어
     같은 값이면 종이가 그 경계에 눌린 것처럼 보인다. */
.bst-body::before{ content:""; display:block; height:var(--bst-pad); }
.bst-body::after{ content:""; display:block; height:calc(var(--bst-pad) * 2); }
.bst-acts{ flex:0 0 auto; display:flex; justify-content:flex-end; gap:8px; padding:10px 12px 12px;
  border-top:1px solid #999; }
/* 스크롤바는 **안 보이게**(대표님 2026-09-06) — 무대 위 종이에 막대가 걸리면 물건이 아니라 창이 된다.
   ⚠ 굴릴 수 있다는 단서가 사라지므로, 안 보이는 것과 못 굴리는 것을 헷갈리지 않게
     넘치는 양은 자(stage_room_audit)가 값으로 남긴다.
   ⚠ 표준 속성(scrollbar-width)은 크롬 121+ 에서 ::-webkit-scrollbar 를 통째로 무시한다 → 둘 다 준다. */
.bst-modal ::-webkit-scrollbar{ width:0; height:0; }
.bst-modal, .bst-modal *{ scrollbar-width:none; }
.bst-acts:empty{ display:none; }
/* 발 버튼 = 일정 모달의 인쇄체 버튼(.cmodal .cbtn)과 같은 얼굴(2026-08-26 대표님).
   알약·초록 채움을 걷고 네모 테두리 + 채움은 '주된 것' 하나만. */
.bst-act{ height:38px; padding:0 18px; border:1.5px solid var(--rule,#111); border-radius:0;
  background:none; color:var(--ink2,#1a1a1a);
  font-family:"Nanum Myeongjo",Batang,serif; font-weight:800; letter-spacing:.08em; font-size:13px;
  cursor:pointer; }
.bst-act:hover{ background:rgba(0,0,0,.04); }
.bst-act[disabled]{ opacity:.55; }
.bst-act.pri{ border-color:var(--rule,#111); background:var(--rule,#111); color:var(--paper,#f5f5f5); }
.bst-act.pri:hover{ background:#333; }
.bst-act.danger{ border-color:#c0453c; color:#c0453c; background:none; }
/* 모달이 없을 때는 대사창에 닫기 버튼이 필요하다(팝업은 버튼으로만 닫으므로) */
/* 닫기 = 대사창 오른쪽 아래(▶ 자리)에 "닫기 ▶" — 팝업은 버튼으로만 닫는다(상단 X 대신 이걸로).
   모달이 있으면 모달 X 가 닫기 → syncX 로 이건 숨긴다(닫기 버튼은 항상 정확히 1개). */
.bst-vnx{ position:absolute; right:0; bottom:0; z-index:2; display:inline-flex; align-items:center; gap:7px;
  padding:8px 2px 8px 10px; border:0; background:none; cursor:pointer;
  color:var(--bst-frame); font-family:inherit; font-size:15px; font-weight:600; letter-spacing:.02em; }
.bst-next{ align-self:flex-start; }   /* 붙박은 닫기와 같은 구석을 쓰지 않게 위로 */
.bst-vnx[hidden]{ display:none; }
.bst-vnx-tri{ width:12px; height:16px; background:var(--bst-frame); clip-path:var(--bst-head); }
.bst-vnx{ animation:bst-fade .3s ease .62s both; }   /* 닫기도 차례에 들어온다 */
.bst-vnx:hover, .bst-vnx:focus-visible{ color:#fff; outline:none; }
.bst-vnx:hover .bst-vnx-tri, .bst-vnx:focus-visible .bst-vnx-tri{ background:#fff; }
.bst-vnx:active{ transform:translateY(1px); }

/* 음성 입력 본문(호출부 = app-calendar 의 startVoiceInput) */
.vx-heard{ padding:10px 12px; border-radius:9px; background:var(--surf2,#f6f6f6);
  font-size:14px; color:var(--dim,#7a7a7a); word-break:break-word; }
/* 냉장고 말로 넣기 2판 — 읽은 동작 미리보기(줄마다 켜고 끈다 · app-todos openFgVoice). 무채색 · 체크는 잉크. */
.vx-ops{ margin-top:8px; display:flex; flex-direction:column; gap:0; }
/* 9/15 대표님: 재료는 고칠 수 있는 글(등록될 결과 그대로) · 기능 말은 앞뒤 구어체 · 까닭은 오른쪽 끝 · 줄 사이 좁게 */
.vx-op{ display:flex; align-items:center; gap:6px; padding:3px 6px; font-size:14px; color:var(--ink2,#222); }   /* 9/15 대표님: 줄 사이 구분선 없음 */
.vx-op input[type=checkbox]{ margin:0; width:16px; height:16px; flex:0 0 auto; accent-color:var(--ink,#111); cursor:pointer; }
.vx-op .vx-pre, .vx-op .vx-post, .vx-op .vx-fixed{ flex:0 0 auto; white-space:nowrap; color:var(--ink2,#222); }
.vx-op .vx-name{ flex:1 1 60px; min-width:60px; border:0; border-bottom:1px solid var(--dim2,#bdbdbd); border-radius:0; background:transparent; padding:2px 2px; font:inherit; font-weight:600; color:var(--ink,#111); outline:0; }
.vx-op .vx-name:focus{ border-bottom-color:var(--ink,#111); }
.vx-op .vx-why{ margin-left:auto; flex:0 1 auto; max-width:38%; font-size:11px; color:var(--dim,#7a7a7a); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vx-op:has(input[type=checkbox]:not(:checked)) .vx-pre, .vx-op:has(input[type=checkbox]:not(:checked)) .vx-post, .vx-op:has(input[type=checkbox]:not(:checked)) .vx-name{ color:var(--dim2,#aaa); text-decoration:line-through; }

@keyframes bst-fade{ from{ opacity:0 } to{ opacity:1 } }
@keyframes bst-pop{ from{ opacity:0; transform:translate(-50%,-46%) scale(.97) } to{ opacity:1; transform:translate(-50%,-50%) scale(1) } }
@keyframes bst-down{ from{ transform:translateY(-100%) } to{ transform:translateY(0) } }   /* 상단 띠 */
@keyframes bst-up{ from{ transform:translateY(100%) } to{ transform:translateY(0) } }       /* 대사창 · 구지 */
@keyframes bst-blink{ 0%,55%{ opacity:1 } 56%,100%{ opacity:0 } }
@keyframes bst-choice-in{ from{ opacity:0; transform:translateX(14px) } to{ opacity:1; transform:translateX(0) } }
/* ── 조명 켜기(대표님 2026-09-02) ── 부품을 옮기지 않고 밝히거나 아주 조금 키운다 ── */
@keyframes bst-dim-in{
  from{ background:rgba(0,0,0,0); -webkit-backdrop-filter:blur(0px); backdrop-filter:blur(0px) }
  to  { background:rgba(0,0,0,.5); -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px) } }
@keyframes bst-zoom-up{ from{ opacity:0; transform:translateY(14px) scale(.93) } to{ opacity:1; transform:none } }
@keyframes bst-zoom-r{ from{ opacity:0; transform:scale(.94) } to{ opacity:1; transform:none } }
@keyframes bst-line-in{ from{ opacity:0; transform:translateY(7px) } to{ opacity:1; transform:none } }
/* 모달은 위 기준이라 가운데 잡기(translateY(-50%))를 쓰지 않는다 — 쓰면 끝에 가운데로 튄다 */
@keyframes bst-zoom-top{ from{ opacity:0; transform:translate(-50%,0) scale(.94) } to{ opacity:1; transform:translate(-50%,0) scale(1) } }
@keyframes bst-plate-glow{
  0%  { opacity:0; box-shadow:0 0 0 1px var(--bst-frame-d), inset 0 0 0 1px rgba(200,177,131,.28), 0 0 0 0 rgba(200,177,131,0) }
  34% { opacity:1; box-shadow:0 0 0 1px var(--bst-frame-d), inset 0 0 0 1px rgba(200,177,131,.28), 0 0 20px 5px rgba(200,177,131,.6) }
  100%{ opacity:1; box-shadow:0 0 0 1px var(--bst-frame-d), inset 0 0 0 1px rgba(200,177,131,.28), 0 0 0 0 rgba(200,177,131,0) } }
/* 움직임을 줄이는 설정이면 전부 조용히 넘어간다.
   ⚠ **대사 한 줄씩도 움직임이다** — 여기서 같이 접지 않으면 부품은 한 번에 뜨는데 글만 기다리게 된다
     (실측: 그 상태에서 선택지가 1.1초 뒤에 섰다). JS 도 같은 판정으로 차례를 건너뛴다. */
@media (prefers-reduced-motion:reduce){
  .bst, .bst-dim, .bst-top, .bst-vn, .bst-modal, .bst-npc, .bst-nav, .bst-plate, .bst-vnx,
  .bst-choice, .bst-say.bsay-step .bsay-l{ animation:none }
}

/* ⭐ **자리를 내준 무대**(.bst-room) — 모달이 있는 무대는 **늘** 이 자리다(대표님 2026-09-06).
     구지를 줄이고 위 레터박스를 걷어 종이에 자리를 준다.
   ⚠⚠ 옛 이름은 .bst-tall 이었고 조건이 "본문이 잘릴 때만"이었다 — 그게 바로
     **콘텐츠 구역이 내용 길이에 따라 달라지던** 정체다(같은 화면에서 모달 위 경계가
     39 / 62 / 105 / 140px 로 널뛰었다 · 실측 2026-09-06). 구역은 내용을 보지 않는다.
   ⚠ --bst-size 는 JS 가 mount 때 읽으므로, 표를 붙인 뒤 fitStage 가 구지를 다시 세운다. */
.bst.bst-room{ --bst-size:min(34vw, 190px); --bst-toph:3vh;
  /* 모달 윗선 = 위 검정 띠의 **반**(대표님 2026-09-13 "배경 상단 뒤의 검정색 영역에 반절 정도") — 띠가 모달 위로 절반쯤 보인다. 구역(가운데 셈)도 그만큼 아래서 시작한다. */
  --bst-mtop:calc(var(--sa-top, env(safe-area-inset-top, 0px)) + var(--bst-toph) / 2); }
.bst.bst-room .bst-top{ min-height:0; }
/* 모달이 선 무대(로그인·온보딩 단계)에선 위 타이틀(st.scene 의 '더디집사')을 숨긴다(대표님 2026-10-01 PC 캡처).
   자리를 내준 무대는 레터박스를 걷으므로 타이틀이 반쯤 잘려 보였다. 첫 인사처럼 모달이 없는 무대에선 그대로 선다. */
.bst.bst-room .bst-scene-head{ display:none; }

/* 낮은 화면(가로 모드 등): 레터박스·구지를 줄여 대사와 본 동작 자리를 지킨다 */
@media (max-height:520px){
  .bst-top{ height:0; min-height:0; }
  /* ⚠⚠ 자리를 내준 무대(.bst-room)도 여기선 레터박스를 **되살리지 않는다** — 특이도가 높아 위 0 을 이겨서,
     이미 0 이던 짧은 화면에 3vh 를 도로 얹어 **자리를 되레 뺏고 있었다**(실측: 잘림 313 → 316px).
     자리를 내준다는 것은 내주는 일이지, 어디에도 새로 얹는 일이 아니다. */
  .bst, .bst.bst-room{ --bst-toph:0px; }
  .bst-top{ min-height:0; }
  .bst-gu{ --bst-size:min(26vw, 140px); }
  .bst-say{ font-size:14px; line-height:1.5; }
  .bst-row{ --bst-x-h:30px; }
}

/* ───────── PC(≥768·마우스): 대사창 UI 확대 (2026-08-11 대표님) ─────────
   폰에서 딱 맞던 크기가 PC 큰 화면에선 작아 보인다 → 대사·선택지·이름표·모달 버튼을 한 단계씩 키운다.
   ⚠ 모바일(<768)·터치기기는 위 base 그대로 — 이 블록 밖은 건드리지 않는다.
   ⚠ 이 파일은 butler-pc.css '뒤'에 링크되므로 PC 오버라이드를 여기에 둔다(거기 두면 순서상 진다).
   ⚠ 구지 크기(--bst-size)는 JS(butler-stage.js)가 실측해 mount 하므로, 여기서 바꾸면 캐릭터도 같이 커진다. */
@media (min-width:768px) and (pointer:fine) and (min-height:521px){
  .bst{ --bst-size:min(38vw, 400px); }                     /* 무대 구지 320 → 400 */
  /* ⭐ 가운데 판이 선 무대(.bst-room · 상점 사기 · 더디패 고르기 · 구독 …)에서도 PC 는 구지를 키운다(대표님 2026-10-18 「PC 에서 NPC 화면이 너무 작다」).
       자리를 내주는 190px 은 **폰**의 셈이다 — PC 는 가운데 판 양옆이 넉넉해 구지가 판을 가리지 않는다(1440 · 1920 실측). */
  .bst.bst-room{ --bst-size:min(22vw, 320px); }
  .bst-vn{ min-height:150px; padding:26px 34px max(18px, var(--sa-bottom, env(safe-area-inset-bottom, 0px))); }
  .bst-row{ min-height:74px; gap:14px; }
  .bst-say{ font-size:25px; line-height:1.4; }   /* 대사 20 → 25 */
  .bst-row{ --bst-x-h:44px; }
  .bst-plate{ left:52px; top:-19px; padding:6px 18px 8px; font-size:18px; }   /* 이름표(집사 구지) */
  /* 선택지 = 대사에 답하는 버튼. 폭·글자·여백을 함께 키워야 커진 대사와 균형이 맞는다. */
  .bst-choices{ right:16px; bottom:16px; gap:9px; max-width:min(72%, 440px); }
  .bst-choice{ padding:11px 20px; font-size:20px; border-left-width:4px; }
  .bst-choice.bst-step{ padding:7px 16px 7px 20px; gap:14px; }
  .bst-slbl{ font-size:16px; } .bst-sval{ font-size:20px; }
  .bst-sarr{ flex:0 0 16px; width:16px; height:21px; }
  .bst-vnx{ font-size:19px; padding:10px 2px 10px 12px; gap:9px; }
  .bst-vnx-tri{ width:15px; height:20px; }
  .bst-nav{ flex:0 0 18px; width:18px; height:24px; }
  /* 무대 가운데 모달(음성 입력·호칭 편집 등) */
  .bst-modal{ width:min(88vw, 520px); }
  .bst-ttl{ font-size:18px; }
  .bst-body{ font-size:17px; padding:18px 20px; }
  .bst-act{ height:44px; padding:0 20px; font-size:15px; }   /* 인쇄체 네모 버튼 — 알약(border-radius)으로 되돌리지 말 것 */
  .vx-heard{ font-size:17px; padding:13px 15px; }
  .bst-scene-sub{ font-size:clamp(14px,1.2vw,17px); }
}
/* 큰 화면(노트북 넘는 모니터)에서는 가운데 판을 통째로 키운다(대표님 2026-10-18 「PC 에서 NPC 화면이 너무 작다」) —
   표·종이·상품 슬라이드가 1920 에서 글자 11px 로 보였다(실측). zoom = 판 안의 글자·종이·간격을 한 비율로. */
@media (min-width:1360px) and (min-height:820px) and (pointer:fine){
  .bst-modal{ zoom:1.18; }
}
@media (min-width:1760px) and (min-height:960px) and (pointer:fine){
  .bst-modal{ zoom:1.36; }
}

/* ══════ 메모지 한 장 = **구지 무대 다이얼로그**(대표님 2026-09-06) ══════
   브리핑·일간/주간 할일 글자·그날 시트에서 부른다(app-calendar openPadModal 한 문).
   ⭐ 옛 그릇(.cmodal 사본 + 머리글 + 발의 닫기)은 걷었다 — 종이 한 장 보여 주자고 액자를 두 겹 둘렀고,
      그러면서 감싸개에 공통 모달 옷이 입혀져 **카드 뒤에 빈 판이 한 장 더** 보였다.
      이제 말(대사)과 닫기는 무대가 맡고, 판은 **옷을 벗어**(.bpad-bare) 종이만 남는다.
   ⚠ 이 부류(.duk-bare 보관함 · .dsh-bare 상점 · .cns-bare 계약서)의 규칙은 늘 같다 —
     **바탕과 테두리는 한 벌로 끈다.** 바탕만 지우고 테두리를 남기면 허공에 액자만 뜬다. */
.bst-modal.bpad-bare{ background:none; box-shadow:none; padding:0; width:auto; max-width:min(92vw,420px); border-width:0; }
.bst-modal.bpad-bare::before{ content:none; }
.bst-modal.bpad-bare .bst-hd{ display:none; }
/* 종이는 아래로 자란다(폭 고정) → 남는 높이를 넘으면 그 안에서 굴러간다(보관함 .k-memo 와 같은 규칙). */
.bst-modal.bpad-bare .bst-body{ padding:0; overflow-y:auto; overscroll-behavior:contain; }
.bst-modal.bpad-bare .bst-acts{ border-top:0; justify-content:center; padding:14px 0 0; }
/* 종이 한 장의 폭 — 보드에서 두 칸으로 서던 것을 여기선 한 장으로 크게 본다. */
/* 폭 = 기본 무대 판과 같은 자(min(92vw,420px)) — 옷을 벗었다고 여백이 늘면 같은 화면에서 종이만 작아 보인다(대표님 2026-10-01 · 내용을 최대한 보이게) */
.bpad-card{ width:min(420px,92vw); }
/* ⚠ 액자 규칙은 .bps .glsl … 로 한 단계 세게 — 슬라이더가 나중에 끼워 넣는 .glsl .glsl-item .duk-fr(높이 꽉 · 4:6 폭)과 세기가 같으면 늦게 온 쪽이 이긴다.
   메모지 넘겨 보기(10/25 · 묵은 할 일 접힘) — **우리 슬라이더**(DuhdiGallery.slider · .glsl)를 메모지에 맞게 덮는다(메모지 고르기 .ppk 와 같은 결).
   액자(.duk-fr) 두께·4:6 은 걷고 종이 한 장이 칸 폭을 채운다 · 이웃 장은 양옆에 옅게 내민다(넘길 수 있다는 표시) · 손이 멈춘 장(.bps-on)만 또렷이. */
/* ⭐ 판은 화면 폭을 다 쓴다(대표님 10/25 「좌우 padding 에 잘린다」) — 옷 벗은 판(.bpad-bare)은 내용 폭(420)으로 줄어 이웃 장·화살표를 잘랐다.
   메모지 고르기(.ppk-bare)와 같은 수법: 판 = 100vw · 몸통 넘침 보이게 · 슬라이더의 100vw 끌어내기는 끈다. */
.bst-modal.bpad-bare.bps-bare{ width:100vw; max-width:100vw; }
/* 마우스 화면은 760 상한 — 큰 화면은 판을 zoom(1.18·1.36)으로 키워 100vw 가 화면 밖으로 넘친다(화살표가 밖으로 나갔다 · 실측 1440 에서 판 1699) ·
   화살표가 종이 곁에 서야 누르기 쉽다. 손가락 기기(폰·패드 가로세로)는 zoom 이 없으니 끝까지 펼친다. */
@media (pointer:fine){ .bst-modal.bpad-bare.bps-bare{ width:min(100vw,760px); } }
.bst-modal.bpad-bare.bps-bare .bst-body{ overflow:visible; }
.bps{ width:100%; }
.bps .glsl{ width:100%; margin-left:0; }
/* 종이가 칸 폭을 다 쓰니 손가락 기기는 밀기로 넘긴다(화살표가 종이 글을 덮지 않게 · 메모지 고르기와 같다) */
@media (hover:none),(pointer:coarse){ .bps .dsh-arr{ display:none; } }
.bps .bps-n{ text-align:center; color:#fff; font-size:14px; font-weight:700; letter-spacing:.04em; font-variant-numeric:tabular-nums; padding:10px 0 0; }
.bps .glsl-track{ --gls-h:min(56vh,520px); --gls-w:min(80vw,380px); }
.bps .glsl-item{ display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:none;
  opacity:.45; transition:opacity .2s; }
.bps .glsl-item::-webkit-scrollbar{ display:none; }
.bps .glsl-item.bps-on{ opacity:1; }
.bps .glsl .glsl-item .duk-fr{ border:0; outline:0; box-shadow:none; background:none; border-radius:0; aspect-ratio:auto; width:100%; height:auto; display:block; overflow:visible; margin:auto 0; flex:0 0 auto; }   /* 짧으면 칸 가운데 · 길면 위부터(margin:auto 는 넘칠 때 위를 자르지 않는다) */
.bpad-card .note{ margin:0; }
/* 눌러서 온 **그 줄** — 색이 아니라 바탕과 왼쪽 획으로 짚는다(무채색 원칙). 잠깐 뒤 연해진다. */
/* 하이라이트는 공통으로 **검색과 같은 검정 반전**(.sr-hit · 대표님 2026-10-01 "검정 배경이 잘 보인다") — 짚은 줄은 잠깐 뒤 원래대로 돌아온다(글자색도 함께 되돌린다) */
/* 검정 판 = 줄 안의 바탕 조각(.bpad-hl · app-calendar padHit) — 글 위아래 같은 여백 5px(10/26 「상하 여백이 달라 중앙이 안 맞는 느낌」 · 예전엔 줄 상자를 통째로 칠해 위 3.5 · 아래 10) */
.bpad-card .ck-item.bpad-hit{ isolation:isolate; }
/* ⭐ 2026-11-03 검정 판 → **노랑 형광펜**(글 아래 절반 · 글 폭만 · 왼→오로 그어짐) — 대표님 「더디패 판은 하이라이트가 나을듯」.
   글자색 반전이 없으니 글자 움직임도 없다. 메모지 종이는 테마와 상관없이 흰색 → 색 고정(--hl-mk 안 씀). 폭은 padHit 이 글자 줄을 재서 넣는다. */
.bpad-card .ck-item .bpad-hl{ position:absolute; z-index:-1; left:-3px; right:-3px; top:0; height:100%; border-radius:3px 6px 4px 7px; pointer-events:none;
  background:linear-gradient(transparent 48%, rgba(255,183,0,.50) 48%, rgba(255,183,0,.50) 86%, transparent 86%); animation:bpadHit 2.4s ease-out 1 forwards; }
@keyframes bpadHit{ 0%{ clip-path:inset(0 100% 0 0); opacity:1; } 15%{ clip-path:inset(0 0 0 0); opacity:1; } 60%{ opacity:1; } 100%{ clip-path:inset(0 0 0 0); opacity:0; } }

/* ⭐⭐ 넘치는 종이 모달(옷 벗은 판) = 화면 맨 위부터 대사창 띠 위까지 굴림(2026-10-03 대표님 "다른 스크롤하는 모달도 다 같은 규칙").
   자리·높이·위아래 빈 줄은 JS(placeModal)가 재서 넣는다: --bst-tf-lift(무대 칸 위로 끌어올림) · --bst-tf-h(전체 높이)
   · --bst-tf-top(처음 자리 = 원래 모달 위) · --bst-tf-bot(단추 자리). 스크롤바는 위 원래 규칙대로 안 보인다. */
.bst-modal.bst-tallfit{ top:var(--bst-tf-lift, 0px); height:var(--bst-tf-h); max-height:var(--bst-tf-h); }
.bst-modal.bst-tallfit .bst-body::before{ height:var(--bst-tf-top); }
.bst-modal.bst-tallfit .bst-body::after{ height:var(--bst-tf-bot); }

/* 무대 뿌리 스크롤바 자리 걷기 — 옛 웹킷용(위 .bst 의 scrollbar-width:none 과 한 벌 · 10/19) */
.bst::-webkit-scrollbar{ width:0; height:0; display:none; }

/* ══════ 브리핑 위에 얹기(대표님 2026-10-26 「밑줄을 누르면 메모지·일정 상세가 현재 화면 위에 · 뒷 내용도 딤 뒤에 보여야」) ══════
   app-calendar openEventOver · openPadOver. 밑의 무대(대화·브리핑)는 걷지 않고 딤(210) 아래로 내린다(.bo-under 205).
   ⚠ 그 사이 새로 열린 무대(메모지 안에서 부른 확인 등)는 딤 위로(218 · 토스트 220 밑).
   ⚠ 딤은 평소보다 옅게 — 뒤에 브리핑이 그대로 있는 것이 보여야 「보던 화면 위에 뜬 창」이다. */
html.bo-over .bst.bo-under{ z-index:205; }
html.bo-over .bst:not(.bo-under){ z-index:218; }
/* 메모지 = .5 · 흐림 없음 — 종이는 제 바탕이 있어 뒤 브리핑 글이 또렷해도 섞이지 않는다.
   일정 상세(새 판 ev2)는 제목·시각을 딤 위에 흰 글로 바로 쓴다 → 뒤 말풍선 글과 겹친다(10/26 실측 · 흐림 없이 .72·.82 둘 다 겹쳐 읽혔다).
   그래서 .66 + 옅은 흐림 2.5px — 말풍선 모양·자리는 보이고 글자만 물러난다(평소 상세 .8 + 3px 보다 한 단계 옅게). */
html.bo-over #covl, .covl.bpo-dim{ background:rgba(0,0,0,.5); -webkit-backdrop-filter:none; backdrop-filter:none; }
html.bo-over #covl.ev2-dim{ background:rgba(0,0,0,.66); -webkit-backdrop-filter:blur(2.5px); backdrop-filter:blur(2.5px); }
/* 메모지 안에서 연 공용 창(메모지 이야기 i · 공통 모달 #genModal 등)은 종이(211) 위로 — 같은 211 이면 나중에 붙은 종이가 덮는다(10/26 자 A8) */
html.bo-pad #covl:not([hidden]){ z-index:212; }
html.bo-pad .cmodal:not([hidden]){ z-index:213; }
.bpo{ position:fixed; z-index:211; left:50%; top:calc(50% + var(--sa-top, env(safe-area-inset-top, 0px)) / 2); transform:translate(-50%, -50%);
  display:flex; flex-direction:column; align-items:center; gap:14px;
  max-height:calc(100dvh - 48px - var(--sa-top, env(safe-area-inset-top, 0px)) - env(safe-area-inset-bottom, 0px)); }
.bpo .bpad-card{ flex:0 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none; }   /* 그림자 없음 — 말풍선·하트처럼 네모 아닌 종이 뒤에 네모 그림자가 비친다 */
.bpo .bpad-card::-webkit-scrollbar{ display:none; }
.bpo-acts{ flex:0 0 auto; display:flex; gap:8px; justify-content:center; }
.bpo-acts .cbtn{ height:40px; padding:0 18px; border-radius:var(--r, 8px); border:1px solid var(--ink, #111); background:var(--ink, #111); color:#fff; font-weight:700; font-size:14px; }
.bpo-acts .cbtn.ghost{ background:#fff; color:var(--ink, #111); }
:root[data-diary="dark"] .bpo-acts .cbtn{ background:#f2f2f2; border-color:#f2f2f2; color:#111; }
:root[data-diary="dark"] .bpo-acts .cbtn.ghost{ background:#2c2c2f; border-color:#5e5e64; color:#eee; }
/* 큰 화면 = 가운데 판과 같은 자(1.18 · 1.36) — 판 자체(fixed·가운데 잡기)가 아니라 안의 종이·단추에 건다 */
@media (min-width:1360px) and (min-height:820px) and (pointer:fine){ .bpo > *{ zoom:1.18; } }
@media (min-width:1760px) and (min-height:960px) and (pointer:fine){ .bpo > *{ zoom:1.36; } }

/* ── 맨판(st.bare · open({look:'bare'})) — 대표님 10/24 「npc형 모든 화면 배경 없는 형태로」 · 10/26 「순차적으로 모두」 ──
   판 옷 = .bpad-bare(위) + .bfl(흰 글씨) · 제목 = 위 검정 띠 가운데(.bst-band) · 무대 딤 살짝 · 판은 띠 아래에서 시작(긴 판 굴림도) */
.bst.bfl-r{ --bst-toph:calc(var(--sa-top, env(safe-area-inset-top, 0px)) + 48px); --bst-mtop:var(--bst-toph); }
.bst.bfl-r.bst-scene{ --bst-mtop:10px; }   /* 장면 무대(가입 계약서 등)는 위 띠가 흐름 안에 있어 무대가 이미 띠 아래서 시작한다 — 띠 키를 또 빼면 종이가 72px 내려앉아 위가 비었다(11/01 대표님 「상단 영역이 남는데 왜 이거밖에 안 보이지」) */
.bst.bfl-r .bst-dim::after{ content:""; position:absolute; inset:0; pointer-events:none; background:rgba(8,8,8,.52); }   /* 뒤 화면이 밝으면(호칭·위치) 흰 글씨가 안 읽혔다 — .24 → .52(10/26) */
.bst-top > .bst-band{ position:absolute; left:0; right:0; bottom:6px; text-align:center; font:800 17px "Pretendard Variable",Pretendard,system-ui,sans-serif; color:#fff; letter-spacing:-.01em; pointer-events:none; padding:0 56px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; z-index:3; }
.bst-modal.bpad-bare.bfl{ --ink:#fff; --ink2:rgba(255,255,255,.82); --rule:rgba(255,255,255,.55); --paper:transparent; color:#fff; }   /* 폭은 안 정한다 — 옷 벗은 판(420) · 상점 슬라이더(화면 폭) 등 제 폭 그대로(10/26 회귀 shop J1)  */
.bst-modal.bpad-bare.bfl .bst-body{ color:#fff; padding:0 4px; }
.bst-modal.bpad-bare.bfl .bst-acts{ display:none; }
/* 맨판 안 「고른 칸」 — 종이 판은 고른 칸을 글씨색 바탕 · 종이색 글씨로 칠한다(맨판에선 흰 바탕 · 투명 글씨가 돼 글자가 사라졌다 · 사진으로 추가 캘린더 고르기) */
.bst-modal.bfl .idx-chip.on{ background:#fff; color:#1c1a17; border-color:#fff; }
/* 맨판 부품 — 가운데 한 줄(라벨 + 밑줄 글자 = 진짜 입력 칸) · 시안 4판 v4-ul 을 공용으로(10/26 호칭 · 위치) */
.bst-modal.bfl .bfl-col{ display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; padding-top:10px; text-shadow:0 1px 3px rgba(0,0,0,.55); }   /* 그림 바탕(온보딩 책장) 위에서도 읽히게 */
.bst-modal.bfl .bfl-lb{ font-size:12px; font-weight:700; color:rgba(255,255,255,.62); letter-spacing:.02em; }
.bst-modal.bfl .bfl-ul{ display:inline-flex; flex-direction:row; align-items:flex-end; gap:6px; font:800 32px/1.2 "Pretendard Variable",Pretendard,system-ui,sans-serif; letter-spacing:-.02em; color:#fff; max-width:100%; cursor:text; }
.bst-modal.bfl .bfl-ul input{ all:unset; box-sizing:border-box; font:inherit; color:#fff; text-align:center; border-bottom:2px dashed rgba(255,255,255,.5); padding:0 2px 4px; caret-color:var(--bst-frame,#c9b183); width:9ch; min-width:3ch; max-width:72vw; }
.bst-modal.bfl .bfl-ul input::placeholder{ color:rgba(255,255,255,.32); }
.bst-modal.bfl .bfl-ul input:focus{ border-bottom:2px solid var(--bst-frame,#c9b183); }
.bst-modal.bfl .bfl-ul i{ font-style:normal; font-size:17px; line-height:1; color:rgba(255,255,255,.55); margin-bottom:-2px; }   /* 연필 = 밑줄 오른쪽 아래 끝(대표님 10/27 「대시 underline 우측 하단 정렬 · 지금은 줄바꿈」) */
.bst-modal.bfl .bfl-ul input:focus + i{ display:none; }
.bst-modal.bfl .bfl-sub{ font-size:13px; color:rgba(255,255,255,.6); font-weight:600; }
/* 맨판 부품 — 흰 타일 단추(판 안에서 누르는 길 · 현재 위치로 등) */
.bst-modal.bfl .bfl-tile{ all:unset; box-sizing:border-box; cursor:pointer; background:#fff; color:#1c1c1c; border-radius:12px; min-height:50px; display:inline-flex; align-items:center; justify-content:center; gap:8px; font:700 15px "Pretendard Variable",Pretendard,system-ui,sans-serif; padding:0 20px; margin-top:6px; -webkit-tap-highlight-color:transparent; }
.bst-modal.bfl .bfl-tile i{ font-size:19px; color:#555; }
.bst-modal.bfl .bfl-tile:active{ transform:translateY(1px); }
/* 이름 적는 장면은 딤 한 겹 더(대표님 10/26 「이름 할 때는 dim 하나 더」 · 온보딩 이름 · 호칭 설정) */
.bst.bfl-r.bfl-deep .bst-dim::after{ background:rgba(8,8,8,.74); }
/* 계약서 종이 = 맨판에선 내용 폭으로 줄어 가늘었다(대표님 10/26 「폰에서 왜 이렇게 width 가 얇아 · PC 도 넓히자」) */
/* 폰 = 화면 폭에서 좌우 기본 여백(16)만 빼고 꽉 · 최대 520 · PC 640(대표님 10/27 「width 100% 로 기본 좌우 패딩 제외하고 꽉 · max-width」) — 묶음 안쪽 여백은 뒤 장이 비칠 만큼(오른 8)만 */
.bst-modal.bpad-bare.cns-bare{ width:min(calc(100vw - 32px),520px); max-width:none; }
@media (pointer:fine){ .bst-modal.bpad-bare.cns-bare{ width:min(calc(100vw - 32px),640px); } }
.bst-modal.bpad-bare.cns-bare .bst-body{ padding:0; }
.bst-modal.bpad-bare.cns-bare .cns{ padding-left:0; padding-right:16px; }   /* 뒤 장(cns-b2 +11px · 1.1°)이 판 안에 들 만큼 — 8 이면 5.7px 삐져 가로 스크롤바(회귀 modal-design K5 · 10/27) */
/* 더디패 고르기 = 슬라이더 폭을 묶어 화살표가 보이게(PC 에서 화면 폭으로 펴져 화살표가 구지·선택지 뒤로 숨었다 · 대표님 10/26 「좌우 화살표 날리지 말고 loop」) */
/* 10/27 대표님 「화살표는 가운데 더디패의 좌우 · 더디패 디자인은 width 100% 까지 보여야」 — 슬라이더는 화면 폭 그대로 · 화살표만 가운데 장 양옆에 */
.bst-modal.pt-bare .glsl{ --gls-h:min(46vh,340px); --gls-w:calc(var(--gls-h) * 0.78); }
.bst-modal.pt-bare .dsh-arr.prev{ left:calc(50% - var(--gls-w) / 2 - 56px); }
.bst-modal.pt-bare .dsh-arr.next{ right:auto; left:min(calc(50% + var(--gls-w) / 2 + 12px), calc(100% - 50px)); }
.bst-modal.pt-bare .dsh-arr.prev{ left:max(calc(50% - var(--gls-w) / 2 - 56px), 8px); }
@media (pointer:fine){ .bst-modal.pt-bare .dsh-arr{ display:flex; } }   /* PC 는 화살표를 늘 띄운다(손가락 화면은 밀어 넘긴다) */
/* ── 맨판 그림 부품: 알림 도움말 B(메모지 · 일정) ── 위 = 쓰는 모습 · 점선 · 아래 = 잠금 화면 알림 */
.bst-modal.bfl .bfl-help{ gap:0; padding-top:4px; text-shadow:none; }
.bst-modal.bfl .bfl-note{ position:relative; width:min(260px,72vw); background:#fff; color:#1c1c1c; border-radius:6px; padding:12px 14px 8px; box-sizing:border-box; text-align:left; box-shadow:0 8px 22px rgba(0,0,0,.35); margin-top:44px; }
.bst-modal.bfl .bfl-note .ln{ display:flex; align-items:center; gap:8px; min-height:30px; font-size:14.5px; font-weight:600; border-bottom:1px solid #f0ece2; }
.bst-modal.bfl .bfl-note .ln i{ font-size:16px; color:#bbb; } .bst-modal.bfl .bfl-note .ln i.on{ font-size:13px; color:#1c1c1c; margin-left:-5px; }   /* 줄 알림 켠 종(11/02) */
.bst-modal.bfl .bfl-note mark, .bst-modal.bfl .bfl-ev mark{ background:#f1e2b8; color:inherit; border-radius:4px; padding:0 4px; }
.bst-modal.bfl .bfl-note .bar{ display:flex; gap:14px; justify-content:flex-end; padding:8px 2px 2px; color:#aaa; font-size:17px; }
.bst-modal.bfl .bfl-note .bar .on{ color:#1c1c1c; position:relative; }
.bst-modal.bfl .bfl-note .bar .on::after{ content:""; position:absolute; right:-3px; top:-1px; width:7px; height:7px; border-radius:50%; background:var(--brand,#15b28a); }
.bst-modal.bfl .bfl-pop{ position:absolute; right:-6px; bottom:44px; background:#1c1c1c; color:#fff; border-radius:12px; padding:8px 10px 8px 14px; display:flex; align-items:center; gap:10px; font-size:13.5px; font-weight:700; box-shadow:0 8px 20px rgba(0,0,0,.35); }
.bst-modal.bfl .bfl-pop::after{ content:""; position:absolute; right:42px; bottom:-6px; width:12px; height:12px; background:#1c1c1c; transform:rotate(45deg); border-radius:2px; }
.bst-modal.bfl .bfl-pop small{ color:#bdbdbd; font-weight:600; }
.bst-modal.bfl .bfl-pop .tg{ width:34px; height:20px; border-radius:10px; background:var(--brand,#15b28a); position:relative; flex:0 0 auto; }
.bst-modal.bfl .bfl-pop .tg::after{ content:""; position:absolute; right:2px; top:2px; width:16px; height:16px; border-radius:50%; background:#fff; }
.bst-modal.bfl .bfl-ev{ width:min(270px,76vw); background:#f7f5f0; color:#1d1d1b; border-radius:14px; padding:14px 16px 10px; box-sizing:border-box; text-align:left; box-shadow:0 8px 22px rgba(0,0,0,.35); }
.bst-modal.bfl .bfl-ev .t{ font:800 28px/1 "Pretendard Variable",Pretendard,system-ui,sans-serif; letter-spacing:-.02em; }
.bst-modal.bfl .bfl-ev .t small{ font-size:15px; color:#8b8b85; font-weight:700; }
.bst-modal.bfl .bfl-ev .n{ font-size:16px; font-weight:700; margin:6px 0 10px; }
.bst-modal.bfl .bfl-ev .r{ display:flex; align-items:center; gap:8px; border-top:1px solid rgba(0,0,0,.1); min-height:34px; font-size:14px; font-weight:700; }
.bst-modal.bfl .bfl-ev .r i{ font-size:16px; color:#8b8b85; } .bst-modal.bfl .bfl-ev .r span{ margin-left:auto; color:#8b8b85; font-size:16px; }
.bst-modal.bfl .bfl-drop{ height:18px; border-left:2px dotted rgba(255,255,255,.55); margin:8px 0; }
.bst-modal.bfl .bfl-lock{ width:min(250px,70vw); border-radius:26px; padding:16px 12px 14px; box-sizing:border-box; background:linear-gradient(170deg,#3a3f4a,#1d2026); box-shadow:0 10px 26px rgba(0,0,0,.45),inset 0 0 0 1.5px rgba(255,255,255,.12); text-align:center; }
.bst-modal.bfl .bfl-lock .t{ font:300 42px/1 "Pretendard Variable",Pretendard,system-ui,sans-serif; color:#fff; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.bst-modal.bfl .bfl-lock .d{ font-size:11.5px; color:rgba(255,255,255,.7); margin:4px 0 12px; font-weight:600; }
.bst-modal.bfl .bfl-lock .nt{ background:rgba(245,245,245,.92); color:#1c1c1c; border-radius:14px; padding:9px 11px; text-align:left; }
.bst-modal.bfl .bfl-lock .ap{ display:flex; align-items:center; gap:6px; font-size:10.5px; color:#777; font-weight:700; }
.bst-modal.bfl .bfl-lock .ap i{ width:16px; height:16px; border-radius:4px; background:#1c1c1c; display:inline-block; }
.bst-modal.bfl .bfl-lock .ap em{ font-style:normal; margin-left:auto; font-weight:600; }
.bst-modal.bfl .bfl-lock .nt b{ display:block; font-size:14px; margin-top:3px; } .bst-modal.bfl .bfl-lock .nt small{ display:block; font-size:12px; color:#666; }
.bst-modal.bfl .bfl-lock .ac{ display:flex; gap:6px; margin-top:6px; } .bst-modal.bfl .bfl-lock .ac span{ flex:1; background:rgba(245,245,245,.92); border-radius:10px; padding:7px 0; font-size:12.5px; font-weight:700; color:#1c1c1c; }
.bst-modal.bfl .bfl-help .bfl-sub{ margin-top:12px; line-height:1.55; }
/* 그림 바탕 무대(온보딩 책장 · st.scene)는 바탕이 .bst-stage 에 그려져 딤 겹(.bst-dim)보다 위다 — 안쪽 그림자로 한 겹(내용은 그 위) */
.bst.bfl-r.bfl-deep.bst-scene .bst-stage{ box-shadow:inset 0 0 0 100vmax rgba(8,8,8,.6); }   /* 그림 바탕 무대만(호칭 설정에 걸면 위 띠 제목까지 덮였다 · 10/27) */
/* ── 맨판 그림 부품: 사진으로 추가(10/27 · 4·6·7판) — 폴라로이드 · 일정 흰 타일 · 캘린더 꼬리표 + 토글 상자 ── */
.bst-modal.bfl .pst{ gap:12px; text-shadow:none; width:min(calc(100vw - 32px),400px); }   /* 판이 내용 폭으로 줄어 꼬리표가 꺾였다(10/27) */
.bst-modal.bfl .pst-ph{ width:172px; background:#fff; padding:7px 7px 20px; box-sizing:border-box; transform:rotate(-2deg); box-shadow:0 8px 22px rgba(0,0,0,.4); }
.bst-modal.bfl .pst-ph img{ display:block; width:100%; height:118px; object-fit:cover; background:#efe9db; }
.bst-modal.bfl .pst-evs{ display:flex; flex-direction:column; gap:8px; width:100%; }
.bst-modal.bfl .pst-ev{ display:grid; grid-template-columns:58px minmax(0,1fr) 22px; gap:4px 10px; align-items:center; background:#fff; color:#1c1c1c; border-radius:12px; padding:10px 12px; text-align:left; }
.bst-modal.bfl .pst-d b{ display:block; font-size:16px; font-weight:800; font-variant-numeric:tabular-nums; } .bst-modal.bfl .pst-d small{ display:block; font-size:12px; color:#888; font-weight:600; }
.bst-modal.bfl .pst-tt{ display:flex; flex-direction:column; align-items:flex-start; gap:5px; min-width:0; }
.bst-modal.bfl .pst-tt > span{ font-size:15px; font-weight:700; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bst-modal.bfl .pst-cal{ all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:700; border-radius:20px; padding:3px 10px; background:#f1efe9; color:#555; -webkit-tap-highlight-color:transparent; }
.bst-modal.bfl .pst-cal.ask{ background:none; box-shadow:inset 0 0 0 1.5px #c9b183; color:#8d7a52; }
.bst-modal.bfl .pst-ck{ font-size:20px; color:#1c1c1c; }
.bst-modal.bfl .pst-box{ grid-column:1/-1; display:flex; flex-wrap:wrap; gap:6px; border-top:1px solid #eee; padding-top:8px; margin:2px 0 0; }
.bst-modal.bfl .pst-box[hidden]{ display:none; }
.bst-modal.bfl .pst-box .idx-chip{ background:#fff; color:#1c1c1c; border:1px solid #d6d2c8; }
.bst-modal.bfl .pst-box .idx-chip.on{ background:#1c1c1c; color:#fff; border-color:#1c1c1c; }

/* ⭐ 큰 글씨 폰(html[data-tz] · --tz = 기기 글자 배율 · index.html 머리 조각이 잰다) — 선택지 글자만 1.25배까지로 묶는다(10/31).
     2.0배에서 선택지가 배로 커져 현관 번호 판·가입 이름 칸·계약서 서명란을 덮었다(대표님 「닉네임 UI 두 개 겹쳐」 · 에뮬레이터 실측).
     짧은 단추 글자라 1.25배면 충분히 읽힌다 — 구지 말·입력 칸·계약서 글자는 큰 글씨 그대로 둔다. 1.25 아래 배율은 그대로.
     :where 로 무게를 낮춰 둔다 — 자리마다 따로 준 선택지 글자(상점 .duk-stage 14px 등)는 그쪽이 이긴다. */
/* ⭐ 큰 글씨 폰 2판(11/01 대표님 「큰 글씨에서 중요한 건 장식 소재는 안 커지고 콘텐츠 영역은 확보」).
     ① 장식은 배율을 되돌려 제 크기 — 명찰(집사 구지) · 위 띠 제목 · 첫 화면 「더디집사」 글씨. px 은 기기 배율이 곱해지므로 배율로 나눈다.
     ② 대사창 높이는 em 으로 묶어 두었는데, 큰 글씨 폰의 em 은 **배율 전 글자**로 풀린다(2.0배 실측: 글자 40px · 칸 196px = 7×1.4×20).
        그래서 배율이 클수록 보이는 줄이 줄었다 → 적어도 3.4줄(넷째 줄 머리가 보여 굴릴 수 있음을 안다)은 늘 보이게 한다. */
:where(html[data-tz]) .bst-scene-ttl{ font-size:calc(clamp(30px,8.4vw,44px) / var(--tz)); }
:where(html[data-tz]) .bst-scene-sub{ font-size:calc(clamp(12px,3.4vw,15px) / var(--tz)); }
:where(html[data-tz]) .bst-say{ max-height:max(min(calc(7 * 1.4em), 46vh), min(calc(3.4 * 1.4em * var(--tz)), 46vh)); }
/* 11/02 대표님 「로그아웃 대화창 우측 여백 왜 이렇게 많아 · 큰 글씨면 닫기와 대사를 줄 나눠 대사가 폭 100%」 —
     숨긴 ◀▶ 칸(visibility · 양쪽 24px)이 자리를 먹고 있었다 → 큰 글씨에선 숨기면 칸도 걷는다 · 좌우 안 여백도 조금 줄인다.
     닫기는 이미 대사 아래 줄(.bst-row 아래 여백)이라 그대로 · 닫기 글자는 1.3배까지(누르는 단추 공통 상한). */
:where(html[data-tz]) .bst-nav[hidden]{ display:none; }
:where(html[data-tz]) .bst-vn{ padding-left:18px; padding-right:16px; }

/* ── 11/22 대표님 「구지 명찰과 대화 사이 간격 화면마다 다른 것 맞춰 · 그 중간으로」 · 「대화창 영역을 줄이고 모달 영역을 늘리는 게 나은 것 같다(제안 1)」 ──
   ① 명패 ~ 대사 첫 줄 = 늘 같게(폰 14 · PC 18): 예전엔 한 줄 대사만 줄(.bst-row 최소 높이) 가운데에 떠 24px, 두 줄부터는 위에 붙어 4~12px 이었다
      → 대사를 늘 위에 붙이고(align-self) 위 여백으로 간격을 정한다.
   ② 창이 뜬 무대(.bst-room)는 대사창·대사 줄 최소 높이를 푼다 — 대사 줄 수만큼만 쓰고 남는 자리는 위 창 몫(창 위치는 butler-stage.js placeModal TOP_GAP). */
.bst-say{ align-self:flex-start; }
.bst-vn{ padding-top:32px; }
@media (min-width:768px) and (pointer:fine) and (min-height:521px){ .bst-vn{ padding-top:40px; } }
.bst.bst-room .bst-vn, .bst.bst-room .bst-row{ min-height:0; }
/* 11/22 2차 — 제목 띠 통일(.bst-tband · butler-stage.js bandSync): 제목이 있는 창은 위 검정 띠(48)에 제목 · 창 안 제목 줄은 접는다(탭이 든 머리는 제목 글자만) */
.bst.bst-tband{ --bst-toph:calc(var(--sa-top, env(safe-area-inset-top, 0px)) + 48px); --bst-mtop:var(--bst-toph); }   /* 기준선 = 띠 아래(자리 잡기가 잠깐 빠져도 띠를 안 덮게) */
.bst.bst-tband .bst-modal .bst-hd:not(.has-tabs){ height:0; min-height:0; padding:0; margin:0; border:0; overflow:hidden; }
.bst.bst-tband .bst-modal .bst-hd.has-tabs .bst-ttl{ display:none; }
