/* Styled HTML chat documents use an opaque, scriptless frame. The frame
   scrolls internally; the modal does not add a competing scroll pane. */
.pc-document-frame{display:block;width:100%;height:clamp(168px,45vh,360px);height:clamp(168px,45dvh,360px);border:0;background:#fff}
.pc-document-viewer-scroll.pc-document-viewer-styled{padding:0;display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);overflow:hidden;scrollbar-gutter:auto;min-width:0;min-height:0}
.pc-document-frame.pc-document-frame-fullscreen{width:100%;height:100%;min-width:0;min-height:0}

/* Explicit styled previews reach the card edges; ordinary documents keep their padding. */
.pc-document-message[data-pc-explicit-layout="full-width"]>.pc-document-body:has(>div>iframe.pc-document-frame[sandbox]){padding:0}
.pc-messages article.pc-message>.pc-bubble:has(>.pc-document-message[data-pc-explicit-layout="full-width"]>.pc-document-body>div>iframe.pc-document-frame[sandbox]){border:0!important;border-radius:0!important}
.pc-document-message[data-pc-explicit-layout="full-width"]:has(>.pc-document-body>div>iframe.pc-document-frame[sandbox])>.pc-document-toolbar{min-height:45px;padding:0 4px 0 8px;gap:6px;border-radius:0}
.pc-shell .pc-document-message[data-pc-explicit-layout="full-width"]:has(>.pc-document-body>div>iframe.pc-document-frame[sandbox])>.pc-document-toolbar button.pc-document-tool{flex-basis:44px;width:44px;min-width:44px;height:44px;min-height:44px;max-height:44px}

/* Full-bleed styled surface only; retain the message list gutters and metadata layout. */
.pc-messages .pc-document-message[data-pc-explicit-layout="full-width"]:has(>.pc-document-body>div>iframe.pc-document-frame[sandbox])>:is(.pc-document-toolbar,.pc-document-body){max-width:none;margin-left:calc(0px - var(--pc-conversation-gutter,20px));margin-right:calc(0px - var(--pc-conversation-gutter,20px))}
@media(max-width:700px){.pc-messages .pc-document-message[data-pc-explicit-layout="full-width"]:has(>.pc-document-body>div>iframe.pc-document-frame[sandbox])>:is(.pc-document-toolbar,.pc-document-body){margin-left:calc(0px - max(var(--pc-conversation-gutter,12px),env(safe-area-inset-left,0px)));margin-right:calc(0px - max(var(--pc-conversation-gutter,12px),env(safe-area-inset-right,0px)))}.pc-messages .pc-document-message[data-pc-explicit-layout="full-width"]:has(>.pc-document-body>div>iframe.pc-document-frame[sandbox])>.pc-document-toolbar{padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(4px,env(safe-area-inset-right,0px))}}

/* Edge-to-edge document delimiters; no sizing, side border, or hit target. */
.pc-messages .pc-document-message[data-pc-explicit-layout="full-width"]:has(>.pc-document-body>div>iframe.pc-document-frame[sandbox])>:is(.pc-document-toolbar,.pc-document-body){position:relative}
.pc-messages .pc-document-message[data-pc-explicit-layout="full-width"]:has(>.pc-document-body>div>iframe.pc-document-frame[sandbox])>.pc-document-toolbar::before,.pc-messages .pc-document-message[data-pc-explicit-layout="full-width"]:has(>.pc-document-body>div>iframe.pc-document-frame[sandbox])>.pc-document-body::after{content:"";position:absolute;left:0;right:0;height:1px;background:#d5e1e8;z-index:1;pointer-events:none}
.pc-messages .pc-document-message[data-pc-explicit-layout="full-width"]:has(>.pc-document-body>div>iframe.pc-document-frame[sandbox])>.pc-document-toolbar::before{top:0}.pc-messages .pc-document-message[data-pc-explicit-layout="full-width"]:has(>.pc-document-body>div>iframe.pc-document-frame[sandbox])>.pc-document-body::after{bottom:0}


