/* 메신저 실험 웹 버전 (web_v01) — 색과 배치는 앱 v45를 따름 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #fff; color: #000; font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; font-size: 16px; line-height: 1.45; overscroll-behavior: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
#app { min-height: 100dvh; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
h1 { font-size: 28px; margin: 0 0 8px; } h2 { font-size: 22px; margin: 0 0 10px; } h3 { font-size: 17px; margin: 18px 0 6px; }
p { margin: 6px 0; } hr { border: 0; border-top: 1px solid #e0e0e0; margin: 0; }
.pre { white-space: pre-line; } .gray { color: #5f6368; } .small { font-size: 13px; } .bold { font-weight: 700; } .center { text-align: center; } .err { color: #B00020; } .ok { color: #1E6B34; }
.big { font-size: 34px; font-weight: 800; } .big2 { font-size: 20px; }
.row { display: flex; align-items: center; } .row.gap { gap: 10px; } .row.between { justify-content: space-between; gap: 8px; } .grow { flex: 1; }
.page { max-width: 560px; margin: 0 auto; padding: 28px 22px 40px; }
.page.center { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.btn { display: block; width: 100%; padding: 13px 16px; border-radius: 999px; border: 1px solid #79747E; background: #fff; color: #043A52; font-weight: 600; font-size: 16px; margin-top: 8px; }
.btn.primary { background: #043A52; border-color: #043A52; color: #fff; } .btn:disabled { opacity: .38; } .btn.tiny { width: auto; padding: 6px 12px; font-size: 13px; margin: 6px 0 0; }
.row .btn { width: auto; } .row .btn.grow { flex: 1; } .nav { margin-top: 20px; }
.card { background: #F5F7F9; border-radius: 14px; padding: 14px; margin: 10px 0; }
.text { width: 100%; padding: 12px; border: 1px solid #79747E; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; margin-top: 6px; }
.status { border-radius: 12px; padding: 12px; font-weight: 600; font-size: 14px; margin: 10px 0; } .status.run { background: #F2F4F6; color: #44464F; } .status.done { background: #E6F4EA; color: #1E6B34; } .status.fail { background: #FDECEC; color: #C00000; }
.id-box { margin: 18px 0; } .id-num { display: inline-block; font-size: 34px; font-weight: 800; color: #043A52; background: #EEF4F7; border-radius: 14px; padding: 10px 28px; margin: 6px 0 10px; }
.warn-box { background: #FFEEEE; color: #B00020; border-radius: 12px; padding: 12px; margin-top: 8px; white-space: pre-line; }
/* 설명문 */
.g-top { display: flex; justify-content: space-between; font-size: 13px; color: #043A52; font-weight: 700; margin-bottom: 12px; }
.g-h { color: #043A52; } .g-p { margin: 8px 0; } .g-text { text-align: center; font-weight: 700; color: #B00020; font-size: 17px; }
.g-li { display: flex; gap: 8px; margin: 6px 0; } .g-note { background: #EEF4F7; border-radius: 12px; padding: 12px; margin: 12px 0; }
.g-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13.5px; table-layout: fixed; } .g-table td { border: 1px solid #D0D7DC; padding: 8px; vertical-align: top; word-break: keep-all; } .g-table tr.head td { background: #EEF4F7; font-weight: 700; }
.g-img { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; } .g-img img { width: 150px; border-radius: 12px; display: block; } .g-img > div:last-child { flex: 1; font-size: 14px; }
.g-phone { position: relative; width: 150px; flex: none; } .g-hot { position: absolute; border: 3px solid #FF7A00; border-radius: 8px; animation: pulse 1s infinite alternate; cursor: pointer; }
.g-hint { color: #F57C00; font-weight: 700; font-size: 13px; margin-top: 6px; } @keyframes pulse { from { opacity: 1; } to { opacity: .35; } }
/* 창 */
.overlay, .backdrop { position: fixed; inset: 0; z-index: 50; } .overlay { background: #8c8c8c; display: flex; align-items: center; justify-content: center; padding: 24px; }
.backdrop { background: rgba(0,0,0,.32); display: flex; align-items: flex-end; } .backdrop.center { align-items: center; justify-content: center; background: rgba(0,0,0,.48); padding: 0 9%; } .backdrop.dim { padding: 0 24px; }
.dialog { background: #fff; border-radius: 24px; padding: 24px; width: 100%; max-width: 420px; } .dialog .instr { font-size: 18px; } .dialog h2 { font-size: 24px; margin-top: 18px; } .dialog .btn { margin-top: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 16px; } .check input { width: 22px; height: 22px; accent-color: #043A52; flex: none; margin-top: 2px; }
/* 설문 */
.q { margin: 18px 0; } .q-label { font-weight: 600; margin-bottom: 8px; } .q-section { margin-top: 28px; border-top: 2px solid #043A52; padding-top: 6px; }
.opts { display: flex; flex-direction: column; gap: 6px; } .opts.grid { display: grid; grid-template-columns: 1fr 1fr; }
.opt { text-align: left; padding: 12px 14px; border: 1px solid #D0D7DC; border-radius: 12px; background: #fff; font-size: 15px; } .opt.sel { background: #EEF4F7; border-color: #043A52; font-weight: 700; color: #043A52; }
/* web_v11: 그림이 있는 선택지 (기초 설문 23 · 24번) */
.opts.imgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .opt.card { padding: 8px; border-width: 1.5px; display: flex; flex-direction: column; font-weight: 400; color: #000; min-width: 0; } .opt.card.sel { font-weight: 400; color: #000; border-color: #043A52; }
.thumb { width: 100%; border: 1px solid #E1E5E9; background: #F7F8FA; border-radius: 10px; overflow: hidden; line-height: 0; } .thumb-svg { display: block; width: 100%; height: auto; }
.card-label { padding: 9px 4px 3px; font-size: 14px; line-height: 18px; text-align: left; } .opt.card.sel .card-label { font-weight: 700; color: #043A52; }
.opt.rank { display: flex; gap: 10px; align-items: center; } .badge { min-width: 38px; text-align: center; font-weight: 800; color: #043A52; }
.dial { display: flex; align-items: center; gap: 8px; } .dial select, .dial input { font-size: 18px; padding: 10px; border-radius: 10px; border: 1px solid #79747E; background: #fff; width: 110px; margin: 0; }
.scale7, .scale5 { display: grid; gap: 5px; margin: 8px 0 4px; } .scale7 { grid-template-columns: repeat(7, 1fr); } .scale5 { grid-template-columns: repeat(5, 1fr); }
.scale7 button, .scale5 button { aspect-ratio: 1; border: 1px solid #D0D7DC; border-radius: 8px; background: #fff; font-size: 15px; padding: 0; } .scale7 button.sel, .scale5 button.sel { background: #043A52; color: #fff; border-color: #043A52; font-weight: 700; }
.srbai-item { margin-top: 12px; } .item input[type=range] { width: 100%; margin: 14px 0 6px; accent-color: #043A52; height: 30px; } .item input.untouched { opacity: .45; }
.change-box { background: #FFF6EC; border: 1px solid #FFD2A1; border-radius: 12px; padding: 12px; margin: 10px 0; } .route { background: #fff; border: 1px solid #BDBDBD; border-radius: 8px; padding: 8px; font-size: 14px; margin: 4px 0 8px; } .route.hot { border: 2px solid #FF7A00; }
/* 보정 */
.cal-screen { position: fixed; inset: 0; background: #fff; overflow: hidden; touch-action: none; }
.cal-dot { position: absolute; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #2F6BDE; box-shadow: inset 0 0 0 13px #2F6BDE, inset 0 0 0 21px #fff; transition: left .15s, top .15s; z-index: 2; } .cal-dot.collecting { background: #1b4fb8; box-shadow: inset 0 0 0 13px #1b4fb8, inset 0 0 0 21px #fff; }
.cal-counter { position: absolute; top: 7%; left: 0; right: 0; text-align: center; font-weight: 700; } .cal-status { position: absolute; top: 60%; left: 0; right: 0; text-align: center; color: #5f6368; white-space: pre-line; font-size: 15px; padding: 0 20px; }
.cal-ready { position: absolute; left: 24px; right: 24px; top: 58%; background: #fff; border-radius: 20px; box-shadow: 0 4px 22px rgba(0,0,0,.18); padding: 18px; text-align: center; z-index: 3; }
/* 메신저 */
.chat { position: fixed; inset: 0; height: 100dvh; display: flex; flex-direction: column; background: #D9E8F5; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.topbar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; min-height: 56px; flex: none; } .back { font-size: 23px; padding: 6px 10px; } .peer { font-size: 22px; font-weight: 700; padding: 6px 4px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; flex: none; } .icon-btn.old { background: transparent; }
.search-field { flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 0; background: #E5E5E5; padding: 0 16px; font-size: 17px; user-select: text; -webkit-user-select: text; }
.messages { flex: 1; overflow-y: auto; padding: 4px 14px 10px; -webkit-overflow-scrolling: touch; }
.date-div { text-align: center; margin: 12px 0 8px; } .date-div span { background: rgba(255,255,255,.75); border-radius: 12px; padding: 3px 12px; font-size: 12px; color: #444; }
.msg-row { display: flex; flex-direction: column; margin: 7px 0; } .msg-row.mine { align-items: flex-end; } .msg-row.other { align-items: flex-start; }
.bubble { max-width: 76%; padding: 10px 13px; border-radius: 16px; font-size: 16px; word-break: break-word; } .bubble.other { background: #fff; } .bubble.mine { background: #FFE45C; } .bubble.bare { background: transparent; padding: 2px; }
.bubble mark { background: #000; color: #fff; } .emoji-msg { font-size: 44px; line-height: 1.1; } .photo-msg { width: 140px; height: 105px; border-radius: 14px; background: #DDE3EA center / cover no-repeat; }   /* web_v07: 보낸 사진 크기를 줄임 (전에는 200×140) */
.reaction-chip { background: #fff; border-radius: 12px; padding: 1px 8px; font-size: 15px; margin-top: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.inputbar-wrap { flex: none; padding: 10px 14px; } .inputbar { display: flex; align-items: center; background: #FFFDF6; border-radius: 30px; padding: 8px 9px 8px 10px; min-height: 60px; }
.plus { width: 36px; height: 44px; border: 0; background: transparent; font-size: 34px; line-height: 1; color: #5C3947; padding: 0; flex: none; } .emoji-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #E8E6DF; font-size: 26px; line-height: 1; padding: 0; flex: none; }
.old { flex: none; } .slot-plus { width: 36px; height: 44px; } .slot-emoji { width: 44px; height: 44px; }
.msg-input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 19px; padding: 6px 8px; outline: none; user-select: text; -webkit-user-select: text; }
.send { width: 50px; height: 50px; border-radius: 50%; border: 0; background: #5C3947; color: #fff; font-size: 20px; flex: none; margin-left: 4px; }
.emoji-panel { flex: none; background: #fff; padding: 12px; } .emoji-row { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: none; } .emoji-item { font-size: 30px; padding: 10px; border: 0; background: transparent; flex: none; }
.emoji-tabs { display: flex; gap: 8px; margin: 8px 0 2px; } .emoji-tab { flex: 1; padding: 8px 0; border-radius: 10px; border: 0; background: #F2F2F2; font-size: 14px; } .emoji-tab.sel { background: #E0E0E0; font-weight: 700; }
.layer { position: relative; z-index: 60; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }   /* web_v08: 팝업 글자가 선택되어 기기의 복사 메뉴가 뜨는 것을 막음 */
.sheet { background: #fff; width: 100%; border-radius: 30px 30px 0 0; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); } .sheet-title { font-size: 24px; font-weight: 700; padding: 6px 4px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; } .choice, .menu-row { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; border: 0; background: #F5F6F8; font-size: 17px; }
.menu-row { width: 100%; background: transparent; padding: 12px 4px; } .choice-icon { width: 32px; height: 32px; border-radius: 9px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.photo-row { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; } .photo { width: 104px; height: 104px; border-radius: 14px; border: 3px solid transparent; flex: none; padding: 0; background: #DDE3EA center / cover no-repeat; } .photo.sel { border-color: #FF7A00; } .photo.full { background: #F0F1F3; font-size: 14px; color: #444; }
.text-btn { border: 0; background: transparent; font-size: 18px; font-weight: 700; color: #5C3947; padding: 8px 10px; } .text-btn.off { color: #BDBDBD; }
.popup { background: #fff; border-radius: 28px; width: 100%; max-height: 580px; overflow: hidden; display: flex; flex-direction: column; } .popup .pad { padding: 18px; }
.reaction-row { height: 80px; display: flex; align-items: center; padding: 0 14px; overflow-x: auto; flex: none; } .reaction-item { font-size: 28px; padding: 8px; border: 0; background: transparent; flex: none; }
.popup-list { overflow-y: auto; padding: 20px; display: flex; flex-direction: column; } .popup-item { text-align: left; border: 0; background: transparent; font-size: 18px; padding: 11px 4px; }

/* web_v11: 점검 모드 (점검용 서버에서만 쓰임) */
.test-chip { position: fixed; top: 6px; right: 6px; z-index: 300; border: 1px solid #B26A00; background: #FFF3E0; color: #B26A00; font-size: 12px; font-weight: 700; border-radius: 14px; padding: 5px 11px; opacity: .92; }
.test-menu h3 { margin: 22px 0 4px; } .test-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; margin: 8px 0; } .test-row.three { grid-template-columns: repeat(3, 1fr); } .test-row.four { grid-template-columns: repeat(4, 1fr); } .test-row.five { grid-template-columns: repeat(5, 1fr); }
.test-btn { border: 1px solid #B26A00; background: #fff; color: #7A4A00; border-radius: 10px; padding: 8px 4px; font-size: 14px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 1px; } .test-btn small { font-size: 10px; font-weight: 400; letter-spacing: .5px; } .test-btn.sel { background: #B26A00; color: #fff; }
.test-stage { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; margin-top: 8px; } .test-stage small { font-size: 12px; color: #5f6368; font-weight: 400; }
.test-box { margin-top: 18px; padding-top: 12px; border-top: 1px dashed #B26A00; } .test-title { font-size: 13px; font-weight: 700; color: #B26A00; margin-bottom: 4px; }

/* web_v14: 첫 연습 과제 전 화면 안내 (설명하는 부분만 밝게 두고 나머지를 어둡게) */
.coach { position: fixed; inset: 0; z-index: 150; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.coach-hole { position: fixed; box-shadow: 0 0 0 200vmax rgba(0,0,0,.45); pointer-events: none; transition: left .22s, top .22s, width .22s, height .22s, border-radius .22s; }
.coach-bubble { position: fixed; background: #156082; color: #fff; border: 2.5px solid #042433; padding: 14px 16px 12px; width: min(330px, calc(100vw - 32px)); box-sizing: border-box; text-align: center; pointer-events: none; transition: left .22s, top .22s; }
.coach-bubble p { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 600; word-break: keep-all; } .coach-bubble .coach-foot { margin-top: 10px; font-size: 12.5px; font-weight: 400; opacity: .85; }
.coach-arrow { position: absolute; width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; }
.coach-arrow.down { bottom: -16px; border-top: 16px solid #042433; } .coach-arrow.down::after { content: ''; position: absolute; left: -10px; top: -19px; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 13px solid #156082; }
.coach-arrow.up { top: -16px; border-bottom: 16px solid #042433; } .coach-arrow.up::after { content: ''; position: absolute; left: -10px; top: 3px; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 13px solid #156082; }

/* web_v15: 과업 안내 · 현재 과업 · 연습 완료 창은 뒤 화면을 가림 */
.backdrop.center.solid { background: #8c8c8c; }
/* web_v15: 추가 과제 (방식 선택) */
.choice-page h1 { margin-bottom: 6px; } .choice-card { margin: 16px 0; } .choice-card h3 { margin: 2px 0 4px; }
.choice-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.opt.choice-opt { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-weight: 400; padding: 12px; min-height: 110px; } .opt.choice-opt b { font-size: 15px; } .opt.choice-opt .small { line-height: 1.45; color: #333; word-break: keep-all; }
.opt.choice-opt.sel { font-weight: 400; } .opt.choice-opt.sel b { color: #043A52; }
.opt:disabled { opacity: .75; }
/* web_v17: 안내 상자 (조작 자세 유지 안내) */
.note-box { background: #EAF2FF; color: #12305C; border: 1px solid #B7CDF5; border-radius: 12px; padding: 14px; margin-top: 12px; white-space: pre-line; text-align: center; line-height: 1.5; }
/* web_v18: 사후 설문 '무엇이 달라졌는지' 쪽의 기능 이름 */
.ntype-title { margin-top: 18px; }
