  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace; background: #0d1117; color: #c9d1d9; min-height: 100vh; }

  header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #21262d; background: #161b22; }
  header h1 { font-size: 18px; color: #58a6ff; }
  .wallet-info { font-size: 13px; color: #8b949e; cursor: pointer; }
  .wallet-info:hover { color: #c9d1d9; }

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

  .toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

  button {
    padding: 8px 16px; border: 1px solid #30363d; border-radius: 6px;
    background: #21262d; color: #c9d1d9; cursor: pointer; font-size: 13px; font-family: inherit;
    transition: background 0.15s;
  }
  button:hover:not(:disabled) { background: #30363d; }
  button:disabled { opacity: 0.4; cursor: not-allowed; }
  button.primary { background: #238636; border-color: #2ea043; color: #fff; }
  button.primary:hover:not(:disabled) { background: #2ea043; }
  button.danger { background: #da3633; border-color: #f85149; color: #fff; }
  button.danger:hover:not(:disabled) { background: #b62324; }
  button.warn { background: #9e6a03; border-color: #d29922; color: #fff; }
  button.warn:hover:not(:disabled) { background: #845306; }
  button.small { padding: 4px 10px; font-size: 12px; }

  .section { margin-bottom: 24px; }
  .section-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; }

  /* Tabs */
  .tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid #21262d; }
  .tab {
    padding: 10px 20px; cursor: pointer; font-size: 14px; font-weight: 600; color: #8b949e;
    border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.15s;
    background: none; border-left: none; border-right: none; border-top: none; border-radius: 0;
  }
  .tab:hover { color: #c9d1d9; }
  .tab.active { color: #58a6ff; border-bottom-color: #58a6ff; }
  .tab-content { display: none; }
  .tab-content.active { display: block; }

  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  th { text-align: left; padding: 8px 12px; border-bottom: 2px solid #21262d; color: #8b949e; font-weight: 600; white-space: nowrap; }
  td { padding: 8px 12px; border-bottom: 1px solid #21262d; }
  tr.selectable { cursor: pointer; }
  tr.selectable:hover { background: #161b22; }
  tr.selected { background: #1c3a5c !important; }
  .addr { font-family: monospace; font-size: 12px; }
  .empty-msg { padding: 24px; text-align: center; color: #484f58; }
  .badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
  .badge.yes { background: #238636; color: #fff; }
  .badge.no { background: #da3633; color: #fff; }

  .selected-bar {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: #161b22; border: 1px solid #30363d; border-radius: 6px; margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .selected-bar .label { font-size: 13px; color: #8b949e; }
  .selected-bar .value { font-family: monospace; font-size: 13px; color: #58a6ff; }
  .selected-bar .actions { margin-left: auto; display: flex; gap: 8px; }

  .form-panel {
    background: #161b22; border: 1px solid #30363d; border-radius: 6px;
    padding: 16px; display: none;
  }
  .form-panel.open { display: block; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-group { display: flex; flex-direction: column; gap: 4px; }
  .form-group.full { grid-column: 1 / -1; }
  .form-group label { font-size: 12px; color: #8b949e; font-weight: 600; }
  .form-group input, .form-group select {
    padding: 8px 12px; border: 1px solid #30363d; border-radius: 6px;
    background: #0d1117; color: #c9d1d9; font-size: 13px; font-family: inherit;
  }
  .form-group input:focus, .form-group select:focus { outline: none; border-color: #58a6ff; }
  .checkbox-row { flex-direction: row; align-items: center; gap: 8px; }
  .checkbox-row input { width: auto; }
  .form-actions { margin-top: 12px; display: flex; gap: 8px; }

  .log {
    background: #0d1117; border: 1px solid #21262d; border-radius: 6px;
    padding: 12px; max-height: 200px; overflow-y: auto; font-size: 12px;
    font-family: monospace; line-height: 1.6;
  }
  .log-entry { padding: 2px 0; }
  .log-entry.error { color: #f85149; }
  .log-entry.success { color: #3fb950; }
  .log-entry.info { color: #8b949e; }

  .overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 100; align-items: center; justify-content: center;
  }
  .overlay.active { display: flex; }
  .spinner-box { background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 32px 48px; text-align: center; }
  .spinner { width: 32px; height: 32px; border: 3px solid #30363d; border-top-color: #58a6ff; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .spinner-text { font-size: 13px; color: #8b949e; }

  .route-panel {
    display: none; background: #161b22; border: 1px solid #30363d; border-radius: 6px;
    padding: 12px 16px; margin-bottom: 16px; font-size: 13px;
  }
  .route-panel.open { display: block; }
  .route-panel .route-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .route-panel .route-header span { font-weight: 600; color: #8b949e; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
  .route-panel .route-close { background: none; border: none; color: #8b949e; cursor: pointer; font-size: 16px; padding: 0 4px; }
  .route-panel .route-close:hover { color: #c9d1d9; }
  .route-item { padding: 8px 0; border-bottom: 1px solid #21262d; }
  .route-item:last-child { border-bottom: none; }
  .route-item .route-token { font-family: monospace; color: #58a6ff; font-size: 12px; }
  .route-item .route-amount { color: #c9d1d9; font-family: monospace; }
  .route-item .route-est { color: #3fb950; font-weight: 600; }
  .route-item .route-detail { font-size: 12px; color: #8b949e; margin-top: 4px; }

  .closed-group { margin-bottom: 12px; background: #161b22; border: 1px solid #21262d; border-radius: 6px; padding: 12px; }
  .closed-group-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
  .closed-group-header .meta { font-size: 12px; color: #8b949e; }
  .closed-group-header .remove-btn { margin-left: auto; }

  /* === strict-csp block: classes for removed inline styles === */
  .hidden { display: none; }
  .header-actions { display: flex; align-items: center; gap: 12px; }
  .btn-icon { background: none; border: none; color: #8b949e; cursor: pointer; font-size: 18px; padding: 4px 8px; }
  .banner-info {
    background: #1c2128;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #8b949e;
  }
  .banner-info strong { color: #c9d1d9; }
  .btn-pull-right { margin-left: auto; }
  .label-spaced { margin-left: 8px; }
  .action-column { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; width: 100%; }
  .action-row { display: flex; gap: 8px; }
  .btn-direct { background: #7d1a8a; border-color: #a020c0; }
  .btn-both { background: #b35900; border-color: #e67300; }
  .btn-info { background: #388bfd; border-color: #58a6ff; color: #fff; }
  .btn-link {
    text-decoration: none;
    background: #388bfd;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
  }
  .btn-link-sm {
    text-decoration: none;
    background: #388bfd;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
  }
  .section-mt { margin-top: 24px; }

  /* === Login page === */
  .login-container {
    max-width: 420px;
    margin: 80px auto;
    padding: 32px 24px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    text-align: center;
  }
  .login-title { font-size: 28px; margin-bottom: 8px; color: #c9d1d9; }
  .login-subtitle { color: #8b949e; margin-bottom: 24px; }
  .login-widget { display: flex; justify-content: center; margin-bottom: 20px; }
  .login-footnote { color: #8b949e; font-size: 12px; line-height: 1.5; }
