:root{color:#18221f;background:#f4f5f2;font-family:Segoe UI,Tahoma,Arial,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input,a{font:inherit}button,.download-link{color:#fff;cursor:pointer;white-space:nowrap;background:#123f34;border:1px solid #123f34;border-radius:6px;justify-content:center;align-items:center;gap:8px;min-height:38px;padding:8px 14px;text-decoration:none;display:inline-flex}button:hover,.download-link:hover{background:#0c3128;border-color:#0c3128}button:disabled{cursor:not-allowed;opacity:.55}code{direction:ltr;background:#eef1ec;border:1px solid #dce2da;border-radius:5px;padding:4px 7px;font-family:Consolas,Courier New,monospace;font-size:13px;display:inline-flex}.app-shell{direction:rtl;max-width:1480px;min-height:100vh;margin:0 auto;padding:22px 28px 34px}.app-header{background:#fff;border:1px solid #dde2dc;border-radius:8px;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px;padding:16px 18px;display:flex}.brand-block{align-items:center;gap:12px;display:flex}.brand-mark{color:#fff;letter-spacing:0;background:#123f34;border-radius:7px;justify-content:center;align-items:center;width:44px;height:44px;font-weight:800;display:flex}.eyebrow,.panel-kicker{color:#6b746f;margin-bottom:2px;font-size:13px;display:block}h1,h2{color:#101817;margin:0}h1{font-size:24px;font-weight:800}h2{font-size:21px;font-weight:750}.header-status{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.status-chip,.trust-badge{border-radius:6px;align-items:center;gap:8px;min-height:36px;padding:7px 10px;font-size:14px;display:inline-flex}.status-chip.success{color:#15513e;background:#e7f3ec;border:1px solid #b9d8c7}.status-chip.idle{color:#5b6760;background:#f0f1ee;border:1px solid #dbdfd9}.trust-badge{color:#33423b;background:#f8faf7;border:1px solid #dce3da}.command-panel{background:#fff;border:1px solid #dce2db;border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;margin-bottom:18px;padding:18px;display:grid}.panel-copy{min-width:0}.status-line{color:#59645f;align-items:center;gap:8px;min-height:26px;margin-top:9px;display:flex}.upload-box{color:#15201c;cursor:pointer;background:#f9fbf8;border:1px dashed #7f958c;border-radius:8px;grid-template-columns:auto auto;align-items:center;gap:2px 10px;min-width:230px;min-height:68px;padding:13px 16px;display:grid}.upload-box:hover{background:#f2f7f4;border-color:#416b5c}.upload-box svg{grid-row:span 2}.upload-box span{font-weight:750}.upload-box small{color:#717d77;direction:ltr;font-size:12px}.upload-box input{display:none}.work-area{min-width:0}.summary-strip{background:#fff;border:1px solid #dde2dc;border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:12px;margin-bottom:12px;padding:12px;display:grid}.metrics-row{grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px;display:grid}.metric{background:#f9fbf8;border:1px solid #dde2dc;border-radius:7px;min-height:70px;padding:10px 12px}.metric span,.metric strong,.export-actions strong{color:#101817;font-size:24px;line-height:1;display:block}.metric.danger strong{color:#9f332c}.export-actions{white-space:nowrap;border-inline-start:1px solid #e3e8e1;align-items:center;gap:8px;padding-inline-start:12px;display:flex}.toolbar{border:1px solid #dde2dc;background:#fff;border-bottom:0;border-radius:8px 8px 0 0;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.filters,.actions{flex-wrap:wrap;gap:8px;display:flex}.filters button,.ghost-button,.secondary-button{color:#26332f;background:#fff;border-color:#ccd5ce}.filters button:hover,.ghost-button:hover,.secondary-button:hover{background:#f1f4f0;border-color:#aab8af}.filters button.active{color:#123f34;background:#dbece4;border-color:#6a9786}.table-wrap{background:#fff;border:1px solid #dde2dc;border-radius:0 0 8px 8px;max-height:calc(100vh - 345px);overflow:auto}table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:1120px}th:first-child,td:first-child{width:72px}th:nth-child(2),td:nth-child(2){width:auto}th:nth-child(3),td:nth-child(3){width:150px}th:nth-child(4),td:nth-child(4){width:110px}th:nth-child(5),td:nth-child(5){width:130px}th:nth-child(6),td:nth-child(6){width:110px}th,td{text-align:right;vertical-align:middle;border-bottom:1px solid #e7ebe5;padding:11px 12px}th{color:#46524c;z-index:1;background:#f5f7f4;font-size:13px;font-weight:750;position:sticky;top:0}tbody tr:hover{background:#fafbf9}.row-number{background:#eef1ec;border-radius:6px;justify-content:center;align-items:center;min-width:38px;padding:4px 8px;display:inline-flex}.product-name{color:#17211e;max-width:100%;margin-bottom:5px;font-weight:750}.url-text{color:#68736b;text-align:left;text-overflow:ellipsis;white-space:nowrap;direction:ltr;max-width:100%;font-size:12px;overflow:hidden}.thumb,.no-thumb{aspect-ratio:1;object-fit:contain;border:1px solid #d9dfd8;border-radius:6px;width:64px;height:64px}.no-thumb{color:#7a867d;background:#f2f4f1;justify-content:center;align-items:center;display:flex}.pill{border:1px solid #0000;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;display:inline-flex}.pill.unchanged{color:#4e5852;background:#f0f1ee;border-color:#dedfdb}.pill.processing,.pill.pending{color:#705d14;background:#fff5d6;border-color:#ead58d}.pill.preview_ready{color:#145239;background:#e1f3e7;border-color:#acd6bc}.pill.selected_processed,.pill.replaced{color:#164a78;background:#e2f0ff;border-color:#b8d5f5}.pill.error{color:#9f332c;background:#ffe7e4;border-color:#efbeb8}.error-text{color:#9f332c;max-width:240px;margin-top:6px;font-size:12px}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=980px){.app-shell{padding:14px}.app-header,.command-panel,.toolbar{flex-direction:column;align-items:stretch;display:flex}.summary-strip{grid-template-columns:1fr}.metrics-row{grid-template-columns:repeat(2,minmax(0,1fr))}.export-actions{border-inline-start:0;padding-inline-start:0;border-top:1px solid #e3e8e1;flex-wrap:wrap;padding-top:12px}.upload-box{min-width:0}.table-wrap{max-height:none}}@media (width<=560px){.brand-block,.header-status{align-items:stretch}.metrics-row{grid-template-columns:1fr}}
