/* Reference: design/screens/1.png and 2.png. Scoped to the conversation. */
@font-face{font-family:IWSPretendard;src:url('../fonts/Pretendard-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:IWSPretendard;src:url('../fonts/Pretendard-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
#topic-caption-panel,#messages-panel,#send-message-wrapper,#iws-settings{font-family:IWSPretendard,'Malgun Gothic',sans-serif;color:#202124;color-scheme:light}
#topic-caption-panel{background:#fbfbf9;min-height:92px;padding:16px 20px;border-bottom:2px solid #e3e2e1;box-shadow:none;gap:8px}
#topic-caption-panel>.avatar-box{width:56px;height:56px;min-width:56px;border-radius:7px;border:1px solid #e3e2e1;background:white;overflow:hidden;margin-right:10px}
#topic-caption-panel .avatar{border-radius:0}
#topic-title{font-size:21px;font-weight:700;line-height:1.4}
#topic-last-seen{color:#858585;font-size:14px}
#messages-container::before{background:#fbfbf9;background-image:none;filter:none}
#messages-panel{padding:22px 18px}
#scroller{margin:0;padding-bottom:24px}
#scroller li{align-items:flex-start;margin-bottom:16px;max-width:100%}
#scroller li>div:not(.avatar-box){min-width:0;max-width:calc(100% - 60px)}
#scroller .avatar-box{width:48px;min-width:48px;height:48px;font-size:22px;margin:0 12px 0 0}
#scroller .avatar-box>*{border-radius:7px;border:1px solid #e3e2e1}
#scroller .bubble{min-width:0;max-width:560px;border-radius:7px;padding:10px 12px;filter:none;color:#161616;transition:none}
#scroller .left .bubble{background:#fff;border:1px solid #dededc;margin:0}
#scroller .right .bubble{background:#fbdfcd;border:1px solid #fbdfcd;margin:0}
#scroller .bubble.tip::before{top:8px;bottom:auto;width:12px;height:12px;border-radius:0;transition:none}
#scroller .left .bubble.tip::before{left:-12px;background:#dededc;clip-path:polygon(0 0,100% 0,100% 100%)}
#scroller .right .bubble.tip::before{left:100%;background:#fbdfcd;clip-path:polygon(0 0,100% 0,0 100%)}
#scroller .message-content{padding:0;font-size:16px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
#scroller .author{font-size:16px;color:#202124;font-weight:700;margin-bottom:6px;order:-1}
#scroller li.left>div:not(.avatar-box){display:flex;flex-direction:column}
#scroller .timestamp{font-size:12px;color:#808491;float:none;display:block;text-align:right;top:auto;margin-top:6px;white-space:normal}
#scroller .meta{justify-content:center;margin:0 0 24px}
#scroller .meta .bubble.date{background:#ecebe9;border:0;border-radius:30px;padding:8px 18px;font-size:14px;color:#202124}
#scroller .meta .bubble.date::before{content:'▦';margin-right:10px;color:#858585}
#scroller .inline-image{max-width:100%;height:auto}
#send-message-wrapper{background:white;border-top:2px solid #e3e2e1;box-shadow:none}
#send-message-panel{background:white;display:flex;flex-wrap:wrap;padding:14px 18px 12px;gap:8px;min-height:128px;align-items:center}
#send-message-input{order:-1;flex:0 0 100%;width:100%;min-height:58px;max-height:140px;border:0;border-radius:0;outline-offset:-2px;margin:0;padding:4px 0;font:16px/1.5 IWSPretendard,sans-serif;background:white;color:#202124;box-sizing:border-box}
#send-message-input::placeholder{color:#aaa}
#send-message-panel>a{min-width:32px;min-height:36px;display:flex;align-items:center;justify-content:center;color:#606065}
#send-message-panel .iws-send{margin-left:auto;background:#fbdfcd;border-radius:7px;padding:8px 18px;min-height:28px;color:#202124;font-size:16px;text-decoration:none}
#send-message-panel .iws-emoji{background:transparent;border:0;min-width:36px;min-height:36px;font-size:23px;color:#606065;cursor:pointer}
.iws-settings-button{background:none;border:0;box-shadow:none;padding:0;margin:0;font-size:18px;color:#777;min-width:36px;min-height:36px;cursor:pointer;flex-shrink:0;border-radius:4px}
.iws-settings-button:focus-visible{outline:2px solid #555}
#iws-settings{position:fixed;inset:0;margin:auto;width:min(520px,calc(100vw - 48px));max-height:85vh;overflow:auto;border:1px solid #ddd;border-radius:10px;padding:24px;background:white;font-size:14px}
#iws-settings::backdrop{background:#0005}
#iws-settings h2{font-size:20px;margin:0 50px 16px 0}
#iws-settings p{line-height:1.5;overflow-wrap:anywhere}
#iws-settings label{display:block;margin:14px 0 6px}
#iws-settings input:not([type=checkbox]),#iws-settings select{display:block;width:100%;box-sizing:border-box;border:1px solid #ccc;border-radius:5px;padding:9px;margin-top:6px;font:inherit;background:white;color:#222}
#iws-settings input[type=checkbox]{margin-left:12px;appearance:auto}
#iws-settings button{font:inherit;padding:8px 12px;margin:7px 7px 0 0;border:1px solid #ccc;border-radius:5px;background:#f7f7f6;color:#222;cursor:pointer;min-height:36px}
#iws-settings button:disabled{opacity:.5;cursor:wait}
#iws-settings .iws-close{position:absolute;right:12px;top:10px}
#iws-settings pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
#iws-settings details{margin-top:20px;border-top:1px solid #ddd;padding-top:12px}
@media(max-width:600px){#topic-caption-panel{min-height:78px;padding:10px 12px;gap:3px}#topic-caption-panel>.avatar-box{width:44px;height:44px;min-width:44px;margin-right:5px}#topic-title{font-size:18px}#messages-panel{padding:16px 12px}#scroller .avatar-box{width:38px;min-width:38px;height:38px;margin-right:10px}#scroller li>div:not(.avatar-box){max-width:calc(100% - 48px)}#scroller .message-content{font-size:15px}#send-message-panel{padding:12px;min-height:116px}}
#scroller .iws-message-row{display:flex;align-items:flex-end;gap:8px;min-width:0}
#scroller .right .iws-message-row{flex-direction:row-reverse}
#scroller .iws-message-row>.bubble{min-width:0;flex:0 1 auto}
#scroller .iws-message-row>.timestamp{flex:0 0 auto;max-width:76px;text-align:left;font-size:12px;margin:0 0 3px}
#send-message-panel{position:relative}
.iws-emoji-list{position:absolute;bottom:56px;left:24px;background:white;border:1px solid #ddd;border-radius:6px;padding:8px;z-index:4}
.iws-emoji-list button{background:white;border:0;font-size:24px;padding:6px;cursor:pointer}
#send-message-panel .iws-send{order:3}
#send-message-panel .iws-private-toggle{order:2;margin-left:auto;display:flex;align-items:center;gap:6px;border:1px solid #d8d5d3;border-radius:7px;background:#fff;color:#606065;padding:8px 10px;min-height:42px;font:14px IWSPretendard,'Malgun Gothic',sans-serif;cursor:pointer}
#send-message-panel .iws-private-toggle+.iws-send{margin-left:0}
#send-message-panel .iws-private-toggle.active{background:#fff2e9;border-color:#d69a77;color:#64422f}
#send-message-panel .iws-private-toggle:disabled{opacity:.6;cursor:wait}
.iws-switch-track{display:inline-flex;align-items:center;width:28px;height:16px;padding:2px;box-sizing:border-box;border-radius:10px;background:#bbb}
.iws-switch-track>span{width:12px;height:12px;border-radius:50%;background:#fff}
.iws-private-toggle.active .iws-switch-track{background:#ac7759;justify-content:flex-end}
#send-message-panel .iws-emoji{box-shadow:none;padding:0;margin:0}
.iws-typing-list{padding:8px 16px;display:flex;flex-direction:column;gap:8px}
.iws-typing-entry{display:flex;align-items:flex-start;gap:9px;color:#45454b;font-size:12px}
.iws-typing-avatar{width:34px;height:34px;overflow:hidden;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#b7a8a4;color:white;font-size:16px}
.iws-typing-name{display:block;margin-bottom:4px}
.iws-typing-bubble{display:flex;align-items:center;justify-content:center;gap:4px;width:46px;height:27px;border-radius:2px 8px 8px;background:#899da7}
.iws-typing-bubble i{width:4px;height:4px;background:#fff06a;border-radius:50%;animation:iws-typing-dot 1.2s infinite ease-in-out}
.iws-typing-bubble i:nth-child(2){animation-delay:.15s}.iws-typing-bubble i:nth-child(3){animation-delay:.3s}
@keyframes iws-typing-dot{0%,60%,100%{transform:translateY(0);opacity:.65}30%{transform:translateY(-3px);opacity:1}}
@media(prefers-reduced-motion:reduce){.iws-typing-bubble i{animation:none}}
/* Inquiry actions stay directly below their original message. */
.iws-inquiry-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:7px; }
.iws-inquiry-actions button, .iws-booking-error button { border:1px solid #c8b4a2; background:#fffaf5; color:#553e2d; border-radius:8px; padding:7px 12px; font:inherit; cursor:pointer; }
.iws-inquiry-actions button:disabled { opacity:.5; cursor:wait; }
.iws-inquiry-actions button:focus-visible { outline:2px solid #886244; outline-offset:2px; }
.iws-inquiry-context { font-size:12px; color:#786451; margin-top:4px; }
.iws-inquiry-hint { font-size:12px; color:#786451; padding:8px 12px; }
.iws-booking-message { clear:both; margin:16px 0 !important; }
.iws-booking-card { max-width:540px; }
.iws-booking-card .bubble { border:1px solid #d9c6b2; padding:14px; background:#fffaf5; color:#382b21; }
.iws-booking-card p, .iws-booking-dialog p { font-size:13px; line-height:1.55; }
.iws-booking-details { display:grid; gap:6px; margin-top:10px; line-height:1.5; overflow-wrap:anywhere; }
.iws-booking-note { white-space:pre-wrap; }
.iws-booking-overlay { position:fixed !important; inset:0; z-index:1200; display:flex !important; align-items:center; justify-content:center; background:rgba(0,0,0,.38); margin:0 !important; padding:20px; width:100% !important; box-sizing:border-box; }
.iws-booking-dialog { background:#fff; color:#382b21; border-radius:14px; padding:24px; width:480px; max-width:100%; max-height:85vh; overflow:auto; box-shadow:0 12px 48px #0004; }
.iws-booking-dialog h3 { margin:0 0 14px; }
.iws-booking-dialog label { display:grid; gap:5px; margin:12px 0; }
.iws-booking-dialog input, .iws-booking-dialog textarea { box-sizing:border-box; width:100%; background:#fff; color:#382b21; border:1px solid #cbbbad; border-radius:6px; padding:9px; font:inherit; }
.iws-booking-dialog textarea { min-height:80px; }
.iws-booking-dialog blockquote { white-space:pre-wrap; max-height:100px; overflow:auto; border-left:3px solid #ccb59d; margin:12px 0; padding-left:10px; }
.iws-booking-error { color:#a82920; padding:10px; font-size:13px; }

/* 2026-11-21: IWS ivory / charcoal. Existing behavior and native controls retained. */
:root{--iws-ink:#292b2b;--iws-muted:#686962;--iws-paper:#f7f5f0;--iws-line:#dfdcd3;--iws-accent:#74634a}
#sidepanel{background:var(--iws-paper);border-right:1px solid var(--iws-line)}
#sidepanel-title{color:var(--iws-ink);font-weight:700;letter-spacing:-.025em}
#topic-caption-panel{background:#fffefa;min-height:82px;padding:18px 24px;border-bottom:1px solid var(--iws-line)}
#topic-title{font-size:20px;letter-spacing:-.035em;color:var(--iws-ink)}
#topic-last-seen{font-size:12px;color:var(--iws-muted)}
#topic-caption-panel>.avatar-box,#scroller .avatar-box>*{border-radius:14px;border-color:var(--iws-line)}
#messages-container::before{background:var(--iws-paper)}
#messages-panel{padding:24px}
#scroller .bubble{border-radius:16px;padding:13px 16px;box-shadow:0 2px 7px #292b2b05}
#scroller .left .bubble{background:#fffefa;border:1px solid #e7e3da;color:var(--iws-ink)}
#scroller .right .bubble{background:#e8e2d6;border:1px solid #e0d8c9;color:#292b2b}
#scroller .bubble.tip::before{display:none}
#scroller .message-content{font-size:15px;line-height:1.7;letter-spacing:-.015em}
#scroller .author{font-size:13px;color:#454640;margin-bottom:8px}
#scroller .timestamp{font-size:11px;color:#72736c;margin-top:8px}
#scroller .meta .bubble.date{background:#eae7df;color:#5a5d55;font-size:12px;border:0;padding:7px 16px;box-shadow:none}
#send-message-wrapper{border-top:1px solid var(--iws-line);background:#fffefa}
#send-message-panel{background:#fffefa;padding:16px 24px;min-height:120px}
#send-message-input{background:#fffefa;line-height:1.7;color:var(--iws-ink)}
#send-message-panel .iws-send{background:var(--iws-ink);color:#fffefa;border-radius:10px;padding:10px 22px;font-size:14px}
#send-message-panel .iws-send:hover{background:#42463f}
.iws-private-toggle{border-color:#d7d4cb;background:#f7f5ef;color:#4f514a}
.iws-private-toggle.active .iws-switch-track{background:#74634a}
#iws-settings,.iws-booking-dialog{border:1px solid var(--iws-line);border-radius:20px;background:#fffefa;color:var(--iws-ink);box-shadow:0 20px 70px #262a241f}
.iws-booking-card{border-radius:16px;max-width:540px}
#scroller .iws-booking-card .bubble{background:#fffefa;border:1px solid var(--iws-line);border-top:3px solid #a59577;padding:20px}
.iws-booking-details{font-size:14px;line-height:1.6;gap:8px}
.iws-inquiry-actions button,.iws-booking-error button{background:#fffefa;color:var(--iws-ink);border-color:#cec8bb;padding:10px 16px;border-radius:10px;min-height:40px}
.iws-inquiry-actions button:last-child{background:var(--iws-ink);color:#fffefa;border-color:var(--iws-ink)}
@media(prefers-reduced-motion:reduce){.iws-typing-bubble i{animation:none}}

/* Compact conversational layout; no standalone fitting reservation panel. */
body{font-family:IWSPretendard,'Malgun Gothic',sans-serif;background:#f3f4f4;color:#262c30}
#sidepanel{background:#fafbfb;border-right:1px solid #e4e8e8}
#sidepanel-title{font-size:17px;letter-spacing:-.02em}
#topic-caption-panel{min-height:64px;padding:12px 18px;background:#fff;border-bottom:1px solid #e5e8e8}
#topic-caption-panel>.avatar-box{width:38px;height:38px;min-width:38px;border-radius:12px;margin-right:8px}
#topic-title{font-size:16px;line-height:1.4}
#topic-last-seen{font-size:12px;margin-top:2px}
#messages-container::before{background:#f5f7f7}
#messages-panel{padding:18px}
#scroller li{margin-bottom:14px}
#scroller .avatar-box{width:34px;height:34px;min-width:34px;margin-right:8px;font-size:16px}
#scroller .bubble{border-radius:13px;padding:10px 13px;box-shadow:none}
#scroller .left .bubble{background:#fff;border-color:#e6eaea}
#scroller .right .bubble{background:#e8efed;border-color:#e0e9e6}
#scroller .message-content{font-size:14px;line-height:1.6}
#scroller .author{font-size:12px;font-weight:700;margin-bottom:5px;color:#545d61}
#scroller .timestamp{font-size:11px;margin-top:4px}
#scroller .meta .bubble.date{padding:5px 12px;font-size:11px;background:#e9eeee;color:#707b80}
#scroller .meta .bubble.date::before{content:none}
#send-message-panel{padding:12px 18px;min-height:96px;gap:6px;background:#fff}
#send-message-wrapper{background:#fff;border-top:1px solid #e5e8e8}
#send-message-input{font-size:14px;line-height:1.6;min-height:40px;background:#fff}
#send-message-panel .iws-send{font-size:13px;padding:7px 16px;border-radius:9px;background:#334a45;color:#fff}
#iws-settings{border-radius:14px;padding:20px;font-size:13px;background:#fff}
#iws-settings h2{font-size:17px}
.iws-booking-dialog{border-radius:14px;padding:20px;background:#fff}
.iws-booking-dialog h3{font-size:16px}
.iws-booking-details{font-size:13px;gap:6px}
#scroller .iws-booking-card .bubble{padding:14px;border:1px solid #dce5e1}
.iws-inquiry-actions{gap:6px}
.iws-inquiry-actions button,.iws-booking-error button{font-size:13px;min-height:34px;padding:6px 12px;border-radius:8px;background:#fff;border-color:#d8e0dd}
.iws-inquiry-actions button:last-child{background:#334a45;border-color:#334a45;color:#fff}
@media(max-width:600px){#messages-panel{padding:14px 10px}#topic-caption-panel{padding:10px 12px}#send-message-panel{padding:10px 12px}.iws-inquiry-actions button{min-height:40px}}

:root{--clr-primary-accent:#334a45;--clr-primary-action:#334a45;--clr-primary-action-hover:#263d37;--clr-body-background:#f3f5f4;--clr-primary-wash:#edf2f0}
#sidepanel .contact-box{padding:6px}
#sidepanel .contact-box>li{margin:2px 0;padding:10px 9px;border-radius:10px;background:transparent;min-height:52px}
#sidepanel .contact-box>li:hover{background:#f0f3f2}
#sidepanel .contact-box>li.selected{background:#e7eeeb}
#sidepanel .contact-title{font-size:14px;font-weight:700;color:#303a37}
#sidepanel .contact-comment{font-size:12px;line-height:1.5;color:#74807b}
#sidepanel .contact-box .avatar-box{width:38px;height:38px;min-width:38px;margin-right:10px}
#sidepanel input{font-size:13px}

/* IO Wedding — unified product shell, 2026-11-21 */
:root{--iws-ink:#263b32;--iws-muted:#7a8780;--iws-paper:#f5f7f6;--iws-line:#e3e9e5;--iws-accent:#365d49}
#app-container{box-shadow:0 8px 40px #24382b0a;border:1px solid #e5ebe7}
#sidepanel{background:#fff}
#sidepanel-title{font-size:16px;font-weight:700}
#topic-caption-panel{background:#fff;min-height:64px}
#topic-title{font-size:16px;font-weight:700;color:#263b32}
#messages-container::before{background:#f5f7f6}
#scroller .left .bubble{border:1px solid #e3e9e5;background:#fff;border-radius:4px 15px 15px 15px}
#scroller .right .bubble{border:1px solid #dce9df;background:#e5efe7;border-radius:15px 4px 15px 15px}
#scroller .message-content{font-size:14px;line-height:1.65}
#scroller .author{font-size:12px;color:#68776e}
#scroller .timestamp{font-size:10px;color:#87928b}
#send-message-wrapper{border-top:1px solid #e5ebe7}
#send-message-panel{padding:12px 18px;min-height:94px}
#send-message-input{font-size:14px;min-height:38px;max-height:120px}
#send-message-panel .iws-send{background:#365d49;border:0;border-radius:9px;font-size:13px;padding:7px 18px}
#send-message-panel>a{color:#7a8780}
.iws-private-toggle{font-size:12px;border-radius:8px;border:1px solid #e2e8e4;background:#f8faf8}
.iws-private-toggle.active{background:#e5efe7;color:#365d49}
#iws-settings{border:1px solid #e2e8e4;border-radius:16px;box-shadow:0 18px 70px #1c352923;font-size:13px;padding:24px}
#iws-settings input,#iws-settings select,#iws-settings button{font-size:13px;border:1px solid #dfe7e1;border-radius:8px;padding:8px 10px;background:#fff;color:#344b3e}
#iws-settings h2{font-size:17px;color:#263b32}
#dummy-view{background:#f5f7f6;color:#68776e}
#dummy-view h2{font-size:24px;letter-spacing:-.04em;color:#263b32;margin-bottom:12px}
#dummy-view p{font-size:13px;line-height:1.7}
#dummy-view .iwo-copyright{font-size:11px;color:#97a29a;margin-top:28px}
#sidepanel .contact-box>li{border-radius:12px;margin:3px 2px;padding:11px 10px}
#sidepanel .contact-box>li.selected{background:#edf3ee}
#sidepanel .contact-box>li:hover{background:#f3f6f3}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #5b8a6d;outline-offset:2px}

/* Chat r3 — neutral navigation, identity and compact floating composer. */
#side-caption-panel{background:#fff;color:#25312c;border-bottom:1px solid #e5e9e6;min-height:72px;padding:14px 16px;box-sizing:border-box}
#side-caption-panel a,#side-caption-panel :hover{color:#68756d}
#sidepanel-title{color:#25312c!important;font-size:14px;font-weight:700}
#self-avatar{width:36px;min-width:36px;height:36px;font-size:18px}
#sidepanel{background:#fafbf9;border-right:1px solid #e3e9e4}
#sidepanel .contact-box{padding:12px 8px}
#sidepanel .contact-box>li{background:transparent;padding:13px 10px;margin:2px 0;border-radius:10px;min-height:62px;box-sizing:border-box}
#sidepanel .contact-box>li.selected{background:#e9efea;box-shadow:inset 3px 0 #486d56}
#sidepanel .contact-box>li:hover{background:#f0f3ef}
#sidepanel .contact-title{font-size:13px;letter-spacing:-.02em}
#sidepanel .contact-comment{font-size:11px}
#sidepanel .contact-box .avatar-box{width:34px;height:34px;min-width:34px;margin-right:10px}
#topic-caption-panel{padding:14px 24px;min-height:76px;align-items:center;border-bottom:1px solid #e6ebe6;background:#fff}
#topic-caption-panel>.avatar-box{width:36px;height:36px;min-width:36px;margin-right:12px}
#topic-title{font-size:16px;letter-spacing:-.03em;line-height:1.5}
#topic-last-seen{display:flex;align-items:center;gap:12px;font-size:11px;line-height:1.8;color:#8a958d;flex-wrap:wrap}
.iws-current-account{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#53695b;background:#eff4ef;border:1px solid #e3ebe3;padding:1px 8px;border-radius:12px}
.iws-current-account::before{content:'';width:5px;height:5px;background:#65906e;border-radius:50%}
#messages-container::before{background:#f6f8f5;background-image:none}
#messages-panel{padding:24px 24px 8px}
#scroller .bubble{max-width:520px;padding:11px 14px;box-shadow:0 1px 2px #23362906}
#scroller .left .bubble{background:#fff;border-color:#e6ebe5}
#scroller .right .bubble{background:#e4eee3;border-color:#dce7db}
#scroller .message-content{font-size:14px;line-height:1.7;letter-spacing:-.02em}
#scroller .author{font-size:11px;font-weight:700;color:#69776c}
#scroller .avatar-box{width:32px;height:32px;min-width:32px;margin-right:9px}
#send-message-wrapper{padding:12px 18px 18px;background:#f6f8f5;border-top:0;box-sizing:border-box}
#send-message-panel{padding:11px 14px 9px;border:1px solid #dfe6df;border-radius:16px;background:#fff;min-height:90px;gap:4px;box-shadow:0 3px 12px #203b2405}
#send-message-panel:focus-within{border-color:#a1b6a4;box-shadow:0 0 0 2px #e7eee6}
#send-message-input{padding:3px 2px;min-height:36px;max-height:120px;border:0;font-size:14px;outline:none}
#send-message-input::placeholder{color:#a0aaa1}
#send-message-panel>a{min-width:28px;min-height:30px;color:#8c988e}
#send-message-panel .iws-send{color:#fff;background:#324c39;border-radius:9px;padding:6px 16px;font-size:12px;min-height:30px}
#send-message-panel .iws-emoji{font-size:20px;min-width:30px;min-height:30px;color:#8c988e}
.iws-private-toggle{font-size:11px;padding:5px 8px;min-height:30px;border:0;background:#f3f6f2;box-shadow:none;color:#728075}
.iws-inquiry-actions button{font-size:12px;border-radius:8px;min-height:32px;padding:6px 11px}
@media(max-width:600px){#topic-caption-panel{padding:12px 14px}#topic-title{font-size:15px}#messages-panel{padding:18px 12px 8px}#send-message-wrapper{padding:8px 10px 12px}#topic-last-seen{gap:8px}.iws-private-toggle{min-height:36px}}

/* Role themes r4. Presentation only; roles come from authenticated room data. */
:root{--room-bg:#f0f2f1;--room-panel:#fff;--room-rail:#e4e9e6;--room-ink:#28352d;--room-muted:#76847c;--room-line:#d5ddd7;--room-accent:#3e6950;--room-on:#fff;--room-soft:#e4eee6;--room-header:#294337;--room-label:'대화'}
:root[data-iws-role="customer"]{--room-bg:#17181b;--room-panel:#25262b;--room-rail:#101114;--room-ink:#f2f2f4;--room-muted:#a1a2ac;--room-line:#34353c;--room-accent:#e6e8f0;--room-on:#17181b;--room-soft:#2c2e35;--room-header:#101114;--room-label:'고객 상담'}
:root[data-iws-role="vendor"]{--room-bg:#102633;--room-panel:#193746;--room-rail:#0b202c;--room-ink:#e7f4f5;--room-muted:#a0bdc8;--room-line:#2d4b5a;--room-accent:#8be1d3;--room-on:#092f36;--room-soft:#234c58;--room-header:#0b202c;--room-label:'업체 업무'}
:root[data-iws-role="planner"]{--room-bg:#ffffff;--room-panel:#f5f6f8;--room-rail:#fafafa;--room-ink:#252830;--room-muted:#707582;--room-line:#e2e4e9;--room-accent:#345fc7;--room-on:#fff;--room-soft:#edf1fa;--room-header:#ffffff;--room-label:'플래너 데스크'}
#app-container{background:var(--room-bg);border-color:var(--room-line)}
#sidepanel{background:var(--room-rail);border-color:var(--room-line)}
#side-caption-panel{background:var(--room-header);border:0;box-shadow:none;min-height:80px;color:#fff}
#side-caption-panel #sidepanel-title,#side-caption-panel a,#side-caption-panel :hover{color:#f7f5f7!important}
#sidepanel .contact-box>li{color:var(--room-ink)}
#sidepanel .contact-box>li.selected,#sidepanel .contact-box>li:hover{background:transparent;box-shadow:none}
#sidepanel .contact-box>li.selected .contact-title{color:var(--room-accent)}
#sidepanel .contact-title{color:var(--room-ink);font-size:13px}
#sidepanel .contact-comment{color:var(--room-muted)}
#topic-caption-panel{background:var(--room-header);color:#fff;border:0;min-height:80px;padding:12px 22px;overflow:visible;box-shadow:0 1px 0 #ffffff0d}
#topic-title{color:#fff;font-size:16px;line-height:1.4}
#topic-title::before{content:var(--room-label);display:block;font-size:9px;letter-spacing:.1em;font-weight:400;line-height:1.4;color:#d5cdd6;margin-bottom:4px}
#topic-caption-panel a,#topic-caption-panel button{color:#ded9e3}
#topic-last-seen{color:#c6bfc9;font-size:10px;margin-top:4px}
.iws-current-account{color:#f5f0f7;background:#ffffff13;border:1px solid #ffffff20;font-size:10px;padding:0 7px}
.iws-current-account::before{background:#95dbb5}
#messages-container::before{background:var(--room-bg)}
#messages-panel{padding:24px}
#scroller .left .bubble{background:var(--room-panel);border:1px solid var(--room-line);color:var(--room-ink);border-radius:4px 16px 16px 16px;box-shadow:0 3px 12px #00000006}
#scroller .right .bubble{background:var(--room-accent);border:1px solid transparent;color:var(--room-on);border-radius:16px 4px 16px 16px}
#scroller .message-content{color:inherit;font-size:14px;line-height:1.65}
#scroller .author{color:var(--room-muted);font-size:11px}
#scroller .timestamp{color:var(--room-muted);font-size:10px}
#scroller .right .timestamp{color:inherit;opacity:.8}
#scroller .meta .bubble.date{background:var(--room-soft);color:var(--room-muted);border:0;font-size:10px}
#scroller .iws-booking-card .bubble{background:var(--room-panel);color:var(--room-ink);border-color:var(--room-line)}
.iws-inquiry-actions button{background:var(--room-panel);border-color:var(--room-line);color:var(--room-ink)}
.iws-inquiry-actions button:last-child{background:var(--room-accent);color:var(--room-on);border-color:var(--room-accent)}
.iws-booking-dialog{background:var(--room-panel);color:var(--room-ink);border-color:var(--room-line)}
#send-message-wrapper{background:var(--room-bg);padding:14px 20px 20px;border:0}
#send-message-panel.iws-compact-composer{position:relative;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#send-message-panel.iws-compact-composer:focus-within{border:0;box-shadow:none}
#send-message-panel #send-message-input{order:0;flex:1 1 auto;width:0;min-width:50px;min-height:46px;max-height:130px;box-sizing:border-box;border-radius:24px;border:1px solid #ffffff1f;background:#26252c;color:#f4f2f7;padding:12px 18px;font-size:13px;line-height:20px;resize:none;margin:0;outline:none;box-shadow:inset 0 1px 2px #0002}
#send-message-panel #send-message-input::placeholder{color:#b2afb9}
#send-message-panel #send-message-input:focus{border-color:var(--room-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--room-accent) 16%,transparent)}
#send-message-panel .iws-tools-toggle{order:-1;flex:0 0 32px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--room-muted);width:32px;height:42px;padding:0;cursor:pointer}
#send-message-panel .iws-private-toggle{flex:0 0 42px;display:flex;align-items:center;justify-content:center;width:42px;height:42px;min-height:42px;margin:0;padding:0;border:1px solid var(--room-line);border-radius:50%;background:var(--room-panel);color:var(--room-muted);font-size:13px;font-weight:700;box-shadow:none;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
#send-message-panel .iws-private-toggle{min-width:42px;max-width:42px;box-sizing:border-box;appearance:none}
#send-message-panel .iws-tools-toggle{min-width:0;max-width:32px;box-sizing:border-box;appearance:none;box-shadow:none;margin:0;border-radius:50%}
#send-message-panel .iws-private-toggle.active{background:var(--room-accent);color:var(--room-on);border-color:var(--room-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--room-accent) 20%,transparent)}
#send-message-panel .iws-private-toggle:disabled{opacity:.5;cursor:wait}
#send-message-panel .iws-send{flex:0 0 46px;display:flex;align-items:center;justify-content:center;width:46px;height:46px;min-height:46px;box-sizing:border-box;margin:0;padding:0;background:var(--room-accent);color:var(--room-on);border:0;border-radius:15px;text-decoration:none;box-shadow:0 3px 10px #0000000a}
#send-message-panel .iws-send .material-icons{font-size:22px;color:inherit}
#send-message-panel .iws-composer-tools{position:absolute;z-index:20;bottom:calc(100% + 12px);left:0;display:flex;align-items:center;gap:8px;padding:10px;background:var(--room-panel);border:1px solid var(--room-line);border-radius:15px;box-shadow:0 10px 30px #0002}
#send-message-panel .iws-composer-tools[hidden]{display:none}
#send-message-panel .iws-composer-tools>a,#send-message-panel .iws-composer-tools button.iws-emoji{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;border:0;background:var(--room-soft);color:var(--room-ink);padding:0}
#send-message-panel .iws-composer-tools .material-icons{color:inherit;font-size:20px}
#send-message-panel .iws-emoji-list{bottom:65px;background:var(--room-panel);border:1px solid var(--room-line)}
#send-message-wrapper .iws-typing-name{color:var(--room-muted)}
#send-message-wrapper .iws-typing-bubble{background:var(--room-soft)}
@media(max-width:600px){#topic-caption-panel{padding:12px 14px}#messages-panel{padding:18px 12px}#send-message-wrapper{padding:10px 10px 14px}#send-message-panel.iws-compact-composer{gap:5px}#send-message-panel .iws-tools-toggle{flex-basis:24px;width:24px}#send-message-panel .iws-send{flex-basis:42px;width:42px;height:44px;min-height:44px}#send-message-panel #send-message-input{padding-left:13px;font-size:13px}}

/* r5: consistent avatar geometry across headers, lists, messages and profile panels. */
.avatar-box{position:relative;isolation:isolate}
.avatar-box>.lettertile{position:relative;width:100%;height:100%;padding:0;aspect-ratio:1;border-radius:50%;overflow:hidden;box-sizing:border-box}
.avatar-box>.lettertile>div{inset:0;padding:0;line-height:1;font-size:inherit;font-weight:600;display:flex;align-items:center;justify-content:center}
.avatar-box>img.avatar{display:block;width:100%;height:100%;max-width:100%;object-fit:cover;border-radius:50%;box-sizing:border-box}
#self-avatar,#sidepanel .contact-box .avatar-box,#topic-caption-panel>.avatar-box,#scroller .avatar-box{width:36px;height:36px;min-width:36px;min-height:36px;max-width:36px;max-height:36px;flex:0 0 36px;padding:0;box-sizing:border-box;font-size:16px;line-height:1;border:0;border-radius:50%;background:transparent;overflow:visible}
#scroller .avatar-box{width:32px;height:32px;min-width:32px;min-height:32px;max-width:32px;max-height:32px;flex-basis:32px;font-size:14px}
#scroller .avatar-box>*,#topic-caption-panel .avatar{border:0;border-radius:50%}
#self-avatar>.material-icons,#sidepanel .avatar-box>.material-icons,#topic-caption-panel .avatar-box>.material-icons,#scroller .avatar-box>.material-icons{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:21px;line-height:1}
.avatar-box>.online,.avatar-box>.offline,#scroller .avatar-box>.online,#scroller .avatar-box>.offline{width:9px;height:9px;min-width:9px;min-height:9px;box-sizing:border-box;right:-1px;bottom:0;border:2px solid var(--room-bg);border-radius:50%;z-index:1}
#sidepanel .avatar-box>.online,#sidepanel .avatar-box>.offline{border-color:var(--room-rail)}
:root[data-iws-role="customer"] #sidepanel .contact-title{color:#a1a2ac}
:root[data-iws-role="customer"] #sidepanel .selected .contact-title{color:#fff}
:root[data-iws-role="planner"] #side-caption-panel #sidepanel-title,:root[data-iws-role="planner"] #side-caption-panel a,:root[data-iws-role="planner"] #side-caption-panel :hover{color:var(--room-ink)!important}
:root[data-iws-role="planner"] #topic-caption-panel,:root[data-iws-role="planner"] #topic-title{color:var(--room-ink)}
:root[data-iws-role="planner"] #topic-caption-panel a,:root[data-iws-role="planner"] #topic-caption-panel button,:root[data-iws-role="planner"] #topic-title::before,:root[data-iws-role="planner"] #topic-last-seen{color:var(--room-muted)}
:root[data-iws-role="planner"] .iws-current-account{color:var(--room-ink);background:#f2f4f7;border-color:var(--room-line)}
:root[data-iws-role="planner"] #side-caption-panel,:root[data-iws-role="planner"] #topic-caption-panel{border-bottom:1px solid var(--room-line)}
