:root {
  --bg: #050709;
  --bg-2: #0a0f12;
  --panel: #0c1216;
  --panel-2: #0f171c;
  --panel-elevated: #121b21;
  --text: #e8eff2;
  --text-2: #c1ccd1;
  --muted: #6b7d85;
  --line: #182329;
  --line-2: #1f2c33;
  --primary: #2667FF;
  --primary-2: #1e51cc;
  --primary-3: #4d83ff;
  --primary-glow: rgba(38, 102, 255, 0.22);
  --primary-glow-soft: rgba(38, 102, 255, 0.08);
  --accent-soft: rgba(38, 102, 255, 0.08);
  --gradient-primary: linear-gradient(135deg, #2667FF 0%, #1e51cc 100%);
  --gradient-text: linear-gradient(135deg, #2667FF 0%, #6d97ff 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(38, 102, 255, 0.06) 0%, transparent 60%);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.1);
  --nav-bg: rgba(5, 7, 9, 0.7);
  --grid-pattern: radial-gradient(circle at 1px 1px, rgba(38, 102, 255, 0.06) 1px, transparent 0);
  --body-gradient:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(38, 102, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 30%, rgba(38, 102, 255, 0.03) 0%, transparent 70%),
    linear-gradient(180deg, #050709 0%, var(--bg) 100%);
  --code-fg: var(--primary);
  --code-bg: rgba(38, 102, 255, 0.08);
  --code-border: rgba(38, 102, 255, 0.22);
  --pre-bg: #03060a;
  --pre-fg: #a5beff;
  --shadow-card: 0 1px 0 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 1px 0 0 rgba(38, 102, 255, 0.18) inset, 0 12px 40px rgba(38, 102, 255, 0.08);
  --shadow-modal: 0 32px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--line-2);#supportedSelect {
    width: 145px;
    min-width: 245px;
    max-width: 245px;
    height: 41px;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}
  --shadow-btn: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 24px rgba(38, 102, 255, 0.28);
  --on-primary: #ffffff;
}

body.theme-light {
  --bg: #f7faf9;
  --bg-2: #eef3f1;
  --panel: #ffffff;
  --panel-2: #f7faf9;
  --panel-elevated: #ffffff;
  --text: #0a1218;
  --text-2: #334049;
  --muted: #64737c;
  --line: #e8edeb;
  --line-2: #d6dedc;
  --primary: #2667FF;
  --primary-2: #1e51cc;
  --primary-3: #4d83ff;
  --primary-glow: rgba(38, 102, 255, 0.18);
  --primary-glow-soft: rgba(38, 102, 255, 0.08);
  --accent-soft: rgba(38, 102, 255, 0.08);
  --gradient-primary: linear-gradient(135deg, #2667FF 0%, #1e51cc 100%);
  --gradient-text: linear-gradient(135deg, #2667FF 0%, #1e51cc 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(38, 102, 255, 0.06) 0%, transparent 60%);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --grid-pattern: radial-gradient(circle at 1px 1px, rgba(38, 102, 255, 0.1) 1px, transparent 0);
  --body-gradient:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(38, 102, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 30%, rgba(38, 102, 255, 0.03) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  --code-fg: #1a47b8;
  --code-bg: rgba(38, 102, 255, 0.08);
  --code-border: rgba(38, 102, 255, 0.22);
  --pre-bg: #f3f6fc;
  --pre-fg: #0a2466;
  --shadow-card: 0 1px 0 0 rgba(255, 255, 255, 0.7) inset, 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 1px 0 0 rgba(38, 102, 255, 0.14) inset, 0 12px 32px rgba(38, 102, 255, 0.1);
  --shadow-modal: 0 32px 80px rgba(15, 23, 42, 0.18), 0 0 0 1px var(--line-2);
  --shadow-btn: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 20px rgba(38, 102, 255, 0.25);
  --on-primary: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    var(--grid-pattern) 0 0 / 28px 28px,
    var(--body-gradient);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  min-height: 100vh;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(38, 102, 255, 0.05), transparent 60%),
    radial-gradient(600px 300px at 80% 0%, rgba(38, 102, 255, 0.04), transparent 60%);
}

body.theme-light::before {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(38, 102, 255, 0.06), transparent 60%),
    radial-gradient(600px 300px at 80% 0%, rgba(38, 102, 255, 0.05), transparent 60%);
}

main, nav {
  position: relative;
}

.land-logo{display:flex;align-items:center;gap:12px;text-decoration:none}
.land-logo-img{height:22px;filter:brightness(0) invert(1);display:block;opacity:.95}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.brand {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1b2735;
}
.brand:hover {
  color: #1b2735;
}


@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary-glow-soft), 0 0 16px var(--primary);
  }
  50% {
    opacity: 0.85;
    box-shadow: 0 0 0 4px var(--primary-glow-soft), 0 0 20px var(--primary);
  }
}

.brand-accent {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.wallet-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-chip {
  border: 1px solid var(--code-border);
  background: var(--code-bg);
  color: var(--primary);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-family: "JetBrains Mono", "IBM Plex Mono", "SF Mono", monospace;
  font-weight: 500;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.theme-toggle:hover:not(:disabled) {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--accent-soft);
  box-shadow: none;
}

.theme-toggle .theme-icon-light {
  display: none;
}

body.theme-light .theme-toggle .theme-icon-light {
  display: inline-block;
}

body.theme-light .theme-toggle .theme-icon-dark {
  display: none;
}

body.theme-light .land-logo-img{filter:none;opacity:1}

.network-pill {
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.network-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

.network-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  border-radius: 999px;
  padding: 6px 10px 6px 11px;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  position: relative;
  user-select: none;
}

.network-select-wrap:hover:not(.connected) {
  border-color: var(--primary);
  background: var(--code-bg);
  box-shadow: 0 0 0 3px var(--primary-glow-soft);
}

.network-select-wrap.open:not(.connected) {
  border-color: var(--primary);
  background: var(--panel-2);
  box-shadow: 0 0 0 3px var(--primary-glow-soft);
}

.network-select-wrap.open:hover:not(.connected) {
  background: var(--panel-2);
}

/* Status dot */
.network-select-wrap::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--primary);
  box-shadow: 0 0 7px var(--primary);
  transition: background 0.2s, box-shadow 0.2s;
}

