#content:has([data-auto-tab]) pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;padding:12px;border-radius:8px;background:var(--mist,#f5f3ff)}
#content:has([data-auto-tab]) .row{flex-wrap:wrap;gap:8px}#content:has([data-auto-tab]) .card{min-width:0}#content:has([data-auto-tab]) label.check{display:flex;gap:8px;align-items:center;margin:10px 0}
#content:has([data-auto-tab]) .table-wrap{overflow-x:auto}#content:has([data-auto-tab]) table{width:100%;text-align:left;border-collapse:collapse}#content:has([data-auto-tab]) th,#content:has([data-auto-tab]) td{padding:10px;vertical-align:top;border-bottom:1px solid var(--line,#e4def4)}

/* Keep the automation workspace aligned with the shared cards and form controls. */
#content:has([data-auto-tab]) .auto-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}
#content:has([data-auto-tab]) .auto-toolbar>.row{min-width:0}
#content:has([data-auto-tab]) .auto-workspace{grid-template-columns:minmax(240px,1fr) minmax(0,2fr);align-items:start;gap:24px;margin-top:16px}
#content:has([data-auto-tab]) .card h2{font-size:20px;line-height:28px;margin:0}
#content:has([data-auto-tab]) .card>.row{justify-content:space-between;margin-bottom:16px}
#content:has([data-auto-tab]) .card>h2{margin-bottom:16px}
#content:has([data-auto-tab]) form{display:grid;gap:16px;min-width:0}
#content:has([data-auto-tab]) form .grid2{gap:16px;align-items:start}
#content:has([data-auto-tab]) .field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:14px;line-height:20px}
#content:has([data-auto-tab]) .input{min-width:0;max-width:100%;width:100%;margin:0}
#content:has([data-auto-tab]) textarea.input{min-height:96px;resize:vertical}
#content:has([data-auto-tab]) label.check{align-items:flex-start;margin:0;line-height:20px}
#content:has([data-auto-tab]) label.check input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--primary)}
#content:has([data-auto-tab]) fieldset{display:flex;flex-wrap:wrap;gap:12px 16px;min-width:0;margin:0;padding:12px 16px;border:1px solid var(--line);border-radius:var(--radius-button)}
#content:has([data-auto-tab]) legend{padding:0 6px;font-size:14px}
#content:has([data-auto-tab]) form>p{margin:0}
#content:has([data-auto-tab]) .hint{font-size:13px;line-height:20px;overflow-wrap:anywhere}
#content:has([data-auto-tab]) form>.btn{justify-self:start}
#content:has([data-auto-tab]) form+.row,#content:has([data-auto-tab]) details,#content:has([data-auto-tab]) details+form{margin-top:16px}
#content:has([data-auto-tab]) [data-auto-select]{display:flex;width:100%;justify-content:flex-start;text-align:left;white-space:normal;overflow-wrap:anywhere;margin-top:8px}
#content:has([data-auto-tab]) .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}
#content:has([data-auto-tab]) td{overflow-wrap:anywhere}
@media(max-width:1100px){
 #content:has([data-auto-tab]) .auto-workspace{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
 #content:has([data-auto-tab]) .auto-toolbar{align-items:stretch}
 #content:has([data-auto-tab]) .auto-toolbar>.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 #content:has([data-auto-tab]) .auto-toolbar>.btn{width:100%}
 #content:has([data-auto-tab]) .grid2{grid-template-columns:minmax(0,1fr);gap:16px}
 #content:has([data-auto-tab]) form>.btn{width:100%;justify-self:stretch}
 #content:has([data-auto-tab]) .card{padding:16px}
}
@media(min-width:601px){
 #company-policy-form{grid-template-columns:repeat(2,minmax(0,1fr))}
 #company-policy-form>*{grid-column:1/-1}
 #company-policy-form>.field:has([name="triggerKind"]),#company-policy-form>.field:has([name="event"]){grid-column:auto}
}
