.cc-image-viewer{width:min(1180px,94vw);max-width:none;max-height:94dvh;margin:auto;padding:0;border:1px solid #d8e0d0;border-radius:16px;background:#fbfcf6;color:#354c38;box-shadow:0 24px 100px #15282166;overflow:hidden}
.cc-image-viewer::backdrop{background:#182a248c;backdrop-filter:blur(4px)}
.cc-image-viewer:not([open]){display:none}
.cc-image-viewer[open]{display:flex;flex-direction:column}
.cc-image-viewer-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 24px 14px;flex:none}
.cc-image-viewer-head>div{min-width:0}.cc-image-viewer-head span{color:#819077;font-size:11px;letter-spacing:1px}
.cc-image-viewer-head h2{margin:5px 0 0;font-size:21px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
.cc-image-viewer-head>button{width:36px;height:36px;flex:none;border:1px solid #d8e1ce;border-radius:50%;color:#557345;background:#edf2e5;font:26px/1 sans-serif}
.cc-image-viewer-tools{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:0 24px 8px;flex:none}
.cc-image-viewer-tabs{display:flex;gap:4px;padding:4px;border-radius:8px;background:#e9efdf}
.cc-image-viewer-tabs button,.cc-image-viewer-size{padding:8px 12px;border-radius:6px;background:transparent;color:#6a805c;font-size:12px}
.cc-image-viewer-tabs .active{background:#2c5544;color:white}.cc-image-viewer-tabs button:disabled{opacity:.4;cursor:default}
.cc-image-viewer-size{border:1px solid #cbd8bd;background:#f3f7eb;color:#506e41}
.cc-image-viewer button{cursor:pointer}.cc-image-viewer button:focus-visible,.cc-image-viewer-viewport:focus-visible,.cc-image-viewer a:focus-visible{outline:2px solid #71905b;outline-offset:2px}
.cc-image-viewer-status{padding:0 24px 10px;color:#7c896e;font-size:11px;line-height:1.7;flex:none}
.cc-image-viewer-viewport{display:flex;align-items:center;justify-content:center;min-height:130px;min-width:0;padding:16px;overflow:auto;overscroll-behavior:contain;background:#e8ebe0;flex:1}
.cc-image-viewer-viewport>img,.cc-image-viewer-viewport>canvas{display:block;flex:none;width:auto;height:auto;max-width:100%;max-height:calc(94dvh - 225px);object-fit:contain;box-shadow:0 4px 20px #26332216}
.cc-image-viewer-viewport.is-actual-size{display:block;max-height:calc(94dvh - 225px)}
.cc-image-viewer-viewport.is-actual-size>img,.cc-image-viewer-viewport.is-actual-size>canvas{width:auto;height:auto;max-width:none;max-height:none;margin:auto}
.cc-image-viewer-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 24px;color:#78866b;font-size:10px;line-height:1.7;flex:none}
.cc-image-viewer-foot a{color:#587249;text-decoration:underline;text-underline-offset:3px;flex:none}
.cc-image-viewer-usage{margin:0;padding:0 24px 14px;color:#64735c;font-size:11px;line-height:1.7;flex:none;overflow-wrap:anywhere}
.cc-image-viewer-usage[hidden]{display:none}
.cc-image-viewer-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cc-image-viewer .cc-image-viewer-download{min-height:44px;padding:10px 15px;border:1px solid #19283f;border-radius:8px;background:#19283f;color:#fff;font-size:12px;font-weight:600}
.cc-image-viewer .cc-image-viewer-download[hidden]{display:none}
.cc-image-viewer .cc-image-viewer-download:disabled{opacity:.5;cursor:wait}
.cc-image-viewer-tabs{flex-wrap:wrap}.cc-image-viewer-tools button{min-height:44px}
.cc-image-viewer-head>button{width:44px;height:44px}.cc-image-viewer-status{overflow-wrap:anywhere}
@media(max-width:580px){
  .cc-image-viewer{width:calc(100vw - 16px);max-height:96dvh;border-radius:12px}
  .cc-image-viewer-head{padding:15px 14px 10px;gap:10px}.cc-image-viewer-head h2{font-size:16px}
  .cc-image-viewer-tools{padding:0 14px 8px}.cc-image-viewer-tools button{padding:8px;font-size:11px}
  .cc-image-viewer-status{padding:0 14px 10px;font-size:10px}.cc-image-viewer-viewport{padding:10px}
  .cc-image-viewer-viewport>img,.cc-image-viewer-viewport>canvas{max-height:calc(96dvh - 260px)}
  .cc-image-viewer-viewport.is-actual-size{max-height:calc(96dvh - 260px)}
  .cc-image-viewer-foot{padding:10px 14px;align-items:flex-start;flex-wrap:wrap;font-size:10px}
  .cc-image-viewer-usage{padding:0 14px 12px;font-size:10px}
}
