.real-wallet-card {
  overflow: hidden;
}

.real-heading,
.real-account,
.real-grid,
.real-checkout-head,
.real-actions {
  display: flex;
}

.real-heading,
.real-checkout-head {
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

.real-heading h2,
.real-panel h3 {
  margin-top: 7px;
}

.real-connect {
  display: grid;
  min-width: min(100%, 330px);
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(71, 217, 157, 0.25);
  border-radius: 16px;
  background: rgba(71, 217, 157, 0.07);
}

.real-connect span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.real-connect span[data-kind="success"] {
  color: var(--green);
}

.real-connect span[data-kind="error"] {
  color: var(--bad);
}

.real-account {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.real-account > div {
  min-width: 190px;
  flex: 1 1 220px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.real-account span,
.real-account strong {
  display: block;
}

.real-account span {
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.real-account strong,
.real-panel code,
.real-summary dd {
  overflow-wrap: anywhere;
}

.real-grid {
  align-items: stretch;
  gap: 18px;
}

.real-panel {
  min-width: 0;
  flex: 1 1 50%;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(3, 7, 17, 0.38);
}

.real-panel label {
  display: block;
  margin: 13px 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.real-panel input,
.real-panel textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: rgba(8, 13, 29, 0.9);
  color: var(--ink);
}

.real-panel textarea {
  min-height: 110px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.real-panel canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px auto;
  border-radius: 12px;
  background: #fff;
}

.real-panel > code {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.real-note {
  color: var(--faint);
  font-size: 11px;
}

.real-summary {
  margin: 13px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}

.real-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.real-summary dl div {
  min-width: 0;
  padding: 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.real-summary dt {
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.real-summary dd {
  margin: 5px 0 0;
  color: var(--ink);
}

.real-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.real-file {
  position: relative;
  cursor: pointer;
}

.real-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.real-camera-shell {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 650px;
  margin: 14px auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #000;
}

.real-camera-shell video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.real-items,
.real-history {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.real-items article,
.real-history article {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.real-items span,
.real-history span,
.real-history code {
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.real-result-qr:not(:empty) {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(71, 217, 157, 0.25);
  border-radius: 14px;
  background: rgba(71, 217, 157, 0.06);
}

.real-result-qr code {
  display: block;
  color: var(--muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

@media (max-width: 880px) {
  .real-heading,
  .real-grid,
  .real-checkout-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .real-connect {
    min-width: 0;
  }

  .real-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .real-summary dl {
    grid-template-columns: 1fr;
  }
}
