.ta-header{display:grid;gap:12px;padding:12px;background:var(--surface-solid);color:var(--text);border:2px solid var(--ink);border-radius:var(--r-card);box-shadow:4px 4px 0 var(--ink)}
:root[data-style=classic] .ta-header{border:1px solid var(--line-strong);box-shadow:0 2px 8px var(--line)}
.ta-status,.ta-actions,.ta-guard{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.ta-status>.btn,.ta-blocker>.btn,.ta-actions>.btn{min-height:36px}
.ta-guard{font-size:13px;color:var(--text)}
.ta-guard input{accent-color:var(--accent)}
.ta-blocker{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:8px 10px;border-inline-start:4px solid var(--st-run);background:var(--surface-2);color:var(--text)}
.ta-blocker[data-level=error]{border-inline-start-color:var(--st-fail)}
.ta-blocker[data-level=info]{border-inline-start-color:var(--st-done)}
.ta-blocker>span{min-width:0;overflow-wrap:anywhere}
.ta-prompt-dialog{max-width:min(760px,calc(100vw - 32px));background:var(--surface-solid);color:var(--text);border:2px solid var(--ink);border-radius:var(--r-card);box-shadow:6px 6px 0 var(--ink)}
:root[data-style=classic] .ta-prompt-dialog{border:1px solid var(--line-strong);box-shadow:0 4px 16px var(--line)}
.ta-prompt-dialog textarea{width:min(680px,calc(100vw - 64px));max-height:60vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-2);color:var(--text);border:1px solid var(--line-strong);border-radius:var(--r-ctl);font:12px/1.5 var(--mono)}
.ta-header :focus-visible,.ta-actions :focus-visible,.ta-prompt-dialog :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:640px){.ta-status{align-items:stretch}.ta-status>.btn,.ta-blocker>.btn,.ta-actions>.btn{min-height:40px}.ta-blocker{align-items:flex-start;flex-direction:column}.ta-prompt-dialog{max-width:calc(100vw - 24px);padding:12px}.ta-prompt-dialog textarea{width:calc(100vw - 56px)}}
@media(prefers-reduced-motion:reduce){.ta-header *{scroll-behavior:auto;animation:none;transition:none}}
