/*
 * M4.31C1 — Aurora Treasury detail family
 *
 * Align the Treasury request/review dialog family with the
 * established Aurora Bot Detail and Bot Control visual language.
 *
 * Scope is deliberately limited to:
 *   - Treasury Transfer Request
 *   - Treasury Withdrawal Request
 *   - Withdrawal destination review
 *
 * No Bot Detail or Bot Control selectors live in this file.
 */


/* =========================================================
   Shared Aurora Treasury dialog shell
   ========================================================= */

#treasuryRequestDialog,
#treasuryWithdrawalRequestDialog,
#treasuryWithdrawalDestinationReviewDialog {
  width:
    min(
      1120px,
      calc(100vw - 42px)
    );
  max-height:
    calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border:
    1px solid
    rgba(83, 197, 158, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(5, 31, 24, 0.985),
      rgba(2, 18, 15, 0.995)
    );
  color: #def3eb;
  box-shadow:
    0 34px 90px
    rgba(0, 0, 0, 0.55),
    0 0 0 1px
    rgba(70, 255, 195, 0.025),
    inset 0 1px
    rgba(255, 255, 255, 0.03);
}


#treasuryRequestDialog::backdrop,
#treasuryWithdrawalRequestDialog::backdrop,
#treasuryWithdrawalDestinationReviewDialog::backdrop {
  background:
    radial-gradient(
      circle at 50% 22%,
      rgba(16, 85, 64, 0.22),
      transparent 42%
    ),
    rgba(0, 7, 5, 0.82);
  backdrop-filter:
    blur(7px);
}


/* =========================================================
   Header
   ========================================================= */

#treasuryRequestDialog > .dialog-header,
#treasuryWithdrawalRequestDialog > .dialog-header,
#treasuryWithdrawalDestinationReviewDialog > .dialog-header {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding:
    19px 21px 18px;
  border-bottom:
    1px solid
    rgba(85, 176, 146, 0.17);
  background:
    linear-gradient(
      180deg,
      rgba(7, 38, 29, 0.99),
      rgba(4, 26, 21, 0.985)
    );
  box-shadow:
    0 12px 28px
    rgba(0, 0, 0, 0.16);
}


#treasuryRequestDialog > .dialog-header::before,
#treasuryWithdrawalRequestDialog > .dialog-header::before,
#treasuryWithdrawalDestinationReviewDialog > .dialog-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(82, 242, 190, 0.6),
      rgba(67, 167, 255, 0.3),
      transparent
    );
}


#treasuryRequestDialog > .dialog-header > div,
#treasuryWithdrawalRequestDialog > .dialog-header > div,
#treasuryWithdrawalDestinationReviewDialog > .dialog-header > div {
  min-width: 0;
}


#treasuryRequestDialog > .dialog-header h2,
#treasuryWithdrawalRequestDialog > .dialog-header h2,
#treasuryWithdrawalDestinationReviewDialog > .dialog-header h2 {
  margin: 0;
  color: #effff9;
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.015em;
}


#treasuryRequestDialog > .dialog-header p,
#treasuryWithdrawalRequestDialog > .dialog-header p,
#treasuryWithdrawalDestinationReviewDialog > .dialog-header p {
  margin: 6px 0 0;
  color:
    rgba(172, 208, 194, 0.62);
  font-size: 0.74rem;
  line-height: 1.4;
}


#treasuryRequestDialog > .dialog-header .icon-button,
#treasuryWithdrawalRequestDialog > .dialog-header .icon-button,
#treasuryWithdrawalDestinationReviewDialog > .dialog-header .icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border:
    1px solid
    rgba(82, 242, 190, 0.25);
  border-radius: 11px;
  background:
    rgba(12, 60, 45, 0.46);
  color: #d8f7eb;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow:
    inset 0 1px
    rgba(255, 255, 255, 0.035);
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}


#treasuryRequestDialog > .dialog-header .icon-button:hover,
#treasuryWithdrawalRequestDialog > .dialog-header .icon-button:hover,
#treasuryWithdrawalDestinationReviewDialog > .dialog-header .icon-button:hover {
  border-color:
    rgba(82, 242, 190, 0.47);
  background:
    rgba(20, 83, 62, 0.6);
  transform:
    translateY(-1px);
}


/* =========================================================
   Inner scrolling content
   ========================================================= */

#treasuryRequestDialog .treasury-request-content,
#treasuryWithdrawalRequestDialog .treasury-request-content,
#treasuryWithdrawalDestinationReviewDialog
.treasury-withdrawal-destination-review-content {
  position: relative;
  max-height:
    calc(100vh - 120px);
  padding: 21px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(
      circle at 13% 0%,
      rgba(42, 146, 105, 0.085),
      transparent 36%
    ),
    radial-gradient(
      circle at 89% 5%,
      rgba(62, 146, 227, 0.05),
      transparent 31%
    );
  scrollbar-width: thin;
  scrollbar-color:
    rgba(82, 242, 190, 0.2)
    transparent;
}


#treasuryRequestDialog .treasury-request-content::-webkit-scrollbar,
#treasuryWithdrawalRequestDialog .treasury-request-content::-webkit-scrollbar,
#treasuryWithdrawalDestinationReviewDialog
.treasury-withdrawal-destination-review-content::-webkit-scrollbar {
  width: 9px;
}


#treasuryRequestDialog .treasury-request-content::-webkit-scrollbar-thumb,
#treasuryWithdrawalRequestDialog
.treasury-request-content::-webkit-scrollbar-thumb,
#treasuryWithdrawalDestinationReviewDialog
.treasury-withdrawal-destination-review-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background:
    rgba(82, 242, 190, 0.16);
}


/*
 * Base Treasury CSS adds vertical margins between children.
 * Aurora uses the grid/panel rhythm instead.
 */

#treasuryRequestDialog .treasury-request-content > section,
#treasuryRequestDialog .treasury-request-content > details,
#treasuryRequestDialog .treasury-request-content > .treasury-message,
#treasuryWithdrawalRequestDialog .treasury-request-content > section,
#treasuryWithdrawalRequestDialog .treasury-request-content > details,
#treasuryWithdrawalRequestDialog
.treasury-request-content > .treasury-message {
  margin-top: 16px;
}


/* =========================================================
   Request summary card
   ========================================================= */

#treasuryRequestDialog .treasury-request-card,
#treasuryWithdrawalRequestDialog .treasury-request-card {
  padding: 0;
  overflow: hidden;
  border:
    1px solid
    rgba(91, 170, 144, 0.17);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(6, 31, 25, 0.8),
      rgba(2, 20, 16, 0.9)
    );
  box-shadow:
    inset 0 1px
    rgba(255, 255, 255, 0.025);
}