/* Chevron */
.net-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s, transform 0.2s;
  pointer-events: none;
}
.network-select-wrap:hover .net-chevron,
.network-select-wrap.open .net-chevron { opacity: 1; }
.network-select-wrap.open .net-chevron { transform: rotate(180deg); }

.network-select-wrap.connected {
  pointer-events: none;
  opacity: 0.75;
}

/* Per-network dot colour */
.network-select-wrap[data-network="mainnet"]::before {
  background: #22c55e;
  box-shadow: 0 0 7px #22c55e99;
}
.network-select-wrap[data-network="testnet"]::before {
  background: #f59e0b;
  box-shadow: 0 0 7px #f59e0b99;
}

/* Selected label text */
#networkSelectLabel {
  font-size: 0.76rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  letter-spacing: 0.01em;
  pointer-events: none;
}
.network-select-wrap.connected #networkSelectLabel {
  color: var(--muted);
}

/* Custom dropdown panel */
.network-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  background: var(--panel-elevated, #ffffff);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  isolation: isolate;
}
.network-select-wrap.open .network-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.network-dropdown-header {
  padding: 8px 12px 6px;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.network-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  border: none;
  background: var(--panel-elevated, #ffffff);
  width: 100%;
  text-align: left;
}
.network-dropdown-item:hover {
  background: var(--panel-elevated, #ffffff);
}
.network-dropdown-item:hover,
.network-dropdown-item:active,
.network-dropdown-item:focus {
  filter: none !important;
  transform: none !important;
  box-shadow: none !important;
  outline: none;
}
.network-dropdown-item.active {
  background: transparent;
  color: var(--text);
}
.network-dropdown-item .net-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.network-dropdown-item .net-dot.mainnet  { background: #22c55e; box-shadow: 0 0 6px #22c55e88; }
.network-dropdown-item .net-dot.testnet  { background: #f59e0b; box-shadow: 0 0 6px #f59e0b88; }
.network-dropdown-item .net-desc {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 1px;
  font-weight: 400;
}
.network-dropdown-item .net-check {
  margin-left: auto;
  opacity: 0;
  color: var(--primary);
}
.network-dropdown-item.active .net-check { opacity: 1; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 18px 12px 18px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.card:not(.modal-card) {
  animation: fadeIn 0.35s ease both;
}

.agent-item {
  animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-card:not(.hidden) {
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: visible;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
  opacity: 0.4;
  pointer-events: none;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.85em;
  color: var(--code-fg);
  font-family: "IBM Plex Mono", "SF Mono", monospace;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.label-optional {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.7;
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

input[readonly] {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

textarea {
  min-height: 88px;
  resize: vertical;
  font-family: "IBM Plex Mono", "SF Mono", monospace;
  font-size: 0.85rem;
}

button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  padding: 10px 16px;
  color: var(--on-primary);
  background: var(--gradient-primary);
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.15s ease;
}

button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 12px 32px var(--primary-glow);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 0 0 1px var(--primary-glow);
}

button.secondary:hover:not(:disabled) {
  background: var(--accent-soft);
  filter: none;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

button.danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 8px 24px rgba(248, 113, 113, 0.25);
}

button.ghost {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: none;
}

button.ghost:hover:not(:disabled) {
  background: var(--panel-elevated);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  filter: none;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-loader {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: var(--on-primary);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 20;
}

body.theme-light .modal-backdrop {
  background: rgba(15, 23, 42, 0.35);
}

.modal-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  padding: 0;
  z-index: 21;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
}

.modal-card::after {
  display: none;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--panel-elevated) 0%, var(--panel) 100%);
  position: relative;
}

.modal-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
}

.modal-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--primary);
  border: 1px solid var(--code-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.modal-header-text {
  flex: 1;
  min-width: 0;
}

.modal-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.modal-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.modal-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: none;
}

.modal-close:hover:not(:disabled) {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--line-2);
  transform: none;
  filter: none;
  box-shadow: none;
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
  display: grid;
  gap: 14px;
}

.modal-body .grid {
  gap: 14px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--panel) 0%, var(--panel-elevated) 100%);
}

.modal-footer .setup-btn {
  padding: 10px 20px;
}

.modal-footer .ghost {
  padding: 9px 18px;
}

.step-card {
  position: relative;
}

.step-card .step-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-card .step-title::before {
  content: attr(data-step);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--code-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.step-card .step-title:empty::before {
  content: none;
}

.subtle-link {
  width: auto;
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 4px 0;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.subtle-link:hover {
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}

.filter-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.chain-filter-wrap {
  position: relative;
}

.chain-filter-btn {
  min-width: 110px;
}

.chain-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(320px, 90vw);
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel-elevated);
  box-shadow: var(--shadow-card);
  padding: 6px;
  z-index: 90;
}

.chain-filter-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  box-shadow: none;
}

.chain-filter-item:hover:not(:disabled) {
  background: var(--panel-2);
  border-color: var(--line-2);
  transform: none;
  filter: none;
}

