/* Loaded after the base styles: keep theme controls out of the support layout. */
.ps-admin{max-width:1180px;margin-top:16px}
.ps-admin .ps-hero{padding:15px 18px;gap:12px;margin-bottom:12px;border-radius:12px}
.ps-admin .ps-hero h1{font-size:21px;margin:5px 0}
.ps-admin .ps-hero p{margin:0;line-height:1.5}
.ps-admin .ps-workspace{grid-template-columns:248px minmax(0,1fr);height:clamp(420px,65vh,610px);min-height:0;max-height:none;border-radius:12px}
.ps-admin .ps-inbox{padding:12px;min-width:0;min-height:0}
.ps-admin .ps-inbox h2{font-size:14px;margin-bottom:10px}
.ps-admin .ps-inbox>input,.ps-admin .ps-inbox>select,.ps-admin .ps-assignment select{box-sizing:border-box;height:36px!important;min-height:36px!important;max-height:36px!important;margin:0 0 8px!important;padding:6px 10px!important;font-size:12px!important;line-height:22px!important;border:1px solid #e5e7ef;border-radius:8px;background-color:#fafbfe}
.ps-admin .ps-inbox-item{padding:9px 10px!important;margin-top:6px;gap:3px;border-radius:9px;font-size:12px}
.ps-admin .ps-inbox-item small{font-size:10px}
.ps-admin .ps-pages{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:5px;align-items:center;font-size:10px;line-height:1.4}
.ps-admin .ps-pages span{text-align:center;min-width:0}
.ps-admin .ps-pages button{font-size:10px;padding:5px 7px;min-height:28px}
.ps-admin .ps-thread,.ps-admin .ps-conversation{min-width:0;min-height:0;overflow:hidden}
.ps-admin .ps-thread{display:flex;flex-direction:column}
.ps-admin .ps-conversation{flex:1 1 0;display:flex;flex-direction:column}
.ps-admin .ps-assignment{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px;font-size:11px}
.ps-admin .ps-assignment label{display:flex;align-items:center;gap:7px;margin:0;line-height:1.3}
.ps-admin .ps-assignment select{width:150px!important;margin:0!important;height:32px!important;min-height:32px!important;max-height:32px!important;padding-top:4px!important;padding-bottom:4px!important}
.ps-admin .ps-assignment button{padding:6px 10px;font-size:11px;min-height:32px}
.ps-admin .ps-chat-header{flex:0 0 auto;padding:10px 12px;min-height:55px;gap:8px}
.ps-admin .ps-chat-header strong{font-size:13px}
.ps-admin .ps-chat-header small{font-size:10px;margin-top:3px}
.ps-admin .ps-chat-header button{font-size:10px;white-space:nowrap;padding:5px 9px}
.ps-admin .ps-info{flex:0 0 auto;padding:6px 12px;font-size:10px;line-height:1.5}
.ps-admin .ps-error{flex:0 0 auto;padding:6px 12px;font-size:11px}
.ps-admin .ps-older{flex:0 0 auto;font-size:10px;margin-top:5px;padding:4px 8px}
.ps-admin .ps-messages{flex:1 1 0;min-height:0;padding:12px;gap:7px;scrollbar-width:thin;overscroll-behavior:contain}
.ps-admin .ps-bubble{max-width:70%;padding:7px 10px;font-size:12px;border-radius:10px;line-height:1.45}
.ps-admin .ps-bubble small{font-size:9px;margin-top:4px}
.ps-admin .ps-bubble .ps-image{width:160px;height:126px;max-height:126px;object-fit:contain;margin:0 0 4px}
.ps-admin .ps-compose{flex:0 0 auto;grid-template-columns:28px minmax(0,1fr) 56px;gap:7px;padding:8px 10px;align-items:center}
.ps-admin .ps-compose textarea{box-sizing:border-box;height:36px!important;min-height:36px!important;max-height:90px;margin:0!important;padding:8px 10px!important;font-size:12px;line-height:18px;border-radius:10px}
.ps-admin .ps-compose>button{height:36px;min-height:36px;font-size:11px;padding:5px 8px;border-radius:9px}
.ps-admin .ps-attach{height:32px;font-size:22px}
.ps-admin .ps-settings{margin-top:12px;padding:12px 15px;border-radius:12px}
.ps-admin .ps-settings summary{font-size:12px}
.ps-admin .ps-note{margin:10px 0;font-size:10px;line-height:1.5}
.ps-widget.ps-widget{--ps-sell-space:168px}
.ps-widget.ps-widget .ps-drawer{width:320px;height:min(400px,calc(100dvh - var(--ps-action-bottom) - 76px));border-radius:14px}
.ps-widget .ps-chat-header{min-height:70px;padding-top:11px;padding-bottom:10px}
.ps-widget .ps-chat-header strong{font-size:13px}
.ps-widget .ps-info{font-size:10px;padding:6px 11px}
.ps-widget .ps-messages{padding:10px;gap:6px}
.ps-widget .ps-bubble{font-size:12px;padding:7px 9px}
.ps-widget .ps-bubble .ps-image{width:152px;height:120px;max-height:120px}
.ps-widget.ps-widget .ps-launch{min-height:38px;padding:8px 12px;font-size:11px;font-family:inherit}
body.ps-has-support .pdv-floating-sell{min-height:38px;padding-top:6px;padding-bottom:6px}
.ps-widget .ps-launch[aria-expanded=true]{background:#f2eeff;border-color:#c8bdf6}
@media(max-width:780px){.ps-admin .ps-workspace{grid-template-columns:210px minmax(0,1fr)}.ps-admin .ps-assignment select{width:125px!important}}
@media(max-width:767px){.ps-widget.ps-widget .ps-drawer{width:320px;height:min(390px,calc(100dvh - var(--ps-action-bottom) - 76px))}.ps-widget.ps-widget .ps-launch{min-height:38px;padding:8px 10px}body.ps-has-support .pdv-floating-sell{min-height:38px}}
@media(max-width:520px){.ps-admin .ps-workspace{grid-template-columns:minmax(0,1fr);height:auto}.ps-admin .ps-inbox{max-height:220px;border-right:0;border-bottom:1px solid #e5e7ef}.ps-admin .ps-thread{height:440px;min-height:0}.ps-admin .ps-bubble{max-width:85%}}
@media(max-height:520px){.ps-widget.ps-widget .ps-drawer{height:min(320px,calc(100dvh - var(--ps-action-bottom) - 152px));bottom:calc(var(--ps-action-bottom) + 52px + env(safe-area-inset-bottom,0px))}}
.ps-admin .ps-compose,.ps-widget .ps-compose{display:grid!important;grid-template-columns:38px minmax(0,1fr) 60px;align-items:center!important;gap:8px;margin:0!important;padding:9px 10px;min-height:58px;flex-shrink:0}
.ps-admin .ps-compose .ps-attach,.ps-widget .ps-compose .ps-attach{display:grid!important;place-items:center;align-self:center;width:38px!important;height:38px!important;min-height:38px;max-height:38px;margin:0!important;padding:0!important;border:0;border-radius:10px;background:#f5f2ff;line-height:1!important;float:none;font-size:22px;box-sizing:border-box}
.ps-admin .ps-compose .ps-attach>span:not(.screen-reader-text),.ps-widget .ps-compose .ps-attach>span:not(.screen-reader-text){display:block;margin:0;padding:0;line-height:1}
.ps-admin .ps-compose textarea,.ps-widget .ps-compose textarea{display:block;align-self:center;width:100%!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:9px 11px!important;border:1px solid #e5e7ef;border-radius:11px;font-family:inherit!important;font-size:12px!important;font-weight:400!important;line-height:18px!important;box-sizing:border-box;resize:none;box-shadow:none;float:none}
.ps-admin .ps-compose>button,.ps-widget .ps-compose>button{display:flex;align-items:center;justify-content:center;align-self:center;width:60px!important;height:38px!important;min-height:38px!important;max-height:38px;margin:0!important;padding:0 8px!important;border:1px solid #6755dc;border-radius:11px;background:#6755dc;color:#fff;font-family:inherit!important;font-size:12px!important;font-weight:600!important;line-height:18px!important;box-sizing:border-box;float:none}
.ps-admin .ps-compose>small,.ps-widget .ps-compose>small{margin:0!important;padding:0;line-height:1.4}
.ps-widget.ps-admin-widget{--ps-sell-space:0px;--ps-action-bottom:18px;right:18px;bottom:18px;z-index:100100}
.ps-widget.ps-admin-widget .ps-drawer{width:390px;height:min(560px,calc(100dvh - 90px));bottom:70px;right:18px}
.ps-admin-widget .ps-mini-heading{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:12px 42px 10px 12px;border-bottom:1px solid #e5e7ef;font-size:13px}
.ps-admin-widget .ps-mini-heading>a{font-size:10px;text-decoration:none;color:#6755dc;margin-left:auto}
.ps-admin-widget .ps-mini-heading>button{font-size:10px;padding:4px 6px}
.ps-admin-widget .ps-mini-inbox{flex:0 0 auto;padding:8px 10px;border-right:0;border-bottom:1px solid #e5e7ef;overflow:visible}
.ps-admin-widget .ps-mini-filters{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:6px}
.ps-admin-widget .ps-mini-filters input,.ps-admin-widget .ps-mini-filters select,.ps-admin-widget .ps-assignment select{width:100%;height:30px!important;min-height:30px!important;margin:0!important;padding:4px 7px!important;border:1px solid #e5e7ef;border-radius:7px;font-size:11px;line-height:20px;box-sizing:border-box;background:#fafbfe}
.ps-admin-widget .ps-mini-conversations{max-height:100px;overflow:auto;scrollbar-width:thin}
.ps-admin-widget .ps-inbox-item{padding:6px 8px!important;margin-top:5px;gap:2px;font-size:11px;border-radius:7px}
.ps-admin-widget .ps-inbox-item small{font-size:9px}
.ps-admin-widget .ps-pages{display:flex;justify-content:space-between;gap:5px;font-size:9px;margin-top:5px}
.ps-admin-widget .ps-pages button{font-size:9px;padding:3px 6px}
.ps-admin-widget .ps-assignment{flex:0 0 auto;padding:6px 10px;gap:7px;font-size:10px}
.ps-admin-widget .ps-assignment label{display:flex;align-items:center;gap:6px;margin:0}
.ps-admin-widget .ps-assignment select{width:135px}
.ps-admin-widget .ps-assignment button{font-size:10px;padding:4px 8px}
.ps-admin-widget .ps-conversation{flex:1 1 0;min-height:0;overflow:hidden}
.ps-admin-widget .ps-chat-header,.ps-admin-widget .ps-info,.ps-admin-widget .ps-error,.ps-admin-widget .ps-older{flex-shrink:0}
.ps-admin-widget .ps-chat-header{min-height:62px;padding-right:12px}
.ps-admin-widget .ps-messages{flex:1 1 0;min-height:0}
@media(max-width:520px){.ps-widget.ps-admin-widget{right:12px;bottom:12px}.ps-widget.ps-admin-widget .ps-drawer{right:12px;bottom:60px;width:calc(100vw - 24px);height:min(540px,calc(100dvh - 115px))}}
/* Identical composer geometry for staff inbox, staff bubble and public chat. */
.ps-admin form.ps-compose,.ps-widget form.ps-compose{grid-template-columns:40px minmax(0,1fr) 64px!important;grid-auto-rows:auto;column-gap:8px!important;align-items:center!important;padding:10px!important;line-height:normal}
.ps-admin form.ps-compose>label.ps-attach,.ps-widget form.ps-compose>label.ps-attach,.ps-admin form.ps-compose>textarea,.ps-widget form.ps-compose>textarea,.ps-admin form.ps-compose>button,.ps-widget form.ps-compose>button{height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;vertical-align:middle!important;box-sizing:border-box!important;border-radius:10px!important;transform:none!important;top:auto!important;bottom:auto!important}
.ps-admin form.ps-compose>label.ps-attach,.ps-widget form.ps-compose>label.ps-attach{width:40px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
.ps-admin .ps-attach svg,.ps-widget .ps-attach svg{display:block;width:18px;height:18px;fill:none;stroke:#6755dc;stroke-width:1.8;stroke-linecap:round}
.ps-admin form.ps-compose>textarea,.ps-widget form.ps-compose>textarea{padding:10px 11px!important;line-height:18px!important;font-size:12px!important;font-family:inherit!important;font-weight:400!important;letter-spacing:normal!important;background:#f8f8fc!important;box-shadow:none!important;outline-offset:2px}
.ps-admin form.ps-compose>button,.ps-widget form.ps-compose>button{width:64px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:12px!important;font-family:inherit!important;line-height:18px!important;letter-spacing:normal!important}
.ps-unread-count,.ps-admin .ps-hero h1> b{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;margin-left:8px;border-radius:999px;background:#6755dc;color:#fff;font-size:10px;line-height:1;vertical-align:middle}
.ps-widget.ps-widget .ps-drawer{bottom:calc(var(--ps-action-bottom) + 52px + env(safe-area-inset-bottom,0px) + var(--ps-keyboard-inset,0px));height:min(400px,var(--ps-drawer-available,calc(100dvh - var(--ps-action-bottom) - 152px)));min-height:0;max-height:var(--ps-drawer-available,calc(100dvh - var(--ps-action-bottom) - 152px))}
.ps-widget.ps-admin-widget .ps-drawer{bottom:calc(70px + var(--ps-keyboard-inset,0px));height:min(560px,var(--ps-drawer-available,calc(100dvh - 170px)))}
.ps-widget .ps-conversation{flex:1 1 0;min-height:0;overflow:auto}
.ps-widget .ps-chat-header,.ps-widget .ps-info,.ps-widget .ps-compose{flex-shrink:0}
.ps-widget .ps-messages{flex:1 1 0;min-height:0;overflow:auto}
@media(max-width:520px){.ps-widget.ps-admin-widget .ps-drawer{bottom:calc(60px + var(--ps-keyboard-inset,0px))}}