#treasuryRequestDialog .treasury-request-heading,
#treasuryWithdrawalRequestDialog .treasury-request-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 17px 18px;
  border-bottom:
    1px solid
    rgba(91, 150, 131, 0.1);
}


#treasuryRequestDialog .treasury-request-heading h3,
#treasuryWithdrawalRequestDialog .treasury-request-heading h3 {
  margin: 0;
  color: #effff9;
  font-size: 1.16rem;
  font-weight: 780;
  line-height: 1.2;
  font-variant-numeric:
    tabular-nums;
}


#treasuryRequestDialog .treasury-request-heading small,
#treasuryWithdrawalRequestDialog .treasury-request-heading small {
  display: block;
  margin-top: 5px;
  color:
    rgba(171, 204, 191, 0.58);
  font-size: 0.69rem;
  font-weight: 620;
}


/* Status pill */

#treasuryRequestDialog .treasury-status,
#treasuryWithdrawalRequestDialog .treasury-status {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 1.65rem;
  align-items: center;
  padding:
    0.2rem
    0.58rem;
  border:
    1px solid
    rgba(76, 219, 175, 0.17);
  border-radius: 999px;
  background:
    rgba(7, 67, 53, 0.22);
  color:
    rgba(156, 211, 191, 0.86);
  font-size: 0.66rem;
  font-weight: 720;
  line-height: 1;
  text-transform: capitalize;
}


#treasuryRequestDialog .treasury-status.success,
#treasuryWithdrawalRequestDialog .treasury-status.success {
  border-color:
    rgba(63, 226, 176, 0.23);
  color: rgb(96, 228, 187);
}


#treasuryRequestDialog .treasury-status.warning,
#treasuryWithdrawalRequestDialog .treasury-status.warning,
#treasuryRequestDialog .treasury-status.attention,
#treasuryWithdrawalRequestDialog .treasury-status.attention {
  border-color:
    rgba(241, 185, 77, 0.27);
  background:
    rgba(107, 73, 17, 0.17);
  color: rgb(244, 201, 112);
}


#treasuryRequestDialog .treasury-status.failed,
#treasuryRequestDialog .treasury-status.rejected,
#treasuryRequestDialog .treasury-status.blocked,
#treasuryWithdrawalRequestDialog .treasury-status.failed,
#treasuryWithdrawalRequestDialog .treasury-status.rejected,
#treasuryWithdrawalRequestDialog .treasury-status.blocked {
  border-color:
    rgba(246, 102, 116, 0.28);
  background:
    rgba(107, 28, 36, 0.18);
  color: rgb(255, 139, 151);
}


/* Request identity */

#treasuryRequestDialog .treasury-request-id,
#treasuryWithdrawalRequestDialog .treasury-request-id {
  margin: 0;
  padding:
    11px
    18px
    12px;
  border-bottom:
    1px solid
    rgba(91, 150, 131, 0.08);
  background:
    rgba(0, 13, 10, 0.2);
}


#treasuryRequestDialog .treasury-request-id span,
#treasuryWithdrawalRequestDialog .treasury-request-id span {
  color:
    rgba(157, 193, 179, 0.54);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


#treasuryRequestDialog .treasury-request-id strong,
#treasuryWithdrawalRequestDialog .treasury-request-id strong {
  margin-top: 4px;
  color:
    rgba(224, 243, 235, 0.88);
  font-size: 0.72rem;
  font-weight: 620;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
}


/* =========================================================
   Detail metrics
   ========================================================= */

#treasuryRequestDialog .treasury-request-grid,
#treasuryWithdrawalRequestDialog .treasury-request-grid {
  display: grid;
  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );
  gap: 10px;
  margin: 0;
  padding:
    16px
    18px;
}


#treasuryRequestDialog .treasury-request-grid > div,
#treasuryWithdrawalRequestDialog .treasury-request-grid > div {
  min-width: 0;
  min-height: 72px;
  padding:
    11px
    12px;
  border:
    1px solid
    rgba(92, 170, 144, 0.13);
  border-radius: 11px;
  background:
    linear-gradient(
      145deg,
      rgba(9, 43, 34, 0.55),
      rgba(3, 24, 19, 0.67)
    );
}


#treasuryRequestDialog .treasury-request-grid span,
#treasuryWithdrawalRequestDialog .treasury-request-grid span,
#treasuryRequestDialog .treasury-request-times span,
#treasuryWithdrawalRequestDialog .treasury-request-times span {
  display: block;
  margin: 0 0 6px;
  color:
    rgba(158, 194, 180, 0.54);
  font-size: 0.61rem;
  font-weight: 690;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}


#treasuryRequestDialog .treasury-request-grid strong,
#treasuryWithdrawalRequestDialog .treasury-request-grid strong,
#treasuryRequestDialog .treasury-request-times strong,
#treasuryWithdrawalRequestDialog .treasury-request-times strong {
  display: block;
  overflow-wrap: anywhere;
  color:
    rgba(230, 247, 240, 0.92);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.35;
  font-variant-numeric:
    tabular-nums;
}


/* Timing strip */

#treasuryRequestDialog .treasury-request-times,
#treasuryWithdrawalRequestDialog .treasury-request-times {
  display: grid;
  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );
  gap: 10px;
  margin: 0;
  padding:
    0
    18px
    17px;
  border-top: 0;
}


#treasuryRequestDialog .treasury-request-times > div,
#treasuryWithdrawalRequestDialog .treasury-request-times > div {
  min-width: 0;
  padding:
    10px
    12px;
  border:
    1px solid
    rgba(92, 170, 144, 0.09);
  border-radius: 10px;
  background:
    rgba(0, 14, 11, 0.34);
}


/* =========================================================
   Sections / history / technical detail
   ========================================================= */

#treasuryRequestDialog
.treasury-request-content > section:not(.treasury-manual-release),
#treasuryWithdrawalRequestDialog
.treasury-request-content > section {
  padding: 17px;
  border:
    1px solid
    rgba(91, 169, 143, 0.15);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(6, 31, 25, 0.76),
      rgba(2, 20, 16, 0.84)
    );
}


#treasuryRequestDialog .treasury-section-header,
#treasuryWithdrawalRequestDialog .treasury-section-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}


