.source .rule-picker.rule-picker-compact{padding:0!important;margin:20px 0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.source .ota-rule-library-entry{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:16px;border:1px solid #e9e2f4;border-radius:15px;background:linear-gradient(110deg,#fbf9ff,#fff);box-shadow:0 3px 12px #54318b04;transition:background .15s,border-color .15s,box-shadow .15s;color:#463356;min-height:78px}
.source .ota-rule-library-entry:hover{border-color:#cbb6e9;background:#f7f3fe;box-shadow:0 4px 16px #6d43930b}
.source .ota-rule-library-entry:focus-visible{outline:2px solid #9871cc;outline-offset:3px}
.ota-rule-entry-icon{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#eee7fa;color:#7b51b8}
.ota-rule-entry-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.source .ota-rule-entry-copy strong{font-size:14px;font-weight:600;line-height:1.5;color:#473452}
.source .ota-rule-entry-copy small{font-size:11px;color:#9c8bab;line-height:1.6;margin:0}
.ota-rule-entry-arrow{flex:0 0 18px;color:#a390b5}
@media(max-width:600px){.source .ota-rule-library-entry{padding:14px;gap:11px;min-height:74px}}
@media(prefers-reduced-motion:reduce){.source .ota-rule-library-entry{transition:none}}
/* Equal-sized editor action modules. */
#editor .ota-tool-groups{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;grid-auto-rows:auto}
#editor .ota-tool-group{height:auto;min-height:0;box-sizing:border-box}
@media(max-width:650px){#editor .ota-tool-groups{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto}}

#editor .ota-tool-group:not([open])>.ota-tool-heading{padding:12px 16px}

#editor .editor-body>.ota-tool-groups{margin-block-start:16px}
#editor .ota-tool-groups [hidden]{display:none!important}
#editor .ota-tool-groups:has(>.ota-tool-group[open]:not([hidden]) + .ota-tool-group[open]:not([hidden])){
 align-items:stretch;grid-auto-rows:1fr
}

#editor .editor-body>.ota-tool-groups{grid-template-columns:minmax(0,1fr)}
#editor .ota-tool-groups:not(:has(>.ota-tool-group:not([hidden]))){display:none}
#editor .ota-tool-group:not([open]):not(.ota-edit-ai){padding:0}
#editor .ota-tool-group.ota-edit-ai{
 display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
 gap:8px 20px;padding:12px 14px;border-radius:12px;background:#faf8fc
}
#editor .ota-edit-ai .ota-tool-row{flex:1 1 380px;max-width:460px}
#editor .ota-edit-ai #ota-model-charge{margin:0;min-height:0;font-size:12px}
@media(max-width:650px){
 #editor .ota-tool-group.ota-edit-ai{padding:12px;gap:8px}
 #editor .ota-edit-ai .ota-tool-row{max-width:none}
}
@media(max-width:350px){
 #editor .ota-edit-ai .ota-tool-row{align-items:stretch;flex-direction:column}
}

#editor #fields>label:has(input[data-field="title"]){grid-column:1/-1;min-width:0}

#editor #fields textarea:is([data-field="intro"],[data-field="highlights"],[data-field="itinerary"]){
 --editor-text-rows:5;
 box-sizing:border-box;line-height:1.5;padding-block:10px;
 height:calc(var(--editor-text-rows) * 1.5em + 22px)
}
#editor #fields textarea[data-field="itinerary"]{--editor-text-rows:10}



#editor .ota-edit-rules:not(:has(>.ota-tool-row:not([hidden]))){display:none}
#editor .ota-edit-rules #standard-rule-open{background:#f0e9fd;color:#7446bd}

#editor .ota-tool-group.ota-edit-ai{min-block-size:76px}
#editor .ota-edit-ai .ota-tool-row{align-items:center}
#editor .ota-edit-ai .ota-tool-row>button{box-sizing:border-box;flex:0 0 116px;width:116px;margin:0}
#editor .ota-edit-ai .ota-tool-row>label.ota-model-picker{margin:0;padding:0}
#editor .ota-edit-ai .ota-tool-row select{box-sizing:border-box;margin:0}
@media(max-width:650px){
 #editor .ota-tool-group.ota-edit-ai:not([hidden]):not(.ota-edit-rules:empty){
  align-content:start;min-block-size:92px
 }
}
@media(max-width:350px){
 #editor .ota-tool-group.ota-edit-ai:not([hidden]):not(.ota-edit-rules:empty){min-block-size:138px}
 #editor .ota-edit-ai .ota-tool-row{align-items:stretch}
 #editor .ota-edit-ai .ota-tool-row>button{width:100%;flex:0 0 42px}
 #editor .ota-edit-ai .ota-tool-row>select{flex:0 0 42px}
}

#editor .ota-edit-actions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px
}
#editor .ota-edit-actions>.ota-edit-ai{
 flex-direction:column;align-items:stretch;justify-content:flex-start;
 min-inline-size:0;gap:8px;margin:0
}
#editor .ota-edit-actions .ota-tool-row{flex:none;max-width:none}
#editor .ota-edit-actions #ota-model-charge{align-self:stretch;text-align:start}
#editor .ota-edit-actions:not(:has(>.ota-edit-rules>.ota-tool-row:not([hidden]))){grid-template-columns:minmax(0,1fr)}
@media(max-width:650px){
 #editor .ota-edit-actions{grid-template-columns:minmax(0,1fr)}
}

@media(max-width:760px){
 #editor .ota-edit-actions{grid-template-columns:minmax(0,1fr)}
 #editor .ota-edit-actions .ota-tool-row:not([hidden]){
  display:grid;grid-template-columns:116px minmax(0,1fr);width:100%
 }
 #editor .ota-edit-actions .ota-tool-row>label.ota-model-picker,
 #editor .ota-edit-actions select:is(#model,#editor-standard-profile,#editor-platform-profile){
  display:block;box-sizing:border-box;width:100%!important;
  min-width:0!important;max-width:100%!important;justify-self:stretch;margin:0
 }
}
@media(max-width:350px){
 #editor .ota-edit-actions .ota-tool-row:not([hidden]){grid-template-columns:minmax(0,1fr)}
}

.ota-parse-dots{display:inline-block;animation:ota-parse-dots 1.4s steps(1,end) infinite}
@keyframes ota-parse-dots{
  0%{clip-path:inset(0 100% 0 0)}
  25%{clip-path:inset(0 66% 0 0)}
  50%{clip-path:inset(0 33% 0 0)}
  75%,100%{clip-path:inset(0)}
}
@media(prefers-reduced-motion:reduce){.ota-parse-dots{animation:none}}
