/* Customer-facing visual contract.
 * Status labels stay compact rounded rectangles. Pills are not part of the
 * Build Daily interface vocabulary. Person avatars and status dots may remain
 * circular; progress tracks and controls use rectangular geometry.
 */
html body [class].badge,
html body [class].rounded-pill,
html body [class].bd-badge,
html body [class].bd-chip,
html body [class].dw-chip,
html body [class].bd-sub-status,
html body [class].bd-public-badge,
html body [class][class$="-badge"],
html body [class][class*="-badge "],
html body [class][class$="__badge"],
html body [class][class*="__badge "],
html body [class][class$="-chip"],
html body [class][class*="-chip "],
html body [class][class$="__chip"],
html body [class][class*="__chip "],
html body [class][class$="-pill"],
html body [class][class*="-pill "],
html body [class][class$="__pill"],
html body [class][class*="__pill "],
html body [class][class*="-pill-"],
html body [class][class$="-status"]:not([class*="-dot"]),
html body [class][class*="-status "]:not([class*="-dot"]),
html body [class][class$="__status"]:not([class*="-dot"]),
html body [class][class*="__status "]:not([class*="-dot"]) {
  border-radius: 6px !important;
}

html body #pwa-stack :is(.pwa-chip, .pwa-banner-chip, #pwa-context-label),
html body #pwa-nav-toolbar :is(.pwa-chip, .pwa-banner-chip, #pwa-context-label),
html body #pwa-mobile-strip :is(.pwa-chip, .pwa-banner-chip, #pwa-context-label) {
  border-radius: 6px !important;
}

/* Shared controls use the same rectangular corners as badges. Keep this
 * contract above navigation's explicit 7px/straight-edge rules below. */
html body [class]:is(.btn, .bd-btn, .std-btn-sample, .bd-input, .form-control,
  .form-select, .std-search-control, .std-select-shell, .std-view-chip,
  .profile-state-label, .bd-toggle-slider) {
  border-radius: 6px !important;
}

html body :is(progress, .progress, .progress-bar, .std-aging-mini-track) {
  border-radius: 0 !important;
}

/* Navigation items are not badges.
 * The anti-pill rule matches on name fragments, and `[class*="-pill-"]` caught
 * `.bd-pill-link` — a level-1 module nav item whose class name is a legacy
 * misnomer. It was forced to a 6px badge radius against the guide's 7px.
 * Nav geometry belongs to the navigation contract in bd_standards.css.
 */
html body [class].bd-pill-link,
html body [class].dock-main-item,
html body [class].tc-main-item,
html body [class].std-dock-main-item,
html body [class].hr-nav-item,
html body [class].bd-settings-category-link,
html body [class].ana-tab,
html body [class].bd-support-tab,
html body [class].obs-tab,
html body [class].pqm-tab,
html body [class].acct-tab {
  border-radius: 7px !important;
}

html body [class].dock-sub-item,
html body [class].tc-sub-item,
html body [class].std-dock-sub-item,
html body [class].bd-settings-subnav .bd-pill-link {
  border-radius: 0 !important;
}
