/* 공용 입력 모달 — PC 중앙 · 모바일 전체 화면 */
.sheet{position:fixed;inset:0;z-index:calc(var(--cu-z-modal) + 10);background:var(--cu-overlay);display:grid;place-items:center;padding:20px}
.shin{background:var(--cu-white);width:min(640px,100%);max-height:88vh;border-radius:var(--cu-radius-xl);display:flex;flex-direction:column;overflow:hidden}
.sheet.wide .shin{width:min(960px,100%)}
.shh{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);flex:0 0 auto}
.shh b{font-size:var(--cu-font-md)}
.shb{flex:1 1 auto;overflow-y:auto;padding:14px 16px;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px}
.shb>*{flex-shrink:0}   /* 11-18 내용이 창보다 길면 줄이 눌려 찌그러지던 것(상담 기록 「방식」 단추가 12px) — 본문만 스크롤 */
.shf{flex:0 0 auto;display:flex;gap:8px;justify-content:flex-end;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0));border-top:1px solid var(--line);background:var(--cu-white)}
.shf .btn{min-height:44px;padding:0 18px;font-size:var(--cu-font-base)}
/* 11-18 창 아래 보조 버튼(취소 · 닫기) = 클래스업 ModalButton cancel(흰 바탕 · 보라 글자 · 보라 테두리) */
.shf .btn:not(.main):not(.dark):not(.danger){color:var(--cu-text-1);border-color:var(--cu-line-strong);background:var(--cu-white)}
.shf .btn:not(.main):not(.dark):not(.danger):hover:not(:disabled){background:var(--cu-main-soft)}
body.sheet-open{overflow:hidden}
body.sheet-open .btabs,body.sheet-open .keys{display:none!important}   /* 11-18 알림(.toast)은 창 위 층(--cu-z-toast)이라 숨기지 않음 */

.sheet-standalone .btn{border:1px solid var(--line);border-radius:var(--cu-radius-md);background:var(--cu-white);font:inherit;cursor:pointer}
.sheet-standalone .btn.main{background:var(--cu-main);border-color:var(--cu-main);color:var(--cu-white)}
@media(max-width:900px){  .sheet{padding:0;place-items:stretch}
  .shin,.sheet.wide .shin{width:100%;max-height:none;height:var(--vvh,100dvh);border-radius:0}
}

.sheet-standalone .shh .sp{flex:1}.sheet-standalone .shh [data-shx]{min-width:44px;min-height:44px;padding:8px}.sheet-standalone .ui-icon{width:18px;height:18px}
/* 11-22 27번 B-14 쓰던 글 되살림 */
.shdraft{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:8px 12px;border-radius:var(--cu-radius-md);background:var(--cu-gold-soft);color:var(--cu-text-1)}
/* 12-02 페이지 창(상담 입력) — 화면 전체 · 옅은 회색 바탕 · 가운데 1080px · 왼쪽 위 [뒤로] · PC 는 저장 단추가 오른쪽 칸(아래 줄 숨김) */
.sheet.page{background:var(--cu-c-f2f4f6);padding:0;place-items:stretch}
.sheet.page .shin{width:100%;max-width:none;max-height:none;height:var(--vvh,100dvh);border-radius:0;background:var(--cu-c-f2f4f6)}
/* 12-03 키보드가 올라온 동안(body.kb-on · lms-work.js) — 아이폰이 화면을 밀어 올려도 시트를 실제 보이는 영역(--vvt · --vvh)에 붙임 */
@media(max-width:900px){body.kb-on .sheet{inset:auto 0 auto 0;top:var(--vvt,0);height:var(--vvh,100dvh)}}
body.kb-on .sheet.page{inset:auto 0 auto 0;top:var(--vvt,0);height:var(--vvh,100dvh)}
body.kb-on .sheet .shb,body.kb-on .sheet.page .shb{scroll-padding-top:12px}
.sheet.page .shh{width:100%;max-width:1080px;margin:0 auto;border:0;padding:14px 20px 2px;background:transparent}
.sheet.page .shh b{font-size:var(--cu-font-xl);font-weight:800;letter-spacing:-.02em}
.sheet.page .shh [data-shx][aria-label="닫기"]{display:none}
.sheet.page .shback{display:inline-flex;align-items:center;gap:2px;min-height:44px;padding:0 10px 0 4px;border:0;background:transparent;color:var(--cu-text-2);font:inherit;font-weight:600;cursor:pointer}
.sheet.page .shback .ui-icon{transform:rotate(180deg);width:18px;height:18px}
.sheet.page #shBody{width:100%;max-width:none;margin:0;padding:10px max(20px,calc((100% - 1040px) / 2)) 28px;background:transparent}   /* 스크롤 칸은 화면 전체 · 내용만 가운데 1040px */
.sheet.page .shf{width:100%;background:var(--cu-white)}
@media(min-width:901px){.sheet.page .shf.cpg-has-side{display:none}}
/* 12-02 대표 「메인 컬러 = 학원시 메인 컬러」 — 페이지 창 안 주 색(저장 · 고른 요일 · 번호 · 진행률 · 녹음 단추) = Monza */
.sheet.page{--cu-main:var(--cu-brand);--red:var(--cu-brand);--cu-main-hover:var(--cu-c-760b1a);--cu-main-active:var(--cu-c-5e0915);--cu-main-soft:var(--cu-brand-soft);--cu-main-tint:var(--cu-c-fdf2f3)}
/* 12-02 대표 「초기 · 학습 상담 고르기 = 시안 그대로」 — 회색 칸 안 두 칸 · 고른 칸 흰 바탕 + 그림자 */
.sheet.page .ckind-fld{margin:0}
.sheet.page .ckind-seg{display:grid!important;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:var(--cu-c-f2f4f6);border:0;width:100%;min-height:50px}
.sheet.page .ckind-seg button{height:42px;min-height:42px;border:0!important;border-radius:9px;background:transparent!important;color:var(--cu-c-6b7684)!important;font-size:var(--cu-font-sm);font-weight:700;box-shadow:none;padding:0}
.sheet.page .ckind-seg button.on,.sheet.page .ckind-seg button[aria-pressed="true"]{background:var(--cu-c-ffffff)!important;color:var(--cu-c-191f28)!important;box-shadow:0 1px 4px rgba(0,27,55,.12)}
.sheet.page .cpg-kind{display:flex;flex-direction:column;gap:8px}
/* 12-03 화상 상담 — 고르면 녹음 · 메모 칸 숨기고 시각 칸 */
.sheet.page .cpg-vc:not([hidden]){display:flex;flex-direction:column;gap:8px;margin-top:12px}
.cf-vc-hide{display:none!important}
.sheet.page .cpg-kl{font-size:var(--cu-font-sm);font-weight:700;color:var(--cu-c-4e5968)}
.sheet.page .c3-files{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.sheet.page .btn.main{background:var(--cu-brand);border-color:var(--cu-brand);color:var(--cu-c-ffffff)}
.sheet.page .btn.main:hover:not(:disabled){background:var(--cu-c-760b1a);border-color:var(--cu-c-760b1a)}
.sheet.page .btn.main:disabled{background:var(--cu-line-strong);border-color:var(--cu-line-strong)}
