:root {
  /* SmartLedger brand palette (matches smartledger.technology) */
  --bg: #020604;
  --panel: rgba(0, 255, 157, 0.025);
  --panel-2: rgba(0, 255, 157, 0.05);
  --border: rgba(0, 255, 157, 0.18);
  --text: #e2e8f0;
  --muted: #a8b7c8;
  --text-dim: #8da2b6;
  --accent: #00ff9d;
  --accent-2: #6ee7c0;
  --accent-glow: rgba(0, 255, 157, 0.40);
  --ok: #00ff9d;
  --danger: #ff5a5a;
  --grid-line: rgba(0, 255, 157, 0.06);
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 255, 157, 0.06), 0 1px 0 rgba(0, 255, 157, 0.04) inset;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  /* Subtle 50px grid — SmartLedger signature backdrop */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Faint scan-line that sweeps top → bottom every 14s.
   Matches the smartledger.technology global scanner effect. */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--accent);
  opacity: 0.035;
  filter: blur(5px);
  z-index: 9999;
  pointer-events: none;
  animation: sl-scan 14s linear infinite;
}
@keyframes sl-scan {
  0%   { top: -2%; }
  100% { top: 102%; }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 4, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
}
.brand-text {
  font-family: var(--font-mono);
  font-size: 16px;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.topbar-link:hover { color: var(--text); border-bottom-color: var(--accent); }
.net-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

main {
  max-width: 880px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-size: 14px;
}
.tab.active {
  color: var(--text);
  background: var(--panel-2);
  border-bottom-color: var(--panel-2);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

label { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; margin-bottom: 4px; }
input, textarea, select {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.10);
}
textarea { resize: vertical; }

button {
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.05s;
}
button:hover { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
button.primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-color: var(--accent);
}
button.primary:hover { box-shadow: 0 0 20px var(--accent-glow); filter: brightness(1.08); }
button.secondary { background: var(--panel-2); border-color: var(--border); }
button.danger { background: rgba(255, 90, 90, 0.10); border-color: var(--danger); color: var(--danger); }
button.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); box-shadow: 0 0 14px rgba(255, 90, 90, 0.4); }
button.small { padding: 5px 10px; font-size: 12px; }
.iconbtn { background: transparent; padding: 4px 8px; border: 1px solid var(--border); }

/* Mono font for anything that's an identifier (addresses, txids, BAP IDs, etc.) */
code, .addr-line code, .addr-readonly, pre, .tx-preview, .history-list, .scan-results,
.mnemonic-box textarea, .payload-preview { font-family: var(--font-mono); }

.row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.row.gap { gap: 10px; }
.row .grow { flex: 1 1 240px; }

.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13px; }

.mnemonic-box { margin-top: 14px; padding: 14px; background: var(--panel-2); border: 1px dashed var(--border); border-radius: 8px; }
.mnemonic-box textarea { font-family: var(--font-mono); font-size: 15px; }

.account-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
}
.addr-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  word-break: break-all;
}
.balance { text-align: right; }
.bal-amt { font-size: 22px; font-weight: 600; }
.balance small { color: var(--muted); }

.send-section, .history-section, .backup-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.send-section h3, .history-section h3, .backup-section h3 { margin: 0 0 10px; font-size: 16px; }

.tx-preview {
  margin-top: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.history-list {
  font-family: var(--font-mono);
  font-size: 12px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.history-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--border); }
.history-row:last-child { border-bottom: none; }
.history-row a { color: var(--accent-2); text-decoration: none; }
.history-row .pos { color: var(--ok); }
.history-row .neg { color: var(--danger); }