.chain-filter-item.active {
  border-color: var(--primary);
  background: var(--accent-soft);
}

.chain-filter-item img {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.chain-filter-item-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 0.8rem;
}

.chain-filter-item-count {
  color: var(--muted);
  font-size: 0.76rem;
}

.filter-btn.filter-refresh-btn {
  margin-left: auto;
  min-width: 42px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #1f9a5b;
  background: linear-gradient(135deg, #28c76f 0%, #1ea95f 100%);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.filter-btn.filter-refresh-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2dd676 0%, #1ea95f 100%);
  color: #ffffff;
  border-color: #1f9a5b;
  box-shadow: none;
  transform: translateY(-1px);
  filter: none;
}

.filter-btn.filter-refresh-btn:focus-visible {
  outline: 2px solid #7ff0b3;
  outline-offset: 2px;
}

.filter-btn.filter-refresh-btn svg {
  width: 15px;
  height: 15px;
}

.filter-btn {
  width: auto;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.2s ease;
  box-shadow: none;
}

.filter-btn:hover:not(:disabled) {
  background: var(--panel-elevated);
  color: var(--text);
  border-color: var(--line-2);
  box-shadow: none;
  transform: none;
  filter: none;
}

.filter-btn.active {
  border-color: var(--primary);
  background: var(--gradient-primary);
  color: var(--on-primary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px var(--primary-glow);
}

.filter-btn.active:hover:not(:disabled) {
  background: var(--gradient-primary);
  color: var(--on-primary);
  filter: brightness(1.08);
}

.pagination-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination-state {
  margin: 0;
  color: var(--text-2);
  font-size: 0.84rem;
}

.pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-page-btn {
  min-width: 38px;
  text-align: center;
  padding: 7px 10px;
}

.pagination-ellipsis {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 4px;
  user-select: none;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-btn {
  width: auto;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: none;
  transition: all 0.15s ease;
}

.choice-btn:hover:not(:disabled) {
  border-color: var(--line);
  box-shadow: none;
}

.choice-btn.active {
  border-color: var(--primary);
  background: var(--accent-soft);
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-glow);
}

.state-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  min-height: 18px;
}

.metrics-row {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  z-index: 50;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color 0.15s ease;
}

.metric-card.clickable {
  cursor: pointer;
}

.metric-card.clickable:hover {
  border-color: var(--primary);
}

.metric-card.clickable:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.metric-card.active-filter {
  border-color: var(--primary);
  background: var(--accent-soft);
}

.metric-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

.metric-info {
  margin-left: auto;
  flex-shrink: 0;
}

.metric-info[data-tip]::after {
  left: auto;
  right: -4px;
  transform: translateX(0);
}

.metric-info[data-tip]::before {
  left: auto;
  right: 4px;
  transform: translateX(0);
}

.metric-icon {
  width: 14px;
  height: 14px;
  color: var(--primary);
  opacity: 0.8;
  flex: 0 0 auto;
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-value {
  margin: 0;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
}

.chains-in-use {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 20px;
}

.chain-use-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--panel-2);
  color: var(--text-2);
  font-size: 0.66rem;
  line-height: 1;
}

.chain-use-item img {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.chain-use-more {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.metric-card.active-filter .metric-value {
  color: var(--primary);
}

.tiny-loader {
  width: 12px;
  height: 12px;
  border: 2px solid var(--line-2);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}

.agent-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.agent-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.agent-item.clickable {
  cursor: pointer;
}

.agent-item.clickable:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card-hover);
  z-index: 2;
}

.agent-item.clickable:hover::after {
  opacity: 1;
}

.agent-item > * {
  position: relative;
  z-index: 1;
}

.agent-item.clickable:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.agent-title {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.agent-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-title-row .agent-title {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.agent-verified-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.85;
}

.agent-eth-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.detail-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.detail-verified-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.9;
}

.agent-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 10px;
}

.revoke-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  background: var(--danger-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform 0.15s ease, background 0.15s ease;
}

.revoke-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
  box-shadow: none;
}

.revoke-btn:disabled,
.revoke-btn.loading {
  cursor: wait;
}

.revoke-btn.loading {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}

.agent-meta-rows {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  min-width: 0;
  line-height: 1.45;
}

.meta-key {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.meta-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--bg);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  cursor: default;
  position: relative;
}

.meta-info-icon::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
  width: 210px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font-weight: 400;
}

.meta-info-icon:hover::after {
  opacity: 1;
}

.meta-val {
  color: var(--text);
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-val a {
  color: var(--primary);
  text-decoration: none;
}

.meta-val a:hover {
  text-decoration: underline;
}

.meta-mono {
  font-family: "IBM Plex Mono", "SF Mono", monospace;
}

.agent-meta strong {
  color: var(--text);
  font-weight: 500;
}

.agent-meta code {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: 0.82rem;
}

.agent-item {
  text-align: left;
}

.agent-meta.owner-row {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
}

.owner-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.copy-btn {
  width: auto;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  line-height: 1.4;
  flex: 0 0 auto;
  font-weight: 500;
  transition: all 0.15s ease;
}

.copy-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent-soft);
  box-shadow: none;
}

