/* Room-only conversation: the closed control lives in the connection bar. */
#room-chat[hidden],#room-chat-panel[hidden],#room-chat-toggle[hidden]{display:none!important}
#room-chat{position:fixed;z-index:90;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:min(356px,calc(100vw - 28px));color:#254733;font-family:inherit}
.room-chat-panel{display:flex;flex-direction:column;max-height:min(650px,calc(100dvh - 36px));background:#f7f5e9;border:1px solid #d0d9bc;border-radius:23px;overflow:hidden;box-shadow:0 20px 70px #1b342940,0 3px 12px #1b342912}
.room-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 21px 14px;background:#234b35;color:#f4f3da}
.room-chat-head>div>span{font-size:8px;letter-spacing:.17em;color:#d8e6b0;font-weight:700}.room-chat-head h2{font-size:21px;font-weight:500;letter-spacing:-.045em;line-height:1.2;margin:6px 0 0}
#room-chat-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #e4edc540;border-radius:50%;background:transparent;color:inherit;font-family:inherit;font-size:25px;line-height:1;cursor:pointer}
.room-chat-privacy{font-size:10px;line-height:1.5;margin:0;padding:11px 20px;border-bottom:1px solid #dce1ce;color:#697961}
.room-chat-history{list-style:none;overflow:auto;overscroll-behavior:contain;padding:16px 17px 0;margin:0;min-height:90px;max-height:300px;flex:1;scrollbar-width:thin;scrollbar-color:#aaba97 transparent}
.room-chat-message{margin:0 22px 12px 0;padding:11px 12px;background:#ebeede;border:1px solid #dce3cb;border-radius:3px 13px 13px 13px}.room-chat-message.is-mine{margin-right:0;margin-left:22px;background:#dfebc9;border-color:#d0deb4;border-radius:13px 3px 13px 13px}
.room-chat-message-head{display:flex;align-items:baseline;gap:8px;justify-content:space-between}.room-chat-message-head strong{font-size:11px;overflow-wrap:anywhere}.room-chat-message-head time{font-size:9px;white-space:nowrap;color:#778268}.room-chat-message p{font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0}
.room-chat-empty{font-size:13px;line-height:1.7;text-align:center;color:#778268;padding:0 24px 20px;margin:0}.room-chat-empty[hidden]{display:none}
#room-chat-form{padding:14px 17px 12px;border-top:1px solid #dce1ce;background:#faf8ee}#room-chat-form>label{display:block;font-size:10px;font-weight:700;margin-bottom:8px}
#room-chat-input{display:block;resize:none;width:100%;min-height:74px;box-sizing:border-box;border:1px solid #cbd5b8;border-radius:12px;background:#fffdf5;color:#274933;padding:12px 13px;font-family:inherit;font-size:13px;line-height:1.5;outline-offset:3px}#room-chat-input:focus{border-color:#6d8f55;outline:2px solid #89a96888}#room-chat-input[readonly]{background:#f0f0e4}
.room-chat-form-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:8px}#room-chat-count{font-size:10px;color:#738265}#room-chat-count.is-over{color:#a3462e}
#room-chat-send{min-height:44px;display:flex;align-items:center;gap:22px;padding:0 17px;border:0;border-radius:10px;background:#264f36;color:#f9fae8;font-size:12px;font-weight:600;cursor:pointer}#room-chat-send:disabled{opacity:.45;cursor:default}#room-chat-status{font-size:10px;line-height:1.5;min-height:15px;margin:8px 0 0;color:#778268}
#room-chat-toggle,.room-chat-open-button{min-height:44px!important;border:1px solid #91aa7044;border-radius:9px;padding:6px 12px;background:#e0eac6;color:#315336;font-size:11px;font-weight:600;cursor:pointer;white-space:nowrap}.room-chat-open-button{margin-top:12px}.room-chat-open-button[aria-expanded=true],#room-chat-toggle[aria-expanded=true]{background:#365b3c;color:#f4f6e4}
.room-chat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.room-pack-field{margin:16px 0}.room-pack-field select{appearance:auto;min-height:48px;max-width:100%;font-family:inherit}.room-pack-field .field-help{font-size:10px;line-height:1.6}
.room-chat-panel button:focus-visible,.room-chat-open-button:focus-visible,#room-chat-toggle:focus-visible{outline:3px solid #c4db88;outline-offset:3px}
@media(max-width:600px){#room-chat{right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:calc(100vw - 24px)}.room-chat-panel{max-height:calc(100dvh - 24px);border-radius:20px}.room-chat-history{max-height:36dvh}.room-chat-head{padding:15px 18px 12px}.room-chat-head h2{font-size:20px}#room-chat-toggle{padding-inline:10px;font-size:10px}.room-chat-privacy{font-size:10px}#room-chat-input{font-size:16px}#room-chat-form{padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){.room-chat-panel *{scroll-behavior:auto}}
