.gen-agent-title .gen-glyph,.gen-agent-download .gen-glyph{width:19px;height:19px;flex:none}
.gen-chat-attachments{position:fixed;inset:auto;margin:0;padding:6px;max-width:calc(100vw - 16px);border:1px solid var(--line,#8884);border-radius:18px;background:var(--bg,#fff);color:var(--text,#171717);box-shadow:0 8px 30px var(--tg-shadow,#0002)}
.gen-attachment-option{display:block;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:12px;background:transparent;color:inherit;text-align:start;font:inherit;font-size:14px;cursor:pointer;transition:background .15s ease}
.gen-attachment-option[hidden],.gen-agent-files[hidden]{display:none}
.gen-attachment-option:hover,.gen-attachment-option:active{background:var(--tg-soft,#8882)}
.gen-attachment-option:disabled{opacity:.5;cursor:default}
.gen-attachment-option:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
.gen-agent-files{padding:0 12px}
.gen-agent-files p{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;font-size:13px;overflow-wrap:anywhere}
.gen-agent-files .gen-small{min-height:44px;flex:none}
.gen-agent-task{margin:12px 0;max-width:100%;font-size:13px}
.gen-agent-title{display:flex;align-items:center;gap:7px;font-weight:600;margin:0 0 8px}
.gen-agent-steps{list-style:decimal;padding-inline-start:23px;margin:0 0 10px}
.gen-agent-steps li{padding:5px 0}
.gen-agent-steps small{display:inline-block;margin-inline-start:12px;color:var(--muted,#777)}
.gen-agent-steps li[data-status=failed] small{color:var(--error,#b52828)}
.gen-agent-download{display:flex;align-items:center;gap:8px;min-height:44px;width:fit-content;max-width:100%;padding:8px 12px;margin:6px 0;border:1px solid var(--line,#8884);border-radius:14px;color:inherit;overflow-wrap:anywhere;text-decoration:none}
.gen-agent-download:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.gen-agent-stop{min-height:44px;margin-top:4px}
.gen-agent-actions{margin:8px 0;overflow-wrap:anywhere}
.gen-agent-actions summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:500}
.gen-agent-actions summary:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:8px}
.gen-agent-actions ol{padding-inline-start:23px;margin:0 0 12px}
.gen-agent-actions li{padding:6px 0}
.gen-agent-actions small{display:block;color:var(--muted,#666)}
.gen-agent-actions code{display:block;font-size:12px;overflow-wrap:anywhere}
.gen-agent-actions li[data-status=failed] small,.gen-agent-actions li[data-status=unknown] small{color:var(--error,#b52828)}
.gen-agent-capture{display:block;width:100%;max-width:560px;height:auto;border:1px solid var(--line,#8884);border-radius:14px;margin:10px 0}

.gen-harness-action{min-height:44px;white-space:normal;text-align:start;margin-block:8px;max-width:100%}.gen-harness-note{line-height:1.5;overflow-wrap:anywhere}

.gen-draft-menu{margin-block:8px;max-width:100%;font-size:.875rem}.gen-draft-menu>summary{display:list-item;width:fit-content;min-height:36px;cursor:pointer;color:var(--muted,#888)}.gen-draft-menu>details{padding:8px 12px;border:1px solid currentColor;border-radius:12px;margin-block:8px;max-width:100%}.gen-draft-menu>details>summary{cursor:pointer;min-height:36px}.gen-draft-menu p{line-height:1.5;overflow-wrap:anywhere}.gen-draft-menu button{min-height:44px;width:fit-content}.gen-director-retry{width:fit-content;min-height:44px;margin-block:8px}.gen-draft-menu summary:focus-visible{outline:2px solid currentColor;outline-offset:3px}
