/* One floating, preview-only surface; it never replaces the selected gallery. */
.ih-feature-preview{position:fixed;z-index:120;width:340px;overflow:hidden;border:1px solid #e7e7e3;border-radius:16px;background:#fff;color:#232425;box-shadow:0 14px 42px rgb(0 0 0 / 14%),0 3px 9px rgb(0 0 0 / 5%);text-align:left}
.ih-feature-preview[hidden]{display:none}
.ih-feature-preview-media{position:relative;aspect-ratio:1.7;overflow:hidden;background:#f4f4f1;isolation:isolate}
.ih-feature-preview-media>img,.ih-feature-preview-media>video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.ih-feature-preview-media>video{object-fit:contain;background:#171717}
.ih-feature-preview-media[data-kind="slides"]>img{object-fit:contain;background:#f4f4f1;padding:9px}
.ih-feature-preview-copy{padding:15px 17px 17px}
.ih-feature-preview-copy strong{display:block;font-family:var(--brand-font-heading);font-size:19px;line-height:1.3;font-weight:600;letter-spacing:-.02em}
.ih-feature-preview-copy p{margin:6px 0 0;font-size:13px;line-height:1.55;color:#62625d}
.ih-feature-frame-wrap{position:absolute;inset:0;z-index:1;opacity:0;transition:opacity 180ms ease}
.ih-feature-frame-wrap.is-ready{opacity:1}
.ih-feature-frame-wrap iframe{display:block;border:0;max-width:none;transform-origin:0 0;pointer-events:none;background:#fff}
.ih-feature-preview-media .ih-feature-compare-after{clip-path:inset(0 0 0 50%);animation:ih-feature-reveal 6s ease-in-out infinite}
.ih-feature-compare-divider{position:absolute;z-index:2;left:50%;top:0;bottom:0;width:2px;background:#fff;animation:ih-feature-divider 6s ease-in-out infinite}
.ih-feature-tool-stage{height:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:7px;padding:14px 18px;background:#f7f7f4}
.ih-feature-tool-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;background:#fff;border-radius:8px;animation:ih-feature-tool-float 5s ease-in-out var(--tool-delay) infinite}
.ih-feature-tool-stage img{display:block;width:54px;height:27px;object-fit:contain;max-width:80%}
.ih-feature-tool-stage span{font-size:9px;font-weight:500;line-height:1.2;color:#555550;white-space:nowrap}
@keyframes ih-feature-tool-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes ih-feature-reveal{0%,100%{clip-path:inset(0 0 0 18%)}50%{clip-path:inset(0 0 0 82%)}}
@keyframes ih-feature-divider{0%,100%{left:18%}50%{left:82%}}
@media(prefers-reduced-motion:reduce){.ih-feature-preview *{animation:none!important;transition:none!important}}
/* Legible office samples use the same visual scale instead of a shrunken app. */
.ih-office-peek{height:100%;padding:13px 16px 15px;background:#f0f4fa;font-size:11px;line-height:1.5;color:#354258}
.ih-office-peek-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:10px;font-weight:600}
.ih-office-peek-bar>span:last-child{font-size:9px;font-weight:400;opacity:.65}
.ih-doc-peek-paper{padding:13px 15px;background:#fff;border-radius:5px;box-shadow:0 3px 10px #34435c0a}
.ih-doc-peek-paper>strong{display:block;font-size:13px;color:#26364c;margin-bottom:10px}
.ih-doc-peek-paper p{margin:6px 0;font-size:11px;line-height:1.5}
.ih-doc-edit{background:#ffede5;color:#b3552c;border-bottom:1px solid #dc8b66;padding:1px 2px}
.ih-doc-peek-status{display:flex;align-items:center;gap:5px;margin-top:12px;font-size:10px;color:#6b7483}
.ih-doc-peek-status>span{display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#eaf0f7;color:#8596ab}
.ih-doc-peek-status b{font-weight:500}
.ih-office-peek[data-step="1"] .ih-doc-edit{background:#e1f4e8;color:#287248;border-color:#8cc4a2}
.ih-office-peek[data-step="1"] .ih-doc-peek-status{color:#287248}
.ih-office-peek[data-step="1"] .ih-doc-peek-status>span{background:#e1f4e8;color:#287248}
.ih-office-peek-sheet{background:#edf5f0;color:#355b49}
.ih-sheet-peek-content{display:grid;grid-template-columns:1.1fr 1fr;gap:11px;align-items:stretch}
.ih-sheet-peek-table{background:#fff;border:1px solid #dae7df;border-radius:5px;overflow:hidden}
.ih-sheet-peek-table>div{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #e7eee9}
.ih-sheet-peek-table>div:last-child{border-bottom:0}
.ih-sheet-peek-table span,.ih-sheet-peek-table b,.ih-sheet-peek-table strong{padding:7px 6px;font-size:10px;white-space:nowrap;font-weight:400}
.ih-sheet-peek-table b{background:#e1eee6;font-weight:600}
.ih-sheet-peek-row strong{background:#edf7f0;outline:1px solid #82b297;outline-offset:-1px;transition:background 500ms ease}
.ih-sheet-peek-chart{padding:8px 8px 3px;background:#fff;border-radius:5px}
.ih-sheet-peek-chart>span{font-size:10px;font-weight:600}
.ih-sheet-peek-chart>div{height:85px;display:flex;align-items:flex-end;justify-content:space-around;gap:9px;padding:8px 7px 0;border-bottom:1px solid #dbe7df}
.ih-sheet-peek-chart i{width:20px;height:var(--bar);background:#acd2ba;border-radius:3px 3px 0 0;transition:height 950ms ease,background 950ms ease}
.ih-sheet-peek-chart footer{text-align:center;font-size:8px;line-height:20px;color:#7c8d81}
.ih-office-peek[data-step="1"] .ih-sheet-peek-last{height:96%;background:#4c9a6b}
.ih-office-peek[data-step="1"] .ih-sheet-peek-row strong{background:#d7f0e0}
.ih-office-peek-pdf{background:#faf0ef;color:#7d4848}
.ih-pdf-peek-content{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}
.ih-pdf-peek-page{position:relative;background:#fff;padding:11px 10px 18px;border-radius:4px;box-shadow:0 3px 9px #8244440a}
.ih-pdf-peek-page>span{display:block;font-size:11px;font-weight:600;color:#494747;margin-bottom:10px}
.ih-pdf-peek-page>i{display:block;height:3px;margin:7px 0;background:#eae7e5;width:100%;border-radius:3px}
.ih-pdf-peek-page>i:nth-of-type(even){width:78%}
.ih-pdf-peek-highlight{font-size:9px;white-space:nowrap;background:#f8f0d8;color:#655c40;padding:3px 2px;transition:background 700ms ease}
.ih-pdf-peek-page small{position:absolute;right:9px;bottom:5px;font-size:8px;color:#a19b97}
.ih-pdf-peek-summary{padding:10px 8px;background:#fff;border-radius:5px;border:1px solid #efdfdb}
.ih-pdf-peek-summary strong{font-size:11px;color:#7d4848}
.ih-pdf-peek-summary p{font-size:10px;color:#64605d;line-height:1.7;margin:7px 0}
.ih-pdf-peek-summary b{font-size:19px;color:#9d5454}
.ih-pdf-peek-summary>span{font-size:9px;color:#a97870;transition:background 700ms ease;padding:2px 3px;border-radius:3px}
.ih-office-peek[data-step="1"] .ih-pdf-peek-highlight{background:#f6d9cb}
.ih-office-peek[data-step="1"] .ih-pdf-peek-summary>span{background:#f6d9cb;color:#814636}
.ih-slide-peek{position:relative;height:100%;padding:13px 17px 23px;background:#f6f0e7}
.ih-slide-peek>img{position:relative;display:block;width:100%;height:100%;object-fit:contain;background:#fff;border:1px solid #e9dfd0;border-radius:4px;box-shadow:0 4px 10px #7e653316}
.ih-slide-peek-pager{position:absolute;bottom:9px;left:0;right:0;display:flex;justify-content:center;gap:5px}
.ih-slide-peek-pager i{width:5px;height:5px;border-radius:5px;background:#d6c9b6;transition:width 350ms ease,background 350ms ease}
.ih-slide-peek-pager i.is-current{width:17px;background:#b88c48}
/* Match the complete live workflow viewport instead of clipping its lower controls. */
.ih-feature-preview-media[data-kind="cleanup"]{aspect-ratio:820/740}

.ih-office-peek-bar>span:only-child{font-size:10px;font-weight:600;opacity:1}
.ih-feature-preview-media{width:100%}

/* An opaque stage prevents the fallback still showing around a fitted live frame. */
.ih-feature-preview-media[data-kind="cleanup"],.ih-feature-cleanup-frame{background:#f4f6fa}
