/* A readable conversation, with diagnostics one deliberate tap away. */
body.aurora-hub.pw-product[data-view="chat"] .pw-chat-workspace{width:100%;max-width:none;margin:0;box-sizing:border-box}
body.aurora-hub.pw-product[data-view="chat"] :is(.pw-chat-panel,.pw-message-compose,#chat-messages){width:100%;max-width:none;min-width:0;box-sizing:border-box}
@media(min-width:651px){body.aurora-hub.pw-product #chat-messages .chat-message-assistant .chat-markdown>:is(p,ul,ol,blockquote){max-width:100ch}body.aurora-hub.pw-product #chat-messages .chat-message-user{max-width:min(80%,100ch)}body.aurora-hub.pw-product #chat-messages .pw-live-text{max-width:100ch}body.aurora-hub.pw-product #chat-messages .pw-media-job-images figure{max-width:min(100%,1000px)}body.aurora-hub.pw-product #chat-messages .pw-media-job-images img{max-height:min(72dvh,800px)}}
body.pw-product #chat-messages .cmn-message{position:relative;margin-bottom:16px!important;padding-top:5px;padding-bottom:5px}
body.pw-product #chat-messages .cmn-message:not(.pw-compare-reply)>.pw-message-meta,
body.pw-product #pw-chat-live-replies[data-cmn-compare="false"] .pw-message-meta{display:none}
body.pw-product #chat-messages .cmn-message.chat-message-user{padding:10px 15px!important;border-radius:20px 20px 6px 20px}
body.pw-product #chat-messages .cmn-message .pw-message-body{margin-top:0;margin-bottom:0}
body.pw-product #chat-messages .cmn-message .chat-markdown>:first-child{margin-top:0}
body.pw-product #chat-messages .cmn-message .chat-markdown>:last-child{margin-bottom:0}
body.pw-product .cmn-message>.pw-message-actions{gap:2px;margin-top:5px;min-height:32px}
body.pw-product .cmn-message>.pw-message-actions button{display:inline-flex;justify-content:center;align-items:center;width:32px;min-width:32px;min-height:32px;padding:6px;border-radius:50%;background:transparent;border:0;color:var(--muted);font-size:11px;transition:color 140ms ease,background 140ms ease,transform 140ms ease}
body.pw-product .cmn-message>.pw-message-actions button:hover{color:var(--ink);background:color-mix(in srgb,var(--ink) 6%,transparent)}
body.pw-product .cmn-message>.pw-message-actions button:active{transform:scale(.94)}
body.pw-product .cmn-message>.pw-message-actions button:focus-visible{outline:2px solid var(--pw-accent);outline-offset:2px}
body.pw-product .cmn-message>.pw-message-actions button>span{display:none}
body.pw-product .cmn-message>.pw-message-actions svg{width:17px;height:17px;flex-shrink:0}
body.pw-product .cmn-message>.cmn-user-actions{position:absolute;right:calc(100% + 3px);bottom:-3px;margin:0}
.cmn-detail-list{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px 20px;margin:8px 0;font-size:14px;line-height:1.5}.cmn-detail-list dt{color:var(--muted)}.cmn-detail-list dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
body.pw-product .pw-message-stream .cmn-task-complete{grid-template-columns:minmax(0,1fr);padding:0;margin:0 0 10px}
body.pw-product #chat-messages .cmn-message:has(+.cmn-task-complete){margin-bottom:0!important;padding-bottom:0!important}
body.pw-product .cmn-task-complete>.pw-reply-logo{display:none}
body.pw-product .cmn-task-complete:not(:has(.pw-reply-trace[open])) .pw-reply-status,
body.pw-product .cmn-task-complete:not(:has(.pw-reply-trace[open])) .pw-reply-context{display:none}
body.pw-product .cmn-task-complete:not(:has(.pw-reply-trace[open])) .pw-reply-trace{grid-column:1;grid-row:1}
body.pw-product .cmn-task-complete:not(:has(.pw-reply-trace[open])) #pw-chat-task-dismiss{grid-column:2;grid-row:1}
body.pw-product #chat-messages .cmn-image-message .cmn-media-status{font-size:12px;line-height:1.5;margin:5px 0 8px;color:var(--muted);padding:0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none}
body.pw-product .cmn-image-message .pw-media-job-images:empty{display:none}
.cmn-image-pending{position:relative;display:grid;place-items:center;width:min(100%,360px);height:160px;overflow:hidden;border-radius:18px;border:1px solid var(--border);background:color-mix(in srgb,var(--pw-accent) 4%,var(--panel));margin:8px 0}
.cmn-image-pending>svg{height:30px;width:30px;color:var(--muted);opacity:.7}
.cmn-image-pending::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 20%,color-mix(in srgb,var(--pw-accent) 7%,transparent) 49%,transparent 78%);transform:translateX(-100%);pointer-events:none}
:root[data-motion="full"] .cmn-image-pending::after{animation:cmn-image-light 3.4s linear infinite}
@keyframes cmn-image-light{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:no-preference){:root:not([data-motion="reduced"]) .cmn-image-pending::after{animation:cmn-image-light 3.4s linear infinite}}
@media(prefers-reduced-motion:reduce){:root:not([data-motion="full"]) .cmn-image-pending::after{animation:none}:root:not([data-motion="full"]) .cmn-message>.pw-message-actions button{transition:none}}
:root[data-reduced-motion="true"] .cmn-image-pending::after{animation:none!important}:root[data-reduced-motion="true"] .cmn-message>.pw-message-actions button{transition:none!important}
@media(max-width:650px){body.pw-product #assistant-prompt{font-size:16px}body.pw-product .cmn-message>.pw-message-actions button{width:44px;min-width:44px;min-height:44px}body.pw-product .cmn-message>.pw-message-actions{margin-top:0}body.pw-product .cmn-message>.cmn-user-actions{right:100%;bottom:-7px}body.pw-product #chat-messages .cmn-message.chat-message-user{max-width:calc(100% - 46px)}.cmn-detail-list{grid-template-columns:minmax(0,1fr);gap:4px}.cmn-detail-list dd{margin-bottom:10px}}
@media(max-width:650px){body.pw-product[data-view="chat"] #pw-chat-reply-task .pw-reply-trace .pw-phone-trace-label{display:none}body.pw-product[data-view="chat"] #pw-chat-reply-task .pw-reply-trace .pw-trace-label{display:inline}}
