/* Shared AINSOF shape language: square surfaces with a restrained corner.
   Important is deliberate: legacy pages include inline and important radii.
   Limit this to UI surfaces; never reshape icons, artwork, spinners or meters. */
:root{--ui-corner:4px}
html body :is(
  button,[role="button"],input:not([type="range"],[type="radio"],[type="checkbox"]),select,textarea,
  .cta,.btn,.askgo,.chip,.filter-reset,.badge,.pill,.tag,.stylechip,.hrec,.hs,.qcard,
  .card,.plan,.plc,.fxc,.account-card,.tool-list,.dialog,.askbox,.acctbox,.acctmenu,
  .menu,.tnp-card,.tnc,.tnca,.chat,.huntbar,.composer,.mixpop,.sbmini,.rcard,
  .row,.rowwrap,.rowversion,:where(.rowlabels .relevance),
  .lyrbox,.vsrwbar,.segtime,.wavehover,
  .nav a,.docs-link,.user-button,.user-menu,.user-menu a,.secret,.toast,.skip,
  .panel,.pick,.plus,.error-box,.codebox,.client-tabs,.hprompt,.vproj,.vspill,
  .vsmatchbar,.vstl,.vsync,.sw,.bgeo-a,.bgeo-b,.bswatch,.bchip,:where(.rowlabels .vox),:where(.row .ttl .relevance),
  .rn,.rpl,.rfold,.sort,.ri,.pcard,.d-next,.copyrow,.codeblk,.vfloat,.plmenu,.hpanel,:where(#ahead),:where(#ahead .ah-styles span),.d-prev,.d-code,.pills,.ex,.vid,.abv,.search-vid,
  :where(.clients-row .client),:where(.card .ph),:where(.sbv .sbv-ph),:where(.setupdoc figure),:where(.acc figure)
){border-radius:var(--ui-corner)!important}
/* Selected tags are created at runtime; playlist tags use the same shape. */
html body :is(#tagchips,#plchips)>span:has(>button){border-radius:var(--ui-corner)!important}
/* A compound field inherits its parent's corner rather than another radius. */
html body .rowversion select{border-radius:inherit!important}
/* Identity portraits and circular signal indicators retain their meaning. */
html body :is(.acctcard,.acctini,.acctpic)[class]{border-radius:50%!important}
/* Edge-to-edge overlays meet the viewport without exposed rounded corners. */
html body :is(.vsync:fullscreen,.vsync.fs){border-radius:0!important}

/* The inset outline follows its media container. */
html body .sbv .sbv-ph::after{border-radius:var(--ui-corner)!important}
