#task-editor-dialog{width:min(780px,calc(100vw - 32px));max-width:100%;max-height:92dvh;border:1px solid #bdcbc4;border-radius:12px;padding:0;color:#203b35;background:#f5f7f5;overflow:auto}
#task-editor-dialog::backdrop{background:#17362d70}
#task-editor-form{margin:0;border:0;background:transparent;padding:24px;min-width:0}
#task-editor-form h2{font-size:22px;margin:3px 0 6px}
#task-editor-form .task-editor-heading{margin-bottom:22px}
#task-editor-form fieldset{min-width:0;padding:16px 18px;border:1px solid #d3dfd7;border-radius:8px;margin:16px 0 22px;background:#fff}
#task-editor-form legend{padding:0 7px;color:#285346;font-size:15px;font-weight:700}
#task-editor-form label{margin:10px 0 14px}
#task-editor-form input,#task-editor-form select,#task-editor-form textarea{width:100%;min-width:0;max-width:100%;font:inherit;font-size:14px;color:#203b35;background:#fff;border:1px solid #bdcbc4;border-radius:6px;padding:9px 10px;min-height:44px}
#task-editor-form textarea{display:block;resize:vertical;margin-top:6px;line-height:1.65}
.task-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
#task-editor-form .task-editor-check{display:flex;align-items:flex-start;gap:10px;font-size:14px;font-weight:600}
#task-editor-form .task-editor-check input{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:2px 0 0;accent-color:#183f35}
.task-editor-notice{padding:10px 12px;border-left:3px solid #9a7122;background:#fff7df;font-size:13px}
.task-editor-schedules{margin-top:16px;border-top:1px solid #dce4df;padding-top:12px;font-size:13px}
.task-editor-schedules summary{cursor:pointer;min-height:36px}
.task-editor-error{color:#9f3028;white-space:pre-wrap;overflow-wrap:anywhere}
.task-editor-error:empty{display:none}
.task-editor-footer{position:sticky;bottom:-24px;display:flex;justify-content:flex-end;gap:10px;background:#f5f7f5;border-top:1px solid #d3dfd7;margin:20px -24px -24px;padding:14px 24px;z-index:1}
#task-editor-form button{min-height:44px;white-space:normal}
#task-editor-form button[type=button]{background:white;color:#285346}
#task-editor-form .due-move-candidates:not(:empty){padding:12px;background:#edf5ef;border:1px solid #b8d1c0;border-radius:6px;margin-top:12px}
@media(max-width:600px){#task-editor-dialog{width:calc(100vw - 16px);max-height:96dvh}#task-editor-form{padding:16px}.task-editor-grid{grid-template-columns:minmax(0,1fr)}#task-editor-form fieldset{padding:12px}#task-editor-form input,#task-editor-form select,#task-editor-form textarea{font-size:16px}.task-editor-footer{bottom:-16px;margin:16px -16px -16px;padding:12px 16px}.task-editor-footer button{flex:1 1 0}#task-editor-form [data-task-edit-team],#task-editor-form [data-task-edit-split]{width:100%}}
#task-split-dialog{width:min(700px,calc(100vw - 24px));max-height:92dvh;padding:0;border:1px solid #bdcbc4;border-radius:10px;color:#203b35;background:#f5f7f5;overflow:auto}
#task-split-dialog::backdrop{background:#17362d70}
#task-split-form{margin:0;padding:24px;border:0;background:transparent}
#task-split-form input,#task-split-form select{min-height:44px;width:100%}
#task-split-form [data-split-preview]:not(:empty){margin:20px 0;padding:16px;background:#edf5ef;border:1px solid #b8d1c0;border-radius:6px}
#task-split-form [data-split-error]{color:#9f3028;white-space:pre-wrap}
#task-split-form .task-editor-footer{flex-wrap:wrap}
#task-split-form button[type=button]{background:white;color:#285346}
#task-split-form button[data-split-apply]:not(:disabled){background:#183f35;color:white}
@media(max-width:600px){#task-split-form{padding:16px}#task-split-form input,#task-split-form select{font-size:16px}#task-split-form .task-editor-footer button{flex:1 1 42%}}

.task-split-edit-summary dd{margin:4px 0 14px;white-space:pre-wrap;overflow-wrap:anywhere}.task-split-edit-summary dt{font-weight:700}.task-split-edit-summary dd span{color:#52665e}#task-split-form [data-split-preview]{overflow-wrap:anywhere}#task-split-form [data-split-apply]:disabled{background:#dce5df;color:#52665e;opacity:1}

#task-split-form .task-editor-footer button{transition:none}
