/* Local product additions: the approved prototype remains the visual authority. */
.product-inbox-summary { margin:18px 0; padding:16px; border-radius:20px; background:rgba(255,255,255,.68); }
.product-inbox-head { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.product-inbox-head b { font-size:15px; }
.product-inbox-head span,.product-inbox-note,.product-muted { color:var(--secondary); font-size:12px; }
.product-head-actions { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.product-head-actions button { min-height:44px; padding:0 12px; border:0; border-radius:12px; background:var(--fill); color:var(--label); font-size:12px; font-weight:650; }
.product-inbox-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:12px; }
.product-inbox-grid button,.product-inbox-grid span { min-height:54px; padding:8px; display:grid; align-content:center; gap:2px; border:0; border-radius:13px; background:var(--fill); color:var(--secondary); text-align:left; }
.product-inbox-grid b { color:var(--label); font-size:17px; }
.product-inbox-grid small { font-size:11px; }
.product-inbox-grid button:hover { background:var(--fill-strong); }
.product-location-chips { display:flex; gap:6px; overflow:auto; margin-top:9px; padding-bottom:2px; scrollbar-width:none; }
.product-location-chips::-webkit-scrollbar { display:none; }
.product-location-chips span { flex:0 0 auto; padding:6px 9px; border-radius:999px; background:rgba(120,120,128,.1); color:var(--secondary); font-size:11px; }
.product-upload-status { margin:14px 0; padding:13px 15px; display:flex; align-items:center; gap:10px; border-radius:16px; background:rgba(35,134,75,.10); color:var(--secondary); font-size:13px; }
.product-upload-status[hidden] { display:none; }
.product-upload-status.error { background:rgba(211,56,50,.10); }
.product-related { margin-top:0; padding:22px 30px; border-top:1px solid var(--separator); }
.product-related h3 { margin:0 0 10px; font-size:14px; }
.product-related-list { display:grid; gap:7px; }
.product-related-row { min-height:48px; padding:9px 11px; display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; border-radius:13px; background:var(--surface-2); }
.product-related-row b,.product-related-row small { display:block; }
.product-related-row b { font-size:13px; }
.product-related-row small { margin-top:2px; color:var(--secondary); font-size:11px; }
.product-related-row em { color:var(--tertiary); font-size:11px; font-style:normal; }
.product-detail { margin-top:14px; }
.product-detail summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--secondary); font-size:13px; }
.product-detail p,.product-detail li { color:var(--secondary); font-size:13px; line-height:1.5; }
.product-detail ul { margin:7px 0; padding-left:19px; }
.product-inbox-dialog { width:min(680px,calc(100% - 28px)); max-height:84dvh; padding:0; border:0; border-radius:30px; background:var(--surface); color:var(--label); box-shadow:0 30px 100px rgba(0,0,0,.25); }
.product-inbox-dialog::backdrop { background:rgba(20,20,22,.36); backdrop-filter:blur(14px); }
.product-inbox-dialog form { padding:22px; }
.product-inbox-dialog header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.product-inbox-dialog h2 { margin:0; font-size:24px; }
.product-inbox-dialog header button { width:44px; height:44px; border:0; border-radius:50%; background:var(--fill); font-size:22px; }
.product-inbox-filters { display:flex; gap:7px; margin-top:16px; }
.product-inbox-filters button { min-height:44px; padding:0 14px; border:0; border-radius:999px; background:var(--fill); color:var(--secondary); font-size:12px; font-weight:700; }
.product-inbox-filters button.selected { background:var(--label); color:var(--surface); }
.product-inbox-search { display:grid; gap:6px; margin-top:12px; color:var(--secondary); font-size:11px; }
.product-inbox-search input { width:100%; min-height:44px; box-sizing:border-box; padding:0 13px; border:1px solid var(--separator); border-radius:13px; background:var(--surface-2); color:var(--label); font:inherit; }
.product-inbox-list { display:grid; gap:9px; margin-top:14px; max-height:58dvh; overflow:auto; overscroll-behavior:contain; padding-bottom:4px; }
.product-inbox-more { width:100%; min-height:48px; border:0; border-radius:14px; background:var(--fill); color:var(--label); font-size:12px; font-weight:700; }
.product-inbox-row { padding:14px; border-radius:17px; background:var(--surface-2); }
.product-inbox-row.is-conflict { box-shadow:inset 0 0 0 1px rgba(255,149,0,.35); }
.product-row-title { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:start; }
.product-row-title em { padding:4px 7px; border-radius:999px; background:var(--fill); color:var(--secondary); font-size:10px; font-style:normal; white-space:nowrap; }
.product-inbox-row h3 { overflow-wrap:anywhere; margin:0; font-size:14px; }
.product-inbox-row p { margin:5px 0; color:var(--secondary); font-size:12px; }
.product-reason { line-height:1.45; }
.product-classification-fields { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:11px; }
.product-classification-fields label { display:grid; gap:5px; color:var(--secondary); font-size:11px; }
.product-classification-fields select { width:100%; min-height:44px; padding:0 10px; border:1px solid var(--separator); border-radius:12px; background:var(--surface); color:var(--label); font:inherit; }
.product-inbox-actions { display:flex; gap:7px; flex-wrap:wrap; margin-top:10px; }
.product-inbox-actions button { min-height:44px; padding:0 12px; border:0; border-radius:12px; background:var(--fill); color:var(--label); font-size:12px; font-weight:650; }
.product-inbox-actions button.selected { background:var(--action); color:#fff; }
.product-inbox-actions button:disabled { opacity:.48; }
.product-source-proof { margin-top:9px; }
.product-source-proof summary { min-height:44px; display:flex; align-items:center; color:var(--secondary); font-size:12px; cursor:pointer; }
.product-source-proof dl { margin:0; padding:10px; border-radius:12px; background:rgba(120,120,128,.08); }
.product-source-proof dl div { display:grid; grid-template-columns:76px minmax(0,1fr); gap:8px; padding:3px 0; }
.product-source-proof dt,.product-source-proof dd { margin:0; color:var(--secondary); font-size:11px; overflow-wrap:anywhere; }
.product-conflict-box { margin-top:10px; padding:10px; border-radius:12px; background:rgba(255,149,0,.1); }
.product-conflict-box b { font-size:12px; }
.product-conflict-box p { overflow-wrap:anywhere; }
.product-empty { padding:32px 0; color:var(--secondary); text-align:center; }
.product-note-dialog textarea { width:100%; box-sizing:border-box; margin-top:14px; padding:14px; resize:vertical; border:1px solid var(--separator); border-radius:16px; background:var(--surface-2); color:var(--label); font:inherit; line-height:1.55; }
.product-note-help { margin:12px 0 0; color:var(--secondary); font-size:13px; line-height:1.55; }
.product-note-submit { width:100%; min-height:48px; margin-top:10px; border:0; border-radius:14px; background:var(--action); color:#fff; font-weight:750; }
.map-node.product-draggable { touch-action:none; cursor:grab; }
.map-node.product-dragging { cursor:grabbing; z-index:4; box-shadow:0 0 0 3px rgba(28,28,30,.13),0 14px 35px rgba(0,0,0,.14); }
@media (max-width:820px) {
  .product-inbox-head { align-items:flex-start; flex-direction:column; }
  .product-head-actions { width:100%; }
  .product-head-actions button { flex:1; }
  .product-inbox-grid { grid-template-columns:repeat(2,1fr); }
  .product-related { padding-inline:20px; }
  .product-inbox-dialog { margin-bottom:max(14px,env(safe-area-inset-bottom)); }
  .product-classification-fields { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .product-inbox-dialog::backdrop { backdrop-filter:none; }
}
