html[data-pm-attachments][data-design][data-page=messages] #main#main:has(>#private-messages-root[data-pm-mode=thread]){padding-top:8px!important;padding-inline:0!important}
html[data-pm-attachments][data-design][data-page=messages] #main#main #private-messages-root[data-pm-mode=thread]{max-width:none;min-height:0}
html[data-pm-attachments][data-design][data-page=messages] #main#main #private-messages-root[data-pm-mode=thread]>.pm-workspace{border:0;border-radius:0;box-shadow:none;background:var(--page)}
html[data-pm-attachments][data-design][data-page=messages] #main#main [data-pm-mode=thread] .pm-thread-heading{min-height:62px;padding:10px 16px;background:var(--page)}
html[data-pm-attachments][data-design][data-page=messages] #main#main [data-pm-mode=thread] .pm-main-pane{background:var(--page)}
.pm-message[data-pm-swiping]{position:relative}
.pm-message[data-pm-swiping]::before{content:'↩';position:absolute;inset-inline-start:10px;top:50%;transform:translateY(-50%);color:var(--accent);font-size:20px}
.pm-message[data-pm-swiping]>.pm-message-bubble{will-change:transform}
.pm-link-recipe-preview:empty{display:none}
.pm-link-recipe-preview>.pm-attached-card{width:100%;margin-bottom:8px}
.pm-message-bubble>p>a[data-pm-open-recipe]{color:inherit;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.pm-attach-button{display:grid;place-items:center;flex:none;width:40px;height:40px;min-height:40px;padding:8px;border:1px solid var(--edge);border-radius:50%;background:var(--surface);color:var(--accent);cursor:pointer}.pm-attach-button svg{width:22px;height:22px}.pm-attach-button:disabled{opacity:.5;cursor:wait}
.pm-attachment-draft{display:flex;align-items:center;gap:8px;margin-bottom:9px;min-width:0}.pm-attachment-draft>.pm-attached-card{flex:1}.pm-attachment-draft .pm-attached-photo{width:72px;height:58px}.pm-attachment-draft .pm-attached-photo img{width:100%;height:100%;object-fit:cover}.pm-attachment-remove{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid var(--edge);border-radius:50%;background:var(--surface);color:var(--muted);font-size:22px;cursor:pointer}.pm-attachment-draft:empty{display:none}
.pm-attached-card{display:flex;align-items:center;gap:9px;width:100%;max-width:100%;min-width:0;padding:10px;border:1px solid var(--edge);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}.pm-attached-card>img{flex:0 0 48px;display:block;width:48px!important;min-width:48px;max-width:48px;height:48px!important;max-height:48px;border-radius:8px;object-fit:cover}.pm-attached-card>svg{flex:none;width:23px;height:23px;color:var(--accent)}.pm-attached-card>span{display:block;min-width:0;flex:1}.pm-attached-card small{display:block;font-size:.7rem;color:var(--muted);margin-bottom:3px}.pm-attached-card strong{display:block;font-size:.9rem;line-height:1.3;overflow-wrap:anywhere}.pm-attached-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-top:4px;font-size:.85rem;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}.pm-attachment-unavailable{font-size:.85rem;font-style:italic}
.pm-attached-photo{display:block;max-width:100%;padding:0;border:0;border-radius:12px;overflow:hidden;background:transparent;cursor:pointer}.pm-attached-photo img{display:block;width:240px;max-width:100%;height:auto;aspect-ratio:4/3;max-height:260px;object-fit:contain}.pm-message-bubble.has-attachment{min-width:0;max-width:100%;width:fit-content}.pm-message-bubble.has-attachment>p:empty{display:none}.pm-message-bubble.has-attachment>p:not(:empty){margin-top:8px}.pm-reply-button{display:inline-grid;place-items:center;width:28px;height:24px;min-height:24px;margin:3px 0 0 7px;padding:0;border:0;background:transparent;color:inherit;font-size:17px;cursor:pointer;opacity:.65}.pm-reply-button:hover,.pm-reply-button:focus-visible{opacity:1}
.pm-attachment-dialog{width:calc(100vw - 24px);max-width:620px;max-height:85dvh;box-sizing:border-box;padding:18px;border:1px solid var(--edge);border-radius:20px;background:var(--surface);color:var(--ink);font-family:var(--al-font,Georgia,serif);overflow:auto;overscroll-behavior:contain}.pm-attachment-dialog::backdrop,.pm-photo-dialog::backdrop{background:#19354588}.pm-attachment-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.pm-attachment-dialog h2{margin:0;font-size:1.2rem;color:var(--accent)}.pm-attachment-dialog [data-pm-attachment-close]{display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid var(--edge);border-radius:50%;background:transparent;color:inherit;font-size:24px;cursor:pointer}.pm-attachment-dialog>input{display:block;width:100%;min-width:0;box-sizing:border-box;margin:0 0 14px;padding:12px;border:1px solid var(--edge);border-radius:12px;background:var(--soft);color:inherit;font:inherit;font-size:16px}
.pm-attachment-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pm-attachment-menu button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:76px;padding:12px;border:1px solid var(--edge);border-radius:14px;background:var(--surface);color:inherit;font:inherit;cursor:pointer}.pm-attachment-menu svg{width:25px;height:25px;color:var(--accent)}.pm-attachment-choice{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:12px 0;border:0;border-bottom:1px solid var(--edge);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.pm-attachment-choice>img{flex:none;width:48px;height:48px;object-fit:cover;border-radius:8px}.pm-attachment-choice>svg{flex:none;width:24px;height:24px;color:var(--accent)}.pm-attachment-choice>span:first-of-type{min-width:0;flex:1}.pm-attachment-choice strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.35}.pm-attachment-choice small{display:block;color:var(--muted);font-size:.8rem;margin-top:4px}
.pm-photo-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;margin:0;padding:55px 12px 12px;border:0;background:#14212b;color:#fff}.pm-photo-dialog>img{display:block;width:100%;height:100%;object-fit:contain}.pm-photo-dialog>button{position:absolute;right:14px;top:12px;width:34px;height:34px;border:1px solid #ffffff88;border-radius:50%;background:transparent;color:white;font-size:25px;cursor:pointer}
.pm-attachment-dialog :is(button,input):focus-visible,.pm-attach-button:focus-visible,.pm-attached-card:focus-visible,.pm-attached-photo:focus-visible,.pm-reply-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:400px){.pm-attachment-dialog{padding:14px}.pm-attached-card{padding:8px}.pm-attach-button{width:36px;height:36px;min-height:36px;padding:6px}}

