/* One corner treatment across TAPO. Keep existing radii, dimensions and hit areas. */
@layer tapo-neutral {
 @supports (corner-shape: squircle) {
  :where(body) :is(
   button, a, .btn, .button, [role="button"], [role="tab"],
   section, article, figure, nav, header, aside, form, details, fieldset,
   [class*="-card"], [class*="-panel"], .table-wrap, .table-scroll,
   input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
   select, textarea, dialog, [role="dialog"],
   .panel, .card, .glass-panel, .trial-card, .feature-card, .device-card,
   [class$="-card"], [class$="-panel"], [class$="-dialog"],
   .modal, .modal-content, .toast, [role="alert"],
   .ch-section-tabs, .ch-tabs, .cs-tabs, .center-report-tabs, .a-tabs, .owner-design-map,
   .tbe-content-editor, .tbe-photo-option, .tbe-media-thumb,
   .tb-tile, .tb-zoom-surface, .tb-panel-flight, .customer-sheet,
   .tb-menu-collage, .tb-menu-empty, .tb-panel-preview,
   .lp-feature-visual, .home-example, .demo-window, .lp-mini-scene,
   .lp-closing, .lp-faq, .home-whatsapp,
   .nfc-qr, .nfd-logo-crop, .nfd-tint button, .tbe-drop
  ) { corner-shape:squircle!important; }

  /* Circular controls and artwork retain their intended geometry. */
  :where(body) :is(
   .password-toggle, .tapo-switch, .tapo-switch input, .tapo-switch input::before,
   .tbe-remove, .tbe-close, .modal-close, .dialog-close,
   .analytics-info, .info-button, .a-info, .avatar,
   .tb-stamp-dots i, .tb-stamp-dots span, .spinner,
   [role="switch"], [role="radio"]
  ) { corner-shape:round!important; }

  /* Full-bleed collages are clipped once by the outer widget. */
  :where(body) .tb-grid>.tb-tile :is(.ti-collage,.ti-label),
  :where(body) .tb-grid>.tb-logo-only .outlet-logo,
  :where(body) .tb-grid>.tew-media>.tew-media {
   border-radius:0!important;
   corner-shape:round!important;
  }
 }
}