.scan-results {
  margin-top: 10px;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.scan-group { padding: 6px 0; border-bottom: 1px solid var(--border); }
.scan-group:last-child { border-bottom: none; }
.scan-head { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.scan-group details { margin-top: 4px; }
.scan-group summary { cursor: pointer; padding: 4px 0; }
.scan-row { display: flex; justify-content: space-between; padding: 4px 0; cursor: pointer; gap: 10px; }
.scan-row:hover { background: rgba(255,255,255,0.04); }
.scan-row .funded { color: var(--ok); }
.scan-toolbar { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px dotted var(--border); margin-bottom: 6px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: var(--shadow);
  z-index: 1000;
  max-width: 80%;
}
.toast.error { border-color: var(--danger); }
.toast.ok { border-color: var(--ok); }

.otp-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.otp-box input[type="text"] {
  letter-spacing: 6px;
  font-size: 18px;
  text-align: center;
}

/* ============================================================== mobile */
@media (max-width: 560px) {
  main { padding: 0 12px; margin: 16px auto; }
  .card { padding: 14px; }
  .topbar { padding: 12px 14px; }
  .brand { font-size: 14px; }
  .net-badge { font-size: 11px; padding: 3px 8px; }

  /* Force account-head into a tidy stacked layout instead of wrap-with-gap. */
  .account-head { flex-direction: column; gap: 12px; align-items: stretch; }
  .balance { text-align: left; }
  .bal-amt { font-size: 20px; }
  .addr-line code { font-size: 12px; }

  /* Touch targets: bump every interactive element to a thumb-friendly height. */
  button { padding: 12px 14px; min-height: 44px; }
  button.small { padding: 6px 10px; min-height: 0; }
  .iconbtn { padding: 8px 10px; min-height: 0; }

  /* Stop iOS Safari from zooming when an input gets focus. */
  input, textarea, select { font-size: 16px; }
  .otp-box input[type="text"] { font-size: 18px; }

  /* Scan rows: stack index / address / amount so the address has room. */
  .scan-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px dotted var(--border);
    word-break: break-all;
  }
  .scan-row:last-child { border-bottom: none; }
  .scan-toolbar { flex-wrap: wrap; }

  /* Full-width inputs in mixed rows (recipient/amount/etc.). */
  .row .grow { flex: 1 1 100%; }

  /* Slightly tighter tab labels so "Restore from server" doesn't cause a 2-row tab strip. */
  .tab { padding: 8px 10px; font-size: 13px; }

  /* History rows: give the explorer link priority, push label below if cramped. */
  .history-row { flex-wrap: wrap; }
}

.qr-box {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-block;
  line-height: 0;
}
.qr-box svg { display: block; max-width: 100%; height: auto; }

/* ============================================================ purposes */
.purpose-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.purpose {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.12s, background 0.12s;
}
.purpose:hover { border-color: var(--accent-2); }
.purpose.active {
  border-color: var(--accent);
  background: rgba(247, 147, 26, 0.08);
}
.purpose .p-icon { font-size: 22px; line-height: 1; }
.purpose .p-label { font-weight: 600; font-size: 13px; letter-spacing: 0.2px; }
.purpose .p-path { color: var(--muted); font-size: 11px; font-family: var(--font-mono); }

.ord-warn {
  margin-top: -6px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(218, 54, 51, 0.10);
  border: 1px solid rgba(218, 54, 51, 0.40);
  color: var(--text);
}
.advanced-path { margin-top: 6px; }
.advanced-path summary { cursor: pointer; padding: 4px 0; }

/* ============================================================== signing */
.signing-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.signing-section h3 { margin: 0 0 10px; font-size: 16px; }
.sub-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.sub-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.sub-tab.active {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--accent);
}
.sub-panel { display: none; }
.sub-panel.active { display: block; }
.addr-readonly {
  display: block;
  padding: 8px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-all;
}
.verify-result {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.verify-result.ok { background: rgba(46, 160, 67, 0.12); border: 1px solid var(--ok); color: var(--ok); }
.verify-result.bad { background: rgba(218, 54, 51, 0.12); border: 1px solid var(--danger); color: var(--danger); }

/* ============================================================== login */
.login-head { margin: 0 0 8px; font-size: 18px; }
.login-row { margin-top: 12px; }
.login-row label { display: block; }
/* Scope checkboxes — opt-in receive addresses an integrator can request
   via SLLogin.start({ request: ['ordinals','finance'] }). Default-on. */
.login-scopes {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--panel-2);
  border-radius: 6px;
  background: var(--panel-2);
}
.login-scope-heading {
  display: block;
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.login-scope-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 8px;
  font-size: 13px;
  cursor: pointer;
}
.login-scope-row input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}
.login-scope-row code.addr-readonly { display: inline-block; margin-top: 4px; }
.muted-strong { color: var(--text); font-weight: 600; }
.payload-preview {
  margin: 4px 0 0;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 180px;
  overflow: auto;
}
.muted.small { font-size: 12px; }

