/* Real Point Blank messaging UI: compact browser chat with brass edges. */
.pb-mini-messenger,.pb-inbox-messenger{--pb-blue:#88c5f1;font-family:Georgia,'Times New Roman',serif;color:#efdcb4;font-size:12px;box-sizing:border-box}
.pb-mini-messenger *,.pb-inbox-messenger *{box-sizing:border-box}
.pb-mini-messenger{position:fixed;z-index:150;right:14px;bottom:6px;width:min(345px,calc(100vw - 18px));max-height:min(550px,calc(100vh - 55px));background:#241a12;border:3px double #c59a4e;box-shadow:0 6px 28px #000c;display:flex;flex-direction:column}
.pb-mini-messenger.minimized{width:225px}.pb-mini-messenger.minimized .pb-chat-bar{height:37px}
.pb-mini-messenger .pb-chat-minimize{display:none}
.pb-chat-bar{background:linear-gradient(#7c5d35,#3a291a 50%,#1a140e);padding:6px 8px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #a77d43}
.pb-chat-heading{font-weight:bold;color:#ffe3a0;flex:1;font-variant:small-caps;font-size:15px}
.pb-chat-bar button,.pb-chat-send button,.pb-chat-tabs button,.pb-ticket-form button,.pb-chat-back{font:700 13px Georgia,serif;color:#ffe6ab;border:1px solid #997039;background:#3b2a18;padding:4px 7px;cursor:pointer}
.pb-chat-bar button:hover,.pb-chat-send button:hover,.pb-chat-tabs button:hover,.pb-ticket-form button:hover{background:#765029}
.pb-chat-tabs{display:flex;background:#251910;padding:5px;gap:6px}.pb-chat-tabs button{flex:1}.pb-chat-tabs button.selected{background:linear-gradient(#d6a450,#966327);color:#241709}
.pb-chat-status{padding:5px 9px;font-size:11px;color:#c8aa75;border-bottom:1px solid #72512b}
.pb-chat-scroll{overflow-y:auto;overflow-x:hidden;min-height:175px;max-height:310px;padding:10px;flex:1;overscroll-behavior:contain}
.pb-chat-line{padding:7px 5px;margin-bottom:7px;border-bottom:1px solid #503720;overflow-wrap:anywhere}.pb-chat-line.from-me{background:#242737}
.pb-chat-line p{color:var(--pb-blue);font-size:13px;line-height:1.48;margin:5px 0 8px;white-space:normal}
.pb-chat-author{display:flex;align-items:center;gap:5px}.pb-chat-author a{color:#ffdb93;font-weight:bold;text-decoration:none}.pb-chat-author time{margin-left:auto;color:#a48c64;font:10px Arial,sans-serif}
.pb-chat-crown{color:#ffe469;text-shadow:1px 1px #000}.pb-chat-crown.mod{color:#bcbfc8}.pb-chat-iron{color:#cad5dc;font-size:10px}
.pb-chat-reactions{display:flex;gap:3px;flex-wrap:wrap}.pb-chat-reactions button{font-size:11px;padding:2px;border:1px solid transparent;color:#dec69a;background:none;cursor:pointer;border-radius:4px}.pb-chat-reactions button.active{border-color:#b89550;background:#493624}.pb-chat-reactions small{font-size:9px;color:var(--pb-blue);margin-left:2px}
.pb-chat-image{max-width:180px;max-height:130px;object-fit:contain;border-radius:5px;border:1px solid #916a3b}
.pb-chat-send{padding:8px;border-top:1px solid #96703b;background:#2d2116}.pb-chat-send textarea,.pb-ticket-form textarea,.pb-ticket-form input{width:100%;border:1px solid #986d3c;background:#160f0a;color:var(--pb-blue);resize:vertical;padding:7px;font:13px Georgia,serif}
.pb-chat-send-actions{display:flex;justify-content:flex-end;gap:8px;align-items:center;padding-top:5px}.pb-chat-attachment{position:relative;cursor:pointer}.pb-chat-attachment input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}
.pb-chat-error{font-size:11px;color:#ff9f91;padding:0 8px}.pb-chat-empty{color:#bd9b6c}.pb-chat-back{margin:5px}
.pb-ticket-form{display:grid;gap:8px}.pb-ticket-form label{display:grid;gap:4px;color:#ffd998;font-size:12px}.pb-ticket-form input[type=file]{color:#edca8b}
.pb-inbox-messenger{width:100%;min-width:0;border:2px ridge #9e773d;background:#241a12}.pb-inbox-messenger .pb-chat-scroll{max-height:65vh;min-height:350px}.pb-inbox-messenger .pb-chat-heading{font-size:19px}
.pb-chat-guest{padding:10px;text-align:center;color:#ffe0a1;text-decoration:none}
.pb-profile-links{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.pb-mention{color:#acd9fb;font-size:12px}
.banner-mod-cp{right:112px!important}.masthead .banner-mod-cp{right:112px!important}
@media(max-width:550px){.pb-mini-messenger{right:4px;bottom:4px;max-height:75vh}.masthead .banner-mod-cp{right:95px!important;font-size:10px}}

.pb-chat-new-person{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:8px;background:#47311d}.pb-chat-new-person label{color:#f8ce87;flex:1}.pb-chat-new-person input{width:100%;padding:6px;background:#1c130c;border:1px solid #b68a47;color:#82c9ff}.pb-chat-new-person button{border:1px solid #b58d4e;background:#674b2a;color:#ffe8b4;padding:5px;cursor:pointer}
.pb-staff-tickets{display:grid;gap:5px}.pb-staff-ticket{padding:10px;background:#2b1e14;border:1px solid #9a7239;text-decoration:none}.pb-staff-ticket strong,.pb-staff-ticket small{display:block}.pb-staff-ticket small{color:#d5b57c;margin-top:4px}.pb-staff-task{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:6px;border-bottom:1px solid #674727}.pb-staff-task input[name=body]{flex:1;min-width:160px;padding:6px;background:#1d140d;color:#edd1a2;border:1px solid #9c7846}.pb-ticket-thread{max-height:340px;overflow-y:auto;background:#1d150f;padding:8px;margin:12px 0}.pb-ticket-thread article{padding:8px;border-bottom:1px solid #654321}.pb-ticket-thread p{white-space:pre-wrap;color:#9bd0ef}.pb-ticket-thread img{max-width:180px;max-height:130px}.pb-adventure-event{display:grid;gap:6px;background:#281c11;border:1px solid #876b40;margin:6px 0;padding:10px}.pb-adventure-event strong{color:#edcf86}.pb-adventure-event small{color:#b7a37f}

.pb-chat-author .pb-chat-icon{width:15px;height:15px;object-fit:contain;vertical-align:middle;image-rendering:pixelated}

/* v1.1.0 unified messenger and inbox: compact, rounded, responsive. */
.pb-mini-messenger,.pb-private-messenger,.pb-inbox-messenger{border-radius:9px 9px 5px 5px;overflow:hidden}
.pb-mini-messenger{right:16px;bottom:12px;width:min(342px,calc(100vw - 70px))}
.pb-mini-messenger.minimized{width:220px}
.pb-chat-heading{font-size:14px;line-height:1.15}
.pb-mini-messenger.minimized .pb-chat-heading{display:block;text-align:center;max-width:134px;white-space:normal;line-height:1.12}
.pb-mini-messenger.minimized .pb-chat-heading::first-line{line-height:1.15}
.pb-chat-bar{min-height:42px}
.pb-chat-actions{display:flex;gap:5px;align-items:center}
.pb-chat-bar button,.pb-chat-send button,.pb-chat-tabs button,.pb-ticket-form button,.pb-chat-back,.pb-chat-send-actions button,.pb-conversation button,.pb-inbox-tools button,.pb-person-search button{border-radius:6px}
.pb-chat-actions button{width:24px;height:24px;font-size:12px;display:grid;place-items:center;padding:0}
.pb-chat-actions [data-sound]{border-radius:7px}
.pb-private-launch{position:fixed;z-index:151;bottom:15px;right:365px;width:39px;height:39px;border:1px solid #b08a4c;border-radius:50%;background:linear-gradient(#755534,#302118);color:#ffe3ab;font:bold 25px/1 Georgia;box-shadow:0 3px 11px #0009;cursor:pointer}
.pb-private-launch:hover{background:#90693a}
.pb-private-messenger{position:fixed;z-index:152;bottom:11px;right:365px;width:min(335px,calc(100vw - 36px));max-height:65vh;display:flex;flex-direction:column;background:#241a12;color:#f3d99b;border:3px double #c59a4e;box-shadow:0 8px 28px #000c;font-family:Georgia,serif;font-size:12px}
.pb-private-messenger .pb-chat-scroll{min-height:160px;max-height:295px}
.pb-chat-line{position:relative}
.pb-message-content{position:relative;max-width:100%;padding-right:25px}
.pb-react-expand{opacity:0;position:absolute;right:0;top:5px;border-radius:50%;background:#5b6064;color:white;border:1px solid #8c9599;width:24px;height:24px;font-size:17px;line-height:1;cursor:pointer;transition:opacity .14s}
.pb-chat-line:hover .pb-react-expand,.pb-react-expand:focus-visible{opacity:1}
.pb-react-choices{position:absolute;right:0;top:30px;z-index:4;display:flex;gap:3px;background:#3b2d21;border:1px solid #97733e;padding:4px;border-radius:12px;box-shadow:0 5px 14px #0008}
.pb-react-choices[hidden],.pb-emoji-grid[hidden]{display:none!important}
.pb-react-choices button{background:none;border:0;cursor:pointer;font-size:16px}
.pb-chat-reactions{margin:2px 0 3px}
.pb-ticket-form>button{width:max-content;max-width:165px;padding:7px 10px}
.pb-chat-send textarea{width:100%;min-height:55px;resize:vertical;border-radius:5px}
.pb-chat-send-actions{gap:5px}
.pb-chat-send-actions button{padding:4px 9px}
.pb-chat-image{cursor:zoom-in}
.pb-image-open{padding:0;border:0;background:transparent;display:inline-flex;cursor:zoom-in}
.pb-person-search{padding:9px;display:flex;flex-direction:column;gap:5px;max-width:100%;min-width:0}
.pb-person-search input{background:#1b130d;border:1px solid #946b37;color:#d4e9ff;width:100%;max-width:100%;padding:8px;border-radius:6px}
.pb-user-suggestions{display:flex;flex-direction:column;gap:3px}
.pb-user-suggestions button{color:#f6d18b;background:#302215;text-align:left}
.pb-emoji-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;margin-top:5px;padding:4px;border-radius:8px;background:#4a3824}
.pb-emoji-grid button{border:0;border-radius:5px;background:#2b2116;font-size:18px;cursor:pointer}
.pb-inbox-messenger{width:100%;max-width:100%;border-radius:8px;min-height:460px}
.pb-inbox-layout{display:grid;grid-template-columns:minmax(195px,34%) minmax(0,1fr);height:min(610px,72vh);min-height:430px}
.pb-inbox-sidebar{border-right:1px solid #a17b44;display:flex;flex-direction:column;min-width:0;overflow:hidden}
.pb-inbox-tools{display:flex;gap:5px;padding:8px;background:#3a2a1b;flex-wrap:wrap}
.pb-inbox-tools button{padding:5px 9px;border:1px solid #ad884f;background:#302318;color:#f1d5a2;cursor:pointer}
.pb-inbox-tools button.selected{background:#a47739;color:#1d110a}
.pb-inbox-tools [data-start-new]{margin-left:auto;min-width:28px}
.pb-inbox-search{padding:7px}
.pb-inbox-search input{width:100%;max-width:100%;background:#21170e;color:#e9d6b4;border:1px solid #a37a41;padding:8px;border-radius:6px}
.pb-conversations{overflow-y:auto;flex:1}
.pb-conversation{display:flex;align-items:center;padding:8px;position:relative;border-bottom:1px solid #60472e;gap:5px}
.pb-conversation>button[data-peer]{border:0;background:transparent;color:#d9e8f4;flex:1;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb-conversation.active{background:#49321d}
.pb-conversation-dots{opacity:0;min-width:25px;padding:3px;cursor:pointer;background:#382717;color:#f6d18b;border:1px solid #73552d}
.pb-conversation:hover .pb-conversation-dots,.pb-conversation-dots:focus-visible{opacity:1}
.pb-conversation-menu{position:absolute;z-index:5;right:8px;top:34px;background:#2c1b11;border:1px solid #af7c3b;border-radius:6px;padding:4px;display:grid;gap:3px;box-shadow:0 5px 16px #000b}
.pb-conversation-menu[hidden]{display:none}
.pb-conversation-menu button{padding:5px 12px;cursor:pointer;color:#f5d39a;background:#453017;border:0}
.pb-inbox-active{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.pb-inbox-active .pb-chat-scroll{min-height:0;max-height:none;flex:1}
.pb-inbox-active .pb-chat-send{margin-top:auto}
.pb-image-modal{position:fixed;z-index:9000;inset:0;background:#000d;display:grid;place-items:center;cursor:zoom-out;padding:34px}
.pb-image-dialog{position:relative;max-width:min(700px,86vw);max-height:85vh;display:grid;place-items:center;cursor:default}
.pb-image-dialog img{max-height:78vh;max-width:85vw;object-fit:contain;transform-origin:center;transition:transform .12s}
.pb-image-close{position:absolute;z-index:2;right:-20px;top:-26px;width:31px;height:31px;background:#3d2b1d;color:white;border:1px solid #b38b4b;border-radius:50%;cursor:pointer;font-size:22px}
@media(max-width:700px){.pb-inbox-layout{grid-template-columns:minmax(130px,37%) minmax(0,1fr)}.pb-private-launch{right:12px;bottom:64px}.pb-private-messenger{right:12px;bottom:68px}.pb-mini-messenger{right:5px;bottom:7px}.pb-chat-line p{font-size:12px}}


/* v1.1.1 – A real independent DM launcher, compact support controls and robust forms. */
.pb-mini-messenger{right:64px;bottom:12px}
.pb-mini-messenger.minimized{width:215px}
.pb-mini-messenger.minimized .pb-chat-bar{min-height:44px;height:44px}
.pb-chat-subtitle{display:inline}
.pb-mini-messenger.minimized .pb-chat-subtitle{display:block;text-align:center}
.pb-mini-messenger.minimized .pb-chat-heading{line-height:1.02}
.pb-private-launch{right:15px;bottom:15px;width:39px;height:39px}
.pb-private-messenger{max-width:calc(100vw - 26px)}
.pb-chat-ticket-status{padding:7px 9px;background:#382a1e;border-bottom:1px solid #886233;color:#e2bd76;font-size:11px;overflow-wrap:anywhere}
.pb-chat-scroll{scrollbar-color:#816038 #22170e;scrollbar-width:thin}
.pb-chat-line{contain:layout}
.pb-chat-line p{white-space:pre-wrap}
.pb-chat-send textarea,.pb-ticket-form input,.pb-ticket-form textarea,.pb-person-search input{border-radius:6px}
.pb-mini-messenger .pb-chat-scroll,.pb-private-messenger .pb-chat-scroll{min-height:115px;max-height:min(340px,40vh)}
.pb-mini-messenger .pb-ticket-form{max-width:100%;min-width:0}
.pb-mini-messenger .pb-ticket-form input,.pb-mini-messenger .pb-ticket-form textarea{width:100%;max-width:100%;min-width:0}
.pb-ticket-form>button{width:auto;justify-self:start;border-radius:7px;max-width:155px}
.pb-chat-send textarea{min-height:44px}
.pb-chat-send-actions .pb-attach{display:inline-flex;align-items:center;justify-content:center;border:1px solid #a47c48;background:#3b2c1b;border-radius:6px;min-width:30px;height:27px;cursor:pointer}
.pb-chat-send-actions .pb-attach input[type=file]{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;pointer-events:none}
.pb-chat-send-actions .pb-attach:focus-within{outline:2px solid #e8c47b;outline-offset:2px}
.pb-chat-bar button:focus-visible,.pb-chat-send button:focus-visible,.pb-conversation button:focus-visible,.pb-private-launch:focus-visible,.pb-react-expand:focus-visible{outline:2px solid #e7c07b;outline-offset:2px}
.pb-ticket-form input[type=file]::file-selector-button{background:linear-gradient(#eac27e,#a57538);color:#2c190b;border-radius:6px;border:1px solid #c79854;padding:5px 8px;cursor:pointer}
.pb-chat-reactions button{min-width:28px;min-height:24px}
.pb-image-modal .pb-image-dialog{max-width:min(780px,90vw);max-height:82vh}
@media(hover:none){.pb-react-expand,.pb-conversation-dots{opacity:1}}
@media(max-width:720px){
 .pb-mini-messenger{right:56px;bottom:5px;width:min(330px,calc(100vw - 65px))}
 .pb-private-launch{right:7px;bottom:8px}
 .pb-private-messenger{right:5px!important;bottom:61px;max-height:54vh;width:min(335px,calc(100vw - 12px))}
 .pb-inbox-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:150px minmax(320px,1fr);height:auto;min-height:550px}
 .pb-inbox-sidebar{border-right:0;border-bottom:1px solid #a17b44;min-height:0}
 .pb-inbox-active .pb-chat-scroll{min-height:160px}
}

/* v1.1.2 — the whole Community/DM title area expands and collapses the real window. */
.pb-mini-messenger .pb-chat-bar,.pb-private-messenger .pb-chat-bar{cursor:pointer}
.pb-mini-messenger .pb-chat-title-toggle,.pb-private-messenger .pb-chat-title-toggle{
 display:block;flex:1 1 auto;min-width:0;width:auto;text-align:left;white-space:normal;
 color:#ffe3a0;background:transparent;border:0;padding:4px 3px;margin:-2px 0;
 font:700 14px/1.15 Georgia,serif;font-variant:small-caps;cursor:pointer;
}
.pb-mini-messenger .pb-chat-title-toggle:hover,.pb-private-messenger .pb-chat-title-toggle:hover{
 background:rgba(255,221,155,.10);color:#ffebbd
}
.pb-mini-messenger .pb-chat-title-toggle:focus-visible,.pb-private-messenger .pb-chat-title-toggle:focus-visible{
 outline:2px solid #ffe0a0;outline-offset:-2px
}
.pb-mini-messenger.minimized .pb-chat-title-toggle{text-align:center;max-width:none}
.pb-private-messenger.minimized{width:220px;min-height:0;max-height:44px}
.pb-private-messenger.minimized .pb-chat-bar{height:44px;min-height:44px;border-bottom:0}
.pb-private-messenger .pb-chat-actions{flex-shrink:0}
.pb-private-messenger .pb-chat-actions button{width:24px;height:24px;min-width:24px;padding:0;display:grid;place-items:center;font-size:14px}
@media(max-width:720px){.pb-private-messenger.minimized{bottom:61px;width:min(220px,calc(100vw - 12px))}}

/* Collapse visually without unmounting forms, drafts, or selected attachments. */
.pb-private-messenger.minimized > :not(.pb-chat-bar){display:none!important}

/* Keep Community drafts and selected uploads intact while minimized. */
.pb-mini-messenger.minimized:not(.pb-mini-guest) > :not(.pb-chat-bar){display:none!important}

/* v1.1.3: smaller authentic chat controls and attached private-chat launcher. */
.pb-mini-messenger{right:52px;width:min(315px,calc(100vw - 65px))}
.pb-mini-messenger.minimized{width:207px}
.pb-private-messenger{width:min(305px,calc(100vw - 20px))}
.pb-private-messenger.minimized{width:195px;max-height:35px}
.pb-chat-bar,.pb-mini-messenger.minimized .pb-chat-bar,
.pb-private-messenger.minimized .pb-chat-bar{min-height:35px;height:35px;padding:4px 7px}
.pb-chat-heading{font-size:13px}
.pb-mini-messenger.minimized .pb-chat-heading{max-width:none}
.pb-chat-actions{gap:4px}
.pb-chat-actions button,.pb-private-messenger .pb-chat-actions button{width:22px;height:22px;min-width:22px;font-size:12px}
.pb-private-launch{width:32px;height:32px;padding:0;font:700 19px/29px Georgia,serif}
.pb-chat-actions [data-sound]{position:relative}
.pb-chat-actions [data-sound].pb-muted::after{content:"";position:absolute;width:20px;height:2px;top:9px;left:1px;background:#ffe4a7;transform:rotate(-48deg);box-shadow:0 1px #28160e;pointer-events:none}
.pb-person-search button[type=submit]{background:linear-gradient(#f3d99a,#c8974a 50%,#95622c);border:2px ridge #a97936;color:#2a1b0d;text-shadow:0 1px #fff0cb;font-weight:bold;padding:7px 12px;width:100%;box-shadow:inset 0 1px #fff2bb}
.pb-person-search button[type=submit]:hover{filter:brightness(1.08)}
.pb-chat-send-actions .pb-attach{min-width:29px;width:29px;height:26px;position:relative;font-size:17px}
.pb-chat-send-actions .pb-attach input[type=file]{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;min-width:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
.pb-chat-upload-control{position:relative;display:inline-flex;align-items:center;width:32px;height:28px}
.pb-ticket-attach{display:grid;place-items:center;width:32px;height:28px;border:1px solid #a47c48;background:#3b2c1b;border-radius:6px;pointer-events:none;font-size:18px}
.pb-chat-upload-control .pb-uploader{position:absolute;inset:0;width:100%!important;height:100%!important;padding:0!important;opacity:0;cursor:pointer;border:0!important}
.pb-chat-upload-control:focus-within{outline:2px solid #e8c47b;outline-offset:2px}
.pb-message-content:has(.pb-image-open){display:grid;grid-template-columns:minmax(0,max-content) 28px;column-gap:7px;align-items:center;padding-right:0}
.pb-message-content:has(.pb-image-open)>p{grid-column:1 / -1}
.pb-message-content:has(.pb-image-open)>.pb-image-open{grid-column:1;grid-row:auto;max-width:100%}
.pb-message-content:has(.pb-image-open)>.pb-react-expand{grid-column:2;position:static;align-self:center;justify-self:start;opacity:0;transform:none}
.pb-message-content:has(.pb-image-open):hover>.pb-react-expand,.pb-message-content:has(.pb-image-open)>.pb-react-expand:focus-visible{opacity:1}
.pb-message-content:not(:has(.pb-image-open))>.pb-react-expand{top:50%;transform:translateY(-50%)}
@media(max-width:720px){.pb-mini-messenger{right:52px;width:min(310px,calc(100vw - 65px))}.pb-private-messenger{width:min(302px,calc(100vw - 15px));right:5px!important}}

/* Shared real paperclip control, replacing browser-native file chooser chrome. */
.pb-chat-send-actions .pb-attach>span[aria-hidden]{display:block;font-size:0;width:19px;height:19px;background:url('assets/ui/paperclip.svg') center/contain no-repeat}
.pb-ticket-form .pb-ticket-attach{font-size:0!important;color:transparent!important;background:#3b2c1b url('assets/ui/paperclip.svg') center/19px 19px no-repeat!important}
.pb-chat-send-actions .pb-attach:hover,.pb-ticket-form .pb-chat-upload-control:hover .pb-ticket-attach{background-color:#674421!important;border-color:#dbad61}
@media(hover:none){.pb-message-content:has(.pb-image-open)>.pb-react-expand{opacity:1}}
/* Staff ticket assignment and attachments use the same compact brass controls as chat. */
.pb-ticket-assignment{margin:8px 0 4px;font-size:12px}
.pb-ticket-assign{margin:4px 0 12px}
.pb-staff-attach{display:inline-flex;align-items:center;gap:9px;max-width:100%}
.pb-staff-attach .pb-staff-clip{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:30px;border:1px solid #9b7240;background:linear-gradient(#75502b,#3e2b18);border-radius:6px;cursor:pointer;flex:none}
.pb-staff-attach .pb-staff-clip:before{content:'';display:block;width:19px;height:19px;background:url('assets/ui/paperclip.svg') center/contain no-repeat}
.pb-staff-attach input[type=file]{position:absolute;width:1px;height:1px;opacity:0;clip-path:inset(50%);overflow:hidden}
.pb-staff-attach .pb-staff-clip:focus-within{outline:2px solid #ebc37b;outline-offset:2px}
.pb-staff-attach .pb-staff-clip:hover{border-color:#ebc37b;background:linear-gradient(#936d3a,#62401e)}
.pb-staff-attach [data-file-name]{font-size:11px;color:#cdb28a;overflow-wrap:anywhere}

/* v1.1.6 inbox unread indicators and latest conversation preview. */
.pb-conversation>button[data-peer]{display:block;min-width:0;line-height:1.35}
.pb-conversation>button[data-peer] strong{font-size:12px;font-weight:normal}
.pb-conversation-unread>button[data-peer] strong{font-weight:bold;color:#f5d08b}
.pb-peer-preview{display:block;max-width:100%;font:11px/1.4 Arial,sans-serif;color:#b79b79;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-top:3px}
.pb-conversation-unread .pb-peer-preview{color:#e3caa4}
.pb-unread-count,.pb-inbox-badge{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dab264;background:#80521c;color:#fff1c5;border-radius:10px;min-width:19px;min-height:17px;padding:1px 4px;font:bold 10px/1 Arial,sans-serif;margin-left:6px;vertical-align:middle}
.pb-inbox-badge[hidden]{display:none}
.pb-banner-inbox{white-space:nowrap}
.pb-conversation-dots{opacity:.7}
@media (hover:none){.pb-conversation-dots{opacity:1}}

/* v1.1.6 ticket queue management. */
.pb-ticket-filters{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px}
.pb-ticket-filters .member-btn{font-size:11px;min-height:27px;text-decoration:none;padding:5px 9px}
.pb-ticket-filters .member-btn.selected{background:linear-gradient(#b18a4b,#785321);color:#1e1308;border-color:#efd09a}
.pb-ticket-filters small{font:inherit;opacity:.85;margin-left:3px}
.pb-staff-ticket small+small{margin-top:3px;color:#e7cf9d}

/* v1.1.21 — anchored, uniform-height, non-expanding mini chat layout. */
.pb-mini-messenger,.pb-private-messenger{
 bottom:0!important;height:min(410px,calc(100dvh - 8px));max-height:calc(100dvh - 8px);
 overflow:visible;border-radius:9px 9px 0 0;width:min(315px,calc(100vw - 65px));
}
.pb-mini-messenger.minimized,.pb-private-messenger.minimized{
 height:35px!important;min-height:35px!important;max-height:35px!important;
}
.pb-private-messenger{width:min(315px,calc(100vw - 65px));}
.pb-mini-messenger .pb-chat-scroll,.pb-private-messenger .pb-chat-scroll{
 min-height:0;max-height:none;flex:1 1 0;overflow-y:auto;
}
.pb-mini-messenger .pb-chat-send,.pb-private-messenger .pb-chat-send{flex:0 0 auto;min-width:0;position:relative;}
.pb-mini-messenger .pb-ticket-form{padding:9px;min-height:0;max-height:none;overflow-y:auto;flex:1 1 0;align-content:start;}
.pb-mini-messenger .pb-chat-bar,.pb-private-messenger .pb-chat-bar{flex:0 0 35px;}
.pb-mini-messenger .pb-chat-tabs{flex:0 0 auto;}
.pb-mini-messenger .pb-chat-error,.pb-private-messenger .pb-chat-error{margin:0;flex:0 0 auto;}
.pb-chat-send textarea{resize:none;height:48px;max-height:48px;min-height:48px;}
.pb-mini-messenger .pb-emoji-grid,.pb-private-messenger .pb-emoji-grid{
 position:absolute;bottom:calc(100% - 2px);right:7px;width:min(286px,calc(100vw - 38px));
 max-height:230px;overflow-y:auto;z-index:260;padding:9px;gap:5px;
 background:linear-gradient(#47321f,#20170f);border:2px solid #bd9655;
 box-shadow:0 7px 24px #000a;border-radius:9px;margin:0;
}
.pb-private-launch{top:auto!important;bottom:2px!important;}
.pb-person-search{min-width:0;overflow-y:auto;}
@media(max-width:720px){
 .pb-mini-messenger,.pb-private-messenger{bottom:0!important;height:min(410px,calc(100dvh - 5px));max-height:calc(100dvh - 5px);}
 .pb-private-messenger{width:min(315px,calc(100vw - 65px));right:auto;}
 .pb-private-messenger.minimized{bottom:0!important;}
 .pb-private-launch{bottom:2px!important;}
}

/* Chat controls stay aligned: mute at far right, no +/- controls. */
.pb-mini-messenger .pb-chat-actions{margin-left:auto;display:flex;justify-content:flex-end}
.pb-mini-messenger,.pb-private-messenger{overflow:hidden!important}
.pb-mini-messenger .pb-chat-send,.pb-private-messenger .pb-chat-send{overflow:visible}
.pb-chat-send .pb-emoji-grid{position:absolute!important;bottom:100%!important;right:3px!important}
.pb-private-messenger[data-new-mode]{max-width:315px}

/* Mobile: public/guest widget cannot fill the screen, only Support and Global mini chat. */
.pb-mini-messenger.pb-mini-guest{height:35px!important;min-height:35px!important;max-height:35px!important;width:205px!important}
.pb-mini-messenger.pb-mini-guest .pb-chat-guest{display:flex;align-items:center;justify-content:center;height:100%;padding:0 8px!important}
@media(max-width:720px){
 .pb-private-launch,.pb-private-messenger{display:none!important}
 .pb-mini-messenger{right:0!important;bottom:0!important;width:min(315px,100vw)!important;max-width:100vw!important}
 .pb-mini-messenger.minimized{width:min(250px,100vw)!important;height:35px!important;max-height:35px!important;min-height:35px!important}
 .pb-mini-messenger.minimized:not(.pb-mini-guest) > :not(.pb-chat-bar){display:none!important}
 .pb-mini-messenger.pb-mini-guest{width:205px!important}
}

/* v1.1.31 — true content-width message bubbles, not blue row-wide strips. */
.pb-chat-line,.pb-chat-line.from-me{
 background:transparent!important;border-bottom:0!important;
 padding:5px 2px 3px;margin-bottom:7px;overflow-wrap:anywhere;
}
.pb-chat-author{margin-bottom:3px;min-width:0}
.pb-message-content,.pb-message-content:has(.pb-image-open){
 display:inline-flex;align-items:center;vertical-align:top;position:relative;
 gap:2px;padding:0;max-width:100%;min-width:0;
}
.pb-message-bubble{
 display:inline-flex;flex-direction:column;align-items:flex-start;gap:5px;
 min-width:0;max-width:calc(100% - 24px);width:max-content;
 background:#42301e;border:1px solid #86623d;border-radius:11px 11px 11px 4px;
 padding:6px 9px;box-shadow:inset 0 1px #77573548;
 color:#f0dbb1;overflow-wrap:anywhere;
}
.pb-chat-line.from-me .pb-message-bubble{background:#58402a;border-color:#a7804c;border-radius:11px 11px 4px 11px}
.pb-message-bubble p,.pb-chat-line .pb-message-bubble p{
 color:#f2dfba;line-height:1.4;margin:0;white-space:pre-wrap;
 overflow-wrap:anywhere;word-break:normal;
}
.pb-message-bubble .pb-image-open{display:inline-flex;max-width:100%}
.pb-message-bubble .pb-chat-image{display:block;max-width:min(180px,100%)}
.pb-message-content>.pb-react-expand,
.pb-message-content:has(.pb-image-open)>.pb-react-expand,
.pb-message-content:not(:has(.pb-image-open))>.pb-react-expand{
 position:static;display:inline-grid;place-items:center;
 flex:0 0 22px;align-self:center;justify-self:start;
 width:22px;height:22px;padding:0;margin:0;
 border-radius:50%;border:1px solid #b29368;
 background:#493724;color:#ffe6b0;font:700 18px/1 Arial,sans-serif;
 transform:none;opacity:0;
}
.pb-chat-line:hover .pb-react-expand,.pb-react-expand:focus-visible,
.pb-message-content:has(.pb-image-open):hover>.pb-react-expand{opacity:1}
.pb-react-choices{top:calc(100% + 3px);right:0;z-index:5;max-width:min(260px,calc(100vw - 30px))}
.pb-chat-reactions{margin:3px 0 0 3px}
@media(hover:none){
 .pb-message-content>.pb-react-expand,.pb-message-content:has(.pb-image-open)>.pb-react-expand{opacity:1}
}
/* Bigger emoji glyph next to the existing authentic paperclip artwork. */
.pb-chat-send-actions .pb-emoji-toggle{
 display:inline-grid;place-items:center;width:32px;min-width:32px;height:29px;
 padding:0;color:#f0c874;font:700 25px/1 Arial,sans-serif;
 text-shadow:0 1px 0 #241506;
}
/* Document-level picker: not clipped by chat walls, title bar or scrolling. */
.pb-emoji-grid.pb-floating-emoji-grid{
 position:fixed!important;z-index:20000!important;
 display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));
 margin:0!important;padding:9px!important;gap:5px!important;
 max-height:min(230px,calc(100dvh - 16px));overflow-y:auto;
 background:linear-gradient(#47321f,#20170f);border:2px solid #bd9655;
 box-shadow:0 8px 25px #000b;border-radius:9px;
 box-sizing:border-box;
}
.pb-emoji-grid.pb-floating-emoji-grid button{min-width:0;min-height:30px;line-height:1.2}
.pb-emoji-grid.pb-floating-emoji-grid[hidden]{display:none!important}

/* v1.1.42 — narrower, shorter real mini chats; compact title and composer.
   Keep the message-bubble geometry, emoji overlay, click and keyboard controls. */
.pb-mini-messenger,.pb-private-messenger{
 width:min(284px,calc(100vw - 65px));
 height:min(338px,calc(100dvh - 8px));
 max-height:calc(100dvh - 8px);
}
.pb-mini-messenger.minimized,.pb-private-messenger.minimized{
 width:190px;height:30px!important;min-height:30px!important;max-height:30px!important;
}
.pb-private-messenger.minimized{width:184px}
.pb-mini-messenger .pb-chat-bar,.pb-private-messenger .pb-chat-bar{
 flex:0 0 30px;min-height:30px;height:30px;padding:2px 6px;gap:5px;
}
.pb-mini-messenger.minimized .pb-chat-bar,.pb-private-messenger.minimized .pb-chat-bar{
 min-height:30px;height:30px;
}
.pb-mini-messenger .pb-chat-title-toggle,.pb-private-messenger .pb-chat-title-toggle{
 padding:2px 3px;margin:0;font-size:12.5px;line-height:1.15;
}
.pb-chat-actions{gap:3px}
.pb-chat-actions button,.pb-private-messenger .pb-chat-actions button{
 width:21px;height:21px;min-width:21px;font-size:12px;
}
.pb-mini-messenger .pb-chat-tabs{padding:3px 5px;gap:4px}
.pb-mini-messenger .pb-chat-tabs button{padding:3px 5px;font-size:12px}
.pb-mini-messenger .pb-chat-status,.pb-private-messenger .pb-chat-status{padding:3px 7px}
.pb-mini-messenger .pb-chat-scroll,.pb-private-messenger .pb-chat-scroll{padding:6px 7px}
.pb-mini-messenger .pb-chat-line,.pb-private-messenger .pb-chat-line{margin-bottom:5px}
.pb-mini-messenger .pb-chat-send,.pb-private-messenger .pb-chat-send{padding:6px}
.pb-mini-messenger .pb-chat-send textarea,.pb-private-messenger .pb-chat-send textarea{
 height:42px;min-height:42px;max-height:42px;padding:5px 7px;
}
.pb-mini-messenger .pb-chat-send-actions,.pb-private-messenger .pb-chat-send-actions{padding-top:3px}
.pb-mini-messenger .pb-ticket-form{padding:7px;gap:6px}
.pb-mini-messenger .pb-chat-ticket-status{padding:4px 7px}
.pb-private-launch{width:30px;height:30px;font-size:18px;line-height:27px}
/* New Private Chat is a short search form rather than an empty 338px transcript. */
.pb-private-messenger[data-new-mode="true"]:not(.minimized){
 height:auto!important;min-height:0;max-height:min(260px,calc(100dvh - 8px));
}
.pb-private-messenger[data-new-mode="true"] .pb-person-search{
 flex:0 1 auto;min-height:0;max-height:min(225px,calc(100dvh - 38px));
 padding:7px 8px 9px;gap:5px;overflow-y:auto;
}
.pb-private-messenger[data-new-mode="true"] .pb-person-search input{padding:7px}
.pb-private-messenger[data-new-mode="true"] .pb-person-search button[type=submit]{padding:6px 10px}
.pb-private-messenger[data-new-mode="true"] .pb-user-suggestions{max-height:104px;overflow-y:auto}
@media(max-width:720px){
 .pb-mini-messenger{width:min(284px,100vw)!important;max-width:100vw!important}
 .pb-mini-messenger.minimized{width:min(204px,100vw)!important;height:30px!important;min-height:30px!important;max-height:30px!important}
 .pb-mini-messenger.pb-mini-guest{width:min(190px,100vw)!important;height:30px!important;min-height:30px!important;max-height:30px!important}
}
/* Keep the guest-only one-line launcher as compact as the real minimised chat. */
.pb-mini-messenger.pb-mini-guest{height:30px!important;min-height:30px!important;max-height:30px!important;width:190px!important}
