/* Direct ordinary-task creation, scoped to this form only. */
#dialog[open]:has(.gt-simple-form){box-sizing:border-box;width:min(900px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;overflow:auto}
.gt-simple-form{min-width:0}.gt-simple-form .tf-content{min-width:0;max-height:calc(100dvh - 320px);overflow:auto;overscroll-behavior:contain;padding:0 12px 8px 0}
.gt-simple-form .tf-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.gt-simple-form .tf-assignment{margin-top:16px;padding-top:10px;border-top:1px solid var(--line,#cbd5e1)}
.gt-simple-form .tf-people{max-height:240px;overflow:auto;border:1px solid var(--line,#cbd5e1);border-radius:8px;padding:10px}.gt-simple-form .tf-people legend{font-weight:600;font-size:.9rem}
.gt-simple-form .tf-person{margin:0;padding:9px 4px;display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid var(--line,#cbd5e1)}.gt-simple-form .tf-person:last-child{border:0}.gt-simple-form .tf-person input{width:20px;height:20px;flex:none;margin-top:3px}.gt-simple-form .tf-person span{min-width:0;overflow-wrap:anywhere}.gt-simple-form .tf-person small{display:block;margin-top:3px}.gt-simple-form [hidden]{display:none!important}
.gt-simple-form details{border:1px solid var(--line,#cbd5e1);border-radius:8px;margin:14px 0;padding:12px;background:var(--surface,#fff)}.gt-simple-form summary{cursor:pointer;font-weight:650;min-height:24px}.gt-simple-form summary span{font-size:.85rem;font-weight:400;margin-left:6px}.gt-simple-form details[open]>summary{margin-bottom:14px}.gt-simple-form .tf-boundary{border-top:1px solid var(--line,#cbd5e1);padding-top:12px}.gt-simple-form .tf-badge{font-size:.72rem;border:1px solid var(--line,#cbd5e1);border-radius:4px;padding:3px 5px;margin-left:6px}.gt-simple-form .tf-retained{font-weight:600}.gt-simple-form p,.gt-simple-form label{overflow-wrap:anywhere}.gt-simple-form input,.gt-simple-form select,.gt-simple-form textarea{box-sizing:border-box;max-width:100%;min-width:0}
.gt-simple-form .actions{padding-top:10px;border-top:1px solid var(--line,#cbd5e1)}.gt-simple-form #fw-local-state{margin:8px 0}.gt-simple-form .tf-content>section:first-of-type>label>textarea{min-height:110px}
@media(max-width:600px){#dialog[open]:has(.gt-simple-form){padding:12px}.gt-simple-form .tf-grid{grid-template-columns:1fr;gap:0}.gt-simple-form .tf-content{max-height:calc(100dvh - 335px);padding-right:6px}.gt-simple-form .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.gt-simple-form #fw-save{grid-column:1/-1;grid-row:1}.gt-simple-form .actions .btn{white-space:normal;min-width:0;font-size:.87rem}.gt-simple-form .tf-people{max-height:210px}}
@media(max-height:620px){.gt-simple-form .tf-content{max-height:none}#dialog[open]:has(.gt-simple-form){overflow:auto}}
/* Size the scrolling content around the actual fixed actions, not a guessed height. */
#dialog[open]:has(.gt-simple-form){padding:0;max-height:94dvh}
#dialog .gt-simple-form{display:flex;flex-direction:column;gap:0;overflow:hidden;max-height:calc(92dvh - 142px)}
.gt-simple-form .tf-content{min-height:0;max-height:none;overflow-y:auto;scrollbar-gutter:stable}
.gt-simple-form>.actions,.gt-simple-form>#fw-error,.gt-simple-form>#fw-local-state{flex-shrink:0}
.gt-simple-form>#fw-local-state{font-size:12px;line-height:1.4;margin:7px 0 2px}
.gt-simple-form>#fw-error:empty{display:none}
@media(max-width:640px){#dialog[open]:has(.gt-simple-form){max-height:97dvh;width:calc(100vw - 12px);max-width:calc(100vw - 12px)}#dialog:has(.gt-simple-form) .modal{padding:12px}#dialog:has(.gt-simple-form) .modal-head{padding:8px 0;margin-bottom:5px}#dialog:has(.gt-simple-form) .modal-head h2{font-size:20px}#dialog .gt-simple-form{max-height:calc(96dvh - 155px)}}
@media(max-height:500px){#dialog .gt-simple-form{max-height:none;overflow:visible}}
