/* v347: align the early-retirement decision and make its destructive action explicit. */
@scope (body[data-retirement-confirmation-release="347"]) {
  :scope #prestige-modal > .dialog-card {
    gap: 12px;
    text-align: center;
  }

  :scope #prestige-modal :is(
    .dialog-title,
    .dialog-visual,
    .prestige-outcome-grid,
    .prestige-change-list,
    .prestige-confirm-question,
    .prestige-final-warning,
    .dialog-actions
  ) {
    margin: 0 !important;
  }

  :scope #prestige-modal .dialog-title + .dialog-visual,
  :scope #prestige-modal :is(
    .prestige-outcome-grid,
    .prestige-change-list,
    .prestige-confirm-question,
    .prestige-final-warning,
    .dialog-actions
  ) {
    margin-top: 10px !important;
  }

  :scope #prestige-modal .prestige-change-list {
    border-radius: 12px;
  }

  :scope #prestige-modal .prestige-change-list > p {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-align: left;
  }

  :scope #prestige-modal .prestige-change-list strong,
  :scope #prestige-modal .prestige-change-list span {
    display: block;
    min-width: 0;
    text-align: left;
  }

  :scope #prestige-modal .prestige-change-list > p:first-child strong {
    color: #b42335;
  }

  :scope #prestige-modal .prestige-change-list > p:last-child strong {
    color: #1769e5;
  }

  :scope #prestige-modal .prestige-change-list span {
    color: #333d4b;
    font-weight: 700;
  }

  :scope #prestige-modal .prestige-confirm-question {
    color: #191f28;
    font-size: 16px;
    font-weight: 850;
    line-height: 22px;
    text-align: center;
    word-break: keep-all;
  }

  :scope #prestige-modal .dialog-card[data-prestige-confirm-step] .dialog-actions > .dialog-button {
    border-radius: 12px !important;
  }

  :scope #prestige-modal #prestige-confirm-btn {
    background: #f04452 !important;
    color: #fff !important;
  }

  :scope #prestige-modal #prestige-confirm-btn:disabled {
    opacity: 0.62;
  }

  :scope #panel-milestones .prestige-btn:not(:disabled) {
    border: 1px solid #d83245;
    border-radius: 12px;
    background: #f04452;
    box-shadow: 0 3px 0 #c52b3d, 0 6px 14px rgba(240, 68, 82, 0.22);
  }

  :scope #panel-milestones .prestige-btn:not(:disabled):active {
    box-shadow: 0 1px 0 #c52b3d;
  }
}
