/* v22.9: "תהליך עבודה" panel (public/js/workpanel.js) */
.chat { position: relative; }
#wpToggle { position: relative; }
#wpToggle.on { color: #c4b5fd; background: var(--accent-soft, rgba(124, 92, 255, .16)); }
.wp-badge { position: absolute; top: -3px; left: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent, #7c5cff); color: #fff; font-size: 10px; line-height: 16px; font-weight: 700; text-align: center; }
.wp-panel { position: absolute; top: 58px; left: 14px; z-index: 30; width: 300px; max-height: calc(100% - 180px); overflow: auto;
  background: var(--panel-solid, #0b0f1d); border: 1px solid rgba(140, 112, 255, .28); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45); padding: 14px 16px 10px; color: var(--text, #e8ebf7); }
.wp-panel[hidden] { display: none; }
.wp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.wp-head h3 { margin: 0; font-size: 15px; font-weight: 700; background: linear-gradient(90deg, var(--accent, #7c5cff), var(--accent-3, #22c7ee)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wp-sec { padding: 10px 0; border-top: 1px solid rgba(148, 163, 184, .12); }
.wp-sec:first-of-type { border-top: 0; }
.wp-sec h4 { margin: 0 0 8px; font-size: 12px; font-weight: 650; color: var(--muted, #8a92ad); letter-spacing: .02em; }
.wp-steps { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; }
.wp-step { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 5px 0 9px; }
.wp-step::before { content: ''; position: absolute; right: 6px; top: 20px; bottom: -2px; width: 2px; background: rgba(148, 163, 184, .18); }
.wp-step:last-child::before { display: none; }
.wp-dot { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 2px solid rgba(148, 163, 184, .45); box-sizing: border-box; }
.wp-step.ok .wp-dot { border-color: #34d399; background: #34d399 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='%230b0f1d' stroke-width='1.6'/%3E%3C/svg%3E") center/9px no-repeat; }
.wp-step.bad .wp-dot { border-color: #f87171; background: #f87171; }
.wp-step.run .wp-dot { border-color: var(--accent, #7c5cff); border-top-color: transparent; animation: wpspin .8s linear infinite; }
@keyframes wpspin { to { transform: rotate(360deg); } }
.wp-txt { flex: 1; min-width: 0; }
.wp-txt b { display: block; font-size: 13px; font-weight: 600; }
.wp-txt small { display: block; color: var(--muted, #8a92ad); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: right; }
.wp-st { flex: none; font-size: 11px; color: var(--muted, #8a92ad); margin-top: 2px; }
.wp-step.bad .wp-st { color: #fca5a5; }
.wp-empty { margin: 0; font-size: 12.5px; color: var(--muted, #8a92ad); line-height: 1.6; }
.wp-outs, .wp-used { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wp-outs li { font-size: 12.5px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(148, 163, 184, .12); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.wp-outs a { color: #a5b4fc; text-decoration: none; }
.wp-used li { display: flex; justify-content: space-between; font-size: 12.5px; }
.wp-used em { font-style: normal; color: var(--muted, #8a92ad); }
.wp-none { color: var(--muted, #8a92ad); font-size: 12px; background: none !important; border: 0 !important; padding: 0 !important; }
@media (max-width: 760px) { .wp-panel { left: 8px; right: 8px; width: auto; top: 54px; } }
