:where(dialog:modal) {
  box-sizing: border-box;
  border: 1px solid var(--ui-line, var(--pb-edge, var(--pbm-line, var(--shop-line, #3b4b5e))));
  border-radius: 12px;
  color: var(--ui-ink, var(--pb-text, var(--pbm-fg, inherit)));
}

/* Property rune picker from the character sheet. */
html body .modal:not(#root-no_character) .pb-rune-picker > .div-topbar_holder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding-block: 11px 9px;
}
html body .modal:not(#root-no_character) .pb-rune-picker > .div-topbar_holder > .dialog-top-bar {
  display: contents;
}
html body .modal:not(#root-no_character) .pb-rune-picker :is(.div-topbar_holder, .dialog-top-bar) > div:empty {
  display: none;
}
html body .modal:not(#root-no_character) .pb-rune-picker .pb-rune-heading {
  grid-area: 1 / 1;
  margin: 0;
  font: inherit;
  font-size: 1.4em;
  font-weight: 650;
}
html body .modal:not(#root-no_character) .pb-rune-picker .dialog-top-bar > .dialog-title {
  grid-area: 1 / 2;
  justify-self: end;
  margin: 0;
  color: inherit;
  opacity: .8;
  font-size: .92em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: end;
}
html body .modal:not(#root-no_character) .pb-rune-picker .dialog-top-bar > .pb-item-tools {
  grid-area: 2 / 1;
  min-width: 0;
}
html body .modal:not(#root-no_character) .pb-rune-picker > .div-topbar_holder > .pb-list-toolbar {
  grid-area: 2 / 2;
  margin: 0 !important;
}

html body .modal:not(#root-no_character) .pb-rune-picker .pb-item-tools > .pb-rune-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 7rem;
  min-block-size: 34px;
  max-inline-size: 100%;
  border-radius: 7px;
  font-weight: 550;
  text-align: center;
}