/* ============================================================== scanner */
.scan-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.scan-modal-inner {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow);
}
.scan-modal-title { margin: 0 0 12px; font-size: 16px; }
.scan-modal-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.scan-modal-video-wrap video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.scan-modal-reticle {
  position: absolute;
  top: 12%; left: 12%; right: 12%; bottom: 12%;
  border: 2px solid rgba(247,147,26,0.85);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.25);
  pointer-events: none;
}

.bap-row {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(247, 147, 26, 0.06);
  border: 1px solid rgba(247, 147, 26, 0.30);
  border-radius: 8px;
}
.bap-row label { margin-top: 0; }
.bap-row code { font-family: var(--font-mono); font-size: 13px; word-break: break-all; }

.wallet-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 0 28px;
  font-size: 13px;
}
.wallet-footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.wallet-footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.accounts-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 6px 0 12px;
  padding: 8px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.accounts-row label { margin: 0; flex: 1 1 0; }
.accounts-row select { width: 100%; }
@media (max-width: 560px) {
  .accounts-row { flex-wrap: wrap; }
  .accounts-row label { flex: 1 1 100%; }
}

.bap-published {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(46, 160, 67, 0.10);
  border: 1px solid var(--ok);
  border-radius: 6px;
  color: var(--text);
}
.bap-published a { color: var(--accent-2); }

/* ============================================================== hero */
.wallet-hero {
  max-width: 880px;
  margin: 28px auto 8px;
  padding: 36px 20px 16px;
  text-align: center;
}
.wallet-hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wallet-hero-sub {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 22px;
  letter-spacing: 0.3px;
}
.wallet-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.wallet-hero-chip {
  padding: 6px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
}
@media (max-width: 560px) {
  .wallet-hero { padding: 18px 12px 8px; margin-top: 12px; }
  .wallet-hero-title { font-size: 24px; }
  .wallet-hero-sub { font-size: 12px; margin-bottom: 14px; }
}

/* Hide the hero once a wallet is loaded — same toggle as walletCard/setupCard. */
.wallet-hero.hidden { display: none; }

