.wallet-handoff {
  position: fixed;
  top: 16px;
  bottom: auto;
  margin: 0 auto;
  width: min(680px, calc(100vw - 32px));
  height: min(820px, calc(100svh - 32px));
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  overflow-anchor: none;
  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; aspect-ratio: 1; object-fit: contain; 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;
}

.agent-prompt,.invite-card{margin:22px 0 0;padding:20px;border:1px solid #e3ceaa;border-radius:20px;background:#fff8e8;text-align:left;}
.invite-card{background:#f1f5e9;border-color:#cdd8bb;}
.prompt-heading{display:flex;align-items:flex-start;gap:10px;}
.prompt-heading>span{font-size:24px;color:#c97932;line-height:1.25;}
.prompt-heading h3{font-size:19px;line-height:1.4;margin:0;}
.agent-prompt p,.invite-card p{font-size:13px;line-height:1.75;color:#745c44;margin:10px 0;}
.agent-prompt small{display:block;font-size:12px;line-height:1.6;color:#856a4a;margin-top:12px;}
.agent-prompt .dialog-actions,.invite-card .dialog-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:14px 0 10px;}
.agent-prompt .button,.invite-card .button{padding:11px 15px;min-height:44px;font-size:13px;}
.agent-prompt .text-link{font-size:13px;}
.agent-prompt textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid #dfcdaa;border-radius:12px;background:#fffdf8;line-height:1.7;font-size:12px;color:#684e38;}
.agent-prompt button:disabled{opacity:.5;cursor:wait;}
.invite-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0;}
.invite-stats>div{padding:14px 12px;background:#fffdf8;border-radius:14px;border:1px solid #dce2ce;}
.invite-stats strong{display:block;font-size:28px;color:#567041;line-height:1.1;margin-bottom:6px;}
.invite-stats span{font-size:12px;color:#6f775f;}
#invite-link-field label{display:block;font-size:12px;font-weight:700;margin-bottom:7px;color:#64704f;}
#invite-link{box-sizing:border-box;width:100%;font-size:12px;padding:12px;background:#fffdf8;border:1px solid #cdd8bb;border-radius:10px;color:#5b644c;}
.wallet-mobile-open{display:flex;justify-content:center;margin:14px auto;font-size:14px;padding:12px;}
.lot-presets{display:flex;gap:10px;margin:12px 0 18px;justify-content:flex-end;}
.lot-presets button{min-width:54px;padding:9px 16px;border:1px solid #ddc7a4;border-radius:12px;background:#fffaf1;color:#6d5037;font:inherit;font-weight:800;cursor:pointer;}
.lot-presets button[aria-pressed="true"]{background:#f7cd79;border-color:#ca9047;box-shadow:0 3px 0 #e6ba6a;}
.wallet-mint-review .lot-presets{justify-content:flex-start;}
.mint-card [hidden]{display:none!important;}
@media(max-width:480px){.agent-prompt,.invite-card{padding:16px;}.prompt-heading h3{font-size:17px;}.agent-prompt .dialog-actions .button,.invite-card .dialog-actions .button{width:100%;}.invite-stats{gap:8px;}}

@media (max-width: 480px) {
  .wallet-handoff {
    top: 11px;
    width: calc(100vw - 22px);
    height: calc(100svh - 22px);
    max-height: calc(100svh - 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%;
  }
}
.invite-code-label{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1rem 0;color:var(--brown,#513b2e)}.invite-code-label strong{font-size:1.5rem;letter-spacing:.15em;font-variant-numeric:tabular-nums;background:#fff0c7;border:1px solid #eac283;border-radius:12px;padding:.45rem .7rem}
