/* Explicitly annotated rectangular surfaces only. Existing circular/titanium controls,
   banners, brand images, SVG topology, identity and QR modules are never annotated. */
:root body[data-rounded-system="soft-v1"] {
  --rounded-surface: 16px;
}
:root body[data-rounded-system="soft-v1"] :is([data-rounded-role="image"], [data-rounded-role="card"], [data-rounded-role="dialog"]) {
  border-radius: var(--rounded-surface) !important;
}
:root body[data-rounded-system="soft-v1"] :is([data-rounded-role="field"], [data-rounded-role="button"]) {
  border-radius: 10px !important;
}
:root body[data-rounded-system="soft-v1"] rect[data-rounded-role="diagram-frame"] {
  rx: 12px;
  ry: 12px;
}
@media (max-width: 700px) {
  :root body[data-rounded-system="soft-v1"] {
    --rounded-surface: 12px;
  }
}
/* No background, border, box-shadow, overflow, size, touch area or focus-rule changes. */

body[data-rounded-system="soft-v1"]{--palord-card-radius:var(--rounded-surface);--palord-control-radius:10px}

/* Named-layer important radius beats inherited unlayered legacy important rules.
   Only explicit rectangular roles participate; no paint/size/focus declarations. */
@layer palord-rounded {
 body[data-rounded-system="soft-v1"] :is([data-rounded-role="image"],[data-rounded-role="card"],[data-rounded-role="dialog"]){border-radius:var(--rounded-surface)!important}
 body[data-rounded-system="soft-v1"] :is([data-rounded-role="field"],[data-rounded-role="button"]){border-radius:10px!important}
}