#treasuryRequestDialog .treasury-section-header h3,
#treasuryWithdrawalRequestDialog .treasury-section-header h3,
#treasuryRequestDialog .treasury-manual-release h3,
#treasuryWithdrawalRequestDialog
.treasury-withdrawal-lifecycle h3 {
  margin: 0;
  color: #e0f2eb;
  font-size: 0.82rem;
  font-weight: 730;
}


#treasuryRequestDialog .treasury-section-header p,
#treasuryWithdrawalRequestDialog .treasury-section-header p {
  margin: 5px 0 0;
  color:
    rgba(166, 199, 186, 0.56);
  font-size: 0.7rem;
  line-height: 1.45;
}


#treasuryRequestDialog .treasury-history-card,
#treasuryWithdrawalRequestDialog .treasury-history-card {
  border:
    1px solid
    rgba(91, 169, 143, 0.12);
  border-radius: 11px;
  background:
    rgba(0, 15, 12, 0.38);
}


#treasuryRequestDialog .treasury-history-meta,
#treasuryWithdrawalRequestDialog .treasury-history-meta {
  color:
    rgba(160, 194, 181, 0.52);
}


/* Technical JSON is visually subordinate. */

#treasuryRequestDialog .treasury-json-details,
#treasuryWithdrawalRequestDialog .treasury-json-details {
  overflow: hidden;
  border:
    1px solid
    rgba(91, 169, 143, 0.12);
  border-radius: 12px;
  background:
    rgba(0, 14, 11, 0.4);
}


#treasuryRequestDialog .treasury-json-details > summary,
#treasuryWithdrawalRequestDialog .treasury-json-details > summary {
  padding:
    12px
    14px;
  color:
    rgba(180, 214, 200, 0.68);
  font-size: 0.71rem;
  font-weight: 650;
  cursor: pointer;
}


#treasuryRequestDialog .treasury-json,
#treasuryWithdrawalRequestDialog .treasury-json {
  margin: 0;
  border: 0;
  border-top:
    1px solid
    rgba(91, 169, 143, 0.08);
  border-radius: 0;
  background:
    rgba(0, 8, 7, 0.52);
}


/* Keep the dangerous manual release visually distinct. */

#treasuryRequestDialog .treasury-manual-release {
  border-color:
    rgba(246, 102, 116, 0.27);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(62, 18, 23, 0.32),
      rgba(28, 9, 12, 0.46)
    );
}


/* =========================================================
   Destination review shell
   ========================================================= */

#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-review-safety {
  border-color:
    rgba(91, 169, 143, 0.14);
  border-radius: 13px;
  background:
    linear-gradient(
      145deg,
      rgba(8, 38, 30, 0.62),
      rgba(3, 23, 18, 0.7)
    );
}


#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-review-list-head {
  margin-top: 20px;
}


#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-review-list {
  gap: 10px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  #treasuryRequestDialog .treasury-request-grid,
  #treasuryWithdrawalRequestDialog .treasury-request-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}


@media (max-width: 760px) {
  #treasuryRequestDialog,
  #treasuryWithdrawalRequestDialog,
  #treasuryWithdrawalDestinationReviewDialog {
    width:
      calc(100vw - 18px);
    max-height:
      calc(100vh - 18px);
    border-radius: 17px;
  }

  #treasuryRequestDialog > .dialog-header,
  #treasuryWithdrawalRequestDialog > .dialog-header,
  #treasuryWithdrawalDestinationReviewDialog > .dialog-header {
    padding:
      16px
      16px
      15px;
  }

  #treasuryRequestDialog .treasury-request-content,
  #treasuryWithdrawalRequestDialog .treasury-request-content,
  #treasuryWithdrawalDestinationReviewDialog
  .treasury-withdrawal-destination-review-content {
    max-height:
      calc(100vh - 94px);
    padding: 15px;
  }

  #treasuryRequestDialog .treasury-request-grid,
  #treasuryWithdrawalRequestDialog .treasury-request-grid {
    padding:
      14px;
  }

  #treasuryRequestDialog .treasury-request-times,
  #treasuryWithdrawalRequestDialog .treasury-request-times {
    padding:
      0
      14px
      14px;
  }
}


@media (max-width: 540px) {
  #treasuryRequestDialog > .dialog-header,
  #treasuryWithdrawalRequestDialog > .dialog-header,
  #treasuryWithdrawalDestinationReviewDialog > .dialog-header {
    gap: 12px;
  }

  #treasuryRequestDialog > .dialog-header h2,
  #treasuryWithdrawalRequestDialog > .dialog-header h2,
  #treasuryWithdrawalDestinationReviewDialog > .dialog-header h2 {
    font-size: 0.96rem;
  }

  #treasuryRequestDialog > .dialog-header p,
  #treasuryWithdrawalRequestDialog > .dialog-header p,
  #treasuryWithdrawalDestinationReviewDialog > .dialog-header p {
    font-size: 0.68rem;
  }

  #treasuryRequestDialog .treasury-request-heading,
  #treasuryWithdrawalRequestDialog .treasury-request-heading {
    padding:
      14px;
  }

  #treasuryRequestDialog .treasury-request-grid,
  #treasuryWithdrawalRequestDialog .treasury-request-grid,
  #treasuryRequestDialog .treasury-request-times,
  #treasuryWithdrawalRequestDialog .treasury-request-times {
    grid-template-columns: 1fr;
  }

  #treasuryRequestDialog .treasury-request-grid > div,
  #treasuryWithdrawalRequestDialog .treasury-request-grid > div {
    min-height: 64px;
  }

  #treasuryRequestDialog .treasury-section-header,
  #treasuryWithdrawalRequestDialog .treasury-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  #treasuryRequestDialog .treasury-section-header .button,
  #treasuryWithdrawalRequestDialog .treasury-section-header .button {
    width: 100%;
  }
}
/* =========================================================
   M4.45A1 — Aurora Withdrawal Recipients
   Presentation only. Recipient/API semantics stay in the
   shared Treasury implementation; Classic remains untouched.
   ========================================================= */

#treasuryWithdrawalRecipientDialog {
  width:
    min(
      820px,
      calc(100vw - 42px)
    );
  max-height:
    calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border:
    1px solid
    rgba(83, 197, 158, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(5, 31, 24, 0.985),
      rgba(2, 18, 15, 0.995)
    );
  color: #def3eb;
  box-shadow:
    0 34px 90px
    rgba(0, 0, 0, 0.55),
    0 0 0 1px
    rgba(70, 255, 195, 0.025),
    inset 0 1px
    rgba(255, 255, 255, 0.03);
}


