.wallet-handoff {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wallet-live-card { margin: 18px 0; padding: 20px; border: 1px solid #e3ceaa; border-radius: 20px; background: linear-gradient(135deg,#fff7df,#fffdf7); }
.wallet-live-card h3 { font-size: 20px; margin: 0 0 12px; }
.wallet-live-card h4 { margin: 18px 0 8px; text-align: center; }
.wallet-live-card p { line-height: 1.7; font-size: 14px; color: #745c44; }
.wallet-live-card .wallet-permission { padding: 13px; background: #f3ebda; border-radius: 12px; font-size: 12px; }
.wallet-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; margin: 16px 0; }
.wallet-consent input { accent-color: #b45b29; width: 18px; height: 18px; flex-shrink: 0; margin: 2px 0; }
.wallet-qr { display: block; width: 256px; height: auto; max-width: 100%; margin: 16px auto; border: 10px solid white; border-radius: 18px; }
.wallet-value { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 9px 0; font-size: 13px; border-bottom: 1px dashed #dfd2b9; }
.wallet-value span { color: #745c44; }
.wallet-value strong { overflow-wrap: anywhere; }
.wallet-link { display: inline-block; margin-top: 10px; color: #864719; text-decoration: underline; text-underline-offset: 3px; font-weight: 800; font-size: 13px; }
.wallet-mint-review { border-top: 1px solid #e3ceaa; margin-top: 18px; padding-top: 18px; }
.wallet-live-card details { font-size: 13px; margin: 15px 0; }
.wallet-live-card summary { cursor: pointer; font-weight: 800; }
.wallet-live-card pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow-y: auto; padding: 12px; background: white; border: 1px solid #e5dbc8; border-radius: 10px; font-size: 11px; }
.wallet-live-card .button:disabled { opacity: .55; transform: none; box-shadow: none; }
.wallet-error { background: #fff0e8; border: 1px solid #ebbea4; border-radius: 12px; padding: 11px 13px; margin-top: 16px; overflow-wrap: anywhere; }
.wallet-error p { margin: 0 0 7px; }
.wallet-error small { display: block; font-size: 11px; }
.wallet-working { font-weight: 800; }
.wallet-recovery { margin-top: 18px; padding-top: 12px; border-top: 1px dashed #dfcdae; }
.wallet-recovery>label { display: block; font-size: 12px; font-weight: 800; margin: 10px 0 6px; }
.wallet-recovery>input { width: 100%; min-width: 0; padding: 12px; border: 1px solid #d3bea0; border-radius: 10px; background: #fffdfa; font-family: monospace; font-size: 12px; }
.wallet-alternative { border-top: 1px solid #e3d3b7; margin-top: 18px; padding-top: 15px; }
.wallet-alternative>summary { font-size: 13px; color: #745c44; cursor: pointer; font-weight: 800; }
@media(max-width:480px) { .wallet-live-card { padding: 14px; }.wallet-value strong { font-size: 12px; }.wallet-live-card h3 {font-size:18px;} }

.wallet-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  margin-top: 18px;
  padding: 17px 18px;
  border: 1px solid #e9d8b7;
  border-radius: 16px;
  background: #fffaf1;
}

.wallet-step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dfbc6e;
  border-radius: 50%;
  background: #fbe4a5;
  color: #64441f;
  font-weight: 900;
}

.wallet-step-body h3 {
  margin: 3px 0 7px;
  font-size: 19px;
  line-height: 1.3;
}

.wallet-step-body p,
.wallet-prompt-detail {
  margin: 7px 0;
  color: #745c44;
  font-size: 13px;
  line-height: 1.65;
}

.wallet-handoff .dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0;
}

.wallet-handoff .dialog-actions .button {
  justify-content: center;
  min-height: 41px;
  padding: 9px 13px;
  font-size: 13px;
}

.wallet-agent-id {
  display: inline-block;
  color: #854d26;
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 3px;
  text-decoration: underline;
}

.wallet-prompt-detail summary {
  cursor: pointer;
  font-weight: 800;
}

.wallet-prompt-detail textarea {
  margin-top: 8px;
  resize: vertical;
}

.wallet-handoff .dialog-summary {
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 12px 0 8px;
  padding: 12px;
}

.wallet-handoff .dialog-status {
  margin: 8px 0;
}

.wallet-handoff .dialog-note {
  margin-bottom: 0;
}

.wallet-copy-feedback {
  margin: 11px 0 0;
  color: #4c603e;
  font-size: 13px;
  font-weight: 800;
}

.wallet-copy-feedback:empty,
.wallet-handoff [hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .wallet-handoff {
    width: calc(100vw - 22px);
    max-height: calc(100dvh - 22px);
    padding: 19px;
  }

  .wallet-step {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 9px;
    padding: 13px 11px;
  }

  .wallet-step-number {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

  .wallet-step-body h3 {
    font-size: 17px;
  }

  .wallet-handoff .dialog-actions .button {
    width: 100%;
  }
}
