/* One grid shared by loaded detail and its skeleton; native fields own controls. */
.effect-detail-shell.effect-detail-refresh {
  --detail-gap: 24px;
  display: grid !important;
  grid-template-columns: minmax(0, 1.8fr) minmax(360px, 1fr);
  grid-template-rows: auto minmax(24px, 1fr) auto auto auto;
  grid-template-areas:
    "preview heading" "preview space" "preview intro" "preview form" "preview action";
  column-gap: 32px;
  row-gap: 16px;
  padding: 0 24px 0 0;
  min-width: 0;
  min-height: 100dvh;
  overflow-y: auto !important;
  overflow-x: clip !important;
  background: var(--app-page, #090b0b) !important;
  color: var(--app-text-1, #f4f4f4);
  font-family: "Helvetica", Arial, sans-serif;
  font-weight: 700;
  overscroll-behavior: contain;
}
.effect-detail-shell.effect-detail-refresh.effect-detail-workspace {
  min-height: 620px;
}
.effect-detail-shell.effect-detail-refresh
  :is(.effect-detail-frame, .effect-detail-scroll, .effect-detail-grid) {
  display: contents !important;
}
.effect-detail-shell.effect-detail-refresh
  :is(
    .effect-detail-actions,
    .effect-detail-ambient,
    .effect-detail-preview-copy,
    .effect-detail-preview-top-scrim,
    .effect-detail-preview-bottom-scrim,
    .effect-howto-dock,
    .effect-detail-form-heading,
    .effect-preview-section-title
  ) {
  display: none !important;
}
.effect-detail-shell.effect-detail-refresh .effect-detail-preview {
  grid-area: preview;
  position: sticky !important;
  top: 0;
  align-self: start;
  width: 100% !important;
  height: 100dvh !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 18px;
}
.effect-detail-shell.effect-detail-refresh .effect-detail-preview-media :is(video, img) {
  object-fit: contain !important;
}
.effect-detail-shell.effect-detail-refresh .effect-detail-preview-media > div {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
.effect-detail-shell.effect-detail-refresh .effect-detail-preview-ambient {
  filter: blur(24px);
  transform: scale(1.1);
  background-size: cover;
  background-position: center;
  opacity: 0.65;
}
.effect-detail-shell.effect-detail-refresh .effect-detail-form {
  grid-area: form;
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.effect-detail-shell.effect-detail-refresh .effect-detail-cta {
  grid-area: action;
  position: sticky !important;
  bottom: 0;
  padding: 8px 0 20px !important;
  background: var(--app-page, #090b0b);
  z-index: 20;
}
.effect-detail-shell.effect-detail-refresh .effect-detail-cta-button {
  min-height: 54px;
  border-radius: 16px;
  font-weight: 700;
}
.effect-detail-shell.effect-detail-refresh :is(button, input, textarea, select, label),
.effect-detail-shell.effect-detail-refresh .effect-detail-form :is(p, span) {
  font-family: "Helvetica", Arial, sans-serif;
  font-weight: 700;
}
.effect-detail-shell.effect-detail-refresh
  .effect-detail-form
  :is(input:not([type="file"]), textarea) {
  font-size: 16px;
}
.effect-detail-shell.effect-detail-refresh .effect-preset-rail {
  gap: 10px;
  padding-bottom: 8px;
}
.effect-detail-shell.effect-detail-refresh .effect-preset-card {
  min-width: 112px;
  width: 112px;
  height: 126px;
  padding: 5px;
}
.effect-detail-shell.effect-detail-refresh .effect-preset-label {
  font-size: 12px !important;
  line-height: 1.25;
  white-space: normal;
  min-height: 30px;
  display: grid;
  place-content: center;
}
.effect-detail-shell.effect-detail-refresh .effect-preset-card--large {
  min-width: 140px;
  width: 140px;
  height: 164px;
}
.effect-detail-shell.effect-detail-refresh [aria-haspopup="listbox"] .uppercase {
  font-size: 12px;
}
.effect-detail-shell.effect-detail-refresh .effect-detail-examples {
  margin-bottom: 16px;
}
.effect-detail-examples summary {
  min-height: 44px;
  cursor: pointer;
}
.effect-chrome-heading {
  grid-area: heading;
  padding: 24px 52px 0 0;
  align-self: start;
}
.effect-chrome-heading > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--app-text-2, #aaa);
  font-size: 12px;
}
.effect-chrome-heading h1 {
  font-family: "Gotham", "Helvetica", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin: 10px 0 0;
}
.effect-chrome-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 31;
}

.effect-chrome-share {
  grid-area: preview;
  position: sticky;
  top: 12px;
  justify-self: end;
  align-self: start;
  display: grid;
  place-items: center;
  margin: 12px;
  z-index: 5;
}
.effect-glass-glyph {
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
}
.effect-chrome-intro {
  grid-area: intro;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.effect-chrome-intro h2 {
  font-family: "Gotham", "Helvetica", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.effect-chrome-intro button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 12px;
  color: var(--app-text-2, #aaa);
  background: transparent;
  border: 0;
}
.effect-chrome-media {
  grid-area: preview;
  z-index: 4;
  align-self: end;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(transparent, #0009);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}
.effect-chrome-media > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  pointer-events: auto;
}
.effect-chrome-media-control {
  display: inline-flex;
  min-width: 84px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(18, 21, 20, 0.78);
  border: 0;
  color: inherit;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.effect-chrome-media-control:hover {
  background: rgba(31, 35, 33, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.effect-chrome-media-control:active {
  transform: scale(0.96);
}
.effect-chrome-media-control svg {
  flex: none;
}
.effect-detail-shell.effect-detail-refresh :is(button, input, textarea):focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}
.effect-skeleton-heading,
.effect-skeleton-preview,
.effect-skeleton-field,
.effect-skeleton-action {
  background: var(--app-surface, #1a1d1b);
  border-radius: 14px;
}
.effect-skeleton-heading {
  height: 58px;
}
.effect-skeleton-preview {
  grid-area: preview;
  height: 100dvh;
}
.effect-skeleton-field {
  height: 128px;
  margin-bottom: 16px;
}
.effect-skeleton-action {
  grid-area: action;
  min-height: 54px;
  margin-bottom: 20px;
}
@media (prefers-reduced-motion: no-preference) {
  .effect-detail-shell.effect-detail-refresh[aria-busy="true"]
    :is(
      .effect-skeleton-heading,
      .effect-skeleton-preview,
      .effect-skeleton-field,
      .effect-skeleton-action
    ) {
    animation: effect-detail-pulse 1.5s ease-in-out infinite alternate;
  }
}
@keyframes effect-detail-pulse {
  to {
    opacity: 0.5;
  }
}
@media (max-width: 760px) {
  .effect-detail-shell.effect-detail-refresh {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas: "heading" "preview" "intro" "form" "action";
    gap: 16px;
    padding: 0 16px calc(104px + env(safe-area-inset-bottom));
    align-content: start;
  }
  .effect-detail-shell.effect-detail-refresh .effect-detail-preview, .effect-skeleton-preview {
    position: relative !important;
    height: clamp(224px, 64vw, 282px) !important;
    border-radius: 16px;
  }
  .effect-chrome-heading {
    padding-top: 24px;
    min-height: 92px;
  }
  .effect-chrome-heading h1 {
    font-size: 23px;
  }
  .effect-chrome-close {
    top: 18px;
  }
  .effect-chrome-share {
    position: relative;
    top: auto;
    margin: 10px;
  }
  .effect-chrome-intro {
    margin-top: 0;
  }
  .effect-detail-shell.effect-detail-refresh .effect-detail-cta {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom)) !important;
  }
  .effect-detail-shell.effect-detail-refresh .effect-detail-form {
    padding-bottom: 8px !important;
  }
  .effect-skeleton-action {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 0;
    margin-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

.effect-detail-shell.effect-detail-refresh .effect-preview-options {
  display: contents;
}
.effect-detail-shell.effect-detail-refresh .effect-preview-section-description {
  display: none;
}
.effect-detail-seo {
  display: none !important;
}
.effect-detail-shell.effect-detail-refresh .effect-detail-preview {
  border-radius: 16px !important;
  overflow: hidden !important;
}
.effect-detail-shell.effect-detail-refresh .effect-detail-preview-ambient {
  display: block !important;
}
.effect-detail-shell.effect-detail-refresh .effect-detail-form {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.effect-detail-shell.effect-detail-refresh .effect-detail-workspace-params {
  background: transparent;
  border: 0;
  padding: 8px 0;
}
