html.ehcb-modal-open { overflow: hidden; }
#ehcb-dialog .ehcb-review-filters { display:inline-flex; flex-wrap:nowrap; align-items:center; gap:6px; margin:0; }
#ehcb-dialog .ehcb-review-filters > span,#ehcb-dialog .ehcb-review-filters small { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#ehcb-dialog .ehcb-review-filters button { border-radius:999px; min-height:36px; padding:5px 13px; font-size:13px; display:inline-flex; align-items:center; gap:6px; }
#ehcb-dialog .ehcb-review-filters button > span { font-size:21px; line-height:1; font-weight:800; }
#ehcb-dialog [data-bank="filter-good"][aria-pressed="true"] { background:#e7f7e8; border:2px solid #26723c; color:#175e2b; }
#ehcb-dialog [data-bank="filter-bad"][aria-pressed="true"] { background:#fff0ed; border:2px solid #af3024; color:#9b241c; }
#ehcb-dialog .ehcb-review-filters button[aria-pressed="false"] { background:#f3f4f1; border:2px dashed #9ba397; color:#60675d; }
#ehcb-dialog .ehcb-review-filters small { font-size:12px; }
#ehcb-dialog .ehcb-bulk-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
#ehcb-dialog .ehcb-bulk-tools > span { font-size:13px; font-weight:750; color:#95251e; }
#ehcb-dialog .ehcb-bulk-select { position:absolute; top:6px; left:6px; z-index:2; display:grid; place-items:center; width:34px; height:34px; margin:0; padding:4px; background:#fff; border:1px solid #912c22; border-radius:6px; cursor:pointer; box-shadow:0 1px 5px #0003; }
#ehcb-dialog .ehcb-bulk-select input { appearance:auto; width:24px; height:24px; margin:0; padding:0; accent-color:#ab271d; cursor:pointer; }
#ehcb-dialog .ehcb-bulk-selected { border:2px solid #af3024; padding:9px; background:#fff5f3; }
#ehcb-dialog .ehcb-move-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
#ehcb-dialog .ehcb-move-tools > span { font-size:13px; font-weight:750; color:#24523a; }
#ehcb-dialog .ehcb-move-select { position:absolute; top:6px; left:6px; z-index:2; display:grid; place-items:center; width:34px; height:34px; margin:0; padding:4px; background:#fff; border:1px solid #2f6f47; border-radius:6px; cursor:pointer; box-shadow:0 1px 5px #0003; }
#ehcb-dialog .ehcb-move-select input { appearance:auto; width:24px; height:24px; margin:0; padding:0; accent-color:#26723c; cursor:pointer; }
#ehcb-dialog .ehcb-move-selected { border:2px solid #26723c; padding:9px; background:#f2fff3; }
#ehcb-dialog.ehcb-move-mode .ehcb-image:not(.ehcb-move-selected) { opacity:.96; }
#ehcb-dialog.ehcb-bulk-mode .ehcb-review:disabled { opacity:1; }
@media(pointer:coarse) { #ehcb-dialog .ehcb-bulk-select { width:40px; height:40px; } }
@media(max-width:700px) { #ehcb-dialog .ehcb-bulk-tools,#ehcb-dialog .ehcb-move-tools { grid-column:1 / -1; } #ehcb-dialog .ehcb-bulk-tools > span,#ehcb-dialog .ehcb-move-tools > span { flex-basis:100%; } }
#ehcb-bulk-dialog { box-sizing:border-box; width:min(620px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; padding:24px; border:1px solid #c9b6b3; border-radius:16px; background:#fff; color:#172719; font:15px/1.5 system-ui,sans-serif; }
#ehcb-bulk-dialog::backdrop { background:#102216ad; }
#ehcb-bulk-dialog h2 { font:750 24px/1.3 system-ui,sans-serif; margin:0 0 16px; color:inherit; }
#ehcb-bulk-dialog p { margin:12px 0; color:inherit; }
#ehcb-bulk-dialog [hidden] { display:none !important; }
#ehcb-bulk-dialog ul { list-style:none; margin:16px 0; padding:0; max-height:38vh; overflow:auto; border-block:1px solid #d9dfd3; }
#ehcb-bulk-dialog li { display:flex; align-items:center; gap:12px; margin:0; padding:10px 0; border-bottom:1px solid #e4e7df; }
#ehcb-bulk-dialog li img { width:48px; height:60px; object-fit:contain; }
#ehcb-bulk-dialog li div { min-width:0; }
#ehcb-bulk-dialog strong,#ehcb-bulk-dialog li span { display:block; overflow-wrap:anywhere; }
#ehcb-bulk-dialog li span { font-size:13px; }
#ehcb-bulk-dialog .ehcb-bulk-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:20px; }
#ehcb-bulk-dialog button { font:650 14px/1.4 system-ui,sans-serif; padding:10px 16px; min-height:44px; border:1px solid #73816e; border-radius:8px; background:#fff; color:#172719; text-transform:none; cursor:pointer; }
#ehcb-bulk-dialog [data-bulk="confirm"] { background:#a9271d; color:#fff; border-color:#862015; }
#ehcb-bulk-dialog button:disabled { opacity:.5; cursor:default; }
#ehcb-bulk-dialog button:focus-visible,#ehcb-dialog .ehcb-bulk-select:focus-within { outline:3px solid #46671b; outline-offset:3px; }
@media(max-width:520px) { #ehcb-bulk-dialog { padding:16px; } }
#ehcb-dialog .ehcb-danger { color:#a32319; border-color:#c9817a; }
#ehcb-remove-dialog { box-sizing:border-box; width:min(520px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; padding:24px; border:1px solid #c9b6b3; border-radius:16px; background:#fff; color:#172719; font:15px/1.5 system-ui,sans-serif; box-shadow:0 20px 70px #0006; }
#ehcb-remove-dialog::backdrop { background:#102216ad; }
#ehcb-remove-dialog h2 { font:750 24px/1.3 system-ui,sans-serif; color:inherit; margin:0 0 20px; }
#ehcb-remove-dialog p { margin:12px 0; color:inherit; }
#ehcb-remove-dialog [hidden] { display:none !important; }
#ehcb-remove-dialog .ehcb-remove-preview { display:flex; align-items:center; gap:16px; }
#ehcb-remove-dialog .ehcb-remove-preview img { width:80px; max-height:110px; object-fit:contain; }
#ehcb-remove-dialog .ehcb-remove-preview div { min-width:0; }
#ehcb-remove-dialog strong { display:block; overflow-wrap:anywhere; }
#ehcb-remove-dialog code { display:block; font:11px/1.5 system-ui,sans-serif; color:#4b5e49; overflow-wrap:anywhere; background:transparent; }
#ehcb-remove-dialog .ehcb-remove-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:20px; }
#ehcb-remove-dialog button { padding:10px 16px; min-height:44px; border:1px solid #73816e; border-radius:8px; background:#fff; color:#172719; font:650 14px/1.4 system-ui,sans-serif; text-transform:none; cursor:pointer; }
#ehcb-remove-dialog [data-remove="confirm"] { background:#a9271d; color:#fff; border-color:#862015; }
#ehcb-remove-dialog button:disabled { opacity:.5; cursor:default; }
#ehcb-remove-dialog button:focus-visible { outline:3px solid #46671b; outline-offset:3px; }
#ehcb-row-remove-dialog { box-sizing:border-box; width:min(600px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; padding:24px; border:1px solid #c9b6b3; border-radius:16px; background:#fff; color:#172719; box-shadow:0 20px 70px #0006; font:15px/1.5 system-ui,sans-serif; }
#ehcb-row-remove-dialog::backdrop { background:#102216ad; }
#ehcb-row-remove-dialog [hidden] { display:none !important; }
#ehcb-row-remove-dialog h2 { margin:0 0 12px; font:750 24px/1.3 system-ui,sans-serif; }
#ehcb-row-remove-dialog p { margin:12px 0; }
#ehcb-row-remove-dialog .ehcb-row-remove-name { font-weight:750; color:#24523a; }
#ehcb-row-remove-dialog .ehcb-row-remove-count { color:#4a5d47; }
#ehcb-row-remove-dialog .ehcb-row-remove-choices { display:grid; grid-template-columns:1fr; gap:9px; margin-top:18px; }
#ehcb-row-remove-dialog button { min-height:44px; padding:10px 14px; border:1px solid #73816e; border-radius:8px; background:#fff; color:#172719; font:650 14px/1.4 system-ui,sans-serif; text-align:left; text-transform:none; cursor:pointer; }
#ehcb-row-remove-dialog .ehcb-row-remove-choices button[aria-pressed="true"] { background:#a9271d; color:#fff; border-color:#862015; }
#ehcb-row-remove-dialog button:disabled { opacity:.5; cursor:default; }
#ehcb-row-remove-dialog button:focus-visible { outline:3px solid #46671b; outline-offset:3px; }
#ehcb-row-remove-dialog .ehcb-remove-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:20px; }
#ehcb-row-remove-dialog .ehcb-row-remove-cancel button { text-align:center; }
@media(max-width:520px) { #ehcb-row-remove-dialog { padding:16px; } #ehcb-row-remove-dialog .ehcb-remove-actions button { flex:1; min-width:0; } }
#ehcb-dialog { box-sizing: border-box; width: 90vw; max-width: 90vw; max-height: calc(100dvh - 40px); overflow: auto; padding: 0; border: 1px solid #b7c4b1; border-radius: 20px; background: #fff; color: #172719; box-shadow: 0 22px 90px #13251740; font: 15px/1.5 system-ui, sans-serif; }
#ehcb-dialog::backdrop { background: #0c1f17a6; }
#ehcb-dialog [hidden] { display: none !important; }
#ehcb-dialog * { box-sizing: border-box; }
#ehcb-dialog h2, #ehcb-dialog h3, #ehcb-dialog p { margin: 0; color: inherit; font-family: inherit; }
#ehcb-dialog button { font: inherit; font-weight: 650; cursor: pointer; border: 1px solid #72836b; border-radius: 9px; padding: 9px 15px; min-height: 42px; color: #1b2c17; background: #fff; box-shadow: none; text-transform: none; letter-spacing: normal; }
#ehcb-dialog button:disabled { opacity: .5; cursor: default; }
#ehcb-dialog button:focus-visible { outline: 3px solid #1d542a; outline-offset: 3px; }
#ehcb-dialog button.ehcb-review { flex:0 0 auto; width:34px; height:34px; min-height:34px; padding:0; display:grid; place-items:center; border:2px solid #768474; border-radius:7px; background:#fff; color:#1b6531; font:800 23px/1 system-ui,sans-serif; box-shadow:none; touch-action:manipulation; }
#ehcb-dialog button.ehcb-review[data-review="good"] { color:#167538; border-color:#167538; background:#f0fff3; }
#ehcb-dialog button.ehcb-review[data-review="bad"] { color:#b52121; border-color:#b52121; background:#fff3f3; }
@media(pointer:coarse) { #ehcb-dialog button.ehcb-review { width:40px; height:40px; min-height:40px; } }
#ehcb-dialog .ehcb-primary { background: #99cc00; border-color: #507400; }
#ehcb-dialog .ehcb-secondary { background: #f5f8f0; }
#ehcb-dialog .ehcb-header { position: sticky; top: 0; z-index: 6; background: #99cc00; padding: 16px 30px; display: flex; flex-wrap:wrap; justify-content: space-between; gap: 16px; align-items: center; border-bottom:1px solid #698d00; }
#ehcb-dialog .ehcb-header-identity { display:grid; gap:10px; min-width:0; max-width:100%; }
#ehcb-dialog .ehcb-header p { font-size: 11px; font-weight: 800; letter-spacing: .12em; }
#ehcb-dialog .ehcb-header h2 { font-size: 30px; line-height: 1.3; font-weight: 750; }
#ehcb-dialog .ehcb-brand { display:flex; align-items:center; gap:16px; min-width:0; max-width:100%; }
#ehcb-dialog .ehcb-brand > div { min-width:0; }
#ehcb-dialog .ehcb-brand-logo { display:block; width:140px; height:auto; flex:0 0 auto; object-fit:contain; background:transparent; }
#ehcb-dialog .ehcb-header button { font-size: 27px; padding: 0 12px; background: transparent; }
#ehcb-dialog .ehcb-header-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; max-width:100%; }
#ehcb-dialog .ehcb-upload-actions { display:flex; flex-wrap:wrap; gap:8px; }
#ehcb-dialog .ehcb-upload-actions button { font-size:13px; padding:8px 11px; background:#f5f8f0; }
#ehcb-dialog .ehcb-upload-actions .ehcb-primary { background:#d9f28c; border-color:#507400; }
#ehcb-dialog #ehcb-help-toggle { display:flex; align-items:center; gap:8px; font-size:13px; padding:7px 10px; background:#fff; border-color:#426400; }
#ehcb-dialog .ehcb-switch-track { display:block; position:relative; width:34px; height:20px; border-radius:20px; background:#64705e; flex-shrink:0; }
#ehcb-dialog .ehcb-switch-track::after { content:''; position:absolute; width:14px; height:14px; top:3px; left:3px; border-radius:50%; background:#fff; }
#ehcb-dialog #ehcb-help-toggle[aria-checked="true"] .ehcb-switch-track { background:#3f6600; }
#ehcb-dialog #ehcb-help-toggle[aria-checked="true"] .ehcb-switch-track::after { left:17px; }
#ehcb-dialog .ehcb-help-tip { position:fixed; z-index:20; padding:12px 14px; border-radius:10px; border:1px solid #d8e8ca; background:#1b321c; color:#fff; font:500 13px/1.5 system-ui,sans-serif; max-height:180px; overflow:auto; box-shadow:0 5px 18px #0004; overflow-wrap:anywhere; text-align:left; }
@media(max-width:700px) {
  #ehcb-dialog .ehcb-header { flex-wrap:wrap; gap:10px; }
  #ehcb-dialog .ehcb-header-identity { width:100%; gap:8px; }
  #ehcb-dialog .ehcb-brand { gap:10px; }
  #ehcb-dialog .ehcb-brand-logo { width:80px; }
  #ehcb-dialog .ehcb-header-actions { display:grid; grid-template-columns:1fr auto; gap:8px; width:100%; }
  #ehcb-dialog .ehcb-upload-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-column:1 / -1; }
  #ehcb-dialog .ehcb-upload-actions button { min-width:0; padding:8px 6px; font-size:12px; }
  #ehcb-dialog #ehcb-help-toggle { justify-self:start; }
}
#ehcb-dialog .ehcb-content { padding: 22px 30px 30px; }
#ehcb-dialog h3 { font-size: 20px; font-weight: 750; margin-bottom: 12px; }
#ehcb-dialog .ehcb-notice { padding: 12px 15px; background: #fff8d8; border: 1px solid #d0ac3a; border-radius: 10px; margin-bottom: 18px; overflow-wrap: anywhere; }
#ehcb-dialog .ehcb-drop { display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 25px; border: 2px dashed #7c986e; border-radius: 14px; background: #fafcf7; text-align: center; }
#ehcb-dialog .ehcb-drop strong { font-size: 18px; }
#ehcb-dialog .ehcb-drop span, #ehcb-dialog small { color: #435541; }
#ehcb-dialog .ehcb-drop button { margin: 5px 0; }
#ehcb-dialog .ehcb-dragover { background: #ecf8c8; border-color: #2b5110; }
#ehcb-dialog #ehcb-summary { margin:10px 0 0; color:#435541; font-size:13px; }
#ehcb-dialog #ehcb-summary:empty { display:none; }
#ehcb-dialog ul { list-style: none; margin: 0; padding: 0; }
#ehcb-dialog .ehcb-queue { max-height: 360px; overflow-y: auto; }
#ehcb-dialog .ehcb-file { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #dce3d7; margin: 0; }
#ehcb-dialog .ehcb-checker { position: relative; background-color: #fff; background-image: linear-gradient(45deg,#e3e7e0 25%,transparent 25%),linear-gradient(-45deg,#e3e7e0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e3e7e0 75%),linear-gradient(-45deg,transparent 75%,#e3e7e0 75%); background-size: 18px 18px; background-position: 0 0,0 9px,9px -9px,-9px 0; overflow: hidden; border-radius: 9px; }
#ehcb-dialog .ehcb-file > .ehcb-checker { width: 70px; height: 70px; flex: 0 0 70px; }
#ehcb-dialog .ehcb-checker img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
#ehcb-dialog .ehcb-file-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
#ehcb-dialog .ehcb-file-copy strong { overflow-wrap: anywhere; }
#ehcb-dialog .ehcb-size, #ehcb-dialog .ehcb-file-status { font-size: 12px; }
#ehcb-dialog progress { width: 100%; height: 7px; accent-color: #628600; }
#ehcb-dialog .ehcb-file-actions { display: flex; gap: 6px; }
#ehcb-dialog .ehcb-file-actions button { padding: 6px 10px; font-size: 12px; }
#ehcb-dialog [data-status="error"] .ehcb-file-status { color: #a61e14; font-weight: 650; }
#ehcb-dialog [data-status="success"] .ehcb-file-status { color: #306313; font-weight: 750; }
#ehcb-dialog .ehcb-library { border-top: 1px solid #c9d6c2; margin-top: 16px; }
#ehcb-dialog .ehcb-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 16px; margin-top: 16px; }
#ehcb-dialog .ehcb-image { border: 1px solid #d2ddcc; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; }
#ehcb-dialog .ehcb-image .ehcb-checker { width: 100%; height: auto; aspect-ratio: 4 / 5; flex: 0 0 auto; }
#ehcb-dialog .ehcb-image strong { overflow-wrap: anywhere; font-size: 13px; }
#ehcb-dialog .ehcb-position { font-size:12px; color:#3f5937; font-weight:700; }
#ehcb-dialog .ehcb-bank-row { border:1px solid #c4d4bc; border-radius:14px; padding:16px; margin-top:22px; min-width:0; }
#ehcb-dialog .ehcb-bank-row > header { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
#ehcb-dialog .ehcb-bank-row h4 { font:750 19px/1.4 system-ui,sans-serif; margin:0; overflow-wrap:anywhere; }
#ehcb-dialog .ehcb-row-count { font-size:12px; color:#465542; }
#ehcb-dialog .ehcb-row-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-left:auto; }
#ehcb-dialog .ehcb-row-drag { min-height:36px; padding:7px 10px; border-style:dashed; border-color:#587850; background:#f5f9ef; color:#31552b; font-size:11px; letter-spacing:.02em; touch-action:none; cursor:grab; }
#ehcb-dialog .ehcb-row-drag:active { cursor:grabbing; }
#ehcb-dialog .ehcb-row-order-dragging { opacity:.48; outline:2px dashed #688b2a; }
#ehcb-dialog .ehcb-row-order-drop { outline:3px solid #4f8123; outline-offset:2px; background:#f2f9e4; }
#ehcb-dialog .ehcb-empty-row { padding:20px 0; color:#465542; }
#ehcb-dialog { scroll-padding-top:calc(var(--ehcb-header-height,104px) + var(--ehcb-controls-height,70px) + 12px); }
#ehcb-dialog .ehcb-sticky-controls { position:sticky; top:var(--ehcb-header-height,104px); z-index:5; margin:0 0 12px; padding:12px 0; background:#fff; border-bottom:1px solid #c4d4bc; box-shadow:0 5px 6px -6px #23402980; }
#ehcb-dialog .ehcb-org-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0; }
#ehcb-dialog .ehcb-org-tools > button { font-size:13px; padding:8px 11px; }
#ehcb-dialog #ehcb-org-status { font-size:13px; color:#2e5b21; }
#ehcb-dialog #ehcb-org-status:empty { display:none; }
#ehcb-dialog .ehcb-edit-panel { border:1px solid #b9cbae; background:#f5f9ef; border-radius:10px; padding:14px; margin:12px 0; }
#ehcb-dialog .ehcb-edit-panel h4 { margin:0 0 12px; font:750 18px/1.4 system-ui,sans-serif; }
#ehcb-dialog .ehcb-edit-panel label { display:grid; gap:4px; margin-bottom:10px; font-size:13px; font-weight:700; }
#ehcb-dialog .ehcb-edit-panel input,#ehcb-dialog .ehcb-edit-panel select { width:100%; min-width:0; background:#fff; color:#172719; padding:10px; border:1px solid #739184; border-radius:8px; font:inherit; }
#ehcb-dialog .ehcb-edit-panel > div { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
#ehcb-dialog .ehcb-edit-panel p { overflow-wrap:anywhere; font-size:13px; }
#ehcb-dialog #ehcb-import-review ol { max-height:260px; overflow:auto; padding-left:24px; font-size:13px; overflow-wrap:anywhere; }
#ehcb-dialog .ehcb-dragging { opacity:.5; }
#ehcb-dialog .ehcb-row-drop { outline:3px solid #5e8b16; background:#f0f8db; }
#ehcb-dialog .ehcb-assign { padding:8px; margin:0; }
#ehcb-dialog .ehcb-meta { font-size: 12px; color: #465542; flex: 1; }
#ehcb-dialog .ehcb-image button:not(.ehcb-review) { font-size: 12px; padding: 7px; }
#ehcb-dialog .ehcb-card-actions { display:flex; align-items:center; gap:6px; min-width:0; margin-top:auto; }
#ehcb-dialog .ehcb-card-actions .ehcb-options { flex:1 1 auto; min-width:0; margin:0; }
#ehcb-dialog .ehcb-card-actions .ehcb-options > button { width:100%; }
#ehcb-dialog .ehcb-more { margin: 20px auto 0; display: block; }
@media(max-width:700px) {
  #ehcb-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
  #ehcb-dialog .ehcb-header { padding:12px 16px; }
  #ehcb-dialog .ehcb-content { padding:20px 16px; }
  #ehcb-dialog .ehcb-header h2 { font-size: 23px; }
  #ehcb-dialog .ehcb-brand h2 { font-size:20px; }
  #ehcb-dialog .ehcb-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  #ehcb-dialog .ehcb-sticky-controls { padding:8px 0; }
  #ehcb-dialog .ehcb-org-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  #ehcb-dialog .ehcb-org-tools button { min-width:0; padding:8px 6px; font-size:12px; }
  #ehcb-dialog .ehcb-file { flex-wrap: wrap; }
  #ehcb-dialog .ehcb-file-actions { margin-left: auto; }
  #ehcb-dialog .ehcb-bank-row > header { align-items:flex-start; gap:8px; }
  #ehcb-dialog .ehcb-row-actions { width:100%; margin-left:0; display:grid; grid-template-columns:minmax(0,1fr) auto; }
  #ehcb-dialog .ehcb-row-drag { min-height:44px; font-size:10px; }
}
#ehcb-dialog .ehcb-options { position: relative; margin-top: auto; }
#ehcb-dialog .ehcb-options > button { width: 100%; }
#ehcb-dialog .ehcb-options-list { position: absolute; z-index: 8; left:0; right:0; bottom:calc(100% + 4px); box-sizing:border-box; padding: 5px; border: 1px solid #a4b9af; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px #143c3026; }
#ehcb-dialog .ehcb-options-list button { display: block; width: 100%; text-align: left; border: 0; background: #fff; }
@media(min-width:701px) {
  #ehcb-dialog .ehcb-row-options .ehcb-options-list { left:auto; width:230px; max-width:calc(100vw - 48px); }
}
#ehcb-dialog .ehcb-options-list button:hover, #ehcb-dialog .ehcb-options-list button:focus-visible { background: #e6f5ec; }
@media(max-width:700px) {
  #ehcb-dialog .ehcb-options-list { position:fixed; left:24px; right:24px; bottom:24px; max-height:calc(100dvh - 48px); overflow-y:auto; overscroll-behavior:contain; }
  #ehcb-dialog .ehcb-options-list button { min-height:44px; }
}
#ehcb-dialog .ehcb-rename label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
#ehcb-dialog .ehcb-rename input { box-sizing: border-box; width: 100%; min-width: 0; padding: 9px; border: 1px solid #739184; border-radius: 7px; color: #173b2e; background: white; font: inherit; }
#ehcb-dialog .ehcb-rename > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
#ehcb-dialog .ehcb-rename-status { font-size: 12px; color: #285641; overflow-wrap: anywhere; }
#ehcb-dialog .ehcb-rename-status:empty { display: none; }
#ehcb-dialog .ehcb-search { flex:1 1 330px; min-width:min(100%,300px); max-width:460px; margin:0; }
#ehcb-dialog .ehcb-search label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#ehcb-dialog .ehcb-search > div { display:flex; align-items:center; gap:6px; }
#ehcb-dialog .ehcb-search input { flex:1; min-width:0; width:100%; height:42px; margin:0; border:1px solid #739184; border-radius:9px; background:white; color:#173b2e; padding:9px 11px; font:14px/1.5 system-ui,sans-serif; }
#ehcb-dialog .ehcb-search button { flex-shrink:0; padding:8px 11px; font-size:13px; }
#ehcb-dialog .ehcb-search input:focus-visible { outline: 3px solid #1d542a; outline-offset: 2px; }
@media(max-width:700px) {
  #ehcb-dialog .ehcb-search { grid-column:1 / -1; width:100%; max-width:none; }
  #ehcb-dialog .ehcb-search input { padding:9px; }
  #ehcb-dialog .ehcb-search button { font-size:12px; padding:8px; }
}
#ehcb-replace-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto;padding:24px;border:1px solid #a6b59a;border-radius:18px;color:#1a321d;background:#fff;font:15px/1.5 Arial,sans-serif}
#ehcb-replace-dialog::backdrop{background:rgb(10 27 17 / .66)}
#ehcb-replace-dialog h2{font-size:24px;margin:0 0 10px;color:#1a321d}
#ehcb-replace-dialog p{margin:10px 0;font-size:14px;overflow-wrap:anywhere}
#ehcb-replace-dialog button{font:inherit;cursor:pointer;border:1px solid #819174;border-radius:8px;background:#fff;color:#1a321d;padding:10px 14px;font-weight:700}
#ehcb-replace-dialog button:disabled{opacity:.5;cursor:default}
#ehcb-replace-dialog button:focus-visible{outline:3px solid #347a49;outline-offset:2px}
#ehcb-replace-dialog .ehcb-primary{background:#9dcc00}
.ehcb-replace-name{display:block;overflow-wrap:anywhere}
.ehcb-replace-compare{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:18px 0}
.ehcb-replace-compare figure{margin:0;min-width:0}
.ehcb-replace-compare figcaption{font-weight:700;margin-bottom:6px}
#ehcb-replace-dialog .ehcb-checker{height:240px;background-color:#fff;background-image:conic-gradient(#e8eae5 25%,transparent 0 50%,#e8eae5 0 75%,transparent 0);background-size:18px 18px;border:1px solid #d7ddd2;border-radius:10px;padding:8px}
#ehcb-replace-dialog .ehcb-checker img{width:100%;height:100%;object-fit:contain}
#ehcb-replace-dialog .ehcb-drop{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;border:2px dashed #9cad8f;border-radius:12px;padding:18px}
#ehcb-replace-dialog .ehcb-dragover{background:#edf8d5;border-color:#4b7219}
#ehcb-replace-dialog small{font-size:13px}
.ehcb-replace-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
@media(max-width:520px){#ehcb-replace-dialog{padding:16px}.ehcb-replace-compare{gap:10px}#ehcb-replace-dialog .ehcb-checker{height:170px}.ehcb-replace-actions button{flex:1;min-width:0}}
/* Row navigation is independent of the image review chips. */
#ehcb-dialog .ehcb-product-selector{--ehcb-product-height:105px;display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:7px;align-items:center;max-width:100%;margin-top:5px}
#ehcb-dialog .ehcb-row-chips{display:flex;gap:8px;overflow-x:scroll;max-width:100%;min-width:0;padding:5px 2px 10px;scrollbar-width:thin;scrollbar-color:#7b9b8c #e7eeea;overscroll-behavior-x:contain}
#ehcb-dialog .ehcb-row-chips::-webkit-scrollbar{height:9px}
#ehcb-dialog .ehcb-row-chips::-webkit-scrollbar-track{background:#e7eeea;border-radius:8px}
#ehcb-dialog .ehcb-row-chips::-webkit-scrollbar-thumb{background:#7b9b8c;border-radius:8px}
#ehcb-dialog .ehcb-row-chips .ehcb-product-chip{flex:0 0 128px;width:128px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;border-radius:10px;padding:7px 6px;white-space:normal;border:2px solid transparent;background:transparent;color:#23463e;text-align:center;min-height:132px;text-transform:none}
#ehcb-dialog .ehcb-product-picture{position:relative;display:grid;place-items:center;width:100%;height:var(--ehcb-product-height);flex:none;border-radius:10px;outline:2px solid #d8e4dd;background:#fff}
#ehcb-dialog .ehcb-product-picture img{display:block;width:100%;height:var(--ehcb-product-height);object-fit:contain;pointer-events:none}
#ehcb-dialog .ehcb-product-placeholder{font-size:11px;line-height:1.3;color:#5c7067}
#ehcb-dialog .ehcb-product-chip[data-row-id="*"] .ehcb-product-placeholder{font-size:34px}
#ehcb-dialog .ehcb-product-name{font-size:11.5px;line-height:1.3;font-weight:650;overflow-wrap:anywhere;white-space:normal;flex:none;width:100%;height:3.9em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;text-overflow:ellipsis}
#ehcb-dialog .ehcb-product-selected{display:none;position:absolute;right:0;top:0;width:21px;height:21px;border-radius:50%;background:#125e4b;color:#fff;font-size:15px;line-height:21px;font-weight:800}
#ehcb-dialog .ehcb-row-chips button[aria-pressed="true"]{background:transparent;border-color:transparent;color:#124e3e}
#ehcb-dialog .ehcb-row-chips button[aria-pressed="true"] .ehcb-product-picture{background:#eaf5ee;outline-color:#125e4b}
#ehcb-dialog .ehcb-row-chips button[aria-pressed="true"] .ehcb-product-selected{display:block}
/* Rail top padding (5) + chip border/padding (2 + 7), then center on the picture only. */
#ehcb-dialog .ehcb-product-selector .ehcb-row-arrow{align-self:start;margin-top:calc(14px + (var(--ehcb-product-height) - 48px)/2);width:36px;height:48px;min-width:0;padding:0;border:1px solid #aac3b4;border-radius:8px;background:#f4f8f5;color:#125e4b;font-size:30px;line-height:1}
#ehcb-dialog .ehcb-row-arrow:disabled{opacity:.3;cursor:default}
#ehcb-dialog .ehcb-product-chip:focus-visible,#ehcb-dialog .ehcb-row-arrow:focus-visible{outline:3px solid #46671b;outline-offset:1px}
@media(max-width:520px){#ehcb-dialog .ehcb-product-selector{gap:4px;--ehcb-product-height:90px}#ehcb-dialog .ehcb-row-chips .ehcb-product-chip{flex-basis:112px;width:112px;min-height:125px}#ehcb-dialog .ehcb-product-name{font-size:11px}}
#ehcb-dialog .ehcb-row-blocks{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:20px 0;border-top:1px solid #dbe5e1}
#ehcb-dialog .ehcb-row-blocks[hidden]{display:none}
#ehcb-dialog .ehcb-row-blocks label{display:grid;gap:5px;font-size:12px}
#ehcb-dialog .ehcb-row-blocks input{width:95px;padding:9px;border:1px solid #a7bdb5;border-radius:7px}
#ehcb-dialog .ehcb-row-blocks button{padding:10px;border:1px solid #125e4b;border-radius:7px;background:#fff;color:#125e4b}
#ehcb-dialog .ehcb-row-blocks button:disabled{opacity:.5}
#ehcb-dialog #ehcb-row-progress{flex-basis:100%;font-size:12px;color:#46675e}
#ehcb-dialog .ehcb-sections { display:flex;gap:8px;margin:0; }
#ehcb-dialog .ehcb-sections button { padding:8px 14px;min-height:42px;border-radius:8px;font-size:14px;line-height:1.3;font-weight:700;background:#f5f8e9;border-color:#557300;white-space:nowrap; }
#ehcb-dialog .ehcb-sections button[aria-pressed="true"] { background:#fff;border-color:#165d34;color:#165d34;box-shadow:inset 0 0 0 1px #165d34; }
#ehcb-dialog .ehcb-index-revision { display:inline-flex; width:max-content; max-width:100%; align-items:center; min-height:28px; padding:4px 9px; border:1px solid #426400; border-radius:999px; background:#f5f8e9; color:#244a1d; font:800 11px/1.2 system-ui,sans-serif; letter-spacing:.04em; white-space:nowrap; }
@media(max-width:700px) {
  #ehcb-dialog .ehcb-sections { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); }
  #ehcb-dialog .ehcb-sections button { min-width:0;min-height:44px;padding:8px 6px;font-size:13px; }
  #ehcb-dialog .ehcb-index-revision { font-size:10px; }
}
/* The enlargement target is a sibling of review/selection controls. */
#ehcb-dialog .ehcb-checker > .ehcb-view-image { position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;box-shadow:none;cursor:zoom-in;touch-action:pan-y; }
#ehcb-dialog .ehcb-view-image:focus-visible { outline:3px solid #125e4b;outline-offset:-3px; }
#ehcb-viewer { box-sizing:border-box;width:min(1150px,calc(100vw - 24px));height:min(900px,calc(100dvh - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;margin:auto;border:1px solid #92ab97;border-radius:16px;background:#fff;color:#172f22;font:14px/1.4 system-ui,sans-serif;overflow:hidden; }
#ehcb-viewer[open] { display:flex;flex-direction:column; }
#ehcb-viewer::backdrop { background:rgb(6 19 12 / .8); }
#ehcb-viewer [hidden] { display:none !important; }
#ehcb-viewer > header { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:#eef6e9;flex:none; }
#ehcb-viewer h2 { margin:0;min-width:0;overflow-wrap:anywhere;font:700 18px/1.35 system-ui,sans-serif;color:inherit;max-height:3.9em;overflow:auto; }
#ehcb-viewer button { min-height:44px;padding:9px 13px;border:1px solid #819b85;border-radius:8px;background:#fff;color:#173b28;font:650 14px/1.3 system-ui,sans-serif;text-transform:none;cursor:pointer; }
#ehcb-viewer [data-view="close"] { flex:none; }
#ehcb-viewer button[aria-pressed="true"] { background:#e3f2df;border-color:#27643c; }
#ehcb-viewer button:disabled { opacity:.5;cursor:default; }
#ehcb-viewer button:focus-visible,#ehcb-viewer .ehcb-viewer-stage:focus-visible { outline:3px solid #347a49;outline-offset:-3px; }
#ehcb-viewer .ehcb-viewer-tools { display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 18px;flex:none;border-bottom:1px solid #cfddce; }
#ehcb-viewer [role="status"] { margin:0 0 0 8px;flex:1 1 180px;overflow-wrap:anywhere;font-size:13px;color:#38543e; }
#ehcb-viewer .ehcb-viewer-stage { min-width:0;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;background-color:#fff;background-image:conic-gradient(#e5e9e2 25%,transparent 0 50%,#e5e9e2 0 75%,transparent 0);background-size:24px 24px; }
#ehcb-viewer .ehcb-viewer-stage img { display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center; }
#ehcb-viewer.ehcb-viewer-actual .ehcb-viewer-stage img { width:auto;height:auto;min-width:0;min-height:0;margin:auto; }
@media(max-width:520px) {
  #ehcb-viewer { width:calc(100vw - 12px);max-width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:12px; }
  #ehcb-viewer > header { padding:10px;gap:8px; }
  #ehcb-viewer h2 { font-size:15px; }
  #ehcb-viewer .ehcb-viewer-tools { padding:8px 10px; }
  #ehcb-viewer [role="status"] { flex-basis:100%;margin:0; }
}
#ehcb-dialog .ehcb-cache-progress { display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;padding:10px 14px;border-radius:8px;background:#eef5e7;color:#234425;font-size:14px; }
#ehcb-dialog .ehcb-cache-progress[hidden] { display:none; }
#ehcb-dialog .ehcb-cache-progress progress { width:min(240px,100%);height:12px;accent-color:#4e7b1b; }
/* Advertising materials share row/review controls; full videos load on demand. */
.ehcb-media-filters,.ehcb-media-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.ehcb-media-filters button[aria-pressed="true"]{background:#175e36!important;color:#fff!important;border-color:#175e36!important}
.ehcb-media-actions button{flex:1;min-width:0;padding:7px 8px}
#ehcb-dialog .ehcb-video-card .ehcb-card-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;width:100%}
#ehcb-dialog .ehcb-video-card .ehcb-media-actions{grid-column:1;grid-row:1;min-width:0}
#ehcb-dialog .ehcb-video-card .ehcb-review{grid-column:2;grid-row:1}
#ehcb-dialog .ehcb-video-card .ehcb-options{grid-column:1/-1;grid-row:2;width:100%}
#ehcb-video-player{width:min(880px,94vw);max-height:94dvh;border:1px solid #ccd8d0;border-radius:14px;padding:18px;color:#17251d;background:#fff}
#ehcb-video-player::backdrop{background:#000a}
#ehcb-video-player header{display:flex;align-items:center;justify-content:space-between;gap:12px}
#ehcb-video-player h2{font-size:18px;overflow-wrap:anywhere;margin:0 0 12px}
#ehcb-video-player video{display:block;width:100%;max-height:65dvh;background:#111;margin:12px 0}
#ehcb-video-player button{padding:9px 14px;border:1px solid #b8cabf;border-radius:7px;background:#f5f8f6;color:#173e2a;cursor:pointer}
#ehcb-export-dialog { box-sizing:border-box; width:min(540px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; padding:24px; border:1px solid #b7c4b1; border-radius:16px; background:#fff; color:#172719; font:15px/1.5 system-ui,sans-serif; box-shadow:0 20px 70px #0006; }
#ehcb-export-dialog::backdrop { background:#102216ad; }
#ehcb-export-dialog h2 { margin:0 0 12px; font:750 24px/1.3 system-ui,sans-serif; }
#ehcb-export-dialog p { margin:12px 0; overflow-wrap:anywhere; }
#ehcb-export-dialog label { display:grid; gap:5px; margin:16px 0 8px; font-weight:700; }
#ehcb-export-dialog input { width:100%; min-width:0; box-sizing:border-box; padding:10px; border:1px solid #739184; border-radius:8px; background:#fff; color:#172719; font:inherit; }
#ehcb-export-dialog .ehcb-export-note { color:#4b5e49; font-size:13px; }
#ehcb-export-dialog .ehcb-export-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:20px; }
#ehcb-export-dialog button { padding:10px 16px; min-height:44px; border:1px solid #73816e; border-radius:8px; background:#fff; color:#172719; font:650 14px/1.4 system-ui,sans-serif; cursor:pointer; }
#ehcb-export-dialog button.ehcb-primary { background:#4e7b1b; border-color:#3f6715; color:#fff; }
#ehcb-export-dialog button:disabled { opacity:.5; cursor:default; }
#ehcb-export-dialog button:focus-visible,#ehcb-export-dialog input:focus-visible { outline:3px solid #46671b; outline-offset:3px; }
@media(max-width:520px) { #ehcb-export-dialog { padding:16px; } #ehcb-export-dialog .ehcb-export-actions > button { flex:1 1 100%; } }

.ehcb-generative{border:1px solid #176c82!important;background:#f1fbfd!important;color:#174858!important;white-space:normal}.ehcb-generative[aria-pressed="true"]{background:#d5f5e6!important;border-color:#28764c!important;color:#194c31!important}
