/* Photo surfaces use the installed theme palette, including text-fill overrides. */
:is(#pphPhotos,#pphViewer,#pphUpload,#pphConfirm){--ph-border:var(--pf-border,#344d67);--ph-muted:var(--pf-muted,#b6c4d4);--ph-text:var(--pf-text,#eef4fb);--ph-bg:var(--pf-panel,#182940);--ph-fill:var(--pf-fill,linear-gradient(#20344f,#182940));--ph-shadow:var(--pf-shadow,#0005);--ph-hover:var(--private-hover-fill,var(--ph-fill));--ph-accent:var(--private-accent,var(--ph-text));color:var(--ph-text)!important;-webkit-text-fill-color:var(--ph-text)!important;font-family:inherit;line-height:1.45}
:is(#pphPhotos,#pphViewer,#pphUpload,#pphConfirm) *{box-sizing:border-box}
:is(#pphPhotos,#pphViewer,#pphUpload,#pphConfirm) [hidden]{display:none!important}
html.pph-open,html.pph-open body{overflow:hidden!important}
#pphPhotos{padding:18px!important}
#pphPhotos .pph-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
#pphPhotos .pph-heading .pp-card-title{margin:0!important}
:is(#pphPhotos,#pphViewer,#pphUpload,#pphConfirm) .pph-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;margin:0;padding:7px 12px;border:1px solid var(--ph-border)!important;border-radius:9px;background-color:var(--ph-bg)!important;background-image:var(--ph-fill)!important;color:var(--ph-text)!important;-webkit-text-fill-color:var(--ph-text)!important;box-shadow:inset 0 1px 0 #ffffff12,0 3px 7px var(--ph-shadow)!important;text-shadow:none!important;font-family:inherit;font-size:13px;font-weight:500;line-height:1.35;cursor:pointer;transition:border-color .15s}
:is(#pphPhotos,#pphViewer,#pphUpload,#pphConfirm) .pph-button:hover{background-image:var(--ph-hover)!important;border-color:var(--ph-accent)!important}
:is(#pphPhotos,#pphViewer,#pphUpload,#pphConfirm) :is(button,textarea,input):focus-visible{outline:2px solid var(--ph-accent)!important;outline-offset:3px}
:is(#pphPhotos,#pphViewer,#pphUpload,#pphConfirm) .pph-button:disabled{opacity:.55;cursor:default}
:is(#pphPhotos,#pphViewer,#pphUpload,#pphConfirm) svg{display:block;flex:none;width:20px;height:20px;stroke:currentColor;fill:none}
:is(#pphPhotos,#pphViewer,#pphUpload,#pphConfirm) .pph-status{font-size:13px;color:var(--ph-muted)!important;-webkit-text-fill-color:var(--ph-muted)!important;white-space:pre-wrap;overflow-wrap:anywhere}
:is(#pphPhotos,#pphViewer,#pphUpload,#pphConfirm) .pph-status:not(:empty){padding:10px 0 16px}
:is(#pphPhotos,#pphViewer,#pphUpload,#pphConfirm) .pph-status .pph-button{margin-left:10px}
#pphPhotos .pph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,180px));gap:12px;align-items:start}
#pphPhotos .pph-grid+button:not([hidden]){display:flex;margin:18px auto 0}
#pphPhotos .pph-tile{display:block;width:100%;min-height:0;padding:0;overflow:hidden;text-align:left;border-radius:10px;box-shadow:none!important}
#pphPhotos .pph-thumbnail{display:flex;align-items:center;justify-content:center;width:100%;height:158px;padding:5px;background:color-mix(in srgb,var(--ph-bg) 85%,#000)!important}
#pphPhotos .pph-thumbnail img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;aspect-ratio:auto!important;object-fit:contain!important;border:0!important;border-radius:0!important}
#pphPhotos .pph-tile-meta{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:8px;font-size:11px;color:var(--ph-muted)!important;-webkit-text-fill-color:var(--ph-muted)!important;white-space:nowrap}
html body :is(#pphViewer,#pphUpload){box-sizing:border-box;position:fixed;inset:0;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;border:1px solid var(--ph-border)!important;border-radius:15px;background-color:var(--ph-bg)!important;background-image:var(--ph-fill)!important;padding:0;box-shadow:0 24px 80px #0007!important;overflow:auto}
html body :is(#pphViewer,#pphUpload)::backdrop{background:rgba(0,0,0,.84)!important;opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:is(#pphViewer,#pphUpload) .pph-close{position:absolute;right:12px;top:12px;z-index:10;width:32px;height:32px;min-height:32px;padding:6px}
:is(#pphViewer,#pphUpload) .pph-close svg{width:20px;height:20px}
/* The full-screen dialog is only a dark scrim; the centered frame carries the photo. */
html body #pphViewer{width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important;padding:24px 56px!important}
#pphViewer .pph-close{position:fixed;top:10px;right:10px;width:36px;height:36px;background:transparent!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:transparent!important;box-shadow:none!important}
#pphViewer .pph-close:hover{background:#ffffff18!important}
#pphViewer .pph-close svg{width:26px;height:26px;stroke:#fff!important}
#pphViewer .pph-view-body{display:grid;grid-template-columns:minmax(0,1fr) 310px;width:min(1180px,100%);height:min(820px,100%);min-height:0;margin:auto;border:1px solid var(--ph-border);border-radius:12px;overflow:hidden;background:var(--ph-bg);box-shadow:0 20px 80px #0005;position:relative;top:50%;transform:translateY(-50%)}
#pphViewer .pph-view-body>.pph-status{padding:25px}
#pphViewer .pph-media{display:flex;flex-direction:column;min-width:0;min-height:0;background:#090b0f}
#pphViewer .pph-stage{display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;flex:1;overflow:hidden;background:#090b0f;color:#fff;-webkit-text-fill-color:#fff}
#pphViewer .pph-stage img{display:block!important;width:100%!important;height:100%!important;max-height:100%!important;max-width:100%!important;object-fit:contain!important;border:0!important;border-radius:0!important}
#pphViewer .pph-media-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:45px;padding:8px 16px;border-top:1px solid var(--ph-border);background-color:var(--ph-bg);background-image:var(--ph-fill);color:var(--ph-muted);-webkit-text-fill-color:var(--ph-muted);font-size:12px}
#pphViewer .pph-detail{display:flex;flex-direction:column;min-height:0;min-width:0;background-color:var(--ph-bg)!important;background-image:var(--ph-fill)!important;border-left:1px solid var(--ph-border)}
#pphViewer .pph-photo-meta{display:flex;align-items:center;gap:11px;padding:16px;flex:none;border-bottom:1px solid var(--ph-border)}
#pphViewer .pph-author-avatar{display:block;flex:none;width:38px!important;height:38px!important;object-fit:cover;border-radius:50%!important}
#pphViewer .pph-photo-identity{display:flex;flex-direction:column;gap:3px;min-width:0}
#pphViewer .pph-author{font-weight:600;font-size:14px;overflow-wrap:anywhere}
#pphViewer a{color:color-mix(in srgb,#2384d1 70%,var(--ph-text))!important;-webkit-text-fill-color:currentColor!important;text-decoration:none}
#pphViewer a:hover{text-decoration:underline}
:is(#pphViewer,#pphUpload) .pph-muted{font-size:12px;color:var(--ph-muted)!important;-webkit-text-fill-color:var(--ph-muted)!important}
#pphViewer .pph-actionbar{position:relative;display:flex;align-items:center;gap:7px;flex:none;min-height:52px;padding:8px 14px;border-bottom:1px solid var(--ph-border);z-index:2}
#pphViewer .pph-reactions{display:flex;flex-wrap:wrap;gap:5px;min-width:0}
#pphViewer :is(.pph-choose-reaction,.pph-reaction){padding:4px 6px;min-height:30px;box-shadow:none!important;background:transparent!important;border-color:transparent!important}
#pphViewer .pph-choose-reaction svg{width:25px;height:25px;color:var(--ph-muted)}
#pphViewer :is(.pph-reaction,.pph-emoji)[aria-pressed=true]{border-color:var(--ph-accent)!important;background:color-mix(in srgb,var(--ph-text) 10%,transparent)!important}
#pphViewer .pph-picker{position:absolute;top:calc(100% + 5px);left:10px;right:10px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:10px;border:1px solid var(--ph-border);border-radius:12px;background-color:var(--ph-bg)!important;background-image:var(--ph-fill)!important;box-shadow:0 10px 28px var(--ph-shadow);z-index:3}
#pphViewer .pph-emoji{font:24px/1.2 "Apple Color Emoji","Segoe UI Emoji",sans-serif;min-width:0;padding:5px 0;min-height:36px;box-shadow:none!important;background:transparent!important;border-color:transparent!important;-webkit-text-fill-color:initial!important}
#pphViewer .pph-discussion{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 16px;scrollbar-width:thin}
/* Caption and reactions stay outside the scrolling comment list. */
#pphViewer .pph-detail:has(>.pph-caption)>.pph-actionbar{border-bottom:0}
#pphViewer .pph-caption{white-space:pre-wrap;overflow-wrap:anywhere;flex:none;font-size:13px;margin:0;padding:14px 16px;border-bottom:1px solid var(--ph-border);max-height:min(200px,30dvh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#pphViewer .pph-error{flex:none;color:var(--ph-text)!important;-webkit-text-fill-color:var(--ph-text)!important;font-size:13px;white-space:pre-wrap;padding:10px;border:1px solid var(--ph-border);border-radius:8px;margin:10px 0}
#pphViewer .pph-error:empty{display:none}
#pphViewer .pph-comments{font-size:13px}
#pphViewer .pph-no-comments{display:flex;flex:1;min-height:120px;align-items:center;justify-content:center}
#pphViewer .pph-comments-empty{display:flex;align-items:center;flex-direction:column;gap:14px;text-align:center;padding:18px 6px;color:var(--ph-muted)!important;-webkit-text-fill-color:var(--ph-muted)!important}
#pphViewer .pph-comments-empty svg{width:46px;height:46px;stroke-width:1.2;opacity:.65}
#pphViewer .pph-comments-empty p{margin:0;max-width:240px}
#pphViewer .pph-comment{padding:13px 0;border-bottom:1px solid var(--ph-border);font-size:13px}
#pphViewer .pph-comment-top{display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap}
#pphViewer .pph-comment-top a{font-weight:600;overflow-wrap:anywhere}
#pphViewer .pph-comment-top time{font-size:10px}
#pphViewer .pph-comment p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
#pphViewer :is(.pph-text-button,.pph-delete){min-height:22px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;font-size:11px;color:var(--ph-muted)!important;-webkit-text-fill-color:var(--ph-muted)!important}
#pphViewer .pph-delete{font-size:12px}
#pphViewer .pph-discussion>button:not([hidden]){align-self:center;margin:12px 0}
#pphViewer .pph-comment-form{display:flex;align-items:center;gap:8px;flex:none;min-height:56px;padding:10px 12px;border-top:1px solid var(--ph-border);background:var(--ph-bg);margin:0}
:is(#pphViewer,#pphUpload) textarea{display:block;width:100%;border:1px solid var(--ph-border)!important;background:color-mix(in srgb,var(--ph-bg) 95%,var(--ph-text))!important;color:var(--ph-text)!important;-webkit-text-fill-color:var(--ph-text)!important;border-radius:9px;padding:10px;font:inherit;font-size:13px;box-shadow:none!important}
:is(#pphViewer,#pphUpload) textarea::placeholder{color:var(--ph-muted)!important;-webkit-text-fill-color:var(--ph-muted)!important;opacity:1}
#pphViewer .pph-comment-form textarea{flex:1;min-width:0;min-height:36px;height:36px;max-height:96px;padding:8px 0;border:0!important;background:transparent!important;resize:none;line-height:20px}
#pphViewer .pph-send{flex:none;width:32px;height:32px;min-height:32px;padding:5px;box-shadow:none!important;background:transparent!important;border-color:transparent!important}
#pphViewer .pph-send svg{width:22px;height:22px}
#pphViewer .pph-blocked{padding:12px;margin:0;border-top:1px solid var(--ph-border);font-size:12px}
html body #pphUpload{width:440px;padding:24px!important}
#pphUpload h2{color:var(--ph-text)!important;-webkit-text-fill-color:var(--ph-text)!important;margin:0 32px 8px 0;font-size:20px}
#pphUpload .pph-file-choice{display:flex;align-items:center;gap:12px;padding:16px 0}
#pphUpload .pph-file-label{position:relative;flex:none;overflow:hidden}
#pphUpload .pph-file-label:focus-within{outline:2px solid var(--ph-accent);outline-offset:3px}
#pphUpload .pph-file-label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0}
#pphUpload .pph-filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--ph-muted)!important;-webkit-text-fill-color:var(--ph-muted)!important}
#pphUpload .pph-upload-preview{display:block;width:100%;height:150px;object-fit:contain;margin:0 0 16px;border-radius:9px;background:color-mix(in srgb,var(--ph-bg) 85%,#000)}
#pphUpload .pph-label{display:flex;flex-direction:column;gap:7px;font-size:13px;margin:0 0 14px}
#pphUpload textarea{min-height:72px;resize:vertical}
@media(max-width:700px){
 #pphPhotos{padding:14px!important}#pphPhotos .pph-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#pphPhotos .pph-thumbnail{height:138px}#pphPhotos .pph-heading{gap:8px}
 html body #pphViewer{padding:46px 8px 8px!important;overflow:auto!important}#pphViewer .pph-view-body{display:flex;flex-direction:column;width:100%;height:auto;min-height:calc(100dvh - 56px);max-height:none;top:0;transform:none}#pphViewer .pph-media{flex:none;height:40dvh;min-height:180px}#pphViewer .pph-media-footer{min-height:36px;padding:7px 12px}#pphViewer .pph-detail{flex:1;min-height:340px;border-left:0;border-top:1px solid var(--ph-border)}#pphViewer .pph-photo-meta{padding:12px 14px}#pphViewer .pph-discussion{max-height:36dvh;min-height:150px}#pphViewer .pph-comment-form{position:sticky;bottom:0;z-index:2}#pphViewer .pph-close{top:5px;right:8px}
 html body #pphUpload{max-width:calc(100vw - 24px);padding:20px!important}#pphUpload .pph-file-choice{gap:8px}#pphUpload .pph-filename{max-width:150px}
}
@media(prefers-reduced-motion:reduce){:is(#pphPhotos,#pphViewer,#pphUpload,#pphConfirm) *{transition:none!important;scroll-behavior:auto!important}}

/* User identities and discussion controls. */
html body #pphViewer .pph-view-body{grid-template-columns:minmax(0,1fr) 340px}
html body #pphViewer .pph-user{display:flex;align-items:flex-start;gap:12px;min-width:0;width:100%}
html body #pphViewer .pph-avatar{display:block;position:relative;flex:none;width:38px;height:38px;margin:5px;overflow:visible;background:none!important}
html body #pphViewer .pph-avatar-image{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover}
html body #pphViewer .pph-avatar-frame{position:absolute;inset:-17%;display:block;width:134%!important;height:134%!important;max-width:none!important;object-fit:contain;border-radius:0!important;pointer-events:none;z-index:1}
html body #pphViewer .pph-user-info{flex:1;min-width:0;padding-top:4px}
html body #pphViewer .pph-user-line{display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-height:20px;line-height:1.35}
html body #pphViewer .pph-user-link{min-width:0;max-width:100%;font-size:13px;font-weight:600;text-decoration:none!important;background:none!important}
html body #pphViewer .pph-user-name{white-space:normal;overflow-wrap:anywhere;color:inherit;-webkit-text-fill-color:currentColor}
html body #pphViewer .pph-badge{display:inline-block;flex:none;width:19px!important;height:19px!important;object-fit:contain;border-radius:0!important;max-width:none!important}
html body #pphViewer .pph-photo-meta{padding:14px 16px}
html body #pphViewer .pph-photo-meta time{display:block;margin-top:4px}
html body #pphViewer .pph-comment{display:flex;align-items:flex-start;gap:6px;padding:14px 0}
html body #pphViewer .pph-comment .pph-avatar{width:32px;height:32px;margin:4px}
html body #pphViewer .pph-comment .pph-user{gap:9px}
html body #pphViewer .pph-comment .pph-user-info{padding-top:2px}
html body #pphViewer .pph-comment-text{font-size:13px;margin:6px 0;line-height:1.45}
html body #pphViewer .pph-comment-date{display:block;font-size:10px;color:var(--ph-muted)!important;-webkit-text-fill-color:var(--ph-muted)!important;margin-top:7px}
html body #pphViewer .pph-comment-tools{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none;width:26px}
html body #pphViewer :is(.pph-comment-delete,.pph-comment-tools .pph-choose-reaction,.pph-icon-button,.pph-clip){display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;min-height:28px;padding:4px;border:0!important;box-shadow:none!important;background:transparent!important;color:var(--ph-muted)!important;-webkit-text-fill-color:var(--ph-muted)!important}
html body #pphViewer :is(.pph-comment-delete,.pph-comment-tools .pph-choose-reaction){width:24px;height:24px;min-height:24px;padding:3px}
html body #pphViewer .pph-comment-tools svg{width:18px;height:18px}
html body #pphViewer :is(.pph-comment-delete,.pph-icon-button,.pph-clip):hover{background:color-mix(in srgb,var(--ph-text) 10%,transparent)!important;color:var(--ph-text)!important}
html body #pphViewer .pph-comment .pph-reactions:empty{display:none}
html body #pphViewer .pph-comment .pph-reactions{margin-top:6px;gap:4px}
html body #pphViewer .pph-comment .pph-reaction{min-height:24px;padding:3px 5px;font-size:12px}
html body #pphViewer .pph-floating-picker{position:fixed;top:auto;left:auto;right:auto;bottom:auto;width:280px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;z-index:30}
html body #pphViewer .pph-comment-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:9px 10px;align-items:center}
html body #pphViewer .pph-composer-tools{display:flex;align-items:center;gap:2px}
html body #pphViewer .pph-comment-form textarea{grid-column:1;min-height:36px;font-size:12px}
html body #pphViewer .pph-clip{position:relative;overflow:hidden;margin:0;cursor:pointer}
html body #pphViewer .pph-clip input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0;padding:0}
html body #pphViewer .pph-clip:focus-within{outline:2px solid var(--ph-accent);outline-offset:2px}
html body #pphViewer .pph-attachment-preview{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-width:0;padding:5px;border:1px solid var(--ph-border);border-radius:8px}
html body #pphViewer .pph-attachment-preview>img{width:42px!important;height:42px!important;object-fit:contain;border-radius:4px}
html body #pphViewer .pph-attachment-preview>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
html body #pphViewer .pph-comment-attachment{display:block;width:max-content;max-width:100%;margin-top:8px}
html body #pphViewer .pph-comment-attachment>img{display:block;max-width:100%!important;width:auto!important;height:auto!important;max-height:130px!important;object-fit:contain;border-radius:6px!important}
html body #pphConfirm{box-sizing:border-box;position:fixed;inset:0;width:380px;max-width:calc(100vw - 32px);margin:auto;padding:24px;border:1px solid var(--ph-border)!important;border-radius:14px;background-color:var(--ph-bg)!important;background-image:var(--ph-fill)!important;box-shadow:0 20px 80px #0007!important}
html body #pphConfirm::backdrop{background:rgba(0,0,0,.55)!important}
html body #pphConfirm h2{font-size:19px;line-height:1.3;margin:0 0 12px;color:var(--ph-text)!important;-webkit-text-fill-color:var(--ph-text)!important}
html body #pphConfirm p{font-size:14px;line-height:1.5;margin:0;color:var(--ph-muted)!important;-webkit-text-fill-color:var(--ph-muted)!important}
html body #pphConfirm .pph-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
html body #pphViewer.pph-viewer::backdrop,html body #pphUpload.pph-upload::backdrop{background:rgba(0,0,0,.84)!important}
html body #pphViewer.pph-viewer :is(.pph-media,.pph-stage){background:#090b0f!important}
@media(max-width:700px){html body #pphViewer .pph-view-body{display:flex}html body #pphViewer .pph-photo-meta{padding:12px 14px}}

/* Album navigation and the site's purchased sticker packs. */
html body #pphViewer .pph-nav{position:fixed;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:42px;height:64px;padding:6px;min-height:0;z-index:10;border:0!important;border-radius:12px;background:transparent!important;box-shadow:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:.8}
html body #pphViewer .pph-nav-previous{left:7px}html body #pphViewer .pph-nav-next{right:7px}
html body #pphViewer .pph-nav svg{width:30px;height:30px;stroke:#fff!important;stroke-width:2}
html body #pphViewer .pph-nav:hover{opacity:1;background:#ffffff18!important}
html body #pphViewer .pph-navigation-error{position:fixed;left:50%;top:65px;transform:translateX(-50%);z-index:20;max-width:calc(100vw - 40px);padding:12px;border:1px solid var(--ph-border);border-radius:10px;background:var(--ph-bg);font-size:13px}
html body #pphViewer .pph-navigation-error button{margin-left:10px}
/* Match templates/d2you/css/smiles.css: 280px content, picture tabs and compact grids. */
html body #pphViewer .pph-sticker-picker{display:flex;flex-direction:column;gap:8px;padding:0;width:282px;max-height:calc(100dvh - 24px);overflow:visible;border-radius:12px;box-shadow:0 10px 30px #0005}
html body #pphViewer .pph-sticker-picker::after{content:"";position:absolute;left:var(--ph-picker-tail);transform:translateX(-50%);width:0;height:0;border:8px solid transparent;pointer-events:none}
html body #pphViewer .pph-sticker-picker[data-placement="top"]::after{top:100%;border-top-color:var(--ph-bg)}
html body #pphViewer .pph-sticker-picker[data-placement="bottom"]::after{bottom:100%;border-bottom-color:var(--ph-bg)}
html body #pphViewer .pph-sticker-picker>p{padding:12px;margin:0}
html body #pphViewer .pph-sticker-tabs{display:flex;align-items:flex-start;gap:8px;flex:none;min-width:0;padding:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x;cursor:grab;user-select:none}
html body #pphViewer .pph-sticker-tabs::-webkit-scrollbar{display:none}
html body #pphViewer .pph-sticker-tabs.is-dragging{cursor:grabbing}
html body #pphViewer .pph-sticker-pack{position:relative;flex:0 0 34px;min-width:34px;width:34px;height:34px;min-height:34px;margin:0;padding:0;box-shadow:none!important;background:transparent!important;border:0!important;border-radius:8px;transition:transform .2s}
html body #pphViewer .pph-sticker-pack[aria-pressed=true]{background:transparent!important;border:0!important}
html body #pphViewer .pph-sticker-pack[aria-pressed=true]::after{content:"";position:absolute;bottom:-4px;left:50%;transform:translateX(-50%);width:16px;height:2px;border-radius:2px;background:var(--ph-text)}
html body #pphViewer .pph-sticker-pack:hover{transform:translateY(-2px);background:color-mix(in srgb,var(--ph-text) 7%,transparent)!important}
html body #pphViewer .pph-sticker-pack img{display:block;width:34px!important;height:34px!important;max-width:none!important;object-fit:contain;border-radius:8px!important;pointer-events:none}
html body #pphViewer .pph-pack-locked img{opacity:.7;filter:brightness(.7)}
html body #pphViewer .pph-sticker-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;column-gap:20px;row-gap:10px;min-height:0;height:260px;max-height:55dvh;flex:0 1 260px;overflow-y:auto;overflow-x:hidden;padding:8px;scrollbar-width:thin;scrollbar-color:var(--ph-text) transparent;overscroll-behavior:contain;border-radius:0 0 12px 12px}
html body #pphViewer .pph-sticker-items::-webkit-scrollbar{width:4px}
html body #pphViewer .pph-sticker-items::-webkit-scrollbar-thumb{background:var(--ph-text);border-radius:2px}
html body #pphViewer .pph-sticker-items::-webkit-scrollbar-track{background:transparent}
html body #pphViewer .pph-sticker-choice{justify-self:start;padding:0;min-width:0;width:64px;max-width:100%;height:64px;min-height:64px;box-shadow:none!important;border:0!important;border-radius:6px;background:transparent!important;transition:transform .2s}
html body #pphViewer .pph-sticker-choice:hover{transform:scale(1.1);background:color-mix(in srgb,var(--ph-text) 7%,transparent)!important}
html body #pphViewer .pph-sticker-choice img{display:block;width:64px!important;height:64px!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;border-radius:0!important}
html body #pphViewer .pph-smile-items{grid-template-columns:repeat(5,minmax(0,1fr))}
html body #pphViewer .pph-smile-items .pph-sticker-choice{width:32px;height:32px;min-height:32px;padding:0}
html body #pphViewer .pph-smile-items img{width:32px!important;height:32px!important}
@media(prefers-reduced-motion:reduce){html body #pphViewer :is(.pph-sticker-pack,.pph-sticker-choice){transition:none}}
html body #pphViewer .pph-comment .pph-inline-smile{display:inline-block;width:24px!important;height:24px!important;object-fit:contain!important;vertical-align:middle;border:0!important;border-radius:0!important;margin:0 2px}
html body #pphViewer .pph-sticker-items>p{grid-column:1/-1;font-size:13px;margin:12px 0}
html body #pphViewer .pph-stickers-locked{display:flex;flex-direction:column;justify-content:center;text-align:center;padding:10px;font-size:13px}
html body #pphViewer .pph-comment-sticker{display:block;max-width:100%!important;width:130px!important;height:130px!important;object-fit:contain;margin-top:8px;border-radius:0!important}
@media(max-width:700px){html body #pphViewer .pph-nav{top:calc(46px + 20dvh);width:34px;height:48px;background:#0006!important}html body #pphViewer .pph-nav-previous{left:10px}html body #pphViewer .pph-nav-next{right:10px}}

/* Homepage chat actions: same glyphs, dimensions, spacing and hover outline. */
html body #pphViewer .pph-comment-avatar{display:flex;flex:none;width:51px;align-items:center;flex-direction:column;gap:2px}
html body #pphViewer .pph-comment-actions{display:grid;grid-template-columns:24px 24px;align-items:center;width:51px;gap:3px;padding:3px 0;min-height:32px}
html body #pphViewer .pph-comment-actions .pph-reply-button{grid-column:1;grid-row:1}
html body #pphViewer .pph-comment-actions .pph-choose-reaction{grid-column:2;grid-row:1}
html body #pphViewer :is(.pph-reply-button,.pph-choose-reaction){display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;min-width:24px;min-height:24px;height:24px;padding:0;border:1px solid transparent!important;border-radius:6px;box-shadow:none!important;background:transparent!important;color:var(--ph-text)!important;-webkit-text-fill-color:var(--ph-text)!important;font-size:0;line-height:0;transition:background .15s,border-color .15s}
html body #pphViewer :is(.pph-reply-button,.pph-choose-reaction) svg{width:18px;height:18px;color:inherit}
html body #pphViewer :is(.pph-reply-button,.pph-choose-reaction):enabled:is(:hover,[aria-expanded="true"]){background:color-mix(in srgb,var(--ph-text) 11%,transparent)!important;border-color:color-mix(in srgb,var(--ph-text) 25%,transparent)!important}
html body #pphViewer :is(.pph-reply-button,.pph-choose-reaction):focus-visible{outline:2px solid var(--ph-text)!important;outline-offset:1px}
html body #pphViewer .pph-choose-reaction:disabled{opacity:1;cursor:default;background:transparent!important;border-color:transparent!important}
@media(prefers-reduced-motion:reduce){html body #pphViewer :is(.pph-reply-button,.pph-choose-reaction){transition:none}}
html body #pphViewer .pph-reply-quote{background:transparent!important;color:var(--ph-muted)!important;display:flex;flex-direction:column;border:0;border-left:2px solid var(--ph-border);padding:4px 8px;margin:8px 0;color:var(--ph-muted);font-size:11px;overflow-wrap:anywhere}
html body #pphViewer .pph-comment-attachment{cursor:zoom-in}
html.pph-image-open,html.pph-image-open body{overflow:hidden!important}
html body #pphImagePreview{position:fixed;inset:0;box-sizing:border-box;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;padding:48px;border:0;border-radius:0;background:transparent!important;box-shadow:none!important;overflow:hidden;color:#fff!important}
html body #pphImagePreview[open]{display:flex;align-items:center;justify-content:center}
html body #pphImagePreview::backdrop{background:#000e!important}
html body #pphImagePreview>img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain;border-radius:0!important;box-shadow:none!important}
html body #pphImagePreview .pph-close{position:absolute;top:10px;right:10px;display:flex;justify-content:center;align-items:center;width:36px;height:36px;padding:6px;background:transparent!important;border:0;color:#fff!important;box-shadow:none!important;cursor:pointer}
html body #pphImagePreview svg{width:26px;height:26px;stroke:#fff;fill:none}
html body #pphImagePreview [hidden]{display:none!important}
html body #pphImagePreview .pph-status{position:absolute;color:#fff!important;-webkit-text-fill-color:#fff!important}
@media(max-width:575px){html body #pphImagePreview{padding:46px 12px 20px}}
