dialog:has(#record-form[data-kind="tasks"]){width:min(1440px,96vw);max-width:96vw;max-height:94vh}
#record-form[data-kind="tasks"] .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#record-form[data-kind="tasks"] [name="notes"]{min-height:70px}
.work-plan-editor table{table-layout:fixed;width:100%}
.work-plan-editor th:first-child{width:22%}.work-plan-editor th:nth-child(2){width:48%}.work-plan-editor th:nth-child(3){width:20%}.work-plan-editor th:last-child{width:10%}
.work-plan-editor td{padding:10px 8px;vertical-align:top}.work-plan-editor input,.work-plan-editor textarea{width:100%;min-width:0}.work-plan-editor textarea{min-height:65px;resize:vertical}.work-plan-editor button{white-space:normal}
.journal-card{border-top:1px solid var(--line);padding:18px 0}.journal-card time{display:block;color:var(--muted);font-size:12px}.journal-photos{display:flex;flex-wrap:wrap;gap:10px}.journal-photos img{width:120px;height:100px;object-fit:cover;border-radius:6px}.journal-photos label{display:grid;gap:6px}
#daily-journal-form [name="content"]{min-height:240px}dialog:has(#complete-article-form){width:min(1100px,94vw)}#complete-article-form fieldset{border:1px solid var(--line);border-radius:8px;margin:16px 0;padding:16px}
@media(max-width:800px){#record-form[data-kind="tasks"] .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.work-plan-editor table{min-width:650px}.daily-journal .panel-head{flex-wrap:wrap}}
.generation-controls{border:1px solid #dce5dc;border-radius:8px;padding:14px;margin:0 0 18px;min-width:0}
.generation-controls legend{padding:0 6px;color:#244d40}
.generation-controls [hidden]{display:none!important}
.generation-controls .hint{overflow-wrap:anywhere}
.today-task-table tr.today-node .work-title{font-weight:800}
.today-task-table tr.today-node>td:first-child{border-left:4px solid #bf6b25;font-weight:700}
.today-node-label{display:inline-block;padding:2px 7px;margin-right:7px;border-radius:4px;background:#fff0d1;color:#925416;font-size:11px;font-weight:700}
.required-feedback{display:block;font-size:12px;line-height:1.7;font-weight:500;color:#95601f;margin-top:6px;white-space:normal}
.today-task-table .task-description.required-feedback{display:block;margin:5px 0 0;color:#95601f;font-weight:600}
