.re-page {
  --re-accent: #93b9ff;
  --re-soft: rgba(112, 159, 234, 0.08);
  gap: 22px;
}
.re-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 30px;
  border: 1px solid #345177;
  border-radius: 18px;
  background: linear-gradient(115deg, #182f4a, #121e30 70%);
}
.re-overview h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  letter-spacing: -0.035em;
  margin: 8px 0 12px;
  max-width: 650px;
}
.re-overview p {
  margin: 0;
  max-width: 640px;
}
.re-overview .eyebrow {
  color: var(--re-accent);
}
.re-overview-stats {
  display: flex;
  gap: 30px;
}
.re-overview-stats > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 84px;
}
.re-overview-stats strong {
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1.2;
}
.re-overview-stats span {
  color: var(--muted);
  font-size: 0.78rem;
}
.re-tabs {
  display: flex;
  flex-flow: row wrap;
  gap: 6px;
  padding: 0 0 12px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.re-tabs button {
  width: auto;
  border-radius: 9px;
  padding: 11px 17px;
}
.re-tabs button.active {
  background: #1c3658;
  border-color: #426da4;
  color: #d7e7ff;
}
.re-tab-content {
  min-width: 0;
}
.re-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.re-list-toolbar input {
  width: min(100%, 520px);
}
.re-list-toolbar > span {
  font-size: 0.82rem;
}
.re-transaction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.re-transaction-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, #16253b, #111d2e);
  padding: 23px;
  min-width: 0;
}
.re-transaction-card h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
.re-transaction-card p {
  margin: 0;
}
.re-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}
.re-card-title .eyebrow {
  margin: 0;
}
.re-card-title .pill {
  font-size: 0.7rem;
  white-space: normal;
}
.re-address {
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}
.re-card-facts {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding: 13px 0 4px;
  color: #b7c7dd;
  font-size: 0.79rem;
}
.re-card-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.re-card-bottom small {
  font-size: 0.71rem;
}
.re-empty {
  grid-column: 1 / -1;
  text-align: center;
  border: 1px dashed #3b506d;
  border-radius: 14px;
  padding: 38px 24px;
  background: #111e30;
}
.re-empty h3 {
  margin: 11px 0;
}
.re-empty p {
  max-width: 550px;
  margin: 0 auto 20px;
  line-height: 1.65;
}
.re-empty-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #385b87;
  border-radius: 12px;
  background: #1a3455;
  font-size: 1.5rem;
  color: #a6c7ff;
}
.re-note {
  padding: 15px 18px;
  border: 1px solid #355574;
  border-left: 3px solid #7caef5;
  border-radius: 9px;
  color: #cbdaf0;
  background: #14273b;
  font-size: 0.86rem;
  line-height: 1.6;
}
.re-note-warning {
  border-color: #725f3e;
  border-left-color: #e4bd74;
  background: #302a20;
  color: #f2d9b1;
}
.re-panel {
  gap: 15px;
}
.re-panel + .re-panel {
  margin-top: 0;
}
.re-section-heading h2 {
  font-size: 1.08rem;
  margin: 0 0 7px;
}
.re-section-heading p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
}
.re-form,
.re-detail {
  min-width: 0;
  gap: 22px;
}
.re-form h3,
.re-detail h3 {
  margin: 0;
}
.re-form .re-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 500;
}
.re-field input,
.re-field select,
.re-field textarea {
  width: 100%;
  min-width: 0;
}
.re-field small {
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.5;
}
.re-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}
.re-property-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 140px;
  gap: 14px;
}
.re-checkbox {
  display: flex;
  align-items: start;
  gap: 9px;
  line-height: 1.45;
  font-weight: 400;
  font-size: 0.8rem;
}
.re-checkbox input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.re-term {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #101d2f;
  min-width: 0;
}
.re-term-grid {
  align-items: stretch;
}
.re-source summary {
  font-size: 0.74rem;
  color: #9bb3d2;
  cursor: pointer;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.re-source[open] .re-field {
  margin-top: 11px;
}
.re-disclosure {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.re-disclosure > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.5;
}
.re-disclosure[open] > summary {
  margin-bottom: 18px;
}
.re-disclosure > .stack {
  margin-bottom: 15px;
}
.re-participant {
  display: grid;
  grid-template-columns: 1fr 1fr 110px auto;
  gap: 10px;
  align-items: end;
}
.re-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.re-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}
.re-detail-head p {
  margin: 4px 0 10px;
}
.re-terms-list {
  margin: 0;
}
.re-terms-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.re-terms-list > div:first-child {
  border-top: 0;
}
.re-terms-list dt {
  color: var(--muted);
  font-size: 0.84rem;
}
.re-terms-list dd {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 7px 11px;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.re-terms-list dd strong {
  font-size: 0.89rem;
  font-weight: 500;
}
.re-terms-list dd small {
  flex-basis: 100%;
  font-size: 0.74rem;
}
.re-packet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.re-packet p {
  margin: 0;
}
.re-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}
.re-findings {
  margin: 0;
  padding-left: 20px;
  line-height: 1.65;
  font-size: 0.86rem;
}
.re-findings li + li {
  margin-top: 8px;
}
.re-pdf-preview {
  display: block;
  width: 100%;
  height: 570px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #e9edf2;
}
.re-preview-host:empty {
  display: none;
}
.re-changes {
  display: grid;
  gap: 15px;
}
.re-changes article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.re-changes h3 {
  font-size: 0.96rem;
  margin-bottom: 15px;
}
.re-change-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.re-change-values p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.83rem;
  line-height: 1.6;
}
.re-change-values > div {
  min-width: 0;
}
.re-mapping-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  min-width: 0;
}
.re-mapping-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}
.re-mapping-row small {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 0.73rem;
}
.re-facts {
  display: grid;
  gap: 10px;
  margin: 0;
  width: 100%;
  font-size: 0.8rem;
}
.re-facts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}
.re-facts dt {
  color: var(--muted);
}
.re-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.re-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.re-capabilities article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.re-capabilities h3 {
  font-size: 0.84rem;
  margin: 0 0 15px;
}
.re-evidence {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.re-evidence p {
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}
.re-evidence small {
  display: block;
  font-size: 0.73rem;
  line-height: 1.6;
}
.re-workflow {
  gap: 22px;
  min-width: 0;
}
.re-signing-card,
.re-signing-observation,
.re-schedule,
.re-rule,
.re-provider-acceptance {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.re-signing-card h3,
.re-signing-observation h3,
.re-schedule h3,
.re-provider-acceptance h3 {
  font-size: 0.95rem;
}
.re-manifest {
  min-width: 0;
  gap: 16px;
}
.re-manifest h3 {
  font-size: 0.85rem;
}
.re-recipient {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.re-recipient > button {
  justify-self: start;
}
.re-review-list,
.re-gate-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.re-review-list li {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}
.re-review-list small,
.re-fingerprint {
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}
.re-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.re-stage {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  font-size: 0.76rem;
}
.re-stage .pill,
.re-gate-list .pill {
  font-size: 0.68rem;
  white-space: normal;
}
.re-deadline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-size: 0.84rem;
}
.re-deadline strong,
.re-deadline small {
  display: block;
  overflow-wrap: anywhere;
}
.re-deadline small {
  margin-top: 6px;
  line-height: 1.5;
}
.re-deadline time {
  flex: 0 0 auto;
  color: #c5ddff;
}
.re-gate-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
.re-gate-list small {
  flex-basis: 100%;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .re-overview {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .re-participant {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  /* Keep the assistant available without covering transaction review content. */
  #editor:has(> #editor-body > .re-detail, > #editor-body > .re-form)
    .agent-bubble:not([hidden]) {
    position: static;
    display: block;
    margin: 20px 0 0 auto;
    width: fit-content;
  }
  .re-overview {
    padding: 23px;
  }
  .re-overview-stats {
    gap: 32px;
  }
  .re-transaction-grid,
  .re-two-columns,
  .re-capabilities {
    grid-template-columns: 1fr;
  }
  .re-transaction-card {
    padding: 19px;
  }
  .re-tabs {
    gap: 5px;
  }
  .re-tabs button {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
  .re-property-grid {
    grid-template-columns: minmax(0, 1fr) 76px;
  }
  .re-property-grid > :last-child {
    grid-column: 1 / -1;
  }
  .re-participant {
    grid-template-columns: 1fr;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .re-participant button {
    justify-self: start;
  }
  .re-detail-head {
    flex-direction: column;
    gap: 8px;
  }
  .re-terms-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .re-change-values,
  .re-mapping-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .re-pdf-preview {
    height: 430px;
  }
  .re-form-footer {
    flex-direction: column-reverse;
  }
  .re-form-footer button {
    width: 100%;
  }
  .re-panel {
    padding: 18px;
  }
  .re-recipient,
  .re-stage-grid {
    grid-template-columns: 1fr;
  }
  .re-deadline {
    flex-direction: column;
    gap: 8px;
  }
  .re-signing-card,
  .re-signing-observation,
  .re-schedule,
  .re-rule,
  .re-provider-acceptance {
    padding: 14px;
  }
}
