.hero-od-card .cnpl-role-choice-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 9px;
}

.hero-od-card .cnpl-role-choice-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #184460;
  border-radius: 7px;
  background: #225573;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}

.hero-od-card .cnpl-role-choice-entry-icon {
  flex: none;
  font-size: 17px;
  line-height: 1;
}

.hero-od-card .cnpl-role-choice-entry:hover {
  background: #183f59;
}

.hero-od-card .cnpl-role-choice-entry:focus-visible {
  outline: 2px solid #326f92;
  outline-offset: 2px;
}

#cnpl-role-choice-dialog {
  --role-choice-ink: #173246;
  --role-choice-muted: #526a7b;
  --role-choice-line: #dce5ec;
  box-sizing: border-box;
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: min(760px, calc(100dvh - 64px));
  padding: 0;
  border: 1px solid var(--role-choice-line);
  border-radius: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f8fafb;
  color: var(--role-choice-ink);
  box-shadow: 0 28px 70px #0b26395c;
  font: 14px/1.5 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

#cnpl-role-choice-dialog::backdrop { background: #102b3c8c; }
#cnpl-role-choice-dialog *, #cnpl-role-choice-dialog *::before { box-sizing: border-box; }
#cnpl-role-choice-dialog :focus-visible { outline: 2px solid #326f92; outline-offset: 3px; }

.cnpl-role-choice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 21px 24px 18px;
  border-bottom: 1px solid var(--role-choice-line);
  background: #fff;
}

.cnpl-role-choice-header h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.cnpl-role-choice-header p { margin: 6px 0 0; color: var(--role-choice-muted); font-size: 13px; }

#cnpl-role-choice-dialog button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

#cnpl-role-choice-dialog button:disabled { cursor: default; }

.cnpl-role-choice-close {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--role-choice-line);
  border-radius: 50%;
  background: #f2f6f8;
}

#cnpl-role-choice-dialog .cnpl-role-choice-close { font-size: 23px; line-height: 1; }
.cnpl-role-choice-content { padding: 18px 24px 0; }

.cnpl-role-choice-current {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 13px;
  color: var(--role-choice-muted);
  font-size: 12px;
}

.cnpl-role-choice-current[hidden] { display: none; }
.cnpl-role-choice-current strong { color: var(--role-choice-ink); font-size: 14px; }
.cnpl-role-choice-current a { margin-left: auto; color: #315c77; font-weight: 600; }
.cnpl-role-choice-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.cnpl-role-choice-option {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cddce5;
  border-radius: 11px;
  background: #fff;
  text-align: left;
}

.cnpl-role-choice-option:hover { border-color: #7599ac; }
.cnpl-role-choice-option[aria-pressed="true"] { border-color: #2e6584; box-shadow: 0 0 0 2px #2e6584; }

#cnpl-role-choice-dialog .cnpl-role-choice-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 1.45;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: linear-gradient(155deg, #fff 6%, #e3ebf0 74%);
  background: linear-gradient(155deg, #fff 6%, color-mix(in srgb, var(--od-role-primary, #b0c8d5) 24%, #f2f6f8) 82%);
}

#cnpl-role-choice-dialog .cnpl-role-choice-art .od-role-portrait {
  position: absolute;
  inset: auto 1% 0 auto;
  z-index: 0;
  width: 64%;
  height: 91%;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  opacity: .74;
}

#cnpl-role-choice-dialog .cnpl-role-choice-art .jersey {
  position: relative;
  inset: auto;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58%;
  height: 80%;
  transform: translateX(-12%);
  pointer-events: none;
}

#cnpl-role-choice-dialog .cnpl-role-choice-art:not(:has(.od-role-portrait)) .jersey { transform: none; }
#cnpl-role-choice-dialog .cnpl-role-choice-art .jersey svg { display: block; width: 100%; height: 100%; overflow: visible; }

.cnpl-role-choice-detail {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 11px 12px;
  border-top: 1px solid var(--role-choice-line);
  overflow-wrap: anywhere;
}

.cnpl-role-choice-detail strong { font-size: 15px; line-height: 1.3; }
.cnpl-role-choice-detail > span { color: var(--role-choice-muted); font-size: 12px; line-height: 1.4; }
.cnpl-role-choice-status { min-height: 21px; margin: 10px 0; color: var(--role-choice-muted); font-size: 13px; }
.cnpl-role-choice-status.is-error { color: #a12642; }

.cnpl-role-choice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 24px 16px;
  border-top: 1px solid var(--role-choice-line);
  background: #fff;
}

.cnpl-role-choice-page { color: var(--role-choice-muted); font-size: 12px; }
.cnpl-role-choice-controls { display: flex; gap: 8px; margin-left: auto; }

#cnpl-role-choice-dialog .cnpl-role-choice-controls button {
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid #cddce5;
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
}

#cnpl-role-choice-dialog .cnpl-role-choice-controls [data-role-choice-save] {
  min-width: 94px;
  border-color: #24516c;
  background: #24516c;
  color: #fff;
}

#cnpl-role-choice-dialog .cnpl-role-choice-controls button:disabled { opacity: .48; }

@media (max-width: 520px) {
  .hero-od-card .cnpl-role-choice-actions { gap: 5px; }
  .hero-od-card .cnpl-role-choice-entry { gap: 5px; padding-inline: 8px; font-size: 12px; }
  #cnpl-role-choice-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 52px); border-radius: 12px; }
  .cnpl-role-choice-header, .cnpl-role-choice-content, .cnpl-role-choice-footer { padding-left: 12px; padding-right: 12px; }
  .cnpl-role-choice-options { gap: 6px; }
  .cnpl-role-choice-detail { min-height: 69px; padding: 7px 5px; }
  .cnpl-role-choice-detail strong { font-size: 12px; }
  .cnpl-role-choice-detail > span { font-size: 10px; }
}

.cnpl-production-account-role {
  margin: 20px 0;
}

.cnpl-production-account-role > #cnpl-dossier > .hero-od-card {
  width: min(100%, 540px);
}
