.chat-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-width:380px;margin:8px 0;display:grid}.chat-photo-grid:has(>button:only-child){grid-template-columns:minmax(0,1fr)}.chat-photo-grid>button{cursor:zoom-in;background:0 0;border:0;border-radius:9px;padding:0;overflow:hidden}.chat-photo-grid>button img{object-fit:cover;width:100%;height:180px;display:block}.chat-photo-grid>button:only-child img{object-fit:contain;height:auto;max-height:320px}.chat-photo-drafts{gap:9px;padding:8px 0;display:flex;overflow-x:auto}.chat-photo-drafts>div{flex-shrink:0;position:relative}.chat-photo-drafts img{object-fit:cover;border-radius:8px;width:64px;height:64px;display:block}.chat-photo-drafts button{color:#29271f;background:#fff;border:0;border-radius:50%;place-items:center;width:23px;height:23px;padding:0;display:grid;position:absolute;top:3px;right:3px}.chat-photo-viewer{background:#171916;border:0;border-radius:10px;max-width:94vw;max-height:92dvh;padding:0;overflow:auto}.chat-photo-viewer::backdrop{background:#151410db}.chat-photo-viewer>img{object-fit:contain;width:auto;max-width:94vw;height:auto;max-height:89dvh;display:block}.chat-photo-viewer>button{float:right;color:#24231e;z-index:1;background:#fff;border:0;border-radius:50%;place-items:center;width:40px;height:40px;margin:8px;display:grid;position:sticky;top:8px}.chat-window .chat-input{grid-template-columns:34px minmax(0,1fr) 40px;align-items:center;display:grid}.chat-window .chat-input input[type=file][hidden],.messenger-compose input[type=file][hidden]{display:none!important}.chat-window .chat-input textarea{resize:vertical;width:100%;min-width:0;height:44px;min-height:44px;max-height:96px;padding:10px;font-size:16px}.chat-window .chat-input>button{height:42px}.chat-window .chat-contact input{font-size:16px}.chat-window .chat-input>.chat-photo-picker,.messenger-compose .chat-photo-picker{color:#7b644a;background:0 0;border:0;flex-shrink:0;place-items:center;width:34px;height:40px;padding:0;display:grid}.chat-window .chat-photo-drafts{max-width:100%}.chat-window .chat-contact:has(input:disabled){opacity:.7}