.status-chip {
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.status-chip.active::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.type-chip {
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.claim-popup-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  opacity: 0.65;
  cursor: pointer;
  flex: 0 0 auto;
  background: transparent;
  color: inherit;
  min-width: 14px;
  line-height: 1;
  box-shadow: none;
}

.claim-popup-trigger svg {
  display: block;
  width: 12px;
  height: 12px;
}

.claim-popup-trigger:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.claim-popup {
  position: static;
  width: 100%;
  margin: 8px 0 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  overflow: hidden;
}

.claim-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.claim-popup-header strong {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.claim-popup-close {
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.claim-popup-close:hover {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.claim-popup-body {
  padding: 10px 12px 12px;
  display: grid;
  gap: 5px;
}

.claim-popup-body p {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.claim-popup-body span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 103px;
}

.claim-popup-body strong {
  color: var(--text);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  line-height: 1.4;
  font-family: "IBM Plex Mono", "SF Mono", monospace;
  font-weight: 400;
  min-width: 0;
}

.type-native {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.25);
}

body.theme-light .type-native {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
}

.type-external {
  background: var(--accent-soft);
  color: var(--primary);
  border-color: var(--code-border);
}

.type-asserted {
  background: rgba(251, 146, 60, 0.12);
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.3);
}

.type-verified-eth {
  background: var(--accent-soft);
  color: var(--primary);
  border-color: var(--code-border);
}

.type-unknown {
  background: var(--panel-2);
  color: var(--muted);
  border-color: var(--line-2);
}

.status-chip.active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #bbf7d0;
}

.status-chip.active::before {
  background: #059669;
  box-shadow: none;
}

.status-chip.revoked {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.status-chip.revoked::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #dc2626;
  flex: 0 0 auto;
}

.status-chip-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  margin-left: 2px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
  color: #dc2626;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  box-shadow: none;
  filter: none;
  transform: none;
}

.status-chip-info:hover,
.status-chip-info:focus {
  background: #fef2f2;
  border-color: #fca5a5;
  box-shadow: none;
  filter: none;
  transform: none;
}

.status-chip.unknown {
  background: var(--panel-2);
  color: var(--muted);
  border-color: var(--line-2);
}

.setup-state {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.85rem;
}

.setup-state {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.setup-state::before {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  margin-top: 1px;
}

.setup-state.info {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.45);
  color: #1d4ed8;
}

.setup-state.info::before {
  content: "i";
  background: #2563eb;
  color: #fff;
  font-style: italic;
}

.setup-state.error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.55);
  color: #b91c1c;
  font-weight: 600;
}

.setup-state.error::before {
  content: "!";
  background: #dc2626;
  color: #fff;
}

.setup-state.success {
  background: var(--accent-soft);
  border-color: rgba(77, 131, 255, 0.45);
  color: var(--primary);
  font-weight: 600;
}

.setup-state.success::before {
  content: "\2713";
  background: var(--primary);
  color: #fff;
}

body:not(.theme-light) .setup-state.info {
  color: #bfdbfe;
}

body:not(.theme-light) .setup-state.error {
  color: #fecaca;
}

.claim-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--panel-2);
}

.step-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}

.step-title {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

.step-state {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 16px;
}

.json-preview-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
}

.json-preview-card pre {
  min-height: 0;
  max-height: 240px;
  overflow: auto;
}

.setup-wizard-progress {
  margin-bottom: 12px;
}

.setup-wizard-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.setup-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.setup-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
}

.setup-step-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent-soft);
}

.setup-step-chip.done {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent-soft);
}

.setup-step-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1;
  flex: 0 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.setup-step-chip.done .setup-step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.setup-step-dot svg {
  display: block;
}

.setup-wizard-review {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--panel-2);
}

.setup-wizard-review p {
  margin: 0 0 8px;
}

.setup-wizard-review p:last-child {
  margin-bottom: 0;
}

.setup-wizard-nav {
  display: inline-flex;
  gap: 8px;
}

.chain-picker {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel);
}

.chain-picker-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.chain-picker-subtitle {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.chain-search {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel-elevated);
  color: var(--text);
  padding: 11px 12px;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.chain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 135px;
  overflow: auto;
  padding-right: 2px;
}

.chain-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 10px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.chain-tile:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--panel-elevated);
}

.chain-tile.selected {
  border-color: var(--primary);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--primary-glow) inset;
}

.chain-logo {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.chain-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chain-name {
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chain-caip {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supported-caip-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.supported-copy-btn {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.supported-copy-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--accent-soft);
}

.supported-copy-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.supported-copy-btn.copied {
  color: #0f9f6e;
  border-color: #0f9f6e;
  background: rgba(15, 159, 110, 0.12);
}

.supported-copy-btn.copied::after {
  content: "Copied";
  position: absolute;
  margin-top: -28px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  line-height: 1;
  color: #fff;
  background: #0f9f6e;
  white-space: nowrap;
}

.chain-picker-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.chain-link-btn {
  width: auto;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  padding: 0;
  font-size: 0.95rem;
  cursor: pointer;
}

.chain-link-btn:hover {
  text-decoration: underline;
}

.chain-empty {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.selected-chain-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.selected-chain-label {
  margin: 0;
  font-size: 0.76rem;
  text-transform: capitalize;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.selected-chain-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.selected-chain-title {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text);
  font-weight: 700;
}

.selected-chain-subtitle {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.supported-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 30;
}

.supported-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 30px);
  z-index: 31;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
}

.supported-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.supported-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.supported-title {
  margin: 0;
  font-size: 1.65rem;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.supported-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.supported-body {
  padding: 14px 16px;
  overflow: auto;
  display: grid;
  gap: 12px;
}

.supported-tools {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 12px;
  align-items: center;
}

.supported-search {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--panel-elevated);
  color: var(--text);
  font-size: 0.95rem;
}

.supported-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 7px;
}

.legend-dot.available {
  background: #2563eb;
}

.legend-dot.recognised {
  background: #94a3b8;
}

