/* Final geometry layer: one transcript, with activity inside its assistant turn. */
#dash-playground.pg-workspace .pg-chat-wrap { display:flex; flex-direction:column; min-height:0; gap:0; padding:0 clamp(12px,3vw,32px) 10px; }
#dash-playground.pg-workspace #pgChat { flex:1 1 0%; min-height:0; overflow-y:auto; overflow-x:hidden; padding:20px max(0px,calc((100% - 820px)/2)) 24px; scrollbar-width:thin; }
#dash-playground.pg-workspace #pgComputerActivity,
#dash-playground.pg-workspace #pgAgentTrace { display:none!important; }
#dash-playground.pg-workspace .pg-composer { flex:0 0 auto; width:min(100%,860px); margin:0 auto; padding:10px 14px 8px; border:1px solid var(--d-border); border-radius:18px; background:var(--d-panel); box-shadow:0 4px 18px #0001; }
#dash-playground.pg-workspace .pg-composer:focus-within { border-color:color-mix(in srgb,var(--d-muted) 65%,var(--d-border)); box-shadow:0 0 0 2px #a477ff0c; }
#dash-playground.pg-workspace .pg-input-wrap { min-height:0; padding:0; border:0; background:transparent; }
#dash-playground.pg-workspace #pgInput { min-height:46px; max-height:140px; padding:8px 2px; font-size:15px; line-height:1.6; resize:none; }
#dash-playground.pg-workspace .pg-composer-foot { min-height:40px; padding-top:4px; border:0; gap:6px; }
#dash-playground.pg-workspace .pg-msg { min-width:0; width:100%; }
#dash-playground.pg-workspace .pg-inline-activity { display:block; width:100%; min-width:0; margin:0 0 4px; }
#dash-playground.pg-workspace .pg-bubble:empty { min-height:0; padding:0; }
#dash-playground.pg-workspace .pg-no-answer .pg-bubble { display:none; }
#dash-playground.pg-workspace .pg-msg.pg-streaming .pg-bubble:empty::after { display:none; }
#dash-playground.pg-workspace .pg-msg-actions[hidden] { display:none!important; }
#dash-playground.pg-workspace .pg-attachments { display:flex; flex-wrap:wrap; gap:8px; padding:0; }
#dash-playground.pg-workspace .pg-attachments:empty { display:none; }
#dash-playground.pg-workspace .pg-attachments:not(:empty) { margin:2px 0 6px; }
#dash-playground.pg-workspace #pgAttachments .pg-document-card { display:grid; grid-template-columns:28px minmax(0,1fr) auto 30px; align-items:center; gap:8px; flex:0 1 330px; width:auto; max-width:100%; min-width:0; padding:8px 8px 8px 10px; background:var(--d-bg); border:1px solid var(--d-border); border-radius:10px; position:relative; }
#dash-playground #pgAttachments .pg-document-icon { display:grid; place-items:center; width:28px; height:32px; color:var(--d-muted); }
#dash-playground #pgAttachments .pg-attachment-info { min-width:0; }
#dash-playground #pgAttachments .pg-attachment-info b { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; line-height:1.5; }
#dash-playground #pgAttachments .pg-attachment-info small { display:block; font-size:10px; color:var(--d-muted); }
#dash-playground.pg-workspace #pgAttachments .pg-document-card button { position:static; inset:auto; width:auto; min-width:30px; height:32px; min-height:32px; padding:4px; display:grid; place-items:center; flex:none; margin:0; border:0; border-radius:6px; color:var(--d-muted); background:transparent; cursor:pointer; }
#dash-playground.pg-workspace #pgAttachments .pg-document-card .pg-attachment-preview { font-size:11px; }
#dash-playground.pg-workspace #pgAttachments .pg-document-card .pg-attachment-remove { font-size:20px; }
#dash-playground #pgAttachments button:hover { background:var(--d-hover); color:var(--d-text); }
#dash-playground #pgAttachments button:focus-visible { outline:2px solid #a477ff; outline-offset:2px; }
@media(max-width:620px) {
  #dash-playground.pg-workspace .pg-chat-wrap { padding:0 8px 8px; }
  #dash-playground.pg-workspace #pgChat { padding:12px 4px 20px; }
  #dash-playground.pg-workspace .pg-composer { padding:8px 10px 6px; border-radius:16px; }
  #dash-playground.pg-workspace #pgInput { min-height:42px; font-size:16px; }
  #dash-playground.pg-workspace #pgAttachments .pg-document-card { flex:1 1 100%; }
}

.pg-msg-actions[hidden],.pg-streaming .pg-msg-actions{display:none!important}
.pg-timeline-question{margin:16px 0;padding:18px;border:1px solid var(--d-border,#343541);border-radius:14px;background:var(--d-panel,#141720)}
.pg-timeline-question fieldset{border:0;padding:0;min-width:0}
.pg-timeline-question legend{font-size:12px;opacity:.65;margin-bottom:10px}
.pg-timeline-question label{display:flex;gap:10px;align-items:center;padding:10px 0;cursor:pointer}
.pg-timeline-question textarea{display:block;box-sizing:border-box;width:100%;min-height:76px;margin:10px 0;padding:12px;border:1px solid var(--d-border,#343541);border-radius:10px;background:var(--d-bg,#0d1018);color:inherit;font:inherit}
.pg-timeline-question button{padding:9px 18px;margin-right:8px;border:1px solid var(--d-border,#343541);border-radius:8px;background:transparent;color:inherit;cursor:pointer}
.pg-timeline-question button[type=submit]{background:var(--d-accent,#a2f268);color:#101510}
.pg-timeline-question fieldset:disabled{opacity:.65}
