.rpm-request-catalog-view[hidden] {
  display: none !important;
}

.rpm-alexandra-track-search {
  width: min(900px, calc(100% - 24px));
  margin: 18px auto 28px;
  padding: 22px;
  border: 1px solid rgba(118, 43, 132, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(35, 13, 47, 0.12);
  color: #26152d;
}

.rpm-alexandra-track-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.rpm-alexandra-track-kicker {
  display: block;
  margin-bottom: 7px;
  color: #762b84;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rpm-alexandra-track-head h1 {
  margin: 0 0 8px;
  color: #2f1837;
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.12;
}

.rpm-alexandra-track-head p {
  max-width: 650px;
  margin: 0;
  color: #725d78;
  line-height: 1.55;
}

.rpm-alexandra-catalog-back,
.rpm-alexandra-catalog-switch a {
  color: #762b84;
  font-weight: 700;
  text-decoration: none;
}

.rpm-alexandra-catalog-back {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(118, 43, 132, 0.22);
  border-radius: 10px;
  background: #fff;
}

.rpm-alexandra-catalog-switch {
  width: min(1100px, calc(100% - 24px));
  margin: 6px auto 14px;
  text-align: center;
}

.rpm-request-catalog-view .rpm-alexandra-catalog-switch a {
  color: var(--hr-pink-soft, #ff75b8);
  text-decoration: underline;
  text-decoration-color: rgba(255, 117, 184, 0.55);
  text-underline-offset: 3px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.rpm-request-catalog-view .rpm-alexandra-catalog-switch a:hover,
.rpm-request-catalog-view .rpm-alexandra-catalog-switch a:focus-visible {
  color: var(--hr-text, #ffffff);
  text-decoration-color: currentColor;
}

.rpm-request-catalog-view .rpm-alexandra-catalog-switch a:focus-visible {
  outline: 2px solid rgba(255, 117, 184, 0.75);
  outline-offset: 4px;
  border-radius: 4px;
}

.rpm-alexandra-track-form {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.rpm-alexandra-track-form label {
  color: #3f2946;
  font-weight: 700;
}

.rpm-alexandra-track-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

#rpm-alexandra-track-query {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #d9cddd;
  border-radius: 11px;
  background: #fff;
  color: #26152d;
  font: inherit;
}

#rpm-alexandra-track-query:focus {
  border-color: #762b84;
  outline: 2px solid rgba(118, 43, 132, 0.12);
}

#rpm-alexandra-track-submit,
.rpm-alexandra-primary,
.rpm-alexandra-secondary {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#rpm-alexandra-track-submit,
.rpm-alexandra-primary {
  border: 1px solid #762b84;
  background: #762b84;
  color: #fff;
}

#rpm-alexandra-track-submit:disabled {
  cursor: wait;
  opacity: 0.66;
}

.rpm-alexandra-secondary {
  border: 1px solid #d8cadd;
  background: #fff;
  color: #5b3065;
}

.rpm-alexandra-track-status {
  min-height: 24px;
  margin-top: 14px;
  color: #68556e;
  line-height: 1.5;
}

.rpm-alexandra-track-status[data-kind="error"] {
  color: #a51f3e;
}

.rpm-alexandra-track-status[data-kind="success"] {
  color: #246d45;
}

.rpm-alexandra-track-results {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.rpm-alexandra-result-heading {
  display: grid;
  gap: 5px;
  padding: 14px 0 4px;
}

.rpm-alexandra-result-heading strong {
  color: #32193a;
  font-size: 19px;
}

.rpm-alexandra-result-heading span {
  color: #746078;
}

.rpm-alexandra-result-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e0d5e3;
  border-radius: 13px;
  background: #fff;
}

.rpm-alexandra-result-found {
  border-color: rgba(118, 43, 132, 0.34);
  background: #fcf8fd;
}

.rpm-alexandra-result-external {
  border-style: dashed;
}

.rpm-alexandra-result-label {
  color: #762b84;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rpm-alexandra-result-title {
  color: #2c1533;
  font-size: 18px;
}

.rpm-alexandra-result-meta {
  color: #75617a;
  line-height: 1.45;
}

.rpm-alexandra-result-actions,
.rpm-alexandra-result-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

@media (max-width: 680px) {
  .rpm-alexandra-track-search {
    width: calc(100% - 14px);
    margin-top: 8px;
    padding: 15px;
  }

  .rpm-alexandra-track-head {
    display: grid;
  }

  .rpm-alexandra-catalog-back {
    justify-self: start;
  }

  .rpm-alexandra-track-input-row {
    grid-template-columns: 1fr;
  }

  #rpm-alexandra-track-submit {
    width: 100%;
  }
}

.rpm-alexandra-conversation {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: min(44vh, 420px);
  margin-top: 16px;
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid #eadfed;
  border-radius: 14px;
  background: #fbf8fc;
}

.rpm-alexandra-message-row {
  display: flex;
}

.rpm-alexandra-message-row-listener {
  justify-content: flex-end;
}

.rpm-alexandra-message-row-alexandra {
  justify-content: flex-start;
}

.rpm-alexandra-message {
  max-width: min(78%, 680px);
  padding: 11px 13px;
  border-radius: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rpm-alexandra-message-listener {
  border-bottom-right-radius: 5px;
  background: #762b84;
  color: #fff;
}

.rpm-alexandra-message-alexandra {
  border: 1px solid #e2d5e6;
  border-bottom-left-radius: 5px;
  background: #fff;
  color: #32193a;
  box-shadow: 0 7px 18px rgba(35, 13, 47, 0.06);
}

.rpm-alexandra-choice-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.rpm-alexandra-result-selected {
  border-style: solid;
  border-color: rgba(118, 43, 132, 0.38);
  background: #fcf8fd;
}

@media (max-width: 680px) {
  .rpm-alexandra-conversation {
    max-height: min(50vh, 360px);
  }

  .rpm-alexandra-message {
    max-width: 90%;
  }
}


/* RPM MODAL UX V1 2026-11-06 — Alexandra search presentation only. */
body.rpm-alexandra-mode {
    background: linear-gradient(155deg, #fffafd, #ffedf6) !important;
    color: #272035;
    overflow-x: hidden;
    min-height: 0;
}
body.rpm-alexandra-mode .rpm-alexandra-track-search {
    width: min(900px, calc(100% - 22px));
    margin: 13px auto 20px;
    padding: 23px;
    border: 1px solid #f0cee0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 38px rgba(115, 17, 82, .09);
}
body.rpm-alexandra-mode .rpm-alexandra-track-head {
    margin-bottom: 14px;
}
body.rpm-alexandra-mode .rpm-alexandra-track-head h1 {
    color: #2d1e39;
}
body.rpm-alexandra-mode .rpm-alexandra-track-kicker,
body.rpm-alexandra-mode .rpm-alexandra-result-label {
    color: #c40071;
}
body.rpm-alexandra-mode .rpm-alexandra-catalog-back {
    border-color: #edcee0;
    color: #bc006a;
    background: #fff7fb;
}
body.rpm-alexandra-mode .rpm-alexandra-conversation {
    max-height: min(32dvh, 290px);
    margin-top: 6px;
    padding: 12px;
    border-color: #f2dce8;
    background: #fff8fc;
}
body.rpm-alexandra-mode .rpm-alexandra-track-form {
    margin-top: 10px;
}
body.rpm-alexandra-mode #rpm-alexandra-track-submit,
body.rpm-alexandra-mode .rpm-alexandra-primary,
body.rpm-alexandra-mode .rpm-alexandra-message-listener {
    border-color: #d20076;
    background: #d20076;
}
body.rpm-alexandra-mode #rpm-alexandra-track-query:focus {
    border-color: #df137e;
    outline-color: rgba(223, 19, 126, .12);
}
body.rpm-alexandra-mode .rpm-alexandra-track-status {
    margin-top: 10px;
}
@media (max-width: 680px) {
    body.rpm-alexandra-mode .rpm-alexandra-track-search {
        margin: 6px auto 14px;
        padding: 15px;
        border-radius: 15px;
    }
    body.rpm-alexandra-mode .rpm-alexandra-track-head {
        gap: 10px;
    }
    body.rpm-alexandra-mode .rpm-alexandra-track-head h1 {
        font-size: clamp(23px, 6vw, 29px);
    }
    body.rpm-alexandra-mode .rpm-alexandra-conversation {
        max-height: min(30dvh, 210px);
    }
}

/* RPM MODAL UX V1 refinement: remove iframe-root dark strip and blank status gap. */
html.rpm-alexandra-mode-html {
    background: #fff5fa !important;
}
html.rpm-alexandra-mode-html body.rpm-alexandra-mode {
    background: linear-gradient(155deg, #fffafd, #ffedf6) !important;
    min-height: 100%;
}
body.rpm-alexandra-mode .rpm-alexandra-track-status:empty {
    min-height: 0;
    margin-top: 0;
}
body.rpm-alexandra-mode .rpm-alexandra-track-results {
    margin-top: 0;
}


/* RPM EXTERNAL REQUEST MODAL LIGHT SKIN 2026-11-06 */
/* Applies ONLY to /requests/index.php?alexandra=1, not catalog.
   Design-only: preserves status, hidden modes, scroll, submit and API. */
body.rpm-alexandra-mode #modalBg.modal-bg {
    background: rgba(25, 12, 31, .57) !important;
}
body.rpm-alexandra-mode #modalBg > .modal {
    color: #19172e !important;
    background: linear-gradient(160deg, #fff, #fff4fa) !important;
    border: 1px solid #f3bfda !important;
    border-radius: 22px !important;
    box-shadow: 0 28px 72px rgba(69, 16, 52, .30) !important;
}
body.rpm-alexandra-mode #modalBg .modal h3 {
    color: #14142e !important;
    font-weight: 850 !important;
}
body.rpm-alexandra-mode #modalBg .close-btn {
    color: #645b72 !important;
    background: #fff2f9 !important;
    border-color: #f4cce1 !important;
}
body.rpm-alexandra-mode #modalBg .close-btn:hover,
body.rpm-alexandra-mode #modalBg .close-btn:focus-visible {
    color: #d70072 !important;
    background: #ffe4f2 !important;
}
body.rpm-alexandra-mode #modalBg .cc_request_form label {
    color: #343046 !important;
}
body.rpm-alexandra-mode #modalBg .modal .form-control {
    background: #fff !important;
    color: #272239 !important;
    border: 1px solid #e7d9e7 !important;
}
body.rpm-alexandra-mode #modalBg .modal input[readonly] {
    color: #413951 !important;
}
body.rpm-alexandra-mode #modalBg .cc_request_form [data-type="result"] {
    color: #a90059 !important;
}
body.rpm-alexandra-mode #modalBg .rpm-mg-owner-test {
    color: #252035 !important;
    background: radial-gradient(circle at 100% 0%, rgba(255,36,138,.07), transparent 40%), #fff9fd !important;
    border-color: #f0cce0 !important;
}
body.rpm-alexandra-mode #modalBg .rpm-mg-mode {
    color: #352a43 !important;
    background: #fff9fd !important;
    border-color: #f0cce0 !important;
}
body.rpm-alexandra-mode #modalBg .rpm-mg-mode:hover:not(:disabled) {
    color: #a6005d !important;
    background: #ffecf7 !important;
    border-color: #e84b9b !important;
}
body.rpm-alexandra-mode #modalBg .rpm-mg-mode.is-active {
    color: #b00065 !important;
    background: #fff0f8 !important;
    border-color: #eb4d9a !important;
}
body.rpm-alexandra-mode #modalBg .rpm-mg-mode:disabled {
    color: #71687b !important;
    background: #f4edf2 !important;
    border-color: #e8dce5 !important;
    opacity: .62 !important;
}
body.rpm-alexandra-mode #modalBg .rpm-mg-unavailable {
    color: #554960 !important;
}
