/* 워크플로 (/workflows) */
.wf-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.wf-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.wf-back:hover { color: var(--text); }
.wf-back svg.lucide { width: 16px; height: 16px; }
.wf-list { display: flex; flex-direction: column; gap: 10px; }
.wf-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.wf-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.wf-card.is-off { opacity: .65; }
.wf-main { display: flex; flex-direction: column; gap: 2px; }
.wf-name { font-weight: 700; font-size: 16px; }
.wf-name:hover { color: var(--brand); }
.wf-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-2); }
.wf-sub svg.lucide { width: 14px; height: 14px; color: var(--muted); }
.wf-dot { color: var(--muted); }
.wf-link { color: var(--info); font-weight: 600; }
.wf-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.wf-foot { display: flex; align-items: center; gap: 6px; margin-top: 18px; }
.wf-foot svg.lucide { width: 15px; height: 15px; }

.wf-switch { position: relative; display: inline-flex; cursor: pointer; margin-right: 4px; }
.wf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wf-switch span { width: 40px; height: 23px; border-radius: 99px; background: var(--border-2); position: relative; transition: background .2s; }
.wf-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.wf-switch input:checked + span { background: var(--ok); }
.wf-switch input:checked + span::after { transform: translateX(17px); }
.wf-switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-50); }

.wf-form .field { margin-bottom: 18px; }
.wf-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; }
.wf-agent { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; font-size: 14px; background: var(--surface); }
.wf-agent:hover { border-color: var(--border-2); }
.wf-agent input { position: absolute; opacity: 0; pointer-events: none; }
.wf-agent:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand); }
.wf-agent:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--brand-100); }
.wf-agent-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-options { display: flex; flex-wrap: wrap; gap: 10px; }
.wf-opt { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); min-width: 150px; }
.wf-opt select, .wf-opt input[type=text], .wf-opt input[type=number] { height: 38px; }
.wf-sched { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-sched select, .wf-sched input { width: auto; min-width: 130px; }
.wf-next { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--brand-700); background: var(--brand-50); padding: 7px 10px; border-radius: 10px; }
.wf-next svg.lucide { width: 15px; height: 15px; }
.wf-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 18px; cursor: pointer; }
.wf-check input { accent-color: var(--brand); width: 16px; height: 16px; }
.wf-form-actions { display: flex; justify-content: flex-end; gap: 8px; }

.wf-show-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wf-show-head h1 { margin: 0; }
.wf-show-head p { margin: 0; }
.wf-stat { font-size: 18px !important; }
.wf-prompt { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.wf-opts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.wf-runs td { font-size: 13px; }
.wf-result a { color: var(--info); font-weight: 600; }
.wf-error { color: var(--danger); font-size: 12px; margin-top: 2px; max-width: 360px; }

@media (max-width: 860px) {
  .wf-card { flex-wrap: wrap; }
  .wf-actions { width: 100%; justify-content: flex-end; }
  .wf-actions .btn span { display: none; }
}
