.ocp-template-page,
.ocp-template-preview-page {
  background: #f7f8fb;
}

.ocp-template-hero {
  padding: 18px 0;
  color: #fff;
  background: radial-gradient(circle at 84% 12%, rgba(52, 211, 153, .35), transparent 28%), linear-gradient(120deg, #064e3b, #087b47 58%, #0e9a5c);
}

.ocp-template-hero .ocp-public-shell { display: flex; align-items: center; gap: 28px; }
.ocp-template-breadcrumb { display: flex; flex: 0 0 auto; gap: 9px; align-items: center; margin: 0; color: rgba(255,255,255,.78); font-size: 14px; white-space: nowrap; }
.ocp-template-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.ocp-template-kicker, .ocp-template-section-heading > div > span { display: inline-block; color: #d1fae5; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ocp-template-search-wrap { flex: 0 1 580px; min-width: 280px; }
.ocp-template-search { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 5px 14px; border: 1px solid rgba(255,255,255,.32); border-radius: 10px; background: #fff; box-shadow: 0 7px 16px rgba(3, 47, 35, .14); }
.ocp-template-search .ocp-icon { flex: 0 0 auto; width: 18px; height: 18px; color: #087b47; }
.ocp-template-search input { width: 100%; min-width: 0; padding: 4px 0; border: 0; outline: 0; color: #172033; background: transparent; font-size: 14px; }
.ocp-template-search input:focus,
.ocp-template-search input:focus-visible { border: 0; outline: none !important; box-shadow: none !important; }
.ocp-template-search input::placeholder { color: #798493; opacity: 1; }
.ocp-template-search:focus-within { border-color: #d1fae5; box-shadow: 0 0 0 4px rgba(209, 250, 229, .22), 0 7px 16px rgba(3, 47, 35, .14); }
.ocp-template-search-status { min-height: 18px; margin: 7px 2px 0; color: rgba(255,255,255,.88); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.ocp-template-catalog { padding-top: 32px; padding-bottom: 72px; }
.ocp-template-section-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 26px; }
.ocp-template-section-heading > div > span { color: #07833a; }
.ocp-template-section-heading h2 { margin: 6px 0 0; color: #172033; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.ocp-template-section-heading p { max-width: 320px; margin: 0 0 3px; color: #6b7280; line-height: 1.55; }
.ocp-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ocp-template-card { display: block; overflow: hidden; border: 1px solid #e4e8ee; border-radius: 16px; color: inherit; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .07); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.ocp-template-card[hidden] { display: none; }
.ocp-template-empty { margin: 28px 0 0; padding: 22px; border: 1px dashed #cbd5df; border-radius: 12px; color: #687284; text-align: center; background: #fff; }
.ocp-template-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15, 23, 42, .12); }
.ocp-template-thumbnail { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e9edea; }
.ocp-template-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ocp-template-card:hover .ocp-template-thumbnail img { transform: scale(1.035); }
.ocp-template-thumbnail-action { position: absolute; right: 14px; bottom: 14px; padding: 8px 11px; border-radius: 999px; color: #fff; background: rgba(7, 57, 40, .88); font-size: 13px; font-weight: 700; }
.ocp-template-card-body { padding: 18px 18px 19px; }
.ocp-template-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.ocp-template-tags span { padding: 5px 8px; border-radius: 999px; color: #087b36; background: #eaf8f0; font-size: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.ocp-template-tags span + span { color: #87551b; background: #fff5df; }
.ocp-template-card h3 { margin: 13px 0 7px; color: #1d2433; font-size: 20px; line-height: 1.25; }
.ocp-template-card p { min-height: 66px; margin: 0; color: #687284; font-size: 14px; line-height: 1.58; }
.ocp-template-cta { display: inline-flex; gap: 8px; align-items: center; margin-top: 17px; color: #087b36; font-size: 14px; font-weight: 800; }
.ocp-template-cta:hover { text-decoration: underline; }

.ocp-template-preview-page { min-height: calc(100vh - 250px); padding: 22px max(24px, calc((100vw - 1440px) / 2)); }
.ocp-template-preview-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; max-width: 1440px; margin: 0 auto 14px; padding: 13px 16px; border: 1px solid #e3e8e5; border-radius: 13px; background: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .06); }
.ocp-template-back-link, .ocp-template-fullscreen-link { display: inline-flex; align-items: center; gap: 7px; color: #087b36; font-size: 14px; font-weight: 750; }
.ocp-template-fullscreen-link { justify-self: end; }
.ocp-template-back-link:hover, .ocp-template-fullscreen-link:hover { text-decoration: underline; }
.ocp-template-preview-title { text-align: center; }
.ocp-template-preview-title strong, .ocp-template-preview-title span { display: block; }
.ocp-template-preview-title strong { color: #1d2433; font-size: 15px; }
.ocp-template-preview-title span { margin-top: 2px; color: #778090; font-size: 12px; }
.ocp-template-frame-wrap { max-width: 1440px; height: max(760px, calc(100vh - 230px)); margin: 0 auto; overflow: hidden; border: 1px solid #dfe5e2; border-radius: 13px; background: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, .08); }
.ocp-template-preview-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

@media (max-width: 980px) {
  .ocp-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .ocp-template-hero { padding: 16px 0; }
  .ocp-template-hero .ocp-public-shell { display: block; }
  .ocp-template-breadcrumb { margin-bottom: 12px; }
  .ocp-template-search-wrap { width: 100%; min-width: 0; }
  .ocp-template-search { width: 100%; min-width: 0; min-height: 42px; padding: 5px 13px; border-radius: 10px; }
  .ocp-template-search input { font-size: 15px; }
  .ocp-template-catalog { padding-top: 32px; padding-bottom: 44px; }
  .ocp-template-section-heading { display: block; margin-bottom: 20px; }
  .ocp-template-section-heading p { margin-top: 11px; }
  .ocp-template-grid { grid-template-columns: 1fr; gap: 16px; }
  .ocp-template-card p { min-height: 0; }
  .ocp-template-preview-page { padding: 12px; }
  .ocp-template-preview-toolbar { grid-template-columns: 1fr auto; padding: 12px; gap: 10px; }
  .ocp-template-preview-title { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .ocp-template-frame-wrap { height: max(620px, calc(100vh - 250px)); border-radius: 10px; }
}
