/* BIZ-040 additions, scoped to the local-worker panel. */
.local-workers-panel { margin-bottom: 24px; padding: 24px; }
.lw-heading { flex-wrap: wrap; gap: 14px; }
.lw-heading h2 { margin: 4px 0; }
.lw-note, .lw-message { color: var(--muted); font-size: 14px; line-height: 1.65; }
.lw-message { min-height: 1.5em; }
.lw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lw-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.lw-card-heading { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.lw-card h3 { margin: 0 0 5px; font-size: 18px; overflow-wrap: anywhere; }
.lw-card small { color: var(--muted); overflow-wrap: anywhere; }
.lw-state { padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; color: var(--teal); }
.lw-state.is-stale { color: var(--muted); }
.lw-facts { display: grid; gap: 12px; margin: 20px 0; }
.lw-facts div { display: grid; gap: 4px; }
.lw-facts dt { font-size: 12px; color: var(--muted); }
.lw-facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.lw-pilot { font-size: 11px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; }
.lw-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lw-actions .button { min-height: 40px; white-space: normal; }
.lw-tasks { padding: 0; list-style: none; margin: 18px 0 0; }
.lw-tasks li { padding: 13px 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 13px; overflow-wrap: anywhere; }
.lw-tasks strong, .lw-tasks span { display: block; line-height: 1.55; }
.lw-tasks span { color: var(--muted); }
.lw-cancellation { line-height: 1.55; border-left: 3px solid var(--line); padding-left: 10px; margin: 7px 0 0; }
.lw-empty { line-height: 1.65; }
.lw-modal { width: min(720px, calc(100% - 24px)); }
.lw-modal .modal-head .icon-button { width: auto; padding: 8px 12px; font-size: 13px; flex-shrink: 0; }
.lw-form { display: grid; gap: 16px; padding: 0 !important; }
.lw-form .button { justify-self: start; }
.lw-form textarea { resize: vertical; }
.lw-dialog-error { color: #a44031; line-height: 1.6; }
.lw-result { padding: 16px; max-height: 55vh; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
@media (max-width: 1100px) { .lw-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .local-workers-panel { padding: 16px; }
  .lw-card { padding: 14px; }
  .lw-heading .lw-actions { width: 100%; }
  .lw-modal .modal-head { align-items: flex-start; }
}
