/* V1.3.6: scoped form additions; V1.3.1 calendar and colour system unchanged. */
.agency-end-controls{display:grid;gap:8px;min-width:0}
.agency-end-controls [hidden]{display:none!important}
.agency-fields select,.agency-fields input{width:100%;min-width:0}
.agency-end-controls>input{display:block;box-sizing:border-box;min-height:44px;padding:11px 12px;border:1px solid var(--forma-edge,rgba(60,60,67,.12));border-radius:11px;background:var(--forma-paper-2,#f9fafb);color:var(--forma-text,#292a2f);font:inherit;font-size:13px;outline:none}
.agency-end-controls>input:focus{border-color:rgba(76,111,221,.5);box-shadow:0 0 0 3px rgba(76,111,221,.12)}
.task-private-field{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--border,#e5e7eb);border-radius:12px;background:var(--surface,#f7f8fb);cursor:pointer}
.task-private-field input{width:17px!important;height:17px!important;margin:2px 0 0;flex:none;accent-color:#3265dc}
.task-private-field strong{display:block;font-size:13px;line-height:20px;font-weight:600}
.task-private-field small{display:block;margin-top:3px;font-size:11px;line-height:1.55;color:var(--muted,#8a91a0);font-weight:400}
.task-private-field.is-disabled{cursor:default}
.task-private-mark{display:inline-flex;align-items:center;margin-right:4px;vertical-align:middle;color:var(--muted,#8a91a0)}
.task-private-mark svg{width:11px;height:11px}
.modal-backdrop:has(>.release-dialog),.modal-backdrop:has(>.catalog-dialog){overflow-y:auto}
.modal-backdrop>.release-dialog,.modal-backdrop>.catalog-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.modal-backdrop>.task-dialog:not(.batch-delete-dialog){max-height:calc(100dvh - 32px);overflow-y:auto}
[data-theme="dark"] .task-private-field{background:#1a1e2b;border-color:#343b4e;color:#eef0f6}
[data-theme="dark"] .task-private-field small{color:#a5adbf}
@media(max-width:760px){
 .modal-backdrop>.release-dialog,.modal-backdrop>.catalog-dialog{max-height:calc(100dvh - 24px)}
 .agency-fields{grid-template-columns:minmax(0,1fr)}
}
