/* Preserve the existing sheet geometry; history lives in a native modal. */
#productModule input.product-edit-control:focus, #productModule .product-parameter-fields input:focus {outline:2px solid #168b78;outline-offset:-2px;background:#f0fdfa;}
#productModule input[data-editing="true"] {outline-color:#2563eb;background:#fff;cursor:text;}
#productModule input[readonly] {cursor:cell;}
#productModule .product-image-cell {border:0;background:transparent;width:100%;height:36px;border-radius:0;cursor:cell;}
#productModule .product-image-cell img {max-width:100%;max-height:36px;object-fit:contain;border-radius:0;}
#productModule .product-image-clear {opacity:0;}
#productModule .product-image-cell:hover .product-image-clear,#productModule .product-image-cell:focus-within .product-image-clear {opacity:1;}
#productSaveStatus[data-error="true"] {color:#a32c16;}
.product-history-dialog {width:min(1120px,94vw);max-height:88dvh;padding:20px;border:1px solid #cbd5e1;border-radius:12px;color:#183149;background:#f8fafc;box-shadow:0 16px 70px #18314940;}
.product-history-dialog::backdrop {background:#18314955;}
.product-history-dialog header {display:flex;justify-content:space-between;align-items:start;gap:16px;}
.product-history-dialog h2 {margin:0;font-size:20px;}
.product-history-dialog p {line-height:1.6;}
.product-history-dialog button {min-height:32px;padding:6px 12px;cursor:pointer;border:1px solid #cbd5e1;background:white;color:#183149;border-radius:5px;}
.product-history-dialog button:focus-visible {outline:2px solid #168b78;outline-offset:2px;}
.product-history-dialog button:disabled {opacity:.45;cursor:wait;}
.product-history-dialog button.primary {color:white;background:#1665d8;}
.product-history-tools {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;}
#productHistoryError {color:#a32c16;min-height:24px;}
.product-history-columns {display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;}
.product-history-columns>aside,.product-history-columns>section {max-height:60dvh;overflow:auto;}
.product-history-dialog button.product-version-entry {display:block;width:100%;height:auto!important;min-height:92px;margin-bottom:8px;padding:10px 12px;text-align:left;white-space:pre-wrap;line-height:1.7;font-size:13px;overflow-wrap:anywhere;}
.product-version-entry:hover {background:#e9f8f4;}
.product-history-preview-frame {overflow:auto;margin:12px 0;max-height:260px;}
.product-history-preview {border-collapse:collapse;width:100%;background:white;}
.product-history-preview th,.product-history-preview td {border:1px solid #d7e1e8;padding:6px;text-align:left;}
.product-history-preview img {width:48px;height:40px;object-fit:contain;}
#productHistoryDetail li {padding:6px 0;overflow-wrap:anywhere;}
@media(max-width:720px){.product-history-columns{grid-template-columns:1fr}.product-history-columns>aside{max-height:25dvh}.product-history-columns>section{max-height:45dvh}.product-history-dialog{padding:12px}.product-history-dialog button{min-height:44px;}}

.assistant-pending-row td{padding:18px!important;background:linear-gradient(100deg,#e1edff,#f2e2ff,#d8f7ee,#fff0cd,#e1edff);background-size:300% 100%;animation:assistant-product-rainbow 2.5s linear infinite;color:#334c76;font-weight:600;pointer-events:none}.assistant-product-created{outline:2px solid #7899ee;outline-offset:-2px}@keyframes assistant-product-rainbow{to{background-position:150% 0}}@media(prefers-reduced-motion:reduce){.assistant-pending-row td{animation:none}}