.supported-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.supported-tab {
  width: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.02rem;
  padding: 4px 10px;
  border-radius: 9px;
  font-weight: 600;
}

.supported-tab.active {
  color: var(--primary);
  background: var(--accent-soft);
}

.supported-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  margin-left: 8px;
}

.supported-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 200px;
  overflow: auto;
  padding-right: 2px;
}

.supported-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  text-align: left;
  color: var(--text);
}

.supported-card.active {
  border-color: var(--primary);
  background: var(--accent-soft);
}

.supported-card.available:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--panel-elevated);
}

.supported-card.recognised {
  opacity: 0.92;
  cursor: default;
}

.supported-card-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.supported-card-right {
  color: #0f9f6e;
  font-weight: 600;
  font-size: 0.84rem;
  flex: 0 0 auto;
}

.supported-card-right.recognised {
  color: var(--muted);
}

.supported-footer {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.supported-footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.supported-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.helper-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* ── General data-tip tooltip ── */
[data-tip] {
  position: relative;
}

[data-tip]::after,
[data-tip]::before {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 1000;
}

[data-tip]::after {
  content: attr(data-tip);
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  width: max-content;
  max-width: 260px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

[data-tip]::before {
  content: "";
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
}

[data-tip]:hover::after,
[data-tip]:focus::after,
[data-tip]:hover::before,
[data-tip]:focus::before {
  opacity: 1;
}

body.theme-light [data-tip]::after {
  background: #111;
  color: #fff;
}

body.theme-light [data-tip]::before {
  border-top-color: #111;
}

.helper-info {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.68rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.helper-info[data-tip]::after,
.helper-info[data-tip]::before {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 1000;
}

.helper-info[data-tip]::after {
  content: attr(data-tip);
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.helper-info[data-tip]::before {
  content: "";
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
}

.helper-info:hover[data-tip]::after,
.helper-info:focus[data-tip]::after,
.helper-info:hover[data-tip]::before,
.helper-info:focus[data-tip]::before {
  opacity: 1;
}

body.theme-light .helper-info[data-tip]::after {
  background: #111;
  color: #fff;
}
body.theme-light .helper-info[data-tip]::before {
  border-top-color: #111;
}

.payload-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--code-border);
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  width: auto;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.payload-badge-btn:hover {
  border-color: var(--primary);
  background: var(--accent-soft);
}

.payload-badge-btn:active {
  transform: translateY(1px);
}

.payload-badge-btn .payload-badge-chevron {
  transition: transform 0.15s ease;
}

.payload-badge-btn[aria-expanded="true"] .payload-badge-chevron {
  transform: rotate(180deg);
}

.asserted-fields-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.asserted-fields-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.label-with-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.registry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.registry-title {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.registry-title::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: var(--gradient-primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.registry-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.registry-subtitle .dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--muted);
  opacity: 0.6;
}

.registry-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.view-toggle {
  display: inline-flex;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

body.theme-light .view-toggle {
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.view-toggle-btn {
  width: auto;
  background: transparent;
  color: var(--muted);
  padding: 6px 14px;
  border: 0;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: none;
}

.view-toggle-btn:hover:not(.active) {
  color: var(--text);
  background: transparent;
  transform: none;
  filter: none;
  box-shadow: none;
}

.view-toggle-btn.active {
  background: var(--panel-elevated);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--primary-glow);
  filter: none;
}

body.theme-light .view-toggle-btn.active {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--primary-glow);
}

.view-toggle-btn svg {
  width: 12px;
  height: 12px;
}

.setup-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 6px;
  background: var(--gradient-primary);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 0 1px var(--primary-glow), 0 8px 24px var(--primary-glow);
}

.setup-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 0 1px var(--primary), 0 12px 32px var(--primary-glow);
}

.setup-btn svg {
  width: 12px;
  height: 12px;
}

.breadcrumb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-left: 12px;
}

.breadcrumb-chip::before {
  content: "›";
  color: var(--muted);
  opacity: 0.5;
  margin-right: 2px;
}

button.disconnect-btn {
  width: auto;
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger-soft);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: none;
}

button.disconnect-btn:hover:not(:disabled) {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
  box-shadow: none;
  filter: none;
  transform: none;
}

.tech-details {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  position: relative;
}

body.theme-light .tech-details {
  background: #fdfdfd;
}

body.view-simple .tech-details {
  display: none;
}

.tech-details-title {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tech-details-icon {
  display: block;
  opacity: 0.9;
  flex: 0 0 auto;
}

.tech-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.78rem;
}

.tech-row + .tech-row {
  border-top: 1px solid var(--line);
}

body.theme-light .tech-row + .tech-row {
  border-top-color: var(--line);
}

.tech-row-label {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tech-row-help {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.7;
  cursor: help;
}

.tech-row-value {
  color: var(--text);
  font-family: "IBM Plex Mono", "SF Mono", monospace;
  font-size: 0.78rem;
}

.tech-row-value.yes {
  color: var(--primary);
}

.footer-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-actions .footer-action-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  filter: none;
  transform: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.footer-actions .footer-action-btn svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.85;
}

.footer-actions .footer-action-btn:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: none;
  filter: none;
  transform: none;
}

.agent-card-rows {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.agent-meta-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  opacity: 0.7;
  cursor: help;
  flex: 0 0 auto;
  box-shadow: none;
  line-height: 1;
}

.card-info-icon:hover {
  opacity: 1;
  color: var(--primary);
  background: transparent;
  box-shadow: none;
  transform: none;
  filter: none;
}

.card-info-icon svg {
  display: block;
}

