.product-example-figure { align-self: center; margin: 0; min-width: 0; }
.product-example-figure img { width: 100%; display: block; height: auto; border: 1px solid #28212e23; border-radius: 16px; }
.product-example-figure figcaption { margin: 9px 2px 0; font-size: 13px; color: #625b6b; }
@media (max-width: 640px) {
  .template-library .library-switcher { flex-wrap: wrap; }
  .template-library .library-views { display: flex; flex-wrap: wrap; justify-content: space-between; flex: 1 0 100%; gap: 3px 7px; }
  .template-library .library-watch { margin-left: auto; }
}
.product-explorer {
  --preview-line: #d9d6d9;
  color: #242429;
  font-family: Urbanist, Arial, sans-serif;
}
.product-explorer.is-ready {
  display: grid;
  grid-template-columns: minmax(195px, .34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3.2vw, 52px);
}
.preview-picker-label { margin: 0 0 12px; color: #6e6477; font: 600 12px/1.4 Urbanist, Arial, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.preview-tabs { display: grid; max-height: 560px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b9adca transparent; padding-right: 8px; }
.preview-tabs button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: clamp(45px, 4vw, 58px); padding: 10px 12px;
  border: 0; border-bottom: 1px solid var(--preview-line); border-radius: 0;
  background: transparent; box-shadow: none; color: #514d55; text-align: left;
  font: 600 clamp(16px, 1.45vw, 20px)/1.25 Urbanist, Arial, sans-serif;
  letter-spacing: -.025em; cursor: pointer;
}
.preview-tabs button span { opacity: 0; }
.preview-tabs button:hover { color: #252228; background: #eeebef; }
.preview-tabs button[aria-selected="true"] { color: #251f2d; background: #e6e0ec; border-radius: 9px; border-bottom-color: transparent; }
.preview-tabs button[aria-selected="true"] span { opacity: 1; }
.preview-select { display: none; }
.preview-panel { min-width: 0; margin: 0 0 32px; }
.is-ready .preview-panel { margin: 0; }
.preview-panel[hidden], .preview-picker[hidden] { display: none; }
.product-preview-mat {
  padding: clamp(18px, 2.2vw, 32px);
  border-radius: clamp(14px, 1.7vw, 24px);
  background: linear-gradient(145deg, color-mix(in srgb, var(--preview-tint), white 36%), var(--preview-tint));
  border: 1px solid #27233012;
}
.library-intro { scroll-margin-top: 24px; }
@media (min-width: 761px) {
  .product-preview-mat .preview-enlarge { width: min(100%, max(540px, 86svh)); margin-inline: auto; }
}
.preview-enlarge { display: block; position: relative; color: inherit; cursor: zoom-in; }
.product-preview-mat img {
  width: 100%; height: auto; display: block; aspect-ratio: var(--preview-ratio, 8 / 5);
  object-fit: contain; background: #fff; border-radius: 7px;
  box-shadow: 0 1px 2px #24212a21, 0 14px 28px -15px #29213050;
}
.preview-enlarge-label {
  position: absolute; bottom: 9px; right: 9px; display: inline-flex; align-items: center;
  color: #fff; background: #28262c; padding: 7px 11px; border-radius: 20px;
  box-shadow: 0 1px 4px #17111933; font: 600 13px/1.2 Urbanist, Arial, sans-serif;
}
@media (hover: hover) {
  .preview-enlarge-label { opacity: 0; }
  .preview-enlarge:is(:hover, :focus-visible) .preview-enlarge-label { opacity: 1; }
}
.preview-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 19px 1px 0; }
.preview-caption h3 { margin: 0; font: 600 clamp(23px, 2.1vw, 31px)/1.1 Urbanist, Arial, sans-serif; letter-spacing: -.04em; }
.preview-caption p { max-width: 53ch; margin: 7px 0 0; color: #534f59; font: 500 16px/1.45 Urbanist, Arial, sans-serif; }
.preview-caption .button { flex: none; margin: 0; }
.preview-kind { font-size: 11px; color: #716878; margin: 10px 1px 0; }
.preview-workbench { background: #fafbfa; border: 1px solid #fff; border-radius: 12px; box-shadow: 0 12px 26px -16px #29213050; overflow: hidden; }
.workbench-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid #e8e6e8; font: 600 12px/1.3 Urbanist, Arial, sans-serif; color: #69616e; background: #fff; }
.workbench-bar small { margin-left: auto; font-size: 10px; font-weight: 500; }
.product-preview-mat .workbench-brand { flex: none; width: 80px; height: auto; aspect-ratio: auto; border-radius: 0; background: transparent; box-shadow: none; }
.workbench-content { padding: clamp(18px, 2vw, 26px); }
.workbench-eyebrow { color: #78628d; font: 600 10px/1.4 Urbanist, Arial, sans-serif; letter-spacing: .11em; margin: 0 0 10px; }
.workbench-content h4 { max-width: 28ch; font: 600 clamp(23px, 2.3vw, 32px)/1.12 Urbanist, Arial, sans-serif; letter-spacing: -.04em; margin: 0 0 20px; }
.workbench-rows { display: grid; gap: 9px; }
.workbench-rows > div { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border: 1px solid #e5e2e7; border-radius: 10px; background: #fff; }
.workbench-number { font-size: 11px; color: #776985; align-self: flex-start; margin-top: 2px; }
.workbench-rows strong { display: block; color: #332b39; font: 600 16px/1.2 Urbanist, Arial, sans-serif; }
.workbench-rows small { display: block; color: #706775; font: 500 12px/1.45 Urbanist, Arial, sans-serif; margin-top: 4px; }
.preview-how { margin-top: 20px; border-top: 1px solid #d9d2df; border-bottom: 1px solid #d9d2df; }
.preview-how summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 1px; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.preview-how summary::-webkit-details-marker { display: none; }
.preview-how[open] summary span { transform: rotate(45deg); }
.preview-how ol { padding: 0; margin: 3px 0 17px; list-style: none; counter-reset: preview-step; display: grid; gap: 10px; }
.preview-how li { counter-increment: preview-step; display: flex; align-items: baseline; gap: 12px; font-size: 14px; line-height: 1.5; color: #59505f; }
.preview-how li::before { content: '0' counter(preview-step); font-size: 10px; color: #80708d; }
.preview-how > p { font-size: 12px; line-height: 1.6; color: #756b7c; margin: 0 0 16px; }
.preview-related { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 15px; }
.preview-related a { color: #504359; font-size: 13px; font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.preview-related a:hover { color: #2e153e; }
.preview-select select:focus-visible, .preview-tabs button:focus-visible, .preview-enlarge:focus-visible,
.preview-viewer button:focus-visible { outline: 2px solid #735490; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .is-ready .preview-panel:not([hidden]) { animation: preview-appear .24s ease-out; }
  @keyframes preview-appear { from { opacity: .45; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
.preview-viewer {
  box-sizing: border-box; width: min(1250px, calc(100% - 32px)); max-width: none;
  max-height: 94dvh; padding: 0; margin: auto; border: 1px solid #d8d4de;
  border-radius: 16px; background: #f8f7f9; color: #26242a; overflow: hidden;
  box-shadow: 0 20px 90px #12101e55; font-family: Urbanist, Arial, sans-serif;
}
.preview-viewer::backdrop { background: #19161fcc; }
.preview-viewer header { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-bottom: 1px solid #dedbe2; }
.preview-viewer h2 { flex: 1; margin: 0; font: 650 clamp(16px, 2vw, 21px)/1.2 Urbanist, Arial, sans-serif; letter-spacing: -.025em; }
.preview-viewer button { min-height: 38px; padding: 6px 13px; border: 1px solid #d4cfd9; border-radius: 22px; background: #fff; color: #26242a; font: 600 14px Urbanist, Arial, sans-serif; cursor: pointer; }
.preview-viewport { max-height: calc(94dvh - 65px); overflow: auto; overscroll-behavior: contain; }
.preview-viewport img { display: block; margin: auto; width: 100%; height: auto; max-height: calc(94dvh - 65px); object-fit: contain; }
.preview-viewport.is-zoomed img { width: auto; max-width: none; max-height: none; margin: 0; }
html:has(.preview-viewer[open]) { overflow: hidden; }
@media (max-width: 880px) { .preview-caption { flex-wrap: wrap; gap: 14px; } }
@media (max-width: 760px) {
  .product-explorer.is-ready { display: block; }
  .preview-tabs { display: none; }
  .preview-picker-label { display: none; }
  .preview-select { display: grid; gap: 6px; margin-bottom: 14px; color: #545059; font: 600 14px Urbanist, Arial, sans-serif; }
  .preview-select select { width: 100%; min-height: 46px; padding: 8px 12px; background: #fff; border: 1px solid #cdc7d3; border-radius: 10px; color: #261f2b; font: 600 17px Urbanist, Arial, sans-serif; }
  .product-preview-mat { padding: clamp(10px, 2.7vw, 20px); }
  .preview-enlarge-label { bottom: 5px; right: 5px; }
  .preview-viewer { width: calc(100% - 12px); }
}
/* Product previews keep the same comfortable frame across the workspace. */
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.preview-toolbar[hidden] { display: none; }
.preview-toolbar p { margin: 0; color: #665e70; font: 600 13px/1.4 Urbanist, Arial, sans-serif; }
.preview-toolbar > div { display: flex; align-items: center; gap: 7px; }
.preview-position { min-width: 48px; color: #776c83; font: 600 11px/1 Urbanist, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.preview-toolbar .preview-navigate { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 1px solid #606063; border-radius: 50%; background: linear-gradient(145deg,#424244,#242426); color: #fff; box-shadow: inset 0 1px #ffffff55, inset 0 -3px #101012, 0 3px 5px #0002; font: 500 19px/1 Urbanist,Arial,sans-serif; cursor: pointer; }
.preview-navigate:hover { transform: translateY(-1px); }
.preview-navigate:focus-visible { outline: 2px solid #735490; outline-offset: 3px; }
.product-preview-mat { background: radial-gradient(ellipse at 20% 0%,#ffffff80,transparent 66%),linear-gradient(145deg,color-mix(in srgb,var(--preview-tint),white 32%),var(--preview-tint)); box-shadow: inset 0 1px 0 #ffffffad; }
.product-preview-mat .preview-enlarge { width: 100%; }
.preview-enlarge-label { opacity: 1; }
.product-example-figure { padding: 14px; border: 1px solid #fff; border-radius: 22px; background: linear-gradient(145deg,#f8f6fb,#e7e3ef); box-shadow: 0 14px 44px -28px #39304766; }
.product-example-figure img { border-radius: 10px; object-fit: contain; aspect-ratio: var(--preview-ratio, 8 / 5); }
@media (max-width: 760px) {
 .preview-toolbar { margin-bottom: 12px; }
 .product-preview-mat { padding: 8px; }
 .preview-caption h3 { font-size: 25px; }
 .preview-caption p { font-size: 15px; }
 .product-example-figure { padding: 8px; border-radius: 16px; }
}