#treasuryWithdrawalRecipientDialog::backdrop {
  background:
    radial-gradient(
      circle at 50% 22%,
      rgba(16, 85, 64, 0.22),
      transparent 42%
    ),
    rgba(0, 7, 5, 0.82);
  backdrop-filter:
    blur(7px);
  -webkit-backdrop-filter:
    blur(7px);
}


#treasuryWithdrawalRecipientDialog > .dialog-header {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding:
    19px 21px 18px;
  border-bottom:
    1px solid
    rgba(85, 176, 146, 0.17);
  background:
    linear-gradient(
      180deg,
      rgba(7, 38, 29, 0.99),
      rgba(4, 26, 21, 0.985)
    );
  box-shadow:
    0 12px 28px
    rgba(0, 0, 0, 0.16);
}


#treasuryWithdrawalRecipientDialog
> .dialog-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(82, 242, 190, 0.6),
      rgba(67, 167, 255, 0.3),
      transparent
    );
}


#treasuryWithdrawalRecipientDialog
> .dialog-header > div {
  min-width: 0;
}


#treasuryWithdrawalRecipientDialog
> .dialog-header h2 {
  margin: 0;
  color: #effff9;
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.015em;
}


#treasuryWithdrawalRecipientDialog
> .dialog-header p {
  margin: 6px 0 0;
  color:
    rgba(172, 208, 194, 0.62);
  font-size: 0.74rem;
  line-height: 1.4;
}


#treasuryWithdrawalRecipientDialog
> .dialog-header .icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border:
    1px solid
    rgba(82, 242, 190, 0.25);
  border-radius: 11px;
  background:
    rgba(12, 60, 45, 0.46);
  color: #d8f7eb;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow:
    inset 0 1px
    rgba(255, 255, 255, 0.035);
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}


#treasuryWithdrawalRecipientDialog
> .dialog-header .icon-button:hover {
  border-color:
    rgba(82, 242, 190, 0.47);
  background:
    rgba(20, 83, 62, 0.6);
  transform:
    translateY(-1px);
}


