/* Actions belong to their own text field, never to the document contents. */
.task-field-host { position:relative; min-width:0; max-width:100%; flex:1 1 auto; }
.task-field-host > .task-field-node { box-sizing:border-box; padding-top:62px; }
.task-field-host > textarea { width:100%; min-height:180px; }
.task-field-actions { position:absolute; inset:10px 10px auto auto; z-index:2; display:flex; gap:5px; align-items:center; padding:3px; border:1px solid #dce5ed; border-radius:9px; background:rgba(255,255,255,.96); box-shadow:0 2px 7px #17385812; }
.task-field-icon { display:inline-flex; align-items:center; justify-content:center; gap:6px; width:auto; min-width:36px; height:36px; margin:0; padding:7px; border:1px solid transparent; border-radius:6px; background:transparent; color:#254d74; cursor:pointer; font:inherit; font-size:.85rem; white-space:nowrap; }
.task-field-icon svg { width:20px; height:20px; flex:none; }
.task-field-icon:hover { background:#e8f2f7; }
.task-field-icon:focus-visible { outline:2px solid #147d86; outline-offset:2px; }
.task-field-icon:disabled { opacity:.6; cursor:wait; }
.task-field-icon.is-copied { color:#126337; background:#dcf5e5; border-color:#8ed3aa; }
.task-field-icon.is-error { color:#a52c27; background:#ffefed; border-color:#e9b0ab; }
.task-field-status,.task-field-undo { margin:4px 10px 6px; font-size:.85rem; color:#45647c; }
.task-field-status:empty,.task-field-undo:empty { display:none; }
.task-dictation-preview { margin:6px 10px; padding:8px 10px; border:1px dashed #b9ccdc; border-radius:6px; background:#f3f8fc; color:#38566f; font-size:.85rem; white-space:pre-wrap; overflow-wrap:anywhere; }
.task-field-icon[aria-pressed=true] { color:#a52c27; background:#ffefed; }
.disposition-mail-modal .disposition-note-chat-input { grid-template-columns:minmax(0,1fr) 38px auto auto; }
.disposition-mail-modal [data-task-comment-voice] { width:38px; height:38px; padding:6px; }
@media(max-width:760px){
 .disposition-mail-modal .disposition-note-chat-input { grid-template-columns:40px minmax(0,1fr) minmax(0,1fr); }
 .disposition-mail-modal #disposition-note-comment-text { grid-column:1/-1; font-size:16px; }
 .disposition-mail-modal [data-task-comment-voice] { height:40px; }
}
.task-field-status.is-error,.task-field-dialog-status.is-error { color:#a52c27; }
.task-field-undo button { border:0; padding:3px; background:transparent; color:#086c79; text-decoration:underline; font:inherit; cursor:pointer; }
.task-workspace > .task-field-host > .task-workspace-editor { max-height:min(60vh,720px); max-height:min(60dvh,720px); overflow-y:auto; overscroll-behavior-y:contain; }
.task-field-dialog { position:fixed; inset:0; box-sizing:border-box; width:100vw; height:100vh; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; color:#172b4d; background:white; }
.task-field-dialog[open] { display:flex; flex-direction:column; }
.task-field-dialog::backdrop { background:#0b1c3999; }
.task-field-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:12px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left)); border-bottom:1px solid #dce5ed; }
.task-field-dialog-head h2 { margin:0; font-size:1.15rem; }
.task-field-dialog-head p { margin:5px 0 0; font-size:.85rem; color:#557087; }
.task-field-dialog-head button { flex:none; min-height:44px; }
.task-field-dialog-status { padding:8px 16px; background:#f2f7fb; font-size:.9rem; }
.task-field-dialog-status:empty { display:none; }
.task-field-dialog-body { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:16px max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
.task-field-dialog-body:has(.task-field-full-scroll) { display:flex; flex-direction:column; padding:0; overflow:hidden; }
.task-field-full-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; padding:8px 16px; border-bottom:1px solid #dce5ed; }
.task-field-full-actions button { margin:0; min-height:44px; }
.task-field-full-actions [hidden] { display:none; }
.task-field-full-scroll { flex:1; min-height:0; overflow:auto; padding:16px; overscroll-behavior:contain; }
.task-field-full-editor { box-sizing:border-box; min-height:100%; max-width:1100px; margin-inline:auto; font-size:16px; line-height:1.6; overflow-wrap:anywhere; -webkit-user-select:text; user-select:text; -webkit-touch-callout:default; touch-action:auto; }
.task-field-full-editor:not([contenteditable]) { white-space:pre-wrap; }
textarea.task-field-full-editor { display:block; width:100%; height:100%; resize:none; border:1px solid #c9d8e3; padding:12px; }
.task-field-full-editor[contenteditable] { outline:0; }
.task-field-full-editor img { max-width:100%; height:auto; }
.task-field-full-editor table { max-width:100%; border-collapse:collapse; }
.task-field-full-editor td,.task-field-full-editor th { border:1px solid #bdcbd9; padding:6px; }
.task-field-ai-form,.task-field-ai-result { display:grid; gap:12px; max-width:1100px; margin:0 auto 18px; }
.task-field-ai-result[hidden] { display:none; }
.task-field-ai-form label,.task-field-ai-result label { display:grid; gap:7px; font-size:.95rem; font-weight:600; }
.task-field-ai-form textarea,.task-field-ai-result textarea { width:100%; box-sizing:border-box; padding:12px; border:1px solid #b9cbdc; border-radius:7px; font-size:16px; line-height:1.5; resize:vertical; }
.task-field-ai-form details { padding:8px; border:1px solid #dce5ed; border-radius:7px; }
.task-field-ai-form summary { cursor:pointer; }
.task-field-ai-form pre { max-height:35vh; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; }
.task-field-ai-form > button { justify-self:start; }
.task-field-result-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.task-field-result-actions button { min-height:44px; margin:0; }
.task-field-confirm { padding:12px 16px; background:#fff5df; border-bottom:1px solid #e6cc8d; }
.task-field-confirm p { margin:0 0 8px; }
.task-field-confirm button { min-height:44px; margin:0 8px 0 0; }
@media (pointer:coarse) { .task-field-icon { min-width:44px; height:44px; } .task-field-host > .task-field-node { padding-top:70px; } }
@media (max-width:760px) {
 .disposition-mail-modal .task-workspace { overflow:visible; }
 .task-workspace > .task-field-host > .task-workspace-editor,.disposition-mail-modal .task-workspace > .task-workspace-editor { max-height:none; overflow:visible; overscroll-behavior:auto; -webkit-user-select:text; user-select:text; }
 .task-field-dialog-head { padding-top:max(10px,env(safe-area-inset-top)); }
 .task-field-dialog-head h2 { font-size:1.05rem; }
 .task-field-actions { right:8px; top:8px; gap:2px; }
 .task-field-icon { min-width:40px; height:40px; }
 .task-field-host > .task-field-node { padding-top:64px; }
 .task-field-full-actions { gap:6px; padding:8px; }
}
