@font-face{font-family:GMChatSans;src:url("NotoSansKR.ttf") format("truetype");font-weight:100 900;font-style:normal;font-display:swap}html,body,button,input,textarea,select{font-family:GMChatSans,system-ui,sans-serif}
body{background:#f5f7fa}.initial-loading{padding:60px;text-align:center;color:#66758c}.signin-card{margin:12vh auto;padding:40px;max-width:460px;background:white;border:1px solid #e4e9f1;border-radius:22px;text-align:center}.signin-card .brand{justify-content:center;margin-bottom:38px}.signin-card h1{font-size:27px;margin-bottom:20px}.signin-card p{line-height:1.9;color:#788497;margin-bottom:30px}.signin-card>a{display:flex;margin-top:14px}.connected-top{height:76px;padding:0 30px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e5eaf2;background:white}.connected-top .brand{gap:12px}.connected-top .brand b{background:#eef4ff;color:#4073d6;font-size:11px;padding:5px 9px;border-radius:6px;font-weight:500}.top-links{display:flex;gap:24px;color:#748299;font-size:12px}.connected-shell{max-width:1480px;margin:auto;display:grid;grid-template-columns:300px minmax(0,1fr);height:calc(100dvh - 76px);padding:24px;gap:20px}.connected-shell.staff{grid-template-columns:300px minmax(0,1fr) 300px}.chat-inbox,.connected-main,.connected-notes{background:white;border:1px solid #e6eaf1;border-radius:18px;overflow:hidden;min-height:0}.chat-inbox{display:flex;flex-direction:column}.connected-inbox-head{padding:25px 22px 20px}.connected-inbox-head h1{font-size:22px;margin:12px 0 6px;letter-spacing:-1px}.connected-inbox-head p{font-size:12px;color:#7c8797;line-height:1.7;margin-bottom:20px}.connected-inbox-head .primary{width:100%;min-height:44px;font-size:13px}.list-tools{display:flex;align-items:center;justify-content:space-between;padding:0 20px 12px}.list-tools select{border:0;max-width:150px;background:transparent;font-size:12px}.list-tools button{font-size:11px;color:#718099;padding:8px}.chat-thread-list{overflow:auto;flex:1}.connected-thread{width:100%;display:block;text-align:left;padding:19px 22px;border-top:1px solid #eef1f6;border-radius:0}.connected-thread:hover{background:#f9fbff}.connected-thread.selected{background:#eef4ff;border-left:3px solid #3978ed;padding-left:19px}.connected-thread strong{font-size:13px;display:block;line-height:1.6;word-break:break-word;font-weight:600}.connected-thread .row-meta{display:flex;justify-content:space-between;gap:8px;margin-top:10px;align-items:center}.connected-thread time{font-size:11px;color:#91a0b1}.inbox-footer{padding:14px 20px;background:#fafbfe;font-size:11px;line-height:1.8;color:#7c8898;border-top:1px solid #e9edf5}.connected-main{display:flex;flex-direction:column;min-width:0;position:relative}.connected-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid #edf0f5;gap:12px}.connected-heading h2{font-size:17px;margin:4px 0 7px}.connected-heading p{font-size:11px;color:#8290a3;line-height:1.7}.connected-heading .actions{display:flex;gap:10px;align-items:center}.mobile-back,.notes-mobile{display:none}.connected-log{flex:1;overflow:auto;min-height:0;padding:24px}.connected-log .messages{padding:0;display:flex;flex-direction:column;gap:18px}.connected-log .message{display:flex;flex-direction:column;align-items:flex-start;margin:0}.connected-log .message.own{align-items:flex-end}.connected-log .bubble{border-radius:14px;background:#f2f5f9;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:14px;padding:14px 17px}.connected-log .own .bubble{background:#edf3ff;color:#2e548e}.connected-log .bubble-wrap{max-width:87%}.connected-log .sender{margin-bottom:7px;font-weight:600;font-size:11px;color:#8190a3}.connected-log .message-meta{margin-top:7px;font-size:10px;color:#94a0b1}.connected-log .system-row{align-self:center;text-align:center;font-size:11px;line-height:1.8;color:#8793a3;background:#f7f9fc;padding:9px 15px;border-radius:10px}.empty-state{display:flex;height:100%;min-height:210px;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px}.empty-symbol{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#edf4ff;color:#5380d0;font-size:23px;margin-bottom:20px}.empty-state h2{font-size:20px;letter-spacing:-.6px;margin-bottom:13px}.empty-state p{font-size:13px;line-height:1.9;color:#8390a1;max-width:360px}.connected-composer{border-top:1px solid #edf0f5;padding:20px 24px 18px;background:white}.connected-composer label{display:block;font-size:11px;margin-bottom:10px;color:#748198}.connected-composer .input-box{border:1px solid #dce4f0;border-radius:12px;padding:13px}.connected-composer textarea{border:0;background:transparent;box-shadow:none!important;width:100%;height:70px;font-size:14px;line-height:1.7;outline:none!important}.input-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.input-bottom small{font-size:10px;color:#8b99aa}.input-bottom .primary{padding:9px 23px;min-height:39px;font-size:12px}.compose-footnote{font-size:10px;color:#8d9aac;line-height:1.7;margin-top:10px}.flow-notice{padding:11px 23px;font-size:12px;line-height:1.7;background:#f0f5ff;color:#496eaa;border-bottom:1px solid #e5edf9}.flow-notice.error{background:#fff6ee;color:#966033}.flow-notice button,.flow-notice a{margin-left:12px;color:inherit;text-decoration:underline;font-weight:600}.connected-notes{padding:25px 23px;overflow:auto}.connected-notes h2{font-size:16px;margin-bottom:10px}.connected-notes>p{font-size:11px;line-height:1.8;color:#8b97a7;margin-bottom:27px}.connected-notes label{display:block;font-size:11px;color:#728298;margin:20px 0 9px}.connected-notes textarea,.connected-notes input{width:100%;border:1px solid #e0e6ee;border-radius:8px;padding:11px;background:#fcfdff;font-size:13px;line-height:1.7}.connected-notes .secondary{width:100%;margin-top:20px;font-size:12px}.notes-status{color:#476ea7;font-size:11px;line-height:1.7;margin-top:12px}.list-empty{padding:28px 20px;color:#8b98a9;font-size:12px;line-height:1.9}.list-next{padding:12px;width:100%;color:#426db7}.expired-panel{position:absolute;inset:0;z-index:5;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px;text-align:center;gap:18px}.expired-panel p{font-size:13px;line-height:1.9;color:#8090a6}.connected-shell.customer{max-width:1100px}.badge.pending{background:#f2f2fd;color:#6d6aa2}.test-note{font-size:10px;color:#8592a5;background:#f6f8fc;padding:7px 12px;border-radius:6px}.composer-loading{opacity:.5;pointer-events:none}
@media(max-width:1100px){.connected-shell.staff{grid-template-columns:250px minmax(0,1fr)}.staff .connected-notes{display:none}.notes-mobile{display:block}.connected-shell.show-notes .connected-notes{display:block;position:fixed;inset:90px 24px 24px 30%;z-index:10;box-shadow:0 15px 50px #20324c20}.connected-heading{padding:18px 20px}.top-links{gap:16px}.test-note{display:none}}
@media(max-width:700px){.connected-top{height:64px;padding:0 18px}.connected-top .brand strong{font-size:19px}.connected-top .brand b{font-size:10px}.top-links{gap:12px;font-size:11px}.top-links .my-page{display:block}.connected-top .brand b{display:none}.top-links{align-items:center;flex-shrink:0}.top-links a{white-space:nowrap;padding:10px 0}.connected-shell,.connected-shell.staff{display:block;padding:0;height:calc(100dvh - 64px)}.chat-inbox,.connected-main,.connected-notes{border:0;border-radius:0;height:100%}.connected-main{display:none}.connected-shell.mobile-room .chat-inbox{display:none}.connected-shell.mobile-room .connected-main{display:flex}.mobile-back{display:block;white-space:nowrap;font-size:12px;color:#5a7190;min-height:38px}.connected-heading{padding:14px 18px;align-items:flex-start}.connected-heading h2{font-size:16px}.connected-heading p{font-size:10px}.connected-heading .actions{flex-wrap:wrap;justify-content:flex-end;gap:5px}.connected-heading .actions button{font-size:11px;min-height:34px;padding:8px}.connected-log{padding:22px 18px}.connected-composer{padding:15px 18px max(16px,env(safe-area-inset-bottom))}.connected-composer textarea{font-size:16px;height:74px}.connected-composer label{font-size:11px}.compose-footnote{font-size:10px}.flow-notice{padding:10px 18px;font-size:11px}.connected-shell.show-notes .connected-notes{inset:64px 0 0;width:100%;height:calc(100dvh - 64px);border-radius:0;padding:24px}.connected-notes textarea,.connected-notes input{font-size:16px}.signin-card{margin:12vh 20px;padding:30px 20px}.empty-state{padding:25px}.empty-state h2{font-size:18px}.connected-inbox-head{padding-top:28px}}

.chat-files-tools{padding-top:10px}.chat-files-tools button,.chat-notify-button{border:1px solid #dce3ee;border-radius:10px;background:#fff;color:#275be1;padding:9px 14px;font:inherit;cursor:pointer}.chat-files-tools p,.chat-notify-status{font-size:12px;color:#667085;line-height:1.6;margin:6px 0}.file-download{background:none;border:0;color:#215bdc;text-align:left;cursor:pointer;font:inherit;overflow-wrap:anywhere;max-width:100%}.file-download small{display:block;color:#667085;font-size:12px;margin-top:5px}.chat-notify-button{margin-top:8px;width:100%;font-size:13px}.chat-files-tools .file-status{color:#9a520b}.chat-privacy-link{font-size:12px;color:#667085}.chat-files-tools input[type=file]{max-width:100%;font-size:14px}.chat-tools-error{color:#b42318!important}.chat-files-tools button:disabled{opacity:.5;cursor:wait}

/* Compact attachment control; the real file input remains keyboard accessible. */
.chat-files-tools>label{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin:0 8px 4px 0;padding:9px 14px;border:1px solid #dce4f0;border-radius:10px;background:#f7f9fd;color:#315d9c;font-size:12px;font-weight:600;cursor:pointer;overflow:hidden}
.chat-files-tools>label:hover,.chat-files-tools>label:focus-within{background:#eaf1ff;border-color:#9bbaf2}
.chat-files-tools>label input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
.chat-files-tools>label:has(input:disabled){opacity:.5;cursor:wait}
.chat-files-tools>p:empty{display:none}.chat-files-tools>p{margin:3px 0;font-size:11px}.chat-privacy-link{display:inline-block;margin-top:3px;font-size:11px}.chat-notify-status{font-size:11px}
@media(max-width:700px){.connected-composer textarea{height:54px}.compose-footnote{line-height:1.55}.chat-files-tools{padding-top:8px}.connected-log{scrollbar-width:thin}}

body.gmchat-embedded .connected-top{display:none}body.gmchat-embedded .connected-shell{height:100dvh}
body.gmchat-embedded .connected-shell.show-notes .connected-notes{inset:0;height:100dvh}
@media(max-height:620px){body.gmchat-embedded .connected-heading{padding:7px 14px}body.gmchat-embedded .connected-composer{padding:8px 14px}body.gmchat-embedded .connected-composer textarea{height:42px}body.gmchat-embedded .compose-footnote{margin-top:5px}body.gmchat-embedded .chat-files-tools{padding:6px 14px}}

#chat-push-settings{margin-top:16px;padding:16px;border:1px solid #dce5f5;border-radius:14px;background:#f6f9ff;color:#243348}#chat-push-settings strong{font-size:13px}#chat-push-settings p{font-size:12px;line-height:1.7;margin:8px 0}#chat-push-settings small{display:block;font-size:11px;line-height:1.6;color:#64748b;margin-top:9px}.chat-push-button{border:0;border-radius:8px;background:#2563eb;color:#fff;padding:10px 12px;width:100%;font-weight:600}.chat-push-button:disabled{opacity:.6}

#chat-logout-form{display:inline-flex;margin:0}#chat-logout{appearance:none;border:0;background:transparent;color:inherit;font:inherit;padding:0;cursor:pointer;white-space:nowrap}

/* Request context is distinct from the message and never auto-sends. */
.chat-order-context{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 24px 12px;padding:14px 16px;border:1px solid #dce5f5;border-radius:12px;background:#f6f8fd;flex-shrink:0;min-width:0}
.chat-order-context>div{min-width:0}.chat-order-context small{display:block;color:#68758b;font-size:11px;margin-bottom:3px}.chat-order-context strong{font-size:14px;color:#202a3b}.chat-order-context p{font-size:12px;line-height:1.5;color:#58657a;margin:4px 0 0;overflow-wrap:anywhere}.chat-order-context a{flex-shrink:0;color:#315be6;font-size:12px;text-decoration:none;padding:7px 0}.chat-order-context a:hover{text-decoration:underline}.chat-order-context.error{background:#fff7ed;border-color:#fed7aa}
@media(max-width:700px){.chat-order-context{margin:0 14px 8px;padding:10px 12px;gap:10px}.chat-order-context p{font-size:11px}.chat-order-context strong{font-size:13px}}

/* Let a short multi-line inquiry remain readable without taking over the conversation. */
.connected-composer textarea{display:block;min-height:70px;padding:0;resize:none;scrollbar-width:thin}
.connected-composer .input-box:focus-within{border-color:#4267cf;box-shadow:0 0 0 2px #4267cf1a}
@media(max-width:700px){.connected-composer textarea{min-height:54px}}
@media(max-height:620px){body.gmchat-embedded .connected-composer textarea{min-height:42px}}

/* On phones, staff notes occupy one clear page instead of slicing the workspace menu. */
@media(max-width:700px){.connected-shell.staff.show-notes .connected-notes{inset:0;height:100dvh;z-index:100}.connected-shell.staff.show-notes .connected-notes>.notes-mobile{min-height:40px;margin-bottom:8px}body:has(.connected-shell.staff.show-notes){overflow:hidden}}

/* Embedded chat keeps one scrolling conversation rather than a scrolling whole page. */
body.gmchat-embedded{overflow:hidden}
body.gmchat-embedded .gmstaff-chat-menu{display:none}
body.gmchat-embedded .connected-shell{padding:0;gap:12px;min-height:0}
body.gmchat-embedded .connected-main{border:0;border-radius:0;min-height:0}
body.gmchat-embedded .connected-heading{flex:none;padding:12px 18px;gap:12px}
body.gmchat-embedded .connected-heading h2{margin:2px 0 5px}
body.gmchat-embedded .connected-log{flex:1 1 0;min-height:90px;padding:18px;overscroll-behavior:contain;scrollbar-width:thin}
body.gmchat-embedded .connected-composer{flex:0 1 auto;min-height:0;max-height:45dvh;overflow-y:auto;padding:10px 18px max(10px,env(safe-area-inset-bottom))}
body.gmchat-embedded .connected-composer label{margin-bottom:6px}
body.gmchat-embedded .connected-composer .input-box{padding:10px 12px}
body.gmchat-embedded .connected-composer textarea{height:58px;min-height:58px;max-height:110px;line-height:1.6}
body.gmchat-embedded .compose-footnote{margin-top:7px;line-height:1.6}
body.gmchat-embedded .chat-files-tools{padding:6px 0 0;display:flex;align-items:center;flex-wrap:wrap;gap:3px 12px}
body.gmchat-embedded .chat-files-tools>label{margin:0;padding:7px 12px;min-height:38px;flex:none}
body.gmchat-embedded .chat-files-tools>p{margin:0;font-size:11px}
body.gmchat-embedded .chat-privacy-link{margin:0;font-size:11px}
@media(max-width:700px){body.gmchat-embedded .connected-composer textarea{font-size:16px}body.gmchat-embedded .connected-heading .mobile-back{min-height:32px}}
@media(max-height:480px){body.gmchat-embedded .connected-heading{padding:5px 12px}body.gmchat-embedded .connected-heading p{display:none}body.gmchat-embedded .connected-composer{max-height:45dvh;padding:6px 12px}body.gmchat-embedded .connected-composer textarea{height:42px;min-height:42px}body.gmchat-embedded .connected-log{min-height:48px}}

/* Selects remain native controls, with a visible disclosure indicator and text clearance. */
body select:not([multiple]):not([size]),body select:not([multiple])[size="1"],body #gm-approved select:not([multiple]):not([size]),body #gm-approved select:not([multiple])[size="1"],body #app select:not([multiple]):not([size]),body #app select:not([multiple])[size="1"],body #wpbody select:not([multiple]):not([size]),body #wpbody select:not([multiple])[size="1"]{appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235e6b80' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-position:right 14px center!important;background-repeat:no-repeat!important;background-size:16px 16px!important;padding-right:42px!important}
@media(forced-colors:active){body select:not([multiple]):not([size]),body select:not([multiple])[size="1"],body #gm-approved select:not([multiple]):not([size]),body #gm-approved select:not([multiple])[size="1"],body #app select:not([multiple]):not([size]),body #app select:not([multiple])[size="1"],body #wpbody select:not([multiple]):not([size]),body #wpbody select:not([multiple])[size="1"]{appearance:auto!important;background-image:none!important}}

/* Keep conversations reachable even while notification settings are expanded. */
.chat-inbox>.connected-inbox-head{flex:0 0 auto;max-height:52%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.chat-inbox>.list-tools,.chat-inbox>.inbox-footer{flex:0 0 auto}
.chat-inbox>.chat-thread-list{flex:1 1 auto;min-height:120px;overscroll-behavior:contain;scrollbar-width:thin}
.chat-alert-options{margin-top:12px;border:1px solid #e2e7f1;border-radius:10px;background:#fafbfe}
.chat-alert-options>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:11px 12px;min-height:44px;color:#3d5274;font-size:12px;font-weight:600}
.chat-alert-options>summary::-webkit-details-marker{display:none}
.chat-alert-options>summary::after{content:'+';font-size:18px;font-weight:400;color:#5274bf}
.chat-alert-options[open]>summary::after{content:'−'}
.chat-alert-options>summary:focus-visible{outline:2px solid #3564ed;outline-offset:2px;border-radius:8px}
.chat-alert-controls{padding:0 12px 12px}
.chat-alert-controls .chat-notify-button{margin-top:4px;font-size:12px;line-height:1.6;min-height:40px}
.chat-alert-controls .chat-notify-status{margin:8px 0!important;font-size:11px!important}
.chat-alert-controls #chat-push-settings{margin-top:12px;padding:12px}
.connected-thread strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
@media(max-width:700px){.chat-inbox>.connected-inbox-head{padding:20px 22px 16px}.chat-inbox>.connected-inbox-head h1{margin-top:8px}.chat-inbox>.connected-inbox-head>p{margin-bottom:12px}}
@media(max-height:520px){.chat-inbox>.connected-inbox-head{max-height:42%;padding:12px 18px}.chat-inbox>.connected-inbox-head>.eyebrow,.chat-inbox>.connected-inbox-head>p,.chat-inbox>.inbox-footer{display:none}.chat-inbox>.chat-thread-list{min-height:80px}}

/* The standalone staff menu is part of the viewport, not extra height below it. */
body:has(.connected-shell){height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
body:has(.connected-shell)>.gmstaff-chat-menu{flex:0 0 auto}
body:has(.connected-shell)>#app{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
#app>.connected-top{flex:0 0 auto}
#app>.connected-shell{height:auto;flex:1 1 auto;min-height:0;width:100%}
@media(max-width:700px){
 body:has(.connected-shell.mobile-room)>.gmstaff-chat-menu{display:none}
 .connected-main>.connected-heading{flex:0 0 auto}
 .connected-main>.connected-log{flex:1 1 0;min-height:100px;overscroll-behavior:contain}
 .connected-main>.connected-composer{flex:0 1 auto;min-height:0;max-height:46dvh;overflow-y:auto;padding:10px 18px max(10px,env(safe-area-inset-bottom))}
 .connected-composer label{margin-bottom:6px}
 .connected-composer .input-box{padding:10px 12px}
 .connected-composer textarea{height:58px;min-height:58px;line-height:1.6}
 .connected-composer .compose-footnote{margin-top:7px}
 .connected-composer .chat-files-tools{padding:6px 0 0;display:flex;align-items:center;flex-wrap:wrap;gap:3px 12px}
 .connected-composer .chat-files-tools>label{margin:0;padding:7px 12px;min-height:38px;flex:none}
 .connected-composer .chat-files-tools>p{margin:0;font-size:11px}
 .connected-composer .chat-privacy-link{margin:0;font-size:11px}
}

/* On desktop as well, reserve the reading area before the reply tools. */
@media(min-width:701px){
 .connected-main>.connected-heading{flex:0 0 auto;padding:14px 22px}
 .connected-main>.connected-log{flex:1 1 0;min-height:120px;overscroll-behavior:contain}
 .connected-main>.connected-composer{flex:0 1 auto;min-height:0;max-height:43dvh;overflow-y:auto;padding:10px 22px}
 .connected-composer label{margin-bottom:6px}
 .connected-composer .input-box{padding:9px 12px}
 .connected-composer textarea{height:54px;min-height:54px;line-height:1.6}
 .connected-composer .compose-footnote{margin-top:7px}
 .connected-composer .chat-files-tools{padding:6px 0 0;display:flex;align-items:center;flex-wrap:wrap;gap:3px 12px}
 .connected-composer .chat-files-tools>label{margin:0;padding:7px 12px;min-height:38px;flex:none}
 .connected-composer .chat-files-tools>p{margin:0;font-size:11px}
 .connected-composer .chat-privacy-link{margin:0;font-size:11px}
}
.connected-composer .chat-files-tools>.file-status:empty{display:none}
/* Keep save and read-only recovery distinct, with comfortable mobile targets. */
.connected-notes .notes-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px}
.connected-notes .notes-actions button{min-height:44px;margin:0;flex:1 1 130px}
.connected-notes .notes-actions .text-button{font-size:13px;border:1px solid #dce3ee;border-radius:10px;background:#fff;padding:9px 12px;color:#45546c}
.connected-notes .notes-actions button:focus-visible{outline:2px solid #315efb;outline-offset:3px}
