/* R6.16.90: product, catalog, assistant and modal experience closure */
.r61690-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:1800;max-width:min(560px,calc(100vw - 32px));padding:10px 16px;border-radius:999px;background:#15233b;color:#fff;font-size:13px;box-shadow:0 14px 40px rgba(16,24,40,.28)}

/* All dense dialogs stay inside the viewport and use available desktop space. */
dialog[class*="r61"],dialog[class*="r616"],.r61689-process-manager,[role="dialog"]{max-height:calc(100dvh - 28px)}
.r61689-process-manager,.r61689-process-manager dialog{width:min(1120px,calc(100vw - 32px));max-width:1120px}
.r61689-process-manager .r61689-process-body,.r61689-process-manager .r61689-process-grid{min-height:0}
.r61690-invalid{border-color:#dc3545!important;box-shadow:0 0 0 3px rgba(220,53,69,.09)!important}.r61690-field-error{display:block;margin-top:5px;color:#b42318;font-size:11px;font-weight:650}

/* Product action popover: no clipped/overflowing explanations. */
.uc-product-menu-popover{width:min(310px,calc(100vw - 24px))!important;max-height:min(520px,calc(100dvh - 24px));overflow:auto!important;overscroll-behavior:contain}
.uc-product-menu a,.uc-product-menu button,.uc-product-menu span{white-space:normal!important;line-height:1.45;word-break:break-word;overflow-wrap:anywhere;min-height:36px!important}
.uc-product-menu-disabled{font-size:11px!important;background:var(--fp-surface-2,#f6f8fb)!important;margin:2px 0;color:var(--fp-muted,#667085)!important}

/* Product bulk handling becomes business language, not an internal data editor. */
.r61-bulk-panel{padding:7px 9px;border:1px solid var(--cui-border-color,#dce2eb);border-radius:12px;background:var(--cui-card-bg,#fff);align-items:flex-end!important;gap:7px!important}
.r61-bulk-panel label>span:first-child{font-weight:700;color:var(--cui-body-color,#1d2939)}
.r61-bulk-panel select,.r61-bulk-panel input{min-width:155px!important;max-width:220px}
.r61-bulk-dialog{width:min(720px,calc(100vw - 28px))!important;max-width:720px!important;max-height:calc(100dvh - 28px);overflow:auto}
.r61690-bulk-dialog-head{margin:-20px -20px 16px;padding:18px 20px 15px;border-bottom:1px solid #e5eaf1;background:#f8faff}.r61690-bulk-dialog-head>span{font-size:11px;color:#5368d5;font-weight:750}.r61690-bulk-dialog-head h3{margin:4px 0 5px;font-size:20px}.r61690-bulk-dialog-head p{margin:0;color:#667085;font-size:12px}
.r61-preview-list div{display:flex!important;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px!important}.r61-preview-list span{color:#667085}.r61-preview-list b{color:#3446d3}.r61690-safe-note{padding:10px 12px;border-radius:10px;background:#f4f7fb;color:#536176!important}

/* Catalog: customer selector scales to hundreds of customers. */
.r61690-customer-picker-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.r61690-customer-picker-field .btn{white-space:nowrap}
.r61690-customer-picker-dialog{border:0;border-radius:18px;padding:0;width:min(940px,calc(100vw - 32px));max-width:940px;max-height:calc(100dvh - 32px);box-shadow:0 30px 90px rgba(16,24,40,.3)}.r61690-customer-picker-dialog::backdrop{background:rgba(15,23,42,.52)}
.r61690-customer-picker-shell{display:grid;grid-template-rows:auto auto minmax(260px,1fr) auto;max-height:calc(100dvh - 32px);min-height:min(720px,calc(100dvh - 32px))}.r61690-customer-picker-shell>header{display:flex;justify-content:space-between;gap:20px;padding:20px 22px 16px;border-bottom:1px solid #e5eaf1}.r61690-customer-picker-shell header span{font-size:11px;color:#596fd7;font-weight:750}.r61690-customer-picker-shell h3{margin:4px 0;font-size:22px}.r61690-customer-picker-shell p{margin:0;color:#667085;font-size:12px}.r61690-customer-picker-tools{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(150px,.7fr) minmax(160px,.8fr);gap:9px;padding:14px 22px;background:#f8faff}.r61690-customer-picker-list{min-height:0;overflow:auto;padding:10px 22px 18px;display:grid;align-content:start;gap:8px}.r61690-customer-row{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;text-align:left;color:inherit}.r61690-customer-row:hover{border-color:#7183f4;background:#f7f8ff}.r61690-customer-row span{display:grid;gap:4px}.r61690-customer-row small{color:#667085}.r61690-customer-row em{font-style:normal;font-size:11px;padding:5px 8px;border-radius:999px;background:#eef2ff;color:#485ad0;white-space:nowrap}.r61690-customer-picker-shell>footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 22px;border-top:1px solid #e5eaf1;background:#fff}.r61690-customer-empty{display:grid;place-items:center;gap:5px;min-height:240px;color:#667085}

/* Batch watermark editor mirrors the existing image editor as a modal, no page jump. */
.r61690-watermark-dialog{border:0;border-radius:20px;padding:0;width:min(1120px,calc(100vw - 28px));max-width:1120px;max-height:calc(100dvh - 28px);box-shadow:0 34px 100px rgba(15,23,42,.38)}.r61690-watermark-dialog::backdrop{background:rgba(15,23,42,.58)}.r61690-watermark-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);min-height:min(760px,calc(100dvh - 28px));background:#fff}.r61690-watermark-shell>header{display:flex;justify-content:space-between;gap:18px;padding:18px 22px 14px;border-bottom:1px solid #e5eaf1}.r61690-watermark-shell>header span{font-size:11px;color:#5267d9;font-weight:750}.r61690-watermark-shell h3{margin:3px 0 4px;font-size:22px}.r61690-watermark-shell p{margin:0;color:#667085;font-size:12px}.r61690-watermark-body{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:0;min-height:0}.r61690-watermark-preview{min-height:0;padding:18px;background:#edf1f7;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:9px}.r61690-watermark-canvas{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden;border-radius:14px;background:repeating-conic-gradient(#f7f8fb 0 25%,#e9edf3 0 50%) 50%/24px 24px}.r61690-watermark-canvas>img{max-width:100%;max-height:100%;object-fit:contain}.r61690-watermark-canvas [data-wm-overlay]{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:3px;pointer-events:none;text-align:center}.r61690-watermark-canvas [data-wm-logo]{max-width:150px;max-height:100px;object-fit:contain}.r61690-watermark-canvas [data-wm-text]{color:#fff;text-shadow:-1px -1px 0 rgba(0,0,0,.6),1px 1px 0 rgba(0,0,0,.6);white-space:nowrap}.r61690-watermark-preview>small{color:#667085}.r61690-watermark-controls{padding:18px 20px;overflow:auto;display:grid;align-content:start;gap:13px}.r61690-watermark-controls>label{display:grid;gap:6px;font-size:12px;font-weight:650}.r61690-watermark-controls select,.r61690-watermark-controls input[type="text"],.r61690-watermark-controls input:not([type]){width:100%}.r61690-watermark-controls label output{justify-self:end;color:#667085}.r61690-segment{display:grid;grid-template-columns:1fr 1fr;gap:8px}.r61690-segment label{display:flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid #dfe5ef;border-radius:10px;font-size:12px}.r61690-watermark-history{display:flex;gap:7px;flex-wrap:wrap}.r61690-watermark-safety{padding:10px 12px;border:1px solid #d9e8dd;border-radius:10px;background:#f3fbf5;color:#356548;font-size:11px;line-height:1.55}.r61690-watermark-shell>footer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 22px;border-top:1px solid #e5eaf1}.r61690-watermark-shell>footer>div{display:flex;gap:8px}

/* Quick product entry returns to a linear, fast data-entry flow while keeping the same fields/data model. */
.r61690-product-quick .pm-master-sheet{max-width:1180px;margin-inline:auto}.r61690-product-quick .pm-product-sheet{display:block!important}.r61690-product-quick .pm-product-sheet-body{display:grid!important;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr)!important;gap:18px!important;align-items:start}.r61690-product-quick .pm-image-board{position:sticky;top:86px}.r61690-product-quick .pm-main-image,.r61690-product-quick [data-current-image]{min-height:260px!important;max-height:340px!important}.r61690-product-quick .pm-basic-panel{min-width:0}.r61690-product-quick .pm-basic-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 14px!important}.r61690-product-quick .pm-basic-field.wide{grid-column:1/-1}.r61690-product-quick .pm-pack-sheet{max-width:1180px;margin-inline:auto}.r61690-product-quick .r61687-entry-switch{position:sticky;top:10px;z-index:8;background:var(--cui-body-bg,#f5f7fb);padding:6px;border-radius:12px}.r61690-product-quick .pm-panel-heading small:after{content:' · 快速模式只显示高频字段，完整模式继续使用同一份资料';color:#5b6bd8}

/* AI drawer: make basic assistant feel like a useful guide, and reduce repeated evidence noise. */
.r616-copilot-drawer{width:min(760px,calc(100vw - 18px))!important}.r616-copilot-drawer .r61612-details{margin-top:8px}.r616-copilot-drawer .r61612-details>summary{font-size:11px;color:#667085}.r616-copilot-drawer .r616-message-assistant>p{font-size:14px;line-height:1.72}.r616-copilot-drawer [data-r616-context-prompts]{display:flex;gap:6px;flex-wrap:wrap}.r616-copilot-drawer [data-r616-context-prompts] button{border-radius:999px}.r616-ai-mode-hint{max-width:380px;line-height:1.45}
.r616-copilot-page .r616-evidence:not([open]){opacity:.78}.r616-copilot-page .r616-thread-result-grid{gap:10px!important}

/* Product/reference-price language consistency. */
.r61681-card-price dt,.uc-product-table th:nth-child(6){white-space:nowrap}.r61681-price-note{display:block;margin-top:2px;color:#667085;font-size:10px}

@media(max-width:900px){.r61690-watermark-body{grid-template-columns:1fr}.r61690-watermark-preview{min-height:360px}.r61690-customer-picker-tools{grid-template-columns:1fr}.r61690-product-quick .pm-product-sheet-body{grid-template-columns:1fr!important}.r61690-product-quick .pm-image-board{position:static}.r61690-customer-picker-field{grid-template-columns:1fr}.r61-bulk-panel{margin-left:0!important;width:100%}.r61-bulk-panel label{flex:1;min-width:150px}}

.r616-copilot-page{grid-template-columns:minmax(210px,250px) minmax(0,1fr)!important;max-width:1540px;margin-inline:auto;gap:14px!important}.r616-copilot-workspace{min-width:0}.r616-copilot-workspace .r616-conversation{max-width:1120px;margin-inline:auto}.r616-copilot-workspace .r616-prompt-grid{max-width:1120px;margin-inline:auto}.r616-result-summary p{max-width:920px;line-height:1.65}.r616-result-items.is-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.r616-evidence>div{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.r61690-product-quick .pm-product-sheet-body{grid-template-columns:1fr!important}
.r61690-product-quick .pm-image-board{position:static!important;display:grid!important;grid-template-columns:minmax(220px,290px) minmax(0,1fr);grid-template-rows:auto auto auto;gap:10px 14px;padding:14px!important}
.r61690-product-quick .pm-image-head{grid-column:1/-1}.r61690-product-quick .pm-main-image{grid-column:1;grid-row:2/4;min-height:210px!important;max-height:260px!important}.r61690-product-quick .pm-current-image-actions{grid-column:2;grid-row:2}.r61690-product-quick .pm-thumb-strip{grid-column:2;grid-row:3;align-self:start}.r61690-product-quick .pm-image-board>.notice,.r61690-product-quick .pm-image-board>[hidden]+.notice{grid-column:1/-1}.r61690-product-quick .pm-basic-panel{margin-top:4px}
@media(max-width:760px){.r61690-product-quick .pm-image-board{grid-template-columns:1fr}.r61690-product-quick .pm-image-head,.r61690-product-quick .pm-main-image,.r61690-product-quick .pm-current-image-actions,.r61690-product-quick .pm-thumb-strip{grid-column:1;grid-row:auto}}
