/* Shared corner treatment; keep dimensions, responsive grids and circular controls. */
html:root body:has(.planz-native-hero, .planz-category-page, .planz-detail) :is(
  .uk-button:not(.uk-icon-button):not([data-favorite-toggle]),
  .convertforms .cf-btn,
  .pc-project-link,
  .pc-filter-actions button,
  .pc-filter-actions a,
  .pc-pagination a,
  .pc-view a,
  .pc-next-card > strong,
  .planz-panel-contact .el-item
) { border-radius: 8px !important; }

/* Form controls and filter frames; dropdown contents must remain unclipped. */
html:root body:has(.planz-native-hero, .planz-category-page, .planz-detail) :is(
  .uk-input:not([type=checkbox]):not([type=radio]),
  .uk-select,
  .uk-textarea,
  .convertforms input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
  .convertforms select,
  .convertforms textarea,
  .planz-search-panel > .uk-tile,
  .planz-filter-checks summary,
  .planz-filter-checks > div,
  .planz-suggest,
  .pc-filters,
  .pc-range input,
  .pc-search input,
  .pc-toolbar select
) { border-radius: 8px !important; }

/* Photo viewports clip moving slides without changing the gallery geometry. */
html:root body:has(.planz-native-hero, .planz-category-page, .planz-detail) :is(
  .planz-card-gallery .uk-slideshow-items,
  .planz-detail-gallery .uk-slideshow-items,
  .pc-photo,
  .planz-step-photo
) { border-radius: 8px !important; overflow: hidden; }

/* Actual content photos only: logos, pictograms and avatars stay unchanged. */
html:root body:has(.planz-native-hero, .planz-category-page, .planz-detail) :is(
  .planz-card-gallery img,
  .pc-photo img,
  .pc-plans-preview img,
  .planz-home-category-card img,
  .planz-benefit-image img,
  .planz-service-v2 img,
  .planz-documentation-v2 img,
  .planz-blog .el-image,
  .planz-step-package-scene img,
  .planz-suggest img,
  .planz-detail-gallery img,
  .planz-reflectable img,
  .planz-related-grid img,
  .planz-version-grid img,
  .planz-purchase-visual img,
  .planz-document-cover img,
  .planz-drawings-project-image img,
  .planz-energy-visual img,
  .planz-offer-photo img
) { border-radius: 8px !important; }

html:root body:has(.planz-native-hero, .planz-category-page, .planz-detail) :is(
  .planz-native-card > .uk-card,
  .pc-card,
  .planz-blog-card > .uk-card,
  .planz-advice-badge
) { border-radius: 8px !important; }
