.workflow-css-ready{--workflow-ready:2;display:none!important}
.workflow-enabled #sent-section-title,.workflow-enabled #sent-list{display:none!important}
.workflow-enabled[data-workflow-role=viewer] #btn-new-alarm{display:none!important}
#workflow-root{margin-bottom:30px;text-align:left}#workflow-root h2{font-size:24px;margin:0 0 8px}#workflow-root h3{text-align:left}#workflow-root p{margin:8px 0;color:var(--text-secondary);line-height:1.7}
.workflow-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.workflow-head>div{min-width:0;flex:1}.workflow-head .btn{white-space:nowrap;min-height:44px;flex:0 0 auto;width:auto}
.workflow-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.workflow-tabs .btn{min-height:44px}.workflow-tabs [aria-selected=true]{background:var(--accent);color:var(--clarity-on-accent)}
.workflow-task{padding:20px 22px;background:var(--bg-card);border:1px solid var(--border);border-radius:16px;margin-bottom:14px}.workflow-task-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.workflow-task-head>div{min-width:0}.workflow-task h3{margin:5px 0 10px;font-size:19px;line-height:1.5;overflow-wrap:break-word}.workflow-number{font-size:13px;color:var(--text-secondary)}.workflow-description{font-size:16px;white-space:pre-wrap;overflow-wrap:break-word}.workflow-facts{display:flex;gap:10px 24px;flex-wrap:wrap;font-size:14px;line-height:1.6;color:var(--text-secondary)}.workflow-task .task-badge{flex:none;min-width:65px;text-align:center;white-space:nowrap}
.workflow-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.workflow-actions .btn{min-height:44px;font-size:14px;white-space:nowrap}.workflow-empty{padding:24px;border:1px dashed var(--border);border-radius:14px;color:var(--text-secondary);line-height:1.7}.workflow-warning{padding:10px 14px;border-left:3px solid var(--warning);background:var(--clarity-warning-bg);border-radius:0 9px 9px 0;font-size:14px}.workflow-note{font-size:14px}
.workflow-actions .btn{width:auto}:root[data-mirror="on"] .workflow-task{background:linear-gradient(125deg,var(--mirror-glint),transparent 35%),var(--mirror-surface);border-color:var(--mirror-line);box-shadow:var(--clarity-hi),var(--shadow)}
#workflow-dialog .workflow-modal{width:620px;max-width:calc(100vw - 32px);max-height:88dvh;overflow:auto;padding:24px}#workflow-dialog .form-group{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;font-size:14px;line-height:1.6}#workflow-dialog input,#workflow-dialog select,#workflow-dialog textarea{font-family:inherit;font-size:16px;max-width:100%;width:100%;padding:10px 12px;min-height:44px;border:1px solid var(--border);border-radius:9px;background:var(--bg-input);color:var(--text-primary)}#workflow-dialog .form-actions{display:flex;gap:10px;justify-content:flex-end;position:sticky;bottom:-24px;background:var(--bg-card);padding:12px 0}#workflow-dialog .form-actions button{min-height:44px;white-space:nowrap}#workflow-error{font-size:14px;color:var(--danger);line-height:1.6;white-space:pre-wrap}.workflow-timeline>div{border-left:2px solid var(--accent);padding:4px 0 16px 16px;margin-bottom:10px}.workflow-timeline b{display:block;font-size:16px}.workflow-timeline span,.workflow-timeline small{font-size:13px;color:var(--text-secondary)}.workflow-timeline p{font-size:15px;white-space:pre-wrap;overflow-wrap:break-word}#wf-evidence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}#wf-evidence figure{margin:0;min-width:0}#wf-evidence img{width:100%;max-height:180px;object-fit:contain;background:var(--bg-input);border-radius:10px}#wf-evidence figcaption{font-size:13px;overflow-wrap:anywhere;padding-top:5px}
@media(max-width:768px){.workflow-head{align-items:flex-start;gap:12px}#workflow-root h2{font-size:21px}.workflow-head p{font-size:14px}.workflow-tabs{gap:6px}.workflow-tabs .btn{font-size:13px;padding:8px 10px}.workflow-task{padding:18px 16px}.workflow-task h3{font-size:18px}.workflow-facts{display:grid;grid-template-columns:1fr;gap:6px}.workflow-task-head{gap:10px}#workflow-dialog .workflow-modal{padding:20px}#workflow-dialog .form-actions{bottom:-20px}#wf-evidence{grid-template-columns:repeat(2,minmax(0,1fr))}}