.card-info-icon[data-tip]::after,
.card-info-icon[data-tip]::before,
.status-chip-info[data-tip]::after,
.status-chip-info[data-tip]::before {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 1000;
}

.card-info-icon[data-tip]::after,
.status-chip-info[data-tip]::after {
  content: attr(data-tip);
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.card-info-icon[data-tip]::before,
.status-chip-info[data-tip]::before {
  content: "";
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
}

.card-info-icon:hover[data-tip]::after,
.card-info-icon:focus[data-tip]::after,
.card-info-icon:hover[data-tip]::before,
.card-info-icon:focus[data-tip]::before,
.status-chip-info:hover[data-tip]::after,
.status-chip-info:focus[data-tip]::after,
.status-chip-info:hover[data-tip]::before,
.status-chip-info:focus[data-tip]::before {
  opacity: 1;
}

body.theme-light .card-info-icon[data-tip]::after {
  background: #111;
  color: #fff;
}
body.theme-light .card-info-icon[data-tip]::before {
  border-top-color: #111;
}

.agent-meta-value {
  color: var(--text);
  font-family: "IBM Plex Mono", "SF Mono", monospace;
  font-size: 0.78rem;
  background: transparent;
  border: 0;
  padding: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.agent-meta a {
  color: var(--primary);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.agent-meta a:hover {
  text-decoration: underline;
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.back-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line-2);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  box-shadow: none;
}

.back-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow-soft);
  transform: none;
  filter: none;
}

.back-btn svg {
  transition: transform 0.2s ease;
}

.back-btn:hover svg {
  transform: translateX(-2px);
}

.detail-state-pill {
  margin: 0;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-family: "JetBrains Mono", "IBM Plex Mono", "SF Mono", monospace;
}

.detail-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.view-simple .tech-only {
  display: none !important;
}

body:not(.view-simple) .simple-only {
  display: none !important;
}

.view-hint-wrap {
  margin-top: 12px;
}

.view-hint {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-hint svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--primary);
  opacity: 0.9;
}

body.view-simple .agent-item.agent-item--active {
  border-color: #bbf7d0;
  border-left: 3px solid #22c55e;
}

body.view-simple .agent-item.agent-item--revoked {
  border-color: #fecaca;
  border-left: 3px solid #dc2626;
}

.agent-item.agent-item--active {
  border-left: 3px solid #22c55e;
}

.agent-item.agent-item--revoked {
  border-left: 3px solid #dc2626;
}

.agent-simple-panel {
  margin-top: 4px;
  padding: 5px 4px;
  border-radius: 10px;
  background: #fbfbfb;
  border: 1px solid #e8eef8;
}

.agent-simple-body {
  margin: 0;
  font-size: 0.85rem;
  line-height: 2.5;
  color: #334155;
}

.agent-simple-body .simple-brand {
  color: #0f172a;
  font-weight: 700;
}

.agent-simple-body .simple-date {
  font-weight: 600;
  color: #0f172a;
}

.simple-nowrap {
  white-space: nowrap;
}

.simple-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", "SF Mono", monospace;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  vertical-align: middle;
  border: 1px solid transparent;
  max-width: 100%;
  white-space: normal;
  word-break: break-all;
}

.simple-pill span {
  min-width: 0;
}

.simple-pill svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.simple-pill-badge {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.simple-pill-badge[data-tip] {
  position: relative;
}

.simple-pill-badge[data-tip]::after,
.simple-pill-badge[data-tip]::before {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 1000;
}

.simple-pill-badge[data-tip]::after {
  content: attr(data-tip);
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  width: max-content;
  max-width: 280px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  font-family: "IBM Plex Mono", "SF Mono", monospace;
}

.simple-pill-badge[data-tip]::before {
  content: "";
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
}

.simple-pill-badge:hover[data-tip]::after,
.simple-pill-badge:focus[data-tip]::after,
.simple-pill-badge:hover[data-tip]::before,
.simple-pill-badge:focus[data-tip]::before {
  opacity: 1;
}

.simple-pill-badge:hover {
  background: #dbeafe;
  text-decoration: none;
}

.simple-pill-account {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.simple-pill-account:hover {
  background: #ede9fe;
  text-decoration: none;
}

.agent-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.agent-card-footer.simple-only .simple-footer-copy {
  margin-left: auto;
}

.agent-card-footer .simple-footer-copy:first-child {
  margin-left: auto;
}

.agent-card-footer .subtle-link,
.agent-card-footer .copy-btn {
  font-size: 0.8rem;
}

.agent-card-footer .simple-footer-link,
.agent-card-footer .simple-footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agent-card-footer .simple-footer-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.agent-card-footer .simple-footer-link:hover {
  text-decoration: underline;
}

.agent-card-footer .simple-footer-copy {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  color: #334155;
  box-shadow: none;
  filter: none;
  transform: none;
}

.agent-card-footer .simple-footer-copy:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: none;
  filter: none;
  transform: none;
}

.agent-card-footer .simple-footer-link svg,
.agent-card-footer .simple-footer-copy svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.agent-card-footer .muted-link {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}


#agentDetailContent {
  display: grid;
  gap: 14px;
}

.detail-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.detail-title-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.detail-kicker {
  color: #64748b;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.detail-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: none;
}

.detail-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-overview,
.detail-section {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  background: #f8f8f8;
  min-width: 0;
}

.detail-block-title,
.detail-section-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-section-grid {
  margin-top: 0;
}

.detail-field {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  min-width: 0;
}

.detail-field--full {
  grid-column: 1 / -1;
}

