/* Ordinary drafts share one visual vocabulary with the approved V0.5 sample. */
.tf-editor,#new-form{--tf-panel:#f1f6ee;--tf-line:#e2eadd;--tf-control:#d0decd;--tf-label:#63796a;--tf-title:#233f35;--tf-height:42px}
.tf-editor{max-width:960px;margin:0 auto;min-width:0}
.tf-title{display:block;position:relative;border-bottom:1px solid #d0decd;margin:0 0 20px;padding:0 0 10px;color:#63796a;font-size:12px}
.tf-title>span{display:block;margin-bottom:7px}
.tf-title>input,#new-form .tf-title>input{width:100%;min-width:0;border:0;border-radius:0;padding:6px 32px 6px 0;background:transparent;font-size:23px;font-weight:650;line-height:1.5;color:#233f35;box-shadow:none}
.tf-title>i{position:absolute;right:8px;bottom:20px;color:#91a291;font-style:normal;font-size:20px;pointer-events:none}
.tf-arrangement,.tf-children{background:#f1f6ee;border:1px solid #e2eadd;border-radius:9px;padding:12px 14px 13px;min-width:0}
#ai-dialog .tf-arrangement h3,#ai-dialog .tf-children h3,#new-form .tf-arrangement h3,#new-form .tf-children h3{font-size:12px;font-weight:600;line-height:1.6;color:#647b6b;margin:0 0 13px}
.tf-arrangement>summary{display:flex;gap:6px 12px;align-items:center;list-style:none;font-size:11px;color:#77887b}
.tf-arrangement>summary::-webkit-details-marker{display:none}.tf-arrangement>summary>strong{font-size:12px;font-weight:600;color:#647b6b}.tf-arrangement>summary>small{margin-left:auto;font-size:11px}
.tf-arrangement[open]>.tf-properties{margin-top:10px;padding-top:11px;border-top:1px solid #dce6d6}
.tf-properties{display:grid;grid-template-columns:minmax(120px,.72fr) minmax(170px,.95fr) minmax(210px,1.2fr);gap:15px;align-items:start}
.tf-group-properties{grid-template-columns:minmax(125px,.75fr) minmax(210px,1.2fr)}
.tf-field,#new-form .tf-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;color:#63796a;font-size:12px;line-height:1.6}
.tf-field small{font-size:10px;font-weight:400;color:#849486}
.tf-field input,.tf-field select,.tf-field textarea,#new-form .tf-field input,#new-form .tf-field select,#new-form .tf-field textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:var(--tf-height,42px);min-height:var(--tf-height,42px);font-family:inherit;font-size:15px;font-weight:400;line-height:1.5;color:#29433e;padding:8px 10px;border:1px solid #d0decd;border-radius:6px;background:#fff;margin:0}
.tf-field textarea{resize:vertical}.tf-field [data-field=person_id],.tf-field [data-child-field=assignment],#new-form #task-assignee{font-weight:650;color:#244937}
.tf-owner,#new-form .tf-owner{font-size:11px;color:#77887b;font-weight:400;line-height:1.6;margin:1px 0 0}.tf-owner strong{font-weight:600;color:#4d6857}
.tf-date{display:flex;gap:6px;min-width:0}.tf-date input{flex:1;min-width:0}.tf-date button{flex:none;font-size:12px;font-weight:400;min-height:42px;padding:5px}
.tf-children{margin-top:18px;padding:0;overflow:hidden}.tf-children>header{display:flex;align-items:center;justify-content:space-between;gap:5px 12px;padding:12px 14px 8px}.tf-children>header>small{font-size:11px;color:#77887b}.tf-children>header h3{margin:0!important}
.tf-table-head,.tf-child-fields{display:grid;grid-template-columns:minmax(140px,1fr) 170px 154px 106px;gap:10px;align-items:center}
.tf-table-head{padding:6px 11px 8px;font-size:12px;color:#63796a}.tf-child{border-top:1px solid #dce6d6}.tf-child-fields{padding:10px 11px}.tf-child>summary{display:none}.tf-child-fields>.tf-field>span:not(.df-field){display:none}.tf-delete{font-size:12px;font-weight:400;color:#9b6b60;min-height:42px;padding:6px}.tf-child:focus-within{background:#eaf3e6}
.tf-add{font-size:12px;min-height:34px;padding:5px 7px;margin:5px 0 12px;color:#577960}
.tf-description{border:1px solid #e2eadd;border-radius:7px;padding:0;margin:7px 0 0;background:white;font-size:13px;color:#526b59}.tf-description>summary{padding:10px 13px;line-height:1.7;min-height:42px}.tf-description>.tf-field,.tf-description>small,.tf-description-preview{margin:0 13px 12px}.tf-description textarea{height:auto;min-height:90px}.tf-description-preview{padding:10px;background:#f1f6ee;border-radius:6px}.tf-description-preview p{white-space:pre-wrap;overflow-wrap:anywhere}.tf-description>small{display:block;font-size:11px}
#new-form>.tf-arrangement{margin-bottom:16px}#new-form .tf-children:empty{display:none}#new-form .new-subtask-toolbar{margin:8px 0}.tf-title input:focus-visible,.tf-field :is(input,select,textarea):focus-visible{outline:2px solid #6c9c7e;outline-offset:2px}
@media(min-width:761px) and (max-width:1120px){.tf-properties:not(.tf-group-properties){grid-template-columns:1fr 1.2fr}.tf-properties:not(.tf-group-properties)>.tf-field:last-child{grid-column:1/-1}.tf-table-head,.tf-child-fields{grid-template-columns:minmax(100px,1fr) 148px 140px 100px;gap:7px}}
@media(min-width:761px) and (max-width:950px){.tf-child-fields{grid-template-columns:minmax(120px,1fr) 154px 106px;align-items:end}.tf-child-title{grid-column:1/-1}.tf-table-head{display:none}.tf-child-fields>.tf-field>span:not(.df-field){display:block}}
@media(max-width:760px){.tf-editor,#new-form{--tf-height:44px}.tf-title>input,#new-form .tf-title>input{font-size:21px}.tf-title{margin-bottom:14px}.tf-arrangement{padding:10px 12px}.tf-properties,.tf-group-properties{grid-template-columns:1fr;gap:10px}.tf-children>header{align-items:start;flex-direction:column;padding:10px 12px}.tf-table-head{display:none}.tf-child>summary{display:flex;flex-direction:column;gap:4px;padding:12px;font-size:12px;color:#63796a}.tf-child>summary>strong{font-size:15px;font-weight:500;color:#29433e}.tf-child-fields{display:grid;grid-template-columns:1fr;gap:10px;padding:0 12px 12px}.tf-child-fields>.tf-field>span:not(.df-field){display:block}.tf-delete{justify-self:start;min-height:44px}.tf-arrangement>summary{flex-wrap:wrap}.tf-date button{min-height:44px}.tf-child>summary span{overflow-wrap:anywhere}.tf-arrangement h3,.tf-children h3{font-size:11px!important}}
@media(max-width:360px){.tf-title>input,#new-form .tf-title>input{font-size:19px}}

/* Approved V0.6: ordinary creation and AI drafts share the compact arrangement card. */
.entry-core{padding:0;overflow:hidden;container-type:inline-size}
#new-form .entry-core>h3,#ai-dialog .entry-core>h3{padding:12px 16px 0;margin:0;font-size:14px;color:#36584b}
.entry-core>.tf-properties{padding:12px 16px 14px;grid-template-columns:minmax(90px,.6fr) minmax(145px,1.1fr) minmax(165px,1.2fr) minmax(180px,1.5fr);gap:12px}
.entry-core>.tf-group-properties{grid-template-columns:minmax(90px,.6fr) minmax(175px,1.4fr) minmax(210px,2fr)}
.entry-core .tf-children{border:0;border-top:1px solid #dce6d8;border-radius:0;margin:0}
.entry-core .tf-child{background:white}.entry-core .tf-child:focus-within{background:#f9fbf7}
.entry-core>.ai-group-date{margin:0 16px 12px}
@container(max-width:720px){.entry-core>.tf-properties{grid-template-columns:minmax(100px,1fr) minmax(145px,1.2fr)}.entry-core>.tf-properties>.tf-field:last-child{grid-column:auto}.entry-core>.tf-group-properties>.tf-field:last-child{grid-column:1/-1}}
@container(max-width:420px){.entry-core>.tf-properties,.entry-core>.tf-group-properties{grid-template-columns:1fr}.entry-core>.tf-properties>.tf-field{grid-column:1}}
#new-dialog{width:min(1040px,calc(100vw - 32px));max-width:1040px;max-height:92dvh;padding:0;overflow:hidden}
#new-dialog[open]{display:flex;flex-direction:column}
#new-dialog>.dialog-top{flex:none;padding:18px 28px 10px;margin:0}
#new-dialog>.task-entry-modes{flex:none;margin:0 28px 12px}
#new-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.new-form-scroll{overflow:auto;min-height:0;padding:4px 28px 18px;scrollbar-gutter:stable;overscroll-behavior:contain}
#new-form>.form-actions{flex:none;justify-content:flex-end;margin:0;padding:12px 28px;border-top:1px solid #dce6d8;background:#f7faf5}
#new-form>.form-actions #new-submit{order:2}
#new-dialog #existing-search-controls{overflow:auto;min-height:0;padding:0 28px 18px;overscroll-behavior:contain}
#new-form .new-task-mode-hint{font-size:12px;margin:0 0 12px}
#new-form #new-subtask-help{font-size:12px;margin:0 0 8px}
@media(max-width:600px){#new-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}#new-dialog>.dialog-top{padding:12px 14px 8px}#new-dialog>.task-entry-modes{margin:0 14px 8px}#new-dialog>.dialog-top .eyebrow{display:none}.new-form-scroll,#new-dialog #existing-search-controls{padding:4px 12px 14px}#new-form>.form-actions{padding:10px 12px}.entry-core>.tf-properties{padding:10px 12px 12px}.entry-core>.tf-properties>.tf-field:last-child{grid-column:1/-1}}

.tf-date>.df-trigger{flex:1;min-width:0;width:auto;font-size:15px;padding:8px 10px}.tf-child-fields .df-trigger{font-size:13px;line-height:1.45}
