/* Library layout: neutral surfaces, compact controls and explicit hierarchy. */
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView { gap:14px!important;padding:16px!important;grid-template-columns:minmax(0,1fr) 320px!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-admin-main {
    grid-template-areas:'title' 'toolbar' 'metrics' 'filter' 'list'!important;
    grid-template-rows:auto auto 76px auto minmax(0,1fr)!important;
    gap:12px!important;
}
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-filter-status { grid-area:filter;margin:0!important;line-height:18px;color:var(--muted); }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-filter-bar { grid-area:filter;display:flex;align-items:center;gap:10px;flex-wrap:wrap; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-filter-bar label { font-size:12px;color:var(--muted); }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView #workflowOriginFilter { width:auto;min-width:165px;min-height:34px;padding:6px 10px;border:1px solid var(--stroke);background:var(--panel);color:var(--text);font:inherit;font-size:12px; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-filter-bar .workflow-filter-status { margin-left:auto!important;font-size:12px; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-dashboard-title { min-height:36px!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-eyebrow { display:none; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-dashboard-title h2 { font-size:22px!important;font-weight:600; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-admin-toolbar { padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;gap:8px!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-metrics { gap:8px!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-metrics .metric-card {
    display:grid!important;grid-template-columns:32px 1fr!important;grid-template-rows:26px 18px!important;
    column-gap:10px!important;row-gap:0!important;align-content:center!important;
    height:76px!important;min-height:76px!important;padding:12px!important;margin:0!important;
    border:1px solid var(--stroke)!important;border-radius:4px!important;background:var(--panel)!important;
    color:var(--text)!important;box-shadow:none!important;overflow:hidden;
}
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-metrics .metric-card > i { grid-column:1!important;grid-row:1 / 3!important;align-self:center!important;position:static!important;width:32px!important;height:32px!important;min-height:0!important;margin:0!important;padding:0!important;background:var(--card)!important;color:var(--muted)!important;border:0!important;font-size:14px!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-metrics .metric-card > span { grid-column:2!important;grid-row:1!important;position:static!important;font-size:23px!important;line-height:26px!important;font-weight:600!important;margin:0!important;color:var(--text)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-metrics .metric-card > small { grid-column:2!important;grid-row:2!important;position:static!important;font-size:12px!important;line-height:18px!important;text-transform:none!important;letter-spacing:0!important;margin:0!important;color:var(--muted)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-metrics .metric-card[aria-pressed=true] { border-color:var(--link)!important;background:color-mix(in srgb,var(--link) 6%,var(--panel))!important;box-shadow:inset 0 -2px var(--link)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-list-shell { border:1px solid var(--stroke)!important;border-radius:4px!important;box-shadow:none!important;background:var(--panel)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-list-head,body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-list-row { grid-template-columns:minmax(240px,1.7fr) minmax(150px,1fr) 100px 94px 128px 144px!important;gap:12px!important;padding:12px!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-list-head { background:var(--card)!important;color:var(--muted)!important;font-size:11px!important;letter-spacing:.025em!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-list-row { min-height:72px!important;border-left:0!important;border-bottom:1px solid var(--stroke)!important;background:var(--panel)!important;color:var(--text)!important;opacity:1!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-list-row:hover { background:var(--card)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-list-row.selected { background:color-mix(in srgb,var(--link) 7%,var(--panel))!important;box-shadow:inset 3px 0 var(--link)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-list-name strong { font-size:13px!important;font-weight:600!important;color:var(--text)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-list-name small { font-size:11px!important;line-height:1.5!important;color:var(--muted)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .btn,body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .wf-status-toggle { background:var(--panel)!important;border:1px solid var(--stroke)!important;border-radius:3px!important;color:var(--text)!important;box-shadow:none!important;min-height:34px!important;filter:none!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .btn:hover,body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .wf-status-toggle:hover { background:var(--card)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .btn.primary { background:color-mix(in srgb,var(--link) 10%,var(--panel))!important;border-color:color-mix(in srgb,var(--link) 40%,var(--stroke))!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .btn.danger { color:var(--bad)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .btn i { color:inherit!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .wf-switch-label { background:transparent!important;color:var(--text)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .wf-switch-track { background:var(--card)!important;border-color:var(--stroke)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .wf-switch-thumb { background:var(--muted)!important;box-shadow:none!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .is-active .wf-switch-thumb { background:var(--link)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-admin-detail { padding:14px!important;border:1px solid var(--stroke)!important;border-radius:4px!important;background:var(--panel)!important;box-shadow:none!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-side-tabs { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-side-tab { white-space:normal!important;min-height:34px!important;background:var(--panel)!important;color:var(--muted)!important;border:1px solid var(--stroke)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-side-tab.active { color:var(--text)!important;border-bottom:2px solid var(--link)!important;background:var(--card)!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView #workflowDetailTitle { font-size:17px!important;line-height:1.4!important;margin:18px 0 12px!important;font-weight:600!important; }
.workflow-detail-description { margin:12px 0;color:var(--muted);font-size:12px;line-height:1.65;overflow-wrap:anywhere; }
.workflow-detail-facts { margin:16px 0; }
.workflow-detail-facts > div { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--stroke); }
.workflow-detail-facts dt { color:var(--muted);font-size:12px; }
.workflow-detail-facts dd { margin:0;font-size:12px;text-align:right; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-detail-actions { gap:8px!important;padding-top:12px;border-top:1px solid var(--stroke); }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView #btnOpenSelectedWorkflow { grid-column:1 / -1;grid-row:1; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView #btnDeleteSelectedWorkflow { background:transparent!important;margin-top:8px; }
@media(max-width:1100px) {
    body:has(#workflowAdminView:not(.hidden)) #workflowAdminView { grid-template-columns:minmax(0,1fr)!important;overflow:auto!important; }
    body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-admin-main { min-height:650px!important;grid-template-rows:auto auto 76px auto minmax(300px,1fr)!important; }
    body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-admin-detail { min-height:0!important; }
}
@media(max-width:600px) {
    body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-admin-main { height:auto!important;grid-template-rows:auto auto auto auto minmax(300px,1fr)!important; }
    body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-metrics { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}


body:has(#workflowAdminView:not(.hidden)) #workflowAdminView button.btn { background-color:var(--panel)!important;background-image:none!important;transition:none!important;animation:none!important;color:var(--text)!important; }

body #workflowAdminView .workflow-pro-delete {color:var(--bad)!important;}
