.auto-tabs{display:flex;gap:8px;margin:0 0 22px}.auto-tabs .selected{background:var(--blue-soft);color:var(--blue);border-color:var(--blue)}.auto-notice{display:flex;gap:12px;color:var(--muted);font-size:12px;line-height:1.8;padding:16px 20px;background:var(--surface);border:1px solid var(--border);border-radius:12px;margin-bottom:24px}.auto-notice svg{width:20px;flex-shrink:0;margin-top:3px}.auto-notice p{margin:0}.auto-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}.auto-stats>div,.auto-stats>a{padding:20px 24px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.auto-stats strong{display:block;font-size:28px;letter-spacing:-1px}.auto-stats span{display:block;color:var(--muted);font-size:12px;margin-top:6px}.auto-rule{display:flex;justify-content:space-between;gap:24px;padding:26px;border-bottom:1px solid var(--border)}.auto-rule-main{min-width:0}.auto-rule h2,.auto-history h2{font-size:17px;margin:14px 0 8px;overflow-wrap:anywhere}.auto-rule p,.auto-history p{font-size:12px;color:var(--muted);line-height:1.8}.auto-rule small,.auto-history small{font-size:10px;color:var(--muted)}.auto-rule-template{border-left:2px solid var(--blue);padding-left:14px;margin:16px 0;display:flex;flex-direction:column;gap:7px}.auto-rule-template strong{font-size:13px;overflow-wrap:anywhere}.auto-rule-template span{font-size:11px;color:var(--muted)}.auto-rule-actions{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;align-content:start}.auto-rule-actions .btn{font-size:11px}.auto-footnote{color:var(--muted);font-size:11px;line-height:1.8}.auto-form p,.auto-preview p{color:var(--muted);font-size:11px;line-height:1.8}.auto-form .auto-checkbox{display:flex;align-items:center;gap:10px;font-size:12px}.auto-checkbox input{width:17px;height:17px;flex-shrink:0}.auto-history>article{padding:24px;border-bottom:1px solid var(--border)}.auto-history-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.auto-history time{font-size:10px;color:var(--muted)}.auto-task-links{display:flex;flex-direction:column;gap:8px;margin:12px 0}.auto-task-links a{display:flex;align-items:center;gap:8px;color:var(--blue);font-size:12px;overflow-wrap:anywhere}.auto-task-links svg{width:14px}.auto-preview ul{padding:0;list-style:none;max-height:300px;overflow:auto}.auto-preview li{border-top:1px solid var(--border);padding:12px 0;display:flex;flex-direction:column;gap:7px;font-size:12px}.auto-preview li span{font-size:10px;color:var(--muted)}.task-auto-origin{padding:14px 20px;margin-bottom:18px;border:1px solid var(--border);border-radius:10px;color:var(--muted);font-size:12px;background:var(--surface);overflow-wrap:anywhere}.task-auto-origin strong{color:var(--text)}.task-escalated{font-size:10px;color:var(--amber);display:block;margin-top:6px}
@media(max-width:700px){.auto-stats{gap:7px}.auto-stats>div,.auto-stats>a{padding:14px}.auto-stats strong{font-size:22px}.auto-stats span{font-size:10px;line-height:1.7}.auto-rule{padding:20px;flex-direction:column;gap:8px}.auto-rule-actions{justify-content:flex-end}.auto-history-top{align-items:flex-start;flex-wrap:wrap}.auto-history>article{padding:18px}.auto-form .form-grid{grid-template-columns:1fr}.auto-tabs .btn{font-size:12px}.auto-notice{padding:14px}}
.auto-form [hidden]{display:none!important}.auto-form .auto-checkbox{flex-direction:row;justify-content:flex-start;line-height:1.7}.auto-form>#auto-before,.auto-form>#auto-recurring,.auto-form>#auto-person,.auto-form>#auto-role{margin-top:19px}.auto-form .form-section-title{margin:26px 0 16px}#dialog:has(#automation-form){max-width:660px;overflow:hidden}#automation-form{display:flex;flex-direction:column;max-height:calc(90dvh - 126px)}#automation-form .dialog-body{overflow-y:auto;min-height:0}#automation-form .dialog-footer{flex-shrink:0}
