.publication-range{padding:12px 16px;background:#edf4ff;color:#546c90;border-radius:9px;margin:12px 0}.publication-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}.publication-metric{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:18px;border:1px solid #dae5f1;border-radius:12px;background:#fff;text-align:left;color:#1769ff;cursor:pointer}.publication-metric strong{font-size:26px}.publication-metric.unpublished{color:#ca6705;background:#fffaf3}.publication-metric.published{color:#15834c;background:#f3fbf6}.publication-metric[aria-pressed=true]{outline:2px solid currentColor;outline-offset:-2px}.publication-badge{display:inline-block;white-space:nowrap;padding:5px 10px;border-radius:7px;font-size:13px;font-weight:600}.publication-badge.unpublished{background:#fff0db;color:#ac5800}.publication-badge.published{background:#ddf7e8;color:#187343}.publication-badge.unknown{background:#eef2f6;color:#64748b}.publication-generate{display:block;margin-top:9px}.publication-card-state{margin-bottom:10px}.inventory-publication-filter{display:flex;align-items:center;gap:12px;margin:12px 0}.inventory-publication-filter select{min-height:42px;max-width:220px;border:1px solid #d0ddec;border-radius:8px;padding:8px 12px;background:white}.today-inventory-table{width:100%;border-collapse:collapse}.today-inventory-table td,.today-inventory-table th{padding:16px;text-align:left;border-bottom:1px solid #e5edf5}.today-inventory-table small{display:block;color:#64748b}.today-inventory-table .small-btn{margin:3px}.sidebar button[data-page=todayInventory]{width:100%;text-align:left;border:0;color:inherit;font:inherit}.publication-dialog{box-sizing:border-box;width:min(1060px,94vw);max-height:92dvh;overflow:auto;border:1px solid #d8e4f1;border-radius:16px;padding:24px;color:#17314e}.publication-dialog::backdrop{background:#0d223d80}.publication-dialog-head{display:flex;gap:12px;align-items:center}.publication-dialog-head h2{font-size:23px;margin:0}.publication-dialog-head button{margin-left:auto}.publication-role{white-space:nowrap;padding:5px 9px;background:#eaf2ff;color:#1769ff;border-radius:6px;font-size:12px}.publication-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:24px;margin-top:22px}.publication-layout>*{min-width:0}.publication-hero{width:100%;height:250px;object-fit:contain;border:1px solid #e1e8ef;border-radius:10px}.publication-thumbnails{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.publication-thumbnails button{width:76px;height:76px;border:1px solid #d4e0eb;background:white;border-radius:8px;padding:3px}.publication-thumbnails button[aria-pressed=true]{border:2px solid #1769ff;background:#eaf2ff}.publication-thumbnails img{width:100%;height:100%;object-fit:contain}.publication-downloads{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.publication-downloads small{flex-basis:100%}.publication-dialog textarea{width:100%;min-height:310px;box-sizing:border-box;resize:vertical;line-height:1.7;font:15px/1.8 sans-serif;border:1px solid #cfdaea;border-radius:9px;padding:16px;margin-bottom:10px}.publication-message{color:#9b5200;min-height:24px}.publication-dialog-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;position:sticky;bottom:-24px;background:white;padding:18px 0;border-top:1px solid #e3eaf3;margin-top:18px}.publication-dialog-actions button{min-height:44px;border-radius:8px;padding:10px 16px;cursor:pointer}.publication-dialog-actions .primary{margin-left:auto}.publication-mark{border:1px solid #15985b;background:#fff;color:#16764b}.publication-mark:disabled{opacity:.5;cursor:default}.publication-history pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f8fb;padding:12px}.publication-history p{color:#63758e}
@media(max-width:767px){.publication-summary{gap:8px}.publication-metric{padding:12px 8px;font-size:12px}.publication-metric strong{font-size:22px}.publication-dialog{width:96vw;padding:16px;max-height:95dvh}.publication-dialog-head{flex-wrap:wrap}.publication-dialog-head h2{font-size:18px}.publication-layout{grid-template-columns:1fr;gap:12px}.publication-hero{height:190px}.publication-dialog-actions{bottom:-16px;gap:8px}.publication-dialog-actions small{flex-basis:65%}.publication-dialog-actions button{flex:1}.publication-dialog textarea{font-size:16px}.publication-responsive-table,.publication-responsive-table tbody{display:block!important;width:100%!important;min-width:0!important}.publication-responsive-table thead{display:none!important}.publication-responsive-table tbody tr{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;padding:16px;margin:12px 0;border:1px solid #e0e7ef;border-radius:12px;background:white}.publication-responsive-table tbody tr.pagination-off{display:none!important}.publication-responsive-table td{display:block!important;min-width:0!important;width:auto!important;border:0!important;padding:4px!important;position:static!important;overflow-wrap:anywhere}.publication-responsive-table td:before{content:attr(data-mobile-label);display:block;font-size:12px;color:#73859e;margin-bottom:5px}.publication-responsive-table td:first-child,.publication-responsive-table td:last-child{grid-column:1/-1}.publication-responsive-table .empty{grid-column:1/-1}.publication-responsive-table .product-cell{min-width:0!important}}

.publication-pending-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:#ef4444;color:white;font-size:12px;font-weight:700;margin-left:auto;flex-shrink:0}.publication-pending-count[hidden]{display:none}.product-link-display{display:flex;flex-direction:column;align-items:flex-start;gap:5px;max-width:100%;white-space:normal}.product-link-display .similar-link-label{background:#fff0d9;color:#ad4c00;border:1px solid #f5c481;border-radius:999px;padding:3px 9px;font-weight:700;display:inline-flex;align-items:center;gap:4px}.product-link-display small{font-size:12px;color:#925018;white-space:normal;line-height:1.5}.product-link-display .link-unconfirmed{font-size:12px;color:#64748b}.product-link-display a{color:#1765ed;font-weight:600;overflow-wrap:anywhere}#editLinkType{margin-top:6px}#editInventoryModal label[for=editLinkType]{display:block;margin-top:12px}
.product-link-display .similar-link-label,.product-link-display a{white-space:nowrap}@media(min-width:768px){#purchaseResourceLibrary th:nth-child(8),#purchaseInventory th:nth-child(8){width:160px;min-width:160px}#purchaseResourceLibrary td:nth-child(8),#purchaseInventory td:nth-child(8){min-width:160px}.product-link-display{min-width:135px}}
@media(min-width:768px){#purchaseResourceLibrary,#purchaseInventory{min-width:0;max-width:100%;width:100%;box-sizing:border-box}#purchaseResourceLibrary>.panel,#purchaseInventory>.panel{overflow-x:auto;max-width:100%;width:100%}#purchaseResourceLibrary table{width:100%;table-layout:auto}#purchaseResourceLibrary .purchase-product-with-image{min-width:0;max-width:200px}}

/* Administration-only today inventory: compact products and explicit adjacent link/status columns. */
#todayInventory[hidden]{display:none!important}
.product-link-display .similar-link-label{background:#f97316;color:#fff;border:0;padding:6px 12px;border-radius:999px;gap:6px;line-height:20px;white-space:nowrap}
.similar-link-label svg{flex:0 0 16px}
#todayInventory .panel{overflow-x:auto}
.today-inventory-table{table-layout:fixed;min-width:960px}
.today-inventory-table th:nth-child(1){width:26%}.today-inventory-table th:nth-child(2){width:9%}.today-inventory-table th:nth-child(3){width:8%}.today-inventory-table th:nth-child(4){width:13%}.today-inventory-table th:nth-child(5){width:17%}.today-inventory-table th:nth-child(6){width:10%}.today-inventory-table th:nth-child(7){width:17%}
.today-inventory-table td{vertical-align:middle;overflow-wrap:anywhere}.today-inventory-table td,.today-inventory-table th{padding:14px 12px}
.today-product{display:flex;align-items:center;gap:10px;min-width:0}.today-product img{width:48px;height:48px;flex:0 0 48px;object-fit:contain;border:1px solid #e2e8f0;border-radius:7px}.today-product-copy{min-width:0}.today-product-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.today-product-copy small{font-size:12px;margin-top:5px;color:#64748b}.today-inventory-table .product-link-display{min-width:0}.today-inventory-table [data-publication-actions] button{margin:3px 2px;white-space:nowrap}
@media(max-width:767px){
 #todayInventory .today-inventory-table tbody tr{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
 #todayInventory .today-inventory-table td{grid-column:auto;grid-row:auto}
 #todayInventory .today-inventory-table td:nth-child(1){grid-column:1/-1;grid-row:1}
 #todayInventory .today-inventory-table td:nth-child(2){grid-column:1;grid-row:2}
 #todayInventory .today-inventory-table td:nth-child(3){grid-column:2;grid-row:2}
 #todayInventory .today-inventory-table td:nth-child(4){grid-column:1/-1;grid-row:3}
 #todayInventory .today-inventory-table td:nth-child(5){grid-column:1;grid-row:4;align-self:start}
 #todayInventory .today-inventory-table td:nth-child(6){grid-column:2;grid-row:4;align-self:start}
 #todayInventory .today-inventory-table td:nth-child(7){grid-column:1/-1;grid-row:5;display:flex!important;gap:8px}
 #todayInventory .today-inventory-table td:nth-child(7):before{display:none}
 #todayInventory .today-inventory-table td:nth-child(7) button{flex:1;min-height:40px;margin:0}
 #todayInventory .today-inventory-table .empty{grid-column:1/-1!important}
 #todayInventory .today-product img{width:56px;height:56px;flex-basis:56px}
 #todayInventory .today-product-name{font-size:15px}
}
.today-inventory-table .today-link-cell,.today-inventory-table .today-status-cell{vertical-align:top;padding-top:18px}.today-status-cell .publication-badge{min-height:32px;display:inline-flex;align-items:center;box-sizing:border-box}

.product-link-display a.similar-link-label{text-decoration:none;cursor:pointer}.product-link-display a.similar-link-label:hover{background:#ea580c;color:#fff}.product-link-display a.similar-link-label:focus-visible{outline:2px solid #9a3412;outline-offset:3px}

/* Shared product-link buttons for every role and viewport. */
.product-link-display a.product-link-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:112px;min-width:112px;height:34px;padding:6px 12px;border:0;border-radius:999px;background:#2563eb;color:#fff;font-size:14px;font-weight:600;line-height:20px;white-space:nowrap;text-decoration:none;cursor:pointer}
.product-link-display a.product-link-button svg{flex:0 0 16px}
.product-link-display a.product-link-button:hover{background:#1d4ed8;color:#fff;text-decoration:none}
.product-link-display a.product-link-button:focus-visible{outline:2px solid #1e40af;outline-offset:3px}
.product-link-display a.product-link-button.similar-link-label{background:#f97316;color:#fff}
.product-link-display a.product-link-button.similar-link-label:hover{background:#ea580c}
.product-link-display a.product-link-button.similar-link-label:focus-visible{outline-color:#9a3412}
@media(max-width:767px){.product-link-display a.product-link-button{height:44px}}

/* Today inventory identifiers: preserve the existing two adjacent actions. */
#todayInventory .today-product-copy{flex:1;min-width:0}
#todayInventory .today-product-copy small{display:block;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
#todayInventory .today-product-copy .today-product-serial{color:#1769ff}
#todayInventory .today-product-copy .today-product-wechat{color:#64748b}
@media(min-width:768px){
 #todayInventory .today-inventory-table{min-width:1080px}
 #todayInventory .today-inventory-table th:nth-child(1){width:28%}
 #todayInventory .today-inventory-table th:nth-child(2){width:8%}
 #todayInventory .today-inventory-table th:nth-child(3){width:7%}
 #todayInventory .today-inventory-table th:nth-child(4){width:14%}
 #todayInventory .today-inventory-table th:nth-child(5){width:13%}
 #todayInventory .today-inventory-table th:nth-child(6){width:9%}
 #todayInventory .today-inventory-table th:nth-child(7){width:21%}
 #todayInventory .today-inventory-table td,#todayInventory .today-inventory-table th{padding:14px 10px}
 #todayInventory .today-inventory-table [data-publication-actions]{white-space:nowrap}
 #todayInventory .today-inventory-table [data-publication-actions] button{display:inline-block;margin:3px 2px}
}
