/* Compact native chat workflow, loaded after the shared theme. */
body.aurora-hub.pw-product[data-view="chat"] :is(.pw-composer-shell,.pw-phone-composer-shell){grid-template-columns:44px minmax(0,1fr) minmax(64px,130px) 44px}
body.aurora-hub.pw-product[data-view="chat"] :is(#pw-phone-model,#pw-compose-model).pw-composer-model{display:block;align-self:end;width:100%;max-width:130px;height:44px;min-height:44px;margin:0;padding:0 9px;border:0;border-radius:14px;background:transparent;color:var(--muted);font:inherit;font-size:12px;line-height:44px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;cursor:pointer;transition:background-color 140ms,color 140ms}
body.aurora-hub.pw-product[data-view="chat"] .pw-composer-model:is(:hover,[aria-expanded="true"]){background:var(--pw-soft);color:var(--ink)}
body.aurora-hub .cw-model-picker{width:min(460px,calc(100vw - 24px));padding:20px;max-height:calc(100dvh - 24px)}
.cw-picker-note,.cw-model-picker #cw-model-status{margin:4px 0 12px;color:var(--muted);font-size:13px;line-height:1.5}
.cw-model-choices{display:grid;gap:6px;max-height:min(420px,55dvh);overflow:auto;overscroll-behavior:contain;margin:12px 0}
.cw-model-choice{display:grid;gap:4px;min-height:60px;width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--panel);text-align:left;color:var(--ink);font:inherit;cursor:pointer;transition:background-color 140ms,border-color 140ms,transform 140ms}
.cw-model-choice strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}.cw-model-meta{font-size:12px;line-height:1.4;color:var(--muted)}
.cw-model-choice[aria-pressed="true"]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--panel))}.cw-model-choice:disabled{opacity:.55;cursor:default}.cw-model-choice:active:not(:disabled){transform:scale(.985)}
.cw-model-choice:focus-visible,.pw-composer-model:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.pw-reply-context{grid-column:1/-1;margin:2px 0 6px;color:var(--muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}.pw-reply-controls{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.pw-reply-controls .pw-task-control{min-height:44px;margin:0}.pw-task-control-status{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.pw-scene-field{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;color:var(--muted);font-size:12px}.pw-scene-field[hidden]{display:none!important}
.cw-image-review{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.cw-image-review>summary{min-height:44px;padding:10px 0;cursor:pointer}.cw-review-phase{padding:8px 0;border-top:1px solid var(--border)}.cw-review-phase strong{color:var(--ink)}.cw-review-phase p{margin:6px 0;overflow-wrap:anywhere}.cw-review-phase ul{margin:6px 0;padding-left:20px}.cw-review-meta{font-size:12px}
@media(max-width:650px){body.aurora-hub.pw-product[data-view="chat"] .pw-phone-composer-shell{grid-template-columns:44px minmax(0,1fr) 76px 44px}body.aurora-hub.pw-product[data-view="chat"] #pw-phone-model.pw-composer-model{max-width:76px;padding:0 4px;font-size:11px}.cw-model-picker #cw-model-refresh{min-height:44px}.pw-scene-field select{font-size:16px!important;min-height:44px;min-width:0}.cw-model-choice{min-height:64px}}
@media(prefers-reduced-motion:reduce){:root:not([data-motion="full"]) :is(.cw-model-choice,.pw-composer-model){transition:none;transform:none}}
:root[data-reduced-motion="true"] :is(.cw-model-choice,.pw-composer-model){transition:none!important;transform:none!important}

/* Reply tools stay outside the composer and never take transcript grid rows. */
body.aurora-hub .pw-chat-panel{position:relative}
body.aurora-hub .cw-jump-latest{position:absolute;right:18px;bottom:var(--cw-latest-bottom,100px);z-index:4;min-height:44px;padding:0 16px;border:1px solid var(--border);border-radius:24px;background:var(--panel);box-shadow:0 3px 14px #0002;color:var(--ink);font:inherit;font-size:13px;cursor:pointer;transition:transform 160ms,background-color 160ms}
.cw-jump-latest[hidden]{display:none!important}.cw-jump-latest:active{transform:translateY(1px)}.cw-jump-latest:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body.aurora-hub .pw-message-body .cw-source-link{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}
body.aurora-hub .pw-message-body .cw-source-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}
body.aurora-hub .pw-chat-workspace[data-chat-text-size="large"] :is(.pw-message-body,.pw-live-text){font-size:18px!important;line-height:1.65}
body.aurora-hub .pw-message-meta{font-size:11px;color:var(--muted)}
@media(max-width:650px){body.aurora-hub .cw-jump-latest{right:12px}body.aurora-hub .pw-message-actions button{min-height:44px}}
@media(prefers-reduced-motion:reduce){:root:not([data-motion="full"]) .cw-jump-latest{transition:none;transform:none}}
:root[data-reduced-motion="true"] .cw-jump-latest{transition:none!important;transform:none!important}
