/*
 * dialog.css — SENSHI Agent Wallet pairing dialog.
 * Self-contained (aw- prefix, no site variables): black lacquer + gold,
 * vermillion hanko seal accent — matches the SENSHI redesign direction.
 * Include with <link rel="stylesheet" href="dialog.css"> (INTEGRATION.md).
 */
.aw-root[hidden] { display: none !important; }
.aw-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(4, 4, 6, 0.78);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.aw-card {
  width: 100%; max-width: 400px;
  background: linear-gradient(165deg, #141318 0%, #0a0a0c 55%, #111007 100%);
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(233, 201, 107, 0.25);
  color: #ece7da;
  font-family: inherit;
  padding: 20px 20px 22px;
}
.aw-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.aw-seal {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 6px;
  background: #c73e1d; color: #fff7ea;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255, 247, 234, 0.35);
}
.aw-head-text { flex: 1 1 auto; min-width: 0; }
.aw-title {
  font-size: 17px; font-weight: 700; letter-spacing: 0.04em;
  background: linear-gradient(90deg, #e9c96b, #c9a227 60%, #f3e2a0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aw-intro { font-size: 12.5px; line-height: 1.45; color: #b9b2a2; margin-top: 3px; }
.aw-x {
  flex: 0 0 auto; background: none; border: none; cursor: pointer;
  color: #8d8674; font-size: 22px; line-height: 1; padding: 2px 4px;
}
.aw-x:hover { color: #e9c96b; }

.aw-qr-wrap {
  background: #f7f3e8; border-radius: 10px; padding: 10px;
  display: flex; justify-content: center;
  border: 1px solid rgba(201, 162, 39, 0.4);
}
.aw-qr { display: block; width: 264px; height: 264px; }
.aw-noqr { font-size: 12.5px; color: #a33b1f; text-align: center; margin-top: 8px; }
.aw-code-label {
  text-align: center; font-size: 11px; letter-spacing: 0.32em;
  color: #9a917c; margin-top: 16px;
}
.aw-code {
  text-align: center; font-size: 34px; font-weight: 700; letter-spacing: 0.28em;
  color: #f3e2a0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  margin: 2px 0 4px; text-indent: 0.28em;
}
.aw-scan { text-align: center; font-size: 12.5px; line-height: 1.5; color: #b9b2a2; margin: 6px 0 14px; }
.aw-btn {
  display: block; width: 100%; text-align: center; cursor: pointer;
  border-radius: 9px; padding: 11px 14px; font-size: 14px; font-weight: 600;
  text-decoration: none; box-sizing: border-box; margin-top: 10px;
}
.aw-btn-gold {
  background: linear-gradient(180deg, #e9c96b, #c9a227);
  color: #191204; border: 1px solid #8a6d14;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.25);
}
.aw-btn-gold:hover { filter: brightness(1.07); }
.aw-btn-ghost {
  background: transparent; color: #b9b2a2;
  border: 1px solid rgba(185, 178, 162, 0.35);
}
.aw-btn-ghost:hover { color: #ece7da; border-color: rgba(233, 201, 107, 0.6); }
.aw-waiting {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: #e9c96b; margin-top: 14px;
}
.aw-pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #c73e1d;
  animation: aw-pulse 1.4s ease-in-out infinite;
}
@keyframes aw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
.aw-devhint { font-size: 11.5px; line-height: 1.5; color: #8d8674; text-align: center; margin: 12px 0 2px; }

.aw-ok-seal {
  width: 52px; height: 52px; margin: 8px auto 10px; border-radius: 50%;
  border: 2px solid #c9a227; color: #e9c96b;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.aw-connected-label { text-align: center; font-size: 15px; font-weight: 700; color: #ece7da; }
.aw-address {
  text-align: center; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px; color: #f3e2a0; margin: 4px 0 8px;
}
.aw-error { font-size: 13.5px; line-height: 1.55; color: #f0b429; text-align: center; margin: 8px 0 4px; }
.aw-actions { margin-top: 6px; }