.detail-label {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.detail-value {
  margin: 0;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#agentDetailContent code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.detail-code-pill {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #334155;
  font-family: "IBM Plex Mono", "SF Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.detail-code-pill--badge {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.detail-code-pill--account {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.detail-code-pill--hash {
  border-radius: 8px;
  background: #f8fafc;
}

.detail-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.detail-link:hover {
  text-decoration: underline;
}

.detail-owner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-copy-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 500;
  box-shadow: none;
  filter: none;
  transform: none;
  flex: 0 0 auto;
}

.detail-copy-btn:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: none;
  filter: none;
  transform: none;
}

.detail-copy-btn svg {
  width: 13px;
  height: 13px;
}

.detail-simple-panel {
  margin-top: 0;
}

.detail-footer {
  margin-top: 0;
}

.detail-page-footer {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  justify-content: space-between;
}

.detail-section--message .detail-message {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.5;
}

.detail-section + .detail-section,
.detail-overview + .detail-section,
.detail-hero + .detail-overview,
.detail-hero + .agent-simple-panel,
.detail-hero + .detail-section,
.agent-simple-panel + .detail-section,
.detail-section + .detail-footer {
  margin-top: 0;
}

pre {
  margin: 0;
  border-radius: 8px;
  background: var(--pre-bg);
  color: var(--pre-fg);
  border: 1px solid var(--line);
  min-height: 140px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "IBM Plex Mono", "SF Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

::selection {
  background: var(--primary-glow);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--line);
}

body.theme-light .agent-item.clickable:hover {
  background: #adadad0d;
}

body.theme-light .metric-card {
  background: var(--panel);
}

body.theme-light .metric-card.clickable:hover {
  border-color: var(--primary);
}

body.theme-light .metric-card.active-filter {
  background: rgba(38, 102, 255, 0.07);
}

body.theme-light .type-native {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.3);
}

body.theme-light .type-asserted {
  background: rgba(251, 146, 60, 0.12);
  color: #c2410c;
  border-color: rgba(251, 146, 60, 0.4);
}

body.theme-light .revoked {
  color: #b91c1c;
}

body.theme-light .unknown {
  color: #475569;
}

body.theme-light button.disconnect-btn {
  color: var(--danger);
  border-color: var(--danger-soft);
  background: transparent;
}

body.theme-light button.disconnect-btn:hover:not(:disabled) {
  background: var(--danger-soft);
}

body.theme-light .revoke-btn {
  color: #b91c1c;
}

body.theme-light .tech-row + .tech-row {
  border-top-color: rgba(0, 0, 0, 0.05);
}

