/* Sfera CRM | Nuovo task — exact design parity with Quick Activity.
   Scoped to the live dynamically created editor only. No changes to task data,
   validation rules, permissions, customer lookup, microtasks or save handlers. */
#task-v2-editor.task-v2-modal.task-v2-editor--sfera{
  --ga-ink:#0e2166;--ga-blue:#0b7ff0;--ga-green:#16835a;
  --ga-red:#d2443f;--ga-border:#dde7f3;--ga-canvas:#f4f7fc;
  box-sizing:border-box!important;
  z-index:1335!important;
  align-items:center!important;justify-content:center!important;
  padding:18px!important;overflow:hidden!important;
  font-family:var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera[hidden]{display:none!important}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-modal__backdrop{
  background:rgba(11,26,54,.43)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog{
  box-sizing:border-box!important;
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto minmax(0,1fr) auto auto!important;
  width:min(820px,100%)!important;max-width:820px!important;
  height:min(820px,calc(100dvh - 36px))!important;
  min-height:min(570px,calc(100dvh - 36px))!important;
  max-height:calc(100dvh - 36px)!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
  background:#fff!important;
  border:1px solid #e3eaf4!important;border-radius:16px!important;
  box-shadow:0 20px 65px rgba(12,30,65,.22)!important;
  font-family:var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
  animation:none!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__header{
  grid-column:1;grid-row:1;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:13px!important;min-height:107px!important;
  margin:0!important;padding:19px 24px 17px!important;
  background:#fff!important;
  border:0!important;border-bottom:1px solid #e8eff8!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v3-dialog-heading{
  display:flex!important;align-items:center!important;gap:13px!important;
  flex:1 1 auto!important;min-width:0!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v3-dialog-heading__icon{
  display:grid!important;place-items:center!important;
  flex:0 0 43px!important;
  width:43px!important;height:43px!important;
  background:#eaf3ff!important;color:#0e2166!important;
  border:0!important;border-radius:12px!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v3-dialog-heading__icon svg{
  width:22px!important;height:22px!important;stroke-width:1.75!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v3-dialog-eyebrow{
  display:none!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__header h2{
  margin:0!important;color:#0e2166!important;
  font:680 23px/1.25 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
  letter-spacing:-.4px!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__header p{
  margin:4px 0 0!important;color:#7385a2!important;
  font:430 12px/1.45 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__header>[data-task-v2-close]{
  display:grid!important;place-items:center!important;
  flex:0 0 35px!important;
  width:35px!important;min-width:35px!important;
  height:35px!important;min-height:35px!important;
  margin-left:auto!important;padding:0!important;
  background:#fff!important;color:#8292aa!important;
  border:1px solid #e0e7f1!important;border-radius:9px!important;
  box-shadow:none!important;
  transition:background .16s ease,color .16s ease,border-color .16s ease!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__header>[data-task-v2-close]:is(:hover,:focus-visible){
  background:#f4f7fc!important;color:#0e2166!important;
  border-color:#b9cde9!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__header>[data-task-v2-close] svg{
  width:17px!important;height:17px!important;
}
/* Content and actions are separate grid tracks, mirroring Quick Activity. */
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__body{
  grid-column:1;grid-row:2;box-sizing:border-box!important;
  display:block!important;
  width:100%!important;max-width:none!important;
  min-width:0!important;min-height:0!important;
  max-height:none!important;
  margin:0!important;padding:18px 23px 24px!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin;scrollbar-color:#c6d6eb transparent;
  background:#f4f7fc!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v3-form-section{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0 0 15px!important;padding:18px 19px 19px!important;
  background:#fff!important;
  border:1px solid #dde7f3!important;border-radius:14px!important;
  box-shadow:0 3px 11px rgba(14,33,102,.035)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section:first-child,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section:nth-child(2),
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section:nth-child(3),
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section:nth-child(4),
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section:nth-child(5){
  border:1px solid #dde7f3!important;
  border-top:1px solid #dde7f3!important;
  border-left:1px solid #dde7f3!important;
  background:#fff!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section>header{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) auto!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;min-width:0!important;
  margin:0 0 16px!important;padding:0 0 13px!important;
  border:0!important;border-bottom:1px solid #edf2f8!important;
  background:transparent!important;color:#0e2166!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section>header::before{
  content:"";display:grid;place-items:center;
  grid-column:1;grid-row:1;
  width:38px;height:38px;
  background:#edf4ff center / 19px 19px no-repeat;
  border:0;border-radius:11px;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section>header>span:first-child{
  grid-column:3;grid-row:1;
  display:grid!important;place-items:center!important;
  width:30px!important;min-width:30px!important;height:26px!important;
  margin:0!important;padding:0!important;
  color:#8c9eb9!important;
  background:#f2f6fc!important;border:1px solid #e8eef6!important;
  border-radius:7px!important;
  font:620 10px/1 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section>header>div{
  grid-column:2;grid-row:1;min-width:0!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section>header h3{
  margin:0!important;color:#0e2166!important;
  font:620 15px/1.3 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
  letter-spacing:0!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section>header p{
  margin:3px 0 0!important;color:#7c8ca3!important;
  font:430 11px/1.35 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
}
/* All five headings use the same official navy icon treatment as the panels
   in Quick Activity; there are no green/purple card accents. */
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section:nth-child(1)>header::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231459a7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='3.2'/%3E%3Cpath d='M2 20a6 6 0 0 1 12 0M16 6a3 3 0 0 1 0 6M17 14a6 6 0 0 1 5 6'/%3E%3C/svg%3E");
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section:nth-child(2)>header::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231459a7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V7l8-3v16M12 9h8v11M7 9h2M7 13h2M7 17h2M15 12h2M15 16h2'/%3E%3C/svg%3E");
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section:nth-child(3)>header::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231459a7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16M8 14h4M8 17h7'/%3E%3C/svg%3E");
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section:nth-child(4)>header::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231459a7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='M8 9h8M8 13h8M8 17h5'/%3E%3C/svg%3E");
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section:nth-child(5)>header::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231459a7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='m8 10 1.5 1.5L12 9M14 10h3m-9 6 1.5 1.5L12 15m2 1h3'/%3E%3C/svg%3E");
}
/* Form geometry, labels and fields match Activity fields, including the same
   red/green semantic contract (Task uses native data-field-state validation). */
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:17px 15px!important;width:100%!important;min-width:0!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-wide,#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-full{grid-column:1/-1!important}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid label,#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section fieldset{
  box-sizing:border-box!important;
  display:grid!important;align-content:start!important;
  gap:7px!important;min-width:0!important;
  color:#405776!important;
  font:575 12.5px/1.4 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid label>span,#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section legend{
  color:#405776!important;
  font:575 12.5px/1.4 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid :is(input:not([type=radio]):not([type=checkbox]):not(.task-v3-type-source),select,textarea){
  box-sizing:border-box!important;
  width:100%!important;min-width:0!important;
  min-height:46px!important;
  margin:0!important;padding:11px 12px!important;
  background:#fff!important;color:#263e60!important;
  border:1px solid #dce5f1!important;border-radius:10px!important;
  box-shadow:none!important;
  font:510 13px/1.4 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid :is(input,textarea)::placeholder{
  color:#98a8bf!important;opacity:1!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid textarea{
  min-height:108px!important;resize:vertical!important;line-height:1.55!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid select{
  appearance:none!important;padding-right:38px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b8caf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
  background-position:right 12px center!important;
  background-repeat:no-repeat!important;background-size:17px 17px!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera :is(input,select,textarea,button):focus-visible{
  outline:2px solid #0b7ff0!important;outline-offset:2px!important;
}
/* Applied after neutral fields so all missing required controls, including
   the customer search and the dynamic V3 type select, are reliably outlined. */
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-required-field[data-field-state="invalid"] :is(input:not(.task-v3-type-source),select,textarea),
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-required-field[data-field-state="invalid"] :is(.task-v3-type-select,.task-v2-client-search input){
  border:1px solid #d2443f!important;
  background-color:#fff9f8!important;
  box-shadow:0 0 0 2px rgba(210,68,63,.06)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-required-field[data-field-state="valid"] :is(input:not(.task-v3-type-source),select,textarea),
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-required-field[data-field-state="valid"] :is(.task-v3-type-select,.task-v2-client-search input){
  border:1px solid #42a279!important;
  background-color:#fbfffc!important;
  box-shadow:0 0 0 2px rgba(22,131,90,.045)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-required-field[data-field-state="invalid"]>span:first-child{
  color:#b44840!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-required-field[data-field-state="valid"]>span:first-child{
  color:#16835a!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-field-feedback{
  margin-top:4px!important;
  font:520 11px/1.45 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-required-field[data-field-state="invalid"]>.task-v2-field-feedback{
  color:#b44840!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-required-field[data-field-state="valid"]>.task-v2-field-feedback{
  color:#16835a!important;
}
/* Quick Activity multi-option pattern reused for personal/team choices. */
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-choice{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:11px!important;width:100%!important;margin:0 0 16px!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-choice label{
  box-sizing:border-box!important;
  display:flex!important;align-items:center!important;
  gap:11px!important;min-width:0!important;
  min-height:84px!important;margin:0!important;padding:13px 14px!important;
  background:#fbfdff!important;
  border:1px solid #dce6f2!important;border-radius:12px!important;
  color:#0e2166!important;cursor:pointer!important;
  font:650 13px/1.3 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-choice label::before{
  content:"";display:block;order:0;
  flex:0 0 39px;width:39px;height:39px;
  border-radius:11px;
  background:#edf4ff center / 20px 20px no-repeat;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-choice label:has([value="personal"])::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231459a7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-choice label:has([value="team"])::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231459a7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Cpath d='M2 20a6 6 0 0 1 12 0M17 5a3 3 0 0 1 0 6M18 14a6 6 0 0 1 4 6'/%3E%3C/svg%3E");
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-choice label>span{
  order:1;flex:1 1 auto;min-width:0!important;
  color:#0e2166!important;font-size:13px!important;
  font-weight:650!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-choice input[type=radio]{
  order:2;flex:0 0 17px!important;
  width:17px!important;min-width:17px!important;
  height:17px!important;min-height:17px!important;
  padding:0!important;margin:0!important;
  accent-color:#0b7ff0!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-choice label:has(input:checked){
  border-color:#77aaf0!important;
  background:#edf5ff!important;
  box-shadow:inset 0 0 0 1px rgba(11,127,240,.11)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-choice label:is(:hover,:focus-within){
  border-color:#9dbfea!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-assignee-picker__toggle,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-client-search input[type=search]{
  box-sizing:border-box!important;
  min-height:46px!important;
  border-radius:10px!important;
  font:510 13px/1.4 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-assignee-picker__toggle{
  border:1px solid #dce5f1!important;background:#fff!important;
  color:#263e60!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-assignee-picker__summary{
  font-size:12.5px!important;font-weight:540!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-assignees label{
  min-height:43px!important;
  padding:10px 11px!important;
  border:1px solid #dce6f2!important;border-radius:10px!important;
  background:#fff!important;
  font-size:12.5px!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-assignees input[type=checkbox]{
  width:17px!important;min-width:17px!important;
  height:17px!important;min-height:17px!important;
  padding:0!important;margin:0!important;
  accent-color:#0b7ff0!important;
}
/* Assignment is required only for team mode. Use the existing checked
   checkbox values: no new flags, no extra event listeners or payload changes. */
#task-v2-editor.task-v2-modal.task-v2-editor--sfera #task-v2-assignees:not([hidden]) .task-v2-assignee-picker:not(:has(input[type=checkbox]:checked)) .task-v2-assignee-picker__toggle{
  border:1px solid #d2443f!important;
  background:#fff9f8!important;
  box-shadow:0 0 0 2px rgba(210,68,63,.06)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera #task-v2-assignees:not([hidden]) .task-v2-assignee-picker:has(input[type=checkbox]:checked) .task-v2-assignee-picker__toggle{
  border:1px solid #42a279!important;
  background:#fbfffc!important;
  box-shadow:0 0 0 2px rgba(22,131,90,.045)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-micro-form fieldset:not([hidden]):not(:has(input[type=checkbox]:checked)){
  border:1px solid #d2443f!important;
  border-radius:10px!important;
  background:#fff9f8!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-micro-form fieldset:not([hidden]):has(input[type=checkbox]:checked){
  border:1px solid #42a279!important;
  border-radius:10px!important;
  background:#fbfffc!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-suggestions{
  z-index:10!important;
  border:1px solid #cbdff5!important;
  border-radius:11px!important;
  box-shadow:0 12px 28px rgba(14,33,102,.12)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera #task-v2-client-selected{
  color:#7b8da6!important;font-size:11px!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera #task-v2-add-microtask{
  min-height:42px!important;padding:10px 14px!important;
  border:1px solid #bad5f2!important;border-radius:9px!important;
  background:#edf5ff!important;color:#175ba9!important;
  font:620 12.5px/1.3 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-micro-form{
  border:1px solid #dde7f3!important;border-radius:12px!important;
  background:#fff!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-preview{
  border:1px solid #dde7f3!important;
  background:#f7faff!important;
}
/* The built-in valid/invalid state is attached by the Task controller on
   opening and on input/change, including fields in newly added microtasks. */
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-state{
  box-sizing:border-box!important;
  grid-column:1;grid-row:3;
  margin:0!important;
  padding:0 23px!important;
  max-height:88px!important;overflow:auto!important;
  color:#b44840!important;background:#fff!important;
  font-size:12px!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-state:not(:empty){
  padding:10px 23px!important;
  border-top:1px solid #f3e3e0!important;
  background:#fff9f8!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__footer{
  grid-column:1;grid-row:4;
  position:relative!important;bottom:auto!important;
  display:flex!important;align-items:center!important;
  justify-content:flex-end!important;
  flex:0 0 auto!important;gap:9px!important;
  z-index:4!important;
  width:100%!important;min-height:68px!important;
  padding:12px 23px max(12px,env(safe-area-inset-bottom))!important;
  margin:0!important;
  background:#fff!important;
  border:0!important;border-top:1px solid #dce7f4!important;
  box-shadow:0 -6px 22px rgba(14,33,102,.045)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__footer button{
  min-width:120px!important;min-height:41px!important;
  margin:0!important;padding:10px 14px!important;
  border-radius:9px!important;
  font:620 12.5px/1.2 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
  box-shadow:none!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__footer .btn-secondary{
  border:1px solid #dce5ef!important;
  background:#fff!important;color:#60718b!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__footer .btn-primary{
  border:1px solid #0e2166!important;
  background:#0e2166!important;color:#fff!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__footer .btn-primary:is(:hover,:focus-visible):not(:disabled){
  background:#1a3c91!important;border-color:#1a3c91!important;
}
@media(max-width:760px){
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera{padding:0!important}
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog{
    width:100%!important;max-width:100%!important;
    height:100dvh!important;min-height:100dvh!important;
    max-height:100dvh!important;border:0!important;border-radius:0!important;
  }
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__header{
    min-height:87px!important;padding:15px 17px!important;
  }
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__header h2{font-size:20px!important}
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__header p{font-size:11.5px!important}
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v3-dialog-heading__icon{
    flex-basis:39px!important;width:39px!important;height:39px!important;
  }
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__body{padding:15px 13px 20px!important}
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section{
    padding:15px!important;margin-bottom:12px!important;
  }
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-wide,#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-full{grid-column:1!important}
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-choice{grid-template-columns:minmax(0,1fr)!important}
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__footer{
    padding:10px 13px max(10px,env(safe-area-inset-bottom))!important;
  }
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__footer button{
    min-width:0!important;min-height:44px!important;flex:1 1 0!important;
  }
}
@media(max-width:420px){
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog__header{gap:9px!important}
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section>header{
    grid-template-columns:35px minmax(0,1fr) auto!important;
    gap:9px!important;
  }
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section>header::before{width:35px;height:35px}
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section>header h3{font-size:14px!important}
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-form-section>header p{font-size:10.5px!important}
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-assignees{grid-template-columns:minmax(0,1fr)!important}
}
@media(prefers-reduced-motion:reduce){
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera *,#task-v2-editor.task-v2-modal.task-v2-editor--sfera *::before,#task-v2-editor.task-v2-modal.task-v2-editor--sfera *::after{
    animation:none!important;transition:none!important;scroll-behavior:auto!important;
  }
}


/* Sfera Task — native payload fields with custom HTML select/calendar surfaces.
   Match Quick Activity's immediate red/green validation across the main Task
   and dynamically rendered microtasks; never change canonical field values. */
#task-v2-editor.task-v2-modal.task-v2-editor--sfera #task-v2-assignees:not([hidden]),
#task-v2-editor.task-v2-modal.task-v2-editor--sfera #task-v2-assignees .task-v2-assignee-picker,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera #task-v2-assignees .task-v2-assignee-picker__toggle {
  box-sizing:border-box!important;
  width:100%!important;max-width:none!important;min-width:0!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera #task-v2-assignees .task-v2-assignee-picker__toggle {
  display:flex!important;justify-content:space-between!important;align-items:center!important;
  padding:11px 13px!important;min-height:46px!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-micro-form .task-v2-assignees,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-micro-form .task-v2-assignee-picker,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-micro-form .task-v2-assignee-picker__toggle {
  box-sizing:border-box!important;
  width:100%!important;min-width:0!important;max-width:none!important;
}
/* Sources are present and fully functional for Task API validation and V3
   tipologia synchronization; only the platform-native controls are hidden. */
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog .task-v2-form-section .task-v2-grid > label .task-sfera-native-source,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-dialog .task-v2-form-section .task-v2-grid > label input.sfera-activity-datetime-source {
  position:absolute!important;left:4px!important;top:4px!important;
  display:block!important;
  width:1px!important;min-width:1px!important;max-width:1px!important;
  height:1px!important;min-height:1px!important;max-height:1px!important;
  padding:0!important;margin:0!important;border:0!important;opacity:0!important;
  clip-path:inset(50%)!important;pointer-events:none!important;
  background:transparent!important;box-shadow:none!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid>label {
  position:relative;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid label .task-sfera-select,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid label .sfera-activity-datetime-control{
  display:flex!important;align-items:center!important;
  position:relative!important;
  width:100%!important;min-width:0!important;
}
/* Compact icon-led dropdown, matching the controls of Nuova attività. */
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-sfera-select__trigger,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .sfera-activity-datetime-trigger{
  box-sizing:border-box!important;
  display:flex!important;align-items:center!important;gap:9px!important;
  width:100%!important;min-width:0!important;
  height:46px!important;min-height:46px!important;
  margin:0!important;padding:7px 10px!important;
  background:#fff!important;color:#263e60!important;
  border:1px solid #dce5f1!important;border-radius:10px!important;
  text-align:left!important;
  box-shadow:none!important;
  font:540 12.5px/1.3 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
  cursor:pointer;
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-sfera-select__trigger:is(:hover,:focus-visible),
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .sfera-activity-datetime-trigger:is(:hover,:focus-visible) {
  border-color:#92baea!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-sfera-select__trigger[aria-expanded="true"],
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .sfera-activity-datetime-trigger[aria-expanded="true"]{
  border-color:#0b7ff0!important;
  box-shadow:0 0 0 3px rgba(11,127,240,.10)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-sfera-select__icon,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .sfera-activity-datetime-trigger__icon{
  display:grid!important;place-items:center!important;flex:0 0 30px!important;
  width:30px!important;height:30px!important;
  background:#eaf3ff!important;color:#0b70cf!important;
  border-radius:9px!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-sfera-select__icon svg,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .sfera-activity-datetime-trigger__icon svg{
  width:17px!important;height:17px!important;
  stroke:currentColor!important;fill:none!important;stroke-width:1.8!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-sfera-select__value,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .sfera-activity-datetime-trigger__value{
  flex:1!important;min-width:0!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  font-size:12.5px!important;font-weight:540!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-sfera-select__value.is-placeholder{
  color:#91a5be!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-sfera-select__chevron,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .sfera-activity-datetime-trigger__caret{
  display:grid!important;place-items:center!important;flex:0 0 17px!important;
  width:17px!important;height:17px!important;
  color:#7894b3!important;transform:none!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-sfera-select__chevron svg,
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .sfera-activity-datetime-trigger__caret svg{
  width:16px!important;height:16px!important;
  stroke:currentColor!important;fill:none!important;stroke-width:1.8!important;
}
/* Enforce semantic completion state on the *visible* control rather than
   only the hidden original select / native date input. */
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid label.task-v2-required-field[data-field-state="invalid"] :is(input:not(.task-v3-type-source):not(.task-sfera-native-source):not(.sfera-activity-datetime-source),textarea,.task-sfera-select__trigger,.sfera-activity-datetime-trigger),
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid label.task-v2-required-field[data-field-state="invalid"] .task-v2-client-search input{
  border:1px solid #d2443f!important;background-color:#fff9f8!important;
  box-shadow:0 0 0 2px rgba(210,68,63,.06)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid label.task-v2-required-field[data-field-state="valid"] :is(input:not(.task-v3-type-source):not(.task-sfera-native-source):not(.sfera-activity-datetime-source),textarea,.task-sfera-select__trigger,.sfera-activity-datetime-trigger),
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid label.task-v2-required-field[data-field-state="valid"] .task-v2-client-search input{
  border:1px solid #42a279!important;background-color:#fbfffc!important;
  box-shadow:0 0 0 2px rgba(22,131,90,.045)!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid label.task-v2-required-field[data-field-state="invalid"]>span:first-child{
  color:#b44840!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid label.task-v2-required-field[data-field-state="valid"]>span:first-child{
  color:#16835a!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid label.task-v2-required-field[data-field-state="invalid"] :is(.task-sfera-select__icon,.sfera-activity-datetime-trigger__icon){
  background:#fff0ee!important;color:#c94a40!important;
}
#task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid label.task-v2-required-field[data-field-state="valid"] :is(.task-sfera-select__icon,.sfera-activity-datetime-trigger__icon){
  background:#e9f8ef!important;color:#20865b!important;
}
/* Custom menu in body portal — independent of dialog overflow & mouse wheel. */
.task-sfera-select__menu[hidden],
.task-sfera-select__option[hidden],
.task-sfera-select__empty[hidden] {display:none!important}
.task-sfera-select__menu{
  box-sizing:border-box;
  /* Popovers are browser top-layer elements. Neutralize UA inset/margin;
     inline top and left still position the menu alongside its Task trigger. */
  position:fixed;inset:auto;margin:0;
  right:auto;bottom:auto;z-index:2147483000;
  min-width:0;overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#c6d6eb transparent;
  padding:6px;
  border:1px solid #cbdff5;border-radius:13px;background:#fff;
  color:#213c63;
  box-shadow:0 20px 44px rgba(14,33,102,.18);
  font-family:var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
}
.task-sfera-select__menu *{box-sizing:border-box}
.task-sfera-select__menu svg{
  fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.task-sfera-select__search{
  position:sticky;top:-6px;z-index:1;
  display:flex;align-items:center;gap:8px;
  margin:0 0 5px;padding:7px 5px 10px;
  border-bottom:1px solid #ecf1f8;background:#fff;
}
.task-sfera-select__search-icon{
  display:grid;place-items:center;flex:0 0 18px;color:#6b88b1;
}
.task-sfera-select__search-icon svg{width:17px;height:17px}
.task-sfera-select__search-input{
  width:100%;min-width:0;min-height:36px;
  border:1px solid #e2eaf4;border-radius:8px;
  padding:8px 10px;background:#f6f9fd;color:#0e2166;
  font:510 12.5px/1.4 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
  outline:none;
}
.task-sfera-select__search-input:focus{
  border-color:#88b6eb;box-shadow:0 0 0 3px rgba(11,127,240,.09);
}
.task-sfera-select__options{display:grid;gap:2px}
.task-sfera-select__option{
  display:flex;align-items:center;gap:11px;min-height:45px;
  width:100%;padding:7px 9px;margin:0;
  border:1px solid transparent;border-radius:9px;
  background:#fff;color:#29486b;cursor:pointer;
  text-align:left;font:540 13px/1.35 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
}
.task-sfera-select__option:is(:hover,:focus-visible){
  background:#f3f8ff;border-color:#e1ecfb;outline:none;
}
.task-sfera-select__option[aria-selected="true"]{
  background:#eaf4ff;border-color:#d5e7fd;color:#0e2166;
}
.task-sfera-select__option-icon{
  display:grid;place-items:center;flex:0 0 32px;
  width:32px;height:32px;border-radius:9px;background:#e8f3ff;color:#0b70cf;
}
.task-sfera-select__option-icon svg{width:18px;height:18px}
.task-sfera-select__option-label{flex:1;min-width:0;overflow-wrap:anywhere}
.task-sfera-select__selected{display:none;color:#0b70cf}
.task-sfera-select__selected svg{width:17px;height:17px}
.task-sfera-select__option[aria-selected="true"] .task-sfera-select__selected{display:grid}
.task-sfera-select__empty{text-align:center;padding:12px 8px;color:#7b8da6;font-size:12px}
/* Same reusable calendar rendering and fixed-position popover as Activity. */
body.task-v2-modal-open .sfera-activity-calendar{
  font-family:var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
  border-radius:13px;border-color:#dce5f2;
}
body.task-v2-modal-open .sfera-activity-calendar__month,
body.task-v2-modal-open .sfera-activity-calendar__day{
  font-family:var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
}
@media(max-width:760px){
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-v2-grid :is(.task-sfera-select__trigger,.sfera-activity-datetime-trigger){
    min-height:46px!important;height:46px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #task-v2-editor.task-v2-modal.task-v2-editor--sfera .task-sfera-select__trigger,
  .task-sfera-select__menu *{transition:none!important;animation:none!important}
}
