.modal-layer:has(.task-editor-compact){padding:8px}
.task-editor-compact{width:min(520px,calc(100vw - 16px));min-height:0;max-height:calc(100dvh - 16px);border:1px solid #e0e7f0;border-radius:14px;background:#f8fafc;box-shadow:0 20px 55px #15243b30}
.task-editor-compact>header{position:relative;display:flex;min-height:58px;flex:none;align-items:center;border-bottom:0;background:#f8fafc;padding:12px 24px}
.task-editor-compact>header>div{flex:1;text-align:left}
.task-editor-compact>header h2{font-size:17px;font-weight:700;white-space:nowrap}
.task-editor-compact>header [data-close]{position:absolute;top:14px;right:20px;display:grid;width:28px;height:28px;place-items:center;border:0;background:transparent;color:#63748d;font-size:20px}
.task-editor-compact .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:16px 12px;background:#f8fafc;padding:10px 24px 20px}
.task-editor-compact .form-grid>*{grid-column:auto}
.task-editor-compact .form-grid>.span-2{grid-column:1/-1}
.task-editor-compact .form-grid>label{gap:7px;color:#1c2a42;font-size:13px;font-weight:550}
.task-editor-compact .form-grid input:not([type="hidden"]):not([type="checkbox"]),.task-editor-compact .form-grid textarea,.task-editor-compact .modern-native-select-trigger,.task-editor-compact .modern-date-trigger{min-height:36px;border-radius:9px;background:#f8fafc;padding:7px 11px;color:#29364c;font-size:13px;box-shadow:0 1px 3px #15243b12}
.task-editor-compact .form-grid textarea{height:61px;min-height:61px}
.task-editor-compact .task-customer-field>span{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:8px;min-width:0;text-align:left}
.task-editor-compact .task-customer-label{white-space:nowrap;text-align:left}
.task-editor-compact .task-customer-field>span>em{display:flex;align-items:center;gap:7px;color:#71829b;font-size:11px;font-style:normal;font-weight:400;white-space:nowrap}
.task-editor-compact .task-customer-field>span>em input[type="checkbox"]{width:35px;min-width:35px;max-width:35px;height:20px;min-height:20px;max-height:20px}
.task-editor-compact .task-customer-field>span>em input[type="checkbox"]:after{top:2px;left:2px;width:16px;height:16px}
.task-editor-compact .task-customer-field>span>em input[type="checkbox"]:checked:after{transform:translateX(15px)}
.task-editor-compact .task-map-field{position:relative;gap:7px;margin:0}
.task-editor-compact .task-map-field>div:first-child{flex-wrap:nowrap;align-items:center}
.task-editor-compact .task-map-field strong{font-size:13px;font-weight:550}
.task-editor-compact .task-map-field small{font-size:11px;white-space:nowrap}
.task-editor-compact .task-map-field #task-location-map{height:255px;border-radius:9px;background:#e6ebef}
.task-editor-compact .task-map-field>p{position:absolute;z-index:700;bottom:15px;left:50%;display:block;width:max-content;max-width:185px;margin:0;transform:translateX(-50%);border:1px solid #dce4ee;border-radius:11px;background:#fff;padding:8px 10px;color:#64748b;font-size:11px;line-height:1.3;text-align:center;pointer-events:none;box-shadow:0 2px 7px #15243b1c}
.task-editor-compact .form-actions{display:flex;flex-direction:row;justify-content:flex-end;gap:8px;margin:0;border-top:1px solid #e5ebf3;background:#f8fafc;padding:10px 24px calc(10px + env(safe-area-inset-bottom))}
.task-editor-compact .form-actions .primary,.task-editor-compact .form-actions .secondary{width:auto;min-height:36px;border-radius:8px;padding:7px 13px;font-size:12px;font-weight:600}
.task-editor-compact .form-actions .secondary{background:#f8fafc}
.task-editor-compact .form-actions .primary{order:0}
@media(min-width:601px){.task-editor-modal.task-editor-compact{width:min(512px,calc(100vw - 28px));height:min(924px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)}}
@media(max-width:600px){
  .task-editor-compact{width:100%;min-height:0;max-height:calc(100dvh - 12px)}
  .task-editor-compact>header{padding:12px 22px}
  .task-editor-compact>header [data-close]{right:17px}
  .task-editor-compact .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;padding:10px 22px 20px}
  .task-editor-compact .form-grid>*{grid-column:auto}
  .task-editor-compact .form-grid>.span-2{grid-column:1/-1}
  .task-editor-compact .form-actions{padding:10px 22px calc(10px + env(safe-area-inset-bottom))}
}
@media(max-width:380px){
  .task-editor-compact .task-customer-field>span{gap:4px}
  .task-editor-compact .task-customer-label{font-size:11px}
  .task-editor-compact .task-customer-field>span>em{gap:5px;font-size:10px}
  .task-editor-compact .task-customer-field>span>em input[type="checkbox"]{width:31px;min-width:31px;max-width:31px;height:18px;min-height:18px;max-height:18px}
  .task-editor-compact .task-customer-field>span>em input[type="checkbox"]:after{width:14px;height:14px}
  .task-editor-compact .task-customer-field>span>em input[type="checkbox"]:checked:after{transform:translateX(13px)}
}
