.lw-workbench { min-width: 0; }
.lw-tabs { margin: 24px 0 20px; }
.lw-title { padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.6; text-align: left; }
.lw-title:hover { color: var(--indigo); }
.lw-workbench small, .lw-detail small { display: block; font-size: 14px; color: var(--muted); line-height: 1.7; }
.lw-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lw-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 0 20px 18px; }
.lw-active-batch { display: flex; align-items: center; gap: 10px; padding: 0 20px 14px; color: var(--indigo); font-size: 14px; }
.lw-segments { display: flex; flex-wrap: wrap; gap: 4px; }
.lw-segments button { min-height: 36px; padding: 6px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 14px; }
.lw-segments button.active { color: var(--indigo); border-color: #ddd9fb; background: #f1effe; font-weight: 600; }
.lw-segments button:hover { background: #f5f3fd; }
.lw-search { display: flex; align-items: center; gap: 8px; }
.lw-search input { min-height: 36px; width: 210px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 14px; }
.lw-batch-table .table { min-width: 940px; }
.lw-item-table .table { min-width: 940px; }
.lw-batch-table .table td:first-child, .lw-item-table .table td:first-child { width: 28%; min-width: 230px; max-width: 340px; overflow-wrap: anywhere; }
.lw-item-table .table td:nth-child(3) { min-width: 150px; max-width: 230px; }
.lw-item-table .table td:nth-child(4) { max-width: 250px; overflow-wrap: anywhere; }
.lw-item-table .table td:last-child, .lw-batch-table .table td:last-child, .lw-item-table .table th:last-child, .lw-batch-table .table th:last-child { position: sticky; right: 0; min-width: 145px; border-left: 1px solid var(--line); background: white; z-index: 1; }
.lw-item-table .table th:last-child, .lw-batch-table .table th:last-child { background: #f7f9fc; z-index: 2; }
.lw-item-table .table tr:hover td:last-child, .lw-batch-table .table tr:hover td:last-child { background: #faf9ff; }
.lw-count-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; white-space: nowrap; }
.lw-count-line strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.lw-count-line span { color: var(--muted); font-size: 14px; }
.lw-progress { min-width: 170px; max-width: 220px; }
.lw-progress > div { height: 5px; border-radius: 4px; background: #eceaf5; overflow: hidden; margin-bottom: 9px; }
.lw-progress > div > span { display: block; height: 100%; background: var(--indigo); border-radius: inherit; }
.lw-empty { padding: 0 20px 30px; text-align: center; }
.lw-summary-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.lw-summary-metrics .metric { padding: 15px; }
.lw-summary-metrics .metric strong { font-size: 28px; }
.lw-section { margin-top: 26px; }
.lw-section > h3 { margin-bottom: 16px; font-size: 16px; }
.lw-section-actions { margin: 20px 0; }
.lw-receipt { display: grid; gap: 5px; margin-top: 20px; padding: 18px; border: 1px solid #cfe6dc; border-radius: 9px; background: #f5fbf8; overflow-wrap: anywhere; }
.lw-receipt > span { font-size: 14px; color: var(--muted); }
.lw-receipt > strong { font-size: 18px; color: var(--success); }
.lw-steps { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.lw-steps > li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 14px; padding: 0 0 20px; position: relative; }
.lw-steps > li:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 29px; bottom: 3px; width: 1px; background: var(--line); }
.lw-step-index { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); font-size: 14px; }
.lw-steps .done .lw-step-index { border-color: #d8d1f8; color: var(--indigo); background: #f2efff; }
.lw-steps .failed .lw-step-index { border-color: #e6babe; color: var(--red); background: #fff5f5; }
.lw-steps strong { font-size: 16px; }
.lw-steps p { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.75; }
.lw-change-list { display: grid; gap: 26px; margin-top: 24px; }
.lw-change-list h3 { margin-bottom: 12px; font-size: 16px; }
.lw-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.lw-comparison > div { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfe; }
.lw-comparison > div:last-child { background: #f8f6ff; border-color: #e2ddfa; }
.lw-comparison span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.lw-comparison p { font-size: 16px; line-height: 1.75; }
.lw-event-list { padding: 0 0 0 20px; }
.lw-event-list li { padding: 10px 0; }
.lw-event-list p { font-size: 14px; color: var(--muted); }
.lw-report-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(290px,1fr)); gap: 16px; padding: 0 20px 20px; }
.lw-report-card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.lw-report-card h3 { font-size: 16px; }
.lw-report-card > p { margin: 14px 0; font-size: 14px; color: var(--muted); line-height: 1.75; }
.lw-report-numbers { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lw-report-numbers strong { display: block; color: var(--indigo); font-size: 25px; }
.lw-report-numbers span { font-size: 14px; color: var(--muted); }
.lw-report-section { margin-top: 24px; }
.lw-report-section h3 { font-size: 16px; }
.lw-report-section ul { padding-left: 21px; margin: 12px 0 0; }
.lw-report-section li { margin-bottom: 10px; font-size: 16px; line-height: 1.75; }
.lw-form-section { margin-top: 26px; }
.lw-form-section h3 { margin-bottom: 14px; font-size: 16px; }
.lw-form-section .lw-line > h3 { margin-bottom: 0; }
.lw-form-section textarea { min-height: 130px; }
.lw-source-list { max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; }
.lw-source-list > label { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; }
.lw-source-list > label + label { border-top: 1px solid var(--line); }
.lw-source-list > label:hover { background: #faf9ff; }
.lw-source-list > label:has(input:checked) { background: #f6f3ff; }
.lw-source-list input, .lw-shop-options input { width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--indigo); }
.lw-source-list strong { display: block; font-size: 16px; }
.lw-source-list small { font-size: 14px; color: var(--muted); }
.lw-source-meta { margin-left: auto; flex: 0 0 auto; font-size: 14px; color: var(--muted); }
.lw-shop-options { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; }
.lw-shop-options label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.lw-target { display: grid; gap: 12px; margin-top: 20px; padding: 16px; border-radius: 9px; border: 1px solid #dfd9f7; background: #f8f6ff; }
.lw-target > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lw-target span { font-size: 14px; color: var(--muted); }
.lw-form-footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.lw-sku-editor { display: grid; gap: 14px; margin-top: 16px; }
.lw-sku-row { padding: 16px; border: 1px solid var(--line); border-radius: 9px; }
.lw-sku-row .form-grid { margin-top: 0; }
.lw-new-form .field input, .lw-new-form .field select, .lw-repair-form .field input { min-width: 0; width: 100%; }
@media(max-width:700px) {
  .lw-filters { padding: 0 14px 16px; }
  .lw-search { width: 100%; }
  .lw-search input { flex: 1; width: 100%; }
  .lw-summary-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lw-comparison { grid-template-columns: 1fr; }
  .lw-report-grid { grid-template-columns: 1fr; padding: 0 14px 14px; }
  .lw-source-list > label { flex-wrap: wrap; }
  .lw-source-meta { margin-left: 28px; }
  .lw-target > div:first-child { flex-wrap: wrap; }
}
/* Full-page manual workflow */
.lw-manual-page .panel-body{padding:24px}.lw-manual-steps{display:flex;gap:18px;padding:4px 0 24px;flex-wrap:wrap}.lw-manual-steps span{display:flex;align-items:center;gap:9px;color:var(--muted,#6b6680);font-size:15px}.lw-manual-steps b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#f0edf7}.lw-manual-steps .active{color:var(--primary,#7146cf);font-weight:600}.lw-manual-steps .active b{background:var(--primary,#7146cf);color:#fff}.lw-manual-grid{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px}.lw-manual-products{border-right:1px solid var(--line,#e8e3ef);padding-right:18px}.lw-manual-products button{display:block;width:100%;padding:12px;margin-bottom:9px;text-align:left;background:#fff;border:1px solid var(--line,#e8e3ef);border-radius:10px;cursor:pointer;font:inherit}.lw-manual-products button.active{border-color:var(--primary,#7146cf);background:#f6f1ff}.lw-manual-products strong,.lw-manual-products small{display:block}.lw-manual-products small{font-size:13px;margin-top:6px;color:#756c87}.lw-manual-editor{min-width:0}.lw-manual-editor h3{font-size:17px;margin:24px 0 12px}.lw-manual-editor .table input{width:100%;min-width:100px;padding:9px;border:1px solid #ded7e8;border-radius:7px;font:inherit}.lw-materials{display:flex;gap:12px;margin-bottom:16px;flex-wrap:wrap}.lw-materials img,.lw-material-placeholder{width:112px;height:112px;border:1px solid #e5dfed;border-radius:10px;object-fit:contain}.lw-material-placeholder{display:grid;place-content:center;background:#f6f2fb;color:#776389;text-align:center;font-size:14px}.lw-suggestion{padding:14px 16px;background:#f6f1ff;border:1px solid #e5d9fb;border-radius:10px;margin:14px 0}.lw-suggestion small{display:block;color:#756b87}.lw-manual-footer{display:flex;gap:12px;position:sticky;bottom:0;background:rgba(255,255,255,.96);border-top:1px solid #ece7f3;padding:18px 0;margin-top:18px}.lw-manual-source textarea{min-height:180px}.lw-manual-page input,.lw-manual-page textarea,.lw-manual-page select{font-size:15px}.lw-manual-products button:focus-visible{outline:3px solid #b99ae8;outline-offset:2px}
@media(max-width:1000px){.lw-manual-grid{grid-template-columns:1fr}.lw-manual-products{display:flex;gap:10px;overflow:auto;padding:0 0 12px;border-right:0;border-bottom:1px solid #e8e3ef}.lw-manual-products button{min-width:180px;max-width:220px}.lw-manual-steps{gap:10px}.lw-manual-steps span{font-size:13px}.lw-manual-page .panel-body{padding:16px}}
.lw-pending-line{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.lw-count-line{padding-bottom:4px}.lw-count-line span{display:block}