/* Replacements for inline styles removed for CSP compliance */
.bap-publish-box { margin-top: 8px; }
.demo-sep { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

.bap-profile {
  margin-top: 10px;
  padding: 4px 0;
}
.bap-profile summary { cursor: pointer; padding: 4px 0; }
.bap-profile[open] summary { color: var(--accent); }

.raw-hex-box { margin-top: 10px; }
.raw-hex-box textarea {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  word-break: break-all;
  background: var(--bg);
  color: var(--accent-2);
  max-height: 140px;
}

/* ====================================================== section tabs */
.section-tabs {
  display: flex;
  gap: 4px;
  margin: 18px 0 14px;
  padding: 4px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.section-tab {
  flex: 1 1 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.section-tab:hover { color: var(--text); border-color: transparent; box-shadow: none; }
.section-tab.active {
  color: var(--accent);
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.section-tab-icon { font-size: 16px; line-height: 1; }
.section-panel { display: none; }
.section-panel.active { display: block; }

/* ===================================================== onboarding steps */
.gen-step { display: none; }
.gen-step.active { display: block; }

.verify-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 4px;
}
.verify-grid label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.verify-grid input { font-family: var(--font-mono); }
.verifyIdx {
  color: var(--accent);
  font-family: var(--font-mono);
  margin-left: 2px;
}
@media (max-width: 560px) {
  .verify-grid { grid-template-columns: 1fr; }
}

/* ===================================================== topbar lock */
.topbar-lock {
  background: rgba(255, 90, 90, 0.10);
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}
.topbar-lock:hover { background: var(--danger); color: #fff; border-color: var(--danger); box-shadow: 0 0 12px rgba(255, 90, 90, 0.4); }

/* BAP-action section visibility hint copy */
.bap-actions { padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }

/* ====================================================== empty state */
.empty-state {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 4px;
  box-shadow: 0 0 30px rgba(0, 255, 157, 0.04) inset;
}
.empty-title {
  margin: 0 0 8px;
  font-size: 18px;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.empty-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  margin-top: 14px;
  align-items: start;
}
.empty-qr {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: inline-block;
  line-height: 0;
}
.empty-qr svg { display: block; max-width: 100%; height: auto; }
.empty-meta label { margin-top: 0; }
.empty-meta .addr-readonly { margin-bottom: 12px; font-size: 13px; }
.muted.small { font-size: 12px; margin-top: 10px; }
@media (max-width: 560px) {
  .empty-state { padding: 14px; }
  .empty-grid { grid-template-columns: 1fr; gap: 14px; }
  .empty-qr { justify-self: center; }
}

/* ====================================================== watch-only */
.watch-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: rgba(247, 147, 26, 0.10);
  border: 1px solid #f7931a;
  border-radius: 999px;
  color: #ffb547;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
}
/* Disabled-by-watch-only treatment — sections still visible so the user
   understands what features exist, but interaction is blocked. */
.watch-disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(50%);
}
.watch-notice {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(247, 147, 26, 0.08);
  border: 1px solid rgba(247, 147, 26, 0.45);
  border-radius: 8px;
  color: #ffb547;
  font-size: 13px;
}

/* ====================================================== portfolio dashboard */
.portfolio-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.portfolio-card:hover { border-color: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.portfolio-card.active {
  border-color: var(--accent);
  background: rgba(0, 255, 157, 0.06);
  box-shadow: 0 0 14px var(--accent-glow);
}
.portfolio-card.funded .pcard-amt { color: var(--accent); }
.pcard-icon { font-size: 20px; line-height: 1; }
.pcard-label { font-weight: 600; font-size: 13px; letter-spacing: 0.2px; }
.pcard-amt {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}
.pcard-meta { font-size: 11px; color: var(--muted); }
@media (max-width: 560px) {
  .portfolio-row { gap: 6px; }
  .portfolio-card { padding: 8px 6px; }
  .pcard-icon { font-size: 18px; }
  .pcard-label { font-size: 12px; }
  .pcard-amt { font-size: 13px; }
}

/* ====================================================== publish card */
.publish-outputs {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  max-height: 280px;
  overflow-y: auto;
}
.publish-output { padding: 6px 0; border-bottom: 1px dotted var(--border); }
.publish-output:last-child { border-bottom: none; }
.publish-output-head { color: var(--accent); margin-bottom: 4px; font-weight: 700; }
.publish-push { padding: 1px 0 1px 16px; word-break: break-all; }
.publish-push .push-label { color: var(--muted); }
.publish-push.ascii { color: var(--accent-2); }

/* ====================================================== ordinals view */
.ordinals-panel {
  margin: 10px 0 14px;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ord-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ordinals-list { font-family: var(--font-mono); font-size: 12px; }
.ordinal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--border);
}
.ordinal-row:last-child { border-bottom: none; }
.ord-info { flex: 1 1 0; word-break: break-all; }
.ord-info code { font-size: 12px; }
.ord-info .ord-addr { color: var(--muted); font-size: 11px; margin-top: 2px; display: block; }
.ord-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ordinals-empty { padding: 6px 0; }

/* inscription previews */
.ord-preview {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  object-fit: contain;
}
.ord-preview-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  padding: 4px;
  text-align: center;
  word-break: break-word;
}
