:root{--customer-vh: 100dvh;--orange: #FC4E00;--orange-dark: #e04500;--orange-light: #fff0e8;--white: #fff;--text: #1a1a2e;--text-light: #666;--text-muted: #999;--border: #e0e0e0;--danger: #e53935;--success: #2e7d32;--warning-bg: #fff3cd;--warning-text: #856404;--gray-light: #f0f2f5;--bubble-mine: var(--orange-light)}.customer-mobile-app,.customer-mobile-app *,.customer-mobile-app *:before,.customer-mobile-app *:after{box-sizing:border-box}.customer-mobile-app{width:min(100%,375px);height:var(--customer-vh);min-height:520px;margin:0 auto;position:relative;overflow:hidden;background:var(--white);color:var(--text);font-family:Segoe UI,Apple SD Gothic Neo,Malgun Gothic,sans-serif}.customer-mobile-app button{cursor:pointer;border:none;font-family:inherit;transition:all .15s;-webkit-tap-highlight-color:transparent}.customer-mobile-app button:disabled{cursor:default;opacity:.6}.customer-mobile-app input{font-family:inherit;outline:none;font-size:16px}.nickname-screen,.state-screen{height:100%;padding:40px 16px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.nickname-screen .ci-logo-vertical,.state-screen .ci-logo-vertical{height:50px;width:auto;margin-bottom:28px;transform:translate(-10px)}.nickname-screen h2,.state-screen h2{font-size:1.2rem;color:var(--orange);margin:0 0 4px}.nickname-screen .subtitle{font-size:.8rem;color:var(--text-muted);margin:0 0 24px}.nickname-screen form{width:100%}.nickname-screen .form-group{width:100%;text-align:left;margin-bottom:16px}.nickname-screen .form-group label{display:block;font-size:.85rem;font-weight:600;margin-bottom:6px;color:#444}.nickname-screen input{width:100%;padding:12px 14px;border:1.5px solid var(--border);border-radius:10px;font-size:.95rem;transition:border .2s}.nickname-screen input::placeholder{font-size:12px}.nickname-screen input:focus{border-color:var(--orange)}.nickname-screen .char-count{text-align:right;font-size:.7rem;color:var(--text-muted);margin-top:3px}.nickname-screen .error-msg{color:var(--danger);font-size:.72rem;margin-top:4px;text-align:left;display:none}.nickname-screen .error-msg.visible{display:block}.nickname-screen .rules{text-align:left;font-size:.68rem;color:var(--text-muted);margin-top:10px;line-height:1.6;background:#fafafa;padding:10px 14px;border-radius:8px}.nickname-screen .rules span{color:var(--orange);font-weight:700}.btn-start{width:100%;padding:14px;background:var(--orange);color:var(--white);border-radius:12px;font-size:1rem;font-weight:700;margin-top:14px}.btn-start:hover{background:var(--orange-dark)}.chat-screen{display:flex;flex-direction:column;height:100%;position:relative}.chat-ci-bar{display:flex;align-items:center;justify-content:center;padding:8px 14px;background:var(--white);flex-shrink:0;border-bottom:1px solid #eee}.chat-ci-bar .ci-logo-horizontal{height:24px;width:auto}.chat-top-bar{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #eee;background:#fafafa;flex-shrink:0}.chat-top-bar .avatar-sm{width:32px;height:32px;border-radius:50%;background:var(--orange);color:var(--white);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.75rem;flex-shrink:0}.chat-top-bar .partner-info{flex:1}.chat-top-bar .partner-name{font-weight:700;font-size:.85rem}.chat-top-bar .partner-status{font-size:.65rem;color:var(--success)}.chat-font-button{width:auto;height:32px;flex:0 0 auto;border-radius:8px;background:var(--bubble-mine)!important;color:var(--orange);border:1px solid var(--orange)!important;font-size:.82rem;font-weight:700;padding:4px 10px}.chat-font-button:active{background:var(--orange-light);border-color:var(--orange)!important}.chat-messages{flex:1;overflow-y:auto;padding:12px 14px;display:flex;flex-direction:column;gap:8px;background:#f5f6f8}.chat-messages::-webkit-scrollbar{width:3px}.chat-messages::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}.msg-row{display:flex;gap:6px;max-width:82%;margin:0}.msg-row.mine{align-self:flex-end;flex-direction:row-reverse}.msg-row.system{align-self:center;max-width:92%}.msg-bubble{padding:9px 12px;border-radius:14px;font-size:calc(.82rem * var(--chat-font-scale, 1));line-height:1.45;white-space:pre-wrap;word-break:break-word}.msg-row:not(.mine):not(.system) .msg-bubble{background:var(--white);border:1px solid #e8eaed;border-radius:4px 14px 14px}.msg-row.mine .msg-bubble{background:var(--bubble-mine);color:#111;border-radius:14px 4px 14px 14px}.msg-row.system .msg-bubble{background:var(--warning-bg);color:var(--warning-text);font-size:calc(.75rem * var(--chat-font-scale, 1));text-align:center;border-radius:10px}.msg-bubble.failed{outline:1px solid var(--danger)}.msg-time{font-size:calc(.6rem * var(--chat-font-scale, 1));color:var(--text-muted);align-self:flex-end;margin-bottom:1px;white-space:nowrap}.send-error{display:block;margin:3px 0 0;padding:0;background:transparent;color:var(--danger);font-size:.65rem}.msg-file{display:flex;align-items:center;gap:6px;padding:7px 10px;background:var(--white);border:1px solid var(--border);border-radius:8px;margin-top:3px;text-align:left;color:inherit}.msg-file.expired{opacity:.5;background:#f5f5f5;filter:grayscale(100%)}.msg-file .file-icon{font-size:1.3rem}.msg-file .file-name,.msg-file .file-size,.msg-file .expired-label{display:block}.msg-file .file-name{font-size:calc(.72rem * var(--chat-font-scale, 1));font-weight:500}.msg-file .file-size{font-size:calc(.65rem * var(--chat-font-scale, 1));color:var(--text-muted)}.msg-file.expired .file-name{text-decoration:line-through;color:var(--text-muted)}.msg-file .expired-label{font-size:calc(.6rem * var(--chat-font-scale, 1));color:var(--danger);font-weight:600}.chat-input-bar{display:flex;gap:6px;padding:8px 12px;border-top:1px solid #eee;align-items:center;background:var(--white);flex-shrink:0}.chat-input-bar .btn-attach{background:var(--gray-light);color:#555;width:34px;height:34px;border-radius:50%;font-size:1rem;display:flex;align-items:center;justify-content:center;flex:0 0 auto}.chat-input-bar textarea{flex:1;min-width:0;padding:8px 12px;border:1.5px solid var(--border);border-radius:18px;font-size:calc(.85rem * var(--chat-font-scale, 1));resize:none;height:38px;font-family:inherit;outline:none;box-sizing:border-box}.chat-input-bar textarea:focus{border-color:var(--orange)}.chat-input-bar .btn-send{background:var(--orange);color:var(--white);width:34px;height:34px;border-radius:50%;font-size:1rem;display:flex;align-items:center;justify-content:center;flex:0 0 auto}.chat-footer-bar{display:flex;gap:8px;padding:8px 12px;border-top:1px solid #eee;background:#fafafa;flex-shrink:0;padding-bottom:max(8px,env(safe-area-inset-bottom))}.chat-footer-bar button{flex:1;padding:10px 8px;border-radius:8px;font-size:.72rem;font-weight:600}.btn-leave-mobile{background:var(--white);color:var(--danger);border:1px solid var(--danger)!important}.btn-leave-mobile:active{background:var(--danger);color:var(--white)}.btn-copy-mobile{background:var(--orange);color:var(--white)}.btn-copy-mobile:active{background:var(--orange-dark)}.float-call-btn-mobile{position:absolute;bottom:135px;right:16px;padding:8px 14px;border-radius:20px;background:linear-gradient(135deg,#34495e,#4f6f8f);color:var(--white);box-shadow:0 4px 12px #34495e40;display:flex;align-items:center;justify-content:center;gap:5px;font-size:.72rem;font-weight:600;z-index:40}.float-call-btn-mobile:active{transform:scale(.92);box-shadow:0 2px 8px #34495e4d}.float-call-btn-mobile:after{content:"";position:absolute;inset:-3px;border-radius:20px;border:1.5px solid #34495e;opacity:0;animation:pulse-ring-mobile 2s cubic-bezier(.215,.61,.355,1) infinite}.modal-overlay{display:none;position:absolute;inset:0;background:#0000008c;z-index:50;align-items:flex-end;justify-content:center}.modal-overlay.active{display:flex}.modal-sheet{background:var(--white);border-radius:20px 20px 0 0;padding:24px 20px 32px;width:100%;max-height:70%;text-align:center;box-shadow:0 -4px 20px #00000026;animation:slideUp .25s ease-out}.modal-sheet h3{font-size:1rem;color:var(--text);margin:0 0 8px}.modal-sheet h3.call-modal-title{color:var(--orange)}.modal-sheet p{font-size:.8rem;color:var(--text-light);margin:0 0 16px;line-height:1.5}.modal-sheet .modal-btns{display:flex;flex-direction:column;gap:8px}.modal-sheet .modal-btns button{width:100%;padding:12px;border-radius:10px;font-size:.85rem;font-weight:600}.btn-modal-cancel{background:var(--gray-light);color:#555}.btn-modal-copy{background:var(--orange);color:var(--white)}.btn-modal-leave{background:var(--danger);color:var(--white)}.font-size-sheet{max-height:82%}.font-size-preview{min-height:62px;display:flex;align-items:center;justify-content:center;margin:4px 0 14px;padding:12px;border-radius:12px;background:var(--orange-light);color:#111;line-height:1.45;transition:font-size .15s}.font-size-options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.font-size-options button{min-height:54px;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:10px;background:var(--gray-light);color:#555;font-size:.82rem}.font-size-options button small{color:var(--text-muted);font-size:.68rem}.font-size-options button.selected{background:var(--orange);color:var(--white)}.font-size-options button.selected small{color:var(--white)}.font-size-close{width:100%;margin-top:10px;padding:12px;border-radius:10px;font-size:.85rem;font-weight:600}.phone-toast{position:absolute;bottom:80px;left:50%;transform:translate(-50%);background:#333;color:var(--white);padding:8px 18px;border-radius:16px;font-size:.75rem;z-index:60;opacity:0;transition:opacity .3s;pointer-events:none;white-space:nowrap}.phone-toast.show{opacity:1}.state-screen p{max-width:300px;margin:12px 0 0;color:var(--text-light);font-size:.8rem;line-height:1.5}.state-screen .btn-start{max-width:300px}.spinner{width:34px;height:34px;border:3px solid #ffd8c8;border-top-color:var(--orange);border-radius:50%;margin-bottom:24px;animation:spin .8s linear infinite}.customer-mobile-app.is-preview{width:375px;height:min(750px,var(--customer-vh));border-radius:0}.preview-share-apps{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0}.preview-share-apps button{min-height:54px;padding:7px 3px;border-radius:8px;background:#f2f3f5;color:#333;font-size:11px}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes pulse-ring-mobile{0%{transform:scale(.95);opacity:.8}50%{opacity:.4}to{transform:scale(1.05);opacity:0}}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:376px){.customer-mobile-app:not(.is-preview){width:100%;max-width:none}}@media(prefers-reduced-motion:reduce){.customer-mobile-app *,.customer-mobile-app *:before,.customer-mobile-app *:after{animation-duration:.01ms!important}}:root{font-family:Segoe UI,Apple SD Gothic Neo,Malgun Gothic,sans-serif;color:#1a1a2e;background:#fff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#fff}button,input,textarea{font:inherit}
