/* Shared public template browser: real, isolated page previews. */
.op-preset-gallery [hidden]{display:none!important}.op-preset-controls{display:grid!important;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(130px,1fr));gap:16px!important;align-items:end}.op-preset-controls label{display:grid;gap:8px;font-size:13px;font-weight:650;color:#35415a;min-width:0}.op-preset-controls input,.op-preset-controls select{width:100%;min-width:0;min-height:48px;padding:11px 13px;border:1px solid #d6dce7;border-radius:10px;color:#1d2942;background:#fff;font-size:15px;font-family:inherit}.op-preset-gallery .op-template-grid{align-items:stretch}.op-preset-gallery .op-template-card{min-width:0;display:flex;flex-direction:column;overflow:hidden}.op-preset-gallery .op-template-preview-link{display:block;flex:1}.op-preset-gallery .op-template-caption{align-items:flex-start}.op-preset-gallery .op-template-caption h3{line-height:1.35;overflow-wrap:anywhere}.op-preset-gallery .op-template-caption p{font-size:13px;line-height:1.7}.op-real-preset-preview,[data-op-preset-preview]{aspect-ratio:10/7;position:relative;overflow:hidden;isolation:isolate;display:grid;place-items:center;background:#eef1f6;border-bottom:1px solid #e4e8ef;font-size:12px;color:#58677a}.op-real-preset-preview iframe{width:1200px!important;height:840px!important;max-width:none!important;position:absolute;left:0;top:0;border:0;transform:scale(var(--op-preview-scale,.3));transform-origin:0 0;pointer-events:none;background:white}.op-preset-gallery img[data-op-preset-thumbnail]{display:block;aspect-ratio:10/7;width:100%;height:auto;object-fit:cover;object-position:top;border-bottom:1px solid #e4e8ef}.op-preset-gallery [data-op-preset-open]{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;background:#fff;border:1px solid #d6dce7;border-radius:9px;font-size:13px;font-weight:650;color:#413aaf;cursor:pointer}.op-preset-gallery [data-op-preset-open]:focus-visible,.op-gallery-dialog button:focus-visible{outline:3px solid #aaa0f1;outline-offset:3px}.op-gallery-dialog{width:min(1160px,calc(100vw - 24px));max-height:calc(100dvh - 30px);border:1px solid #dce2ee;border-radius:18px;padding:24px;background:white;color:#18253c;box-shadow:0 20px 90px #14233d66;font-family:Inter,"Noto Sans Devanagari",system-ui,sans-serif}.op-gallery-dialog::backdrop{background:#12203c9c;backdrop-filter:blur(4px)}.op-gallery-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.op-gallery-dialog-head h2{font-size:22px;line-height:1.4;margin:0}.op-gallery-close{flex:none;width:44px;height:44px;border:1px solid #d6dce7;border-radius:10px;background:white;color:#18253c;font-size:28px;cursor:pointer}.op-gallery-note{font-size:13px;line-height:1.7;color:#617087;margin:14px 0 18px;padding:12px 14px;background:#f5f7fb;border-radius:9px}.op-gallery-full-preview{display:block;width:100%;height:68vh;border:1px solid #dce2ee;border-radius:10px;background:white;margin-bottom:18px}.op-gallery-dialog .op-btn{margin-top:4px}.op-preset-gallery .op-template-tags{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.op-preset-gallery .op-template-tags span{white-space:normal}.op-preset-gallery [data-op-preset-empty]{padding:28px;border:1px dashed #ccd5e4;border-radius:12px;background:#f9faff;color:#58677a}
@media(max-width:900px){.op-preset-controls{grid-template-columns:1fr 1fr!important}}@media(max-width:550px){.op-preset-controls{grid-template-columns:1fr!important}.op-gallery-dialog{padding:16px;width:calc(100vw - 16px)}.op-gallery-dialog-head h2{font-size:19px}.op-gallery-full-preview{height:65vh}.op-gallery-note{font-size:12px}.op-preset-gallery [data-op-preset-open]{width:100%}}
@media(prefers-reduced-motion:reduce){.op-gallery-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.op-preset-gallery .op-template-preview-link[data-op-preset-open]{display:block;width:100%;min-height:0;flex:none;padding:0;border:0;border-radius:0;background:#eef1f6;aspect-ratio:10/7;overflow:hidden}.op-preset-gallery .op-template-thumbnail{display:block;width:100%;height:100%;max-height:none;object-fit:cover;object-position:top}.op-preset-gallery .op-template-preview-live{width:100%;height:100%}.op-preset-gallery .op-template-actions{display:flex;gap:9px;align-items:center;justify-content:space-between;margin-top:auto;padding:14px 20px 20px}.op-preset-gallery .op-template-actions>a{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:13px;font-weight:700;color:#413aaf;text-decoration:none;padding:10px 12px}.op-preset-gallery .op-template-tags{padding:0 20px 8px}.op-preset-gallery .op-template-caption{padding:20px}.op-preset-gallery .op-template-card{border:1px solid #dedee8;border-radius:15px;background:#fff}.op-preset-gallery .op-template-actions>button,.op-preset-gallery .op-template-actions>a{flex:1}
.op-gallery-page-controls{display:flex;align-items:center;gap:16px;margin:12px 0}.op-gallery-page-controls label{font-size:14px;font-weight:650;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.op-gallery-page-controls select{font:inherit;padding:10px 14px;border:1px solid #c7cfdb;border-radius:9px;min-height:44px;background:white;color:#17283b}.op-gallery-dialog [role=status]{font-size:12px;line-height:1.5;color:#4d5d72}.op-gallery-full-preview[hidden]{display:none!important}
