/* V1.316Beta: keep the job-change control above the portrait crop and frame. */

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app
  #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden])
  .character-option.character-option.has-job-change:not(.placeholder)
  > .job-change-tip.job-change-tip {
  all: unset !important;
  position: absolute !important;
  top: 17.5% !important;
  left: 11.5% !important;
  z-index: 2147481200 !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 5px !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 2px 8px 2px 5px !important;
  overflow: visible !important;
  border: 1px solid rgba(181, 139, 48, .94) !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(242, 235, 207, .98)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .96),
    inset 0 -3px 7px rgba(167, 124, 37, .12),
    0 3px 8px rgba(12, 39, 62, .26) !important;
  color: #4e3a17 !important;
  -webkit-text-fill-color: #4e3a17 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  isolation: isolate !important;
  opacity: 1 !important;
  visibility: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  translate: none !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app
  #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden])
  .character-option.character-option.has-job-change:not(.placeholder)
  > .job-change-tip.job-change-tip::before {
  all: unset !important;
  content: "" !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  background: url("assets/ui/character-select-job-change-emblem-v1.png?v=V1.316Beta-job-badge1") center / contain no-repeat !important;
  filter: drop-shadow(0 1px 2px rgba(26, 63, 84, .24)) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app
  #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden])
  .character-option.character-option.has-job-change:not(.placeholder)
  > .job-change-tip.job-change-tip
  > span {
  all: unset !important;
  position: static !important;
  box-sizing: border-box !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  translate: none !important;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "PingFang SC", sans-serif !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-indent: 0 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9) !important;
  white-space: nowrap !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app
  #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden])
  .character-option.character-option.has-job-change:not(.placeholder)
  > .job-change-tip.job-change-tip
  > span::before,
html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app
  #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden])
  .character-option.character-option.has-job-change:not(.placeholder)
  > .job-change-tip.job-change-tip
  > span::after {
  all: unset !important;
  content: none !important;
  display: none !important;
}

html body:not(.maintenance-mode)
  #appRoot#appRoot#appRoot#appRoot.app.character-select-app
  #characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden])
  .character-option.character-option.has-job-change:not(.placeholder)
  > .job-change-tip.job-change-tip:is(:hover, :focus-visible) {
  translate: 0 -1px !important;
  border-color: #9c6f1d !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .98),
    inset 0 -3px 7px rgba(167, 124, 37, .14),
    0 5px 11px rgba(12, 39, 62, .3),
    0 0 0 2px rgba(234, 195, 103, .2) !important;
}

@media (max-width: 899px) {
  html body:not(.maintenance-mode)
    #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app
    #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden])
    .character-option.character-option.has-job-change:not(.placeholder)
    > .job-change-tip.job-change-tip {
    top: 17% !important;
    left: 11% !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    gap: 4px !important;
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;
    padding: 1px 7px 1px 4px !important;
  }

  html body:not(.maintenance-mode)
    #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app
    #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden])
    .character-option.character-option.has-job-change:not(.placeholder)
    > .job-change-tip.job-change-tip::before {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
  }

  html body:not(.maintenance-mode)
    #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app
    #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden])
    .character-option.character-option.has-job-change:not(.placeholder)
    > .job-change-tip.job-change-tip
    > span {
    font-size: 10.5px !important;
    line-height: 1.4 !important;
  }
}

@media (forced-colors: active) {
  html body:not(.maintenance-mode)
    #characterSelect.character-select
    .character-option.has-job-change
    > .job-change-tip {
    border: 2px solid ButtonText !important;
    background: ButtonFace !important;
    color: ButtonText !important;
  }
}
