/* Studio Ninja workflow task editors (Edit To-do, Edit Automation wizard, Edit Appointment). */
#modal:has(.te-form){width:min(720px,96vw);max-width:720px;border-radius:4px}
#modal:has(.te-form) .modalhead h2{font-size:20px;font-weight:500}
#modal:has(.te-form) #close{border:0;background:none;color:var(--sn-chip,#a1a1aa);font-size:22px;width:auto;height:auto;padding:0 4px;box-shadow:none}
#modal:has(.te-form) footer{display:flex;justify-content:space-between;gap:8px}
#modal:has(.te-form) footer button{font-size:14px;line-height:20px;padding:11px 18px}
#modal:has(.te-form) footer #cancel{order:-1}
.te-form hr{border:0;border-top:1px solid var(--sn-border,#d4d4d8);margin:18px 0}
.te-info{background:var(--ph-post-soft,#e0f2fe);color:#0c4a6e;border-radius:4px;padding:10px 12px;font-size:13px;margin:0 0 14px}
.te-card{display:block;border:1px solid var(--sn-border,#d4d4d8);border-radius:8px;padding:18px 20px;margin-bottom:12px;background:var(--sn-surface,#fff);cursor:pointer}
.te-card>input,.te-card__head>input{margin-right:14px}
.te-card,.te-card__head{display:flex;align-items:flex-start;flex-wrap:wrap}
.te-card__head{width:100%;cursor:pointer}
.te-card b{display:block;font-size:14px;font-weight:500;color:var(--sn-text)}
.te-card small{display:block;font-size:13px;color:var(--sn-label);margin-top:4px}
.te-card input[type=radio]{width:18px;height:18px;accent-color:var(--sn-green);margin-top:2px}
.te-tabs{width:100%;margin-top:16px;border:1px solid var(--sn-line,#e4e4e7);border-radius:6px;overflow:hidden}
.te-tabbar{display:grid;grid-template-columns:1fr 1fr}
.te-tabbar button{border:0;border-radius:0;background:var(--sn-soft);padding:12px;font-size:13px;font-weight:500}
.te-tabbar button.te-active{background:var(--sn-surface,#fff)}
.te-pane{display:flex;align-items:center;gap:10px;padding:16px;flex-wrap:wrap}
.te-pane>span{font-size:13px;font-weight:500;margin-right:6px}
.te-pane input[type=number]{width:70px;height:36px;border:1px solid var(--sn-border,#d4d4d8);border-radius:0;padding:0 10px}
.te-pane select,.te-pane input[type=date],.te-pane input[type=time]{height:36px;border:1px solid var(--sn-border,#d4d4d8);border-radius:0;padding:0 10px;font-size:13px}
.te-pane select[name=teDep]{flex:1;min-width:200px}
.te-pane [hidden]{display:none!important}
.te-form [hidden]{display:none!important}
.te-steps{display:flex;justify-content:space-between;list-style:none;margin:0 0 18px;padding:0 40px 18px;border-bottom:1px solid var(--sn-line,#e4e4e7);position:relative}
.te-steps li{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;color:var(--sn-text);z-index:1;background:var(--sn-surface,#fff);padding:0 6px}
.te-steps i{width:32px;height:32px;border-radius:50%;border:1px solid var(--sn-border,#d4d4d8);display:flex;align-items:center;justify-content:center;font-style:normal;font-size:13px;background:var(--sn-surface,#fff)}
.te-steps .te-current i{background:var(--sn-label,#3f3f46);border-color:var(--sn-label,#3f3f46);color:#fff}
.te-steps .te-done i{background:var(--sn-green);border-color:var(--sn-green);color:transparent;position:relative}
.te-steps .te-done i::after{content:'✓';color:#fff;position:absolute}
.te-steps::before{content:'';position:absolute;left:70px;right:70px;top:16px;border-top:2px solid var(--sn-border,#d4d4d8)}
.te-row{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.te-row .fs-label{margin:0}
.te-to{display:inline-block;background:var(--ok-soft,#dcfce7);color:var(--ok-ink,#14532d);border-radius:360px;padding:3px 10px;font-size:12px;font-weight:500;margin-right:6px}
@media(max-width:991px){
 #modal:has(.te-form) footer{flex-direction:column-reverse;align-items:stretch}
 #modal:has(.te-form) footer button{width:100%}
 #modal:has(.te-form) footer #cancel{order:0}
 .te-steps{padding:0 0 18px}
 .te-steps::before{left:30px;right:30px}
}
.te-card{flex-wrap:nowrap}
.te-card__head{flex-wrap:nowrap}
.te-card input[type=radio]{width:18px!important;min-width:18px;height:18px!important;flex:0 0 18px;display:inline-block!important;margin:2px 14px 0 0!important}
.te-card>.te-tabs{flex-basis:100%}
.te-card:has(.te-tabs){flex-wrap:wrap}
.te-pane{flex-wrap:nowrap}
.te-pane input[type=number]{width:70px!important;flex:0 0 70px}
.te-pane select[name=teUnit]{width:120px!important;flex:0 0 120px}
.te-pane select[name=teDep]{width:auto!important;flex:1 1 auto}
.te-pane input[type=date]{width:200px!important;flex:0 0 200px}
.te-pane input[type=time]{width:120px!important;flex:0 0 120px}
@media(max-width:600px){.te-pane{flex-wrap:wrap}.te-pane select[name=teDep]{flex-basis:100%}}
#te-back[hidden],#modal footer button[hidden]{display:none!important}
