/* Shared artwork for icon-only controls. Dialogs retain their own positioning and focus handling. */
:root {
  --ks-close-art: url("/assets/kickstart-close.png");
  --ks-close-size: 32px;
}

button:is(.workflow-close, .dialog-close, .beta-close, .beta-receipt-close,
  .beta-remove, .credit-dismiss, .ks-msg-close, .join-setup-close,
  #creditSheetClose, #closeReview, #closeConditions, #closeNavigation,
  #closeRecordDialog, #closeActionDialog, #closeSearchDialog, #closeUtilityDialog,
  .issue-header [data-close], .logo-dialog-heading [data-action="cancel"]) {
  /* Some sheets load their component styles after this shared rule. */
  box-sizing: border-box !important;
  width: var(--ks-close-size) !important;
  height: var(--ks-close-size) !important;
  min-width: var(--ks-close-size) !important;
  min-height: var(--ks-close-size) !important;
  flex-shrink: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent var(--ks-close-art) center / contain no-repeat !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  text-shadow: none !important;
}

.recipient-chip.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.recipient-chip.button::after {
  content: "";
  flex: none;
  width: var(--ks-close-size);
  height: var(--ks-close-size);
  background: var(--ks-close-art) center / contain no-repeat;
}

:root[data-ks-input="pointer"] button:is(.workflow-close, .dialog-close, .beta-close, .beta-receipt-close,
  .beta-remove, .credit-dismiss, .ks-msg-close, .join-setup-close,
  #creditSheetClose, #closeReview, #closeConditions, #closeNavigation,
  #closeRecordDialog, #closeActionDialog, #closeSearchDialog, #closeUtilityDialog,
  .issue-header [data-close], .logo-dialog-heading [data-action="cancel"]):focus { outline:none !important; }
