.ch-brand-catalog .ch-brand-catalog-grid{align-items:start!important;gap:14px!important}
.ch-brand-catalog .ch-brand-catalog-grid>li{align-self:start!important;height:auto!important;min-height:0!important;border:0!important;margin-bottom:12px!important}
.ch-brand-catalog .ch-brand-catalog-search input{height:46px!important;min-height:46px!important;box-sizing:border-box}
.ch-brand-catalog .ch-brand-catalog-item{height:auto!important;min-height:112px;align-items:flex-start}
.ch-brand-catalog .ch16-thumb{display:flex!important;flex:0 0 82px!important;flex-direction:column;justify-content:center;gap:5px;width:82px!important;height:auto!important;min-height:84px!important;padding:6px!important;box-sizing:border-box;background:#f5f8f8}
.ch-brand-catalog .ch16-thumb img{max-width:68px!important;max-height:72px!important;width:auto;height:auto;object-fit:contain}
.ch-brand-catalog .ch16-thumb svg{display:block;width:68px;height:62px}
.ch-brand-catalog .ch16-thumb small{font-size:9px!important;line-height:1.2!important;text-align:center;color:#59717b}
.ch16-media .ch16-media-surface{display:block!important;padding:12px!important;background:#f4f7f7!important;border:1px solid #e0e7e8!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important}
body #content .ch4-overview .cp-sheet-image .ch4-media.ch16-media .ch4-media-surface.ch16-media-surface{height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;overflow:visible!important}
.ch16-visual{display:flex;align-items:center;justify-content:center;min-width:0}
.ch16-media .ch16-visual{min-height:155px}
.ch16-media .ch16-visual img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:235px!important;object-fit:contain!important;margin:0 auto!important}
.ch16-media .ch16-package-svg{display:block;width:100%;height:auto;max-height:210px}
.ch16-media-label{font-size:12px!important;font-weight:600;line-height:1.5!important;margin:10px 0 0!important;color:#355563!important;overflow-wrap:anywhere;white-space:normal!important}
.ch16-media .ch4-media-note{font-size:12px!important;margin-top:9px!important}
.ch16-image-pending{display:block;padding:28px 12px;text-align:center;color:#526c79;font-size:13px}
.ch16-drawing{display:block;padding:28px 12px;font-size:14px;line-height:1.5}
.ch16-inline-model{break-inside:avoid;list-style:none;padding:0!important;margin:0 0 12px!important}
.ch16-inline-model>a{display:flex!important;align-items:center;gap:12px;padding:12px!important;border:1px solid #d9e3e5;text-decoration:none!important;overflow-wrap:anywhere}
.ch16-inline-model .ch16-thumb{flex:0 0 68px;width:68px;display:flex;flex-direction:column;align-items:center}
.ch16-inline-model img,.ch16-inline-model svg{width:64px;max-height:64px;object-fit:contain}
.ch16-inline-model small{font-size:9px;color:#59717b;text-align:center}
.ch16-search-media .ch16-visual{width:112px;height:100px;background:#f5f8f8;border:1px solid #e0e7e8}
.ch16-search-media .ch16-visual img,.ch16-search-media .ch16-visual svg{display:block;max-width:100px;max-height:92px;width:auto;height:auto;object-fit:contain}
@media(max-width:600px){.ch16-media .ch16-visual{min-height:130px}.ch16-media .ch16-visual img{max-height:190px!important}.ch16-media .ch16-package-svg{max-height:175px}.ch-brand-catalog .ch16-thumb{flex-basis:74px!important;width:74px!important}.ch-brand-catalog .ch16-thumb img{max-width:60px!important}.ch-brand-catalog .ch16-thumb svg{width:60px}.ch16-search-media .ch16-visual{width:84px;height:84px}.ch16-search-media .ch16-visual img,.ch16-search-media .ch16-visual svg{max-width:76px;max-height:76px}}

/* Suppress legacy synthesized graphics before the manufacturer resolver runs. */
.ch5-illustration svg,.ch7-render svg,.ch16-package-svg{display:none!important}
.cp-sheet-image img[src*="chiper-bare-die-v16.webp"]{display:none!important}
.ch17-original-image{display:flex;align-items:center;justify-content:center;max-width:100%}

/* Clean image presentation and a shared, keyboard-accessible viewer. */
.ch16-media-label,.ch16-thumb small{display:none!important}
.ch17-original-image,.ch12-gallery-stage,.ch19-image-open{cursor:zoom-in}
.ch19-image-open{display:flex;align-items:center;justify-content:center;border:0;padding:0;background:transparent;width:100%;max-width:100%}
.ch19-owned,.ch16-thumb[data-media-kind="photo"]{position:relative;isolation:isolate}
.ch19-owned::after,.ch16-thumb[data-media-kind="photo"]::after{content:"";position:absolute;inset:0;transform:none;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22124%22%20viewBox%3D%220%200%20180%20124%22%3E%3Ctext%20x%3D%2290%22%20y%3D%2270%22%20text-anchor%3D%22middle%22%20transform%3D%22rotate%28-30%2090%2062%29%22%20font-family%3D%22Arial%2Csans-serif%22%20font-weight%3D%22600%22%20font-size%3D%2226%22%20fill%3D%22white%22%20fill-opacity%3D%220.18%22%3ECHIPER%3C%2Ftext%3E%3C%2Fsvg%3E");background-repeat:repeat;background-position:center;background-size:120px 83px;pointer-events:none;z-index:2;text-shadow:none;border-radius:inherit}
.ch16-thumb[data-media-kind="photo"]::after,.ch12-gallery-thumb.ch19-owned::after{background-size:75px 52px}
.ch19-lightbox{box-sizing:border-box;width:min(1100px,94vw);height:min(850px,92dvh);max-width:94vw;max-height:92dvh;padding:0;border:0;border-radius:8px;background:#f4f7f8;color:#173344;box-shadow:0 20px 90px #001b2f66;overflow:hidden}
.ch19-lightbox[open]{display:flex;flex-direction:column}
.ch19-lightbox::backdrop{background:rgba(8,25,38,.78)}
.ch19-toolbar{display:flex;align-items:center;gap:6px;padding:12px;background:#fff;border-bottom:1px solid #dbe4e8;flex:none;flex-wrap:wrap}
.ch19-toolbar .ch19-title{margin-right:auto;overflow-wrap:anywhere;font-size:15px}
.ch19-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;padding:5px 10px;border:1px solid #c4d4dc;border-radius:4px;background:#fff;color:#173344;font:600 16px/1 Arial,sans-serif;cursor:pointer}
.ch19-toolbar button:hover{background:#e9f3f7}
.ch19-toolbar button:focus-visible,.ch19-image-open:focus-visible{outline:3px solid #007f9f;outline-offset:2px}
.ch19-toolbar button[hidden]{display:none}
.ch19-zoom-label{min-width:42px;text-align:center;font-size:12px}
.ch19-view-stage{overflow:auto;flex:1;min-height:0;background:#eaf0f2}
.ch19-view-canvas{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;min-width:100%;min-height:100%;padding:18px;box-sizing:border-box}
.ch19-view-canvas .ch19-view-image{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain;margin:0!important}
.ch19-view-canvas.ch19-owned::after{background-size:220px 152px}
@media(max-width:600px){.ch19-lightbox{width:96vw;max-width:96vw;height:88dvh}.ch19-toolbar{padding:8px;gap:5px}.ch19-toolbar .ch19-title{flex:1 0 100%;font-size:14px}.ch19-toolbar button{min-width:38px;min-height:40px}.ch19-view-canvas{padding:10px}.ch19-view-canvas.ch19-owned::after{background-size:160px 110px}}

/* Restrict the display overlay to opaque photo pixels and its contain box. */
.ch19-owned::after,.ch16-thumb[data-media-kind="photo"]::after{mask-image:var(--ch19-photo-mask);mask-mode:alpha;mask-size:contain;mask-position:center;mask-repeat:no-repeat}
.ch19-view-canvas.ch19-owned::after{inset:18px}
.ch16-thumb[data-media-kind="photo"]::after{inset:6px}
@media(max-width:600px){.ch19-view-canvas.ch19-owned::after{inset:10px}}

/* Image scale is measured against source pixels; never enlarge on initial open. */
.ch19-view-canvas .ch19-view-image{width:var(--ch20-image-width,auto)!important;height:var(--ch20-image-height,auto)!important;max-width:none!important;max-height:none!important;flex:none}
.ch19-view-canvas.ch19-owned::after{mask-size:var(--ch20-image-width,contain) var(--ch20-image-height,contain)}
