/* Sealed Energy final layout authority. Loaded after every legacy stylesheet. */

.complete-screen,
.complete-screen > * { min-width: 0; }

.complete-screen .receipt-summary {
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  overflow: hidden;
}

.complete-screen .receipt-summary > div {
  min-width: 0;
  overflow: hidden;
}

.complete-screen .receipt-summary strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.35;
}

.seal-action-dock,
.exchange-action-dock {
  position: fixed !important;
  z-index: 500 !important;
  inset: auto auto max(18px, env(safe-area-inset-bottom)) 50% !important;
  width: min(1420px, calc(100vw - 40px)) !important;
  margin: 0 !important;
  transform: translate3d(-50%, 0, 0) !important;
}

.dock-entity-context {
  width: 222px;
  flex: 0 0 222px;
  min-width: 0;
  padding: 0 18px 0 4px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, .07);
}

.dock-entity-context > span:last-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.dock-entity-context small {
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.dock-entity-context b {
  overflow: hidden;
  color: #eef2ef;
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-entity-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  color: #eef2ef;
  font-size: 19px;
}

.dock-entity-avatar svg { width: 23px; height: 23px; }
.dock-entity-avatar.market-avatar img { object-fit: cover; }

.market-backing-ticket > button,
.market-detail-mobile-action button {
  min-height: 58px;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(112deg, #c7ff31, #a9ef32) !important;
  color: #07100f !important;
  box-shadow: 0 18px 48px rgba(199, 255, 49, .22) !important;
  font-weight: 680 !important;
}

.market-backing-ticket > button:hover,
.market-detail-mobile-action button:hover {
  background: linear-gradient(112deg, #d5ff61, #b9f34c) !important;
}

/* Completion states share the viewport with the fixed action dock.
   Keep the message composed as one instrument, not a poster. */
.exchange-surface-swap:has(.exchange-complete) {
  min-height: calc(100dvh - 86px) !important;
  display: grid;
  align-items: center;
}

.exchange-surface-swap .exchange-complete {
  width: min(860px, calc(100% - 40px));
  max-width: 860px !important;
  min-height: calc(100dvh - 86px) !important;
  margin: 0 auto !important;
  padding: 28px 0 166px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.exchange-surface-swap .exchange-complete-mark {
  width: 148px !important;
  height: 148px !important;
  min-width: 148px;
  min-height: 148px;
  margin: 0 0 22px !important;
  gap: 6px !important;
  border-radius: 38px !important;
  box-shadow:
    0 0 0 1px rgba(89, 220, 232, .14),
    0 24px 72px rgba(0, 0, 0, .25) !important;
}

.exchange-surface-swap .exchange-complete-mark > i {
  font-size: 25px !important;
}

.exchange-surface-swap .exchange-complete-mark > span {
  font-size: 13px !important;
  letter-spacing: .16em !important;
}

.exchange-surface-swap .exchange-complete-mark > b {
  font-size: 9px !important;
  letter-spacing: .17em !important;
}

.exchange-surface-swap .exchange-complete > .eyebrow {
  margin: 0 0 18px !important;
  font-size: 10px !important;
  letter-spacing: .18em;
}

.exchange-surface-swap .exchange-complete > h2 {
  margin: 0 !important;
  color: #f4f1ea;
  font-size: clamp(52px, 5vw, 76px) !important;
  font-weight: 470 !important;
  line-height: .98 !important;
  letter-spacing: -.058em !important;
  text-wrap: balance;
}

.exchange-surface-swap .exchange-complete > p {
  width: min(100%, 720px);
  margin: 20px auto 0 !important;
  color: #899591;
  font-size: 15px !important;
  line-height: 1.58;
  text-wrap: balance;
}

.exchange-surface-swap .exchange-complete > code {
  margin: 16px 0 0 !important;
  font-size: 11px !important;
}

/* The fixed dock already owns the final action. */
.exchange-surface-swap .exchange-complete-secondary {
  display: none !important;
}

.app-footer {
  z-index: 1;
  padding-bottom: 6px;
  font-size: 9px !important;
  letter-spacing: .12em;
  opacity: .42;
}

@media (max-width: 1100px) {
  .dock-entity-context { width: 176px; flex-basis: 176px; }
}

@media (max-width: 900px) {
  .dock-entity-context { display: none; }
  .seal-action-dock,
  .exchange-action-dock {
    inset: auto max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)) !important;
    width: auto !important;
    transform: none !important;
  }
  .complete-screen .receipt-summary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .exchange-surface-swap .exchange-complete {
    min-height: calc(100svh - 72px) !important;
    padding: 24px 0 calc(150px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 560px) {
  .complete-screen .receipt-summary { grid-template-columns: minmax(0, 1fr) !important; }
  .exchange-surface-swap .exchange-complete {
    width: min(100% - 28px, 560px);
    justify-content: flex-start;
    padding-top: 34px !important;
  }
  .exchange-surface-swap .exchange-complete-mark {
    width: 124px !important;
    height: 124px !important;
    min-width: 124px;
    min-height: 124px;
    margin-bottom: 18px !important;
    border-radius: 32px !important;
  }
  .exchange-surface-swap .exchange-complete > .eyebrow {
    margin-bottom: 14px !important;
  }
  .exchange-surface-swap .exchange-complete > h2 {
    font-size: clamp(42px, 13vw, 58px) !important;
    line-height: .98 !important;
  }
  .exchange-surface-swap .exchange-complete > p {
    margin-top: 16px !important;
    font-size: 14px !important;
  }
}