#treasuryWithdrawalRecipientDialog
.treasury-withdrawal-recipient-content {
  position: relative;
  max-height:
    calc(100vh - 120px);
  padding: 21px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(
      circle at 13% 0%,
      rgba(42, 146, 105, 0.085),
      transparent 36%
    ),
    radial-gradient(
      circle at 89% 5%,
      rgba(62, 146, 227, 0.055),
      transparent 31%
    ),
    rgba(2, 15, 12, 0.38);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-safety-note {
  margin: 0 0 18px;
  padding:
    13px 14px 13px 15px;
  border:
    1px solid
    rgba(96, 190, 157, 0.18);
  border-left:
    3px solid
    rgba(82, 242, 190, 0.58);
  border-radius: 14px;
  background:
    linear-gradient(
      110deg,
      rgba(28, 91, 68, 0.18),
      rgba(7, 31, 24, 0.34)
    );
  color:
    rgba(177, 211, 199, 0.68);
  font-size: 0.73rem;
  line-height: 1.55;
  box-shadow:
    inset 0 1px
    rgba(255, 255, 255, 0.025);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-safety-note strong {
  margin-bottom: 4px;
  color: #dff8ee;
  font-size: 0.75rem;
  font-weight: 720;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form {
  position: relative;
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  gap: 13px;
  margin: 0;
  padding:
    16px 16px 15px;
  border:
    1px solid
    rgba(91, 184, 153, 0.17);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(10, 42, 32, 0.68),
      rgba(4, 24, 19, 0.76)
    );
  box-shadow:
    inset 0 1px
    rgba(255, 255, 255, 0.025),
    0 14px 34px
    rgba(0, 0, 0, 0.12);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form::before {
  content: "Add recipient";
  grid-column: 1 / -1;
  margin-bottom: 1px;
  color: #e8fff6;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form label {
  color:
    rgba(172, 208, 194, 0.72);
  font-size: 0.69rem;
  font-weight: 650;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form input {
  min-height: 40px;
  margin-top: 6px;
  border-color:
    rgba(91, 184, 153, 0.19);
  border-radius: 11px;
  background:
    rgba(1, 16, 12, 0.64);
  color: #e6fff5;
  box-shadow:
    inset 0 1px
    rgba(255, 255, 255, 0.018);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form input:hover {
  border-color:
    rgba(104, 211, 174, 0.28);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form input:focus {
  border-color:
    rgba(82, 242, 190, 0.48);
  box-shadow:
    0 0 0 3px
    rgba(82, 242, 190, 0.07);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-address-note {
  color:
    rgba(163, 197, 185, 0.58);
  font-size: 0.67rem;
  line-height: 1.5;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form
.form-actions {
  margin-top: 1px;
  padding-top: 1px;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-list-head {
  margin:
    22px 2px 10px;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-list-head strong {
  color: #e8fff6;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-list-head > span {
  padding:
    4px 8px;
  border:
    1px solid
    rgba(91, 184, 153, 0.14);
  border-radius: 999px;
  background:
    rgba(255, 255, 255, 0.018);
  color:
    rgba(165, 202, 188, 0.62);
  font-size: 0.65rem;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-list {
  gap: 10px;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-card {
  padding:
    14px 15px 13px;
  border:
    1px solid
    rgba(91, 184, 153, 0.16);
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      rgba(8, 36, 28, 0.72),
      rgba(3, 22, 17, 0.82)
    );
  box-shadow:
    inset 0 1px
    rgba(255, 255, 255, 0.024),
    0 12px 28px
    rgba(0, 0, 0, 0.1);
  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-card:hover {
  border-color:
    rgba(105, 220, 181, 0.25);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-address-label,
#treasuryWithdrawalRecipientDialog
.treasury-recipient-description > span {
  margin-bottom: 5px;
  color:
    rgba(151, 192, 177, 0.55);
  font-size: 0.62rem;
  font-weight: 680;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-card code {
  color: #e4fff5;
  font-size: 0.76rem;
  line-height: 1.45;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-status {
  padding:
    4px 8px;
  border-color:
    rgba(111, 194, 165, 0.18);
  background:
    rgba(255, 255, 255, 0.018);
  font-size: 0.59rem;
  letter-spacing: 0.065em;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-status.active {
  border-color:
    rgba(82, 242, 190, 0.24);
  background:
    rgba(82, 242, 190, 0.06);
  color:
    rgba(114, 255, 207, 0.86);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-status.archived {
  border-color:
    rgba(145, 174, 164, 0.16);
  background:
    rgba(128, 151, 143, 0.045);
  color:
    rgba(174, 198, 190, 0.56);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-description {
  margin-top: 12px;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-description input {
  min-height: 38px;
  border-color:
    rgba(91, 184, 153, 0.14);
  border-radius: 10px;
  background:
    rgba(1, 16, 12, 0.42);
  color: #dff8ee;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-description input:hover {
  border-color:
    rgba(105, 220, 181, 0.23);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-description input:focus {
  border-color:
    rgba(82, 242, 190, 0.43);
  background:
    rgba(2, 22, 16, 0.72);
  box-shadow:
    0 0 0 3px
    rgba(82, 242, 190, 0.06);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-actions {
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top:
    1px solid
    rgba(91, 184, 153, 0.09);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-actions .button {
  min-height: 32px;
  padding:
    6px 10px;
  border-radius: 10px;
  font-size: 0.64rem;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-actions
.button.danger {
  border-color:
    rgba(255, 110, 124, 0.33);
  background:
    rgba(255, 78, 98, 0.075);
  color:
    rgba(255, 139, 151, 0.96);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-actions
.button.danger:hover:not(:disabled) {
  border-color:
    rgba(255, 110, 124, 0.52);
  background:
    rgba(255, 78, 98, 0.12);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-empty {
  padding: 18px;
  border-color:
    rgba(91, 184, 153, 0.16);
  border-radius: 14px;
  background:
    rgba(255, 255, 255, 0.012);
  color:
    rgba(163, 197, 185, 0.58);
}


@media (max-width: 760px) {
  #treasuryWithdrawalRecipientDialog {
    width:
      min(
        100%,
        calc(100vw - 24px)
      );
    max-height:
      calc(100vh - 24px);
  }

  #treasuryWithdrawalRecipientDialog
  .treasury-withdrawal-recipient-content {
    padding: 17px;
  }

  #treasuryWithdrawalRecipientDialog
  .treasury-recipient-create-form {
    padding: 14px;
  }
}


@media (max-width: 540px) {
  #treasuryWithdrawalRecipientDialog {
    width:
      calc(100vw - 14px);
    max-height:
      calc(100vh - 14px);
    border-radius: 18px;
  }

  #treasuryWithdrawalRecipientDialog
  > .dialog-header {
    padding:
      16px 15px 15px;
  }

  #treasuryWithdrawalRecipientDialog
  .treasury-withdrawal-recipient-content {
    max-height:
      calc(100vh - 105px);
    padding: 14px;
  }

  #treasuryWithdrawalRecipientDialog
  .treasury-recipient-safety-note {
    margin-bottom: 14px;
    padding:
      12px 12px 12px 13px;
  }

  #treasuryWithdrawalRecipientDialog
  .treasury-recipient-create-form {
    padding: 13px;
    border-radius: 14px;
  }

  #treasuryWithdrawalRecipientDialog
  .treasury-recipient-list-head {
    align-items: flex-start;
    margin-top: 18px;
  }

  #treasuryWithdrawalRecipientDialog
  .treasury-recipient-card {
    padding: 13px;
    border-radius: 14px;
  }
}
/* =========================================================
   M4.45B1 — IP-aligned recipient refinement

   Borrow the restraint and geometry of the Aurora
   IP-restrictions dialog while preserving Treasury meaning.

   Presentation only:
     - backend/API contracts unchanged
     - Classic unchanged
     - archive/restore/delete semantics unchanged
   ========================================================= */

#treasuryWithdrawalRecipientDialog {
  width:
    min(
      760px,
      calc(100vw - 32px)
    );
  border-color:
    rgba(112, 235, 190, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(5, 24, 17, 0.99),
      rgba(3, 14, 10, 0.995)
    );
  box-shadow:
    0 30px 90px
    rgba(0, 0, 0, 0.54);
}


#treasuryWithdrawalRecipientDialog::backdrop {
  background:
    rgba(1, 8, 5, 0.74);
  backdrop-filter:
    blur(5px);
  -webkit-backdrop-filter:
    blur(5px);
}


#treasuryWithdrawalRecipientDialog
.treasury-withdrawal-recipient-content {
  padding:
    18px 20px 22px;
  background:
    rgba(2, 15, 10, 0.30);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-safety-note {
  margin-bottom: 14px;
  padding:
    13px 14px;
  border:
    1px solid
    rgba(107, 226, 185, 0.13);
  border-radius: 11px;
  background:
    rgba(7, 35, 24, 0.46);
  box-shadow: none;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form {
  grid-template-columns: 1fr;
  gap: 12px;
  padding:
    14px;
  border:
    1px solid
    rgba(110, 201, 169, 0.10);
  border-radius: 11px;
  background:
    rgba(2, 20, 13, 0.42);
  box-shadow: none;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form::before {
  font-size: 0.78rem;
}


#treasuryWithdrawalRecipientDialog
#cancelTreasuryWithdrawalRecipientManager {
  display: none;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form
.form-actions {
  justify-content: flex-end;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-list-head {
  margin:
    18px 1px 9px;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-card {
  padding:
    12px 13px;
  border:
    1px solid
    rgba(110, 201, 169, 0.10);
  border-radius: 10px;
  background:
    rgba(1, 15, 10, 0.46);
  box-shadow: none;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-card:hover {
  border-color:
    rgba(110, 201, 169, 0.18);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-identity {
  min-width: 0;
  display: grid;
  gap: 5px;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-title {
  overflow-wrap: anywhere;
  color:
    rgba(229, 250, 242, 0.92);
  font-size: 0.80rem;
  font-weight: 700;
  line-height: 1.35;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-address {
  overflow-wrap: anywhere;
  color:
    rgba(166, 204, 190, 0.68);
  font:
    0.70rem/1.45
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-description-editor {
  margin-top: 12px;
  padding-top: 12px;
  border-top:
    1px solid
    rgba(110, 201, 169, 0.09);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-description-editor.hidden {
  display: none;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-description {
  margin: 0;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-description > span {
  color:
    rgba(158, 195, 181, 0.72);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: normal;
  text-transform: none;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-description input {
  min-height: 39px;
  margin-top: 6px;
  border:
    1px solid
    rgba(110, 201, 169, 0.14);
  border-radius: 9px;
  background:
    rgba(1, 15, 10, 0.64);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 9px;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-edit-actions .button {
  min-height: 32px;
  padding:
    6px 10px;
  border-radius: 9px;
  font-size: 0.64rem;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-actions {
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding-top: 0;
  border-top: 0;
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-actions
[data-treasury-withdrawal-recipient-action="edit"] {
  margin-right: auto;
}


@media (max-width: 760px) {
  #treasuryWithdrawalRecipientDialog {
    width:
      min(
        760px,
        calc(100vw - 24px)
      );
  }
}


@media (max-width: 540px) {
  #treasuryWithdrawalRecipientDialog {
    width:
      calc(100vw - 14px);
    border-radius: 14px;
  }

  #treasuryWithdrawalRecipientDialog
  .treasury-recipient-actions,
  #treasuryWithdrawalRecipientDialog
  .treasury-recipient-edit-actions {
    flex-wrap: wrap;
  }

  #treasuryWithdrawalRecipientDialog
  .treasury-recipient-actions
  [data-treasury-withdrawal-recipient-action="edit"] {
    width: 100%;
    margin-right: 0;
  }
}


/*
 * ============================================================
 * M4.47B2C2 — TREASURY REQUEST / REVIEW PALETTE MIGRATION
 * ============================================================
 *
 * Presentation only.
 *
 * Scope:
 *   - Treasury Transfer Request
 *   - Treasury Withdrawal Request
 *   - Withdrawal Destination Review
 *
 * Withdrawal Recipient Manager is intentionally excluded and
 * remains byte-owned by the earlier M4.45A1/B1 layers until B2C3.
 *
 * State semantics intentionally remain with treasury.css and the
 * existing semantic Aurora rules.
 */


/* Shared dialog shell */

#treasuryRequestDialog,
#treasuryWithdrawalRequestDialog,
#treasuryWithdrawalDestinationReviewDialog {
  border-color:
    rgba(var(--aurora-border-rgb), 0.24);

  background:
    linear-gradient(
      145deg,
      color-mix(
        in srgb,
        var(--aurora-palette-surface-2) 84%,
        black
      ),
      color-mix(
        in srgb,
        var(--aurora-palette-bg) 88%,
        black
      )
    );

  box-shadow:
    0 34px 90px
      rgba(0, 0, 0, 0.55),
    0 0 0 1px
      rgba(var(--aurora-accent-rgb), 0.035),
    inset 0 1px
      rgba(var(--aurora-bright-rgb), 0.035);
}


#treasuryRequestDialog::backdrop,
#treasuryWithdrawalRequestDialog::backdrop,
#treasuryWithdrawalDestinationReviewDialog::backdrop {
  background:
    radial-gradient(
      circle at 50% 22%,
      rgba(var(--aurora-accent-rgb), 0.12),
      transparent 42%
    ),
    rgba(0, 0, 0, 0.84);
}


/* Headers */

#treasuryRequestDialog > .dialog-header,
#treasuryWithdrawalRequestDialog > .dialog-header,
#treasuryWithdrawalDestinationReviewDialog > .dialog-header {
  border-bottom-color:
    rgba(var(--aurora-border-rgb), 0.16);

  background:
    linear-gradient(
      180deg,
      color-mix(
        in srgb,
        var(--aurora-palette-surface-3) 82%,
        black
      ),
      color-mix(
        in srgb,
        var(--aurora-palette-surface) 84%,
        black
      )
    );
}


#treasuryRequestDialog > .dialog-header::before,
#treasuryWithdrawalRequestDialog > .dialog-header::before,
#treasuryWithdrawalDestinationReviewDialog > .dialog-header::before {
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(var(--aurora-accent-rgb), 0.66),
      rgba(var(--aurora-bright-rgb), 0.22),
      transparent
    );
}


#treasuryRequestDialog > .dialog-header .icon-button,
#treasuryWithdrawalRequestDialog > .dialog-header .icon-button,
#treasuryWithdrawalDestinationReviewDialog
> .dialog-header .icon-button {
  border-color:
    rgba(var(--aurora-border-rgb), 0.24);

  background:
    var(--aurora-palette-surface-3);

  color:
    var(--aurora-bright);
}


#treasuryRequestDialog > .dialog-header .icon-button:hover,
#treasuryWithdrawalRequestDialog > .dialog-header .icon-button:hover,
#treasuryWithdrawalDestinationReviewDialog
> .dialog-header .icon-button:hover {
  border-color:
    rgba(var(--aurora-accent-rgb), 0.52);

  background:
    var(--aurora-palette-hover);
}


/* Inner scrolling content */

#treasuryRequestDialog .treasury-request-content,
#treasuryWithdrawalRequestDialog .treasury-request-content,
#treasuryWithdrawalDestinationReviewDialog
.treasury-withdrawal-destination-review-content {
  background:
    radial-gradient(
      circle at 13% 0%,
      rgba(var(--aurora-accent-rgb), 0.085),
      transparent 36%
    ),
    radial-gradient(
      circle at 89% 5%,
      rgba(var(--aurora-bright-rgb), 0.045),
      transparent 31%
    );

  scrollbar-color:
    rgba(var(--aurora-accent-rgb), 0.22)
    transparent;
}


#treasuryRequestDialog
.treasury-request-content::-webkit-scrollbar-thumb,
#treasuryWithdrawalRequestDialog
.treasury-request-content::-webkit-scrollbar-thumb,
#treasuryWithdrawalDestinationReviewDialog
.treasury-withdrawal-destination-review-content::-webkit-scrollbar-thumb {
  background:
    rgba(var(--aurora-accent-rgb), 0.18);
}


/* Request summary shell */

#treasuryRequestDialog .treasury-request-card,
#treasuryWithdrawalRequestDialog .treasury-request-card {
  border-color:
    rgba(var(--aurora-border-rgb), 0.17);

  background:
    linear-gradient(
      145deg,
      var(--aurora-palette-surface-2),
      var(--aurora-palette-surface)
    );
}


#treasuryRequestDialog .treasury-request-heading,
#treasuryWithdrawalRequestDialog .treasury-request-heading {
  border-bottom-color:
    rgba(var(--aurora-border-rgb), 0.10);
}


#treasuryRequestDialog .treasury-request-id,
#treasuryWithdrawalRequestDialog .treasury-request-id {
  border-bottom-color:
    rgba(var(--aurora-border-rgb), 0.09);

  background:
    color-mix(
      in srgb,
      var(--aurora-palette-bg) 82%,
      black
    );
}


#treasuryRequestDialog .treasury-request-grid > div,
#treasuryWithdrawalRequestDialog .treasury-request-grid > div {
  border-color:
    rgba(var(--aurora-border-rgb), 0.14);

  background:
    linear-gradient(
      145deg,
      var(--aurora-palette-surface-3),
      var(--aurora-palette-muted)
    );
}


#treasuryRequestDialog .treasury-request-times > div,
#treasuryWithdrawalRequestDialog .treasury-request-times > div {
  border-color:
    rgba(var(--aurora-border-rgb), 0.10);

  background:
    var(--aurora-palette-muted);
}


/* Neutral request sections.
 *
 * Transfer manual release is explicitly excluded because it is
 * a danger/safety surface.
 */

#treasuryRequestDialog
.treasury-request-content
> section:not(.treasury-manual-release),

#treasuryWithdrawalRequestDialog
.treasury-request-content
> section {
  border-color:
    rgba(var(--aurora-border-rgb), 0.16);

  background:
    linear-gradient(
      145deg,
      var(--aurora-palette-surface-2),
      var(--aurora-palette-surface)
    );
}


/* History and technical details */

#treasuryRequestDialog .treasury-history-card,
#treasuryWithdrawalRequestDialog .treasury-history-card {
  border-color:
    rgba(var(--aurora-border-rgb), 0.13);

  background:
    var(--aurora-palette-muted);
}


#treasuryRequestDialog .treasury-json-details,
#treasuryWithdrawalRequestDialog .treasury-json-details {
  border-color:
    rgba(var(--aurora-border-rgb), 0.13);

  background:
    var(--aurora-palette-muted);
}


#treasuryRequestDialog .treasury-json,
#treasuryWithdrawalRequestDialog .treasury-json {
  border-top-color:
    rgba(var(--aurora-border-rgb), 0.09);

  background:
    color-mix(
      in srgb,
      var(--aurora-palette-bg) 88%,
      black
    );
}


/* Withdrawal lifecycle — neutral structure only.
 *
 * Complete/current/failed rails and markers remain owned by
 * var(--positive), var(--warning) and var(--negative).
 */

#treasuryWithdrawalRequestDialog
.treasury-withdrawal-progress {
  border-color:
    rgba(var(--aurora-border-rgb), 0.16);

  background:
    var(--aurora-palette-muted);
}


#treasuryWithdrawalRequestDialog
.treasury-withdrawal-progress-step.future:not(:last-child)::after {
  background:
    rgba(var(--aurora-border-rgb), 0.18);
}


#treasuryWithdrawalRequestDialog
.treasury-withdrawal-progress-step.future
.treasury-withdrawal-progress-marker {
  border-color:
    rgba(var(--aurora-border-rgb), 0.18);

  background:
    var(--aurora-palette-surface-2);

  color:
    rgba(var(--aurora-bright-rgb), 0.46);
}


#treasuryWithdrawalRequestDialog
.treasury-withdrawal-progress-meta {
  border-top-color:
    rgba(var(--aurora-border-rgb), 0.12);
}


/* Neutral no-lock / empty context inside Withdrawal detail */

#treasuryWithdrawalRequestDialog
.treasury-empty {
  border-color:
    rgba(var(--aurora-border-rgb), 0.14);

  background:
    var(--aurora-palette-muted);
}


/* Withdrawal Destination Review informational shell */

#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-review-safety {
  border-color:
    rgba(var(--aurora-border-rgb), 0.16);

  background:
    linear-gradient(
      145deg,
      var(--aurora-palette-surface-2),
      var(--aurora-palette-surface)
    );
}


/* Destination Review neutral list/card chrome.
 *
 * Status classes candidate/pending-verification/approved/revoked
 * are deliberately untouched.
 */

#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-review-empty {
  border-color:
    rgba(var(--aurora-border-rgb), 0.16);

  background:
    var(--aurora-palette-muted);
}


#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-review-card {
  border-color:
    rgba(var(--aurora-border-rgb), 0.16);

  background:
    linear-gradient(
      145deg,
      var(--aurora-palette-surface-2),
      var(--aurora-palette-surface)
    );
}


#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-decision {
  border-top-color:
    rgba(var(--aurora-border-rgb), 0.12);
}


#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-decision textarea,

#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-decision input {
  border-color:
    rgba(var(--aurora-border-rgb), 0.18);

  background:
    var(--aurora-palette-muted);
}


#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-decision textarea:hover:not(:disabled),

#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-decision input:hover:not(:disabled) {
  border-color:
    rgba(var(--aurora-accent-rgb), 0.34);
}


#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-decision textarea:focus,

#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-decision input:focus {
  border-color:
    rgba(var(--aurora-accent-rgb), 0.56);

  background:
    var(--aurora-palette-surface);

  box-shadow:
    0 0 0 3px
      rgba(var(--aurora-accent-rgb), 0.08);
}


#treasuryWithdrawalDestinationReviewDialog
.treasury-destination-confirmation code {
  border-color:
    rgba(var(--aurora-border-rgb), 0.14);

  background:
    color-mix(
      in srgb,
      var(--aurora-palette-bg) 86%,
      black
    );
}


/*
 * Semantic/state selectors intentionally NOT overridden:
 *
 * .treasury-status
 * .treasury-status.success
 * .treasury-status.warning
 * .treasury-status.attention
 * .treasury-status.failed
 * .treasury-status.rejected
 * .treasury-status.blocked
 *
 * .treasury-message.error
 * .treasury-manual-release
 * .treasury-release-warning
 *
 * .treasury-withdrawal-progress-step.complete
 * .treasury-withdrawal-progress-step.current
 * .treasury-withdrawal-progress-step.failed
 * .treasury-withdrawal-confirmation
 * .treasury-withdrawal-safety-note
 * .treasury-withdrawal-actions
 *
 * .treasury-destination-review-status
 * .treasury-destination-review-status.candidate
 * .treasury-destination-review-status.pending-verification
 * .treasury-destination-review-status.approved
 * .treasury-destination-review-status.revoked
 *
 * #treasuryWithdrawalRecipientDialog
 */

/* End M4.47B2C2 */


/*
 * ============================================================
 * M4.47B2C5 — WITHDRAWAL RECIPIENT MANAGER PALETTE MIGRATION
 * ============================================================
 *
 * Presentation only.
 *
 * Palette-drive the neutral/decorative Recipient Manager
 * surfaces introduced by M4.45A1/B1.
 *
 * ACTIVE, ARCHIVED, danger and error semantics remain owned
 * by their existing rules and are intentionally not overridden.
 */


/* Dialog shell */

#treasuryWithdrawalRecipientDialog {
  border-color:
    rgba(var(--aurora-border-rgb), 0.24);

  background:
    linear-gradient(
      145deg,
      color-mix(
        in srgb,
        var(--aurora-palette-surface-2) 84%,
        black
      ),
      color-mix(
        in srgb,
        var(--aurora-palette-bg) 88%,
        black
      )
    );

  color:
    var(--text);

  box-shadow:
    0 30px 90px
      rgba(0, 0, 0, 0.54),
    0 0 0 1px
      rgba(var(--aurora-accent-rgb), 0.03);
}


#treasuryWithdrawalRecipientDialog::backdrop {
  background:
    radial-gradient(
      circle at 50% 22%,
      rgba(var(--aurora-accent-rgb), 0.10),
      transparent 42%
    ),
    rgba(0, 0, 0, 0.80);
}


/* Header */

#treasuryWithdrawalRecipientDialog
> .dialog-header {
  border-bottom-color:
    rgba(var(--aurora-border-rgb), 0.16);

  background:
    linear-gradient(
      180deg,
      color-mix(
        in srgb,
        var(--aurora-palette-surface-3) 82%,
        black
      ),
      color-mix(
        in srgb,
        var(--aurora-palette-surface) 84%,
        black
      )
    );
}


#treasuryWithdrawalRecipientDialog
> .dialog-header::before {
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(var(--aurora-accent-rgb), 0.66),
      rgba(var(--aurora-bright-rgb), 0.22),
      transparent
    );
}


#treasuryWithdrawalRecipientDialog
> .dialog-header h2 {
  color:
    var(--text);
}


#treasuryWithdrawalRecipientDialog
> .dialog-header p {
  color:
    var(--muted);
}


#treasuryWithdrawalRecipientDialog
> .dialog-header .icon-button {
  border-color:
    rgba(var(--aurora-border-rgb), 0.24);

  background:
    var(--aurora-palette-surface-3);

  color:
    var(--aurora-bright);
}


#treasuryWithdrawalRecipientDialog
> .dialog-header .icon-button:hover {
  border-color:
    rgba(var(--aurora-accent-rgb), 0.52);

  background:
    var(--aurora-palette-hover);
}


/* Scrollable body */

#treasuryWithdrawalRecipientDialog
.treasury-withdrawal-recipient-content {
  background:
    radial-gradient(
      circle at 13% 0%,
      rgba(var(--aurora-accent-rgb), 0.075),
      transparent 36%
    ),
    radial-gradient(
      circle at 89% 5%,
      rgba(var(--aurora-bright-rgb), 0.04),
      transparent 31%
    ),
    color-mix(
      in srgb,
      var(--aurora-palette-bg) 68%,
      transparent
    );

  scrollbar-color:
    rgba(var(--aurora-accent-rgb), 0.22)
    transparent;
}


/* Informational safety note.
 *
 * This is neutral guidance, not warning/danger state.
 */

#treasuryWithdrawalRecipientDialog
.treasury-recipient-safety-note {
  border-color:
    rgba(var(--aurora-border-rgb), 0.16);

  border-left-color:
    rgba(var(--aurora-accent-rgb), 0.58);

  background:
    linear-gradient(
      110deg,
      rgba(var(--aurora-accent-rgb), 0.10),
      var(--aurora-palette-muted)
    );

  color:
    var(--muted);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-safety-note strong {
  color:
    var(--text);
}


/* Add-recipient form */

#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form {
  border-color:
    rgba(var(--aurora-border-rgb), 0.13);

  background:
    var(--aurora-palette-surface-2);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form::before {
  color:
    var(--text);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form label {
  color:
    var(--muted);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form input {
  border-color:
    rgba(var(--aurora-border-rgb), 0.18);

  background:
    var(--aurora-palette-muted);

  color:
    var(--text);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form input:hover:not(:disabled) {
  border-color:
    rgba(var(--aurora-accent-rgb), 0.34);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-create-form input:focus {
  border-color:
    rgba(var(--aurora-accent-rgb), 0.56);

  background:
    var(--aurora-palette-surface);

  box-shadow:
    0 0 0 3px
      rgba(var(--aurora-accent-rgb), 0.08);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-address-note {
  color:
    var(--muted);
}


/* Recipient-list heading / neutral count */

#treasuryWithdrawalRecipientDialog
.treasury-recipient-list-head strong {
  color:
    var(--text);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-list-head > span {
  border-color:
    rgba(var(--aurora-border-rgb), 0.14);

  background:
    var(--aurora-palette-muted);

  color:
    var(--muted);
}


/* Recipient cards.
 *
 * Status badges remain deliberately untouched.
 */

#treasuryWithdrawalRecipientDialog
.treasury-recipient-card {
  border-color:
    rgba(var(--aurora-border-rgb), 0.13);

  background:
    var(--aurora-palette-surface-2);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-card:hover {
  border-color:
    rgba(var(--aurora-accent-rgb), 0.28);

  background:
    var(--aurora-palette-hover);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-title {
  color:
    var(--text);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-address {
  color:
    var(--muted);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-address-label,

#treasuryWithdrawalRecipientDialog
.treasury-recipient-description > span {
  color:
    var(--muted);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-card code {
  color:
    var(--text);
}


/* Description editing */

#treasuryWithdrawalRecipientDialog
.treasury-recipient-description-editor {
  border-top-color:
    rgba(var(--aurora-border-rgb), 0.11);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-description input {
  border-color:
    rgba(var(--aurora-border-rgb), 0.16);

  background:
    var(--aurora-palette-muted);

  color:
    var(--text);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-description input:hover:not(:disabled) {
  border-color:
    rgba(var(--aurora-accent-rgb), 0.30);
}


#treasuryWithdrawalRecipientDialog
.treasury-recipient-description input:focus {
  border-color:
    rgba(var(--aurora-accent-rgb), 0.52);

  background:
    var(--aurora-palette-surface);

  box-shadow:
    0 0 0 3px
      rgba(var(--aurora-accent-rgb), 0.07);
}


/* Empty-list presentation */

#treasuryWithdrawalRecipientDialog
.treasury-recipient-empty {
  border-color:
    rgba(var(--aurora-border-rgb), 0.15);

  background:
    var(--aurora-palette-muted);

  color:
    var(--muted);
}


/*
 * Protected semantic/behavior families intentionally NOT overridden:
 *
 * .treasury-recipient-status
 * .treasury-recipient-status.active
 * .treasury-recipient-status.archived
 * .treasury-recipient-actions .button.danger
 * .treasury-recipient-actions .button.danger:hover:not(:disabled)
 * #treasuryWithdrawalRecipientManagerError
 * .form-error
 *
 * Recipient archive/restore/delete action selectors are untouched.
 */

/* End M4.47B2C5 */
