.promotion-link-create-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: min(900px, calc(100vh - 32px));
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

.promotion-link-create-dialog .modal-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  flex-direction: row;
  padding: 15px 20px;
}

.promotion-link-create-dialog .modal-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.promotion-link-create-dialog .modal-close {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.promotion-link-create-form {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.promotion-link-create-body {
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
  background: var(--surface-muted);
}

.promotion-link-create-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 14px;
}

.promotion-link-create-main,
.promotion-link-create-resources {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--surface);
}

.promotion-create-resource-stack {
  display: grid;
  min-width: 0;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 14px;
}

.promotion-create-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.promotion-create-field-grid .field {
  display: grid;
  gap: 6px;
}

.promotion-create-field-grid .field.full,
.promotion-create-field-grid > .promotion-create-owner-card {
  grid-column: 1 / -1;
}

.promotion-create-field-grid .field > span,
.promotion-create-owner-card > label > span {
  color: var(--text-strong, var(--text));
  font-size: 12px;
  font-weight: 900;
}

.promotion-create-field-grid .field :is(input, select),
.promotion-create-owner-card select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-strong, var(--text));
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.promotion-create-field-grid .field :is(input, select):focus,
.promotion-create-owner-card select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.1);
  outline: 0;
}

.promotion-create-counted-input {
  position: relative;
  min-width: 0;
}

.promotion-create-field-grid .promotion-create-counted-input > input {
  padding-right: 58px;
}

.promotion-create-counted-input > b {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  pointer-events: none;
  transform: translateY(-50%);
}

.promotion-create-field-grid .field > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.promotion-create-owner-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(var(--blue-rgb), 0.14);
  border-radius: 9px;
  background: rgba(var(--blue-rgb), 0.045);
}

.promotion-create-owner-card.promotion-create-owner-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
}

.promotion-create-owner-compact > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 18px;
}

.promotion-create-owner-compact > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-strong, var(--text));
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-create-owner-card > label,
.promotion-create-owner-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.promotion-create-owner-combobox {
  position: relative;
  min-width: 0;
}

.promotion-create-owner-search-wrap {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.promotion-create-owner-search-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.1);
}

.promotion-create-owner-search-wrap > svg,
.promotion-create-owner-search-wrap > button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.promotion-create-owner-search-wrap > input {
  width: 0;
  min-width: 0;
  min-height: 38px;
  flex: 1 1 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-strong, var(--text));
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.promotion-create-owner-search-wrap > input::-webkit-search-cancel-button {
  display: none;
}

.promotion-create-owner-search-wrap > button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0 7px 7px 0;
  background: transparent;
  cursor: pointer;
}

.promotion-create-owner-search-wrap > button:hover {
  background: rgba(var(--blue-rgb), 0.06);
}

.promotion-create-owner-search-wrap > button svg {
  transition: transform 0.16s ease;
}

.promotion-create-owner-combobox.is-open .promotion-create-owner-search-wrap > button svg {
  transform: rotate(180deg);
}

.promotion-create-owner-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 250px;
  overflow-y: auto;
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.promotion-create-owner-options[hidden] {
  display: none;
}

.promotion-create-owner-option {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-strong, var(--text));
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.promotion-create-owner-option:hover,
.promotion-create-owner-option:focus-visible {
  outline: 0;
  background: rgba(var(--blue-rgb), 0.07);
}

.promotion-create-owner-option.is-selected {
  background: rgba(var(--blue-rgb), 0.1);
  color: var(--blue);
}

.promotion-create-owner-option.is-selected::after {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
}

