/* Private chat photos: the composer stays inside the available viewport. */
.sz-single-copy .sz-profile-send-message{width:100%;min-height:52px;font-size:16px}
/* Unread status belongs to each sender, and remains distinct from the selected row. */
.sz-messages-layout .sz-conversation-row{border-left:3px solid transparent;min-height:84px}
.sz-messages-layout .sz-conversation-row.is-unread{background:#351728;border-left-color:#ff6baa}
.sz-messages-layout .sz-conversation-row.is-unread:hover{background:#482036}
.sz-messages-layout .sz-conversation-row.is-active{box-shadow:inset 0 0 0 1px #746274}
.sz-messages-layout .sz-conversation-row .sz-conversation-detail{display:flex;flex:1;min-width:0;flex-direction:column;gap:7px}
.sz-messages-layout .sz-conversation-title,.sz-messages-layout .sz-conversation-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.sz-messages-layout .sz-conversation-title strong{min-width:0;flex:1;font-size:16px;line-height:1.4}
.sz-messages-layout .sz-conversation-meta small{font-size:12px;color:#c6bccb;white-space:nowrap}
.sz-messages-layout .sz-conversation-new{font-size:12px;font-weight:650;color:#ffb5d6;white-space:nowrap}
.sz-messages-layout .sz-conversation-unread{display:inline-grid;place-items:center;flex:0 0 auto;min-width:24px;height:24px;padding:0 7px;border-radius:99px;background:#ff8fbd;color:#2c0719;font-size:13px;line-height:1;font-weight:800}
.sz-messages-layout .sz-conversation-unread[hidden],.sz-messages-layout .sz-conversation-new[hidden],.sz-desktop-nav .sz-nav-count[hidden],.sz-mobile-nav b[hidden]{display:none!important}
.sz-message-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.sz-messages-layout .sz-compose-form{grid-template-columns:44px minmax(0,1fr) auto;align-items:end;max-height:calc(var(--sz-messages-height,600px) - var(--sz-thread-head-height,76px) - 2px);overflow-y:auto;overscroll-behavior:contain}
.sz-compose-form .sz-add-photo{display:grid;place-items:center;width:44px;min-height:44px;padding:0;border:1px solid #665064;border-radius:9px;background:#211722;color:#ffadd0;cursor:pointer;align-self:end}
.sz-add-photo svg{width:23px;height:23px;pointer-events:none}
.sz-compose-form .sz-add-photo:focus-visible,.sz-compose-form .sz-remove-photo:focus-visible,.sz-message-photo a:focus-visible{outline:2px solid #ff8cba;outline-offset:3px}
.sz-compose-form .sz-add-photo:disabled,.sz-compose-form .sz-remove-photo:disabled{opacity:.5;cursor:wait}
.sz-messages-layout .sz-compose-form textarea{grid-column:2;grid-row:auto;min-height:44px;height:64px;resize:none}
.sz-messages-layout .sz-compose-form>.sz-btn{min-height:44px;align-self:end}
.sz-compose-form .sz-chat-photo-input{display:none!important}
.sz-compose-form .sz-photo-preview{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-width:0;max-height:72px;padding:6px 8px;border:1px solid #4a3345;border-radius:9px;background:#1a121c}
.sz-compose-form .sz-photo-preview[hidden],.sz-compose-form [data-sz-upload-progress][hidden],.sz-photo-preview img[hidden]{display:none!important}
.sz-photo-preview img{display:block;width:54px;height:54px;object-fit:cover;flex:0 0 54px;border-radius:5px}
.sz-photo-preview>span{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;font-size:14px;line-height:1.3}
.sz-photo-preview small{color:#c6bacb;font-size:12px}
.sz-compose-form .sz-remove-photo{flex:0 0 auto;min-width:44px;min-height:44px;padding:0 8px;border:0;border-radius:5px;background:none;color:#ffd3e6;font-size:14px;text-decoration:underline;cursor:pointer}
.sz-compose-form [data-sz-upload-progress]{grid-column:1/-1;width:100%;height:5px;border:0;border-radius:3px;accent-color:#ff4b98}
.sz-messages-layout .sz-compose-form .sz-form-message{grid-column:1/-1;font-size:14px;line-height:1.4}
.sz-message-bubble p{white-space:pre-wrap}
.sz-message-photo{margin:0 0 6px}
.sz-message-photo a{display:block;max-width:320px;border-radius:8px;overflow:hidden}
.sz-message-photo img{display:block;width:auto;max-width:100%;height:auto;max-height:340px;object-fit:contain;background:#100c13;border-radius:8px}
.sz-message-photo.is-removed{font-size:14px;line-height:1.4;color:#c9bdcf;padding:8px;border:1px dashed #66536e;border-radius:7px}
.sz-compose-form .sz-photo-mode{grid-column:1/-1;display:flex;gap:6px;min-width:0;margin:0;padding:0;border:0}
.sz-compose-form .sz-photo-mode[hidden]{display:none!important}
.sz-photo-mode legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sz-photo-mode label{position:relative;display:flex;flex:1;cursor:pointer;margin:0}
.sz-photo-mode input{position:absolute;width:1px;height:1px;opacity:0}
.sz-photo-mode label span{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:4px 8px;border:1px solid #60415a;border-radius:8px;background:#1a121c;color:#d8cadb;font-size:14px;font-weight:600;line-height:1.2}
.sz-photo-mode input:checked+span{border-color:#ff8cba;color:#fff;background:#6b2547}
.sz-photo-mode input:focus-visible+span{outline:2px solid #ffadd0;outline-offset:2px}
.sz-photo-mode:disabled label{opacity:.55;cursor:wait}
.sz-message-photo.is-once{display:flex;align-items:center;gap:12px;min-width:155px;padding:6px 0}
.sz-message-photo.is-once strong,.sz-message-photo.is-once small{display:block;line-height:1.4}
.sz-message-photo.is-once strong{font-size:16px;color:#fff}
.sz-message-photo.is-once small{font-size:13px;color:#e3cfe0}
.sz-once-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1.5px solid currentColor;border-radius:50%;font-size:15px;font-weight:700;color:#ffd1e6}
.sz-open-once{display:flex;align-items:center;gap:12px;min-height:54px;padding:4px 8px;border:0;border-radius:7px;color:#fff;background:none;text-align:left;cursor:pointer}
.sz-open-once:hover{background:#ffffff12}
.sz-open-once:focus-visible{outline:2px solid #ffadd0;outline-offset:3px}
body.sz-photo-viewing{overflow:hidden}
dialog.sz-once-viewer{position:fixed;inset:0;z-index:2147483647;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;box-sizing:border-box;margin:0;padding:0;border:0;background:#09070b;color:#fff;overflow:hidden}
dialog.sz-once-viewer[open]{display:flex;flex-direction:column}
.sz-once-viewer::backdrop{background:#09070b}
.sz-once-viewer header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;padding:calc(8px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px));font-size:16px}
.sz-once-viewer header button{min-width:70px;min-height:44px;padding:8px 14px;border:1px solid #886076;border-radius:8px;background:#281621;color:#fff;font:inherit;cursor:pointer}
.sz-once-viewer header button:focus-visible{outline:2px solid #ffadd0;outline-offset:2px}
.sz-once-stage{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;padding:8px 12px max(12px,env(safe-area-inset-bottom,0px));box-sizing:border-box;text-align:center;font-size:16px}
.sz-once-stage img{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
@media print{.sz-once-viewer{visibility:hidden!important}}
@media(max-width:700px){
 .sz-messages-layout .sz-compose-form{column-gap:7px;row-gap:7px;padding:9px}
 .sz-messages-layout .sz-compose-form textarea{height:48px;padding:10px 8px}
 .sz-compose-form .sz-photo-preview{max-height:64px;padding:4px 6px;gap:8px}
 .sz-photo-preview img{width:48px;height:48px;flex-basis:48px}
 .sz-message-photo a{max-width:260px}
 .sz-message-photo img{max-height:280px}
}
@media(max-height:500px){
 .sz-messages-layout .sz-thread{padding-top:0;padding-bottom:0}
 .sz-compose-form .sz-photo-preview{max-height:48px;padding:2px 5px}
 .sz-photo-preview img{width:38px;height:38px;flex-basis:38px}
 .sz-messages-layout .sz-compose-form textarea{height:44px}
 .sz-messages-layout .sz-thread-head{min-height:52px;padding-top:4px;padding-bottom:4px}
}
