* { box-sizing: border-box; }
body.page { font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; margin: 0; background: #0f1115; color: #e7e9ee; }
header { display:flex; justify-content:space-between; align-items:center; padding: 14px 20px; background:#171a21; border-bottom:1px solid #232733; }
header h1 { margin:0; font-size:18px; }
header nav a { color:#9ec1ff; margin-left:14px; text-decoration:none; }
.bar { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:12px 20px; background:#13161d; border-bottom:1px solid #232733; }
.stats { display:flex; flex-wrap:wrap; gap:10px; align-items:center; font-size:13px; }
.stats .pill { background:#1f2533; padding:4px 10px; border-radius:999px; font-size:12px; }
.pill.p-magento1 { background:#3b2a17; color:#ffb27a; }
.pill.p-magento2 { background:#3a1d1d; color:#ff9090; }
.pill.p-prestashop { background:#1f2a3a; color:#9ec1ff; }
.pill.p-other, .pill.p-unknown, .pill.p-error { background:#222; color:#bbb; }
.actions button, .filters button { background:#2a73ff; color:#fff; border:0; border-radius:6px; padding:8px 12px; cursor:pointer; font-size:13px; }
.actions button:disabled { background:#444; cursor:not-allowed; }
.filters { display:flex; gap:8px; align-items:center; padding:10px 20px; background:#13161d; border-bottom:1px solid #232733; flex-wrap:wrap; }
.filters select, .filters input { background:#1c2029; color:#e7e9ee; border:1px solid #2c3140; border-radius:6px; padding:6px 8px; }
.filters .sep { width:1px; height:22px; background:#2c3140; margin:0 4px; display:inline-block; }
.filters button[type="button"] { background:#262b39; border:1px solid #353b4d; }
.log { padding:6px 20px; font-family: ui-monospace, Menlo, monospace; font-size:12px; color:#9ec1ff; max-height:140px; overflow:auto; }
.grid { width:100%; border-collapse:collapse; font-size:13px; }
.grid th, .grid td { padding:8px 10px; border-bottom:1px solid #232733; vertical-align:top; }
.grid th { text-align:left; background:#171a21; position:sticky; top:0; }
.grid tr.arch { opacity:.45; }
.grid tr.p-magento1   td:nth-child(4) { color:#ffb27a; }
.grid tr.p-magento2   td:nth-child(4) { color:#ff9090; }
.grid tr.p-prestashop td:nth-child(4) { color:#9ec1ff; }
.muted { color:#7c8190; }
.small { font-size:11px; }
.cell-actions button { background:#262b39; color:#e7e9ee; border:1px solid #353b4d; border-radius:5px; padding:4px 7px; margin:1px; cursor:pointer; font-size:12px; }
.cell-actions button:hover { background:#2f3547; }
.cell-actions button.btn-delete:hover { background:#5a2424; border-color:#7a3434; }
.cell-platform { background:#1c2029; color:#e7e9ee; border:1px solid #2c3140; border-radius:5px; padding:3px 6px; }
.card { background:#171a21; padding:16px; border-radius:8px; max-width:520px; margin:20px; }
.msg { background:#1d3a23; color:#a6e0b1; padding:10px 14px; margin:14px 20px; border-radius:6px; }
a { color:#9ec1ff; }
.bulk-bar { display:none; gap:10px; align-items:center; padding:10px 20px; background:#1a2540; border-bottom:1px solid #2a3a5a; flex-wrap:wrap; }
.bulk-bar.active { display:flex; }
.bulk-bar button { background:#2a73ff; color:#fff; border:0; border-radius:6px; padding:6px 12px; cursor:pointer; font-size:13px; }
.bulk-bar button.danger { background:#a02828; }
.bulk-bar button.danger:hover { background:#c23535; }
tr.selected { background:#1a2540 !important; }

.modal { position:fixed; inset:0; background:rgba(0,0,0,.7); display:flex; align-items:center; justify-content:center; z-index:1000; }
.modal[hidden] { display:none; }
.modal-box { background:#171a21; border:1px solid #2c3140; border-radius:8px; padding:20px; width:min(800px, 92vw); max-height:90vh; overflow:auto; }
.modal-box .row { display:flex; gap:12px; align-items:center; margin-bottom:8px; }
.modal-box input, .modal-box textarea, .modal-box select { background:#1c2029; color:#e7e9ee; border:1px solid #2c3140; border-radius:6px; padding:6px 8px; }
.modal-actions { display:flex; gap:10px; margin-top:8px; }
.modal-actions button { background:#2a73ff; color:#fff; border:0; border-radius:6px; padding:8px 14px; cursor:pointer; }
.modal-actions button.secondary { background:#262b39; border:1px solid #353b4d; }
.preview { background:#0d1015; border:1px dashed #2c3140; padding:10px; margin:6px 0; border-radius:6px; max-height:160px; overflow:auto; font-size:12px; }