body.theme-light input[readonly] {
  background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 980px) {
  .metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .agent-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supported-modal {
    width: min(980px, calc(100vw - 14px));
    max-height: calc(100vh - 14px);
  }

  .chain-grid,
  .supported-grid {
    grid-template-columns: 1fr;
  }

  .supported-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {

  .grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .agent-list {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }

  .address-chip {
    max-width: 220px;
  }

  .selected-chain-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === WalletConnect Picker Modal === */
.wc-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:9990}
.wc-backdrop.hidden{display:none!important}
.wc-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(640px,calc(100vw - 20px));max-height:calc(100vh - 28px);overflow-y:auto;z-index:9991;background:#0e1520;border:1px solid rgba(255,255,255,.1);border-radius:18px;box-shadow:0 32px 80px rgba(0,0,0,.7);animation:wcFadeIn .2s ease both}
.wc-modal.hidden{display:none!important;animation:none}
@keyframes wcFadeIn{from{opacity:0;transform:translate(-50%,-47%) scale(.97)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.wc-modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 12px;border-bottom:1px solid rgba(255,255,255,.07);position:sticky;top:0;background:#0e1520;z-index:2;border-radius:18px 18px 0 0}
.wc-modal-hd-inner{display:flex;align-items:center;gap:12px}
.wc-modal-icon{width:36px;height:36px;border-radius:10px;background:rgba(38,102,255,.12);border:1px solid rgba(38,102,255,.25);display:flex;align-items:center;justify-content:center;color:#4d83ff;flex-shrink:0}
.wc-modal-icon svg{width:17px;height:17px}
.wc-modal-title{font-size:.97rem;font-weight:700;color:#fff;margin:0 0 2px}
.wc-modal-sub{font-size:.73rem;color:rgba(255,255,255,.4);margin:0}
.wc-close{width:28px;height:28px;border-radius:8px;background:transparent;border:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.4);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;flex-shrink:0;font-size:17px;line-height:1;padding:0}
.wc-close:hover{background:rgba(255,255,255,.08);color:#fff}
.wc-modal-body{padding:14px 18px 18px;display:flex;flex-direction:column;gap:0}
.wc-option{border:1px solid rgba(255,255,255,.08);border-radius:13px;overflow:hidden;background:rgba(255,255,255,.015)}
.wc-opt-hd{display:flex;align-items:center;gap:11px;padding:13px 16px 9px}
.wc-opt-icon{width:38px;height:38px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.wc-opt-icon.browser{background:rgba(38,102,255,.12);border:1px solid rgba(38,102,255,.25);color:#4d83ff}
.wc-opt-icon.mobile{background:rgba(56,152,236,.1);border:1px solid rgba(56,152,236,.25);color:#63a6ff}
.wc-opt-lbl h4{font-size:.86rem;font-weight:700;color:#fff;margin:0 0 2px}
.wc-opt-lbl p{font-size:.71rem;color:rgba(255,255,255,.38);margin:0}
.wc-opt-body{padding:0 16px 14px}
.wc-opt-desc{font-size:.79rem;color:rgba(255,255,255,.45);margin:0 0 11px;line-height:1.5}
.wc-btn-primary{display:inline-flex;align-items:center;gap:7px;background:#2667FF;color:#fff;border:none;border-radius:100px;padding:8px 18px;font-size:12.5px;font-weight:700;cursor:pointer;transition:all .18s;box-shadow:0 3px 12px rgba(38,102,255,.3);min-width:auto;width:auto}
.wc-btn-primary:hover:not(:disabled){background:#4d83ff;transform:translateY(-1px);box-shadow:0 5px 16px rgba(38,102,255,.4)}
.wc-btn-primary:disabled{opacity:.5;cursor:wait;transform:none}
.wc-btn-deeplink{display:inline-flex;align-items:center;gap:7px;background:#2667FF;color:#fff;text-decoration:none;border-radius:100px;padding:8px 18px;font-size:12.5px;font-weight:700;transition:all .18s;box-shadow:0 3px 12px rgba(38,102,255,.3)}
.wc-btn-deeplink:hover{background:#4d83ff;transform:translateY(-1px)}
.wc-divider{display:flex;align-items:center;gap:10px;margin:12px 0;color:rgba(255,255,255,.22);font-size:11px}
.wc-divider::before,.wc-divider::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.07)}
.wc-qr-wrap{display:flex;flex-direction:column;align-items:center;padding:10px 0 6px}
.wc-qr-spin{display:flex;flex-direction:column;align-items:center;gap:9px;padding:20px 0;color:rgba(255,255,255,.38);font-size:12px}
.wc-spinner{width:20px;height:20px;border-radius:50%;border:2.5px solid rgba(38,102,255,.2);border-top-color:#2667FF;animation:wcSpin .75s linear infinite;flex-shrink:0}
@keyframes wcSpin{to{transform:rotate(360deg)}}
#wcQrCanvas{border-radius:9px;display:block;box-shadow:0 3px 16px rgba(0,0,0,.35)}
#wcQrCanvas.hidden{display:none!important}
.wc-qr-hint{font-size:11px;color:rgba(255,255,255,.3);text-align:center;margin:7px 0 0}
.wc-deeplink-hint{font-size:11px;color:rgba(255,255,255,.3);margin:11px 0 0;line-height:1.5}
.wc-deeplink-hint a{color:#4d83ff;text-decoration:none}
.wc-deeplink-hint a:hover{text-decoration:underline}
.wc-waiting{display:inline-flex;align-items:center;gap:7px;color:rgba(255,255,255,.4);font-size:12px;margin-top:12px}
.wc-error{margin-top:9px;padding:8px 11px;background:rgba(248,113,113,.07);border:1px solid rgba(248,113,113,.2);border-radius:7px;color:rgba(248,113,113,.8);font-size:11.5px;line-height:1.5}
.wc-error.hidden{display:none!important}
/* Network selector pills */
.wc-net-selector{display:flex;gap:8px;margin:0 0 14px}
.wc-net-btn{flex:1;padding:7px 0;border-radius:100px;border:1.5px solid rgba(255,255,255,.15);background:transparent;color:rgba(255,255,255,.45);font-size:12px;font-weight:600;cursor:pointer;transition:all .17s;white-space:nowrap}
.wc-net-btn:hover{border-color:rgba(38,102,255,.6);color:rgba(255,255,255,.75)}
.wc-net-btn.active{background:#2667FF;border-color:#2667FF;color:#fff;box-shadow:0 3px 10px rgba(38,102,255,.35)}
.wc-net-hint{font-size:11.5px;color:rgba(255,255,255,.35);margin:0 0 12px;line-height:1.5}
body.theme-light .wc-net-btn{border-color:rgba(0,0,0,.18);color:rgba(0,0,0,.55);background:#f8fafc}
body.theme-light .wc-net-btn:hover{border-color:#2667FF;color:#2667FF}
body.theme-light .wc-net-btn.active{background:#2667FF;border-color:#2667FF;color:#fff}
body.theme-light .wc-net-hint{color:rgba(0,0,0,.45)}
@media (hover:none) and (pointer:coarse){#wcBrowserOption{display:none}.wc-divider{display:none}}
body.theme-light .wc-modal,body.theme-light .wc-modal-header{background:#fff}
body.theme-light .wc-modal{border-color:#e2e8f0;box-shadow:0 24px 60px rgba(15,23,42,.18)}
body.theme-light .wc-modal-header{border-color:#f1f5f9}
body.theme-light .wc-modal-title{color:#0f172a}
body.theme-light .wc-modal-sub{color:#64748b}
body.theme-light .wc-close{border-color:#e2e8f0;color:#94a3b8}
body.theme-light .wc-close:hover{background:#f1f5f9;color:#0f172a}
body.theme-light .wc-option{border-color:#e2e8f0;background:#f8fafc}
body.theme-light .wc-opt-lbl h4{color:#0f172a}
body.theme-light .wc-opt-lbl p,body.theme-light .wc-opt-desc{color:#64748b}
body.theme-light .wc-divider{color:#cbd5e1}
body.theme-light .wc-divider::before,body.theme-light .wc-divider::after{background:#e2e8f0}
body.theme-light .wc-qr-spin,body.theme-light .wc-qr-hint,body.theme-light .wc-deeplink-hint,body.theme-light .wc-waiting{color:#94a3b8}
@media (max-width:480px){.wc-modal{top:auto!important;bottom:0!important;left:0!important;transform:none!important;width:100%!important;max-width:100%;border-radius:20px 20px 0 0;max-height:88vh;animation:wcSlideUp .25s ease both}.wc-modal-header{border-radius:20px 20px 0 0}@keyframes wcSlideUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}}