.promotion-create-owner-option > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.promotion-create-owner-option strong,
.promotion-create-owner-option small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-create-owner-option strong {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.promotion-create-owner-option small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.promotion-create-owner-option > small {
  max-width: 112px;
  text-align: right;
}

.promotion-create-owner-option.is-selected > small {
  padding-right: 18px;
}

.promotion-create-owner-empty {
  margin: 0;
  padding: 14px 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.promotion-create-owner-empty[hidden] {
  display: none;
}

.promotion-create-owner-meta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.promotion-create-owner-meta strong {
  overflow: hidden;
  color: var(--text-strong, var(--text));
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-create-owner-meta small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.promotion-create-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promotion-create-code-row input {
  min-width: 0;
  flex: 1 1 auto;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.promotion-create-code-row .secondary-action {
  min-width: 84px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0 12px;
  font-size: 12px;
}

.promotion-create-link-type {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 11px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--surface-muted);
}

.promotion-create-link-type legend,
.promotion-create-link-preview > span {
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
}

.promotion-create-link-type > p {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.promotion-create-link-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.promotion-create-link-preview {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px dashed rgba(var(--blue-rgb), 0.28);
  border-radius: 8px;
  background: rgba(var(--blue-rgb), 0.035);
}

.promotion-create-link-preview strong {
  overflow: hidden;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-create-link-preview small,
.promotion-create-resources-head p,
.promotion-create-resource-block > header :is(small, span),
.promotion-create-optional-field small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.promotion-create-resources-head,
.promotion-create-resource-block > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.promotion-create-resources-head > div,
.promotion-create-resource-block > header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.promotion-create-resources-head h3 {
  margin: 0;
  color: var(--text-strong, var(--text));
  font-size: 14px;
  font-weight: 950;
}

.promotion-create-resources-head p {
  margin: 0;
  font-size: 11px;
}

.promotion-create-resource-block {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--surface-muted);
}

.promotion-create-resource-block > header strong,
.promotion-create-optional-field strong {
  color: var(--text-strong, var(--text));
  font-size: 11px;
  line-height: 1.3;
  font-weight: 950;
}

.promotion-create-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.promotion-create-option-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promotion-create-option {
  position: relative;
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
}

.promotion-create-option:has(input:checked) {
  border-color: rgba(var(--blue-rgb), 0.35);
  background: rgba(var(--blue-rgb), 0.055);
}

.promotion-create-option.is-outside-owner-permission:has(input:checked),
.promotion-create-server-account.is-outside-owner-permission.is-selected {
  border-color: rgba(217, 119, 6, 0.42);
  background: rgba(217, 119, 6, 0.08);
  box-shadow: inset 3px 0 0 rgba(217, 119, 6, 0.5);
}

.promotion-create-option input,
.promotion-create-server-account-head > input,
.promotion-create-account-group-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.promotion-create-option-check {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}

:is(.promotion-create-option input, .promotion-create-server-account-head > input, .promotion-create-account-group-option > input):checked + .promotion-create-option-check {
  border-color: var(--blue);
  background: var(--blue);
}

:is(.promotion-create-option input, .promotion-create-server-account-head > input, .promotion-create-account-group-option > input):checked + .promotion-create-option-check::after {
  width: 7px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg) translate(1px, -1px);
}

.promotion-create-option-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.promotion-create-option-copy strong {
  overflow: hidden;
  color: var(--text-strong, var(--text));
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-create-option-copy small,
.promotion-create-option-warning,
.promotion-create-server-account-head small,
.promotion-create-server-account-head em {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.promotion-create-option-warning {
  display: none;
  color: #b45309;
  font-weight: 900;
}

.promotion-create-option.is-outside-owner-permission:has(input:checked) .promotion-create-option-warning {
  display: block;
}

.promotion-create-link-type-option .promotion-create-option-check {
  border-radius: 50%;
}

.promotion-create-link-type-option input:checked + .promotion-create-option-check::after {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  transform: none;
}

.promotion-create-link-type-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.promotion-create-server-panels,
.promotion-create-server-account-list,
.promotion-create-other-permission-grid,
.promotion-create-optional-field {
  display: grid;
  gap: 8px;
}

.promotion-create-server-empty {
  display: grid;
  gap: 3px;
  padding: 13px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.promotion-create-server-empty strong {
  color: var(--text-strong, var(--text));
  font-size: 12px;
  font-weight: 900;
}

.promotion-create-server-panel {
  overflow: hidden;
  border: 1px solid rgba(var(--blue-rgb), 0.2);
  border-radius: 8px;
  background: var(--surface);
}

.promotion-create-server-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(var(--blue-rgb), 0.13);
  background: rgba(var(--blue-rgb), 0.045);
}

.promotion-create-server-panel > header > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 7px;
}

.promotion-create-server-panel > header strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-create-server-panel > header small {
  grid-column: 1 / -1;
}

.promotion-create-server-panel > header :is(span, small, b) {
  color: var(--muted);
  font-size: 10px;
}

.promotion-create-server-account-list {
  padding: 8px;
}

.promotion-create-server-account {
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: var(--surface-muted);
}

.promotion-create-server-account.is-selected {
  border-color: rgba(var(--blue-rgb), 0.3);
  background: rgba(var(--blue-rgb), 0.035);
}

.promotion-create-server-account-head {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  cursor: pointer;
}

.promotion-create-server-account-head > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.promotion-create-server-account-head strong {
  font-size: 11px;
  font-weight: 900;
}

.promotion-create-server-account-head em {
  color: #b45309;
  font-style: normal;
  font-weight: 900;
}

.promotion-create-account-leverages {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-top: 1px solid var(--border-light);
  background: var(--surface);
}

.promotion-create-account-leverages[hidden] {
  display: none;
}

.promotion-create-account-leverages > div:first-child {
  display: grid;
  gap: 2px;
}

.promotion-create-account-leverages strong {
  font-size: 10px;
  font-weight: 900;
}

.promotion-create-account-leverages small {
  color: var(--muted);
  font-size: 9px;
}

.promotion-create-account-leverages-with-actions {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
}

.promotion-create-account-leverages-with-actions > .promotion-create-account-leverage-header:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.promotion-create-account-leverage-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.promotion-create-account-leverage-title strong {
  font-size: 11px;
}

.promotion-create-account-leverage-title small {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.promotion-create-leverage-select-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 64px;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-strong, var(--text));
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.promotion-create-leverage-select-all:hover:not(:disabled) {
  border-color: rgba(var(--blue-rgb), 0.55);
  background: rgba(var(--blue-rgb), 0.055);
  color: var(--blue);
}

.promotion-create-leverage-select-all[aria-checked="true"],
.promotion-create-leverage-select-all[aria-checked="mixed"] {
  border-color: rgba(var(--blue-rgb), 0.3);
  background: rgba(var(--blue-rgb), 0.07);
  color: var(--blue);
}

.promotion-create-leverage-select-all-check {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

.promotion-create-leverage-select-all[aria-checked="true"] .promotion-create-leverage-select-all-check,
.promotion-create-leverage-select-all[aria-checked="mixed"] .promotion-create-leverage-select-all-check {
  border-color: var(--blue);
  background: var(--blue);
}

.promotion-create-leverage-select-all[aria-checked="true"] .promotion-create-leverage-select-all-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.promotion-create-leverage-select-all[aria-checked="mixed"] .promotion-create-leverage-select-all-check::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
}

.promotion-create-leverage-select-all:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.promotion-create-leverage-select-all:disabled {
  opacity: 0.5;
  cursor: default;
}

.promotion-create-account-leverage-options {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 6px;
}

.promotion-create-account-leverage-option {
  min-height: 34px;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px;
  padding: 5px 7px;
}

.promotion-create-account-leverage-option .promotion-create-option-check {
  width: 15px;
  height: 15px;
}

.promotion-create-account-leverages-with-actions .promotion-create-account-leverage-options {
  grid-template-columns: max-content;
  grid-auto-flow: column;
  grid-auto-columns: 96px;
  overflow-x: auto;
  padding: 3px;
  margin: -3px;
}

.promotion-create-account-leverages-with-actions .promotion-create-account-leverage-option {
  min-height: 38px;
  padding: 8px 10px;
}

.promotion-create-account-leverages-with-actions .promotion-create-account-leverage-option strong {
  font-size: 11px;
}

@media (max-width: 560px) {
  .promotion-create-leverage-select-all {
    min-height: 40px;
  }

  .promotion-create-account-leverages-with-actions .promotion-create-account-leverage-option {
    min-height: 40px;
  }
}

.promotion-create-resource-note {
  margin: -3px 0 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(217, 119, 6, 0.08);
  color: #b45309;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 850;
}

.promotion-create-resource-note[hidden] {
  display: none;
}

.promotion-create-optional-field + .promotion-create-optional-field {
  padding-top: 9px;
  border-top: 1px solid var(--border-light);
}

.promotion-create-account-group-picker {
  position: relative;
  display: grid;
  gap: 6px;
}

.promotion-create-account-group-trigger,
.promotion-create-role-field select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-strong, var(--text));
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.promotion-create-account-group-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.promotion-create-account-group-menu {
  max-height: 190px;
  overflow-y: auto;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(var(--blue-rgb), 0.22);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.promotion-create-account-group-menu[hidden] {
  display: none;
}

.promotion-create-account-group-option {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.promotion-create-account-group-option > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.promotion-create-account-group-option strong,
.promotion-create-account-group-option small {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-create-account-group-option.is-outside-owner-permission small {
  color: #b45309;
}

.promotion-create-account-group-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.promotion-create-account-group-selected[hidden] {
  display: none;
}

.promotion-create-account-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 5px 4px 8px;
  border: 1px solid rgba(var(--blue-rgb), 0.2);
  border-radius: 999px;
  background: rgba(var(--blue-rgb), 0.07);
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
}

.promotion-create-account-group-chip button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.promotion-create-role-field > span {
  display: grid;
  gap: 2px;
}

.promotion-create-role-field select.is-outside-owner-permission {
  border-color: rgba(217, 119, 6, 0.42);
  background: rgba(217, 119, 6, 0.08);
  color: #b45309;
}

.promotion-link-create-error {
  flex: 0 0 auto;
  margin: 0;
  padding: 9px 20px;
  border-top: 1px solid rgba(220, 38, 38, 0.16);
  background: rgba(220, 38, 38, 0.06);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 850;
}

.promotion-link-create-error[hidden] {
  display: none;
}

.promotion-link-create-form .modal-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  flex-direction: row;
  padding: 12px 20px;
  background: var(--surface);
}

@media (min-width: 861px) and (min-height: 761px) {
  .promotion-link-create-body {
    display: flex;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .promotion-link-create-layout {
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    align-items: stretch;
  }

  .promotion-link-create-main {
    align-self: start;
  }

  .promotion-link-create-resources,
  .promotion-create-resource-stack {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .promotion-create-resource-stack > .promotion-link-create-resources {
    overflow: visible;
    scrollbar-gutter: auto;
  }
}

@media (max-width: 860px) {
  .promotion-link-create-layout {
    grid-template-columns: 1fr;
  }

  .promotion-link-create-dialog {
    max-height: calc(100vh - 20px);
  }
}

@media (max-width: 560px) {
  .promotion-link-create-modal {
    padding: 8px;
  }

  .promotion-link-create-dialog {
    width: 100%;
    max-width: 100%;
  }

  .promotion-link-create-body {
    padding: 10px;
  }

  .promotion-link-create-main,
  .promotion-link-create-resources {
    padding: 11px;
  }

  .promotion-create-resources-head,
  .promotion-create-resource-block > header,
  .promotion-create-server-panel > header,
  .promotion-create-account-leverages {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .promotion-create-resource-stack .promotion-create-resources-head {
    align-items: center;
    flex-direction: row;
  }

  .promotion-create-field-grid,
  .promotion-create-link-type-options,
  .promotion-create-option-grid,
  .promotion-create-option-grid-compact {
    grid-template-columns: 1fr;
  }

  .promotion-link-create-dialog .modal-header,
  .promotion-link-create-form .modal-footer {
    align-items: center;
    flex-direction: row;
  }
}