.pm-message-bubble:has(>.pm-reply-button){position:relative}.pm-message-bubble>.pm-reply-button{position:absolute;right:5px;bottom:4px;margin:0}.pm-message-bubble:has(>.pm-reply-button)>time{padding-right:26px;min-height:20px}
/* Light media bubbles and one compact composer surface. */
.pm-message .pm-message-bubble.has-attachment{padding:9px;border:1px solid var(--edge);background:var(--surface);color:var(--ink);box-sizing:border-box}
.pm-message.is-mine .pm-message-bubble.has-attachment{background:color-mix(in srgb,var(--soft) 78%,var(--surface));color:var(--ink);border-color:var(--edge)}
.pm-message-bubble.has-attachment>.pm-attached-card,.pm-link-recipe-preview>.pm-attached-card{padding:3px;border:0;border-radius:10px;background:transparent;gap:11px;box-sizing:border-box}
.pm-attached-card[data-pm-attachment-type=recipe]>img{width:66px!important;min-width:66px;max-width:66px;height:66px!important;max-height:66px;flex-basis:66px;border-radius:10px}
.pm-attached-card[data-pm-attachment-type=recipe] strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:.93rem;line-height:1.3}
.pm-message-bubble .pm-attached-card[data-pm-attachment-type=message]{padding:8px 10px;border:0;border-inline-start:3px solid var(--accent);border-radius:8px;background:color-mix(in srgb,var(--surface) 72%,var(--soft));gap:0}
.pm-attached-card[data-pm-attachment-type=message]>svg,.pm-attached-card[data-pm-attachment-type=message] small{display:none}
.pm-attached-card[data-pm-attachment-type=message] strong{font-size:.8rem;color:var(--accent)}
.pm-attached-card[data-pm-attachment-type=message] .pm-attached-excerpt{-webkit-line-clamp:2;margin-top:3px;font-size:.84rem}
.pm-attached-photo{width:fit-content;max-width:min(280px,100%);border-radius:12px;background:var(--surface)}
.pm-attached-photo img{width:auto!important;height:auto!important;aspect-ratio:auto;max-width:100%;max-height:340px;object-fit:contain}
.pm-message-bubble:has(>.pm-attached-photo){padding:5px!important}
.pm-message-bubble:has(>.pm-attached-photo)>p:not(:empty){margin:8px 5px 5px}
.pm-message-bubble.has-attachment>time{margin-top:5px;font-size:.62rem}
.pm-message-bubble>p>a[data-pm-open-recipe]{display:block;font-size:.73rem;line-height:1.4;opacity:.8;text-decoration-thickness:1px}
.pm-attachment-draft{padding:8px;border-radius:13px;background:var(--soft);gap:10px}
.pm-attachment-draft>.pm-attached-card{padding:0;border:0;background:transparent}
.pm-attachment-draft .pm-attached-photo{flex:none;width:58px;height:58px}
.pm-attachment-draft .pm-attached-photo img{width:58px!important;height:58px!important;object-fit:cover}
.pm-attachment-remove{width:28px;height:28px;border:0;background:var(--surface)}
html[data-pm-attachments][data-design][data-page=messages] #main#main#main .pm-compose-modern{padding:10px 12px 8px;border-top:1px solid var(--edge);background:var(--page)}
.pm-compose-capsule{align-items:flex-end;gap:6px;min-height:48px;padding:5px;border:1px solid var(--edge);border-radius:27px;background:var(--surface);box-sizing:border-box}
.pm-compose-capsule:focus-within{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
html[data-pm-attachments][data-design][data-page=messages] #main#main#main .pm-compose-capsule>#pm-body{height:36px;min-height:36px;max-height:120px;padding:7px 5px!important;border:0!important;border-radius:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;font:400 16px/1.4 var(--al-font,Georgia,serif)!important}
.pm-compose-capsule>.pm-attach-button{width:36px;height:36px;min-height:36px;padding:7px;border:0;background:var(--soft)}
.pm-compose-capsule>.pm-send-button{width:38px;height:38px;min-height:38px;padding:9px;background:var(--accent);color:var(--accent-text,#fff)}
.pm-compose-capsule>.pm-send-button:disabled{opacity:1;background:var(--soft);color:var(--muted)}
.pm-compose-capsule>.pm-send-button svg{width:20px;height:20px;transform:none}

html[data-pm-attachments][data-design][data-page=messages] #main#main#main .pm-compose-capsule>#pm-body{overflow-y:auto!important;scrollbar-width:none;-ms-overflow-style:none;resize:none!important}
.pm-compose-capsule>#pm-body::-webkit-scrollbar{display:none;width:0;height:0}
