html.ehcb-modal-open { overflow: hidden; }
#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-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 { grid-column:1 / -1; } #ehcb-dialog .ehcb-bulk-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-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 .ehcb-image > .ehcb-checker { position:relative; }
#ehcb-dialog button.ehcb-review { position:absolute; top:6px; right:6px; z-index:2; width:28px; height:28px; min-height:28px; padding:0; display:grid; place-items:center; border:2px solid #768474; border-radius:5px; background:#fff; color:#1b6531; font:800 23px/1 system-ui,sans-serif; box-shadow:0 1px 5px #0003; 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:36px; height:36px; min-height:36px; } }
#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: 24px 30px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
#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-header button { font-size: 27px; padding: 0 12px; background: transparent; }
#ehcb-dialog .ehcb-header-actions { display:flex; align-items:center; gap:12px; flex-shrink:0; }
#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-actions { width:100%; justify-content:space-between; }
}
#ehcb-dialog .ehcb-content { padding: 22px 30px 30px; }
#ehcb-dialog .ehcb-intro { margin-bottom: 25px; color: #456040; }
#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-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 14px; }
#ehcb-dialog .ehcb-toolbar > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
#ehcb-dialog .ehcb-library .ehcb-toolbar > div { display: block; }
#ehcb-dialog .ehcb-toolbar p { color: #435541; font-size: 13px; }
#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: 25px; padding-top: 4px; }
#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 [data-bank="edit-row"] { margin-left:auto; }
#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:12px 0; 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; gap:8px; margin:0; }
#ehcb-dialog #ehcb-org-status { font-size:13px; color:#2e5b21; }
#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-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, #ehcb-dialog .ehcb-content { padding: 20px 16px; }
  #ehcb-dialog .ehcb-header h2 { font-size: 23px; }
  #ehcb-dialog .ehcb-toolbar { align-items: stretch; flex-direction: column; }
  #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-options { position: relative; margin-top: auto; }
#ehcb-dialog .ehcb-options > button { width: 100%; }
#ehcb-dialog .ehcb-options-list { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(100% + 4px); 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; }
#ehcb-dialog .ehcb-options-list button:hover, #ehcb-dialog .ehcb-options-list button:focus-visible { background: #e6f5ec; }
#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 { margin: 16px 0 12px; }
#ehcb-dialog .ehcb-sticky-controls .ehcb-search { margin:10px 0 0; }
#ehcb-dialog .ehcb-search label { display: block; margin-bottom: 6px; font-weight: 700; }
#ehcb-dialog .ehcb-search > div { display: flex; gap: 10px; }
#ehcb-dialog .ehcb-search input { flex: 1; min-width: 0; width: 100%; border: 1px solid #739184; border-radius: 9px; background: white; color: #173b2e; padding: 11px 13px; font: inherit; }
#ehcb-dialog .ehcb-search input:focus-visible { outline: 3px solid #1d542a; outline-offset: 2px; }
@media(max-width:700px) {
  #ehcb-dialog .ehcb-search > div { flex-wrap: wrap; }
  #ehcb-dialog .ehcb-search input { flex-basis: 100%; }
  #ehcb-dialog .ehcb-search button { margin-left: auto; }
  #ehcb-dialog .ehcb-sticky-controls .ehcb-search > div { flex-wrap:nowrap; gap:6px; }
  #ehcb-dialog .ehcb-sticky-controls .ehcb-search input { flex-basis:auto; font-size:14px; padding:9px; }
  #ehcb-dialog .ehcb-sticky-controls .ehcb-search button { flex-shrink:0; 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}}
